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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
4b7123bac996597a427e6d71679b6849a60f88c3 | Java | meganjohn/advent-of-code-2020 | /day1/src/main/java/multiplier/Multiplier.java | UTF-8 | 277 | 2.90625 | 3 | [] | no_license | package main.java.multiplier;
public class Multiplier {
public static int multiplyTwoNumbers(int[] numbers) {
return numbers[0]*numbers[1];
}
public static int multiplyThreeNumbers(int[] numbers) {
return numbers[0]*numbers[1]*numbers[2];
}
}
| true |
9a9a6c739e375754f05e9dd3080e364dc2827001 | Java | danieljiang2013/Wealth_Distribution | /src/LineGraph.java | UTF-8 | 659 | 3.28125 | 3 | [] | no_license | import java.util.ArrayList;
import java.util.List;
/**
* This class is a generic representation of a stat that can
* be calculated in the system.
* @param <T>
*/
public class LineGraph<T extends Number > {
private String name = "";
private Double sum = 0.0;
private List<T> counts = new ArrayList<T>();
publi... | true |
855079b0fff89252b066d7110330933b506f8eed | Java | eye-bs/ascend-exam | /src/main/java/com/ascendcorp/exam/model/Reference.java | UTF-8 | 607 | 2.421875 | 2 | [] | no_license | package com.ascendcorp.exam.model;
import lombok.Data;
@Data
public class Reference {
private String reference1;
private String reference2;
private String firstName;
private String lastName;
public Reference(String reference1, String reference2, String firstName, String lastName) {
this... | true |
1ab5d0e77b2c931188f19538727fb1475b817c76 | Java | HaiPiaoAPP/haipiao | /user-service/src/main/java/com/haipiao/userservice/enums/RecommendationContextEnum.java | UTF-8 | 703 | 2.375 | 2 | [] | no_license | package com.haipiao.userservice.enums;
import java.util.Arrays;
/**
* @author wangjipeng
*/
public enum RecommendationContextEnum {
/**
* 推荐用户场景
*/
DEFAULT("default"),
ARTICLE("article"),
USER_PROFILE("user_profile");
RecommendationContextEnum(String value) {
this.value = va... | true |
bc3bf2a8ab14480c83256014cd20210995f32d57 | Java | shulieTech/Takin-web | /takin-web-data/src/main/java/com/pamirs/takin/entity/domain/dto/report/ReportDetailDTO.java | UTF-8 | 2,695 | 1.71875 | 2 | [] | no_license | package com.pamirs.takin.entity.domain.dto.report;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;
import com.pamirs.takin.entity.domain.dto.scenemanage.WarnDTO;
import io.shulie.takin.web.ext.entity.UserCommonExt;
import io.swagger.annotations.ApiModelProperty;... | true |
28d6f8706e8f7db3fcd480fbd8fd914f1a75c30c | Java | thombergs/coderadar | /plugins/findbugs-adapter-plugin/src/test/java/org/wickedsource/coderadar/analyzer/findbugs/xsd/BugCollectionParserTest.java | UTF-8 | 460 | 1.851563 | 2 | [
"MIT"
] | permissive | package org.wickedsource.coderadar.analyzer.findbugs.xsd;
import org.junit.Assert;
import org.junit.Test;
public class BugCollectionParserTest extends TestReportAccessor {
@Test
public void parsesSuccessfully() throws Exception {
byte[] report = getValidReport();
BugCollectionParser parser =... | true |
536836490ef50947610c297c167d1a146afa307a | Java | MStart/RepositoryCache | /repository-cache-compiler/src/main/java/com/kuassivi/compiler/ProxyClassGenerator.java | UTF-8 | 12,193 | 1.976563 | 2 | [
"Apache-2.0"
] | permissive | /*******************************************************************************
* Copyright (c) 2016 Francisco Gonzalez-Armijo Riádigos
*
* 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
... | true |
b01fb0e3aac08a6f69ab8849838a94660f75b479 | Java | groupon/metrics | /tsd/cluster-aggregator/src/main/java/com/arpnetworking/clusteraggregator/http/Routes.java | UTF-8 | 9,522 | 1.640625 | 2 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | /**
* Copyright 2014 Groupon.com
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | true |
f75e8a41efbfa7e00af04108e3197dd4be50ef89 | Java | fuzhiyan/DiSanZhou_B | /app/src/main/java/text/bawei/com/disanzhou_b/fragments/LiaoTianFragment.java | UTF-8 | 1,715 | 2.21875 | 2 | [] | no_license | package text.bawei.com.disanzhou_b.fragments;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ListView;
import java.util.ArrayList;
import text.bawei.com.disanzhou_b.R;
import text.ba... | true |
618adb51d270c5dde6c10599c3de6837af306604 | Java | naveengowda6197/Bank-Application | /SpringMVCHibernateCRUD/src/main/java/com/jwt/controller/AccountController.java | UTF-8 | 4,502 | 2.203125 | 2 | [] | no_license | package com.jwt.controller;
import java.io.IOException;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import org.jboss.logging.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.... | true |
db5ade8f6ca20230f42ed3970e60a4a6461e0a5c | Java | oreoTaste/bitcamp-study | /bitcamp-java/src/main/java/com/eomcs/oop/ex11/c/step6/Product.java | UTF-8 | 199 | 2.0625 | 2 | [] | no_license | package com.eomcs.oop.ex11.c.step6;
public class Product {
// 카테고리 별로 클래스를 분리하면 관리하기 쉬워진다
int category;
String name;
String maker;
int price;
}
| true |
7311e920a390fef4467288a00192d64116a35764 | Java | FelipeJuanFernandes/Generation | /Java/src/br/comgeneration/POO/Patinete_5.java | ISO-8859-1 | 1,072 | 3.203125 | 3 | [] | no_license | package br.comgeneration.POO;
public class Patinete_5 {
private String modelo;
private String cor;
private double velocidade;
public Patinete_5 (String modelo, String cor, double velocidade) {
this.modelo = modelo;
this.cor = cor;
this.velocidade = velocidade;
}
public void imprimirInfo(){
System.out... | true |
b8584b7e890aa7c140581635b4b43b288448373c | Java | tnicacio/programacao-2 | /provaprog2/src/provaprog2/ControleDeEstoque.java | UTF-8 | 9,093 | 3 | 3 | [] | no_license | package provaprog2;
import java.io.IOException;
import java.io.RandomAccessFile;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Comparator;
import java.util.List;
public class ControleDeEstoque {
/**
* *
* 1 - salvar em estoque.dados 2 - listar array de registros 3 - ordenar por
... | true |
aac153627580f261387132913c2e1534d2673037 | Java | dkrivosic/opt-java | /DZ-02/src/hr/fer/zemris/optjava/dz2/Prijenosna.java | UTF-8 | 1,957 | 3 | 3 | [] | no_license | package hr.fer.zemris.optjava.dz2;
import java.io.BufferedReader;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.List;
import java.util.Random;
import Jama.Matrix;
public class Prijenosna {
public static void main(String[] ... | true |
fe9f4604ebf4e011faf922271e5d40203f00019a | Java | czarea/jcodes | /jcodes-core/src/main/java/com/czarea/jcodes/model/Project.java | UTF-8 | 1,644 | 2.1875 | 2 | [
"Apache-2.0"
] | permissive | package com.czarea.jcodes.model;
/**
* 项目配置
*
* @author zhouzx
*/
public class Project {
private String baseDir;
private String template;
private String name;
private String module;
private String groupId;
private String version;
private String config;
public String getConfig() {
... | true |
cd0ea6720afca0d77eaee0d90b37e96af79180a4 | Java | cotterea1u/TpDesignPatterns | /src/visiteur/Article.java | UTF-8 | 561 | 2.921875 | 3 | [] | no_license | package visiteur;
public class Article extends Media {
protected String auteur;
protected String texte;
public Article(int d, String nom, String auteur, String texte) {
super(d, nom);
this.auteur = auteur;
this.texte = texte;
}
@Override
public String toString() {
... | true |
a1ac9c2be2708008c264168320d02c52acea3459 | Java | codebaise/SnmpMibInfoManagement | /src/main/java/com/zhi/snmp/utils/PDUUtils.java | UTF-8 | 3,143 | 2.34375 | 2 | [] | no_license | package com.zhi.snmp.utils;
import com.zhi.snmp.pojo.Result;
import com.zhi.snmp.mib.MibFileParse;
import net.percederberg.mibble.MibValueSymbol;
import org.snmp4j.PDU;
import org.snmp4j.smi.OID;
import org.snmp4j.smi.OctetString;
import org.snmp4j.smi.VariableBinding;
import org.springframework.beans.factory.annotati... | true |
0c4c52bfef2b991724e4a1dbe9f242393b91119d | Java | Lalito114/demo | /app/src/main/java/com/szzcs/smartpos/Productos/VentasProductos.java | UTF-8 | 18,115 | 1.9375 | 2 | [] | no_license | package com.szzcs.smartpos.Productos;
import android.content.DialogInterface;
import android.content.Intent;
import android.support.v7.app.AlertDialog;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.R... | true |
5228955ef0af208e8b05e8f5ea72ef34265d76c7 | Java | jspark0225/web-cell | /app/src/main/java/com/spring/jspark/springwebcell/presenter/CellMemberListPresenter.java | UTF-8 | 4,318 | 2.296875 | 2 | [] | no_license | package com.spring.jspark.springwebcell.presenter;
import com.spring.jspark.springwebcell.R;
import com.spring.jspark.springwebcell.common.Common;
import com.spring.jspark.springwebcell.contract.CellMemberListContract;
import com.spring.jspark.springwebcell.httpclient.OnHttpResponse;
import com.spring.jspark.springweb... | true |
d419f883f85d046a8d890295226fc4d0f12d93e5 | Java | glockasaur/ShoppingSaverApp | /app/src/main/java/com/zybooks/shoppingsaverapp/DiscountCalc.java | UTF-8 | 1,014 | 2.609375 | 3 | [] | no_license | package com.zybooks.shoppingsaverapp;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;
public class DiscountCalc extends AppCompatActivity {
@Override
protected v... | true |
bbd40719d2f6acccb2b99cac8bf457006b994942 | Java | CarvinicioX/basic-backend | /src/main/java/com/sinch/backend/model/User.java | UTF-8 | 628 | 2.171875 | 2 | [] | no_license | package com.sinch.backend.model;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import javax.persistence.*;
import java.util.ArrayList;
import java.util.List;
@Entity
@Table(name = "users")
@Getter
@Setter
@NoArgsConstructor
public class User {
@Id
@GeneratedValue(strategy = Ge... | true |
be9219c64a047ae87758cd0bf7a2773bba587670 | Java | Wangxiaobin123/springCloud-Learning | /springCloud-k8s/src/test/java/k8s/deployment/CrdLoadTest.java | UTF-8 | 2,040 | 2.265625 | 2 | [] | no_license | package k8s.deployment;
import cn.hutool.core.io.file.FileReader;
import io.fabric8.kubernetes.api.model.apiextensions.CustomResourceDefinition;
import io.fabric8.kubernetes.api.model.apiextensions.CustomResourceDefinitionList;
import io.fabric8.kubernetes.client.KubernetesClient;
import k8s.util.InitClientTest;
impor... | true |
0c70fc906e6897d355e174f794811d7248bf7040 | Java | Xavier4j/EmotionalAnalysisBackEnd | /src/main/java/club/doyoudo/emotional/service/AnalyseSentimentService.java | UTF-8 | 316 | 1.820313 | 2 | [] | no_license | package club.doyoudo.emotional.service;
import club.doyoudo.emotional.model.AnalysisSentiment;
import java.util.List;
public interface AnalyseSentimentService {
int insertAnalysisSentiment(AnalysisSentiment analysisSentiment);
List<AnalysisSentiment> selectAnalysisSentimentByPhoneId(String phoneId);
}
| true |
cd3b99397d9e5422870572e164a45f3b9c56de6a | Java | DanielDucuara2018/Java_Tests | /test_heritage/src/test/ChildClass.java | UTF-8 | 206 | 2.015625 | 2 | [] | no_license | package test;
/*
* Child classes have to implement abstract methods
* */
public class ChildClass extends AbstractClass{
@Override
public void method1() {
// TODO Auto-generated method stub
}
}
| true |
3b12cbf0ffcb73cad144218752553261ae57deca | Java | rlgomes/dtf | /src/java/com/yahoo/dtf/streaming/RandomInputStream.java | UTF-8 | 3,050 | 3.078125 | 3 | [
"BSD-3-Clause"
] | permissive | package com.yahoo.dtf.streaming;
import java.io.IOException;
import com.yahoo.dtf.exception.ParseException;
import com.yahoo.dtf.util.DTFRandom;
/**
* @dtf.feature Random Stream Type
* @dtf.feature.group DTF Properties
*
* @dtf.feature.desc
* <p>
* The random stream type generates a random sequence of bytes ... | true |
7aa58d9d5fff2d0707c1795cc21c43e24cda149f | Java | raj12789/deepstudio | /src/main/java/in/deepstudio/pvq/service/PvqConcernTypeService.java | UTF-8 | 363 | 1.867188 | 2 | [] | no_license | package in.deepstudio.pvq.service;
import in.deepstudio.pvq.domain.PvqConcernType;
import java.util.List;
public interface PvqConcernTypeService {
PvqConcernType save(PvqConcernType c);
List<PvqConcernType> findAll();
void delete(Long id);
PvqConcernType findOne(Long id);
PvqConcernType findByPvqCon... | true |
656263f9fcf3eb2942b0291981f541fd266a677e | Java | Thor7578/HVADFUCKSKERDER | /src/Main.java | UTF-8 | 68 | 1.984375 | 2 | [] | no_license | "Hej, lad os finde ud af om der overhovedet er hul igennem til Git." | true |
fcf617a641e0ae1e4b3336fa9db278c8c0da6594 | Java | Nulldextroyer/ProjetoFinal | /Projeto/src/com/list/ListProduto.java | UTF-8 | 354 | 2.484375 | 2 | [] | no_license | package com.list;
import java.util.ArrayList;
import java.util.List;
import com.classes.*;
public class ListProduto {
List<Produtos> listProdutos = new ArrayList<Produtos>();
public void inserirProdutos(Produtos Produtos) {
listProdutos.add(Produtos);
}
public List<Produtos> getListProdutos() {... | true |
2a4be6f6a81e5a858a94b8d97f1c0e82fa282542 | Java | RainerJava/gl_shop | /gl_shop_datas/src/main/java/com/appabc/datas/service/company/ICompanyAddressService.java | UTF-8 | 821 | 1.9375 | 2 | [] | no_license | /**
*
*/
package com.appabc.datas.service.company;
import com.appabc.bean.pvo.TCompanyAddress;
import com.appabc.common.base.service.IBaseService;
import java.io.Serializable;
import java.util.List;
/**
* @Description : 公司卸货地址SERVICE接口
* @Copyright : GL. All Rights Reserved
* @Company : 江苏国立... | true |
aa76acb88a9f6336c42e9ac0357db72873007d2e | Java | LeonardoBerlatto/camel-final-fantasy-party-builder | /camel-party-builder/src/main/java/br/com/camel/finalfantasy/partybuilder/camelpartybuilder/utils/HttpEntityUtils.java | UTF-8 | 662 | 2.140625 | 2 | [
"Apache-2.0"
] | permissive | package br.com.camel.finalfantasy.partybuilder.camelpartybuilder.utils;
import org.springframework.http.HttpEntity;
import org.springframework.http.HttpHeaders;
import org.springframework.http.MediaType;
import java.util.Collections;
public class HttpEntityUtils {
public static HttpEntity createJSONRequestEntit... | true |
ad3b2d8d1201d6dbed98656cda34015bf0f22f95 | Java | Seping/JQL | /src/main/java/sep/jql/impls/statement/condition/JQLSingleConditionExpression.java | UTF-8 | 943 | 2.5625 | 3 | [] | no_license | package sep.jql.impls.statement.condition;
import sep.jql.interfaces.condition.Condition;
import sep.jql.interfaces.statement.condition.CompositeConditionExpression;
import sep.jql.interfaces.statement.condition.SingleConditionExpression;
public class JQLSingleConditionExpression implements SingleConditionExpression ... | true |
924525c457441d8a18a9276c08ab6b208404cf4b | Java | kancarec/ws-restful | /ws-restful/src/main/java/com/ws/restful/controller/StudentValidController.java | UTF-8 | 1,199 | 2.34375 | 2 | [] | no_license | package com.ws.restful.controller;
import javax.validation.Valid;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework... | true |
712c5e737ff30e0e27cd72a72ff37bba4e224ba4 | Java | pulumi/pulumi-azure | /sdk/java/src/main/java/com/pulumi/azure/media/StreamingEndpoint.java | UTF-8 | 17,499 | 1.75 | 2 | [
"BSD-3-Clause",
"MPL-2.0",
"Apache-2.0"
] | permissive | // *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.azure.media;
import com.pulumi.azure.Utilities;
import com.pulumi.azure.media.StreamingEndpointArgs;
import com.pulumi.azure.media.inputs.StreamingEndpoi... | true |
bece50b0651674f40a6988157f3bbfbe121d265b | Java | FullStackNet/kickstart | /kickstart-platform/src/main/java/platform/webservice/ui/html/HTMLBUTTON.java | UTF-8 | 511 | 2.28125 | 2 | [] | no_license | package platform.webservice.ui.html;
import platform.webservice.ui.util.Attribute;
public class HTMLBUTTON extends INPUT {
public HTMLBUTTON() {
this(null,null,null);
}
public HTMLBUTTON(String id,String className) {
this(id,null,className);
}
public HTMLBUTTON(String id, String name,String classNam... | true |
916d09a3305abf18cbaa60bdcb4e186e9889efe0 | Java | somnath1102/ddd | /src/com/thoughtworks/domain/valueobjects/Context.java | UTF-8 | 883 | 2.71875 | 3 | [] | no_license | package com.thoughtworks.domain.valueobjects;
import com.thoughtworks.domain.entity.Transaction;
/**
* Is mutable.
* Holds the input and transaction.
* Transaction entity is populated from this context by the expressions.
* output field is only used for the roman value calculation.
*
* @author somnat... | true |
e2987b21e0402ac9c13b16c378d225ff75cd1a57 | Java | topicanica/N26-Coding-Challenge | /transactions/src/main/java/com/challenge/transactions/services/TransactionService.java | UTF-8 | 674 | 2.171875 | 2 | [] | no_license | package com.challenge.transactions.services;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import com.challenge.transactions.models.Transaction;
import com.challenge.transactions.repositories.TransactionRepository;
@Component
p... | true |
37f6192084601840490b08b41f5957836bff28ea | Java | ziang-info/ZaSpringAOP | /src/main/java/info/ziang/aop/ITalk.java | UTF-8 | 161 | 2.34375 | 2 | [
"MIT"
] | permissive | package info.ziang.aop;
/**
* 抽象主体角色:声明了真实主体和抽象主体的共同接口
*/
public interface ITalk{
void talk(String msg);
} | true |
aa0d41faa8b2375b2bc90f1556245a02dc0fe9ff | Java | PaaS-TA/PAAS-TA-CAAS-API | /src/main/java/org/paasta/caas/api/common/model/CommonAddresses.java | UTF-8 | 247 | 1.523438 | 2 | [
"Apache-2.0"
] | permissive | package org.paasta.caas.api.common.model;
import lombok.Data;
/**
* Common Addresses Model 클래스
*
* @author REX
* @version 1.0
* @since 2018.08.13
*/
@Data
class CommonAddresses {
private String ip;
private String nodeName;
}
| true |
8dcc366be4f3a307a8d350adb6a7d0a49b95aeed | Java | cchenyh/SnugAlpha | /gethepost.java | UTF-8 | 6,183 | 2.59375 | 3 | [] | no_license | public void LoginByGet() {
new Thread(new Runnable() {
@Override
public void run() {
try {
//我们请求的数据:
// String data = "account=" + URLEncoder.encode(name, "UTF-8") +
// "&password=" + URLEncoder.encode(passwd, ... | true |
7d1ff235d9b82ba6b6323f3488cadc27a0bf38e4 | Java | rafkub90/Labki3-4 | /src/com/company/Main.java | UTF-8 | 1,445 | 3.21875 | 3 | [] | no_license | package com.company;
import java.io.File;
import java.io.PrintWriter;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
String n = "";
try {
System.out.print("podaj cene samochodu: ");
n... | true |
dc73d342333a9cb421627ad076d1949d42429378 | Java | sviatiq/java-core | /src/lesson1/task2/Workers.java | UTF-8 | 1,506 | 3.171875 | 3 | [] | no_license | package lesson1.task2;
public class Workers {
private String workerName;
private String workerSurname;
private int workerExperience;
private String position;
public Workers() {
}
public Workers(String workerName, String workerSurname, int workerExperience, String position) {
this.... | true |
c8654431aa363ac304cb873e94f0e6c6daf9f648 | Java | lcycat/Cpsc410-Code-Trip | /temp/src/minecraft/net/minecraft/src/GameWindowListener.java | UTF-8 | 583 | 1.976563 | 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) braces deadcode fieldsfirst
package net.minecraft.src;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import java.io.PrintStream;
pu... | true |
e86271d3386e0c997384ff1537366cd644f0a77f | Java | Eieyron/CMSC137_Wild_Ones | /proto/Obstacles.java | UTF-8 | 2,058 | 3.03125 | 3 | [] | no_license | import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class Obstacles extends JPanel implements GameObject{
int block;
int xPos;
int yPos;
int width;
int height;
Obstacles(int num){
this.block=num;
createObstacle(this.block);
this.setBackground(Color.BLACK);
this.setOpaque(false);
}
... | true |
233609589ab23b7eb58c1a8e7b619e0b30ab9536 | Java | jurniores/reporJava | /Teste/src/teste/Teste.java | UTF-8 | 892 | 2.75 | 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 teste;
/**
*
* @author Antonio
*/
public class Teste {
private int marcha;
private double velocidade;
private ... | true |
ff59bf2bf5a8c30e8ebbddb8ee4ea7c04fedcd1c | Java | Dmitryyyyo/java_1_tuesday_2020_online | /src/main/java/student_dmitrijs_jasvins/lesson_12/day_3/task_19/WrongUserInputHandlingDemo.java | UTF-8 | 663 | 2.953125 | 3 | [] | no_license | package student_dmitrijs_jasvins.lesson_12.day_3.task_19;
import java.util.InputMismatchException;
import java.util.Scanner;
import teacher.codereview.CodeReview;
@CodeReview(approved = true)
public class WrongUserInputHandlingDemo {
public static void main(String[] args) {
while (true) {
tr... | true |
ae7e3a5d9d4a1f2901ea76882e8e7101080ceeb2 | Java | vctrmarques/interno-rh-sistema | /rhServer/src/main/java/com/rhlinkcon/model/UnidadePagamentoEnum.java | UTF-8 | 595 | 2.578125 | 3 | [] | no_license | package com.rhlinkcon.model;
public enum UnidadePagamentoEnum {
POR_HORA("Por Hora"), POR_DIA("Por Dia"), POR_SEMANA("Por Semana"), POR_QUINZENA("Por Quinzena"),
POR_MES("Por Mês"), POR_TAREFA("Por Tarefa"), NAO_APLICAVEL("Não Aplicável");
private String label;
private UnidadePagamentoEnum(String label) {
thi... | true |
746e2d4afb70f26aa7cf520765a4191f479f28dd | Java | 499196191/label-platform | /src/main/java/com/fhpt/imageqmind/objects/vo/DbInfoVo.java | UTF-8 | 1,224 | 2.140625 | 2 | [] | no_license | package com.fhpt.imageqmind.objects.vo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
/**
* 数据源信息
* @author Marty
*/
@ApiModel(description= "数据库信息")
@Data
public class DbInfoVo {
@ApiModelProperty(name="id",value = "主键id,新增时可以不传递", required = false)... | true |
454b977e3cee6b0469e4de0036d917ed7e60bab1 | Java | appelqvist/mongodb_beaver_coffee | /src/main/java/Client.java | UTF-8 | 16,010 | 2.875 | 3 | [] | no_license | import com.mongodb.MongoClient;
import com.mongodb.client.MongoDatabase;
import org.bson.Document;
import org.bson.types.ObjectId;
import javax.swing.*;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.LinkedList;
/**
* Created by Andréas Appelqvist on 2017-05-15.
*/
public class Client {
... | true |
5f6fa495923ec027e2d86772d9c2cdf7f4231cc0 | Java | carlosmast23/codefac-lite | /workspace/servidor-interfaz/src/main/java/ec/com/codesoft/codefaclite/servidorinterfaz/other/session/SessionCodefac.java | UTF-8 | 4,669 | 1.953125 | 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 ec.com.codesoft.codefaclite.servidorinterfaz.other.session;
import ec.com.codesoft.codefaclite.servidorinterfaz.controller.Se... | true |
b186d44012f2aeb9bb5d39011e792e67b6157d45 | Java | xabicasado/buscaminas | /src/packModelo/packCasilla/Marcada.java | UTF-8 | 147 | 1.570313 | 2 | [] | no_license | package packModelo.packCasilla;
public class Marcada extends Estado {
public Marcada(Coordenada pCoordenada) {
super(pCoordenada);
}
}
| true |
bedc8c598a4cadcb51224d43424ade7e4f849ffe | Java | Jasic/jwork | /jcommon/src/main/java/org/jasic/util/ExcelHelper.java | UTF-8 | 7,568 | 2.28125 | 2 | [] | no_license | //package org.jasic.util;
//
//
//import com.midea.trade.common.util.DateUtils;
//import net.sf.ehcache.pool.sizeof.ReflectionSizeOf;
//import net.sf.ehcache.pool.sizeof.SizeOf;
//import org.apache.commons.lang.NumberUtils;
//import org.apache.poi.openxml4j.opc.OPCPackage;
//import org.apache.poi.ss.usermodel.DateUtil;... | true |
f9fbc451e4e622a91923b1daa7981eae810a1f34 | Java | Currence-Online/emandates-libraries-java | /library/src/net/emandates/merchant/library/CoreCommunicator.java | UTF-8 | 12,027 | 2.328125 | 2 | [
"MIT"
] | permissive | package net.emandates.merchant.library;
import java.io.IOException;
import java.net.HttpURLConnection;
import java.net.URI;
import java.net.URL;
import java.nio.charset.StandardCharsets;
import java.security.InvalidAlgorithmParameterException;
import java.security.KeyManagementException;
import java.security.KeyStoreE... | true |
f35db628e0e5a9950306a7d307041a9fc810e2c4 | Java | AiRanthem/Design-Pattern-Demo | /src/main/java/com/learn/Iterator/BookShelf.java | UTF-8 | 679 | 3.15625 | 3 | [
"MIT"
] | permissive | package com.learn.Iterator;
public class BookShelf implements Aggregate {
private final Book[] books;
private int last = 0;
private final int size;
public BookShelf(int maxsize){
this.books = new Book[maxsize];
this.size = maxsize;
}
public Book get(int index){
return b... | true |
b477784a498e3a85cacc84523c965887e2d55525 | Java | SavaGaborov/Thesis | /SavaDiplosmkiRad/DiplomskiRadPrivatnaBolnica/src/entiteti/Bolest.java | UTF-8 | 755 | 2.765625 | 3 | [] | no_license | package entiteti;
public class Bolest {
public int BolestID;
public String NazivBolesti;
public boolean MogucePruzanjeZdravstvenihUsluga;
public String toString(){
return NazivBolesti + " ";
}
public int getBolestID() {
return BolestID;
}
public void setBolestID(int bolestID) {
BolestID = bolestID;
... | true |
6326b22221a9edac3688e022a855ead40d10ac97 | Java | noudisan/falcon_sample | /core/xqwy-api/src/main/java/com/zhiyi/community/dto/CommunityTudeFLag.java | UTF-8 | 516 | 2.1875 | 2 | [] | no_license | package com.zhiyi.community.dto;
public enum CommunityTudeFLag {
// // 无
// public static final int TUDE_FLAG_NONE = 0;
// // 机器
// public static final int TUDE_FLAG_ROBOT = 1;
// // 人工
// public static final int TUDE_FLAG_PERSON = 2;
TUDE_FLAG_NONE("无"),TUDE_FLAG_ROBOT("机器"),TUDE_FLAG_PERSON(... | true |
02afb91ef1192497abd39605129c8ee4d12aad5e | Java | robsondejesus1996/Trabalho-Persistencia-de-Dados-manipulacaoArquivo | /br.com.udesc.trabalhoarquivo/src/br/com/udesc/trabalhoarquivo/model/Cidades.java | UTF-8 | 2,066 | 2.734375 | 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 br.com.udesc.trabalhoarquivo.model;
import java.io.Serializable;//classes de entraga e saída de arquivo
import java.util.Objec... | true |
843d7556e9ec459ef4d115f56b68dc41cc562aca | Java | stepan-tarasenko/TestTask | /TestTask/app/src/main/java/com/developer/tarasenko/testtask/fragments/MainFragment.java | UTF-8 | 3,585 | 2.4375 | 2 | [] | no_license | package com.developer.tarasenko.testtask.fragments;
import android.os.Bundle;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.webkit.WebView;
import android.webkit.WebViewClient;
import android.widget.TextView;
import androidx.fragme... | true |
537ea694514eb71950d7daa4d1c26057882a85d3 | Java | skazakov93/amadeusounds | /amadeusounds/src/main/java/com/amadeusounds/model/Song.java | UTF-8 | 2,524 | 2.09375 | 2 | [] | no_license | package com.amadeusounds.model;
import org.hibernate.validator.constraints.Length;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.ManyToMany;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import javax.persistence.... | true |
5348cdf4c227c8759f8dbf4b367aa7d282cb0f7c | Java | sylwiaswieczkowska/javastart | /src/main/java/pl/sda/javastart/Homework/UniqueValuesArray_Ex27.java | UTF-8 | 1,426 | 3.328125 | 3 | [] | no_license | package pl.sda.javastart.Homework;
import java.util.Arrays;
public class UniqueValuesArray_Ex27 {
public static void main(String[] args) {
System.out.println(Arrays.toString(uniqueValuesArrays(new int[]{1, 2, 4, 2, 5, 6}, new int[]{7, 9, 3, 2, 5, 2, 6})));
}
private static int[] uniqueValuesArray... | true |
46db052cd948ebc5441416b764b4fbcd3e328509 | Java | ankitsharma37/java_workspace | /Workspace/exercises/Classes/src/Practice/main.java | UTF-8 | 235 | 2.078125 | 2 | [] | no_license | package Practice;
public class main {
public static void main(String[] args) {
Apple apple1 = new Apple("spartan");
//apple1.setPrice(50);
userPurchase item1 = new userPurchase(1000);
item1.buy(50.0);
}
}
| true |
c0bc9a25705952cc362428fc81febca6a2cae960 | Java | uk-gov-mirror/ONSdigital.TakeOn-VP-Wrangler | /src/main/java/uk/gov/ons/validation/entity/HandlerAdditionalRequest.java | UTF-8 | 304 | 1.5625 | 2 | [] | no_license | package uk.gov.ons.validation.entity;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class HandlerAdditionalRequest {
private String type;
private PostRequest input;
}
| true |
20a200e93d179450287f85281e64ff052e618817 | Java | You-can-do-better/ucloud-sdk-java | /src/main/java/com/xiaolong/ucloud/ufile/request/GetBucketRequest.java | UTF-8 | 1,697 | 2.375 | 2 | [] | no_license |
package com.xiaolong.ucloud.ufile.request;
import com.xiaolong.ucloud.ufile.UFileRegion;
import com.xiaolong.ucloud.ufile.exception.UFileServiceException;
import com.xiaolong.ucloud.ufile.model.UBucket;
import com.xiaolong.ucloud.ufile.utils.ObjectsUtil;
import com.google.gson.JsonArray;
import com.google.gson.JsonOb... | true |
a2ff80d5704e5f63c8fa46c8a1c0c9c2453c4624 | Java | mateuspiresl/mps-lab-6 | /ProjBanco/src/bank/Client.java | UTF-8 | 535 | 3.03125 | 3 | [] | no_license | package bank;
public class Client
{
public String name, cpf;
public Client(String name, String cpf)
{
this.name = name;
this.cpf = cpf;
}
public Client() {
this("Nome e Sobrenome", "123.456.789-90");
}
public String getName() {
return this.name;
}
public String getCpf() {
return this.cpf;
}
... | true |
f685d0e9ec88aef783ee1bfc7a2a6fc7dc06e08c | Java | fsds12/TripAdviserSemiProject | /TripAdviserSemiProject/src/common/JDBCTemplate.java | UTF-8 | 2,159 | 2.78125 | 3 | [] | no_license | package common;
import java.io.FileReader;
import java.io.IOException;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.Properties;
public class JDBCTemplate {
private static Properties prop;
... | true |
efe0e8dae0d8e43a1a7381fda75c0d0e439e8bac | Java | cubecnelson/WeClean | /WeClean source/weClean/src/main/java/com/ligootech/weclean/helper/DatabaseHelper.java | UTF-8 | 4,548 | 2.640625 | 3 | [] | no_license | package com.ligootech.weclean.helper;
import java.util.ArrayList;
import java.util.List;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import android.util.Log;
impor... | true |
9bf318a0b136b71ee0b5c77611b33f934fe0a120 | Java | Maltcommunity/fongo-mongo-3.8 | /src/test/java/com/github/fakemongo/FongoMapReduceTest.java | UTF-8 | 34,747 | 2.3125 | 2 | [
"Apache-2.0"
] | permissive | package com.github.fakemongo;
import com.github.fakemongo.impl.Util;
import com.github.fakemongo.junit.FongoRule;
import com.mongodb.*;
import com.mongodb.util.FongoJSON;
import org.assertj.core.api.Assertions;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.ExpectedException;
import org.junit.rul... | true |
8f7f10065f693a5c1316ad6e03f75f98848ba10b | Java | PPPPPOSSTE/Bigdata | /JavaSE/src/test/java/com/ftrue/day19thread/thread/demo07/Demo07Thread.java | UTF-8 | 954 | 3.53125 | 4 | [] | no_license | package com.ftrue.day19thread.thread.demo07;
/**
* @ClassName: Demo05Thread
* @Description:
* @Author: zhiqi zhang on 2021/7/21 11:32
* @Version: 1.0
*/
/**
同步方法:
修饰符 synchronized 返回值类型 方法名 () {}
特点:
同步方法在同一时间只能被唯一线程对象所调用,其他线程处理阻塞状态(排队)
换种说法:在同一时间,栈内存中只能存在唯一的同步方法,
只有当同步方法执行完毕... | true |
917ea9a138335da3b7b4b0f941e2bc8ce5553f8d | Java | SETCCEresearch/smpconnector | /src/main/java/org/holodeckb2b/esensconnector/persistency/SimpleSBDHData.java | UTF-8 | 5,139 | 1.773438 | 2 | [] | no_license | /* */ package org.holodeckb2b.esensconnector.persistency;
/* */
/* */ import java.io.Serializable;
/* */ import javax.persistence.Column;
/* */ import javax.persistence.Entity;
/* */ import javax.persistence.GeneratedValue;
/* */ import javax.persistence.Id;
/* */ import javax.persisten... | true |
80323190b38ea730f6dee3f0006f4e2d504e3d53 | Java | LuoDi-Nate/ownChat | /src/test/java/com/diwa/serverTest/TestSendPackageToServer.java | UTF-8 | 1,063 | 2.28125 | 2 | [] | no_license | package com.diwa.serverTest;
import com.diwa.common.dto.MessageDto;
import org.codehaus.jackson.JsonGenerationException;
import org.codehaus.jackson.map.ObjectMapper;
import java.io.IOException;
import java.net.DatagramPacket;
import java.net.DatagramSocket;
import java.net.InetAddress;
import java.net.SocketExceptio... | true |
248da7c584da97aeefb15f5401b9ccbc60c8d10c | Java | genepattern/genepattern-server | /test/src/org/genepattern/drm/TestMemoryUnit.java | UTF-8 | 1,611 | 2.109375 | 2 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | /*******************************************************************************
* Copyright (c) 2003-2022 Regents of the University of California and Broad Institute. All rights reserved.
*******************************************************************************/
package org.genepattern.drm;
import static org.... | true |
1a40126a735a2f457a70aa3f3ebcbe4f0280dc2b | Java | pyt8756/CashFlow | /mylibrary/src/main/java/com/pyt/mylibrary/utils/RxUtils.java | UTF-8 | 1,128 | 2.4375 | 2 | [] | no_license | package com.pyt.mylibrary.utils;
import android.view.View;
import com.jakewharton.rxbinding2.view.RxView;
import java.util.concurrent.TimeUnit;
import io.reactivex.android.schedulers.AndroidSchedulers;
import io.reactivex.annotations.NonNull;
import io.reactivex.functions.Consumer;
/**
* rx utils
* Created by pe... | true |
70f29f46d751a15dff53768b9f371d80ae59a63f | Java | hcoles/pitest | /pitest/src/main/java/org/pitest/testapi/Description.java | UTF-8 | 2,236 | 2.3125 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2010 Henry Coles
*
* 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 |
5f00d852a653fb40336ed1ed7312b886a9908c87 | Java | OneCode182/reto3 | /src/main/java/usa/ciclo3/reto3/repositories/ClientRepo.java | UTF-8 | 914 | 2.15625 | 2 | [] | no_license | /** < - - - - - - - - { } - - - - - - - - > */
package usa.ciclo3.reto3.repositories;
import java.util.List;
import java.util.Optional;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import usa.ciclo3.reto3.models.Client;
import usa.ciclo3.... | true |
bc4171894b1e0db94159c54c7ae0d4e5011f4c51 | Java | martixZero/spring-cloud-alibaba | /spring-cloud-alibaba-nacos-config/src/test/java/org/springframework/cloud/alibaba/nacos/NacosConfigHealthIndicatorTests.java | UTF-8 | 2,079 | 1.78125 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright (C) 2019 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | true |
9646449c1a7152496bf27658027ca79ed1d9c3e6 | Java | zhtyu6/Practice | /src/Main2029.java | UTF-8 | 888 | 3.21875 | 3 | [] | no_license | import java.util.Scanner;
public class Main2029 {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
while (sc.hasNext()) {
int n = sc.nextInt();
sc.nextLine();
for (int i = 1; i <= n; i++) {
String a = sc.nextLine();
char[] b = a.toCharArray();
if (b.length % 2 ==... | true |
47dae142380cbbe05fe2f88cf4c5f5e34f24b9d0 | Java | jakwer/driving-licence-app | /src/main/java/com/jakub/werbowy/drivinglicenceapp/licence/DrivingLicenceCategoryEntity.java | UTF-8 | 1,475 | 2.421875 | 2 | [] | no_license | package com.jakub.werbowy.drivinglicenceapp.licence;
import com.google.common.base.Objects;
import com.jakub.werbowy.drivinglicenceapp.licence.dto.CategoryNumber;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;
import javax.persistence.*;
import javax.v... | true |
c1d335570fa263e470190f4e7544279628e8767a | Java | verve111/alfresco3.4.d | /root/projects/repository/source/java/org/alfresco/repo/node/index/IndexRemoteTransactionTracker.java | UTF-8 | 1,972 | 1.710938 | 2 | [] | no_license | /*
* Copyright (C) 2005-2010 Alfresco Software Limited.
*
* This file is part of Alfresco
*
* Alfresco 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 3 of the License, or
* (at y... | true |
5de6918af3b76b7a5deed383e8cb8c76de57ca0b | Java | EdgarLiu2/java_leetcode | /src/main/java/edgar/spring/learning1/app/AppConfig.java | UTF-8 | 162 | 1.546875 | 2 | [
"Apache-2.0"
] | permissive | package edgar.spring.learning1.app;
import edgar.spring.learning1.spring.ComponentScan;
@ComponentScan("edgar.springlearning.app")
public class AppConfig {
}
| true |
817fdbd517974341c65bce3aef6bac0ba77c7076 | Java | wujintao630/springcloud-platform | /scp-test/src/main/java/com/tonytaotao/scp/test/mapper/CommodityStorageMapper.java | UTF-8 | 288 | 1.5 | 2 | [
"Apache-2.0"
] | permissive | package com.tonytaotao.scp.test.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.tonytaotao.scp.test.entity.CommodityStorage;
/**
* 商品库存Mapper
* @author tonytaotao
*/
public interface CommodityStorageMapper extends BaseMapper<CommodityStorage> {
}
| true |
0c533d07bfe2a0e02b6762bd15907d29a017a74c | Java | faraaz-ahmed/java-spring-examples | /CalculatorSoapWs/src/com/demo/spring/Calculator.java | UTF-8 | 384 | 2.53125 | 3 | [] | no_license | package com.demo.spring;
import javax.jws.WebMethod;
import javax.jws.WebService;
import javax.xml.ws.Endpoint;
@WebService
public class Calculator {
@WebMethod
public int add(int a, int b) {
return a + b;
}
public static void main(String[] args) {
System.out.println("Web Service Started!");
Endpoint.publ... | true |
f1a42241c330c3d991eaad12d8493b10a5907786 | Java | chromium/chromium | /chrome/android/java/src/org/chromium/chrome/browser/compositor/bottombar/contextualsearch/ContextualSearchPanelMetrics.java | UTF-8 | 10,988 | 1.796875 | 2 | [
"BSD-3-Clause"
] | permissive | // Copyright 2015 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.chrome.browser.compositor.bottombar.contextualsearch;
import org.chromium.base.TimeUtils;
import org.chromium.chrome.browser.compositor.bottombar.OverlayP... | true |
2be58105487d0863e0533f07a30b95cff4d10e6b | Java | divyajalikoppa/Leetcode | /Interview Bit/Arrays/Flip.java | UTF-8 | 3,043 | 3.890625 | 4 | [] | no_license | /* Question:
You are given a binary string(i.e. with characters 0 and 1) S consisting of characters S1, S2, …, SN. In a single operation, you can choose two indices L and R such that 1 ≤ L ≤ R ≤ N and flip the characters SL, SL+1, …, SR. By flipping, we mean change character 0 to 1 and vice-versa.
Your aim is to perfo... | true |
76c82bfdd7bbf4b16519bbc4117cb2b9623b6c7d | Java | PotatoDoge/hotelManager | /src/Tools/TableEmpleadoDepa.java | UTF-8 | 1,047 | 2.359375 | 2 | [] | no_license | package Tools;
public class TableEmpleadoDepa {
private String claveEmpleado;
private String claveDepa;
private String puesto;
private double sueldo;
public TableEmpleadoDepa(String claveEmpleado, String claveDepa, String puesto, double sueldo) {
this.claveEmpleado = claveEmpleado;
... | true |
8db2f294fb99cf702ef76174e424591f83b47163 | Java | ventulus95/BaekjoonAnswer | /codeBaekJoon/푼 문제/2018/no5063_TGN.java | UTF-8 | 782 | 2.8125 | 3 | [] | no_license | package codeBaekJoon;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.StringTokenizer;
public class no5063_TGN {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int... | true |
c4e70e715bbe7fefcc0625c0e0bfe1d49a0d0290 | Java | areina/elfeed-cljsrn | /react-native-app/android/app/src/main/java/com/elfeedcljsrn/MainActivity.java | UTF-8 | 1,868 | 2.421875 | 2 | [
"Apache-2.0"
] | permissive | package com.elfeedcljsrn;
import android.os.Bundle;
import com.facebook.react.ReactActivity;
import com.facebook.react.ReactActivityDelegate;
import com.facebook.react.defaults.DefaultNewArchitectureEntryPoint;
import com.facebook.react.defaults.DefaultReactActivityDelegate;
import org.devio.rn.splashscreen.SplashScre... | true |
f6fe1035b0efd30ff1023b26325a747319ab4cc5 | Java | juliencauwet/climb | /src/main/java/com/julien/climbers/controllers/RoutesController.java | UTF-8 | 977 | 2.21875 | 2 | [] | no_license | package com.julien.climbers.controllers;
import com.julien.climbers.entities.Region;
import com.julien.climbers.service.RegionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bi... | true |
b43148cfc8199d798c363d906ac900b60e30c14c | Java | m41na/zesty-router | /router-view/src/main/java/com/practicaldime/router/view/twig/JTwigViewEngine.java | UTF-8 | 2,218 | 2.1875 | 2 | [] | no_license | package com.practicaldime.router.view.twig;
import com.practicaldime.router.core.view.ViewEngine;
import com.practicaldime.router.core.view.ViewProcessor;
import org.jtwig.JtwigModel;
import org.jtwig.JtwigTemplate;
import org.jtwig.resource.reference.ResourceReference;
import java.io.IOException;
import java.nio.fil... | true |
63fc3067df33746cbaeeb3d39471fa9a15adb357 | Java | meisasin/everyday-algorithm | /src/main/java/_20200417/SolutionTest.java | UTF-8 | 648 | 2.34375 | 2 | [] | no_license | package _20200417;
import org.junit.Test;
import static org.hamcrest.CoreMatchers.equalTo;
import static org.hamcrest.MatcherAssert.assertThat;
public class SolutionTest {
@Test
public void testCanJump() {
assertThat(new Solution().canJump(new int[]{ 2, 3, 1, 1, 4 }), equalTo(true));
assertT... | true |
1261d423d0e7a0053dd8ac6d833e1aa69b14482e | Java | onurtokat/hal-streaming | /src/main/java/com/sun/jersey/server/probes/UriRuleProbeProvider.java | UTF-8 | 379 | 1.546875 | 2 | [] | no_license | //
// Decompiled by Procyon v0.5.30
//
package com.sun.jersey.server.probes;
import java.net.URI;
public class UriRuleProbeProvider
{
public static void requestStart(final URI requestUri) {
}
public static void ruleAccept(final String ruleName, final CharSequence path, final Object resourceClass) ... | true |
d92ab16e98c713e74c1375bec54ac3dd4e437c6c | Java | christie3198/vision | /app/src/main/java/com/example/signupapp/ui/home/HomeFragment.java | UTF-8 | 1,132 | 1.929688 | 2 | [] | no_license | package com.example.signupapp.ui.home;
import android.app.Activity;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import androidx.fragment.app.Fragment;
import... | true |
153cb5e42236ae84e8c2490f9989325c00e1711f | Java | mark-bw/tut5 | /src/main/java/CItut/Calc.java | UTF-8 | 311 | 2.90625 | 3 | [] | no_license | package CItut;
public class Calc{
static int add (int x, int y){
return x + y;
}
static int subtract (int x, int y){
return x - y;
}
public static void main( String[] args )
{
System.out.println(add(3,4));
System.out.println(add(5,6));
}
}
| true |
8014c169436735e96a87dfcf788f96cf4a9b40e7 | Java | Oussez/TDF | /Task_Distrib_FW/src/da/gui/JFrameGui.java | UTF-8 | 3,153 | 2.015625 | 2 | [] | no_license | package da.gui;
import java.util.Date;
import jade.core.AID;
import jade.core.ContainerID;
import jade.domain.introspection.BornAgent;
import jade.domain.introspection.DeadAgent;
import jade.domain.introspection.MovedAgent;
import jade.gui.GuiEvent;
import javax.swing.JFrame;
import da.mas.management.AgentTaskDispa... | true |
bc02e22b36d1b4a6f5c87fe0eb43f3db8b2141e3 | Java | amandeep-verma/java_learning | /2(mar)/src/mar2/MainRunner1.java | UTF-8 | 577 | 3.46875 | 3 | [] | no_license | package mar2;
// printing the class variables without initializing them
class MainRunner1
{
public static void main(String[] args)
{
Pen P1=new Pen();
System.out.println(P1.color);
System.out.println(P1.price);
System.out.println(P1.cname);
System.out.println("-------------");
P1.writing();
System.out.... | true |
397c402ca64e0e4868ca69cd3d38dd00b8747399 | Java | rafall404/Simple_ChatApp_Java | /src/viewModel/chat/ChatVM.java | UTF-8 | 1,100 | 2.703125 | 3 | [] | no_license | package viewModel.chat;
import javafx.beans.property.SimpleStringProperty;
import javafx.beans.property.StringProperty;
import javafx.collections.FXCollections;
import javafx.collections.ObservableList;
import model.Message;
import model.ObservableModel;
import java.beans.PropertyChangeEvent;
import java.beans.Propert... | true |
c3a89dfd982393dfc85cde628945cdbd6b2b748f | Java | chiendarrendor/AlbertsAdalogicalAenigmas | /ada83/src/Solver.java | UTF-8 | 464 | 2.390625 | 2 | [
"MIT"
] | permissive | import grid.logic.flatten.FlattenLogicer;
public class Solver extends FlattenLogicer<Board> {
public Solver(Board b) {
b.forEachCell((x,y)-> {
addLogicStep(new CellLogicStep(x,y));
});
for (char rid : b.getRegionIds()) {
if (!b.regionHasClue(rid)) continue;
... | true |
357d234a91c6e8ae66bae6368d1e22afd0f231d8 | Java | Rishi74744/MyPractice | /src/com/questions/hackerrank/SaveThePrisoner.java | UTF-8 | 728 | 3.140625 | 3 | [] | no_license | package com.questions.hackerrank;
import java.util.Scanner;
public class SaveThePrisoner {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int t = sc.nextInt();
int count = 0;
for(int i = 0; i<t ; i++){
long n = sc.nextInt();
long m = sc.nextInt();
long s = sc.nextInt(... | true |
f75a298707d72acdf6ce20b69026a5a1d8bde2e1 | Java | beginsmauel/spring-from-the-trenches | /protected-method-scheduled-job/spring-sec-32/src/main/java/net/petrikainulainen/spring/trenches/scheduling/service/MessageService.java | UTF-8 | 313 | 2.015625 | 2 | [
"Apache-2.0"
] | permissive | package net.petrikainulainen.spring.trenches.scheduling.service;
import org.springframework.security.access.prepost.PreAuthorize;
/**
* @author Petri Kainulainen
*/
public interface MessageService {
/**
* @return The message.
*/
@PreAuthorize("hasRole('ROLE_USER')")
public String getMessage()... | true |
131e774ae79f6a0a83b6056bceaf94176dc170c7 | Java | vaghesethu/c-basics | /Hop n Hop/Main.java | UTF-8 | 199 | 2.296875 | 2 | [] | no_license | #include<iostream>
using namespace std;
int main()
{
//Type your code here.
int x,y;
std::cin>>x>>y;
int b,c;
b=(x-3);
c=(y-4);
if(b<c)
std::cout<<c;
else
std::cout<<b;
} | true |
f275d0ae85827d852c802008101154b511e4d17e | Java | kingdas/lesson1 | /pro27A/yc27812oa/src/com/yc/oa/controller/EmployeeController.java | UTF-8 | 719 | 1.984375 | 2 | [] | no_license | package com.yc.oa.controller;
import javax.servlet.http.HttpSession;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import com.yc.framework.BaseController;
import com.yc.oa.model.Employee;... | true |
b7c5643b3837de1afcb435ad39f6819cafae3127 | Java | Golpette/networkgeneration | /networkgeneration_steve/Compound.java | UTF-8 | 505 | 3.125 | 3 | [] | no_license |
public class Compound {
private int label;
private String formula;
private int charge;
// Constructor
Compound(int l, String f, int c){
this.label = l;
this.formula = f;
this.charge = c;
}
// Getters
public int getLabel(){
return this.label;
}
public String getFormula(){
... | true |