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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
55ad62867cb36592400be9e208887938404c7914 | Java | alsdud110/Spring-MVC_ShoppingMall | /ShoppingMall/src/main/java/product/ProductVO.java | UTF-8 | 1,410 | 2.625 | 3 | [] | no_license | package product;
import java.util.List;
public class ProductVO {
private String P_CODE;
private String P_NAME;
private String P_KIND;
private String P_IMAGE;
private int P_PRICE;
private int qty;
private List<ProductStdVO> productstdvo;
public List<ProductStdVO> getProductstdvo() {
return productstdvo;
... | true |
065f43a76a2c222a4f5d96d1db07e6418cbae6ee | Java | khalilSaidane/tunisia-charity-land | /_tunisia_charity_land_esprit-development/_Tunisia_Charity_Land_Esprit/src/Entity/public_chat.java | UTF-8 | 963 | 2.296875 | 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 Entity;
/**
*
* @author leanbois
*/
public class public_chat {
public String username;
public Strin... | true |
e7ceec6c203da300ef6352078616957df7ac539e | Java | cloudecho/spring-data-mybatis | /spring-data-mybatis/src/main/java/org/springframework/data/mybatis/dialect/identity/IdentityColumnSupport.java | UTF-8 | 2,348 | 2.46875 | 2 | [
"Apache-2.0"
] | permissive | package org.springframework.data.mybatis.dialect.identity;
import org.springframework.data.mapping.MappingException;
public interface IdentityColumnSupport {
/**
* Does this dialect support identity column key generation?
*
* @return True if IDENTITY columns are supported; false otherwise.
*/
boolean suppo... | true |
289d3cea8c3afb3203afa179835f23dbc2faea0d | Java | juaser/MeiZhi | /app/src/main/java/com/shizhefei/meizhi/view/adapter/DetailPagerAdapter.java | UTF-8 | 2,537 | 2.265625 | 2 | [
"Apache-2.0"
] | permissive | package com.shizhefei.meizhi.view.adapter;
import android.content.Context;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import com.shizhe... | true |
0bb52aaf42f89ce9bc66b84b5a9bddfa5bcb1cc1 | Java | skysearcher/MyCs355 | /src/cs355/model/drawing/Line.java | UTF-8 | 4,390 | 3.3125 | 3 | [] | no_license | package cs355.model.drawing;
import cs355.controller.SelectPoint;
import cs355.controller.TShapeEnum;
import java.awt.Color;
import java.awt.geom.AffineTransform;
import java.awt.geom.Point2D;
/**
* Add your line code here. You can add fields, but you cannot
* change the ones that already exist. This includes the ... | true |
3bffdecb8b87692b51d5fa91363d43f04f62e482 | Java | 18380163461/hibernate | /src/main/java/utils/SessionFactory.java | UTF-8 | 1,274 | 2.40625 | 2 | [] | no_license | package utils;
import org.hibernate.Session;
import org.hibernate.boot.registry.StandardServiceRegistry;
import org.hibernate.boot.registry.StandardServiceRegistryBuilder;
import org.hibernate.cfg.Configuration;
public class SessionFactory {
static Session session;
public static Session getSession() {
... | true |
8c12fe33c36c17542044f524e5fc8ea600978313 | Java | nawazish-github/game-of-thrones | /src/main/java/com/everest/engineering/parser/CampaigningKingdomsParser.java | UTF-8 | 848 | 2.765625 | 3 | [] | no_license | package com.everest.engineering.parser;
import com.everest.engineering.constants.StringConstants;
import com.everest.engineering.exceptions.ParseException;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class CampaigningKingdomsParser implements InputParser {
... | true |
4b6e89f46d76925bc91c1ab610df5b3fc76a931d | Java | akselreiten/Java | /TDT4100/self/patterns/observable/highscorelist/HighscoreList.java | UTF-8 | 1,776 | 3.1875 | 3 | [] | no_license | package patterns.observable.highscorelist;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
public class HighscoreList {
private List<HighscoreListListener> listeners = new ArrayList<HighscoreListListener>();
private List<Integer> results = new ArrayList<Integer>();
private int ma... | true |
f0b7aaa9fb30bcefb08b1bd19b3185b82c1dec62 | Java | connectschool/connectschool | /src/main/java/com/connected/school/persistence/model/Pays.java | UTF-8 | 1,262 | 2.0625 | 2 | [] | no_license | package com.connected.school.persistence.model;
import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persi... | true |
174ff73792669a5157757ddf3b730bf68a62b77e | Java | sebin-vincent/E-Shoper | /order-service/src/main/java/com/example/orderservice/kafka/consumer/ReservationConfirmationService.java | UTF-8 | 1,661 | 2.109375 | 2 | [] | no_license | package com.example.orderservice.kafka.consumer;
import com.example.orderservice.dto.ReservationConfirmation;
import com.example.orderservice.model.Order;
import com.example.orderservice.model.OrderStatus;
import com.example.orderservice.repository.OrderRepository;
import com.fasterxml.jackson.core.JsonProcessingExcep... | true |
d00bca391adb79e110389e4d200144e861ab01e4 | Java | matheushrq/DevGLPI | /TelaAtendente.java | UTF-8 | 12,783 | 2.109375 | 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 View;
import devglpi.CRUD;
import devglpi.DevGLPI;
/**
*
* @author mathe
*/
public class TelaAtendente extends javax.swing... | true |
168d6e8a62c50a2e309e007f65787bf5816bbd81 | Java | HONGJEONGHO/test7 | /src/main/java/itor/example/test7/database/PersonDao.java | UTF-8 | 706 | 2.234375 | 2 | [] | no_license | package itor.example.test7.database;
import org.apache.juli.logging.Log;
import org.apache.juli.logging.LogFactory;
import org.mybatis.spring.SqlSessionTemplate;
import org.springframework.beans.factory.annotation.Autowired;
public class PersonDao {
protected Log log = LogFactory.getLog(PersonDao.class);
... | true |
4ffc5b656dc3604cce5669a357a32834ab6a1697 | Java | jahlborn/jackcess | /src/main/java/com/healthmarketscience/jackcess/expr/Value.java | UTF-8 | 3,311 | 2.90625 | 3 | [
"Apache-2.0"
] | permissive | /*
Copyright (c) 2016 James Ahlborn
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, softwa... | true |
cd53ed65e76012d01bf1073d7ea83d38ab50f6e6 | Java | hhnewbee/CA-ApplicationMall | /源代码/CA应用商城-源码1.0/src/com/example/downloadui/jsonservic/MySQL.java | GB18030 | 1,845 | 2.25 | 2 | [] | no_license | package com.example.downloadui.jsonservic;
import com.example.downlaodui.infodata.AppContext;
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
/**
* Created by user on 2016/8/1.
*/
public class MySQL extends SQLiteOpenHelper{
public sta... | true |
d87da7acf9c772bb8ec25eef4e8bbc8579519717 | Java | lebonhomme17/TP_Ordo | /src/solveur/SolutionIntermediaireDeux.java | UTF-8 | 2,866 | 3.140625 | 3 | [] | no_license | package solveur;
import probleme.Job;
import java.util.ArrayList;
public class SolutionIntermediaireDeux {
private SolutionDeux solution;
private ArrayList<Job> reste;
private int binf;
public SolutionIntermediaireDeux(ArrayList<Job> jobs){
this.solution = new SolutionDeux(new ArrayList<>(),... | true |
2fd1a74d545ebb70aad41cddd0bb0fe2257a19b8 | Java | CivclassicBot/BlockLimits | /src/main/java/com/civclassic/blocklimits/BlockManager.java | UTF-8 | 4,025 | 2.625 | 3 | [
"BSD-3-Clause"
] | permissive | package com.civclassic.blocklimits;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.Map;
import java.util.logging.Level;
import java.util.logging.Logger;
import org.bukkit.Chunk;
import org.bukkit.Material;
import vg.civcraft.mc... | true |
22c8bac3ad6b4a4aa11fb7b51884ebddef3b3c48 | Java | SelfStudyGuide/repo | /ssg-gwt/src/main/java/org/ssg/core/dto/TopicTaskInfo.java | UTF-8 | 1,094 | 2.171875 | 2 | [] | no_license | package org.ssg.core.dto;
import java.io.Serializable;
public class TopicTaskInfo implements Serializable {
private static final long serialVersionUID = 7363754530636194857L;
private int id;
private TaskType type;
private int execrisesCount;
private int completedCount;
private int homeworkId;
... | true |
5c50c636cc6400f1065a49efef33901dc5d831a9 | Java | pmerienne/task-manager | /src/main/java/com/pmerienne/taskmanager/client/MobileClientFactoryImpl.java | UTF-8 | 4,081 | 1.5 | 2 | [] | no_license | /*
* Copyright 2010 Daniel Kurka
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | true |
29e67be70674cfd6d1eba564fc98d6d5da512b5b | Java | xiongkai888/kang | /kang/app/src/main/java/com/lanmei/kang/event/CollectItemsEvent.java | UTF-8 | 425 | 1.875 | 2 | [] | no_license | package com.lanmei.kang.event;
/**
* Created by xkai on 2018/1/10.
* 服务收藏事件
*/
public class CollectItemsEvent {
private String id;
private String favoured;
public String getFavoured() {
return favoured;
}
public String getId() {
return id;
}
public CollectItemsEvent(... | true |
95b9e2d1660ce99560a6bfe9af453c9463afc177 | Java | tryingpfq/jxpg | /jxpg/src/com/biyeseng/web/controller/CourseController.java | UTF-8 | 1,937 | 2.1875 | 2 | [] | no_license | package com.biyeseng.web.controller;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework... | true |
31e2d22bae864c69d351dbdcf3cfb4dd46598493 | Java | Schiepek/RedditClone | /src/redditFinal/UsernameValidator.java | UTF-8 | 931 | 2.453125 | 2 | [] | no_license | package redditFinal;
import java.util.List;
import javax.faces.application.FacesMessage;
import javax.faces.component.UIComponent;
import javax.faces.context.FacesContext;
import javax.faces.validator.Validator;
import javax.faces.validator.ValidatorException;
public class UsernameValidator implements Validator {
... | true |
857687f8f1f86924a865fb86d45a49b1af60fc5d | Java | rvanasa/vekta | /src/main/java/vekta/world/AttributeMaxZoomController.java | UTF-8 | 588 | 2.65625 | 3 | [
"MIT"
] | permissive | package vekta.world;
import vekta.player.Player;
public class AttributeMaxZoomController implements ZoomController {
private final Class<? extends Player.Attribute> type;
private final float maxZoom;
public AttributeMaxZoomController(Class<? extends Player.Attribute> type, float maxZoom) {
this.type = type;
t... | true |
5a21f0495433567599b1a2f99c50bf3968b9f310 | Java | tobiasquinteiro/alura-cursos | /design-patterns-1/src/main/java/alura/curso/designpatterns1/strategy/Imposto.java | UTF-8 | 517 | 2.84375 | 3 | [] | no_license | package alura.curso.designpatterns1.strategy;
import alura.curso.designpatterns1.model.orcamento.Orcamento;
public abstract class Imposto {
protected Imposto outroImposto;
public Imposto() {
}
public Imposto(Imposto outroImposto) {
this.outroImposto = outroImposto;
}
public abstract double... | true |
cff182c7db0a21095b7abb7cceeae1b52a1b2467 | Java | stdio-yj/packaging_yjyj | /src/study/jsp/myschool/controller/ProfDelete.java | UTF-8 | 1,653 | 2.171875 | 2 | [] | no_license | package study.jsp.myschool.controller;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.ibatis.session.SqlSession;
import study.jsp.helper.Base... | true |
6b4c32373157848c609c129de19795da8d755421 | Java | mavpokit/RxRetrofitMVP | /app/src/main/java/com/mavpokit/rxretrofitmvp/Presenter/QuestionsPresenter.java | UTF-8 | 5,155 | 2.21875 | 2 | [] | no_license | package com.mavpokit.rxretrofitmvp.Presenter;
import android.net.Uri;
import android.os.Bundle;
import com.mavpokit.rxretrofitmvp.DI.MyApplication;
import com.mavpokit.rxretrofitmvp.Model.IModel;
import com.mavpokit.rxretrofitmvp.Model.Pojo.ListQuestion;
import com.mavpokit.rxretrofitmvp.View.IQuestionsView;
... | true |
055158414d6ac11c4ca94442d9fd8f689e4df174 | Java | otailai/qrencode | /src/security/RSAEncrypt.java | UTF-8 | 1,006 | 2.796875 | 3 | [] | no_license | package security;
import java.security.KeyFactory;
import java.security.PrivateKey;
import java.security.interfaces.RSAPrivateKey;
import java.security.spec.PKCS8EncodedKeySpec;
import javax.crypto.Cipher;
public class RSAEncrypt {
private static final String KEY_GENERATOR_ALGORITHM_NAME = "RSA";
private static fi... | true |
9a18c82e5c9657faa523b279f60a7be031755ab0 | Java | pallavij/PCheck | /zook-fi/src/contrib/bookkeeper/src/java/org/apache/bookkeeper/client/LedgerMetadata.java | UTF-8 | 5,672 | 2.5 | 2 | [
"Apache-2.0"
] | permissive | package org.apache.bookkeeper.client;
/**
* 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 Licen... | true |
4f2c06ad8e0892f9884e925da8585453933781ad | Java | miroshnychenko/javacore | /src/main/java/com/serhii/app/classwork/lesson13/composition/Phone.java | UTF-8 | 601 | 2.921875 | 3 | [] | no_license | package com.serhii.app.classwork.lesson13.composition;
public class Phone {
private NFC nfc;
private Bluetooth bluetooth;
private Battery battery;
public Phone(NFC nfc, Bluetooth bluetooth, Battery battery) {
this.nfc = nfc;
this.bluetooth = bluetooth;
this.battery = battery;
... | true |
4eff977b8b57b4a443d2ccbe567b265d5f8d58e7 | Java | tomwhite/kite | /kite-data/kite-data-core/src/main/java/org/kitesdk/data/spi/Constraints.java | UTF-8 | 21,390 | 1.71875 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2013 Cloudera Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | true |
d99bebf1361364f39bae0b00ae7810bfe7e687c3 | Java | Akshay8797/IBM-Training | /AdApplication/src/main/java/com/Spring/Controller/AdvertisementController.java | UTF-8 | 2,080 | 2.1875 | 2 | [] | no_license | package com.Spring.Controller;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.a... | true |
0cf357c44acf4a652557f9b21e4c71f02412d53a | Java | ahjszhds/grpc-java | /okhttp/src/main/java/io/grpc/okhttp/OkHttpClientStream.java | UTF-8 | 12,154 | 1.570313 | 2 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | /*
* Copyright 2014, Google Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions a... | true |
050ff3f3550c40b584ca4e944f3b3bb0b314c31c | Java | JellyB/code_back | /tk_code/course-server/course-web-server/src/main/java/com/huatu/tiku/course/service/v1/practice/CoursewarePracticeQuestionInfoService.java | UTF-8 | 687 | 1.828125 | 2 | [] | no_license | package com.huatu.tiku.course.service.v1.practice;
import com.huatu.tiku.course.bean.vo.CoursewarePracticeQuestionVo;
import com.huatu.tiku.entity.CoursewarePracticeQuestionInfo;
import service.BaseServiceHelper;
/**
* @author shanjigang
* @date 2019/3/23 18:56
*/
public interface CoursewarePracticeQuestionInfoSe... | true |
aab708a4d56de8d0af7a7996fc0675d196db5989 | Java | IELBHJY/DS_exercise | /maze/src/com/company/Node.java | UTF-8 | 387 | 2.640625 | 3 | [] | no_license | package com.company;
/**
* Created by apple on 2018/3/1.
*/
public class Node {
int x;
int y;
Node pre;
int gCost;
int hEstimate;
int fTotal;
public Node(int x, int y) {
this.x = x;
this.y = y;
}
@Override
public ... | true |
3ce7fbde97577bca172e7e4eb9458b03a11ea9d7 | Java | WxSmile/ReactiveXLearn | /rxjavademo/src/main/java/com/weixiao/rxjavademo/创建操作/Create.java | UTF-8 | 1,500 | 3.40625 | 3 | [] | no_license | package com.weixiao.rxjavademo.创建操作;
import rx.Observable;
import rx.Subscriber;
/**
* Created by weixiao-sm on 2016/9/27.
*/
public class Create {
public static void main(String[] args) {
Observable.create(new Observable.OnSubscribe<Integer>(){
@Override
public void call(Subs... | true |
7164d49b337b6f7805b0ee3d75d5a29f20013fcd | Java | AlbertProfe/JAVA_pqtm2019 | /EmpleadoComisionEx/src/herenciaEx/Persona.java | UTF-8 | 1,064 | 3.125 | 3 | [] | no_license | package herenciaEx;
public class Persona {
private String nombre;
private Fecha fechaNacimiento;
private int dni;
public Persona(String nombre, Fecha fechaNacimiento, int dni) {
this.nombre = nombre;
this.fechaNacimiento = fechaNacimiento;
this.dni = dni;
}
public Persona(String nombre, int d... | true |
bdbde0adcd9214748da298245a874bc8abf9fcc1 | Java | kr11/incubator-iotdb | /cluster/src/main/java/org/apache/iotdb/cluster/query/fill/ClusterPreviousFill.java | UTF-8 | 9,546 | 1.523438 | 2 | [
"Apache-2.0",
"BSD-3-Clause",
"BSD-2-Clause",
"LicenseRef-scancode-unknown-license-reference",
"MIT",
"EPL-1.0",
"CDDL-1.1"
] | 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 |
e0d24e57fff7155613adf3c1c505f7b8a6a0caf1 | Java | dursunkoc/Wolf | /src/main/java/com/aric/esb/arguments/SimpleArgument.java | UTF-8 | 1,174 | 3.359375 | 3 | [] | no_license | package com.aric.esb.arguments;
/**
* @author Dursun KOC
*
*/
public class SimpleArgument extends Argument {
private Object value;
private Class<?> represantClass;
public SimpleArgument(String name, Object value) {
super(name);
if (value == null) {
throw new RuntimeException("value cannot be... | true |
56b5860f06585d1aad77f677eee38361ea9fd70e | Java | tkhdfz/spring-data-elasticsearch-sample | /src/main/java/my/sample/elasticsearch/service/ESService.java | UTF-8 | 262 | 1.53125 | 2 | [] | no_license | package my.sample.elasticsearch.service;
import java.util.List;
import java.util.Map;
public interface ESService {
List<String> handleLocalPlugin(String command, String target);
List<String> getPluginInfo();
Map<String, String> getNodeSetting();
}
| true |
065e17c7c3d8649370c92f4cbbaaa3bc9b6571b9 | Java | FlaviaSalazar27/pumitachatbot | /src/main/java/com/ChiquiBot/core/From.java | UTF-8 | 523 | 2.046875 | 2 | [] | no_license | package com.ChiquiBot.core;
public class From {
private int id;
private boolean is_bot;
private String first_name;
private String last_name;
private String language_code;
public int getId() {
return id;
}
public boolean isIs_bot() {
return is_bot;
}
public S... | true |
c66ffb1013a7eff54fd9efec44fce4de47fd440f | Java | SkyTaill/MailKurs | /ZeroHomework/src/com/company/Main.java | UTF-8 | 661 | 3.203125 | 3 | [] | no_license | package com.company;
import java.util.Random;
import java.util.Scanner;
public class Main {
private static Scanner scanner=new Scanner(System.in);
public static void main(String[] args) {
System.out.println("ВВедите число");
for (int i=10;i<=30;i+=10) {
int inputNumber = scanner.nextInt();
FindRand(in... | true |
279dcf57a36782889069f1b49b7fdd5b73a5a7cd | Java | marcio944/triagemeletronica | /TriagemEletronica/src/triagemeletronica/paciente/Paciente.java | UTF-8 | 4,517 | 2.265625 | 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 triagemeletronica.paciente;
/**
*
* @author Esdras Fragoso
*/
public class Paciente {
private String nome;
... | true |
db6f43f671e1392737b20e3c0e3dfb073eacc5db | Java | maanasasubrahmanyam-sd/eclipse-workspace | /MyLearning/src/com/home/test/BinarySearch.java | UTF-8 | 901 | 3.734375 | 4 | [] | no_license | package com.home.test;
import java.util.Arrays;
public class BinarySearch {
//
public static void main(String[] args) {
int[] sortedList = new int [] {10,20,30,40,50,60,70,80,90};
Arrays.sort(sortedList);
int target = 30;
int result = SortArray(sortedList, target);
System.out.println(result);
... | true |
1dbee4db52fe78ddc4bf12e3ea2be2cf38aeed5b | Java | JunjunPanJoseph/Java-multiplayer-online-uno-game | /src/application/scene/gameLocal/GameLocal.java | UTF-8 | 1,160 | 2.59375 | 3 | [] | no_license | package application.scene.gameLocal;
import java.io.IOException;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.scene.layout.Pane;
import javafx.scene.paint.Color;
import javafx.scene.shape.Circle;
import javafx.stage.Stage;
public class GameLocal {
... | true |
aa5274314fcf7f9eac44867fad68f468d5771264 | Java | dkolotovkin/mouse_red5 | /mousesrvred5/src/mouseapp/utils/gameaction/useitem/GameActionUseItem.java | UTF-8 | 613 | 2.1875 | 2 | [] | no_license | package mouseapp.utils.gameaction.useitem;
import mouseapp.utils.gameaction.GameAction;
public class GameActionUseItem extends GameAction {
public int initiatorID;
public int itemID;
public int gwitemID; //game world
public int itemtype;
public Float itemx;
public Float itemy;
public GameActionUseItem(by... | true |
7d65e392639a98cc44afd3a87748db505efbd619 | Java | michaelramon/SonyTestCase | /SonyStoreTestCase/src/framework/data/ProductData.java | UTF-8 | 356 | 2.15625 | 2 | [] | no_license | package framework.data;
import java.io.IOException;
public class ProductData {
ImportProductData product1;
public ProductData() throws IOException {
product1 = new ImportProductData();
}
public String getItem(int location){
return product1.productString.get(location);
}
public int getListSize(){
... | true |
359327bc2fbbb6efb450f5d9c24c465c724efacc | Java | burhanuddinMuhammad89/automation | /admin/src/main/java/led/automation/admin/repository/QuestionRepository.java | UTF-8 | 911 | 2.046875 | 2 | [
"Apache-2.0"
] | permissive | /**
*
*/
package led.automation.admin.repository;
import java.util.stream.Stream;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;
import org.springframework.data.repository.query.Param;
import led.automation.admin.model.Question;
/**
* @author ged... | true |
e0c784c1c41281bc2d17243b5e9602c3f610f9b1 | Java | zsx488266907/Circlemove | /Circle/src/main/java/zsx/com/circle/Circleview.java | UTF-8 | 2,416 | 2.40625 | 2 | [] | no_license | package zsx.com.circle;
import android.annotation.SuppressLint;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Matrix;
import android.graphics.Paint;
import android.graphics.PorterDuff;
import android.graphics.PorterDuffXfermode;
import android.g... | true |
adbf5e1459e8c4fadfc5eec0b7108a5106816524 | Java | arindam7development/CertWare | /ftp/src/ftp/impl/PTransistorImpl.java | UTF-8 | 9,359 | 1.875 | 2 | [
"Apache-2.0"
] | permissive | /**
*/
package ftp.impl;
import ftp.FtpPackage;
import ftp.PTransistor;
import ftp.Port;
import ftp.SignalPort;
import ftp.TypedPortValue;
import java.util.ArrayList;
import java.util.List;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.common.notify.NotificationChain;
import org.eclipse.e... | true |
e796da120a67fd2c2fce7c5380877c177f298bdd | Java | arjankahlon/CSW-Programming-and-Algorithms-P-A | /MonteCarlo.java | UTF-8 | 2,085 | 3.625 | 4 | [] | no_license | public class MonteCarlo {
public static void main(String[] args){
int r2= 0;
int r3= 0;
int r4= 0;
int r5= 0;
int r6= 0;
int r7= 0;
int r8= 0;
int r9= 0;
int r10= 0;
int r11= 0;
int r12= 0;
for(int count=0; count<10000; ... | true |
1e013bb31c8f43f2098cd619af2d89bf97806531 | Java | xuyongisgoop/all-study | /j2se-study/src/main/java/com/xuyong/study/general/Node.java | UTF-8 | 235 | 2.46875 | 2 | [] | no_license | package com.xuyong.study.general;
/**
* Created by xuyong on 2018/1/17.
*/
public abstract class Node<T> {
private T data;
public Node(T data) {
this.data = data;
}
public abstract void setData(T data);
}
| true |
350bbf442d19800683eff4aaebc6788850b28bf0 | Java | 086-rasikadivekar-kh/DAC | /Java_assignments/q36.java | UTF-8 | 510 | 3.734375 | 4 | [] | no_license | class mathOperation{
void multiply(int n1, int n2){
int mul = n1*n2;
System.out.println("1st output: "+mul);
}
void multiply(float n1, float n2, float n3){
double mul = n1*n2*n3;
System.out.println("2st output: "+mul);
}
void multiply(int [] arr){
int mul=1;
for(int i=0; i<arr.length;i++... | true |
300f54ec62cb442fc5cba66a1cddadcd264a7d2e | Java | NightRa/CompilersCourse | /src/main/java/compiler/ast/atom/Atom.java | UTF-8 | 276 | 2.125 | 2 | [] | no_license | package compiler.ast.atom;
import compiler.ast.Type;
import compiler.ast.expr.Expr;
import java.util.Map;
public abstract class Atom<A> extends Expr<A> {
public abstract Type rawType(Map<String, Type> typeTable);
public int precedence() {
return 0;
}
}
| true |
ae830945f1e4db6c48945bc507a4a33d2f7080ae | Java | tsuzcx/qq_apk | /com.tencent.mm/classes.jar/com/tencent/mm/protocal/protobuf/ent.java | UTF-8 | 6,162 | 1.703125 | 2 | [] | no_license | package com.tencent.mm.protocal.protobuf;
import com.tencent.matrix.trace.core.AppMethodBeat;
import java.util.LinkedList;
public final class ent
extends com.tencent.mm.bx.a
{
public String MRI;
public long aaxM;
public String absk;
public double absl;
public LinkedList<wx> absm;
public Str... | true |
99de96c52085c79a8cc906c5b5e8301267a087bd | Java | LifeAndTech/LiveWell | /LiveWell/src/com/example/livewell/BaseActivity.java | UTF-8 | 941 | 2.09375 | 2 | [] | no_license | package com.example.livewell;
import android.app.Activity;
import android.content.Intent;
import android.view.Menu;
public class BaseActivity extends Activity
{
// Shared Preferences
public static final String SETTINGS_PREFS = "SETTINGS PREFS";
public static final String SETTINGS_PREFS_WEIGHT = "CURRENT... | true |
850abe3fe826b215ccb75b5954784cb1974256ed | Java | winshu/mymud | /src/com/ys168/gam/cmd/std/Go.java | UTF-8 | 1,957 | 2.828125 | 3 | [] | no_license | package com.ys168.gam.cmd.std;
import com.ys168.gam.cmd.Cmd;
import com.ys168.gam.cmd.base.CmdName;
import com.ys168.gam.cmd.base.Context;
import com.ys168.gam.constant.Direction;
import com.ys168.gam.holder.MapHolder;
import com.ys168.gam.model.Room;
import com.ys168.gam.simple.SimpleRoomInfo;
/**
*
*... | true |
22b67aa1d87dcec3977e4cee1ad84713cb05a385 | Java | tarang-dawer/practice.one | /src/main/java/com/tarang/practice/cdci/three/MyQueue.java | UTF-8 | 715 | 3.421875 | 3 | [] | no_license | package com.tarang.practice.cdci.three;
import java.util.Stack;
//queue using two stacks
public class MyQueue {
private Stack<Integer> newStack, oldStack;
public MyQueue() {
this.newStack = new Stack<Integer>();
this.oldStack = new Stack<Integer>();
}
public static void main() {
}
public int size() {
... | true |
b5a3f358edc200e43faca1840e43284be367738b | Java | vaadin/grid-renderers-collection-addon | /grid-renderers-collection-addon/src/main/java/org/vaadin/grid/cellrenderers/view/ConverterRenderer.java | UTF-8 | 2,019 | 2.453125 | 2 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | package org.vaadin.grid.cellrenderers.view;
import org.vaadin.grid.cellrenderers.client.view.ConverterRendererState;
import com.vaadin.data.Converter;
import com.vaadin.data.ValueContext;
import com.vaadin.ui.renderers.AbstractRenderer;
import elemental.json.JsonValue;
/**
* @author Tatu Lund - Vaadin
*/
public c... | true |
8565af06de91f7449959da0fb04d81c35637a289 | Java | PhanNgocHT/Code | /app/src/main/java/com/zuckerteam/adapter/DanhSachChuyenAdapter.java | UTF-8 | 1,695 | 2.390625 | 2 | [] | no_license | package com.zuckerteam.adapter;
import android.content.Context;
import android.support.annotation.LayoutRes;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAda... | true |
5c8cf50e7f906b5e9b9f50e21e34747268860447 | Java | HansaTharuka/Ergo | /app/src/main/java/org/techknights/ergo/UserAreas/SingleViews/ProjectSingleActivity.java | UTF-8 | 4,859 | 2 | 2 | [] | no_license | package org.techknights.ergo.UserAreas.SingleViews;
import android.app.ProgressDialog;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.MenuItem;
import android.widget.TextView;
import android.widget.Toast;
import org.techknights.ergo.Login.... | true |
01f7dfab906d63f52cc00d53e747042d800e0ba2 | Java | kiracookie/ResearchMS | /app/src/main/java/com/cookie/kira/researchms/entity/AnswerDetail.java | UTF-8 | 973 | 1.890625 | 2 | [] | no_license | package com.cookie.kira.researchms.entity;
/**
* Created by 11669 on 2017-07-11.
*/
class AnswerDetail {
private int paperId;
private int questionId;
private int OptionId;
private String owner;
private String comment;
public int getPaperId() {
return paperId;
}
public void ... | true |
7d3df16057f7ea81522542fa6baf2c9d4b117a5a | Java | sunyaoxiang/testproject | /src/study/factory/java/AbstractFactory.java | UTF-8 | 159 | 2.125 | 2 | [] | no_license | package study.factory.java;
abstract class AbstractFactory {
abstract MachineMake getMake(String name);
abstract VendorSell getVendor(String sell);
}
| true |
91b9e8819485f98ee8ea3693694a46d651372380 | Java | btraas/browser | /app/src/main/java/ca/bcit/comp3717/a00968178/Browser/LinksActivity.java | UTF-8 | 2,485 | 2.109375 | 2 | [] | no_license | package ca.bcit.comp3717.a00968178.Browser;
import android.content.Intent;
import android.database.Cursor;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.AdapterView;
import android.widget.CursorAdapter;
import android... | true |
455dec0613d22ffa3065dd68fcfa4ecb6a32e85c | Java | wuhaoqiu/UBC-Assignments | /Java Course/Project/PC.java | UTF-8 | 174 | 2.453125 | 2 | [] | no_license | package P5;
/** same as before **/
public class PC extends Register {
public PC(int value) {
super(value);
}
public void increment() {
setValue(getValue()+1);;
}
}
| true |
d5bb34b68397e73c5924d30728dbc319fe106343 | Java | hymanath/PA | /partyanalyst-service/trunk/src/main/java/com/itgrids/partyanalyst/model/PartyWorkingCommittee.java | UTF-8 | 3,701 | 1.976563 | 2 | [] | no_license | /*
* Copyright (c) 2009 IT Grids.
* All Rights Reserved.
*
* IT Grids Confidential Information.
* Created on August 09, 2010
*/
package com.itgrids.partyanalyst.model;
import java.util.HashSet;
import java.util.Set;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import j... | true |
4d3f0cc7f4b73e82c1dfb5ef7378813ee1967226 | Java | qycode/qy-code-generator | /src/main/java/qy/generator/demo/entity/SimpleDemoEntity.java | UTF-8 | 478 | 2.328125 | 2 | [] | no_license | package qy.generator.demo.entity;
import com.qy.code.generator.annotation.Column;
import com.qy.code.generator.annotation.Table;
/**
* 描述:这是一个最简单demo
* @author 七脉
*/
@Table
public class SimpleDemoEntity {
@Column(id=true, comment="主键")
private Long id;
@Column(comment="名字")
private String name;
... | true |
b7f0a119ff6bc43497a244a500cc804ce5488c38 | Java | NaeraeGojo/NaeraeGojo | /NaeraeGojo/src/main/res/kr/or/ddit/aop/LogPrintUtil.java | UTF-8 | 2,830 | 2.96875 | 3 | [] | no_license | package kr.or.ddit.aop;
import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.ProceedingJoinPoint;
import org.slf4j.Logger;
import org.springframework.stereotype.Component;
// 빈등록 시킴
// <bean name="logPrintUtil" class="kr.or.ddit.aop.LogPrintUtil">
// -><bean name="logPrintAspect" class="kr.or.ddit.aop.LogPrintU... | true |
6baaa679fb5e0d0ae72084ec3018d01507a8b891 | Java | VicenteLugo/AutoExample | /Auto/src/auto/TestAuto.java | UTF-8 | 1,574 | 2.90625 | 3 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package auto;
import java.util.ArrayList;
/**
*
* @author LugoD
*/
public class TestAuto {
public static void ... | true |
743c25edda227e34cf8c112cfc19c813c9e709a8 | Java | sandysaisandeep/asdsad | /src/test/java/packagetest/sample2.java | UTF-8 | 165 | 1.648438 | 2 | [] | no_license | package packagetest;
import org.testng.annotations.Test;
public class sample2 {
@Test
public void ran(){
System.out.println("dummy printed");
}
}
| true |
4fad20570492db649e146ce9ef7955804131847d | Java | Jouramie/GLO-4003-Architecture | /src/main/java/ca/ulaval/glo4003/service/stock/trend/StockVariationTrendService.java | UTF-8 | 1,449 | 2.359375 | 2 | [] | no_license | package ca.ulaval.glo4003.service.stock.trend;
import ca.ulaval.glo4003.domain.Component;
import ca.ulaval.glo4003.domain.stock.Stock;
import ca.ulaval.glo4003.domain.stock.StockHistory;
import ca.ulaval.glo4003.domain.stock.StockRepository;
import ca.ulaval.glo4003.domain.stock.exception.StockNotFoundException;
impor... | true |
4a9bb43920625738376fe21c7263997875805a9b | Java | gga4638/1stProject | /src/View/MemberShipGUI2.java | UHC | 12,097 | 2.3125 | 2 | [] | no_license | package View;
import java.awt.Color;
import java.awt.Font;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.ButtonGroup;
import javax.swing.DefaultComboBoxModel;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JComboBox;
import javax.... | true |
e87d9f22df86db1cefbdd740c6673fe360e5c6a9 | Java | wikibook/jboss5 | /D.WebServiceExampleWeb/src/com/jbossnotebook/webservice/MathWebService.java | UTF-8 | 557 | 2.46875 | 2 | [] | no_license | package com.jbossnotebook.webservice;
import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebResult;
import javax.jws.WebService;
import javax.jws.soap.SOAPBinding;
@WebService(targetNamespace = "http://www.jbossnotebook.com/",
serviceName = "MathService")
@SOAPBinding(style = SOAPBind... | true |
f582a36806599e4dced5f3e38c140a579a9d78bf | Java | Tobi-Akindele/v2-backend-stockbroker-report | /src/main/java/com/ap/greenpole/stockbroker/service/NotificationPostingsService.java | UTF-8 | 249 | 1.765625 | 2 | [] | no_license | package com.ap.greenpole.stockbroker.service;
import com.ap.greenpole.stockbroker.dto.Notification;
public interface NotificationPostingsService {
public void determineVerdictAndCallNotificationService(Notification notification, int verdict);
}
| true |
bb49bbf988fe96d4db9bd774a668c5225084ec10 | Java | HamoAtayan/SQA-Java | /lilia/src/Week_3/Person/personRepo.java | UTF-8 | 711 | 2.96875 | 3 | [] | no_license | package src.Week_3.Person;
public class personRepo {
static String[] companies = {"Pixar","Webb", "Google", "Microsoft", "Apple", "Picsart"};
static String[] names = {"Alan","Bradley", "Carol", "Drake", "Fabio", "Gary"};
public static person[] getData() {
person[] persons = new person[10]... | true |
deb6a582aa0f4a85b2e1866e2d121985b1a4e58b | Java | TheSunGodLives/decisions-loops-TheSunGodLives-master | /decisions-loops-TheSunGodLives-master/Chapter 6 Notes/Warmup.java | UTF-8 | 363 | 3.125 | 3 | [] | no_license |
/**
* Write a description of class Warmup here.
*
* @author (your name)
* @version (a version number or a date)
*/
public class Warmup
{
public Warmup()
{
}
public void forLoop()
{
for( int count = 10;
count >= -10;
count -= 5)
{
Sy... | true |
c093b08317cc761df5cb0e79552ccf903d3a28a1 | Java | builder-soft/BSframework | /src/cl/buildersoft/framework/web/servlet/RedirectServlet.java | UTF-8 | 1,046 | 2.28125 | 2 | [] | no_license | package cl.buildersoft.framework.web.servlet;
import java.io.IOException;
import java.net.URLDecoder;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServletReq... | true |
8eba6b08d7f3c2f1435c0a83b3f815668b5ccf53 | Java | nalcsmn/stacks | /staks/src/quizstak/stak.java | UTF-8 | 1,526 | 3.375 | 3 | [] | no_license | package quizstak;
import java.util.Scanner;
import java.util.Stack;
public class stak {
static Stack<String> pileofshit = new Stack<>();
static Scanner input = new Scanner(System.in);
public static void main(String[] args) {
inputstackablestack();
}
public static void choys(... | true |
82712afeb4951709279958aa12169ebb1b2aa4d1 | Java | mihajlo-perendija/XML_WS | /MainApp/Servers/vehicle/src/main/java/vehicle/controller/BrandController.java | UTF-8 | 3,298 | 2.25 | 2 | [] | no_license | package vehicle.controller;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.MediaType;
import org.springframework.http.ResponseEntity;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.w... | true |
9e8387d12daa7b1d39d28ae9174281a8553be456 | Java | KsonCode/MvpDesignFramework | /app/src/main/java/com/example/kson/mvpdesignframework/contract/user/LoginContract.java | UTF-8 | 1,084 | 2.109375 | 2 | [] | no_license | package com.example.kson.mvpdesignframework.contract.user;
import com.example.kson.library.base.base.BasePresenter;
import com.example.kson.library.base.base.IBaseModel;
import com.example.kson.library.base.base.IBaseView;
import com.example.kson.mvpdesignframework.bean.UserBean;
import com.example.kson.mvpdesignframe... | true |
870658c67b8232ef271550bba0c5ef8517a24cf0 | Java | 98bazsikaX/CSAPAT_PROJEKT | /csapat-desktop/src/main/java/hu/alkfejl/controller/OrgController.java | UTF-8 | 3,387 | 2.34375 | 2 | [] | no_license | package hu.alkfejl.controller;
import com.sun.tools.javac.Main;
import dao.OrgDAO;
import dao.OrgDAOImpl;
import hu.alkfejl.App;
import javafx.fxml.FXML;
import javafx.fxml.FXMLLoader;
import javafx.fxml.Initializable;
import javafx.scene.control.*;
import javafx.scene.control.cell.PropertyValueFactory;
import javafx.... | true |
62890c0e35432222a5e7b895255a4cdc80bb5747 | Java | JamesWillLewis/WSIntelliAuction | /WSIntelliAuction/src/com/uct/cs/wsintelliauction/network/message/CloseConnectionMessage.java | UTF-8 | 685 | 2.421875 | 2 | [] | no_license | package com.uct.cs.wsintelliauction.network.message;
/**
* Indicates that the server has disconnected.
*
* @author James
*
*/
public class CloseConnectionMessage extends ConnectionMessage {
/**
*
*/
private static final long serialVersionUID = 6774572759680575701L;
/**
* If the host ... | true |
b9f5d146c1c297a583f72c7689e895dc376daf27 | Java | captPatches/narayana | /kvstore/src/test/java/org/jboss/narayana/kvstore/infinispan/perftests/ReplicatedStoreTester.java | UTF-8 | 733 | 2.1875 | 2 | [] | no_license | package org.jboss.narayana.kvstore.infinispan.perftests;
public class ReplicatedStoreTester extends MillTester {
@Override
public void setup() {
System.setProperty("ObjectStoreEnvironmentBean.objectStoreType",
"com.arjuna.ats.internal.arjuna.objectstore.kvstore.KVObjectStoreAdaptor");
if(runOnMill()) {
... | true |
dbc87b8993129c308b4036596eee90cc73e8b7c5 | Java | SwimmingHwang/Humuson-IMC-Intern | /intern-agent-common/src/main/java/com/humuson/agent/domain/entity/FtReport.java | UTF-8 | 1,883 | 1.976563 | 2 | [] | no_license | package com.humuson.agent.domain.entity;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;
import javax.persistence.*;
@Getter
@NoArgsConstructor
@Table(name = "imc_ft_biz_msg_log")
@Entity
public class FtReport {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private... | true |
5444a486f1fd95811482b8e36e8989cd3b9b4c24 | Java | sgremalschi/cisco | /src/test/java/cisco/java/challenge/NodeTest.java | UTF-8 | 900 | 2.921875 | 3 | [] | no_license | package cisco.java.challenge;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertTrue;
import org.junit.Test;
import cisco.java.challenge.impl.Node;
public class NodeTest {
@Test(expected = IllegalArgumentException.class)
public void wh... | true |
4f65fd778bfc43d4b9d4463af77b15c6aac6a628 | Java | 4201VitruvianBots/DeepSpace2019 | /src/main/java/frc/robot/commands/wrist/UpdateWristSetpoint.java | UTF-8 | 2,609 | 2.34375 | 2 | [] | no_license | /*----------------------------------------------------------------------------*/
/* Copyright (c) 2017-2018 FIRST. All Rights Reserved. */
/* Open Source Software - may be modified and shared by FRC teams. The code */
/* must be accompanied by the FIRST BSD license file in the root directory of... | true |
f0f5f180c7c000bfaca5dfbbe385a5d759e4c9c7 | Java | TheLogicalNights/spring-framework | /ListInjection/src/main/java/com/spring/ListInjection/Employee.java | UTF-8 | 581 | 2.5625 | 3 | [
"MIT"
] | permissive | package com.spring.ListInjection;
import java.util.*;
public class Employee
{
private int empId;
private List<String> empPhoneNo;
private List<String> empAddress;
public int getEmpId() {
return empId;
}
public void setEmpId(int empId) {
this.empId = empId;
}
public List<String> getEmpPhoneNo() {
retu... | true |
0e94180674e546ee4001401d1accb44d902a2b51 | Java | dfudger/PacMan-DinoStyle | /src/pacmangame/Collision.java | UTF-8 | 1,867 | 3.359375 | 3 | [] | no_license | /*
*
* Pacman Game - Collision.java
* CIS*3760 Assignment Two
* University of Guelph
*
* Author: Danielle Fudger 0621496
* Contact: dfudger@uoguelph.ca
* Date: Januray 26, 2013
*
* This is a java based pacman style game. For more information, please see the README.
*
*/
package pacmangame;
/**
* This... | true |
4e156081150258a91f5c7e20b43c16f539046c89 | Java | SinghDharmendra/DSA-PS | /src/main/java/ps/dp/mcm/EvaluateExpressionToTrueParenthesization.java | UTF-8 | 1,884 | 3.046875 | 3 | [] | no_license | package ps.dp.mcm;
import javax.print.StreamPrintServiceFactory;
public class EvaluateExpressionToTrueParenthesization {
public static void main(String[] args) {
String exp = "T|T&F^T";
int res = solve(exp, 0, exp.length() - 1, true);
System.out.println("total number of ways : "+res);
... | true |
758a7b839624509caf9a88e4383110f6ec887974 | Java | wernerware/video-notes | /obfuscation/test_1_out/org/a/a/a/p/class_317.java | UTF-8 | 1,161 | 2.1875 | 2 | [] | no_license | package org.a.a.a.p;
import java.util.NoSuchElementException;
import java.util.Map.Entry;
// $FF: renamed from: org.a.a.a.p.o
final class class_317 extends class_311 {
// $FF: renamed from: f java.lang.Object
private final Object field_519;
// $FF: renamed from: a org.a.a.a.p.n
// $FF: synthetic field
... | true |
1697ad9d822809e87a5bb19907f1a3bc5dca4e1a | Java | MarceloMr83/tpfinal | /src/main/java/com/poo/tpfinal/entities/Cancellation.java | UTF-8 | 1,694 | 2.390625 | 2 | [] | no_license | package com.poo.tpfinal.entities;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToOne;
import javax.persistence.Version;
import javax.validation.constraints.Not... | true |
727abf89e4b33c3ccd4b1cdf244ffa351a8523a0 | Java | letimome/CustomDiff | /src/main/java/customs/models/DevelopersInCustomizations.java | UTF-8 | 958 | 2.34375 | 2 | [] | no_license | package customs.models;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
@Entity
@Table (name="developers_in_customizations")
public class DevelopersInCustomizations {
@Id int id;
int id_customization;
int id_developer;
int name;
int email;
public DevelopersInCust... | true |
4d8758272d1ab30ab3e581f5a56c36f0dfa2e92c | Java | Chipitos/Tmbd | /app/src/main/java/com/tmbdnews/view/activities/BaseBindingActivity.java | UTF-8 | 842 | 1.953125 | 2 | [] | no_license | package com.tmbdnews.view.activities;
import android.databinding.DataBindingUtil;
import android.databinding.ViewDataBinding;
import android.os.Bundle;
import android.support.annotation.Nullable;
import com.tmbdnews.annotations.Layout;
public abstract class BaseBindingActivity<B extends ViewDataBinding> extends Bas... | true |
ab5eda7739f687dd7155cd42c680315e0cf4c54f | Java | csgrabt/training-solutions | /src/test/java/week06d04/junior/ItemTest.java | UTF-8 | 964 | 2.8125 | 3 | [] | no_license | package week06d04.junior;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
import week06d04.junior.Item;
import static org.junit.jupiter.api.Assertions.*;
class ItemTest {
@Test
void priceIsNotValid() {
IllegalArgumentException ioe = Assertions.assertThrows(IllegalArgument... | true |
849dcee2519b496331a929839db5c58a9a22fd1f | Java | MelonsYum/leap-client | /leap/util/MoveUtil.java | UTF-8 | 11,590 | 2.203125 | 2 | [] | no_license | /* */ package leap.util;
/* */ import leap.events.listeners.EventMotion;
/* */ import net.minecraft.block.Block;
/* */ import net.minecraft.block.state.IBlockState;
/* */ import net.minecraft.client.Minecraft;
/* */ import net.minecraft.entity.Entity;
/* */ import net.minecraft.network.Packe... | true |
4abdc93ec5447d53f4cb851387da161ba688dac0 | Java | thomas82/interop | /src/main/java/org/mediaserv/fibre/protocole/domain/gestionfichier/TypeProtocole.java | UTF-8 | 400 | 2.234375 | 2 | [] | no_license | package org.mediaserv.fibre.protocole.domain.gestionfichier;
/**
*
* @author Thomas Lecocq
*/
public enum TypeProtocole {
PM("PM"),
ACCES("ACCES"),
SAV("SAV"),
WKF("WKF"),;
private final String protocole;
public String getProtocole() {
return protocole;
}
private TypeP... | true |
5ae5d34aca6622b73be85bce9a7f39465df0142c | Java | Accomple/AndroidApp | /app/src/main/java/live/sockets/accomple/AccommodationListAdapter.java | UTF-8 | 5,139 | 2.140625 | 2 | [
"MIT"
] | permissive | package live.sockets.accomple;
import android.content.Context;
import android.content.Intent;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
import android.widget.Toast;
import androidx.annotation.NonNull;
i... | true |
db8e47f0f153ba2c64892ab159e03bc7ba309d60 | Java | snowjak88/rays3d | /rays3d/core/src/main/java/org/rays3d/spectrum/RGB.java | UTF-8 | 6,565 | 2.734375 | 3 | [
"MIT"
] | permissive | package org.rays3d.spectrum;
import static org.apache.commons.math3.util.FastMath.abs;
import static org.apache.commons.math3.util.FastMath.max;
import static org.apache.commons.math3.util.FastMath.min;
import java.io.Serializable;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonIgnore;... | true |
a1d3f18be7b84b98417c2c1bfe5fcc0976b8af33 | Java | CarlosBeltranP/CUMapp | /app/src/main/java/com/jcstudio/com/calculation/CumCalculator.java | UTF-8 | 1,292 | 2.734375 | 3 | [] | no_license | package com.jcstudio.com.calculation;
import com.jcstudio.com.model.Materia;
import java.text.DecimalFormat;
import java.util.List;
import java.util.Vector;
public class CumCalculator {
private DecimalFormat precision = new DecimalFormat("0.00");
public String cumCalculado(List<Materia> courseList){
... | true |
23b52232877fa0f433874b314d30d1e8760fb808 | Java | VasyaPogoriliy/XMLParser | /src/sample/GetXmlContent_SAX.java | UTF-8 | 4,944 | 2.828125 | 3 | [] | no_license | package sample;
import org.xml.sax.Attributes;
import org.xml.sax.SAXException;
import org.xml.sax.helpers.DefaultHandler;
import javax.xml.parsers.SAXParser;
import javax.xml.parsers.SAXParserFactory;
import java.util.ArrayList;
public class GetXmlContent_SAX implements ParseXMLStrategy {
@Override
public ... | true |
d806528c996822cc02e1f694649a52ecd7a36bd4 | Java | szilex/Project_Java_Mentoring | /mentoring/src/main/java/com/euvic/mentoring/entity/MeetingDTO.java | UTF-8 | 2,658 | 2.65625 | 3 | [] | no_license | package com.euvic.mentoring.entity;
import java.time.LocalDate;
import java.time.LocalTime;
public class MeetingDTO {
private static final long serialVersionUID = 1L;
private int id;
private LocalDate date;
private LocalTime startTime;
private LocalTime endTime;
private int mentorId;
... | true |
c84ec26c9c3a9d240559bd4917cd20d3ba239efe | Java | fmutlu68/NewsApi | /src/main/java/com/fm/newsProject/core/repository/GenericRepository.java | UTF-8 | 327 | 2.21875 | 2 | [] | no_license | package com.fm.newsProject.core.repository;
import java.util.List;
import java.util.function.Predicate;
public interface GenericRepository<T> {
T add(T entity);
T update(T entity);
void delete(T entity);
List<T> getAll();
List<T> getAll(Predicate<? super T> filter);
T get(Predicate<? super T> filter, String mod... | true |