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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
f989151f5136fe6f1f5c6449a3455fb2b9e95003 | Java | bitDecayGames/LudumDare34 | /src/main/java/ludum/dare/gameobject/PowerupGameObject.java | UTF-8 | 2,454 | 2.265625 | 2 | [] | no_license | package ludum.dare.gameobject;
import com.badlogic.gdx.math.Vector2;
import com.bitdecay.jump.BitBody;
import com.bitdecay.jump.collision.ContactListener;
import com.bitdecay.jump.level.LevelObject;
import com.bytebreakstudios.animagic.animation.Animation;
import com.bytebreakstudios.animagic.animation.FrameRate;
impo... | true |
7330fced8a74ee59512b373be840fbc0566db866 | Java | TStrauch/DataMiningNLP | /src/main/java/Pipeline.java | UTF-8 | 15,333 | 2.78125 | 3 | [] | no_license | import model.AspectSimilarityDistanceModel;
import model.ExtractedAspectAndModifier;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.util.*;
/**
* Created by Timo on 07.05.16.
*/
public class Pipeline {
public static void main(String[] args)... | true |
74be598323f9cec9e95cfeb2d93949bfe6542901 | Java | tminlim/pp | /ProgrammingPractice/src/hw5/Rectangle.java | UTF-8 | 1,246 | 3.65625 | 4 | [] | no_license | package hw5;
public class Rectangle {
MyPoint leftTop;
MyPoint rightBottom;
Rectangle() {
leftTop = new MyPoint(0, 0);
rightBottom = new MyPoint(0, 0);
}
Rectangle(MyPoint a, float width, float height) {
leftTop = a;
rightBottom = new MyPoint(a.getX() + width, a.getY() + height);
}
void setPoint() {
... | true |
08d32cfae58bda4703e0a3d578327c594bf677d1 | Java | dnarvaez27/FestivAndes | /src/utilities/data/SQLFormat.java | UTF-8 | 759 | 2.453125 | 2 | [] | no_license | package utilities.data;
import vos.Lugar;
import java.lang.reflect.Field;
/**
* Created by dnarv on 3/05/2017.
*/
public class SQLFormat
{
public static String create( Class<?> c, String name )
{
StringBuilder sBuilder = new StringBuilder( );
sBuilder.append( String.format( "CREATE TABLE %s", name ) );
sBu... | true |
aded7af519dbde0d91d24a1b53a2c1b55ff31799 | Java | AgNO3/code | /orchestrator/server/agent-server/eu.agno3.orchestrator.agent.server/src/main/java/eu/agno3/orchestrator/agent/server/internal/AgentEventPumpManager.java | UTF-8 | 5,772 | 1.6875 | 2 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | /**
* © 2013 AgNO3 Gmbh & Co. KG
* All right reserved.
*
* Created: 24.09.2013 by mbechler
*/
package eu.agno3.orchestrator.agent.server.internal;
import javax.jms.ConnectionFactory;
import javax.jms.JMSException;
import org.osgi.service.component.ComponentContext;
import org.osgi.service.component.annotations... | true |
dab6ea8ee592e6b780002cfcb623f7e00da37f20 | Java | jlindsey15/SpaceCombatBilliards | /SCBClient/src/jack/server/Camera.java | UTF-8 | 2,119 | 2.578125 | 3 | [] | no_license | package jack.server;
import java.awt.Color;
import java.io.Serializable;
import java.util.ArrayList;
import org.lwjgl.opengl.GL11;
import org.lwjgl.util.glu.GLU;
import org.lwjgl.util.glu.Sphere;
import org.lwjgl.util.vector.*;
public class Camera implements Serializable {
// Camera class - the position... | true |
9dafb8b5ef87235f72d2e13d334a5a5905a7f189 | Java | megamart2/integration | /docker/LIME Testbench/LimeTB/source/common/src/main/java/fi/hut/ics/lime/common/logic/ast/node/FutureTimeTemporalOperator.java | UTF-8 | 2,314 | 3.09375 | 3 | [] | no_license |
package fi.hut.ics.lime.common.logic.ast.node;
import fi.hut.ics.lime.common.logic.ast.AbstractTreeModifier;
import fi.hut.ics.lime.common.logic.ast.ProcessingStrategy;
import fi.hut.ics.lime.common.logic.ast.TreeVisitor;
/**
* A node corresponding to a future time temporal operator in
* a formula.
* @author jala... | true |
a42eebaa8a6087eb588eb0fdf22ae259862f7f66 | Java | moutainhigh/middle | /kettle-job/src/main/java/com/njwd/kettlejob/controller/FinancialReportJobController.java | UTF-8 | 1,710 | 1.953125 | 2 | [] | no_license | package com.njwd.kettlejob.controller;
import com.njwd.entity.kettlejob.dto.TransferReportSimpleDto;
import com.njwd.kettlejob.service.FinancialReportJobService;
import com.njwd.support.BaseController;
import com.njwd.support.Result;
import com.njwd.utils.FastUtils;
import org.springframework.web.bind.annotation.Reque... | true |
1dd7588362844df0b5ca7910c6c80a1619bd2fb4 | Java | GierBamder/parent | /uilib/src/main/java/com/dbapp/uilib/UiLab.java | UTF-8 | 2,416 | 2.171875 | 2 | [] | no_license | package com.dbapp.uilib;
import android.content.Context;
import com.facebook.drawee.backends.pipeline.Fresco;
import com.facebook.imagepipeline.backends.okhttp3.OkHttpImagePipelineConfigFactory;
import com.facebook.imagepipeline.core.ImagePipelineConfig;
import java.security.cert.CertificateException;
import java.util... | true |
9c19248012fd2258bda8f0e09a0356daa6f8c8eb | Java | cbsa-informatik-uni-siegen/tpml | /pgtest1/source/ui/Mainwindow.java | UTF-8 | 8,534 | 2.296875 | 2 | [
"MIT"
] | permissive | package ui;
import java.util.*;
import java.awt.Font;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.KeyEvent;
import java.io.PushbackReader;
import java.io.StringReader;
import javax.swing.BoxLayout;
import javax.swing.JComboBox;
import javax.swing.JFrame;
import javax... | true |
4cf303741f42398f3661651d4f412bcf4231ca98 | Java | didier-chevrere/warcraft | /core/src/com/evilbird/engine/common/reflect/TypeRegistry.java | UTF-8 | 1,474 | 2.703125 | 3 | [
"MIT"
] | permissive | /*
* Blair Butterworth (c) 2019
*
* This work is licensed under the MIT License. To view a copy of this
* license, visit
*
* https://opensource.org/licenses/MIT
*/
package com.evilbird.engine.common.reflect;
/**
* Implementors of this interface allow types to be obtained by a short
* monikers: aliases.
... | true |
a8e5dacb82f387c38cc385c45c792eee004e8c19 | Java | HamsaMobarez/SoftWare_Project | /TimeToLearnCode/src/software_phase3/Website.java | UTF-8 | 4,232 | 3.015625 | 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 software_phase3;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.Scanner;
/**
*
* @autho... | true |
d9d089ef8dadf6d929b623f56101182dd9c5b79e | Java | Nisal97/webAutomationWindows | /src/main/java/com/sysco/WebAutomationAssignemnt/functions/Account.java | UTF-8 | 647 | 1.945313 | 2 | [] | no_license | package com.sysco.WebAutomationAssignemnt.functions;
import com.sysco.WebAutomationAssignemnt.pages.AccountPage;
import com.syscolab.qe.core.common.LoggerUtil;
public class Account extends BaseFunctions {
public static AccountPage ogmAcountPage = new AccountPage();
public static void removeItem()... | true |
23792bcc700959a8feff80ffce27fc15b810068f | Java | yyzx428/java-learnCode | /learnCode/mybatis-sql-extract/src/main/java/com/example/extract/sqlNode/IfSqlNodeExtract.java | UTF-8 | 857 | 2.328125 | 2 | [] | no_license | package com.example.extract.sqlNode;
import com.example.factory.SqlExtractFactory;
import org.apache.ibatis.scripting.xmltags.IfSqlNode;
import org.apache.ibatis.scripting.xmltags.SqlNode;
import org.springframework.util.ReflectionUtils;
import java.lang.reflect.Field;
public class IfSqlNodeExtract extends AbstractS... | true |
736a600f0657d1e2c1627b0c15a0376195246ac1 | Java | Almighty-Alpaca/JDA-Butler | /bot/src/main/java/com/almightyalpaca/discord/jdabutler/commands/commands/PingCommand.java | UTF-8 | 912 | 2.53125 | 3 | [
"Apache-2.0"
] | permissive | package com.almightyalpaca.discord.jdabutler.commands.commands;
import com.almightyalpaca.discord.jdabutler.commands.Command;
import net.dv8tion.jda.api.entities.Message;
import net.dv8tion.jda.api.entities.TextChannel;
import net.dv8tion.jda.api.entities.User;
import net.dv8tion.jda.api.events.message.guild.GuildMess... | true |
ed13ab8c5338c3f10039e97600ccf6d16b0c3782 | Java | theSnowBoy/learn_java | /src/algorithmTest/basic/easy9_array/MergeSortedArray.java | UTF-8 | 548 | 2.84375 | 3 | [] | no_license | package algorithmTest.basic.easy9_array;
public class MergeSortedArray {
public void merge(int[] nums1, int m, int[] nums2, int n) {
int[] help1 = new int[m];
for(int i = 0 ; i < m ; i++){
help1[i] = nums1[i];
}
int p1=0,p2=0,p3=0;
while(p1 < m && p2 < n){
... | true |
3b4f96a4cfdcd42558482c0269dfd983ffdf2378 | Java | biaolv/com.instagram.android | /src/com/instagram/android/nux/e/au.java | UTF-8 | 1,017 | 1.640625 | 2 | [] | no_license | package com.instagram.android.nux.e;
import android.text.Editable;
import android.text.TextWatcher;
import android.widget.ImageView;
import com.instagram.android.nux.a.m;
import com.instagram.ui.widget.searchedittext.SearchEditText;
final class au
implements TextWatcher
{
au(bc parambc) {}
public final void ... | true |
0118b8b3e1ad7a824d09932ade38294a22a65702 | Java | aayushrohatgi/microservice | /EventLoggingService/src/main/java/com/microsample/eventLogger/service/EventLoggerService.java | UTF-8 | 182 | 2.046875 | 2 | [] | no_license | package com.microsample.eventLogger.service;
import java.time.LocalDateTime;
public interface EventLoggerService {
public void logEvent(String name, LocalDateTime timestamp);
}
| true |
bf696862c0ad92e45ae098cc81cdf3269d743d7e | Java | aparnaapple40/mod-finance | /src/main/java/org/folio/services/ledger/LedgerRolloverErrorsService.java | UTF-8 | 1,556 | 2.25 | 2 | [
"Apache-2.0"
] | permissive | package org.folio.services.ledger;
import org.folio.rest.acq.model.finance.LedgerFiscalYearRolloverErrorCollection;
import org.folio.rest.core.RestClient;
import org.folio.rest.core.models.RequestContext;
import org.folio.rest.exception.HttpException;
import java.util.concurrent.CompletableFuture;
import static java... | true |
f64b77138c370b149bc9719305f796173338b6d2 | Java | sunwize/Pokecube | /Pokecube Core/src/main/java/pokecube/modelloader/client/custom/x3d/X3dXMLParser.java | UTF-8 | 8,739 | 2.03125 | 2 | [] | no_license | package pokecube.modelloader.client.custom.x3d;
import java.io.InputStream;
import java.util.ArrayList;
import java.util.HashMap;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import org.w3c.dom.Document;
import org.w3c.dom.Node;
import net.minecraft.client.Minecraft;
im... | true |
cae8741285f917bc90c49915ff5a60ec2233221e | Java | chl-123/my_swms_project | /src/main/java/com/fs/swms/business/service/IProblemHandleService.java | UTF-8 | 1,207 | 1.671875 | 2 | [] | no_license | package com.fs.swms.business.service;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.fs.swms.business.dto.*;
import com.fs.swms.business.entity.ProblemHandle;
import com.fs.swms.security.entity.User;
import org.springframework.w... | true |
851292f15110eb5a2a80687f16ad989cedbccdf0 | Java | xa17d/MTS | /MtsServer/src/at/mts/server/service/ServiceException.java | UTF-8 | 319 | 2.328125 | 2 | [] | no_license | package at.mts.server.service;
/**
* Fehler der in der Service-Schicht aufgetreten ist
* @author Daniel
*/
@SuppressWarnings("serial")
public abstract class ServiceException extends Exception {
public ServiceException() { }
public ServiceException(String message, Throwable cause) {
super(message, cause);
}
}
| true |
c8fce8a11cbe1b6761e24640d663f48cc2eb1559 | Java | DICE-UNC/jargon | /jargon-core/src/main/java/org/irods/jargon/core/transfer/encrypt/AESKeyGenerator.java | UTF-8 | 2,681 | 2.3125 | 2 | [
"LicenseRef-scancode-warranty-disclaimer",
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | /**
*
*/
package org.irods.jargon.core.transfer.encrypt;
import java.security.NoSuchAlgorithmException;
import java.security.spec.InvalidKeySpecException;
import java.security.spec.KeySpec;
import javax.crypto.KeyGenerator;
import javax.crypto.SecretKey;
import javax.crypto.SecretKeyFactory;
import javax.crypto.spe... | true |
a2ec9720a52fa303b53da3a34d48e9caa154f87f | Java | houlong123/javaKnowledge | /src/com/houlong/pattern/adapter/Client.java | UTF-8 | 653 | 2.984375 | 3 | [] | no_license | package com.houlong.pattern.adapter;
/**
* 适配器模式
*/
public class Client {
public static void main(String[] args) {
OperationAdapter adapter = new OperationAdapter();
int result[];
int score;
int[] array = {12,323,4,21,43,53};
for (int num: array) {
System.out.... | true |
8b142447359c27f0d2369d360b8fe3b33f996303 | Java | kangyou7/spring-jms | /mdt-recv/src/main/java/hello/mybatis/model/RCEF20W.java | UTF-8 | 1,437 | 2.03125 | 2 | [] | no_license | package hello.mybatis.model;
import java.math.BigDecimal;
public class RCEF20W {
private String workDay;
private String mdtId;
private BigDecimal carrFreqSeq;
private BigDecimal arfcnVal;
private BigDecimal ncellCnt;
public RCEF20W(String workDay, String mdtId, BigDecimal c... | true |
74c18fbaf7934566ef82c91f2c2718860ed17a8a | Java | Siwoo-Kim/algorithm2021 | /src/main/java/com/siwoo/algo/acmicpc/P15988.java | UTF-8 | 722 | 3 | 3 | [] | no_license | package com.siwoo.algo.acmicpc;
import java.util.Scanner;
public class P15988 {
private static Scanner scanner = new Scanner(System.in);
private static int N = 1000000, MOD = 1000000009;
private static Long[] D = new Long[N+1];
public static void main(String[] args) {
D[0] = 1L;
f... | true |
acc3d0a7869b87e61779a5af404a3e73dca49f5b | Java | sagymauda/Coupon-System | /CouponSystem/src/DAO/Interfaces/Customer_CouponDAO.java | UTF-8 | 679 | 2.265625 | 2 | [] | no_license | package DAO.Interfaces;
import java.sql.SQLIntegrityConstraintViolationException;
import java.util.Set;
import Exceptions.CouponSystemException;
import javaBeans.Customer_Coupon;
public interface Customer_CouponDAO {
void createCustomer_Coupon(long custID, long CouponID)
throws CouponSystemException, SQLIntegrit... | true |
7afc33c0fe4a61101367e8adf5582bb92f14b455 | Java | weAreAllGod/JZLJ | /src/main/java/cn/edu/bjtu/jzlj/domain/ConstructionWasteInfo.java | UTF-8 | 1,058 | 2.09375 | 2 | [] | no_license | package cn.edu.bjtu.jzlj.domain;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;
import lombok.Data;
import lombok.experimental.Accessors;
import java.io.Serializable;
/**
* <p>
* <p>
* </p>
*
* @author LiuYi
... | true |
b0dd723a161ca1c7719a56868a64d4d968861ee0 | Java | DeminDivasandABlueDot/Slate | /src/main/java/com/slate/TableShow.java | UTF-8 | 9,976 | 2.515625 | 3 | [] | no_license | package com.slate;
import java.io.IOException;
import java.io.PrintWriter;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servl... | true |
5690c2df9f6c179faafec5e76ecd3ffc9fb5c59a | Java | akj2013/ThisIsJAVA | /ThisIsJAVA/src/Collection_Search/Fruit.java | UTF-8 | 331 | 2.9375 | 3 | [] | no_license | package Collection_Search;
/**
* Comparable을 구현하지 않은 클래스
*
* @author akjak
*
*/
public class Fruit {
public String name;
public double price; // 숫자 타입의 경우, 값으로 정렬된다.
public Fruit(String name, double price) {
this.name = name;
this.price = price;
}
}
| true |
57e3389238282a59f3b246fd99fc706c67748a77 | Java | obinnamaduabum/lims_backend | /model/src/main/java/com/hertfordshire/model/psql/EmailVerificationToken.java | UTF-8 | 2,194 | 2.390625 | 2 | [] | no_license | package com.hertfordshire.model.psql;
import javax.persistence.*;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Calendar;
import java.util.Date;
@Entity()
@Table(name = "email_verification_token")
public class EmailVerificationToken {
@Id
@Genera... | true |
4a6587031cf3f0b9120a5e9aab9b02e2ff74690b | Java | RicardoVarzim/ArmazemServer | /src/businesslayer/BusinessIO.java | UTF-8 | 1,161 | 2.234375 | 2 | [] | no_license | package BusinessLayer;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.TreeMap;
public interface BusinessIO {
public boolean registar_cliente( String cliente,String password );
public boolean cliente_login( String cliente,String password );
public boolean is_logged_in( String cliente );
p... | true |
151247cf50386ff08c9ff6761178288481bb02c2 | Java | alisson-osvaldo/Exercicio_AndroidStudio_Java | /app/src/main/java/com/example/aula02/MainActivity.java | UTF-8 | 2,668 | 2.65625 | 3 | [] | no_license | package com.example.aula02;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.Toast;
public class MainActivity extends AppCompatActivity {
Button bActivity2;
Button bAbrirCad... | true |
27dc6cb77c2d800e4e2cb06b69a8a4c45d764149 | Java | paraurat/Genetic-Algorithm | /src/main/java/com/kleine/genetic/algorithm/Initalisator.java | UTF-8 | 1,707 | 3.421875 | 3 | [
"Apache-2.0"
] | permissive | package com.kleine.genetic.algorithm;
import com.kleine.genetic.algorithm.gens.Gene;
import com.kleine.genetic.algorithm.predatorandprey.Snake;
import java.util.ArrayList;
import java.util.List;
import java.util.Random;
/**
* Initialises a List of Snakes.
*/
public class Initalisator {
private int amountOfSna... | true |
5266aa26d87e231b4806cb80ad949aa26d370bfa | Java | vvmikhalevich/parking | /dao-orm-impl/src/main/java/com/itacademy/jd2/vvm/parking/dao/orm/impl/ParkingDaoImpl.java | UTF-8 | 3,099 | 2.34375 | 2 | [] | no_license | package com.itacademy.jd2.vvm.parking.dao.orm.impl;
import java.util.List;
import javax.persistence.EntityManager;
import javax.persistence.TypedQuery;
import javax.persistence.criteria.CriteriaBuilder;
import javax.persistence.criteria.CriteriaQuery;
import javax.persistence.criteria.Path;
import javax.persistence.c... | true |
2b47ddaf0dfc2b8b4f52c19e53411ff0f8e935d8 | Java | Vitoraw/Aplicativo | /app/src/main/java/com/example/vitor/aplicativo/Information.java | UTF-8 | 146 | 1.609375 | 2 | [] | no_license | package com.example.vitor.aplicativo;
/**
* Created by Vitor on 18/04/2015.
*/
public class Information {
int iconId;
String title;
}
| true |
55ba391aaa5e69ccc4862d3fa273c6aeb2ef7dd1 | Java | cckmit/test2 | /backend/src/main/java/com/alibaba/robot/task/TaskManager.java | UTF-8 | 5,516 | 2.015625 | 2 | [] | no_license | package com.alibaba.robot.task;
import java.util.HashMap;
import java.util.Map;
import java.util.concurrent.CopyOnWriteArraySet;
import org.apache.log4j.Logger;
import com.alibaba.robot.common.Const;
import com.alibaba.robot.status.StatusManager;
import com.alibaba.robot.status.StatusCategory;
import com.alibaba.rob... | true |
c7be44cba1ba28e4613113d6d1d6d8ce683d73f2 | Java | wyuzwy/zwy_ssm_resource | /src/main/java/com/zhangwenyu/resource/controller/teacherController.java | UTF-8 | 2,825 | 2.0625 | 2 | [] | no_license | package com.zhangwenyu.resource.controller;
import com.alibaba.fastjson.JSON;
import com.github.pagehelper.PageHelper;
import com.zhangwenyu.resource.bean.Msg;
import com.zhangwenyu.resource.bean.Teacher;
import com.zhangwenyu.resource.service.TeacherService;
import com.zhangwenyu.resource.utils.ResponseUtil;
import o... | true |
7c812151a7854f470940fc8fc038000009d76d5a | Java | perla000/POO | /src/UIII_Figuras/Circulo.java | UTF-8 | 1,539 | 3.390625 | 3 | [] | no_license | //DEFINICION DE CLASE HIJA CIRCULO (FIGURA)
//MARTINEZ ESTRADA JOSHUA
//18111962
package UIII_Figuras;
public class Circulo extends Figura{
//ATRIBUTOS DE LA CLASE
protected double radio;
//CONSTRUCTORES
public Circulo(){
super();
this.radio=1;
}
publi... | true |
8fdd3b34c0e53f1a03469fff4889185878b06d0e | Java | pologood/FMCG | /src/net/wit/controller/admin/MobilePriceController.java | UTF-8 | 1,431 | 1.757813 | 2 | [] | no_license | /*
* Copyright 2005-2013 rsico. All rights reserved.
* Support: http://www.rsico.cn
* License: http://www.rsico.cn/license
*/
package net.wit.controller.admin;
import javax.annotation.Resource;
import net.wit.Message;
import net.wit.Pageable;
import net.wit.entity.BaseEntity.Save;
import net.wit.entity.MobilePric... | true |
9f06718e4f1f02530a81d270cb138254eeaa9e78 | Java | awsdocs/aws-doc-sdk-examples | /javav2/example_code/identitystore/src/test/java/IdentitystoreServiceTest.java | UTF-8 | 7,775 | 2.046875 | 2 | [
"Apache-2.0",
"MIT"
] | permissive | /*
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
SPDX-License-Identifier: Apache-2.0
*/
import com.example.identitystore.*;
import org.junit.jupiter.api.*;
import static org.junit.jupiter.api.Assertions.assertNotNull;
import static org.junit.jupiter.api.Assertions.assertTrue;
impo... | true |
96ade27910ac2b21318d950e7ca8a5394f0a1e0f | Java | giovanni1182/bcp | /BCP_infra_nova/WEB-INF/src/com/gvs/crm/model/impl/LocalidadeImpl.java | UTF-8 | 2,706 | 2.609375 | 3 | [] | no_license | package com.gvs.crm.model.impl;
import com.gvs.crm.model.Localidade;
import infra.sql.SQLQuery;
import infra.sql.SQLUpdate;
public class LocalidadeImpl extends EntidadeImpl implements Localidade
{
private int codigo;
private String cidade,estado;
public void incluir() throws Exception
{
super.i... | true |
6293f8aa792e44c93fda3a2bfb4dac1bb161d320 | Java | msun4100/DongneProject | /app/src/main/java/kr/me/ansr/tab/chat/ChatRoomInfo.java | UTF-8 | 269 | 1.671875 | 2 | [] | no_license | package kr.me.ansr.tab.chat;
import java.util.ArrayList;
import kr.me.ansr.gcmchat.model.ChatRoom;
/**
* Created by KMS on 2016-10-25.
*/
public class ChatRoomInfo {
public Boolean error;
public String message;
public ArrayList<ChatRoom> chat_rooms;
}
| true |
8861e2528b3c50c91662206aa60d7e78718cc170 | Java | akrios25/WhatIsMyAddress | /app/src/main/java/nyc/c4q/whatismyaddress/RecyclerActivity.java | UTF-8 | 1,976 | 2.140625 | 2 | [] | no_license | package nyc.c4q.whatismyaddress;
import android.content.Intent;
import android.content.SharedPreferences;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.support.v7.view.menu.MenuView;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.Recyc... | true |
621b847c5d0e6b8581f4343097b7448dc894db2c | Java | ReshUnnikrishnan1296/portfolio | /Ludo Game Simulation/Ludo_Game/src/main/java/dal/asdc/playing_pieces/Blue_Token.java | UTF-8 | 1,783 | 2.8125 | 3 | [] | no_license | package dal.asdc.playing_pieces;
public class Blue_Token extends Token{
static int[][] blue_home = {{2,12},{2,11},{3,12},{3,11}};
int[][] winning_square = {{6,6},{7,7},{8,8},{6,7},{7,6}};
int[][] blue_token_path = {{1,1},{2,2},{3,3},{4,4},{5,5},{6,6},{7,7},{8,8},{9,9}};
public Blue_Token(int numer_of_token) {
... | true |
1084a36816d3285b9cebef83d4feff77fa84365f | Java | grouzen/quoridor | /quoridor-base/src/com/grouzen/quoridor/screen/Screen.java | UTF-8 | 139 | 1.9375 | 2 | [] | no_license | package com.grouzen.quoridor.screen;
public abstract class Screen {
public abstract void render();
public abstract void tick();
}
| true |
f49df7b9b79290104c311615615d0472035b8007 | Java | master-bongtoo/Client-Android | /app/src/main/java/com/example/bongtoo/MyBongtooFragment.java | UTF-8 | 21,168 | 1.71875 | 2 | [] | no_license | package com.example.bongtoo;
import android.app.Activity;
import android.app.ProgressDialog;
import android.content.Context;
import android.graphics.drawable.ShapeDrawable;
import android.graphics.drawable.shapes.OvalShape;
import android.os.Build;
import android.os.Bundle;
import androidx.fragment.app.Fragment;
imp... | true |
c19373f225814e549522cfd6120bdb7cb13c52f6 | Java | VSVDEv/migration | /spring/src/test/java/it/disovery/spring/web/HitControllerTest.java | UTF-8 | 2,121 | 1.929688 | 2 | [] | no_license | package it.disovery.spring.web;
import it.discovery.spring.MainApplication;
import org.hamcrest.Matchers;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfig... | true |
2ff1c162c5142f54d40c754b22de2242e149549d | Java | TarakeswariR1/Gas-pump | /Strategy/Printreceipt1.java | UTF-8 | 656 | 2.578125 | 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 Strategy;
import DataStore.*;
/**
*
* @author tarak
*/
public class Printreceipt1 extends Printreceipt{
@Ove... | true |
a7eb0e67386d68c5ec8fc8b8de0c033b1e94c693 | Java | gspandy/EashShop | /easyShop-common/src/main/java/com/easyshop/common/web/converter/DateConverter.java | UTF-8 | 1,053 | 2.1875 | 2 | [] | no_license | /**
* Copyright (c) 2015-2016 yejunwu126@126.com
*
* Licensed under the Apache License, Version 2.0 (the "License");
*/
package com.easyshop.common.web.converter;
import java.text.SimpleDateFormat;
import java.util.Date;
import org.springframework.beans.propertyeditors.CustomDateEditor;
import org.spri... | true |
3c43024490619538c97a94a275c18ecbd23bdc3d | Java | ldmontibeller/UC1-SENAC | /UC1-SENAC/src/trabalho01/Trabalho01ComTryECatch.java | ISO-8859-1 | 2,014 | 3.90625 | 4 | [] | no_license | package trabalho01;
import java.util.Scanner;
public class Trabalho01ComTryECatch {
public static void main(String[] args) {
// Declarao de Variaveis:
double numero = 0;
int contadorNota = 0;
double somaTotal = 0.0;
double media = 0.0;
String textoInserido = "";
//flag ou bandeira
bool... | true |
1ec78fdbabedc83c58acf3f9797c0857bb768f1a | Java | NikitaSamoilov/ConwaysLife | /src/org/arriva/gui/GuiWindowParams.java | UTF-8 | 866 | 2.46875 | 2 | [] | no_license | package org.arriva.gui;
import org.arriva.core.Galaxy;
public class GuiWindowParams {
private int width = 400;
private int height = 300;
private Galaxy galaxy;
public int getWidth() {
return width;
}
public void setWidth(int width) {
this.width = width;
}
public int... | true |
283b0cef6613a84bb5f898f6c94143b671006e30 | Java | panyu0514/mySpringBoots | /src/main/java/com/yk/test/TestingSpringBoot.java | UTF-8 | 691 | 2 | 2 | [] | no_license | package com.yk.test;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.Date;
@RestController
@EnableAu... | true |
b778ba2a5793da333623b8f8d7dc509383faa63a | Java | miaoxin520/cms | /src/com/ibeifeng/springmvc/controller/HelloController.java | UTF-8 | 598 | 2 | 2 | [] | no_license | package com.ibeifeng.springmvc.controller;
import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.mvc.AbstractController;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
/**
* Created by Administrator on 2017/2/20.
*/
public class H... | true |
6754290b5722f39e6d5cb6e740818f6f5f606626 | Java | Gert10987/TTrackAndroid | /app/src/main/java/info/gert/ttrackandroid/login/model/LoginInteractorImpl.java | UTF-8 | 2,041 | 2.421875 | 2 | [] | no_license | package info.gert.ttrackandroid.login.model;
import android.os.Handler;
import android.text.TextUtils;
import info.gert.ttrackandroid.HttpApi.ApiClient;
import info.gert.ttrackandroid.HttpApi.ITTrackService;
import info.gert.ttrackandroid.employer.model.Employer;
import retrofit2.Call;
import retrofit2.Callback;
impo... | true |
92d99be990f648da44c552c9315daebba75abe8a | Java | thwyd321/java-funny-demo | /custom-rpc/rpc-client-1.0/src/main/java/com/wyd/rpc/client/HelloServiceProxy.java | UTF-8 | 2,600 | 2.671875 | 3 | [] | no_license | package com.wyd.rpc.client;
import com.wyd.rpc.server.api.IHelloService;
import com.wyd.rpc.server.api.RpcRequest;
import com.wyd.rpc.server.api.User;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.net.Socket;
import java.net.UnknownHostException;
/**
* ... | true |
f9b7683bc1b349249bcebca8c9f6aa6c09ee71b7 | Java | rashmi-pallavi/ValidationExample | /Rashmi Pallavi(118555)/src/ques4/CheckSalaryException.java | UTF-8 | 363 | 2.59375 | 3 | [] | no_license | package ques4;
public class CheckSalaryException extends Exception {
private int eSalary;
private String msg;
public CheckSalaryException(int eSalary,String msg) {
super();
this.eSalary = eSalary;
this.msg=msg;
}
@Override
public String getMessage() {
// TODO Auto-generated method stub... | true |
d2c672cac72324b0ac03dc40cc726758b2202a21 | Java | eamv-fkj/JavaPrinting | /src/Document.java | UTF-8 | 1,318 | 3.078125 | 3 | [] | no_license | import java.awt.Color;
import java.awt.Font;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.image.BufferedImage;
import java.awt.print.PageFormat;
import java.awt.print.Printable;
import java.awt.print.PrinterException;
public class Document implements Printable {
@Override
public int pri... | true |
3be76a1f2b42a0590ff2e0b69bcb7a00aa8dd564 | Java | qq545505061/cloudnote | /src/test/java/test/dao/TestUserDAO.java | UTF-8 | 1,440 | 2.203125 | 2 | [] | no_license | package test.dao;
import java.sql.Connection;
import java.sql.SQLException;
import javax.annotation.Resource;
import javax.sql.DataSource;
import org.apache.ibatis.session.SqlSessionFactory;
import org.junit.Test;
import org.mybatis.spring.SqlSessionFactoryBean;
import org.mybatis.spring.mapper.MapperScannerConfigur... | true |
ec7c33241bf4947f67dbaa702c0e42508368b1ea | Java | NichoNicho/DiningPhilosopher | /src/Philosopher.java | UTF-8 | 2,352 | 3.375 | 3 | [] | no_license | import java.awt.Color;
import java.util.Random;
public class Philosopher extends Thread {
// Fields
private String Name;
public Color phcolor;
private int beenHungry = 0;
private int beenEating = 0;
private int beenthinking = 0;
private Random rand = new Random();
public Fork Left;
public Fork Right;
publ... | true |
5f8985e548eb2466d85a69db0a8590375fece4cf | Java | gayu1502/java_assignment | /assignment1/src/assignment1/NaturalNoByFormula.java | UTF-8 | 383 | 3.328125 | 3 | [] | no_license | package assignment1;
import java.util.Scanner;
public class NaturalNoByFormula {
static int sumOfNaturalNo(int n) {
return n*(n+1)/2;
}
public static void main(String[] args) {
int n;
Scanner input=new Scanner(System.in);
System.out.println("enter the value of n");
n=input.nextInt();
... | true |
5a3c6018a889185b094b55bd5e76efeaee55bdf8 | Java | gjmy1ggjt/7_1_springCloud_redisson_nosql_success | /springCloud-parent/cloud-common/src/main/java/com/example/common/service/product/TestService.java | UTF-8 | 363 | 1.640625 | 2 | [] | no_license | package com.example.common.service.product;
import com.example.common.entity.UserYYY;
import org.springframework.cloud.openfeign.FeignClient;
/**
* Created by Administrator on 2019/11/23.
*/
public interface TestService {
String getTestById(Integer id);
UserYYY getUserById(Integer id);
void save();... | true |
042f97ccdddb39040785ae961757465046abe932 | Java | patrickmichalina/zetafish | /src/ZetaFish/TestConsole.java | UTF-8 | 5,308 | 3.21875 | 3 | [] | no_license | package ZetaFish;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import ZetaFish.Interfaces.*;
import ZetaFish.NetworkObjects.*;
public class TestConsole implements IChatListener, IStatusListener, ITurnListener, ICardRequestResponseListener
{
private static ZetaFishClien... | true |
c0f2fc91e6c6a844c40778609f9266c52d6de235 | Java | Cao199012/MyWorkApp | /MyWorkApp/app/src/main/java/com/caojian/myworkapp/ui/adapter/GroupMembersAdapter.java | UTF-8 | 4,209 | 2.234375 | 2 | [] | no_license | package com.caojian.myworkapp.ui.adapter;
import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;
imp... | true |
488e4dd5fec14fcd201a84c179f5ea5d0e87a4dc | Java | potatobeancox5/potato-leetcode-solution-java | /src/main/java/com/potato/study/leetcodecn/p00739/t001/Solution.java | UTF-8 | 2,272 | 4.1875 | 4 | [] | no_license | package com.potato.study.leetcodecn.p00739.t001;
import java.util.Arrays;
import java.util.Stack;
/**
* 739. 每日温度
*
* 请根据每日 气温 列表,重新生成一个列表。对应位置的输出为:要想观测到更高的气温,至少需要等待的天数。如果气温在这之后都不会升高,请在该位置用 0 来代替。
例如,给定一个列表 temperatures = [73, 74, 75, 71, 69, 72, 76, 73],你的输出应该是 [1, 1, 4, 2, 1, 1, 0, 0]。
提示:气温 列表长度的范围是 [1, 300... | true |
f40e7409fba90405b3b2f4ba102b684437aa9615 | Java | svinniks/jasquel | /src/main/java/jasquel/run/ActiveRun.java | UTF-8 | 4,232 | 2.25 | 2 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package jasquel.run;
import jasquel.reporter.Reporter;
import jasquel.run.event.*;
import jasquel.run.event.Error;
import jasquel.run.... | true |
e9e5b0899169134d9ea01a5f639c1816a07d914a | Java | stormtrader/MonitorCamera | /app/src/main/java/com/example/administrator/monitorcamera/PicProcess.java | UTF-8 | 2,083 | 2.53125 | 3 | [] | no_license | package com.example.administrator.monitorcamera;
import android.util.Log;
import org.opencv.core.Mat;
import org.opencv.imgcodecs.Imgcodecs;
import org.opencv.imgproc.Imgproc;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import static org.opencv.core.Core.absdif... | true |
de3653bbc208b3b0ceb00740d997b90830cdf4d9 | Java | ChineduVickreg/Java-exercises | /SquareWithHashtag.java | UTF-8 | 352 | 2.75 | 3 | [] | no_license | package Cohort3.com.Exercises;
public class SquareWithHashtag {
public static void main(String[]args){
int sides = 5;
for( int counter = 1; counter<=sides; counter++){
for(int timer = 1; timer<=sides; timer++){
System.out.print("#");
}
System.out.... | true |
09cfdb7d2c450fc1670ba49bdfa928135b3e47b3 | Java | moutainhigh/foss | /stl/stl-consumer/src/main/java/com/deppon/foss/module/settlement/consumer/server/dao/impl/OutWarehouseExceptionDao.java | UTF-8 | 1,110 | 2 | 2 | [] | no_license | package com.deppon.foss.module.settlement.consumer.server.dao.impl;
import com.deppon.foss.framework.server.components.dataaccess.ibatis.iBatis3DaoImpl;
import com.deppon.foss.module.settlement.consumer.api.server.dao.IOutWarehouseExceptionDao;
import com.deppon.foss.module.settlement.consumer.api.shared.domain.OutSto... | true |
fc80befc58c31a8d3e4d3efa6d09597b49274fe9 | Java | nihaolihai/spring-boot-guide-master | /ch5-runner/src/main/java/club/throwable/ch5/Ch5Application.java | UTF-8 | 663 | 2.015625 | 2 | [] | no_license | package club.throwable.ch5;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
/**
* @author throwable
* @version v1.0
* @description
* @since 2020/7/12 21:47
... | true |
20877768bd751781b9beabfa9b60fb41df9a54f9 | Java | andrew92a/java-project | /src/Models/User.java | UTF-8 | 716 | 2.34375 | 2 | [] | no_license | package Models;
import App.Auth.Auth;
import Models.Orders.Repair;
import org.javalite.activejdbc.annotations.BelongsTo;
import java.util.List;
@BelongsTo(parent = UsersRole.class, foreignKeyName = "role_id")
public class User extends BaseModel {
/**
* Check if current user is Admin
*
* @return B... | true |
55c9533e4b5f8609acf5e1b3a8ae585ed11d35b9 | Java | RepoForks/com.snapchat.android | /src/ckj.java | UTF-8 | 1,906 | 2.09375 | 2 | [] | no_license | public abstract class ckj
extends ckc
{
private final chn a;
final long b;
public ckj(chj paramchj, long paramLong)
{
super(paramchj);
b = paramLong;
a = new ckj.a(paramchj.x());
}
public abstract long a(long paramLong, int paramInt);
public abstract long a(long paramLong1, long par... | true |
79f2d7b6982e66e8eeb130e6d1b6edc1514736fc | Java | hassayoun/bokoolRepo | /bekool-client/src/main/java/test/TestAddUser.java | UTF-8 | 584 | 2.1875 | 2 | [] | no_license | package test;
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.naming.NamingException;
import services.UserServicesRemote;
import domain.User;
public class TestAddUser {
public static void main(String[] args) throws NamingException {
Context context = new InitialContext()... | true |
55ed20a3c7b9f83b74b4a287dbf02c29bce139f3 | Java | Zshllj20160221/zsh | /src/test/java/Test.java | UTF-8 | 407 | 2.625 | 3 | [] | no_license | import sheJiMoShi.ElanEnum;
public class Test{
int a;
char c;
@org.junit.Test
public void test(){
// System.out.println(a);
// System.out.println((int)new Character(c).charValue());
// System.out.println((int)Character.MIN_VALUE);
// System.out.println((int)Character.MAX_VA... | true |
674e72b545ee513fc6782d2b74e23d01e932cffd | Java | Slakstins/CoffeeProject | /CSSE374Coffee/src/beverageCreation/Beverage.java | UTF-8 | 219 | 2.203125 | 2 | [] | no_license | package beverageCreation;
import java.util.ArrayList;
import java.util.Collection;
public interface Beverage {
public String getAsString();
public Beverage unwrapDrink();
public Integer getQty();
}
| true |
fca3a484a4fabeb55cd0521d24566ec5dd5d1bfb | Java | MedicalTrends/semantikos | /SemantikosWeb/src/cl/minsal/semantikos/designer_modeler/converters/tagConverter.java | UTF-8 | 1,557 | 2.34375 | 2 | [] | no_license | package cl.minsal.semantikos.designer_modeler.converters;
import cl.minsal.semantikos.designer_modeler.designer.TagBean;
import cl.minsal.semantikos.model.Tag;
import javax.el.ELContext;
import javax.faces.application.FacesMessage;
import javax.faces.component.UIComponent;
import javax.faces.context.FacesContext;
imp... | true |
80a9206f2c9e06d416ed285f0da4831ea3abd7c9 | Java | WorldInEye/my | /my-service/my-service-work-orders/src/main/java/indi/uhyils/pojo/temp/InitApiRequestTemporary.java | UTF-8 | 813 | 1.789063 | 2 | [] | no_license | package indi.uhyils.pojo.temp;
import indi.uhyils.pojo.model.OrderNodeEntity;
import java.io.Serializable;
/**
* @author uhyils <247452312@qq.com>
* @date 文件创建日期 2020年11月22日 17时12分
*/
public class InitApiRequestTemporary implements Serializable {
/**
* 工单节点
*/
private OrderNodeEntity orderNode;... | true |
1861c8998b3fd99a5a6a7141f04333c9c5fc13ca | Java | duanlp/yunplatform | /src/main/com/cloudstong/business/peach/model/Peach.java | UTF-8 | 1,504 | 1.945313 | 2 | [] | no_license | /*******************************************************************************
* Licensed Materials - Property of Cloudstong
*
* (C) Copyright Cloudstong Corp. 2014 All Rights Reserved. (
*
******************************************************************************/
package com.cloudstong.business.peach.mod... | true |
47b8dbe8b83c1e9432f4f85d9cdc402894154277 | Java | shefalibs/FSD3 | /spring-boot-jpa-repo/src/main/java/com/example/demo/service/CourseServiceImpl.java | UTF-8 | 744 | 2.234375 | 2 | [] | no_license | package com.example.demo.service;
import java.util.List;
import java.util.Optional;
import javax.transaction.Transactional;
import org.springframework.stereotype.Service;
import com.example.demo.dao.CourseRepository;
import com.example.demo.entity.Course;
@Service
public class CourseServiceImpl implements CourseSer... | true |
659f5ec9a1fef44e9bd341308fc5294fb2a5a9a1 | Java | MF21320163-XLY/FreshCompanion | /Server/src/main/java/group/breaker/freshcompanion/Operate.java | UTF-8 | 580 | 2.296875 | 2 | [] | no_license | package group.breaker.freshcompanion;
import java.sql.Connection;
import java.sql.DriverManager;
/*可提前设置数据库中信息*/
public class Operate {
public void main(String[] args)throws Exception
{
Connection conn = null;
conn = DriverManager.getConnection("jdbc:mysql://localhost:3306/test?useUnicode=true... | true |
060d2dbc47bc1a11b8abf3d9af846078d07338af | Java | moutainhigh/xcdv1 | /msk-dev/msk-common/src/main/java/com/msk/so/orderstatus/OrderStatusWaitSend.java | UTF-8 | 3,647 | 2.21875 | 2 | [] | no_license | package com.msk.so.orderstatus;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import com.msk.common.consts.StatusConst;
import com.msk.core.bean.BaseParam;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import com.msk.c... | true |
6595d435cbce6dc41820d604eca6c69202865cac | Java | MrMonotone/AndroidCentipede | /app/src/main/java/group7/tcss450/uw/edu/centipedeandroid/menu/HighScoreFragment.java | UTF-8 | 2,743 | 2.609375 | 3 | [] | no_license | package group7.tcss450.uw.edu.centipedeandroid.menu;
import android.content.Context;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import androi... | true |
e96fc660589e68f5eecee54be7cacf1c853080c8 | Java | skahl/teddys | /trunk/tests/Grundgeruest/src/edu/teddys/network/messages/server/ReqMessageRelocateServer.java | UTF-8 | 868 | 2.125 | 2 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package edu.teddys.network.messages.server;
import com.jme3.network.serializing.Serializable;
import edu.teddys.network.NetworkSettings;
import edu.teddys.network.messages.NetworkMessageRequest;
/**
*
* @author cm
*... | true |
d3c1022e8c7028e520a6e50603d432d4789b996b | Java | ZhZGod/shiro-study | /src/main/java/com/zzh/shiro/dao/PasswordHelper.java | UTF-8 | 1,117 | 2.546875 | 3 | [
"Apache-2.0"
] | permissive | package com.zzh.shiro.dao;
import org.apache.shiro.crypto.RandomNumberGenerator;
import org.apache.shiro.crypto.SecureRandomNumberGenerator;
import org.apache.shiro.crypto.hash.SimpleHash;
public class PasswordHelper {
private RandomNumberGenerator randomNumberGenerator = new SecureRandomNumberGenerator();
private ... | true |
d272a19b958a6d1b8d05cab428fd47ad3c7d5c39 | Java | sumit-sardar/GitMigrationRepo01 | /dep-scoring-ctrl/src/test/ctb/lexington/db/mapper/AllIrsFactMapperTests.java | UTF-8 | 606 | 1.75 | 2 | [] | no_license | package test.ctb.lexington.db.mapper;
import junit.framework.Test;
import junit.framework.TestSuite;
/**
* @author Rama_Rao
*
*/
public class AllIrsFactMapperTests{
public static Test suite(){
TestSuite suite = new TestSuite("All IRSTABEFactTests");
suite.addTestSuite(IrsTABECompositeF... | true |
637dad05ad3b9425b24be35589972f2dbf0090e9 | Java | Navneet-Tyagi/Hacker_Rank_Solutions | /SaveThePrisonerSolution.java | UTF-8 | 410 | 2.578125 | 3 | [] | no_license | package Com;
public class SaveThePrisonerSolution {
public static void main(String[] args) {
// TODO Auto-generated method stub
int p = 352926151; //prisoner n
int s = 380324688; //sweet m
int start = 94730870; //start s
for(int i=1; i<s; i++)
{
if(start==p)
{
start = 1;
... | true |
12b838e21cbf17f883cc52cdff7f9e2c42394ceb | Java | lucmoreau/ProvToolbox | /modules-core/prov-jsonld-xml/src/main/java/org/openprovenance/prov/core/xml/serialization/serial/CustomTypedValueSerializer.java | UTF-8 | 2,870 | 2.015625 | 2 | [
"MIT"
] | permissive | package org.openprovenance.prov.core.xml.serialization.serial;
import com.fasterxml.jackson.core.JsonGenerator;
import com.fasterxml.jackson.databind.SerializerProvider;
import com.fasterxml.jackson.databind.ser.std.StdSerializer;
import com.fasterxml.jackson.dataformat.xml.ser.ToXmlGenerator;
import org.openprovenanc... | true |
ac79dcb4a74bf054407183ebfba23f000496a9ea | Java | Rousscot/M1COO_4Annuaire | /src/dao/exception/delete/EntryDeleteException.java | UTF-8 | 753 | 2.921875 | 3 | [] | no_license | package dao.exception.delete;
import dao.exception.DAODeleteException;
import domaine.Entry;
/**
* I am an exception raised if the deletion of an Entry into the database fail.
*
* @author Cyril Ferlicot and Aurelien Rousseau
*/
public class EntryDeleteException extends DAODeleteException {
/**
* I am th... | true |
00d0c3401f1a6884a5af5318f25975855d6d2097 | Java | beyangzhen/estore_ssh | /src/com/beyang/cn/service/impl/CartServiceImpl.java | UTF-8 | 2,295 | 2.359375 | 2 | [] | no_license | package com.beyang.cn.service.impl;
import java.sql.SQLException;
import java.util.List;
import org.apache.commons.lang.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
... | true |
cb576fc0e4567f823b40842359bf46de0537164d | Java | hyzhaolt/algorithm014-algorithm014 | /Week_01/ClimbingStaires.java | UTF-8 | 1,437 | 4.09375 | 4 | [] | no_license | package mile.com.week1;
/**
* Created by zhaofengying on 2020/8/13.
*/
public class ClimbingStaires {
/**
* 1.原题目:有一个n层的楼梯 每次可以走一步 也可以走2步
* 要爬上一个n层的楼梯 一共有多少种走法
*
* 2.审题
* (1)假设 i=1 就1种走法 记作f(1)=1
* (2)i=2 2种走法 1步一次 或 2步一次 记作f(2)=2
* (3)i=3 含义:在走完第二阶之后 再走一步 此时共有 f(2)种走法
* ... | true |
30c17446f2ca98930265924812b5eecccd885143 | Java | ZhouZhikang/Cherry | /app/src/main/java/cherry/activity/MainActivity.java | UTF-8 | 4,826 | 2.125 | 2 | [] | no_license | package cherry.activity;
import android.app.Activity;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentActivity;
import android.support.v4.app.FragmentPagerAdapter;
import android.support.v4.app.FragmentTransaction;
import android.graphics.Col... | true |
a73ee42f9048ebc996b31fc216a38e254e5f43a2 | Java | marcohnp/dev1-lista1 | /src/main/java/com/example/dev1lista1/controller/CalculadoraController.java | UTF-8 | 667 | 2.1875 | 2 | [] | no_license | package com.example.dev1lista1.controller;
import com.example.dev1lista1.facade.CalculadoraFacade;
import com.example.dev1lista1.model.response.CalculadoraResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
@RestController
@RequestMapping(value = ... | true |
6125c26e3c07560cd099cf53a8b50cada4e32d84 | Java | apache/groovy | /src/main/java/groovy/transform/AutoFinal.java | UTF-8 | 4,350 | 2.203125 | 2 | [
"BSD-3-Clause",
"Apache-2.0",
"MIT",
"CC-BY-2.5"
] | 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")... | true |
d6e5e528344827cc0d516e1a13f8dcbeb83f3725 | Java | GosmyYB/SpringFrameworkDemo | /src/main/java/com/wyb/demo/ioc/injection/dao/InjectionDAOImpl.java | UTF-8 | 379 | 2.453125 | 2 | [] | no_license | package com.wyb.demo.ioc.injection.dao;
/**
* Created by wyb on 2017/3/6.
*/
public class InjectionDAOImpl implements InjectionDAO {
@Override
public void save(String model) {
System.out.println(this.getClass().getSimpleName() + " handling model=" + model);
System.out.println(this.getClass().... | true |
79aed202effe8714477efb26f529a195e27fcb79 | Java | jimador/narrative | /core/src/main/java/org/narrative/common/web/struts/LocaleConverter.java | UTF-8 | 795 | 2.359375 | 2 | [
"MIT"
] | permissive | package org.narrative.common.web.struts;
import org.narrative.common.util.IPUtil;
import ognl.DefaultTypeConverter;
import java.util.Locale;
import java.util.Map;
/**
* Date: Jan 23, 2006
* Time: 10:22:57 AM
*
* @author Brian
*/
public class LocaleConverter extends DefaultTypeConverter {
public Object conve... | true |
f0e296e819d900bf5d46f02e573f0ef2e31d7e60 | Java | MayanTiwari/comjavamultithreaded | /src/main/java/rx/FirstClassFunctionParams.java | UTF-8 | 777 | 3.28125 | 3 | [] | no_license | package rx;
import java.util.function.Function;
import static java.lang.System.out;
/**
* Created by mayan on 27/1/18.
*/
public class FirstClassFunctionParams {
public static void main(String[] args) {
out.println(concatAndTransform("hello", "world", s -> {
return s.toLowerCase();
... | true |
85fb56948fad0d82f4f967d01394d385d23fdf08 | Java | Celludriel/X4_Universe_Generation_Tool | /src/main/java/be/celludriel/universegenerator/model/GateType.java | UTF-8 | 436 | 2.125 | 2 | [] | no_license | package be.celludriel.universegenerator.model;
public enum GateType {
ACCELERATOR_01("props_gates_orb_accelerator_01_macro"),
ACCELERATOR_02("props_gates_orb_accelerator_02_macro"),
ANCIENT_GATE("props_gates_anc_gate_macro"),
TERRAN_GATE("props_ter_gate_01_macro");
private String macro;
GateT... | true |
999424000798afea9b020f47d9dec681e78d9422 | Java | codehaus/larex-io | /src/main/java/org/codehaus/larex/io/StandardChannel.java | UTF-8 | 6,640 | 2.140625 | 2 | [] | no_license | /*
* Copyright (c) 2010-2010 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 ... | true |
102ae7cc48b0af3c82cb5f9b0d930fbb4e72db2c | Java | paulfioravanti/lmif | /Computer-Systems-Architecture/Practicals/M10/NetworkHelloServer.java | UTF-8 | 603 | 3.21875 | 3 | [
"MIT"
] | permissive | import java.net.*;
import java.io.*;
public class NetworkHelloServer
{
public static void main(String[] args)
{
ServerSocket helloServer;
Socket clientSock = null;
BufferedReader br;
PrintStream os;
try
{
helloServer = new ServerSocket(9999);
clientSock = helloServer.accept();
br = new Buffe... | true |
e5100398c182e6a5002d6949aea7ca506f8eee72 | Java | kaouter/Systeme_secu | /src/systém_sécurisée/hello5.java | UTF-8 | 14,313 | 2.140625 | 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 systém_sécurisée;
/**
*
* @author yasmine
*/
public class hello5 extends javax.swing.JFrame {
/**
* Creates new f... | true |