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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
2dd431ff954cbd2b8f443e79e0df4843473d0105 | Java | AdityaSubrahmanyaBhat/hacktoberfest-2021 | /inPlaceMergeSort.java | UTF-8 | 1,039 | 3.28125 | 3 | [
"Unlicense"
] | permissive | package com.company;
import java.util.Arrays;
public class inPlaceMergeSort {
public static void main(String[] args) {
int[] arr={4,2,1,3,7,5,6,9,8,10,13,12,11,15,16,14};
sort(arr,0,arr.length);
System.out.println(Arrays.toString(arr));
}
static void sort(int[] arr,int s,int ... | true |
32c8fdf35165a440e3911eedfc94e58a034df5bd | Java | Arshle/SSM | /javaweb/src/main/java/com/mychebao/javaweb/ProductList.java | UTF-8 | 1,443 | 2.828125 | 3 | [] | no_license | /*
* Copyright (C), 2014-2017, 江苏乐博国际投资发展有限公司
* FileName: ProductList.java
* Author: zhangdanji
* Date: 2017年09月22日
* Description:
*/
package com.mychebao.javaweb;
import java.util.ArrayList;
import java.util.List;
import java.util.Observable;
import java.util.Observer;
/**
* @author zhangdanji
*/
pu... | true |
f5ff9da2e0270c5a2c66a08e8338115fc7905f32 | Java | sridharreddych/Core_Java_CP | /CompletableFuture.getNow/src/com/sree/util/concurrent/CompletableFutureFourExample.java | UTF-8 | 670 | 3.21875 | 3 | [] | no_license | package com.sree.util.concurrent;
import java.util.Arrays;
import java.util.List;
import java.util.concurrent.CompletableFuture;
/**
* @author Sridhar reddy CompletableFuture.getNow getNow is a method that if
* calling completion stage is not completed then the value passed to
* getNow will be set ... | true |
478b7e0693b2f816d6fc0f02b10ac967626a036c | Java | codegard/rating-service | /backend/src/test/java/com/rataj/ratingservice/service/MovieDtoFactoryTest.java | UTF-8 | 928 | 2.5625 | 3 | [] | no_license | package com.rataj.ratingservice.service;
import com.rataj.ratingservice.model.Genre;
import com.rataj.ratingservice.model.Movie;
import com.rataj.ratingservice.model.MovieDto;
import org.junit.jupiter.api.Test;
import java.time.LocalDate;
import static org.assertj.core.api.Assertions.assertThat;
class MovieDtoFacto... | true |
e3c478e7722d0c2f0b0c2bc45b457e0869b793d2 | Java | potarichard/designpatterns | /src/state_pattern/Channel.java | UTF-8 | 285 | 2.78125 | 3 | [] | no_license | package state_pattern;
public class Channel implements State
{
@Override
public void pressSwitch(TV context)
{
System.out.println("If tv is on i go stream mode");
if(context.getOffOnState().getClass().isInstance(On.class))
context.stream_state = new Stream();
}
}
| true |
5903351105b4e5c40842e88c850706165c8c0b9d | Java | saber13812002/DeepCRM | /Code Snippet Repository/Jetty/Jetty4854.java | UTF-8 | 278 | 2.953125 | 3 | [] | no_license | public String formatNow(long now)
{
long seconds = now / 1000;
Tick tick=_tick;
// Is this the cached time
if (tick!=null && tick._seconds==seconds)
return tick._string;
return formatTick(now)._string;
}
| true |
e2a9d3dbf9161e223e0647f5891ce549f51e8dbb | Java | ilanacabral/dio-8 | /shoppingcard/src/main/java/br/diolabs/shoppingcard/service/CarrinhoService.java | UTF-8 | 1,063 | 2.359375 | 2 | [] | no_license | package br.diolabs.shoppingcard.service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import br.diolabs.shoppingcard.repository.CarrinhoRepository;
import br.diolabs.shoppingcard.model.Carrinho;
import br.diolabs.shoppingcard.model.Item;
import java.ut... | true |
b0426f944f66aaa9f17ba79015b6faf9df7fa5f2 | Java | cloudlens/cloudlens | /src/cloudlens/engine/PipelineStageMatch.java | UTF-8 | 1,417 | 1.601563 | 2 | [
"Apache-2.0"
] | permissive | /*
* This file is part of the CloudLens project.
*
* Copyright 2015-2018 IBM Corporation
*
* 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... | true |
f5ccb1c94db9c4dc5588b847306a18331c8168f2 | Java | taimurkhan792/cabinet-plugin-framework | /library/src/main/java/com/afollestad/cabinet/plugins/PluginAuthenticator.java | UTF-8 | 6,362 | 2.328125 | 2 | [] | no_license | package com.afollestad.cabinet.plugins;
import android.annotation.SuppressLint;
import android.content.ComponentName;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
/**
* ... | true |
a443cfcd861eb5924e46e1314776634a3ecfe5a6 | Java | umranium/LiveMonitor-Mirror | /appserver-wkspc/TestUpload/src/au/csiro/mapmymaps/ReusableNameValuePairMap.java | UTF-8 | 1,307 | 2.875 | 3 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package au.csiro.mapmymaps;
import java.util.ArrayList;
import java.util.Comparator;
import java.util.List;
import java.util.Map;
import java.util.TreeMap;
/**
*
* @author abd01c
*/
public class ReusableNameValuePai... | true |
bac9b84b7d87f919f9e72f1a03ca8744b3da7b26 | Java | unichain/unichain-framework | /unichain-orm/unichain-orm-core/src/main/java/tech/unichain/framework/orm/core/ObjectWrapper.java | UTF-8 | 1,631 | 2.46875 | 2 | [] | no_license | /*
* Copyright 2016 http://github.com/hs-web
*
* 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 ... | true |
4c6dc649f71d26a3f91fa1ab0b4dec5756087993 | Java | emarchiori/eadventure | /core/engine-android/src/ead/engine/android/gl/GLImage.java | UTF-8 | 5,172 | 1.96875 | 2 | [] | no_license | /**
* eAdventure (formerly <e-Adventure> and <e-Game>) is a research project of the
* <e-UCM> research group.
*
* Copyright 2005-2010 <e-UCM> research group.
*
* You can access a list of all the contributors to eAdventure at:
* http://e-adventure.e-ucm.es/contributors
*
* <e-UCM> ... | true |
777c4ed0653670d79acfa7b667f6107fc29bdd2b | Java | Semki-v2/DutchTreat | /Server/src/main/java/org/semki/dutchtreat/mvc/dto/RESTFaultDTO.java | UTF-8 | 93 | 1.59375 | 2 | [] | no_license | package org.semki.dutchtreat.mvc.dto;
public class RESTFaultDTO {
public String Message;
}
| true |
2ff1e00333edf208617d6af10bf2181f3cdc6fb8 | Java | fedemazz/MyMo | /app/src/main/java/com/prova/promemorialong/ModifyTaskActivity.java | UTF-8 | 9,847 | 2.265625 | 2 | [] | no_license | package com.prova.promemorialong;
import android.app.DatePickerDialog;
import android.app.TimePickerDialog;
import android.database.Cursor;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
import android.util.Log;
import android.view.Menu;
import andr... | true |
22c82d0de170292a90e05d08374d68cd4b4336c2 | Java | xiaowanziwuha2/eladmin | /eladmin-system/src/main/java/me/zhengjie/modules/system/service/impl/TestServiceImpl.java | UTF-8 | 2,560 | 1.921875 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2019-2020 Zheng Jie
*
* 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 agree... | true |
f5b7a05008e0803c31f5f62178af2121a7a794b1 | Java | Jokeren/Concurrent-Data-Structures | /src/com/jokeren/concurrent/structures/bst/TicketNodeBST.java | UTF-8 | 4,475 | 2.890625 | 3 | [] | no_license | package com.jokeren.concurrent.structures.bst;
import java.util.Collection;
import java.util.Map;
import java.util.Set;
public class TicketNodeBST<K, V> implements Map<K, V> {
LazyNode root;
public TicketNodeBST() {
root = new LazyNode(Integer.MAX_VALUE, null, null, null,
NodeType.INTERNAL, new TicketLock())... | true |
2a651afc22ca664cdae4b16470a02083948354d7 | Java | ms0017/Library | /src/Librarian.java | UTF-8 | 2,133 | 2.984375 | 3 | [] | no_license | //////////////////// ALL ASSIGNMENTS INCLUDE THIS SECTION /////////////////////
//
// Title: Book Library: Project 3
// Files:
// Course: CS 300, Spring '19
//
// Author: Sheriff Issaka
// Email: issaka@wisc.edu
// Lecturer's Name: Gary Dahl
//
//////////////////// PAIR PROGRAMMERS COMPLETE THIS SECTION ///////////////... | true |
e1251643f59c630e77304e4b6201dd4b14eb2eb1 | Java | lorishui/ckhd | /Vest/.svn/pristine/e1/e1251643f59c630e77304e4b6201dd4b14eb2eb1.svn-base | UTF-8 | 11,420 | 1.859375 | 2 | [] | no_license | /**
* Copyright © 2015-2018 <a href="http://www.ckhd.me/">创酷互动</a> All rights reserved.
*/
package me.ckhd.opengame.sys.web;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
import javax.servlet.http.Ht... | true |
abf6fff9357d7cea5ccb56c3ffb2ca0b1b218c23 | Java | ratsagi/HelloWorldWithJava | /NumbersAndMath.java | UTF-8 | 817 | 4 | 4 | [] | no_license | public class NumbersAndMath{
public static void main(String[] args) {
System.out.println("I will now count my chickens:");
System.out.println("Hens"+(25.0+30.0/6.0)); // it divides 30.0 and 6.0 then adds the 25.0
System.out.println("Now I will count the eggs");
System.out.println(3.0+2.0+1.0-5.0+4.0%2.0... | true |
5c62e73c6f9c4317fbe90275d27a19fc401edcf1 | Java | demoyordanov/Defense_System | /DefenseSystem/src/defenseSystem/Game.java | UTF-8 | 1,131 | 2.671875 | 3 | [] | no_license | package defenseSystem;
import javax.swing.JFrame;
import defenseSystem_levels.Hub;
import java.awt.EventQueue;
//program executes from this file
public class Game extends JFrame{
public static int testInt = 0; //for testing purposes, -* to be removed
public enum gameState //game states
{
menu, levelOn... | true |
4ad9e88495d044b62638ab2bfbf7ff0e11ae086d | Java | Squido-code/Agenda_telefono | /src/main/java/com/guillermo/agenda/beans/Persona.java | UTF-8 | 2,064 | 2.53125 | 3 | [] | no_license | package com.guillermo.agenda.beans;
import java.util.ArrayList;
/**
* @author squid
*/
public class Persona {
private int idPersona = -1;
private String nombre;
private String apellidos;
private ArrayList<Telefono> telefono;
private String direccion;
private String codigo_postal;
private... | true |
87ab11c9a6f64676feee728abe312c571faef32c | Java | Lably-Team/WroxBedwars | /src/main/java/me/shadowrg/wroxbedwars/loader/file/FileManager.java | UTF-8 | 2,435 | 2.65625 | 3 | [
"MIT"
] | permissive | package me.shadowrg.wroxbedwars.loader.file;
import org.bukkit.ChatColor;
import org.bukkit.configuration.InvalidConfigurationException;
import org.bukkit.configuration.file.YamlConfiguration;
import org.bukkit.plugin.Plugin;
import java.io.File;
import java.io.IOException;
import java.util.logging.Level;
public cla... | true |
dc55e90561b082f3bb1cd10111fbaca2ededbea8 | Java | gejutaixiao/suanfas | /src/main/java/leetcode/suanfa/leetcode/_222.java | UTF-8 | 1,138 | 3.53125 | 4 | [] | no_license | package leetcode.suanfa.leetcode;
import leetcode.suanfa.leetcode.treenode.TreeNode;
public class _222 {
//完全二叉树的节点个数
//https://leetcode-cn.com/tag/tree/problemset/
/**
* 给你一棵 完全二叉树 的根节点 root ,求出该树的节点个数。
*
* 完全二叉树 的定义如下:在完全二叉树中,除了最底层节点可能没填满外,其余每层节点数都达到最大值,并且最下面一层的节点都集中在该层最左边的若干位置。
* ... | true |
8cc4340426d128c000355794255ea2c5f6009fbe | Java | MoritzGoeckel/Kademlia | /src/main/java/com/moritzgoeckel/kademlia/KademliaAPI.java | UTF-8 | 377 | 2.53125 | 3 | [] | no_license | package com.moritzgoeckel.kademlia;
/** User interface for the Kademlia node */
public interface KademliaAPI {
/** Stores a key value pair in the network */
void setValue(String key, String value, int k);
/** Returns the value for a key */
String getValue(String key, int k);
/** Shuts the node d... | true |
83587e9568adcca95cf9bfde0797cfa5c5980881 | Java | panzhixuan/cookbook-app | /app/src/main/java/com/example/cookbook/util/SendSms.java | UTF-8 | 2,853 | 2.609375 | 3 | [] | no_license | package com.example.cookbook.util;
import com.aliyuncs.CommonRequest;
import com.aliyuncs.CommonResponse;
import com.aliyuncs.DefaultAcsClient;
import com.aliyuncs.IAcsClient;
import com.aliyuncs.exceptions.ClientException;
import com.aliyuncs.exceptions.ServerException;
import com.aliyuncs.http.MethodType;
import com... | true |
484c851b8b0283557a9df45cdfb47188ebb16aa4 | Java | chathuranga-topra/SPC | /SPC_customization/client/src/org/topraworld/pos/Requisition.java | UTF-8 | 19,198 | 2.140625 | 2 | [] | no_license | package org.topraworld.pos;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.math.BigDecimal;
import javax.swing.JDialog;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JScrollBar;
import javax.swing.JScrollPane;
imp... | true |
fc4b4183bb0d566bb0dc0bbb3febe6e545f6c601 | Java | vaadin-learning-center/GridTutorial_01_Basics | /src/main/java/org/vaadin/sebastian/model/Person.java | UTF-8 | 1,123 | 2.8125 | 3 | [] | no_license | package org.vaadin.sebastian.model;
public class Person {
public enum Gender {MALE, FEMALE};
private Gender gender;
private String name ;
private String firstName;
private Address address;
public Person(Gender gender, String name, String firstName) {
this.gender = gender;
thi... | true |
e0ccfac1e4e8e8af219efeb004b584403a21a1c0 | Java | RakickayaKaterina/Catland | /model/src/main/java/com/bolkunets/kate/catland/model/Bargain.java | UTF-8 | 1,437 | 2.25 | 2 | [
"Apache-2.0"
] | permissive | package com.bolkunets.kate.catland.model;
import javax.persistence.*;
import java.time.LocalDate;
@Entity
public class Bargain {
@Id
@Column(name = "bargain_id")
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;
@Column(name = "bargain_date", nullable = false)
private LocalD... | true |
221a30ba525de6adaf89e85de2370d6ac73c7e9f | Java | EISNttdata/EIS-Direct-Code | /EIS_Demo_Merge/src/main/java/com/dell/dims/Model/CallProcessActivity.java | UTF-8 | 1,684 | 2.390625 | 2 | [] | no_license |
package com.dell.dims.Model;
import com.dell.dims.gop.ProcessDefinition;
import java.util.ArrayList;
import java.util.List;
public class CallProcessActivity extends Activity
{
private String processName;
private TibcoBWProcess tibcoProcessToCall;
//it contains subprocess
private ProcessDefinition s... | true |
b40d4253877a1d138a202aba2922ea370f04af78 | Java | Na-roo/PC-KIOSK | /src/project1/nonmember/NonmemberDao.java | UHC | 3,689 | 2.953125 | 3 | [] | no_license | package project1.nonmember;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.util.ArrayList;
import project1.member.Member;
public class NonmemberDao {
private File nonmemberFile;
public Nonme... | true |
b83789e548314fffc52bf1918119740395d2dc84 | Java | iourilitv/gb-java-ee-course | /lesson6-app/src/main/java/gb/lesson6/repositories/interfaces/IProductRepository.java | UTF-8 | 571 | 2.125 | 2 | [] | no_license | package gb.lesson6.repositories.interfaces;
import gb.lesson6.entities.Product;
import gb.lesson6.reprentities.ProductRepr;
import javax.ejb.Local;
import java.io.Serializable;
import java.util.List;
import java.util.Optional;
@Local
public interface IProductRepository extends Serializable {
void insert(Product... | true |
798faf50e4cfced480b398695aa1ee3f5592aa4f | Java | barisoztop/pp12-636 | /MembranePony/src/predictor/markov/classifier/ClassifierModBayes.java | UTF-8 | 1,328 | 2.71875 | 3 | [] | no_license | package predictor.markov.classifier;
import java.util.List;
import org.apache.log4j.Logger;
import predictor.markov.graph.Edge;
/**
* naive bayes somehow modified to work with non-double values
*
* @author greil
*/
public final class ClassifierModBayes extends Classifier {
public ClassifierModBayes(List<Edge> l... | true |
876e966bf8c241bd97f77f585b1dbb2b6eb7bd0d | Java | prasath515/Playground | /Area of Square/Main.java | UTF-8 | 230 | 2.84375 | 3 | [] | no_license | import java.util.Scanner;
class Main {
public static void main (String[] args) {
// Type your code here
Scanner in =new Scanner(System.in);
int a=in.nextInt();
int sqr=a*a;
System.out.println(sqr) ;
}
} | true |
687fbbf55047e30f59c15ce059b3bd2cb2f747f2 | Java | wildfly/wildfly-common | /src/main/java/org/wildfly/common/iteration/Base16EncodingCodePointIterator.java | UTF-8 | 2,750 | 2.25 | 2 | [
"Apache-2.0"
] | permissive | /*
* JBoss, Home of Professional Open Source.
* Copyright 2017 Red Hat, Inc., and individual contributors
* as indicated by the @author tags.
*
* 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 Licen... | true |
c804fed4d054db33e30faaadaf614b0010907f1e | Java | henrymcarvajal/pipesTest | /src/main/java/com/ayax/website/procesos/AdminFactura.java | UTF-8 | 2,838 | 2.03125 | 2 | [
"MIT"
] | permissive | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.ayax.website.procesos;
import com.ayax.website.persistencia.entidades.Factura;
import com.ayax.website.persistencia.fachad... | true |
ddcbf808aa1443c8927db7003936a62262d4feb3 | Java | treysullivent/capstone_build_status_webapp | /log_parser/OLD/Parser0.java | UTF-8 | 4,110 | 3.3125 | 3 | [] | no_license | import java.io.File;
import java.io.FileNotFoundException;
import java.util.Scanner;
import java.util.ArrayList;
public class Parser
{
public static void main(String[] args) throws FileNotFoundException
{
String fileName = args[0];
String data = ReadFile(fileName);
String[] cs... | true |
1fd41fc5bb0532644f64c8f7f25a44f00fdf75de | Java | yeputons/ofeed | /src/net/yeputons/ofeed/db/CachedUser.java | UTF-8 | 850 | 2.0625 | 2 | [
"MIT"
] | permissive | package net.yeputons.ofeed.db;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;
import com.vk.sdk.api.model.VKApiUser;
@DatabaseTable(tableName = "users")
public class CachedUser {
@Data... | true |
51fc2f060fe9535d0020bf8ce4e0c065476f6f9c | Java | wso2/identity-api-user | /components/org.wso2.carbon.identity.api.user.session/org.wso2.carbon.identity.api.user.session.v1/src/main/java/org/wso2/carbon/identity/rest/api/user/session/v1/impl/UserIdApiServiceImpl.java | UTF-8 | 5,414 | 1.742188 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright (c) 2019, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. licenses this file to you 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/li... | true |
893a78a005c1936855eeee2659bb70373b7afc56 | Java | derden2000/PKCS7-Secure-Client | /src/main/java/pro/antonshu/client/services/pkcs7/PKCS7Signer.java | UTF-8 | 810 | 2.046875 | 2 | [] | no_license | package pro.antonshu.client.services.pkcs7;
import org.bouncycastle.cms.CMSProcessableByteArray;
import org.bouncycastle.cms.CMSSignedData;
import org.bouncycastle.cms.CMSSignedDataGenerator;
import org.bouncycastle.cms.CMSTypedData;
import org.springframework.beans.factory.annotation.Autowired;
import org.springfram... | true |
2b1704333fdb2d0a5bc0286c2d7316bb831b9965 | Java | microjunk/More-Than-Just-Trees | /microjunk/trees/common/mobs/ModelGoat.java | UTF-8 | 4,229 | 2.21875 | 2 | [] | no_license | package microjunk.trees.common.mobs;
import net.minecraft.client.model.ModelQuadruped;
import net.minecraft.client.model.ModelRenderer;
import net.minecraft.entity.Entity;
public class ModelGoat extends ModelQuadruped
{
public ModelGoat()
{
super(0, 0.0F);
Tail = new ModelRenderer(this, 0, 0)... | true |
51a6d6e070a550cb174473f56ea0414faebd3c98 | Java | tk0720/javaStudy | /180213/src/com/ex/day180213/ArrayCopyEX.java | UTF-8 | 798 | 3.890625 | 4 | [] | no_license | package com.ex.day180213;
public class ArrayCopyEX {
public static void main(String[] args) {
// 배열 복사
byte[] ar1 = {11,22,33,44,55};
byte[] ar2 = new byte[10]; // 배열 10개짜리 생성, 초기값 0으로 모든 요소에 채워짐
System.arraycopy(ar1, 0, ar2, 3, 5);
// 배열 복사
// 소스 배열, 소스 배열의 복사 시작 위치, 전송처 배열, 전송처 배열의 복사 시작 위치, 복사되는 배열... | true |
8d748647108e44cf05c1f594a9a505f38a2a0339 | Java | mildrock/cs_mini | /src/com/dearho/cs/carservice/pojo/CarInsurance.java | UTF-8 | 11,560 | 1.828125 | 2 | [] | no_license | package com.dearho.cs.carservice.pojo;
import java.io.Serializable;
import java.util.Date;
import org.apache.commons.lang.StringUtils;
import com.dearho.cs.sys.pojo.Dict;
import com.dearho.cs.sys.pojo.FieldComment;
import com.dearho.cs.sys.util.DictUtil;
/**
* @author GaoYunpeng
* @Description 车辆保险
... | true |
75d9c346ff22bf4ec1c19b003645d03bb9c25c5f | Java | javimayer14/financiera | /src/main/java/com/financial/exchange/market/controller/OperationRestController.java | UTF-8 | 5,017 | 2.03125 | 2 | [] | no_license | package com.financial.exchange.market.controller;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;
import org.springframework.data.domai... | true |
288601b5731322cdc9142b868d909e5270ebc96e | Java | cpritam91/Pritam_GIT | /HandsOnDay1/src/Inheritence/MediaApplication.java | UTF-8 | 967 | 3.09375 | 3 | [] | no_license | package Inheritence;
import java.util.Scanner;
public class MediaApplication {
public static void main(String[] args) {
Book b1 = new Book("I too had a Love Story","IFB1234",20);
Periodical p1 = new Periodical("Nature","Next Gen Communication",312,15);
Dvd d1 = new Dvd("Anaconda",120,32);
Book... | true |
e9d5b1a17db51267e0ea4d7a38807d3f3ce27d4c | Java | nastya11672/kursach | /src/main/java/by/devilmice/servlets/OrderServlet.java | UTF-8 | 3,424 | 2.25 | 2 | [] | no_license | package by.devilmice.servlets;
import by.devilmice.dao.NotebookDAO;
import by.devilmice.dao.OrderDAO;
import by.devilmice.dao.UserDAO;
import by.devilmice.model.NotebookEntity;
import by.devilmice.model.OrdersEntity;
import by.devilmice.model.UsersEntity;
import javax.servlet.ServletException;
import javax.servlet.an... | true |
eb6cc062059e2f2ba9f7853369726ee96b0abad8 | Java | MozilRoman/managerOrders | /src/main/java/com/softserve/edu/items/services/OrderServise.java | UTF-8 | 1,514 | 2.546875 | 3 | [] | no_license | package com.softserve.edu.items.services;
import com.softserve.edu.items.dao.OrderDao;
import com.softserve.edu.items.dto.OrderDto;
import com.softserve.edu.items.entity.Order;
public class OrderServise {
private OrderDao orderDao;
public OrderServise() {
this.orderDao = new OrderDao();
}
public OrderServise... | true |
85b2f2366d8d370aef5ad573ebe8011e93a6cf26 | Java | Alsan/turing-chunk07 | /components/analytics/org.wso2.carbon.analytics.hive/4.2.0/src/main/java/org/wso2/carbon/analytics/hive/dto/ScriptResult.java | UTF-8 | 1,263 | 1.929688 | 2 | [] | no_license | /**
* Copyright (c) 2009, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* 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
*
* Unle... | true |
f531161476cc914c6a11c31781f95d7dd3edb34f | Java | xtayicy/RWSeparation | /src/test/java/harry/datasource/DataSourceType.java | UTF-8 | 571 | 2.78125 | 3 | [] | no_license | package harry.datasource;
/**
*
* @author harry
*
*/
public class DataSourceType {
private static final ThreadLocal<ReadWriteEnum> THREAD_LOCAL = new ThreadLocal<ReadWriteEnum>();
static{
THREAD_LOCAL.set(ReadWriteEnum.WRITE);
}
public static void setReadOperation(){
THREAD_LOCAL.set(Re... | true |
1718070dd82a7238927939ac5cc53c22d1bd075e | Java | tarma-3/FunnyLanguage | /src/main/java/parser/PrintExpr.java | UTF-8 | 583 | 2.953125 | 3 | [] | no_license | package parser;
import tokenizer.Token;
import java.util.ArrayList;
public class PrintExpr extends Expr {
Token.TYPE print;
ExprList expression;
public PrintExpr(Token.TYPE print, ExprList expression) {
this.print = print;
this.expression = expression;
}
@Override
public Val... | true |
aed48fc92dcff7f2471128029db63e296da2a5e2 | Java | gsw1990/gsw_micro_order_service | /microserviceorder/microserviceorder-consumer-feign/src/main/java/com/orderservice/order/OrderConcumerFeign_App.java | UTF-8 | 691 | 1.773438 | 2 | [] | no_license | package com.orderservice.order;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.feign.EnableFeignClients;
import org.springframework.conte... | true |
06641386771a6616fcc90e38863f525ed04160e4 | Java | naveengiraboina/AB-Remote-Wallpaper-Changer | /app/src/main/java/in/thetechguru/walle/remote/abremotewallpaperchanger/preferences/Preferences.java | UTF-8 | 1,302 | 2.296875 | 2 | [
"Apache-2.0"
] | permissive | package in.thetechguru.walle.remote.abremotewallpaperchanger.preferences;
import android.content.Context;
import android.preference.PreferenceManager;
public class Preferences {
public static boolean isAdsRemoved(Context context){
return get(context, "is_ad_removed",false);
}
public static void ... | true |
fb836d697950bf45c83d97be17a81b8fc2fca40d | Java | Sage-Pierce/grapp | /codegas-security/src/main/java/org/codegas/security/service_impl/factory/UserDtoFactory.java | UTF-8 | 838 | 2.4375 | 2 | [] | no_license | package org.codegas.security.service_impl.factory;
import java.util.Map;
import java.util.function.Supplier;
import java.util.stream.Collectors;
import org.codegas.security.domain.entity.User;
import org.codegas.security.service.dto.UserDto;
public final class UserDtoFactory {
private UserDtoFactory() {
}
... | true |
73abae2a2288d0cbcca9e4cb00937f183574bbb1 | Java | Programito/Projecto1 | /projecto1/src/main/java/com/projecto/n1/projecto1/business/Greeting.java | UTF-8 | 2,065 | 2.890625 | 3 | [] | no_license | package com.projecto.n1.projecto1.business;
import java.util.Date;
import javax.ejb.Stateless;
import com.projecto.n1.projecto1.domain.Cilindro;
import com.projecto.n1.projecto1.domain.Cono;
import com.projecto.n1.projecto1.domain.Cubo;
import com.projecto.n1.projecto1.domain.Esfera;
import com.projecto.n1... | true |
ec979b058f09c5383504a3372bce0c40f82863d4 | Java | anterostecnologia/anteroshelpme | /src/br/com/anteros/helpme/model/Views.java | UTF-8 | 1,611 | 2.546875 | 3 | [] | no_license | package br.com.anteros.helpme.model;
import java.util.Arrays;
import org.eclipse.swt.graphics.Image;
import br.com.anteros.helpme.AnterosHelpmePlugin;
import br.com.anteros.helpme.treeviewer.IObjectNode;
import br.com.anteros.helpme.treeviewer.TreeNode;
public class Views extends TreeNode {
public sta... | true |
00ef22a2e8bb8f9e92e756dc1d5b11fecea4064d | Java | kmramanathan/springapp-ss | /src/springapp/repository/jdbc/JdbcInvoiceDao.java | UTF-8 | 4,974 | 2.328125 | 2 | [] | no_license | package springapp.repository.jdbc;
import java.util.List;
import org.springframework.dao.EmptyResultDataAccessException;
import org.springframework.jdbc.core.namedparam.BeanPropertySqlParameterSource;
import org.springframework.jdbc.core.namedparam.MapSqlParameterSource;
import org.springframework.jdbc.core.na... | true |
7231add3c07172cefbe5f328daa5a4dba05f85be | Java | andrysunandarbl/timetablepk | /timetablepk/src/main/java/eu/paniw/timetable/domain/entity/Teacher.java | UTF-8 | 1,998 | 2.421875 | 2 | [] | no_license | package eu.paniw.timetable.domain.entity;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.pe... | true |
8f72b6b6e24bc22a38e6567f52c1fb4218b26b6b | Java | pabloivan57/InterviewPrep | /src/com/pablan/leetcode/collection/google/medium/TheMazeII.java | UTF-8 | 4,615 | 3.953125 | 4 | [] | no_license | package com.pablan.leetcode.collection.google.medium;
import java.util.Arrays;
import java.util.LinkedList;
import java.util.Queue;
public class TheMazeII {
/**
* There is a ball in a maze with empty spaces and walls. The ball can go through empty spaces by rolling up, down,
* left or right, but it w... | true |
efd0bd2719043962fa8bdf7a2d448feb93926df4 | Java | ezakrutnyy/pattern | /src/ru/pattern/creational/factorymethod/CivilizationCreateUnitRunner.java | UTF-8 | 2,215 | 3.796875 | 4 | [] | no_license | package ru.pattern.creational.factorymethod;
import java.util.ArrayList;
import java.util.List;
/**
* Created by Евгений on 29.12.2016.
*/
public class CivilizationCreateUnitRunner {
public static void main(String[] args) throws Exception {
List<TypeUnit> units = new ArrayList<>();
FactoryMake... | true |
7a1f6f608c35b1042126a7f5eebd7a621c02e871 | Java | githubLixiaoyu/lmsclient | /src/main/java/com/zxtech/ui/vo/bbs/TBbsType.java | UTF-8 | 828 | 2.015625 | 2 | [] | no_license | package com.zxtech.ui.vo.bbs;
public class TBbsType {
private Integer id;
private String typeName;
private String typeNameEn;
private String createUser;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public String getT... | true |
45e1fcba7280116ba1f329491a292cfad942f164 | Java | and146/SPLAT-ARI | /ttools/src/main/uk/ac/starlink/ttools/plot2/geom/TimeDataGeom.java | UTF-8 | 1,735 | 2.859375 | 3 | [] | no_license | package uk.ac.starlink.ttools.plot2.geom;
import uk.ac.starlink.ttools.plot2.DataGeom;
import uk.ac.starlink.ttools.plot2.data.Coord;
import uk.ac.starlink.ttools.plot2.data.FloatingCoord;
import uk.ac.starlink.ttools.plot2.data.TupleSequence;
/**
* Defines positional data coordinates used by a 2-D time plot.
*
* ... | true |
39570547e6b695e91e703ec70edeb02207e8f96b | Java | zt1115798334/springboot-opinion | /src/main/java/com/zt/opinion/dao/impl/ArticleMorphiaSearchDaoImpl.java | UTF-8 | 1,800 | 2.234375 | 2 | [] | no_license | package com.zt.opinion.dao.impl;
import com.zt.opinion.base.entity.PageResult;
import com.zt.opinion.dao.ArticleMorphiaSearchDao;
import com.zt.opinion.dao.DataStoreFactory;
import com.zt.opinion.mongodb.entity.ArticleMorphia;
import org.bson.types.ObjectId;
import org.mongodb.morphia.query.Query;
import org.mongodb.m... | true |
7d8e95e3bd479f76ab701e85ddaf850b8bb66fca | Java | tdsoft/Github-Tharndu | /ParalexViewPagerTest/app/src/main/java/com/android/tdsoft/paralexviewpagertest/MyPagerAdapter.java | UTF-8 | 1,425 | 2.34375 | 2 | [] | no_license | package com.android.tdsoft.paralexviewpagertest;
import android.content.Context;
import android.support.v4.view.PagerAdapter;
import android.support.v4.view.ViewPager;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.Rel... | true |
b655919c7a0232a2720b7d2e468ba457fa569a85 | Java | jhj24/TreeData | /app/src/main/java/com/jhj/treedata/bean/ChannelTreeBean.java | UTF-8 | 1,835 | 2.109375 | 2 | [] | no_license | package com.jhj.treedata.bean;
import com.jhj.datalibrary.model.BaseTree;
import java.util.List;
/**
* Created by jhj on 17-9-7.
*/
public class ChannelTreeBean extends BaseTree<ChannelTreeBean> {
private int id;
private int pid;
private int org;
private int sort;
private List<ChannelTreeBea... | true |
f2f140a78cc02e24d27b4e9abecabb88094ba2d3 | Java | TSRTQUAD/Kvadda | /src/kvaddakopter/interfaces/ControlMainBusInterface.java | UTF-8 | 626 | 1.921875 | 2 | [] | no_license | package kvaddakopter.interfaces;
import kvaddakopter.assignment_planer.MissionObject;
import kvaddakopter.communication.QuadData;
import kvaddakopter.control_module.signals.ControlSignal;
public interface ControlMainBusInterface {
public QuadData getQuadData();
public MissionObject getMissionObject();
public void... | true |
44b6cf6ec8c7e37bd37eed5d1f0622ac55a6f511 | Java | dobesv/banjo-lang | /src/main/java/banjo/expr/core/TestAndExampleGatherer.java | UTF-8 | 2,789 | 2.40625 | 2 | [] | no_license | package banjo.expr.core;
import banjo.expr.token.Identifier;
import fj.P2;
import fj.data.List;
import fj.data.Set;
public class TestAndExampleGatherer {
private static class TestFindingCoreExprVisitor extends BaseCoreExprVisitor<Set<CoreExpr>> {
@Override
public Set<CoreExpr> fallback() {
return... | true |
fe62a07b9cbf8c3a006408ec41ed443e4c9e08c3 | Java | cengizgoren/facebook_apk_crack | /app/com/facebook/orca/common/util/Clock.java | UTF-8 | 289 | 1.585938 | 2 | [] | no_license | package com.facebook.orca.common.util;
public abstract interface Clock
{
public abstract long a();
}
/* Location: /data1/software/jd-gui/com.facebook.katana_2.0_liqucn.com-dex2jar.jar
* Qualified Name: com.facebook.orca.common.util.Clock
* JD-Core Version: 0.6.0
*/ | true |
790868ff16771a246323c0727d10457152eb878d | Java | SangHun-OH/Java-Practice | /Week 3 Palindrome/PalinMethod.java | UTF-8 | 839 | 3.703125 | 4 | [] | no_license |
public class PalinMethod {
int count = 1;
public int CountAmount(int nNum)
{
if(nNum == -1)
{
System.out.println("Bye!");
return -1;
}
while(nNum/10 != 0)
{
nNum /= 10;
count += 1;
}
return count;
}
public void SplitNum(int counter, int nNum)
{
for(int i=0; i<counter/2; i... | true |
9b37faf49dfc449f3b937ce7b038d229b2607a70 | Java | MovingBlocks/Terasology | /engine/src/main/java/org/terasology/engine/rendering/nui/widgets/browser/ui/style/FallbackParagraphRenderStyle.java | UTF-8 | 4,595 | 2.234375 | 2 | [
"Apache-2.0",
"CC-BY-4.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | // Copyright 2021 The Terasology Foundation
// SPDX-License-Identifier: Apache-2.0
package org.terasology.engine.rendering.nui.widgets.browser.ui.style;
import org.terasology.nui.Color;
import org.terasology.nui.HorizontalAlign;
public class FallbackParagraphRenderStyle extends FallbackTextRenderStyle implements Para... | true |
4386e89d469154d4c25a0ccd5348bd9c8bf17692 | Java | evalton2017/hackathon | /Backend/src/test/java/br/desafio/hackathon/test/HomeTest.java | UTF-8 | 1,252 | 2.46875 | 2 | [] | no_license | package br.desafio.hackathon.test;
import java.util.List;
import java.util.Optional;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.Sprin... | true |
054f9157a8a797382df24389fa31cc77d9824159 | Java | acgist/demo | /api/api-common/api-common-data/src/main/java/com/api/data/pojo/select/Order.java | UTF-8 | 2,343 | 2.90625 | 3 | [
"BSD-3-Clause"
] | permissive | package com.api.data.pojo.select;
import java.io.Serializable;
import java.util.List;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
/**
* select - 查询排序
*/
public class Order implements Serializable {
private static final long serialVersionUID = 1L... | true |
ee1ec87c67cf73ecb543b317be2678a2a7e03c29 | Java | aritnag/microservices-usecases | /cloud-config-server/src/main/java/com/restful/webservices/config/TestJava8.java | UTF-8 | 404 | 2.328125 | 2 | [] | no_license | package com.restful.webservices.config;
import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;
public class TestJava8 {
public static void main(String[] args) {
List<String> strings = Arrays.asList("abc", "", "bc", "efg", "abcd","", "jkl");
System.out.println(strings.parallelStream... | true |
8742c326ce1b196f5d895edce29ced7879c800dc | Java | martijnbousse/ogpTaak | /ogpTaak/src/expressions/binaryExpressions/Conjunction.java | UTF-8 | 653 | 3.140625 | 3 | [] | no_license | package expressions.binaryExpressions;
import expressions.Expression;
import model.ProgramState;
import types.BooleanType;
import types.Type;
public class Conjunction extends LogicalExpression {
public Conjunction(Expression first, Expression second) {
super(first, second);
}
@Override
public Bo... | true |
a07ea5b56a6c4f652f268b2de625fb0bbb07006c | Java | xuzixiang97/community | /src/main/java/com/xuzi/community/service/LikeService.java | UTF-8 | 442 | 1.804688 | 2 | [] | no_license | package com.xuzi.community.service;
public interface LikeService {
//点赞
void like(int userId, int entityType, int entityId, int entityUserId);
//查询点赞数量
long findEntityLikeCount(int entityType, int entityId);
//查询某人对某实体的点赞状态
int findEntityLikeStatus (int userId, int entityType, int entityId);... | true |
7ce6e331317d6a2c9fb3cf6a3df3b1ea64cfa6ab | Java | HusterYP/OpenGL | /app/src/main/java/com/example/yuanping/openglpractice/object/CubeRenderer.java | UTF-8 | 4,661 | 2.15625 | 2 | [] | no_license | package com.example.yuanping.openglpractice.object;
import android.opengl.GLES20;
import android.opengl.GLException;
import android.opengl.GLSurfaceView;
import android.opengl.Matrix;
import com.example.yuanping.openglpractice.utils.ShaderUtils;
import java.nio.ByteBuffer;
import java.nio.ByteOrder;
import java.nio.... | true |
b42d9b22c7a4a737cd4f439d41042c9b044d0132 | Java | npuyan/expSystemBack | /springboot-01-login/src/main/java/com/zty/springboot01login/Mapper/CourseRequestMapper.java | UTF-8 | 654 | 1.859375 | 2 | [] | no_license | package com.zty.springboot01login.Mapper;
import com.zty.springboot01login.Pojo.CourseRequest;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;
import java.util.List;
@Mapper
@Repository
public interface CourseRequestMapper {
int deleteByPrimaryKey(Integer id);
... | true |
449f04927773bf1f93c95ee0e30a574a0414a614 | Java | yonghenglh6/hwmp2pclient2 | /src/com/aviacomm/hwmp2p/HWMP2PClient.java | UTF-8 | 5,697 | 2.09375 | 2 | [] | no_license | package com.aviacomm.hwmp2p;
import com.aviacomm.hwmp2p.sensor.SensorManager;
import com.aviacomm.hwmp2p.team.ConnectionManager;
import com.aviacomm.hwmp2p.team.ConnectionManager.MWifiDirectAP;
import com.aviacomm.hwmp2p.ui.APSelectorFragment;
import com.aviacomm.hwmp2p.ui.APSelectorFragment.ApSelectorListener;
import... | true |
d8a042624cc3c62792785c81ffca87d3234f02e7 | Java | HalitGrpnr/ShoppingCart | /src/test/java/org/project/service/DeliveryCostCalculatorServiceImplTest.java | UTF-8 | 2,832 | 2.625 | 3 | [] | no_license | package org.project.service;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
import org.mockito.InjectMocks;
import org.mockito.Mock;
import org.mockito.junit.jupiter.MockitoExtension;
import org.project.domain.Cart;
import org.project.domai... | true |
208ce4a6340242732de97137077efc03731766f1 | Java | setARget/greenwave-android | /GreenWave/src/datas/Ligne.java | WINDOWS-1252 | 2,759 | 2.765625 | 3 | [] | no_license | package datas;
import java.util.HashMap;
import android.util.Log;
import com.google.android.gms.maps.model.BitmapDescriptor;
/**
* Ligne is a bus line class
* It has stops and belongs to a certain company
* Copyright 2014 Antoine Sauray
* @author Antoine Sauray & Alexis Robin
* @version 0.2
*... | true |
db7815912788cbb38e9901c50311095295a23a06 | Java | stanislawbartkowski/javahotel | /hotel/gwtui/gwtuiclient/com/gwtmodel/table/view/table/edit/PresentationNumbEditFactory.java | UTF-8 | 1,667 | 1.757813 | 2 | [] | no_license | /*
* Copyright 2017 stanislawbartkowski@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 required by applicable law or... | true |
a876636d19defc4859771c1eaccd4e7fce2e9272 | Java | baisaikele/heihei | /app/src/main/java/com/base/utils/NetUtil.java | UTF-8 | 9,069 | 2.328125 | 2 | [] | no_license | package com.base.utils;
import java.net.InetAddress;
import java.net.NetworkInterface;
import java.net.SocketException;
import java.util.Enumeration;
import android.content.Context;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import android.net.wifi.WifiInfo;
import android.net.wifi.WifiMa... | true |
f64bb9984ec3b79395c8f2003d63177acf5c31a1 | Java | binaire10/Pacman | /kernel-core/src/main/java/fr/univ_amu/game/core/Platform.java | UTF-8 | 3,540 | 2.53125 | 3 | [] | no_license | package fr.univ_amu.game.core;
import fr.univ_amu.game.core.loader.*;
import fr.univ_amu.game.event.Event;
import fr.univ_amu.game.render.RenderCommand;
import fr.univ_amu.game.render.Texture2D;
import fr.univ_amu.game.util.Utility;
import fr.univ_amu.graph.DepthIterator;
import fr.univ_amu.graph.Node;
import java.ni... | true |
24ad7699aa70e0aa1ed1706bf6aa14fe9f162dd2 | Java | Arknighter/-SSM-Eclipse- | /Basic01/src/com/yjh/dao/CatalogDao.java | GB18030 | 1,103 | 2.21875 | 2 | [] | no_license | package com.yjh.dao;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import com.yjh.po.Catalog;
import com.yjh.po.Manager;
/**
* Catalogӿļ
*/
public interface CatalogDao {
/**
* ȫĿ
*/
public List<Catalog> findCatalogAll();
/**
* ҳȫ
*/
public List<Catalog> findCatalogAllPage(@Param(v... | true |
2157de2165ba8b01c5221509fd1b90df3931f828 | Java | takari/modello-editor | /io.takari.modello.editor.impl/src/main/java/io/takari/modello/editor/impl/ModelloPlugin.java | UTF-8 | 1,051 | 2.03125 | 2 | [] | no_license | package io.takari.modello.editor.impl;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.Status;
import org.eclipse.ui.plugin.AbstractUIPlugin;
import org.osgi.framework.BundleContext;
public class ModelloPlugin extends AbstractUIPlugin {
public static final String ID = "io.takari.mode... | true |
72f20d40c28d44b13274116670c004e9d6024fd0 | Java | BanYanEdu/banyan-web | /calista-banyan/edu-core/com/calista/banyan/provider/BanyanDbProvider.java | UTF-8 | 1,726 | 1.546875 | 2 | [] | no_license | /*****************************************************************
Copyright 2013 by Duyen Tang (tttduyen@inetcloud.vn)
Licensed under the iNet Solutions Corp.,;
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.inetcloud.vn/licenses... | true |
16572cb46de92e94e8c21e0ccfe0a3475a99392b | Java | keren123/hamake | /src/java/com/codeminders/hamake/params/JobConfParam.java | UTF-8 | 1,024 | 2.421875 | 2 | [] | no_license | package com.codeminders.hamake.params;
import org.apache.commons.lang.builder.ToStringBuilder;
import com.codeminders.hamake.context.Context;
import java.io.IOException;
public class JobConfParam implements Parameter{
private String name;
private String value;
public JobConfParam(String nam... | true |
10775dd64b0fe4dcd51c502d6de3d2373a40688b | Java | Firas-Secref/proxymCommunity_Backend | /src/main/java/com/proxymcommunity/proxymCommunity/services/PublicationService.java | UTF-8 | 3,784 | 2.375 | 2 | [] | no_license | package com.proxymcommunity.proxymCommunity.services;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.proxymcommunity.proxymCommunity.entity.Developer;
import com.proxymcommunity.proxymCommunity.entity.Publication;
import com.proxymcommunity.pro... | true |
65b4834c4e6a5eba97a97335b576319bf68c9d65 | Java | Manel-Fares/School-Management-System | /Weboss/src/weboss/Entities/Quizz.java | UTF-8 | 835 | 2.234375 | 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 weboss.Entities;
import java.util.List;
/**
*
* @author bouch
*/
public class Quizz {
private int id;
private Chap... | true |
6b0334fa491a40ec1b5e8138f9632cf8b26bb50a | Java | DKramar/Student | /src/main/java/exercises/lessonsAutomationTasks/lecture8/task2/StringBuilderReverseMethod.java | UTF-8 | 630 | 2.703125 | 3 | [] | no_license | package exercises.lessonsAutomationTasks.lecture8.task2;
public class StringBuilderReverseMethod {
// String Builder
public static String methodNameStringBuilder = "String Builder method reverse";
public static StringBuilder stringBuilderReverse(String textToReverse) {
StringBuilder toReverse = n... | true |
d9be8d87a4c803bdb8674091c96f09e5e23907c8 | Java | AllBinary/AllBinary-Platform | /j2me/J2MEJavaUtilLibraryM/src/main/java/org/allbinary/util/BasicArrayList.java | UTF-8 | 8,895 | 2.84375 | 3 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | /*
* AllBinary Open License Version 1
* Copyright (c) 1996, 2011 AllBinary
*
* By agreeing to this license you and any business entity you represent are
* legally bound to the AllBinary Open License Version 1 legal agreement.
*
* You may obtain the AllBinary Open License Version 1 legal agreement from
* AllBinary or ... | true |
98b3fe902238b7d9d20cc49b9d5220facb8dcf99 | Java | pittDeng/AJSSP | /src/ProblemGenerator.java | UTF-8 | 4,490 | 3.0625 | 3 | [] | no_license | import java.io.*;
import java.util.ArrayList;
import java.util.Random;
public class ProblemGenerator {
public static final int MAX_LEAF_FOR_SINGLE_NODE=3;
public static final int MAX_TIME=10;
public static final int HEIGHT=3;
public static final int MAX_NUMBER_FOR_SINGLE_ORDER=5;
public st... | true |
8a0d43b1f75ebd687f903f9adf8574dd88463a63 | Java | XuLw/DouBanZ | /app/src/main/java/com/zjs/example/doubanz/detail/MovieDetailActivity.java | UTF-8 | 5,821 | 1.984375 | 2 | [] | no_license | package com.zjs.example.doubanz.detail;
import android.content.Intent;
import android.graphics.Color;
import android.os.Bundle;
import android.support.design.widget.CollapsingToolbarLayout;
import android.support.v7.app.ActionBar;
import android.support.v7.widget.Toolbar;
import android.util.Log;
import android.view.V... | true |
cd455a1e43b1d6cdc420c97c6dc6178dd5cb7261 | Java | marcelomata/Bioinformatics | /TrackingPaper/src/amal/xml/Linking.java | UTF-8 | 311 | 2.03125 | 2 | [] | no_license | package amal.xml;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
@XmlRootElement(name = "Linking")
public class Linking {
@XmlElement(name="FeaturePenalties")
private FeaturePenalties penalties;
public Linking() {
penalties= new FeaturePenalties();
}
}
| true |
0ee138a9b9815d3571b8b0040a99f0f659b535d4 | Java | liveqmock/EssencePro | /src/com/util/FileUtil.java | UTF-8 | 17,075 | 2.640625 | 3 | [] | no_license | package com.util;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.text.DecimalFormat;
import java.util.ArrayList;
import java.util.Calend... | true |
09b0a7f8b7c0302f319482baec8ef23e157d56b9 | Java | apache/netbeans | /java/dbschema/src/org/netbeans/modules/dbschema/jdbcimpl/wizard/DBSchemaWizardData.java | UTF-8 | 4,093 | 1.726563 | 2 | [
"Apache-2.0"
] | permissive | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | true |
44d8c426c582149c8b9907a64a4730e5a822d43d | Java | xiaopapasoftware/rms | /rms-modules/src/main/java/com/thinkgem/jeesite/modules/inventory/service/NeighborhoodService.java | UTF-8 | 2,541 | 1.96875 | 2 | [] | no_license | /**
* Copyright © 2012-2014 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
*/
package com.thinkgem.jeesite.modules.inventory.service;
import java.util.List;
import org.apache.commons.collections.CollectionUtils;
import org.springframework.beans.factory.annotation.Autowired;
impo... | true |
39e5d33b088d89bd97e7e867cebf5581fd607c5c | Java | aatmasidha/examplecode | /sample-common/src/main/java/com/ai/sample/common/exception/ISellDBException.java | UTF-8 | 404 | 2.171875 | 2 | [] | no_license | package com.ai.sample.common.exception;
public class ISellDBException extends Exception {
/**
*
*/
private static final long serialVersionUID = -132745959413644860L;
int errorCode = -1;
String cause = "";
public ISellDBException(int errorCode, String cause) {
super(cause);
this.errorCode = errorCode... | true |
38007c76be4f96fb4f379504221e50500a0829c7 | Java | natashapavri/interview | /src/google/CandyDistribution.java | UTF-8 | 398 | 3.25 | 3 | [] | no_license | package google;
import java.util.HashSet;
import java.util.Set;
public class CandyDistribution {
public static void main(String[] args) {
int[] candies = {1,1,2,2,3,3};
int n = 2;
Set<Integer> distinctTypes = new HashSet<>();
for(int i : candies) {
distinctTypes.add(i);
}
int choices = Math.min... | true |
b55ddf74aaa35f9715060662f0bec4a38abaac68 | Java | garytxo/spring-web-and-rest-thymeleaf | /src/main/java/com/murray/communications/adapters/web/convert/SmsDtoToSMSMessageDto.java | UTF-8 | 1,117 | 2.3125 | 2 | [] | no_license | package com.murray.communications.adapters.web.convert;
import com.murray.communications.services.formatters.CustomDateFormatter;
import com.murray.communications.dtos.rest.SmsDto;
import com.murray.communications.dtos.web.SMSMessageDto;
import org.springframework.core.convert.converter.Converter;
import org.springfra... | true |
8743afc9426a63e059afa165fbf29567d1697c49 | Java | gxlioper/xajd | /src/xgxt/jygl/form/WjscForm.java | UTF-8 | 566 | 1.757813 | 2 | [] | no_license | package xgxt.jygl.form;
import org.apache.struts.action.ActionForm;
import org.apache.struts.upload.FormFile;
public class WjscForm extends ActionForm{
private FormFile[] scwjb;
private FormFile file;
/**
*
*/
private static final long serialVersionUID = 3438234816878259078L;
public Fo... | true |
44d89f62bcf473360df22788b47f8705f83ba53d | Java | MatteoMakovec/GamifiedMarketingApplication | /GamifiedMarketingWEB/src/it/polimi/db2/controllers/CreateProduct.java | UTF-8 | 3,330 | 2.21875 | 2 | [] | no_license | package it.polimi.db2.controllers;
import java.io.IOException;
import java.io.InputStream;
import javax.ejb.EJB;
import javax.servlet.ServletContext;
import javax.servlet.ServletException;
import javax.servlet.annotation.MultipartConfig;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServle... | true |