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
UTF-8
323
2.53125
3
[]
no_license
package br.com.tt.aula01; public class Exercicio2 { public static void main(String[]args) { float nota1 = 9.8f; float nota2 = 7.1f; float nota3 = 5.3f; float nota4 = 8.7f; System.out.println("Soma="+((nota1+nota2+nota3+nota4)/4)); //Resposta = 7.72 } } ...
Go
UTF-8
1,107
2.640625
3
[ "MIT" ]
permissive
package helper import ( "bufio" "fmt" "io" "io/ioutil" "golang.org/x/net/html/charset" "golang.org/x/text/encoding" "github.com/parnurzeal/gorequest" "golang.org/x/text/encoding/simplifiedchinese" "golang.org/x/text/encoding/unicode" "golang.org/x/text/transform" ) func DownloadHtml(url string, args ...in...
Java
UTF-8
203
2.84375
3
[]
no_license
package nonfunctionalprogramming; public class AppleHeavyWeightPredicate implements ApplePredicate{ @Override public boolean test(Apple apple) { return apple.getWeight() > 150; } }
Markdown
UTF-8
1,851
2.609375
3
[]
no_license
--- title: easyswoole Smtp Client meta: - name: description content: Easyswoole provides a mail sending component. E-mail is a kind of communication mode that provides information exchange by electronic means. It is the most widely used service on the Internet. Email is essential to almost every web application, ...
Shell
UTF-8
3,502
3.3125
3
[]
no_license
# This file processes the raw data in $PL_DATA and generates data files that # we use to plot them in the imc13 paper. It lives in the pl-mapping git repo. # The data files produced are then plotted using the gnuplot scripts in the # paper repo. # The files produced in the gen-data directory should be copied over to th...
Python
UTF-8
332
3.203125
3
[]
no_license
from sys import stdin def main(): str_rep = ["" for x in range(1002)] str_rep[0] = "1" fact = 1 for i in range (1, 1001): fact *= i str_rep[i] = str(fact) for line in stdin: q = int(line) print("{0}!".format(q)) print(str_rep[q]) if __name__ == "__main__":...
Java
UTF-8
283
2.25
2
[]
no_license
package MOS; import Hardware.VirtualMachine; /** * * @author ernestas */ public abstract class Service extends Process { public Service(String name, ProcessState state) { super(name, state); } public abstract void interrupt(Interrupt i); }
C++
UTF-8
5,782
2.734375
3
[ "MIT" ]
permissive
/************************************************************************* > File Name: Time_heap.h > Author: Liu Shengxi > Mail: 13689209566@163.com > Created Time: 2019年01月22日 星期二 16时49分00秒 ************************************************************************/ #include "MiniHeap.h" #include <sys/timerfd.h>...
Java
UTF-8
1,533
2.859375
3
[]
no_license
package by.boika.electrical.model; public class MediaCenter extends AbstractLocalAppliance { private final String BEGIN_PLAY = "begin play"; private final String FINISH_PLAY = "finish play"; private final int FACTOR = 31; private int maxVolume; public MediaCenter() { } public int getMaxV...
C++
WINDOWS-1251
1,863
2.90625
3
[ "MIT" ]
permissive
// Radiation Oncology Monte Carlo open source project // // Author: [2005-2017] Gennady Gorlachev (ggorlachev@roiss.ru) //--------------------------------------------------------------------------- #pragma once #include "mctransport.h" // , // class mcTransportCylinderStack : public mcTransport { public:...
Java
UTF-8
1,203
2.21875
2
[]
no_license
package com.saurav.controller; import java.util.List; import javax.servlet.ServletContext; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; import org.springframework.web.bind.annotation.ModelAttribute; import org.sp...
SQL
UTF-8
887
3.578125
4
[]
no_license
/*UPDATE admin SET comment=users.user_name+' - ' + users.phone FROM users WHERE users.chat_id=admin.chat_id;*/ /*select * from admin a inner join users u on a.chat_id = u.chat_id where a.chat_id=u.chat_id;*/ /* update admin set a.comment = u.user_name + '- ' + u.phone from admin a inner join users u on a.c...
C
UTF-8
1,027
3.03125
3
[]
no_license
/** @file usart1.h @author Michael Hayes @date 10 March 2005 @brief Routines for interfacing with the usart1 on an AT91 ARM */ #ifndef USART1_H #define USART1_H #include "config.h" #define USART1_BAUD_DIVISOR(BAUD_RATE) ((F_CPU / 16) / (BAUD_RATE)) /* Return non-zero if there is a character ready...
Java
UTF-8
202
1.929688
2
[]
no_license
package fr.enssat.leave_manager.service.exception.not_found; public class HRNotFoundException extends NotFoundException { public HRNotFoundException(String msg) { super("HR "+msg); } }
C++
UTF-8
587
3.78125
4
[]
no_license
/* * initializer_lists.cpp * * Created on: 15 Mar 2021 * Author: Bowen Li */ #include <iostream> #include <vector> #include <initializer_list> using namespace std; class Test { public: Test(initializer_list<string> texts) { for (auto value : texts) { cout << value << endl; } } void print(initia...
JavaScript
UTF-8
511
3.125
3
[]
no_license
// var form = document.querySelector("form"); // var passwordCorrecto = ("gatitos123") ; // form.onsubmit = function (evento) { // evento.preventDefault(); // var password = document.getElementById("pass") // if (password.value === passwordCorrecto) { // } else { // password.class...
JavaScript
UTF-8
3,463
2.78125
3
[]
no_license
import './assets/toml.js' export function read(text, position) { const mappings = { '_': '|', '^': '|L10|R', '$': '|M10|S', 'e': '|E6 ', 'B': '|B5 ', 'G': '|G5 ', 'D': '|D5 ', 'A': '|A4 ', 'E': '|E4 ', 'F': '|F5 ', } text = text.slice(0, position); ...
Java
UTF-8
2,065
4.4375
4
[ "MIT" ]
permissive
package com.tirthal.learning.concepts; import java.util.function.BiFunction; import java.util.function.Function; /** * Functions as First Class Citizen = The ability to store a function as a variable and pass that function as a parameter * * @author tirthalp * */ public class FunctionAsFirstClassCitizensDemo { ...
Python
UTF-8
5,046
2.53125
3
[]
no_license
# -*- coding: utf-8 -*- """ Created on Wed Feb 13 10:56:10 2019 @author: yifan.gong """ import numpy as np import pandas as pd from matplotlib import pyplot as plt import matplotlib.ticker as mtick import matplotlib.dates as mdate import datetime #使用Df数据,计算净值PnL图数据 def Asset_to_list_Df(Df,asset = 100000000): datel...
PHP
UTF-8
6,794
2.515625
3
[]
no_license
<?php namespace app\models\member; use app\models\accounting\FeeCalendar; use app\modules\admin\models\FeeType; use Yii; use yii\base\Model; use yii\base\InvalidConfigException; use app\components\utilities\OpDate; use app\models\accounting\Assessment; use app\models\accounting\BaseAllocation; /** * Model class fo...
Java
UTF-8
6,919
2.1875
2
[]
no_license
package com.towcent.base.common.model; import java.util.List; import java.util.Map; /** * 权限验证参数 * */ public class AuthorityParams { /** * 用户编号 */ private String userId; /** * 是否验证 */ private boolean verification; /** * 品牌编码 */ private String brandNoVerify; /** * 系统编码 */ private String sys...
JavaScript
UTF-8
1,113
3.125
3
[]
no_license
import { createStore } from "../192.arrays"; describe("Arrays Test", () => { test("Arrays Add Fruit", () => { const store = createStore(); store.addFruit("Apple"); expect(store.getFruits()).toStrictEqual(["Apple"]); }); test("Arrays Add 2 Fruit", () => { const store = createStore(); store...
Python
UTF-8
1,044
2.984375
3
[]
no_license
INF=float("inf") #入力 n=5 d=[[INF for _ in range(n)] for _ in range(n)] n=5 d=[[INF,3,INF,4,INF],[INF,INF,5,INF,INF],[4,INF,INF,5,INF],[INF,INF,INF,INF,3],[7,6,INF,INF,INF]] #DP dp=[[-1 for _ in range(n)] for _ in range(2**n)] #経路 route="0" def rec(S,v,r): if(dp[S][v] >= 0): return dp[S][v],r if...
Python
UTF-8
1,079
3.46875
3
[ "MIT" ]
permissive
#!/usr/bin/env python3 def hasNoX_2(s): if type(s)!=str: return False for c in s: if c!='x' or c!='X': return True return False def hasNoX_3(s): if type(s)!=str: return False for c in s: if c=='x' or c=='X': return False return True def ...
Java
UTF-8
6,007
2.171875
2
[]
no_license
package controllers; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Arrays; import java.util.Calendar; import java.util.List; import models.activity.Activity; import models.charity.Wel; import models.index.Index; import models.index.SolrContent; import models.index.IndexStore; import m...
Shell
UTF-8
998
3.59375
4
[]
no_license
#!/bin/bash usage() { echo "This won't clean anything, it will use whatever is in the cmdstan submodule even if it's dirty." echo "Pass the arguments to runPerformanceTests.py in quotes as the first argument." echo "Pass the alternative compiler binary path as the second argument." } if [ -z "$1" ] || [ -...
TypeScript
UTF-8
439
2.953125
3
[ "MIT" ]
permissive
interface UploadedFile { path: string; } type onProgress = (percent: number) => void; interface RenderProps { path: string uploading: boolean progress: number } export interface UploaderProps { id: string children: (props: RenderProps) => React.ReactNode uploadFile: (file: File, onProgress?: onProgress) ...
Swift
UTF-8
2,571
2.953125
3
[]
no_license
// // PersonalScheduleService.swift // ulink // // Created by 양시연 on 2020/07/16. // Copyright © 2020 송지훈. All rights reserved. // import Alamofire import Foundation import SwiftyJSON struct PersonalScheduleService { private init() { } static let shared = PersonalScheduleService() private func ma...
Java
UTF-8
1,471
2.3125
2
[]
no_license
package com.ds.po; public class AGPullRecordPO { private Long id; private String agPath; private String datePath; private String filename; private long lastUpdateTime; private String fileSize; public AGPullRecordPO() { super(); } /** * * @param agPath * @param datePath * @param filename * @param ...
Java
UTF-8
3,617
2.3125
2
[]
no_license
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package Controllers; import Models.Clubes; import diastrabalhofinal.InteracaoBD; import java.io.IOException; import java.net.URL; impo...
C
UTF-8
2,858
2.859375
3
[]
no_license
#define _GNU_SOURCE #include <stdio.h> #include <stdlib.h> #include <sched.h> #include <string.h> #include <unistd.h> #include <sys/types.h> #include <mpi.h> void check_cpu_bind_pid ( int num_thds, int num_cores, int thd_id ) { int k, j, e; cpu_set_t set; pid_t pid= getpid(); sched_getaffinity( pid, si...
PHP
UTF-8
2,335
3.015625
3
[]
no_license
<?php class Adresse{ private $_id; private $_nom; private $_adresse; private $_cp; private $_ville; private $_clientId; public function __construct($_id, $_nom, $_adresse, $_cp, $_ville, $_clientId){ $this->_id = $_id; $this->_nom = $_nom; $this->_adresse = $_adresse; $this->_cp = $_cp; $this->_ville...
C++
UTF-8
1,184
2.859375
3
[]
no_license
#include "stdafx.h" #include "GGE_node.h" #include <iostream> GGE::Node::Node(Node *parent, Vector2 offset) : parent(parent), offset(offset) {} GGE::Behavior *GGE::Node::getBehavior(std::string type) { return behaviors[type]; } void GGE::Node::addBehavior(Behavior *beh) { std::cout << "Adding behavior \"" << beh-...
TypeScript
UTF-8
828
2.796875
3
[]
no_license
export type Id = string export interface Paginate<T> { entities: T[] totalCount: number } export interface PaginateFiltersQueryString { offset?: string limit?: string } export type OrderBy = 'desc' | 'asc' export interface Entity { id: Id } export interface PaginatedData<T> { totalCount: number hasNe...
C#
UTF-8
8,804
2.734375
3
[ "CC0-1.0" ]
permissive
using Discord; using Discord.WebSocket; using System; using System.Collections.Generic; using System.Globalization; using System.Linq; using System.Text.RegularExpressions; using System.Threading; using System.Threading.Tasks; using TheOracle.GameCore; using TheOracle.GameCore.Assets; using TheOracle.GameCore.Oracle; ...
Python
UTF-8
1,918
3.390625
3
[]
no_license
''' Atividade machine-learning, Checkpoint 3 Nome: Lucas Venancio Coutinho ''' from sklearn import tree # |||| ...
Java
UTF-8
2,009
2.15625
2
[]
no_license
package org.ndx.codingame.fantastic.actions.spells; import org.ndx.codingame.fantastic.Constants; import org.ndx.codingame.fantastic.Playground; import org.ndx.codingame.fantastic.actions.Action; import org.ndx.codingame.fantastic.actions.ActionVisitor; import org.ndx.codingame.fantastic.entities.Entity; import org.nd...
SQL
UTF-8
1,165
3.015625
3
[]
no_license
-- Table: bouquet CREATE TABLE bouquet (id INTEGER PRIMARY KEY AUTO_INCREMENT, name VARCHAR(255), assemble_price DECIMAL); INSERT INTO bouquet (id, name, assemble_price) VALUES (1, 'married', 12.7); -- Table: flower CREATE TABLE flower (id INTEGER PRIMARY KEY AUTO_INCREMENT, name VARCHAR(255), length INTEGER, freshnes...
PHP
UTF-8
6,730
2.5625
3
[]
no_license
<?php class Empleado extends ActiveRecord{ protected $id; protected $cedula; protected $nombre; protected $apellido; protected $email; protected $tipo; protected $decanato_id; protected $estatus; public function getId() { return $this->id; } public function getCedula() { return $this->cedula;...
JavaScript
UTF-8
1,585
2.640625
3
[]
no_license
import React, { useEffect, useState } from "react"; import "./styles/app.scss"; import News from "./components/News"; import Parser from "rss-parser"; function App() { const [news, setNews] = useState(() => { const localData = localStorage.getItem("news"); return localData ? JSON.parse(localData) : []; }); ...
Go
UTF-8
342
2.78125
3
[]
no_license
package json import ( "encoding/json" "fmt" "testing" ) func TestDecode(t *testing.T) { jsonRequest := "{\"FirstName\":\"Muhammad\",\"LastName\":\"Azzam\",\"Age\":25,\"Married\":false,\"Hobbies\":[\"Gaming\",\"Reading\"]}" jsonBytes := []byte(jsonRequest) person := &Person{} json.Unmarshal(jsonBytes, person) ...
C++
UTF-8
268
2.515625
3
[]
no_license
#include<iostream> #include "HeapSort.h" #include "Heap.h" #include "ToolFuncs.h" using namespace std; void HeapSort(int array[], int len) { MakeMaxHeap(array, len); for(int i=len-1;i>0;--i){ swap(array[0], array[i]); MaxHeap(array, i, 0); } }
C#
UTF-8
2,574
2.640625
3
[]
no_license
public class ComputerSettingResponse { internal ComputerSetting Settings { get; set; } } internal class ComputerSetting { internal string Id { get; set; } internal string HospitalName { get; set; } internal string ComputerType { get; set; } internal string Env...
Rust
UTF-8
3,205
2.78125
3
[ "MIT" ]
permissive
use std::collections::hash_map::DefaultHasher; use std::hash::{Hash, Hasher}; use std::cell::RefCell; use std::rc::Rc; use error::*; use eval::PyRes; use object::{PyObject, PyInnerObject}; use object::excobj::*; use object::typeobj::*; fn pystr_add(lv: Rc<PyObject>, rv: Rc<PyObject>) -> PyRes<Rc<PyObject>> { matc...
C++
UTF-8
3,257
2.6875
3
[]
no_license
#ifndef __TEXT_H__ #define __TEXT_H__ #include <string> #include <GL/glew.h> #include "BaseUIComponent.h" #include "Font.h" #include "Shader.h" #include "VertexUI.h" #include "Anchor.h" #include "Colorable.h" namespace UI { class Text : public BaseUIComponent, public Colorable { private: ...
Python
UTF-8
1,383
3.359375
3
[]
no_license
# Tags: Array, Two Pointer, Facebook, MS, Amazon # https://leetcode.com/problems/3sum/discuss/162647/15-line-Python-easy-to-understand-solution-with-Hash # https://leetcode.com/problems/3sum/discuss/7498/Python-solution-with-detailed-explanation # https://leetcode.com/problems/3sum/discuss/187872/Python-si...
Python
UTF-8
1,018
2.703125
3
[]
no_license
import pickle import pandas as pd from sklearn.model_selection import train_test_split from sentence_normalizer import normalize_sentence # Load tsv file into dataframe data = pd.read_csv('data_sets/classified_titles.tsv', sep='\t') positions_categories = pd.Categorical(data["Classification"]) # Split dataset X_tra...
JavaScript
UTF-8
451
3.859375
4
[]
no_license
// Pedir para o usuário digitar um número e mostrar a tabuada desse numero de 1 a 1000 // Deve ter a possibilidade do usuário digitar outro número e também de limpar a tabuada gerada previamente let output = document.querySelector('#output'); let mensagem = ''; /* function mostrarTabuada() { alert("mostarTabuad...
JavaScript
UTF-8
1,534
3.125
3
[]
no_license
//NOTE: In order to use this library, you will need to ensure you have jQuery on your HTML page. $(document).ready(function(){ var all = document.getElementsByTagName("*"); for (var i=0, max=all.length; i < max; i++) { if(all[i].className.indexOf("NBV-") > -1){ syncVar(all[i].className.split('-')[1]); ...
Java
UTF-8
1,602
2.125
2
[]
no_license
package org.prj.arachne.domain.weather; import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor;...
Python
UTF-8
350
3.203125
3
[]
no_license
n = int(input("n: ")) a = list(map(int, input("a: ").split())) arr = [] for i in range(len(a)): if len(arr) != 5: arr.append(a[i]) if len(arr) == 5: for j in range(len(arr)): if a[i] < arr[j]: arr[j] = a[i] break arr.sort() arr = arr[::-1] ...
PHP
UTF-8
2,450
2.5625
3
[]
no_license
<?php namespace App\Http\Controllers; use App\Models\Attribute; class AttributesController extends Controller { /** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { return view('attributes.index'); } /** * Sh...
C#
UTF-8
1,608
3.046875
3
[ "Apache-2.0" ]
permissive
using System.Collections.Generic; using UOS; public struct GlobalPosition { public static GlobalPosition zero { get { return new GlobalPosition(0, 0); } } public double latitude; public double longitude; public double delta; public GlobalPosition(double latitude, double longitude, double delta ...
Markdown
UTF-8
5,627
3.390625
3
[]
no_license
1) What is GIT? Ans :- It is a distributed version control system and source code management system. It handle small and large projects with speed and efficiency. 2) What is a repository in GIT? Ans :- A repository contains a directory named .git, where git keeps all of its metadata for the repository. 3) ...
Shell
UTF-8
271
2.984375
3
[]
no_license
#!/bin/bash if [ $# != 1 ] then echo "argument error!" echo "usage: ./build_clean.sh [PROJ_NAME]" exit 0 fi rm -rf ./build/* sudo rm -rf /usr/local/lib/$1.* sudo rm -rf /usr/lib/$1.* sudo rm -rf /usr/local/include/$1 sudo rm -rf /usr/include/$1 echo "done!"
C#
UTF-8
844
3.453125
3
[]
no_license
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace problema5 { class Program { static void Main(string[] args) { ///5.Extrageti si afisati a k-a cifra de la sfarsitul unui numar. //...
Swift
UTF-8
480
2.921875
3
[ "Apache-2.0" ]
permissive
// // DiscographyMode.swift // Metal Archives // // Created by Thanh-Nhon Nguyen on 20/06/2021. // import Foundation enum DiscographyMode: Int, CustomStringConvertible, CaseIterable { case complete = 0, main, lives, demos, misc var description: String { switch self { case .complete: return...
TypeScript
UTF-8
379
2.5625
3
[ "Apache-2.0" ]
permissive
/** * Concentrates all the enumerations used by the graph to perform the transformation. * * Author: Gustavo L. Guidoni */ export enum AssociationType { RELATION_TYPE = 'Relation', GENERALIZATION_TYPE = 'Generalization', GENERALIZATION_SET_TYPE = 'GeneralizationSet' } export enum Cardinality { C1 = '1', ...
Markdown
UTF-8
1,965
2.890625
3
[ "MIT" ]
permissive
### Description I have discovered an issue which is quite critical for our business - `CascadeInputTransparent` behaves differently on Android compared to the other platforms. ### Steps to Reproduce 1. Create a XAML page with the following content: ``` <Grid> <Grid BackgroundColor="Blue" VerticalOptions="FillAnd...
Java
UTF-8
1,962
2.8125
3
[]
no_license
package Config; import java.sql.*; import java.util.*; import javax.swing.JOptionPane; public class connectionConfig { Connection con = null; Statement st = null; ResultSet rs = null; String sql = null; private static Connection MySQLConfig; public static Connection configDB()throws SQLEx...
Markdown
UTF-8
1,071
2.84375
3
[]
no_license
## Frontity server with embedded files This small proof of concept is a Node server that embeds Frontity's static files (like JavaScript files or images) in the server bundle. The main goal is to be able to serve everything, including the client JavaScript files and small images, only with a serverless function, with...
Markdown
UTF-8
490
2.515625
3
[]
no_license
参考 https://www.cnblogs.com/grandyang/p/5727892.html 列出了三种处理办法,时间复杂度依次降低 1. 利用大堆根,建立 k 个元素的大根堆,堆顶元素最大,然后依次比较,当前元素比堆顶元素小,则将堆顶元素换出,当前元素入堆并调整堆。这个思路与大数据中的第 K 小一样。 2. 利用二分思想,关键还是利用矩阵的列有序的性质来进行 具体实现参加代码与前面链接页面的C++代码
PHP
UTF-8
1,209
2.984375
3
[]
no_license
<?php include_once '../../Database/dataConnect.php'; //Create class for user data class userInfo extends dataConnect{ private $firstName; private $lastName; private $personId; private $phoneNumber; private $eMail; public function __construct($firstName,$lastName,$personId,$phoneNumber,$eMail){ $this-...
TypeScript
UTF-8
829
4.21875
4
[]
no_license
//Typescript - well - strong typing allows us to define types of our variables let myString: string; myString = `this is a string`; //trying to assign a number to a string - myString, causes Error myString = 4; //TypeScript can also infer types let anotherString = `this is a string without :string`; anotherString ...
PHP
UTF-8
3,658
3
3
[]
no_license
<?php // require scraperwiki's HTML parsing script require 'scraperwiki/simple_html_dom.php'; // define the URL you want to scrape $html = scraperWiki::scrape("www.bbc.co.uk/news/uk-10629358"); $dom = new simple_html_dom(); $dom->load($html); // select the table and data from that table foreach($...
Markdown
UTF-8
18,808
2.609375
3
[ "LicenseRef-scancode-public-domain" ]
permissive
> *The following text is extracted and transformed from the paycom.com privacy policy that was archived on 2019-05-29. Please check the [original snapshot on the Wayback Machine](https://web.archive.org/web/20190529113610id_/https%3A//paycom.com/privacy.php) for the most accurate reproduction.* # Paycom Privacy Polici...
TypeScript
UTF-8
294
2.71875
3
[ "MIT" ]
permissive
export default function base64ToArrayBuffer(base64: string): ArrayBuffer { const binaryString = window.atob(base64) const len = binaryString.length const bytes = new Uint8Array(len) for (let i = 0; i < len; i++) { bytes[i] = binaryString.charCodeAt(i) } return bytes.buffer }
Swift
UTF-8
1,282
2.578125
3
[]
no_license
// // SignalProducer+CADisplayLink.swift // Pong // // Created by Nikita Belousov on 27.10.2019. // Copyright © 2019 Nikita Belousov. All rights reserved. // import ReactiveSwift import ReactiveCocoa class DisplayLinkProxy: NSObject { private let observer: Signal<TimeInterval, Never>.Observer in...
PHP
UTF-8
3,419
2.6875
3
[ "Apache-2.0" ]
permissive
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>ALLOCATE TO STUDENT</title> </head> <body> <?php include('header.php'); $resultSet=$con...
Markdown
UTF-8
880
2.96875
3
[]
no_license
# java.js An object oriented JavaScript Framework that is similar to Java. The objective is to create a framework that eases the transition of a Java programmer (or other programmer) into web design by familiar association. Also, the goal is to create a framework that makes web application design easier and more stand...
Markdown
UTF-8
2,527
2.84375
3
[]
no_license
# AudenTestRepo ## Contents - [Tools Used](#Tools-Used) - [Reasoning](#Reasoning) - [Issues Faced](#Issues-Faced) - [Next Steps](#Next-Steps) ### Tools Used - Visual Studio - Selenium Webdriver - Selenium Chromedriver - NUnit - Specflow - SpecRunner - Git - GitHub ### Reasoning I have created three Scenarios as I ...
Swift
UTF-8
3,767
3.0625
3
[]
no_license
// // RatingView.swift // Pebl2 // // Created by Nick Florin on 1/7/17. // Copyright © 2017 Nick Florin. All rights reserved. // import UIKit //////////////////////////////////////////////////////////////////////// class RatingView: UIView { var rating : CGFloat! var orientation : String = "left" // Defa...
Java
UTF-8
2,833
2.359375
2
[]
no_license
package at.technikum.masterproject.customerservice.controlleradvice; import static org.springframework.http.HttpStatus.BAD_REQUEST; import static org.springframework.http.HttpStatus.FORBIDDEN; import static org.springframework.http.HttpStatus.INTERNAL_SERVER_ERROR; import static org.springframework.http.HttpStatus.NOT...
JavaScript
UTF-8
2,753
2.609375
3
[]
no_license
/** * MapObject class */ define(['layers/ImageLayer', 'Loadable', 'utils', 'map/MapObjectLayerBehavior'], function (ImageLayer, Loadable, utils, MapObjectLayerBehavior) { /** * @param config */ var MapObject = function (config) { this._onLoad = []; if (config) merge(this, ...
JavaScript
UTF-8
908
4.375
4
[]
no_license
// 3) If you have a stream that receives individual values and would like to pipe it such that it builds an array out of these values, emitting the updated array each time a new value is added to it, how would you do this? Please provide a code example. // E.g. // 1 -> 2 -> 3 -> 4 // Should produce: // [1] -> [1,2] ->...
Java
UTF-8
628
3.25
3
[]
no_license
package InterfaceDemo; public class AdvancedCal implements InterfaceCal{ public static void main(String[] args) { AdvancedCal obj=new AdvancedCal() ; obj.calculateCos(); obj.calculateSin(); obj.add(); obj.sub(); } public void calculateCos() { System.out.println("this method is from ca...
C#
UTF-8
2,305
3.265625
3
[]
no_license
using System; using System.Collections.Generic; using System.Linq; using System.Text; using FuelCalculator.Models; namespace FuelCalculator.Modules.Cars.Models { /// <summary> /// Model do widoku z listą samochodów /// </summary> public class CarListEntry { /// <summary> /// Konstr...
JavaScript
UTF-8
7,269
3.109375
3
[]
no_license
var startDate = document.getElementById('start-date'), startTime = document.getElementById('start'), duration = document.getElementById('duration-select'), selectedDuration = getSelectedOption(duration).text, finishDateAndTime = document.getElementById('end'), deleteButton = document.querySelector('.del...
JavaScript
UTF-8
2,142
3.15625
3
[]
no_license
//create a new product //find a product by id //get all products //update a product by id //remove a product //remove all products const conn = require('./dbConfig') const Product = function(product) { this.title = product.title; this.image = product.image; this.price = product.price; this.ra...
PHP
UTF-8
1,626
2.640625
3
[]
no_license
<?php include ("includes/connection.php"); if(isset($_POST['sign_up'])){ $name = htmlentities(mysqli_real_escape_string($con,$_POST['user_name'])); $pass = htmlentities(mysqli_real_escape_string($con,$_POST['user_pass'])); $email = htmlentities(mysqli_real_escape_string($con,$_POST['user_email'])); $country = htmlentit...
Java
UTF-8
9,419
1.71875
2
[]
no_license
package creativebrands.kazziworker.fragments.PendingRequests; import android.app.Activity; import android.app.Dialog; import android.app.ProgressDialog; import android.content.DialogInterface; import android.content.Intent; import android.graphics.Color; import android.graphics.Typeface; import android.os.AsyncTask; i...
Java
UTF-8
1,628
2.359375
2
[]
no_license
package com.jaats.agrovehicledriver.net.WSAsyncTasks; import android.os.AsyncTask; import java.util.HashMap; import com.jaats.agrovehicledriver.model.HelpListBean; import com.jaats.agrovehicledriver.net.invokers.HelpListInvoker; /** * Created by Jemsheer K D on 20 May, 2017. * Package com.jaats.agrovehicledriver....
Shell
UTF-8
5,266
3.34375
3
[]
no_license
#!/bin/bash ANDROID_API_VERSION=18 NDK_TOOLCHAIN_ABI_VERSION=4.9 ABI=$1 # echo "ABI"$ABI TOOLCHAINS=$(pwd)/"toolchains" TOOLCHAINS_PREFIX="arm-linux-androideabi" TOOLCHAINS_PATH=${TOOLCHAINS}/bin SYSROOT=${TOOLCHAINS}/sysroot LDFLAGS="" EXTRA_CONFIGURE_FLAGS="" EXTRA_CFLAGS="" CFLAGS="--sysroot=${SYSROOT} -I${SYSRO...
TypeScript
UTF-8
3,609
3.84375
4
[]
no_license
import stately from "../src"; const store = stately({ a: "a", b: { c: "c", d: 4 } }); /** * Single argument mutator */ const changeA = store.createMutator((state, a: string) => (state.a = a)); const latestState = changeA("🔥"); // Returns { a: string; b: { c: string; d: number; }; } /** * Invalid mu...
C++
UTF-8
2,145
2.546875
3
[]
no_license
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <vector> #include <rdlib/StdFile.h> #include <rdlib/strsup.h> int main(int argc, char *argv[]) { AStdFile file, ofile; AStdData *ifp = Stdin; uint_t wid = 256, hgt = 256, n = 5; int i; if (argc < 3) { fprintf(stderr, "U...
PHP
UTF-8
838
2.515625
3
[ "MIT" ]
permissive
<?php namespace App\Models\Syst; use Illuminate\Database\Eloquent\Model; /** * @property int $cd_status_projeto * @property string $tx_nome_status_projeto * @property Osc.tbProjeto[] $osc.tbProjetos */ class StatusProjeto extends Model { /** * The table associated with the model. * * @var str...
TypeScript
UTF-8
1,433
2.515625
3
[]
no_license
module Hm.Data.JsonClient { export var crud = { insert: function (): any { }, update: function (): any { }, delete: function (): any{ }, select: function (): any { } } export class executionObject { tableName: string; execute: any; oparationTyp...
Java
UTF-8
1,891
2.234375
2
[]
no_license
package leagueofcrafters.items; import leagueofcrafters.LeagueofCrafters; import net.minecraft.client.renderer.texture.IconRegister; import net.minecraft.entity.Entity; import net.minecraft.entity.EntityLivingBase; import net.minecraft.entity.SharedMonsterAttributes; import net.minecraft.entity.player.EntityPlayer; im...
Java
UTF-8
2,561
3.96875
4
[]
no_license
package 简单难度.未排序数组中累加和为给定值的最长子数组长度; import java.util.HashMap; /** * @Description: * @Auther: lyuans * @Date: 2020.12.17 1:48 * @Version: 1.0 */ public class Solution { /** * max length of the subarray sum = k * * @param arr int整型一维数组 the array * @param k int整型 target * @return int整...
Java
UTF-8
2,190
3.515625
4
[]
no_license
import java.util.Scanner; public class TicTacToeTomek { public static void main(String[] args) { new TicTacToeTomek().run(); } Scanner sc = new Scanner(System.in); int count = 1; public void run() { int n = sc.nextInt(); sc.nextLine(); for( count = 1; count <= n; count++){ sol...
C
UTF-8
509
2.578125
3
[]
no_license
/****************************************************************************** * File: image.h * * Description: This file contains some of the core items needed throughout * the imagizer. * *****************************************************************************/ #ifndef IMAGE_ #define IMAGE_ #define ROW_S...
Markdown
UTF-8
504
2.8125
3
[]
no_license
##Access to data records—The number-one problem with larger companies when starting to work with cloud providers is working through the internal politics to allow access to data from the cloud. Data record access, and the steps for successful access, should be considered before you move to the cloud: How can we access...
Java
UTF-8
2,512
2.359375
2
[]
no_license
package com.c102c.app.utils; import java.util.List; import com.c102c.finalJKYTJ.R; import android.R.integer; import android.content.Context; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.BaseAdapter; import android.widget.TextView; import android.w...
C++
UTF-8
1,838
3.09375
3
[ "MIT" ]
permissive
// // main.cpp // 28 - Implement strStr() // // Created by ynfMac on 2019/6/13. // Copyright © 2019 ynfMac. All rights reserved. // #include <iostream> using namespace std; class Solution { public: int strStr1(string haystack, string needle) { int n = haystack.size(),m = needle.size(); for (i...
JavaScript
UTF-8
5,056
3.046875
3
[]
no_license
const mongoose = require("mongoose"); // mongoose provides something called a Schema -> blueprint for the database document const bookSchema = new mongoose.Schema({ title: String, author: String, pages: Number, releaseDate: Date, isAvailable: Boolean, genre: String, }); const multipleBooks = [ { tit...
Markdown
UTF-8
744
2.625
3
[]
no_license
# unity_gamedevelopement_extremerace I developed a 2-D racing game for in-house project in my 2nd year using unity and visual studio(editor) and named it extreme race( actually very similar to need for speed (initial version)).Since I shifted to linux operating system a year ago and deleted unity and all the editors ...
Java
UTF-8
607
2.078125
2
[]
no_license
package com.yushilei.myapp.db; import org.xutils.db.annotation.Column; import org.xutils.db.annotation.Table; /** * @auther by yushilei. * @time 2017/3/14-14:00 * @desc */ @Table(name = "BlackBard") public class BlackBard { @Column(name = "cardNo", isId = true) private String cardNo; @Column(name = "i...
Java
UTF-8
324
2.046875
2
[]
no_license
package com.uairobot.util.ibot9; import java.rmi.RemoteException; import cn.eastrobot.www.ws.RobotServiceEx.RobotResponse; public class Example { public static void main(String[] args) throws RemoteException { RobotResponse answer = IbotWSClient.getAnswer("���"); System.out.println(answer.getContent()); } }
Java
UTF-8
3,175
1.835938
2
[]
no_license
package com.tencent.mm.protocal.b; public final class le extends com.tencent.mm.al.a { public String ayg; public String desc; public boolean huq = false; public boolean hur = false; public boolean hwm = false; public boolean hwn = false; public boolean hwo = false; public String info; public String...
Java
UTF-8
1,408
1.921875
2
[]
no_license
package com.cloudht.ft.service.impl; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import java.util.List; import java.util.Map; import com.cloudht.ft.dao.FtExpressCommodityDao; import com.cloudht.ft.domain.FtExpressCommodityDO; import com.cloudht.ft.ser...