language
stringclasses
15 values
src_encoding
stringclasses
34 values
length_bytes
int64
6
7.85M
score
float64
1.5
5.69
int_score
int64
2
5
detected_licenses
listlengths
0
160
license_type
stringclasses
2 values
text
stringlengths
9
7.85M
Markdown
UTF-8
1,699
2.59375
3
[]
no_license
# Java小專題-網路投保系統 DEMO 模擬一個網路投保平台(未串接金流),提供三種保險商品試算保費、投保及查詢保單等服務。 DEMO(Youtube) [影片連結](https://youtu.be/8HXu-Y0e3ho "Java小專題-網路投保系統 DEMO") #主要架構與`package`說明如下: **`controller`**: 3種保險各一個:`Accident`、`Life`、`Tour` 簽發保單:`Underwriter` 會員管理:`MemberServlet` **`model`**:分為 (1)`model.premium`:計算保費 ...
Python
UTF-8
1,656
2.5625
3
[]
no_license
import scipy import sklearn import sklearn.cluster import pickle from enum import Enum from sklearn.decomposition import PCA import numpy as np from sklearn.preprocessing import StandardScaler import csv class Objects(Enum): banana=1 bulldozer=2 chair=3 eyeglasses=4 flashlight=5 foot=6 han...
Python
UTF-8
3,820
2.890625
3
[]
no_license
import scipy from sklearn.feature_selection import mutual_info_classif, SelectKBest, RFE from sklearn.discriminant_analysis import LinearDiscriminantAnalysis import sklearn.model_selection from sklearn.metrics import roc_auc_score from sklearn.neighbors.kde import KernelDensity from sklearn.svm import SVR import numpy...
C++
UTF-8
2,251
3.90625
4
[]
no_license
// // Created by m43 on 22. 04. 2020.. // #include <iostream> #include <string> #include <vector> #include <set> using namespace std; template<typename Iterator, typename Predicate> Iterator mymax( Iterator first, Iterator last, Predicate pred) { Iterator max_iterator = first; while (first != last) ...
Java
UTF-8
208
1.546875
2
[]
no_license
package d3; public interface setup{ final public static class env{ public world wld; public window win; public player[]plrs; } public void do_setup(final applet app,final env ret)throws Throwable; }
C
WINDOWS-1251
2,923
3.640625
4
[]
no_license
#include <stdio.h> #include <stdlib.h> #include <ctype.h> #include <string.h> int main() { int i, n=1; // , . char mas[100]; printf("\nput string\n"); scanf("%s",mas);/* // N , . for (i=0;i<n; i++) { puts(mas); } // . . for (i=0;i<strlen(mas);i++) { if((mas[i]>='a')&&(mas[i]<...
C++
UTF-8
2,049
2.65625
3
[]
no_license
#include "ExhaustivePatchMatch.h" #include <boost/progress.hpp> #include "boost/iostreams/stream.hpp" using cv::Mat; using cv::matchTemplate; using cv::minMaxLoc; using cv::Point; using cv::Rect; using cv::Scalar; using cv::Vec3f; using std::shared_ptr; ExhaustivePatchMatch::ExhaustivePatchMatch(const Mat &source, co...
Python
UTF-8
544
3.71875
4
[]
no_license
from threading import Thread i = 0 def Thread1(): for j in range(1000000): i=i+1 def Thread1(): for j in range(1000000): i=i-1 # Potentially useful thing: # In Python you "import" a global variable, instead of "export"ing it when you declare it # (This is probably an effort to make you feel bad about typing t...
JavaScript
UTF-8
1,758
4.3125
4
[]
no_license
//Function that returns an object which gives the total amount of change to give back following a purchase. const calculateChange = function(total, cash) { const currencyNames = ['twentyDollar', 'tenDollar', 'fiveDollar', 'twoDollar', 'oneDollar', 'quarter', 'dime', 'nickle', 'penny'] //Holder for currency names...
Go
UTF-8
5,934
2.515625
3
[]
no_license
package ui import ( "image" "image/color" "image/draw" "log" "golang.org/x/image/font" "github.com/jmigpin/editor/imageutil" "github.com/jmigpin/editor/ui/tautil" "github.com/jmigpin/editor/xgbutil/evreg" "github.com/jmigpin/editor/xgbutil/xcursors" "github.com/BurntSushi/xgb/xproto" ) const ( Separator...
JavaScript
UTF-8
352
2.71875
3
[ "MIT" ]
permissive
var Fiber = require('fibers'); function sleep(ms) { var fiber = Fiber.current; setTimeout(function() { fiber.run(); }, ms*1000); Fiber.yield(); } this.getParticipants = function () { return []; }; // the body this.body = function () { console.log('heijaa begin'); sleep(3); c...
Java
UTF-8
1,136
2.65625
3
[]
no_license
package user; import util.UserNameConverter; import javax.persistence.Column; import javax.persistence.Convert; import javax.persistence.Embeddable; /** * Created by oradchykova on 11/7/17. */ @Embeddable public class Credentials { @Column(nullable = false, unique = true, updatable = false) private String ...
C#
UTF-8
3,850
2.515625
3
[]
no_license
using Alexa.NET.Request.Type; using Alexa.NET.Response; using Alexa.NET.Response.Directive; using GameMaker.Implementations; using GameMaker.Interfaces; using GameMaker.Utils; using NLog; using System; using System.Collections.Generic; using System.Text; namespace GameMaker.IntentHandlers { class AddScoreIntent :...
Markdown
UTF-8
2,589
3
3
[ "MIT" ]
permissive
--- layout: post title: "Super simple BDD with Buildout" excerpt: "Behaviour-Driven Development without the overhead" category: blog tags: - bdd - tdd - buildout - python published: true --- I've been doing BDD for years. I've never used Lettuce, or behave, or Cucumber, or in fact any BDD framework. I've never ...
Markdown
UTF-8
5,253
3.0625
3
[]
no_license
# Run_Analysis ## Project Background The purpose of this project is to demonstrate an ability to collect, work with, and clean a data set. It is a requirement for completion of the Coursera Getting and Cleaning data course. It uses data compiled during a Human Activity Recognition experiment that built recordings of 30...
Java
UTF-8
6,071
2.671875
3
[ "Apache-2.0" ]
permissive
/* * Copyright 2013 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
Python
UTF-8
294
3
3
[]
no_license
import cv2 # 이미지 읽기 img = cv2.imread('bts.jpg', 1) print(img) print("shape:", img.shape) # 이미지 화면에 표시 cv2.imshow('Image', img) cv2.waitKey() # 이미지 윈도우 삭제 cv2.destroyAllWindows() # 이미지 다른 파일로 저장 # cv2.imwrite('test2.png', img)
C#
UTF-8
2,139
3.109375
3
[]
no_license
using CollectionViewChallenge.Models; using System.Collections.ObjectModel; namespace CollectionViewChallenge.ViewModels { public class WorldViewModel { private ObservableCollection<Country> countries; public ObservableCollection<Country> Countries { get => countr...
Java
UTF-8
2,304
2.859375
3
[]
no_license
package demo; import java.time.LocalTime; import java.util.ArrayList; import java.util.Collections; import java.util.Scanner; import theater.systemusers.Client; import theater.systemusers.SystemCheck; import theater.systemusers.User; import theater.Admin; import theater.Cinema; import theater.Movie; public class De...
Java
UTF-8
641
2.578125
3
[]
no_license
package edu.chl.tda367.booleancircuits.common; import java.beans.PropertyChangeListener; /** * Interface for classes that wants to be observable by PropertyChangeListener. * * @author Kaufmann * */ public interface IObservable { /** * Adds an observer to this observable class. * * @para...
Java
UTF-8
664
3.4375
3
[]
no_license
package encapsulation; public class EncapsulationIntro { public static void main(String[] args) { Laptop lap = new Laptop(); lap.setPrice(10); lap.setRam(20); System.out.println(lap.getRam()); } public void doWork() { System.out.println("i am working"); } } class Laptop{ private int ram; private int...
Java
UTF-8
511
1.789063
2
[]
no_license
package com.huatu.tiku.match.service.v1.report; import com.huatu.ztk.commons.exception.BizException; /** * 描述:我的报告接口 * * @author biguodong * Create time 2018-12-27 下午5:36 **/ public interface ReportService { /** * 查询模考大赛报告列表 * * @param userId * @param tagId * @param subject * @...
Markdown
UTF-8
2,641
2.890625
3
[ "MIT" ]
permissive
--- layout: post title: "Labelled network subgraphs reveal stylistic subtleties in written texts" date: 2017-11-08 02:16:49 categories: arXiv_CL tags: arXiv_CL Relation author: Vanessa Q. Marinho, Graeme Hirst, Diego R. Amancio mathjax: true --- * content {:toc} ##### Abstract The vast amount of data and increase of ...
Java
UTF-8
2,274
2.125
2
[ "MIT" ]
permissive
package br.uff.ic.gems.peixeespadacliente.symptom; import br.uff.ic.gems.peixeespadacliente.exception.RefactoringException; import java.util.List; import br.uff.ic.gems.peixeespadacliente.model.agent.LocalManagerAgent; import br.uff.ic.gems.peixeespadacliente.resolution.ExtractInterfaceResolution; import br.uff.ic.gem...
Java
UTF-8
152
2.171875
2
[]
no_license
public class ProjectBWorkerV1 { public void run(){ new ProjectAWorkerV1().run(); System.out.println("project b worker v1"); } }
Swift
UTF-8
1,973
3.125
3
[]
no_license
// // CardView.swift // Memorize // // Created by Martin Dimitrov on 19.11.20. // import SwiftUI struct CardView: View { //MARK: - Constants private enum Constants { static let cornerRadius:CGFloat = 10.0 static let fontSizeMultiplier: CGFloat = 0.75 static let strokeWidth: CGFloat ...
Python
UTF-8
608
2.546875
3
[]
no_license
import tkinter, os from tkinter.messagebox import askokcancel, showinfo # import TestDire import windnd def drag_files(urls): print(b'\n'.join(urls).decode()) showinfo('确认路径', b'\n'.join(urls).decode()) if __name__ == '__main__': top = tkinter.Tk() top.title('测试工具') # top.geometry("350x200") ...
C#
UTF-8
985
2.53125
3
[ "CC0-1.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
using BrightIdeasSoftware; namespace FreyrViewer.Ui.Grids { internal class FormatRowArgs { public FormatRowArgs( OLVListItem item, int rowIndex, int displayIndex, bool useCellFormatEvents) { Item = item; RowIndex = rowIndex...
Java
UTF-8
162
2.078125
2
[]
no_license
package pieces; public class Lieutenant extends AbstractMovable implements Movable { public Lieutenant(Team team){ super(team,5,"./images/5.png"); } }
Python
UTF-8
1,391
3.765625
4
[]
no_license
class HotBeverages: def __init__(self): self.price = 0.30 self.name = "hot beverage" def description(self): return "Just some hot water in a cup." def __str__(self): des = self.description() n = self.name p = '%.2f' % self.price s = "name : " + n + "\...
PHP
UTF-8
6,562
2.546875
3
[]
no_license
<?php /** * @package modules\roles * @subpackage roles * @category Xaraya Web Applications Framework * @version 2.4.0 * @copyright see the html/credits.html file in this release * @license GPL {@link http://www.gnu.org/licenses/gpl.html} * @link http://xaraya.info/index.php/release/27.html */ /** * Search * ...
Java
UTF-8
479
2.765625
3
[]
no_license
public class Director { private DressBuilder dbuilder; public DressList Construct(DressBuilder dressBuilder , int type , int wallet , int watch) { dbuilder = dressBuilder; if(type == 1 || type == 2) { dbuilder.addDress(type); } else { System.o...
C++
UTF-8
1,545
3.9375
4
[]
no_license
#include <iostream> #include <forward_list> /* * NOTE: This solution fails to imagine the possibility that the heads * of two linked lists merge into single linked list. This isn't possible * with forward_lists, but is possible with a more basic linked list. * */ using namespace std; /* * Runs O(n) * */ bool...
Markdown
UTF-8
39,913
3.046875
3
[]
no_license
# Spring注解驱动开发 ### Configuration ```java //表名这是一个配置类 @Configuration ``` ###Bean ```java /** * 方法名可以作为bean的id 也可以使用 @Bean的value属性 * @return */ @Bean public Person person(){ return new Person(1,"卡卡西"); } ``` ###CompontScan ```java //bean扫描注解 @ComponentScan( value = "com.ab...
Markdown
UTF-8
30,205
2.59375
3
[]
no_license
# IsoSeq™: PacBio® Isoform Sequencing. The Isoform Sequencing (Iso-Seq™) Anaylsis refers to [PacBio’s proprietary methods and software applications for transcriptome sequencing](http://www.pacb.com/applications/rna-sequencing/). The Iso-Seq application generates full-length cDNA sequences — from the 5’ end of transcri...
C++
UTF-8
1,016
3.28125
3
[]
no_license
#ifndef MATHHELPER_H #define MATHHELPER_H #include <random> #include "Vector2.h" #include "Vector3.h" namespace MathHelper { inline int randomInt( int min, int max ) { int diff = max - min; int offset = rand() % diff; return min + offset; } inline int randomInt( int max ) { return rand()...
Java
UTF-8
1,513
2.328125
2
[]
no_license
package br.com.PersonalSpringMVC.controller; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestMapping; ...
Markdown
UTF-8
2,427
2.859375
3
[]
no_license
+++ categories = ["daily"] date = "2019-01-20T12:00:00-08:00" tags = ["today", "change"] title = "Gone for a swim" +++ ![](/uploads/Copy of IMG_8923.JPG) Annnd.. that's me. At first I wasn't planning on including any pictures of myself on here, but today is a milestone and I wanted some proof, so I decided to share...
Java
UTF-8
19,704
1.929688
2
[]
no_license
package com.qcj.controller; import java.io.File; import java.io.IOException; import java.util.List; import java.util.Map; import java.util.UUID; import javax.annotation.Resource; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.apache.log4j.Logger;...
Python
UTF-8
6,913
3.234375
3
[]
no_license
# Import routines import numpy as np import math import random from itertools import permutations # Defining hyperparameters m = 5 # number of cities, ranges from 1 ..... m t = 24 # number of hours, ranges from 0 .... t-1 d = 7 # number of days, ranges from 0 ... d-1 C = 5 # Per hour fuel and other costs R = 9 # pe...
Java
UTF-8
419
3.015625
3
[]
no_license
package com.horcu.apps.interview.google.Math; /** * Created by ray on 6/12/16. */ //factorial of 5. How many combinations are there public class factorial { public static void main(String[] args) { int fact = 6, runningProduct = 0; for (int a = fact; a > 0; a--) { runningProduct ...
JavaScript
UTF-8
1,353
2.90625
3
[ "MIT" ]
permissive
const Table = require("../") const header = [ { value: "item" } ] // Example with arrays as rows const rows1 = [ [1] ] const rows2 = [ [{ value: 1 }] ] const footer = [ function (cellValue, columnIndex, rowIndex, rowData) { const total = rowData.reduce((prev, curr) => { return prev + (typeof...
Java
UTF-8
690
2.234375
2
[]
no_license
package ru.itis; import org.springframework.context.ApplicationContext; import org.springframework.context.support.ClassPathXmlApplicationContext; import ru.itis.dao.UsersDaoJdbcImpl; import ru.itis.model.User; import java.util.List; /** * 06.05.2017 * Main * * @author Sidikov Marsel (First Software Engineering ...
Python
UTF-8
871
3.4375
3
[]
no_license
class Stud: scount=0 def __init__(self,id,name,marks): self.sid = id self.sname = name self.smarks = marks Stud.scount += 1 def showstudentinfo(self): print('######################') print("Student id is",self.sid) print('Student name i...
Shell
UTF-8
4,325
3.796875
4
[ "MIT" ]
permissive
archi=$(uname -m) if [ -z ${LD_LIBRARY_PATH+x} ] then export LD_LIBRARY_PATH=/usr/local/lib fi source dev_function.sh # Go language GO_VERSION=1.10.1 go_suffix='' case "$archi" in "armv6l") go_suffix=arm;; "i686") go_suffix=386;; "x86_64") go_suffix=amd64;; *);; esac if [ ! -z "$go_suffix" ] then e_he...
JavaScript
UTF-8
1,588
3.59375
4
[]
no_license
$(function() { $("form").submit(function(event) { // Get the input text, remove punctuation, and split on newlines var inputText = $("#input-text").val().replace(/[^\w\s]/g, "").split(/\r|\n/); // Get other input values var wordCount = parseInt($("#word-count").val()); var vo...
C#
UTF-8
911
4.1875
4
[]
no_license
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Task2ReadNumbersIntoStack { class Program { static void Main(string[] args) { // Task 2: Write a program that reads N integers from the console // and reverses th...
Rust
UTF-8
2,456
3.3125
3
[ "Apache-2.0", "MIT" ]
permissive
use std::cell::UnsafeCell; use std::mem; use super::INITIAL_CAPACITY; use super::job::Job; // a chain of vectors where jobs will be allocated in contiguous memory. struct BufChain { buf: Vec<Job>, _prev: Option<Box<BufChain>>, } impl BufChain { fn new(size: usize) -> Self { BufChain { ...
Python
UTF-8
567
3.3125
3
[]
no_license
#!/usr/bin/env python import numpy import scipy.stats import matplotlib.pyplot as pyplot ''' Generate a quantile-quantile plot, given an array of data. ''' def run(dataset): ''' ----------- Parameters: ----------- dataset: (numpy.ndarray) a 1-dimensional numpy array of data. -----------------...
Java
UTF-8
2,315
2.484375
2
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
package com.aviary.android.feather.widget; import it.sephiroth.android.library.imagezoom.ImageViewTouch; import android.content.Context; import android.graphics.Bitmap; import android.graphics.Matrix; import android.graphics.drawable.Drawable; import android.util.AttributeSet; import android.widget.ViewSwitcher; // T...
JavaScript
UTF-8
593
2.546875
3
[]
no_license
function navbox() { var body = $('body'); var navbox = $('#navbox'); var navboxShow = $('#navboxShow'); var navboxClose = $('#navboxClose'); function showActions() { body.css('overflow','hidden'); navbox.addClass('open'); navbox.on('click', 'a', closeActions); } function closeActions() { ...
JavaScript
UTF-8
521
3.625
4
[]
no_license
function countDown(num){ let timer = setInterval(function(){ if(num<=0){ clearInterval; console.log('Done!'); }else{ console.log(num); } num --; }, 1000); } countDown(4); function randomGame(){ let counter = 0; let counting = setInterv...
C#
UTF-8
12,071
2.703125
3
[]
no_license
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; using System.Data.SqlClient; namespace Inventory_Management_System { public partial class balanceshe...
Java
UTF-8
645
1.875
2
[]
no_license
package com.hdc.service; import java.io.Serializable; import java.util.List; import com.hdc.entity.Page; import com.hdc.entity.Parameter; import com.hdc.entity.Role; public interface IRoleService { public List<Role> getRoleListPage(Parameter param, Page<Role> page) throws Exception; public List<Rol...
Markdown
UTF-8
1,353
3.203125
3
[]
no_license
# pyqt_simple_memo ## 1. What is this <img src="./sample.jpg"></img><br/> This is a simple Memo App made using PyQt5. * * * ## 2. What can this app do Records the date of creation and modification of the memo, and displays a list of memos saved by the app itself.</br> This program manages memo data in xml standard.</b...
TypeScript
UTF-8
4,484
2.515625
3
[]
no_license
/* eslint-disable no-console */ import { useState, useEffect } from 'react'; import useReactRouter from 'use-react-router'; import { Post } from 'entity/entity/post'; import { SortType, SortTypes } from 'entity/union/sortType'; import { searchPostList } from 'api/posts/searchPostList'; import { SearchParam, SearchParam...
Java
UTF-8
3,742
2.15625
2
[]
no_license
package ie.hodmon.computing.service_manager.controller; import android.app.ProgressDialog; import android.content.Context; import android.content.Intent; import android.os.AsyncTask; import android.os.Bundle; import android.util.Log; import android.view.Menu; import android.view.View; import android.widget.AdapterView...
C++
UTF-8
3,405
3.484375
3
[]
no_license
#include<iostream> #include<conio.h> #define col 3 using namespace std; bool getInputAndSetCell(char[][col], bool); void showBoard(char[][col]); bool rowAndColomnsame(char[][3]); bool ifDiagonalSame(char[][col]); void playGame(void); int main() { char ch; do { playGame(); cout << "\n\nDo you want to play again.....
Java
UTF-8
643
1.765625
2
[]
no_license
package com.cpone.platform.api.repository.traceplan; import com.cpone.platform.api.domain.bzb.TraceplanSku; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.data.jpa.repository.Modifying; import org.springframework.data.jpa.repository.Query; import javax.transaction.Transactio...
Python
UTF-8
9,114
3.21875
3
[]
no_license
# ------------------------------------------------------------------------------ # FOURIER OPTICS DEMONSTRATION # Language: Python 3 # ------------------------------------------------------------------------------ # Calculates the optical intensity on a screen due to aperture diffraction. # The complex scalar field u...
Java
UTF-8
3,509
2.21875
2
[]
no_license
/* * The contents of this file are subject to the terms of the Common Development * and Distribution License (the License). You may not use this file except in * compliance with the License. * * You can obtain a copy of the License at http://www.netbeans.org/cddl.html * or http://www.netbeans.org/cddl.txt. * * ...
C++
UTF-8
2,330
3.109375
3
[]
no_license
#include <bits/stdc++.h> using namespace std; typedef struct No { int val; struct No *dir; struct No *esq; } No; int N, i; No *pesquisa(No *r, int v) { if (!r) return r; if (r->val == v) return r; if (r->val > v) return pesquisa(r->esq, v); return pesquisa(r->d...
Markdown
UTF-8
1,055
2.75
3
[]
no_license
### 无用的 CSS 如何删除 - `purifyCss`: 遍历代码,识别已经用到的 CSS class - `uncss`: HTML 通过 jsdom 加载,所有的样式通过 PostCSS 解析,通过 document.querySelector 来识别在 html 文件里面不存在的选择器 #### 在 webpack 中如何使用 PurifyCSS - 使用 [purgecss-webpack-plugin](https://github.com/FullHuman/purgecss-webpack-plugin) - 加上 mini-css-extract-plugin 配合使用(必须和将css单独提取成文件的插...
Java
UTF-8
1,009
3.578125
4
[]
no_license
import java.util.ArrayList; import java.util.Arrays; public class selectionSort { public static void main(String[] args) { ArrayList<Integer> arr = new ArrayList(Arrays.asList(1, 32, 13, 56, 6)); System.out.println(selectionSort(arr)); } public static int findSmallest(ArrayList<Integer> arr...
Python
UTF-8
156
3.6875
4
[]
no_license
num1 = int(input("Enter the lower limit")) num2 = int(input("Enter the upper limit")) i = num1 while(i<=num2): if(i%2==0): print(i) i+=1
Go
UTF-8
403
2.96875
3
[]
no_license
package expression import "fmt" type Number struct { Value int64 } func (number Number) String() string { return fmt.Sprintf("%d", number.Value) } func (number Number) Inspect() string { return fmt.Sprintf("<%d>", number.Value) } func (number Number) Reduce(environment map[string]Expression) Expression { panic...
JavaScript
UTF-8
3,558
2.875
3
[]
no_license
import React, { Component } from 'react'; import Cell from './Cell'; import presets from '../preset'; import '../styles/Board.css'; class Board extends Component { constructor(props) { super(props); this.state = { cells: [] } } componentDidMount() { this.setupBoard() } setupBoard = () ...
C++
UTF-8
495
2.578125
3
[]
no_license
#ifndef GRIDPOINT_H_ #define GRIDPOINT_H_ #include "util.h" using namespace trimesh; class GridPoint { public: float opacity; vec3_d color; GridPoint(); GridPoint(float opacity, vec3_d color); bool isEmpty() const; }; inline GridPoint::GridPoint() : opacity(0.0f), color(vec3_d(0, 0, 0)) { } inline GridPoint:...
Markdown
UTF-8
2,590
2.796875
3
[ "MIT", "CC-BY-4.0", "LicenseRef-scancode-unknown-license-reference", "LicenseRef-scancode-public-domain" ]
permissive
--- title: ChartGroups object (Excel) keywords: vbaxl10.chm569072 f1_keywords: - vbaxl10.chm569072 ms.prod: excel api_name: - Excel.ChartGroups ms.assetid: 991147bc-bbb5-9f7d-a7c9-55854aa50325 ms.date: 03/29/2019 ms.localizationpriority: medium --- # ChartGroups object (Excel) Represents one or more series plotted i...
C++
UTF-8
989
2.8125
3
[ "MIT" ]
permissive
#pragma once #include <mw/mmr/MMRInfo.h> #include <mw/interfaces/db_interface.h> // Forward Declarations class Database; class MMRInfoDB { public: MMRInfoDB(mw::DBWrapper* pDBWrapper, mw::DBBatch* pBatch = nullptr); ~MMRInfoDB(); /// <summary> /// Retrieves an MMRInfo by index. /// </summary> ...
Markdown
UTF-8
322
2.96875
3
[]
no_license
# MagicSquare # The program will take in a user input that should be a positive odd number # The code's output verifies that the 'magic square' calculation is correct or not, # while verifying if the user's input is correct as well # In the square format: each row, column and diagonals should add up to the same numbe...
C++
UTF-8
249
2.78125
3
[ "MIT" ]
permissive
#include <iostream> using namespace std; int main() { int x, n; cin >> x >> n; int y; int rest = x; for (int i = 0; i < n; i++) { cin >> y; if (rest + x > y) rest = rest + x - y; else rest = 0; } cout << rest << endl; }
Java
UTF-8
8,509
2.34375
2
[]
no_license
package cn.weili.love.biz.service.comply; import cn.weili.bridge.context.BridgeException; import cn.weili.love.biz.data.*; import cn.weili.love.biz.exception.LoveException; import cn.weili.love.biz.form.RegisterForm; import cn.weili.love.biz.service.support.BizService; import cn.weili.love.biz.service.UserService; imp...
Swift
UTF-8
1,064
2.75
3
[]
no_license
// // ContentView.swift // CoronaTrace // // Created by Sai Gurrapu on 3/29/20. // Copyright © 2020 Sai Gurrapu. All rights reserved. // import SwiftUI struct ContentView: View { @State private var selection = 0 var body: some View { TabView(selection: $selection){ Home() ...
Python
UTF-8
834
4.0625
4
[]
no_license
""" 제목 : 시저 암호 아이디어 : 아스키 코드를 이용 - 아스키 코드의 특징 : a-z,A-Z까지 1씩 증가함 - a ~ z 사이에서 움직이는건 그냥 더해주면 됨 - z를 넘어서는 값은 나머지 연산 처리해주면 됨 - a = 53 z = 79 라고 하면, 79+1 -> 53이 되도록 구현 : 그냥 무식하게 하자 - for c in s: - c가 공백인 경우 - c가 소문자인 경우 - c가 대문자인 경우 """ def solution(s, n): answer = "" for c in s : ...
Python
UTF-8
7,333
2.65625
3
[]
no_license
# Created by: Jenny Trac # Created on: Dec 2017 # Created for: ICS3U # This scene shows the main menu. from scene import * import ui import config import sound from game_scene import * from settings_scene import * from instructions_scene import * from credits_scene import * class MainMenuScene(Scene): def setup(s...
Java
UTF-8
1,571
2.640625
3
[ "Apache-2.0" ]
permissive
package com.researchspace.protocolsio; import static org.junit.jupiter.api.Assertions.assertEquals; import java.util.ArrayList; import java.util.Collections; import java.util.List; import org.junit.jupiter.api.AfterEach; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.DisplayName; import org....
C++
UTF-8
823
2.953125
3
[ "MIT" ]
permissive
/* * author:tlming16 * email:tlming16@fudan.edu.cn * all wrong reserved */ class Solution { public: int threeSumClosest(vector<int>& nums, int target) { sort(nums.begin(),nums.end()); int diff=INT_MAX; int ans=0; for (int i=0;i<nums.size()-2;i++){ int j=i+1; ...
C#
UTF-8
1,699
2.984375
3
[ "MIT" ]
permissive
using UnityEngine; using System.Collections; using System.Collections.Generic; sealed public class MeshUnoptimizer { public static Mesh Unoptimize(Mesh mesh) { List<Vector3> vertices = new List<Vector3>(mesh.vertices); List<Vector2> uvs = new List<Vector2>(mesh.uv); List<int> triangles = new List<int>(mesh.tr...
C
UTF-8
666
2.65625
3
[]
no_license
#include<stdio.h> int main(){ int l,i,j,flag=1,k=0; int map[100][100]; int tmap[100][100]; scanf("%d",&l); for(i=0;i<=l-1;i++) for(j=0;j<=l-1;j++){ scanf("%d",&map[i][j]); tmap[i][j]=map[i][j]; } while(1){ flag=1; for(i=0;i<=l-1;i++) for(j=0;j<=l-1;j++) if(map[i][j]==0){ flag=0; ...
Java
UTF-8
617
1.734375
2
[]
no_license
package com.zhanlu.custom.dm.service; import com.zhanlu.custom.dm.dao.BackupHistDao; import com.zhanlu.custom.dm.entity.BackupHist; import com.zhanlu.framework.common.service.CommonService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import javax.annot...
Markdown
UTF-8
1,053
3.40625
3
[]
no_license
# Collinear Points **The problem**. Given a set of n distinct points in the plane, find every (maximal) line segment that connects a subset of 4 or more of the points. ## My Code The Point class has a method for computing the slope to another point and a Comparator which compares the argument points by the slope the...
Java
UTF-8
1,087
2.25
2
[]
no_license
package com.revature.services; import java.util.List; import javax.transaction.Transactional; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import com.revature.models.Users; import com.revature.repositories.UserDao; @Service public clas...
Java
UTF-8
443
1.6875
2
[]
no_license
package com.mahao.waterlayoutdemo; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; public class DashActivity extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activi...
C++
UTF-8
2,536
2.84375
3
[]
no_license
/* ----------------------------------------------------------------------- | | | Class: Profile | | Description: Profile entity class. | | ...
Java
UTF-8
2,168
2.234375
2
[]
no_license
/** * */ package br.edu.unitri.Rest; import java.io.Serializable; import java.util.HashMap; import java.util.List; import java.util.Map; import javax.inject.Inject; import javax.ws.rs.Consumes; import javax.ws.rs.DELETE; import javax.ws.rs.GET; import javax.ws.rs.POST; import javax.ws.rs.Path; im...
Python
UTF-8
2,314
3.453125
3
[]
no_license
from textwrap import wrap def formatKeyFunc(text, key): # these lines format the key so it is repeated as many times as the text count, keyBuild = -1, "" for i in range(len(text)): count += 1 if count > (len(key) - 1): count = 0 keyBuild = keyBuild + key[count].upper() ret...
C++
UTF-8
507
2.859375
3
[]
no_license
#include <gtest/gtest.h> #include "projet/Vertex.hpp" TEST(Vertex, init){ } /* TEST(Vertex, init){ Vertex pt1; Vertex pt2(glm::vec3(0), glm::vec2(0), glm::vec3(0)); EXPECT_EQ(pt1, pt2); Vertex pt3(glm::vec3(1), glm::vec2(1,2), glm::vec3(0,1,0)); EXPECT_EQ(pt3, Vertex(glm::vec3(1), glm::vec2(1,2), glm::vec3(...
C++
UTF-8
263
2.578125
3
[]
no_license
#include <stdio.h> int main() { char a[501] = { 0 }; int i, j = 0; scanf("%s", a); for (i = 0; i < 501; i++) { if (a[i] != EOF) { j += a[i] - '0'; } else break; } if (j % 3 == 0) printf("1"); else printf("0"); }
PHP
UTF-8
5,461
2.6875
3
[ "MIT" ]
permissive
<?php defined('BASEPATH') or exit('No direct script access allowed'); class M_katalog extends CI_Model { public function getProdbyId($id) { $this->db->select('*'); $this->db->from('barang'); $this->db->join('kategori', 'tbl_barang.barang_kategori_id = kategori.kategori_id', 'left'); ...
SQL
UTF-8
119
2.75
3
[]
no_license
SELECT deposit_group, SUM(deposit_amount) AS total_sum FROM wizzard_deposits GROUP BY deposit_group ORDER BY total_sum
Python
UTF-8
580
2.5625
3
[]
no_license
from data_structure.graph import Graph as GRAPH from web_parsers.href_parser import HrefParserThreadBoosted from pyvis.network import Network link = 'https://facebook.com' graph = GRAPH() network = Network(height='100%', width='100%', bgcolor='#000000', font_color='white') threaded_parser = HrefParserThreadBoosted(t...
Java
UTF-8
236
1.507813
2
[]
no_license
package com.boot.service; import org.springframework.web.context.request.async.DeferredResult; /** * Created by XJX on 2017/6/8. */ public interface PushService { DeferredResult<String> getAsyncUpdate(); void refresh(); }
JavaScript
UTF-8
1,672
2.6875
3
[]
no_license
var http = require('http') , https = require('https') , cheerio = require('cheerio') , querystring = require('querystring') , siteUrl = 'http://nodejs.cn/api/' , fs = require('./fs.js'); function domFilter(html) { var $ = cheerio.load(html) , html = $('#column2').children("#intro").ne...
C
UTF-8
3,126
2.90625
3
[]
no_license
#include <stdio.h> #include <stdlib.h> #include <png.h> #include <sys/times.h> #include <libpng16/png.h> #define SIZE 600 #define ITERATION_LIMIT 32000 void mandel (int buffer[SIZE][SIZE]) { clock_t delta = clock (); struct tms tmsbuf1, tmsbuf2; times (&tmsbuf1); float a = -2.0, b = .7, c = -1.35, d...
Python
UTF-8
437
4.28125
4
[]
no_license
def read_int(prompt): s = "" while not isnumber(s): s = input(prompt) return int(s) def isnumber(s): try: int(s) return True except ValueError: return False a = read_int("Enter the first number: ") b = read_int("Enter the second number: ") print(f...
Java
UTF-8
251
1.820313
2
[]
no_license
package com.afei.bat.afeiplayandroid.biz; /** * Created by MrLiu on 2017/12/26. *2. 登录模块model接口和所需参数 */ public interface IHomeFragmentBannerModel { void banner(IHomeFragmentBannerListener iHomeFragmentBannerListener); }
PHP
UTF-8
691
2.5625
3
[ "MIT" ]
permissive
<?php namespace App\Actions\Tag; use App\Contracts\Actions\Tag\DeletesTag; use App\Models\Tag; class DeleteTagAction extends TagActionAbstract implements DeletesTag { /** * Delete the given tag. * * @param Tag $tag * @return int Remote tag ID. */ public function delete(Tag $tag): ...
C++
UTF-8
2,347
3.125
3
[]
no_license
#include "KeyboardControls.h" KeyboardControls::KeyboardControls() { ToggleFullscreenKey = Keyboard::F11; PauseKey = Keyboard::Escape; DisplayMapKey = Keyboard::Space; IncreaseSkillKey = Keyboard::Add; DecreaseSkillKey = Keyboard::Subtract; NextSkillKey = Keyboard::Numpad9; PreviousSkillKey = Keyboard...
Java
UTF-8
622
1.507813
2
[]
no_license
package cn.cjf.gateway.vo.wx; import com.thoughtworks.xstream.annotations.XStreamAlias; import lombok.Data; import lombok.NoArgsConstructor; @Data @NoArgsConstructor public abstract class WxPayBaseRequest { @XStreamAlias("appid") protected String appid; @XStreamAlias("mch_id") protected String mchId; ...