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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
8cbf7a9dfe743cb100a880d04ed9500c42544681 | Java | sp0gg/GildedRose_java | /src/com/sp0gg/gildedrose/Inventory.java | UTF-8 | 234 | 2.640625 | 3 | [] | no_license | package com.sp0gg.gildedrose;
public class Inventory {
private Item[] items;
public Inventory(Item[] items) {
this.items = items;
}
public void updateQuality() {
for (Item item : items) {
item.updateQuality();
}
}
}
| true |
44e7890cd3d8713b1348d46ea7f4b52f82f7cf8b | Java | cy-default/learning | /learning-springcloud/src/main/java/com/rm13/cloud/exception/CustomException.java | UTF-8 | 1,369 | 3.015625 | 3 | [] | no_license | package com.rm13.cloud.exception;
import lombok.Data;
/**
* 业务类异常,不记录带有栈追踪信息的Exception;(fillInStackTrace性能慢50倍)/ 可以重写fillInStackTrace
*
* @author yuan.chen
* @email chen.yuan135@chinaredstar.com
* @Date 2019-06-25
*/
@Data
public class CustomException extends RuntimeException {
private Integer code;
pr... | true |
44279fde0db50052cecccde4bc7da9b93ddde3cb | Java | neetavarkala/miui_framework_clover | /android/util/SparseArray.java | UTF-8 | 7,051 | 2.21875 | 2 | [] | no_license | // Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3)
package android.util;
import com.android.internal.util.ArrayUtils;
import com.android.internal.util.GrowingArrayUtils;
import libcore.util.EmptyArray;
// Ref... | true |
b977b169727539ce0a78ccbabb1ebbcabb817ece | Java | szyna/AvalonStatTracker | /app/src/main/java/az/avalonstattracker/MainActivity.java | UTF-8 | 3,904 | 2.15625 | 2 | [] | no_license | package az.avalonstattracker;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AlertDialog;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
import android.view.LayoutInflater... | true |
b531eef2d87a991f245e1abfb5f7e03a8380d1a5 | Java | fzx-wsss/study | /study/src/main/java/com/wsss/algorithm/hot/spot/model/TotalLimitFlow.java | UTF-8 | 1,728 | 2.125 | 2 | [] | no_license | package com.wsss.algorithm.hot.spot.model;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
public class TotalLimitFlow implements Serializable {
private static final long serialVersionUID = -3720479033004210338L;
/** 主键CODE */
private String code;
/** 版本号 */
privat... | true |
04c0fa93814b7d86c86ff52877c378fa246c45ec | Java | ctripcorp/x-pipe | /redis/redis-core/src/main/java/com/ctrip/xpipe/redis/core/redis/rdb/encoding/StreamListpackIterator.java | UTF-8 | 3,013 | 2.421875 | 2 | [
"Apache-2.0"
] | permissive | package com.ctrip.xpipe.redis.core.redis.rdb.encoding;
import com.ctrip.xpipe.redis.core.redis.exception.RdbStreamParseFailException;
import java.util.LinkedList;
import java.util.List;
import java.util.concurrent.atomic.AtomicInteger;
/**
* @author lishanglin
* date 2022/6/23
*/
public class StreamListpackIterat... | true |
6fa68963cd67cf6e3c1c8bee6a65ec865b4dd375 | Java | MeteorProject/CharGer | /util/CGUtil.java | UTF-8 | 18,551 | 3.1875 | 3 | [] | no_license | package charger.util;
import charger.*;
import charger.obj.*;
import java.util.*;
import java.awt.*;
import java.awt.geom.*;
import java.awt.Color.*;
import javax.swing.*;
/**
* Utility classes (all static!) that should be of fairly general use
*/
public class CGUtil {
/**
* Displays the text string cent... | true |
5ae8efa381656cde594ce1e9f3bf7bb501af9cca | Java | cha63506/CompSecurity | /Spotify_source/src/fju.java | UTF-8 | 1,762 | 1.78125 | 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
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import com.spotify.a... | true |
4f32a038274aac2e91c90e953bc0a0c24d99915b | Java | kinny94/data-stucture-and-algo | /Patterns/Two Pointer/ComparingStringContainingBackspaces.java | UTF-8 | 1,537 | 3.609375 | 4 | [] | no_license | class ComparingStringContainingBackspaces {
public boolean compare(String str1, String str2) {
int index1 = str1.length() - 1;
int index2 = str2.length() - 1;
while (index1 >=0 || index2 >= 0) {
int i1 = getNextValidCharacter(str1, index1);
int i2 = getNextValidChara... | true |
a7fee137b58fe49cc35bce69dd7f714958ea794d | Java | PacktPublishing/Spring-MVC-Blueprints | /Chapter 04/Ch04/src/main/java/org/packt/human/resource/portal/controller/GoogleChartClient.java | UTF-8 | 1,702 | 2.1875 | 2 | [
"MIT"
] | permissive | package org.packt.human.resource.portal.controller;
import java.util.ArrayList;
import javax.servlet.http.HttpServletResponse;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.spri... | true |
2234ed59139877a5fc46e30c136fd774c24ace8a | Java | AniketBinekar/Expense-Manager | /app/src/main/java/com/applycreditcard/expense_manager/ui/home/HomeFragment.java | UTF-8 | 25,184 | 1.679688 | 2 | [] | no_license | package com.applycreditcard.expense_manager.ui.home;
import android.app.DatePickerDialog;
import android.app.Dialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.SharedPreferences;
import android.graphics.drawable.Drawable;
import android.os.Bundle;
import android.text... | true |
8af28af135d1e0b17ef9a00df9d59f990e8808ca | Java | AlexMitchell1294/Team-N-Project | /src/main/java/edu/wpi/cs3733/d21/teamN/services/database/Ndb.java | UTF-8 | 5,550 | 3.28125 | 3 | [] | no_license | package edu.wpi.cs3733.d21.teamN.services.database;
import java.sql.*;
import java.util.Scanner;
public class Ndb {
private static Connection connection;
private static Statement stmt;
public static void main(String[] args) {
try {
Class.forName("org.apache.derby.jdbc.EmbeddedDriver"); // Apache Der... | true |
dd0e829e1b95e7e2caedcbbbd7dbab6af19bccf4 | Java | Kalcoder/ICS3U-2019-20 | /U2/A3/Remixing For Loop and Array Programs/src/me/Kaleb/Main.java | UTF-8 | 2,990 | 4.15625 | 4 | [] | no_license | package me.Kaleb;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
runProgramOne();
runProgramTwo();
runProgramThree();
}
/**
* Function to run the first program in Remixing For Loop and Array Programs
*/
private static void runProgramOne() {
/... | true |
ccbb9350976f49c7ef85511bf89a5ee6d634bbbd | Java | TeamScrumUnipacifico/ProyectoFinal | /src/main/java/com/reservapp/entrega/modelo/dto/MesaDTO.java | UTF-8 | 1,649 | 1.992188 | 2 | [] | no_license | package com.reservapp.entrega.modelo.dto;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.io.Serializable;
import java.sql.*;
import java.util.Date;
/**
*
* @author Zathura Code Generator http://zathuracode.org
* www.zathuracode.org
*
*/
public class MesaDTO implements Seria... | true |
199152d26329f2fc7c9d3618a3fbc39af3eaa98a | Java | kelum99/Mad-Project | /app/src/main/java/com/example/progym/user/payment/EditPayment.java | UTF-8 | 4,916 | 2.125 | 2 | [] | no_license | package com.example.progym.user.payment;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
import android.app.AlertDialog;
import android.content.DialogInterface;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import... | true |
0961efae21ec3ad2122d0cd86dd54a7505f7086e | Java | git741852963/why | /dxz-backend/dxz-core/src/main/java/com/neusoft/features/db/DynamicDataSource.java | UTF-8 | 364 | 1.796875 | 2 | [] | no_license | package com.neusoft.features.db;
import org.springframework.jdbc.datasource.lookup.AbstractRoutingDataSource;
/**
* DynamicDataSource.java
*
* @author andy.jiao@msn.com
*/
public class DynamicDataSource extends AbstractRoutingDataSource {
@Override
protected Object determineCurrentLookupKey() {
r... | true |
650d2864ecae94607bd80cdafc83d1ef7169977c | Java | dw1258838824/TestSys | /src/main/java/com/ruoyi/project/system/computer/controller/BillContoller.java | UTF-8 | 7,729 | 1.90625 | 2 | [
"MIT"
] | permissive | package com.ruoyi.project.system.computer.controller;
import java.util.Date;
import java.util.List;
import java.util.Map;
import java.util.UUID;
import javax.servlet.http.HttpServletRequest;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import... | true |
6613ed293d9e40dec1e9309d5c73a050f17ffd24 | Java | petarchord/HealthyLifers | /app/src/main/java/com/healthyteam/android/healthylifers/Domain/LocationBuilder.java | UTF-8 | 2,038 | 2.3125 | 2 | [] | no_license | package com.healthyteam.android.healthylifers.Domain;
import android.graphics.Bitmap;
import java.util.List;
public class LocationBuilder implements Builder {
private Bitmap LocaitonPic;
private String Name;
private String Descripition;
private String DateAdded;
private List<String> TagList;
... | true |
df9cf63fc95ee41a1855ae71e430ef1ffaec8c96 | Java | lsianturi/xyzatoz | /src/com/benclaus/koperasi/model/FormulaArgItem.java | UTF-8 | 867 | 2.390625 | 2 | [] | no_license | package com.benclaus.koperasi.model;
public class FormulaArgItem {
private FormulaArg formulaArg;
private BookItem bookItem;
private String formula;
private String formulaArgs;
private double value;
public FormulaArg getFormulaArg() {
return formulaArg;
}
public void setFormulaArg(FormulaArg formulaArg) {
... | true |
1ecd9c767027bd573ac4d09aee9659f0a8283bf1 | Java | caiofellipe/calendario-academico-unifaesp | /app/src/main/java/com/br/calendario_academico/DadosModel.java | UTF-8 | 1,348 | 2.171875 | 2 | [
"MIT"
] | permissive | package com.br.calendario_academico;
public class DadosModel {
int idLegenda;
String Descricao;
String DataInicio;
String DataFim;
String Cor;
int Feriado;
public int getIdLegenda() {
return idLegenda;
}
public void setIdLegenda(int idLegenda) {
this.idLegenda = id... | true |
4c208c27c0c3c3930940ec77208447d5b5569211 | Java | atanvir/Satvik | /app/src/main/java/com/satvick/model/SizeCheckedListModel.java | UTF-8 | 540 | 2.453125 | 2 | [] | no_license | package com.satvick.model;
public class SizeCheckedListModel {
private String sizeName;
boolean isSizeChecked;
public SizeCheckedListModel(String sizeName) {
this.sizeName = sizeName;
}
public String getSizeName() {
return sizeName;
}
public void setSizeName(String sizeNa... | true |
ed0505218c72ff41a5285641854f55d3842f10b9 | Java | MinecraftSources/MiningCrates | /src/es/minetsii/MiningCrates/chests/CrateEffect.java | UTF-8 | 246 | 2.484375 | 2 | [
"Apache-2.0"
] | permissive | package es.minetsii.MiningCrates.chests;
public enum CrateEffect {
EXPLODE("explode"), UP("up"), TELEPORT("teleport");
@SuppressWarnings("deprecation")
private String type;
CrateEffect(String type) {
this.type = type;
}
}
| true |
425e89b2de44c2e064b562e020f9a7965a434977 | Java | srinivasudadi9000/Bus_Tracking | /app/src/main/java/diet/bus_tracking/Timings.java | UTF-8 | 501 | 2.609375 | 3 | [] | no_license | package diet.bus_tracking;
public class Timings {
String busstop,timings;
public Timings(String busstop, String timings) {
this.busstop = busstop;
this.timings = timings;
}
public String getBusstop() {
return busstop;
}
public void setBusstop(String busstop) {
... | true |
d79fb882067441592a32bc5e035115280fb411ee | Java | J-Jessica/algorithm | /src/笔试/T1.java | UTF-8 | 1,003 | 3.265625 | 3 | [] | no_license | package 笔试;
/**
* @ClassName T1
* @Description TODO
* @Author jingpeipei
* @Date 2018/9/9 10:04
*/
import java.util.*;
public class T1 {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
String str = in.nextLine();
System.out.println(maxLengthNotRepeatSubstr... | true |
919011a52ec5bcef8ac3652fd463f0b8260d5e2c | Java | King07/ProgrammingProjects | /AndroidDevelopmentGroup1/AndroidDevelopmentProject/src/com/example/androiddevelopmentproject/OpponentProfilePlayer.java | UTF-8 | 670 | 2.484375 | 2 | [] | no_license | package com.example.androiddevelopmentproject;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.FragmentActivity;
public class OpponentProfilePlayer extends FragmentActivity {
Player player;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(... | true |
a5383ca06c7a4af2f510ee09371813e94f1f974b | Java | lvaruzza/BAMFold | /BAMFolder/src/main/java/bfx/assembly/scaffold/edges/SuperEdgeBuilder.java | UTF-8 | 1,242 | 2.640625 | 3 | [] | no_license | package bfx.assembly.scaffold.edges;
import java.util.Map;
import org.apache.commons.math3.stat.descriptive.DescriptiveStatistics;
public class SuperEdgeBuilder {
private int count;
private int sumMQ;
private String left;
private String right;
private boolean reverse;
private DescriptiveStatistics stats;
pr... | true |
6653810c772b31242cc959c7b7e397aeb0284782 | Java | liuchen0510/apptest | /yujunwei/youji/src/main/java/com/pages/AddcommentPage.java | UTF-8 | 1,216 | 1.921875 | 2 | [] | no_license | package com.pages;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.interactions.Actions;
import org.openqa.selenium.support.FindBy;
import io.appium.java_client.AppiumDriver;
public class AddcommentPage {
private AppiumDriver driver;
@FindBy(id="neet.com.youjidemo:id/tab_icon")
private ... | true |
5ca8ec64d6f4f019625acbb694947d434de3342d | Java | guillaumeguy/AdventOfCode2020 | /src/main/java/day14/Instructions.java | UTF-8 | 526 | 2.78125 | 3 | [] | no_license | package day14;
import java.util.List;
public class Instructions {
String mask;
List<Integer> addresses;
List<Integer> values;
public Instructions(String a, List<Integer> b, List<Integer> c) {
this.mask = a;
this.addresses = b;
this.values = c;
}
@Override
public S... | true |
08be73dde8a9a06bf6c90799793e7255bffbcbc9 | Java | bartosz-jazwa/Delegation | /src/main/java/com/jazwa/delegation/model/document/DelegationStatus.java | UTF-8 | 116 | 1.59375 | 2 | [] | no_license | package com.jazwa.delegation.model.document;
public enum DelegationStatus {
INIT,SUBMITTED,REJECTED,PAID;
}
| true |
3fcea18c8be8d9c889eab8dd154c33c52e80a4e9 | Java | zgreen3/RSOI-LAB_3 | /service_1/src/main/java/smirnov/bn/service_1/web/LingVarController.java | UTF-8 | 7,599 | 2.296875 | 2 | [] | no_license | package smirnov.bn.service_1.web;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;
import java.util.List;
... | true |
3d8250457dba23afc9f6e29a5fd719d55bdb998a | Java | visit-dav/visit | /src/java/WindowInformation.java | UTF-8 | 23,273 | 1.851563 | 2 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | // Copyright (c) Lawrence Livermore National Security, LLC and other VisIt
// Project developers. See the top-level LICENSE file for dates and other
// details. No copyright assignment is required to contribute to VisIt.
package llnl.visit;
import java.util.Vector;
import java.lang.Integer;
// ********************... | true |
bbd05ab33b832dc2a468558f2f9321a25ad91a12 | Java | hybian/311 | /WiKi_Clawer_PA1/src/CrawlerTest.java | UTF-8 | 1,710 | 2.53125 | 3 | [] | no_license | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.net.URL;
import java.util.ArrayList;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
public class CrawlerTest {
static final String BASE_URL = "https://en.wi... | true |
eb5985ea6a6586e90913d4104eccf5a527011f73 | Java | stanvanrooy/decompiled-instagram | /decompiled/instagram/sources/p000X/C09540ba.java | UTF-8 | 623 | 1.679688 | 2 | [] | no_license | package p000X;
import android.os.MessageQueue;
/* renamed from: X.0ba reason: invalid class name and case insensitive filesystem */
public final class C09540ba implements MessageQueue.IdleHandler {
public final /* synthetic */ AnonymousClass0SV A00;
public C09540ba(AnonymousClass0SV r1) {
this.A00 =... | true |
1e371ccc2d973e5faf542bbac85d715b2f5be5ec | Java | FourKups/Finden | /app/src/main/java/com/fourkups/finden/Search_Activity.java | UTF-8 | 10,577 | 1.890625 | 2 | [] | no_license | package com.fourkups.finden;
import android.content.Intent;
import android.graphics.Color;
import android.graphics.Point;
import android.graphics.Rect;
import android.graphics.drawable.ColorDrawable;
import android.net.Uri;
import android.os.Bundle;
import android.text.Editable;
import android.text.TextWatcher;
import... | true |
38e74754b9c20e4667416423551b239cee698419 | Java | C0BBY/springy | /src/main/java/com/alpha/springy/springy/SpringyApplication.java | UTF-8 | 380 | 1.875 | 2 | [] | no_license | package com.alpha.springy.springy;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class SpringyApplication {
public static void main(String[] args) {
SpringApplication.run(SpringyApplication.class, args);
}
pr... | true |
25a895a862137b19ba2353b5d516ec1bda068f59 | Java | linux10000/goku-food | /src/main/java/com/akiratoriyama/gokufoodapi/enums/I18nEnum.java | UTF-8 | 106 | 1.570313 | 2 | [] | no_license | package com.akiratoriyama.gokufoodapi.enums;
public interface I18nEnum {
public String getI18nKey();
}
| true |
fc835a0d24d8998504e28b3f5c6c6f9e6da41087 | Java | antonnovash/PracticeEconomicCybernetics2019 | /Novash_Lab_2/Applett.java | UTF-8 | 3,409 | 2.796875 | 3 | [] | no_license | import java.applet.Applet;
import java.awt.BasicStroke;
import java.awt.Color;
import java.awt.Font;
import java.awt.GradientPaint;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.Paint;
import java.awt.RenderingHints;
import java.awt.Shape;
import java.awt.font.GlyphVector;
import java.awt.geom.A... | true |
a32570226c64c621767fea9625902904238678fd | Java | mkirsche/SVGraph | /src/FastaObject.java | UTF-8 | 1,185 | 3.421875 | 3 | [] | no_license | import java.io.File;
import java.io.FileInputStream;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Scanner;
/**
* A representation of a FASTA file as a map from name to sequence
*/
public class FastaObject {
HashMap<String, String> nameToSeq;
ArrayList<String> names;
FastaObject(String ... | true |
1cfdac189c7164f29806d1a111e82f24b478e3c1 | Java | shaokuuipo/poi-tl | /poi-tl/src/main/java/com/deepoove/poi/policy/AbstractParagraphConverterRenderPolicy.java | UTF-8 | 1,632 | 2.15625 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2014-2021 Sayi
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in... | true |
4a68f0b12ccb49244992c36b094f5ff0c02c36e6 | Java | nisegami/grand-order-companion | /app/src/main/java/world/arshad/grandordercompanion/model/Material.java | UTF-8 | 5,074 | 2.65625 | 3 | [] | no_license | package world.arshad.grandordercompanion.model;
/**
* This is an enum of all skill and ascension materials.
* Created by arshad on 19/03/2018.
*/
public enum Material {
DRAGON_FANG("Dragon Fang", "dragon_fang"),
EVIL_BONE("Evil Bone", "evil_bone"),
PROOF_OF_HERO("Proof of Hero", "proof_of_hero"),
V... | true |
55396b0652722ea2f8cfa0bda4743f5499bdeb8b | Java | nhatday/vohoangnhat-ocwiki | /src/org/ocwiki/controller/rest/bean/ResourceSearchReportMapper.java | UTF-8 | 1,050 | 2.34375 | 2 | [] | no_license | package org.ocwiki.controller.rest.bean;
import org.ocwiki.data.Article;
import org.ocwiki.data.ResourceSearchReport;
public class ResourceSearchReportMapper implements
Mapper<ResourceSearchReportBean, ResourceSearchReport<? extends Article>> {
@Override
public ResourceSearchReportBean toBean(ResourceSearchRepor... | true |
6fc1995649889d7191ae24aec5e500c1754b9390 | Java | ehasalud/openmrs-module-restrictbyrole | /omod/src/main/java/org/openmrs/module/restrictbyrole/web/controller/RestrictionFormController.java | UTF-8 | 3,498 | 1.953125 | 2 | [] | no_license | package org.openmrs.module.restrictbyrole.web.controller;
import java.util.ArrayList;
import java.util.List;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.openmrs.api.context.C... | true |
8f23a5165e8c7fe3e94cabaf0f58a8ecc5a02b76 | Java | everoad/jpa-study-shop | /src/main/java/com/kbj/shop/repository/ItemRepository.java | UTF-8 | 712 | 2.390625 | 2 | [] | no_license | package com.kbj.shop.repository;
import com.kbj.shop.domain.item.Item;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Repository;
import javax.persistence.EntityManager;
import java.util.List;
import java.util.Optional;
@Repository
@RequiredArgsConstructor
public class ItemRepository {
... | true |
0e8f38d277e72c99c12a70d984020b9ccb0bc662 | Java | SyselMitY/Laboruebungen_Java_4 | /Labor_15_backend/src/main/java/com/example/gutegadsen_backend/util/UpvoteRequestBody.java | UTF-8 | 268 | 1.648438 | 2 | [] | no_license | package com.example.gutegadsen_backend.util;
import lombok.AllArgsConstructor;
import lombok.Getter;
@AllArgsConstructor
@Getter
public class UpvoteRequestBody {
public final String username;
public final Long postId;
public final Boolean upvoteState;
}
| true |
8d2b9c47f04b58362e44b5ae624fd54efbfb7dce | Java | RamesesDev/osiris2 | /web/commonweb/src/com/rameses/web/component/captcha/UICaptcha.java | UTF-8 | 1,925 | 1.882813 | 2 | [] | no_license |
package com.rameses.web.component.captcha;
import java.io.IOException;
import javax.faces.component.UIComponentBase;
import javax.faces.context.FacesContext;
import javax.faces.context.ResponseWriter;
import javax.servlet.http.HttpServletRequest;
public class UICaptcha extends UIComponentBase{
public UICapt... | true |
39a68260d10d4a48b0ffa44880efead0da02bf6b | Java | huangdaiyi/guanggou | /src/main/java/com/hlhj/guanggou/mapper/UserFavoriteMapper.java | UTF-8 | 590 | 1.734375 | 2 | [] | no_license | package com.hlhj.guanggou.mapper;
import java.util.List;
import com.hlhj.guanggou.param.BasePagingParam;
import com.hlhj.guanggou.po.UserFavorite;
import com.hlhj.guanggou.result.FavoriteProduct;
public interface UserFavoriteMapper {
int deleteByPrimaryKey(Integer id);
int insert(UserFavorite record);
... | true |
17c5a7435657458189e78758f1b46f1f8d879d42 | Java | JohnNuha/SisTerQ | /prak6/Periksa.java | UTF-8 | 845 | 2.609375 | 3 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package prak6;
/**
*
* @author NuH
*/
public class Periksa extends Thread {
Dokter d = new Dokter("johan");
String namaDok = d.getNama();
Pasien p = new Pasien(1);
String p0 = p.getNama(0);
Strin... | true |
6f8708b5ff517cd8736d4600f2eec7eaabf96577 | Java | QingchenD/LeetCode | /src/ljava/FindFriendCircle.java | UTF-8 | 1,951 | 3.65625 | 4 | [] | no_license | package ljava;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
/**
* https://leetcode-cn.com/explore/featured/card/bytedance/243/array-and-sorting/1036/
* 班上有 N 名学生。其中有些人是朋友,有些则不是。他们的友谊具有是传递性。如果已知 A 是 B 的朋友,B 是 C 的朋友,那么我们可以认为 A 也是 C 的朋友。所谓的朋友圈,是指所有朋友的集合。
* 给定一... | true |
7cd658a25d667e5e1fc28cd31d58dc6d887ba07a | Java | dibog/net.bogdoll.wizards | /net.bogdoll.wizards/src/net/bogdoll/property/Property.java | UTF-8 | 924 | 2.71875 | 3 | [] | no_license | package net.bogdoll.property;
import java.beans.PropertyChangeListener;
import java.beans.PropertyChangeSupport;
public class Property<T>
{
private PropertyChangeSupport mPCS = new PropertyChangeSupport(this);
private T mValue;
public Property() {}
public Property(T aInitValue) {
mValue = aIni... | true |
27fc0d3b0e038e36ab6722d887efc6b6564f8812 | Java | isilacar/restaurant-api | /src/main/java/com/finartz/restaurantApi/exception/CustomExceptionHandler.java | UTF-8 | 5,775 | 2.46875 | 2 | [] | no_license | package com.finartz.restaurantApi.exception;
import com.finartz.restaurantApi.error.BadCredentialError;
import com.finartz.restaurantApi.error.ErrorMessage;
import com.finartz.restaurantApi.error.InternalServerError;
import com.finartz.restaurantApi.error.NotAllowedError;
import org.springframework.context.MessageSou... | true |
865231ace52fc4656577aaab7bebe8dcb1d1fdc9 | Java | StijnStaring/Battleship | /src/startSituation/RandomStart.java | UTF-8 | 3,936 | 3.5 | 4 | [] | no_license | package startSituation;
import ships.*;
import java.util.Arrays;
import java.util.List;
import java.util.*;
public class RandomStart {
int amountRows;
int amountColumns;
public ArrayList<Ship> shipsOnBoard = new ArrayList<>();
public RandomStart(int amountRows, int amountColumns){
this.... | true |
a52bbd061c4d3c3ee6eaede7865c84834a990297 | Java | qdsncaq/jrest4guice | /JRest4Guice/src/persistence/src/main/java/org/jrest4guice/transaction/HibernateLocalTransactionInterceptor.java | UTF-8 | 2,430 | 2.265625 | 2 | [] | no_license | package org.jrest4guice.transaction;
import java.lang.reflect.Method;
import org.aopalliance.intercept.MethodInterceptor;
import org.aopalliance.intercept.MethodInvocation;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.hibernate.Transaction;
import org.jrest4... | true |
0c5a53dc8e817c6c07fc901dfbfb6fb97b0d80be | Java | cuongnd273/alertdrowsiness | /app/src/main/java/university/project/cuong/alertdrowsiness/activity/InfomationActivity.java | UTF-8 | 4,752 | 2.1875 | 2 | [] | no_license | package university.project.cuong.alertdrowsiness.activity;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.widget.ListView;
import android.widget.TextView;
import android.widget.Toast;
import com.android.volley.AuthFailureError;
import com.android.volley.Request;
import com.a... | true |
09501d1a7eef98d03c1eaf35af160c1b00d579ad | Java | ugandharreddy/myrepo1 | /attrahealthcare/src/main/java/com/attra/DaoClassImpl/PatientListInterface.java | UTF-8 | 203 | 1.796875 | 2 | [] | no_license | package com.attra.DaoClassImpl;
import java.util.List;
import com.attra.Model.Appointmentdetail;
public interface PatientListInterface {
public List<Appointmentdetail> getPatientList(String email);
}
| true |
3825048f24a6ff789363689c4a825bddd1f375a1 | Java | kimonic/springbootdemo | /src/main/java/StudyRecord.java | UTF-8 | 11,053 | 2.5625 | 3 | [] | no_license | /**
* spring boot 问题记录
*/
public class StudyRecord {
/**
* https://www.zhihu.com/question/19716589
* 程序员客栈 https://www.proginn.com/
* 猿急送 http://www.yuanjisong.com/
* 码市 https://mart.coding.net/
* 大鲲 https://pro.lagou.com/
* 自客 http://www.zike.com/
* 极牛 http://geekniu.com/
... | true |
3ff98d4d819f3f15b6cb462d9200a1b86de3f902 | Java | pooyanjamshidi/spark-suite | /spark-monitor/src/main/java/uk/ac/ic/spark/monitor/services/ClusterMonitorService.java | UTF-8 | 639 | 2.28125 | 2 | [] | no_license | package uk.ac.ic.spark.monitor.services;
import com.google.common.util.concurrent.AbstractExecutionThreadService;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
public class ClusterMonitorService extends AbstractExecutionThreadService {
private static final Logger log = LogMa... | true |
20505df71ac255c55504107f1f9d1d4e2fed0684 | Java | Ellengou/jingdun-blockchain | /qhdconsole/src/main/java/com/yuyoukj/service/impl/ConfprovinceServiceImpl.java | UTF-8 | 1,705 | 1.742188 | 2 | [] | no_license | package com.yuyoukj.service.impl;
import java.util.List;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.yuyoukj.ao.model.Page;
import com.yuyoukj.mapper.qhd.ConfprovinceMapper;
import com.yuyoukj.model.qhd.Confprovince;
im... | true |
3f7bd55f09f484692ea53851465a081b41e6902d | Java | vikashhrs/carpooltest | /app/src/main/java/com/example/vikash/carpooltest/RideSetupActivity.java | UTF-8 | 2,233 | 2.46875 | 2 | [] | no_license | package com.example.vikash.carpooltest;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ListView;
import java.util.ArrayList;
public class RideSetupActivity extends AppCompatActivity implements ListView.OnIt... | true |
b181b0c5f311ad2b564376d730aeacd353b5e495 | Java | NishBarman/GitDemo | /Academy/src/main/java/pageObject/forgetPassword.java | UTF-8 | 565 | 2.265625 | 2 | [] | no_license | package pageObject;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
public class forgetPassword {
public WebDriver driver;
By Email=By.id("user_email");
By instruction=By.xpath("//input[@value='Send Me Instruction']");
public forgetPassword(WebDri... | true |
ce47cb9884130e9878d88fab7d91f51bff05dca2 | Java | soeunsocheat/SportClub | /app/src/main/java/com/example/msi/sportclub/Menu_Screen.java | UTF-8 | 1,102 | 1.84375 | 2 | [] | no_license | package com.example.msi.sportclub;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
public class Menu_Screen extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(sav... | true |
1724d91d321ab4841c1758b6e95789d480c2989b | Java | wmh200/miniRpc | /rpc-mini-rpc/src/main/java/hust/wang/netty/rpc/manage/RpcServiceManager.java | UTF-8 | 6,218 | 2.203125 | 2 | [] | no_license | package hust.wang.netty.rpc.manage;
/**
* @Author wangmh
* @Date 2021/6/25 下午5:07
**/
import hust.wang.netty.rpc.annotation.RpcServer;
import hust.wang.netty.rpc.annotation.RpcServerScan;
import hust.wang.netty.rpc.factory.ServiceFactory;
import hust.wang.netty.rpc.handler.HeartBeatServerHandler;
import hust.wang... | true |
41a79f3f8aee166f094e1ecfeb11e99aeed58be1 | Java | pramodwus/SpringBoot-Security | /Spring-Mvc-Boot/src/main/java/com/sathya/controller/WelcomeController.java | UTF-8 | 355 | 1.78125 | 2 | [] | no_license | package com.sathya.controller;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.servlet.ModelAndView;
@Controller
public class WelcomeController {
@GetMapping("/show")
public ModelAndView showWelcome()
{
return new Model... | true |
0fab12abbdea67463397f39b65aa4cac93ec036c | Java | nmwael/EyeOfTheWatcher | /EyeOfTheWatcherTornadoFX/src/main/java/org/eyeofthewatcher/dungeonmaster/DungeonMasterJSON.java | UTF-8 | 1,238 | 2.75 | 3 | [
"Apache-2.0"
] | permissive | package org.eyeofthewatcher.dungeonmaster;
import org.eyeofthewatcher.dungeonmaster.entities.Prop;
import org.eyeofthewatcher.dungeonmaster.entities.Tile;
import org.eyeofthewatcher.dungeonmaster.entities.Weapon;
import java.util.Random;
/**
* Created by nmw on 12-06-2017.
*/
public class DungeonMasterJSON impleme... | true |
ed22d4d4badde6a0c72b01b57808feb3a336cc34 | Java | rubenspessoa/wsn-simulation | /JSensor/src/projects/Flooding/DistributionModels/RandomDistribution.java | UTF-8 | 484 | 2.171875 | 2 | [] | no_license | package projects.Flooding.DistributionModels;
import jsensor.nodes.Node;
import jsensor.nodes.models.DistributionModelNode;
import jsensor.utils.Configuration;
import jsensor.utils.Position;
/**
*
* @authorMatheus
*/
public class RandomDistribution extends DistributionModelNode
{
@Override
pub... | true |
2b1280c048c773262d6534eea29081835db4f0aa | Java | AZhen2333/erp01 | /src/main/java/com/dg/entity/ResponseResult.java | UTF-8 | 1,538 | 2.4375 | 2 | [] | no_license | package com.dg.entity;
import com.dg.utils.IStatusMessage;
import java.io.Serializable;
/**
* 前端请求响应结果,code:编码,message:描述,obj对象,可以是单个数据对象,数据列表或者PageInfo
*/
public class ResponseResult implements Serializable {
private static final long serialVersionUID = 7285065610386199394L;
private String co... | true |
68a99f1e0d8fea08d23ec6e42ed12b4037d26126 | Java | sdcote/coyote | /CoyoteDX/src/test/java/coyote/dx/writer/FlatFileTest.java | UTF-8 | 1,181 | 1.90625 | 2 | [] | no_license | /*
* Copyright (c) 2015 Stephan D. Cote' - All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the MIT License which accompanies this distribution, and is
* available at http://creativecommons.org/licenses/MIT/
*/
package coyote.dx.writer;
//import stat... | true |
2e90fccf5d422086fba91172a5de76c0a56adcee | Java | zjsywcc/cyborg-cloud | /src/main/java/com/ese/cloud/client/service/impl/AppInfoServiceImpl.java | UTF-8 | 2,894 | 2.140625 | 2 | [] | no_license | package com.ese.cloud.client.service.impl;
import com.ese.cloud.client.dao.AppInfoDao;
import com.ese.cloud.client.entity.AppInfo;
import com.ese.cloud.client.service.AppInfoService;
import org.apache.commons.lang3.StringUtils;
import org.bson.types.ObjectId;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
im... | true |
eb21c90d4d8da779f30fc3b239d29568b5be1691 | Java | lenik/stack | /plover/modeling/plover-orm/src/main/java/com/bee32/plover/orm/context/PloverHibernateInterceptor.java | UTF-8 | 831 | 2.09375 | 2 | [] | no_license | package com.bee32.plover.orm.context;
import javax.inject.Inject;
import javax.inject.Named;
import org.hibernate.SessionFactory;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.annotation.Lazy;
import org.springframework.orm.hibernate3.HibernateInterceptor;
import org.spri... | true |
701015e1be8252c3b9339edab002fed54667a8f8 | Java | Mohibulislam12/assignment | /capitalize.java | UTF-8 | 484 | 3.453125 | 3 | [] | no_license | import java.io.*;
class capitalize
{
public static void main(String args[])
{
try
{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
System.out.println("Enter the string");
String s = br.readLine();
int len = s.length();
String word="";
for(int i=0;i<len;i++)
{
char ch=s... | true |
463729fd75ed05649ae9564a953e1cf4226ae726 | Java | miuramo/AnchorGarden | /src/jaist/css/covis/fm/AbstractFlowMenu.java | SHIFT_JIS | 3,545 | 2.171875 | 2 | [
"MIT"
] | permissive | package jaist.css.covis.fm;
import java.awt.Cursor;
import java.awt.geom.Point2D;
import javax.swing.JFrame;
import edu.umd.cs.piccolo.PCamera;
import edu.umd.cs.piccolo.PCanvas;
import edu.umd.cs.piccolo.PNode;
import edu.umd.cs.piccolo.event.PDragSequenceEventHandler;
import edu.umd.cs.piccolo.event.PInputEvent;
... | true |
75fa17557ba5ae688fa9da5b4f44c56d7bd115bd | Java | baptistecolin/tp_jflex_cup | /Parser.java | UTF-8 | 56,912 | 2.1875 | 2 | [] | no_license |
//----------------------------------------------------
// The following code was generated by CUP v0.11a beta 20060608
// Wed Sep 27 11:11:14 CEST 2017
//----------------------------------------------------
import java_cup.runtime.*;
import java.util.*;
import java.io.*;
import java.lang.Math;
/** CUP v0.11a beta 20... | true |
c22aa8f4e662da312398f896ebb6e0855abb7c35 | Java | Eire0101/jxc | /src/main/java/com/i/service/SlmService.java | UTF-8 | 318 | 1.65625 | 2 | [] | no_license | package com.i.service;
import com.github.pagehelper.PageInfo;
import com.i.entity.Slm;
public interface SlmService {
public Integer getSlmCount();
public PageInfo selAllSlm(PageInfo pageInfo);
public void addSlm(Slm slm);
public void delSlm(Integer slmid);
public void updateSlm(Slm slm);
}
| true |
b6cdc04795370d721b2adadcad5e1e84cedb2510 | Java | AAbdel92/Projet-Final | /src/main/java/fr/laposte/simplon/controllers/DiaryController.java | UTF-8 | 2,212 | 2.171875 | 2 | [] | no_license | package fr.laposte.simplon.controllers;
import java.util.ArrayList;
import java.util.List;
import java.util.Optional;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import or... | true |
34a2c2b855d8cd7e4bca89e9610f2d56c24dd4da | Java | chiragjog/CloudStack | /utils/src/com/cloud/utils/db/ConnectionConcierge.java | UTF-8 | 7,917 | 2.09375 | 2 | [
"Apache-2.0"
] | permissive | /**
* Copyright (C) 2010 Cloud.com, Inc. All rights reserved.
*
* This software is licensed under the GNU General Public License v3 or later.
*
* It 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, e... | true |
47cc1d3510e46bec48bdedb723d41673e22bbab8 | Java | jhayfelix/Bunny-Hop-Developers-Procurement-System | /src/main/java/procurementsys/controller/AddProductController.java | UTF-8 | 1,684 | 3.046875 | 3 | [] | no_license | package procurementsys.controller;
import java.util.Optional;
import procurementsys.model.Product;
import procurementsys.model.database.MySQLProductDAO;
import procurementsys.model.database.ProductDAO;
import procurementsys.view.SoftwareNotification;
import javafx.event.ActionEvent;
import javafx.scene.control.Butto... | true |
4a41bfbd64af20e4286c52f65f4bfb8df7d58e94 | Java | DylanWang2020/PolymPic | /ActivityLauncher/src/main/java/com/knziha/polymer/browser/webkit/XWalkMainActivity.java | UTF-8 | 1,387 | 2.140625 | 2 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | package com.knziha.polymer.browser.webkit;
import android.app.Activity;
import android.os.Bundle;
import android.view.Menu;
import android.view.ViewGroup;
import com.knziha.polymer.R;
import org.xwalk.core.XWalkActivityDelegate;
import org.xwalk.core.XWalkView;
/** Deprecated. Use XWalkActivityDelegate in your Acti... | true |
89e2c11e0e80914ed71cb4a27263f91169726eb5 | Java | apache/lenya | /org.apache.lenya.core.administration/src/main/java/org/apache/lenya/cms/ac/usecases/AddGroup.java | UTF-8 | 2,443 | 2.3125 | 2 | [
"Apache-2.0"
] | permissive | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you ... | true |
272c42302f4e030090b3f2e76746edc6a5a2f7db | Java | sonhoang1809/Hana-Shop | /Lab2-HanaShop-SE130448/src/java/com/sample/hanashop/controllers/LoadUserDetailsController.java | UTF-8 | 3,753 | 2.125 | 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 com.sample.hanashop.controllers;
import com.sample.hanashop.daos.RoleDAO;
import com.sample.hanashop.daos.UserDAO;
import com.... | true |
07e84acf41e1d17c3ed3b64da93c7f3106d2f0e0 | Java | leeedanny1/java_Study | /workspace/abstract_ex/src/ch04/Zergling.java | UHC | 186 | 2.703125 | 3 | [] | no_license | package ch04;
public class Zergling extends Unit {
//
// ݷ5, ü100
public Zergling(String name) {
this.name = name;
this.power = 5;
this.hp = 100;
}
}
| true |
d405cbb330fa33643c3667134893a4125efaf049 | Java | boggdan95/HojaDeTrabajo-1 | /HojaDeTrabajo-1/src/radioBBP.java | UTF-8 | 3,413 | 3.140625 | 3 | [] | no_license |
/**
* @author Boggdan Barrientos, Bryan Chan, Pablo Arriola
*
*/
public class radioBBP implements radio {
private int volumenActual = 0;
private double emisoraActual = 87.9;
private String frecuenciaActual = "FM";
private boolean estadoActual = false;
private double[] ams = new double[12];
pri... | true |
75a09b0b351a6b189797ae77255a3694d45a3691 | Java | BernardoGrigiastro/IBE-Editor | /ibeeditor/base/src/main/java/com/github/franckyi/ibeeditor/base/client/mvc/model/entry/StringEntryModel.java | UTF-8 | 544 | 2.390625 | 2 | [
"MIT"
] | permissive | package com.github.franckyi.ibeeditor.base.client.mvc.model.entry;
import com.github.franckyi.gameadapter.api.common.text.IText;
import com.github.franckyi.ibeeditor.base.client.mvc.model.CategoryModel;
import java.util.function.Consumer;
public class StringEntryModel extends ValueEntryModel<String> {
public Str... | true |
c04c081846773e3e505341037073a042743cb6e4 | Java | luisfilipels/Interview-Preparation | /LeetCode/TargetSum.java | UTF-8 | 1,472 | 3.546875 | 4 | [] | no_license | package Extras.LeetCode;
import java.util.Arrays;
public class TargetSum {
private static int findTargetSumWays (int [] nums, int S) {
int [][] dp = new int[nums.length][2001]; // 0 a 1000 -> somas negativas. 1001 a 2001 -> somas positivas
for (int [] row : dp) {
Arrays.fill(row, Inte... | true |
c065c3b24ffec32dea1d8190782e588e937acda7 | Java | gwtproject/gwt | /dev/core/src/com/google/gwt/dev/javac/CompilationUnitImpl.java | UTF-8 | 3,715 | 1.734375 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2008 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | true |
d0f5c46e49e7333dd7ced525b711146937b8168f | Java | nodwengu/schoolApp | /src/main/java/net/school/schoolApp/service/LessonService.java | UTF-8 | 2,798 | 2.421875 | 2 | [] | no_license | package net.school.schoolApp.service;
import lombok.RequiredArgsConstructor;
import net.school.schoolApp.entity.Day;
import net.school.schoolApp.entity.Grade;
import net.school.schoolApp.entity.Lesson;
import net.school.schoolApp.entity.Subject;
import net.school.schoolApp.repository.DayRepository;
import net.school.s... | true |
8545794ca4a3f9838786a533b286f6205ba48cac | Java | nkrusch/SpaceLaunchOne | /SpaceLaunchOne/datasrc/src/main/java/api/ILaunchLibrary.java | UTF-8 | 1,888 | 2.734375 | 3 | [
"MIT"
] | permissive | package api;
import models.LaunchDetailed;
import models.LaunchListDetailed;
import models.data.BuildConfig;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Path;
import retrofit2.http.Query;
/**
* Define the Launch Library API methods callable from the app.
* <p>
* See <a href="https://the... | true |
86f5d4a3847853e5af1bc959e5c998ce5a3c8788 | Java | pepinpin/microMorse | /app/src/main/java/net/biospherecorp/umorse/FlashLight_Pre_Marshmallow.java | UTF-8 | 1,424 | 2.640625 | 3 | [] | no_license | package net.biospherecorp.umorse;
import android.hardware.Camera;
// To deal with devices before API 23 (Marshmallow)
class FlashLight_Pre_Marshmallow implements MorseLight.FlashLight {
// deprecated but used
// on devices before API 23 (Marshmallow)
private Camera _camera;
private Camera.Parameters _parameters;... | true |
34962412a31bd9e376095309d3515641c263b1f5 | Java | leeleekaen/GankPro | /app/src/main/java/com/freedom/lauzy/gankpro/ui/fragment/OpenLibsFragment.java | UTF-8 | 3,529 | 1.992188 | 2 | [] | no_license | package com.freedom.lauzy.gankpro.ui.fragment;
import android.content.Context;
import android.os.Bundle;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapte... | true |
ca164add6c7f1d477aba842de9296003ff7d7d6c | Java | heyuanxiao123/tulexing2 | /Tulexing/src/com/xtkj/tlx/entity/LineType.java | UTF-8 | 960 | 2.328125 | 2 | [] | no_license | package com.xtkj.tlx.entity;
import java.io.Serializable;
import java.util.Date;
/*
* 声明线路类型实体类
*/
public class LineType implements Serializable {
private String lineTypeID;//线路类型编号
private String typeName; //线路类型名字
private Date time; //线路类型添加时间
private String icon; //线路类型图标名
private int state;
public Stri... | true |
19818aee77d24ac23ba4adf252411a75ac8a37c6 | Java | SoCool1345/DataStructures | /DataStructure/src/main/java/com/tree/ThreadedBinaryTree.java | UTF-8 | 2,960 | 3.5625 | 4 | [] | no_license | package com.tree;
public class ThreadedBinaryTree {
ThreadedBinaryTreeNode root;
ThreadedBinaryTreeNode pre;//前驱结点
public ThreadedBinaryTree(ThreadedBinaryTreeNode root) {
this.root = root;
}
public ThreadedBinaryTreeNode getRoot() {
return root;
}
public void setRoot(Thr... | true |
634c13c1812a56561b263a3ee1d133cc0d280690 | Java | wangjianing-2020/guli | /guli_parent/service/service_edu/src/main/java/com/atguigu/eduservice/controller/EduVideoController.java | UTF-8 | 2,551 | 2.015625 | 2 | [
"Artistic-2.0"
] | permissive | package com.atguigu.eduservice.controller;
import com.atguigu.commonutils.R;
import com.atguigu.eduservice.client.VodClient;
import com.atguigu.eduservice.entity.EduVideo;
import com.atguigu.eduservice.service.EduVideoService;
import com.atguigu.servicebase.exceptionhandler.GuliException;
import org.springframework.b... | true |
40835307595bd86f69573cf49e2c4e6fe35453df | Java | samwalls/particle-command | /src/main/java/engine/common/event/CollisionEnterEvent.java | UTF-8 | 238 | 1.9375 | 2 | [] | no_license | package engine.common.event;
import engine.common.physics.Contact;
public class CollisionEnterEvent extends Event {
public Contact contact;
public CollisionEnterEvent(Contact contact) {
this.contact = contact;
}
}
| true |
0bdbd1e02db118952cdf6e4550cfdfa8aed02a14 | Java | spachecogomez/fizzbuzz | /src/main/java/com/test/rest/FizzBuzzController.java | UTF-8 | 836 | 2.21875 | 2 | [] | no_license | package com.test.rest;
import com.test.components.FizzBuzzCalculator;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
i... | true |
0e58fff17309e142170adc1d0a7666c421d269b4 | Java | VinitBhavsar/Stack-Overflow-Clone-Backend | /src/main/java/com/github/QueNAns/service/UserService.java | UTF-8 | 974 | 2.015625 | 2 | [] | no_license | package com.github.QueNAns.service;
import java.util.List;
import com.github.QueNAns.model.Answer;
import com.github.QueNAns.model.Question;
import com.github.QueNAns.model.SecurityQuestion;
import com.github.QueNAns.model.User;
public interface UserService {
List<User> login(String emilAddress, String... | true |
69fd9f0916edfcb61e7dc05e9527fc8327856d3d | Java | Qc031x/towin_pcpt | /src/com/sgfm/datacenter/util/LogIntercept.java | UTF-8 | 3,890 | 2.296875 | 2 | [] | no_license | package com.sgfm.datacenter.util;
import java.lang.reflect.Method;
import java.util.Date;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import org.apache.log4j.Logger;
import org.apache.struts2.ServletActionContext;
import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.reflect.Me... | true |
775b0612467fb3308ac1cdccfd8b6a2163abc370 | Java | eonezhang/wechat-pay | /wechat-pay-core/src/main/java/org/develop/wechatpay/utils/Util.java | UTF-8 | 2,514 | 2.671875 | 3 | [] | no_license | package org.develop.wechatpay.utils;
import java.lang.reflect.Field;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Iterator;
import java.util.List;
import java.util.Objects;
import org.apache.commons.codec.digest.DigestUtils;
import org.apache.commons.lang3.RandomStringUtils;
import... | true |
10583cab86b4f86bf129750cb8c8032595998c85 | Java | artem-torbeev/project | /src/main/java/servlets/LoginServlet.java | UTF-8 | 1,974 | 2.5625 | 3 | [] | no_license | package servlets;
import model.User;
import service.UserService;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;... | true |
99a03f63c6ad87b186f9e4d05cc9870925cf499e | Java | markoromandic/Gerudok | /src/model/ModelElement.java | UTF-8 | 4,145 | 2.984375 | 3 | [
"MIT"
] | permissive | package model;
import java.util.ArrayList;
import java.util.Enumeration;
import javax.swing.tree.DefaultMutableTreeNode;
import javax.swing.tree.TreeNode;
import work.CreateID;
import work.CreateName;
import work.TypeShape;
/**
* Element
* @author Nemanja
*/
public class ModelElement implements GeRuDocument{
p... | true |
e60a974f5a9dd9733b5db08be69a18a7eefa51ce | Java | tsuzcx/qq_apk | /com.tencent.mm/classes.jar/com/tencent/kinda/framework/widget/base/MMKButton$BackgroundColorDrawable.java | UTF-8 | 1,228 | 1.765625 | 2 | [] | no_license | package com.tencent.kinda.framework.widget.base;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.ColorFilter;
import android.graphics.drawable.Drawable;
import com.tencent.matrix.trace.core.AppMethodBeat;
class MMKButton$BackgroundColorDrawable
extends Drawable
{
... | true |
bac2af087fde531d83ae93c2e44124af9f4e58fb | Java | wanfengsky/IPv6--Network-teaching-platform | /src/main/java/com/yi/project/course/chapter/controller/CourseChapterController.java | UTF-8 | 5,904 | 1.929688 | 2 | [] | no_license | package com.yi.project.course.chapter.controller;
import java.util.List;
import com.yi.common.utils.security.ShiroUtils;
import com.yi.framework.web.domain.Ztree;
import com.yi.project.system.dept.domain.Dept;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.apache.shiro.authz... | true |
3b6f239b4e74e7c7cbedf6f81cb2d34a37b7c1cd | Java | OOSD-Devs/Aplikasi-Belajar | /src/com/data/Mahasiswa.java | UTF-8 | 10,661 | 2.828125 | 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 com.data;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileReader;
import... | true |