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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
5f6dad73193d3969e7242395da4a115453eeb23c | Java | chrisf/tifsa | /src/main/java/org/jsack/tifsa/Database/NoteType/NoteTypeSchema.java | UTF-8 | 494 | 2.078125 | 2 | [] | no_license | package org.jsack.tifsa.Database.NoteType;
import org.jsack.tifsa.Database.Interfaces.ISchema;
import org.springframework.jdbc.core.RowMapper;
/**
* Created by Admin on 4/16/2017.
*/
public class NoteTypeSchema implements ISchema {
@Override
public String getName() {
return "NoteType";
}
@O... | true |
4c7a69fcd2f3e2096e4f3c9766af769da73d239c | Java | bms1909/SCASprint3 | /app/src/main/java/ulbra/bms/sca/controllers/LoginActivity.java | UTF-8 | 13,261 | 2.03125 | 2 | [] | no_license | package ulbra.bms.sca.controllers;
import android.animation.Animator;
import android.animation.AnimatorListenerAdapter;
import android.app.AlertDialog;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.support.v7.ap... | true |
496164fae2f33bac01461028dbe109bf06dd9dc7 | Java | xdongz/LeetcodeSummary | /src/Chapter05/BasicSort.java | UTF-8 | 2,564 | 4.40625 | 4 | [] | no_license |
package Chapter05;
import java.util.Arrays;
public class BasicSort {
public static void main(String[] args) {
int[] nums = {4,5,6,3,1,2};
insertSort(nums);
System.out.println(Arrays.toString(nums));
}
// 稳定指的是,如果两个元素的值相同,经过排序之后,会不会改变他们的先后顺序
//------------------------------简单排序--... | true |
7e7a8e5724fa4837536c686a10dc04822203df4e | Java | whyWhale/Spring_coreTech | /src/main/java/core/core_tech/domain/member/Member.java | UTF-8 | 374 | 2.265625 | 2 | [] | no_license | package core.core_tech.domain.member;
import lombok.Builder;
import lombok.Getter;
import lombok.ToString;
@Getter
@ToString
public class Member{
private Long id;
private String name;
private Grade grade;
@Builder
public Member(Long id, String name, Grade grade) {
this.id = id;
th... | true |
7ee036f9bf6f6c0aea547063da52361ac0173e82 | Java | w2ogroup/heroku-java | /src/main/java/com/jakewharton/heroku/entities/Response.java | UTF-8 | 93 | 1.570313 | 2 | [
"Apache-2.0"
] | permissive | package com.jakewharton.heroku.entities;
public class Response {
public String error;
}
| true |
87fe1973a59910f5f2bee68e78355fcf42cca927 | Java | damanpreetsb/BloodSewa | /app/src/main/res/layout/nestedtabview/MainActivity.java | UTF-8 | 2,055 | 2.71875 | 3 | [] | no_license | package layout.nestedtabview;
import android.app.TabActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.widget.TabHost;
public class MainActivity extends TabActivity {
@Override
public void onCreate(Bundle savedInstanceSta... | true |
b7d149d75e64764865691b470db770828c66f124 | Java | sgraux/projet-poo | /POO/src/test/TestPion.java | UTF-8 | 213 | 1.828125 | 2 | [] | no_license | package test;
import uidelegate.Pion;
public class TestPion {
public static void main(String []args){
Pion monPion = new Pion("rouge");
System.out.println(monPion.getCouleur());
}
}
| true |
2fd927801ff0f1393ec3cd187ce06e4e5c928b3d | Java | NUREKN15-JAVA/JavaCourse-Cherepukhin-Gleb- | /UserManagement/src/main/java/ua/nure/kn155/cherepukhin/web/servlet/AbstractUserManager.java | UTF-8 | 2,355 | 2.21875 | 2 | [] | no_license | package ua.nure.kn155.cherepukhin.web.servlet;
import java.io.IOException;
import java.text.SimpleDateFormat;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.logging.... | true |
f38ab597827f20e54d08da65c92f5b66f3843efc | Java | jotd666/gods-deluxe | /src/gods/game/characters/weapons/Knife.java | UTF-8 | 245 | 2.328125 | 2 | [
"MIT"
] | permissive | package gods.game.characters.weapons;
public class Knife extends HeroLinearWeapon {
@Override
protected void move(long elapsed_time)
{
super.move(elapsed_time);
if (is_scenery_hit())
{
set_state(State.HITTING_WALL);
}
}
}
| true |
1622bbc4ba538bb623a94d988aab29e4b45a2c1d | Java | FOX2TW/club-management-backend | /src/main/java/com/tw/clubmanagement/service/ActivityParticipantService.java | UTF-8 | 2,804 | 2.265625 | 2 | [] | no_license | package com.tw.clubmanagement.service;
import com.tw.clubmanagement.entity.ActivityParticipantEntity;
import com.tw.clubmanagement.model.ActivityParticipant;
import com.tw.clubmanagement.repository.ActivityParticipantRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.... | true |
7615b56248920ec2d01add3c3cd95cde14300792 | Java | danlucraft/java-mateview | /src/com/redcareditor/mate/SinglePattern.java | UTF-8 | 521 | 1.875 | 2 | [] | no_license | package com.redcareditor.mate;
import java.util.List;
import java.util.Map;
import com.redcareditor.onig.Rx;
import com.redcareditor.plist.Dict;
public class SinglePattern extends Pattern {
public Rx match;
public Map<Integer, String> captures;
public SinglePattern(List<Pattern> grammarPatterns, Dict dict) {
... | true |
04fe080f782c49a7bd674e41a27af35123e8e618 | Java | sarl/sarl | /main/internalmaven/io.sarl.maven.batchcompiler/src/main/java/io/sarl/lang/compiler/batch/SarlBatchCompilerUtils.java | UTF-8 | 5,582 | 1.78125 | 2 | [
"Apache-2.0"
] | permissive | /*
* $Id$
*
* SARL is an general-purpose agent programming language.
* More details on http://www.sarl.io
*
* Copyright (C) 2014-2021 the original authors 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 ma... | true |
4458986b58a19555a87468bbb89340646cb0db4c | Java | DummyLeft/baseball | /src/main/java/cn/lzf/baseball/service/StaticsServiceImpl.java | UTF-8 | 898 | 2.140625 | 2 | [] | no_license | package cn.lzf.baseball.service;
import cn.lzf.baseball.mapper.StudentMapper;
import cn.lzf.baseball.mapper.TeacherMapper;
import cn.lzf.baseball.vo.StaticsView;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@Service
public class StaticsServiceImpl imple... | true |
ee71141c7602f0802bba93d744a06ce96357b377 | Java | wefine/my_followed_tutorials | /spring-boot-reactive/thymeleaf/src/main/java/com/wefine/reactive/util/TimestampUtils.java | UTF-8 | 857 | 2.53125 | 3 | [] | no_license | package com.wefine.reactive.util;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.TimeZone;
public class TimestampUtils {
private static final DateFormat ISO8601_DATEFORMAT_UTC;
static {
// In order to persist the timestamps for the match... | true |
8fad8b91aab6c75fceadb1371eb4e3b914577cd2 | Java | SandraLopezZarzuela/Menu | /app/src/main/java/com/example/menu/CheckBox.java | UTF-8 | 815 | 2.5 | 2 | [] | no_license | package com.example.menu;
import android.os.Bundle;
import android.widget.CompoundButton;
import androidx.appcompat.app.AppCompatActivity;
public class CheckBox extends AppCompatActivity implements CompoundButton.OnCheckedChangeListener {
android.widget.CheckBox cb;
@Override
public void onCreate(Bundle ... | true |
5befac3f1bce74cc51260cbdfba6ba2a08a0cbe4 | Java | chenwangnida/ISEM | /src/de/dfki/s2m2/sme2/GenericPlugin.java | UTF-8 | 1,439 | 2.265625 | 2 | [] | no_license | package de.dfki.s2m2.sme2;
import java.io.IOException;
import java.net.URL;
import java.util.Hashtable;
import java.util.Vector;
import org.eclipse.emf.common.util.URI;
import de.dfki.s2m2.MatchingEngine;
import de.dfki.s2m2.MatchingEngineFactory;
import de.dfki.s2m2.MatchingResult;
import de.dfki.sme2.I... | true |
1bfbb66bac2f9a6c4e83cfe667ea7d68289d55a9 | Java | Synchroneyes/MapBuilder-MineralContest | /src/main/java/fr/synchroneyes/mapbuilder/Entite/Item/Menus/Equipe/Modifier/MenuModifierEquipe.java | UTF-8 | 1,177 | 2.546875 | 3 | [] | no_license | package fr.synchroneyes.mapbuilder.Entite.Item.Menus.Equipe.Modifier;
import fr.synchroneyes.mapbuilder.Entite.Equipe;
import fr.synchroneyes.mapbuilder.Entite.Item.Menu;
import org.bukkit.Material;
public class MenuModifierEquipe extends Menu {
private Equipe equipe;
public MenuModifierEquipe(Equipe e){
... | true |
c617c7bae1d6ddbce8d00403ac03847fa6af5eed | Java | ZWboy97/weather | /app/src/main/java/com/example/coolweather/gson/Weather.java | UTF-8 | 673 | 2.28125 | 2 | [
"Apache-2.0"
] | permissive | package com.example.coolweather.gson;
import com.google.gson.annotations.SerializedName;
import java.util.List;
/**
* Created by 蚍蜉 on 2017/2/26.
* 对之前的几个实体类进行整合,
* 创建一个总的实体类来引用之前的各个类
*/
public class Weather {
//记录返回数据是否成功
public String status;
//数据基础信息
public Basic basic;
//空气状况
public... | true |
282a672321a941bedbea86e79988d0e75fe2bdc9 | Java | lotockijj/workspace | /demo/src/main/java/ekkel/Square.java | UTF-8 | 189 | 2.375 | 2 | [] | no_license | package ekkel;
public class Square extends Shape {
@Override
public String draw() {
return "Draw square...";
}
@Override
public String erase() {
return "Erase square...";
}
}
| true |
3d2041069fa9805248bbee938d52d86f7249823e | Java | brunolv6/orange-talents-05-template-proposta | /src/main/java/br/com/zupacademy/bruno/proposta/bloquearCartao/BloquearCartaoController.java | UTF-8 | 3,354 | 2.078125 | 2 | [
"Apache-2.0"
] | permissive | package br.com.zupacademy.bruno.proposta.bloquearCartao;
import br.com.zupacademy.bruno.proposta.adicionarBiometria.AdicionarBiometriaController;
import br.com.zupacademy.bruno.proposta.compartilhados.apiExternas.gerenciarCartao.bloqueio.BloquearCartaoViaApiAccount;
import br.com.zupacademy.bruno.proposta.compartilhad... | true |
f5be53ee06ed56952695522b2cf4f8ce1b3fd24c | Java | annamiklash/JavaDatabaseConnectivity | /src/main/java/repositories/Repository.java | UTF-8 | 463 | 2.15625 | 2 | [] | no_license | package repositories;
import dto.Base;
import java.sql.Connection;
public interface Repository<DTOType extends Base> {
Connection getConnection();
void add(DTOType dto);
void update(DTOType dto);
void addOrUpdate(DTOType dto);
void delete(DTOType dto);
DTOType findById(int id);
voi... | true |
e1d91a0493d9342df5ad820087b9fbffabc8e740 | Java | Shumakriss/cli-api | /src/main/java/org/shumakriss/api/Handler.java | UTF-8 | 1,397 | 2.46875 | 2 | [] | no_license | package org.shumakriss.api;
import com.amazonaws.services.lambda.runtime.Context;
import com.amazonaws.services.lambda.runtime.LambdaLogger;
import com.amazonaws.services.lambda.runtime.RequestHandler;
import com.amazonaws.services.lambda.runtime.events.APIGatewayProxyRequestEvent;
import com.google.gson.Gson;
import ... | true |
1d7196f5fc28fef3c4959d7a5f352bae0ef8fa91 | Java | Killian-Townsend/Custom-FTC-Driver-Station-2021 | /app/src/main/java/org/java_websocket/exceptions/IncompleteHandshakeException.java | UTF-8 | 671 | 1.960938 | 2 | [] | no_license | package org.java_websocket.exceptions;
public class IncompleteHandshakeException extends RuntimeException {
private static final long serialVersionUID = 7906596804233893092L;
private final int preferredSize = 0;
public IncompleteHandshakeException() {}
public IncompleteHandshakeException(int paramInt)... | true |
3dce81cf215df64fd89fc967af521a292fa3d50d | Java | oliverwehrens/pivio-ganges | /src/main/java/io/pivio/ganges/maven/response/Doc.java | UTF-8 | 2,854 | 1.8125 | 2 | [
"Apache-2.0"
] | permissive |
package io.pivio.ganges.maven.response;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import com.fasterxml.jackson.annotation.JsonAnyGetter;
import com.fasterxml.jackson.annotation.JsonAnySetter;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.faster... | true |
4a4e43b916e99cdce1e6df3238c1a95ed28b8c11 | Java | Sabri-sf/Garden | /JAVA代码/Student.java | GB18030 | 1,380 | 2.984375 | 3 | [] | no_license | package massage;
public class Student {
private String name; //
private String no; //ѧ
private String sex; //Ա
private String major; //רҵ
private int cla; //༶
private Score score; //ɼ
public Student(String name, String no, String sex, String major, int cla, Score score) {
supe... | true |
a9bc0d4e0f37805396c7a4a5a8a92149275498f3 | Java | DevSnobo/SWE | /src/application/example/ExController.java | UTF-8 | 1,080 | 2.953125 | 3 | [] | no_license | package application.example;
import application.logic.port.Observer;
import application.statemachine.port.State;
public class ExController implements Observer {
private ExView myView;
private ExModel myModel;
ExController(ExView view, ExModel model) {
this.myView = view;
this.myModel = m... | true |
a36429a8f7c737517292a6b42c8cc4e4bd7da2eb | Java | uday246/Nov18 | /src/Prmr/EmpHours.java | UTF-8 | 999 | 3.359375 | 3 | [] | no_license | package Prmr;
import java.util.Random;
public class EmpHours {
public static void main(String[] args) {
int grades[][] = new int[4][4];
Random r = new Random();
for (int i = 0; i < 4; i++) {
for (int j = 0; j < 4; j++)
grades[i][j] = r.nextInt(101);
}
for (int i = 0; i < 4; i++) {
fo... | true |
54d8d0cd676bbf1ffc52aea841324bc4e4700423 | Java | l89669/Residence | /com/bekvon/bukkit/residence/economy/IConomy5Adapter.java | UTF-8 | 1,977 | 2.40625 | 2 | [] | no_license | /*
* Decompiled with CFR 0_119.
*
* Could not load the following classes:
* com.iConomy.iConomy
* com.iConomy.system.Account
* com.iConomy.system.Holdings
*/
package com.bekvon.bukkit.residence.economy;
import com.bekvon.bukkit.residence.economy.EconomyInterface;
import com.iConomy.iConomy;
import com.iCono... | true |
cd82407b574f22a8d6d08c21d8d12c1272de6716 | Java | nshiva000/LaExcellence_android | /app/src/main/java/com/gmail/hyd/laexcellence/Pages/TestPreviewActivity.java | UTF-8 | 11,072 | 1.617188 | 2 | [] | no_license | package com.gmail.hyd.laexcellence.Pages;
import android.app.ProgressDialog;
import android.graphics.Color;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.support.v7.widget.CardView;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.Recycl... | true |
cd90e374579e25d4eb26258cd4a9888801153897 | Java | shuixi2013/AmapCode | /app/src/main/java/com/uc/webview/export/internal/setup/ct.java | UTF-8 | 612 | 1.71875 | 2 | [] | no_license | package com.uc.webview.export.internal.setup;
import android.webkit.ValueCallback;
import com.uc.webview.export.utility.download.UpdateTask;
/* compiled from: ProGuard */
final class ct implements ValueCallback<UpdateTask> {
final ValueCallback a = ((ValueCallback) this.b.invokeO(10007, "downloadFileDelete"));
... | true |
34a3e4a96efd3cdc9e7c0a7d7375c2f441e854b3 | Java | Elkoumy/scotty-window-processor | /slicing/src/test/java/de/tub/dima/scotty/slicing/aggregationstore/test/windowTest/SlidingWindowOperatorTest.java | UTF-8 | 9,278 | 2.671875 | 3 | [
"Apache-2.0"
] | permissive | package de.tub.dima.scotty.slicing.aggregationstore.test.windowTest;
import de.tub.dima.scotty.core.*;
import de.tub.dima.scotty.core.windowFunction.*;
import de.tub.dima.scotty.core.windowType.*;
import de.tub.dima.scotty.slicing.*;
import de.tub.dima.scotty.state.memory.*;
import de.tub.dima.scotty.core.*;
import or... | true |
63834e5b82bf5f42a6a92d3a4feb35ca0494dc9a | Java | liyuan932/myapp | /myapp-web/src/main/java/com/mycompany/myapp/utils/HttpUtil.java | UTF-8 | 9,004 | 2.453125 | 2 | [] | no_license | package com.mycompany.myapp.utils;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.apache.http.HttpEntity;
import org.apache.http.NameValuePair;
import org.apache.http.client.config.RequestConfig;
import org.apache.http.client.entity.UrlEncodedFormEntity;
import org.apac... | true |
5e814ac88779182c33484af81fb5df58f5f078f1 | Java | hzfff/hezhao_vivo_musicplayer | /app/src/main/java/com/example/musicplayer_hezhao/tool/NeteaseCloudMusicApiTool.java | UTF-8 | 17,839 | 2.046875 | 2 | [] | no_license | package com.example.musicplayer_hezhao.tool;
import android.util.Log;
import com.example.musicplayer_hezhao.model.Data;
import com.example.musicplayer_hezhao.model.HotMusic;
import com.example.musicplayer_hezhao.model.Info;
import com.example.musicplayer_hezhao.model.MusicInfo;
import com.example.musicplayer_hezhao.m... | true |
ba453ebb23541af899a0126f7a2f8c5f9cc0f3d1 | Java | orochigalois/ROBOCUP_SSL_EDU_PLATFORM | /Sumatra/modules/moduli-wp-kalman/src/main/java/edu/tigers/sumatra/wp/kalman/TrackingManager.java | UTF-8 | 4,765 | 2.234375 | 2 | [] | no_license | /*
* *********************************************************
* Copyright (c) 2017 智动天地(北京)科技有限公司
* All rights reserved.
* Project: 标准平台决策开发系统
* Authors:
* 智动天地(北京)科技有限公司
* *********************************************************
*/
package edu.tigers.sumatra.wp.kalman;
import java.util.Iterator;
import java.util.M... | true |
3581fee9a1b571393eea07819261da045e8324c1 | Java | DaFun/FB-Search-Android-App | /app/src/main/java/com/example/ban/fb_search/PageFragment.java | UTF-8 | 7,782 | 2.015625 | 2 | [] | no_license | package com.example.ban.fb_search;
import android.content.Context;
import android.content.SharedPreferences;
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.Button;
import android.widget... | true |
2c2023e2ef8a130eba10d996f54286caa35db069 | Java | SinWorld/xzdz-erp | /xzdz-erp/src/main/java/com/edge/applicationCenter/materielIdProcess/listener/flowListener/th/TH_xsfk.java | UTF-8 | 404 | 1.648438 | 2 | [
"Apache-2.0"
] | permissive | package com.edge.applicationCenter.materielIdProcess.listener.flowListener.th;
import org.activiti.engine.delegate.DelegateExecution;
import org.activiti.engine.delegate.ExecutionListener;
public class TH_xsfk implements ExecutionListener {
public void notify(DelegateExecution execution) throws Exception {
... | true |
5000e94ba9389aaa2955b942f231971cae7f84a2 | Java | imuralice/PubgTournament | /app/src/main/java/com/skteam/thesquad/account/AccountActivity.java | UTF-8 | 2,489 | 1.851563 | 2 | [] | no_license | package com.skteam.thesquad.account;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.LinearLayout;
import com.skteam.thesquad.R;
import com.skteam.thesquad.common.Common;
import ... | true |
20ae3553fed3aaa2f596b3cdcad99fdc8a56f7ec | Java | todd-fritz/secure-data-service | /tools/data-tools/src/org/slc/sli/test/generators/TeacherSectionAssociationGenerator.java | UTF-8 | 4,367 | 1.859375 | 2 | [
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0"
] | permissive | /*
* Copyright 2012-2013 inBloom, Inc. and its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appli... | true |
36d8c62f2b2b6a1019178ba1b1a90b6e93bb9a5f | Java | mapv287/unab-test-demo | /src/main/java/com/example/demo/interfazservicios/IEquiposServicio.java | UTF-8 | 180 | 1.882813 | 2 | [] | no_license | package com.example.demo.interfazservicios;
import java.util.List;
import com.example.demo.modelo.Equipos;
public interface IEquiposServicio {
public List<Equipos> listar();
}
| true |
e6e55990b43c38b26ab98e2278d2dd6ba319aaf5 | Java | arturop/TIJ4 | /ChessApp/test/chess/AllTests.java | UTF-8 | 553 | 1.765625 | 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 chess;
import pieces.PawnTest;
import junit.framework.TestSuite;
/**
*
* @author arturo.pina
*/
public class AllTests ext... | true |
6a1be10e3a7c3d7e4b0479cee872ce8fb6a3db5e | Java | hyperledger/besu | /ethereum/api/src/main/java/org/hyperledger/besu/ethereum/api/jsonrpc/internal/results/SyncingResult.java | UTF-8 | 2,820 | 1.976563 | 2 | [
"Apache-2.0",
"LicenseRef-scancode-free-unknown"
] | permissive | /*
* Copyright ConsenSys AG.
*
* 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 writing... | true |
4879c81b29122ac93aaf83d2c39855a4c4c81c79 | Java | dengboyu/future | /by-future-service-biz/src/main/java/by/future/servicebiz/monitor/impl/SqlMonitorImpl.java | UTF-8 | 2,731 | 2.3125 | 2 | [] | no_license | package by.future.servicebiz.monitor.impl;
import by.future.common.utils.ReflectUtils;
import by.future.servicebiz.monitor.ISqlMonitor;
import by.future.servicebiz.monitor.entity.MarketingMonitorEntity;
import org.apache.commons.lang3.StringUtils;
import org.springframework.stereotype.Service;
import java.util.Array... | true |
fe8e80c573aed71966aaf47009f85161a9aa7b9a | Java | Dashism/proxibanquev2 | /src/main/java/fr/formation/proxi/persistance/ClientDao.java | UTF-8 | 328 | 1.835938 | 2 | [
"MIT"
] | permissive | package fr.formation.proxi.persistance;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import fr.formation.proxi.metier.entity.Client;
@Repository
public interface ClientDao extends JpaRepository<Client, Integer> {
Client findByCard_Number(String num... | true |
25dd6511114d35af7f9b2e13489f7f8d8698581d | Java | budash/banner | /app/src/main/java/budash/dp/ua/banner/BannerPreferences.java | UTF-8 | 2,086 | 2.46875 | 2 | [] | no_license | package budash.dp.ua.banner;
import android.content.Context;
import android.content.SharedPreferences;
import android.content.SharedPreferences.Editor;
import android.os.Build;
import android.preference.PreferenceManager;
import java.util.Collection;
import java.util.Collections;
import java.util.HashSet;
import java... | true |
820e6ac6b1807b5e22a751dc69ee999aaec84f1e | Java | P79N6A/icse_20_user_study | /methods/Method_18370.java | UTF-8 | 111 | 2.203125 | 2 | [] | no_license | private static int computeRectArea(Rect rect){
return rect.isEmpty() ? 0 : (rect.width() * rect.height());
}
| true |
502a423f508da5e2799ddcd6d51ba918b3d20be6 | Java | hzhuazhi/cakeDeploy | /src/com/xn/manager/controller/BankTypeController.java | UTF-8 | 8,253 | 2.0625 | 2 | [] | no_license | package com.xn.manager.controller;
import com.xn.common.constant.ManagerConstant;
import com.xn.common.controller.BaseController;
import com.xn.common.util.HtmlUtil;
import com.xn.manager.model.BankTypeModel;
import com.xn.manager.model.MobileCardModel;
import com.xn.manager.service.BankTypeService;
import com.xn.syst... | true |
2e40f6766590ff5e3c56fa1118fb343e72a46762 | Java | brennolvs/aula6prog1 | /Aula06/src/modelo/Cliente.java | ISO-8859-1 | 1,536 | 3.375 | 3 | [] | no_license | package modelo;
public class Cliente {
private String nome;
private int cpf;
private int cod;
private String telefone;
public Cliente() {
}
/** COnstrutor completo
*
* @param nome
* @param cpf cpf do cliente
* @param cod codigo para identeificar o cliente
* @param telefone telefon... | true |
72cfc147670ee82269d3a9b2d6f2fae630b49712 | Java | songmeng112/SpringCloudStudy | /my-datasource/src/main/java/my/datasource/po/DeviceInfoPO.java | UTF-8 | 6,349 | 2.234375 | 2 | [] | no_license | package my.datasource.po;
import javax.persistence.Column;
import javax.persistence.Table;
import java.util.Date;
/**
* <desc>
* 设备信息实体类。
* </desc>
* @createDate 2018/4/4
* @author zhangs
*/
@Table(name = "device_info")
public class DeviceInfoPO {
/**
* 设备唯一码
*/
@Column(name = "device_id... | true |
adc422f3e7f241b756b38c1bde3e4ce281b842c0 | Java | toread/code-genter | /src/main/java/com/toread/code/generate/JPASimpleGenerator.java | UTF-8 | 7,566 | 1.976563 | 2 | [] | no_license | /**
*@Project: HJK
*@Author: lizhibing
*@Date: 2015-05-21
*@Copyright: 2000-2015 CMCC . All rights reserved.
*/
package com.toread.code.generate;
import com.toread.code.analyze.EntityAnalyze;
import com.toread.code.config.GeneratorControl;
import com.toread.code.config.IOConfig;
import com.toread.code.context.Con... | true |
10b9cffa71e1738753e26c32c2e38099a938b934 | Java | yale-zhang/javalearning | /java-base/src/main/java/Object/Option.java | UTF-8 | 541 | 2.9375 | 3 | [] | no_license | package Object;
import java.util.Objects;
public class Option {
public String Object(String pram){
return Objects.requireNonNull(pram);
}
public static void main(String[] args){
try {
String pram =null;
Objects.requireNonNull(pram,"pram不能为null");
if (pra... | true |
e10afc06ecb22270a2b6fd120802468cac24a3b9 | Java | vss-2/traceroute | /Debito.java | UTF-8 | 507 | 2.515625 | 3 | [] | no_license | import java.io.DataInputStream;
import java.io.IOException;
import java.net.BindException;
import java.net.ServerSocket;
import java.net.Socket;
import java.util.Timer;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.net.InetAddress;
public class Debito extends Thread {
private Con... | true |
7220f287bc8dce527d00d11e812cc4117cabdf1f | Java | sunit2/java2ndset | /javaday2/src/numericalcasting.java | UTF-8 | 480 | 3.046875 | 3 | [] | no_license |
public class numericalcasting {
public static void main(String[] args) {
int intvalue;
float floatvalue= 123.45f;
double doublevalue= 1234567.56;
long longvalue=12345;
byte bytevalue;
System.out.println(Byte.MAX_VALUE);
intvalue = (int)longvalue;
System.out.println(intvalue);
floatv... | true |
cf6f26c9ac8551315275ace90cb8d7e312152b3f | Java | paruthidotexe/LD34_Paruthidotexe | /core/src/com/znop/twobuttongrowing/GameMgr.java | UTF-8 | 2,235 | 2.640625 | 3 | [] | no_license | package com.znop.twobuttongrowing;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.files.FileHandle;
import com.badlogic.gdx.graphics.Pixmap;
import com.badlogic.gdx.graphics.PixmapIO;
import com.badlogic.gdx.utils.ScreenUtils;
import java.nio.ByteBuffer;
/**
* Created by user on 12-12-2015.
*/
public class G... | true |
38d7eb97a22304ae7656541dd30bd5caf03a065f | Java | wyz1535/shangcheng | /SC/src/main/java/cn/wupeng/sc/utils/Utils.java | UTF-8 | 1,113 | 2.1875 | 2 | [] | no_license | package cn.wupeng.sc.utils;
import android.content.Context;
import android.os.Handler;
import android.os.Looper;
import android.widget.Toast;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
/**
* Created by admin on 2016/7/5.
*/
public class Utils {
public static final Stri... | true |
934f891f839a077224cd844ff1ca20f8e1e46499 | Java | rsocket/rsocket-java | /rsocket-examples/src/test/java/io/rsocket/resume/ResumeIntegrationTest.java | UTF-8 | 8,230 | 1.710938 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2015-2020 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 |
dafcefc25556cdce257f8e793f97469ea98485d3 | Java | jsoliman/spam | /com/drin/java/metrics/Threshold.java | UTF-8 | 294 | 2.578125 | 3 | [] | no_license | package com.drin.java.metrics;
public final class Threshold {
private final double mAlpha, mBeta;
public Threshold(double alpha, double beta) {
mAlpha = alpha;
mBeta = beta;
}
public double getAlpha() { return mAlpha; }
public double getBeta() { return mBeta; }
}
| true |
058205c8f0bb964b7d093f8c8afd5f188b0f605a | Java | xiang12835/JavaLearning | /JavaBase/UtilityClass/11. Java 中的 File 类/code/src/com/geekbang/learnfile/CreateDirAndFileAppMain.java | UTF-8 | 4,441 | 3.546875 | 4 | [
"MIT"
] | permissive | package com.geekbang.learnfile;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Scanner;
import java.util.stream.Collectors;
public class CreateDirAndFileAppMain {
// TODO 不同操作系统的同学可以更改这个值,比如mac或者linux可以写为~代表home目录
... | true |
3dfc9cb9f76d379e89e74adfe624817e7ac802da | Java | Supernova183/house-backapi | /src/main/java/com/team/house/housebackapi/service/UserService.java | UTF-8 | 262 | 1.890625 | 2 | [] | no_license | package com.team.house.housebackapi.service;
import com.team.house.housebackapi.entity.Users;
public interface UserService {
//注册业务
public int regUser(Users users);
//登录业务
public Users Login(String username,String password);
}
| true |
9ee9b5c2afca28eef9fe385026893c0579f48d55 | Java | bkiyota/AllergyEczemaDatabaseProject | /AllergyEczemaDatabase/src/test/persistence/WriterTest.java | UTF-8 | 5,096 | 2.78125 | 3 | [] | no_license | package persistence;
/**
* This class is responsible for testing the methods of the Reader class.
* */
import model.Patient;
import model.Database;
import model.exception.ExistingPatientException;
import model.exception.UndefinedNumberException;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.... | true |
d111b17f8e8b9d17b06382420f613bb9c92884ac | Java | assemany/SafeIncIntThread | /src/utils/MyThread.java | UTF-8 | 623 | 3.15625 | 3 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package utils;
import java.util.concurrent.atomic.AtomicInteger;
/**
*
* @author Assemany
*/
public class MyThread extends Thread {
//An AtomicInteger is used in applications such as atomically incremented ... | true |
f0368096fa34b1d7bfca281eff641e86796b543b | Java | emilyduansit/Java | /String/StringExample.java | UTF-8 | 530 | 3.359375 | 3 | [] | no_license | import java.util.Arrays;
public class StringExample
{
public static void main(String[] args)
{
String s1 = null;
String s2 = null;
// System.out.println(s1+s2); //Output : nullnull
// System.out.println("null"+"null"); //Output : nullnull
// System.out.p... | true |
2f71fe798213e1ab9ff0d6a4efcec77dcc57a91f | Java | SE2017B/Iteration4 | /src/ui/MapEditorMemento.java | UTF-8 | 470 | 2.28125 | 2 | [] | no_license | package ui;
import map.Edge;
import map.Node;
import java.util.ArrayList;
public class MapEditorMemento {
private ArrayList<Node> nodes;
public ArrayList<Edge> edges;
public MapEditorMemento(ArrayList<Node> nodes, ArrayList<Edge> edges) {
this.nodes = nodes;
this.edges = edges;
}
... | true |
a7cfbe811609fad88569dd6f62442f02df981d79 | Java | usmansaleem/signers | /signing/secp256k1/impl/src/main/java/tech/pegasys/signers/secp256k1/multikey/SigningMetadataTomlConfigLoader.java | UTF-8 | 8,318 | 1.664063 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2019 ConsenSys AG.
*
* 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 wr... | true |
d5cdd88eeb6df983344f3bc92387dfd336a89e41 | Java | tanman32/UltimateChess | /ultimateChess/src/byui/cit260/ultimateChess/view/SaveView.java | UTF-8 | 2,080 | 2.953125 | 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 byui.cit260.ultimateChess.view;
import byui.cit260.ultimateChess.control.GameControl;
import ultimatechess.UltimateChess;
/**... | true |
aeaf1ff7a7f034fab5fc5f2b3c278015aecbb176 | Java | jEdwinCo/tdd_coursera | /week1/images/11r.java | UTF-8 | 2,100 | 3.3125 | 3 | [
"CC0-1.0"
] | permissive | import java.util.ArrayList;
import java.util.List;
public class CamelCaseSplit {
private List<String> lista_palabras;
public CamelCaseSplit() {
lista_palabras = new ArrayList<String>();
}
public List<String> converterCamelCase(String string) {
int last_position = string.length();
... | true |
c7ce003d81c5ea1c869e8de83b6b3e061c056241 | Java | Nerijus-Java/project-api | /src/main/java/lt/codeacademy/project/api/dto/PostDto.java | UTF-8 | 880 | 2.5 | 2 | [] | no_license | package lt.codeacademy.project.api.dto;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lt.codeacademy.project.api.entity.Post;
import java.util.List;
import java.util.stream.Collectors;
@Data
@AllArgsConstructor
@NoArgsConstructor
public class PostDto {
private Str... | true |
95f012c8688848518d64c5d584d177df4ee231bc | Java | brn/closure-compiler | /src/com/google/javascript/jscomp/CampUtil.java | UTF-8 | 1,712 | 2.609375 | 3 | [] | no_license | package com.google.javascript.jscomp;
import com.google.javascript.rhino.Node;
import com.google.javascript.rhino.Token;
/**
* The utility class for the compiler and the node.
*
* @author aono_taketoshi
*
*/
public class CampUtil {
private static AbstractCompiler compiler;
/**
* Return the statement ... | true |
79b85d2e1b471b6c9c7bf7b5ee173a082f0bed15 | Java | QuakeSim/sf_repository | /ExecutionServices/GridInfoService/src/main/java/cgl/webservices/gridinfo/Host.java | UTF-8 | 219 | 2.140625 | 2 | [] | no_license | package cgl.webservices.gridinfo;
public class Host {
String hostName;
public String getHostName(){
return this.hostName;
}
public void setHostName(String hostName) {
this.hostName=hostName;
}
}
| true |
7e547dcc3fea4713952c0c941327a544fcdfa20a | Java | googleapis/google-api-java-client-services | /clients/google-api-services-checks/v1alpha/2.0.0/com/google/api/services/checks/v1alpha/model/GoogleChecksReportV1alphaCheck.java | UTF-8 | 6,575 | 1.875 | 2 | [
"Apache-2.0"
] | permissive | /*
* 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 writing, software distributed under t... | true |
be8ea36d08e6e4839b946f999009dd97c114393a | Java | flywind2/joeis | /src/irvine/oeis/a069/A069074.java | UTF-8 | 344 | 2.625 | 3 | [] | no_license | package irvine.oeis.a069;
import irvine.oeis.LinearRecurrence;
/**
* A069074 <code>a(n) = (2*n+2)*(2*n+3)*(2*n+4) = 24*A000330(n+1)</code>.
* @author Sean A. Irvine
*/
public class A069074 extends LinearRecurrence {
/** Construct the sequence. */
public A069074() {
super(new long[] {-1, 4, -6, 4}, new lon... | true |
9d1d4e62ead4d64482c5e1971b09d0a8800f711f | Java | univapay/univapay-java-sdk | /src/test/java/com/univapay/sdk/merchant/UpdateMerchantVerificationTest.java | UTF-8 | 6,278 | 1.9375 | 2 | [] | no_license | package com.univapay.sdk.merchant;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.*;
import static org.junit.Assert.*;
import com.univapay.sdk.UnivapaySDK;
import com.univapay.sdk.models.common.VerificationPhoneNumber;
import com.univapay.sdk.models.response.merchant.Merchant... | true |
3725b95ca0cdae5f33e7962d08b39ea3f0429f7f | Java | DurgaManickam/zzautomation | /src/main/java/backgroundutils/PropertiesFileReader.java | UTF-8 | 2,329 | 2.453125 | 2 | [] | no_license | package backgroundutils;
import java.io.File;
import org.apache.commons.configuration.ConfigurationException;
import org.apache.commons.configuration.PropertiesConfiguration;
public class PropertiesFileReader {
static String driverMobile, driverPasscode;
static String emailId, emailPass,hulkUrl;
static String cu... | true |
b26b9fb34e08dcaacf58042c8e4aad400a918ce9 | Java | Saichaitanya-K/Lab-Assignment | /Assignment/Squares/src/Squares.java | UTF-8 | 464 | 3.75 | 4 | [] | no_license | import java.util.*;
public class Squares {
public static void main(String[] args) {
Scanner sc=new Scanner(System.in);
int n,sum;
System.out.println("Enter a number:");
n=sc.nextInt();
sum=calculateDifference(n);
System.out.println("The difference is :"+sum);
}
private static int calculateDifference(i... | true |
34223c2cd534eabb722d8af3a7ad4bf233b10300 | Java | java-sec/iast-vms-code-reading | /backend/vms-domain/src/main/java/de/vms/policy/model/dto/Configuration.java | UTF-8 | 949 | 1.929688 | 2 | [
"MIT"
] | permissive | package de.vms.policy.model.dto;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import de.vms.policy.model.CsrfCheckerConfig;
import de.vms.policy.model.TaintTrackerConfig;
@JsonInclude(JsonInclude.Include.NON_NULL)
public class Configuration {
private... | true |
0762dae3ecbe92fffb809246e6c7266c8c315594 | Java | mulesoft-labs/shacl | /src/main/java/org/topbraid/spin/arq/SPINARQPFunction.java | UTF-8 | 9,590 | 1.625 | 2 | [
"Apache-2.0"
] | permissive | /*******************************************************************************
* Copyright (c) 2009 TopQuadrant, Inc.
* All rights reserved.
*******************************************************************************/
package org.topbraid.spin.arq;
import java.util.ArrayList;
import java.util.HashMap;
import... | true |
f71be302f00808f6c31987dab5a34d528bfd13b9 | Java | szbalx/rsocket-broker-gateway-mqtt | /src/main/java/com/alibaba/rsocket/mqtt/gateway/RSocketBrokerGatewayMqttServer.java | UTF-8 | 432 | 1.632813 | 2 | [] | no_license | package com.alibaba.rsocket.mqtt.gateway;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
/**
* RSocket broker gateway MQTT Server
*
* @author leijuan
*/
@SpringBootApplication
public class RSocketBrokerGatewayMqttServer {
public static ... | true |
c2299537ea9c8e38dc132556d6fec16cd690d633 | Java | Tuan1997/genetic-algorithm | /ga_tsp/GA.java | UTF-8 | 4,413 | 2.984375 | 3 | [] | no_license | package ga_tsp;
public class GA {
private static final double mutationRate = 0.015;
private static final int matingPoolSize = 50;
private static final boolean elitism = true;
// qua trinh tien hoa
public static Population evolvePopulation(Population pop) {
Population newPopulation = new ... | true |
4d707ae4ee46c3bbe266f45f7c4d7e601ce52168 | Java | yashwanth15/uber | /app/src/main/java/com/example/yashw/uber/historyRecyclerView/HistoryObject.java | UTF-8 | 295 | 2.125 | 2 | [] | no_license | package com.example.yashw.uber.historyRecyclerView;
/**
* Created by yashw on 06-12-2017.
*/
public class HistoryObject {
public String rideId;
public HistoryObject(String rideId) {
this.rideId = rideId;
}
public String getRideId() {
return rideId;
}
}
| true |
b78299701b18faaa009c275b0e0f28698d38a338 | Java | kamyll2/Cymbergaj | /app/src/main/java/com/wygralak/cymbergaj/Engine/CymbergajSurfaceView2.java | UTF-8 | 20,433 | 2.34375 | 2 | [] | no_license | package com.wygralak.cymbergaj.Engine;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Color;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.util.AttributeSet;
import android.view.MotionEvent;
import android.view.SurfaceHolder;
imp... | true |
b3337eb33cbdef853e4250ec3cb8e9762767df00 | Java | wzh404/newq | /core/src/main/java/com/xeehoo/rpc/core/netty/client/NettyChannelInHandler.java | UTF-8 | 1,595 | 2.1875 | 2 | [] | no_license | package com.xeehoo.rpc.core.netty.client;
import akka.actor.ActorRef;
import akka.actor.ActorSystem;
import com.xeehoo.rpc.core.hessian.HessianCoder;
import com.xeehoo.rpc.core.rpc.ApiReply;
import com.xeehoo.rpc.model.User;
import io.netty.buffer.ByteBuf;
import io.netty.channel.ChannelHandlerContext;
import io.netty... | true |
fea275fdd0d3e9ee1d1b4fd80e4c32889255d272 | Java | st1hy/Red-Calorie | /app/src/main/java/com/github/st1hy/countthemcalories/activities/overview/graph/inject/column/GraphColumnComponent.java | UTF-8 | 342 | 1.703125 | 2 | [
"MIT"
] | permissive | package com.github.st1hy.countthemcalories.activities.overview.graph.inject.column;
import com.github.st1hy.countthemcalories.activities.overview.graph.view.GraphColumnViewHolder;
import dagger.Subcomponent;
@Subcomponent(modules = GraphColumnModule.class)
public interface GraphColumnComponent {
GraphColumnView... | true |
6fb89323c967f07c8bebf2cd1ece3a39759ed813 | Java | Yellopayne/KolkoKrzyzyk2 | /app/src/main/java/yello/kolkokrzyzyk2/Rozgrywka.java | UTF-8 | 4,802 | 2.421875 | 2 | [] | no_license | package yello.kolkokrzyzyk2;
import android.content.pm.ActivityInfo;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
import android.widget.Toast;
public class ... | true |
677a772e48cd050d7abdf06367350b869af41c75 | Java | June8Yildirim/Github | /src/ch05/main.java | UTF-8 | 1,001 | 3.40625 | 3 | [] | no_license | package ch05;
import java.util.Scanner;
public class main {
public static void main(String[]args){
// Apple a1 = new Apple();
// Apple a2 = new Apple();
// a1.x=2;
// a1.y=4;
// a1.diameter=2.0f;
// a1.mass=4.9f;
// a2.x=4;
// a2.y=6;
// a1.printDet... | true |
b8ea826597e98c8e89d60718f4ab8a344aaa8c55 | Java | raffenkaf/JavaAndSamson | /src/main/java/com/samson/service/MailService.java | UTF-8 | 1,365 | 2.421875 | 2 | [] | no_license | package com.samson.service;
import java.io.File;
import javax.mail.MessagingException;
import javax.mail.internet.MimeMessage;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.mail.MailSender;
import org.springframework.mail.SimpleMailMessage;
import org.springframework.mail.... | true |
22c98d49bb4df21d47a82e738cd75f0e9f1bcf06 | Java | cybersource-tpi/cybersource-plugins-saphybris | /hybris/bin/isvpayment/src/isv/sap/payment/hystrix/AbstractTenantAwareHystrixCommand.java | UTF-8 | 1,155 | 2.453125 | 2 | [] | no_license | package isv.sap.payment.hystrix;
import com.netflix.hystrix.HystrixCommand;
import de.hybris.platform.core.Registry;
import de.hybris.platform.core.Tenant;
/**
* Abstract Hystrix command to activate the tenant in the current thread before execution.
*/
public abstract class AbstractTenantAwareHystrixCommand<R> exte... | true |
24946592c06cf2d809eb8baac3531129333b0cc1 | Java | Avin14/Sweet-home | /payment_service/src/main/java/com/upgrad/payment_service/dao/TransactionDao.java | UTF-8 | 337 | 1.625 | 2 | [] | no_license | package com.upgrad.payment_service.dao;
import com.upgrad.payment_service.entity.TransactionDetailsEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
@Repository
public interface TransactionDao extends JpaRepository<TransactionDetailsEntity... | true |
f97985b022619574474f61d02e08e7b0519090f1 | Java | javiercarpio57/ProyectoProgra | /src/AlumnoMaestro/Asistencia.java | UTF-8 | 2,691 | 3 | 3 | [] | no_license |
package AlumnoMaestro;
import java.io.Serializable;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
/**
*
* @author javie
*/
@Entity
public class Asistencia implements Serializable {
private static final long seri... | true |
5db283e46223d88ad9cfb393b4567bf1f8848bb8 | Java | tuziilm/online | /src/com/wxad/online/mvc/UpdateInfoController.java | UTF-8 | 3,766 | 2.21875 | 2 | [] | no_license | package com.wxad.online.mvc;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.hibernate.validator.constraints.NotBlank;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframe... | true |
a47cbf4492e52b9a9c8ec9e8f74007055ee6f006 | Java | openstreetmap/osmosis | /osmosis-apidb/src/main/java/org/openstreetmap/osmosis/apidb/v0_6/impl/Replicator.java | UTF-8 | 13,365 | 2.046875 | 2 | [] | no_license | // This software is released into the Public Domain. See copying.txt for details.
package org.openstreetmap.osmosis.apidb.v0_6.impl;
import java.util.Date;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
import java.util.logging.Level;
import java.util.logging.Logger;
import org.openstreet... | true |
55cfadd6dfecbf8276e160f2574926c2c17b9e63 | Java | WereWolfx01/Object-Oriented-JAVA-DungeonAndDragonsApp | /src/gui/Controller.java | UTF-8 | 4,100 | 2.796875 | 3 | [] | no_license | package gui;
import dnd.models.Monster;
import dnd.models.Treasure;
import generator.Chamber;
import java.io.*;
import java.util.ArrayList;
import generator.*;
public class Controller {
private GuiDemo myGui;
private LevelGenerator level;
public Controller(GuiDemo theGui) {
myGui = theGui;
... | true |
6d73e30d453126969c390e6dbcc6f1c2ab6816b2 | Java | ggslove/Tws | /tws-data/src/main/java/com/tws/data/ClientFactory.java | UTF-8 | 1,167 | 2.46875 | 2 | [] | no_license | package com.tws.data;
import com.ib.client.EClientSocket;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.FactoryBean;
import org.springframework.beans.factory.annotation.Required;
/**
* Created by chris on 1/18/16.
*/
public class ClientFactory implements FactoryBe... | true |
d7d1c451584c893f4f52374cc696effbbb16f44c | Java | MaricelB/Clase4 | /src/test/java/Clase1/Lab1.java | UTF-8 | 1,355 | 2.40625 | 2 | [] | no_license | package Clase1;
import org.junit.*;
import org.openqa.selenium.By;
import org.openqa.selenium.*;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
public class Lab1
{
@Ignore
public void lab1_E1 ()
{
//recibe dos parametro, el primero el chrome drivers y
//luego... | true |
c86fda00627dcffff0b28e2e0f89ad5953cb0708 | Java | wanyanzy/CoalAndElectron | /src/main/java/com/example/project3/service/impl/BidServiceImpl.java | UTF-8 | 1,270 | 2.140625 | 2 | [] | no_license | package com.example.project3.service.impl;
import com.example.project3.manager.BidManager;
import com.example.project3.pojo.Bid;
import com.example.project3.service.BidService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
@Servic... | true |
88dd372e10267fb2aa56c523cf8986d0eab15c2b | Java | linxsus/P4gradle | /puissance4V2/src/main/java/org/P4Metier/ordi/OrdinateurAlphaBeta.java | UTF-8 | 2,706 | 2.953125 | 3 | [] | no_license | package org.P4Metier.ordi;
import org.P4Metier.Gagnee;
import org.P4Metier.GestIdDonnee;
import org.P4Metier.Factory.Factory;
/**
* @author Xavier Gouraud
*
* classe pour calculer le pion a jouer pour gagner
*
*/
public class OrdinateurAlphaBeta {
private GestIdDonnee<Long> donnee;
pr... | true |
c3e8703310695b2b84e3bc569ecb35566f4e0a4c | Java | ShakeCode/java.base.learn | /src/com/java/learn/abstractT/A.java | UTF-8 | 587 | 3.234375 | 3 | [] | no_license | package com.java.learn.abstractT;
/**
* 接口
* 1.在接口中只有方法的声明,没有方法体。
* 2.在接口中只有常量,因为定义的变量,在编译的时候都会默认加上
* public static final
* 3.在接口中的方法,永远都被public来修饰。
* 4.接口中没有构造方法,也不能实例化接口的对象。
* 5.接口可以实现多继承
* 6.接口中定义的方法都需要有实现类来实现,如果实现类不能实现接口中的所有方法,则实现类定义为抽象类。
*/
public interface A {
void name();
}
| true |
9a5a48ad7fc16f05a4cf955900330101d09762fa | Java | armandorvila/open-publisher | /business-publisher/test/test/com/armandorv/publisher/business/articles/ArticlesProviderTest.java | UTF-8 | 910 | 2.09375 | 2 | [] | no_license | package test.com.armandorv.publisher.business.articles;
import org.apache.log4j.Logger;
import org.junit.BeforeClass;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import com.armandorv.publisher.business.article... | true |
7be36429283c8a5cec4b07cd15d029782e703f79 | Java | Bo-Wan/breezecom-tally | /src/test/java/com/breezecom/tally/UserRepositoryTest.java | UTF-8 | 1,802 | 2.6875 | 3 | [] | no_license | package com.breezecom.tally;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
//import static org.junit.Assert.assertNull;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import or... | true |
7e5bed12f47b1a87d6669fcf345a2b64e7fbc70d | Java | SuperMarcomen/HangmanBot | /src/main/java/it/marcodemartino/hangmanbot/languages/Localization.java | UTF-8 | 2,179 | 2.421875 | 2 | [
"Apache-2.0"
] | permissive | package it.marcodemartino.hangmanbot.languages;
import io.github.ageofwar.telejam.text.Text;
import io.github.ageofwar.telejam.users.User;
import it.marcodemartino.hangmanbot.HangmanBot;
import it.marcodemartino.hangmanbot.logic.Hangman;
import it.marcodemartino.hangmanbot.stats.DatabaseManager;
import it.marcodemarti... | true |
6ee9111f734eca3f002c76b8d158cc6f3ca4989e | Java | waynewhbaaa/my-leetcode-doc | /Array/Q945_Min_Increment_To_Make_Array_Unique.java | UTF-8 | 378 | 2.640625 | 3 | [] | no_license | class Solution {
HashMap<Integer, Integer> root;
public int minIncrementForUnique(int[] A) {
root = new HashMap();
int res = 0;
for (int a : A) res += find(a) - a;
return res;
}
int find(int x) {
if(root.containsKey(x)) root.put(x, find(root.get(x) + 1));
... | true |
58061822c034554d74cd3276a3ec3d14c815504a | Java | patriziobruno/mochatemplate | /src/main/java/net/desertconsulting/mochatemplate/parser/node/SetAttributeParser.java | UTF-8 | 2,699 | 2.484375 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2016 Patrizio Bruno <desertconsulting@gmail.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 requi... | true |