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 |
|---|---|---|---|---|---|---|---|
C++ | UTF-8 | 1,253 | 3.359375 | 3 | [] | no_license | #include <iostream>
#include <stdio.h>
using namespace std;
struct Repartidor
{
int dni;
char nom[25];
int zona;
};
int main()
{
Repartidor rep;
int cant[6]={0}; //Inicializaron el vector
int i=0;
FILE*arch = fopen("Repartidores.dat","wb");
if(arch==NULL)
cout<<"ERROR"<<endl;
else
{
cout<<"Ingrese ... |
C++ | UTF-8 | 2,242 | 3.09375 | 3 | [
"MIT"
] | permissive | // Вывод тока и напряжения в монитор последовательного порта:
//
#include <Battery_Shield.h> // Подключаем библиотеку Battery_Shield.
Battery_Shield pwrBank; // Объявляем объект pwrBank для работы с функциями... |
Markdown | UTF-8 | 447 | 2.75 | 3 | [] | no_license | # App Flow
## Stack
### Backend:
* Firebase Auth
* Firebase Realtime Database
Functions:
* Create Child:
Firebase Functions - createUser (node.js)
## Sign up/Sign in
### Flow
* Sign in default - if fails, automatically registers new user and signs in
### Sign up/Register
Onboarding:
* User Details -> saved to... |
Markdown | UTF-8 | 2,513 | 2.859375 | 3 | [] | no_license | # select
模拟select下拉框
效果图如下所示

**[DEMO请案例点击这里查看.](http://www.lovewebgames.com/jsmodule/select.html "select demo")**
----------
# 调用示例
```
<select name="select" id="select">
<option value="-1">请选择</option>
<option value="1">男</option>
<option value="0" selected="true">女</option>
<... |
Java | UTF-8 | 219 | 1.65625 | 2 | [] | no_license | package com.uca.capas.repository;
import org.springframework.data.jpa.repository.JpaRepository;
import com.uca.capas.domain.Showtime;
public interface ShowtimeRepository extends JpaRepository<Showtime, Integer> {
}
|
Swift | UTF-8 | 3,723 | 3.1875 | 3 | [] | no_license | //
// AShape.swift
// ShapesGenerator
//
// Created by Tah Tatsumoto on 1/10/16.
// Copyright © 2016 Mad Hat Productions. All rights reserved.
//
import Foundation
public class AShape : NSObject, IShape {
private let type : ShapeType;
private var internalPoints : [Point]!;
p... |
Python | UTF-8 | 1,938 | 2.53125 | 3 | [] | no_license | import sys
import struct
import numpy as np
from scipy import signal
from datetime import datetime
import matplotlib.pyplot as plt
# Useage
if len(sys.argv) != 2:
print("Usage: {} <samples.bin>".format(sys.argv[0]))
sys.exit(1)
# Data Files
sample_file = open(sys.argv[1], 'rb')
wfm_file = open('./wfm.bin'... |
JavaScript | UTF-8 | 1,134 | 3.921875 | 4 | [
"ISC"
] | permissive | /*
Given an array nums of n integers, are there elements a, b, c in nums such that a + b + c = 0? Find all unique triplets in the array which gives the sum of zero.
Note:
The solution set must not contain duplicate triplets.
Example:
Given array nums = [-1, 0, 1, 2, -1, -4],
A solution set is:
[
[-1, 0, 1],
[-... |
TypeScript | UTF-8 | 385 | 2.546875 | 3 | [] | no_license | import { Pipe, PipeTransform } from '@angular/core';
@Pipe({
name: 'filtro'
})
export class FiltroPipe implements PipeTransform {
transform(elements: any[], args: string, attr: string): any[] {
if (args == '') return elements;
args = args.toLowerCase();
return elements.filter( item => {
r... |
C | UTF-8 | 2,649 | 2.734375 | 3 | [] | no_license | #ifndef LINK_LIST_H_
#define LINK_LIST_H_
#include <stdint.h>
typedef struct st_LIST_NODE
{
struct st_LIST_NODE * next;
struct st_LIST_NODE * prior;
void * pdata;
} LIST_NODE, * PLIST_NODE;
typedef struct st_DLINK_LIST
{
PLIST_NODE head;
PLIST_NODE tail;
uint32_t count;
} DLINK, * PDLINK;
typedef int (*DLINKWO... |
Markdown | UTF-8 | 864 | 3 | 3 | [] | no_license | # holiday-maker-with-multiple-language
Laravel application for maintaing and for android API
# About this
<ul>
<li>Add any package</li>
<li>Under this package admin can add any month</li>
<li>Under month admin can add any date , single data or range of date with single or multiple language attribute</li>
<li... |
Java | UTF-8 | 2,555 | 2.9375 | 3 | [] | no_license | package bitcamp.java89.ems.server;
import java.io.File;
import java.net.ServerSocket;
import java.util.ArrayList;
//import bitcamp.java89.ems.server.controller.StudentController;
import java.util.HashMap;
public class EduAppServer2bak {
//클라이언트 요청을 처리할 Command 구현체들을 보관한다(Command 구현체 보관소).
//HashMap<명령문자... |
Ruby | UTF-8 | 197 | 3.296875 | 3 | [] | no_license | def guess_number guess
number = 25
puts "Guess was too high" unless guess <= number
puts "Guess was too low" unless guess >= number
puts "You got it" if guess == number
end
guess_number 25
|
Markdown | UTF-8 | 4,681 | 2.953125 | 3 | [] | no_license | # WASM Analysis
This document provides notes on the WASM for a simple function named 'add' that
returns the sum of two arguments, all values are of type float.
Tools used to generate .wasm and .wat are from the [WABT] project. The
repository (https://github.com/cullenr/wasm-analysis) for this document
contains compi... |
JavaScript | UTF-8 | 764 | 2.625 | 3 | [] | no_license | import React, { Component } from 'react'
class Child extends Component{
componentWillReceiveProps(nextProps){
console.log('componentWillReceiveProps',nextProps)
}
render(){
return(
<div>child--{this.props.myid}</div>
)
}
}
export default class App extends Component {
... |
C# | UTF-8 | 1,167 | 3.046875 | 3 | [] | no_license | using System;
using System.Collections.Generic;
namespace LoxStatEdit
{
public class LoxStatProblem
{
public readonly LoxStatObject Source;
public readonly object Problem;
public LoxStatProblem(LoxStatObject source, object problem)
{
Source = source;
Pr... |
Python | UTF-8 | 646 | 2.765625 | 3 | [
"MIT"
] | permissive | f = open("DataDict.txt")
lines = f.readlines()
#Format into data
data = [i.strip().split() for i in lines]
#From original... ancient code
# _A_
# # (O.o)
# |__/*\
# | / \
#
# AnCiEnT WiZ0rd!
print(data[0])
data[1] = [data[1][0]] + [" ".join(data[1][1:])]
for i in range(2,len(data)):
data[i] = [data[i][0]] +... |
PHP | UTF-8 | 240 | 3.09375 | 3 | [] | no_license | <?php
class GraphicStyle
{
private $styleInfo;
function __construct($styleInfo = array())
{
$this->styleInfo = $styleInfo;
}
public function add($styleInfo)
{
$this->styleInfo = array_merge($this->styleInfo, $styleInfo);
}
}
|
Python | UTF-8 | 3,346 | 3.625 | 4 | [] | no_license |
#Ecrire un algorithme, puis un programme, qui attend une suite de 4 chiffres de maniere
#a representer un nombre entier. L utilisateur devra pouvoir effectuer des saisies successives et
#l algorithme acceptera tout caractere saisi mais :
#- il n affichera en echo a l ecran que les chiffres,
#- il ne tiendra pas comp... |
Python | UTF-8 | 753 | 2.578125 | 3 | [] | no_license | #!/usr/bin/env python
# -*- coding: utf-8 -*
import os
import glob
import zipfile
# 100 gs文件解压路径 filepathzip
sourcegszip = "Z:\\GS"
# 指定的解压位置
filepathzipdir = "D:\\GS\\"
os.chdir(sourcegszip)
path = os.listdir()
pathlist = []
pathdiclist = {}
for i in path:
if os.path.isfile(i):
if "zip" in i:
p... |
Python | UTF-8 | 662 | 3.390625 | 3 | [] | no_license | import numpy as np
# transfer function
def stepFunction(soma):
if (soma >= 1):
return 1
return 0
def sigmoidFunction(soma):
return 1 / (1 + np.exp(-soma))
def tahnFunction(soma):
return (np.exp(soma) - np.exp(-soma)) / (np.exp(soma) + np.exp(-soma))
def reluFunction(soma):
if soma >= 0:
... |
Python | UTF-8 | 1,272 | 3.140625 | 3 | [] | no_license | import getpass
from function.dict import readText
from function.make_tree import makeTree
from function.convert_binary import convertBinary
import sys
# most names are self explanatory
# the convertBinary means function to convert the Tree into encoded form
def Createfile(Dictionary,cw):
# create the file in encoded ... |
Python | UTF-8 | 648 | 3.8125 | 4 | [] | no_license | #coding=utf-8
from itertools import imap,ifilter,groupby
rlt = imap(pow, [1, 2, 3], [1, 2, 3])
for num in rlt:
print(num)
test2 = ifilter(lambda x: x > 5, [2, 3, 5, 6, 7]) #将lambda函数依次作用于每个元素,如果函数返回True,则收集原来的元素。6, 7。
for test1 in test2:
print test1
def height_class(h):
if h > 180:
return... |
C# | UTF-8 | 2,212 | 2.671875 | 3 | [] | no_license | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using PrjCrudEF.Models;
namespace PrjCrudEF.Controllers
{
public class CategoryController : Controller
{
NorthwindEntities db = new NorthwindEntities();
// GET: Category
public ActionRe... |
Java | UTF-8 | 3,695 | 3.5 | 4 | [] | no_license | package DFS;
/**
* Created by yyt on 2018/1/20.
*/
public class SudokuSolver {
public SudokuSolver() {
}
public void solveSudoku(char[][] board) {
int N = board.length;
// 行
boolean[][] used1 = new boolean[N][N];
// 列
boolean[][] used2 = new boolean[N][N];
... |
Java | UTF-8 | 1,693 | 1.9375 | 2 | [] | no_license | package controller;
import org.apache.log4j.Logger;
import org.dmg.pmml.mining.MiningModel;
import org.jpmml.evaluator.ModelEvaluator;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.st... |
C++ | UTF-8 | 3,920 | 3.125 | 3 | [] | no_license | #include <iostream>
#include <fstream>
#include <filesystem>
const char* msg = "usage:\n -c <dir> ... compile directory\n -d <PAK file> ... decompile PAK file\n -l <PAK file> ... list contents of a PAK file\n";
void readBlock(std::ifstream& pakFile, int index, std::string& sfname, size_t* fOffset, size_t* fSize)
{
p... |
Markdown | UTF-8 | 7,073 | 2.6875 | 3 | [] | no_license |
# CTO说:怎么成为并做好CTO - 喜欢打酱油的老鸟 - CSDN博客
2018年11月12日 08:04:23[喜欢打酱油的老鸟](https://me.csdn.net/weixin_42137700)阅读数:145标签:[CTO ](https://so.csdn.net/so/search/s.do?q=CTO&t=blog)个人分类:[管理 ](https://blog.csdn.net/weixin_42137700/article/category/8322955)
CTO 可能是大多数开发者心中的梦想,但这些问题:
到底什么样的人适合做 CTO... |
Python | UTF-8 | 676 | 3.71875 | 4 | [
"MIT"
] | permissive | __author__ = 'Devesh Bajpai'
'''
https://codeforces.com/problemset/problem/703/A
Solution: Nothing fancy. Just run the loop over the games and count the rounds won by Mishka and Chris. Return the result
accordingly.
'''
def solve(games):
mishka = chris = 0
for game in games:
if game[0] > game[1]... |
Markdown | UTF-8 | 5,323 | 2.984375 | 3 | [] | no_license | # Xml Node
Converts XML to and from JS node tree.
### Source XML
```xml
<root><image src="image.jpg"/><content>Text <image src="image2.jpg"/> <![CDATA[­]]></content></root>
```
### As a JS Node
```javascript
var Parser = require("xml-node").XmlParser;
Parser.toNode(srcxml, function(err, node){
var content = no... |
Shell | UTF-8 | 1,800 | 3.109375 | 3 | [] | no_license | #!/bin/bash
echo '>> installing dos2unix'
sudo apt install -y dos2unix
echo '>> dos2unix installed.'
dos2unix ~/CLionProjects/OperatingSystemWHW/HW2/arch/x86/entry/syscalls/syscall_64.tbl
dos2unix ~/CLionProjects/OperatingSystemWHW/HW2/include/linux/init_task.h
dos2unix ~/CLionProjects/OperatingSystemWHW/HW2/include/... |
C++ | GB18030 | 7,896 | 2.734375 | 3 | [] | no_license | #include "StdAfx.h"
#include "CurlInterface.h"
#include "stdafx.h"
#include <iostream>
#include <sstream>
//json
using namespace std;
HWND CCurlInterface::parentHwnd = NULL;
wstring CCurlInterface::AsciiToUnicode(const string& str)
{
// Ԥ-пֽڵij
int unicodeLen = MultiByteToWideChar(CP_ACP, 0, str.c_str(), -... |
C# | UTF-8 | 1,417 | 3.71875 | 4 | [] | no_license | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LeetCodeTests.Tests
{
class A0045Jump
{
//给定一个非负整数数组,你最初位于数组的第一个位置。
//数组中的每个元素代表你在该位置可以跳跃的最大长度。
//你的目标是使用最少的跳跃次数到达数组的最后一个位置。
//示例:
//输入: [2,3,1,... |
Markdown | UTF-8 | 1,023 | 2.625 | 3 | [] | no_license | ---
title: "Blockchain, A New Socio-Technical Environment (OpenAccess Book)"
date: 2020-06-01T18:43:53+01:00
---
Book published!!!
Blockchain is widely considered a new key technology. This study examines how blockchain became mainstream and provides the much-needed social contextualisation of blockchain. It explores... |
PHP | UTF-8 | 248 | 2.515625 | 3 | [] | no_license | <?php if (!defined('BASEPATH')) exit('No direct script access allowed');
class Pdf
{
function load($param = [])
{
$param['tempDir'] = sys_get_temp_dir() . DIRECTORY_SEPARATOR . 'mpdf';
return new \Mpdf\Mpdf($param);
}
} |
JavaScript | UTF-8 | 2,649 | 2.8125 | 3 | [] | no_license | import React, {Component} from 'react'
import * as BooksAPI from './BooksAPI'
import {Link} from 'react-router-dom'
import ListBooks from './ListBooks';
class SearchBook extends Component {
state = {
query: '',
books: [],
invalidQuery: false,
}
/**FilteredBooks holds the final list of books that are to be s... |
Python | UTF-8 | 2,082 | 2.8125 | 3 | [] | no_license | '''
Code made for getting the livestream data and getting it to work with Matlab. Currently works by just printing out the data!!
'''
## imports
import time
import socket
import threading
import signal
import sys
## variables
timeout = 1.0
running = True
GLASSES_IP = "fe80::76fe:48ff:fe19:fbaf" # IPv6 ... |
Markdown | UTF-8 | 805 | 3.03125 | 3 | [] | no_license | # Polar
[Demo](https://stefk.github.io/polar/)

This app allows you to draw the graph of a function
of a single real variable in both cartesian and
[polar coordinates](https://en.wikipedia.org/wiki/Polar_coordinate_system).
It'... |
Java | UTF-8 | 23,431 | 2.875 | 3 | [
"Zlib"
] | permissive | import java.io.FileWriter;
import java.io.IOException;
import java.io.PrintWriter;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import java.util.Scanner;
public class Estatisque {
public static void main(String[] args) throws IOException {
Sca... |
C++ | UTF-8 | 801 | 2.609375 | 3 | [] | no_license | #include <bits/stdc++.h>
using namespace std;
int cont = 0, a = 0, total = 0;
void solution(string &s, int idx, int acom) {
if(idx == s.size()) {
cont++;
if(acom == total) {
a++;
}
return;
}
if(s[idx] != '?') {
if(s[idx] == '+')
solution(s, id... |
Go | UTF-8 | 1,888 | 3.09375 | 3 | [
"BSD-3-Clause"
] | permissive | package mods
import (
"encoding/json"
"errors"
"strings"
)
type Redirects []*Redirection
func (rs Redirects) Copy() Redirects {
c := make(Redirects, len(rs))
for i := 0; i < len(rs); i++ {
c[i] = rs[i].Copy()
}
return c
}
// Redirection is the representation of a go-get redirect that should be
// observed ... |
C# | UTF-8 | 2,234 | 3.3125 | 3 | [] | no_license | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ProblemC
{
class program
{
public static bool Judge(long number)
{
string s = number.ToString();
bool flag = true;
for (int i = 0; i < s.Length; i++)... |
Java | UTF-8 | 436 | 1.734375 | 2 | [] | no_license | package com.eurodyn.qlack.fuse.lexicon.repository;
import com.eurodyn.qlack.common.repository.QlackBaseRepository;
import com.eurodyn.qlack.fuse.lexicon.model.Language;
import java.util.List;
import org.springframework.stereotype.Repository;
@Repository
public interface LanguageRepository extends QlackBaseRepository<... |
PHP | UTF-8 | 1,041 | 2.609375 | 3 | [
"Apache-2.0"
] | permissive | <?php
namespace app\admin\model;
use think\Model;
class Cart extends Model
{
//获取所有的数据
public static function GetAll()
{
$result = Cart::order('id', 'desc')->paginate(15);
return $result;
}
//接口数据
public static function GetAllApi()
{
$result = Cart::all();
... |
C | UTF-8 | 534 | 3.25 | 3 | [] | no_license | #include <stdio.h>
#include <math.h>
int main(){
double x1,x2,x3,y1,y2,y3;
double l1,l2,l3;
double p;
scanf("%lf %lf %lf %lf %lf %lf\n",&x1,&y1,&x2,&y2,&x3,&y3);
l1 = sqrt((x1-x2)*(x1-x2)+(y1-y2)*(y1-y2));
l2 = sqrt((x1-x3)*(x1-x3)+(y1-y3)*(y1-y3));
l3 = sqrt((x3-x2)*(x3-x2)+(y3-y2)*(y3-y2))... |
C# | UTF-8 | 5,917 | 3.515625 | 4 | [
"MIT"
] | permissive | using System;
using System.Collections;
/// <summary>
/// Contains the program entry point for the Delegates Sample.
/// </summary>
class DelegatesSample
{
static void Main( string[] args )
{
try
{
// Create a container to hold employees
Employees employees = new Employees(4);
... |
Swift | UTF-8 | 1,416 | 2.625 | 3 | [] | no_license | //
// BitcoreTarget.swift
// TangemKit
//
// Created by Alexander Osokin on 03.02.2020.
// Copyright © 2020 Smart Cash AG. All rights reserved.
//
import Foundation
import Moya
enum BitcoreTarget: TargetType {
case balance(address:String)
case unspents(address:String)
case send(txHex: String)
... |
Java | UTF-8 | 6,141 | 1.84375 | 2 | [] | no_license | package org.measure.impl;
import java.net.ConnectException;
import java.util.ArrayList;
import java.util.List;
import java.util.NoSuchElementException;
import com.modeliosoft.modelio.javadesigner.annotations.objid;
import org.apache.thrift.transport.TTransport;
import org.hawk.service.api.Hawk;
import org.hawk.service... |
Java | ISO-8859-1 | 986 | 3.828125 | 4 | [] | no_license | import java.util.Scanner;
/**
*
*/
/**
* @author usuario
*
*/
public class StringsH1ej5 {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
// Leer una frase por teclado (mximo 80 car) y construir otras dos cadenas de forma que una contenga los caractere... |
JavaScript | UTF-8 | 1,404 | 2.609375 | 3 | [] | no_license | import React from 'react';
import CreateTaskInput from './CreateTaskInput.jsx';
import {
fetchTasksList,
createNewTask,
deleteTask,
updateTask,
} from './tasksGateway.js';
import Task from './Task.jsx';
class TasksList extends React.Component {
state = {
tasks: [],
};
componentDidMount() {
this.... |
Markdown | UTF-8 | 15,105 | 3 | 3 | [] | no_license | ---
tags:
- Docker
- Compose
- Advanced
---
# Working with Docker
>Docker, inc. is the name of the company
Docker is a set of products that use OS-level virtualization to deploy software in packages called containers. The products provide a way for creating, customizing, and orchestrating containers on a network.
... |
C++ | UTF-8 | 1,503 | 3.109375 | 3 | [] | no_license | /**
* Title : HW3
* Author : Melike Demirci
* ID: 21702346
* Section : 2
* Assignment : 3
* Description : simulator.cpp
*/
#if defined(M)
#include "maxHeap1.h"
#else
#include "maxHeap2.h"
#endif // defined
#include <iostream>
#include <fstream>
using namespace std;
void simulate( const str... |
Shell | UTF-8 | 767 | 3.96875 | 4 | [
"MIT"
] | permissive | #!/bin/sh
set -eu
usage()
{
echo "Usage: $(basename $0) <initramfs file>"
}
if [ "$#" -eq 0 ] ; then
usage >&2
exit 1
fi
cpio_args="--extract --quiet --list"
OPTIONS=`getopt -o hl --long help,long -n "$0" -- "$@"`
# Check for non-GNU getopt
if [ $? != 0 ] ; then echo "W: non-GNU getopt" >&2 ; exit 1 ; fi
eval ... |
TypeScript | UTF-8 | 837 | 2.703125 | 3 | [] | no_license | Set fso=createobject("Scripting.FileSystemObject")
'Open the file "qtptest.txt" in writing mode.
Set qfile=fso.OpenTextFile("C:\Documents and Settings\yogesh\Desktop\MyTest\temp\tempsub\tempfile.txt",2,True)
'write contents to the file into two newlines
qfile.Writeline "Welcome to the World of QTP"
'will insert 4 new... |
Swift | UTF-8 | 440 | 3.140625 | 3 | [] | no_license | https://leetcode.com/problems/top-k-frequent-elements/
class Solution:
def topKFrequent(self, nums: List[int], k: int) -> List[int]:
log_book = dict()
for i in nums:
if i in log_book:
log_book[i] = log_book[i] + 1
else:
log_book[i] = 1
... |
TypeScript | UTF-8 | 757 | 2.546875 | 3 | [] | no_license | import { BaseByAttributeBinding } from "./base/BaseByAttributeBinding";
import { Property } from "../../reflection/Property";
import { Model } from "../../models/Model";
export class BaseFieldBinding extends BaseByAttributeBinding {
get attribute(): string { return 'data-field'; }
async binding(DOMObject: HTM... |
Markdown | UTF-8 | 1,091 | 3.046875 | 3 | [] | no_license | ---
title: "注册(组建)公司"
---
通过组建公司,您将在英国设立一个被称为私人有限公司的独立法人实体。
[在英国注册(组建)私人有限公司](https://www.gov.uk/register-a-company-online)的过程很简单,所需时间通常不到24小时。
在英国注册(组建)私人有限公司之前,您需要:
- 确定公司名称
- 确定用作公司注册地址的地址,可以是任何英国地址
- 至少有一位董事(董事不一定非得是英国居民)
- 至少有一位股东(股东可以是公司或个人)
英国公司必须有公司组织大纲及章程(Memorandum and Articles of Association)。这些文件必须在组... |
Java | UTF-8 | 789 | 1.96875 | 2 | [] | no_license | package com.guillenorway.eiv;
import java.util.Arrays;
import javax.annotation.PostConstruct;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import com.guillenorway.eiv.edm.resources.PaisEdm;
import com.sdl.odata.api.ODataException;
import ... |
PHP | UTF-8 | 265 | 2.703125 | 3 | [] | no_license | <?php
declare(strict_types=1);
namespace App\Exception;
final class ItemNotFoundException extends \RuntimeException
{
public static function byItemName(string $itemName): self
{
return new self(sprintf('Item "%s" not found', $itemName));
}
}
|
Markdown | UTF-8 | 2,031 | 2.609375 | 3 | [
"MIT"
] | permissive | ---
layout: post
title: "Moving Vehicle Detection Using AdaBoost and Haar-Like Feature in Surveillance Videos"
date: 2018-01-05 10:41:02
categories: arXiv_CV
tags: arXiv_CV Tracking Detection
author: Mohammad Mahdi Moghimi, Maryam Nayeri, Majid Pourahmadi, Mohammad Kazem Moghimi
mathjax: true
---
* content
{:toc}
###... |
Markdown | UTF-8 | 600 | 2.703125 | 3 | [] | no_license | # Updated-final
This is a student portfolio based on me(Matthew To). It is designed to be responsive to the display of the viewer, to show information about me, my coding projects, as well as my contact info.
## Technologies Used
github[href:"https://github.com/"]
gitlab[href:"https://about.gitlab.com/"]
git[href:"... |
Java | UTF-8 | 2,384 | 3.484375 | 3 | [] | no_license | import java.util.Scanner;
import java.util.Random;
public class rttta
{
public static void rttta() throws InterruptedException
{
Scanner input = new Scanner(System.in);
System.out.println("Well, I have a couple different ideas in mind:");
System.out.println("The weather" +
... |
Java | UTF-8 | 879 | 1.960938 | 2 | [] | no_license | package com.yukai.test;
import javax.annotation.Resource;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import com.yukai.beans.TestUser;
import com.yukai.dao.TestUserMapper;
import com.yukai.service.Test... |
Java | UTF-8 | 536 | 1.773438 | 2 | [] | no_license |
package cfml.parsing.cfmentat.tag;
import net.htmlparser.jericho.EndTagType;
import net.htmlparser.jericho.ParseText;
import net.htmlparser.jericho.Source;
import net.htmlparser.jericho.StartTag;
import net.htmlparser.jericho.StartTagTypeGenericImplementation;
import net.htmlparser.jericho.Tag;
final class cfargumen... |
TypeScript | UTF-8 | 1,198 | 3.3125 | 3 | [] | no_license | /** Задача 2
* Необходимо реализовать асинхронную подгрузку модулей в браузере:
* 1) Разнести классы SettingValue, Setting и Example по разным *.ts файлам
* 2) После компиляции TypeScript должно получаться 3 файла формата *.js.
* 3) Создать index.html, в котором необходимо указать ссылку на первый JavaScript файл,
... |
Java | UTF-8 | 9,791 | 1.710938 | 2 | [
"BSD-2-Clause"
] | permissive | package org.mdpnp.devices.puritanbennett._840;
import ice.ConnectionState;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import java.util.concurrent.ScheduledFuture;
import java.util.concurrent.TimeU... |
JavaScript | UTF-8 | 3,357 | 3.09375 | 3 | [
"MIT"
] | permissive | const inquirer = require('inquirer');
const fs = require('fs');
// const readME = require('./readME');
// array of questions for user
const questions = [
{
type: "input",
message: "What is your project name? ",
name: "title"
},
{
type: "input",
message: "Write a sho... |
Java | UTF-8 | 777 | 2.3125 | 2 | [] | no_license | package dev.nnnk.jtest1.funcs;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.player.PlayerJoinEvent;
import org.bukkit.event.player.PlayerQuitEvent;
import org.bukkit.ChatColor;
import org.bukkit.entity.Player;
// PlayerJoin event handler
public class guelcombai imple... |
Java | UTF-8 | 775 | 2.828125 | 3 | [] | no_license | package com.epn;
public class Nodo {
String dato;
private Nodo siguiente;
private Nodo anterior;
public Nodo(String dato,Nodo despues,Nodo atras ){
this.dato=dato;
this.siguiente = despues;
this.anterior=atras;
}
public Nodo(String dato){
this(dato,null,null);//primer Nodo
}
... |
Java | UTF-8 | 1,075 | 1.726563 | 2 | [] | no_license | /*
* $Id$
* --------------------------------------------------------------------------------------
* Copyright (c) MuleSource, Inc. All rights reserved. http://www.mulesource.com
*
* The software in this package is published under the terms of the CPAL v1.0
* license, a copy of which has been included with this... |
Ruby | UTF-8 | 373 | 2.53125 | 3 | [
"MIT"
] | permissive | module ApplicationHelper
def sentence_of(things, opts = {}, &block)
if block
things = things.collect do |thing|
capture(thing, &block)
end
end
if opts[:connector] == :or
things.to_sentence :last_word_connector => ", or ",
:two_words_connector => " or "
... |
Python | UTF-8 | 1,159 | 2.890625 | 3 | [] | no_license | from crossword import Crossword, Word, WordLengthDictionary
def test_medium_crossword():
w = [
Word(6), # 1 Across
Word(6), # 1 Down
Word(3), # 2d
Word(3), # 3d
Word(6), # 4d
Word(7), # 5a
Word(3), # 6d
Word(7), # 7a
Word(3), # 8d
... |
Java | UTF-8 | 1,598 | 2.125 | 2 | [] | no_license | package evalbasicfsm.revisitor.operations.evalbasicfsm.impl;
import basicFsmEnv.VarDecl;
import basicFsmEnv.revisitor.BasicFsmEnvRevisitor;
import basicFsmEnv.runtime.Context;
import evalbasicfsm.revisitor.operations.evalbasicfsm.ActionOperation;
import evalbasicfsm.revisitor.operations.evalbasicfsm.GuardOperation;
im... |
Python | UTF-8 | 1,798 | 3.125 | 3 | [
"MIT"
] | permissive | import pygame
from random import randint
from copy import deepcopy
Res = WIDTH, HEIGHT = 1600,900
#设置窗口长和宽
TILE = 20 #数值
W, H = WIDTH // TILE, HEIGHT // TILE #设置一个小格子长和宽
fps = 10 #刷新频率
pygame. init()#初始化游戏
surface = pygame.display.set_mode(Res)#设置一个启动窗口res
CLOCK = pygame.time.Clock()
next_field = [[0 for i in range... |
Python | UTF-8 | 815 | 3.40625 | 3 | [] | no_license | from graphics import *
import math
win = GraphWin('Face', 1000, 500) # give title and dimensions
Ans = [100]
Bns = [-50]
Sns = [0]
points = [Point(450, 300)]
lines = []
rect = Rectangle(points[0], Point(550, 250))
rect.setFill("red")
rect.draw(win)
def run():
for x in range(5):
Ans.append(math.sqrt(Ans[... |
Java | UTF-8 | 167 | 1.78125 | 2 | [] | no_license | package com.bmg.vault.list;
public class VaultListNotFoundException extends Throwable {
VaultListNotFoundException(String message){
super(message);
}
}
|
Python | UTF-8 | 1,473 | 2.53125 | 3 | [
"MIT"
] | permissive | import pandas as pd
import re
import joblib as jb
from scipy.sparse import hstack, csr_matrix
import numpy as np
import json
import os
mdl_logr = jb.load("logisticRegression.pkl.z")
mdl_lgbm = jb.load("lgbm.pkl.z")
title_vec = jb.load("title_vectorizer.pkl.z")
def compute_features(data):
publish_date = pd.... |
Shell | UTF-8 | 4,230 | 3.96875 | 4 | [] | no_license | #!/usr/bin/env bash
_file_memo_path="$HOME/.file-memo"
_home_path="$(realpath ~)"
main() {
# 사용방법1: file-memo book1.jpg
# 이렇게 사용하면 book1.jpg 의 설명을 vim에서 보여줘야 한다. 편집도 되고 읽기도 된다.
# book1.jpg 파일의 내용을 읽고 해시값을 계산한다.
# 계산한 해시값이 ff123 이라 하자.
# ~/.file-memo/ff123 파일이 있다면, vim 에... |
Java | UTF-8 | 1,106 | 2.375 | 2 | [] | no_license | package ru.otus.springstudentcheck4.dao;
import org.springframework.context.MessageSource;
import org.springframework.stereotype.Repository;
import ru.otus.springstudentcheck4.configs.YamlProps;
import ru.otus.springstudentcheck4.domain.Check;
@Repository
public class ChecksDaoCSV implements ChecksDao {
private... |
Java | UTF-8 | 1,534 | 2.4375 | 2 | [] | no_license | package com.dinosoftlabs.binder.PojoClass;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
import java.io.Serializable;
public class RegisterPhoneModel implements Serializable {
@SerializedName("status")
@Expose
private String status;
@SerializedName("mes... |
PHP | UTF-8 | 1,313 | 3.0625 | 3 | [] | no_license | <?php
/**
* @author Sam Waters <sam@samwaters.com>
* @created 25/07/2016 14:11
*/
namespace VindiciaPHP\Responses;
use VindiciaPHP\Exceptions\CallException;
abstract class BaseResponse
{
private $_returnCode;
private $_returnString;
private $_soapId;
/**
* Base for all responses
* @param $returnObj
... |
Python | UTF-8 | 286 | 2.796875 | 3 | [] | no_license | #
# @lc app=leetcode id=2710 lang=python3
#
# [2710] Remove Trailing Zeros From a String
#
# @lc code=start
class Solution:
def removeTrailingZeros(self, num: str) -> str:
while len(num) > 0 and num[-1] == '0':
num = num[:-1]
return num
# @lc code=end
|
JavaScript | UTF-8 | 1,715 | 2.96875 | 3 | [] | no_license | /**
* Created by Zakary on 2016/9/26.
*/
var thunderObj = function () {
this.x = [];
this.y = [];
this.h = [];
this.alive = [];//bool
};
thunderObj.prototype.num = 10;
thunderObj.prototype.init = function () {
for(var i = 0;i< score.energyFlag;i++){
this.bron( i );
}
};
thunderObj.prot... |
JavaScript | UTF-8 | 2,057 | 2.8125 | 3 | [] | no_license | import React, { useState, useEffect } from "react";
import axios from "axios";
import CocktailCard from '../cards/CocktailCard';
import DetailedCard from '../cards/DetailedCard';
const RandomCocktail = ({handleCardClick}) => {
const [cocktailName, setCocktailName] = useState("");
const [cocktailPicture, setCockta... |
Java | UTF-8 | 356 | 2.421875 | 2 | [] | no_license | package automat;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.*;
class HerstellerImplTest {
public final String HERSTELLERNAME = "hersteller";
@Test
void getName() {
Hersteller hersteller = new HerstellerImpl(HERSTELLERNAME);
assertEquals(HERSTELLER... |
Swift | UTF-8 | 1,411 | 3.390625 | 3 | [] | no_license | //
// City.swift
// DemoTrie
//
// Created by Gaurav Tiwari on 21/06/19.
// Copyright © 2019 Gaurav Tiwari. All rights reserved.
//
import UIKit
struct City {
var cityName : String
var cityCountryName : String
var cityCoordinates : CityCoordinates = CityCoordinates (latitude: 0.0, longitude: 0.0)
... |
Markdown | UTF-8 | 1,794 | 2.578125 | 3 | [
"MIT"
] | permissive | <center><img src="./images/iaas_knight.png" width="200"></center>
# Instructions de Jeu pour Iaas Knight
[Créer une application Node.js sur Azure]('https://docs.microsoft.com/fr-fr/azure/app-service/app-service-web-get-started-nodejs')
[Liste des commandes Azure CLI ]('https://docs.microsoft.com/fr-fr/azure/virtual-... |
C++ | GB18030 | 1,646 | 2.734375 | 3 | [] | no_license | //״ѹDP
#include<iostream>
#include<algorithm>
using namespace std;
const int maxst = (1 << 17);
int ini[20];
int cover[maxst];
int dp[maxst];
int main()
{
int n;
int Case = 1;
while (~scanf("%d", &n))
{
if (n == 0) break;
for (int i = 0; i < n; i++)
{
ini[i] = 0|(1<<i... |
C# | UTF-8 | 11,029 | 3.171875 | 3 | [] | no_license | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data;
using System.Data.Common;
using System.Data.SqlClient;
using System.Data.SqlTypes;
using System.Configuration;
namespace TopTravel
{
//This class represents the entity of a flight with... |
Python | UTF-8 | 16,932 | 2.71875 | 3 | [] | no_license | import h5py
import numpy as np
from scipy.io import loadmat
import time
from sklearn.linear_model import LinearRegression
from sklearn.linear_model import RidgeCV
from sklearn.linear_model import LassoCV
from sklearn.metrics import r2_score
from UoI_Lasso import UoI_Lasso
class Retina:
def __init__(self, data_path... |
C | UTF-8 | 691 | 2.65625 | 3 | [] | permissive | /*$Header: /data/petsun4/data1/src_solaris/frame_align/RCS/slice_sequence.c,v 1.1 2011/07/26 05:24:02 avi Exp $*/
/*$Log: slice_sequence.c,v $
* Revision 1.1 2011/07/26 05:24:02 avi
* Initial revision
**/
#include <stdlib.h>
#include <math.h>
void slice_sequence (int interleaved, int force0, int reverse, int *s... |
JavaScript | UTF-8 | 776 | 3.6875 | 4 | [] | no_license | const raw = require('fs').readFileSync(__dirname + '/input.txt', 'utf-8')
const input = Uint32Array.from(raw.split(',').map(Number))
function findNthElement(playUntil = 2020) {
let prevValue = 0;
const lastIndexOf = new Uint32Array(playUntil);
let i = 0;
for (i; i < input.length; i++) {
prevVa... |
JavaScript | UTF-8 | 523 | 3.578125 | 4 | [] | no_license | let x = 10;
console.log(x.lenght);
let persona = {
nombre: "juan",
apellido: "lastra",
email: "mewamata@wii.com",
edad: 20,
nombreCompleto: function() {
return this.nombre + " " + this.apellido;
}
}
console.log(persona.nombre);
console.log(persona.edad)
console.log(persona.apellido);
... |
Java | UTF-8 | 1,819 | 2.5 | 2 | [] | no_license | package com.ee.parkinglot.search;
import com.ee.parkinglot.model.Car;
import com.ee.parkinglot.model.ParkingSlot;
import com.ee.parkinglot.utils.TestUtils;
import org.junit.Before;
import org.junit.Test;
import java.util.List;
import java.util.stream.Collectors;
import java.util.stream.Stream;
import static org.juni... |
Markdown | UTF-8 | 7,980 | 2.875 | 3 | [] | no_license | # Part Two (B): Deploy and Upgrade Gramola using [OLM](https://github.com/operator-framework/operator-lifecycle-manager) on OpenShift
Most of the text is the same as in the other Part Two. I did it to avoid you going back and forth...
Part Two is way easier and doesn't involve coding. If you skipped part one because ... |
C++ | UTF-8 | 1,349 | 2.796875 | 3 | [] | no_license | class Solution {
public:
int r,c;
vector<pair<int,int>>dirs = {{0,1},{0,-1},{1,0},{-1,0}};
bool check(int i,int j){
return i>=0 && j>=0 && i<r && j<c;
}
void dfs(vector<vector<int>>& grid,int i,int j,vector<vector<int>>& visited){
visited[i][j] = 1;
for(auto dir: di... |
C# | UTF-8 | 3,203 | 2.8125 | 3 | [] | no_license | using System;
using System.Collections.Generic;
using System.Data.Linq;
using System.Data.Linq.Mapping;
using System.Data.Linq.SqlClient;
using System.IO;
using System.Linq;
using System.Text;
using OpenQA.Selenium;
using OpenQA.Selenium.Chrome;
using OpenQA.Selenium.Support.UI;
namespace WebScraper
{
class Progr... |
Java | UTF-8 | 1,028 | 1.71875 | 2 | [] | no_license | package com.parvez_n_jabed_co.ccc_project.Activities;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import com.parvez_n_jabed_co.ccc_project.R;
public class CommunicationActivity extends AppCompatActivity {
@Overrid... |
C | UTF-8 | 3,545 | 3.265625 | 3 | [] | no_license | /*
* Sample file using the Linux kernel coding convention.
*
* https://www.kernel.org/doc/Documentation/CodingStyle
*
* General rules:
* - Indents are tabs and must be 8 spaces wide.
* - Each line must be at most 80 characters long.
* - Use C-style comments.
* - File names should be lower-case.c
*
* Cop... |
C# | UTF-8 | 574 | 2.921875 | 3 | [] | no_license | string temp = "Oliver/Christina=2373400019485 Ortosan/David=2373400019486";
var PersonstrList = temp.Split(' ');
List<Test> PersonList = new List<Test>();
foreach (var p in PersonstrList)
{
Test t = new Test();
t... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.