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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
d76457cd370673be46dc9aa3a16c954567099391 | Java | asifjafar/java_repo | /src/main/java/Oracle/SmallestPositiveNumber.java | UTF-8 | 1,525 | 3.703125 | 4 | [] | no_license | package Oracle;
/**
* Created by prasun.pallav on 2/28/2019.
*/
public class SmallestPositiveNumber {
static int segregate(int arr[], int size) {
int j = 0, i;
for (i = 0; i < size; i++) {
if (arr[i] <= 0) {
int temp;
temp = arr[i];
arr[... | true |
833684afa01bc73d536217ff82bf8991e29af5d7 | Java | AmaneHayashi/TianyinMap | /app/src/main/java/com/amane/bean/SearchItem.java | UTF-8 | 637 | 2.0625 | 2 | [] | no_license | package com.amane.bean;
import java.io.Serializable;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
/**
* 搜索结果类,出现在搜索列表中
* @author Amane Hayashi
*/
@Data
@NoArgsConstructor
@AllArgsConstructor(suppressConstructorProperties = true)
public class SearchItem implements Seriali... | true |
3da87c253bd0dedfaeef52bd42be56ac437ccc4d | Java | titoaesj/JumpNinja | /andgraph/src/main/java/posmobile/br/com/andgraph/AGActivityGame.java | UTF-8 | 2,390 | 2.4375 | 2 | [
"MIT"
] | permissive | /********************************************
Class: AGAtivivityGame
Description: Android activity class
Author: Silvano Maneck Malfatti
Date: 05/11/2013
********************************************/
//Engine package
package posmobile.br.com.andgraph;
//Used packages
import android.app.Activity;
impo... | true |
fb48ab30c60ce7001f5f9543c90bcccbff82a366 | Java | nimisha1796/test | /test/java/com/cts/signup/mockmvc/UserRestTestController.java | UTF-8 | 6,239 | 2.078125 | 2 | [] | no_license | package com.cts.signup.mockmvc;
import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get;
import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.post;
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.jsonPath;
import static org... | true |
986b301315c4960e76e1379f0e68512db1f86f36 | Java | emrahdmr/techproedsummer2020turkish | /src/day13whiledowhileloops/WhileLoop01.java | UTF-8 | 345 | 3.109375 | 3 | [] | no_license | package day13whiledowhileloops;
public class WhileLoop01 {
public static void main(String[] args) {
//while loop kullanarak ilk 5 sayma sayisini ekrana yazidien prog yazin
//Scanner scan = new Scanner(System.in);
int sum = 0;
int num=1;
while(num<6) {
sum= sum+num;
num++;
}
System.o... | true |
faf60a2d86f4a725adb6dd13684e0e47b2c4c856 | Java | arahansa/crawler4naverNews | /src/com/arahansa/domain/Article.java | UTF-8 | 769 | 2.25 | 2 | [] | no_license | package com.arahansa.domain;
public class Article {
private String aLink;
private String press;
private String time;
private String desc;
public Article() {
}
public String getaLink() {
return aLink;
}
public void setaLink(String aLink) {
this.aLink = aLink;
}
public String getPress() {
retur... | true |
603ef5557920ed82b3f6ba1ff53d337e2cea85c0 | Java | elsudano/Napakalaki | /src/Main.java | UTF-8 | 2,313 | 3.3125 | 3 | [] | no_license |
import gui.Dice;
import gui.NapakalakiView;
import gui.PlayerNamesCapture;
import napakalaki.Napakalaki;
public class Main {
public static void main(String[] args) {
/**
* Creamos el objeto que contendra la vista del programa.
*/
NapakalakiView napakalakiView = new NapakalakiVi... | true |
ac9ae9a40e2db63c5fa2ca2cc6ce6545015728bc | Java | imran1007/3BIN | /I314C_Design_Patterns/Revision/Seance07/src/PatternRobots.java | UTF-8 | 1,019 | 3.3125 | 3 | [] | no_license | // Director
public class PatternRobots {
public static void fight(Robot robot1, Robot robot2) {
int tick1=robot1.getFreq();
int tick2=robot2.getFreq();
while(robot2.diffLife(0)>0 && robot1.diffLife(0)>0) {
int tick=Math.min(tick1, tick2);
tick1-=tick;
tick2-=tick;
if (tick1==0) {// robot 1 feu
... | true |
05a6d707832831d06d12e7e76e3056f979ebd6cc | Java | xinpan0214/stornetonline | /src/main/java/com/ch/stornetonline/modules/app/filter/HttpServletFilter.java | UTF-8 | 1,043 | 2.046875 | 2 | [] | no_license | package com.ch.stornetonline.modules.app.filter;
import com.ch.stornetonline.modules.app.http.RequestWrapper;
import org.springframework.stereotype.Component;
import javax.servlet.*;
import javax.servlet.annotation.WebFilter;
import javax.servlet.http.HttpServletRequest;
import java.io.IOException;
@WebFil... | true |
24ecf64c0786479d7fa30feaa2f57d5fc21e2971 | Java | t617/Digital-Image-Processing | /ScaleAndQuantizeImage/src/Quantize.java | GB18030 | 1,481 | 2.984375 | 3 | [] | no_license | import javax.imageio.*;
import java.awt.image.BufferedImage;
import java.io.*;
public class Quantize {
public BufferedImage image;
public Quantize(BufferedImage img, String outputImagePath, int level) throws IOException {
testExample(img, outputImagePath, level);
}
public int changeLevelARGBToGray(int gray... | true |
9ba294bd74075f9bd202e8a2cba5ea39d276a233 | Java | gleclaire/findbugs-2.0.2 | /server/common/src/java/edu/umd/cs/findbugs/flybush/QueryServlet.java | UTF-8 | 12,245 | 1.9375 | 2 | [] | no_license | package edu.umd.cs.findbugs.flybush;
import java.io.IOException;
import java.util.Calendar;
import java.util.Date;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.SortedSet;
import java.util.TreeSet;
import java.util.concurrent.Ti... | true |
8aec9ae1bb9fe253e554d937c064552f7ef7c5a9 | Java | marciopocebon/projetos-Springboot-1 | /exemplopostconstructpredestroy/src/main/java/jardin/nicolas/exemplopostconstructpredestroy/model/Client.java | UTF-8 | 438 | 2.328125 | 2 | [
"MIT"
] | permissive | package jardin.nicolas.exemplopostconstructpredestroy.model;
import lombok.*;
import org.springframework.stereotype.Component;
/**
* @author Nicólas
* @version 1.0
* @since 6/11/2020 - 3:19 PM
*/
//Lombok
@ToString
@Getter @Setter
@AllArgsConstructor
//Sprintboot
@Component
public class Client {
private St... | true |
f58a54b125f83233f529a72d7989f0042fbb40cd | Java | AngelBanuelos/algorithms | /src/com/tuinsomniacorp/learning/sort/QuickSort.java | UTF-8 | 2,636 | 3.3125 | 3 | [
"MIT"
] | permissive | package com.tuinsomniacorp.learning.sort;
import com.tuinsomniacorp.learning.utils.Utils;
/**
*
* @author Angel Banuelos ing.angel.banuelos@gmail.com
*/
public class QuickSort implements Sort {
private long swapCount;
private long comparisonCount;
private long executionTime;
@Overri... | true |
47b6f0ff5bcd30596205e2ea7569fc93ff96ad3c | Java | gameballers/gb-mobile-android | /gameballsdk/src/main/java/com/gameball/gameball/model/response/PlayerRegisterResponse.java | UTF-8 | 423 | 2.109375 | 2 | [] | no_license | package com.gameball.gameball.model.response;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
public class PlayerRegisterResponse {
@SerializedName("gameballId")
@Expose()
private String GameballId;
public String getGameballId() {
return Gameball... | true |
3ba3220d94c518dfcec459f31b7c961ff0444c88 | Java | JS-EDV/JHeli2D | /src/com/heligame/GamePanel.java | UTF-8 | 8,397 | 2.5 | 2 | [] | no_license | package com.heligame;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.Graphics;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.KeyEvent;
import java.awt.event.KeyListener;
import java.awt.image.BufferedImage;
import java.io.IOException;
imp... | true |
8fde4806df0ee127b3b95aace67d97c3be46281b | Java | gaopan461/netty-server | /src/main/java/core/Node.java | UTF-8 | 4,874 | 2.40625 | 2 | [] | no_license | package core;
import java.nio.charset.StandardCharsets;
import java.util.Map;
import java.util.Queue;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ConcurrentLinkedQueue;
import core.handler.MessagePackDecode;
import core.handler.ServerHandler;
import io.netty.bootstrap.ServerBootstrap;
i... | true |
f28872fd7c26f6d0e77b2a6ebbb0556dfe4da59d | Java | nolte/keenio-gateway | /src/main/java/de/noltarium/keenio/gateway/security/WebSecurityConfig.java | UTF-8 | 1,003 | 1.859375 | 2 | [] | no_license | package de.noltarium.keenio.gateway.security;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity;
import org.springframework.security.config.ann... | true |
78e6c6a75afc38aacbb419061fac0405b0b3aa9a | Java | RogerRatu/PartD | /Assignment2PartD/src/PartD.java | UTF-8 | 313 | 3.03125 | 3 | [] | no_license |
public class PartD {
public static void main(String[] args) {
System.out.println("Hi, my name is_____");
System.out.println("My favourite colour is _____");
System.out.println("My favourite mode of transportation is_____");
System.out.println("The best day of the week is_____");
}
}
| true |
7842647f9209735e7d7b0bfabc48131c5e0b97f2 | Java | jsostaric/Algebra | /NetBeansProjects/Iznimke/src/iznimke/Iznimke.java | UTF-8 | 1,472 | 3.375 | 3 | [] | no_license | package iznimke;
import java.util.ArrayList;
public class Iznimke {
public static void main(String[] args) {
/*
ArrayList<String> nizovi = new ArrayList<>();
try {
int a = 10;
int b = 0;
System.out.println(a/b);
... | true |
03a9bc174e185caa746c185d285bc60020854fbc | Java | PoisonIvysaurBridge/profsmato | /src/test/java/main/StudentTest.java | UTF-8 | 1,922 | 2.796875 | 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 main;
import dao.DataSource;
import java.beans.PropertyVetoException;
import java.io.IOException;
import java.sql.Connection;
... | true |
c2a9c96e351210f3af3562a5c7556edc6e42f6b2 | Java | Astor730/RoomLab | /src/Game/Board.java | UTF-8 | 803 | 3.296875 | 3 | [] | no_license | package Game;
import Rooms.Room;
import Rooms.WinningRoom;
public class Board
{
public Room[][] map = new Room[5][5];
private int x;
private int y;
public Board(int x,int y,Room[][]map)
{
this.x = x;
this.y = y;
this.map = map;
}
public void makeMap()
{
fo... | true |
04eb328c2d41c069da73d5f25883d40422f31240 | Java | aarontoko/AndrewMac | /ACSWeiler/src/Lab11/TriangleFive.java | UTF-8 | 558 | 3.171875 | 3 | [] | no_license |
package Lab11;
public class TriangleFive {
// this lab is setup with a single static method
// there are no instance variables or additional methods / constructors
public static String createTriangle5(String let, int size) {
String output = "";
int count = 0;
int count2 = 0;
char test = let.charAt(0);
... | true |
4ca497b0646139463b4fa9ee6e55751621b9daa6 | Java | gerker/onlineMall | /src/main/java/com/zyt/service/impl/orderTaskAndTaskItems/impl/OrderTaskDetailsServiceImpl.java | UTF-8 | 3,009 | 2.109375 | 2 | [] | no_license | package com.zyt.service.impl.orderTaskAndTaskItems.impl;
import com.zyt.entity.OrderTaskDetail;
import com.zyt.mapper.OrderTaskDetailMapper;
import com.zyt.service.orderTaskAndTaskItems.OrderTaskDetailsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service... | true |
19f708bfdc4e368e8c7867696108089b7365809d | Java | clilystudio/NetBook | /allsrc/com/ushaqi/zhuishushenqi/model/GirlTopicList.java | UTF-8 | 646 | 2.015625 | 2 | [
"Unlicense"
] | permissive | package com.ushaqi.zhuishushenqi.model;
public class GirlTopicList
{
private boolean ok;
private GirlTopicSummary[] posts;
public GirlTopicSummary[] getPosts()
{
return this.posts;
}
public boolean isOk()
{
return this.ok;
}
public void setOk(boolean paramBoolean)
{
this.ok = paramBo... | true |
424ab4a239ad31a69e60b84e6f57c55f80eb1f20 | Java | nob0dj/toby-spring-3.1 | /spring31-3.5.2/src/springbook/user/dao/JdbcContext.java | UTF-8 | 2,173 | 2.9375 | 3 | [] | no_license | package springbook.user.dao;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.SQLException;
import javax.sql.DataSource;
/**
*
* <pre>
* template과 callback의 결합
* workWithStatementStrategy과 executeSql(callback생성)을 한 클래스에서 처리해서 userDao에서 좀더 간결하게 호출할 수 있도록 한다.
* </pre>
*
* <img sr... | true |
81560f6c130a4c28720d5aad841116cdfc47483c | Java | zaitsev726/nets_lab4_test | /testVersion/src/main/java/UserInterface/InteraceController.java | UTF-8 | 8,821 | 2.65625 | 3 | [] | no_license | package UserInterface;
import NetworkPart.GlobalController;
import UserInterface.ConnectionPage.ConnectionPanel;
import UserInterface.Frames.Window;
import UserInterface.GamePage.GamePanel;
import UserInterface.MenuPage.MenuPanel;
import UserInterface.NetInfoEntryPage.NetInfoEntryPanel;
import UserInterface.NewGamePag... | true |
fa19358fee08dd9612ed4ff771fd6bc93fb53598 | Java | sridharsahu08/footballAPi | /src/main/java/com/sidd/football/footballrank/delegate/FootballApiLeagueDetailsDelegate.java | UTF-8 | 1,148 | 2.15625 | 2 | [] | no_license | package com.sidd.football.footballrank.delegate;
import java.util.List;
import org.springframework.core.ParameterizedTypeReference;
import org.springframework.http.HttpMethod;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Component;
import org.springframework.web.client.RestTem... | true |
7cf31b5c37c86ae5602ed602a4876b54be1f4850 | Java | minisu/dwdemo | /src/main/java/DemoApplication.java | UTF-8 | 495 | 2.171875 | 2 | [] | no_license | import io.dropwizard.Application;
import io.dropwizard.setup.Environment;
public class DemoApplication extends Application<DemoConfiguration> {
@Override
public void run(DemoConfiguration configuration, Environment environment) throws Exception {
environment
.jersey()
.register... | true |
8f0a297b1ec127c3d743e7b4bed1ad6246cb427f | Java | nicovanderheide/editor | /src/main/java/nl/nicovanderheide/locale/properties/editor/support/ZipFileEntry.java | UTF-8 | 386 | 2.3125 | 2 | [] | no_license | package nl.nicovanderheide.locale.properties.editor.support;
import java.io.InputStream;
public class ZipFileEntry {
private String name;
private InputStream is;
public ZipFileEntry(String name, InputStream is) {
super();
this.name = name;
this.is = is;
}
public String getName() {
retu... | true |
b2fa8f02b649671a7da78ab542879bde1d6547f6 | Java | PPPPPrerna/Check | /src/test/java/Rest/Action/Amazeee.java | UTF-8 | 897 | 1.65625 | 2 | [] | no_license | package Rest.Action;
import java.util.concurrent.TimeUnit;
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.interactions.Actions;
import org.testng.annotations.Test;
public class Amaz... | true |
3f2689feae96694389fe269f9210257538f38f05 | Java | goeh/grails-crm-core | /src/java/grails/plugins/crm/core/PagedResultList.java | UTF-8 | 1,593 | 2.234375 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2013 Goran Ehrsson.
*
* 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... | true |
401c94c90e8e657caf0467eb7055a8406ec79d79 | Java | gabrielperalta93/desafioCalidad | /src/main/java/com/gabrielperalta/desafiocalidad/controllers/HotelController.java | UTF-8 | 2,863 | 2.390625 | 2 | [] | no_license | package com.gabrielperalta.desafiocalidad.controllers;
import com.gabrielperalta.desafiocalidad.dto.HotelPayloadDTO;
import com.gabrielperalta.desafiocalidad.dto.StatusCodeDTO;
import com.gabrielperalta.desafiocalidad.exceptions.EmptySearchException;
import com.gabrielperalta.desafiocalidad.exceptions.IncorrectPlaceEx... | true |
52a6cf019c46c507d535bb493413f91ef498b92c | Java | alibaba/GraphScope | /analytical_engine/java/grape-jdk/src/main/java/com/alibaba/graphscope/ds/StringView.java | UTF-8 | 623 | 2.125 | 2 | [
"Apache-2.0",
"LicenseRef-scancode-proprietary-license",
"FSFAP",
"BSD-3-Clause-Clear",
"GPL-1.0-or-later",
"BSD-2-Clause-Views",
"Bitstream-Vera",
"MPL-2.0",
"LicenseRef-scancode-warranty-disclaimer",
"OFL-1.1",
"BSD-3-Clause",
"APAFML",
"0BSD",
"LicenseRef-scancode-free-unknown",
"CC-B... | permissive | package com.alibaba.graphscope.ds;
import static com.alibaba.graphscope.utils.CppHeaderName.VINEYARD_ARROW_UTILS_H;
import com.alibaba.fastffi.CXXHead;
import com.alibaba.fastffi.CXXOperator;
import com.alibaba.fastffi.FFIGen;
import com.alibaba.fastffi.FFIPointer;
import com.alibaba.fastffi.FFIStringProvider;
import... | true |
824acc1911f11f97aaf0ad6ec05323ea5aacabac | Java | 210712jwa/Reci-Peas_Project2 | /src/main/java/com/codekages/dao/ListOfRecipeDAO.java | UTF-8 | 2,278 | 2.25 | 2 | [] | no_license | package com.codekages.dao;
import java.util.List;
import javax.transaction.Transactional;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import com.codekages.dto.AddListOfR... | true |
39f165b2f2dfdefdb9b1710673c35011bd30bb5f | Java | mxr1047/NAO-GUI-Framework | /NAOHumanoid2/src/edu/sru/thangiah/nao/vision/CamFrameMouseAdapter.java | UTF-8 | 1,496 | 2.828125 | 3 | [] | no_license | package edu.sru.thangiah.nao.vision;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import com.aldebaran.qi.helper.proxies.ALMotion;
public class CamFrameMouseAdapter extends MouseAdapter{
private boolean movingHead = false;
private int x = 0;
private int y = 0;
private ALMotion motion;
... | true |
649be3c7afb9a9609012fe3e8da5d231dc0fdda8 | Java | PERES-Richard/APB-and-Parcoursup | /commons/src/main/java/commons/parser/ParserFile.java | UTF-8 | 9,198 | 3.046875 | 3 | [] | no_license | package commons.parser;
import commons.entity.School;
import commons.entity.Student;
import java.io.BufferedReader;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.List;
/**
* @author Damien Montoya
*/
public class ParserFi... | true |
ac3c41661cf497474bb67a73d23f6f211c4dc354 | Java | KingJA/RentManager | /app/src/main/java/com/kingja/cardpackage/util/VerifyCode.java | UTF-8 | 1,327 | 2.375 | 2 | [] | no_license | package com.kingja.cardpackage.util;
import android.util.Log;
import com.tdr.wisdome.util.CRC16M;
/**
* Description:校验码
* Create Time:2016/9/1 15:22
* Author:KingJA
* Email:kingjavip@gmail.com
*/
public class VerifyCode {
private static final String TAG = "VerifyCode";
public static String checkDevice... | true |
bccb381ea731b09b6798b04bdf6eeb5ce0dad614 | Java | shawbirendra/Design-Patterns | /DesignPatterns/src/com/training/servicelocator/InitialContext.java | UTF-8 | 420 | 2.53125 | 3 | [] | no_license | package com.training.servicelocator;
//work for any service
public class InitialContext {
public Object lookup(String jndiName) {
if (jndiName.equalsIgnoreCase("db")) {
System.out.println("Looking for DB service and crearting");
return new DBService();
} if (jndiName.equalsIgnoreCase("erp")) {
System.out... | true |
f8fbeace856e05d28f148346479f1dfa2bc26298 | Java | jdb2modi/Android-Workspace | /StudInfoPro/src/com/zaptech/studinfopro/UpdateCollegeActivity.java | UTF-8 | 3,647 | 2.203125 | 2 | [] | no_license | package com.zaptech.studinfopro;
import java.util.ArrayList;
import android.app.Activity;
import android.database.Cursor;
import android.os.Bundle;
import android.util.Log;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget... | true |
1b840eb86a58c7db7f97a0a3a7e75dfee499abbd | Java | peterkwan/Udacity-Android-PopularMovies-Stage2 | /app/src/main/java/org/peterkwan/udacity/popularmovies/MovieTrailerListAsyncTaskLoader.java | UTF-8 | 5,390 | 2.234375 | 2 | [] | no_license | package org.peterkwan.udacity.popularmovies;
import android.content.ContentResolver;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.content.AsyncTaskLoader;
import andr... | true |
e2552714115d416ba3d57c7c07c125cb40a23e5d | Java | obelisk0114/LeetCode | /src/OJ0131_0140/Single_Number.java | UTF-8 | 1,113 | 3.640625 | 4 | [] | no_license | package OJ0131_0140;
import java.util.Map;
import java.util.HashMap;
public class Single_Number {
/*
* https://en.wikipedia.org/wiki/Exclusive_or
* a ^ b = b ^ a
* a ^ (b ^ c) = (a ^ b) ^ c
* a ^ 0 = a
* a ^ a = 0
* a ^ b ^ b = a ^ 0 = a
*
* Rf :
* https://discuss.leetcode.com/topic/47560/xor-jav... | true |
80aa93327068e1a71f8cb6d4f10ffb44a4f13934 | Java | DrPrimus/korzun | /src/main/java/Headphones/JsonDecodeDemo.java | UTF-8 | 1,413 | 2.59375 | 3 | [] | no_license | package headphones;
import org.codehaus.jackson.map.ObjectMapper;
import org.json.JSONException;
import org.json.JSONObject;
import java.io.FileWriter;
import java.io.IOException;
class JsonDecodeDemo {
public static void main(String[] args) throws JSONException {
Headphones panasonik = new Headphones()... | true |
a23d77f7d19714ad43470889cc681cf5e2d86125 | Java | tsuzcx/qq_apk | /com.tencent.mm/classes.jar/com/tencent/mm/compatible/util/r.java | UTF-8 | 4,876 | 1.898438 | 2 | [] | no_license | package com.tencent.mm.compatible.util;
import com.tencent.matrix.trace.core.AppMethodBeat;
import java.io.CharArrayWriter;
import java.io.UnsupportedEncodingException;
import java.nio.charset.Charset;
import java.nio.charset.IllegalCharsetNameException;
import java.nio.charset.UnsupportedCharsetException;
imp... | true |
1dbb36fbba9dc72ff355b69fa7442c4848143458 | Java | ethayu/USACO-Practice | /Silver_Practice/src/Contiguous_Sequence.java | UTF-8 | 1,247 | 3.375 | 3 | [] | no_license | import java.util.*;
public class Contiguous_Sequence {
static boolean check (int[] temp, int[] b) {
for (int i = 0; i < b.length - temp.length; i++) {
int[] a = Arrays.copyOfRange(b, i, i + temp.length);
for (int j = 0; j < temp.length; j++) {
if (temp[j] != a[j]) br... | true |
1fbe52a2e522d4bfc4f33dcdbbc7f0dec2967840 | Java | Gingigo/lz | /algorithm/src/main/java/leetcode/leetcode/editor/cn/_104_MaximumDepthOfBinaryTree.java | UTF-8 | 843 | 3.171875 | 3 | [] | no_license | package leetcode.leetcode.editor.cn;
//给定一个二叉树,找出其最大深度。
//
// 二叉树的深度为根节点到最远叶子节点的最长路径上的节点数。
//
// 说明: 叶子节点是指没有子节点的节点。
//
// 示例:
//给定二叉树 [3,9,20,null,null,15,7],
//
// 3
// / \
// 9 20
// / \
// 15 7
//
// 返回它的最大深度 3 。
// Related Topics 树 深度优先搜索 递归
// 👍 851 👎 0
//_104_MaximumDepthOfBinaryTree
/... | true |
a27f8ce2f5309842d927673ecd7cee023bc87087 | Java | tlchun/FutureHome | /module-sign/src/main/java/com/goldze/sign/model/MqttModel.java | UTF-8 | 1,769 | 2.375 | 2 | [
"Apache-2.0"
] | permissive | package com.goldze.sign.model;
import java.io.Serializable;
public class MqttModel implements Serializable {
private int id;
private String username;
private String password;
private String showPassword;
private String salt;
private boolean isSuperuser;
private boolean created;
public int ge... | true |
436f6665c70d1c33182b38ac7d6a53ea0cce8e2c | Java | google/closure-compiler | /src/com/google/javascript/jscomp/Es6RewriteBlockScopedFunctionDeclaration.java | UTF-8 | 3,409 | 2.203125 | 2 | [
"Apache-2.0",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"GPL-1.0-or-later",
"MIT",
"CPL-1.0",
"NPL-1.1",
"MPL-1.1"
] | permissive | /*
* Copyright 2017 The Closure Compiler 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... | true |
b399cd97fdff5253f72adf729552ff8cf72639a6 | Java | igormelao/doctor-labelling-service | /src/main/java/com/doctorlabel/service/LabelProxy.java | UTF-8 | 1,055 | 2.375 | 2 | [] | no_license | package com.doctorlabel.service;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import com.doctorlabel.model.Label;
/**
*
* Interface class responsible to comunicate with a third servic... | true |
c9b8ab19533f1e0187c0673be1856ad7fb355aac | Java | ruanbaojun1105/BabySave | /src/me/hibb/mybaby/android/openIM/NotifacationListMerge.java | UTF-8 | 14,512 | 1.703125 | 2 | [] | no_license | package me.hibb.mybaby.android.openIM;
import android.content.Context;
import android.content.SharedPreferences;
import android.text.TextUtils;
import android.util.Log;
import com.alibaba.mobileim.contact.IYWContact;
import com.alibaba.mobileim.conversation.IYWConversationService;
import com.alibaba.mobileim.conversa... | true |
6c4101b6d1a7d6ec2da30cf217afc93b2875ed53 | Java | on-full-hack/rankr-backend-deprecated | /src/main/java/pl/on/full/hack/league/service/LeaguePlayerService.java | UTF-8 | 5,402 | 2.171875 | 2 | [] | no_license | package pl.on.full.hack.league.service;
import javassist.NotFoundException;
import lombok.NonNull;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import pl.on.full.hack.auth.entity.RankrUser;
import pl.on.full.hack.auth.exception.UnauthorizedException;
imp... | true |
4aae6bd52a80fbce871f628c13d07e2122053b31 | Java | trauvmfpt/proj-thymeleaf | /src/main/java/com/fpt/t1708e/photoplatform/repository/ProductRepository.java | UTF-8 | 1,761 | 2.015625 | 2 | [] | no_license | package com.fpt.t1708e.photoplatform.repository;
import com.fpt.t1708e.photoplatform.entity.Album;
import com.fpt.t1708e.photoplatform.entity.Product;
import com.fpt.t1708e.photoplatform.entity.StudioInfo;
import org.springframework.data.domain.Sort;
import org.springframework.data.jpa.repository.JpaRepository;
import... | true |
7e7049d046d2b7e2fd52a75f6033e490d25943a2 | Java | keshav1234/kpp | /src/main/java/com/emts/dao/CountryDao.java | UTF-8 | 277 | 1.820313 | 2 | [] | no_license | package com.emts.dao;
import java.util.List;
import com.emts.model.Country;
public interface CountryDao {
public void addCountryname(Country country);
public List<Object> getContent();
public void removeContent(Integer Id);
public List<Object> editContent(Integer Id);
}
| true |
c192de12df307fca2c0340d59847aa01a59a62a6 | Java | Diviercadavid/Ejercicios-Java-Primeros-Pasos | /PruebaJAVAFX/src/pruebajavafx/FXMLDocumentController.java | UTF-8 | 1,606 | 2.15625 | 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 pruebajavafx;
import java.net.URL;
import java.sql.*;
import java.util.ResourceBundle;
import javafx.event.ActionEvent;
imp... | true |
32f41312a9f7ff9494c906140e4084b1123b00e5 | Java | ntejapermana/springmvc-starter-project | /jpa-xmlconfig/src/main/java/com/starter/springmvc/persistence/domain/User.java | UTF-8 | 1,325 | 2.25 | 2 | [] | no_license | package com.starter.springmvc.persistence.domain;
import java.io.Serializable;
import java.util.Set;
import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;
@Entity
@Tab... | true |
abf34c6461f7b6549f29f42d4cba7d890bdf1c6e | Java | jingtonglong/Project | /app/src/main/java/com/jtlrm/ckd/mvp/view/activity/ForgetPasswordActivity.java | UTF-8 | 4,457 | 2.234375 | 2 | [] | no_license | package com.jtlrm.ckd.mvp.view.activity;
import android.content.Intent;
import android.os.Bundle;
import android.os.CountDownTimer;
import android.view.View;
import android.widget.EditText;
import android.widget.TextView;
import com.base.sdk.base.net.CommonObserver;
import com.base.sdk.util.ValidateUtils;
import com.... | true |
a4dd6852292e60a2df011c3c2c8a95f92797d9cb | Java | RobertZenz/Garbagecan | /slick/NoiseGeneration/src/noisegeneration/maps/Linear.java | UTF-8 | 1,978 | 2.828125 | 3 | [
"LicenseRef-scancode-public-domain"
] | permissive | /*
* Public Domain
*/
package noisegeneration.maps;
import noisegeneration.Helper;
import org.newdawn.slick.Color;
import org.newdawn.slick.GameContainer;
import org.newdawn.slick.Graphics;
import org.newdawn.slick.Image;
import org.newdawn.slick.SlickException;
/**
*
* @author Robert 'Bobby' Zenz
*/
public clas... | true |
74d9d7726b86cfae2432e51cc2d6be5a5cbe6175 | Java | micorochio/ZingAndroid | /zinglibrary/src/main/java/com/bb/zinglibrary/http/RequestCallback.java | UTF-8 | 248 | 1.882813 | 2 | [] | no_license | package com.bb.zinglibrary.http;
import retrofit2.Callback;
/**
* Created by zing on 2016/12/4.
*/
public interface RequestCallback <T> {
void onStart();
void onResponse(T o);
void onError(Throwable e);
void onCompleted();
}
| true |
65f47e3206cc15cb6ca53f43b2c7f8fb362a0fe3 | Java | ilikemovingmoving/hfnu | /zhpcxt/src/test/Test.java | UTF-8 | 544 | 2.390625 | 2 | [] | no_license | package test;
import org.apache.commons.lang.StringUtils;
public class Test {
public static void main(String[] args) {
// String s="909090";
// System.out.println(s.lastIndexOf("0")==s.length()-1);
String s="安徽省芜湖市无为县石涧镇";
System.out.println(s.split("省")[0]);
System.out.println(s.split("省")[1].sp... | true |
603e2cc9c8b629122f069f26199d7aa3d7a57d0d | Java | designwithabhishek/emailClient | /EmailClient/src/com/myapplication/controller/MainController.java | UTF-8 | 9,189 | 1.929688 | 2 | [] | no_license | package com.myapplication.controller;
import java.io.IOException;
import java.net.URL;
import java.util.Comparator;
import java.util.ResourceBundle;
import com.myapplication.controller.service.CreateAndRegisterEmailAccountService;
import com.myapplication.controller.service.FolderUpdateService;
import com.my... | true |
3d8786af819da14b8abf72449f98d1750f934156 | Java | shonore/Hotfoot | /InformationFooter.java | UTF-8 | 772 | 2.09375 | 2 | [
"Apache-2.0"
] | permissive | package net.androidbootcamp.hotfoot;
import android.app.ListActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.ListAdapter;
/**
* Created by Stephanie on 6/13/16.
*/
public class InformationFooter extends ListActivity {
... | true |
524e682fa6ad549220aa2154ae1ee49717781e43 | Java | isaaceindhoven/isaac-dotcms-advancedsearch | /src/main/java/nl/isaac/dotcms/searcher/status/TemplateStatus.java | UTF-8 | 2,065 | 2.4375 | 2 | [
"CC-BY-3.0",
"MIT"
] | permissive | package nl.isaac.dotcms.searcher.status;
import com.dotmarketing.business.APILocator;
import com.dotmarketing.business.DotStateException;
import com.dotmarketing.exception.DotDataException;
import com.dotmarketing.exception.DotSecurityException;
import com.dotmarketing.portlets.templates.model.Template;
import nl.isa... | true |
7b0f63033c2681daf3306bbdd0701a3b55d9d64e | Java | bellmit/Intkr_SAAS_BEIDEN | /com/intkr/saas/module/screen/saas/sys/StatisticsMgr.java | UTF-8 | 1,020 | 1.898438 | 2 | [
"Apache-2.0"
] | permissive | package com.intkr.saas.module.screen.saas.sys;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.intkr.saas.domain.bo.sys.StatisticsBO;
import com.intkr.saas.manager.sys.StatisticsManager;
import com.intkr.... | true |
fc53fbabc52fe61734bc9d44f2bf7a5dff2cf140 | Java | Sewriugin/HackerU_OOP | /src/com/company/Main.java | UTF-8 | 11,934 | 3.421875 | 3 | [] | no_license | /* ДЗ_Перегрузка методов ShowTime_1
package com.company;
public class Main {
public static void main(String[] args) {
// write your code here
showTime(2);
showTime(2,5);
showTime(2,5 ,8);
}
public static void showTime(int hours) {
System.out.println(hours + " -часов... | true |
9215c7d0f4c7dbf3f9513f2906feaa7c9fa9764c | Java | gorghino/diceliar | /diceLiar/src/diceliar/Board.java | UTF-8 | 3,595 | 3 | 3 | [] | no_license | package diceliar;
import java.util.concurrent.ThreadLocalRandom;
import java.util.Random;
/*
* 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 proietfb
*/
public clas... | true |
7892f5e0636d50fd784f890d793b12e6a81dec72 | Java | elifsagban/DesignPatterns | /midterm/midterm/observer/myclasses/NumberPublisherDemo.java | UTF-8 | 580 | 2.9375 | 3 | [] | no_license | package myclasses;
public class NumberPublisherDemo {
public static void main(String[] args) throws InterruptedException {
NumberPublisher subject = new NumberPublisher();
new BinaryView(subject);
new HexaDecimalView(subject);
new DecimalView(subject);
int publishCount ... | true |
38e47ca2c36a1bd3e1dc5ebce91050933d673724 | Java | nubiofs/mapfaces | /library/templates/mochafaces/src/main/java/org/mochafaces/renderkit/objectInterface/BodyDesktopHeaderRenderer.java | UTF-8 | 5,438 | 1.773438 | 2 | [] | no_license | /*
* MDweb - Open Source tool for cataloging and locating environmental resources
* http://mdweb.codehaus.org
*
* Copyright (c) 2007-2009, Institut de Recherche pour le Développement (IRD)
* Copyright (c) 2009, Geomatys
*
* This file is part of MDweb.
*
* MDweb is free software; you can redist... | true |
4d756dfc2e3eb0529c4d04b1e51655cb7a6b327e | Java | ievgen2701/spring-boot-hocon-config | /hocon-demo/src/main/java/faam/boot/hocondemo/HoconDemoApplication.java | UTF-8 | 317 | 1.757813 | 2 | [] | no_license | package faam.boot.hocondemo;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class HoconDemoApplication {
public static void main(String[] args) {
SpringApplication.run(HoconDemoApplication.class, args);
}
}
| true |
233be70bd6f3233bb2e0b0051ce751d52dfb669f | Java | saopayne/wordifi | /build/real/Nokia/N97/en_US/source/de/enough/polish/ui/itemviews/ExplodingParticlesItemView.java | UTF-8 | 4,844 | 2.109375 | 2 | [] | no_license | //#condition polish.usePolishGui
/*
* Created on Sep 16, 2007 at 3:09:31 PM.
*
* Copyright (c) 2010 Robert Virkus / Enough Software
*
* This file is part of J2ME Polish.
*
* J2ME Polish is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as pu... | true |
1a6c82d8ca23460484285af26c91853c5caf5945 | Java | bryanduxbury/hank | /src/java/com/rapleaf/hank/storage/curly/Curly.java | UTF-8 | 21,829 | 1.6875 | 2 | [] | no_license | /**
* Copyright 2011 Rapleaf
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed ... | true |
72d2e237b29f1521a0a466cc3d23a2e76e0e6a8d | Java | An-Dang/ContinuITy | /continuity.cli/src/main/java/org/continuity/cli/commands/GlobalCommands.java | UTF-8 | 5,509 | 2.296875 | 2 | [
"Apache-2.0"
] | permissive | package org.continuity.cli.commands;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.stream.Collectors;
import org.continuity.cli.config.PropertiesProvider;
import org.continuity.cl... | true |
41586429c4aa0e761d7f412da9767bf9f474f829 | Java | rayhan-ferdous/code2vec | /codebase/dataset/t1/2247_frag1.java | UTF-8 | 1,538 | 2.578125 | 3 | [] | no_license | bytes = s.getBytes();
}
bytes = decode(bytes, 0, bytes.length, options);
if (bytes != null && bytes.length >= 4) {
int head = ((int) bytes[0] & 0xff) | ((bytes[1] << 8) & 0xff00);
if (java.util.zip.GZIPInputStream.GZIP_MAGIC == head) {
ja... | true |
116c557814236b10828348ee7c6dcccbb79bc7e7 | Java | JASantacruz/ISOFT2-2021-C03 | /Presentacion/src/test/java/Presentacion/IU_CocineroTest.java | UTF-8 | 189 | 1.5625 | 2 | [] | no_license | package Presentacion;
import static org.junit.Assert.*;
import org.junit.Test;
public class IU_CocineroTest {
@Test
public void test() {
IU_Cocinero ioCoci=new IU_Cocinero();
}
}
| true |
ea51989f4649ee537ec75ec07506f0e6f278ffb3 | Java | chennh/app-web-demo | /src/main/java/com/vma/demo/web/app/router/SystemRouter.java | UTF-8 | 557 | 1.976563 | 2 | [] | no_license | package com.vma.demo.web.app.router;
import com.vma.web.mvc.router.CenterRouter;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
/**
* DESCRIPTION
*
* @author: chennaihua
* @version: 1.created by chennaihua on 2019/8/7.
*/
@Controller
@RequestMapp... | true |
9064ba1b96a874fe463abc08e3946b41861134ea | Java | BAMSU/testWeb | /src/main/java/meal/model/mealDAO.java | UTF-8 | 256 | 1.90625 | 2 | [] | no_license | package meal.model;
import java.util.List;
public interface mealDAO {
public List getMealList(int idx);
public List getMealList2(int idx);
public int insertM(mealDTO dto);
public int updateM(mealDTO dto);
public int deleteM(int idx);
}
| true |
dda6b7731e7192c1f459e80b807eff0dc56ca692 | Java | Arielce/Maintenance | /library/src/main/java/ren/solid/library/widget/RectImageView.java | UTF-8 | 593 | 2.3125 | 2 | [] | no_license | package ren.solid.library.widget;
import android.content.Context;
import android.util.AttributeSet;
import android.widget.ImageView;
public class RectImageView extends ImageView {
public RectImageView(Context context) {
super(context);
}
public RectImageView(Context context, AttributeSet attrs) ... | true |
9bb44d414697ef438cf3a7dd1255e0f7b23668d4 | Java | projectcsc571/MyselfZura | /Person.java | UTF-8 | 928 | 2.859375 | 3 | [] | no_license | package com.example.e_resumemobileapplication;
public class Person {
Contact detail;
String[] educations;
String[] skills;
String[] awards;
String[] hobbies;
String[] languages;
String[] experiences;
String imagePath;
public Person()
{}
public Person(Strin... | true |
bbd513f0eda84bbe87f60c732d0c7e3b9197a49f | Java | gonr1001/diamant | /src/dInterface/dAffectation/EventsDlg.java | UTF-8 | 5,167 | 2.046875 | 2 | [] | no_license | //package dInterface.dAffectation;
//
///**
// * <p>Title: Diamant</p>
// * <p>Description: timetable construction</p>
// * <p>Copyright: Copyright (c) 2002</p>
// * <p>Company: UdeS</p>
// * @author unascribed
// * @version 1.0
// */
//
//import java.awt.event.ActionEvent;
//
//import javax.swing.JFrame;
//
//import ... | true |
cc4b0781999f6e7afbee259794d26ab6d5666d05 | Java | ncarenton/exercices | /src/test/java/com/cracking_the_coding_itw/arrays_and_strings/MatricSet0Test.java | UTF-8 | 783 | 2.59375 | 3 | [] | no_license | package com.cracking_the_coding_itw.arrays_and_strings;
import org.junit.Assert;
import org.junit.Test;
import com.craking_the_coding_itw.arrays_and_strings.MatrixSet0;
public class MatricSet0Test {
private MatrixSet0 matrixSet0 = new MatrixSet0();
@Test
public void test() {
int[][] matrix = ne... | true |
a75fa338362a0083bd7104270f87b30f132b67bf | Java | SimonPDooley/Assignment13 | /Assignment13/src/main/java/com/coderscampus/assignment13/repository/AccountRepository.java | UTF-8 | 613 | 2.203125 | 2 | [] | no_license | package com.coderscampus.assignment13.repository;
import java.util.List;
import java.util.Set;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;
import com.coderscampus.assignment13.domain.Account;
imp... | true |
67353a6ed20a73537f5709da0e1319e45fc9eef2 | Java | SuperCraig/AndroidFile | /WaveLoadingView-master/sample/src/main/java/me/itangqi/waveloadingview/UDPSender.java | UTF-8 | 5,297 | 2.6875 | 3 | [
"Apache-2.0"
] | permissive | package me.itangqi.waveloadingview;
/**
* Created by Craig on 2017/11/2.
*/
import android.os.AsyncTask;
import android.util.Log;
import java.io.IOException;
import java.net.DatagramPacket;
import java.net.DatagramSocket;
import java.net.InetAddress;
import java.net.InterfaceAddress;
import java.net.NetworkInterfac... | true |
c287013d599e09f849dbf071a1df4fc912c1a3ea | Java | off/FreezeServer | /src/com/glenjendary/freeze/events/FreezeServer.java | UTF-8 | 3,717 | 2.671875 | 3 | [] | no_license | package com.glenjendary.freeze.events;
/* Freeze Created by Glenjendary on 4/07/2017. */
import com.glenjendary.freeze.Main;
import com.glenjendary.freeze.commands.Freeze;
import org.bukkit.ChatColor;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.b... | true |
e7e5ae353c8a88134dc9dd61cb7be310e4a2b3dd | Java | arthmalbeck/console_text_rpg | /src/view/TelaBatalha.java | ISO-8859-1 | 16,319 | 2.515625 | 3 | [] | no_license | package view;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.FlowLayout;
import java.awt.Font;
import java.text.ParseException;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JOptionPan... | true |
6a97f44cefd8c48029b718658bf06e442b52b9bc | Java | asroboy/android_ls | /app/src/main/java/com/lapaksembako/app/SyaratDanKetentuanActivity.java | UTF-8 | 1,924 | 1.851563 | 2 | [] | no_license | package com.lapaksembako.app;
import android.content.Intent;
import android.os.Build;
import android.support.v7.app.ActionBar;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.text.Html;
import android.view.MenuItem;
import android.view.View;
import android.widget.TextView;
im... | true |
68c36386db0a66f01d35c2be83c31988a279ddf5 | Java | Tirtan/semestre3 | /projet_tut/eclipse/Projet_S3/src/algopars/Controleur.java | UTF-8 | 2,698 | 3.28125 | 3 | [] | no_license | package algopars;
import java.util.Set;
import algopars.ihm.*;
import algopars.metier.*;
/**
* Classe controleur faisant la passerelle enre la partie métier et l'ihm
* @author hugo labbé
* @version 1.0, 2018-12-18
* */
public class Controleur {
/**
* Instance d'une IHMCui
* */
private IHMCui ihm;
/**
... | true |
edece5363781c71e54dc0e15c36263653f62160d | Java | PaaS-TA/PAAS-TA-PORTAL-API | /src/main/java/org/openpaas/paasta/portal/api/controller/FlagControllerV3.java | UTF-8 | 1,032 | 1.578125 | 2 | [
"Apache-2.0"
] | permissive | package org.openpaas.paasta.portal.api.controller;
import org.openpaas.paasta.portal.api.common.Common;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.RestController;
/**
* Created by cheolhan on 2019-04-24.
*/
@RestController
public class FlagControllerV3 e... | true |
d5683b9946aa65723d6f8714295531290c4c9e99 | Java | jekey/jboot | /src/main/java/io/jboot/db/model/ModelCopier.java | UTF-8 | 3,527 | 2.328125 | 2 | [
"Apache-2.0"
] | permissive | /**
* Copyright (c) 2015-2017, Michael Yang 杨福海 (fuhai999@gmail.com).
* <p>
* 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
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* ... | true |
428d24d141336e0d4193bd905dc4026fb6af2cc8 | Java | juhS/finalpjtsjh | /src/main/java/com/kh/batterflow/user/myinfo/controller/MyInfomationController.java | UTF-8 | 3,245 | 1.96875 | 2 | [] | no_license | package com.kh.batterflow.user.myinfo.controller;
import java.util.List;
import javax.servlet.http.HttpSession;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation... | true |
a7b91bfef4ae78d3e2a72d012c1e5a552059f062 | Java | RDYW81/PI_Ueb18_A1 | /Quadrat.java | UTF-8 | 184 | 2.140625 | 2 | [] | no_license |
/**
* Tragen Sie hier eine Beschreibung des Interface Quadrat ein.
*
* @author Roland Daidone, Michael Linn
* @version 1.0
*/
public interface Quadrat
{
public void berechneQuadrat();
}
| true |
2ebde2b0956954acd4f06ddf81c4f3e83fbdf7a3 | Java | utcuong3010/guru | /common/src/main/java/com/bubanking/common/configuration/RabbitConfiguration.java | UTF-8 | 2,073 | 2.21875 | 2 | [] | no_license | package com.bubanking.common.configuration;
import org.springframework.amqp.core.Binding;
import org.springframework.amqp.core.BindingBuilder;
import org.springframework.amqp.core.Queue;
import org.springframework.amqp.core.TopicExchange;
import org.springframework.amqp.rabbit.annotation.EnableRabbit;
import org.sprin... | true |
389482fafc6fa79bdfa3caf73b4aa0647c95b369 | Java | EezoME/AstroProjects | /AstroMet/src/main/java/org/astro/met/MainMetering.java | UTF-8 | 15,701 | 2.5 | 2 | [] | no_license | package org.astro.met;
import org.astro.met.model.abstracts.PlanetarySystem;
import org.astro.met.model.abstracts.PlanetarySystemObject;
import org.astro.met.model.planetary_system.SolarSystem;
import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import jav... | true |
2db91276b37f87c962f16cc3ce901c6e8e9ec5aa | Java | Nanxi-Huang/ip | /src/main/java/InvalidEventException.java | UTF-8 | 529 | 2.859375 | 3 | [] | no_license | class InvalidEventException extends DukeException{
protected String description;
public InvalidEventException(String description) {
this.description = description;
}
@Override
public String toString() {
String[] seg = description.split(" ");
if (description.length() <= 6) {... | true |
2cbf1737360d1c7642f08978fbcf31d827078b1a | Java | karpomkarpipom/interviewpanel-ms-user-service | /src/main/java/com/interviewpanel/user/controller/UserController.java | UTF-8 | 2,186 | 2.296875 | 2 | [] | no_license | package com.interviewpanel.user.controller;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.http.HttpStatus;
import org.s... | true |
1d31ac8cf3a283df0ba8387d76fbf86d01466120 | Java | ShelRoman/OldJava | /src/week4/lesson8/MyClass.java | UTF-8 | 1,157 | 3.25 | 3 | [] | no_license | package week4.lesson8;
//
public class MyClass {
// static int sStatic;
// int sNonStatic;
// public static class NestedExmple{
// public void f1(){
// }
// }
// public class InnerExmple{
// public void f2(){
// }
//
//
//
// public class MainNestedInner {
// public static void main(String[] args) {
// ... | true |
397f2aedbd52c7eb9a1ab9e1d1d72156e1900fce | Java | Shikhar7dec/Goods24MAIN | /app/src/main/java/in/goods24/common/RegisterActivity.java | UTF-8 | 6,058 | 2.046875 | 2 | [] | no_license | package in.goods24.common;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.EditText;
import android.widget.Relati... | true |
d72eb0457d6556a0f57df1d47ef781bb72014771 | Java | Ivana-Spiridonovska/web-pages | /Seminarska/SOURCE/NitkaVtora.java | UTF-8 | 791 | 3 | 3 | [] | no_license |
public class NitkaVtora implements Runnable {
private int frekvencija = 1000;
boolean animacija = false;
ApletNitka a;
private String poraka = "Втора нитка се извршува\n";
NitkaVtora(ApletNitka a) {
this.a=a;
}
public void run() {
while(true) {
t... | true |
dcff189fac84e4ea0bcba1edaf7d64eac29001ed | Java | RajenderSingh/SpringMVC | /executorservice-example/src/main/java/com/demo/Executor.java | UTF-8 | 2,522 | 2.9375 | 3 | [] | no_license | package com.demo;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.Callable;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.Future;
public class Executor {
public... | true |
856af1e22118a7c29eedef764b971ce78d2f889b | Java | narik41/blog | /src/main/java/com/treeleaf/blog/post/PostView.java | UTF-8 | 697 | 2.09375 | 2 | [] | no_license | package com.treeleaf.blog.post;
import com.treeleaf.blog.comment.CommentView;
import com.treeleaf.blog.user.User;
import org.springframework.beans.factory.annotation.Value;
import java.util.List;
import java.util.Set;
public interface PostView {
Long getId();
String getTitle();
String getDescription()... | true |
088dfd6bc8def31115c549b57c2abfa544bcbef3 | Java | SaralaBhadraiah/ashok | /CoreExamples/src/com/app/java8/optional/OptionalDemo.java | UTF-8 | 560 | 3.734375 | 4 | [] | no_license | package com.app.java8.optional;
import java.util.Optional;
public class OptionalDemo {
public static void main(String[] args) {
/*Program wtihout optional class
String str[] = new String[10];
String str1 = str[5].toLowerCase();
System.out.println(str1);*/
/*Program with optional class*/
String str2[]... | true |
d1aef06551a1cc06617d52c431376bdc7fe9f5fe | Java | WisamAlhroub/Observer-Pattern-Asssignment | /src/BlogPost.java | UTF-8 | 897 | 2.578125 | 3 | [] | no_license | import java.util.Date;
public class BlogPost {
private String name;
private String title;
private String body;
private Date postDate;
public BlogPost(String name, String title, String body, Date postDate) {
this.name = name;
this.title = title;
this.body = body;
thi... | true |
cac1c1a889aef885d5aab8894021549d429fc4c9 | Java | pugagithub/DSAlgoSamplesRepo | /src/jan2019/MyLinkedList.java | UTF-8 | 1,822 | 3.796875 | 4 | [] | no_license | package jan2019;
public class MyLinkedList {
LinkNode firstNode;
public static void main(String[] args) {
MyLinkedList ll = new MyLinkedList();
add(ll , new LinkNode(1, null));
add(ll , new LinkNode(2, null));
add(ll , new LinkNode(3, null));
add(ll , new LinkNode(4, null));
add(l... | true |