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 | 3,172 | 3.40625 | 3 | [] | no_license | ๏ปฟ// Ionia Flemming
// Recitation 930am
// https://ide.c9.io/joph0114/cs1300s18
// Recitation 5, Problem 1
// February 12, 2018 // cant figure out how to traverse or keep a counter going to compare the next substring set
#include <iostream>
#include <string>
using namespace std;
/... |
Python | UTF-8 | 772 | 3.640625 | 4 | [] | no_license | '''
Created on 21/09/2013
Largest prime factor
The prime factors of 13195 are 5, 7, 13 and 29.
What is the largest prime factor of the number 600851475143 ?
@author: Antek
'''
from problem_7.problem_7 import prime_numbers
def prime_factors(n):
factors = []
step = 100
length = step
... |
SQL | UTF-8 | 26,566 | 3.75 | 4 | [] | no_license | -- This file will create entries in the database for all schools for 2014 that are NEW
-- to dot-art schools. So, no need to enter schools from last year if they have entered
-- again this year.
-- For schools that HAVE re-entered from last year, please list their names below.
-- Gateacre Comprehensive school
INSERT ... |
PHP | UTF-8 | 835 | 3.09375 | 3 | [] | no_license | <?php
class Library_Qframe_View_Element_JS_File
{
private $type;
private $src;
public function __construct($type, $src)
{
$this->type = $type;
$this->src = $src;
}
/**
* Devuelve el valor del atributo type.
*
* @return string
*/
public function getType()
{
return $this->type;
}
/**
... |
C# | UTF-8 | 3,091 | 3.015625 | 3 | [] | no_license | ๏ปฟusing System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Assignment3_crypto.Logic.Interfaces;
using System.Numerics;
namespace Assignment3_crypto.Logic.BackEndLogic
{
public class Hasher : IBlock
{
#region IBlock Members
public ... |
C++ | UTF-8 | 387 | 2.703125 | 3 | [] | no_license | #include <utility>
template<typename T>
Pimpl<T>::Pimpl() : p_{ new T{} } {}
template<typename T>
template<typename ...Args>
Pimpl<T>::Pimpl(Args&& ...args) : p_{ new T{std::forward<Args>(args)...} } {}
template<typename T>
Pimpl<T>::~Pimpl() {}
template<typename T>
T* Pimpl<T>::operator->() { return p_.get(); }
t... |
Markdown | UTF-8 | 7,774 | 3.65625 | 4 | [] | no_license | # 14503\(๋ก๋ด ์ฒญ์๊ธฐ\)
## ๋ฌธ์
๋ก๋ด ์ฒญ์๊ธฐ๊ฐ ์ฃผ์ด์ก์ ๋, ์ฒญ์ํ๋ ์์ญ์ ๊ฐ์๋ฅผ ๊ตฌํ๋ ํ๋ก๊ทธ๋จ์ ์์ฑํ์์ค.
๋ก๋ด ์ฒญ์๊ธฐ๊ฐ ์๋ ์ฅ์๋ NรM ํฌ๊ธฐ์ ์ง์ฌ๊ฐํ์ผ๋ก ๋ํ๋ผ ์ ์์ผ๋ฉฐ, 1ร1ํฌ๊ธฐ์ ์ ์ฌ๊ฐํ ์นธ์ผ๋ก ๋๋์ด์ ธ ์๋ค. ๊ฐ๊ฐ์ ์นธ์ ๋ฒฝ ๋๋ ๋น ์นธ์ด๋ค. ์ฒญ์๊ธฐ๋ ๋ฐ๋ผ๋ณด๋ ๋ฐฉํฅ์ด ์์ผ๋ฉฐ, ์ด ๋ฐฉํฅ์ ๋, ์, ๋จ, ๋ถ์ค ํ๋์ด๋ค. ์ง๋์ ๊ฐ ์นธ์ \(r, c\)๋ก ๋ํ๋ผ ์ ์๊ณ , r์ ๋ถ์ชฝ์ผ๋ก๋ถํฐ ๋จ์ด์ง ์นธ์ ๊ฐ์, c๋ ์์ชฝ์ผ๋ก ๋ถํฐ ๋จ์ด์ง ์นธ์ ๊ฐ์์ด๋ค.
๋ก๋ด ์ฒญ์๊ธฐ๋ ๋ค์๊ณผ ๊ฐ์ด ์๋ํ๋ค.
1. ํ์ฌ ์์น๋ฅผ ์ฒญ์ํ๋ค.
2. ํ์ฌ ... |
Java | UTF-8 | 676 | 2.671875 | 3 | [
"MIT"
] | permissive | package in.sapk.grava.game;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
/**
* Created by george on 27/05/15.
*/
public class SideTest {
@Test
public void testGetValue_A() {
Side side = Side.A;
assertEquals(0, side.getValue());
}
@Test
public void testGe... |
C++ | UTF-8 | 598 | 3.0625 | 3 | [] | no_license |
vector<int> topoSort(int V, vector<int> adj[])
{
// code here
vector<int> indegree(V,0);
for(int i = 0; i<V;i++){
for(int x : adj[i]){
indegree[x]++;
}
}
queue<int> q;
for(int i=0;i<V;i++){
if(indegree[i]==0){
q.push(i);
}
... |
Shell | UTF-8 | 951 | 3.015625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
fsf_list=( /Users/boo/Documents/degree_PhD/data_fmri/analysis_MVPA/fsl_glm_wft4_w8s_lc_w8s*)
for i in "${fsf_list[@]}"; do
fsf_list2=($i/*.nii)
for dd in "${fsf_list2[@]}"; do
IN=$dd
arrIN=(${IN//analysis_MVPA\// })
file_name=${arrIN[1]}
IN=$file_name
arrIN=(${IN//\// })
fol... |
PHP | UTF-8 | 787 | 2.765625 | 3 | [] | no_license | <?php
declare(strict_types=1);
namespace Mvannes\JwtParser\Validator\Constraint;
use Mvannes\JwtParser\Token\TokenInterface;
class ValidNotBeforeConstraint implements TokenSyntaxConstraintInterface
{
private const NOT_BEFORE_CLAIM_NAME = 'nbf';
private $validAt;
public function __construct(\DateTime $va... |
JavaScript | UTF-8 | 4,733 | 3.421875 | 3 | [] | no_license | var inputCheck = document.getElementById("inputCheck");
var inputPrevious = document.getElementById("inputPrevious");
var inputNext = document.getElementById("inputNext");
var textResultCheck = document.getElementById("resultCheck");
var textResultPrevious = document.getElementById("resultPrevious");
var textResultNex... |
Shell | UTF-8 | 143 | 2.921875 | 3 | [] | no_license | #!/bin/sh
if grep "abc" file
then
echo file contains abc
else
echo file doesn\'t contain abc
fi
grep abc file
echo return code is $?
exit 0
|
Python | UTF-8 | 1,782 | 3.875 | 4 | [] | no_license | class Node:
def __init__(self, data):
self.data = data
self.next = None
class LinkedList:
def __init__(self):
self.head = None
def pushdata(self, new_data):
new_node = Node(new_data)
new_node.next = self.head
self.head = new_node
def insertAfterData(... |
Java | UTF-8 | 5,554 | 2.140625 | 2 | [
"BSD-2-Clause"
] | permissive | /**
* Copyright (c) 2003-2010, Xith3D Project Group all rights reserved.
*
* Portions based on the Java3D interface, Copyright by Sun Microsystems.
* Many thanks to the developers of Java3D and Sun Microsystems for their
* innovation and design.
*
* Redistribution and use in source and binary forms, with or wi... |
C# | UTF-8 | 2,200 | 3.09375 | 3 | [] | no_license | ๏ปฟnamespace DirkSarodnick.TS3_Bot.Core.Entity
{
using System;
/// <summary>
/// Defines the TimeClientEntity struct.
/// </summary>
[Serializable]
public class TimeClientEntity
{
/// <summary>
/// Initializes a new instance of the <see cref="TimeClientEntity"/> struct.
... |
Java | UTF-8 | 3,840 | 3.234375 | 3 | [] | no_license | import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.awt.geom.Rectangle2D;
public class FractalExplorer {
private JFrame jFrame = new JFrame();
private JImageDisplay jI... |
C | UTF-8 | 3,403 | 2.90625 | 3 | [] | no_license | /* db_recrd.c */
/* */
/* The purpose of this program is to display data for a specified part */
/* number; this data can be amended if required. */
/*
DB_RECRD... |
Java | UTF-8 | 761 | 3.078125 | 3 | [] | no_license | package com.mrgn.app;
public class DemoClass implements MyInterface {
@Override
public void method1() {
System.out.println("method 1 Implementation");
}
@Override
public void method2() {
System.out.println("method 2 Implementation");
}
@Override
public void method3() {
// TODO Aut... |
Java | UTF-8 | 801 | 2.5625 | 3 | [] | no_license | import org.testng.annotations.DataProvider;
/**
* The DataProvider, which passes a list of list of Objects to the @Test with
* the corresponding dataprovider attribute to be used as parameters to that
* test method. Essentially a form of parameterization.
*/
public class DataProviderMemeExercise {
/**
* ... |
Python | UTF-8 | 982 | 3.3125 | 3 | [] | no_license | import unittest
import requests
from populace import _change_in_latitude, _change_in_longitude
class TestMilesToLatLng(unittest.TestCase):
def test_change_in_latitude(self):
"""
Test method correct latitude adjustment
"""
result = _change_in_latitude(100)
self.assertEqual(... |
Markdown | UTF-8 | 5,568 | 3.28125 | 3 | [] | no_license | # Aquarius
- January 20 - February 18
- Music: alternative/ electronic
- As an aquarius, you are an air sign, independent, and free spirited. You are innovative, imaginative, and a little rebellious. Alternative music is a great fit for you because it doesn't follow anyone else's rules. Alternative music is filled wit... |
Python | UTF-8 | 120 | 2.578125 | 3 | [] | no_license | class test:
s1 = ('this is class varible')
@classmethod
def show(cls):
print(cls.s1)
test.show()
|
Markdown | UTF-8 | 5,168 | 2.921875 | 3 | [
"Apache-2.0"
] | permissive | ## Building from the Command Line
The command-line version of Turbo Studio is called <b>XStudio.exe</b> and can be found in the Turbo Studio installation directory. See below for a list of command-line arguments and options for the XStudio tool.
<table>
<tr>
<th>Command</th>
<th>Usage</th>
<th>Description</th>... |
SQL | UTF-8 | 1,018 | 3.8125 | 4 | [] | no_license | drop schema IMS;
CREATE SCHEMA IF NOT EXISTS IMS;
use IMS;
CREATE TABLE Customer
(customer_id int NOT NULL AUTO_INCREMENT,
first_name varchar(20),
last_name varchar(20),
email varchar(20),
phone_num int,
CONSTRAINT PK_Customer PRIMARY KEY (customer_id));
CREATE TABLE IF NOT EXISTS Item
(item_id int NOT N... |
Java | UTF-8 | 1,042 | 1.828125 | 2 | [] | no_license | package com.kitri.board.service;
import java.util.List;
import org.apache.ibatis.session.SqlSession;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.kitri.board.dao.AlbumDao;
import com.kitri.board.model.AlbumDto;
@Service
public c... |
Java | UTF-8 | 2,211 | 2.203125 | 2 | [
"MIT"
] | permissive | /**
*
*/
/**
*
* Copyright (c) 2012 <copyright Aruba spa>
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software
* and associated documentation files (the "Software"), to deal in the Software without restriction,
* including without limitation the rights to use, copy, mo... |
C# | UTF-8 | 2,645 | 2.53125 | 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;
namespace fORMS
{
public partial class counter : Form
{
public counter()
{
... |
SQL | UTF-8 | 5,197 | 3.765625 | 4 | [] | no_license | -- MySQL Script generated by MySQL Workbench
-- Thu Apr 27 11:15:23 2017
-- Model: New Model Version: 1.0
-- MySQL Workbench Forward Engineering
/*
* Sql script to create and populate tables
* You need to run this script with an authorized user.
* to run this file @ mysql client :mysql> source path-to\E-Commerc... |
C++ | UTF-8 | 3,432 | 3.078125 | 3 | [] | no_license | #include <algorithm>
#include <cassert>
#include <iomanip>
#include <iostream>
#include <vector>
using namespace std;
class Solution {
public:
Solution(const vector<int>& parent, const vector<bool>& has_worm)
: has_worm_(has_worm) {
n_ = parent.size();
assert(n_ == (int)has_worm.size());
childre... |
C++ | UTF-8 | 3,558 | 2.765625 | 3 | [] | no_license | /*
MessageQueueRequestChannel.cpp
Created by Joshua Higginbotham on 6/16/16.
*/
/*--------------------------------------------------------------------------*/
/* INCLUDES */
/*--------------------------------------------------------------------------*/
#include "MessageQueueRequestChannel.h"
/*------------------... |
Java | UTF-8 | 2,512 | 2.65625 | 3 | [] | no_license | package com.secondhand.common.basemethod;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import org.springframework.util.Assert;
/**
* Api่ฟๅ็ปๆ
*
* @author Erica
* @since 2020/2/3
*/
@Data
@Getter
@Setter
@Accessors(chain = true)
public class ApiResult<T> {
... |
Java | UTF-8 | 975 | 2.21875 | 2 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package VRTSignature;
import java.io.File;
/**
*
* @author heckarim
*/
public class DoIt {
public static void main(String[] args){
new DoIt().action();
}
private void action() {
String... |
Java | UTF-8 | 482 | 1.601563 | 2 | [] | no_license |
/*
* @(#)Prajitura.java
*
* Generated by <a href="http://lci.cs.ubbcluj.ro/ocle/>OCLE 2.0</a>
* using <a href="http://jakarta.apache.org/velocity/">
* Velocity Template Engine 1.3rc1</a>
*/
/**
*
* @author unascribed
*/
public class Prajitura {
public int getPret() {
int nP... |
Java | UTF-8 | 803 | 2.359375 | 2 | [] | no_license | package com.chrismin13.vanillaadditions.items.prismarine;
import org.bukkit.Color;
import org.bukkit.Material;
import com.chrismin13.additionsapi.enums.ArmorType;
import com.chrismin13.additionsapi.utils.MaterialUtils;
import com.chrismin13.vanillaadditions.items.AverageLeatherArmor;
public class Prismarine... |
Java | UTF-8 | 3,757 | 2.640625 | 3 | [
"MIT"
] | permissive | package home.app.services.service.repositories;
import home.app.services.service.model.AccommodationType;
import home.app.services.service.model.Service;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.sprin... |
Python | UTF-8 | 7,245 | 2.734375 | 3 | [
"BSD-3-Clause"
] | permissive | import pytest
from pandarallel import pandarallel
import pandas as pd
import numpy as np
import math
@pytest.fixture(params=(False, True))
def progress_bar(request):
return request.param
@pytest.fixture(params=(None, False))
def use_memory_fs(request):
return request.param
@pytest.fixture(params=("named... |
C | UTF-8 | 3,082 | 3.59375 | 4 | [] | no_license | #include <stdio.h>
#include <stdlib.h>
/* Helper math functions */
int circleError(int x, int y, int r) {
int error = (r*r) - (x*x) - (y*y);
if (error > 0) {
return error;
} else {
return -error;
}
}
/* End helper functions */
void writeImage(char* filename, char*** image, int width, int height) {
FILE* ... |
C++ | UTF-8 | 1,409 | 3.0625 | 3 | [] | no_license |
#include <Wire.h>
#include "Adafruit_PWMServoDriver.h"
// called this way, it uses the default address 0x40
Adafruit_PWMServoDriver pwm = Adafruit_PWMServoDriver(0x40);
// our servo # counter
uint8_t servonum = 0;
void setup() {
Serial.begin(9600);
Serial.println("16 channel Servo test!");
pwm.begin();
pwm.... |
Java | UTF-8 | 242 | 1.921875 | 2 | [] | no_license | /*
* Copyright 2007-2009 Eric Holloway. All rights reserved.
*/
package actuators;
import common.*;
public abstract class Actuator extends Machine {
public Actuator() {super();}
public Actuator(Thing t) {
super(t);
}
}
|
Python | UTF-8 | 1,055 | 3.734375 | 4 | [] | no_license | """
Given n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it can trap after raining.
Example 1:
Input: height = [0,1,0,2,1,0,1,3,2,1,2,1]
Output: 6
Explanation: The above elevation map (black section) is represented by array [0,1,0,2,1,0,1,3,2,1,2,1]. ... |
Java | UTF-8 | 148 | 1.6875 | 2 | [
"MIT"
] | permissive | package com.caimi.service.beans;
public interface Lifecycle {
public void init(BeansContainer beansContainer);
public void destroy();
}
|
C# | UTF-8 | 3,117 | 2.578125 | 3 | [] | no_license | ๏ปฟusing System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Web.Mvc;
namespace UsefulBits.Web.Mvc.Areas
{
/// <summary>
/// Allow service location and dependency resolution per ASP MVC Area.
/// </summary>
... |
Java | UTF-8 | 1,205 | 2.96875 | 3 | [] | no_license | import java.io.BufferedReader;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) throws IOException {
// System.setIn(new FileInputStream("src/test.txt"));
BufferedReader br = new BufferedReader(new InputStreamR... |
Java | UTF-8 | 2,816 | 1.867188 | 2 | [] | no_license | package com.junyou.bus.jinfeng.service;
import java.sql.Timestamp;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import com.junyou.bus.jinfeng.dao.FengIpDao;
import com.junyou.bus.jinfeng.entity.FengIp;
import com.junyou.bus.jinfeng.utils.FengHaoUtil;... |
Java | UTF-8 | 1,110 | 2.125 | 2 | [] | no_license | package com.allei.service;
import javax.annotation.Resource;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
import org.sp... |
Markdown | UTF-8 | 366 | 3.1875 | 3 | [] | no_license | # Linked List
> [Add Two Numbers](../problems/Add Two Numbers .md)
> [Delete Node in a Linked List](../problems/Delete Node in a Linked List .md)
> [Partition List](../problems/Partition List .md)
> [Remove Linked List Elements](../problems/Remove Linked List Elements .md)
> [Remove Nth Node From End of List](../p... |
Java | UTF-8 | 1,025 | 3.703125 | 4 | [] | no_license | package model.players;
import java.awt.*;
/**
* Player factory which creates different kinds of players.
*
* @author Roberto Shino
* @author Arian Mohamad Hosaini
* @author Wenjing Qu
*/
public class PlayerFactory {
/**
* Creates either a Striker or a Goalkeeper based on the given type, and returns it.
... |
Python | UTF-8 | 9,048 | 2.734375 | 3 | [] | no_license | ###############################################################################
#Author : Yingyu
#Date : 24th August 2020
#Description : Tool to filter out images based on different classes and stores
# images into the respective files
##########################################################... |
C++ | UTF-8 | 1,003 | 3.9375 | 4 | [] | no_license | #include <iostream>
//๋งค๊ฒ๋ณ์์ ์์ํ.(๋ชจ๋ ํจ์๊ฐ ์ฌ์ฉํ ์ ์์) //๋ฉ์๋์ ๋ค์ด์ค๋ ํ๋ผ๋ฏธํฐ์ ์์ํ๋ฅผ ํด์ฃผ๋ ๋ฐฉ์
//๋ฉ์๋์ ์์ํ. (๋ฉค๋ฒ ๋ฉ์๋-ํ์ ๋ ๋๋) //const
using namespace std;
class Account{
private:
int money;
public:
//์์ฑ์ ์์ฑ
Account() :money(0){};
Account(int money): money(money){};
void Deposit(const int d){ //<<๋ฉ๊ฒ๋ณ์์ ์์ํ
... |
Python | UTF-8 | 1,965 | 3.078125 | 3 | [
"MIT"
] | permissive | # Imports from 3rd party libraries
import dash
import dash_bootstrap_components as dbc
import dash_core_components as dcc
import dash_html_components as html
from dash.dependencies import Input, Output
# Imports from this application
from app import app
# 1 column layout
# https://dash-bootstrap-components.opensource... |
C++ | UTF-8 | 475 | 2.625 | 3 | [] | no_license | //
// Created by Kenneth-Matthew Velarde on 2019-03-12.
//
#include "floatingarray.h"
#include "iostream"
using namespace std;
float arr[5];
floatingarray::floatingarray(int asize) {
size = asize;
arr[5] = arr[size];
}
int floatingarray::storeNum(int numstore, int spot) {
return arr[spot] = numstore;
}
int... |
Java | UTF-8 | 421 | 2.765625 | 3 | [] | no_license |
package exercicio3;
public class Ingresso {
public double valor = 245;
public double getValor() {
return valor;
}
public void setValor(double valor) {
this.valor = valor;
}
public void imprimirNota(){
System.out.println("*NOTA DO INGR... |
Java | UTF-8 | 3,739 | 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.
*/
import carpanel.CarPanel;
import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.Bef... |
C | UTF-8 | 17,708 | 2.921875 | 3 | [] | no_license |
/**********************************************************************************************************/
/* 2016A - 20407 : Final Project ***********************************************************************/
/* @author: Chanan Welt *************************************************************************... |
C++ | UTF-8 | 974 | 2.546875 | 3 | [] | no_license | #include <bits/stdc++.h>
using namespace std;
#define pb push_back
vector<int> g[2020];
vector<int> rg[2020];
bool vis[2020];
stack<int>st;
int scc;
int id[2020];
// get topological ordering of nodes and
// goes through it on the reverse graph
void dfs(int x){
vis[x] = true;
for(int i = 0 ; i < g[x].size() ; ... |
C | UTF-8 | 1,509 | 2.59375 | 3 | [] | no_license | #include <stdarg.h>
#include <stdbool.h>
#include <stdint.h>
#include "inc/hw_i2c.h"
#include "inc/hw_memmap.h"
#include "inc/hw_types.h"
#include "inc/hw_gpio.h"
#include "driverlib/i2c.h"
#include "driverlib/sysctl.h"
#include "driverlib/gpio.h"
#include "driverlib/pin_map.h"
#include "driverlib/uart.h"
#include "uti... |
Java | UTF-8 | 1,173 | 2.484375 | 2 | [
"MIT"
] | permissive | package ee.ria.riha.service.util;
import lombok.AccessLevel;
import lombok.Getter;
import lombok.Setter;
import org.springframework.util.Assert;
import java.util.ArrayList;
import java.util.List;
/**
* Response model for paged list.
*
* @author Valentin Suhnjov
*/
@Getter
@Setter
public class PagedResponse<T> {
... |
Markdown | UTF-8 | 6,687 | 2.921875 | 3 | [] | no_license | ---
layout: post
title: "What is Self-Sovereign Identity?"
summary: A beginner's introduction to Self-Sovereign Identity (SSI)
date: 2020-12-07 11:07:00 +0100
author: sam_jones
image: /assets/images/luis-alberto-certs.jpg
published: true
---

###... |
Python | UTF-8 | 7,298 | 3.203125 | 3 | [
"MIT"
] | permissive | """
Purpose of this is to handle MultiIndexes and ObjectIndexes in a more convenient
manner. Much like how DatetimeIndex has convenience tools like df.index.hour == 3.
I want the equivalent for objects and multiindexes
"""
import itertools
import operator
import numpy as np
import pandas as pd
from pandas import comp... |
C++ | UTF-8 | 5,358 | 3.15625 | 3 | [] | no_license | /*
GridMap.cpp
Created by Chengtao Wang on 12/20/2016
*/
#include "GridMap.h"
GridMap::GridMap(int row, int col)
{
this->row = row;
this->col = col;
this->startStatus = 0;
this->goalStatus = 0;
//generate image
this->image = Mat3b(30 * row + 60, 30 * col, Vec3b(255, 255, 255));
this->button = Rect... |
Markdown | UTF-8 | 3,490 | 2.984375 | 3 | [
"MIT"
] | permissive | ---
title: Fees
---
# {{$frontmatter.title}}
<TocHeader />
<TOC class="table-of-contents" :include-level="[2,3]" />
A requester will have three types of fees to consider.
1. Setup fees: transaction gas costs to maintain a requester record, its endorsements, etc.
2. Airnode execution fees: transaction gas costs when... |
Java | UTF-8 | 13,234 | 2.078125 | 2 | [] | no_license | package com.jtl.arruler.old;
import android.content.Context;
import android.content.res.Resources;
import android.graphics.Bitmap;
import android.opengl.GLES20;
import android.opengl.GLUtils;
import android.opengl.Matrix;
import com.google.ar.sceneform.math.Vector3;
import com.jtl.arruler.render.ShaderUtil;
import j... |
C# | UTF-8 | 8,006 | 2.84375 | 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;
namespace EXER
{
public partial class Form1 : Form
{
public Form1()
{
... |
C | UTF-8 | 321 | 3.265625 | 3 | [
"MIT"
] | permissive | #include <stdio.h>
int main()
{
int a=5;
int *p;
p=&a;
printf("value of p = Address of a = %p\n",p);
printf("value of p = %p\n",++p);
printf("value of p = %p\n",p++);
printf("value of p = %p\n",p);
printf("value of p = %p\n",--p);
printf("value of p = %p\n",p--);
printf("value of p = %p\n",p);
return 0;
... |
Python | UTF-8 | 1,142 | 4.46875 | 4 | [] | no_license | # A Better (than Naive) Solution to find all divisiors
import math
# method to print the divisors
def printDivisors(n):
# Note that this loop runs till square root
i = 1
calc = 0
while i <= math.sqrt(n):
if (n % i == 0):
# If divisors are equal, print only one
if (n /... |
Markdown | UTF-8 | 14,163 | 2.640625 | 3 | [
"MIT",
"Apache-2.0"
] | permissive | # Training, Classifying (Haar Cascades), and Tracking
Training our own Haar Cascade in OpenCV with Python. A cascade classifier has multiple stages of filtration. Using a sliding window approach, the image region within the window goes through the cascade. Can easily test accuracy of cascade with `classifier.py` script... |
Python | UTF-8 | 2,148 | 2.71875 | 3 | [
"LicenseRef-scancode-public-domain"
] | permissive | import unittest
import time
from testSetup import TestSetup
class TestCadastroMarca(TestSetup):
"""docstring for TestCadastroMarca"""
def setUp(self):
super(TestCadastroMarca,self).setUp()
compras_url_base = 'http://localhost:8000/toc_erp_web2py/estoque/'
controller_inserir = 'inserir_marca'
self.url_inserir... |
Java | UTF-8 | 4,389 | 2.03125 | 2 | [] | no_license | package com.kedu.arias.product.service;
import java.util.List;
import javax.inject.Inject;
import org.springframework.stereotype.Service;
import com.kedu.arias.member.dto.MemberDto;
import com.kedu.arias.product.dao.ProductDao;
import com.kedu.arias.product.dto.Convin_code;
import com.kedu.arias.product.dto.Notsale... |
Java | UTF-8 | 6,148 | 2.4375 | 2 | [] | no_license | package edu.eur.absa.data;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.FilenameFilter;
import java.io.IOException;
import java.util.ArrayList;
import edu.eur.absa.Framework;
import edu.eur.absa.model.Dataset;
import edu.eur.absa.model.Span;
import edu.eur.... |
Markdown | UTF-8 | 775 | 2.546875 | 3 | [] | no_license | # stickybeak
___Trigger actions on filesystem events___
[](https://travis-ci.org/justanotherdot/stickybeak)

## Install
Presently only linux is supported, but in due time other platforms w... |
Markdown | UTF-8 | 969 | 2.9375 | 3 | [] | no_license | ---
title: ๅพฎไฟกไน็ธๅ
ณๅไธๅผๅ
date: 2017-11-04 19:31:19
tags:
- ๅพฎไฟก
---
ๅพฎไฟกไธบๆไปฌๆไพไบๅพๅฅฝ็ๅนณๅฐ๏ผๅบไบๅพฎไฟกๅฏไปฅๅๅชไบๅไธๅผๅๅข๏ผ
ๅพฎไฟกๅ
ฌไผๅท็ๅ็ฑป๏ผ
2012ๅนด8ๆ๏ผๅพฎไฟกๅ
ฌไผๅนณๅฐไธ็บฟใ
2013ๅนด9ๆ๏ผๅไธบไบ่ฎข้
ๅทๅๆๅกๅทใ
2014ๅนด9ๆ๏ผๅขๅ ไบไผไธๅทใไผไธๅทไธป่ฆๆฏ็จๆฅ็ฎก็ๅๅทฅ็๏ผไพๅฆๆๅกไปไน็ใ
ไผไธๅท็ฎๅๅพๅฐใ
ไธ่ฌๆ่ฎข้
ๅทๅๆๅกๅท้ฝๅผๅฏ็ใ
่ฎข้
ๅทๅๆๅกๅท็ๅบๅซ๏ผ
1ใๆจ้้ขๆฌกไธไธๅใ
ๆๅกๅท๏ผๆฏๆ4ๆกใ้ฃๅคงๆฆๅฐฑๆฏไธๅจไธๆกใไฝๆฏไฝ ๅฏไปฅๅจไธๅคฉๆ4ๆก้ฝ็จๅฎใ
่ฎข้
ๅท๏ผๆฏๅคฉ1ๆกใ
2ใๅ่ฝๅทฎๅซใ
ๆๅกๅท๏ผๅ่ฝๅคใ
่ฎข้
ๅท๏ผๅ่ฝๆ้ใ
3ใๆถๆฏ... |
C# | UTF-8 | 1,646 | 3.171875 | 3 | [] | no_license | ๏ปฟusing System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Diagnostics;
using System.Linq;
using System.Net;
using System.Text;
using System.Threading;
namespace LoadTest.Console
{
class Program
{
static void Main(string[] args)
{
string url = "http:/... |
C | UTF-8 | 397 | 3.078125 | 3 | [] | no_license | #include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <string.h>
#include <errno.h>
#include <unistd.h>
int main(int argc, char* argv[]){
errno = 0;
int fd;
fd = open("destination.txt", O_CREAT|O_RDONLY);
if (fd < 0){
printf("\n open() failed \n");
perror("open");
return... |
Java | ISO-8859-2 | 2,935 | 3.578125 | 4 | [] | no_license | package model.data_structures;
import java.util.Iterator;
/**
* Vrtice de un grafo.
* @author Camilo Martnez & Nicols Quintero
*/
public class Vertex<K extends Comparable<K>, V extends Comparable<V>, E extends Comparable<E>>
implements Comparable<Vertex<K, V, E>>
{
/**
* ID asociado al vrtice.
*/
private i... |
Java | UTF-8 | 309 | 2.078125 | 2 | [] | no_license | package Enums;
/**
* Created by Victor on 02.01.2017.
*/
public enum TypeCode {
Empty,
Byte,
SByte,
Char,
UUID,
Int16,
Int32,
Int64,
UInt16,
UInt32,
UInt64,
Single,
String,
Object,
Double,
Decimal,
Boolean,
DateTime,
ByteArray,
}
|
Java | UTF-8 | 702 | 1.828125 | 2 | [] | no_license | package bean_promotion;
import java.util.List;
import bean_center.ct_res_response;
public class pm_res_promotion {
ct_res_response resp;
List<pm_res_listpromotion> list_pm;
public pm_res_promotion() {
super();
// TODO Auto-generated constructor stub
}
public pm_res_promotion(ct_res_response resp,
List<pm... |
Java | UTF-8 | 2,319 | 3.546875 | 4 | [] | no_license | package model;
import model.exceptions.*;
/**
* A coffee maker used to train baristas.
*
* Class invariant: cups remaining >= 0, time since last brew >= 0
*/
public class CoffeeMaker {
private int timeSinceLastBrew;
private int cupsRemaining;
//EFFECTS: sets time since last brew, cup... |
Markdown | UTF-8 | 11,683 | 3.875 | 4 | [] | no_license | ---
date: 2015-04-30T10:07:00+08:00
title: "SQLite3็ฑปๅ็ณป็ป"
---
SQLite3้ๅธธ[ไธไผไธๅ](https://www.sqlite.org/different.html)ใๅฎ็็ฑปๅ็ณป็ปไนไธๅไบๅคง้จๅ็ๆฐๆฎๅบ็ฎก็็ณป็ป(DBMS)ใ
้ๅธธ๏ผDBMSไฝฟ็จ้ๆ็ฑปๅ(static typing)๏ผๅณๆฐๆฎ่กจ็ๆฏไธๅไธญๅช่ฝๅญๆพๅไธ็ง็ฑปๅ็ๆฐๆฎ๏ผ่ฟไธช็ฑปๅๅจๅๅปบ่กจ็ๆถๅๅฐฑๅทฒ็ป็กฎๅฎใ่SQLite3ไฝฟ็จ็งฐไธบmanifest typing็็ฑปๅ็ณป็ป๏ผๅฎๅ
่ฎธๆฏไธๅไธญๅญๆพไธๅ็ฑปๅ็ๅ
็ด ๏ผๅฎ้
ไธๅพๅๅจๆ็ฑปๅใManifest typing็ๅ็กฎ่ฏๆณๆไธ็ฅ้ใๆ็
งๅญ้ขๆๆๅฏไปฅ็ฟป่ฏๆโๆพๅผ็ฑปๅโ๏ผๅฏๆฏ... |
TypeScript | UTF-8 | 9,837 | 3.28125 | 3 | [
"MIT"
] | permissive | import * as moore from 'moore';
import * as fs from 'fs';
import {Parser} from 'json2csv';
import * as util from 'util';
enum states {Susceptible, Infected};
enum neighbours {North = 0, NorthEast, East, SouthEast, South, SouthWest, West, NorthWest};
interface GridCell {
id: number;
value: states;
y: numbe... |
Markdown | UTF-8 | 4,345 | 2.609375 | 3 | [] | no_license | # Microbiome, Cancer, and Beyond
### Emily Davenport, Cornell, *Simultaneously modeling host genetics and microbiome composition reveals the heritability and the proportion of variance explained due to the microbiome of immune-related traits*
* Composition of of microbiome determined by method of birth, diet, antibiot... |
C | UTF-8 | 1,134 | 2.640625 | 3 | [] | no_license | #include<sys/types.h>
#include<sys/socket.h>
#include<netinet/in.h>
#include<arpa/inet.h>
#include<stdio.h>
#include<unistd.h>
#include<error.h>
#include<stdlib.h>
#include"strc.h"
#include"struct.h"
#include<fcntl.h>
int socketfd=-1;
void client_req(void)
{
int connected;
struct sockaddr_in myclientaddr... |
Java | UTF-8 | 10,574 | 2.015625 | 2 | [
"Apache-2.0"
] | permissive | package com.gogul.tickets.service;
import static org.junit.jupiter.api.Assertions.assertEquals;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import org.json.JSONArray;
import org.json.JSONObject;
import org.junit.jupiter.api.MethodOrdere... |
Java | UTF-8 | 456 | 1.9375 | 2 | [] | no_license | package com.raqun.contentparser.api;
/**
* Created by tyln on 10.10.2016.
*/
public final class Constants {
private Constants() {
// Empty private constructor
}
public static final String URL = "https://google.com.tr";
public static final String ERROR_UNKNOWN = "Unkown Error!!!";
publi... |
C | UTF-8 | 1,247 | 2.8125 | 3 | [] | no_license | //
// time_test_fibo.c
//
//
// Created by Cesar Angeles on 07/09/2020.
//
/*Include standard headers*/
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
/*Include modules header we directly invoke here: */
#include "funcionesfibo.h"
#include "archivos.h"
#include "timetest.h"
/*The function main */
int m... |
Markdown | UTF-8 | 1,418 | 2.59375 | 3 | [] | no_license | # Cats n' Dogs [](https://travis-ci.com/borisskert/cats-n-dogs)
This project contains code examples created for myself to reuse simple patterns in other projects.
## Folder structure
| sub-folder | description | documentation |
|---------... |
Java | UTF-8 | 519 | 2.296875 | 2 | [] | no_license | package com.rwb.util;
import com.alibaba.dubbo.rpc.cluster.Merger;
import org.springframework.stereotype.Component;
@Component
public class UserMerger implements Merger<String> {
@Override
public String merge(String... items) {
StringBuffer stringBuffer = new StringBuffer();
stringBuffer.appen... |
Markdown | UTF-8 | 1,517 | 3.484375 | 3 | [
"MIT"
] | permissive | # `date`
`date` adds an editable date field to the schema. A friendly date picker UI is presented when the field is clicked. Dates are stored as strings in `YYYY-MM-DD` format.
## Example 1
```javascript
{
name: 'date',
label: 'Date',
type: 'date'
}
```
The date picker UI uses [pikaday](https://github.com/dbu... |
C++ | UTF-8 | 2,209 | 3.0625 | 3 | [] | no_license | #ifndef INCLUDE_CHOLESKY_H_
#define INCLUDE_CHOLESKY_H_
#include "common.h"
#include "graph.h"
struct EliminatedVertex {
size_t v;
size_t first_arc;
FLOAT degree;
};
struct CholeskyFactor {
size_t n;
std::vector<EliminatedVertex> elims;
std::vector<ArcC> elim_arcs;
};
void Cholesky(AdjacencyMap& graph, ... |
Java | UTF-8 | 3,765 | 1.960938 | 2 | [
"Apache-2.0"
] | permissive | package org.zackratos.appstore.base.applist;
import com.google.gson.Gson;
import org.zackratos.appstore.base.RxPresenter;
import org.zackratos.appstore.error.ErrorConsumer;
import org.zackratos.appstore.result.BaseResult;
import org.zackratos.appstore.http.ServiceApi;
import org.zackratos.appstore.main.PageParams;
im... |
Java | UTF-8 | 1,451 | 2.328125 | 2 | [] | no_license | package iit.cs445.models.products;
import org.jboss.arquillian.container.test.api.Deployment;
import org.jboss.arquillian.junit.Arquillian;
import org.jboss.shrinkwrap.api.ShrinkWrap;
import org.jboss.shrinkwrap.api.asset.EmptyAsset;
import org.jboss.shrinkwrap.api.spec.JavaArchive;
import org.junit.After;
import org.... |
TypeScript | UTF-8 | 3,631 | 2.578125 | 3 | [] | no_license | import { Request,Response, RequestHandler, NextFunction } from 'express'
import {nanoid} from 'nanoid';
import Square from 'square';
type OrderReceipt = {
orderId: string;
price: number;
date: Date;
}
//type Req = { email: string; housenumber: string; streetnumber: string; orderid: string };
export defaul... |
SQL | UTF-8 | 2,775 | 3.875 | 4 | [] | no_license | CREATE TABLE IF NOT EXISTS public.tariffs (
tariff_id BIGINT NOT NULL PRIMARY KEY UNIQUE,
monthly_payment FLOAT NOT NULL,
minutes_per_month INTEGER
);
CREATE TABLE IF NOT EXISTS public.customers (
customer_id BIGINT NOT NULL PRIMARY KEY UNIQUE,
tariff_id BIGINT NOT NULL REFERENCES ... |
Java | UTF-8 | 1,878 | 2.296875 | 2 | [] | no_license | package com.ard.arduino;
import java.io.File;
import java.io.IOException;
import java.net.InetAddress;
import java.net.Socket;
import java.net.UnknownHostException;
import android.media.MediaRecorder;
import android.os.Environment;
import android.os.ParcelFileDescriptor;
import android.util.Log;
import android.widget... |
JavaScript | UTF-8 | 514 | 3.5625 | 4 | [] | no_license | //
// This is only a SKELETON file for the "Bob" exercise. It's been provided as a
// convenience to get you started writing code faster.
//
const Bob = () => {
isUpperCase = x => {
return /[a-zA-Z]/.test(x) && x.toUpperCase() === x
}
return {
hey: (input) => {
if (input.endsWith('?') && !isUpperCa... |
C++ | UTF-8 | 322 | 2.6875 | 3 | [] | no_license | //NodeIterator.h
#ifndef _NODE_ITERATOR_H
#define _NODE_ITERATOR_H
#include "MenuNode.h"
class NodeIterator
{
public:
virtual void First() = 0;
virtual void Next() = 0;
virtual void Prev() = 0;
virtual bool IsDone() const = 0;
virtual MenuNode* CurrentNode() const = 0;
protected:
NodeIterator();
};
#endi... |
C | UTF-8 | 2,081 | 3.34375 | 3 | [] | no_license | #include <test/task_queue.h>
void tq_sanity() {
task_queue tq;
tq_init(&tq);
assert(tq.size == 0);
}
void tq_push_basic() {
task_queue tq;
tq_init(&tq);
assert(tq.size == 0);
TaskDescriptor t;
tq_push(&tq, &t);
assert(tq.size == 1);
tq_push(&tq, &t);
tq_push(&tq, &t);
assert(tq.size == 3);
}
... |
C++ | UTF-8 | 2,315 | 2.84375 | 3 | [] | no_license | //
// Created by smorzhov on 22.02.16.
//
#include <sstream>
#include "IPv4Address.h"
IPv4Address::IPv4Address() {
ip = "0.0.0.0/0";
prefix = maskbits = 0;
}
IPv4Address::IPv4Address(const char *s) {
ip = s;
pair<uint32_t, uint8_t> pair = parseIPV4string(s);
prefix = pair.first;
maskbits = pa... |
TypeScript | UTF-8 | 803 | 2.515625 | 3 | [] | no_license | import { Injectable } from '@angular/core';
@Injectable({
providedIn: 'root'
})
export class Base64Service {
constructor() { }
strBase64ToPdfBlob(strBase64: string) {
let binaryDoc = atob(strBase64);
let binaryDocLength = binaryDoc.length;
let arrayBuffer = new ArrayBuffer(binaryDocLength);
let... |
Markdown | UTF-8 | 1,830 | 2.515625 | 3 | [
"MIT"
] | permissive | +++
date = 2014-12-11T00:00:00 # Schedule page publish date.
title = "The Value of True Belief"
time_start = 2014-12-11T13:00:00
time_end = 2014-12-11T15:00:00
abstract = "I cover some initially plausible accounts of why we ought to value knowledge over mere true belief, as well as why we ought to value mere true bel... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.