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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
a39ffa36563962fa713afdbdb72604e42bd83895 | Java | achowdhury80/leetcode | /src/com/prep2020/hard/Problem358.java | UTF-8 | 992 | 3.15625 | 3 | [] | no_license | package com.prep2020.hard;
import java.util.*;
public class Problem358 {
public String rearrangeString(String s, int k) {
if (k < 2) return s;
int[] arr = new int[26];
for (char c : s.toCharArray()) arr[c - 'a']++;
Queue<int[]> pq = new PriorityQueue<>((x, y) -> y[1] - x[1]);
for (int... | true |
2dceb3ac849863571574b1e2de40e5bb18251036 | Java | SiteView/ECC8.1.3 | /ECC8.1/ECC/ecc/ecc/src/com/siteview/base/tree/EntityNode.java | UTF-8 | 387 | 2.234375 | 2 | [] | no_license | package com.siteview.base.tree;
public class EntityNode extends Fork implements INode
{
public EntityNode()
{
}
public EntityNode(INode node)
{
super.setType(INode.ENTITY);
super.setStatus(node.getStatus());
super.setName(node.getName());
super.setId(node.getSvId());
IFork... | true |
3947ee123e0956f6226d8da447e95ac0388c1720 | Java | mdyasinarif/spring | /securityint/src/main/java/com/security/config/CustomUserDetailsService.java | UTF-8 | 1,136 | 2.40625 | 2 | [] | no_license | package com.security.config;
import com.security.entiy.User;
import com.security.repo.UserRepo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.security.core.userdetails.UserDetailsService;
import org.springfr... | true |
f332f46127065af6536e7d9545bf15a7e9c283b2 | Java | leroyBoys/LGameLogin | /src/main/java/com/lgame/manage/service/impl/LoginServiceImpl.java | UTF-8 | 10,575 | 1.914063 | 2 | [] | no_license | package com.lgame.manage.service.impl;
import com.lgame.manage.cache.ServerConnection;
import com.lgame.manage.cache.ServerManager;
import com.lgame.manage.service.LoginService;
import com.lgame.manage.service.ServerService;
import com.lgame.manage.service.UserService;
import com.lgame.manage.service.three.entity.Thre... | true |
9e2db5aeb5f8dafe3bf7cc07e7fb7c375334175e | Java | dbmarch/NexmatixValve | /src/main/java/com/ociweb/behaviors/UARTMessageToJsonBehavior.java | UTF-8 | 5,104 | 2.015625 | 2 | [
"BSD-3-Clause"
] | permissive | package com.ociweb.behaviors;
import com.ociweb.gl.api.GreenReader;
import com.ociweb.gl.api.PubSubListener;
import com.ociweb.iot.maker.FogCommandChannel;
import com.ociweb.iot.maker.FogRuntime;
import com.ociweb.pronghorn.pipe.ChannelReader;
import com.ociweb.schema.FieldType;
import com.ociweb.schema.MessageScheme;... | true |
0e221158845ee701ae5d4a54ca4742947af98a78 | Java | zhongxingyu/Seer | /Diff-Raw-Data/2/2_8208d47d2e60f15139a728689e74fc3cfb812024/Player/2_8208d47d2e60f15139a728689e74fc3cfb812024_Player_t.java | UTF-8 | 16,868 | 2.765625 | 3 | [] | no_license | package actors;
import item.Item;
import java.awt.Graphics;
import java.io.File;
import java.io.FileInputStream;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Scanner;
import java.util.prefs.Preferences;
import org.ini4j.Ini;
import org.ini4j.IniPreferenc... | true |
542990eae7f1ea2a5f2d949b4eec1dbd9cf88e9d | Java | ShangfengDing/IaaS | /openapi-server/src/main/java/appcloud/openapi/manager/impl/CommonManagerImpl.java | UTF-8 | 5,618 | 2 | 2 | [] | no_license | package appcloud.openapi.manager.impl;
import java.util.HashMap;
import java.util.Map;
import org.apache.log4j.Logger;
import org.springframework.stereotype.Component;
import appcloud.common.model.VmUser;
import appcloud.common.proxy.VmUserProxy;
import appcloud.common.util.ConnectionFactory;
import appcloud.common.... | true |
8b745b91746417e351f8fb5b470b9f0e979b0fae | Java | ppat94/Midori-RS3 | /Midori Server/src/com/orinate/game/content/combat/ability/attack/Havoc.java | UTF-8 | 1,785 | 2.46875 | 2 | [] | no_license | package com.orinate.game.content.combat.ability.attack;
import com.orinate.game.content.combat.CombatStyle;
import com.orinate.game.content.combat.ability.Ability;
import com.orinate.game.content.combat.ability.AbilityRepository;
import com.orinate.game.content.combat.ability.AbilityType;
import com.orinate.game.conte... | true |
8eea5d9ac6a0e1313777b69a1842a88c887af484 | Java | Lichenes/Java-Basis | /src/com/jgs1902/test02/Operator.java | UTF-8 | 750 | 3.625 | 4 | [] | no_license | package com.jgs1902.test02;
public class Operator {
public static void main(String[] args) {
int a = 9;
int b = 2;
System.out.println(a+b);
System.out.println(a-b);
System.out.println(a*b);
System.out.println(a/b);
System.out.println(a%b);
System.out.println(++a); //10 先赋值后运算
System.... | true |
94d035d031b85cf7b0ae3fa9c3770b08b5292993 | Java | thomasengels/project-oefening-2 | /project-oefening-2-service/src/main/java/com/realdolmen/realjobs/mappers/VacancyMapperConfig.java | UTF-8 | 475 | 2.109375 | 2 | [
"MIT"
] | permissive | package com.realdolmen.realjobs.mappers;
import com.realdolmen.realjobs.models.Vacancy;
import com.realdolmen.realjobs.dto.VacancyDTO;
import org.mapstruct.MapperConfig;
import org.mapstruct.MappingTarget;
@MapperConfig(componentModel = "spring")
public interface VacancyMapperConfig {
abstract VacancyDTO toVacanc... | true |
adacf399a938650b418ba21657f9a87d219e1f08 | Java | goldschmiede/2018-10-12-JHipster | /src/main/java/com/carlogistics/articles/repository/KategorieRepository.java | UTF-8 | 419 | 1.890625 | 2 | [] | no_license | package com.carlogistics.articles.repository;
import com.carlogistics.articles.domain.Kategorie;
import org.springframework.data.jpa.repository.*;
import org.springframework.stereotype.Repository;
/**
* Spring Data repository for the Kategorie entity.
*/
@SuppressWarnings("unused")
@Repository
public interface Ka... | true |
2ef1cee11dbedf7c19efc0815a0e73592b671cbe | Java | ERyX2002/HazizzTest | /src/main/java/com/indeed/hazizz/Communication/REQUESTSnotUsed.java | UTF-8 | 1,818 | 2.09375 | 2 | [] | no_license | package com.indeed.hazizz.Communication;
//import static android.provider.ContactsContract.CommonDataKinds.Website.URL;
public enum REQUESTSnotUsed{
BASEURL ("http://80.98.42.103:8080/");
String value;
REQUESTSnotUsed(String value){
this.value = value;
}
public String getBaseUrl(){
... | true |
c4ab3be0f4292178f1c8ef5e79c05955397eb38b | Java | lifeplan-it/Java_Source | /J5510_Awt_Application_Panel/Awt_Application_Panel.java | SHIFT_JIS | 3,661 | 3.28125 | 3 | [] | no_license | // Awt_Application_Panel.java
// awt CũC|[g
import java.awt.*;
import java.awt.event.*;
//CNX
public class Awt_Application_Panel {
public static void main(String [] args) {
// Frame ̃NXĂяo
SubFrame000 sf000 = new SubFrame000();
// Frame ̃\bhĂяo
sf000.SubFrame001(100,100);
// Frame ̃\bhĂяo
sf000.S... | true |
8cf3a4b587c7885f8e7f7d4d46de5744047fdc27 | Java | christopappas/gocd-analytics-plugin | /src/integration/java/com/thoughtworks/gocd/analytics/dao/AgentUtilizationDAOTest.java | UTF-8 | 10,236 | 1.78125 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2020 ThoughtWorks, Inc.
*
* 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 agr... | true |
c3d6ef0f21c8d95d2abc5d7a9fe6599c8f5b298d | Java | eymeneruyar/Java-Spring-Rest-Api-Service-VetClinic | /src/main/java/vetcilinicservice/Dto/CityAndTownLayer.java | UTF-8 | 3,625 | 2.546875 | 3 | [
"MIT"
] | permissive | package vetcilinicservice.Dto;
import org.springframework.stereotype.Service;
import vetcilinicservice.Entities.Cities;
import vetcilinicservice.Entities.Towns;
import vetcilinicservice.Model.RedisCities;
import vetcilinicservice.Model.RedisTowns;
import vetcilinicservice.Repositories._jpa.CitiesRepository;
import vet... | true |
a24b0b0b5e801727aeb2c544ef1626675a4f14c2 | Java | mikesive/TradeThing | /src/com/company/Main.java | UTF-8 | 1,075 | 3.265625 | 3 | [] | no_license | package com.company;
import java.io.IOException;
import org.json.JSONException;
import java.util.*;
/**
* Main class to print/display current bid and ask prices of all exchanges in Exchange enum class
*/
public class Main {
public static void main(String[] args) throws JSONException, IOException, In... | true |
e91ee94c0ae79977f6282848e178c73b705f6171 | Java | DataVisualizationTech/DataVisualization | /src/main/java/dataVisualization/Main.java | UTF-8 | 300 | 1.664063 | 2 | [] | no_license | package dataVisualization;
import org.springframework.boot.SpringApplication;
import dataVisualization.config.BookSystemApplication;
public class Main {
public static void main(String[] args) {
System.out.println("hello world");
SpringApplication.run(BookSystemApplication.class, args);
}
} | true |
332d524b149a0860813b49615e9fd875e340f7aa | Java | wxl123156/drp | /src/main/java/com/yootk/action/front/CityActionFront.java | UTF-8 | 783 | 1.742188 | 2 | [] | no_license | package com.yootk.action.front;
import com.alibaba.fastjson.JSONObject;
import com.yootk.common.action.abs.AbstractAction;
import com.yootk.common.annotation.Autowired;
import com.yootk.common.annotation.Controller;
import com.yootk.common.annotation.RequestMapping;
import com.yootk.service.front.ICityService;
@Contr... | true |
6ce5ad99dc922fdd0d0f9333847bd706d935ec0e | Java | vquezj/PA2_ControlVacunas | /src/main/java/hn/uth/PA2Proyecto/servicios/CitasService.java | UTF-8 | 992 | 2.046875 | 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 hn.uth.PA2Proyecto.servicios;
import hn.uth.PA2Proyecto.modelos.Citas;
import hn.uth.PA2Proyecto.repositorios.CitasRepositorio... | true |
3c3fa5481ff17bd38658d76ae84466028dd6d9ba | Java | SrujanaBuddi/GeorgiaTech | /CSE_6242/HW3-Buddi-SaiSrujana/Task1/src/main/java/edu/gatech/cse6242/Task1.java | UTF-8 | 2,071 | 2.6875 | 3 | [] | no_license | package edu.gatech.cse6242;
import java.io.IOException;
import java.util.StringTokenizer;
import org.apache.hadoop.fs.Path;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.io.*;
import org.apache.hadoop.mapreduce.*;
import org.apache.hadoop.util.*;
import org.apache.hadoop.mapreduce.lib.input.Fi... | true |
1679e45c00c7db6c62327660b6031ab4911d9716 | Java | alphanumeric96/My-Java-Projects | /CurrentDate.java | UTF-8 | 514 | 3.03125 | 3 | [] | no_license | import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
/**
*@author Shorya created on 31 March 2021
*/
public class CurrentDate {
public static void main(String[]args){
//Used Date Time formatter to format the date
DateTimeFormatter timeFormatter = DateTimeFormatter.ofPattern(... | true |
b7ca2287deb60422f8e4fb77d0893267a5901652 | Java | mks502/BaekJoon-Algorithm | /src/problem/twopointer/Main_2559.java | UTF-8 | 1,128 | 3.171875 | 3 | [] | no_license | package problem.twopointer;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main_2559 {
static int n, k;
static int sequence[];
static int max = Integer.MIN_VALUE;
public static void main(String[] args) throws IOException {
input();
... | true |
862eb30f88118129e22aeff012ad0447a74ad579 | Java | sparsh-1991/MusicPlayerLite | /app/src/main/java/com/sparsh/olaplaystudios/AllSongsFragment.java | UTF-8 | 1,353 | 2.015625 | 2 | [] | no_license | package com.sparsh.olaplaystudios;
import android.content.Context;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.Vi... | true |
2ff087ec085a5d7e8cb7df48ed227573d9897bfb | Java | putaodoudou/Adds | /app/src/main/java/com/adds/userInterface/applicationUI/DSIntroPage.java | UTF-8 | 3,084 | 2.34375 | 2 | [] | no_license | package com.adds.userInterface.applicationUI;
import android.content.Intent;
import android.graphics.Color;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.support.v4.content.ContextCompat;
import com.adds.R;
import com.github.paolorotolo.ap... | true |
fbed6694926c975ac4d716f76419c248f7d32314 | Java | 1185265183/2043 | /src/cn/web/security/grammar/Grammar.java | UTF-8 | 2,582 | 2.359375 | 2 | [] | no_license | package cn.web.security.grammar;
import java.io.File;
import java.lang.reflect.Method;
import java.util.logging.Level;
import java.util.logging.Logger;
import org.antlr.v4.Tool;
import org.antlr.v4.runtime.CharStream;
import org.antlr.v4.runtime.CharStreams;
import org.antlr.v4.runtime.CommonTokenStream;
import org.a... | true |
32d127701917d957de929595c5ab504661e2eb02 | Java | aclement/spring-xd | /extensions/spring-xd-extension-batch/src/main/java/org/springframework/batch/step/tasklet/x/ClasspathEnvironmentProvider.java | UTF-8 | 3,020 | 2.0625 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2015 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 applicable l... | true |
d7afb7dacd1f36d52a8e06c5d9d86f7f17a63b15 | Java | ken-0425/FireAPP_Taoyuan | /app/src/main/java/library/UserFunctions.java | UTF-8 | 11,363 | 2.109375 | 2 | [] | no_license | /**
* Author: Ravi Tamada
* URL: www.androidhive.info
* twitter: http://twitter.com/ravitamada
*/
package library;
import android.content.Context;
import android.util.Log;
import org.apache.http.NameValuePair;
import org.apache.http.message.BasicNameValuePair;
import org.json.JSONObject;
import java.util.ArrayLi... | true |
ebdc0acffeda67b90410d6a5f23e7f34fd599b34 | Java | lihuihong/Practice | /app/src/main/java/com/example/administrator/practice/view/SplashActivity.java | UTF-8 | 3,323 | 2.125 | 2 | [] | no_license | package com.example.administrator.practice.view;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.Window;
import android.view.WindowManager;
import android.view.animation.AlphaAnimation;
import android.view.animation.Animation;
import android... | true |
08bcd45deef6593a38fd84464b34f8f37b112df8 | Java | ArnoldGuo86/datastructur-algorism | /src/com/mguo/tournament/Tournament.java | UTF-8 | 1,235 | 3.609375 | 4 | [] | no_license | package com.mguo.tournament;
public class Tournament {
// best way to find the max value besides/except max value
// O(nlog2n)
public static int[] tournament(int[] arr) {
if (arr == null || arr.length < 2) {
throw new IllegalArgumentException();
}
int length = arr.length;
if (length == 2) {
return n... | true |
edb7eefbf7a9b2cb6131bfe4aeb79f08a6e442a4 | Java | P79N6A/icse_20_user_study | /methods/Method_15020.java | UTF-8 | 392 | 2.0625 | 2 | [] | no_license | /**
* ????
* @param joined
* @param list
*/
private void setPraise(boolean joined,List<User> list){
ivMomentViewPraise.setImageResource(joined ? R.drawable.praised : R.drawable.praise);
llMomentViewPraise.setVisibility(list == null || list.isEmpty() ? View.GONE : View.VISIBLE);
if (llMomentViewPraise.getVisi... | true |
2d5ea10bfbd8ecf24f94951fa5548a26b0aff2fb | Java | kossT14/JavaHomeworksVoineaConstantinDaniel | /src/filesmanagement/TestFileManagement.java | UTF-8 | 1,408 | 3.390625 | 3 | [] | no_license | /*
* Test class implementation for actions within a specified file
*/
package filesmanagement;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.nio.charset.StandardCharsets;
/**
* @author Constantin-Daniel Voinea
* @version 1.0
* @since 2016-12-30
*/
public class TestFileManagement {... | true |
a2f419ec8ffd2b743c963d74ab5750364483c0b6 | Java | okyapu/EXPJ.OPF | /OPF/EXPJProj/OPF/AE0040/src/com/nec/jp/orteus/metamorBase/AE0040/EdiOrder.java | SHIFT_JIS | 18,693 | 1.789063 | 2 | [] | no_license | /*
* Copyright (c) 2003 NEC Informatec Systems,Ltd.
*/
package com.nec.jp.orteus.metamorBase.AE0040;
import java.sql.*;
import com.nec.jp.orteus.xaf.foundation.IDbConnection;
/**
* EDI֘Af[^o^NX
* @author $Author: suganuma $
* @version $Revision: 1.1 $ $Date: 2005/03/09 02:26:09 $
*/
public class EdiOrder {
/**... | true |
b00a3d3d32a0fc1cf52e2a21e77634e781663656 | Java | Li-Heng-LH/FreeMarkerForVelocity | /TryVelocity/src/main/java/me/liheng/codeGenerator/VelocityWriter.java | UTF-8 | 2,059 | 2.765625 | 3 | [] | no_license | package me.liheng.codeGenerator;
import org.apache.velocity.Template;
import org.apache.velocity.VelocityContext;
import org.apache.velocity.app.VelocityEngine;
import java.io.StringWriter;
import java.util.ArrayList;
import java.util.List;
import java.util.Properties;
public class VelocityWriter {
static Strin... | true |
f2fa02709f388b05d65d93c4af6927e5cbc73248 | Java | ryanchang/Android-Charts | /src/src/cn/limc/androidcharts/event/OnCrossDisplayListener.java | UTF-8 | 236 | 2.09375 | 2 | [
"Apache-2.0"
] | permissive | package cn.limc.androidcharts.event;
import cn.limc.androidcharts.entity.DotInfo;
public interface OnCrossDisplayListener {
// 十字显示的时候的回调方方法.
public void crossDisplay(boolean isDisplay, DotInfo dotInfo);
}
| true |
2069a6c7a4d61d910ab471c71bafad3e298573fe | Java | khalidahmada/bazel | /src/main/java/com/google/devtools/build/lib/rules/cpp/HeaderTargetModuleMapProvider.java | UTF-8 | 1,517 | 1.804688 | 2 | [
"Apache-2.0"
] | permissive | // Copyright 2014 Google Inc. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable ... | true |
030336e2c3972f47f1af227e96144a16abbc0ff9 | Java | TomasKadlcek/Monopoly | /src/sample/objects/Player.java | UTF-8 | 1,052 | 2.640625 | 3 | [] | no_license | package sample.objects;
import javafx.scene.image.ImageView;
import javafx.scene.text.Text;
import sample.service.TopOfBoard;
import java.util.ArrayList;
public class Player extends TopOfBoard {
private int id;
private boolean turn;
private String name;
public ImageView figure;
public int money;
... | true |
8aa3c8aee116162cd3e624816662fa23d65d3379 | Java | dnguyen51741/Projects | /CivilizationIII/CivilizationGame.java | UTF-8 | 3,757 | 2.765625 | 3 | [] | no_license | package runner;
import java.util.Optional;
import controller.GameController;
import model.Civilization;
import view.StartScreen;
import view.GameScreen;
import view.GridFX;
import view.CivEnum;
import model.QinDynasty;
import model.RomanEmpire;
import model.Egypt;
import model.Bandit;
import javafx.application.Applica... | true |
b20e1fb57fd51c0aa6f5193b2064b358d5209801 | Java | Shencaowalker/crawler | /dazhong_crawler/FileUtil.java | UTF-8 | 1,096 | 2.84375 | 3 | [] | no_license | package dazhong;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
public class FileUtil {
private File file;
private FileOutputStream out; //如果追加方式用true
public FileUtil(String pathString){... | true |
502878d237a411d8b031ff7929a3959fd6521af7 | Java | kashyapjagwani/Spring-Boot-Shopping-Application | /ShopService/src/main/java/com/MyApp/ShopService/ServletInitializer.java | UTF-8 | 416 | 1.773438 | 2 | [] | no_license | package com.MyApp.ShopService;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
public class ServletInitializer extends SpringBootServletInitializer {
@Override
protected SpringApplicationBuilder configure(SpringAppl... | true |
5b9db2027fe9ca52f3216377c68df66ae76b3db4 | Java | hbothra15/simple-bug | /src/main/java/io/github/hbothra/simplebugtracker/repo/BugsHistoryRepo.java | UTF-8 | 675 | 1.96875 | 2 | [] | no_license | package io.github.hbothra.simplebugtracker.repo;
import java.util.List;
import java.util.Set;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.stereotype.Repository;
import io.github.hbothra.simplebugtracker.eo.Bug... | true |
fa31bb9a41c9d3de12a27e65c7b9f8463035fc8a | Java | JPAnderson/StudioScheduleSecondTake | /src/com/Mike/StudioMainMenu.java | UTF-8 | 6,037 | 2.609375 | 3 | [] | no_license | package com.Mike;
import sun.applet.*;
import sun.applet.Main;
import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
/**
* Created by Mike on 12/7/2015.
*/
public class StudioMainMenu extends JFrame {
private JPanel rootPanel;
private JPanel clie... | true |
c4ad4abdd5dd4eef81b546829d3cab575dcdff31 | Java | DXShelley/codeGym | /1.JavaSyntax/src/zh/codegym/task/task08/task0813/Solution.java | UTF-8 | 446 | 2.765625 | 3 | [] | no_license | package zh.codegym.task.task08.task0813;
import java.util.Set;
import java.util.HashSet;
/*
20 个以字母“L”开头的单词
*/
public class Solution {
public static Set<String> createSet() {
//在此编写你的代码
Set<String> set = new HashSet<>();
for (int i = 0; i < 20; i++) {
set.add("L" + i);
... | true |
515c3225f250ceb5d6a2606ade79247e7530c6d7 | Java | ArvinCc/Tdse | /tdseCommon/src/main/java/com/tdse/mx/db/OrbVipImpl.java | UTF-8 | 998 | 2.375 | 2 | [] | no_license | package com.tdse.mx.db;
import com.tdse.mx.dao.OrbVip;
/**
* Created by Administrator on 2017/7/17.
*/
public class OrbVipImpl extends Impl<OrbVip>
{
private final String mapperName="orbbecVipMapper";
//使用volatile关键字保其可见性
volatile private static OrbVipImpl instance = null;
public OrbVipImpl() {}
... | true |
6000721c4ea0726d38bdf929ea79031f502ad18f | Java | lnrCoder/Algorithm | /src/com/leetcode/editor/cn/PerfectNumber.java | UTF-8 | 1,469 | 3.328125 | 3 | [
"Apache-2.0"
] | permissive | package com.leetcode.editor.cn;;
//对于一个 正整数,如果它和除了它自身以外的所有 正因子 之和相等,我们称它为 「完美数」。
//
// 给定一个 整数 n, 如果是完美数,返回 true,否则返回 false
//
//
//
// 示例 1:
//
//
//输入:num = 28
//输出:true
//解释:28 = 1 + 2 + 4 + 7 + 14
//1, 2, 4, 7, 和 14 是 28 的所有正因子。
//
// 示例 2:
//
//
//输入:num = 6
//输出:true
//
//
// 示例 3:
//
//
//输入:num = 49... | true |
693a753b9b9c34200821e27b3e5d05a918c33433 | Java | dadoonet/elasticsearch | /x-pack/plugin/security/src/main/java/org/elasticsearch/xpack/security/authz/SecuritySearchOperationListener.java | UTF-8 | 5,834 | 1.78125 | 2 | [
"Apache-2.0",
"LicenseRef-scancode-elastic-license-2018",
"LicenseRef-scancode-other-permissive",
"Elastic-2.0"
] | permissive | /*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/
package org.elasticsearch.xpack.security.authz;
import org.elasticsearch.comm... | true |
cbbed172e174b3ee2ccdbd989d40ac442e3e40f9 | Java | EversonBorges/SIGESIG | /src/main/java/com/borges/igreja/repository/UsuarioRepository.java | UTF-8 | 741 | 1.921875 | 2 | [] | no_license | package com.borges.igreja.repository;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import com.borges.igreja.model.Templo;
import com.borges.igreja.security.entity.UsuarioEntity;
public inte... | true |
57d965a2255bd0d64f7ff3728d49a27625177905 | Java | TheScarastic/redfin_b5 | /SystemUIGoogle/sources/com/android/systemui/statusbar/notification/row/RowInflaterTask_Factory.java | UTF-8 | 743 | 1.757813 | 2 | [] | no_license | package com.android.systemui.statusbar.notification.row;
import dagger.internal.Factory;
/* loaded from: classes.dex */
public final class RowInflaterTask_Factory implements Factory<RowInflaterTask> {
/* access modifiers changed from: private */
/* loaded from: classes.dex */
public static final class Ins... | true |
ad59a981d72eb0ad1f6b2bdcd8c885c6a9c7c031 | Java | 907198993/jintang | /app/src/main/java/com/sk/jintang/module/my/activity/MyAllCollectActivity.java | UTF-8 | 4,750 | 1.992188 | 2 | [] | no_license | package com.sk.jintang.module.my.activity;
import android.content.Intent;
import android.os.Handler;
import android.support.design.widget.TabLayout;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.util.Log;
import android.view.View;
import com.github.baseclass.rx.... | true |
8680d7fb1c26533606b89d6de1b4d5a42a1a5486 | Java | hawkingdu/LeetcodeSet | /src/javacode/dynamicprogramming/LongestIncreasingSubsequence.java | UTF-8 | 2,447 | 4.03125 | 4 | [] | no_license | package javacode.dynamicprogramming;
import java.util.Arrays;
import java.util.Map;
/**
* 300. Longest Increasing Subsequence
* Given an integer array nums, return the length of the longest strictly increasing subsequence.
*
* A subsequence is a sequence that can be derived from an array by deleting some or no el... | true |
9dece880030739e2eefb0219c61fd3937bf5653b | Java | wenkefan/CottonFarmer | /app/src/main/java/com/lianghuawang/cottonfarmer/activity/HomePageActivity.java | UTF-8 | 4,497 | 2.265625 | 2 | [] | no_license | package com.lianghuawang.cottonfarmer.activity;
import android.os.Bundle;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentTransaction;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.FrameLayout;
import android.widget.RadioButton;
im... | true |
580d7e4b5bdab07cc68f1aaa613dd8a9e8b7866e | Java | bowen0801/java8demo | /src/main/java/com/function2/ProductHandler.java | UTF-8 | 538 | 2.21875 | 2 | [
"Apache-2.0"
] | permissive | package com.function2;
import java.util.List;
import java.util.function.Consumer;
import java.util.function.Supplier;
public class ProductHandler {
public int updateQty(List<Long> skuIdList, Supplier<List<GoodsVo>> supplier, Consumer<List<GoodsVo>> refreshCacheConsumer){
List<GoodsVo> goodsVos = supplier... | true |
e7a3b774f444391f11df9c71dbd6fe80ca990624 | Java | MyCookie513/Study-Notes | /Project Code/Spring_AOP/src/com/jason/DI_Setter/Person.java | UTF-8 | 831 | 2.96875 | 3 | [] | no_license | package com.jason.DI_Setter;
public class Person {
private String name ;
private int age;
private Address home_address;
private Address com_address;
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public int getAge() {
return age;
}
public void setAge(i... | true |
6e30e65a62e51395e9f21026db49dc3fb7e71e2a | Java | DanielLEVY25021961/tudu-parent | /tudu-core/src/main/java/core/tudu/service/notify/IMessage.java | UTF-8 | 275 | 1.851563 | 2 | [] | no_license | /**
*
*/
package tudu.service.notify;
/**
* Generic message interface.
* @author Arnaud Cogoluegnes
*
*/
public interface IMessage {
/**
* method getMessage() :<br/>
* .<br/>
* <br/>
*
* @return : String : .<br/>
*/
String getMessage();
}
| true |
172c5abda8191f97bce793d8989b2c6b24a2aa74 | Java | hashgraph/hedera-sdk-java | /sdk/src/test/java/com/hedera/hashgraph/sdk/CustomFeeListTest.java | UTF-8 | 3,647 | 2.109375 | 2 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | /*-
*
* Hedera Java SDK
*
* Copyright (C) 2020 - 2023 Hedera Hashgraph, LLC
*
* 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 |
3bae82ac59b44ed552f9232d3f1d5ca3d8030588 | Java | Iprivate-projects/wsdeco | /world/src/main/java/com/wsdeco/oa/hr/service/IDataReadService.java | UTF-8 | 538 | 1.726563 | 2 | [] | no_license | package com.wsdeco.oa.hr.service;
import java.util.List;
import com.wsdeco.oa.commons.beans.Person;
import com.wsdeco.oa.hr.vo.Page;
/**
*<p></p>
* @author qiaozhen
* @time 2018年1月1日下午4:34:24
* @verson
*/
public interface IDataReadService {
public void insertPerson(Person addedPerson);
public Page<Person> ... | true |
6380e35705837e8d171a651a1f2f7d14c6a8ca7e | Java | aiba180498/Eclipse | /android.fba.toolkit-master/android.fba.toolkit-master/engine/src/main/java/ru/profi1c/engine/app/ui/BaseDialogFragment.java | UTF-8 | 3,123 | 2.125 | 2 | [
"Apache-2.0"
] | permissive | package ru.profi1c.engine.app.ui;
import android.app.Activity;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentActivity;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentTransaction;
import ru.profi1c.engine.Dbg;
import ru.pr... | true |
9e941168fdffe843b047ae6ef882ceb54d32659d | Java | tobiasvdp/industrialProcessing | /src/minecraft/ip/industrialProcessing/items/ItemMicroBlock.java | UTF-8 | 2,467 | 2.03125 | 2 | [] | no_license | package ip.industrialProcessing.items;
import ip.industrialProcessing.IndustrialProcessing;
import ip.industrialProcessing.microBlock.MicroBlockType;
import ip.industrialProcessing.microBlock.core.BlockMicroBlock;
import net.minecraft.block.Block;
import net.minecraft.client.Minecraft;
import net.minecraft.creativetab... | true |
1cc244409bc78594116b3bfc4101436345abbcd1 | Java | visanakul/SpringMicroServices | /Hello-Service/src/main/java/com/microservices/helloservice/controller/HelloController.java | UTF-8 | 446 | 2.0625 | 2 | [] | no_license | package com.microservices.helloservice.controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
@RequestMapping(value = "/hello")
public class HelloContro... | true |
a63dc875bbae9c81cfa6a0a8413fd632668366e5 | Java | VitorMarques/automattor | /src/main/java/br/com/kolin/automattor/service/PlacesService.java | UTF-8 | 6,567 | 2.046875 | 2 | [] | no_license | package br.com.kolin.automattor.service;
import br.com.kolin.automattor.converter.PlaceToCompanyConverter;
import br.com.kolin.automattor.exception.IntegrationException;
import br.com.kolin.automattor.model.Company;
import br.com.kolin.automattor.model.place.*;
import br.com.kolin.automattor.model.place.browse.B... | true |
5b3f99933c7f1ec7e5a09974a9b265b6d27c0276 | Java | OliverLiy/SpringCloudDemo | /api_gataway_server/src/main/java/com/sdxb/Gateway/Limit/KeyResolverConfiguration.java | UTF-8 | 1,315 | 2.109375 | 2 | [] | no_license | package com.sdxb.Gateway.Limit;
import org.springframework.cloud.gateway.filter.ratelimit.KeyResolver;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;
import org.springframework.web.server.ServerWebExchange;
import reactor.core.publisher.Mono;
@Component
public cla... | true |
ff998566c405530c2c3a60de45f979968f457a8b | Java | fedegodoy1/Simulacion_2k18 | /simulaciones-tp3/src/front/UniformeTable.java | UTF-8 | 10,092 | 2.265625 | 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 front;
import java.text.DecimalFormat;
import javax.swing.table.DefaultTableModel;
import objects.Controller;
import objects.U... | true |
80d4f18a922c6b6e9cba48251f9a6f9f4c9acf34 | Java | hvdthong/DEFECT_PREDICTION | /PROMISE/archives/synapse/1.0/org/apache/synapse/config/xml/AbstractListMediatorSerializer.java | UTF-8 | 1,155 | 2.28125 | 2 | [] | no_license | package org.apache.synapse.config.xml;
import org.apache.axiom.om.OMElement;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.apache.synapse.SynapseException;
import org.apache.synapse.Mediator;
import java.util.Iterator;
import java.util.List;
public abstract class Abs... | true |
43d150190f97339bcf31368f687c0645ade4b386 | Java | maxwe/maxwe-android-utils | /android-utils-views/src/main/java/org/maxwe/android/utils/views/progress/SineProgress.java | UTF-8 | 4,022 | 2.765625 | 3 | [] | no_license | package org.maxwe.android.utils.views.progress;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.Path;
import android.graphics.Rect;
import android.util.AttributeSet;
import android.view.SurfaceHolder;
import android.v... | true |
9ad090f35451ec314c74afdcb3b8e44633920101 | Java | rjbj/designPattern | /src/main/java/Bridge/service/UrgencyMessage.java | UTF-8 | 766 | 2.8125 | 3 | [] | no_license | package Bridge.service;
/**
* 加急消息处理
*
* @since 1.0
* @version 1.0
* @author: tao kai (tao.kai@sccaptain.com.cn)
*/
public class UrgencyMessage extends AbstractMessage {
public UrgencyMessage(MessageImplementor impl){
super(impl);
}
@Override
public void sendMessage(String message,String toUser){
... | true |
f445f763c242c41fa37d4a0c1a6302786b59cdf3 | Java | lizhs/study | /java/junit-demo/src/test/java/MyTest2.java | UTF-8 | 200 | 1.835938 | 2 | [] | no_license | import org.junit.Test;
public class MyTest2 {
@Test
public void test1(){
System.out.println("xx");
}
@Test
public void test2(){
System.out.println("xx");
}
}
| true |
e8d6ab0ad1e7cb5486f494d550148792b8bd492d | Java | sergiotj/reliableUDP | /reliableUDP/src/TypeEnt.java | UTF-8 | 97 | 1.679688 | 2 | [] | no_license | import java.io.Serializable;
public enum TypeEnt implements Serializable {
CLIENT, SERVER
} | true |
274cab3ed6bc6908a6b9a4de66362f375d81c752 | Java | AllaSupriya/Java | /Day7_Lab5/Employee.java | UTF-8 | 391 | 2.828125 | 3 | [] | no_license | package Day7_Lab5;
import java.util.Scanner;
public class Employee {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
System.out.println("Enter Salary");
double n = sc.nextDouble();
EmployeeException ne = new EmployeeException();
try {
ne.validateSalary(n);
}... | true |
33c7d5b46de7b07e7d80ca3abf0460cde285b0f4 | Java | akisoraii/Epidemic | /src/com/akisora/epidemic/mapper/UserMapper.java | UTF-8 | 475 | 1.960938 | 2 | [] | no_license | package com.akisora.epidemic.mapper;
import com.akisora.epidemic.beans.UserInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
@Mapper
public interface UserMapper {
@Select(value = "SELECT u.`user_id`,u.`account`,u.`password`,u.`user_name` " +
"FROM users u... | true |
149de38806faf4790d2bf315f764a285b843f18f | Java | penhlenh/MuM | /MPP/Homework/lesson7/prob4/ForEachExample.java | UTF-8 | 495 | 3.453125 | 3 | [] | no_license | package lesson7.labs.prob4;
import java.util.Arrays;
import java.util.List;
import java.util.function.Consumer;
public class ForEachExample {
public static void main(String[] args) {
List<String> list = Arrays.asList("Hello there", "Goodbye", "Back soon",
"Away", "On Vacation", "Everywhere... | true |
4a44a66bc3c2c7af13d9d67c09137ace34f073df | Java | zeeneddie/squale | /Squale/squale-web/src/main/java/org/squale/squaleweb/transformer/PracticeTransformer.java | UTF-8 | 4,246 | 1.960938 | 2 | [] | no_license | /**
* Copyright (C) 2008-2010, Squale Project - http://www.squale.org
*
* This file is part of Squale.
*
* Squale 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, either version 3 of the
... | true |
e12f8809c14f25dd63f97404051122bff7a4e088 | Java | hiteshgit88/Intellipaat | /Intellipaat/src/grid/grid1.java | UTF-8 | 722 | 2.375 | 2 | [] | no_license | package grid;
import java.net.MalformedURLException;
import java.net.URL;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.remote.DesiredCapabilities;
import org.openqa.selenium.remote.RemoteWebDriver;
public class grid1 {
public static void main(String[] args) throws MalformedURLExcepti... | true |
71f5335ff8f38a43dbe1d74fc197a2b8c9554dda | Java | kexiaomeng/nettyTest | /dubbo-provide/src/main/java/provider/ProviderApp.java | UTF-8 | 557 | 1.859375 | 2 | [] | no_license | package provider;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ImportResource;
import java.io.IOException;
@SpringBootApplication
@ImportResource(locations = {"classpath:spring.xml"})
//@ImportRe... | true |
22bb9f2edff57b8ae630aba29c379ec60ef1bb2b | Java | kcl1997/learnSpringSecurity-JWT | /src/main/java/com/kcl/security/ResponseUtil.java | UTF-8 | 790 | 2.296875 | 2 | [] | no_license | package com.kcl.security;
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.http.HttpServletResponse;
import cn.hutool.json.JSONUtil;
/**
* 项目名: learn_spring_security
* 包名: com.kcl.security
* 文件名 ResponseUtil
* 创建者
* 创建时间: 2021/5/27 6:10 PM
* 描述 ${TODO}
*/
public class Respon... | true |
136fcc4ea0e990af547806244951d9e6b31172c2 | Java | sgarciachavez/ReviewsAPI_Midterm | /midterm/src/test/java/com/udacity/course3/reviews/repository_mongodb/ReviewRepository_MongoDBTests.java | UTF-8 | 2,230 | 2.390625 | 2 | [] | no_license | package com.udacity.course3.reviews.repository_mongodb;
import com.udacity.course3.reviews.document_mongodb.ReviewDoc;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.autoconfigure.data.mongo.DataMongoTest;
impo... | true |
99119b7f55b8857f85da6f2a2a87098c5339a703 | Java | kolev77/SoftUni- | /JavaWeb-January-2018/15.Introduction_To_MVC_Exercises_Part_2/summer/src/org/softuni/summer/core/ControllerActionPair.java | UTF-8 | 450 | 2.40625 | 2 | [] | no_license | package org.softuni.summer.core;
import java.lang.reflect.Method;
public class ControllerActionPair {
private Object controller;
private Method action;
public ControllerActionPair(Object controller, Method action) {
this.controller = controller;
this.action = action;
}
public Ob... | true |
e4840908550b58154e20f40bab269518a4d594d8 | Java | raisssnaim/Diamond-Hunter-from-CW1 | /src/application/Main.java | UTF-8 | 1,314 | 2.5 | 2 | [] | no_license | package application;
import java.io.File;
import javafx.application.Application;
import javafx.event.ActionEvent;
import javafx.event.EventHandler;
import javafx.fxml.FXMLLoader;
import javafx.stage.FileChooser;
import javafx.stage.Stage;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javaf... | true |
69e87c0d465bed65c2c7ad084d83aeb0bfe9c4ce | Java | loskutov-d2016/java-3-Homework06 | /src/test/java/Homework06/features/Login/PositiveLoginTest.java | UTF-8 | 452 | 1.828125 | 2 | [] | no_license | package Homework06.features.Login;
import Homework06.base.BaseUiTest;
import Homework06.pages.LoginPage;
import org.junit.Test;
import static Homework06.common.Conficuration.*;
public class PositiveLoginTest extends BaseUiTest {
@Test
public void loginWithBaseUserTest() {
new LoginPage(driver)
... | true |
b7c1389fc989f0de855c11a95aad5beeb7ed56c4 | Java | nitesis/cuie | /src/main/java/ch/fhnw/cuie/module04/layout/borderpane/BorderPaneExample.java | UTF-8 | 1,173 | 3.140625 | 3 | [] | no_license | package ch.fhnw.cuie.module04.layout.borderpane;
import javafx.geometry.Insets;
import javafx.scene.control.Button;
import javafx.scene.control.TextArea;
import javafx.scene.layout.BorderPane;
public class BorderPaneExample extends BorderPane {
private Button topButton;
private Button bottomButton;
private But... | true |
f1166530cb051af07695bc63045ebbf0eaec1526 | Java | AnnRoy27/Obsqura | /test/java/packtest/Demotour.java | UTF-8 | 1,129 | 1.84375 | 2 | [] | no_license | package packtest;
import org.testng.annotations.Test;
import org.testng.annotations.BeforeTest;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.support.ui.ExpectedConditions;
import or... | true |
9f9e616e73aa7e1017393dee332855d74629ceb5 | Java | iisys-hof/Pippa-Main | /de.iisys.pippa.core/src/de/iisys/pippa/core/message/speech_message/AudioStorageSpeechMessage.java | UTF-8 | 189 | 1.570313 | 2 | [
"Apache-2.0"
] | permissive | package de.iisys.pippa.core.message.speech_message;
public interface AudioStorageSpeechMessage {
//audio
//public void removeAudio();
public void setAudioUrl(String audioUrl);
}
| true |
f6520c8203a72d8cd0cd909619bef8bc005d73ad | Java | pavithratg/mockito-demo | /test/com/eviac/blog/bo/OrderBOImplTest.java | UTF-8 | 5,975 | 2.65625 | 3 | [] | no_license | package com.eviac.blog.bo;
import static org.junit.Assert.*;
import org.junit.Before;
import org.junit.Test;
import org.mockito.Mock;
import org.mockito.MockitoAnnotations;
import static org.mockito.Mockito.*;
import java.sql.SQLException;
import com.eviac.blog.dao.OrderDAO;
import com.eviac.blog.dto.Order;
import... | true |
1a184692dc9fa304a4a38cf4409abdd49c1cfe95 | Java | sharma-vinit/Core-Java | /src/com/Java/Core/Integer/IntegerDemo.java | UTF-8 | 3,902 | 3.75 | 4 | [
"MIT"
] | permissive | package com.Java.Core.Integer;
public class IntegerDemo {
public static void main(String[] args) {
// TODO Auto-generated method stub
new IntegerDemo().compareReferences();
}
/**
* <p>When you compile a number literal in Java and assign it to a Integer (capital I) the compile emits:</p>
* <code>Intege... | true |
97666672f4e80b54a37df9dbe002c02bced779d5 | Java | ts826848/hacks | /translational-data-analytics-challenge/src/algorithm/Requirement.java | UTF-8 | 612 | 3.046875 | 3 | [] | no_license | package algorithm;
public class Requirement<T> {
private final Weight weight;
private final T required;
public Requirement(Weight weight, T required) {
this.weight = weight;
this.required = required;
}
public Weight getWeight() { return weight; }
public T getRequired() { return required; }
@Override
pub... | true |
a96c6c17e7e321f07209fe853085481537d47aae | Java | P79N6A/speedx | /reverse_engineered/sources/com/google/android/gms/location/places/NearbyAlertFilter.java | UTF-8 | 3,712 | 1.78125 | 2 | [] | no_license | package com.google.android.gms.location.places;
import android.os.Parcel;
import android.support.annotation.Nullable;
import com.google.android.gms.common.internal.safeparcel.SafeParcelable;
import com.google.android.gms.common.internal.zzaa;
import com.google.android.gms.common.internal.zzaa.zza;
import java.util.Col... | true |
92133e4739e9898ccbb0e3e7b09d6509cbd19df2 | Java | DrewWhite51/Chapter2Java | /src/main/java/MilesPerGallon.java | UTF-8 | 849 | 3.5 | 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.
*/
/**
*
* @author Drew
*/
import java.util.Scanner;
public class MilesPerGallon {
public static void main(String[] args... | true |
aa63424c31747a08a9a88e83ea6ebd40942f4b78 | Java | lubushin/Java_Programming-B21 | /src/day27_ForEachLoop/UniqueIntegers2.java | UTF-8 | 747 | 3.875 | 4 | [] | no_license | package day27_ForEachLoop;
public class UniqueIntegers2 {
public static void main(String[] args) {
int[] arr ={1,1,2,3,3,4,1};
//how many times 1 occured in array
for(int each2 : arr) {
int frequency = 0;
for (int each : arr) {
if (each == each2) {
frequency++;
... | true |
57863e67e779e2511e69bd1554551b83a787d4de | Java | anilmeesala/spring-hibernate-jpa | /src/main/java/com/anil/hibjpa/hibernatejpa/service/ExpenseService.java | UTF-8 | 859 | 2.0625 | 2 | [] | no_license | package com.anil.hibjpa.hibernatejpa.service;
import com.anil.hibjpa.hibernatejpa.dto.ExpenseEntity;
import com.anil.hibjpa.hibernatejpa.repository.ExpenseRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
@Service
public c... | true |
7a3bc6c174ee65263d842b2a52fd9ed5dc8be36c | Java | liyalong/YunYS | /app/src/main/java/com/yunyisheng/app/yunys/project/adapter/PeriodicTaskListAdapter.java | UTF-8 | 2,526 | 2.171875 | 2 | [] | no_license | package com.yunyisheng.app.yunys.project.adapter;
import android.content.Context;
import android.view.View;
import android.widget.TextView;
import com.yunyisheng.app.yunys.R;
import com.yunyisheng.app.yunys.project.bean.PeriodicTaskBean;
import com.yunyisheng.app.yunys.tasks.activity.CreateDeviceTaskAcitvity;
import... | true |
114a45aa14b297fb40e019fb8130a87b6a2d0644 | Java | felixvelasco/test | /plugins/model/com.vectorsf.jvoice.base.model/src-gen/com/vectorsf/jvoice/model/base/impl/BaseFactoryImpl.java | UTF-8 | 6,206 | 1.8125 | 2 | [] | no_license | /**
*/
package com.vectorsf.jvoice.model.base.impl;
import com.vectorsf.jvoice.model.base.*;
import java.util.Map;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EDataType;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.EPackage;
import org.eclipse.emf.ecore.impl.EFactoryImpl;
... | true |
218de1b3e22f38336c2b7ec707080ee4de3842d6 | Java | Artemi10/product-shop-images | /src/main/java/devanmejia/prodctshopimages/service/google_drive/GoogleDriveStorageImpl.java | UTF-8 | 1,815 | 2.59375 | 3 | [] | no_license | package devanmejia.prodctshopimages.service.google_drive;
import com.google.api.client.http.FileContent;
import com.google.api.services.drive.Drive;
import com.google.api.services.drive.model.File;
import devanmejia.prodctshopimages.service.file_system.BufferedStorage;
import org.springframework.beans.factory.annotati... | true |
748adad77442fc6d86dd2b571d9ce55d131510ac | Java | Sodacooky/JavaChatRoom | /src/com/Common/Tool.java | UTF-8 | 348 | 2.578125 | 3 | [] | no_license | package com.Common;
public class Tool {
//将所有\n转义为[[!BR]]
public static String transBreakRow(String str) {
return str.replaceAll("\n", "[[!BR]]");
}
//将所有的[[!BR]]恢复为\n
public static String recoverBreakRow(String str) {
return str.replaceAll("\\[\\[!BR]]", "\n");
}
}... | true |
4e43ac213e36ba28f93e8b97aa5d0c760de0cb70 | Java | shilang/ruoyi | /ruoyi-exam/src/main/java/com/ruoyi/exam/domain/ExamUser.java | UTF-8 | 2,626 | 2.125 | 2 | [
"MIT"
] | permissive | package com.ruoyi.exam.domain;
import com.ruoyi.system.domain.SysUser;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.domain.BaseEntity;
import java.util.Date;
/**
* 考试人员表 exam_exam_user
*
* @author ruoyi
* @date 2019-0... | true |
309695a47fc22b978abcbbda44c68e833b992d40 | Java | prettyRain/java8demo | /src/com/ge/lambda/FilterStudentForPriceImpl.java | UTF-8 | 404 | 2.640625 | 3 | [] | no_license | package com.ge.lambda;
import java.math.BigDecimal;
/**
* 判断学生工资的实现类
* Created by Administrator on 2019/3/15.
*/
public class FilterStudentForPriceImpl implements FilterStudent<Student> {
@Override
public boolean test(Student student) {
if(student.getPrice().compareTo(new BigDecimal(5000)) >= 0){
... | true |
78e577d28c06d406b301d6b240a9fdb33d5aa4e7 | Java | kokoyuo/mall-manager | /src/main/java/com/kokoyuo/mall/manager/modules/product/controller/ProductAttrController.java | UTF-8 | 1,983 | 2.0625 | 2 | [] | no_license | package com.kokoyuo.mall.manager.modules.product.controller;
import com.alibaba.fastjson.JSONObject;
import com.kokoyuo.mall.manager.modules.product.entity.ProductCate;
import com.kokoyuo.mall.manager.modules.product.entity.ProductCateAttr;
import com.kokoyuo.mall.manager.modules.product.service.ProductService;
import... | true |
00de8f2bfef02f330b158d86302010912aab3287 | Java | Honlia/Zyxel-HQ | /project_report/src/main/java/cn/superfw/application/domain/UpdateLog.java | UTF-8 | 1,624 | 2.28125 | 2 | [] | no_license | package cn.superfw.application.domain;
import java.io.Serializable;
import javax.persistence.Entity;
import javax.persistence.Lob;
import javax.persistence.Table;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.annotations.Type;
@Entity
@DynamicUp... | true |
a2a1dba2d2b04490e6ca3afb3d5bfbb7aa244d13 | Java | ptuyo/TimeBase | /java/timebase/api/src/main/java/deltix/util/vsocket/TransportRecoveryFailre.java | UTF-8 | 216 | 1.609375 | 2 | [
"Apache-2.0"
] | permissive | package deltix.util.vsocket;
/**
* This exception indicates that transport recovery is failed and any additional attempts will not help.
*
* @author Alexei Osipov
*/
class TransportRecoveryFailre extends Exception {
}
| true |
d40ac0f69e747062d1d11cbe07e1f184d5033977 | Java | alexanderkrupenkov/Contacts | /app/src/main/java/de/softan/contacts/app/db/dao/impl/PhoneUserImlp.java | UTF-8 | 1,068 | 2.203125 | 2 | [] | no_license | package de.softan.contacts.app.db.dao.impl;
import android.content.ContentValues;
import android.database.sqlite.SQLiteDatabase;
import java.sql.SQLException;
import java.util.List;
import de.softan.contacts.app.db.DBHelper;
import de.softan.contacts.app.db.dao.PhoneUserI;
import de.softan.contacts.app.db.entity.Pho... | true |
c44c3d25b1bf7a2bdee03c5773e707b7f276c5e1 | Java | MisterOval/McB | /src/main/java/com/bruh/mcb/core/init/ItemInit.java | UTF-8 | 2,760 | 1.734375 | 2 | [
"MIT"
] | permissive | package com.bruh.mcb.core.init;
import com.bruh.mcb.Mcb;
import com.bruh.mcb.common.material.CustomToolMaterial;
import com.bruh.mcb.core.ItemGroup.McbItemGroup;
import com.bruh.mcb.core.ItemGroup.McbItemGroup2;
import net.minecraft.item.BlockItem;
import net.minecraft.item.Item;
import net.minecraft.item.It... | true |
5807d8aff61fef28e8a053faab962137da42d53a | Java | Otaman/Diploma-MOAB-UI | /src/main/java/com/otaman/BeginnerAddJobController.java | UTF-8 | 470 | 1.875 | 2 | [] | no_license | package com.otaman;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
@Controller
@RequestMapping(value="/beginner/create-job")
public class BeginnerAddJ... | true |
d232dc0c128903dde3618a5fc82c226128c28e10 | Java | cs2103aug2015-w09-1j/main | /src/test/LogicTest.java | UTF-8 | 26,536 | 2.796875 | 3 | [] | no_license | package test;
import static org.junit.Assert.*;
import java.util.ArrayList;
import model.*;
import org.junit.Test;
import command.TaskMemory;
import controller.Controller;
import controller.Logic;
import util.Storage;
/*
* JUnit Testing
* @@author A0111947E
*
*/
public class LogicTest {
// get instance from ... | true |