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
Java
UHC
8,098
2.421875
2
[]
no_license
package com.test.service; import java.io.BufferedReader; import java.io.File; import java.io.FileInputStream; import java.io.InputStreamReader; import java.text.DateFormat; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Arrays; import java.util.Date; import java.util.HashMap...
C#
UTF-8
1,625
3.296875
3
[]
no_license
using System.IO; using System.Runtime.Serialization.Json; using System.Text; namespace Toolkit.Net { /// <summary> /// Helper static class to serialize and deserialize objects using .Net DataContractJsonSerializer /// /// External reference(s) needed: /// - System.Runtime.Serialization //...
Go
UTF-8
206
3.265625
3
[]
no_license
package main import "fmt" func main() { i := func(x string) string { fmt.Print("Hello Everyone Myself, ", x, "...\n") return "I want you all to meet Miss MoneyPenny" } fmt.Println(i("James Bond")) }
JavaScript
UTF-8
277
3.171875
3
[ "MIT" ]
permissive
var answer = ""; var theResult = []; var condition = function(number) { if (number % 15 === 0) { answer = "PingPong"; } else if (number % 5 === 0) { answer = "Pong"; } else if (number % 3 === 0) { answer = "Ping"; } else answer = number; return answer; }
SQL
UTF-8
2,203
4.15625
4
[]
no_license
create table employee_test ( id number primary key, name varchar(20) not null, salary NUMBER(8,2) NOT NULL, department VARCHAR(20)); insert into employee_test (id,name,salary,department) values ('1','Peter','10000','IT'); insert into employee_test (id,name,salary,department) values ('3','Jackson','50000','IT'); insert...
C#
UTF-8
1,684
3.03125
3
[]
no_license
using Microsoft.EntityFrameworkCore; using Microsoft.Extensions.Logging; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using WebAPI.Data; using WebAPI.Models; namespace WebAPI.Repositories { public class EmployeeDetailRepository : IEmployeeDetailRepository { ...
Java
UTF-8
4,471
2.046875
2
[]
no_license
package com.connect.authentication.infrastructure.security.filter; import com.connect.authentication.infrastructure.security.token.SuccessfulAuthenticationToken; import com.connect.authentication.infrastructure.security.service.SessionAuthenticationService; import com.connect.authentication.infrastructure.security.coo...
C#
UTF-8
1,120
3.75
4
[]
no_license
using System; using System.Globalization; namespace Ex02 { class Program { static void Main(string[] args) { //Declara os objetos da classe Funcionario Funcionario func1, func2; //Instancia na memória os objetos func1 = new Funcionario(); ...
C++
UTF-8
1,435
2.578125
3
[]
no_license
// // Created by isaac on 12/21/2020. // #include "./server/ServerNetworking.h" #include "./logic/UniqueID.h" #include <iostream> #include <chrono> int main() { UniqueIDGenerator gen; Networking networking; networking.initSocket(3801, true); struct sockaddr_in server = getNetworkingAddress(3800, "127....
JavaScript
UTF-8
264
2.671875
3
[]
no_license
var baca = require("readline-sync"); var p = parseInt(baca.question(" Isi Panjang Kubus : ")); var l = parseInt(baca.question(" Isi Lebar Kubus : ")); var t = parseInt(baca.question("Isi Tinggi Kubus : ")); var volume = p * l * t; console.log(volume);
JavaScript
UTF-8
1,276
3.46875
3
[]
no_license
var r = new Rune({ container: "#canvas", width: 800, height: 600, debug: true }); //draw points that are not equally spaced along a curve with perlin noise //save it in an array //create array of color //add directions of shapes - array lineDirections var noise = new Rune.Noise(); var noiseStep = 0; var line...
Java
UTF-8
475
2.640625
3
[]
no_license
public class Driver { public static void main( String[] args ) { Node<Integer> n = new Node<Integer>(3); myStack<Integer> s = new myStack<Integer>(n); System.out.println(s); s.push(4); s.push(5); System.out.println(s); System.out.println(s.pop()); System.out.println(s); System.out.println(s.empty()); Syst...
Markdown
UTF-8
3,552
2.703125
3
[ "MIT" ]
permissive
# opsgenie_escalation [back](../opsgenie.md) ### Index - [Example Usage](#example-usage) - [Variables](#variables) - [Datasource](#datasource) - [Outputs](#outputs) ### Terraform ```terraform terraform { required_providers { opsgenie = ">= 0.6.3" } } ``` [top](#index) ### Example Usage ```terraform modu...
JavaScript
UTF-8
5,552
2.875
3
[]
no_license
/* * @author Gonzalo Serrano <sergon0409@gmail.com> * * @Overview * Preload phase, load all assets: images, json files, audio, texture atlas */ /* global Phaser, BasicGame */ 'use strict'; BasicGame.Preload = function (game) { this.game = game; this.preloadBar = null; }; BasicGame.Preload.prototype = { ...
Python
UTF-8
3,921
3.109375
3
[]
no_license
#!/usr/bin/env python # -*- coding: utf-8 -*- class CHC: @staticmethod def min_heapfy (a, i, h): l = 2 * i + 1 r = 2 * i + 2 if l < h and a[a[l]] < a[a[i]]: mi = l else: mi = i if r < h and a[a[r]] < a[a[mi]]: mi = r if mi !...
Java
UTF-8
7,182
2.046875
2
[]
no_license
package de.fxdiagram.examples.neonsign; import de.fxdiagram.annotations.properties.ModelNode; import de.fxdiagram.core.extensions.ClassLoaderExtensions; import de.fxdiagram.core.extensions.TooltipExtensions; import de.fxdiagram.core.model.ModelElementImpl; import de.fxdiagram.core.model.ToString; import de.fxdiagram.c...
C++
UTF-8
378
3.15625
3
[]
no_license
#include <iostream> #include <cmath> using namespace std; //lazy evaluation //since the first evaluation is false, the second doesnt get evaluated despite it being a possible division by 0. //this expression doesn't pose any problems and is in fact logically correct. int main(){ double i(3.0); bool lazy((i != 0.0) ...
Java
UTF-8
1,767
1.992188
2
[]
no_license
package com.rxjy.rxcompound.supervision.mvp.contract; import com.rxjy.rxcompound.commons.base.BaseModel; import com.rxjy.rxcompound.commons.base.BasePresenter; import com.rxjy.rxcompound.commons.base.BaseView; import com.rxjy.rxcompound.supervision.entity.ProblemInfo; import java.util.List; import rx.Observable; /*...
Swift
UTF-8
693
3.203125
3
[]
no_license
// // FavoriteCities.swift // Project 05 City // // Created by Chris on 22/8/2018. // Copyright © 2018 Chris. All rights reserved. // import Foundation struct FavoriteCities: Codable { var cities: [City] struct City: Codable { var name: String var info: String var image: Strin...
C++
UTF-8
529
2.578125
3
[]
no_license
#include "shpch.h" #include "SFFElement.h" SFFElement* SFFElement::GetFirstChild() { return children.size() > 0 ? children[0]: nullptr; } SFFElement* SFFElement::GetChildByIndex(int i) { ChildrenMap::iterator it = children.begin(); for (size_t i = 0; i < i; i++) { it++; } return it->se...
Markdown
UTF-8
20,952
2.75
3
[ "MulanPSL-2.0", "LicenseRef-scancode-mulanpsl-2.0-en", "LicenseRef-scancode-unknown-license-reference" ]
permissive
--- --- --- title: 【小岛浪吹】为什么海外华人对中国评价两极分化,中国的80,90,00后怎么就都不按正常国家的剧本走了呢(上) --- Mar 28, 2021 <iframe width="560" height="315" src="https://www.youtube.com/embed/fkT_ujirNNs" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-...
Python
UTF-8
252
2.890625
3
[]
no_license
import fbchat from fbchat import Client from getpass import getpass username = "Gabriel" client = fbchat.Client(username, getpass()) no_of_friends = int(input("Number of friends: ")) for i in range(no_of_friends): name = str(input("Name: "))
Java
UTF-8
426
1.882813
2
[]
no_license
package com.example.asus1.trainticket.Moduls; import com.google.gson.annotations.SerializedName; /** * Created by asus1 on 2017/12/5. */ public class MovieDatil_WritersAvatars { @SerializedName("small") private String mSmall; @SerializedName("medium") private String mMedium; public String get...
Java
UTF-8
1,198
2.859375
3
[]
no_license
import java.io.IOException; import java.nio.file.Path; import java.nio.file.Paths; import java.nio.file.Files; import java.nio.*; public class Task implements Runnable{ private String hash; private IPFSConnector ipfs_con; public Task(String hash){ this.hash = hash; this.ipfs_con = new IPFSConnector(); ...
Java
UTF-8
7,675
1.5
2
[]
no_license
package app.delivering.mvp.ride.order.route.apply.vendor.binder; import android.widget.EditText; import android.widget.TextView; import com.google.android.gms.location.places.Place; import com.google.android.gms.maps.GoogleMap; import com.google.android.gms.maps.MapView; import com.google.android.gms.maps.model.LatLn...
Markdown
UTF-8
30,724
2.78125
3
[]
no_license
# Advocating for transparency policies - a toolkit for students, researchers, staff, and librarians Adapted from [Advocating Open Access – a toolkit for librarians and research support staff](http://blogs.ucl.ac.uk/open-access/files/2015/06/Advocacy-toolkit.pdf) by [JISC](https://www.jisc.ac.uk/about) and [A Worksho...
JavaScript
UTF-8
569
3.875
4
[]
no_license
a1(); // line start with "function" keyword is function defintion or declaration //Function Declarations are parsed at pre-execution stage, when the browser prepares to execute the code. so we can access the function before it is declared. function a1(c) { alert("function declaration"); } //When a function co...
Java
UTF-8
445
2.8125
3
[]
no_license
import java.util.Vector; public class QuestionSimple extends Question{ private Vector<String> reponsesAlternatives; public QuestionSimple(){ super(); this.setType("QuestionSimple"); this.reponsesAlternatives = new Vector<String>(); } public String ajouterReponseAlternative(String reponse) { reponsesAlterna...
C
UTF-8
899
3.15625
3
[]
no_license
#include <stdio.h> #include <math.h> #include <stdlib.h> #include <string.h> int strings_iguais(char string1[50],char string2[50]); int main(){ char string[50]; char string_2[50]; int cont = 0, i, j; //fgets(string,50,stdin); scanf("%s",string); //fgets(string_2,50,stdin); scanf("%s",str...
Java
UTF-8
5,249
2.296875
2
[]
no_license
/* * Copyright 2011 Aleksey Shilin * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
Java
UTF-8
2,457
2.390625
2
[]
no_license
package com.springboot.repository; import static org.hamcrest.CoreMatchers.equalTo; import static org.hamcrest.CoreMatchers.is; import static org.hamcrest.MatcherAssert.assertThat; import static org.hamcrest.Matchers.hasSize; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter....
C++
UTF-8
11,639
2.640625
3
[]
no_license
#ifndef _CALC_PARSER #define _CALC_PARSER #include "../misc/Misc.h" #include "../misc/CNSTMacros.h" class Parser { private: typedef std::string(Parser::*func_operation)(const std::string&) const; const char m_CHAR_OPERATORS[5]; func_operation m_operations[5]; std::string m_strOperation; private: siz...
TypeScript
UTF-8
355
2.8125
3
[ "MIT" ]
permissive
export type Options = { objects?: any[]; onlyFields?: any[]; indexKeyOnArrays: string | ''; mergeObjectIntoArrays: boolean; }; export type KeyedObject = object & { [key: string]: any; }; export type Primitive = string | number | boolean; export enum ObjectState { CHANGED = 'changed', NOT_CHANGED = 'not...
Markdown
UTF-8
4,567
3.078125
3
[]
no_license
--- title: "Hurricane Track & Intensity Investigation" author: "Henry Blassingame" date: "02 OCTOBER 2020" output: html_document --- # Capstone Project ### Henry Blassingame ### September 2020 --- ### Problem - Review of over 100 years of Hurricane Data from the National Weather Service. Create some visualization...
Java
UTF-8
1,967
3.3125
3
[ "MIT" ]
permissive
/** * FRC Team 3555 */ package org.aluminati3555.mp.reverse; import java.io.File; import java.io.FileNotFoundException; import java.io.PrintWriter; import java.util.ArrayList; import java.util.Scanner; /** * This program adds negative signs to the position and velocity elements of a * motion profile (.csv) * ...
C++
UTF-8
695
3.109375
3
[]
no_license
#include <iostream> #include <bits/stdc++.h> using namespace std; struct CompareAge { bool operator()(int a,int b) { // return "true" if "p1" is ordered before "p2", for example: return (a>b); } }; bool ope(int a,int b) { // return "true" if "p1" is ordered before "p2", for exa...
C++
UTF-8
682
3.15625
3
[]
no_license
#include<iostream> #include<vector> #include<algorithm> using namespace std; int resolver(const vector<int> &v, const int tam) { int cont = 1; int res = v[0]; int max = 1; int i = 1; while (i < tam) { if (v[i - 1] == v[i]) { cont++; } else cont = 1; if (cont > max) { max = cont; res = v[i]; ...
Java
UTF-8
3,821
2.234375
2
[]
no_license
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package VO; import java.io.Serializable; import java.util.Date; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import...
Java
UTF-8
960
2.40625
2
[]
no_license
package com.example.demo; import org.springframework.stereotype.Service; import org.springframework.validation.annotation.Validated; import java.util.*; @Service @Validated public class UserService implements IUserService{ static WorkWithBD bdClass = new WorkWithBD(); @Override public boole...
C#
UTF-8
714
3.453125
3
[]
no_license
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace StringsAgain { class Program { static void Main(string[] args) { string str = "yxcyxcyxcyxc"; Console.WriteLine(CharRemove(str)); Co...
Shell
UTF-8
9,206
2.828125
3
[ "BSD-3-Clause" ]
permissive
#!/usr/bin/env bash #java 7 打出来的jar 才可以在在gradle tool3.0以下变成dex cd `dirname $0` echo `pwd` ENGINE_SRC=`pwd` ENGINE_OUT=${ENGINE_SRC}/out FLUTTER_DIR=${1:-'~/Downloads/flutter'} FLUTTER_TARGET_CACHE=${FLUTTER_DIR}/bin/cache ARTIFACTS_DIR=${FLUTTER_TARGET_CACHE}/artifacts ENGINE_TARGET=${ARTIFACTS_DIR}/engine REGENE...
Python
UTF-8
545
2.515625
3
[]
no_license
import json with open('datasets/moma_artist_final.json') as json_file: data = json.load(json_file) print(data[0].keys()) print(len(data)) # with open('datasets/compress_color_artwork_final.json') as json_file: # data2 = json.load(json_file) # # print(data2[0].keys()) # print(len(data2)) # for d in data: # ...
Python
UTF-8
435
2.9375
3
[ "MIT" ]
permissive
#!/usr/bin/env python # encoding: utf-8 class Solution(object): def lengthOfLIS(self, nums): """ :type nums: List[int] :rtype: int """ numvals = [1 for i in xrange(len(nums))] for i in xrange(len(nums)): for j in xrange(i): if nums[i] > n...
JavaScript
UTF-8
2,700
2.984375
3
[]
no_license
export const checkSelection = (row = -1, col = -1, arr) => { return !arr[row][col].status } const horizontalPath = (arr = [], player = '') => { const temp = arr.map((items = []) => items.reduce((acc, cur) => { if (cur.player === player) { acc += cur.status ? 1 : 0 } else { acc += 0 ...
Python
UTF-8
443
3.3125
3
[]
no_license
import threading import time print("aaa") def loop(arg): print("1234",time.ctime()) time.sleep(arg) print("56789",time.ctime()) def loop1(arg): print("-1234",time.ctime()) time.sleep(arg) print("-56789",time.ctime()) t1=threading.Thread(target=loop,args=(1,)) #创建新线程 t2=threading.Thread(targe...
Java
UTF-8
957
2.234375
2
[]
no_license
package fr.unice.polytech.si3.qgl.isg.map; import org.junit.Test; import static org.junit.Assert.assertSame; public class DirectionTest { @Test public void rightTest() { assertSame(Direction.EAST, Direction.NORTH.getRight()); assertSame(Direction.WEST, Direction.SOUTH.getRight()); assertSame(Direction.SOUTH,...
PHP
UTF-8
1,156
2.5625
3
[ "MIT" ]
permissive
<?php session_start(); require 'phpmailer/PHPMailerAutoload.php'; if (isset($_POST['name']) && isset($_POST['email'])){ $mail = new PHPMailer; $name = $_POST['name']; $email = $_POST['email']; $body = $_POST['message']; $subject = $_POST['subject']; //Server settings $m...
C#
UTF-8
3,682
2.75
3
[]
no_license
using System.IO; using System.Text; using LibOpenNFS.Utils; namespace LibOpenNFS { /// <summary> /// Utility class to determine the game based on an EXE file. /// </summary> public static class GameFinder { /// <summary> /// EAGL::SymbolEntry /// </summary> private ...
Python
UTF-8
283
4
4
[]
no_license
import time def square_of_sum(num): return (num*(num+1)//2)**2 def sum_of_squares(num): return num*(num+1)*(2*num+1)/6 t0 = time.time() answer = square_of_sum(100)-sum_of_squares(100) t1 = time.time() print("Answer is: "+str(answer)) print("Time elapsed is: "+str(t1-t0))
JavaScript
UTF-8
382
2.53125
3
[ "MIT" ]
permissive
console.log('jquery 101') $(document).ready(function () { console.log('I am ready') }); $(document).ready(function() { // All the JavaScript that depends on jQuery will be written here // Select the article DOM element by its id attribute var article = $("#top-article"); console.log("article", article); })...
C
UTF-8
2,390
3.15625
3
[]
no_license
#include"poisson.h"x void addFishList(struct poisson* poisson, struct listPoisson* listFish){ listFish->tabpoisson[listFish->number] = poisson; listFish->number ++; } struct poisson* selectFish(char* name, struct listPoisson* listFish){ for ( int i =0; i< listFish->number; i ++){ if (strcomp(name, listFis...
C++
UTF-8
749
3.53125
4
[]
no_license
#include <cstdio> #include <stdio.h> #include <assert.h> /* Generate mask indicating leftmost 1 in x. assume w=32 for example, 0xff00->0x8000,and 0x6000->0x4000 if x=0, the return 0 */ int leftmost_one(unsigned x) { /* first, generate a mask that all bits after leftmost one are 1 e.g. 0xff00->0xffff, and 0x06000->...
Java
UTF-8
2,710
2.171875
2
[]
no_license
package com.example.belgram.controller; import com.example.belgram.entity.Record; import com.example.belgram.entity.security.User; import com.example.belgram.repository.ImageRepository; import com.example.belgram.repository.UserRepository; import com.example.belgram.service.RecordService; import lombok.Data; import or...
Shell
UTF-8
242
3.28125
3
[ "MIT" ]
permissive
#!/usr/bin/bash if [ ! -e debugger ]; then echo '`make`' exit 1 fi if [ $# -lt 1 ]; then echo 'Usage: aqdb.sh filename.s'; exit 1 fi tmpfilename=$(mktemp) cat "$1" | ./macro > $tmpfilename shift ./debugger "$@" $tmpfilename
C#
UTF-8
2,804
2.578125
3
[]
no_license
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO; using DbfDataReader; namespace ShapeUtilities { public class RecordHeader { public int RecordNumber { get; set; } public int ContentLength { get; set...
Java
UTF-8
392
2.171875
2
[ "Apache-2.0" ]
permissive
package irvine.oeis.a061; import irvine.oeis.PartialSumSequence; import irvine.oeis.SkipSequence; import irvine.oeis.a055.A055641; /** * A061217 Number of zeros in the concatenation n(n-1)(n-2)(n-3)...321. * @author Sean A. Irvine */ public class A061217 extends PartialSumSequence { /** Construct the sequence. ...
Markdown
UTF-8
3,135
2.859375
3
[]
no_license
# Notes - Pull learning better than push learning - Let them fail to learn - Give them tools to make their jobs not instructions - Things will go wrong - Things will continuously change - You will lose work - You will break things - You will not be able to find a solution immediately - image consists of small blocks c...
PHP
UTF-8
1,971
2.859375
3
[ "ISC" ]
permissive
<?php namespace JsonSchemaInfo; /** * Provide info on a specific rule * * @package baacode/json-schema-info * @license ISC * @author Steve Gilberd <steve@erayd.net> * @copyright (c) 2017 Erayd LTD */ class RuleInfo { /** @var SchemaInfo Spec info object */ protected $spec = null; /** @var string V...
Java
UTF-8
1,021
3.265625
3
[]
no_license
/* * Class CritterMain "CritterMain.java." * TCSS 143. */ import java.awt.EventQueue; /** * CritterMain provides method main for a simple simulation program. * * @author Stuart Reges * @author David Schuessler <dschues1@uw.edu> * * @version 19 October 2014 */ public final class CritterMain { /** private ...
C++
UTF-8
312
2.609375
3
[]
no_license
/** * Created with C-Free. * User: zhiliang * Date: 13-7-15 * Time: 22:48 */ #include <cstdio> int main(void) { int m; while (scanf("%d", &m) != EOF) { int *a = new int[m]; bool flag = true; for (int i = 0; i < m; i++) { scanf("%d", &a[i]); } printf("YES\n"); delete [] a; } }
Java
UTF-8
1,732
2.203125
2
[]
no_license
package com.selenium; import com.Action.Headeraction; import com.UIobject.Header; import cucumber.api.PendingException; import cucumber.api.java.en.And; import cucumber.api.java.en.Given; import cucumber.api.java.en.Then; import cucumber.api.java.en.When; import org.openqa.selenium.WebDriver; import stat...
JavaScript
UTF-8
840
2.84375
3
[]
no_license
(function ($) { // On Load setActiveTab('.tabs li:nth-child(1)'); showTabContent('.tabs_content', 'tabs li:nth-child(1)') // On Click $('.tabs').children().click(function () { if (!$(this).hasClass('active')) { setActiveTab($(this)); showTabContent('.tabs_content', ...
C++
UTF-8
1,600
3.125
3
[]
no_license
#include "Game.hpp" #include <iostream> int main(){ //make a Game auto pongGame = unique_ptr<Game>(new Game()); ; //start game clock sf::Clock gameClock; // create main window sf::RenderWindow game(sf::VideoMode(800,600,32), "Pong", sf::Style::Close); pongGame -> initGame(game); // start main loop ...
JavaScript
UTF-8
452
2.515625
3
[]
no_license
$(document).ready(function() { $('#explore-modal').on('show.bs.modal', function(evt){ var $button = $(evt.relatedTarget); var $cause = $button.closest('.thumbnail'); var causeName = $cause.find('h3').text(); var causeImg = $cause.find('img').attr('src'); var $modal = $(thi...
C++
UTF-8
1,285
3.390625
3
[]
no_license
#include <algorithm> #include <cstdio> #include <cstdlib> class KSP01 { private: int arr_len; int max_total_weight; int* weight_arr; int* value_arr; public: KSP01(int* n, int* W, int* w, int* v) { int i = 0; arr_len = *n; max_total_weight = *W; weight_arr = (int*)calloc(sizeof(int), arr_le...
Java
UTF-8
5,104
1.898438
2
[]
no_license
/* Copyright 2009 Tactel AB, Sweden. All rights reserved. * _ _ * _ _ | | | | * _| |_ _____ ____ _| |_ _____| | _____| |__ * (_ _|____ |/ ___|_ _) ___ | | (____ | _ \ * | |_/ ___ ( (___ | |_| ____| | / ___ |...
PHP
UTF-8
151
3.203125
3
[]
no_license
<html> <body> <?php $fah = $_POST["name"]; $cel = (5/9) * ($fah - 32); ?> <?php echo $fah ?> Fahrenheit = <?php echo $cel ?> Celsius </body> </html>
C++
UTF-8
3,483
2.671875
3
[]
no_license
#include <gl_lib/gl_lib.h> #include <gl_lib/ShaderInitializationException.h> #include <string> #include <fstream> #include <sstream> #include <iostream> namespace gl_lib { vertexBuffer createVertexBuffer() { unsigned int vertexBufferObject; glGenBuffers(1, &vertexBufferObject); return ver...
Python
UTF-8
2,926
2.765625
3
[ "Apache-2.0" ]
permissive
# coding=utf-8 from mpl_toolkits import mplot3d #matplotlib inline #import cv2 import numpy as np import matplotlib.pyplot as plt import sys from datasets import dataset_factory from datasets import SoccerRawDb from datasets import utils """ Blow code will show the real result,offer result and pred result along 2018...
Java
UTF-8
866
1.710938
2
[]
no_license
package com.sjesu.webtruckshippingsystem.domain; import javax.annotation.Generated; import javax.persistence.metamodel.SingularAttribute; import javax.persistence.metamodel.StaticMetamodel; @Generated(value="EclipseLink-2.5.2.v20140319-rNA", date="2017-11-14T17:00:35") @StaticMetamodel(Truck.class) public class Truck...
Markdown
UTF-8
563
2.546875
3
[]
no_license
# Opya - Healthcare ![](../.gitbook/assets/opya_header-bg.jpg) ### **Apps for an Effective Treatment Through Better UX** In order to improve the treatment of children with autism, we created for Opya a suite of apps to help clinicians and parents to have a better communication and a faster collaboration. Bringing e...
Java
UTF-8
687
1.796875
2
[]
no_license
package com.ktds.notice.service; import java.util.List; import java.util.Map; import com.ktds.notice.vo.NoticeListVO; import com.ktds.notice.vo.NoticeSearchVO; import com.ktds.notice.vo.NoticeVO; public interface NoticeService { public NoticeListVO readAllNotice(NoticeSearchVO noticeSearchVO); publi...
C#
UTF-8
575
3.328125
3
[]
no_license
using System; using System.Collections.Generic; using System.Linq; using System.IO; namespace ExtensionMethods { public static class FileExtensions { // Usage: dInfo.GetFilesByExtensions(".jpg",".exe",".gif"); public static IEnumerable<FileInfo> GetFilesByExtensions(this DirectoryInfo dir, par...
TypeScript
UTF-8
662
2.546875
3
[ "MIT" ]
permissive
import pipe from 'ramda/es/pipe'; import create, { StateCreator } from 'zustand'; import { immer } from '@/lib/zustand-middlewares'; interface Sidebar { state: { isOpen: boolean; }; actions: { toggleSidebar: () => void; reset: () => void; }; } const createStore = pipe(immer, create); const initi...
Java
UTF-8
2,539
2.625
3
[]
no_license
/////////////////////////////////////////////////////////////////////////////// // File: CTLengthDifferences.java // Author: Carlos Bobed // Date: October 2017 // Comments: Class that stores the differences in length of a CT over two // different databases // Modifications: ////////////////////////////////...
Markdown
UTF-8
676
2.984375
3
[]
no_license
# Đề luyện tập - CRUD 3 bảng: - users - id - name - date_of_birth - email <unique> - password - role - 1: user <default> - 2: admin - avatar - posts: - id - title - content - likes: integer - pos...
C
UTF-8
1,041
2.640625
3
[]
no_license
/* * button.c * * Created on: 21 lis 2019 * Author: Igor */ #include "peripherals/button.h" #include "peripherals/uart.h" buttonController button1; buttonController button2; extern int flag; void buttonInit(void) { P3->DIR &= ~(BUTTON1 | BUTTON2); // set as input P3->IES &= ~(BUTTON1 | BU...
Markdown
UTF-8
4,196
3.1875
3
[ "BSD-3-Clause" ]
permissive
Halo ============================ A simple nodeJS project that uses the socket.io NodeJS module to enable real time communication between clients and the development board via a web browser This NodeJS application consists of a client side application accessible via a web browser in which users can view the number of ...
Python
UTF-8
3,334
2.9375
3
[ "Apache-2.0" ]
permissive
from matplotlib import pyplot as plt from mpl_toolkits.mplot3d import Axes3D from matplotlib.patches import FancyArrowPatch from mpl_toolkits.mplot3d import proj3d from klampt.math import so3,se3,vectorops class Arrow3D(FancyArrowPatch): def __init__(self, start, end, shrinkA=0.0, shrinkB=0.0, mutation_scale=20, a...
TypeScript
UTF-8
1,766
2.71875
3
[]
no_license
import { Component, Input, Output, EventEmitter} from '@angular/core'; import { trigger, state, style, animate, transition } from '@angular/animations'; import { Item as ItemModel } from './models/item'; @Component({ selector: 'item', templateUrl: './item.html', styleUrls: ['./app.component.css'], ...
Markdown
UTF-8
16,492
2.90625
3
[ "MIT" ]
permissive
# <a href="contributing">Contributing</a> Thanks for stopping by! The following sections detail how to contribute to this project in alignment with its goals. Use your best judgement, and don't hesitate to reach out with any questions. # <a href="table-of-contents">Table of Contents</a> [**Code of Conduct**](#code-...
Python
UTF-8
170
4.125
4
[]
no_license
print("This is python programme to add two numbers") a=float(input("Enter first number")) b=float(input("Enter second number")) print("Sum of ",a," and ",b," is ",a+b)
Markdown
UTF-8
556
2.9375
3
[]
no_license
# iPad-Detect iOS 10 Project demonstrating how to load a Storyboard depending on iPad Screen Size The secret here is using the method fixedCoordinateSpace on the UIScreen class, which always delivers the height of the screen, regardless of how the user is holding the device (portrait or landscape). We'll determine ...
Python
UTF-8
4,288
2.546875
3
[]
no_license
__author__ = 'Xiaofei Zhang' import csv import sys train = sys.argv[1] test = sys.argv[2] yelp2 = [] training_set = [] test_set = [] # import training-set data # with open('train-set.csv', 'rb') as file1: with open(train, 'rb') as file1: data1 = csv.reader(file1) training_set = list(data1) # import test-se...
C
UTF-8
612
2.921875
3
[]
no_license
#include <stdio.h> #define Length 64 int main(int argc, char const *argv[]) { char last_name[Length]; char first_name[Length]; int age; FILE* fd = fopen("student.dat", "r"); int id; fseek(fd, 0, SEEK_SET); fseek(fd, sizeof(int), SEEK_SET); int count = fread(&id, sizeof(int), 1, fd); while(cou...
Python
UTF-8
143
3.65625
4
[ "MIT" ]
permissive
import math n1 = float(input('Digite um número:')) print('O número {}, possui como parte inteira o número {}'.format(n1,math.trunc(n1)))
Java
UTF-8
2,692
2.71875
3
[]
no_license
package prototype.feedme.cat.prototype.cat; import android.content.SharedPreferences; import prototype.feedme.cat.prototype.activity.CatActivity; /** * Cat's Attribute * Created by AT on 2014/12/28. */ public class Cat { public static final int CAT_DEAD = -1; public static final int CAT_ILL = 0; publ...
Markdown
UTF-8
1,226
3.234375
3
[]
no_license
Using the API : =============== The first step is to get an instance of `MastodonApp` (your app). Then, the second step is to authenticate the user. Finally, you get a `MastodonSession` with which you can call all the methods you want. ## 1. Get a `MastodonApp` Two options : if you already registered your app, then ...
C++
UTF-8
522
3.15625
3
[]
no_license
#pragma once #include "Horn.h" class SpecialHorn : public Horn { const char* sound; const char* sound2; int repetitions; public: SpecialHorn(const char* sound, const char* sound2, int repetitions); void honk() override; }; inline SpecialHorn::SpecialHorn(const char* sound, const char* sound2, int repetitions) {...
JavaScript
UTF-8
413
3.921875
4
[]
no_license
let i = 1; for(let i = 0 ; i < 5; i++) { console.log(i); // 0 to 4 } console.log(i); // 1 //////////////////////////////////////// const PI; // ERROR const PI = 3.14; PI = 3.141592; // ERROR const PI = 3.141; // ERROR console.log(PI); // 3.14 var PI = 3.1415; // ERROR let PI = 3.14159...
JavaScript
UTF-8
3,411
2.546875
3
[]
no_license
module.exports = function Token(){ const crypto = require('crypto'); const jwt = require('jsonwebtoken'); const UUID = function(){ return crypto.randomBytes(4).toString('hex') + '-' + crypto.randomBytes(8).toString('hex'); }; const db = require('./db')(); const password = require('./password')(); ...
TypeScript
UTF-8
5,226
2.59375
3
[]
no_license
import { Observable } from 'rxjs' import { User } from '../chat/user' import { Config } from '../config' import { Event } from '../events' import { ConnectionEvent } from '../events/connection-event' import { MultiQueueSubject } from '../firebase/rx/multi-queue-subject' import { Sendable } from '../message/sendable' i...
TypeScript
UTF-8
2,832
2.609375
3
[ "ISC" ]
permissive
/** * <div style={{backgroundColor: "#000", display: "flex", justifyContent: "space-between", color: "#fff", padding: 16}}> * <span>Built-in <b>Salesforce</b> integration.</span> * <a href="https://www.salesforce.com/ap/?ir=1"> * <img style={{display: "block"}} src="https://authjs.dev/img/providers/saleforce.svg"...
Java
UTF-8
613
2
2
[ "MIT" ]
permissive
/* * Copyright (c) 2020 Karl Oczadly (karl@oczadly.uk) * Licensed under the MIT License */ package uk.oczadly.karl.jnano.rpc.response; import com.google.gson.annotations.Expose; import com.google.gson.annotations.SerializedName; import uk.oczadly.karl.jnano.model.HexData; /** * This response class contains a sin...
C++
UHC
991
2.828125
3
[]
no_license
//https://www.acmicpc.net/problem/2916 //BOJ 2916 ڿ #pragma once #include<iostream> using namespace std; bool check[1000]; int que[1000], f, r; int abs(int i) { return i > 0 ? i : -i;} int BOJ2916() { int n, k; cin >> n >> k; for (int i = 0; i < n; i++) { int can; cin >> can; check[can] = true; que[r++...
C++
UTF-8
1,916
2.890625
3
[]
no_license
#include <queue> #include <string> #include <vector> #include <iostream> #include <utility> #include <cassert> using namespace std; struct Elem { int n = 0; int i = 0; int j = 0; Elem(int new_n, int new_i, int new_j) : n(new_n), i(new_i), j(new_j) {} }; bool operator>(const Elem& lhs, const Elem&...
Python
UTF-8
5,020
2.53125
3
[]
no_license
import unittest from selenium import webdriver from case.login_in import login_In import time from common.util import explicit_wait as etwait, drop_down_menu from common import settings settings.create_dir() pict_path = settings.pictsave_path() class Departmana(unittest.TestCase): u"""部门管理""" @classmethod ...
Go
UTF-8
4,570
2.5625
3
[ "Apache-2.0" ]
permissive
package main import ( "bufio" "fmt" "io" "log" "os" "os/exec" "path/filepath" "strings" "time" "github.com/howeyc/fsnotify" "github.com/jessevdk/go-flags" "github.com/shxsun/ansiterm" "github.com/shxsun/fswatch/termsize" "github.com/shxsun/klog" ) var ( reader, writer = io.Pipe() screen = New...
Markdown
UTF-8
1,693
3.15625
3
[]
no_license
# 公式 WOE $woe_i = \ln(\frac{B_i / B_T}{G_i / G_T}) $ IV_i $IV_i = (\frac{B_i}{B_T} - \frac{G_i}{G_T}) * woe_i$ IV $IV = \sum_{k=0}^n IV_i$ 线性模型基本形式 $f(x) = w_1x_1 + w_2x_2 + ...+ w_dx_d + b$ 一般用向量形式写成 $f(x) = \mathbf{w}^Tx + b$ ROC(Receiver Operating Characteristic) ROC空间将伪阳性率(FPR)定义为 X 轴,真阳性率(TPR)定义为 Y 轴。这两...
Python
UTF-8
558
3.515625
4
[]
no_license
#https://www.hackerrank.com/challenges/text-wrap/problem?h_r=next-challenge&h_v=zen&h_r=next-challenge&h_v=zen&h_r=next-challenge&h_v=zen&h_r=next-challenge&h_v=zen&h_r=next-challenge&h_v=zen&h_r=next-challenge&h_v=zen import textwrap def wrap(string, max_width): x=0 y=[] for i in range(0,int(len(string)/m...