language
stringclasses
15 values
src_encoding
stringclasses
34 values
length_bytes
int64
6
7.85M
score
float64
1.5
5.69
int_score
int64
2
5
detected_licenses
listlengths
0
160
license_type
stringclasses
2 values
text
stringlengths
9
7.85M
Markdown
UTF-8
865
2.640625
3
[]
no_license
--- title: Erik Štrumbelj firstName: Erik lastName: Štrumbelj date: 2019-04-19T00:00:00.000Z bgImage: /uploads/c75t9175.jpg image: uploads/team_erik_strumbelj.jpg phone: +386 1 479 8235 email: erik.strumbelj@fri.uni-lj.si redirect: '' --- Dr. Erik Štrumbelj je izredni profesor na Fakulteti za računalništvo in informati...
C
UTF-8
693
3.921875
4
[]
no_license
// // dist.c // ECS 30 Work // // Created by Jennifer Salas on 9/28/16. // Copyright © 2016 Jennifer Salas. All rights reserved. // #include <stdio.h> #include <math.h> int main() { // user defined variables double x1, y1, x2, y2; // calculated variables double distance; printf...
JavaScript
UTF-8
1,600
2.671875
3
[]
no_license
const { API_URL, API_VERSION } = require('../constants/Endpoints'); const APIRequest = require('./APIRequest'); const HTTPError = require('./HTTPError'); const DiscordAPIError = require('./DiscordAPIError'); const routeBuilder = require('./routeBuilder'); class RequestHandler { /** * @param {object} [options] ...
C++
UTF-8
324
2.859375
3
[]
no_license
#include <iostream> #include <string> #include <algorithm> using namespace std; int main() { for (int i = 1000; i < 10000; i++) { string a = to_string(i), b = to_string(i * 9); reverse(b.begin(), b.end()); if (a == b) { cout << i << endl; } } return ...
Ruby
UTF-8
1,479
3.796875
4
[]
no_license
require "byebug" require_relative "intcode_computer" class Hull BLACK = 0 WHITE = 1 def initialize @hull = {} end def set_color(x,y,color) key = "#{x}_#{y}" @hull[key] = color end def get_color(x,y) key = "#{x}_#{y}" @hull[key] || BLACK end def painted_count @hull.keys.co...
Java
UTF-8
1,082
3.546875
4
[]
no_license
package com.myself.searching.bitonic; import java.util.Arrays; public class BitonicSearch { public int positionOfMax = -2; public int[] tab; public BitonicSearch(int[] tab) {this.tab = tab;} public void findMax() { int left = 0; int right = tab.length - 1; if (right < 0){ ...
Java
UTF-8
1,318
3.234375
3
[]
no_license
package ua.nure.kramarenko.SummaryTask3.entity.plane; /** * This class describes ammo characteristics of the plane * * @author Vlad Kramarenko * */ public class Ammo { /** * Boolean value describes has plane ammo or not */ private Boolean value; /** * Describes how many rockets has the plane */ priva...
Java
UTF-8
1,863
2.328125
2
[]
no_license
package com.example.two.controller; import com.example.two.entity.Result; import com.example.two.entity.SysUser; import com.example.two.service.UserServiceI; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframewor...
Java
UTF-8
1,703
1.5
2
[ "Apache-2.0" ]
permissive
/******************************************************************************* * Copyright 2017 HuaWei Tld * * Licensed under the Apache License, Version 2.0 (the "License"); you may not ...
Python
UTF-8
641
4.375
4
[]
no_license
# IF ELSE IN PYTHON var1 = 223 var2 = 223 if var1>var2 : print("greater") elif var1==var2: print("equal") else: print("lesser") list = [2,3,4,5,6] if 15 in list: print("Yes present in list") # FOR LOOP IN PYTHON list1 = [["mohan",2],["kumarf",2],["rathore",4],["tanisha",5],["surabhi",7]] dict1 =dict(...
Python
UTF-8
2,325
3.625
4
[]
no_license
import random import colored from colored import stylize Optionen = ["Schere", "Stein", "Papier"] Zettel = input ("Wie viele Runden möchtest du spielen ?") Spielerpunkte = 0 Computerpunkte = 0 for Runde in range (int( Zettel )): Computerwahl = random.choice(Optionen) Spielerwahl = input (stylize("Was willst d...
Java
UTF-8
776
1.546875
2
[]
no_license
package com.scarlatti.ws.client; import java.io.Closeable; import java.util.concurrent.TimeUnit; /** * ______ __ __ ____ __ __ __ _ * ___/ _ | / /__ ___ ___ ___ ____ ___/ /______ / __/______ _____/ /__ _/ /_/ /_(_) * __/ __ |/ / -_|_-<(_-</ _ `/ _ \/ _ / ...
C++
UTF-8
485
2.71875
3
[]
no_license
#ifndef LCD_DEVICE_HPP #define LCD_DEVICE_HPP #include <string> #include "point.hpp" #include "pixels_rect.hpp" namespace Lcd { class LcdDevice { private: int dev_fd; static const int LCD_WIDTH = 200; static const int LCD_HEIGHT = 8; ssize_t write_pixels(const Point &begin, const PixelsRect &rect) const; ...
Java
UTF-8
2,825
2.0625
2
[]
no_license
package com.example.weatherapp; import androidx.appcompat.app.AppCompatActivity; import androidx.core.app.ActivityCompat; import androidx.core.content.ContextCompat; import android.content.Context; import android.content.Intent; import android.content.pm.PackageManager; import android.location.Location; import androi...
C
UTF-8
4,074
2.90625
3
[]
no_license
/* * T E R M I N A L I N D E P E N D E N T G R A P H I C S * * by: George E. Toth * May 15, 1980 * * These routines produce the Terminal Independent Graphics * Intermediate language designed by Michael J. Muuss. * * (C) Copyright, 1980 All Rights Reserved * * R E V I S I O N H I S T O R Y * =...
Java
UTF-8
1,311
2.15625
2
[]
no_license
package com.gymbuddy.backgymbuddy.admin.order.domain; import com.gymbuddy.backgymbuddy.admin.base.BaseDomain; import com.gymbuddy.backgymbuddy.admin.enums.status.CsStatus; import com.gymbuddy.backgymbuddy.admin.enums.status.ProgramStatus; import com.gymbuddy.backgymbuddy.admin.enums.status.ShipmentStatus; import com.g...
Ruby
UTF-8
607
2.953125
3
[ "MIT" ]
permissive
require "csv" module Transformer class Csv DEFAULT_PATH = File.expand_path("../../../test/data.csv", __FILE__) #def name(file = '') # file ||= '' # output = [] # output << file.strip # output.join(',') #end def self.csv2hash(file = nil) file ||= ...
Markdown
UTF-8
1,361
3.765625
4
[]
no_license
### 基础数论概念 #### 公约数 > 性质1:$d \mid a \text { 且 } d \mid b \text { 蕴涵着 } d \mid(a+b) \text { 且 } d \mid(a-b)$ > 性质2:对于任意的$x$和$y$,$d \mid a \text { 且 } d \mid b \text { 蕴涵着 } d \mid(a x+b y)$ #### 最大公约数 ${ 两个不同时为 0 的整数 a 与 b 的公约数中最大的称为其最大公约数, 记作 gcd( } a, b \text { ) }$ 最大公约数有如下几个性质: $$ \begin{aligned} &\begin{array...
Java
UTF-8
3,901
2.1875
2
[]
no_license
package br.com.fiap.challenge.controller; import java.util.List; import java.util.Optional; import javax.validation.Valid; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.MessageSource; import org.springframework.context.i18n.LocaleContextHolder; import org.springfra...
Markdown
UTF-8
1,294
2.6875
3
[ "MIT" ]
permissive
--- title: "South Florida's Codecamp 2020" --- These are the notes on my **Improve your AWS security** presentation ## [Slides](https://docs.google.com/presentation/d/1OZl445nzbtDBh3EtsFWAsJTA22cKxsh8WJHScEwaLQA/edit?usp=sharing) ## [Source Code](https://github.com/cshtdd/aws-security-presentation) ## Present...
PHP
UTF-8
2,989
2.546875
3
[]
no_license
<?php namespace App\Entity; use App\Repository\TransactionRepository; use Doctrine\ORM\Mapping as ORM; /** * @ORM\Entity(repositoryClass=TransactionRepository::class) */ class Transaction { const STATUS_SUCCESS = 1; const STATUS_FAILURE = 2; /** * @ORM\Id * @ORM\GeneratedValue * @ORM\Co...
PHP
UTF-8
12,777
2.875
3
[]
no_license
<?php class database{ protected $server = "localhost"; protected $username = "root"; protected $password; protected $database = "startravel"; protected $link; public function __construct() { try { $this->link = new mysqli($this->server, $this->username, $this->password, ...
JavaScript
UTF-8
3,386
3.265625
3
[]
no_license
/** * Created by changliang on 6/22/19. */ /** * 个位数补0 * @param {(number|string)} */ exports.to0 = n => { return n * 1 < 10 ? "0" + n : n; }; /** * 时间戳或GMT转时间转换 * @param {(string | dateGMT),string} * timeStamp 时间戳或GMT格式日期 * format = YMD => 年-月-日 , Y=> 年 , M=>月 , D=>日 , YM => 年-月 , hms=> 时:分:秒 , YMDhms=> 年-...
JavaScript
UTF-8
1,467
2.765625
3
[]
no_license
function validate(){ var regex = /^(([a-zA-Z0-9_\-\.]+)@([a-zA-Z0-9_\-\.]+)\.([a-zA-Z]{2,5}){1,25})+([;.](([a-zA-Z0-9_\-\.]+)@{[a-zA-Z0-9_\-\.]+0\.([a-zA-Z]{2,5}){1,25})+)*$/; if(!regex.test(formName.email.value)){ // alert("Congrats! This is a valid Email email"); alert("This is not a...
PHP
UTF-8
2,234
2.671875
3
[]
no_license
<?php /** * Inheritance Campaign Model * For every inheritance model, allowed to have only $type, fillable, rules, and available function */ namespace App\Models; // use App\Models\Observers\ReferralObserver; class Referral extends Campaign { /** * The public variable that assigned type of inheritance model ...
C++
UTF-8
506
2.953125
3
[]
no_license
#include <iostream> using namespace std; int sum(int a) { int sum_cif = 0; while (a != 0) { int last = a % 10; sum_cif = sum_cif + last; a = a / 10; } return sum_cif; } int main() { int n; cin >> n; int x[n]; int y[n]; for (int i = 1; i <= n; i++) ...
JavaScript
UTF-8
4,362
2.625
3
[]
no_license
/*jshint node: true*/ /*jshint esversion: 6 */ "use strict"; const mongoose = require('mongoose'); const uniqueValidator = require('mongoose-unique-validator'); const bcrypt = require('bcrypt'); const jwt = require('jsonwebtoken'); const config = require('../config/config'); const UserSchema = new mongoose.Schema({...
JavaScript
UTF-8
597
2.59375
3
[]
no_license
const loader = new THREE.TextureLoader(); let cobblestone = 'textures/cobblestone.jpeg'; let cobblestoneTexture = loader.load(cobblestone); let beigeCobblestone = 'textures/beige_cobblestone.jpeg'; let beigeCobblestoneTexture = loader.load(beigeCobblestone); cobblestoneTexture.wrapS = THREE.RepeatWrapping; cobbleston...
PHP
UTF-8
2,260
2.671875
3
[]
no_license
<?php namespace App\Presenters; use Nette; use Model; use Nette\Application\UI\Form; class UserPresenter extends BasePresenter { /** @var Model\User */ private $userRepository; /** @var Model\Authenticator */ private $authenticator; public function inject(Model\User $userRepository, Model\Auth...
Java
UTF-8
198
2.40625
2
[]
no_license
package Utilisateurs; public class User extends Member{ public User() { super(); } public User(String pseudo, String pwd, String mail, String role) { super(pseudo, pwd, mail, role); } }
JavaScript
UTF-8
2,194
2.5625
3
[]
no_license
/* jshint esversion : 6 */ // @root/api/tshirts.js const compte_associeAPi = function compte_associeAPi(connection) { const router = require("express").Router(); const compte_associeModel = require("../model/compte_associe")(connection); router.post('/compte_associe', (req, res) => { compte_assoc...
C
UTF-8
774
3.703125
4
[]
no_license
/* Matt Fleetwood 3/4/2019 Portland, OR Assignment 5 for ECE 362 Makes 4 threads and prints their IDs out. Feel inspired. */ #include <stdio.h> #include <stdlib.h> #include <pthread.h> //Number of threads we are having for dinner #define NUM_THREADS 4 //Function to print the thread ID void *print_thread_ID(void *v...
Java
UTF-8
1,660
2.140625
2
[]
no_license
package ftn.uns.ac.rs.controller; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.HttpStatus; import org.springframework.http.ResponseEntity; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.ann...
C
UTF-8
325
3.6875
4
[]
no_license
#include <stdio.h> #include <math.h> double sum_powers_from(double x, double y, int n){ double res = 0; while(n>0)res += pow(x+((double)(--n)), y); return res; } int main(){ double x = 0; double y = 0; int n = 0; while(scanf("%lf%lf%i", &x, &y, &n) != EOF) printf("%f\n", sum_powers_from(x, y, n)); return...
TypeScript
UTF-8
1,492
3.015625
3
[ "MIT" ]
permissive
import {add, collection, Doc, get, Ref, subcollection, update} from "typesaurus"; export class Game { countdownTime: number = 60 remainingTime: number = -1 score: Score[] = [] teams: Ref<Team>[] words: string[] = [] wordsDone: string[] = [] } export function getGame(gameRef: Ref<Game>): Promis...
Java
UTF-8
707
2.625
3
[]
no_license
package com.homework.epam.service.impl; import com.homework.epam.annotation.Timed; import com.homework.epam.aspect.Logging; import com.homework.epam.service.Notebook; import org.apache.log4j.LogManager; import org.apache.log4j.Logger; public class RandomNotebook implements Notebook { private static final Logger L...
Python
UTF-8
182
2.859375
3
[]
no_license
# A program to test importing the calculateAreaofCircle function and using it with the integer 20 from reynLibrary import calculateAreaOfCircle print(calculateAreaOfCircle(20))
Java
UTF-8
582
1.976563
2
[]
no_license
package view.lcc.wyzsb.mvp.param; import java.io.Serializable; /** * Author: 梁铖城 * Email: 1038127753@qq.com * Date: 2017年04月25日20:55:10 * Description: 要发送的评论 */ public class SendComments implements Serializable{ private String content; private String oid; public String getOid(...
TypeScript
UTF-8
263
2.765625
3
[]
no_license
export class ServerModel { public type: string; public name: string; public content: string; constructor(type : string, name: string, content: string){ type = this.type; name = this.name; content = this.content; } }
Java
UTF-8
200
1.671875
2
[]
no_license
package net.es.oscars.pss.enums; /** * Created by haniotak on 1/13/16. */ public enum ReviewStatus { REV_CONFIGURED, REV_CLEANED, REV_PARTIALLY_CONFIGURED, REV_PARTIALLY_CLEANED }
PHP
UTF-8
299
2.734375
3
[]
no_license
<?php require_once(dirname(__FILE__)."/../helpers/CModel.php"); class Country extends CModel { /** * **/ public static function getNames() { $allUsers = self::getAll(); $result = array(); foreach ($allUsers as $key => $value) { $result[] = (array) $value; } return $result; } }
Python
UTF-8
380
2.8125
3
[]
no_license
import pyodbc import dbpackage def update_data(): with dbpackage.connectdb() as con: sql_cmd = """ UPDATE person SET fullname='Johny', weight='70' WHERE id='2' """ try: con.execute(sql_cmd) print('update data success') except pyodbc.ProgrammingEr...
Java
UTF-8
1,243
3.171875
3
[]
no_license
class Solution { public double findMedianSortedArrays(int[] nums1, int[] nums2) { int len1 = nums1.length; int len2 = nums2.length; int total = len1 + len2; boolean isOdd = total % 2 == 1; int idx = isOdd ? total / 2 + 1 : total / 2; int c1 = 0, c2 = 0; for (i...
Java
UTF-8
488
2.90625
3
[]
no_license
package com.lrf.day001; public class SomeThread extends Thread { @Override public void run() { super.run(); try { while (true) { this.sleep(1000); System.out.println("========>"); } } catch (InterruptedException e) { ...
Java
UTF-8
8,000
1.882813
2
[]
no_license
package com.example.musicok.service; import android.app.Notification; import android.content.Intent; import android.os.Bundle; import android.support.v4.media.MediaBrowserCompat; import android.support.v4.media.MediaDescriptionCompat; import android.support.v4.media.MediaMetadataCompat; import android.support.v4.media...
Python
UTF-8
1,513
4
4
[]
no_license
# Hangman # https://knightlab.northwestern.edu/2014/06/05/five-mini-programming-projects-for-the-python-beginner/ import random guessLimit = 7 wordList = ("bowdoin", "bear", "graduate") secretWord = wordList[random.randint(0, len(wordList) - 1)] guesses = [] matchedCount = 0; # https://stackoverflow.com/questions/6...
Python
UTF-8
8,451
2.890625
3
[]
no_license
import logging from cassandra import ConsistencyLevel from cassandra.cluster import Cluster, BatchStatement from cassandra.query import SimpleStatement import collections import json import flask from flask import request, jsonify, abort class PythonCassandraExample: def __init__(self): self.c...
C#
UTF-8
765
2.671875
3
[]
no_license
using System; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Text; using System.Threading.Tasks; namespace BindDataToWindows { class DataPoint : INotifyPropertyChanged { private string _value; public string Value { get { ret...
Java
UTF-8
2,003
2.046875
2
[]
no_license
package com.paulotec.virtualize.services; import javax.sql.DataSource; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.annotation.Configuration; import org.springframework.core.annotation.Order; import org.springframework.security.config.annotation.authentication.builde...
Java
UTF-8
3,292
1.726563
2
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
/* * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH under * one or more contributor license agreements. See the NOTICE file distributed * with this work for additional information regarding copyright ownership. * Licensed under the Zeebe Community License 1.1. You may not use this file * ...
C#
UTF-8
3,974
2.625
3
[]
no_license
using Client; using DAL; using DAL.Entity; using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Net.Sockets; using System.Text; using System.Threading.Tasks; using System.Xml.Serialization; namespace Server { class Program { private const ...
Python
UTF-8
1,661
3.421875
3
[ "BSD-3-Clause" ]
permissive
"""Showcases *Lightness* computations.""" import numpy as np import colour from colour.utilities import message_box message_box('"Lightness" Computations') xyY = np.array([0.4316, 0.3777, 0.1008]) message_box( f'Computing "Lightness" "CIE L*a*b*" reference value for given "CIE xyY" ' f"colourspace values:\n...
C#
UTF-8
1,183
3.40625
3
[ "WTFPL", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
using System; using System.Collections.Generic; using System.Text; namespace GetFingerprintExample { class Program { static void Main(string[] args) { Console.WriteLine("Get X.509 certidicate fingerprint example"); Console.WriteLine(); if (args.Length < 2) ...
Go
UTF-8
3,596
2.6875
3
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
package handlers_test import ( "errors" "net/http" "time" "code.cloudfoundry.org/lager" "code.cloudfoundry.org/rep" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" ) var _ = Describe("State", func() { var ( repState rep.CellState requestLatency time.Duration ) BeforeEach(func() { repSta...
Python
UTF-8
780
2.75
3
[]
no_license
# coding: utf-8 import torch import os, json def analyze(ckpt_path, out_path, data, args): model = torch.load(ckpt_path) # Load model from checkpoint. weight = model.linear.weight # Weights of words. if not os.path.exists(out_path): os.mkdir(out_path) f = open(os.path.j...
Swift
UTF-8
958
2.6875
3
[]
no_license
// // SUSView.swift // Questionaire-tool // // Created by Celina on 05.08.19. // Copyright © 2019 CelinaLandgraf. All rights reserved. // import SwiftUI struct SUSView: View { @ObservedObject var model: Model let susIndex: Int var body: some View { ScrollView { VStack { ...
Java
UTF-8
561
1.976563
2
[]
no_license
package com.lxl.interfaceevent.dagger; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.widget.TextView; import com.lxl.interfaceevent.R; public class DaggerTestSecondActivity extends AppCompatActivity { private TextView tv; @Override protected void onCreate(Bun...
Python
UTF-8
70
2.796875
3
[]
no_license
letters=["a","b","c","d","e"] for letter in letters: print letter
Java
GB18030
1,518
3.78125
4
[]
no_license
package api; /* * ȼڣ *javac: public class Student extends Object * *ͨǰഴ equalshashCode,toString ֤ StudentĸObject * */ public class Student { private int id;//ѧ private String name;// private int age;// public int getId() { return id; } public void setId(int id) { this.id = id;...
Java
WINDOWS-1252
679
3.265625
3
[]
no_license
package th.part_15_Generic.chapter_08_ErasedCompnesate._02; public class GenericArray<T> { private T[] t; @SuppressWarnings("unchecked")//עjavac -Xlint:unchecked GenericArray.java public GenericArray(int size){ t=(T[]) new Object[size]; } public void put(int index,T item){ t[index]=item; } pub...
C++
UTF-8
910
3.046875
3
[ "MIT" ]
permissive
#include <iostream> #include <vector> #include <algorithm> #include <ctime> #include <cmath> int main(void) { unsigned long long number; std::cin >> number; std::vector<unsigned long long> answer(number + 1); clock_t t; t = clock(); for(size_t i = 2; i <= number; i++) { if (i % 3 == 0 && answer...
Markdown
UTF-8
18,949
2.578125
3
[]
no_license
--- title: Azure Key Vault logging | Microsoft Docs description: Use this tutorial to help you get started with Azure Key Vault logging. services: key-vault documentationcenter: '' author: barclayn manager: barbkess tags: azure-resource-manager ms.assetid: 43f96a2b-3af8-4adc-9344-bc6041fface8 ms.service: key-vault ms....
C#
UTF-8
1,214
3.09375
3
[]
no_license
using Microsoft.Xna.Framework; namespace SuperTutoriel.Classes.Managers { /// <summary> /// Gére le screenshake. /// </summary> public static class ScreenShakeManager { #region Propriétés /// <summary> /// La valeur du tremblement d'écran actuel. /// <...
Java
UTF-8
257
1.859375
2
[]
no_license
package br.com.limpacity.producer.dto; import lombok.Getter; import lombok.experimental.SuperBuilder; import java.util.Date; @Getter @SuperBuilder public abstract class MessageDTO { private final String messageType; private final Date currentDate; }
PHP
UTF-8
905
2.75
3
[ "MIT" ]
permissive
<?php /** * For the full copyright and license information, please view the LICENSE.md * file that was distributed with this source code. */ namespace Notamedia\ConsoleJedi\Module\Command; use Notamedia\ConsoleJedi\Module\Module; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Out...
PHP
UTF-8
1,793
2.546875
3
[]
no_license
<?php $num_of_articles = $_REQUEST['num_of_articles']; function getnews($nofarticle) { $appkey = "c2633a3d944ea8e2372ba7d40389d8a80b0bae86"; $hv_api = 'https://api-ssl.bitly.com/v3/highvalue?access_token='.$appkey.'&limit='.$nofarticle; $hv = file_get_contents($hv_api); $data = json_decode($hv, TRUE); $re...
Java
UTF-8
238
2.71875
3
[]
no_license
package Facade; public class Bank { public boolean hasSufficientSavings(Customer customer, int loanAmount) { if(customer.getSavingAmount() > loanAmount) { return true; } else return false; } }
Ruby
UTF-8
524
3.984375
4
[]
no_license
my_arr = [34, 57, 82, 20345, 23] def my_max(array) if array[0] > array[1] && array[0] > array[2] && array[0] > array[3] && array[0] > array[4] && array[0] > array[5] puts array[0] elsif array[1] > array[2] && array[1] > array[3] && array[1] > array[4] && array[1] > array[5] puts array[1] els...
Java
UTF-8
1,429
2.671875
3
[]
no_license
package core.components; import java.awt.Polygon; import java.awt.Shape; import java.awt.image.AffineTransformOp; import core.Component; import rendering.ColorFill; import rendering.FillOptions; import rendering.ShapeRenderRequest; import rendering.StrokeOptions; /** * A component that renders a polygon on screen ...
C#
UTF-8
6,704
2.59375
3
[]
no_license
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.IO; using System.Linq; using System.Runtime.InteropServices; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace Calculator { public partial class F...
Java
UTF-8
1,375
2.78125
3
[]
no_license
/* * GrindStack.java * by bluedart * * A useful implementation of IGrindRecipe. Pass this into FTAAPI.addGrind() to add the * recipe to FTA's list of grindables. */ package pa.api.recipe; import net.minecraft.item.ItemStack; import pa.api.inventory.ItemInventoryUtils; public class GrindStack implements IGrin...
C++
UTF-8
2,989
3.046875
3
[]
no_license
#include "Instruction.hpp" #include "Error.hpp" #include "Token.hpp" #include <stdexcept> #include <regex> const std::map< std::string, std::tuple< unsigned int, unsigned int > > Instruction::instMap = { {"ADD", {1, 2} }, {"SUB", {2, 2} }, {"MULT", {3, 2} } , {"DIV", {4, 2} }, {"JMP", {5, 2...
Markdown
UTF-8
7,039
2.671875
3
[ "LicenseRef-scancode-warranty-disclaimer" ]
no_license
# Schematic of current state of the amplifier I will try to update this to be as current as possible to how the amp is actually wired up. > Refer to the original schematic PDF when needed. Where possible component reference numbers were reused. ## Preamp ![preamp](preamp.png) Notable changes: * The input stage i...
Markdown
UTF-8
4,895
2.578125
3
[ "MIT" ]
permissive
CAGR Explorer (CAGRex) ====================== Installation ------------ ```bash pip install cagrex ``` Usage ----- ```python >>> from cagrex import CAGR >>> from pprint import pprint >>> cagr = CAGR() >>> pprint(cagr.course('INE5417', '20172')) {'ementa': 'Análise de requisitos: requisitos funcionais e requisitos '...
C++
UTF-8
1,992
3.28125
3
[]
no_license
#include "01 Creating a buffer.h" #include "02 Allocating and binding memory object to a buffer.h" #include "04 Creating a buffer view.h" #include "06 Creating a storage texel buffer.h" namespace VulkanLibrary { bool CreateStorageTexelBuffer( VkPhysicalDevice physical_device, Vk...
Markdown
UTF-8
1,819
2.515625
3
[]
no_license
# 🚧 under construction 🚧 My first application is being developed; at this point, I have learned the Spring concepts, and I am at least ready to put them into practice. the Spring dependencies to create a web application, and I will learn how to put up my first Spring application on IDE (IntelliJ IDEA community) and ...
Markdown
UTF-8
1,591
2.6875
3
[]
no_license
Create an ecosystem that fulfills basic needs (warmth, human interaction, etc.). Scarcity in location and availability, but not in resources, which are abundantly available and transportable by vehicles that exist 1. Overcapacity as a Service; use resources in current system efficitevely, right location right time. C...
C++
UTF-8
563
2.8125
3
[]
no_license
#ifndef USERS_H #define USERES_H #pragma once #include "Course.h" #include "ResearchGroup.h" #include "Staff.h" #include <vector> /** Users class is responsible for simlation of users in supercomputer environment. We can recognize different types of user: students in course, researcher in research group, IT member ...
Python
UTF-8
372
3.1875
3
[]
no_license
n = int(input()) while n: n -= 1 value = input().split() a = value[0] b = value[1] lenA = len(a) lenB = len(b) if lenA >= lenB: if a[lenA - lenB:lenA] == b: res = a[lenA - lenB:lenA] # print(res) print("encaixa") else: print("n...
JavaScript
UTF-8
965
3.78125
4
[]
no_license
//Given a string of numbers the adder method should be able to add pairs of numbers together. //Example Input: "1 1 2 2 3 3" //Example Output: "2 4 6" //Example Input: "1 2 3 4 5 6" //Example Output: "3 7 11" //Note: If there is an odd number of numbers the last number in the string is not added with a number. //...
Java
UTF-8
4,948
2.59375
3
[]
no_license
package com.simpleplus.telegram.bots.services.impl; import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule; import com.simpleplus.telegram.bots.components.BotBean; import com.simpleplus.telegram.bots.datamodel.Coordinates; import com.simpleplus.telegram.bots.dat...
C++
BIG5
278
3.25
3
[]
no_license
#include<iostream> using namespace std; int main() { cout << "10iƪ10O" << 10 << "C\n"; cout << "8iƪ10O" << 010 << "C\n"; cout << "16iƪ10O" << 0x10 << "C\n"; cout << "16iƪFO" << 0xF << "C\n"; return 0; }
Ruby
UTF-8
3,600
3.25
3
[]
no_license
require 'rspec' require_relative 'spechelper' require_relative '../lib/enigma' RSpec.describe Enigma do before :each do @enigma = Enigma.new end it 'exists' do expect(@enigma).to be_an(Enigma) end it 'initializes with attributes' do expect(@enigma.set).to eq(['a', 'b', 'c', 'd', 'e', 'f',...
Go
UTF-8
579
2.765625
3
[]
no_license
package clause import ( "orm/ormlog" "reflect" "testing" ) func TestClause_BuildSQL(t *testing.T) { var clause Clause clause.Set(WHERE, "Name = ?", "foo") clause.Set(ORDERBY, "Age DESC") clause.Set(LIMIT, 3) clause.Set(SELECT, "User", []string{"Name", "Age"}) sql, sqlVars := clause.BuildSQL(SELECT, WHERE, L...
Swift
UTF-8
2,614
2.609375
3
[]
no_license
// // ViewController.swift // GEO // // Created by YANGSHENG ZOU on 2016-05-25. // Copyright © 2016 YANGSHENG ZOU. All rights reserved. // import UIKit import CoreLocation import MapKit class ViewController: UIViewController { @IBOutlet weak var mapView: MKMapView! @IBOutlet weak var locationLabel: UILabel...
PHP
UTF-8
577
2.59375
3
[]
no_license
<?php // Fetch all drivers header("Access-Control-Allow-Origin: *"); // Connect to db require_once('connect.php'); // Get data $response = []; // Insert dispatcher $sql = "SELECT * FROM drivers"; $result = $conn->query($sql); if($result->num_rows > 0){ while($row = $result->fetch_assoc()){ ...
Java
UTF-8
3,658
2.53125
3
[ "Apache-2.0" ]
permissive
package org.deltaecore.feature.validation; import java.util.List; import org.deltaecore.feature.DECardinalityBasedElement; import org.deltaecore.feature.DEFeature; import org.deltaecore.feature.DEGroup; import org.deltaecore.feature.DEVersion; import org.eclipse.core.runtime.IStatus; import de.christophseidl.util.ec...
C#
UTF-8
2,849
3.4375
3
[]
no_license
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace LessonNewCar { public class Car { #region Variables bool IsDirty; bool IsWork; int id; static int count=1; double lenght; #endre...
Markdown
UTF-8
1,218
2.65625
3
[ "MIT" ]
permissive
# realtime-react-datatable realtime react datagrid using [Hamoni Sync](https://www.hamoni.tech/) and [react-table](https://react-table.js.org/) ![React app running](https://cdn.filestackcontent.com/O6PAXFmSCeYHhTn8BfRA) # Setup * Clone or download this repository * Run `npm install` to install its dependencies * Co...
Java
UTF-8
840
2.4375
2
[ "MIT" ]
permissive
package tn.imed.jaberi.hospitalmanagement.error; import java.util.Date; import com.fasterxml.jackson.annotation.JsonFormat; public class ErrorDetails { private String message; private String uri; @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "dd-MM-yyyy hh:mm:ss" ) private Date timesamp; public E...
Java
UTF-8
3,433
2.546875
3
[]
no_license
package com.example.hp.iFindYou.DAO; import android.content.ContentValues; import android.content.Context; import android.database.Cursor; import android.database.DatabaseUtils; import android.database.sqlite.SQLiteDatabase; import android.database.sqlite.SQLiteOpenHelper; import java.util.ArrayList; /** * Created ...
PHP
UTF-8
3,234
2.53125
3
[]
no_license
<?php App::uses('AppController', 'Controller'); /** * Seasons Controller * * @property Season $Season */ class SeasonsController extends AppController { public function beforeRender() { parent::beforeRender(); $this->layout = 'admin'; $this->isAdmin(); } /** * admin_index...
PHP
UTF-8
804
2.875
3
[]
no_license
<?php namespace HarmSmits\BolComClient\Models; /** * @method null|int getWeeksAhead() * @method self setWeeksAhead(int $weeksAhead) * @method null|Total getTotal() * @method self setTotal(Total $total) * @method Countries[] getCountries() */ final class SalesForecastPeriod extends AModel { /** * The nu...
Markdown
UTF-8
11,504
2.671875
3
[]
no_license
[点击](https://github.com/neroneroffy/react-source-code-debug)进入React源码调试仓库。 本文是在[React中的高优先级任务插队机制](https://github.com/neroneroffy/react-source-code-debug/blob/master/docs/Concurrent%E6%A8%A1%E5%BC%8F%E4%B8%8BReact%E7%9A%84%E6%9B%B4%E6%96%B0%E8%A1%8C%E4%B8%BA/%E9%AB%98%E4%BC%98%E5%85%88%E7%BA%A7%E4%BB%BB%E5%8A%A1%E6%8F...
C#
UTF-8
442
2.78125
3
[]
no_license
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Padroes.Patterns.Behavioral.Mediator { public class ClienteLocal : Cliente { public ClienteLocal(IMediator mediator) : base(mediator) { } public overri...
Java
UTF-8
1,326
2.75
3
[]
no_license
import io.github.bonigarcia.wdm.WebDriverManager; import org.openqa.selenium.*; import org.openqa.selenium.chrome.ChromeDriver; import java.io.IOException; import java.util.concurrent.TimeUnit; public class GetRectangle { public static void main(String[] args) { WebDriverManager.chromedriver().setup(); ...
C++
UTF-8
765
3.03125
3
[]
no_license
#ifndef PLAYER_H #define PLAYER_H #include <SFML/System.hpp> #include <SFML/Graphics.hpp> #include <string> /* Player states: -1: Forfeit 0: Playing 1: Finished */ class Player { private: sf::Vector2f coord; sf::RectangleShape rect; std::string name; // int wins, losses; int pos, state, win_pos; public: void i...
Markdown
UTF-8
1,054
2.734375
3
[]
no_license
Geo_decoder ========== synopsis for getting address -------- ```javascript var geo = require('geo_decoder'); geo.getAddress(latitude, longitude, function(err, result) { if (err) { console.log(err); } else { console.log(result); } // response { address: 'A-4, NH 64, Green Enclave, Lohgarh, Zirakpur, Punjab 140...
Java
UTF-8
2,247
2.546875
3
[]
no_license
package com.qriyo.android.data; import android.content.Context; import android.content.SharedPreferences; import android.preference.PreferenceManager; /** * Created by DELL on 1/29/2016. */ public class StoredData { Context context; SharedPreferences preferences; SharedPreferences.Editor preferenceEdito...
Markdown
UTF-8
335
2.828125
3
[]
no_license
# gitme A command line tool to see your git commits across multiple projects ## Installation npm install -g gitme ## Usage View commits for multiple repos: gitme Add some repos: gitme add [repo-location] Remove a repo: gitme rm [repo-location] List all repos: gitme ls View help: ...