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
SQL
UTF-8
746
2.546875
3
[]
no_license
-- REL FK: defaultUsers [DefaultGroup2User] alter table `user` add index fk_user_group (`group_oid`), add constraint fk_user_group foreign key (`group_oid`) references `group` (`oid`); -- REL FK: groups [User2Group] alter table `user_group` add index fk_user_group_user (`user_oid`), add constraint fk_user_group_u...
Java
UTF-8
1,231
2.109375
2
[]
no_license
package com.lx.mms.service; import com.lx.mms.entity.SysDept; import com.lx.mms.entity.param.DeptParam; import java.util.List; /** * (SysDept)่กจๆœๅŠกๆŽฅๅฃ * * @author Werdioไธถ * @since 2020-03-14 09:56:17 */ public interface SysDeptService { /** * ้€š่ฟ‡IDๆŸฅ่ฏขๅ•ๆกๆ•ฐๆฎ * * @param id ไธป้”ฎ * @return ๅฎžไพ‹ๅฏน่ฑก ...
Python
UTF-8
2,044
2.9375
3
[ "MIT" ]
permissive
import math import os import random import re import sys import functools as ft from operator import itemgetter, attrgetter from collections import Counter from itertools import combinations def pascal(n: int): a = [[1]] for _ in range(n - 1): tmp = zip([0] + a[-1], a[-1] + [0]) a.append([sum(i...
Markdown
UTF-8
6,450
2.953125
3
[]
no_license
--- id: deployment-to-heroku title: Deployment to Heroku --- As React is one of the most popular frontend framework/libraries these days, I will be showing how to deploy a react project on Heroku. ### Heroku Dynos "The Heroku Platform uses the container model to run and scale all Heroku apps. The containers used at ...
Java
UTF-8
1,085
2.984375
3
[]
no_license
public class Points { private double pAx, pAy; private double pBx, pBy; private double pCx, pCy; private double pDx, pDy; private double[] pointABCD; public Points() { } public Points(double ax, double ay, double bx, double by, double cx, double cy, double dx, doub...
Java
UTF-8
2,469
2.296875
2
[]
no_license
package com.authserver.app; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.HttpStatus; import org.springframework.http.ResponseEntity; import org.springframework.security.crypto.password.PasswordEncoder; import org.springframework.web.bind...
Markdown
UTF-8
639
2.890625
3
[ "MIT" ]
permissive
[Character](https://developer.apple.com/documentation/swift/character) [Unicode.Scalar](https://developer.apple.com/documentation/swift/unicode/scalar) ### [CamelCase](https://www.hackerrank.com/challenges/camelcase) ```swift func camelcase(s: String) -> Int { let captials = s.filter { $0.isUppercase } ret...
Java
UTF-8
3,726
2.234375
2
[]
no_license
package com.attendence.abhis.attendence; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import android.widget.ArrayAdapter; import android.widget.Spinner; import android.widget.TextView; import java.io.BufferedReader; import java.io.FileInputStream; import java.io...
C
UTF-8
291
3.203125
3
[]
no_license
#include <stdio.h> #include <conio.h> #include <math.h> float main() { float x1, x2, distance; printf("Enter two points end press Enter \n"); scanf("%f%f", &x1, &x2); distance = fabs(x2 - x1); printf("Distance between two points X1 and X2 = %.2f \n", distance); getch(); return 0; }
Python
UTF-8
319
3.046875
3
[ "CC-BY-4.0", "MIT" ]
permissive
import numpy as np def draw_bs_reps(data, func, size=1): """Function to draw bootsrap replicates""" n = len(data) #Initialize array of replicates reps = np.empty(n) for i in range(n): bs_sample = np.random.choice(data, replace=True, size=n) reps[i]= func(bs_sample) return reps
Java
UTF-8
16,265
1.851563
2
[]
no_license
package com.dmedia.dlimited.activity; import android.content.Context; import android.content.DialogInterface; import android.content.Intent; import android.graphics.Color; import android.os.Bundle; import android.support.annotation.Nullable; import android.support.v7.app.ActionBar; import android.support.v7.app.AlertD...
C#
UTF-8
5,424
2.546875
3
[ "MIT" ]
permissive
๏ปฟusing System; using System.Linq.Expressions; using CatFactory.ObjectRelationalMapping; namespace CatFactory.SqlServer.ObjectRelationalMapping { public static partial class EntityHelper { #pragma warning disable CS1591 public static EntityResult<TModel> SetColumnFor<TModel>(this EntityResult<TModel> re...
JavaScript
UTF-8
1,843
2.640625
3
[]
no_license
import React, { Component } from 'react'; import WhiteCard from './WhiteCard'; import BlackCard from './BlackCard'; class Player extends Component { renderCards() { return this.props.cards.map((text, index) => { return ( <WhiteCard key={index} handleCardSelection={this.prop...
Python
UTF-8
422
2.609375
3
[ "Apache-2.0" ]
permissive
class A: pass def foo(): pass class B: """""" pass def bar(): """""" pass class C: @property def x(self): return 42 @x.setter def x(self, value): pass @x.deleter def x(self): pass class Parent: """ Parent class doc """ def foo(self): """ ...
Java
UTF-8
2,976
2.53125
3
[]
no_license
package com.project.teamup.service; import com.project.teamup.dao.TechnologyRepository; import com.project.teamup.model.Technology; import org.junit.Test; import org.junit.runner.RunWith; import org.mockito.InjectMocks; import org.mockito.Mock; import org.mockito.Mockito; import org.mockito.junit.MockitoJUnitRunner; i...
Python
UTF-8
5,042
2.703125
3
[]
no_license
from urllib import request from PIL import Image import os from math import cos, sin, pi, log, atan, exp, floor import math from itertools import chain import re # 40.792801, -73.967553, 40.775645, -73.960642 BASEURL = 'http://ecn.t0.tiles.virtualearth.net/tiles/a{}.jpeg?g=8549' min_lat = 41.885108 min_lon = -87.6151...
JavaScript
UTF-8
2,212
2.515625
3
[]
no_license
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { Link } from 'react-router-dom'; // action creators import { fetchPopularMovies } from '../actions'; // components import SearchBar from './SearchBar'; import Loading from './Loading'; import FetchMore from './FetchMore'; class Mo...
Rust
UTF-8
981
3.078125
3
[]
no_license
use crate::models::{SensorId, ReadingId, Bytes}; use serde::{Deserialize, Serialize}; #[derive(Debug, Deserialize, Serialize)] pub struct Reading { pub sensor_id: SensorId, pub reading_id: ReadingId, pub data: Bytes, } impl Reading { pub fn new() -> Self { Reading { sensor_id: Sens...
Markdown
UTF-8
768
2.953125
3
[]
no_license
# 31 (1501-1550) [โฌ€](https://leetcode.com/problemset/all/#page-31) | ID | Problem statement | Solution | |------|---------------------------------------------------------------------...
Java
UTF-8
689
2.828125
3
[]
no_license
//package com.igorhenss.SliceNdiceS.SliceNdiceS.enemies; // //import com.igorhenss.SliceNdiceS.SliceNdiceS.entity.Enemy; // //import javax.swing.*; //import java.awt.*; // //public class Goblin extends Enemy { // // public Goblin(Integer posX, Integer posY) { // super(posX, posY); // } // // public void...
Python
UTF-8
2,535
2.765625
3
[]
no_license
import string, random, math, time, os from hashlib import md5 import managers class VDOM_id: """id generation class""" def hexstr(self, s): """convert byte array to hex string""" h = string.hexdigits r = "" for c in s: i = ord(c) r = r + h[(i >> 4) & 0x...
Swift
UTF-8
1,059
2.859375
3
[]
no_license
// // Bundle+Ext.swift // // // Created by Tiziano Cialfi on 19/01/21. // import Foundation public extension Bundle { private static let nameKey = "CFBundleName" private static let versionKey = "CFBundleShortVersionString" private static let buildKey = "CFBundleVersion" enum BundleError:...
C++
UTF-8
672
2.96875
3
[]
no_license
class Solution { public: bool wordBreak(string s, unordered_set<string> &dict) { if (s.empty() || dict.empty()) return false; int len = s.length(); vector<bool> opt(len+1, false); opt[0] = true; for (int i = 0; i < len; i++) { for (int j = i; j >= 0; j--) { ...
C++
UTF-8
1,892
2.671875
3
[]
no_license
#include "matching.h" #include <fstream> #include <ZGeom/util.h> std::vector<std::pair<int, int> > MatchPair::ToPairVector(const std::vector<MatchPair>& vmp) { std::vector<std::pair<int, int> > vp; for (const MatchPair& mp : vmp) vp.push_back((std::pair<int, int>)mp); return vp; } void MatchResult::write( const st...
C++
GB18030
1,061
2.953125
3
[ "MIT" ]
permissive
#ifndef _IGRAPHICS_H #define _IGRAPHICS_H #include <map> using namespace std; class IGraphics { private: CRITICAL_SECTION cs; static IGraphics * instance; IGraphics() { InitializeCriticalSection(&cs); //สผูฝ }; ~IGraphics() { LeaveCriticalSection(&cs);//๋ฟชูฝ DeleteCriticalSection(&c...
C#
UTF-8
774
2.890625
3
[]
no_license
๏ปฟusing System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AreaCalculator { public class FormFactory { public AreaCalculatorForm GetAreaCalculatorForm(string shapeType) { AreaCalculatorForm areaCalculatorForm; ...
Python
UTF-8
7,081
2.515625
3
[]
no_license
# Uncomment and execute once - this is used to downgrade the pip version to one that doesn't cause an exception in keras # https://github.com/tensorflow/tensorflow/issues/28102#issuecomment-487612628 #!pip install numpy==1.16.2 import logging logging.getLogger('tensorflow').disabled = True import warnings # Importing...
Shell
UTF-8
1,210
2.609375
3
[]
no_license
#!/bin/bash cd "$(dirname "$0")" # Install DHT22 Service sudo cp dht22.service /etc/systemd/system/dht22.service sudo cp dht22-mqtt.service /etc/systemd/system/dht22-mqtt.service #sudo systemctl enable dht22.service #sudo systemctl enable dht22-mqtt.service # Install L3GD20 Service sudo cp l3gd20.service /etc/syste...
Java
UTF-8
434
2.953125
3
[]
no_license
public class ExcelSheetColumnNumber { public int titleToNumber(String s) { if (s==null||s.length()==0) return 0; int length=1; int total=0; for (int i = s.length()-1; i >=0 ; i--,length*=26) { if (length==1) total+=s.charAt(i)-'A'+1; ...
Markdown
UTF-8
16,875
3.296875
3
[]
no_license
ะžัะฝะพะฒะฝั‹ะต ัƒั‡ะตะฑะฝั‹ะต ะทะฐะดะฐั‡ะธ ั€ะตะฐะปะธะทะพะฒะฐะฝะฝั‹ะต ะฝะฐ ะฟั€ะธะฝั†ะธะฟั‹ OOP: 1. ะ˜ัะฟะพะปัŒะทัƒั Visual Studio, ัะพะทะดะฐะนั‚ะต ะฟั€ะพะตะบั‚ ะฟะพ ัˆะฐะฑะปะพะฝัƒ Console Application. ะขั€ะตะฑัƒะตั‚ัั: ะกะพะทะดะฐั‚ัŒ ะบะปะฐัั ั ะธะผะตะฝะตะผ Address. ะ’ ั‚ะตะปะต ะบะปะฐััะฐ ั‚ั€ะตะฑัƒะตั‚ัั ัะพะทะดะฐั‚ัŒ ะฟะพะปั: index, country, city, street, house, apartment. ะ”ะปั ะบะฐะถะดะพะณะพ ะฟะพะปั, ัะพะทะดะฐั‚ัŒ ัะฒะพะนัั‚ะฒะพ ั ะดะฒัƒะผั ะผะตั‚ะพะดะฐะผะธ ะดะพัั‚ัƒะฟะฐ...
JavaScript
UTF-8
2,336
3.984375
4
[]
no_license
class Node { constructor(val) { this.val = val; this.next = null; } } class SinglyLinkedList{ constructor(){ this.head = null; this.tail = null; this.length = 0; } push(val){ let newNode = new Node(val) if (!this.head) { this.head ...
Markdown
UTF-8
677
2.515625
3
[]
no_license
### Prerequsites `Ruby version : 2.6.5` <br /> `Rails : 6.0.2.1`<br /> ### Setup clone project `git clone https://github.com/binaythapamagar/boggle-rails.git` <br /> move to project directory `cd boggle-rails`<br /> install necessary bundle `bundle install`<br /> run test `respec`<br /> run project `rails s`<br /> #...
PHP
UTF-8
1,215
2.828125
3
[]
no_license
<?php include_once('database/connection.php'); include ('templates/header.php'); try { } catch (PDOException $e) { die($e->getMessage()); } if (isset($_POST['query'])) { $q=$_POST['query']; }else{ $q=''; } $query = "SELECT * FROM events WHERE name like '%".$q."%' OR description like '%...
Python
UTF-8
2,850
2.875
3
[]
no_license
from pptx import Presentation,exc import pandas as pd import plotly.express as px from pptx.util import Inches,Pt from datetime import datetime def validate(date_text): try: if date_text != datetime.strptime(date_text, "%Y-%m-%d").strftime('%Y-%m-%d'): raise ValueError return True e...
C#
UTF-8
852
2.53125
3
[]
no_license
๏ปฟusing MongoDB.Driver; using Pi.Common; namespace Pi.PiManager.Service.MongoDB { public class MongoDBClient<T> where T : class { protected MongoDBClient() { } /// <summary> /// ่Žทๅ–้›†ๅˆๅฎžไพ‹ /// </summary> /// <param name="host">่ฟžๆŽฅๅญ—็ฌฆไธฒ๏ผŒๅบ“๏ผŒ้›†ๅˆ</param> /// ...
Java
UTF-8
14,200
1.6875
2
[]
no_license
/** * ๅฎถ่พน็ฝ‘็ปœ็ง‘ๆŠ€ๆœ‰้™ๅ…ฌๅธ * jiabian-core * com.jiabian.callback.yiwangtong * YwtUtils.java * ๅˆ›ๅปบไบบ:ๆฝ‡ๆด’ * ๆ—ถ้—ด๏ผš2016-11-25-ไธ‹ๅˆ4:29:44 * 2016ๅฎถ่พน็ฝ‘็ปœ็ง‘ๆŠ€ๆœ‰้™ๅ…ฌๅธ-็‰ˆๆƒๆ‰€ๆœ‰ */ package com.jiabian.callback.yiwangtong; import java.io.UnsupportedEncodingException; import java.security.KeyFactory; import java.security.MessageDigest; ...
C#
UTF-8
2,443
2.71875
3
[]
no_license
using AutoMapper; using Grpc.Core; using GrpcService1.Models; using GrpcService1.Repositories; using Microsoft.Extensions.Logging; using System; using System.Threading.Tasks; namespace GrpcService1 { public class MovieGRPCService : MovieServiceGRPC.MovieServiceGRPCBase { private readonly ILogger<Greete...
Java
UTF-8
1,804
2.109375
2
[ "Apache-2.0" ]
permissive
package com.beloo.widget.chipslayoutmanager; import android.content.Context; import android.support.annotation.NonNull; import android.support.v7.widget.RecyclerView; import com.beloo.widget.chipslayoutmanager.anchor.AnchorViewState; public interface IScrollingController { RecyclerView.SmoothScroller createSmoo...
Python
UTF-8
957
2.65625
3
[]
no_license
import re import json import urllib.request from pymongo import MongoClient from bs4 import BeautifulSoup from ImageSoup.BaseSoup import BaseSoup from ImageSoup.utils.database import get_year class SpringerSoup(BaseSoup): def _extract_images(self, images): image_meta = {'figures':[]} for image in...
Java
UTF-8
186
1.90625
2
[]
no_license
package br.com.thiago.ceep.ui.recycler.adapter.listener; import br.com.thiago.ceep.model.Nota; public interface OnItemClickListener { void onItemClick(Nota nota, int position); }
C++
UTF-8
682
3.453125
3
[]
no_license
#include<iostream> using namespace std; void sort(int* arr,int left,int right){ int x=left,y=right; int cur=arr[(left+right)/2]; do{ while((arr[x]<cur)&&(x<right)) x++; while((arr[y]>cur)&&(left<y)) y--; if(x<=y){ int temp=arr[x]; arr[x]=arr[y]; ar...
Markdown
UTF-8
4,281
3.203125
3
[]
no_license
**Directions:** Copy this template into your own gist. # Strengths Reflection & Coaching Request ### Read Through Your Theme Definitions 1. What words or phrases stick out to you? How would you define each of your top 5 talents in your own words? 2. Do these top 5 talent themes resonate with you? Why or why not?...
Java
UTF-8
3,777
2.390625
2
[ "Apache-2.0" ]
permissive
package com.appleframework.web.util; import com.alibaba.fastjson.JSON; import com.appleframework.web.bean.Consts; import com.itextpdf.text.BaseColor; import com.itextpdf.text.Document; import com.itextpdf.text.Font; import com.itextpdf.text.PageSize; import com.itextpdf.text.pdf.BaseFont; import com.itextpdf.text.pdf....
C++
UTF-8
1,575
2.640625
3
[]
no_license
// Author: Alexander Thomson (thomson@cs.yale.edu) // // The Storage class provides an interface for writing and accessing data // objects stored by the system. #ifndef _DB_BACKEND_STORAGE_H_ #define _DB_BACKEND_STORAGE_H_ #include <vector> #include "common/types.h" using std::vector; class Storage { public: vi...
Markdown
UTF-8
745
2.640625
3
[]
no_license
# Open Badges Specifications A repository for the main Open Badges specifications. * [Assertion](/Assertion/latest.md): Main specification for the badge data. If you want to understand how badges are made and verified, this is the place to look. * [Baking](/Badge-Baking/latest.md): Badge โ€œbakingโ€ is the process of e...
Java
UTF-8
3,347
3.046875
3
[]
no_license
import java.util.Set; import java.io.InputStreamReader; import java.net.ServerSocket; import java.net.Socket; import java.util.HashSet; import java.io.IOException; import java.io.PrintStream; import java.io.BufferedReader; public class SServer { public static socket clientSockets = new testHash<Socket>(); ...
TypeScript
UTF-8
1,400
2.796875
3
[]
no_license
import { Lexer, Parser, Token, TokenType } from "../../src"; import { Program } from "../../src/ast/program"; import { ExpressionStatement } from "../../src/ast/statement"; import { AssignmentExpression, VarExpression, LiteralExpression, } from "../../src/ast/expression"; import { generateExpression, generateStat...
TypeScript
UTF-8
541
2.5625
3
[]
no_license
import { BaseEntity, Column, CreateDateColumn, Entity, ManyToOne, PrimaryGeneratedColumn, } from 'typeorm'; import { User } from '../User/model'; @Entity() export class Post extends BaseEntity { @PrimaryGeneratedColumn() id!: number; @Column() title!: string; @Column('text...
JavaScript
UTF-8
2,584
3.34375
3
[]
no_license
"use strict"; // EJERCICIO 1 const button = document.querySelector(".accion"); const paragraph = document.querySelector(".message"); function changeParagraph() { paragraph.innerHTML = "Mi primer click, ยกole yo y la mujer que me pariรณ!"; } button.addEventListener("click", changeParagraph); //EJERCICIO 2 const butt...
JavaScript
UTF-8
4,606
3.171875
3
[]
no_license
var StoreDatabase = require("./StoreDatabase"); var inquirer = require("inquirer"); var Table = require("cli-table"); var storeDB = new StoreDatabase(); function menu() { inquirer.prompt([{ message: "What would you like to do?", type: "list", choices: ["View Products for Sale", "View Low I...
Ruby
UTF-8
1,847
2.828125
3
[]
no_license
Before do @normalform = NormalForm.new @game_info = {} end Given /^I have a player named "([^"]*)"$/ do |arg1| pending # express the regexp above with the code you wish you had end Then /^the number of players should be (\d+)$/ do |arg1| pending # express the regexp above with the code you wish you had end G...
Java
UTF-8
893
1.953125
2
[]
no_license
package com.prs; import static org.assertj.core.api.Assertions.assertThat; import java.io.IOException; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.autoconfigure.json.JsonTest; import org.springframework.bo...
Markdown
UTF-8
4,566
2.8125
3
[ "BSD-3-Clause", "GPL-2.0-only", "Apache-2.0" ]
permissive
[#]: collector: (lujun9972) [#]: translator: ( ) [#]: reviewer: ( ) [#]: publisher: ( ) [#]: url: ( ) [#]: subject: (Get started with Freeplane, an open source mind mapping application) [#]: via: (https://opensource.com/article/19/1/productivity-tool-freeplane) [#]: author: (Kevin Sonney https://opensource.com/users/ks...
Python
UTF-8
1,501
3.140625
3
[ "MIT" ]
permissive
#!usr/bin/python3 # Please help making this app better! I would love to get feedback! # Made by Matthew C Lopez # Email: matthew_christ@protonmail.com # MIT License # version 0.1 import os import re import time from colorama import Fore while True: #Makes program loop. time.sleep(2) # nmap is needed with this...
Python
UTF-8
2,367
2.6875
3
[]
no_license
#fjeiteg from django.http import HttpResponse from django.shortcuts import render def index(request): return render(request,'index.html') # return HttpResponse('''<h1>hello anchal</h1> <a href=" http://127.0.0.1:8000/about">click me </a>''') # def analyse(request): # return HttpResponse('''<a href=" htt...
Markdown
UTF-8
26,619
3.71875
4
[]
no_license
# ้ซ˜ๆ–ฏ่ฟ‡็จ‹ ## ้ซ˜ๆ–ฏ่ฟ‡็จ‹็š„็†่งฃ ๆ‰ฉๅฑ•ๅˆฐๆ— ้™็ปดๅบฆ, ๅˆ™็งฐไธบ้ซ˜ๆ–ฏ่ฟ‡็จ‹. ![้ซ˜ๆ–ฏ่ฟ‡็จ‹](rc/gaussian_process.png) ๆฏไธ€ไธช็ปดๅบฆไธŠ็š„ๅ€ผ้ƒฝๅฑžไบŽไธ€ไธช้ซ˜ๆ–ฏๅˆ†ๅธƒ, ไธๅŒ็ปดๅบฆไน‹้—ดๆœ‰็›ธไบ’่”็ณป(้€š่ฟ‡kernel/ๅๆ–นๅทฎๆฅ่กจ็คบ). ไธ€ไธชๆ•ฐๆฎๅฐฑๆ˜ฏๆญค้ซ˜ๆ–ฏ่ฟ‡็จ‹็š„ไธ€ๆฌก้‡‡ๆ ท. ![้ซ˜ๆ–ฏ่ฟ‡็จ‹ๅฎžไพ‹](rc/gaussian_process_example.png) ้ซ˜ๆ–ฏ่ฟ‡็จ‹ไนŸๅฏไปฅ็†่งฃไธบๆ’ๅ€ผ: 1. ๅฏนไบŽๅ‡ฝๆ•ฐ$f(x)$, ๆฏไธ€ๆฌกไปŽไธๅŒ$x$ๅค„่ง‚ๅฏŸ$f(x)$้ƒฝๅฏไปฅไฝœไธบไธ€ไธช้šๆœบๅ˜้‡ๆฅ็œ‹ๅพ…, ๅฎƒไปฌ้ƒฝๆœไปŽๅ’Œไธ€ไธช$x$ๆ— ๅ…ณ็š„้ซ˜ๆ–ฏๅ™ชๅฃฐๅˆ†ๅธƒ. 2. ๅฏนไบŽไปปๆ„ไธคไธช$x, x'$, ๆˆ‘ไปฌ่ฎคไธบ$x$ๅ’Œ$x'$็š„่ท็ฆปๅ†ณๅฎšไบ†ไป–ไปฌไน‹้—ด็š„็›ธๅ…ณๆ€ง. ไปŽ่€Œ, ไพ‹ๅฆ‚...
Java
UTF-8
240
1.804688
2
[]
no_license
package pdf.font; /** * ํ™•์žฅ ์‹œ ๊ณตํ†ต ๋ชจ๋“ˆ ํ™œ์šฉ @Link{ItextFontRegister} * @author pioneer(2016.02.11) * */ public abstract class FontRegisterController{ private FontContainer fontContainer = FontContainer.getInstance(); }
Python
UTF-8
15,743
3.09375
3
[]
no_license
## python version 3.7.4 import openpyxl as openxl from spellchecker import SpellChecker import urllib.parse import urllib.request import os from bs4 import BeautifulSoup import nltk import re from nltk.corpus import stopwords from nltk.tokenize import word_tokenize import numpy as np import scipy as sp ...
C#
UTF-8
791
2.921875
3
[ "MIT" ]
permissive
using System; namespace NGravatar.ProfileInformation { /// <summary> /// A photo field in a Gravatar profile. /// </summary> public class GravatarProfilePhoto : GravatarProfilePluralField { /// <summary> /// Creates a new instance of the photo field /// </summar...
JavaScript
UTF-8
568
2.828125
3
[ "MIT" ]
permissive
function nn() { "use strict"; /** * data */ function generator() {} /** * SVG chart elements */ function chart() {} /** * perceptron / neuron */ function neuron() {} /** * generator + neuron + chart */ function build() {} /** * draw the chart to root `<div>` */ fu...
C#
UTF-8
438
3.078125
3
[]
no_license
namespace AdventOfCode2019 { struct Rect { public int xmin, xmax, ymin, ymax; public Rect(int width, int height) { xmin = 0; ymin = 0; xmax = width - 1; ymax = height - 1; } public bool Contains(Point p) ...
PHP
UTF-8
273
3
3
[]
no_license
<?php $tekst1 = "hello world"; $tekst2 = "mijn bestand"; $tekst3 = "mijn bestand nummer2"; $tekst4 = "mijn bestand nummer3"; echo $tekst1; echo PHP_EOL; echo $tekst2; echo PHP_EOL; echo $tekst3; echo PHP_EOL; echo $tekst4; echo PHP_EOL; ?>
C++
UTF-8
1,294
2.578125
3
[ "Zlib", "BSD-3-Clause", "MIT", "LicenseRef-scancode-other-permissive", "BSL-1.0", "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
#include <fc/network/http/websocket.hpp> #include <websocketpp/error.hpp> #include <iostream> #include <string> #include <fc/log/logger.hpp> #include <fc/log/console_appender.hpp> int main(int argc, char** argv) { try { // set up logging fc::appender::ptr ca(new fc::console_appender); fc::log...
PHP
UTF-8
2,896
3.546875
4
[ "LicenseRef-scancode-warranty-disclaimer" ]
no_license
<?php namespace aldorg\validater; /** * Validater Class * * This is an simple class to validate data types for PHP codes. Using php filters with simple methods to verify info. * * @author Aldo Ruiz */ class Validater{ /** * Validate that an attribute is a boolean. * * @param mixed $boolean * @return bo...
C++
UTF-8
4,862
3.328125
3
[]
no_license
/* ะŸะพ ะดะฐะฝะฝั‹ะผ n ะพั‚ั€ะตะทะบะฐะผ ะฝะตะพะฑั…ะพะดะธะผะพ ะฝะฐะนั‚ะธ ะผะฝะพะถะตัั‚ะฒะพ ั‚ะพั‡ะตะบ ะผะธะฝะธะผะฐะปัŒะฝะพะณะพ ั€ะฐะทะผะตั€ะฐ, ะดะปั ะบะพั‚ะพั€ะพะณะพ ะบะฐะถะดั‹ะน ะธะท ะพั‚ั€ะตะทะบะพะฒ ัะพะดะตั€ะถะธั‚ ั…ะพั‚ั ะฑั‹ ะพะดะฝัƒ ะธะท ั‚ะพั‡ะตะบ. ะ’ ะฟะตั€ะฒะพะน ัั‚ั€ะพะบะต ะดะฐะฝะพ ั‡ะธัะปะพ 1โ‰คnโ‰ค100 ะพั‚ั€ะตะทะบะพะฒ. ะšะฐะถะดะฐั ะธะท ะฟะพัะปะตะดัƒัŽั‰ะธั… n ัั‚ั€ะพะบ ัะพะดะตั€ะถะธั‚ ะฟะพ ะดะฒะฐ ั‡ะธัะปะฐ 0โ‰คlโ‰คrโ‰ค109, ะทะฐะดะฐัŽั‰ะธั… ะฝะฐั‡ะฐะปะพ ะธ ะบะพะฝะตั† ะพั‚ั€ะตะทะบะฐ. ะ’ั‹ะฒะตะดะธั‚ะต ะพะฟั‚ะธะผะฐะปัŒะฝะพะต ั‡ะธัะปะพ m ั‚ะพั‡ะตะบ...
C
UTF-8
2,833
3.015625
3
[]
no_license
/* * ePiloto.h * * Created on: Jun 28, 2021 * Author: rodrigo */ #ifndef INC_EPILOTO_H_ #define INC_EPILOTO_H_ #include "../inc/efecha.h" #include <stdlib.h> #include <string.h> #include <stdio.h> typedef struct { int idPiloto; char nombre[128]; }ePiloto; /** * */ ePiloto* ePiloto_new(); /** * ...
C++
UTF-8
3,529
2.703125
3
[]
no_license
/* * Dijkstra with low costs + compression */ #include <iostream> #include <cstdio> #include <cstring> #include <vector> #include <algorithm> #include <cmath> #include <queue> using namespace std; #define mp make_pair #define pb push_back #define ll long long #define maxN 555 #define maxDir 9 class Buffer { ...
SQL
UTF-8
726
3.671875
4
[]
no_license
-- Ensure you've run SalesOrdersStructure.sql -- and SalesOrdersData.sql in the Sample Databases folder -- in order to run this example. SET SCHEMA SalesOrdersSample; WITH SeqNumTbl(SeqNum) AS (VALUES (1) UNION ALL SELECT SeqNum + 1 FROM SeqNumTbl WHERE SeqNum < 100), SeqList AS (SELECT SeqNum F...
Java
UTF-8
1,416
2.9375
3
[]
no_license
class Tree{ public ArrayList <Integer> verticalSum(Node root) { class QueueN{ public Node node; public int hd; QueueN(Node n, int h){ node=n; hd=h; } } ArrayList<Integer> ...
Markdown
UTF-8
1,110
3.703125
4
[ "MIT" ]
permissive
# wireframing The purpose of a wireframe is not so much to tell us how something will look, but to give an idea of: - what data will be present - how the data is grouped and prioritized So obviously the visual aspect is an important one (grouping and prioritizing is achieved visually) but we can still express a lot ...
Markdown
UTF-8
2,799
2.671875
3
[]
no_license
**Item #:** SCP-3290 **Object Class:** Keter **Special Containment Procedures:** Foundation responses to different 3290-Events will depend on different circumstances. These include but are not limited to: 1. Local community standing of the individual affected 2. Global knowledge of the individual affected 3. Soci...
TypeScript
UTF-8
357
3.078125
3
[ "MIT" ]
permissive
function formatValue(value: number): string { return String(value).padStart(2, '0') } export default function convertTime(time: string): string { const [hour, minutes] = time.split(':').map(Number) const AMOrPM = hour >= 12 ? 'PM' : 'AM' const finalHour = hour % 12 || 12 return `${formatValue(finalHour)}:...
Python
UTF-8
3,508
2.859375
3
[]
no_license
# -*- coding: utf-8 -*- """ Created on Mon Aug 6 13:13:55 2018 @author: jinqiu """ import numpy as np import pandas as pd from sklearn.preprocessing import MinMaxScaler from sklearn.model_selection import GridSearchCV from sklearn.model_selection import cross_val_score from sklearn import metrics from time import ti...
C++
UTF-8
1,603
3.21875
3
[]
no_license
#include <cstdio> #include <algorithm> #include <list> #include <vector> using namespace std; int N; int com; list<int> b; void show() { for (auto it=b.begin(); it!=b.end(); it++) printf("%d ", *it); printf("\n"); } int findDirection(list<int>::iterator& pos, const int target) { int direction = 1; for (auto i...
JavaScript
UTF-8
5,350
3
3
[ "MIT" ]
permissive
/** * MIT License * Copyright (c) 2020 JSXGraph * * 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, modify, m...
Python
UTF-8
2,417
3.3125
3
[]
no_license
from search import * from data import Data import time def solve(code: str, show_log: bool = False, print_func = print): print(f'##### {code} Problem #####') print() start_time = time.time() result = uniform_search(Data.problem(code), show_log=show_log) exec_time = time.time() - start_time p...
Java
UTF-8
614
2.125
2
[]
no_license
package pages; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import org.openqa.selenium.support.FindBy; import java.util.List; public class BBCSearchPage extends BasePage { @FindBy(xpath = "//p[@class='ssrcss-7sxcrr-PromoHeadline e1f5wbog4']//span") private List<WebElement> se...
Markdown
UTF-8
2,764
3.1875
3
[]
no_license
#### **Pre-Classical History, and Greco-Roman History** <br return> This reading was very intriguing as it gauged the ideas of history and itsโ€™ existence before what we would consider the modern existence of historical thought and philosophy or rather, the speculative philosophy of history. Lemon makes some interesti...
JavaScript
UTF-8
560
3.015625
3
[]
no_license
// JS del menu desplegable const nav = document.querySelector('.header__nav') const burgerButton = document.querySelector('.header__burger') const burgerText = document.querySelector('.header__burger--text') burgerButton.addEventListener('click', hideShow) function hideShow() { if (nav.classList.contains('is_act...
Python
UTF-8
493
2.703125
3
[]
no_license
import abc class AbsPreprocessorFactory(metaclass=abc.ABCMeta): """the abstract class to inherit for creating the preprocessor in the factories folder""" @abc.abstractmethod def compute(self, data, columns): """The main body of the preprocessor. To be implemented in the child class Args...
Markdown
UTF-8
10,965
2.984375
3
[]
no_license
--- layout: layouts/post.njk title: > 252 FS Brent Weaver on Sales Process date: 2017-07-03 04:00:19 episode_number: 252 duration: 58:43 audio_url: https://devchat.cachefly.net/freelancers/FS_252_Brent_Weaver_on_Sales_Process.mp3 podcast: freelancers tags: - freelancers - podcast --- --- #### Brent Weaver on Sa...
Java
UTF-8
4,812
2.265625
2
[]
no_license
package com.interactive.classroom.dao.impl; import com.interactive.classroom.bean.HomeworkBean; import com.interactive.classroom.dao.DaoFactory; import com.interactive.classroom.dao.HomeworkDao; import com.interactive.classroom.dao.filters.FileFilter; import com.interactive.classroom.dao.filters.FilterFactory; import ...
Markdown
UTF-8
1,922
2.84375
3
[]
no_license
--- title: "Using StyleCop to boost my code reviews" date: "2020-10-01" categories: - "coding-practices" - "processes" --- ## What is StyleCop? StyleCop analyses C# source code to help enforce a set of style and consistency rules. This analysis helps teams to develop in a much more consistent way and improves th...
Python
UTF-8
173
2.703125
3
[]
no_license
#!/usr/bin/env python import sys for line in sys.stdin: (userID, movieID, rating, timestamp) = line.split('\t') print ('%s\tB\t%s\t%s' % (movieID, userID, rating))
Python
UTF-8
2,522
2.828125
3
[]
no_license
import socket import threading import datetime import os import sqlite3 as sql HOST_SOC = "0.0.0.0" SOC_PORT = 8090 def add_data(conn, data): """ Create a new project into the projects table :param conn: :param project: :return: project id """ sql = ''' INSERT INTO moisture(time,moisture...
JavaScript
UTF-8
522
3
3
[]
no_license
function processCommands(cmd) { var res = ""; if(cmd === "date") { res = (new Date()); return res; } if(cmd === "time") { res = (new Date()); return res; } if(cmd === "history") { for(var i = 0; i < cmd_hist.length; i++) { res += i+1 + "&nbsp;"; res += cmd_hist[i]; res += "<br>" } ...
Java
UTF-8
203
1.515625
2
[]
no_license
package com.loan.common.dao; import com.loan.common.model.UserBorrow; import org.springframework.stereotype.Repository; @Repository public interface UserBorrowDao extends BaseDao<UserBorrow, Long> { }
PHP
UTF-8
678
3.296875
3
[]
no_license
<?php class UnitOfMeasure { private $id; private $abreviation; private $fullName; function __construct() { $this->id = 0; $this->abreviation = ""; $this->fullName = ""; } public function getId() { return $this->id; } public function setId($data) { ...
Java
UTF-8
2,827
3.21875
3
[]
no_license
package com.spookengine.core.events; import java.util.*; import java.util.concurrent.ConcurrentLinkedQueue; /** * * @author Oliver Winks */ public final class EventHandler implements Cloneable { private static Map<String, EventHandler> instances = new HashMap<String, EventHandler>(); private M...
TypeScript
UTF-8
1,611
2.59375
3
[ "MIT" ]
permissive
'use strict'; import * as vscode from 'vscode'; import * as path from 'path'; import * as fs from 'fs'; import { GitCommand } from './GitCommand'; import { getCurrentWorkspaceFolder } from './getFolder'; export class GitPath { gitCommand: GitCommand; gitPath: string | undefined; gitExcludePath: s...
PHP
UTF-8
2,896
2.734375
3
[]
no_license
<?php namespace TwoDotsTwice\CVWarehouse\XML; use Carbon\Carbon; use DateTimeImmutable; use DateTimeZone; use SimpleXMLElement; use TwoDotsTwice\CVWarehouse\Job; use TwoDotsTwice\CVWarehouse\Job\Description; use TwoDotsTwice\CVWarehouse\Job\Id; use TwoDotsTwice\CVWarehouse\Job\Name; use TwoDotsTwice\CVWarehouse\Job\U...
Java
UTF-8
3,265
3.359375
3
[]
no_license
import java.awt.Color; import edu.cmu.ri.createlab.terk.robot.finch.Finch; import javax.swing.JOptionPane; import javax.swing.JFrame; public class A2 { // Task 6: Dance static String hex = "", dec = "", bin = ""; static int r, g , b, spdVal; public static void run (String userInput) { hex = userInput...
PHP
UTF-8
937
2.890625
3
[]
no_license
<?php require_once '../../dao/DaoEvento.class.php'; require_once '../../modelo/Evento.class.php'; class ControleEvento { private $controle; function __construct() { $this->controle = new DaoEvento(); } function inserir(Evento $evento) { r...
Ruby
UTF-8
1,435
3.28125
3
[ "MIT" ]
permissive
module Algorithms module Sorting module BottomUpMergeSort def sort(a) sort!(a.clone) end def sort!(a) return a if a.size <= 1 comparison_size = 1 until comparison_size >= a.size low_start = 0 high_start = low_start + comparison_size ...
Markdown
UTF-8
1,231
2.765625
3
[ "MIT" ]
permissive
# query-stream <img src=https://secure.travis-ci.org/'Dominic Tarr'/query-stream.png?branch=master> create autosuggest widgets with a async function. create a query stream: ``` js var query = require('query-stream') var qs = query(function (query, cb) { //make request to make_query_to_wherever(query, cb) }) `...
Markdown
UTF-8
2,564
2.59375
3
[]
no_license
# Rangle Elm-Workshop ### Prerequisites Before attending the workshop, please clone this repo, install the elm platform, elm-format, and integrate these with your editor of choice. This will help us jump right in! ### Install platform and elm-format **NOTE** There can be some _weirdness_ installing elm with yarn/n...
JavaScript
UTF-8
1,447
2.65625
3
[]
no_license
const fs= require('fs'); const N3 = require('n3'); const trig_parser = new N3.Parser({ format: 'application/trig' }); const nquads_store = new N3.Store(); var data = fs.readFileSync('./data/test.json.trig', 'utf8'); var quads = trig_parser.parse(data); nquads_store.addQuads(quads); var graphs = nquads_store.getGrap...
Java
UTF-8
238
1.554688
2
[]
no_license
package br.com.stark.starkfinanceiro.repository; import org.springframework.data.jpa.repository.JpaRepository; import br.com.stark.starkfinanceiro.model.Pessoa; public interface PessoaRepository extends JpaRepository<Pessoa, Long>{ }
PHP
UTF-8
1,148
2.546875
3
[ "MIT" ]
permissive
<?php /* * 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. */ if (!function_exists('dateIsValid')) { function dateIsValid($str) { if ($str == "") { return false; ...
JavaScript
UTF-8
1,585
2.828125
3
[]
no_license
let quotes=[]; const colorArray = ['#FF6633', '#FFB399', '#FF33FF', '#FFFF99', '#00B3E6', '#E6B333', '#3366E6', '#999966', '#99FF99', '#B34D4D', '#80B300', '#809900', '#E6B3B3', '#6680B3', '#66991A', '#FF99E6', '#CCFF1A', '#FF1A66', '#E6331A', '#33FFCC', '#66994D', '#B366CC', '#4D8000', '#B33300', '#C...