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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
66cb63c88cdd3b8d308e63d5cf69896fa4bde977 | Java | bkushigian/jfractal | /src/main/java/com/bkushigian/fractals/ComplexFractal.java | UTF-8 | 9,332 | 3.015625 | 3 | [] | no_license | package com.bkushigian.fractals;
import java.awt.*;
import javax.imageio.ImageIO;
import javax.swing.*;
import java.awt.event.*;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
import java.text.SimpleDateFormat;
import java.util.*;
/**
* An iterative fractal in the complex plane... | true |
d6cd50b7f8ba1b54cf88e354b8726a974dfcf333 | Java | alijy/CamSimLite | /src/Run.java | UTF-8 | 16,269 | 2.375 | 2 | [] | no_license | import java.io.IOException;
import java.io.PrintWriter;
import java.util.ArrayList;
import java.io.FileWriter;
/**
*
* @author Arezoo Vejdanparast <vejdanpa@aston.ac.uk> & Ali Karami <ali.karami@alumni.york.ac.uk>
*/
public class Run {
// private Field field;
private ArrayList<Camera> cameras;
private ArrayList<Obj... | true |
773d99aedf9ba02021f590c1a8ec527480da18a4 | Java | autun12/CTF-Writeups | /Razi-CTF2020/Android/chasing_a_lock_COMPLETED/classes-dex2jar.jar.src/androidx/core/content/res/TypedArrayUtils.java | UTF-8 | 7,399 | 2.046875 | 2 | [] | no_license | package androidx.core.content.res;
import android.content.Context;
import android.content.res.ColorStateList;
import android.content.res.Resources;
import android.content.res.TypedArray;
import android.graphics.drawable.Drawable;
import android.util.AttributeSet;
import android.util.TypedValue;
import org.xmlpull.v1.X... | true |
9df1c8bff3d0a3e61a2a3983eae2ee779462e68c | Java | leeking68/Algorithm_Practice | /programmers/DFS_ChangeWord.java | UTF-8 | 1,539 | 3.515625 | 4 | [] | no_license | package programmers;
/**
* Problem from : Programmers
*
* @author Gil email : leeeeeegilho@gmail.com
*
* URI :https://programmers.co.kr/learn/courses/30/lessons/43163
*
*
*/
public class DFS_ChangeWord {
public static int min = Integer.MAX_VALUE;
public static void main(String[] args) {
Stri... | true |
349f6e8ad16085da56cfd67634d394778d2abd48 | Java | lb13038579381/LeetCode | /src/main/java/数组/调整数组顺序使奇数位于偶数前面.java | UTF-8 | 995 | 3.625 | 4 | [] | no_license | package 数组;
import java.lang.reflect.Array;
import java.util.Arrays;
public class 调整数组顺序使奇数位于偶数前面 {
public static void main(String[] args) {
int[] nums = {1, 2, 3, 4, 5, 6, 13, 11, 9, 8};
System.out.println(Arrays.toString(fun(nums)));
}
private static int[] fun(int[] nums) {
if (... | true |
a919088cb370f3301517f7ac1208cfab19b91803 | Java | patinocuesta/AppBroadcastreceiverDynamique | /app/src/main/java/com/example/appbroadcastreceiverdynamique/MyReceiver.java | UTF-8 | 1,300 | 2.5 | 2 | [] | no_license | package com.example.appbroadcastreceiverdynamique;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.provider.Settings;
public abstract class MyReceiver extends BroadcastReceiver {
private Context context;
... | true |
3b227b14bc729673d93bc0f0961e6f804d3dbc53 | Java | gspandy/c.r.e.d.it | /creditEcoSystem/kernel/credit-third-interface/src/main/java/com/ctc/credit/blackgreylist/dao/IBlkgrayListRoleDao.java | UTF-8 | 1,194 | 1.851563 | 2 | [] | no_license | package com.ctc.credit.blackgreylist.dao;
import java.util.List;
import java.util.Map;
import com.ctc.credit.blackgreylist.model.CreditBlkgraylistRoleEntity;
import com.ctc.credit.kernel.base.GenericDao;
public interface IBlkgrayListRoleDao extends GenericDao<CreditBlkgraylistRoleEntity, String>{
public List<Map<St... | true |
1e02a15c075826daca0dd646aa507164ddf2af3f | Java | Zeminghu/fulicenter-201610 | /app/src/main/java/cn/ucai/fulicenter/model/net/IModelNewCategory.java | UTF-8 | 459 | 1.710938 | 2 | [] | no_license | package cn.ucai.fulicenter.model.net;
import android.content.Context;
import cn.ucai.fulicenter.model.bean.CategoryChildBean;
import cn.ucai.fulicenter.model.bean.CategoryGroupBean;
/**
* Created by Administrator on 2017/1/13.
*/
public interface IModelNewCategory {
void downData(Context context, OnCompleteLi... | true |
97257d5c82587a2379de7d03f6ad85be57373fff | Java | 18662815187/SYRM | /src/main/java/com/lwyykj/core/service/impl/ProductVerifyServiceImpl.java | UTF-8 | 2,942 | 2.140625 | 2 | [] | no_license | package com.lwyykj.core.service.impl;
import java.util.List;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.lwyykj.core.bean.product.ProductVerify;
i... | true |
5a3c8234537fa187960df551631e83baa5233532 | Java | RandyParedis/IR-1920 | /packages/ir-tools/src/main/java/edu/gslis/filtering/session/SimpleFilterSessionImpl.java | UTF-8 | 3,255 | 2.21875 | 2 | [] | no_license | package edu.gslis.filtering.session;
import java.util.Iterator;
import java.util.List;
import edu.gslis.docaccumulators.ResultAccumulator;
import edu.gslis.docaccumulators.ResultAccumulatorNew;
import edu.gslis.docscoring.Scorer;
import edu.gslis.eval.Qrels;
import edu.gslis.filtering.threshold.SimpleCutoffThresholdC... | true |
c7a936e269043ee5bfb16e3bc9b9b98b215eb18b | Java | layool/java-design-mode | /src/Test2_2.java | UTF-8 | 927 | 3.6875 | 4 | [] | no_license | interface Shape{
double Area();
}
class Circle implements Shape{
private double r;
Circle(double r){
this.r=r;
}
@Override
public double Area() {
return 3.14*r*r;
}
}
class Square implements Shape {
private double a;
Square(double a) {
this.a = a;
}
... | true |
855970b10d0c43efca6a0dd8efe8d2dca54f47cf | Java | shoaibdipu/BRACU_CSE110_ProgrammingLanguageI_StructuredProgramming | /CSE110Lab/StarLab/Problem21.java | UTF-8 | 976 | 3.5625 | 4 | [] | no_license | /*PROBLEM 21) Hollow Rectangle using solution of PROBLEM 16) Rectangle
Display a rectangle of given length and width.
Sample input:
4
5
Sample output
*****
* *
* *
*****
*/
import java.util.Scanner;
public class Problem21{
public static void main (String[]args){
Scanner sc=new Scanner(Syste... | true |
28b8b486f927ebbb4ac18538be186573532a341f | Java | piwang1994/big12 | /xu07/src/main/java/proxy/WelcomeService.java | UTF-8 | 106 | 2.046875 | 2 | [] | no_license | package proxy;
/**
* 接口
*/
public interface WelcomeService {
public void sayHello(String msg) ;
}
| true |
e732f21e38150199f14b4fe294fe59038454f980 | Java | sungyoungKwon85/trp2021 | /src/main/java/com/kkwonsy/trp/service/MemberService.java | UTF-8 | 968 | 2.3125 | 2 | [] | no_license | package com.kkwonsy.trp.service;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.kkwonsy.trp.entity.Member;
import com.kkwonsy.trp.exception.ErrorCode;
import com.kkwonsy.trp.exception.TrpException;
import com.kkwonsy.trp.model.MemberSaveReque... | true |
99a753e4259554fc45977ef650bf662b38a2a0b4 | Java | Romchansky/JavaPractice | /src/main/java/factory/ork/OrkWarrior.java | UTF-8 | 608 | 2.796875 | 3 | [] | no_license | package factory.ork;
import factory.Warrior;
public class OrkWarrior implements Warrior {
private int health = 12;
private int resistance = 4;
private int speed = 24;
private int protection = 7;
private int strength = 12;
@Override
public void saveWarrior() {
System.out.println(... | true |
22959b7f177ca44da54abd3ace00d04c6702d431 | Java | MEJIOMAH17/spring-edu | /src/main/java/edu/jpoint/spring/springedu/aspect/MailSender.java | UTF-8 | 363 | 2 | 2 | [] | no_license | package edu.jpoint.spring.springedu.aspect;
import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
import org.springframework.stereotype.Component;
import javax.annotation.PostConstruct;
@Component
@ConditionalOnBean(MailSender.class)
public class MailSender {
public void send() {
Sy... | true |
820d6946a95cdf034e6ec5e95ff2d252df0ff33e | Java | Yeshaswini18/Engineering-Of-Big-data-Systems | /Project/MovingAverage/src/main/java/com/yeshaswini/movingaverage/MovingAvgPart1Reducer.java | UTF-8 | 590 | 2.53125 | 3 | [] | no_license | package com.yeshaswini.movingaverage;
import org.apache.hadoop.io.Text;
import org.apache.hadoop.mapreduce.Reducer;
import java.io.IOException;
public class MovingAvgPart1Reducer extends Reducer<MovieDateWritable, Text, Text, Text> {
@Override
protected void reduce(MovieDateWritable key, Iterable<Text> value... | true |
b3b580677e806a653a15d3cfe68200f0b657a32f | Java | Auch-Auch/avito_source | /sources/com/sumsub/sns/camera/SNSCameraActivity$onCreate$$inlined$observe$6.java | UTF-8 | 2,536 | 1.875 | 2 | [] | no_license | package com.sumsub.sns.camera;
import android.view.View;
import android.widget.TextView;
import androidx.core.view.OneShotPreDrawListener;
import androidx.lifecycle.Observer;
import com.google.android.material.bottomsheet.BottomSheetBehavior;
import kotlin.Metadata;
import kotlin.jvm.internal.Intrinsics;
@Metadata(bv ... | true |
21d9493a3990ce1eee0008405e4b52a13ad75772 | Java | MoochiPark/java-in-action | /chapter09/refactoring/chainofresponsibility/SpellCheckerProcessing.java | UTF-8 | 265 | 2.234375 | 2 | [] | no_license | package io.wisoft.seminar.daewon.javainaction.chapter09.refactoring.chainofresponsibility;
public class SpellCheckerProcessing extends ProcessingObject<String> {
@Override
String handleWork(String text) {
return text.replaceAll("labda", "lambda");
}
}
| true |
8f5fb28c21a72f0a39ab05d24fc61fd925f7e629 | Java | enspdf/graphql-java-h2 | /src/main/java/me/shackox/h2/graphql/h2graphqljpa/exceptions/BookNotFoundException.java | UTF-8 | 839 | 2.21875 | 2 | [] | no_license | package me.shackox.h2.graphql.h2graphqljpa.exceptions;
import graphql.ErrorType;
import graphql.GraphQLError;
import graphql.language.SourceLocation;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class BookNotFoundException extends RuntimeException implements GraphQLError {
privat... | true |
c3d431bd9389133c2cfb2d0203ced8a6b9119226 | Java | binbinzou/book-coremgmt | /src/main/java/com/bookcase/system/bookcoremgmt/domain/CoredataBookcase.java | UTF-8 | 3,571 | 1.898438 | 2 | [] | no_license | package com.bookcase.system.bookcoremgmt.domain;
import java.io.Serializable;
import java.sql.Timestamp;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.NamedQuery;
import javax.persistence.Table... | true |
0f84b1408884afe5e78c94cad9ffd37d928b4da4 | Java | carmelolg/ita-covid19 | /src/main/java/it/carmelolagamba/ita/covid19/persistence/DataNazioneDocumentService.java | UTF-8 | 1,124 | 1.929688 | 2 | [
"CC-BY-4.0"
] | permissive | package it.carmelolagamba.ita.covid19.persistence;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import com.mongodb.client.MongoCollection;
import it.carmelolagamba.ita.covid19.domain.DataNazion... | true |
288406bbea7115c231289fb45978ed917f9aa838 | Java | decalion/Formaciones-Platzi-Udemy | /Programación Orientada a Objeto en Java/04_Modulo4Composicion/src/com/icaballero/composicionencapsulacion03/Sobre.java | UTF-8 | 547 | 2.765625 | 3 | [] | no_license | package com.icaballero.composicionencapsulacion03;
public class Sobre {
private String color;
private Galleta galleta;
public Sobre(String color, String sabor, double precio) {
this.color = color;
this.galleta = new Galleta(sabor, precio);
}
public String getColor() {
return color;
}
public void ... | true |
ec41b8c5ef2e162ea8e2b32d5a1c0534d504e9f2 | Java | algalopez/MyTV_Android_App | /java/com/algalopez/mytv/data/local/converter/ShowConverter.java | UTF-8 | 9,049 | 2.34375 | 2 | [
"BSD-3-Clause"
] | permissive | package com.algalopez.mytv.data.local.converter;
import android.content.ContentValues;
import android.database.Cursor;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import com.algalopez.mytv.data.local.database.MyTVDbContract;
import com.algalopez.mytv.data.local.database.MyTVDbContract.ShowE... | true |
c5a72473599f304f24300f3e640b05a6a7ec5215 | Java | soulyana/AProgramForYourself | /src/AProgramForYourself.java | UTF-8 | 419 | 3.34375 | 3 | [] | no_license | public class AProgramForYourself {
public static void main(String args[]) {
//Soulyana Lakew, age 29
String firstName = "Soulyana";
String lastName = "Lakew";
int age = 29;
String movie = "Dave Chappelle";
double GPA = 4.0;
System.out.println(firstName + " " ... | true |
de10267dcb668651308cc52d56f28cdeef398870 | Java | terminalPiii/Amazon | /src/dataStructures/array/arraySort.java | UTF-8 | 641 | 3.578125 | 4 | [] | no_license | package dataStructures.array;
import java.util.Arrays;
public class arraySort {
private static void insertSort(){
//Sorting an array
int[] sort = {5, 67, 9, 12, 1, 0, 99, 83, 37, 2, 4};
int temp;
for(int i=1; i < sort.length; i++){
for(int j = i; j > 0; j--){
... | true |
156ec3f89e92e914736630f67a07373b8e48f576 | Java | lkno0705/melt | /matching-jena/src/main/java/de/uni_mannheim/informatik/dws/melt/matching_jena/typetransformation/JenaTransformerHelper.java | UTF-8 | 2,068 | 2.28125 | 2 | [
"MIT"
] | permissive |
package de.uni_mannheim.informatik.dws.melt.matching_jena.typetransformation;
import de.uni_mannheim.informatik.dws.melt.matching_base.ParameterConfigKeys;
import de.uni_mannheim.informatik.dws.melt.matching_jena.OntologyCacheJena;
import java.util.Properties;
import org.apache.jena.assembler.assemblers.OntModelSpecA... | true |
f2a84e01315e66a35b87ce455b6bbaf8c359346b | Java | alfisyar520/Fit-Pack | /app/src/main/java/com/example/fitpack/Model/HasilTest.java | UTF-8 | 1,426 | 2.25 | 2 | [] | no_license | package com.example.fitpack.Model;
public class HasilTest {
private String userID;
private String namePublisher;
private String currentDate;
private String currentTime;
private String hasilDeteksi;
public HasilTest() {
}
public HasilTest(String userID, String namePublisher, String cu... | true |
8d1cc1cdd5aa5d2225b2468b55930a36c3c5f136 | Java | zhangbaolong/java-algorithms4-princeton | /code/4-4-shortest-paths/edgeweighteddiagraphrepresentation/DirectedEdge.java | UTF-8 | 714 | 3.4375 | 3 | [] | no_license |
/**
* Represents a weighted Directed Edge
*
*/
public class DirectedEdge implements Comparable<DirectedEdge> {
private int from;
private int to;
private double edgeWeight;
public DirectedEdge(int from, int to, double edgeWeight) {
super();
this.from = from;
this.to = to;
this.edgeWeight = edgeWeight;
... | true |
d2d061326cb5437e2da6a9f4c11992ef799a670e | Java | satanson8517/AdventOfCode | /src/day_09/ArrayGraph.java | UTF-8 | 2,813 | 3.375 | 3 | [] | no_license | package day_09;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import java.util.function.Consumer;
/**
*
* @author Michal Nedbálek <michal.nedbalek@avg.com> on 01/02/2016
*/
public class ArrayGraph extends Graph {
final List<String> nodes = new ArrayList<>();
... | true |
7a7b0a0707fb7fab51234a0d892a189bcf5528ea | Java | javawizard/everything | /historical/the-original-opengroove/googlecode/trunk/opengroove/g4/ogclient/src/net/sf/opengroove/client/dynamics/Engine.java | UTF-8 | 716 | 2.71875 | 3 | [] | no_license | package net.sf.opengroove.client.dynamics;
/**
* This class is the core of the dynamics subsystem. It provides the means to
* allow an application to utilize the dynamics subsystem. An engine is created
* from an EngineProviderFactory, which the dynamics system uses to create an
* engine provider, and an Eng... | true |
a175339b0615f188e9d4638ff815a29a27fd8fb1 | Java | SillyBoy007/designPattern | /src/main/java/com/wxy/learn/design/structure/decorator/learn/concreteDecorator/RedShapeDecorator.java | UTF-8 | 701 | 3.3125 | 3 | [] | no_license | package com.wxy.learn.design.structure.decorator.learn.concreteDecorator;
import com.wxy.learn.design.structure.decorator.learn.component.Shape;
import com.wxy.learn.design.structure.decorator.learn.decorator.ShapeDecorator;
/**
* 具体装饰(ConcreteDecorator)角色:负责给构件对象“贴上”附加的责任。
*/
public class RedShapeDecorator extends... | true |
b570d3d32bb62120ad3dede2231fb089990294e4 | Java | mjbremer/AndroidFMSynth | /app/src/main/java/com/example/wavemaker/MainActivity.java | UTF-8 | 6,729 | 2.046875 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2017 The Android Open Source Project
*
* 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 applica... | true |
d9e4fd2eeed3bfb027599142a6545fdcff219fd2 | Java | PKazan/invoicing-system-pawel | /src/main/java/pl/futurecollars/invoicing/db/jpa/CompanyRepository.java | UTF-8 | 293 | 1.726563 | 2 | [] | no_license | package pl.futurecollars.invoicing.db.jpa;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;
import pl.futurecollars.invoicing.model.Company;
@Repository
public interface CompanyRepository extends CrudRepository<Company, Long> {
}
| true |
b1da4190618888e345c8b6ae62122ccf96ef5225 | Java | SyncbyteInnovations/ide | /app/src/main/java/ids/employeeat/fragment/menu/modules/attendance/manualEntry/ManualEntryFragment.java | UTF-8 | 6,722 | 1.976563 | 2 | [] | no_license | package ids.employeeat.fragment.menu.modules.attendance.manualEntry;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.EditText;
import android.widget.ImageView;
import android.widget.TextView;
im... | true |
f4bc4252ea1ff86d25e77ef7a806011e2990fa5a | Java | aurozhkov/myvk | /app/src/main/java/com/aurozhkov/vkwall/network/WallResponse.java | UTF-8 | 269 | 1.671875 | 2 | [] | no_license | package com.aurozhkov.vkwall.network;
import java.util.List;
public class WallResponse {
public Response response;
public static class Response {
public int count;
public List<WallRecord> wall;
public List<Profile> profiles;
}
}
| true |
dac9a9a3d62c1d89a251b37fe36c2c0eb023de11 | Java | wang-ax/Test_Learn | /Junit框架学习/main/java/Count2.java | UTF-8 | 372 | 2.90625 | 3 | [] | no_license | /**
* ClassName PACKAGE_NAME
* Description TODO
* Author 30712
* Date 2021-04-14
* Time 20:16
*/
public class Count2 {
/**
* 计算并返回两个参数的哈
*/
public int add(int x,int y){
return x+y;
}
/**
* 计算并返回两个数相除的结果
*/
public int division(int a,int b){
return a/b;
... | true |
c1271dd72ea1a0fedac20c2c4bdc2d0d8a9cbd4a | Java | lokmanugur/Ogrenci_Servisi_Kayit_Sistemi_1.0 | /src/GUI_Packege/kasa/AracGiderOde.java | UTF-8 | 11,530 | 2.015625 | 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 GUI_Packege.kasa;
import StudentServiceClass.*;
import StudentServiceClass.DbConnection;
import java.sql.ResultSet;
import java... | true |
234a1e80936bb7f246f7333c078b671a8beba665 | Java | cyberhorse208/SafetyNet | /com/google/android/gms/people/internal/zzt.java | UTF-8 | 1,899 | 2.203125 | 2 | [] | no_license | package com.google.android.gms.people.internal;
import com.google.android.snet.Csv;
import java.util.ArrayList;
public class zzt {
private final String mLabel;
private final ArrayList<Long> zzbFf;
private final ArrayList<String> zzbFg;
private static class zza extends zzt {
public static fina... | true |
3cca4db34f6a609dce60cba60f41f6a77be9785f | Java | vvalerio/cerifPlugin | /cerifPlugin/src/main/java/org/epos_ip/basicCerifConverterPlugin/GenericMapper/JSONFacetsKeywords.java | UTF-8 | 1,500 | 1.984375 | 2 | [] | no_license | /*******************************************************************************
* Copyright 2021 EPOS ERIC
* 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/l... | true |
8246f1c71a57535506526d04407cb3e51fb98d19 | Java | roi-itlab/datagen | /src/main/java/org/roi/itlab/cassandra/random_attributes/WorkStartRandomGenerator.java | UTF-8 | 414 | 2.140625 | 2 | [
"MIT"
] | permissive | package org.roi.itlab.cassandra.random_attributes;
import org.apache.commons.math3.random.MersenneTwister;
/**
* author Anush
*/
public class WorkStartRandomGenerator extends RandomGenerator {
static double[] x = {7.0,9.0,12.0,19.0};
static double[] y = {3.0,10.0,1.0,0.1};
public WorkStartRandomGener... | true |
2c4630228a61465e9aaecb0fd47231b47386281b | Java | jluisdelapuente/proyecto1 | /src/app/capas/Precentacion/Main.java | UTF-8 | 163 | 1.617188 | 2 | [] | no_license |
package Precentacion;
public class Main {
public static void main(String[] args) {
frmProductos P=new frmProductos();
P.show();
}
}
| true |
dc54ce17bcfad399f8476b81c84e587a7e15137b | Java | mumusing/Framework | /Opera Cloud/src/test/java/org/orac/pageFactory/OperaCloudMenu.java | UTF-8 | 1,258 | 2.09375 | 2 | [] | no_license | package org.orac.pageFactory;
import org.openqa.selenium.By;
import org.openqa.selenium.WebElement;
import com.oracle.framework.Asserts;
import com.oracle.framework.Report;
import com.oracle.framework.Status;
import com.oracle.framework.Utils;
import com.oracle.framework.WaitTypes;
import com.oracle.framewo... | true |
15f291181934a782202519c021862a9fd74f1da1 | Java | ryanmcgrail95/JavaGame | /src/object/environment/Fern.java | UTF-8 | 1,226 | 2.5 | 2 | [] | no_license | package object.environment;
import object.primitive.Environmental;
import object.primitive.Physical;
import ds.vec3;
import gfx.GOGL;
import resource.model.Model;
import time.Timer;
public class Fern extends Environmental {
private float squash = 0;
private Timer twitchTimer;
public Fern(float x, float y) {
s... | true |
ce16b4903296e1d2e6142bb3d013bd060d7cf912 | Java | julian-eggers/zkoss-helper | /src/main/java/com/itelg/zkoss/helper/file/FileUploadHelper.java | UTF-8 | 470 | 2.34375 | 2 | [
"MIT"
] | permissive | package com.itelg.zkoss.helper.file;
import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.nio.charset.StandardCharsets;
import org.zkoss.util.media.Media;
public class FileUploadHelper
{
public static final InputStream upload(Media media) throws IOException
... | true |
48654ed1f285ad9e6278e631f3f5b367ff657537 | Java | yashjohri/FirstTask | /app/src/main/java/com/johri/firsttask/Utils/ApiResult.java | UTF-8 | 919 | 2.34375 | 2 | [] | no_license | package com.johri.firsttask.Utils;
import com.johri.firsttask.ListItems.FacilityItem;
import java.util.ArrayList;
public class ApiResult {
private ArrayList<FacilityItem> facilities;
private ArrayList<ArrayList<FacilityOptionPair>> exclusions;
public ApiResult() {
}
public ApiResult(ArrayList<... | true |
d874a5d3e6dac60e73b10bea1807a15b3c09c69d | Java | isaaaz/CCC | /CCC/src/problem4.java | UTF-8 | 507 | 3.015625 | 3 | [] | no_license | import java.util.Scanner;
/*
* Author: isabella
* Date: 8-Jan-2021
* Description: Occupy parking
*/
public class problem4
{
public static void main(String[] args)
{
Scanner sc = new Scanner (System.in);
int input = sc.nextInt();
String first = sc.next();
String second = sc.next();
int sum = 0;
... | true |
57b452c91bd0b289c869b575c5eb27c2b41f7dcb | Java | edwinmin/aiolos | /aiolos-register/src/main/java/com/edwin/aiolosregister/RetryPolicy.java | UTF-8 | 354 | 2.03125 | 2 | [] | no_license | package com.edwin.aiolosregister;
import org.apache.zookeeper.ZooKeeper;
/**
* 链接断开重试策略
*
* @author: edwin
* @date: 15-5-7 15:32
*/
public interface RetryPolicy {
/**
* Reconnect by old zookeeper
*
* @param oldZK
* @throws Exception
*/
public void reconnect(ZooKeeper oldZK) th... | true |
23d8618abfaf7d614615da3b8b00aeae2fc45705 | Java | pitchounvivi/world-of-java | /worldofjava-interfaces/src/main/java/fr/masociete/worldofjava/accessoire/dto/EpeeDeuxMain.java | ISO-8859-1 | 753 | 3.109375 | 3 | [
"MIT"
] | permissive | package fr.masociete.worldofjava.accessoire.dto;
public class EpeeDeuxMain extends Accessoire {
public static void main(String[] args){
EpeeDeuxMain epeeDeuxMain = new EpeeDeuxMain();
System.out.println(epeeDeuxMain);
}
public EpeeDeuxMain() {
this.setNom("Epe deux mains");
this.setEncombrement(2);
... | true |
1421aaebfc3c5ee25e1eee68e49cba5e67bee7b3 | Java | shen173869710/gun_new | /app/src/main/java/com/auto/di/guan/entity/ControlOptionEvent.java | UTF-8 | 630 | 2.140625 | 2 | [] | no_license | package com.auto.di.guan.entity;
import com.auto.di.guan.db.ControlInfo;
import com.auto.di.guan.db.GroupInfo;
/**
* Created by Administrator on 2017/12/22 0022.
*/
public class ControlOptionEvent {
public ControlOptionEvent(int type, ControlInfo controlInfo, boolean isStart) {
this.type = type;
... | true |
1f458bae818a3884967a30f86eb8e7591b7bb635 | Java | pauline-f/MyVocabulary | /src/com/paulinefeytel/tests/QuizzWordTranslationTest.java | UTF-8 | 1,083 | 2.75 | 3 | [] | no_license | package com.paulinefeytel.tests;
import com.paulinefeytel.model.ListWord;
import com.paulinefeytel.model.Quizz;
import com.paulinefeytel.model.QuizzWordTranslation;
import com.paulinefeytel.model.Word;
import org.junit.Before;
import org.junit.Test;
import static org.junit.Assert.*;
public class QuizzWordTranslation... | true |
068b88d291f19af975350a0262ee289373c53d07 | Java | sheep3652014/bus_ui | /.svn/pristine/06/068b88d291f19af975350a0262ee289373c53d07.svn-base | GB18030 | 1,551 | 2.4375 | 2 | [] | no_license | package com.example.network;
import android.content.Context;
import android.content.Intent;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
public class NetCon_Util
{
public static boolean isWifiConnect = false;
public static boolean isCelluarConnect = false;
/*public static b... | true |
825084e4e8f5a83e89fe5a03f156ddd11b46bcea | Java | Vali763/Company | /src/main/java/ro/fortech/companyproject/company/service/CompanyService.java | UTF-8 | 1,593 | 2.453125 | 2 | [] | no_license | package ro.fortech.companyproject.company.service;
import org.springframework.stereotype.Service;
import ro.fortech.companyproject.company.dao.CompanyEntity;
import ro.fortech.companyproject.company.dao.CompanyRepository;
import java.util.List;
import java.util.stream.Collectors;
@Service
public class CompanyService... | true |
5a01ced2fe3d88dc5b7f0edb70691ba901925c55 | Java | dovanduy/robotautomation | /src/com/amy/testcase/speechInteractive/TestCase6_OpenSportsNews.java | UTF-8 | 552 | 1.820313 | 2 | [
"Apache-2.0"
] | permissive | package com.amy.testcase.speechInteractive;
import com.amy.util.BasicTestCase;
import com.amy.util.SocketClient;
public class TestCase6_OpenSportsNews extends BasicTestCase{
@Override
protected void setUp() throws Exception {
// TODO Auto-generated method stub
//
super.setUp(false);
}
public ... | true |
81a11d2d16508f46616d2c3f52d92360755b1226 | Java | victorher/desarollo | /src/java/Modelo/detallesGetSet.java | UTF-8 | 1,960 | 2.28125 | 2 | [] | no_license |
package Modelo;
public class detallesGetSet {
private String idDetalle;
private String idArticulo;
private String idDIseno;
private String Descripcion;
private String Cantidad;
private String Precio;
public detallesGetSet() {
}
public detallesGetSet(String idDetalle) {
t... | true |
170996aa22933f268d8aa71f91a9b809fa31771d | Java | errorabc/Graduation | /src/main/java/com/example/demo/Graduation/service/PetService/PetFosterService.java | UTF-8 | 4,846 | 2.15625 | 2 | [] | no_license | package com.example.demo.Graduation.service.PetService;
import com.example.demo.Graduation.Dao.OderDao.OderDao;
import com.example.demo.Graduation.Dao.PetDao.PetFosterDao;
import com.example.demo.Graduation.Tool.DateTime;
import com.example.demo.Graduation.entity.OderEntity;
import com.example.demo.Graduation.entity.O... | true |
6550c7c78e0bd21ab717439a76b8289d1eef6d13 | Java | mechrashmi/RESTFul-API-Messenger | /src/main/java/org/rashmi/firstRESTFulApp/messenger/database/ProfileDao.java | UTF-8 | 2,041 | 2.734375 | 3 | [] | no_license | package org.rashmi.firstRESTFulApp.messenger.database;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import org.rashmi.firstRESTFulApp.messenger.model.Profile;
public class ProfileDao {
public static HashMap<String, Profile> map;
private static ProfileDao objec... | true |
d2c07010e6589a1244187fa8673911bcf2c88791 | Java | flywind2/joeis | /src/irvine/oeis/a070/A070393.java | UTF-8 | 325 | 2.484375 | 2 | [] | no_license | package irvine.oeis.a070;
import irvine.oeis.LinearRecurrence;
/**
* A070393 <code>a(n) = 6^n mod 13</code>.
* @author Sean A. Irvine
*/
public class A070393 extends LinearRecurrence {
/** Construct the sequence. */
public A070393() {
super(new long[] {1, -1, 0, 0, 0, 0, 1}, new long[] {1, 6, 10, 8, 9, 2,... | true |
46cd11c14ab3854651e5ceeec9123c8fb69879ad | Java | nraghuwanshi25/TestRepositoryForMavenProjects | /WareHouseApp/src/main/java/com/Warehouse/dao/EmployeeDao.java | UTF-8 | 489 | 2.234375 | 2 | [] | no_license | package com.Warehouse.dao;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
import com.Warehouse.domain.Employee;
@Path("/dao")
public class EmployeeDao {
@Produces(MediaType.APPLICATION_JSON)
@GET
@Path("/p1")
public Employee getEmplo... | true |
951ef467d1f262d1f7b05295cf58995aa29aec94 | Java | fabriquita/nucleus-backend | /src/main/java/org/fabriquita/nucleus/NucleusSwaggerPathProvider.java | UTF-8 | 1,050 | 2 | 2 | [
"Apache-2.0"
] | permissive | package org.fabriquita.nucleus;
import javax.servlet.ServletContext;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationContext;
import org.springframework.web.util.UriComponentsBuilder;
import springboot.swagger.ServletContextPathProvider;
import com.mangof... | true |
6beb38ab61a9ca8fe9c6da317ee04a763da36877 | Java | wztxyxw/trtc | /app/src/main/java/com/chuangdu/pad/models/IdCardMsg.java | UTF-8 | 1,948 | 1.789063 | 2 | [] | no_license | package com.chuangdu.pad.models;
import android.graphics.Bitmap;
/**
* @author sc
* @since 2020-10-19
*/
public class IdCardMsg {
public String name;
public String sex;
public String nation_str;
public String birth_year ;
public String birth_month ;
public String birth_day ;
public St... | true |
a8d4eff64133cdaccd1139f1aa6a9c0fe382d6b4 | Java | jbp182/ICL | /Tests.java | UTF-8 | 3,862 | 2.359375 | 2 | [] | no_license | import static org.junit.Assert.assertEquals;
import static org.junit.Assert.fail;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.PrintStream;
import java.nio.file.Files;
import java.util.Locale;
import Components.Parser;
import org.junit.Before;
import org.junit.Test;
public class Tests ... | true |
41193da9e1f4ec18b2cc86413f480b24224a28e2 | Java | Kanishe/QAJava | /addressbook-web-tests/src/test/java/ru/stqa/qajava/addressbook/tests/GroupModificationTests.java | UTF-8 | 1,217 | 2.484375 | 2 | [
"Apache-2.0"
] | permissive | package ru.stqa.qajava.addressbook.tests;
import org.testng.Assert;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Test;
import ru.stqa.qajava.addressbook.model.GroupData;
import java.util.Comparator;
import java.util.List;
public class GroupModificationTests extends TestBase{
@BeforeMe... | true |
ce6557206c34989b8454b91c878886df4bd133de | Java | bellmit/fleet-spring-boot | /spring-boot-socketio/src/main/java/com/fleet/socketio/service/SocketIOService.java | UTF-8 | 322 | 1.984375 | 2 | [] | no_license | package com.fleet.socketio.service;
import com.fleet.socketio.entity.Msg;
public interface SocketIOService {
/**
* 启动服务
*/
void start();
/**
* 停止服务
*/
void stop();
/**
* 推送信息给指定客户端
*/
void pushToUser(String userId, Msg msg);
}
| true |
6f3dd6ba1086b9fad2dfc48907a92592d92efc4f | Java | nsolovyanova/2021-03-otus-spring-solovyanova | /lesson-1/src/test/java/ru/otus/spring/service/StudentServiceImplTest.java | UTF-8 | 2,386 | 2.671875 | 3 | [] | no_license | package ru.otus.spring.service;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
import org.mockito.Mock;
import org.mockito.junit.jupiter.MockitoExtension;
import org.springframework.context... | true |
16ade74bfafa1050e05d377ee5e6957ec027c01a | Java | shenshuangxi/uaam2 | /src/test/java/com/gionee2/uaam/UserDaoTest.java | UTF-8 | 9,213 | 1.945313 | 2 | [] | no_license | package com.gionee2.uaam;
import java.io.UnsupportedEncodingException;
import java.net.MalformedURLException;
import java.net.URI;
import java.net.URL;
import java.net.URLDecoder;
import java.util.ArrayList;
import java.util.List;
import javax.annotation.Resource;
import javax.naming.InvalidNameException;
import java... | true |
aed9aff22fc08470d55112cb2af9c3c7fd844c16 | Java | SimplesGroup/Simplicity_an | /app/src/main/java/simplicity_an/simplicity_an/SplashScreen.java | UTF-8 | 26,102 | 1.890625 | 2 | [] | no_license | package simplicity_an.simplicity_an;
import android.app.Activity;
import android.app.Dialog;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.content.pm.PackageInfo;
import android.os.Bundle;
import android.os.Handler;
import android.util.Log;
impo... | true |
28bf73ffc0db22d55aa0d598021f9f74742e0053 | Java | kirkcaldydad/mahjong-scorer-app | /app/src/main/java/house/mcintosh/mahjong/model/GameSummary.java | UTF-8 | 4,770 | 2.65625 | 3 | [] | no_license | package house.mcintosh.mahjong.model;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.node.ArrayNode;
import com.fasterxml.jackson.databind.node.ObjectNode;
import java.io.File;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Collections;
import ja... | true |
c4cf9f4032a8e6aa86f4dd33f36e5e15eaf24fec | Java | Dai1678/MatoMemo | /app/src/main/java/com/example/t_robop/matomemo/FirstActivity.java | UTF-8 | 2,805 | 1.84375 | 2 | [] | no_license | package com.example.t_robop.matomemo;
import android.content.Intent;
import android.net.Uri;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
import android.widget.Button;
import android.widget.Li... | true |
787a62aab9d60310e6ca6dea58ddf790c5bfcad6 | Java | lionelherrerobattista/Laboratorio_V | /proyectos/PracticaPP/app/src/main/java/com/example/practicapp/MainActivity.java | UTF-8 | 2,846 | 2.765625 | 3 | [] | no_license | package com.example.practicapp;
import androidx.appcompat.app.AppCompatActivity;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import android.os.Bundle;
import android.util.Log;
import java.util.ArrayList;
import java.util.List;
public class MainActivity ... | true |
ad666018938c19828d8cedc6b6de73b34fc3a85b | Java | tmxdyf/HappyImageLoader | /src/me/xiaopan/android/imageloader/cache/disk/LruDiskCache.java | UTF-8 | 5,537 | 2.3125 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright (C) 2013 Peng fei Pan <sky@xiaopan.me>
*
* 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... | true |
6776a45da2681d44ee6a093482b74fc7dab07673 | Java | maryteam/mary_bigdata | /src/main/java/com/shellming/modules/Location.java | UTF-8 | 1,209 | 2.390625 | 2 | [] | no_license | package com.shellming.modules;
import com.google.gson.Gson;
/**
* Created by ruluo1992 on 11/26/2015.
*/
public class Location {
private String city;
private String province;
private String latitude; // 纬度
private String longitude; // 经度
public Location(String city, String province, String lat... | true |
cb67212ab5e54794e6b810e6bb6eb98123a15a4b | Java | dmfullstack/de_s1_sl | /src/com/stackroute/datamunger/DataMunger.java | UTF-8 | 10,246 | 3.203125 | 3 | [] | no_license | package com.stackroute.datamunger;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Scanner;
public class DataMunger {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
... | true |
07f8cb7aa5e92d212d217c712e6b88b81f4e413f | Java | PibaMutanda/ShopOnline-Project | /ShopOnline/src/main/java/be/shop/entity/Achat.java | UTF-8 | 2,052 | 2.1875 | 2 | [] | no_license | package be.shop.entity;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
imp... | true |
782bdd400eba40e6e6c46baec2c1beb59ce1d94c | Java | stingchangh/CS_Java | /src/OtherQuestions/PrimeResult.java | UTF-8 | 1,347 | 3.9375 | 4 | [
"MIT"
] | permissive | package OtherQuestions;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
// 打印一个数成它prime相乘的结果,例如12 = 2^2*3.
public class PrimeResult {
public void getPrimeResult(int num) {
List<Integer> list = primeList(num);
StringBuilder sb = new StringBuilder();
for(int p: l... | true |
c15027dbc7017f9a04d68bd53002d84ee5909950 | Java | FrutosMarc/gedhh | /src/main/java/com/hh/ged/service/jwt/MyUserDetailsService.java | UTF-8 | 2,608 | 2.1875 | 2 | [] | no_license | package com.hh.ged.service.jwt;
import com.hh.ged.config.oauth2.JwtUser;
import com.hh.ged.entities.Role;
import com.hh.ged.entities.Utilisateur;
import com.hh.ged.repositories.UtilisateurRepo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.core.GrantedAuthority;
im... | true |
1d03cd2e823d7d6569e9bcef151e372342155df3 | Java | iamraufu/BRACUCSE321 | /Lab/3/Task1/ThreadTwo.java | UTF-8 | 265 | 2.921875 | 3 | [] | no_license | package Lab3.Task1;
public class ThreadTwo extends Thread {
@Override
public void run() {
System.out.println("Thread 2");
for (int i = 11; i<=20; i++){
System.out.print(i+" ");
}
System.out.println();
}
} | true |
e1c8af9b5f686ffefed34f20be94d48cdeca7417 | Java | sinfon/uc | /uc-service/src/main/java/top/sinfonia/uc/domain/model/email/Email.java | UTF-8 | 582 | 1.84375 | 2 | [] | no_license | package top.sinfonia.uc.domain.model.email;
import lombok.Data;
import javax.persistence.*;
/**
* <br>
* <b>Project:</b> uc<br>
* <b>Date:</b> 2017/10/26 17:28<br>
* <b>Author:</b> Asher<br>
*/
@Data
@Entity
@Table(name = "t_uc_email")
public class Email {
@Id
@GeneratedValue(strategy = GenerationType.I... | true |
e76deadd225b134e495b9d28290b0bc068f129de | Java | kakusuke-maruno/kumuluzee-samples | /com.kksk.kumuluzee.sample.jax-rs.cdi/src/main/java/com/kksk/kumuluzee/sample/jaxrs/cdi/SampleResource.java | UTF-8 | 656 | 2.28125 | 2 | [
"MIT"
] | permissive | package com.kksk.kumuluzee.sample.jaxrs.cdi;
import javax.enterprise.context.RequestScoped;
import javax.inject.Inject;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;
@RequestScoped
@Path(... | true |
804f307bfd44d9c824111d971307eb8613ade981 | Java | Hillarie-kip/Beba | /BebaRider/app/src/main/java/com/techkip/bebarider/CallDriver.java | UTF-8 | 13,842 | 1.601563 | 2 | [] | no_license | package com.techkip.bebarider;
import android.annotation.SuppressLint;
import android.app.ProgressDialog;
import android.content.Context;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.location.Location;
import android.net.Uri;
import android.os.AsyncTask;
import android.suppor... | true |
3c1c9ca0b3f29d856602d449b921cb11b019bc9c | Java | zbrachinara/small_scheduler_project | /src/tests/testMain.java | UTF-8 | 418 | 1.695313 | 2 | [] | no_license | package tests;
import main.Main;
import templator.Templator;
import java.io.*;
import java.text.ParseException;
import java.util.ArrayList;
import java.util.HashMap;
import org.json.simple.JSONObject;
import org.json.simple.parser.JSONParser;
public class testMain {
static String out = Main.outDir;
public... | true |
5d5dd941352ce8aced1c86ed4d85d7d211826857 | Java | bartem08/Interview | /src/main/java/com/interview/repository/DirectionRepository.java | UTF-8 | 236 | 1.734375 | 2 | [] | no_license | package com.interview.repository;
import com.interview.model.entity.Direction;
import org.springframework.stereotype.Repository;
@Repository
public interface DirectionRepository extends AbstractRepository<Direction, String> {}
| true |
9144eebe7f3adbdfc027737befea612939c89e27 | Java | happyjianguo/ksghi | /ksghi-manageSystem/src/main/java/com/itech/ups/app/system/authority/action/role/EditRole.java | UTF-8 | 2,923 | 1.914063 | 2 | [] | no_license | package com.itech.ups.app.system.authority.action.role;
import com.itech.core.components.xtree.TreeNode;
import com.itech.core.util.DateHelper;
import com.itech.ups.app.authority.application.domain.Function;
import com.itech.ups.app.authority.application.domain.Role;
import com.itech.ups.app.system.authority.action.fu... | true |
29e1910c8f5a8ccc09312c1007b1298b9e334c59 | Java | jjmnbv/km_dev | /kmzyc-user/kmzyc-user-web/src/main/java/com/pltfm/app/action/BlackListAction.java | UTF-8 | 2,864 | 2.328125 | 2 | [] | no_license | package com.pltfm.app.action;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.InputStreamReader;
import javax.annotation.Resource;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.contex... | true |
1a7be36144db88cd14221e975c588edda35ae6e2 | Java | pyezxyj/cd-forum | /src/main/java/com/std/forum/dao/IPostDAO.java | UTF-8 | 780 | 2.046875 | 2 | [] | no_license | /**
* @Title IPostDAO.java
* @Package com.std.forum.dao
* @Description
* @author xieyj
* @date 2016年8月28日 下午9:41:35
* @version V1.0
*/
package com.std.forum.dao;
import com.std.forum.dao.base.IBaseDAO;
import com.std.forum.domain.Post;
/**
* @author: xieyj
* @since: 2016年8月28日 下午9:41:35
* @histo... | true |
ac590f161db05cef4152d8f5858bc04b41167aed | Java | jorgejbarra/devtest-2016 | /src/test/java/com/example/aclapi/core/mapper/RuleMapperTest.java | UTF-8 | 1,256 | 2.5 | 2 | [] | no_license | package com.example.aclapi.core.mapper;
import java.util.Optional;
import org.junit.Assert;
import org.junit.Test;
import com.example.aclapi.core.domain.Action;
import com.example.aclapi.core.domain.Rule;
public class RuleMapperTest {
@Test
public void rightLineProduceRigthRule() {
//given
String line = "1 f... | true |
811db87cf5451b7e86684ca6344f01b092827b8f | Java | canh7antt8a/NongTraiLibgdx | /core/src/com/leaptechjsc/game/happyfarm/Actor/RButton.java | UTF-8 | 1,150 | 2.53125 | 3 | [] | no_license | package com.leaptechjsc.game.happyfarm.Actor;
import com.leaptechjsc.game.happyfarm.assets.Language;
import com.leaptechjsc.game.happyfarm.nature.SeedNature;
import com.badlogic.gdx.graphics.g2d.BitmapFont;
import com.badlogic.gdx.graphics.g2d.SpriteBatch;
import com.badlogic.gdx.scenes.scene2d.utils.Drawable;... | true |
5d00ebee377b18d2be044c3f55b3ecf79c841bb6 | Java | Eric-Z0/SOEN387_A2 | /dom/command/ListGameCommand.java | UTF-8 | 824 | 2.15625 | 2 | [] | no_license | package org.dom.command;
import java.util.List;
import org.dsrg.soenea.domain.command.CommandException;
import org.dsrg.soenea.domain.command.impl.ValidatorCommand;
import org.dsrg.soenea.domain.command.impl.annotation.SetInRequestAttribute;
import org.dsrg.soenea.domain.helper.Helper;
import org.dom.model.... | true |
15ee7f265b42f5e157aa2def9f9e80ddb1330f59 | Java | JangDaeHyeok/user | /src/main/java/com/example/demo/user/UserRepository.java | UTF-8 | 1,276 | 1.992188 | 2 | [] | no_license | package com.example.demo.user;
import java.util.List;
import org.springframework.data.r2dbc.repository.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.data.repository.reactive.ReactiveCrudRepository;
import org.springframework.stereotype.Repository;
import reactor.core.publi... | true |
826142c47c124a08cdb083763ed8e17d0ed3faeb | Java | daseECNU/DB-Testing | /PeakBench/seckillnetty/src/com/phei/netty/skwrite/client/WriteLoadThread.java | UTF-8 | 3,456 | 1.984375 | 2 | [
"Apache-2.0"
] | permissive | package com.phei.netty.skwrite.client;
import java.util.ArrayList;
import java.util.Map;
import java.util.Random;
import java.util.Timer;
import java.util.TimerTask;
import java.util.concurrent.atomic.AtomicInteger;
import util.SecKillPlan;
import util.ZipfLaw;
public class WriteLoadThread implements Run... | true |
6a1b1e6fa450829a8d46f89748753ec735b7521a | Java | looooogan/icomp-mq200-server | /common/src/com/icomp/dao/impl/TooloptimizationDaoImpl.java | UTF-8 | 5,261 | 2.5 | 2 | [] | no_license | /*
* 工具自动生成:刀具优化DAO实现类
* 生成时间 : 2016/04/12 15:51:11
*/
package com.icomp.dao.impl;
import com.ibatis.sqlmap.client.SqlMapClient;
import com.icomp.common.entity.BaseEntity;
import com.icomp.dao.TooloptimizationDao;
import com.icomp.entity.base.Tooloptimization;
import java.sql.SQLException;
import java.util.Arra... | true |
6d96c2cbdf4118fe0183bb7bbfb4002e86e9dd1c | Java | bridgecrew-perf7/carportDeploy | /src/main/java/web/commands/test/ConfirmOrder.java | UTF-8 | 2,143 | 2.421875 | 2 | [] | no_license | package web.commands.test;
import business.entities.*;
import business.exceptions.UserException;
import business.services.CarportFacade;
import business.services.OrderFacade;
import web.commands.CommandProtectedPage;
import javax.servlet.ServletContext;
import javax.servlet.http.HttpServletRequest;
import javax.servl... | true |
3f9685cc0b243ed50ce8c1cc1ec55b63436fd74d | Java | tynr426/flask_test_app | /AndroidStudioProjects/helloworld/app/src/main/java/com/tyn/helloworld/UserEntity.java | UTF-8 | 1,147 | 2.484375 | 2 | [] | no_license | package com.tyn.helloworld;
import android.os.Parcel;
import android.os.Parcelable;
/**
* Created by apple on 16/8/26.
*/
public class UserEntity implements Parcelable {
private String userName;
private String nick;
private String pwd;
public String getUserName() {
return userName;
}
... | true |
cc763bb5817810d97593fff361292ba32e8f759f | Java | kflyddn/Wechat-Emall | /emall1/src/main/java/org/web/emall/service/impl/BannerServiceImpl.java | UTF-8 | 611 | 1.984375 | 2 | [] | no_license | package org.web.emall.service.impl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.web.emall.mappers.BannerMapper;
import org.web.emall.models.Banner;
import org.web.emall.service.BannerService;
import java.util.List;
@Service
public class Ban... | true |
26f04d38ee7b3bedb9152210bcd043376589e0eb | Java | ivanmontero/electric-circuit-simulator | /src/com/imontero/circuit/CircuitElement.java | UTF-8 | 3,575 | 3.125 | 3 | [] | no_license | package com.imontero.circuit;
import java.util.ArrayList;
// TODO: Write assertions.
public class CircuitElement {
private static int circuitElementIdCounter = 0;
public final int ID;
public CircuitElementType type;
// If only has 2 connections:
// Scalars are measured from 0 to 1.
public Arra... | true |
04e002c68ddbeec4b33acd5f5a42713030791eff | Java | arpit-absyadav/eFriend | /src/main/java/eFriend/Dao/UserDAO.java | UTF-8 | 169 | 2.015625 | 2 | [] | no_license | package eFriend.Dao;
import eFriends.model.Login;
import eFriends.model.User;
public interface UserDAO {
void register(User user);
User validateUser(Login login);
}
| true |
14badda4fc0a6e75ee6d7844aee6197cbaa7fabe | Java | userzxl/gsm | /src/main/java/org/zxl/utils/UtilDate.java | UTF-8 | 431 | 2.40625 | 2 | [] | no_license | package org.zxl.utils;
import java.text.SimpleDateFormat;
import java.util.Date;
/**
* Created by zxl_lls@foxmail.com on 2018/2/28.
*/
public class UtilDate {
public String getDateNow(){
Date date = new Date();
return fomatDate(date);
}
/*
* 格式化日期("yyyy-MM-dd hh:mm:ss ");
*
* */
public String fomatDate(... | true |
ee1f827d29c937da5c5180042b4ddaf0f0fad343 | Java | 1173710230/General-Wholesale-and-Retail-Business-Management-System | /src/main/java/com/example/project/service/InputOrderServiceImpl.java | UTF-8 | 2,176 | 2.171875 | 2 | [] | no_license | package com.example.project.service;
import com.example.project.dao.*;
import com.example.project.domain.Goods;
import com.example.project.domain.InputOrder;
import com.example.project.domain.Warehouse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
impor... | true |
5c3ace3127f14a700d1e108510cfa79912327f10 | Java | LesterAGarciaA97/EstructuraDeDatosI | /EstructuraDeDatosI-Tareas/Tarea 04/HeapImpl/src/heapimpl/HeapImpl.java | UTF-8 | 2,526 | 3.5625 | 4 | [] | no_license | package heapimpl;
import java.util.ArrayList;
public class HeapImpl {
private ArrayList<Integer> Lista;
public static void main(String[] args) {
}
public HeapImpl(ArrayList<Integer> items) {
this.Lista = items;
ArmarHeap();
}
public void Insertar(int dato) {
Lista.... | true |
ab446973a088f7fc0306ff2e7f48d48a15eef983 | Java | cha63506/library-343 | /src/edu/sjsu/library/member/model/Due.java | UTF-8 | 1,414 | 2.625 | 3 | [] | no_license | package edu.sjsu.library.member.model;
import java.io.Serializable;
import java.util.Date;
/**
* Created with IntelliJ IDEA.
* User: simmathew
* Date: 8/4/14
* Time: 10:08 PM
* To change this template use File | Settings | File Templates.
*/
public class Due implements Serializable{
private static final lon... | true |