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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
2df0eb306b80b6b0471ee5844dd9a3ef1b267460 | Java | Gokulhn/Online_book-DBMS | /onlineBook/src/onlineBook/DbOperations.java | UTF-8 | 10,533 | 2.78125 | 3 | [] | no_license | package onlineBook;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.ArrayList;
import java.util.List;
import UserOperations.buyer;
public class DbOperations implements Db... | true |
5030a79d3b71065821de84501c48ff4ae07e5f37 | Java | mrkamiali/NanoDegreeProj | /TourGuideApp2/app/src/main/java/com/android/tourguideapp/PopularActivity.java | UTF-8 | 2,472 | 2.171875 | 2 | [] | no_license | package com.android.tourguideapp;
import android.os.Bundle;
import android.support.v7.app.AlertDialog;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ImageView;
import android.widget.ListView;
import java.util.ArrayList;
public clas... | true |
1c7e920b9358f63d7704bb20e0ffa1e51d0729db | Java | BenjaminCoupry/SimuVir | /src/Global/SrcEconomie/Voierie/Route.java | UTF-8 | 379 | 1.75 | 2 | [] | no_license | package Global.SrcEconomie.Voierie;
import Global.SrcEconomie.ConstantesEco;
import Global.SrcEconomie.Hitboxes.Hitbox;
import Global.SrcEconomie.Hitboxes.LieuPhysique;
public class Route extends LieuPhysique {
public Route(Hitbox hitbox, double tempsTraversee, double x, double y) {
super(hitbox, tempsTra... | true |
68539d8ef9911bee712907546d10f27e6a2b7190 | Java | mirkosertic/Bytecoder | /classlib/java.desktop/src/main/resources/META-INF/modules/java.desktop/classes/sun/font/CoreMetrics.java | UTF-8 | 4,693 | 2.125 | 2 | [
"Apache-2.0"
] | permissive | /*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to th... | true |
58bd2d086880a39e69185b7ccce81266aabd3a5c | Java | DJBray/Breakthrough | /src/ttt/TTTMove.java | UTF-8 | 673 | 2.875 | 3 | [] | no_license | package ttt;
import game.GameMove;
import java.util.*;
public class TTTMove extends GameMove {
public int row, col;
public TTTMove(int r, int c)
{
row = r; col = c;
if (!indexOK(row) || !indexOK(col)) {
row = col = 0;
}
}
public Object clone()
{ return new TTTMove(row, col); }
public String toSt... | true |
3f4a6cb6973a3963d78fbe3ad49d9999d76a9a70 | Java | cqustzt/bos | /bos_management_parent/bos_management_service/src/main/java/com/yapengren/bos/service/take_delivery/WayBillService.java | UTF-8 | 276 | 1.679688 | 2 | [] | no_license | package com.yapengren.bos.service.take_delivery;
import com.yapengren.bos.domain.take_delivery.WayBill;
import org.springframework.data.domain.Page;
public interface WayBillService {
Page<WayBill> findPageBean(Integer page, Integer rows);
Integer save(WayBill model);
}
| true |
f95a92e845296dfbbffc2abb3587e3b0c80dbd7a | Java | develop32/Warcry | /src/com/jsneideris/warcry/stores/FriendError.java | UTF-8 | 104 | 1.578125 | 2 | [] | no_license | package com.jsneideris.warcry.stores;
public enum FriendError
{
none,
friendDoesntExist,
unknown
}
| true |
01df642419fefaeb04b99eedf3afb9e26ae91276 | Java | MCLifeLeader/CS246 | /cs246/umlet6/src/com/umlet/element/custom/EER_Entity.java | UTF-8 | 2,989 | 2.28125 | 2 | [
"MIT"
] | permissive | package com.umlet.element.custom;
import java.awt.*;
import java.util.*;
import com.umlet.control.*;
import com.umlet.element.base.Entity;
/**
* <p>Title: </p>
* <p>Description: </p>
* <p>Copyright: Copyright (c) 2001</p>
* <p>Company: </p>
* @author unascribed
* @version 1.0
*/
public class EER_Entity exte... | true |
63a0574f7c217e7c178b7ac920ca355c4880d496 | Java | krasa/joyrest | /joyrest-spring/src/main/java/org/joyrest/spring/SpringJavaConfigurer.java | UTF-8 | 1,332 | 2.46875 | 2 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | package org.joyrest.spring;
import org.joyrest.context.AbstractConfigurer;
import org.joyrest.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.annotation.Configuration;
import java.util.ArrayList;
import java.util.Collecti... | true |
790d4a5f0d32372a14a8c2caacbb086699618622 | Java | altkachuk/movielib | /app/src/main/java/com/atproj/movielib/domain/interactors/resource/ResourceGetter.java | UTF-8 | 324 | 1.882813 | 2 | [] | no_license | package com.atproj.movielib.domain.interactors.resource;
import com.atproj.movielib.domain.repository.request.ResourceRequest;
import com.atproj.movielib.domain.repository.response.ResourceResponse;
public interface ResourceGetter<AbstractResource> {
AbstractResource getResource(ResourceRequest resourceRequest);... | true |
84e11686d3368695740ab56ac63591f5214684e9 | Java | ztyzty070818/study | /src/main/java/test/Test2.java | UTF-8 | 877 | 3.046875 | 3 | [] | no_license | package test;
import java.sql.Connection;
import java.sql.DriverManager;
public class Test2 {
public static Connection getConnection() {
Connection conn = null;
try {
Class.forName("oracle.jdbc.driver.OracleDriver"); //加载数据库驱动
System.out.println("数据库驱动加载成功!"); //输出的信息
String url = "jdbc:oracle:thin:@192.... | true |
fbc6899f87b919f5c130884424d32eb21f85663a | Java | jokerpp/GreenLife | /GreenLife/src/cn/crane/application/greenlife/ui/article/ArticleListActivity.java | UTF-8 | 2,146 | 2.078125 | 2 | [] | no_license | package cn.crane.application.greenlife.ui.article;
import android.content.Context;
import android.view.View;
import android.widget.AdapterView;
import android.widget.AdapterView.OnItemClickListener;
import android.widget.Button;
import android.widget.ListView;
import android.widget.TextView;
import cn.crane.applicatio... | true |
f1355a3153395c9524ba926081519c26dbcf6109 | Java | jenish29/CodeChallenge1 | /Challenge/app/src/main/java/com/locationbasedcompany/pc/challenge/ListViewRowAdapter.java | UTF-8 | 2,705 | 2.609375 | 3 | [] | no_license | package com.locationbasedcompany.pc.challenge;
import android.content.Context;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.text.method.ScrollingMovementMethod;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import ... | true |
b35b4ddbb42f96e997b07e59f786b324ae9f55fb | Java | markuza99/projekat-ISA-MRS | /ISAMRS_PROJEKAT/src/main/java/rest/dto/AdminApotekeDTO.java | UTF-8 | 876 | 2.65625 | 3 | [] | no_license | package rest.dto;
import rest.domain.AdminApoteke;
public class AdminApotekeDTO {
private KorisnikDTO korisnik;
public AdminApotekeDTO() {
}
public AdminApotekeDTO(AdminApoteke a) {
this.korisnik = new KorisnikDTO(a);
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result ... | true |
c9e8de9c70bbf92e5bf3bfce4b8cf46e3c1f7cc9 | Java | wanghaihui/tuding | /VZhi/src/com/xiaobukuaipao/vzhi/GroupActivity.java | UTF-8 | 3,322 | 2.234375 | 2 | [] | no_license | package com.xiaobukuaipao.vzhi;
import android.graphics.Color;
import android.os.Bundle;
import android.support.v4.view.ViewPager;
import android.util.DisplayMetrics;
import android.util.TypedValue;
import com.xiaobukuaipao.vzhi.adapter.GroupFragmentPagerAdapter;
import com.xiaobukuaipao.vzhi.fragment.BaseFragment.On... | true |
fa70563b337b1c0541dccc792e80ea40c2d742e5 | Java | TheMortys/BazyDanychAplikacja | /src/sample/Controllers/CreateAccController.java | UTF-8 | 3,937 | 2.40625 | 2 | [] | no_license | package sample.Controllers;
import java.io.IOException;
import io.reactivex.Observer;
import io.reactivex.disposables.Disposable;
import io.reactivex.schedulers.Schedulers;
import javafx.event.ActionEvent;
import javafx.fxml.FXML;
import javafx.fxml.FXMLLoader;
import javafx.scene.Node;
import javafx.scene.Parent;
im... | true |
2687252969d5f5fdef932ce42ea8fcd985202bf5 | Java | tcsgis/AppStore | /src/com/changhong/util/CollectionUtils.java | UTF-8 | 1,856 | 3.234375 | 3 | [] | no_license | package com.changhong.util;
import java.util.Collection;
import java.util.Map;
public class CollectionUtils {
/**
* Returns true if the string is null or 0-length.
*
* @param str
* the string to be examined
* @return true if str is null or zero length
*/
... | true |
18522765b98f1ec55d8b3f2552151c67bde404bd | Java | littlemary1379/JspWebProject | /src/com/dailyT/action/order/sameOrderAction.java | UTF-8 | 1,144 | 2.3125 | 2 | [] | no_license | package com.dailyT.action.order;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.dailyT.action.Action;
import com.dailyT.model.Customer;
import com.dailyT.repository.OrderRepository;
import com.... | true |
e1f5c08d0822dd3130f85460a876416a4cafa2a1 | Java | slither366/PruebaUnir | /hhsur_freddy/src/venta/caja/DlgSeleccionTipoComprobante.java | ISO-8859-1 | 28,322 | 2.109375 | 2 | [] | no_license | package venta.caja;
import java.awt.Frame;
import java.awt.Dimension;
import java.awt.event.KeyAdapter;
import java.awt.event.WindowAdapter;
import java.sql.SQLException;
import java.util.*;
import javax.swing.*;
import javax.swing.JDialog;
import javax.swing.JPanel;
import java.awt.Rectangle;
import java.awt.Color;
... | true |
52916ebdff74d6bc6b16f1b60e444d54d8a73d36 | Java | jarasebastian/design-patterns | /src/main/java/patterns/creational/abstractfactory/webservices/IConnectionREST.java | UTF-8 | 200 | 1.914063 | 2 | [] | no_license | package patterns.creational.abstractfactory.webservices;
/**
* @author sebastianjara on 01-03-21
* @project design-patterns
*/
public interface IConnectionREST {
void readURL(String url);
}
| true |
7ed1b9456d2bd502def67b63a571cb234695f4c5 | Java | jlq023/publicsh | /src/main/java/com/util/InterfaceUtil.java | UTF-8 | 8,589 | 2.328125 | 2 | [] | no_license | package com.util;
import java.awt.Color;
import java.io.FileOutputStream;
import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import java.util.TreeMap;
... | true |
161f569a4becc036b7d8946e3f554b5d97481fcf | Java | tvd12/ezyfox-server-example | /one-two-three/one-two-three-app-api/src/main/java/com/tvd12/ezyfoxserver/app/constant/Commands.java | UTF-8 | 422 | 1.59375 | 2 | [
"Apache-2.0"
] | permissive | package com.tvd12.ezyfoxserver.app.constant;
public final class Commands {
public static final String JOIN_GAME = "joinGame";
public static final String ANOTHER_PLAYER_JOIN_GAME = "anotherPlayerJoinGame";
public static final String GAME_STARTED = "gameStarted";
public static final String ANSWER = "ans... | true |
971d67419c91bb44ee50cd5acf96177052a74d20 | Java | nicoledbianchin/exercise-rpg-oo | /src/main/java/bianchin/nicole/domain/Points.java | UTF-8 | 792 | 2.75 | 3 | [] | no_license | package main.java.bianchin.nicole.domain;
public class Points {
private int forcePoints;
private int agilityPoints;
private int charismaPoints;
private int concentrationPoints;
public Points(int forcePoints, int agilityPoints, int charismaPoints, int concentrationPoints){
this.forcePoints... | true |
0952834f06ac6cb4fc8194b8a5f67d98e318080c | Java | Kim-Gayoung/RPCExample_Java | /src/com/example/extrpc/Params.java | UTF-8 | 642 | 2.484375 | 2 | [] | no_license | package com.example.extrpc;
public class Params extends Value {
private Var id;
private Params ids;
public Params(Var id, Params ids) {
this.id = id;
this.ids = ids;
}
public Params(Var id) {
this.id = id;
}
public Params() {
}
public Var getId() {
return id;
}
publ... | true |
4025a6904a8fee78b720a38cf907080fb0cac862 | Java | crest-cassia/CrowdWalk | /crowdwalk/src/main/java/nodagumi/ananPJ/NetworkMap/Area/MapArea.java | UTF-8 | 3,456 | 2.578125 | 3 | [
"MIT"
] | permissive | // -*- mode: java; indent-tabs-mode: nil -*-
package nodagumi.ananPJ.NetworkMap.Area;
import java.awt.Shape;
import java.awt.geom.Line2D;
import java.awt.geom.Point2D;
import java.util.ArrayList;
import math.geom3d.Point3D;
import nodagumi.ananPJ.NetworkMap.OBNode;
import nodagumi.ananPJ.Simulator.PollutionHandler.*... | true |
d0a0b151bb9431341857a63c4962be36b8550f1f | Java | alothings/AlgorithmsPrinceton | /src/ElementarySorts_week2/Selection.java | UTF-8 | 1,043 | 3.828125 | 4 | [] | no_license | /**
* Created by alonso on 12/13/16.
* Implementation of Selection Sort using:
* - Comparable interface (most object implement Comparable)
*/
public class Selection
{
public static void sort(Comparable[] a)
{
int N = a.length;
for (int i = 0; i < N; i++)
{
int min = i;
... | true |
8011103bc8294c2cf4ded7c920942bc07d96ab6a | Java | agilepro/cognoscenti | /weaverWar/src/main/java/com/purplehillsbooks/weaver/WatchRecord.java | UTF-8 | 651 | 2.5625 | 3 | [
"Apache-2.0"
] | permissive | package com.purplehillsbooks.weaver;
import com.purplehillsbooks.json.JSONObject;
public class WatchRecord {
public String pageKey;
public long lastSeen;
public WatchRecord(String key, long seen) {
pageKey = key;
lastSeen = seen;
}
public WatchRecord(JSONObject input) ... | true |
6cf330f30fc0b6a9ebed9ef1eac709c8bc9d0718 | Java | chen7991/warehouse2 | /src/main/java/com/casic/warehouse2/controller/LoginController.java | UTF-8 | 1,182 | 2.0625 | 2 | [] | no_license | package com.casic.warehouse2.controller;
import com.casic.warehouse2.bean.User;
import com.casic.warehouse2.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.spr... | true |
4dd9bbb6dcb75e00cd4543424fa05980708f7f5f | Java | chavabc/qortal | /src/main/java/org/qortal/repository/RepositoryManager.java | UTF-8 | 2,271 | 2.65625 | 3 | [] | no_license | package org.qortal.repository;
import java.sql.SQLException;
public abstract class RepositoryManager {
private static RepositoryFactory repositoryFactory = null;
/** null if no checkpoint requested, TRUE for quick checkpoint, false for slow/full checkpoint. */
private static Boolean quickCheckpointRequested = nu... | true |
2b5e08f42751d1953ead36dfa7a19b9458744072 | Java | asksasasa83/alfresco-appcelerator-sdk | /AndroidSDKModule/src/com/alfresco/appcelerator/module/sdk/ActivityServiceProxy.java | UTF-8 | 8,631 | 1.96875 | 2 | [
"Apache-2.0"
] | permissive | /*
******************************************************************************
* Copyright (C) 2005-2013 Alfresco Software Limited.
*
* This file is part of the Alfresco Mobile SDK.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the ... | true |
5464fc676cd3f5cc378abcdf16fe5b894e0b7b4b | Java | matiasrh84/pruebas-en-git | /src/main/java/Vista/Principal.java | UTF-8 | 12,365 | 2.265625 | 2 | [] | no_license | package Vista;
import Controlador.Operaciones;
import javax.swing.DefaultListModel;
public class Principal extends javax.swing.JFrame {
DefaultListModel dlmpersonas,dlmtareas;
Operaciones oper1,oper2;
public Principal() {
initComponents();
setLocationRelativeTo(null);
... | true |
31e51432a7659c1922df8f1ad50a4e868cf48cf8 | Java | DavidCorzo/EstructuraDeDatos | /tests/src/Runner.java | UTF-8 | 148 | 1.875 | 2 | [] | no_license | public class Runner {
public static void main(String[] args) {
Stack obj = new Stack();
System.out.println(obj.ret());
}
} | true |
1adaf574365dcf0e7751b1da0fdd500e885d3b2c | Java | corpusluteum/Pirate-Island | /core/src/com/manik/controller/Scoring.java | UTF-8 | 2,413 | 2.59375 | 3 | [
"MIT"
] | permissive | package com.manik.controller;
import com.manik.states.PlayState;
public class Scoring {
private PlayState playState;
private boolean bigBooty;
private int gold=0;
private int eat=0;
private int bullet=10;
private int power=100;
private int enemyPower=2;
public Scoring(PlayStat... | true |
703051cc16780988fa0e578baf1621c15fe50529 | Java | mcarebridge/sevhaWeb | /src/test/java/test/phr/TestEncruption.java | UTF-8 | 615 | 2 | 2 | [] | no_license | package test.phr;
import com.phr.ade.security.Encrypt;
public class TestEncruption
{
public TestEncruption()
{
// TODO Auto-generated constructor stub
}
public static void main(String args[])
{
try
{
String cookieValue = Encrypt.encodeAccount("timaaah", "1q2w3e4r");
Sy... | true |
bba6417cbdad2073e97b3713e2e457064e3e592e | Java | mRasey/InstrTrans | /src/instructions/_return.java | UTF-8 | 3,016 | 2.796875 | 3 | [] | no_license | package instructions;
import op.Register;
import op.globalArguments;
import java.util.ArrayList;
/* 返回指令
返回指令指的是函数结尾时运行的最后一条指令。它的基础字节码为teturn,共有以下四条返回指令:
"return-void":表示函数从一个void方法返回。
“return vAA”:表示函数返回一个32位非对象类型的值,返回值寄存器为8位的寄存器vAA。
“return-wide vAA”:表示函数返回一个64位非对象类型的值,返回值为8位的寄存器对vAA。
“return-object vAA”:表示函数返回一... | true |
1ffc7be940fb2c5bd04f6597a5a954829f19417b | Java | LoginovAS/ConNet | /src/main/java/org/sbx/connet/entity/Node.java | UTF-8 | 2,866 | 2.625 | 3 | [] | no_license | package org.sbx.connet.entity;
import javax.persistence.*;
import java.io.Serializable;
import java.util.List;
import java.util.Objects;
@Entity
@Table(name = "nodes")
@NamedQueries({
@NamedQuery(name = "Node.getAllNodes", query = "SELECT n FROM Node n")
})
public class Node implements Serializable {
@Id... | true |
3fb25d2409658cefa8483a7a088e5e8b22ec25ef | Java | jared-noice/timing-of-sorts | /Driver.java | UTF-8 | 13,551 | 3.40625 | 3 | [] | no_license | import java.util.*;
//ORIGINAL DRIVER (first used on poster)
public class Driver{
static int[] copyOf(int[] a){
return a.clone();
}
static boolean isInt(String str){
try{
Integer.parseInt(str);
}
catch(Exception wow){
return false;
}
return true;
}
... | true |
abb32fdc15a4f440d402d7df0e287e212a29fbcb | Java | laplasianin/telegram-game-of-the-day | /src/main/java/com/laplasianin/telebot/service/actions/GoosiAction.java | UTF-8 | 1,896 | 2.375 | 2 | [] | no_license | package com.laplasianin.telebot.service.actions;
import com.laplasianin.telebot.model.TeleResult;
import com.laplasianin.telebot.model.TelegramObject;
import com.laplasianin.telebot.service.messages.MessagesServices;
import com.laplasianin.telebot.utils.RandomUtils;
import javax.inject.Inject;
import javax.inject.Sin... | true |
adcd1660def9aa624fbe1ce2371b533418044ce4 | Java | zhwanwan/jvm_lecture | /src/main/java/com/lec/jvm/bytecode/MyTest1.java | UTF-8 | 4,625 | 2.453125 | 2 | [] | no_license | package com.lec.jvm.bytecode;
/** 字节码
* $ javap com.lec.jvm.bytecode.MyTest1
* Compiled from "MyTest1.java"
* public class com.lec.jvm.bytecode.MyTest1 {
* public com.lec.jvm.bytecode.MyTest1();
* public int getA();
* public void setA(int);
* }
*
* -------------------------------------------------------... | true |
4f82cb6d3e9988465358aab674adf11330238c46 | Java | GurifYuanin/ccf | /src/simulation/On_2017_03_04.java | UTF-8 | 1,581 | 3.109375 | 3 | [] | no_license | package simulation;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Arrays;
public class On_2017_03_04 {
public static void main(String[] args) throws IOException {
BufferedReader buf = new BufferedReader(new InputStreamReader(System.in));
S... | true |
c7f4ce3ca9b16e88eade04712fba049767ad01d0 | Java | TangLiTao2810020131/NB-WATER2.0 | /nb-water-nbiot/src/main/java/com/ets/nb_iot/model/ValveControl.java | UTF-8 | 1,465 | 2.296875 | 2 | [] | no_license | package com.ets.nb_iot.model;
/**
*
* @ClassName: ValveControl.java
* @Description: 阀门(对象编码:bn:/81/0)
* @author 吴浩
* @version nb-water2.0
* @Date 2019年7月25日 下午5:14:43
*/
public class ValveControl {
private String ValveControl;// 0 阀门控制字
private String ValveCurren... | true |
31a57996ad477a09461fdda6b172643cbf046835 | Java | akapne01/Java-A-Beginner-s-Guide | /src/Ch11_Multithreaded_Programming/UseThreads.java | UTF-8 | 1,708 | 4.25 | 4 | [] | no_license | package Ch11_Multithreaded_Programming;
/*
* p. 382
* Create a thread by implementing Runnable
*/
// import org.jetbrains.annotations.Contract;
/**
* MyThread objects can be run in their own threads,
* because MyThread implements Runnable interface
*/
class MyThread implements Runnable {
String threadName;
... | true |
5cc2b0a7ef2de773f7f1e39d10e2696da009a1d8 | Java | shuhailurenjia/common-security | /src/main/java/com/wangzhong/security/SecretUtil.java | UTF-8 | 6,207 | 2.859375 | 3 | [] | no_license | package com.wangzhong.security;
import java.io.UnsupportedEncodingException;
import java.math.BigInteger;
import java.security.KeyPair;
import java.security.KeyPairGenerator;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import java.util.HashMap;
import org.apache.commons.codec.bi... | true |
4d0e071136b056f37817c531d6292d560832401b | Java | Richardjames0289/Maven | /Webthing2/src/main/java/com/example/demo/Controller/AnimalController.java | UTF-8 | 2,191 | 2.265625 | 2 | [] | no_license | package com.example.demo.Controller;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.... | true |
b9f23e67e442bd0beccf46486adab780d3a7579f | Java | poojaelkal/LeetCode-solutions | /Java/#443_compress.java | UTF-8 | 1,203 | 2.828125 | 3 | [] | no_license | class Solution {
public int compress(char[] chars) {
if(chars.length<=0) return 0;
if(chars.length==1) return 1;
int j=0;
StringBuffer sb = new StringBuffer();
int count=1;
int i;
for(i=1;i<chars.length;i++){
if(chars[i]==chars[i-1]){
... | true |
87634bf4b3355c327022da353bdf7da4fad0c521 | Java | jianyufeng/ChatRY | /app/src/main/java/com/sanbafule/sharelock/chatting/modle/message/DescriptionTxRow.java | UTF-8 | 3,942 | 1.601563 | 2 | [] | no_license | /*
* Copyright (c) 2013 The CCP project authors. All Rights Reserved.
*
* Use of this source code is governed by a Beijing Speedtong Information Technology Co.,Ltd license
* that can be found in the LICENSE file in the root of the web site.
*
* http://www.cloopen.com
*
* An additional intellectual propert... | true |
16182ba77c8f3fea49a4c18c568d24ee46718ae5 | Java | sync667/GouGou | /src/com/gmail/sync667/gougou/level/tiles/BasicSolidTile.java | UTF-8 | 293 | 2.46875 | 2 | [] | no_license | package com.gmail.sync667.gougou.level.tiles;
public class BasicSolidTile extends BasicTile {
public BasicSolidTile(int id, int x, int y, int tileColour, int levelColour, int scale) {
super(id, x, y, tileColour, levelColour, scale);
this.solid = true;
}
}
| true |
8b34ecc017d1daa861fb3894f4097c20a6f175b8 | Java | gheddie/Konto | /src/main/java/de/gravitex/accounting/resolver/BigDecimalCellValueResolver.java | UTF-8 | 370 | 2.234375 | 2 | [] | no_license | package de.gravitex.accounting.resolver;
import java.math.BigDecimal;
import org.apache.poi.ss.usermodel.Cell;
public class BigDecimalCellValueResolver implements CellValueResolver<BigDecimal> {
public BigDecimal resolveCellValue(Cell cell) {
// TODO works, but a better way?!?
return new BigDecimal(S... | true |
91e1ecbe71876954b8101890169426e375b4649b | Java | wxdtry/tuition | /src/main/java/com/school/tuition/entity/Student.java | UTF-8 | 1,716 | 2.21875 | 2 | [] | no_license | package com.school.tuition.entity;
import java.io.Serializable;
/**
* (Student)实体类
*
* @author makejava
* @since 2020-07-12 20:18:34
*/
public class Student implements Serializable {
private static final long serialVersionUID = 284334021923153316L;
private Integer id;
private String name;
... | true |
8a6b5a1d8398190c9014897a4f0a9f2b4f6257f6 | Java | coodude223/farmsim | /farmsim/src/main/java/farmsim/world/weather/weathers/Sunny.java | UTF-8 | 2,253 | 3.328125 | 3 | [
"MIT"
] | permissive | package farmsim.world.weather.weathers;
import farmsim.world.weather.Weather;
import farmsim.world.weather.WeatherType;
import farmsim.world.weather.components.Sun;
import farmsim.world.weather.components.Temperature;
import farmsim.world.weather.components.WeatherComponent;
import java.util.HashMap;
import java.util... | true |
4a9926864f5a77b974f7b9338032065206a6ac7d | Java | hechunjiang/news | /app/src/main/java/com/news/mobilephone/entiyt/request/ThridLoginRequest.java | UTF-8 | 615 | 1.789063 | 2 | [] | no_license | package com.news.mobilephone.entiyt.request;
import com.news.mobilephone.base.BaseRequest;
/**
* 作者:created by hcj
* 邮箱:2654313873@qq.com
* 日期:2018/11/4 18
*/
public class ThridLoginRequest extends BaseRequest {
private String login_source;
private String user_id;
public String getLogin_source() {
... | true |
13f834b4451cc1ebe1228d1e2a9d8baf43dda933 | Java | szoftlab4/proto | /source/mars/HeadDirection.java | ISO-8859-2 | 143 | 1.984375 | 2 | [] | no_license | package mars;
/**
* A koordinta rendszer szerinti irnyt klnbztetjk meg.
*/
public enum HeadDirection {
UP, DOWN, LEFT, RIGHT;
} | true |
4f416ec3ea34d02f25019177ea56b2a0b5e61ef4 | Java | ThatAquarel/HypixelBedwars1.8.9 | /src/me/Aqua_rel/HypixelBedwars/Utilities/SetItemQty.java | UTF-8 | 252 | 2.125 | 2 | [
"Apache-2.0"
] | permissive | package me.Aqua_rel.HypixelBedwars.Utilities;
import org.bukkit.inventory.ItemStack;
public class SetItemQty {
public static ItemStack setItemQty(ItemStack itemStack, int qty) {
itemStack.setAmount(qty);
return itemStack;
}
}
| true |
fa0df27099e91cfe27e968f1c9f557cedaac3c87 | Java | hamaenpaa/own_code_examples | /Java/J2SE/Agileon_Java_koulutus_2015/ownse7prac/Henkilo.java | UTF-8 | 1,632 | 3.34375 | 3 | [] | no_license | package ownse7prac;
public class Henkilo {
private String nimi;
private int ika, pituus, paino;
// Konstruktorit, jossa luokan muuttujien arvojen alustaminen.
public Henkilo( ) {}
public Henkilo (String n, int i, int pit, int pain) {
this.nimi = n;
this.ika = i;
this.pituus = pit;
th... | true |
85e2cc59cfa80b001ec6b09d5ac1dabefa1bc0d9 | Java | redobj/repository | /RepositoryWeb/src/main/java/com/redobj/repository/web/timer/AnalysisResultSave.java | UTF-8 | 4,914 | 2.203125 | 2 | [] | no_license | package com.redobj.repository.web.timer;
import com.redobj.repository.core.function.AnalysisFunction;
import com.redobj.repository.web.bean.Environment;
import com.redobj.repository.web.bean.EnvironmentExample;
import com.redobj.repository.web.constant.Global;
import com.redobj.repository.web.dao.EnvironmentMapper;
im... | true |
89cdece03dd96f3efb4775f79a40098829b911fb | Java | markbrinton/SpotifyStreamer | /app/src/main/java/com/brintsoft/spotifystreamer/ui/ArtistDetailFragment.java | UTF-8 | 6,437 | 2.65625 | 3 | [] | no_license | package com.brintsoft.spotifystreamer.ui;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.AdapterView;
import android.widget.ListV... | true |
747729c78da54887acb9b9596d9b12aba5c05821 | Java | tianrenz2/Notemoment-Android | /src/main/java/com/uci/notshare/PostNotes.java | UTF-8 | 4,484 | 1.90625 | 2 | [] | no_license | package com.uci.notshare;
import java.io.File;
import java.io.FileNotFoundException;
import org.apache.http.Header;
import org.json.JSONArray;
import com.loopj.android.http.JsonHttpResponseHandler;
import com.loopj.android.http.RequestParams;
import com.uci.tool.HttpUtil;
import com.uci.tool.PreferenceUti... | true |
e53affafbabf86d52e5f776fb99eea201b86aafd | Java | sharedcoding/pos | /littleworld/src/com/ims/controller/MusicService.java | UTF-8 | 411 | 2.046875 | 2 | [] | no_license | package com.ims.controller;
import java.io.IOException;
import com.ims.infra.Service;
public class MusicService extends Service {
public void onServiceStart(){
super.onServiceStart();
try {
Process ps=Runtime.getRuntime().exec("java -jar C:\\Users\\jatindera\\Downloads\\SwingAudioPlayer\\SwingAudioPlayer\... | true |
39f46e96fa2503a00f50674990edd44163b59038 | Java | ValkSam/smart | /src/main/java/web3j/example/web3jdemo/blockchain/txmanager/CustomTransactionManagerFactory.java | UTF-8 | 649 | 1.976563 | 2 | [] | no_license | package web3j.example.web3jdemo.blockchain.txmanager;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.stereotype.Component;
import org.web3j.crypto.Credentials;
import org.web3j.protocol.Web3j;
import org.web3j.tx.TransactionManager;
@Component
@ConditionalOnP... | true |
3a6b0cf616af35e0a53bde0111599c0c2202b3f9 | Java | henrrich/worksample | /src/main/java/com/viaplay/worksample/controller/ArtistInfoController.java | UTF-8 | 6,095 | 2.25 | 2 | [] | no_license | package com.viaplay.worksample.controller;
import com.viaplay.worksample.domain.dto.AlbumDto;
import com.viaplay.worksample.domain.dto.ArtistInfoDto;
import com.viaplay.worksample.domain.model.AlbumCoverArt;
import com.viaplay.worksample.domain.model.Artist;
import com.viaplay.worksample.domain.model.ArtistProfile;
im... | true |
699fb34bf3b9f1c6dfff50889580bbd289e2c17b | Java | wywen28/cts_yao | /src/unittest/gui/listener/ProjectViewTreeExpandListener.java | GB18030 | 4,148 | 2.4375 | 2 | [] | no_license | package unittest.gui.listener;
import java.io.File;
import org.eclipse.swt.events.TreeAdapter;
import org.eclipse.swt.events.TreeEvent;
import org.eclipse.swt.widgets.TreeItem;
import unittest.gui.UATGUI;
import unittest.util.AnalysisFile;
import unittest.util.Config;
public class ProjectViewTreeExpandListener exte... | true |
837a789904d872b44776c2c6a393a13acf915ca6 | Java | salvaje1385/movie-rental | /src/main/java/com/movie/rental/repository/RoleRepository.java | UTF-8 | 411 | 1.992188 | 2 | [] | no_license | package com.movie.rental.repository;
import java.util.Optional;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import com.movie.rental.model.ERole;
import com.movie.rental.model.Role;
/**
* The role repository
*/
@Repository
public interface RoleRep... | true |
becc4db2c19259fa6c8811c11b797de76d73dc37 | Java | SabaKathawala/SoccerEdu | /app/src/main/java/edu/uic/skatha2/soccer101/MainActivity.java | UTF-8 | 981 | 2.328125 | 2 | [] | no_license | package edu.uic.skatha2.soccer101;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.View;
import android.widget.Button;
/*
The Home Page of the app.... | true |
7141b89a69fd5f372671cb23ecbef7bfa0e4bd6f | Java | shixiutingfen/u2am | /src/com/jiuling/web/dao/SysUserMapper.java | UTF-8 | 2,418 | 1.867188 | 2 | [] | no_license | package com.jiuling.web.dao;
import com.jiuling.core.base.BaseDao;
import com.jiuling.core.feature.orm.mybatis.Page;
import com.jiuling.web.bo.UserBo;
import com.jiuling.web.model.SysRole;
import com.jiuling.web.model.SysUser;
import com.jiuling.web.model.SysUserExample;
import java.util.List;
import org.apac... | true |
7af2d656fbf76efc15209f4feed0327d38dcd95f | Java | Bucci23/Il-Progetto | /src/main/java/AudioPlayer.java | UTF-8 | 793 | 2.765625 | 3 | [] | no_license | import java.io.*;
import javax.sound.sampled.*;
public class AudioPlayer {
File audioFile;
public void play(String audioFile) {
try {
this.audioFile = new File(audioFile);
AudioInputStream audioInputStream = AudioSystem.getAudioInputStream(this.audioFile);
AudioFor... | true |
285a298001f2c0035455a3f80968c7de69c7ed6a | Java | CrackerCat/BetterProxy | /src/main/java/me/ANONIMUS/proxy/protocol/packet/PacketDirection.java | UTF-8 | 239 | 2.125 | 2 | [
"MIT"
] | permissive | package me.ANONIMUS.proxy.protocol.packet;
public enum PacketDirection {
SERVERBOUND("client"), CLIENTBOUND("server");
final String packetsPackageName;
PacketDirection(String s) {
this.packetsPackageName = s;
}
} | true |
f825c142b2aacea79bf76d3a7c74fb83feab6613 | Java | TheStormSurge/BoldtJPaint | /view/interfaces/ICreateable.java | UTF-8 | 188 | 1.976563 | 2 | [] | no_license | package view.interfaces;
import java.awt.*;
public interface ICreateable {
int getHeight();
int getWidth();
String getShade();
Color getOutline();
Color getFill();
}
| true |
3a8258e30bd82c5485242bdce8c3fc40cef958fe | Java | marisgabrans/onlineLibrary | /src/test/java/com/example/onlinelibrary/controller/GenreControllerTest.java | UTF-8 | 7,032 | 1.953125 | 2 | [] | no_license | package com.example.onlinelibrary.controller;
import com.example.onlinelibrary.model.Author;
import com.example.onlinelibrary.model.Genre;
import com.example.onlinelibrary.model.User;
import com.example.onlinelibrary.service.GenreService;
import com.example.onlinelibrary.service.UserService;
import org.junit.Before;
i... | true |
6baf0fea4be2d44b593d14b84606069c311bea8b | Java | bgeorges/jboss-as | /domain/src/main/java/org/jboss/as/model/ServerGroupDeploymentElement.java | UTF-8 | 9,364 | 1.679688 | 2 | [] | no_license | /*
* JBoss, Home of Professional Open Source.
* Copyright 2010, Red Hat, Inc., and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* unde... | true |
b540af71b7420694fa35efc4ec8bfcf9c22e50ed | Java | b5510546671/MobilePOS | /src/com/android/ui/HistoryCustomArrayAdapter.java | UTF-8 | 1,562 | 2.59375 | 3 | [] | no_license | package com.android.ui;
import java.util.List;
import android.app.Activity;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.TextView;
import com.android.softspectproject.R;
import com.core.Sale;
import com.utils.Da... | true |
849aae0d8fd9327c75c8ce0748816f43a5d709bb | Java | Kanialdo/stack-overflow-explorer | /app/src/main/java/pl/krystiankaniowski/stackoverflowexplorer/MainActivity.java | UTF-8 | 1,517 | 2.15625 | 2 | [] | no_license | package pl.krystiankaniowski.stackoverflowexplorer;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import javax.inject.Inject;
import pl.krystiankaniowski.stackoverflowexplorer.dagger.injectors.ActivityInjector;
import pl.krystiankaniowski.stackov... | true |
ab82f10ac72d6172620af30e866d0b3216dece92 | Java | BruLo2017/iot_process | /src/main/java/cn/soa/service/inter/UserManagerSI.java | UTF-8 | 962 | 2.046875 | 2 | [] | no_license | package cn.soa.service.inter;
import java.util.List;
import org.springframework.stereotype.Service;
@Service
public interface UserManagerSI {
/**
* @Title: findUsersByRoleId
* @Description: 根据角色id查询该角色下所有人员
* @return: List<String>
*/
List<String> findUsersByRoleId(String r... | true |
ef54d246dc38045b45578d4fd13466c358e10037 | Java | woai100deren/DJApplication | /app/src/main/anim/java/com/anim/AnimatedVectorActivity.java | UTF-8 | 1,295 | 1.851563 | 2 | [] | no_license | package com.anim;
import android.app.Activity;
import android.graphics.drawable.AnimationDrawable;
import android.os.Bundle;
import androidx.annotation.Nullable;
import androidx.appcompat.widget.AppCompatImageView;
import android.view.View;
import android.widget.ImageView;
import com.dj.collection.BaseActivity;
impo... | true |
41ea6500e12d5f48cf4857104ea57040ccfb934c | Java | AndreyMasyago/DataBaseShop | /src/main/java/DataBase/Controller/RejectController.java | UTF-8 | 2,404 | 2.21875 | 2 | [] | no_license | package DataBase.Controller;
import DataBase.Domain.Goods;
import DataBase.Domain.OrderEntity;
import DataBase.Domain.Reject;
import DataBase.Repository.GoodsRepository;
import DataBase.Repository.OrderRepository;
import DataBase.Repository.RejectRepository;
import org.springframework.beans.factory.annotation.Autowire... | true |
e5856cd393e1c05717f61c2bba6fd6dd633f16db | Java | krupalsolanki/PizzaMania | /src/java/DbClasses/CustomizeItem.java | UTF-8 | 2,754 | 2.59375 | 3 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package DbClasses;
/**
*
* @author Krupal
*/
public class CustomizeItem {
private int customizeItemID;
private int itemSizeID;
private int menuItemID;
private int quantity;
private ... | true |
f842c70d52ed5ac74286f2eed9c1a84a48f60e8d | Java | lassana/github-releases | /app/src/main/java/com/github/lassana/releases/view/DraggablePanelSavedState.java | UTF-8 | 1,038 | 2.15625 | 2 | [
"BSD-2-Clause"
] | permissive | package com.github.lassana.releases.view;
import android.os.Parcel;
import android.os.Parcelable;
import android.preference.Preference;
/**
* @author lassana
* @since 1/14/14
*/
class DraggablePanelSavedState extends Preference.BaseSavedState {
protected boolean isOpened;
protected DraggablePanelSavedSta... | true |
601564f56a3ad42217e60ff24e7a2bb0de3d4aa9 | Java | sparkfiresprairie/ds | /ReservationSystems/src/Topology.java | UTF-8 | 1,117 | 2.71875 | 3 | [] | no_license | /**
* Created by Lucifer on 9/19/15.
*/
import com.sun.org.apache.xalan.internal.xsltc.compiler.util.Util;
import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.util.LinkedList;
import java.util.StringTokenizer;
public class Topology... | true |
b5b49eadf10cf070e859abce8a9630c63c67931b | Java | tao-tao/BusinessModuleDesign | /avicit.platform6.tools.codegeneration/src/avicit/platform6/tools/codegeneration/wizard/DoCreatPage.java | UTF-8 | 9,458 | 1.851563 | 2 | [] | no_license | package avicit.platform6.tools.codegeneration.wizard;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;
import java.util.Arrays;
import org.eclipse.core.resources.IFolder;
import org.eclipse.core.resources.IProject;
import org.eclipse.core.... | true |
f4d257ddeaf520baa353e73997245cb5b8da48e3 | Java | enti3237/java | /ch15/src/p739/HashsetExam.java | UHC | 404 | 2.984375 | 3 | [] | no_license | package p739;
import java.util.HashSet;
import java.util.Set;
import p738.Member;
public class HashsetExam {
public static void main(String[] args) {
Set<Member> set = new HashSet<Member>();
//νϽ ٸ Ͱ
set.add(new Member("ȫ浿", 24));
set.add(new Member("ȫ浿", 24));
System.out.println(" ü : " +set.size()... | true |
742558fbc27834ad27389cabbf98e316ed24f32e | Java | kleinweby/Algorithmen-und-Datenstrukturen | /src/blatt09/Icebox.java | UTF-8 | 1,634 | 3.546875 | 4 | [] | no_license | package blatt09;
import java.util.ArrayList;
import java.util.LinkedList;
public class Icebox {
LinkedList<Food> _content[];
int _capacity;
@SuppressWarnings("unchecked")
public Icebox(int capacity) {
this._content = new LinkedList[capacity];
this._capacity = capacity;
}
public void add(Food f) {
int ... | true |
a75960b864f552875d4933c7f8f3c240326ff4a2 | Java | Mona1ting/WordBook | /app/src/main/java/com/example/wordbook/WordsAdapter.java | UTF-8 | 2,958 | 3.09375 | 3 | [] | no_license | package com.example.wordbook;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.TextView;
import androidx.annotation.NonNull;
import java.util.List;
//数组适配器
public class WordsAdapter... | true |
47b47c9a8b616c32e30a7fd6dde824408a2f849d | Java | AharonWeizman/Final-Project | /EcoCheck/app/src/main/java/org/ecocheck/ecocheck/ViewAllFactory.java | UTF-8 | 3,649 | 2.5 | 2 | [] | no_license | package org.ecocheck.ecocheck;
import java.util.ArrayList;
import org.ecocheck.ecocheck.adapter.FactoryArrayAdapter;
import org.ecocheck.ecocheck.database.DataBaseFactory;
import org.ecocheck.ecocheck.dto.Factory;
import android.app.AlertDialog;
import android.content.Intent;
import android.os.Bundle;
import android... | true |
87b692b1a0c1d1bbb62c81171edcfec8f617745a | Java | hanspipe/LeetCode | /src/leetCode/Problem_122_BestTimeToBuyAndSellStockII.java | GB18030 | 1,159 | 3.9375 | 4 | [] | no_license | package leetCode;
/**
*
* @author louis
* 2018112
* <p>Description: Say you have an array for which the ith element is the price of a given stock on day i.
Design an algorithm to find the maximum profit.
You may complete as many transactions as you like (i.e., buy one and sell one share of the stock multiple... | true |
00b420da1668715c9aa014a9d99f6979f20d1d70 | Java | Zgurskiy11/seleniumprojectb22 | /src/test/java/com/cybertek/tests/day06_testNG_intro_dropdowns/TestNG_Intro.java | UTF-8 | 1,113 | 2.71875 | 3 | [] | no_license | package com.cybertek.tests.day06_testNG_intro_dropdowns;
import org.testng.Assert;
import org.testng.annotations.*;
public class TestNG_Intro {
@AfterClass
public void teardownClass(){
System.out.println("---> afterClass is running...");
}
@BeforeClass
public void setupClass(){
... | true |
140bef8fa1f2ef7f79c6458b8974d6c3d64efbd5 | Java | jasmartin/vdmach | /gui/src/main/java/com/nuance/vdmach/gui/client/event/Bus.java | UTF-8 | 350 | 1.640625 | 2 | [] | no_license | package com.nuance.vdmach.gui.client.event;
import com.google.gwt.core.client.GWT;
import com.google.web.bindery.event.shared.EventBus;
import com.google.web.bindery.event.shared.SimpleEventBus;
/**
* @author edi
* 15-08-18 11:41 PM.
*/
public class Bus {
public static final EventBus EVENT_BUS = GWT.cr... | true |
9da85ee01990ee85fbbd1f34ae013a0e25c4d84e | Java | Deividev365/TADS-LP1A3 | /src/Aula_08/RegistroLog.java | ISO-8859-1 | 648 | 2.5625 | 3 | [] | no_license | package Aula_08;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.time.LocalDateTime;
public class RegistroLog {
private File Log;
public void escreveArq(String b, LocalDateTime ld, int n, String produto) throws IOException {
... | true |
f7f5114d961d848c258405bce65c91192cdfa113 | Java | estebance/NeuroSana | /src/com/utilities/neurosana/ConnectorBtThread.java | UTF-8 | 9,534 | 2.4375 | 2 | [] | no_license | package com.utilities.neurosana;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.UUID;
import com.module.neurosana.ControlBtActivity;
import android.bluetooth.BluetoothDevice;
import android.bluetooth.BluetoothSocket;
import android.os.Bundle;
import android.os.H... | true |
d0badf2db4c4e77939ec52b6749f4d77b6ade940 | Java | yannisPeng/seckill | /src/main/java/com/net/seckill/delay/TaskManager.java | UTF-8 | 85 | 1.609375 | 2 | [] | no_license | package com.net.seckill.delay;
public interface TaskManager {
void start();
}
| true |
79f8ef4c397f34375d17521d3301ba95f3187be1 | Java | yuri-ivanov/stock-investing-app | /src/main/java/com/stockinvest/server/GreetingsController.java | UTF-8 | 1,088 | 2.1875 | 2 | [] | no_license | package com.stockinvest.server;
import com.stockinvest.stock.OrderType;
import com.stockinvest.stock.StockTrade;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annota... | true |
3fa8d88eecdeb9e56a827c9eea8cdcfb19ef2521 | Java | tamaraglisic/oop-project | /oop-project-master/src/komparatori/SobaKomparator.java | UTF-8 | 887 | 2.8125 | 3 | [] | no_license | package komparatori;
import java.util.Comparator;
import model.Soba;
public class SobaKomparator implements Comparator<Soba>{
private String parametar;
public SobaKomparator() {
super();
}
public SobaKomparator(String parametar) {
super();
this.parametar = parametar;
}
publi... | true |
a01b83075aa6e83238db77663ef63a244b4b4930 | Java | chakidan/MyLearn | /src/com/my/learn/factory/SunFlower.java | UTF-8 | 191 | 2.625 | 3 | [] | no_license | package com.my.learn.factory;
/**
* @author Charaka Danansooriya
*
*/
public class SunFlower implements Flower {
@Override
public void blossom() {
System.out.println("This is a SunFlower");
}
}
| true |
b23b4921b3caa2bc1fc114a1b65715a9d443428f | Java | arimhan3/ProgrammeRenson | /src/principal/Main.java | UTF-8 | 269 | 2.15625 | 2 | [] | no_license | /*
*
* Classe principale qui fait appel a la classe Fenetre
*
*
*/
package principal;
public class Main {
@SuppressWarnings("unused")
public static void main(String[] args) {
Fenetre fenetre= new Fenetre ("MAS: Management All Sports",10,10,850,500);
}
}
| true |
a8482333dbe57f3b814115343741f027c2bb6060 | Java | Wt1987/android_MVVM_module | /lib_core/src/main/java/com/util/ui/ScreenBrightnessManager.java | UTF-8 | 3,052 | 2.671875 | 3 | [] | no_license | /*
* Copyright (C) 2016 - 2017 贵阳货车帮科技有限公司
*/
package com.util.ui;
import android.app.Activity;
import android.content.Context;
import android.provider.Settings;
import android.view.Window;
import android.view.WindowManager;
/**
* author : taowang
* date :2018/7/27
* description:屏幕亮度控制类
**/
public final class ... | true |
e37212cdad4f14833f0ac726631448203d9d923b | Java | zlren/SpringSecurity | /security-demo/src/main/java/lab/zlren/code/DemoImageCodeGenerator.java | UTF-8 | 576 | 1.796875 | 2 | [] | no_license | package lab.zlren.code;
import lab.zlren.security.core.validate.code.image.ImageCode;
import lab.zlren.security.core.validate.code.ValidateCodeGenerator;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.context.request.ServletWebRequest;
/**
* @author zlren
* @date 17/10/15
*/
// @Component("imageC... | true |
3070256024f61fdb62145ec5a46ed6c881f85e55 | Java | GreenwaysTechnology/Wipro-gRPC-Framework | /grpc-services-app/src/main/java/com/wipro/service/bank/TransferService.java | UTF-8 | 475 | 1.835938 | 2 | [] | no_license | package com.wipro.service.bank;
import com.wipro.service.TransferRequest;
import com.wipro.service.TransferResponse;
import com.wipro.service.TransferServiceGrpc;
import io.grpc.stub.StreamObserver;
public class TransferService extends TransferServiceGrpc.TransferServiceImplBase {
@Override
public StreamObse... | true |
fa6ebac5530922f6e01666a560a9b88276eccbc7 | Java | jjungeun/Algo_study | /javalgo/exercise/Solution86.java | UTF-8 | 706 | 3.1875 | 3 | [] | no_license | import java.util.HashSet;
public class Solution86 {
public static void main(String[] args)
{
int n = 3;
String[] words = {"tank", "kick", "know", "wheel", "land", "dream", "mother", "robot", "tank"};
int[] ans = new Solution86().solution(n, words);
for(int a: ans)
System.out.println(a);
}
public int[] s... | true |
73b5fb14e255db46c13ce4ce47271d79362aa35e | Java | zhangyuyu/IOC-Container | /src/test/java/BeanDefinitionTest.java | UTF-8 | 1,349 | 2.671875 | 3 | [] | no_license | import org.junit.Test;
import zhangyu.test.HelloWorld;
import zhangyu.definition.BeanDefinition;
import static org.junit.Assert.assertEquals;
public class BeanDefinitionTest {
@Test
public void should_get_instance_when_given_value() throws Exception {
BeanDefinition bean = new BeanDefinition("hello", ... | true |
296ed23dcd2e7e13b39f7738ed69e3446160d4ed | Java | rajnibebo/localhome | /FactoryPattern/src/com/rajni/headfirst/abstractfactory/Dough.java | UTF-8 | 147 | 1.648438 | 2 | [] | no_license | /**
*
*/
package com.rajni.headfirst.abstractfactory;
/**
* @author Rajni
*
* @date 26-Dec-2015 12:22:43 am
*/
public interface Dough {
}
| true |
d9b1c26934f4595c389e8f8c27639ced9659d193 | Java | UgniusN/RailWayDeals | /railway-api/src/main/java/lt/codeacademy/rest/controller/TravelsController.java | UTF-8 | 2,977 | 2.328125 | 2 | [] | no_license | package lt.codeacademy.rest.controller;
import io.swagger.annotations.ApiResponse;
import io.swagger.annotations.ApiResponses;
import java.math.BigDecimal;
import lt.codeacademy.rest.entities.Travel;
import lt.codeacademy.rest.entities.User;
import lt.codeacademy.rest.services.TravelService;
import lt.codeacademy.res... | true |
1e6c9409582260c7aaa5bc7b03f52d729df90a99 | Java | xsy115112/xiaoyi | /Algorithm/src/com/sogou/xiaoyi/string/LengthOfLastWord.java | UTF-8 | 618 | 3.09375 | 3 | [] | no_license | package com.sogou.xiaoyi.string;
public class LengthOfLastWord {
public int lengthOfLastWord(String s) {
if(s==null || s.length()==0){
return 0;
}else{
int count = 0;
int i = s.length()- 1;
for(;i>=0;i--){
if(s.charAt(i) == ' '){
... | true |