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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
0a97ae40d99d19f703186537f5f0e2b26ff90d5b | Java | MeetingShare/meet_share | /src/main/java/com/meet/common/baidu/BaiduClient.java | UTF-8 | 2,176 | 2.453125 | 2 | [] | no_license | package com.meet.common.baidu;
import java.net.URLEncoder;
import org.apache.commons.lang3.StringUtils;
import org.apache.http.HttpEntity;
import org.apache.http.HttpResponse;
import org.apache.http.client.HttpClient;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.impl.client.DefaultHttpClient;... | true |
48e7645d1bd07ff35642193e041b5947873a081c | Java | meeidol-luo/qooq | /classes2/sxq.java | UTF-8 | 6,601 | 1.710938 | 2 | [] | no_license | import android.content.BroadcastReceiver;
import com.tencent.mobileqq.hotpatch.NotVerifyClass;
import com.tencent.mobileqq.jsp.EventApiPlugin;
public class sxq
extends BroadcastReceiver
{
public sxq(EventApiPlugin paramEventApiPlugin)
{
boolean bool = NotVerifyClass.DO_VERIFY_CLASS;
}
/* Error */
pu... | true |
6c2f71530daa23af631ec5d9df4277badacee006 | Java | matevip/matecloud | /mate-core/mate-starter-sms/src/main/java/vip/mate/core/sms/config/AliSmsConfiguration.java | UTF-8 | 821 | 2.078125 | 2 | [
"Apache-2.0"
] | permissive | package vip.mate.core.sms.config;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import vip.... | true |
0203f23c884939a087f95cdf63ded8a4de11c253 | Java | mr-liux/yuchou | /yuchou-admin/src/main/java/com/youzi/yuchou/admin/service/common/BaseUserService.java | UTF-8 | 1,508 | 2.140625 | 2 | [] | no_license | package com.youzi.yuchou.admin.service.common;
import javax.servlet.http.HttpServletRequest;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.youzi.yuchou.admin.common.login.UserTokenManager;
import com.youzi.yuchou.admin.common.login.do... | true |
515ef6bef6bf846d88d3fe46902d0b1291a475d5 | Java | RyanTech/niulanshan | /siteservice/src/main/java/com/weishuncorp/common/dto/PointDto.java | UTF-8 | 2,528 | 2.546875 | 3 | [] | no_license | package com.weishuncorp.common.dto;
public class PointDto {
private int speed; // 速度 单位 m/s
private int altitude; // 海拔 单位 m
private int distance; // 距离 单位m
private int calorie; // 卡路里
private String longitude; // 经度
private String latitude; // 维度
private int duration; // 运动时长
private int heartrate; // 心率
pr... | true |
b0d01657b6b4dea8aebe6c1fd034d33e0aa623a9 | Java | raghavdce/Selenium | /src/testNG/PageTitlePrint.java | UTF-8 | 925 | 2.609375 | 3 | [] | no_license | package testNG;
import org.testng.annotations.Test;
import org.testng.annotations.BeforeClass;
import java.util.concurrent.TimeUnit;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import org.testng.annotations.AfterClass;
public class PageTitlePrint {
WebDriver driver;
@Tes... | true |
bcbc6d7cb1245177d79656228386cbf5cb55b1ac | Java | muthudevendra/BankSystem | /target/generated-sources/java/com/banksys/admin/datalayer/entity/QUserTypeAuthority.java | UTF-8 | 2,555 | 1.90625 | 2 | [] | no_license | package com.banksys.admin.datalayer.entity;
import static com.querydsl.core.types.PathMetadataFactory.*;
import com.querydsl.core.types.dsl.*;
import com.querydsl.core.types.PathMetadata;
import javax.annotation.Generated;
import com.querydsl.core.types.Path;
import com.querydsl.core.types.dsl.PathInits;
/**
* QU... | true |
56ade541249429595b9d1c80b0f8ca1928e13f89 | Java | victortalentum/aunclickdelempleo | /app/models/entities/Message.java | UTF-8 | 934 | 2.4375 | 2 | [] | no_license | package models.entities;
import utils.Utils;
import java.util.Date;
import java.util.UUID;
/**
* Created by:
* Victor Garcia Zarco - victor.gzarco@gmail.com
* Mikel Garcia Najera - mikel.garcia.najera@gmail.com
* Carlos Fernandez-Lancha Moreta - carlos.fernandez.lancha@gmail.com
* Victor Rodriguez Latorre - viy... | true |
8887ca35c7b3d30c65c027b315c7aefc66cb6a59 | Java | Dreizehn133/tester | /app/src/main/java/mobile/sti/com/sti/adapter/WelcomeScreenAdapter.java | UTF-8 | 1,884 | 2.21875 | 2 | [] | no_license | package mobile.sti.com.sti.adapter;
import android.content.Context;
import android.content.res.TypedArray;
import android.support.annotation.NonNull;
import android.support.v4.view.PagerAdapter;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView... | true |
52d52ca4c91a8051fafaa61cc642a623a478ff61 | Java | cgpllx/KHttpUtil | /src/com/kubeiwu/commontool/khttp/ImageLoaderManager.java | UTF-8 | 1,590 | 2.1875 | 2 | [] | no_license | package com.kubeiwu.commontool.khttp;
import android.content.Context;
import android.widget.ImageView;
import com.kubeiwu.commontool.khttp.DisplayImageOptions.ImageScaleType;
import com.kubeiwu.commontool.khttp.cache.BitmapCache;
import com.kubeiwu.commontool.khttp.toolbox.ImageLoader;
import com.kubeiwu.comm... | true |
f8403e89e9897cbcb41de868b17915a366618d6e | Java | andybeardness/Android-SimpleTimer | /app/src/main/java/com/beardness/app04/TM/TM.java | UTF-8 | 143 | 2.15625 | 2 | [] | no_license | package com.beardness.app04.TM;
public interface TM {
void start();
void stop();
void reset();
int getSeconds();
boolean isRun();
}
| true |
5c0e0d62697ddc85a3895c9c0850cdeceb7ae617 | Java | siguangli/Hippy | /android/sdk/src/main/java/com/tencent/mtt/hippy/views/scroll/HippyScrollViewController.java | UTF-8 | 6,392 | 1.640625 | 2 | [
"Apache-2.0",
"MIT"
] | permissive | package com.tencent.mtt.hippy.views.scroll;
import android.content.Context;
import android.text.TextUtils;
import android.view.View;
import android.view.ViewGroup;
import com.tencent.mtt.hippy.annotation.HippyController;
import com.tencent.mtt.hippy.annotation.HippyControllerProps;
import com.tencent.mtt.hippy.common.... | true |
31a26ca1d57d92047ee97a8fc57de750f67b260e | Java | pkr91/2uzubook | /2uzubook/src/controller/classroom.java | UTF-8 | 1,086 | 2.140625 | 2 | [] | no_license | package controller;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.json.simple.JSONArray;
import org.json.simp... | true |
896e6a4a5351c40707a91f93138fd38c296893e7 | Java | PhilyT/RobotWar | /plugins/src/main/java/com/m1miageprojet/plugingraphisme/attaque/GraphismeAttaqueLongue.java | UTF-8 | 473 | 2.4375 | 2 | [] | no_license | package com.m1miageprojet.plugingraphisme.attaque;
import java.awt.Color;
import java.awt.Graphics;
import com.m1miageprojet.interfacesplugins.IGraphismeAttaque;
import com.m1miageprojet.interfacesplugins.IProjectile;
public class GraphismeAttaqueLongue implements IGraphismeAttaque {
@Override
public void drawWea... | true |
e3f96405a7069e08f3f05e24f837b2737425a60e | Java | Sunny-jain/java_projects | /MyDisplay.java | UTF-8 | 306 | 2.265625 | 2 | [] | no_license | import processing.core.PApplet;
public class MyDisplay extends PApplet{
public void setup()
{
size(400,400);
background(200,200,200);
}
public void draw()
{
fill(255,255,0);
ellipse(200,200,390,390);
fill(0,0,0);
ellipse(125,125,50,70);
fill(0,0,0);
ellipse(275,125,50,70);
arc(200,280,100,100,0,PI);
}
}
| true |
a2564c3173e0721f318a87f6a960852eb5df02d6 | Java | dkdewijer/Mythology | /app/src/main/java/com/example/greekmythology/model/GodItem.java | UTF-8 | 1,529 | 2.46875 | 2 | [] | no_license | package com.example.greekmythology.model;
import androidx.annotation.NonNull;
import androidx.room.ColumnInfo;
import androidx.room.Entity;
import androidx.room.PrimaryKey;
@Entity(tableName = "gods")
public class GodItem {
@PrimaryKey
@NonNull
private String name;
@ColumnInfo
privat... | true |
f935380a0ee6587545bd2046f72fcafef1ec6183 | Java | SciGaP/seagrid-rich-client | /src/main/java/cct/tools/ui/DoubleSpinnerDialog.java | UTF-8 | 4,690 | 2.578125 | 3 | [
"Apache-2.0"
] | permissive | /* ***** BEGIN LICENSE BLOCK *****
Version: Apache 2.0/GPL 3.0/LGPL 3.0
CCT - Computational Chemistry Tools
Jamberoo - Java Molecules Editor
Copyright 2008-2015 Dr. Vladislav Vasilyev
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with... | true |
ab0434c2370bb4658d967abe5532674111cb7c6d | Java | thrap/project-euler | /src/main/java/Problem24.java | UTF-8 | 731 | 3.3125 | 3 | [] | no_license | import java.util.ArrayList;
import java.util.List;
public class Problem24 {
public static void main(String[] args) {
System.out.println(solution());
}
public static int fact(int i) {
int prod = 1;
for (int j = 2; j <= i; j++) {
prod*=j;
}
return prod;
}
public static String permuta... | true |
f7f864c2dd73f23313caad466459e188b4daee28 | Java | damiendsl/tapjumpst | /web/src/main/java/jumpstart/web/components/together/ajaxcomponentscrud/PersonEditor.java | UTF-8 | 11,819 | 1.882813 | 2 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | package jumpstart.web.components.together.ajaxcomponentscrud;
import java.text.Format;
import java.text.SimpleDateFormat;
import javax.ejb.EJB;
import jumpstart.business.domain.person.Person;
import jumpstart.business.domain.person.Regions;
import jumpstart.business.domain.person.iface.IPersonFinderServiceLocal;
imp... | true |
da0d3b96b2a250f5dc94d1f38ddef23c26935dac | Java | jaseyrae9/ISA | /server-app/src/main/java/isa/project/controller/aircompany/FlightController.java | UTF-8 | 10,878 | 2.21875 | 2 | [] | no_license | package isa.project.controller.aircompany;
import java.util.ArrayList;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import javax.validation.Valid;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Pageable;
import org.springframework.http.Ht... | true |
e04605c2190ff5c0e809e56ce4c9876684c1518b | Java | FF0504/elasticseacher | /src/main/java/com/ff/entity/Item.java | UTF-8 | 611 | 1.84375 | 2 | [] | no_license | package com.ff.entity;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.elasticsearch.index.engine.Engine;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.*;
;
import java.io.Serializable;
import java.util.Date;
@Data
@Document... | true |
655da23353c7fd85964ca543362509ae38e490b5 | Java | cuigh/lark | /lark-db/src/main/java/lark/db/sql/builder/MysqlBuilder.java | UTF-8 | 905 | 2.625 | 3 | [] | no_license | package lark.db.sql.builder;
import lark.db.sql.LockMode;
/**
* MySQL 语句生成器
*
* @author cuigh
*/
public class MysqlBuilder extends BaseBuilder {
@Override
protected void quote(BuildBuffer buffer, String name) {
buffer.addSql("`").addSql(name).addSql("`");
}
@Override
protected void li... | true |
3a05becf86b477a28e1fc2535f907d390802446b | Java | nadavvitri/OOP-Java | /ex2/src/Human.java | UTF-8 | 2,613 | 3.453125 | 3 | [] | no_license | /**
* Created by nadav vitri on 10/04/2017.
*/
import oop.ex2.GameGUI;
import java.awt.Image;
/**
* this class represent the Human SpaceShip - SpaceShip that Controlled by the user.
* The keys are: left-arrow and right-arrow to turn, up-arrow to accelerate, 'd' to fire a shot,
* 's' to turn on the shield, 'a' to ... | true |
21eb0d544ad68fb4d6b84354b4abae98ebb0cf5f | Java | geralex/SWG-NGE | /dsrc/sku.0/sys.server/compiled/game/script/theme_park/dungeon/avatar_platform/terminal_core_overload.java | UTF-8 | 3,052 | 1.9375 | 2 | [] | no_license | package script.theme_park.dungeon.avatar_platform;
import script.*;
import script.base_class.*;
import script.combat_engine.*;
import java.util.Arrays;
import java.util.Hashtable;
import java.util.Vector;
import script.base_script;
import script.library.groundquests;
import script.library.player_structure;
public cl... | true |
e0f0a3618b64e2268461fe32308ea8ad6a15484c | Java | fieldenms/tg | /platform-pojo-bl/src/main/java/ua/com/fielden/platform/domaintree/centre/analyses/impl/PivotDomainTreeRepresentation.java | UTF-8 | 9,298 | 2.3125 | 2 | [
"MIT"
] | permissive | package ua.com.fielden.platform.domaintree.centre.analyses.impl;
import java.util.Map;
import java.util.Set;
import ua.com.fielden.platform.domaintree.IDomainTreeRepresentation;
import ua.com.fielden.platform.domaintree.centre.IWidthRepresentation;
import ua.com.fielden.platform.domaintree.centre.analyses.IPivotDomai... | true |
bf7149d758a0f82d4d77594688fbdec56dfc9278 | Java | opensha/opensha-dev | /src/main/java/scratch/kevin/ucerf3/inversion/CarrizoRateHist.java | UTF-8 | 4,853 | 2.171875 | 2 | [
"BSD-3-Clause"
] | permissive | package scratch.kevin.ucerf3.inversion;
import java.awt.Color;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.EnumSet;
import java.util.List;
import java.util.Map;
import org.opensha.commons.data.CSVFile;
import org.opensha.commons.data.function.DiscretizedFunc;
import o... | true |
63a11acb18fa59540d47a538985900a84726ebb0 | Java | wamcs/Tanke | /app/src/main/java/com/lptiyu/tanke/gamedisplay/ElasticTouchListener.java | UTF-8 | 2,563 | 2.5 | 2 | [] | no_license | package com.lptiyu.tanke.gamedisplay;
import android.support.v4.view.ViewCompat;
import android.support.v7.widget.RecyclerView;
import android.view.MotionEvent;
/**
* EMAIL : danxionglei@foxmail.com
* DATE : 16/6/1
*
* @author ldx
*/
public class ElasticTouchListener implements RecyclerView.OnItemTouchListener {... | true |
35ca25a9d579fcdc45418dd531fca2ce54bc61a3 | Java | quocdaitrn/smart-library | /src/main/java/vn/hcmut/master/smartlibrary/service/impl/LibItemServiceImpl.java | UTF-8 | 3,052 | 2.21875 | 2 | [] | no_license | package vn.hcmut.master.smartlibrary.service.impl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import vn.hcmut.master.smartlibrary.dao.LibItemDao;
import vn.hcmut.master.smartlibrary.dao.LibSectionDao;
import vn.hcmut.master.smartlibrary.dao.PublisherDa... | true |
1cd3fe3aa947f0b8dad0fc28d9bb1de269dd7154 | Java | kavyabaskar/ProMPackage | /src/org/processmining/stream/core/visualizers/abstr/AbstractXSRunnableXSVisualizableVisualizer.java | UTF-8 | 2,368 | 2.515625 | 3 | [] | no_license | package org.processmining.stream.core.visualizers.abstr;
import java.awt.BorderLayout;
import javax.swing.JComponent;
import javax.swing.JPanel;
import javax.swing.JSplitPane;
import org.processmining.stream.core.interfaces.XSRunnable;
import org.processmining.stream.core.interfaces.XSVisualizable;
import ... | true |
543124fcc62393e3b65515972f91a4c832b18cfa | Java | HouMM/Hadoop | /Sort/src/BubbleSort.java | GB18030 | 635 | 3.71875 | 4 | [] | no_license |
public class BubbleSort {
/*
* ð
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
int []a={5,2,1};
//ðݺ
Bubble(a);
}
public static void Bubble(int[] a) {
//System.out.print("&&&&&&&");
// TODO Auto-generated method stub
for(int i=a.length-1;i>0;i--){
//Ȧѭ7788
... | true |
8eb859ffbcf16639fbb5862202fd1bdbc43241b2 | Java | JamesAreuming/PosManager | /PosManager/src/main/java/com/jc/pico/bean/SvcSalesDiscount.java | UTF-8 | 11,087 | 1.875 | 2 | [] | no_license | package com.jc.pico.bean;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import java.util.Date;
@JsonIgnoreProperties(ignoreUnknown = true)
public class SvcSalesDiscount {
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database column tb_svc_... | true |
2533231879ff96ed02e13fa049329e94cd1ba3ab | Java | xiafanchina/EducationManagement | /src/edu/man/controller/TeacherLoginController.java | UTF-8 | 2,393 | 2.171875 | 2 | [] | no_license | package edu.man.controller;
import java.util.List;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.Req... | true |
90468b6d32a047e8f1cbfd6d09471ecb13861608 | Java | Quireg/JavaCodeArt | /Shop/src/Main.java | UTF-8 | 1,018 | 2.84375 | 3 | [] | no_license | import java.util.ArrayList;
/**
* Created by Admin on 02.02.14.
*/
public class Main {
public static void main(String[] args) {
Store shop = new Store();
ArrayList<Good> goods = new ArrayList<Good>();
shop.setGoods(goods);
Good freedom = new Good();
freedom.setName("Своб... | true |
58d1502334c04a7390e5b26954098ffd6787302c | Java | kendarorg/Gradle101 | /demo002/startup/src/main/java/org/kendar/HelloWorld.java | UTF-8 | 185 | 1.75 | 2 | [] | no_license | package org.kendar;
public class HelloWorld {
public static void main(String[] args) {
HelloWorldService service = new HelloWorldService();
service.printHello();
}
}
| true |
f8ace922f42654085d992912f99da6dfff5ef4bc | Java | nutchy/course-android-kmitl | /lab/lab07/LazyInstagram/app/src/main/java/kmitl/lab07/chayanon58070021/lazyinstagram/Adapter/Holder.java | UTF-8 | 495 | 2.0625 | 2 | [] | no_license | package kmitl.lab07.chayanon58070021.lazyinstagram.Adapter;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.widget.ImageView;
import kmitl.lab07.chayanon58070021.lazyinstagram.R;
/**
* Created by nutchy on 10/10/2017 AD.
*/
public class Holder extends RecyclerView.ViewHolde... | true |
2b235af9667fbf3726e5fca8ed7eb6f2e75d6f5a | Java | zhaojun2066/java8 | /src/main/java/com/jufeng/java8/stream/Test.java | UTF-8 | 5,949 | 3.53125 | 4 | [] | no_license | package com.jufeng.java8.stream;
import java.util.*;
import java.util.stream.Collectors;
import java.util.stream.Stream;
/**
* 一个 Stream 只可以使用一次
* limit 截取前limit个元素
* skip 跳过skip前的元素
* Stream 有三个 match 方法,从语义上说:
*
* allMatch:Stream 中全部元素符合传入的 predicate,返回 true
* anyMatch:Stream 中只要有一个元素符合传入的 predicate,返回 true
... | true |
be6bcae7fbf951dcdb4b21fe98a54f5a8dee21ad | Java | abigailwambui/Artsy | /app/src/main/java/com/example/artsy/adapters/ArtListAdapter.java | UTF-8 | 2,777 | 2.515625 | 3 | [
"MIT"
] | permissive | package com.example.artsy.adapters;
import android.content.Context;
import android.content.Intent;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
import com.exa... | true |
6aeeb1695b8daeb9511cb0c0679d2b2e3a7ee8c9 | Java | haworth606/jfxtras | /jfxtras-icalendaragenda/src/test/java/jfxtras/internal/scene/control/skin/agenda/icalendar/base24hour/popup/PopupDeleteAllTest.java | UTF-8 | 2,777 | 2 | 2 | [
"BSD-3-Clause"
] | permissive | package jfxtras.internal.scene.control.skin.agenda.icalendar.base24hour.popup;
import static org.junit.Assert.assertEquals;
import java.time.LocalDateTime;
import java.util.stream.Collectors;
import org.junit.Test;
import javafx.scene.control.ComboBox;
import jfxtras.icalendarfx.components.VEvent;
import jfxtras.ic... | true |
0cb7b6cdcfa76b3585a22e87691fa157ed6d2c80 | Java | jankikumar/Test | /school management/src/main/java/com/school/controllers/SchoolCotroller.java | UTF-8 | 473 | 2.296875 | 2 | [] | no_license | package com.school.controllers;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;
import com.school.model.Student;
@RestController
public class SchoolCotroller {
@GetMapping("/registe... | true |
a756362bd5a59695ff932046466e1921215e35de | Java | Sadhumargi/SramanoPasaka | /app/src/main/java/com/sramanopasaka/sipanionline/sadhumargi/utils/StatePickerDialog.java | UTF-8 | 6,017 | 2.140625 | 2 | [] | no_license | package com.sramanopasaka.sipanionline.sadhumargi.utils;
import android.app.Dialog;
import android.content.Context;
import android.os.Bundle;
import android.support.v7.widget.AppCompatEditText;
import android.support.v7.widget.AppCompatTextView;
import android.support.v7.widget.LinearLayoutManager;
import android.supp... | true |
d61e48333026927e233b425e318d16dc2b28c80a | Java | thisisdaleb/brainfInterpreter | /src/brainfInput/brainfInput.java | UTF-8 | 456 | 2.890625 | 3 | [
"MIT"
] | permissive | package brainfInput;
import java.util.Scanner;
public class brainfInput {
public static void main(String[] args) {
Scanner reader = new Scanner(System.in);
System.out.println("input the line of code: ");
String input=reader.nextLine();
Interpreter interpreter = new Interpreter(input);
interpreter.setCode(... | true |
bdccb0464db2fff7f992947808d2e618e629f0df | Java | bang784/chapter01 | /src/com/javaex/ex04/Ex04.java | UTF-8 | 380 | 3.390625 | 3 | [] | no_license | package com.javaex.ex04;
public class Ex04 {
public static void main(String[] args) {
// TODO Auto-generated method stub
int sum=0;
int i;
for(i=1; i<=10; i++) {
sum = sum + i;
System.out.println
(i + " 까지의 합은 " + sum);
}
System.out.println("1부터 " + (i-1) + "까지의 정수의 합은 " + s... | true |
2ba524d1ae3b9192a7f547781a320fa38f9098ef | Java | zhoudy-github/passive | /PassiveLocation/app/src/main/java/com/synway/passive/location/utils/FormatUtils.java | UTF-8 | 16,774 | 2.453125 | 2 | [] | no_license | package com.synway.passive.location.utils;
import android.Manifest;
import android.annotation.SuppressLint;
import android.content.Context;
import android.content.pm.PackageManager;
import android.support.v4.app.ActivityCompat;
import android.telephony.TelephonyManager;
import android.text.TextUtils;
import com.synwa... | true |
f0d807480d98e151851c0cdf3243cc02018b2ed2 | Java | vinayraaz/MyWallet | /app/src/main/java/com/mywallet/PayMoney_Activity.java | UTF-8 | 998 | 1.851563 | 2 | [] | no_license | package com.mywallet;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.LinearLayout;
/**
* Created by admin on 02-May-18.
*/
public class PayMoney_Activity extends Ap... | true |
39d7caf3fbb7d04719df4d3a4953df002b3dbd60 | Java | pro100bega/webProject | /Hospital/src/by/htp6/hospital/dao/factory/AddNewPatientFactory.java | UTF-8 | 1,533 | 2.5 | 2 | [] | no_license | package by.htp6.hospital.dao.factory;
import org.apache.log4j.LogManager;
import org.apache.log4j.Logger;
import by.htp6.hospital.constant.ErrorMessage;
import by.htp6.hospital.constant.Technology;
import by.htp6.hospital.dao.AddNewPatientDAO;
import by.htp6.hospital.dao.factory.exception.WrongTechnologyExcep... | true |
ae0993eec8e6be77ebe388320f0a5cc7159d11ad | Java | silvanetro/MyHouseReply | /app/src/main/java/ro/diamondtech/myhousereply/adapters/MyHouseRoomAdapter.java | UTF-8 | 12,289 | 2.125 | 2 | [] | no_license | package ro.diamondtech.myhousereply.adapters;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.net.Uri;
import android.support.v7.widget.RecyclerView;
import android.text.Editable;
import android.text.TextWatcher;
import android.view.LayoutInflater;
i... | true |
eef55e2d68275f25b592f5e022edb3f1747faeae | Java | lisongting/Android-Projects | /Service_BroadcastRev/SmsManager/src/main/java/cn/ssdut/lst/monitorphone/MainActivity.java | UTF-8 | 1,266 | 2.15625 | 2 | [] | no_license | package cn.ssdut.lst.monitorphone;
import android.app.PendingIntent;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.telephony.SmsManager;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widg... | true |
a69a902332a5aff337a388d0d4c68c4db85e0b55 | Java | NoExitTV/D7038E | /FC_Project/src/mygame/GameClient.java | UTF-8 | 21,654 | 2.015625 | 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 mygame;
import com.jme3.animation.AnimChannel;
import com.jme3.animation.AnimControl;
import com.jme3.animation.AnimEventListe... | true |
d0036207391033faa5f40bfea2c936dd2a190178 | Java | sohutv/mqcloud | /mq-cloud/src/main/java/com/sohu/tv/mq/cloud/bo/AuditResendMessageConsumer.java | UTF-8 | 527 | 1.867188 | 2 | [
"Apache-2.0"
] | permissive | package com.sohu.tv.mq.cloud.bo;
/**
* 重发消息给消费者
*
* @author yongfeigao
* @date 2019年11月5日
*/
public class AuditResendMessageConsumer {
private long aid;
private long consumerId;
public long getAid() {
return aid;
}
public void setAid(long aid) {
this.aid = a... | true |
afd72c0620ef69f1bbe77cdb521e959781aadf05 | Java | nghephamvan/Android_skypeForBussiness | /app/src/main/java/com/example/tma/skypeforbusiness/SkypeforBusinessService.java | UTF-8 | 15,908 | 2.078125 | 2 | [] | no_license | package com.example.tma.skypeforbusiness;
import android.app.Service;
import android.content.Intent;
import android.os.Handler;
import android.os.IBinder;
import android.os.Message;
import android.os.Messenger;
import android.os.RemoteException;
import android.util.Log;
import com.example.tma.skypeforbusiness.model.E... | true |
37821c23314d547460b703712b1e9b390d2b7854 | Java | Ikmlkrm/OOPProjectSI | /SpaceInvaders-master/GameMaking2/src/core/Shot.java | UTF-8 | 242 | 2.234375 | 2 | [] | no_license | package core;
import libs.Sprite;
import javafx.scene.image.Image;
public class Shot extends Sprite {
public Shot() {
super.imgPath = "/core/enemyLaser.png";
super.setImage(new Image(imgPath));
}
}
| true |
dcc5e2c61a6450158da17d1200d1af2ddf20a444 | Java | jjohnson509/Classroom_Inventory | /InventorySystem/src/edu/ccd/model/database/InventoryDatabaseMySQL.java | UTF-8 | 15,484 | 2.578125 | 3 | [] | no_license | package edu.ccd.model.database;
import edu.ccd.appUI.AppUIMainWindow;
import edu.ccd.contracts.InventoryDatabaseInterface;
import edu.ccd.model.security.Role;
import edu.ccd.model.SerializedItem;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
import... | true |
3bfef3174db1dccc0ceb64677054f2f38c6b9a76 | Java | rizwanc/CS213 | /Chess/src/pieces/Bishop.java | UTF-8 | 1,627 | 3.015625 | 3 | [] | no_license | package pieces;
/**
*
* @author Rizwan Chaudry
*
*/
import model.Board;
public class Bishop extends AbstractPiece {
public String possibleMoves(int i, int l){
String list="";
String oldPiece;
int r = i;
int c = l;
int temp = 1;
for(int j = -1; j <= 1 ; j+=2){
... | true |
f230a3ce14f9e27c701f618be2e96cacd797e276 | Java | KarimGhallab/Projet_ALGAV | /src/Ex5_arbre_de_recherche/Main.java | UTF-8 | 1,073 | 3.0625 | 3 | [] | no_license | package Ex5_arbre_de_recherche;
import java.util.Vector;
import Ex1_echauffement.Cle128Bit;
import Ex1_echauffement.FileConverter;
import autres.CleInteger;
import interfaces.ICle;
public class Main {
public static void main(String[] args) throws InsertionException {
mainCleInteger();
mainCle128();
}
publi... | true |
9c840e8c4563c3eeca5a8bfe8b089f22df794cfe | Java | iamhuwjones/hermes | /corvus-sfrm/src/main/java/hk/hku/cecid/edi/sfrm/dao/SFRMMessageDAO.java | UTF-8 | 4,318 | 2.421875 | 2 | [
"BSD-2-Clause"
] | permissive | /**
* Provides inferace for the database access object (DAO and DVO)
* for the database layer.
*/
package hk.hku.cecid.edi.sfrm.dao;
import java.util.List;
import hk.hku.cecid.piazza.commons.dao.DAO;
import hk.hku.cecid.piazza.commons.dao.DAOException;
/**
* The Interface of SFRM message dao.
*
* Creation D... | true |
da062175456879e335b6d97c664955866c8bfb8a | Java | bodar/totallylazy | /test/com/googlecode/totallylazy/collections/AVLTreeTest.java | UTF-8 | 2,547 | 2.8125 | 3 | [
"Apache-2.0"
] | permissive | package com.googlecode.totallylazy.collections;
import com.googlecode.totallylazy.Option;
import com.googlecode.totallylazy.Pair;
import org.junit.Test;
import static com.googlecode.totallylazy.Option.some;
import static com.googlecode.totallylazy.Pair.pair;
import static com.googlecode.totallylazy.collections.AVLTre... | true |
4ee1024509a076bcd858cfaf518ce3ab705354d2 | Java | alexander1231/android_Restaurant | /app/src/main/java/com/example/alexander/pkexares/PkExaRes/MainActivity.java | UTF-8 | 2,081 | 2.3125 | 2 | [] | no_license | package com.example.alexander.pkexares.PkExaRes;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.ListView;
import android.widget.TextView;
import android.widget.Toast;
import com.example.alexander.pkexares.R;
import com.example.alexander.pkexa... | true |
383cc0f32919ac7f71ef549e64c28341f2b7e1c2 | Java | apache/servicemix-components | /bindings/servicemix-truezip/src/main/java/org/apache/servicemix/truezip/TrueZipPollerEndpoint.java | UTF-8 | 8,149 | 1.976563 | 2 | [
"Apache-2.0"
] | permissive | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | true |
d0be2cb743b2f989c29924ecee469e2d4b84a01c | Java | panzhigao/my_forum | /src/main/java/vip/panzhigao/study/entity/Article.java | UTF-8 | 2,212 | 2.1875 | 2 | [] | no_license | package vip.panzhigao.study.entity;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import javax.validation.cons... | true |
8c8e14d3b388df80837e88fb6250fa5aeb45a2ab | Java | strawberry4/newtest | /src/main/java/Manager/FooImpl.java | UTF-8 | 309 | 2.671875 | 3 | [] | no_license | package Manager;
public class FooImpl implements Foo {
@Override
public void doAction() {
System.out.println("in Fooimpl doAction");
}
@Override
public String seesomething(String name) {
System.out.println("in Fooimpl see "+name);
return name+" Fooimpl";
}
}
| true |
35657580aec3b460a63dcd9f21b2698bf8b619a0 | Java | notima/camel-adapters | /camel-utils/src/main/java/org/notima/camel/processor/AttachmentProcessor.java | UTF-8 | 1,886 | 2.59375 | 3 | [
"Apache-2.0"
] | permissive | package org.notima.camel.processor;
import java.io.File;
import java.io.FileOutputStream;
import java.util.Map;
import javax.activation.DataHandler;
import org.apache.camel.Exchange;
import org.apache.camel.Message;
import org.apache.camel.Processor;
/**
* Saves attachments from an exchange (that could represent a... | true |
e1faae17a3915ab4aaa9f6bf523ddba4ff856393 | Java | dabisa/Backgammon | /bglib/src/main/java/com/dkelava/backgammon/bglib/nn/OutputCoder.java | UTF-8 | 306 | 1.75 | 2 | [] | no_license | package com.dkelava.backgammon.bglib.nn;
import com.dkelava.backgammon.bglib.model.BackgammonState;
import com.dkelava.backgammon.bglib.model.Color;
import org.nd4j.linalg.api.ndarray.INDArray;
public interface OutputCoder {
int getSize();
INDArray encode(BackgammonState state, Color color);
}
| true |
3de7720a5cfa7f3d044417fc7c8fb2452584b57e | Java | ShaftHQ/SHAFT_ENGINE | /src/main/java/com/shaft/properties/internal/Jira.java | UTF-8 | 4,074 | 1.710938 | 2 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | package com.shaft.properties.internal;
import com.shaft.tools.io.ReportManager;
import org.aeonbits.owner.Config.Sources;
import org.aeonbits.owner.ConfigFactory;
@SuppressWarnings("unused")
@Sources({"system:properties", "file:src/main/resources/properties/JiraXRay.properties", "file:src/main/resources/properties/de... | true |
5a8e259ddc774c5c86dbf36bbd4a209b37a44e28 | Java | miguelafr/mbt_erlang_adapter | /java/src/framework/codecadapter/erlangtypes/TupleElement.java | UTF-8 | 327 | 2.09375 | 2 | [] | no_license | package framework.codecadapter.erlangtypes;
import java.util.List;
public class TupleElement implements Element {
private List<Element> elements;
public TupleElement(List<Element> elements) {
this.elements = elements;
}
public List<Element> getElements() {
return elements;
... | true |
d3b58455d0b24b6bfa4239236fa1d1a03dfbda71 | Java | zhongxingyu/Seer | /Diff-Raw-Data/2/2_6f5d08a951795f2c17cbc496bcc2e70aefbafcf3/ExtractionTube/2_6f5d08a951795f2c17cbc496bcc2e70aefbafcf3_ExtractionTube_t.java | UTF-8 | 3,474 | 2.3125 | 2 | [] | no_license | package schmoller.tubes.types;
import codechicken.multipart.IRedstonePart;
import codechicken.multipart.RedstoneInteractions;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraftforge.common.ForgeDirection;
import schmoller.tubes.ITubeConnectable;
import schmoller... | true |
54f2edbc9fdda24ae2c9cb2ed0b5a400d50f0769 | Java | aolmez/AkkaBank | /src/main/java/com/fabiogouw/bank/adapters/actors/AccountActor.java | UTF-8 | 6,894 | 2.328125 | 2 | [] | no_license | package com.fabiogouw.bank.adapters.actors;
import java.math.BigDecimal;
import java.util.UUID;
import java.util.concurrent.CompletableFuture;
import com.fabiogouw.bank.adapters.actors.messages.AccountMessage;
import com.fabiogouw.bank.adapters.actors.messages.BalanceRequest;
import com.fabiogouw.bank.adapters.actors... | true |
7a7d0acfdba8924cfe3ba90ee536958466e9da8c | Java | dang3tion/SoftwareEngineering_Project | /src/connection/ConnectionPool.java | UTF-8 | 1,811 | 3.109375 | 3 | [] | no_license | package connection;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
import java.util.LinkedList;
import java.util.Queue;
import setup.Config;
public class ConnectionPool {
// danh sách các single connection �ANG TR�NG trong một connection Pool
private static Queue<Co... | true |
f0d8718370251cc72d3d119cc6282dc972b5ec9f | Java | atkiret/alls | /BinarySearch.java | UTF-8 | 2,339 | 3.796875 | 4 | [] | no_license | import java.util.Scanner;
public class BinarySearch {
static int counter, num, item, array[], first, last, middle;
static Scanner input = new Scanner(System.in);
public static void main(String args[]){
BinarySearch sobj=new BinarySearch();
sobj.input();
sobj.bsearch();
}
public void inpu... | true |
3118745bd2b3acf5212054a1cf12148e617d8fab | Java | zhongdj/madz-garbagies | /CRMP-glassfishv2-flex-blazeds/MADZ_ENTERPRISE_APPLICATIONS/CRMP/ETLAgent/test/net/madz/etl/demo/UnitOfProjectPrinter.java | UTF-8 | 2,847 | 2.1875 | 2 | [] | no_license | package net.madz.etl.demo;
import java.util.Calendar;
import java.util.Date;
import net.madz.client.pr2invoice.delegate.Pr2InvoiceDelegate;
import net.madz.service.pr2invoice.AllAccountRunTaskTO;
import com.sun.appserv.security.ProgrammaticLogin;
public class UnitOfProjectPrinter {
public static void ... | true |
96fcdcc9a7d4bac512ab37bb74faa24b80750e99 | Java | kleekich/Listodo | /app/src/main/java/com/example/kangsik/listodo/TaskAdapter.java | UTF-8 | 3,058 | 2.375 | 2 | [
"Apache-2.0"
] | permissive | package com.example.kangsik.listodo;
import android.content.Context;
import android.database.Cursor;
import android.graphics.Color;
import android.support.v4.widget.CursorAdapter;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget... | true |
bdf599795612a8f90c24c9698e3e32aa53846f08 | Java | linux86/AndoirdSecurity | /apps_final/names.of.allah/apk/com/google/android/gms/maps/model/internal/c$a$a.java | UTF-8 | 20,237 | 1.773438 | 2 | [] | no_license | package com.google.android.gms.maps.model.internal;
import android.os.IBinder;
import android.os.Parcel;
class c$a$a
implements c
{
private IBinder ko;
c$a$a(IBinder paramIBinder)
{
ko = paramIBinder;
}
public void a(float paramFloat1, float paramFloat2)
{
Parcel localParcel1 = Parcel.obta... | true |
7e15daa10de77e0c7d5523df323f4fee050b4d77 | Java | SEnikeeva/pongclient | /pongclient/src/main/java/controller/LoginController.java | UTF-8 | 3,214 | 2.5625 | 3 | [] | no_license | package controller;
import dto.ProtocolDto;
import javafx.fxml.FXML;
import javafx.fxml.FXMLLoader;
import javafx.fxml.Initializable;
import javafx.scene.Scene;
import javafx.scene.control.Alert;
import javafx.scene.control.Button;
import javafx.scene.control.TextField;
import javafx.stage.Stage;
import java.io.DataI... | true |
b64ca38c863ea400e94c5dcefa297d279b5e033b | Java | okko883/Java_SelfPractice | /ch4/src/cc/openhome/Ex4.java | UTF-8 | 378 | 3.015625 | 3 | [] | no_license | package cc.openhome;
import java.util.Scanner;
public class Ex4 {
public static void main(String[] args) {
int[] number = {1,10,31,33,37,48,60,70,80};
Scanner console = new Scanner(System.in);
int guess, idx = -1;
guess = console.nextInt();
for(int i=0;i<number.length;i++){
if(guess==number[i]){
idx ... | true |
f8d8a1e07b2074b27894d5b4b8c796764d15aabc | Java | xianwa/netty_learning | /hello_netty_09/src/main/java/com/example/hello_netty_09/CustomDecoder.java | UTF-8 | 2,118 | 2.828125 | 3 | [] | no_license | package com.example.hello_netty_09;
import io.netty.buffer.ByteBuf;
import io.netty.channel.ChannelHandlerContext;
import io.netty.handler.codec.LengthFieldBasedFrameDecoder;
/**
* @author xian.wang
* @since 下午3:23 2021/3/15
*/
public class CustomDecoder extends LengthFieldBasedFrameDecoder {
// 判断传送客户端传送过来的数... | true |
9224f3a89eb1f4e963838fd518188f536e73b0cc | Java | nhatminh1601/Android-3d-AR-core | /app/src/main/java/com/example/location/dummy/DataGenerate.java | UTF-8 | 1,467 | 2.640625 | 3 | [] | no_license | package com.example.location.dummy;
import com.example.location.model.Image;
import com.example.location.model.Museum;
import com.example.location.model.User;
import com.google.firebase.database.DatabaseReference;
import com.google.firebase.database.FirebaseDatabase;
import java.util.ArrayList;
import java.util.List;... | true |
986d3332ed33b5320761be672abb2fdca40a80c9 | Java | tongxiaoyun/ThousandNight | /app/src/main/java/com/risenb/thousandnight/ui/found/news/fragment/NewsChildP.java | UTF-8 | 1,791 | 2.125 | 2 | [] | no_license | package com.risenb.thousandnight.ui.found.news.fragment;
import android.support.v4.app.FragmentActivity;
import com.risenb.thousandnight.beans.NewsBean;
import com.risenb.thousandnight.network.HttpBack;
import com.risenb.thousandnight.network.NetworkUtils;
import com.risenb.thousandnight.ui.PresenterBase;
import jav... | true |
c503b4180c59a10b515e117bc4a5c9be260ac474 | Java | jwdstef/SpringCloud-1 | /CloudServer/ZuulServerWay/src/main/java/com/yuhi/Application.java | UTF-8 | 797 | 1.882813 | 2 | [] | no_license | package com.yuhi;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.cloud.client.SpringCloudApplication;
import org.springframework.cloud.netflix.zuul.EnableZuulProxy;
import org.springframework.context.annotation.Bean;
import com.yuhi.access.AccessFilter;
@EnableZ... | true |
d4b64c8fa876528ecb9f46e33d3aff70278b447d | Java | sukbear/oj | /src/datastucture/matrix/SetZeroes.java | UTF-8 | 1,424 | 3.71875 | 4 | [] | no_license | package datastucture.matrix;
import java.util.ArrayList;
import java.util.List;
/***
*@ClassName SetZeroes
*@Description
* @author sukbear
* @create 2019-04-23 11:19
*/
public class SetZeroes {
/**
* 给定一个 m x n 的矩阵,如果一个元素为 0,则将其所在行和列的所有元素都设为 0。请使用原地算法。
* 输入:
* [
* [1,1,1],
* [1,0,1],... | true |
9428029ec95dd20815ff1f4b3759d12891b8a962 | Java | Drucetination/java-school | /src/main/java/homework/lab5/Main.java | UTF-8 | 280 | 2.59375 | 3 | [] | no_license | package homework.lab5;
import java.time.LocalDateTime;
public class Main {
public static void main(String[] args) {
System.out.println(DateUtil.stringToDate("19|08|2021-11:14:14:PM"));
System.out.println(DateUtil.dateToString(LocalDateTime.now()));
}
}
| true |
87cce820b9ba86f2437106aecc8201e5ae26adee | Java | umakakuturu/ms1ineureka-springcart | /spring-prosuctapp-cart/src/main/java/com/cartapp/controller/CartController.java | UTF-8 | 1,082 | 2.078125 | 2 | [] | no_license | package com.cartapp.controller;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.spring... | true |
3adc487a5b72f80edc8f49bc7a11a5ba7da97db1 | Java | lyhenrique/BeautyCare | /app/src/main/java/com/beautycare/makeup/commentAdapter.java | UTF-8 | 2,220 | 2.375 | 2 | [] | no_license | package com.beautycare.makeup;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.TextView;
import com.beautycare.R;
import java.util.ArrayList;
/**
* Created by ShenLing on 2016/3/29.... | true |
3fc1335eb4dc7db11f04a7e2b1cf52f80baa8d4c | Java | munjuhyeok/CP2020Fall | /HW4/problem1/src/cpta/Grader.java | UTF-8 | 11,142 | 2.65625 | 3 | [] | no_license | package cpta;
import cpta.environment.Compiler;
import cpta.environment.Executer;
import cpta.exam.ExamSpec;
import cpta.exam.Problem;
import cpta.exam.Student;
import cpta.exam.TestCase;
import cpta.exceptions.CompileErrorException;
import cpta.exceptions.FileSystemRelatedException;
import cpta.exceptions.InvalidFile... | true |
cb6c6e11982641bb1af1f6ed565240cfbbe75a16 | Java | BenZeher/SMCP | /ServiceManager/src/smap/APCheckRegisterReport.java | UTF-8 | 27,509 | 1.820313 | 2 | [] | no_license | package smap;
import java.math.BigDecimal;
import java.sql.Connection;
import java.sql.ResultSet;
import javax.servlet.ServletContext;
import SMDataDefinition.SMMasterStyleSheetDefinitions;
import SMDataDefinition.SMTableapbatchentries;
import SMDataDefinition.SMTableapbatchentrylines;
import SMDataDefinition.SMTabl... | true |
5f37608c41a9161209ad1f8fc3c6ab938590e682 | Java | Thalassophile15/CPE2B-OS---JavaSockets | /Client.java | UTF-8 | 1,109 | 3.125 | 3 | [] | no_license | package socket;
import java.net.*;
import java.util.Scanner;
import java.io.*;
public class Client {
public static void main(String[] args) throws IOException {
System.out.println(">>> CLIENT <<<");
System.out.println();
try {
Socket st = new Socket("localhost", 5353);
PrintWrit... | true |
a23ff5dc477198293b2f58f7ba673242c0c6643e | Java | Zyzix/MultiFretIcy | /MultiFretIcy/src/plugins/masoud/multifreticy/CPStack3DVTKTransformer.java | UTF-8 | 18,332 | 2.015625 | 2 | [
"Apache-2.0"
] | permissive | /**
* Copyright 2010-2017 Perrine Paul-Gilloteaux, CNRS.
* Perrine.Paul-Gilloteaux@univ-nantes.fr
*
* This file is part of EC-CLEM.
*
* you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, ... | true |
aad799afdec712dfb7dd8c557348cddedcfa1a6f | Java | douglasxx/easylimit | /src/main/java/cn/zifangsky/easylimit/exception/session/UnknownSessionException.java | UTF-8 | 677 | 2.265625 | 2 | [
"Apache-2.0"
] | permissive | package cn.zifangsky.easylimit.exception.session;
import cn.zifangsky.easylimit.session.Session;
/**
* 未知的{@link Session}
*
* @author zifangsky
* @date 2019/3/25
* @since 1.0.0
*/
public class UnknownSessionException extends InvalidSessionException {
private static final long serialVersionUID = -59712868288... | true |
677773af7dc875e5029bd1ba56ff921efc788420 | Java | sandeep-pediredla/Web_Crawler | /core/src/main/java/com/wipro/digital/assignment/web/crawler/downloader/HttpDownloader.java | UTF-8 | 3,057 | 2.359375 | 2 | [] | no_license |
package com.wipro.digital.assignment.web.crawler.downloader;
import java.net.URI;
import java.net.URISyntaxException;
import java.util.Map.Entry;
import org.apache.http.client.config.RequestConfig;
import org.apache.http.client.methods.CloseableHttpResponse;
import org.apache.http.client.methods.HttpGet;
i... | true |
87ca2b23daa75a5082ee1c10585d40bd111c943b | Java | kelvimsfs1/TrabalhoPooFinal1Semestre | /br.com.Kelvim.radioRelogio/RadioRelogio.java | UTF-8 | 742 | 2.5 | 2 | [] | no_license | package br.com.Kelvim.radioRelogio;
import java.text.SimpleDateFormat;
import java.util.Date;
import br.com.Kelvim.display.Display;
import br.com.Kelvim.interfaceFormatter.InterfaceFormatter;
public class RadioRelogio extends RadioRelogioDisplay implements RadioRelogioFormater {
private Date hora = new ... | true |
ec2f0659c3db20ec304e5f198799abe46448d22f | Java | YFXGitHub/Maven | /SSM2/SSM使用Layui框架【一对多的关系表】/Maven41/src/main/java/com/model/Cls.java | UTF-8 | 585 | 2.453125 | 2 | [] | no_license | package com.model;
import java.util.HashSet;
import java.util.Set;
public class Cls {
private Integer cid;
private String cname;
private Set Stu = new HashSet<>(0);
public Integer getCid() {
return cid;
}
public void setCid(Integer cid) {
this.cid = cid;
}
public String getCname() {
return cname;
}
pu... | true |
1102fe48c07d6b298644bdb048f300fc9a7068d1 | Java | rukaiya2000/Competitive_Ques | /Google/FruitsIntoBasket.java | UTF-8 | 744 | 3 | 3 | [] | no_license | class Solution {
public int totalFruit(int[] tree) {
int lastfruit = 0;
int secondlastfruit = 0;
int countlast = 0;
int curr = 0;
int max = 0;
for(int fruit:tree)
{
if(fruit == lastfruit || fruit == secondlastfruit)
cur... | true |
802b1e47c3e5fbffab21509db17b9b6a04bb7902 | Java | SeppPenner/datawave | /warehouse/ingest-core/src/main/java/datawave/util/flag/InputFile.java | UTF-8 | 4,280 | 2.765625 | 3 | [
"Apache-2.0"
] | permissive | package datawave.util.flag;
import java.util.Comparator;
import org.apache.hadoop.fs.Path;
/**
* Wrapper for input file meta data
*/
public class InputFile implements Comparable<InputFile> {
long blocksize;
long filesize;
private Path path;
private long timestamp;
private String folder;
... | true |
d675e5717292daa1be5daefc4348039473473225 | Java | pros4o/basejava | /src/com/test/webapp/model/SectionType.java | UTF-8 | 507 | 2.515625 | 3 | [] | no_license | package com.test.webapp.model;
public enum SectionType {
PERSONAL("Личные качества"),
OBJECTIVE("Позиция"),
ACHIEVEMENT("Достижения"),
QUALIFICATIONS("Квалификация"),
EXPERIENCE("Опыт работы"),
EDUCATION("Образование");
private final String sectionName;
SectionType(String sectionName)... | true |
ab06e27b38c31d58265174ebbf3b28160af71146 | Java | sesamegu/snippets | /src/main/java/com/mikegu/pratice/SpiTest.java | UTF-8 | 464 | 2.21875 | 2 | [] | no_license | package com.mikegu.pratice;
import java.sql.Driver;
import java.util.ServiceLoader;
import com.sun.org.apache.bcel.internal.generic.DREM;
/**
* Introduction:
*
* @author sesame 2022/8/3
*/
public class SpiTest {
public static void main(String[] args) {
ServiceLoader<Driver> drivers = ServiceLoader.... | true |
faa333110aaf5f52a53a51d33ef7c5a44de842f1 | Java | rickyli1/indetificationNew | /src/com/main/java/model/ResultFile.java | UTF-8 | 1,295 | 2.015625 | 2 | [] | no_license | package com.main.java.model;
public class ResultFile extends BaseModel{
private static final long serialVersionUID = 1L;
private int fileId; //文件ID
private String mongoFileId;//mongo文件id
private String mongoFileName;//文件名
private String applicationDate;//申请日期
private String repairerName;//导入修理单位名称
private Str... | true |
0d4b175a97d7662da49fd3c34a8c92554e6be4ba | Java | nguyendankha/selenium_webdriver_with_java | /src/test/java/Basic/BrowserHandling.java | UTF-8 | 3,209 | 2.75 | 3 | [] | no_license | package Basic;
import org.openqa.selenium.Dimension;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebDriver.Navigation;
import org.openqa.selenium.WebDriver.Options;
import org.openqa.selenium.WebDriver.Window;
import org.openqa.selenium.chrome.ChromeDriver;
import org.testng.annotations.AfterClass... | true |
3efb3ee75a9d7ae9b5b1744196c6b1f33f2dd07f | Java | mrmorais/java_web_examples | /JPA-Employee-Basic/src/main/java/employee/presentation/EmployeeMB.java | UTF-8 | 988 | 2.421875 | 2 | [] | no_license | package employee.presentation;
import java.io.Serializable;
import java.util.List;
import javax.annotation.PostConstruct;
import javax.faces.view.ViewScoped;
import javax.inject.Inject;
import javax.inject.Named;
import employee.Employee;
import employee.data.EmployeeDAO;
@Named
@ViewScoped
public class EmployeeMB... | true |
847ded0ae51c0068da6fa8b6a25fddba23b9d9c4 | Java | ByeongGil-Jung/Java-Design-Pattern | /Abstract-Factory-Pattern/src/concrete_class/mac/MacButton.java | UTF-8 | 377 | 2.5 | 2 | [] | no_license | package concrete_class.mac;
import abst_class.Button;
/**
* Created by IntelliJ IDEA.
* Project: Abstract-Factory-Pattern
* ===========================================
* User: ByeongGil Jung
* Date: 2018-05-24
* Time: 오전 9:21
*/
public class MacButton implements Button {
@Override
public void click() ... | true |
a8c72064fd18cacb167507d3de7c9fbf422ad7ae | Java | zhaojun168/DengZhaoJun | /mylibrary/src/main/java/com/android/app/mylibrary/broadcastreceiver/BroadcastReceiverUtil.java | UTF-8 | 2,738 | 2.71875 | 3 | [] | no_license | package com.android.app.mylibrary.broadcastreceiver;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import java.util.Map;
public class BroadcastReceiverUtil {
/**
* 发送自定义广播(无参)
* @param context
* @param broadcastNa... | true |
4591f1fc059f5f3e837af68151d81c33a8afcc85 | Java | jingdq/FreedomHistogram | /src/com/freedom/histogram/FreedomHistogramView.java | UTF-8 | 14,893 | 2.265625 | 2 | [] | no_license | package com.freedom.histogram;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import android.annotation.SuppressLint;
import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.DashPathEffect;
... | true |
fd448b61b2b46dc4add5afb02ea4680884f55785 | Java | ervinding/COMP1006 | /A4/src/com/company/MyImage.java | UTF-8 | 9,098 | 3.671875 | 4 | [] | no_license | package com.company;
public class MyImage extends Image {
private boolean[][] visited;
private int size;
private boolean colorIsBlack;
private boolean pinHoleIsBlack;
private int counter;
private Position pinHolePosition;
public MyImage(int rows, int cols){
super(rows,cols);
}
... | true |