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
23,487
3.03125
3
[]
no_license
# Manuel utilisateur FEAT++ - Professeurs Ce manuel est destiné à être utilisé par les professeurs qui souhaiteraient utiliser le framework FEAT++. Il explique comment installer le framework sur une machine, comment utiliser les différentes commandes que FEAT++ propose et comment configurer les fichiers nécessaires au...
Java
UTF-8
1,802
1.992188
2
[ "MIT" ]
permissive
package com.google.android.gms.internal; import android.util.Log; import com.google.ads.AdRequest; @C1507ey /* renamed from: com.google.android.gms.internal.gr */ public final class C1607gr { /* renamed from: S */ public static void m4705S(String str) { if (m4714v(3)) { Log.d(AdRequest.LOG...
C++
UTF-8
1,122
2.796875
3
[]
no_license
/************************************************************************* > File Name: colleage.h > Author: Duke-wei > Mail: 13540639584@163.com > Created Time: 2017年01月10日 星期二 10时27分49秒 ************************************************************************/ #ifndef _COLLEAGE_H_ #define _COLLEAGE_...
Markdown
UTF-8
4,828
2.625
3
[]
no_license
--- layout: post permalink: /bookreview-habit2/ title: '2.무엇이 우리를 지속하게 하는가: 책 <해빗>' date: 2020-02-09 00:01:00 +09:00 feature: '/img/posts/002/blog2-thumbnail.jpg' background: '/img/posts/002/blog2-background.jpg' content_id: 'id002' categories: - bookreview tags: - Book review - 책리뷰 - 습관 - 해빗 description: '무엇...
SQL
UTF-8
13,897
4.0625
4
[]
no_license
WITH report_vars AS ( SELECT ('[[Username]]') AS "USERNAME", ('[[From=date]]') AS "REPORT_START", ('[[To=date]]') AS "REPORT_END" FROM sysibm.sysdummy1 ), timetable_structure AS ( SELECT term.timetable_id, term.term_id, cycle_day.cycle_day_id, cycle_day.cycle_id, cycle_day.day_in...
Java
UTF-8
2,634
2.125
2
[ "BSD-3-Clause" ]
permissive
/** * Copyright (c) 2008-2018, Massachusetts Institute of Technology (MIT) * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyri...
Markdown
UTF-8
1,010
2.640625
3
[ "Apache-2.0" ]
permissive
Goadd: Add Folder To Gopath™ ========================== ![image](https://farm5.staticflickr.com/4317/35198386374_1939af3de6_k_d.jpg) ## Requirements - Go development environment: >= **go1.2** ### Install from source code go get -u github.com/apple-han/goadd The executable will be produced under `$GOPATH/bin` i...
PHP
UTF-8
1,189
2.546875
3
[]
no_license
<?php class APP { private static $instance = null; public static function getInstance () { if(!self::$instance) { self::$instance = new self(); } return self::$instance; } public function run (){ require_once 'controllers/GroupsController.php'; requi...
Java
UTF-8
2,828
1.710938
2
[ "BSD-3-Clause", "Classpath-exception-2.0", "GPL-2.0-only", "Apache-2.0", "MIT", "CDDL-1.1" ]
permissive
// Copyright 2020 Google LLC // // 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 in w...
Markdown
UTF-8
1,355
2.59375
3
[]
no_license
# Introduction ## Autorun Manager Autorun Manager (formerly Autorun Killer) lets you decide what apps you want to let automatically start up. It sports two modes: Basic mode lets you decide which startup apps should be killed right after they start during system boot process. Applications are usually autostarting bec...
Java
UTF-8
1,241
3.671875
4
[]
no_license
/** * Handles setting walls around the GameScreen. * @author andreirichkov * retrieved from https://github.com/andreirichkov/console-snake */ public class Wall extends GameObject { /** * Default constructor. Sets symbol to '#' */ public Wall() { setSymbol('#'); } /** * Constructor for Wa...
Shell
UTF-8
1,083
3.96875
4
[]
no_license
#!/bin/bash # This script clears the terminal then performs an interactive checkout # if run from the src directory with RCS nested below src (src/RCS). # All .h files, all .c files, the README and the Makefile are checked out. checkout(){ cd ./RCS co -l * mv -f ./*.h ../ mv -f ./*.c ../ mv -f ./README ../ mv -f ...
Go
UTF-8
291
3.109375
3
[]
no_license
package str func RemoveOuterParentheses(S string) string { L, R := 1, 0 resp := []byte("") for i := 1; i < len(S); i++ { cur := S[i] if cur == '(' { L++ } else { R++ } if L != R { resp = append(resp, cur) } else { i++ L, R = 1, 0 } } return string(resp) }
C
UTF-8
1,744
3.4375
3
[]
no_license
/*http://moss.cs.iit.edu/cs351/assets/slides-processmgmt-1.pdf*/ /* * In this program we are taking output from a chlid process to the parent process * If we just want to send data manually, it can be done like in t1.c but Sometime we need to redirect output to stdout hence we use * dup */ #include <stdio.h> #includ...
Python
UTF-8
7,774
2.578125
3
[]
no_license
paper_direct={'A':['C','D'],'B':0,'C':0,'D':['B']}# 论文与其他论文的直接引用关系 paper_all={} messageuser = { 'Tsai-ing': {'password':'12345', 'first_name': 'Tsai', 'last_name': 'Ingwen', 'Phone_number': '886-22311-3731', 'relationship': {'Winnie': 0, 'Trump': 1},'paper':{}}, 'Trump': {'password':'12345...
Java
UTF-8
4,359
1.96875
2
[]
no_license
package com.example.progtablet; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import org.apache.http.HttpEntity; import org.apache.http.HttpResponse; import org.apache.http.client.HttpClient; import org.apache.http.client.methods.HttpPost; import org.apache.http.impl.client.Def...
PHP
UTF-8
1,198
3.65625
4
[]
no_license
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Regular Expression</title> <style type="text/css"> p{margin: 0;} </style> </head> <body> <?php $search = "Now is the time"; print("<p>Test string is: '$search'</p>"); ...
Java
UTF-8
352
3.09375
3
[]
no_license
package ArrayAssignmentPrograms; public class LargestElement9 { public static void main(String[] args) { int a[] = {12,8,78,14,2}; int large= a[0]; for (int i=0;i<a.length;i++) { if(a[i] > large) large=a[i]; } System.out.println("Large...
SQL
UTF-8
4,580
3.09375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Хост: 127.0.0.1:3306 -- Время создания: Июл 23 2019 г., 00:57 -- Версия сервера: 5.6.43 -- Версия PHP: 7.2.10 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACT...
Java
UTF-8
623
1.796875
2
[]
no_license
package com.eqsian.tictactoe; import android.os.Bundle; import android.preference.PreferenceActivity; import android.preference.PreferenceFragment; import android.support.annotation.Nullable; import android.support.v7.app.AppCompatActivity; /** * Created by Андрей on 10.11.2017. */ public class SettingsActivity ...
Python
UTF-8
3,388
4.25
4
[]
no_license
import random lowercase = "abcdefghijklmnopqrstuvwxyz" uppercase = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" numbers = "0123456789" special_characters = "!@#$%^&*" three_char_words = ["shy","pop","hog","pig","cap","dog","cat","act","owl","lot"] four_char_words = ["book","bone","fish","dark","moon","ship","wild","wood","chef","duk...
C++
UTF-8
5,030
3.3125
3
[]
no_license
/* * main.cpp * * Created on: Oct 20, 2018 * Author: Anton Dogadaev */ #include <iostream> #include <iomanip> #include <map> #include <set> #include <string> #include <sstream> #include <regex> using namespace std; class Date { public: Date() : mYear(0), mMonth(0), mDay(0) {} Date(string str) { int yea...
Markdown
UTF-8
9,231
3
3
[ "CC0-1.0" ]
permissive
# Action Research <standard name="Action Research"> *Empirical research that investigates how an intervention, like the introduction of a method or tool, affects a real-life context* ## Application This standard applies to empirical research that meets the following conditions. - investigates a primarily social...
Markdown
UTF-8
929
2.625
3
[]
no_license
# Exercism A containerized coding practice environment for: [exercism.io](https://exercism.io/my/tracks) ## Build ``` docker build -t psollars/exercism . ``` Alternatively, you can provide this argument to the build to specify the exercism executable that you'd like to use. The artifact should be located ...
Python
UTF-8
2,031
2.5625
3
[ "MIT" ]
permissive
''' Developer: M. Kokshoorn Date: 22/02/2015 Set of Python fucntions/wrappers for "cec-client", developped for use on a Rasberry Pi to control/detect HDMI connected devices. More about cec-client ultilit and installation instructions at: https://github.com/Pulse-Eight/libcec ''' import subprocess def get_pow...
Ruby
UTF-8
1,482
2.703125
3
[]
no_license
$:.unshift File.join(File.dirname(__FILE__),'..','lib') require 'test/unit' require 'mincoverage/input_reader' class NewInputReaderTest < Test::Unit::TestCase def test_get_instances InputFaker.with_fake_input([2, '', 1, "-1 0", "-5 -3", "2 5", "0 0", '', 1, "-1 0", "0 1", "0 0"]) { instances = MinCoverage::I...
C++
UTF-8
4,357
2.859375
3
[]
no_license
#include <cstdio> #include <cmath> #include <limits>//This library is used to get the double max value. #include "point.h" #include "rays.h" #include "world.h" #define F_INFINITY std::numeric_limits<double>::infinity() inline double square( double num ){ return num*num; } inline double dist3DSq( Point p1, Point p2 ...
Java
UTF-8
1,164
2.375
2
[]
no_license
package it.portalECI.DTO; public class RispostaFormulaQuestionarioDTO extends RispostaQuestionario { private String valore1; private String valore2; private String operatore; private String risultato; public RispostaFormulaQuestionarioDTO() { } public String getValore1() { return valore1; } public vo...
Java
UTF-8
3,032
2.453125
2
[]
no_license
package com.sy.filter; import com.auth0.jwt.interfaces.DecodedJWT; import com.netflix.zuul.ZuulFilter; import com.netflix.zuul.context.RequestContext; import com.netflix.zuul.exception.ZuulException; import com.sy.utils.JWTUtils; import javax.servlet.http.HttpServletRequest; public class PreFilter extends ZuulFilter...
C#
UTF-8
4,407
2.515625
3
[]
no_license
using System; using System.Collections.Generic; using System.IO; using System.Text; using System.Text.RegularExpressions; using System.Web; using System.Web.UI; using Spinit.Extensions; using Spinit.Wpc.Synologen.OPQ.Business; using Spinit.Wpc.Synologen.OPQ.Core; namespace Spinit.Wpc.Synologen.OPQ.Presenta...
C++
UTF-8
1,524
2.765625
3
[ "MIT" ]
permissive
#ifndef __BITCRAF_STATEMACHINE_TOKEN_H__ #define __BITCRAF_STATEMACHINE_TOKEN_H__ namespace Bitcraft { namespace StateMachine { /// <summary> /// Represents a uniquely identifiable entity. /// </summary> class Token { friend class StateBase; private:...
Markdown
UTF-8
2,488
2.828125
3
[]
no_license
**Your Business Unit** page allows your customers to select company user account they are logged in. To open **Your Business Unit** page, go to Customer Account → **Your Business Unit**. ## Graphic User Interface @(Info)()(Hover your mouse over the numbers to view their description.) <div class="mapster-containe...
Markdown
UTF-8
877
3.890625
4
[]
no_license
[1108.defanging-an-ip-address](https://leetcode.com/problems/defanging-an-ip-address/) Given a valid (IPv4) IP `address`, return a defanged version of that IP address. A _defanged IP address_ replaces every period `"."` with `"[.]"`. **Example 1:** **Input:** address = "1.1.1.1" **Output:** "1\[.\]1\[.\]1\[.\]...
Go
UTF-8
4,271
2.828125
3
[]
no_license
package fyne import ( "context" "fyne.io/fyne" "fyne.io/fyne/app" "fyne.io/fyne/layout" "fyne.io/fyne/widget" godcrApp "github.com/raedahgroup/godcr/app" "github.com/raedahgroup/godcr/fyne/log" "github.com/raedahgroup/godcr/fyne/pages" "github.com/raedahgroup/godcr/fyne/widgets" ) const ( menuSectionWidth...
Ruby
UTF-8
3,443
3.109375
3
[]
no_license
require "json" require "csv" # csv_file_path = "eva_csv/ase.csv" def eva_return(hash) return "なし" if hash["evaluation_method"].nil? return "なし" if hash["evaluation_method"].empty? hash["evaluation_method"] end def insert_element(hash, term, i, j) # i = 通年かどうかで決まる 基本的に0のみ # j = その期で授業コマ文だけ回すため campus = h...
Java
UTF-8
1,676
1.84375
2
[]
no_license
/******************************************************************************* * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE, Version 3, 29 June 2007; * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.gnu.org/licenses/lgpl-3.0.tx...
C++
UTF-8
10,155
3.4375
3
[]
no_license
#include <iostream> // подключение библиотек ввода-вывода #include <ctime> // подключение библиотек для работы с текущим временем (необходимы для генерации случайных чисел) #include <string> // подключение библиотек для работы со строками #include <windows.h> // подключение библиотек для ...
Java
UTF-8
8,077
1.867188
2
[]
no_license
package com.yt.fragments; import java.util.ArrayList; import java.util.regex.Matcher; import java.util.regex.Pattern; import android.app.AlertDialog; import android.content.Context; import android.content.DialogInterface; import android.content.Intent; import android.net.ConnectivityManager; import android.os.AsyncTa...
SQL
UTF-8
2,194
4
4
[]
no_license
create table tabela_pessoa(id serial primary key,nome varchar) create table tabela_evento(id serial primary key,evento varchar,pessoa_id int, foreign key (pessoa_id) references tabela_pessoa(id) ON DELETE CASCADE); insert into tabela_pessoa(nome) values('John Doe'); insert into tabela_pessoa(nome) values('Jane Doe...
Java
UTF-8
1,268
3.71875
4
[]
no_license
package Lista4Puc; import java.util.Scanner; public class Lista4Att3 { public static void main(String[] args) {//METODO PRINCIPAL DO PROGRAMA float A,B,C;//LADOS DO TRIANGULO Scanner ler = new Scanner(System.in);//COMANDO PARA RECEBER ENTRADA DE UMA LEITURA DE VARIAVEIS System.ou...
Python
UTF-8
374
2.921875
3
[]
no_license
import json from pprint import pprint #filename = input("Input filename: ") filename = "lab3-4.json" with open(filename) as f: data = json.load(f) pprint(data) arp_dict = {} arp_entries = data["ipV4Neighbors"] for entry in arp_entries: ip_addr = entry["address"] mac_addr = entry["hwAddress"] arp_dict[...
TypeScript
UTF-8
2,929
3.1875
3
[]
no_license
const CHORD_BASES = [ 'A', 'B♭', 'B', 'C', 'C#', 'D', 'E♭', 'E', 'F', 'F#', 'G', 'G#', ] const CHORD_BASE_INDEX: any = { 'A': 0, 'B♭': 1, 'A#': 1, 'B': 2, 'C': 3, 'C#': 4, 'D♭': 4, 'D': 5, 'E♭': 6, 'D#': 6, 'E': 7, 'F': 8, 'F#': 9, 'G♭': 9, 'G': 10, 'G#': 11, 'A♭': 11, } export enum ChordTyp...
JavaScript
UTF-8
967
3.53125
4
[]
no_license
/* * Discrete Fourier transform (JavaScript) * by Project Nayuki, 2022. Public domain. * https://www.nayuki.io/page/how-to-implement-the-discrete-fourier-transform */ "use strict"; /* * Computes the discrete Fourier transform (DFT) of the given complex vector. * 'inreal' and 'inimag' are each an array of n f...
Shell
UTF-8
5,265
2.84375
3
[ "Apache-2.0" ]
permissive
#!/bin/sh - # # Copyright (c) 1991 The Regents of the University of California. # All rights reserved. # # This code is derived from software contributed to Berkeley by # Kenneth Almquist. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following co...
Java
UTF-8
355
2.1875
2
[]
no_license
package homework.base; import org.openqa.selenium.WebDriver; import org.testng.annotations.BeforeSuite; import static java.lang.System.setProperty; public abstract class TestBase { protected WebDriver driver; @BeforeSuite(alwaysRun = true) public void setUp() { setProperty("webdriver.chrome.dri...
Markdown
UTF-8
5,667
3.546875
4
[ "MIT" ]
permissive
# alexa-utterances generate expanded Amazon Alexa utterances from a template string When building apps for Alexa or Echo, it's important to declare many permutations of text, in order to improve the voice recognition rate. Manually generating these combinations is tedious. This module allows you to generate many (hu...
Ruby
UTF-8
883
3.15625
3
[]
no_license
require_relative 'todolist.rb' # Creates a new todo list mylist = TodoList.new("Things to complete") # Add four new items mylist.add_item("Alarm ring") mylist.add_item("Wake up") mylist.add_item("Bath") mylist.add_item("Ready to office") # Print the list mylist.print_list # Delete the first item mylist.remove_item(...
Java
UTF-8
535
2.40625
2
[]
no_license
package com.javashitang.medium._416; import org.junit.Test; import static org.junit.Assert.*; public class SolutionTest { @Test public void canPartition() { Solution solution = new Solution(); int[] nums = {1, 5, 11, 5}; boolean flag = solution.canPartition(nums); assertTrue(...
SQL
UTF-8
402
3.0625
3
[ "MIT" ]
permissive
CREATE TABLE users ( id BIGINT PRIMARY KEY NOT NULL, created TIMESTAMP NOT NULL, modified TIMESTAMP NOT NULL, version INTEGER NOT NULL, email VARCHAR(255), enabled BOOLEAN NOT NULL DEFAULT FALSE, first_name VARCHAR(255), last_name VARCHAR(...
JavaScript
UTF-8
4,459
2.609375
3
[]
no_license
var express = require('express'); var mongoose = require('mongoose'); var router = express.Router(); var Species = require('../../models/species'); var Genus = require('../../models/genus'); var Family = require('../../models/family'); var Order = require('../../models/order'); var Class = require('../../mod...
Java
UTF-8
504
1.695313
2
[]
no_license
package com.its.fppbkk.service; import java.util.List; import com.its.fppbkk.entity.Menu; import com.its.fppbkk.entity.Restoran; import com.its.fppbkk.entity.Tag; public interface RestoranService { public List<Restoran> getRestoran(); public void saveRestoran(Restoran resto); public Restoran getRestoranByID...
Java
UTF-8
22,737
1.640625
2
[]
no_license
/******************************************************************************* * Copyright (c) 2009 LuaJ. All rights reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software withou...
Java
UTF-8
2,410
2.328125
2
[]
no_license
package pl.cyfronet.indigo.security; import lombok.AllArgsConstructor; import lombok.Builder; import lombok.Data; import lombok.ToString; import org.codehaus.jackson.annotate.JsonCreator; import org.codehaus.jackson.annotate.JsonProperty; import pl.cyfronet.indig...
Python
UTF-8
1,332
3.40625
3
[ "MIT" ]
permissive
def recursiveSolution(string1, string2): if not string1 and string2: return len(string2) elif not string2 and string1: return len(string1) elif not(string1 or string2): return 0 if string1[-1] == string2[-1]: return recursiveSolution(string1[:-1], string2[:-1]) else:...
JavaScript
UTF-8
4,651
2.640625
3
[ "Apache-2.0" ]
permissive
var page = require('webpage').create(), system = require('system'), username, password; var isFirstTimeEnterRunning = true; var isTurningOn = false; var isReloadPage = false; if (system.args.length < 2) { console.log('Usage: koding.js <username> <password>'); phantom.exit(); } else { username = system.args[1]; pas...
Java
UTF-8
7,028
1.8125
2
[]
no_license
package com.mystihgreeh.mareu; import android.text.format.DateFormat; import android.widget.DatePicker; import androidx.test.espresso.contrib.PickerActions; import androidx.test.espresso.contrib.RecyclerViewActions; import androidx.test.ext.junit.runners.AndroidJUnit4; import androidx.test.rule.ActivityTestRule; imp...
PHP
UTF-8
2,379
3.15625
3
[ "MIT" ]
permissive
<?php /** * Created by PhpStorm. * User: Admin * Date: 2016-02-09 * Time: 00:48 */ namespace App\Services; use App\Services\vertex; class VertexCalculatorService { public function testVertex() { $v0 = new vertex(0); $v1 = new vertex(1); $v2 = new vertex(2); $v3 = new vertex(3...
Python
UTF-8
608
3.359375
3
[]
no_license
from tkinter import * root=Tk() canvas_width=800 canvas_height=400 root.geometry(f"{canvas_width}x{canvas_height}") root.title("KV's GUI") can_widget= Canvas(root,width=canvas_width,height=canvas_height) can_widget.pack() #line (x1,x2,y1,y2) can_widget.create_line(0,0,800,400,fill="red") can_widget.create_line(0,4...
Java
UTF-8
3,358
2.15625
2
[]
no_license
package com.huashu.monitor.controller; import com.huashu.monitor.common.ServerResponse; import com.huashu.monitor.pojo.User; import com.huashu.monitor.service.UserService; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import lombok.extern.slf4j.Slf4j; import org.apache.shiro.SecurityUt...
JavaScript
UTF-8
1,369
2.8125
3
[]
no_license
import m from 'mithril' var todo = {} todo.Todo = function (data) { this.description = m.prop(data.description) this.done = m.prop(false) } todo.TodoList = Array // define the view-model todo.vm = { init: function () { todo.vm.list = new todo.TodoList() todo.vm.description = m.prop('') todo.vm.add...
Java
UTF-8
8,282
2.390625
2
[]
no_license
package ffm.geok.com.uitls; import android.content.Context; import android.os.Environment; import android.text.format.DateUtils; import com.google.gson.Gson; import com.google.gson.GsonBuilder; import com.google.gson.JsonDeserializationContext; import com.google.gson.JsonDeserializer; import com.google.gson.JsonEleme...
C
UTF-8
1,001
3.109375
3
[ "BSD-3-Clause" ]
permissive
#include <stdio.h> #include <string.h> #include "ziplist.h" /*列表键和哈希键的应用*/ int main(int argc, char const *argv[]) { unsigned char *zl = ziplistNew(); unsigned char*str = (unsigned char*)"b"; ziplistPush(zl,str,strlen((char*)str),0); unsigned char*str2 = (unsigned char*)"c"; ziplistPush(zl,str2,strl...
Python
UTF-8
231
3.4375
3
[]
no_license
def missingNumbers(arr): nums = set(arr) missing = [] for num in range(0, len(arr)+1): if num not in nums: missing.append(num) return missing print(missingNumbers([1, 2, 8, 3, 4, 5, 3, 3]))
C++
UTF-8
2,772
3.078125
3
[ "MIT" ]
permissive
/*793 - Network Connections*/ #include <bits/stdc++.h> using namespace std; void makeSet(vector <int>& padre, vector <int>& rango, int tam); bool sameArbol(vector <int>& padre, int x, int y); void unionByRank(vector <int>& padre, vector <int>& rango, int x, int y); int find(vector <int>& padre, int x); int...
TypeScript
UTF-8
6,068
2.65625
3
[]
no_license
/** * Cordova Plugins Abstract * npm i @types/cordova -D */ // import 'cordova'; import {TypeInfo} from '../Core/TypeInfo'; import {EAbort} from '../Core/Exception'; declare var window: any; declare var navigator: any; export type TSuccessfulCallback = (msg?: any) => void; export type TFailureCallback = (msg...
Swift
UTF-8
1,857
2.734375
3
[]
no_license
// // ViewController.swift // DieuHuongManHinh // // Created by Quynh on 3/24/20. // Copyright © 2020 Quynh. All rights reserved. // import UIKit class ViewController: UIViewController, UIAdaptivePresentationControllerDelegate { let name : String = "" override func viewDidLoad() { super.viewDidLo...
Python
UTF-8
662
3.109375
3
[]
no_license
import time import multiprocessing def deposit(balance,lock): for i in range(1000): lock.acquire() val = balance.value val += 1 time.sleep(.01) balance.value = val lock.release() def withdraw(balance,lock): for i in range(1000): lock.acquire() val2 = balance.value val2 -= 1 time.sleep(.01) b...
Shell
UTF-8
4,335
3.75
4
[ "MIT" ]
permissive
#!/bin/bash function heketi:init_instance_id() { HEKETI_INSTANCE=$1 } function heketi:get_config_file() { local instance_id=$1 local target=$2 info "heketi" "Downloading the default heketi json config..." gcloud compute scp $instance_id:/etc/heketi/heketi.json $target } function heketi:put_confi...
Markdown
UTF-8
1,252
3.359375
3
[]
no_license
# COP-mastermind Mastermind or Master Mind is a code-breaking game for two players. The modern game with pegs was invented in 1970 by Mordecai Meirowitz, an Israeli postmaster and telecommunications expert. It resembles an earlier pencil and paper game called Bulls and Cows that may date back a century or more. (Sourc...
PHP
UTF-8
1,737
3.4375
3
[]
no_license
<?php echo "Veuillez entrer au moins 2 lettres séparées par un espace: ".PHP_EOL; $input = readline(); $pattern = '/[[a-zA-Z]{1}\s]*/'; if(!empty(trim($input))){ //echo $input; $result = preg_grep($pattern, explode("\n", trim($input))); // print_r($result); if(!empty($result)){ // echo 'yesss...
Go
UTF-8
1,337
2.703125
3
[]
no_license
package main import ( //"crypto/tls" "log" "net" "runtime" flag "github.com/spf13/pflag" ) var bindAddr string var backendAddr string var certFile string var keyFile string func init() { flag.StringVar(&bindAddr, "l", ":443", "bind address") flag.StringVar(&backendAddr, "b", ":8082", "backend address") flag...
C#
UTF-8
1,927
3.65625
4
[]
no_license
//p.482 delegate/Landa; 변수처럼 사용하는 method다. /* 1. products.Sort(SortWithPrice); private static int SortWithPrice(Product x, Product y){ return x.Price.CompareTo(y.Price); } 2.delegate p.484 products.Sort(delegate(Product x, Product y){ return x.Price.CompareTo(y.Price); } 3.Landa-...
C
UTF-8
962
3.46875
3
[]
no_license
#include<stdio.h> #include<math.h> /*一步一步来,先筛选出最大值作比较,用count来进行最终判断*/ int main() { int a[7]; int count = 0,max=0,boom_num=0; for (int i = 1; i < 7; i++) { /* code */ scanf("%d",&a[i]); } max = a[1]; for (int i = 1; i < 5; i++) { /* code */ if (a[i] > max...
Java
UTF-8
438
1.828125
2
[]
no_license
package com.knowledge.point.rabbitmq; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; @RestController public class RabbitController { @Autowired private RabbitMqSender r...
Python
UTF-8
1,992
3.796875
4
[ "MIT" ]
permissive
#!/usr/bin/env python3 """ Author : schackartk Date : 2019-02-21 Purpose: Grad HW 5, find the winner """ import argparse import sys # -------------------------------------------------- def get_args(): """get command-line arguments""" parser = argparse.ArgumentParser( description='Tic-Tac-Toe board'...
Java
UTF-8
4,157
2.65625
3
[ "MIT" ]
permissive
// NadaMillas (c) 2019 Baltasar MIT License <baltasarq@gmail.com> package com.devbaltasarq.nadamillas.core.storage; import android.content.ContentValues; import android.database.Cursor; import android.util.JsonReader; import android.util.JsonWriter; import com.devbaltasarq.nadamillas.core.YearInfo; import java.io.I...
Markdown
UTF-8
2,816
2.703125
3
[ "Apache-2.0" ]
permissive
### Transporter #### 1 简介 > 名称:传输器/传输者,和Exchanger是对应的,里面也是两个方法一个bind,一个connect。 ``` @SPI("netty") public interface Transporter { /** * Bind a server. * * @param url server url * @param handler * @return server * @throws RemotingException * @see org.apache.dubbo.remoting....
Shell
UTF-8
484
3.453125
3
[ "Apache-2.0" ]
permissive
#!/usr/bin/env bash if [ "$UID" -ne 0 ] then >&2 echo "This script requires superuser priviledges." exit 1 fi # Target version COMMITISH="build-v1.1" # Make sure the folder exists INSTALL_DIR="/opt/harmonics-explorer" mkdir -p "$INSTALL_DIR" cd "$INSTALL_DIR" git init git remote remove origin &> /dev/null |...
Python
UTF-8
606
3.640625
4
[]
no_license
class Solution: def strangeGrid(self, h: int, w: int) -> list: lis=[[None]*w for i in range(h)] c='A' for j in range(w): # reservamos a j para columnas y a i para filas como siempre for i in range(h): # print(c,end=' ') # saldran en el orden deseado if j%2!=0: lis[h-i-1][j] = c c=ch...
Python
UTF-8
2,126
2.625
3
[]
no_license
from strategy_monitor_server import order_msg from strategy_monitor_server import log_msg import json #策略字典 strategys = {} #创建策略信息 def new_strategy_info(name): strategy = strategys.get(name,StrategyInfo()) strategys.setdefault(name,strategy) return strategy #策略信息 class StrategyInfo: def __init__(self...
JavaScript
UTF-8
2,968
3.140625
3
[]
no_license
import { findById, getUser } from '../common/utilities.js'; import { hpArray, expArray } from '../data/final-result.js'; import { hasCompleted } from './has-completed.js'; export const renderResult = () => { // grabs the HTML elements to be rendered const questTitle = document.getElementById('quest-title'); ...
Java
UTF-8
945
2.171875
2
[ "MIT" ]
permissive
package com.algorand.algosdk.v2.client.model; import java.util.HashMap; import java.util.Objects; import com.algorand.algosdk.v2.client.common.PathResponse; import com.fasterxml.jackson.annotation.JsonProperty; /** * Encoded block object. */ public class BlockResponse extends PathResponse { /** * Block h...
PHP
UTF-8
1,150
2.796875
3
[]
no_license
<?php // création de la classe TYPE_CLIENT class TYPE_CLIENT { Private $id_typeclient; Private $lib_typeclient; Private $idcat; //constructeur de la classe TYPE_CLIENT Public TYPE_CLIENT ($idtypcli, $libtypcli, $c) { $this -> id_t...
Shell
UTF-8
361
2.921875
3
[]
no_license
#!/bin/sh cd "$(dirname "$0")" || exit # The kernel does send a RST packet when it receives something to an # unknown socket destination which is the case with raw sockets. To # prevent this we simply block all outgoing RST packets. if ! iptables -C OUTPUT -p tcp --tcp-flags RST RST -j DROP; then iptables -A OUTP...
Shell
UTF-8
1,183
3.046875
3
[]
no_license
#!/bin/bash #autor : Esteban #mueve a las carpetas correspondientes #archivos de log son creados durante la instalacion previos a la creacion #de la estructura. son movidos a la carpeta definitiva definida por #DIRLOG. la carpeta donde se guardaban es dirconf q es palabra reservada comando="mover_Archivos_utiles.sh" ....
C++
UTF-8
1,076
3.296875
3
[]
no_license
#pragma once #include <iostream> #include<cstring> // Да се дефинира клас Location, който има член-данни указател към първия елемент на динамичен масив //от символи за име (символен низ с произволна дължина) на локацията и две числа от тип double за //координати. Класа трябва да съдържа голяма четворка, сетъри и гетъри...
Python
UTF-8
1,129
3.59375
4
[]
no_license
from tkinter import * import random root=Tk() root.title("TESTING RANDOM FUNCTION") root.geometry("500x500") input_password = Entry(root) guessed_passward_label = Label(root) generated_passward_label= Label(root) array_3d = [[["I","J","K","L","M","N","O","P"],["King","Queen"],["!","@","#","$","%","^","&",...
C++
UTF-8
1,009
2.921875
3
[]
no_license
class Solution { public: vector<int> searchRange(vector<int>& nums, int target) { vector<int> res(2,-1); if(nums.empty()) return res; int low=0,size=nums.size(),high=nums.size()-1,mid=0; while(low<high){ mid=low+(high-low)/2; if(nums[mid]>target) ...
C++
UTF-8
1,047
2.828125
3
[ "BSD-3-Clause" ]
permissive
// Purpose: Debug callbacks with Eigen::Ref<> arguments. #include <cstddef> #include <cmath> #include <sstream> #include <string> #include <iostream> #include <Eigen/Dense> #include <pybind11/eigen.h> #include <pybind11/embed.h> #include <pybind11/eval.h> #include <pybind11/functional.h> #include <pybind11/pybind11...
Markdown
UTF-8
2,345
3.40625
3
[ "MIT" ]
permissive
--- title: Friendship date: 21/04/2019 --- **This is Easy Reading Edition of the Sabbath School. For the regular Adult version with Teacher comments and EGW notes please open the top lesson on the main screen** `What basic idea is Ecclesiastes 4:9–12 talking about? What important rule about life do these verses teach...
TypeScript
UTF-8
1,066
2.96875
3
[ "MIT" ]
permissive
import { parseEmojis } from '../src/Utils' /** * Gerar html da uma imagem genérica para teste. * @async * @param {Object} props Valores recebidos no query string da solicitação. * @returns {Promise<string>} Template a ser renderizado. */ export default async (props: any): Promise<string> => { // Valores padrões...
Java
UTF-8
131
1.945313
2
[]
no_license
package com.example.basic.socket.netty3; public interface IMessageFactory { public abstract IMessage getMessage(String type); }
Java
UTF-8
1,069
2.28125
2
[]
no_license
package org.finartz.homework.web.dto; /** * @author Mert * */ public class SearchDTO { private String query; private String type; private Integer limit; private Integer offSet; private String accessToken; public String getQuery() { return query; } public void setQuery(String query) { ...
Java
UTF-8
2,818
2.46875
2
[]
no_license
package in.webxstudio.rest.quiz.api.truefalse; import java.util.ArrayList; import java.util.List; import javax.ws.rs.*; import javax.ws.rs.core.MediaType; import in.webxstudio.rest.quiz.api.connector.GetBoolean; import in.webxstudio.rest.quiz.api.models.SingleAnswer; @Path("boolean") public class TrueFalse { @GET ...
PHP
UTF-8
1,971
2.5625
3
[ "MIT" ]
permissive
<?php namespace App\Repositories; use App\Models\Comment; use App\Repositories\Contracts\BusinessCommentRepository; use Illuminate\Support\Facades\Auth; use Illuminate\Support\Facades\DB; class BusinessCommentRepositoryImpl implements BusinessCommentRepository { private $businessComment; public function __...
Markdown
UTF-8
4,204
3.015625
3
[]
no_license
# DataBootcampFinalProject Segment1 Deliverable **This is the Segment1 Deliverable for the Data Analytics Bootcamp Final Project.** ## Overview - **Topic**: Our team will create a NN to determine the 'rating' of chocolate from this kaggle dataset. - **Reason**: Because we love chocolate. The scientific name is *Theo...
Java
UTF-8
7,714
3.828125
4
[]
no_license
package ga.lab; import java.util.ArrayList; import java.util.List; public class Main { public static void main(String[] args) { String charString; double summedDoubles; int middleValue; //Problem 1: stringLengthOrValue("I said"); stringLengthOrValue("hey"); ...
Markdown
UTF-8
559
2.953125
3
[]
no_license
# Grow-A-Caterpillar > Simple caterpillar game ## Getting Started Just start pressing buttons to watch the caterpillar grow and change! ## Features This project makes it easy to: * Teach children the life cycle of a butterfly * Help children practice computer skills and dexterity, while also engaging in life scien...
JavaScript
UTF-8
2,877
2.890625
3
[]
no_license
//SelectView Object constructor var SelectView = function (container,model) { // Get all the relevant elements of the view (ones that show data // and/or ones that responded to interaction) this.numberOfGuests = container.find(".pplNbr"); this.plusButton = container.find(".plusButton"); this.minusButton ...
C++
UTF-8
2,193
3.03125
3
[ "MIT" ]
permissive
#ifndef TEXTURE_H #define TEXTURE_H #include "Image.h" #include "Rect.h" #include "Graphics.h" #include "Utility.h" class Texture : public Renderable { public: Texture( PtrS<Renderer> renderer ) : renderer( renderer ) {} Texture( PtrS<Renderer> renderer, std::string filename ) : renderer( renderer ) { I...