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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
6fbb78f8a2a9853df473004327663a308559a684 | Java | Cube-Space/TripWire | /src/main/java/net/cubespace/TripWire/Protocol/Packets/MultiBlockChange.java | UTF-8 | 968 | 2.171875 | 2 | [] | no_license | package net.cubespace.TripWire.Protocol.Packets;
import io.netty.buffer.ByteBuf;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = false)
public class MultiBlockChange exte... | true |
592c18494a5275ab7d25bed7bccda51dfdc6cebf | Java | gmz07dnz/gamze | /src/slayt16/Soru01.java | ISO-8859-16 | 410 | 3.1875 | 3 | [] | no_license | package slayt16;
import java.util.Arrays;
public class Soru01 {
public static void main(String[] args) {
// prog calstktan sonra x'in degerleri
int[] x = { 0, 1, 2, 3};
int temp;
int i = 0;
int j= x.length-1;
while ((i<j )) {
temp = x[i];
x[i] = x[j];
x[j]= 2*temp;
i++;
j--;
... | true |
e0e02f9c77ba33250f2119f531c626dabf0a2003 | Java | jake-allen/YALA | /src/constructs/Item.java | UTF-8 | 3,356 | 3.671875 | 4 | [] | no_license | package constructs;
public class Item {
String name;
int quantity;
String store;
/**
* Creates an item with name itemName, quantity quantity, and store
* storeName.
*
* @param itemName the name to give the new item
* @param quantity the quantity to give the new item
* @param storeName the store to ... | true |
5dce981db5903eb424e26f247b5e47b01ab0f255 | Java | valiantkui/bookshop_eclipse | /src/dao/main/SearchBookDao.java | UTF-8 | 3,888 | 2.53125 | 3 | [] | no_license | package dao.main;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.util.ArrayList;
import java.util.List;
import dao.DBTools;
import model.BookInfo;
import model.RecomendBook;
public class SearchBookDao {
public List<RecomendBook> searchByName(String search_cont... | true |
2a1df798cce91aa211f1747988c14563e2c9575a | Java | li0nsmane/vslab | /UserService/src/main/java/de/hska/UserService/model/User.java | UTF-8 | 1,920 | 2.34375 | 2 | [] | no_license | package de.hska.UserService.model;
import javax.persistence.*;
@Entity
@Table(name = "shopuser")
public class User implements java.io.Serializable {
/**
*
*/
private static final long serialVersionUID = 1L;
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(name = "id", nu... | true |
f68cd0a6e6f7012de41fada1fbc76891664ca1bf | Java | cainan/Stock-Control | /Stock Control/src/br/csoliveira/stockcontrol/model/Product.java | UTF-8 | 1,672 | 2.796875 | 3 | [] | no_license | package br.csoliveira.stockcontrol.model;
import java.io.Serializable;
public class Product implements Serializable {
/**
*
*/
private static final long serialVersionUID = 1L;
private int mIdProduct;
private String mProductName;
private String mPrice;
private int mQuantity;
pr... | true |
d912ab32337618cb6952aa6537376d1778feb6da | Java | MaciejSzaflik/SimpleShopExpert | /src/main/java/noob/pwr/ScheduleMaker.java | UTF-8 | 907 | 2.71875 | 3 | [] | no_license | package noob.pwr;
import java.util.HashMap;
public class ScheduleMaker {
public Warehouse mainMagazine;
public HashMap<Integer,Truck> trucks;
public HashMap<Integer,Shop> shops;
public HashMap<Integer,Order> requestedOrders;
public ScheduleMaker()
{
}
public void Initalize(
Warehouse magazine,
... | true |
442dc7d280a525be6a1a12d989a60c78b69c2299 | Java | wzp09tjlg/ShoppingCart | /app/src/main/java/junit/zyb/com/restaurant/api/Gsonholder.java | UTF-8 | 449 | 2.03125 | 2 | [] | no_license | package junit.zyb.com.restaurant.api;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
/**
* Created by zhouyibo on 2017/4/18.
*/
public class Gsonholder {
private static Gson gson;
public static Gson getGson() {
if (gson==null){
gson = new GsonBuilder()
... | true |
c96bfaa6acaffa80c1dbc7c985bac6d3081d2758 | Java | Azure/azure-sdk-for-java | /sdk/customerinsights/azure-resourcemanager-customerinsights/src/samples/java/com/azure/resourcemanager/customerinsights/generated/PredictionsGetTrainingResultsSamples.java | UTF-8 | 954 | 1.828125 | 2 | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-unknown-license-reference",
"LGPL-2.1-or-later",
"CC0-1.0",
"BSD-3-Clause",
"UPL-1.0",
"Apache-2.0",
"LicenseRef-scancode-public-domain",
"BSD-2-Clause"
] | permissive | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.customerinsights.generated;
/** Samples for Predictions GetTrainingResults. */
public final class PredictionsGetTrainingResultsS... | true |
3b6ba1babeb45828c13258ca93b394620690ae64 | Java | dp-ua/Epam_webinar | /src/test/java/com/epam/webinar/lists/OneWayListTest.java | UTF-8 | 1,731 | 3.234375 | 3 | [] | no_license | package com.epam.webinar.lists;
import java.util.ArrayList;
import java.util.List;
import static org.junit.jupiter.api.Assertions.assertArrayEquals;
import static org.junit.jupiter.api.Assertions.assertEquals;
class OneWayListTest {
List<Integer> list = new OneWayList();
List<Integer> normalList = new Array... | true |
b2968c5e2a6eeff28c3543da661f195384b09bde | Java | lavanya80/MyCourseApp | /src/main/java/com/App/domain/BaseEntity.java | UTF-8 | 615 | 2.25 | 2 | [] | no_license | package com.App.domain;
import java.io.Serializable;
import java.time.LocalDateTime;
import javax.persistence.MappedSuperclass;
@MappedSuperclass
public class BaseEntity implements Serializable{
private static final long serialVersionUID = 1L;
private LocalDateTime CreatedAt;
private LocalDateTime ChangedAt... | true |
a9e3db5f96832b65f286f6a90c482c17c4db1bb7 | Java | emailtohl/hjk-crm | /src/main/java/com/emailtohl/hjk/crm/entities/GroupEnum.java | UTF-8 | 620 | 2.40625 | 2 | [] | no_license | package com.emailtohl.hjk.crm.entities;
public enum GroupEnum {
ADMIN("系统管理员", "EMPLOYEE"), FINANCE("财务", "EMPLOYEE"), ADMINISTRATION("行政", "EMPLOYEE"), MARKET("市场",
"EMPLOYEE"), FOREIGN("外务", "FOREIGN"), CUSTOMER("客户", "CUSTOMER");
private GroupEnum(String name, String type) {
this.name = name;
thi... | true |
03e62cfccd7e470f928bf1aa3ac72a2b5e76aec7 | Java | ohyeahfanfan/Questions | /src/Math/StringToInteger.java | UTF-8 | 1,837 | 3.8125 | 4 | [] | no_license | package Math;
public class StringToInteger {
/*****String to Integer (atoi)*********
* Implement atoi to convert a string to an integer.
*
* 1. negative
* 2. overflow negative
* 3. leading space/after space
* 4. +1!!
* "+00131204" 131204 131204
"-0132400... | true |
7081ad1f0a0516e0f0ff263d1d95de8bf82bed40 | Java | datahaki/retina | /src/test/java/ch/ethz/idsc/gokart/core/ProviderRanksTest.java | UTF-8 | 372 | 1.945313 | 2 | [] | no_license | // code by jph
package ch.ethz.idsc.gokart.core;
import java.util.Objects;
import ch.ethz.idsc.owl.ani.api.ProviderRank;
import junit.framework.TestCase;
public class ProviderRanksTest extends TestCase {
public void testSimple() {
for (ProviderRank providerRank : ProviderRank.values())
assertTrue(Objects... | true |
8e4623c55198ef0ee57302550ac841e03d22c737 | Java | andi-git/jabogaf | /jabogaf-main/jabogaf-main-gridlayout-creation/src/main/java/org/jabogaf/common/board/layout/grid/GridLayoutCreationStrategy.java | UTF-8 | 6,586 | 2.625 | 3 | [] | no_license | package org.jabogaf.common.board.layout.grid;
import org.jabogaf.api.behavior.look.LookPath;
import org.jabogaf.api.board.field.Field;
import org.jabogaf.api.board.field.FieldConnection;
import org.jabogaf.api.board.field.FieldGroup;
import org.jabogaf.api.board.layout.KeyTwoFields;
import org.jabogaf.api.board.layout... | true |
8dd64a4a64a794f708fa68317d7bd578320879a9 | Java | SergioP3rez/PCPD_Redone | /src/constructives/ConstructiveGRASPGreedyRandomFO1COPIA.java | UTF-8 | 3,227 | 2.765625 | 3 | [] | no_license | package constructives;
import grafo.optilib.metaheuristics.Constructive;
import grafo.optilib.tools.RandomManager;
import structure.PCPDInstance;
import structure.PCPDSolution;
import java.util.ArrayList;
import java.util.Comparator;
import java.util.List;
import java.util.Random;
public class ConstructiveGRASPGreed... | true |
f0af336e14325eadfa6bd27488a631e3b7ba943c | Java | priya16chaudhari/Music_Player | /MusicplayerBackend/demoproject/src/main/java/com/techcelestial/demoproject/model/ActorModel.java | UTF-8 | 1,478 | 2.09375 | 2 | [] | no_license | package com.techcelestial.demoproject.model;
import com.fasterxml.jackson.annotation.JsonIgnore;
import javax.persistence.*;
import java.util.List;
@Entity
@Table(name = "actorMaster")
public class ActorModel
{
@Id
@GeneratedValue
@Column(name = "actor_id")
private Integer actorID;
@Column(nam... | true |
4bf96817b35bd035b440738df9888f8084232cf5 | Java | XiaoMaoGuai/EasySpringMVC | /src/main/java/com/xiaomaoguai/lib/beans/ResourceBundleMessageResource.java | UTF-8 | 1,561 | 2.15625 | 2 | [] | no_license | package com.xiaomaoguai.lib.beans;
import java.util.Locale;
import org.springframework.context.MessageSource;
import org.springframework.context.MessageSourceResolvable;
import org.springframework.context.NoSuchMessageException;
import com.xiaomaoguai.lib.core.i18n.MessageResource;
/*
* @Description :
... | true |
978b505034c8bd21b4a0c0abf6c0a86efa2f3cd0 | Java | Creativemind18/SampleProjects | /MyApplication/app/src/main/java/com/weatherreporting/myapplication/Main2Activity.java | UTF-8 | 1,368 | 1.890625 | 2 | [] | no_license | package com.weatherreporting.myapplication;
import android.app.Activity;
import android.app.AlertDialog;
import android.content.DialogInterface;
import android.content.Intent;
import android.database.sqlite.SQLiteDatabase;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.V... | true |
3556bb2729cca66ac1ebf928c0bdba088da38298 | Java | AlexanderIvanof/MySpring | /src/main/java/com/alex/spring/beans/Drums.java | UTF-8 | 153 | 1.8125 | 2 | [] | no_license | package com.alex.spring.beans;
public class Drums implements Instrument {
@Override
public void play() {
System.out.println("... by drums");
}
}
| true |
0476c8c5b56bffc1d02c018232fc49f70369f555 | Java | lotockijj/workspace | /upwork5/MindCastr/src/MindCastr/components/TransparentLabel.java | UTF-8 | 1,645 | 3.046875 | 3 | [] | no_license | package MindCastr.components;
import java.awt.AlphaComposite;
import java.awt.Container;
import java.awt.Graphics;
import java.awt.Graphics2D;
import javax.swing.Icon;
import javax.swing.JLabel;
public class TransparentLabel extends JLabel {
private float transparencyFactor;
public TransparentLabel(... | true |
690e5d976add6454823093a8b4206b1cc67a085f | Java | RBSLsiddharth/androidProjects | /MyApplication/app/src/main/java/com/example/siddharh/myapplication/homepage.java | UTF-8 | 1,799 | 2.296875 | 2 | [] | no_license | package com.example.siddharh.myapplication;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;
import android.widget.TextView;
import... | true |
5a3bf9a2aa7d189df40f54147b15d82cfe5a6b4e | Java | adisheshsm/xipki | /ca-server/src/main/java/org/xipki/ca/server/ScepCaCertRespBytes.java | UTF-8 | 1,978 | 1.875 | 2 | [
"Apache-2.0"
] | permissive | /*
*
* Copyright (c) 2013 - 2018 Lijun Liao
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or a... | true |
6a65e967ebe5747fb39efb9c16619e875f51766b | Java | curlyfriesonionrings/ARPokemonBattle | /aRPokemonBattle/src/main/java/org/artoolkit/ar/ARPokemonBattle/Util/ItemList.java | UTF-8 | 2,842 | 2.703125 | 3 | [] | no_license | package org.artoolkit.ar.ARPokemonBattle.Util;
import android.os.Parcel;
import android.os.Parcelable;
import org.artoolkit.ar.ARPokemonBattle.Bag.Item;
import org.artoolkit.ar.ARPokemonBattle.Pokemon.Pokemon;
public final class ItemList {
public static final class Pokeball extends Item {
public Pokeball... | true |
40504c0e03ba56bc187466939e096d4936f2e83b | Java | 6417/2019 | /src/main/java/ch/fridolinsrobotik/drivesystems/swerve/SwerveDrive.java | UTF-8 | 10,311 | 2.609375 | 3 | [] | no_license | /*----------------------------------------------------------------------------*/
/* Copyright (c) 2018 FIRST. All Rights Reserved. */
/* Open Source Software - may be modified and shared by FRC teams. The code */
/* must be accompanied by the FIRST BSD license file in the root directory of... | true |
dc4ea7d7e6f58c34eb7395c406eff44b10042b91 | Java | Angel-ML/math2 | /src/main/java/com/tencent/angel/ml/math2/ufuncs/executor/matrix/DotMatrixExecutor.java | UTF-8 | 78,122 | 1.703125 | 2 | [
"Apache-2.0"
] | permissive | /*
* Tencent is pleased to support the open source community by making Angel available.
*
* Copyright (C) 2017-2018 THL A29 Limited, a Tencent company. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in
* compliance with the License. You ma... | true |
6683afa647228997942b182b00d3acf3b2709448 | Java | Thofkes/ReminderApp | /app/src/main/java/com/alt/reminderapp/Reminder.java | UTF-8 | 614 | 2.578125 | 3 | [] | no_license | //package com.alt.reminderapp;
//
///**
// * Created by Trevor on 5/5/2015.
// */
//public class Reminder {
//
// private long id;
// private String reminder;
//
// public long getId() {
// return id;
// }
//
// public void setId(long id) {
// this.id = id;
// }
//
// public String ge... | true |
df708a4df4a28bbe10d30c913c25210f588f17c0 | Java | mrjonio/ProjetoBD | /RestauranteReborn/src/Restaurante/entidade/pessoas/funcionario/Funcionario.java | UTF-8 | 3,359 | 3.28125 | 3 | [] | no_license | package Restaurante.entidade.pessoas.funcionario;
import Restaurante.entidade.pessoas.Pessoa;
import Restaurante.excessoes.CampoVazioErro;
import Restaurante.excessoes.ParametroInvalidoErro;
import Restaurante.excessoes.PessoaMenorDeIdadeErro;
/**
* Classe modelo para os objetos do tipo "funcionário"; seus atributos... | true |
a08f33a7b60a3ee62bd67c92c9c11bd07d758ecf | Java | shouhou-web/RuanGongB | /SSM/SSM-study/src/test/java/com/forum/controller/ForumUserControllerTest.java | UTF-8 | 1,512 | 2.21875 | 2 | [
"MIT"
] | permissive | package com.forum.controller;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
@RunWith(SpringJUnit4ClassRunner.c... | true |
71bca575f4f4236b263a90f7948e747251ffd5af | Java | petroborovets/OrangeHomeRepository | /src/main/java/com/boro/black/entity/crawler/EmailContext.java | UTF-8 | 921 | 2.171875 | 2 | [] | no_license | package com.boro.black.entity.crawler;
import javax.persistence.*;
/**
* Created by petroborovets on 4/27/15.
*/
@Entity
@Table(name = "EMAIL_CONTEXT")
public class EmailContext {
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
@Column(name = "ID")
private Long id;
@Column(name = "LEFT_CONTE... | true |
febd67f0b6017f839431c077fa044725da97abc6 | Java | jsdelivrbot/JWebMP-CompleteFree | /src/za/co/mmagon/jwebswing/htmlbuilder/css/lists/ListCSSImpl.java | UTF-8 | 3,372 | 2.515625 | 3 | [] | no_license | /*
* Copyright (C) 2016 GedMarc
*
* This program is free software: 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, or
* (at your option) any later version.
*
* This program is distribute... | true |
e4ed95d910448f9dbc1f968785cd2e02a49d2b1f | Java | jeevan53/learning | /learning/src/singleLinkedList/Main.java | UTF-8 | 881 | 3.265625 | 3 | [] | no_license | package singleLinkedList;
public class Main {
public static void main(String[] args) {
// TODO Auto-generated method stub
/*
employeeList.add(new Employee("Siva","Venu",23));
employeeList.add(new Employee("Ram","Hari",262));
employeeList.add(new Employee("Hema","Keshav",212));
*/
Employee ... | true |
a7732de33a0b721b5aa7c13239a5617b6e5613fd | Java | anthonyveronica/Playground | /Integer Difference/Main.java | UTF-8 | 255 | 1.84375 | 2 | [] | no_license | num=int(input())
arr=list(input().strip().split(" "))
n,m=list(input().strip().split(" "))
n=int(n)
m=int(m)
arr = [int(i) for i in arr]
for i in range(0,len(arr)):
if (arr[i]-n)<m:
arr[i]=arr[i]+1
for i in range(0,len(arr)):
print(arr[i],end=" ") | true |
1f22fd55c173cdd74e76efa2f3e53f7d6dccf821 | Java | VincentStory/duanyou | /proj_duanyou/src/main/java/com/duanyou/lavimao/proj_duanyou/net/request/UserInfoRequest.java | UTF-8 | 1,197 | 2.1875 | 2 | [] | no_license | package com.duanyou.lavimao.proj_duanyou.net.request;
import com.duanyou.lavimao.proj_duanyou.net.BaseRequest;
public class UserInfoRequest extends BaseRequest {
/**
* 参数名 数据类型 是否必传 备注
dyID String 是 段友ID
deviceID String 是 设备ID
token String 是 身份令牌,校验验证码成功后获取
friendDyID String 是 要查询的段友ID
... | true |
4858162afc98b886757a89a9b1e39d734843dbd6 | Java | moutainhigh/new_laiyifen | /demo/src/com/netease/nim/demo/redpacket/adapter/RedPacketReciverAdapter.java | UTF-8 | 8,234 | 1.953125 | 2 | [] | no_license | package com.netease.nim.demo.redpacket.adapter;
import android.content.Context;
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.bumptech.glide.Glide;
... | true |
b76e331affaeaeeaad1d082624e8f3e0686d051b | Java | xiao45linhua/nacos-dubbo | /src/main/java/com/linhua/service/facade/DubboDemoService.java | UTF-8 | 98 | 1.515625 | 2 | [] | no_license | package com.linhua.service.facade;
public interface DubboDemoService {
String helloDubbo();
} | true |
f30d1fa187a66aa684433f43a65ab09dddfeda06 | Java | kth990303/RoastChickenSoup | /src/main/java/algopa/study/Controller/HelloController.java | UTF-8 | 1,333 | 2.5 | 2 | [] | no_license | package algopa.study.Controller;
import algopa.study.domain.Member;
import algopa.study.service.MemberService;
import algopa.study.service.MemberServiceImpl;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind... | true |
8926d377f8dd6d09210b9059a4556f3f82f11765 | Java | rayferric/comet | /comet-core/src/main/java/com/rayferric/comet/core/scenegraph/resource/video/mesh/BoxMesh.java | UTF-8 | 1,026 | 2.453125 | 2 | [
"MIT"
] | permissive | package com.rayferric.comet.core.scenegraph.resource.video.mesh;
import com.rayferric.comet.core.engine.Engine;
import com.rayferric.comet.core.mesh.MeshData;
import com.rayferric.comet.core.mesh.MeshGenerator;
import com.rayferric.comet.core.math.Vector3f;
import com.rayferric.comet.core.video.recipe.mesh.MeshRecipe;... | true |
bd3476242d9b6a23b8aa5029377a2ea8308bf168 | Java | hanlin5566/Classifier | /src/com/hl/misc/ServiceStatus.java | UTF-8 | 129 | 1.679688 | 2 | [] | no_license | package com.hl.misc;
public class ServiceStatus {
public static final int SUCCESS = 1;
public static final int FIALED = -1;
}
| true |
1614db3b640e364ce8455de6b12ee26dd0cd19c7 | Java | sedjrogande/openkm | /openkm-6.3-community/target/.generated/com/openkm/frontend/client/bean/GWTResultSet_FieldSerializer.java | UTF-8 | 2,801 | 1.9375 | 2 | [] | no_license | package com.openkm.frontend.client.bean;
import com.google.gwt.user.client.rpc.SerializationException;
import com.google.gwt.user.client.rpc.SerializationStreamReader;
import com.google.gwt.user.client.rpc.SerializationStreamWriter;
import com.google.gwt.user.client.rpc.impl.ReflectionHelper;
@SuppressWarnings("depre... | true |
959d745fd3091808920b221c25696d663d0c4f5d | Java | ubzzp2008/ssmproject | /ssmproject/ssmbase/src/main/java/com/system/web/common/component/module/query/QueryResult.java | UTF-8 | 962 | 1.90625 | 2 | [] | no_license | package com.system.web.common.component.module.query;
import java.util.Date;
/**
*
* 描述:通查结果集
* @author hanbin
* @date 2012-3-29 下午02:37:09
* @version v3.0
*/
public class QueryResult implements QueryObjectInterface {
/**
*
*/
private static final long serialVersionUID = 3005185116466328747L;
privat... | true |
b15383931ed496238d0e245686187b5ff6ea9f4e | Java | Akaa-O/ColorMaestro | /app/src/main/java/akaa/com/colormaestro/ui/pause/PausePresenter.java | UTF-8 | 169 | 1.726563 | 2 | [] | no_license | package akaa.com.colormaestro.ui.pause;
class PausePresenter {
private PauseView pauseView;
PausePresenter(PauseView view) {
pauseView = view;
}
}
| true |
0099ea4b25130a03a71f6187c0c5a533abdd7171 | Java | hanqyue/SimpleLive | /app/src/main/java/cn/coder_felicia/simplelive/adapter/RSSTitleAdapter.java | UTF-8 | 2,094 | 2.078125 | 2 | [] | no_license | package cn.coder_felicia.simplelive.adapter;
import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.widget.TextView;
import java.util.List;
import cn.coder_felicia.simplelive.R;
import cn.coder_felicia.simplelive.basetool.baseadapter.SimpleRecAdapter;
... | true |
7a54466fca03840159ae0d2adde3c6084dc48937 | Java | hwpsed/Yellow-Moon-Shop | /src/java/truongtq/dtos/LogDTO.java | UTF-8 | 1,092 | 2.25 | 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 truongtq.dtos;
import java.io.Serializable;
/**
*
* @author harry
*/
public class LogDTO implements Serializable{
int ... | true |
0f3d9458074d8222e6e65098237d839a1b69d8b0 | Java | wilsonart/wilsonart | /Wilsonart/src/pages/HomePage.java | UTF-8 | 9,706 | 1.578125 | 2 | [] | no_license | package pages;
import java.util.Random;
import java.util.logging.Logger;
import org.openqa.selenium.By;
import org.openqa.selenium.JavascriptExecutor;
import org.openqa.selenium.Keys;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.interactions.Actions;
import o... | true |
30c50b1e272197ef18e197cb3cde11479ad4d4bc | Java | rpsandip/dhs | /modules/dhs-common-service/dhs-common-service-service/src/main/java/dhs/common/service/model/impl/PatientCacheModel.java | UTF-8 | 2,833 | 2.078125 | 2 | [] | no_license | /**
* Copyright (c) 2000-present Liferay, Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by the Free
* Software Foundation; either version 2.1 of the License, or (at your option)
* any la... | true |
7436cd0963619c584d054e897d1e3ccef9f45366 | Java | dmmcerlean/cloud-bigtable-client | /bigtable-hbase/src/test/java/com/google/cloud/bigtable/hbase/adapters/TestRowMutationsAdapter.java | UTF-8 | 4,483 | 2.03125 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2014 Google Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appli... | true |
b91716fd90fafafc0149e07ac2c0dfe6b88b3a3b | Java | yancanmao/flink-testbed | /src/main/java/stock/sources/SSERealRateSourceFunctionKVInteger.java | UTF-8 | 3,225 | 2.296875 | 2 | [] | no_license | package stock.sources;
import org.apache.flink.api.java.tuple.Tuple3;
import org.apache.flink.streaming.api.functions.source.RichParallelSourceFunction;
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
im... | true |
60131e10c19328c39a4e48e029743f067cd2b58d | Java | franzsong/channel | /OriWidget/src/com/original/widget/OScrollablePopupMenu.java | UTF-8 | 29,039 | 2 | 2 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.original.widget;
import com.original.widget.event.ChoiceSelectionEvent;
import com.original.widget.event.ChoiceSelectionListener;
import java.awt.Color;
import java.awt.Component;
import java.awt.Dimension;
... | true |
fc015c9e31e27987af2dc0fd331114b7db192c16 | Java | wakelesstuna/functionalProgramming | /src/LambdaKata/Grouping.java | UTF-8 | 311 | 2.578125 | 3 | [] | no_license | package LambdaKata;
import java.util.List;
import java.util.Map;
import static java.util.stream.Collectors.groupingBy;
public class Grouping {
public static Map<String, List<Person>> groupByNationality(List<Person> people) {
throw new UnsupportedOperationException("Not supported yet.");
}
}
| true |
fef08b1ef58575013ce16a9246eaa723986f47b5 | Java | rajeshg87/code | /spring-mongodb_sample/src/main/java/com/rajesh/mongo/repo/HotelRepository.java | UTF-8 | 277 | 1.671875 | 2 | [] | no_license | package com.rajesh.mongo.repo;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;
import com.rajesh.mongo.model.Hotel;
@Repository
public interface HotelRepository extends MongoRepository<Hotel, String>{
}
| true |
7bfa6a103c3ffb07f426f6764a25862e5984e6ae | Java | cha63506/CompSecurity | /weather-widget-source/src/com/jiubang/playsdk/a/a.java | UTF-8 | 2,989 | 1.921875 | 2 | [] | no_license | // Decompiled by Jad v1.5.8e. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/kpdus/jad.html
// Decompiler options: braces fieldsfirst space lnc
package com.jiubang.playsdk.a;
import java.io.Serializable;
public class a
implements Serializable
{
protected String a;
private b... | true |
1e65c9be8403c9bb3e7e937c6937808117d664e4 | Java | anlei-fu/jasmine-crawler | /admin-web/src/test/java/com/jasmine/crawler/web/admin/service/impl/SiteIpDelayMapServiceTest.java | UTF-8 | 1,702 | 1.734375 | 2 | [] | no_license | /*----------------------------------------------------------------------------
* Jasmine code generator, a tool to build web crud application,with spring-
* boot, mybatis, mysql,swagger,spring-security.
* Generated at 2020-7-31 9:09:23 PM
* All rights reserved by fuanlei(email:767550758@qq.com) since 2019
*-------... | true |
5185199a859116225b77eb30362a1a4b13443425 | Java | MerdiMOKE028/Introduction-to-java | /src/training/SumNumbers.java | UTF-8 | 797 | 3.203125 | 3 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package training;
/**
*
* @author djk
*/
public class SumNumbers {
/**
* @param args the command line arguments
*/
... | true |
cd377f9be42c442038ecb72136951a39f6cd65cf | Java | sparkdata/zhihu | /src/main/java/com/linzhi/service/QuestionService.java | UTF-8 | 362 | 1.765625 | 2 | [] | no_license | package com.linzhi.service;
import com.linzhi.model.Question;
import java.util.List;
/**
* Created by 林智 on 2018/1/4.
*/
public interface QuestionService {
Question getById(int id);
int addQuestion(Question question);
List<Question> getLatestQuestions(int userId, int offset, int limit) ;
int upd... | true |
097a57e5fac3d9d06ca4380ec685427ed94832f3 | Java | chinaares/agc_server | /wallet/src/main/java/com/lanjing/wallet/agc/vo/MiningCpVO.java | UTF-8 | 1,035 | 1.96875 | 2 | [] | no_license | package com.lanjing.wallet.agc.vo;
import java.math.BigDecimal;
/**
* 基础算力挖矿VO
*/
public class MiningCpVO {
/**用户ID*/
private String userId;
/**消费金额*/
private BigDecimal amount;
/**消费数量*/
private BigDecimal number;
/**基础算力*/
private BigDecimal consumeCp;
/**活动算力*/
private BigDecimal activityCp;
... | true |
6f46e735a6103c1a9393a2da4a9c424df21d43fc | Java | ggKM/TankWar | /Excel/src/zzu/gao/DataBaseManager.java | UTF-8 | 1,554 | 2.8125 | 3 | [] | no_license | package zzu.gao;
import java.io.IOException;
import java.util.Properties;
public class DataBaseManager {
private static DataBaseManager DBManager = null;
private static String DBTYPE = null;
private static Properties prop = null;
private static DataBase curDataBase = null;
private String myPackageNa... | true |
7ebfa21728c867208db705119fd7fd357f53ff2c | Java | GamineK/heartPlugin | /src/main/java/pl/_matatjahu/heart/utils/ChatUtil.java | UTF-8 | 374 | 2.359375 | 2 | [] | no_license | package pl._matatjahu.heart.utils;
import org.bukkit.ChatColor;
import org.bukkit.command.CommandSender;
public class ChatUtil {
public static String colored(String s) {
return ChatColor.translateAlternateColorCodes('&', s);
}
public static void sendMessage(CommandSender sender, String message) {... | true |
b0c5cd3d6ffed122a275f36935183ab9b72b371b | Java | michael1234567890/TalentsGateways | /src/main/java/com/phincon/talents/gateways/controllers/SyncAddress.java | UTF-8 | 2,270 | 2.03125 | 2 | [] | no_license | package com.phincon.talents.gateways.controllers;
import java.util.Date;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
... | true |
640713a4251dc1423b027b68923576869cbb765a | Java | magefree/mage | /Mage.Sets/src/mage/cards/t/ThunderbreakRegent.java | UTF-8 | 3,064 | 2.703125 | 3 | [
"MIT"
] | permissive |
package mage.cards.t;
import java.util.UUID;
import mage.MageInt;
import mage.abilities.TriggeredAbilityImpl;
import mage.abilities.effects.Effect;
import mage.abilities.effects.common.DamageTargetEffect;
import mage.abilities.keyword.FlyingAbility;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import ma... | true |
5a86471b9deb05257d21793f21add4b749f88000 | Java | VelluVu/MOOCmissions | /viikko01-Viikko01_028.Lampotiloja/src/Lampotiloja.java | UTF-8 | 527 | 2.859375 | 3 | [] | no_license |
import java.util.Scanner;
public class Lampotiloja {
public static void main(String[] args) {
Scanner lukija = new Scanner(System.in);
// Toteuta lämpötilaohjelma tähän.
while (true) {
System.out.print("");
double lampotila = Double.parseDouble(lukija.nextLine());... | true |
d006c37d373b414db44cda94d81d0cdea525d2e4 | Java | srxffcc1/WisdomRegulation | /wisdomregulation_app/src/main/java/com/wisdomregulation/allactivity/single/Activity_Login.java | UTF-8 | 14,507 | 1.65625 | 2 | [] | no_license | package com.wisdomregulation.allactivity.single;
import android.content.Intent;
import android.content.SharedPreferences;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.view.KeyEvent;
import... | true |
d0329a8551bc541abfef9e7a1ae290f202a8f26e | Java | adamzulqarnain/syok-java-appium | /src/test/java/variables/Variables.java | UTF-8 | 5,142 | 1.867188 | 2 | [] | no_license | package variables;
import org.openqa.selenium.By;
import java.util.Arrays;
import java.util.List;
public class Variables {
//Elements By
public static By proceedElem = By.id("net.amp.era:id/btnPrivacyPolicyAgree");
public static By languageTitleElem = By.id("net.amp.era:id/tvOnboardingPref... | true |
f7af9f4168d986720a6c52bc84053e210d354a4c | Java | gary-lgy/duke | /src/main/java/duke/ui/Messages.java | UTF-8 | 2,805 | 3.15625 | 3 | [] | no_license | package duke.ui;
import java.util.List;
/**
* Utility class that stores all messages that Duke should display.
*/
public final class Messages {
// Add task
public static final String TASK_ADD_SUCCESS = "Got it. I've added this task:";
public static final String TASK_ADD_FAILURE = "Fatal: Unable to add t... | true |
85b4c34bd5e0baa5445bab7dd0652bf02208b7e9 | Java | Haseeb1111/FINAL_PROJECT_OOPS | /Design Patterns Hostel MS/src/com/company/LunchFood.java | UTF-8 | 230 | 2.421875 | 2 | [] | no_license | package com.company;
public class LunchFood implements FoodFacility {
@Override
public void addFoodFacility() {
System.out.println("Lunch facility by hostel has been added to your food facilities list!");
}
}
| true |
2c5148d810bca415f4d380865294c4dc29389b71 | Java | liuyf8688/demos | /spring-demos/spring-framework-demos/spring-framework-web-app-demos/src/main/java/com/liuyf/demos/spring/framework/web/teacher/controller/TeacherController.java | UTF-8 | 1,199 | 2.265625 | 2 | [
"Apache-2.0"
] | permissive | package com.liuyf.demos.spring.framework.web.teacher.controller;
import java.util.ArrayList;
import java.util.List;
import javax.annotation.PostConstruct;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.beans.factory.annotation.Value;
import org.springf... | true |
ce98681b670b2d325a8ce957183856269710142c | Java | margaret-tk/MIE250-Project5 | /src/io/FileDocSource.java | UTF-8 | 1,210 | 3.046875 | 3 | [] | no_license | package io;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
public class FileDocSource extends DocSource {
//Create a constructor which takes a file path a... | true |
0d627a7cea0ba364796b1d01bac0ac4c221d7d94 | Java | gitter-badger/blade.tools | /blade.migrate.api/src/blade/migrate/api/Reporter.java | UTF-8 | 160 | 1.804688 | 2 | [] | no_license | package blade.migrate.api;
public interface Reporter {
public void beginReporting();
public void report(Problem problem);
public void endReporting();
}
| true |
184018811571367a631e16443c1e2ab475b7bafa | Java | shitizadmirer/algo-design | /src/practice/IE/DiameterOfTree.java | UTF-8 | 1,317 | 3.65625 | 4 | [
"MIT"
] | permissive | package practice.IE;
class Diameter{
int maxDiameter = 0;
}
public class DiameterOfTree {
public int diameterOfTree(TreeNode root){
if (root == null){
return 0 ;
}
Diameter diameter = new Diameter();
heightOfTree(root,diameter);
return diameter.maxDiamete... | true |
c070bcec13c1d8c81111b91d2f9da1b4316ebf82 | Java | teinelund/jproject_info | /jproject_info-main/src/main/java/com/teinelund/jproject_info/commands/ValidateCommandLineArgumentsProjectPathsException.java | UTF-8 | 550 | 2.09375 | 2 | [
"Apache-2.0"
] | permissive | package com.teinelund.jproject_info.commands;
import java.util.List;
public class ValidateCommandLineArgumentsProjectPathsException extends RuntimeException {
private List<NonValidJavaProjectPath> nonValidJavaProjectPaths;
public ValidateCommandLineArgumentsProjectPathsException(List<NonValidJavaProjectPath... | true |
38b398e42d6f11f02cd09b4d3198c7011d3a8bb8 | Java | huangzaifeng/SpringCloudDemo | /spring-cloud-consumer/src/main/java/com/cmcc/cn/service/HystrixClientFallbackFactory.java | UTF-8 | 1,276 | 2.296875 | 2 | [] | no_license | package com.cmcc.cn.service;
import com.cmcc.cn.entity.User;
import feign.hystrix.FallbackFactory;
import org.springframework.stereotype.Component;
import java.util.List;
/**
* Created by le on 2017/10/19.
*/
@Component
public class HystrixClientFallbackFactory implements FallbackFactory<FeignService> {
@Overr... | true |
e99f2d8acff0df8c6b406404a1609714b6018e4f | Java | woshidaxian/zhelizhixiang | /src/main/java/com/example/demo/service/UserService.java | UTF-8 | 2,412 | 2.25 | 2 | [] | no_license | package com.example.demo.service;
import com.example.demo.VO.UserSessionVO;
import com.example.demo.entity.Authority;
import com.example.demo.entity.BindType;
import com.example.demo.entity.User;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.st... | true |
b2626f30823e317c4e076960d412bc10de7f2682 | Java | joGao01/CSE219-Data-Vilij | /cse219proj/data-vilij/src/dataprocessors/TSDProcessor.java | UTF-8 | 7,302 | 3.15625 | 3 | [] | no_license | package dataprocessors;
import javafx.geometry.Point2D;
import javafx.scene.Cursor;
import javafx.scene.chart.XYChart;
import javafx.scene.control.Label;
import javafx.scene.layout.StackPane;
import java.util.*;
import java.util.concurrent.atomic.AtomicBoolean;
import java.util.stream.Stream;
/**
* The data files u... | true |
e7575b60bad86689eba97f6708ab068d905596b1 | Java | theKidOfArcrania/yourpisd | /app/src/main/java/app/sunstreak/yourpisd/net/Parser.java | UTF-8 | 6,933 | 2.234375 | 2 | [] | no_license | /**
* This file is part of yourPISD.
*
* yourPISD is free software: 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, or
* (at your option) any later version.
*
* yourPISD is distribu... | true |
a2cefe27d0e2d83a6d84a7437838fe17587e73a0 | Java | openGDA/gda-core | /uk.ac.gda.api/src/uk/ac/gda/api/acquisition/parameters/DetectorDocument.java | UTF-8 | 3,803 | 2.171875 | 2 | [] | no_license | /*-
* Copyright © 2020 Diamond Light Source Ltd.
*
* This file is part of GDA.
*
* GDA is free software: you can redistribute it and/or modify it under the
* terms of the GNU General Public License version 3 as published by the Free
* Software Foundation.
*
* GDA is distributed in the hope that it will be usef... | true |
9b31ef0a2ca1d4fc7910d0ed4a751d30cf971aa1 | Java | contactaditya/RealTimeBigDataAnalytics | /Final Project/Social Index/OrderBySocialIndexMapper.java | UTF-8 | 1,048 | 2.59375 | 3 | [] | no_license | /*
* Aditya Gupta, Shikuan Huang, Xiangbo Liang
* Professor Suzanne McIntosh
* Realtime and Big Data Analytics
* 5, May 2015
*
* MapReduce Job to order countries by social index
*/
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.HashMap;
import java... | true |
ee1bbef23cc61113942afad89d768bc411904f2a | Java | ztowne13/APCSGame | /src/me/zm/apcsgame/GameState.java | UTF-8 | 322 | 2.109375 | 2 | [] | no_license | package me.zm.apcsgame;
import me.zm.apcsgame.tick.GameStateTick;
/**
* Created by ztowne13 on 4/8/16.
*/
public enum GameState
{
STARTUP(null),
MAIN_MENU(null),
IN_LEVEL(null),
STOPPED(null);
GameStateTick gameStateTick;
GameState(GameStateTick gameStateTick)
{
this.gameStateTick = gameStateTick;
}
... | true |
bf5b2a3a1abaeefd7635bc613ec91c2d5de0fdb1 | Java | EdwinFajardoBarrera/app1.transferencias | /src/main/java/fmat/aplicaciones/nube/model/Usuario.java | UTF-8 | 1,757 | 2.234375 | 2 | [] | no_license | package fmat.aplicaciones.nube.model;
import javax.persistence.*;
import com.fasterxml.jackson.annotation.JsonIgnore;
@Entity
@Table(name = "Usuarios")
public class Usuario {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Integer id;
@Column(name = "nombre")
private String nombr... | true |
391beecfd53c0ca6802ef5cd46cf9ef62a155952 | Java | Evergreen1992/musicplayer | /src/com/player/activity/SettingActivity.java | GB18030 | 1,657 | 2.40625 | 2 | [] | no_license | package com.player.activity;
import com.player.audioplayer.R;
import com.player.service.LricService;
import com.player.view.LricView;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget... | true |
c886aeba2d2154ac314ba15a59fe61cb97b420b4 | Java | wpalermo/socio-torcedor | /assinatura/socioTorcedor-service/src/main/java/com/wpalermo/socioTorcedor/entities/TimeCoracao.java | UTF-8 | 1,723 | 2.1875 | 2 | [] | no_license | package com.wpalermo.socioTorcedor.entities;
import java.io.Serializable;
import java.util.List;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.OneToOne;
import com.faste... | true |
cada20fa2853e9a79208755e533dfa66a3261178 | Java | marynazhulai/Homework2 | /src/task7/SeventxEcercise.java | UTF-8 | 303 | 2.84375 | 3 | [] | no_license | package task7;
public class SeventxEcercise {
public static void main(String[] args) {
int[] array = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10};
int a = 0;
for (int i = 1; i < array.length - 1; i++){
a = a + array[i];
}
System.out.println(a);
}
}
| true |
474187f21d16cc83c6c3b7c9567bb1e95e4be830 | Java | ilam1/Djaghrouri | /Geography.java | UTF-8 | 1,149 | 2.703125 | 3 | [] | no_license | public class Geography extends Category{
//Instance Variables
public static String[] questions = {
"What ocean lies to the East Coast of the United States? (Do not include ocean in your response)",
"What is the largest body of water in the world?",
"What is the longest river in the world (Do not in... | true |
53d6a55f9078f9d98bf3701cd009a52cf1750d01 | Java | Williamwuyi/hnjtamis | /src/cn/com/ite/hnjtamis/talent/reg/TalentRegistrationFormAction.java | UTF-8 | 4,758 | 2.015625 | 2 | [] | no_license | package cn.com.ite.hnjtamis.talent.reg;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.apache.commons.lang.StringUtils;
import cn.com.ite.eap2.common.utils.DateUtils;
import cn.com.ite.eap2.core.struts2.AbstractFormAction;
import cn.com.ite.eap2.domain.organi... | true |
68a23368e4183f5671dea0784b75b2dc6020e65e | Java | vittal288/JAVA | /InheritanceChallenge/src/vittalk/com/company/Main.java | UTF-8 | 207 | 2.046875 | 2 | [] | no_license | package vittalk.com.company;
public class Main {
public static void main(String[] args) {
TataIndia tataIndia = new TataIndia(30);
tataIndia.steer(45);
tataIndia.accelerate(30);
}
}
| true |
4f20f8d2ffa718d4014e977d56ff6ec3a77f086b | Java | bbockelm/DBS | /Servers/NVS2/src/gov/fnal/nvs/dm/service/impl/TierServiceImpl.java | UTF-8 | 1,220 | 2.453125 | 2 | [] | no_license | package gov.fnal.nvs.dm.service.impl;
import java.util.List;
import java.util.ArrayList;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import gov.fnal.nvs.dm.exception.TierException;
import gov.fnal.nvs.dm.entity.Datatier;
import gov.fnal.nvs.dm.dao.TierDao;
import gov.fnal.nvs... | true |
8dfc03502dc35d24a109a856e38331b54729fb1e | Java | ljhnhlh/Buy-Helper | /BackEnd/src/main/java/buyhelper/demo/detail_qiugou.java | UTF-8 | 1,361 | 2.125 | 2 | [] | no_license | package buyhelper.demo;
public class detail_qiugou {
private String avatarUrl;
private String nickname;
private int stars;
private String imageUrl;
private String status1_image;
private String status2_image;
private int status;
public String getAvatarUrl() {
return avatarUrl;
... | true |
f388380bde99ab71d12e83895cf9d9eeaa705c6e | Java | ahmedkhaled4d/FCIH | /java/training/XThread.java | UTF-8 | 1,002 | 3.953125 | 4 | [
"MIT"
] | permissive | class XThread extends Thread {
XThread() {
}
XThread(String threadName) {
super(threadName); // Initialize thread.
System.out.println(this);
start();
}
public void run() {
//Display info about this particular thread
System.out.println(Thread.currentThread().getName());
}
}
public class ThreadExample {... | true |
736532e365f4d731403301ba96ed52b4b170d6b9 | Java | jihazard/javaDesignPattern | /src/chapter5_robot2/baseCode/resultCode/inter/PunchAttack.java | UTF-8 | 196 | 2.21875 | 2 | [] | no_license | package chapter5_robot2.baseCode.resultCode.inter;
public class PunchAttack implements AttackStrate {
@Override
public void attack() {
System.out.println("주먹공격");
}
}
| true |
9e79b037d45613a9be7df28cda6bc7f0b240bb5c | Java | jw-itq/logistics-system | /logistics-backdemo/src/main/java/com/logistics/dao/mapper/ProxyfeeclearMapper.java | UTF-8 | 960 | 1.828125 | 2 | [] | no_license | package com.logistics.dao.mapper;
import com.logistics.pojo.Proxyfeeclear;
import com.logistics.pojo.ProxyfeeclearExample;
import org.apache.ibatis.annotations.Param;
import java.util.List;
public interface ProxyfeeclearMapper {
int countByExample(ProxyfeeclearExample example);
int deleteByExample(Proxyfeec... | true |
a678c2bb0c47906c12cdf805d656657904d275f1 | Java | baisla26/BlankLeaf | /src/main/java/com/Blankleaf/Blankleaf.java | UTF-8 | 16,314 | 1.9375 | 2 | [] | no_license | package com.Blankleaf;
import java.io.File;
import java.io.FileOutputStream;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import javax.validation.Valid;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Profile;
import org.springframew... | true |
fd6ad3a1eb232bfcad946994ab215285cb70afe6 | Java | NaLi18/QuickPark | /ParkingAT/src/main/java/com/parking/mongodb/listener/MongoDBContextListener.java | UTF-8 | 1,539 | 2.1875 | 2 | [] | no_license | package com.parking.mongodb.listener;
import java.net.UnknownHostException;
import javax.servlet.ServletContext;
import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;
import javax.servlet.annotation.WebListener;
import com.mongodb.MongoClient;
import com.mongodb.MongoClient... | true |
52aa9cba04ec014eb84bf8c073f7b341d7ef3b46 | Java | pengzong1111/versioned-ingester | /src/main/java/edu/indiana/d2i/zong/analysis/page/PageDiffStats.java | UTF-8 | 7,962 | 1.976563 | 2 | [] | no_license | package edu.indiana.d2i.zong.analysis.page;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.PrintWriter;
import java.io.UnsupportedEncodingException;
import java.util.HashMap;
import java.util.Li... | true |
2760c34d975858a79282a48ee9d9f6b8fbd21400 | Java | enataraj/Coding | /src/leetcode/oct/MinimumDominosRotation.java | UTF-8 | 4,582 | 2.984375 | 3 | [] | no_license | package leetcode.oct;
public class MinimumDominosRotation {
public int minDominoRotations(int[] A, int[] B) {
if (A == null || B == null || A.length == 0 || B.length == 0 || (A.length != B.length)) {
return -1;
}
int aCount = 0;
int bCount = 0;
for (int i = 0;... | true |
dea0fb39842ea4821ea0919e6729961110474ce3 | Java | VictorTenaPalomares/Microservicios-Agosto | /04_microservicio_contactos_Victor/src/main/java/service/AgendaServiceImpl.java | UTF-8 | 1,389 | 2.703125 | 3 | [] | no_license | package service;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import dao.AgendaDao;
import model.Contacto;
// Anotamos con @service para que Spring instancie esta clase y luego se pueda
// utilizar en los controladores
@Service... | true |
66a2614c4a362342d0de6f02862b60a63f69e372 | Java | bianapis/sd-atm-network-operations-v3 | /src/main/java/org/bian/dto/BQNetworkOperationRetrieveOutputModel.java | UTF-8 | 7,840 | 1.507813 | 2 | [
"Apache-2.0"
] | permissive | package org.bian.dto;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.bian.dto.BQNetworkOperationRetrieveOutputModelNetworkOperationInstanceAnalysis;
import org.... | true |
4670ddd48fe5d21fd5261bffd5b2119be6bb88d7 | Java | TheLuisBolivar/CTP-BACK-AUTH | /src/main/java/com/co/ctp/auth/services/services/LoginService.java | UTF-8 | 170 | 1.726563 | 2 | [] | permissive | package com.co.ctp.auth.services.services;
import com.co.ctp.auth.models.dtos.LoginReqDto;
public interface LoginService {
String login(LoginReqDto loginReqDto);
}
| true |
8822d9dfc65fb309932862dea848984f84156a0d | Java | xixsuse/EtkinlikYogunluguHaritasi | /app/src/main/java/com/farukkaradeniz/etkinlikyogunluguharitasi/ClusterListViewAdapter.java | UTF-8 | 2,149 | 2.4375 | 2 | [] | no_license | package com.farukkaradeniz.etkinlikyogunluguharitasi;
import android.content.Context;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.wi... | true |
374584c22b41848ca471bc803a2e855731582b59 | Java | AngryCodeDog/MyMoblieSafe | /MyMobilesafe/app/src/main/java/example/com/mymobilesafe/appManage/AppInfo.java | UTF-8 | 430 | 1.710938 | 2 | [] | no_license | package example.com.mymobilesafe.appManage;
import android.graphics.drawable.Drawable;
/**
* 应用信息
* Created by zyp on 5/5/16.
*
*/
public class AppInfo {
/**应用程序包名*/
public String pkgName;
/**应用程序名称*/
public String name;
/**应用程序图片*/
public Drawable icon;
/**系统应用*/
public boolean in... | true |
597d77f9943beb271e0b1e882f4478cf21f198ff | Java | zyxhangzhou/rbac-server | /rbac-server-web/src/main/java/com/hn/rbac/server/web/system/request/converter/MenuRequestConverter.java | UTF-8 | 465 | 1.859375 | 2 | [] | no_license | package com.hn.rbac.server.web.system.request.converter;
import com.hn.rbac.server.common.mapper.BasicObjectMapper;
import com.hn.rbac.server.share.model.Menu;
import com.hn.rbac.server.web.system.request.MenuRequest;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;
@Mapper
public interface MenuRequ... | true |
e36aeba2e1285bb01a126e197d4fcbf7067acf15 | Java | Aayers-ghw/data_structure_algorithms | /src/leetcode800/PossibleBipartition.java | UTF-8 | 1,152 | 3 | 3 | [] | no_license | package leetcode800;
import java.util.concurrent.Executor;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
/**
* @author Aayers-ghw
* @date 2019/9/3 10:03
*/
public class PossibleBipartition {
public boolean possibleBipartition(int N, int[][] dislikes) {
int[][] gr... | true |