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
2,099
2.140625
2
[]
no_license
package be.kevinbaes.bap.webfluxr2dbc.persistence.config; import io.r2dbc.spi.ConnectionFactories; import io.r2dbc.spi.ConnectionFactory; import io.r2dbc.spi.ConnectionFactoryOptions; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframe...
Python
UTF-8
14,995
2.65625
3
[]
no_license
from selenium import webdriver #pip install selenium import random import time import fire #pip install fire import colorama #pip install colorama from colorama import Fore, Back, Style colorama.init() start_time = time.time() driver = webdriver.Firefox() # Firefox, Chrome count_s = 0; count_f = 0; count_b = 0; drive...
JavaScript
UTF-8
2,803
2.546875
3
[]
no_license
//hackerrank.js code converted into async await let puppeteer = require("puppeteer"); let mail = "sehox56004@mtlcz.com"; let password="789456123"; let {answers} = require("./ans"); let browserObj = puppeteer.launch({ defaultViewport: null, headless: false, args : [ '--start-maximized'] }); let page, browser...
Java
UTF-8
3,183
2.078125
2
[ "Apache-2.0" ]
permissive
/* * JBoss, Home of Professional Open Source * Copyright 2012, Red Hat, Inc., and individual contributors * by the @authors tag. See the copyright.txt in the distribution for a * full listing of individual contributors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this fi...
Java
UTF-8
7,746
1.6875
2
[ "BSD-3-Clause" ]
permissive
/* * [New BSD License] * Copyright (c) 2011-2022, Brackit Project Team <info@brackit.org> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain ...
Java
UTF-8
349
3.359375
3
[]
no_license
public class Linear_String { public static void main(String[]args) { String[] list1 = {"mona","sona","hina","ritu","mahi","rohini"}; String result = "mahi"; for (int index=0;index<list1.length; index++) { if (list1[index].equals(result)){ System.out.println("result is found at" + index + " " + " " +"inde...
Python
UTF-8
303
2.78125
3
[]
no_license
class PlaylistInfo: def __init__(self, id, title, duration): self.id = id self.title = title self.duration = duration def getId(self): return self.id def getTitle(self): return self.title def getDuration(self): return self.duration
Markdown
UTF-8
8,711
3.5625
4
[]
no_license
--- title: Tags Organized by Count (Size) category: Coding tags: Jekyll Liquid author: Josh --- Jekyll is blog-aware and it runs on Liquid (plus Markdown, HTML, CSS, etc.). Liquid is a templating language, not a fully-fledged programming language. Jekyll+Liquid can make a great website/blog, but sometimes things to a ...
C#
UTF-8
865
3.390625
3
[]
no_license
using System; namespace HealtyLifestyle { public static class Calculator { public static double CalorieCalculation(int weight,int grow,int old,double k,goal goal) { const double const1 = 9.99; const double const2 = 6.25; const double const3 = 4.92; ...
JavaScript
UTF-8
3,241
2.78125
3
[]
no_license
import React from 'react'; import fire from '../../firebase.js'; import 'semantic-ui-css/semantic.min.css'; import './Apprating.css'; class AppRating extends React.Component { maxStars = 5; state = { rating: this.props.rating, ratingOnHover: null } // if voted, stores the id internal...
SQL
UTF-8
1,943
3.625
4
[]
no_license
CREATE TABLE `escola.administrador` ( `id` INT(11) NOT NULL, `nome` varchar(50) NOT NULL, `login` varchar(50) NOT NULL UNIQUE, `senha` varchar(255) NOT NULL, PRIMARY KEY (`id`) ); CREATE TABLE `escola.alunos` ( `id` INT(11) NOT NULL, `cpf` varchar(11) NOT NULL UNIQUE, `nome` varchar(50) NOT NULL, `email` varc...
Python
UTF-8
1,594
2.515625
3
[]
no_license
from django import forms from .models import User class RegisterForm(forms.Form): class Meta: model = User fields = ['userName', 'password', 'email'] username = forms.CharField(label='Username', max_length=30, widget=forms.TextInput(attrs={'class' : 'form-control'})) email = forms.EmailFi...
JavaScript
UTF-8
734
2.609375
3
[]
no_license
import React from "react"; import { getRecipe } from "../recipesService"; function RecipePage(props) { const recipeId = props.match.params.recipeId; const [recipe, setRecipe] = React.useState(null); React.useEffect(() => { getRecipe(recipeId) .then((response) => { const recipe = response.data;...
Java
UTF-8
854
2.140625
2
[]
no_license
package com.zhongyang.java.vo; /** * Created by Matthew on 2016/1/25. */ public class RetuenUMPVO { private String user_id; private String ret_code; private String ret_msg; public String getUser_id() { return user_id; } public void setUser_id(String user_id) { this.user_id ...
JavaScript
UTF-8
1,494
2.84375
3
[]
no_license
// depends on jquery, and showdown.js // not all browsers support navigator.languages - if not just use the browser render language if (typeof navigator !== 'undefined' && navigator.languages === undefined) { navigator.languages = [navigator.language]; } // when browser language changes, reload the faq $(window)....
Java
UTF-8
556
3.546875
4
[]
no_license
package i_TextProcessingAndRegularExpressions; public class demo7Replacing { public static void main(String[] args) { //replace(match, replacement) – replaces all occurrences //The result is a new string (strings are immutable) String text = "Hello, john@softuni.bg, you have been using jo...
Java
UTF-8
120
1.664063
2
[]
no_license
package com.mydesign.modes.design_modes.mvp; public interface BasePresenter { void start(); void detach(); }
C++
UTF-8
248
2.890625
3
[]
no_license
#include <iostream> using namespace std; int main() { cout<<"Fibonacci Program\n"; int a=8,f=0,s=1,t; cout<<f<<" "<<s<<" "; while(a){ t=f+s; cout<<t<<" "; f=s; s=t; a--; } return 0; }
C++
UTF-8
3,999
2.65625
3
[]
no_license
#include "channels.h" #include "IoDriver.h" //#include "io.h" #include "io.h" #include <assert.h> #include <stdlib.h> // Number of signals and lamps on a per-floor basis (excl sensor) static const int lamp_channel_matrix[FLOORCOUNT][BUTTONCOUNT] = { {LIGHT_UP1, LIGHT_DOWN1, LIGHT_COMMAND1}, {LIGHT_UP2, LIGHT_...
Python
UTF-8
547
4.15625
4
[]
no_license
#Program to demostrate the two ways of creating threads in Python #First thread displays Hello World and Second thread displays Welcome to Python import threading def HelloWorld(): i=0 while i<10: print("HelloWorld") i+=1 class WelcomeToPython(threading.Thread): def __init__(self): super().__init__() def...
Java
UTF-8
641
2.15625
2
[]
no_license
package au.com.westernpower.ci; import au.com.westernpower.ci.model.SuperBean; import au.com.westernpower.ci.repository.SuperBeanRepository; import au.com.westernpower.ci.repository.SuperBeanRepositoryImpl; import org.junit.Assert; import org.junit.Test; /** * Created by N038603 on 8/02/2016. */ public...
SQL
UTF-8
6,801
2.953125
3
[]
no_license
CREATE TABLE AVION ( AV_NII VARCHAR2(50 BYTE) PRIMARY KEY , AV_TYPE VARCHAR2(20 BYTE) NOT NULL, AV_DATE_SERVICE DATE NOT NULL, AV_NB_HEURE FLOAT(126) NOT NULL, AV_CAPACITE NUMBER NOT NULL ) ; CREATE TABLE ELEMENT ( ELEM_ID NUMBER PRIMARY KEY, ELEM_NOM VARCHAR2(50 BYTE) ) ...
JavaScript
UTF-8
2,935
2.515625
3
[]
no_license
import React, { Component } from 'react' import PropTypes from 'prop-types' import Messages from '../Messages/Messages.jsx' import Header from '../Header/Header.jsx' import ChatList from '../ChatList/ChatList.jsx' import './style.css' let user = 'You' export default class Layout extends Component { static prop...
Python
UTF-8
3,710
2.546875
3
[]
no_license
#!/usr/bin/env python # coding=utf-8 # usage: # 早期Pinnacle3 TPS的压缩包,没有添加Institution头文件,Restore时,TPS无法直接识别 # 此程序的功能是:批量的将就压缩包,转换成TPS可以识别的新压缩包;1,增加Institution头文件,2,删除病例中无用的临时文件 # import os import re import time import shutil from Pinnutil.untar_old_pinnacle_backup_file import untar_old_pinnacle_backup_file from Pinnutil....
Java
UTF-8
468
1.703125
2
[]
no_license
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package probando; /** * * @author Walter */ public class Probando { /** * @param args the command line arguments */ public static void main(String[] args) { new NewJFrame().setVisible...
C#
UTF-8
538
2.96875
3
[]
no_license
using App.Enums; using App.Interfaces; namespace App.Entities { public class Student : User { public int Course { get; set; } public Group Group { get; set; } public Student(){} public Student(string name, int age, Sex sex, int salary, int course, Group group) : base(n...
C++
UTF-8
550
3.0625
3
[]
no_license
#include "p1.h" #include "basic_functions.h" #include <iostream> bool XOR(bool a, bool b){ return Or(And(a,Not(b)),And(Not(a),b)); } bool Mux(bool operation, bool output_if_true, bool output_if_false){ return Or(And(operation, output_if_true), And(Not(operation), output_if_false)); } bool Sum(bool a, bool b...
Java
UTF-8
11,764
2.0625
2
[]
no_license
package org.jcrm.web.rest; import org.jcrm.JCrmApp; import org.jcrm.domain.Client; import org.jcrm.repository.ClientRepository; import org.jcrm.service.ClientService; import org.jcrm.web.rest.errors.ExceptionTranslator; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; import org.mocki...
C#
UTF-8
639
3.625
4
[]
no_license
using System; class PrimeChecker { static void Main() { long num = long.Parse(Console.ReadLine()); bool isPrime = IsPrime(num); Console.WriteLine(isPrime); } static bool IsPrime(long num) { if (num == 0 || num == 1) { return false; } ...
JavaScript
UTF-8
4,950
2.625
3
[]
no_license
'use strict'; // Test via a getter in the options object to see if the passive property is accessed var supportsPassive = false; try { var opts = Object.defineProperty({}, 'passive', { get: function() { supportsPassive = true; } }); window.addEventListener("testPassive", null, opts); window.remov...
PHP
UTF-8
1,173
2.59375
3
[ "MIT" ]
permissive
<?php namespace Nuwave\Lighthouse\Schema\Directives; use Nuwave\Lighthouse\Support\Contracts\ArgBuilderDirective; class SearchDirective extends BaseDirective implements ArgBuilderDirective { public static function definition(): string { return /** @lang GraphQL */ <<<'GRAPHQL' """ Perform a full-text...
Markdown
UTF-8
1,651
3.015625
3
[ "MIT" ]
permissive
# Annotated Notes plugin for Craft CMS 3.x Field for multiple notes with automatic annotation ## Requirements This plugin requires Craft CMS 3.0.0-beta.23 or later. ## Annotated Notes Overview Annotated Notes is a varient of the [Table](https://docs.craftcms.com/v3/table-fields.html#settings) fieldtype, where the ...
Java
UTF-8
570
1.953125
2
[]
no_license
package com.agency04.sbss.pizza.service; import com.agency04.sbss.pizza.dto.CustomerDTO; import com.agency04.sbss.pizza.model.Customer; import com.agency04.sbss.pizza.model.CustomerForm; import java.util.Optional; public interface CustomerService { Optional<CustomerDTO> findCustomerByUsername(String username); ...
Java
UTF-8
398
2.71875
3
[]
no_license
import javax.swing.table.DefaultTableModel; class MyTableModel extends DefaultTableModel{ private Object[][] data; MyTableModel(Object[][] data){ this.data = data; } public Object getValueAt(int row, int column) { return data[row][column]; } public int getColumnCount() { ...
Shell
UTF-8
706
3.046875
3
[ "MIT" ]
permissive
#!/bin/sh # # Sample Begin Script for profiled install on x86 # # "@(#)x86-begin 1.5 93/10/13" # #PATH=$PATH:/sbin:/usr/sbin #export PATH # #INSTALL_LOG=/tmp/install_log #ROOT_DEV=c0t0d0p0 # #echo 'Executing profile begin script...' >> $INSTALL_LOG 2>&1 # ## ## Copy all conf files from the directory with the same name...
PHP
UTF-8
522
2.53125
3
[]
no_license
<?php require_once('../Class_Library/class_post_like.php'); if(!empty($_POST)) { $obj = new Like(); $pid = $_POST['post_id']; $val = $obj->like_display($pid); $val1 = json_decode($val, true); echo $val; } else { ?> <form name="form1" method="post" action="" enctype="multipart/form-data"> <p>Post_id: <label for="t...
JavaScript
UTF-8
516
2.609375
3
[]
no_license
"use strict"; //строгий режим, который запускает "современный код" и исключает ошибки с прошлых версий // use strict в случаях,когда используются классы и модули включать необязательно, //т.к. современный JS автоматически включает его alert( 'Ya est` grut');// вывод диалогового окна с сообщением
Python
UTF-8
487
3.671875
4
[]
no_license
class IsMultiple: def __init__(self,x): self.x = x def __call__(self,func): def wrapper(a,b): r = func(a,b) if r % self.x == 0: print(f'{func.__name__}의 반환값은 {self.x}의 배수가 맞습니다') else: print(f'{func.__name__}의 반환값은 {self.x}의 배수가...
Java
UTF-8
2,853
3.828125
4
[]
no_license
package com.my.java.suanfa.dui; public class MinHeap { // 堆的存储结构 - 数组 private int[] data; //将一个数组传入构造函数, 并转换成一个最小堆,最小的那个元素在堆头 public MinHeap(int[] data) { this.data = data; buildHeap(); } /** * 完全二叉树只有数组下标小于或等于 (data.length) / 2 - 1 的元素有孩子结点,遍历这些结点。 * 比如上面的图中,数组有10个...
C#
UTF-8
1,667
2.890625
3
[]
no_license
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using ElvenTools.Utils; namespace Day17 { public class ConwayEvaluator { public static long Evaluate(Dictionary<string, bool> coordinates) { for (var i = 0; i < 6; i+...
Java
ISO-8859-7
200
1.882813
2
[]
no_license
package p2; import java.util.*; public class n_18108 { public static void main(String[] args) { Scanner sc=new Scanner(System.in); int n=sc.nextInt(); System.out.println(n-543); } }
Python
UTF-8
960
2.90625
3
[]
no_license
from cierreJornada import * class Empleado: def __init__(self, nombre = "test"): self.nombre = nombre self.porcentajeGanancias = 0 self.horasTrabajadasJornada = 0 def setNombre(self, nombre): self.nombre = nombre def getNombre(self): return self.nombre def setHorasTrabajadasJornada(self, horasTrabaj...
Python
UTF-8
328
2.625
3
[]
no_license
N = int(input()) dp = [[0 for _ in range(10)] for _ in range(1001)] for i in range(0, 10): dp[1][i] = 1 for i in range(2, N + 1): for j in range(10): if j == 9: dp[i][j] = dp[i - 1][9] else: for k in range(j, 10): dp[i][j] += dp[i - 1][k] print(sum(dp[N]) ...
Shell
UTF-8
373
3.671875
4
[]
no_license
#!/usr/bin/env bash LESS_FILES="bootstrap.less style.less email.less" LESS_DIR=$(dirname $0)/public/css CSS_DIR=$LESS_DIR if [ "$1" = "wait" ] ; then # Wait a few moment for file to be written (if network mounted) sleep 1 fi for less in $LESS_FILES ; do css=$(echo $less | sed 's/\.less$/.css'/) echo "$less => $c...
Java
UTF-8
1,504
3.15625
3
[ "MIT" ]
permissive
package examples.classes; import helpers.Description; import static helpers.Difficulty.*; import static helpers.Topic.*; public class Classes { /** * You can access private variables of inner class */ @Description(topics = {INNER_CLASSES, ACCESS_MODIFIERS}, difficulty = EASY) private static cl...
Java
UTF-8
2,007
2.71875
3
[]
no_license
package com.project.entities.infrastructure.building; import java.util.HashSet; import java.util.Set; import javax.persistence.CascadeType; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; i...
Python
UTF-8
7,675
2.53125
3
[]
no_license
#!/usr/bin/env python import sys def usage(): if len(sys.argv) < 5: print("Usage: <program> <inputFile> <annFile> <syncFile> <outFile>") sys.exit(0) def make_NSdict(): NSd = {} with open("/home/mrood/WH-BH/data/enrichmentGuide2.txt", 'r') as infile: next(infile) for line i...
JavaScript
UTF-8
527
2.984375
3
[]
no_license
// Bind the event handler to the "submit" JavaScript event $('form').submit(function () { var inputs = [ "#inputName", "#inputEmail", "#inputPhone", "#inputStates", "#inputPassword", "#inputTerms" ]; var error = false; inputs.forEach(function(e) { // Get the Login Name value and t...
Java
UTF-8
4,145
1.914063
2
[]
no_license
import org.junit.After; import org.junit.Assert; import org.junit.Before; import org.junit.Test; import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import org.openqa.selenium.chrome.ChromeDriver; import org.openqa.selenium.support.ui.ExpectedConditions; import or...
Swift
UTF-8
3,042
3.296875
3
[]
no_license
// // Connections.swift // MeteorologySwift5 // // Created by Carlos on 03/05/2020. // Copyright © 2020 TestCompany. All rights reserved. // import UIKit protocol getWeatherDelegate { func getWeatherDidFinish(weatherInfo : Weather) func getWeatherDidFailWithError(error : NSError) } class Connec...
JavaScript
UTF-8
4,141
3.34375
3
[ "MIT" ]
permissive
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj...
Java
UTF-8
6,224
2.09375
2
[]
no_license
package com.xin.webservice; import java.net.URLEncoder; import java.text.SimpleDateFormat; import java.util.Date; import java.util.Properties; import com.qcloud.cos.COSClient; import com.qcloud.cos.ClientConfig; import com.qcloud.cos.exception.AbstractCosException; import com.qcloud.cos.request.CreateFolderRequest; i...
Java
UTF-8
2,262
2.4375
2
[]
no_license
package com.example.person.service; import com.example.person.core.PersonNotFoundException; import com.example.person.domain.Person; import com.example.person.domain.PersonMapper; import com.example.person.domain.dto.MensageDTO; import com.example.person.domain.dto.PersonDTO; import com.example.person.repository.Perso...
Java
UTF-8
785
2.34375
2
[]
no_license
/** * */ package com.mu.muls.util; import java.util.Date; import org.apache.commons.lang.StringUtils; import org.apache.commons.lang.builder.ToStringBuilder; import org.springframework.format.annotation.DateTimeFormat; /** * @author bolinluo * */ public class ApDemoUtil { /** * @param args */ public sta...
Python
UTF-8
555
4.0625
4
[]
no_license
""" PROBLEM 1 #If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. #The sum of these multiples is 23. #Find the sum of all the multiples of 3 or 5 below 1000. """ response = input("Input Number: ") sum = 0 counter = 0 print "Numbers Divisible by 3 or 5" print "-------------...
C
UTF-8
434
3.421875
3
[]
no_license
#include <stdio.h> #include <stdlib.h> int main() { int x; int y; printf("Please enter coordinate x y : "); scanf("%d %d",&x,&y); if(x>0&&y>0) printf("(%d,%d) = Q1",x,y); else if(x<0,y>0) printf("(%d,%d) = Q2",x,y); else if(x<0,y<0) printf("(%d,%d) = Q3",x,y); else i...
JavaScript
UTF-8
763
2.765625
3
[]
no_license
const express = require('express'); const app = express(); app.use(express.json()); /* cuando entre o visite la aplicacion, llevar a cabo una funcion la cual va despues de la coma (,)*/ app.get('/user', (req, res) => { res.json({ username:'Cameron', lastmane:'Howe' }); }); app...
Python
UTF-8
304
2.84375
3
[]
no_license
# First way: import packages.Pack1.Module1 packages.Pack1.Module1.f1() # function f1 in module1 # Second way: Much easier from packages.Pack1.Module1 import f1 f1() # function f1 in module1 # subpackages from packages.Pack1.Module1 import f1 from packages.Pack1.Pack2.Module2 import f2 f1() f2()
Java
UTF-8
2,065
3.359375
3
[]
no_license
package mules.moscow.dungeonsanddragons5echaractersheet; import java.util.ArrayList; public class AbilityScore { private int score; private int modifier; private ArrayList<Integer> RaceModifiers = new ArrayList<>(); private ArrayList<Integer> ClassModifiers = new ArrayList<>(); /** * AbilityScor...
Java
UTF-8
5,434
2.65625
3
[]
no_license
package com.example.rafael.popularmovies.Utilities; import android.content.ContentValues; import android.database.Cursor; import android.graphics.Movie; import com.example.rafael.popularmovies.data.MovieContract; import org.json.JSONArray; import org.json.JSONException; import org.json.JSONObject; import java.util....
Markdown
UTF-8
15,109
3.328125
3
[ "Apache-2.0" ]
permissive
# Kubernetes Building Blocks In this chapter, we will explore the [Kubernetes object model](https://kubernetes.io/docs/concepts/overview/working-with-objects/kubernetes-objects/) and describe some of its fundamental building blocks, such as **Pods**, **ReplicaSets**, **Deployments**, **Namespaces**, etc. We will also ...
PHP
UTF-8
1,678
2.546875
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Slider; use \Illuminate\Support\Facades\Storage; use Intervention\Image\Facades\Image; class SliderController extends Controller { public function index() { //Get all Sliders $sliders = Slider::all(); return view('ad...
Java
UTF-8
1,024
2.3125
2
[]
no_license
package gbq.com.myaccount.base; import android.support.v7.app.AppCompatActivity; import android.widget.Toast; import gbq.com.myaccount.base.util.CustomProgressDialog; /** * 基本的Activity,主要包含一些Activity的公共方法 * Created by gbq on 2016-11-15. */ public class BaseActivity extends AppCompatActivity implements IBaseCtrl{...
Java
UTF-8
1,005
2.796875
3
[]
no_license
package tracker; import java.net.ServerSocket; import java.net.Socket; import java.util.HashMap; import java.util.logging.Logger; import java.util.List; import tracker.TrackerThread; import common.Common; public class Tracker { private static HashMap<String, List<String>> swarmHashMap; static ServerSocket tracker =...
Markdown
UTF-8
1,444
2.59375
3
[]
no_license
# NucleusApi.DocumentSentimentModel ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **dataset** | **String** | Dataset name | **doc_title** | **String** | The title of the document to be analyzed. | [optional] **query** | **String** | Dataset-language-spec...
PHP
UTF-8
9,489
2.515625
3
[]
no_license
<?php class Cliente extends Application { private $Permissao; public function __construct() { parent::__construct(); } public function init() { $usuario = Session::read('LOGIN'); $mppUser = new MapperUsuarios(); $cnpj = $mppUser->getCNPJ('junior'); $this->Permissao = $mppUser->permissao($us...
C++
UTF-8
1,527
3.4375
3
[]
no_license
#include <iostream> #include <map> #include <set> #include <string> using namespace std; struct str_compare { bool operator() (const string& lhs, const string& rhs) { if( (lhs.length() < rhs.length()) || (lhs.length()==rhs.length() && lhs < rhs) ) return true; return false; ...
C#
UTF-8
1,427
2.859375
3
[]
no_license
using System; using System.IO; using System.Diagnostics; namespace TrabajosExpres.PresentationLogicLayer.Utils { class LogException { /// <summary> /// Method that receives the player's email /// </summary> /// <param name="obj">The telegram data</param> /// <param name="exception">The ...
Markdown
UTF-8
13,604
2.75
3
[]
no_license
--- title: Elevación de los privilegios de acceso de un administrador global en Azure Active Directory | Microsoft Docs description: Describe cómo elevar los privilegios de acceso de un administrador global en Azure Active Directory mediante Azure Portal o la API de REST. services: active-directory documentationcenter:...
C++
UTF-8
462
2.84375
3
[]
no_license
/** *@file barreronde.h *@brief Définition de la classe BarreRonde *@version 1.1 * @author Antoine CHEVREL * @date 20 septembre 2019 */ #ifndef BARRERONDE_H #define BARRERONDE_H #include "barre.h" class BarreRonde: public Barre { public: BarreRonde(string _ref, int _longueur,int _diametre, float _den...
Java
UTF-8
4,562
2.359375
2
[]
no_license
package com.jiaying.mediatablet.net.utils; import com.jiaying.mediatablet.net.signal.RecSignal; import java.util.HashMap; /** * Created by hipil on 2016/4/3. */ public class FilterSignal { //true表示该状态信号可以被响应 //false表示该状态信号不可以被响应 private HashMap<String, Boolean> signalMap; public FilterSignal() { ...
C++
UTF-8
443
2.75
3
[]
no_license
/**http://codeforces.com/problemset/problem/798/B*/ #include <iostream> #include <string> using namespace std; int cnt=0,ans=0x3f3f3f3f; int main(){ int n; string a[55],temp; cin>>n; for(int i=0;i<n;i++) cin>>a[i]; for(int i=0;i<n;i++){ cnt=0; for(int j=0;j<n;j++){ temp=a[j]+a[j]; if(temp.find(a[i])==s...
Python
UTF-8
1,165
3.265625
3
[]
no_license
from lox.expr import BaseExpr, Expr, ExprVisitor from lox.token import Token, TokenType class AstPrinter(ExprVisitor): def print(self, expr: BaseExpr): return expr.accept(self) def visit_unary(self, expr: Expr.Unary): return self.parenthesize(expr.operator.lexeme, expr.right) def visit_l...
C++
UTF-8
3,414
2.796875
3
[]
no_license
/// File: Source\Nexus\Graphics\Base\GLRenderer.cpp. /// /// Summary: Implements the gl renderer class. #include <GLAD\GL.h> #include <Nexus\Graphics\Base\GLRenderer.hpp> #include <Nexus\DebugWriter.hpp> namespace Nexus::Graphics::Base { GLRenderer::GLRenderer() { DebugWriter().Write("GLRenderer created.\n"); } G...
Java
UTF-8
578
2.34375
2
[]
no_license
package org.esupportail.activbo.domain.beans.channels; import org.esupportail.commons.services.ldap.LdapUser; /** * @author aanli * Canal permettant l'envoi du code d'activation pour un utilisateur donné */ public interface Channel{ /** * @param id login de l'utilisateur concerné par le code * @throws Channe...
Markdown
UTF-8
10,688
2.953125
3
[ "MIT" ]
permissive
--- layout: post permalink: Ещe-раз-о-Диабeтe title: Ещe раз о Диабeтe image: assets/images/wordcloud.jpg --- **Если у вас или у ваших близких есть сахарный диабет 2 типа, значит эта статья для вас.** Работая много лет с больными сахарным диабетом, я обратил внимание на то, что большинство пациентов относятся к этому...
Java
UTF-8
855
2.171875
2
[]
no_license
package com.onlineshop.business.adress.domain; import com.onlineshop.business.order.domain.Order; import lombok.AllArgsConstructor; import lombok.Builder; import lombok.Data; import lombok.NoArgsConstructor; import javax.persistence.*; import java.util.UUID; @Data @Entity @Table @NoArgsConstructor @AllArgsConstruct...
C++
UTF-8
2,610
2.5625
3
[ "Apache-2.0" ]
permissive
/** * @file FullyConnectedLayer.h * @date 2016/5/10 * @author jhkim * @brief * @details */ #ifndef LAYER_FULLYCONNECTEDLAYER_H_ #define LAYER_FULLYCONNECTEDLAYER_H_ #include "common.h" #include "BaseLayer.h" #include "LearnableLayer.h" #include "LayerConfig.h" #include "LayerFunc.h" /** * @brief Fully Connect...
Java
UTF-8
1,685
2.046875
2
[]
no_license
package com.avroreader; import org.apache.spark.SparkConf; import org.apache.spark.api.java.JavaSparkContext; import org.apache.spark.sql.DataFrameReader; import org.apache.spark.sql.Dataset; import org.apache.spark.sql.SQLContext; public class ReadUtil { public static void main(String[] args) { SparkCo...
C++
UTF-8
3,063
3.875
4
[]
no_license
/* * File: main.cpp * Author: Anh Le * Created on October 2, 2015, 1:58 PM */ //Libraries #include <iomanip> #include <iostream> using namespace std; // Function prototypes void arrSelectSort(int [], int); void showArray(const int [], int); void showArrPtr(int [], int); int main() { int NUM_DONATIONS; ...
Python
UTF-8
566
3.296875
3
[]
no_license
from p5 import * from math import cos, sin time = 0 wave = [] def setup(): size(1200, 400) title("Test") color_mode('RGB') background(0) def draw(): global time, wave background(0,0,0) translate(200,200) rad = 100 stroke(255) no_fill() circle((0,0), 2*rad) x = rad*cos...
Java
UTF-8
473
1.773438
2
[]
no_license
package alex.swaggerhidden; import io.swagger.v3.oas.models.ExternalDocumentation; import io.swagger.v3.oas.models.OpenAPI; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; @Configuration public class OpenApiConfig { @Bean public OpenAPI config...
Python
UTF-8
428
3.765625
4
[]
no_license
'''var_1 = "this is a text:" var_2 = " Hello bro! whats up!" var_3 = var_1 + var_2 print(var_3) print(type(var_3))''' manager_name = "Alex Ferguson" #print(len(manager_name)) '''print(manager_name[0]) print(manager_name[len(manager_name)-1]) print(len(manager_name)-1)''' #print(manager_name[5:]) #print(manager_nam...
Java
UTF-8
1,309
3.375
3
[]
no_license
class hw19{ public static void main (String[]arg){ int x1 = Integer.parseInt(arg[0]); int y1 = Integer.parseInt(arg[1]); int x2 = Integer.parseInt(arg[2]); int y2 = Integer.parseInt(arg[3]); int B=0; // Check if both in range [1..8] if ((x1>0 && x1<9 && y1>0 && y1<9 && x2>0 && x2<9 && y2>0 && y2<9)){ ...
Markdown
UTF-8
6,684
2.78125
3
[]
no_license
--- description: Свойство clip-path создает ограниченную область, которая определяет какая часть элемента должна быть видимой --- # clip-path Свойство **`clip-path`** создает ограниченную область, которая определяет какая часть элемента должна быть видимой. Те части, которые находятся внутри области, видимы, в то вр...
C++
UTF-8
302
3.015625
3
[]
no_license
#include <commission.h> Commission::Commission(double comRate): Payment("commission"), commissionRate(comRate), totalSales(0.0){ } void Commission::addSales(double sales){ totalSales = totalSales + sales; } double Commission::pay() const{ return commissionRate / 100 * totalSales; }
C++
UTF-8
1,278
3.125
3
[]
no_license
#include <cstdlib> #include <iostream> #include <stack> #include <string> using namespace std; std :: stack <int> stak; string a; int n; int main(int argc, char *argv[]) { while(true){ cin >> a; if(a.compare("push") == 0){ cin >> n; stak.pus...
Ruby
UTF-8
2,314
4.03125
4
[]
no_license
require "pry" INITIAL_MARKER = ' ' PLAYER_MARKER = 'X' COMPUTER_MARKER = 'O' WINNING_LINES = [[1, 2, 3], [4, 5, 6], [7, 8, 9]] + [[1, 4, 7], [2, 5, 8], [3, 6, 9]] + [[1, 5, 9], [3, 5, 7]] def prompt(msg) puts "=> #{msg}" end def initialize_board new_board = {} (1..9).each { |num...
C++
UTF-8
1,106
3.0625
3
[]
no_license
class Solution { public: int calculate(string s) { stack<int> S; long long int temp = 0; char sign = '+'; for(int i = 0; i < s.size(); i++) { if(isdigit(s[i])) { temp = temp * 10 + (s[i] - '0'); } if((s[i] != ' ' && !isdigit(s[i])) ...
C
UTF-8
20,116
2.546875
3
[ "MIT" ]
permissive
#define __MIPSVM_C__ #include <string.h> #include <stdint.h> #include <stdbool.h> #include "mipsvm.h" static void schedule_abs_branch(mipsvm_t *ctx, uint32_t dst) { ctx->branch_pc = dst; ctx->branch_is_pending = 1; } static void schedule_rel_branch(mipsvm_t *ctx, int32_t offset) { ctx->branch_pc = ctx->p...
JavaScript
UTF-8
1,346
2.59375
3
[]
no_license
const express = require('express'); const router = express.Router(); const db = require('../database'); const bcrypt = require('bcryptjs'); router.post('/', function(request, response) { if(request.body.username && request.body.password){ var username = request.body.username; var password = request....
Markdown
UTF-8
671
2.890625
3
[ "Apache-2.0" ]
permissive
# async-http-client-usage Usage demo of [Async Http Client](https://github.com/AsyncHttpClient/async-http-client) with continuations (through Java 8 [CompletableFuture&lt;T>](https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/CompletableFuture.html)) Simple use: ```java try(AsyncHttpClient asyncHttpClien...
Python
UTF-8
7,729
2.921875
3
[]
no_license
#!/usr/bin/env python2.7 """ Columbia's COMS W4111.001 Introduction to Databases Example Webserver To run locally: python server.py Go to http://localhost:8111 in your browser. A debugger such as "pdb" may be helpful for debugging. Read about it online. """ import os from sqlalchemy import * from sqlalchemy.p...
Java
UTF-8
3,810
2.03125
2
[ "Apache-2.0" ]
permissive
package multidiffplus.jsanalysis.initstate; import java.util.HashMap; import java.util.Map; import java.util.Stack; import org.mozilla.javascript.ast.Name; import multidiffplus.cfg.CfgMap; import multidiffplus.jsanalysis.abstractdomain.Address; import multidiffplus.jsanalysis.abstractdomain.BValue; import multidiffp...
Java
UTF-8
18,451
2.09375
2
[]
no_license
import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.IOException; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.HashMap; import java.util.LinkedHashMap; import java.util.Map; import java.io.Console; import java.io.File; import java.io.FileWriter; import java.io.F...
Python
UTF-8
1,801
2.875
3
[]
no_license
LINES_FOR_EACH_INPUT = 2 INPUT_FILE_NAME = 'C-small-attempt0.in' OUTPUT_FILE_NAME = 'C-small-attempt0.out' def do_case(input): circ=[0 for i in input] for i in range(len(circ)): circL=1 temp=input[i] while temp-1!=i and circL<len(circ)+1: ...
Python
UTF-8
1,845
3
3
[]
no_license
import logging import json import azure.functions as func def compute_ingredients(weight): return { "Salt": {"unit": "cups", "quantity": 0.05 * weight}, "Water": {"unit": "gallons", "quantity": 0.66 * weight}, "Brown sugar": {"unit": "cups", "quantity": 0.13 * weight}, "Shallots": ...
Java
UTF-8
1,052
2.953125
3
[]
no_license
package com.imooc.io.ch03; import java.io.File; import java.io.IOException; /** * @author luoc * @version V0.0.1 * @package com.imooc.io.ch03 * @description: TODO * @date 2017/11/11 15:50 */ public class IoUtilsTest2 { public static void main(String[] args) { try { long start = System.cu...
Python
UTF-8
9,147
2.671875
3
[]
no_license
from os import system import os.path argPremisses=[] opPremisses=[] valPremisses=[] argFaits=[] valFaits=[] conclusions=[] premisses=[] faits=[] regles=[] f='' def creatListPremissesConclusions (conclusions,premisses,fichier): #Création de la liste des premisses, règles et conclusions filepath...
Python
UTF-8
2,105
2.65625
3
[]
no_license
""" ============================ Author:古一 Time:2020/10/28 E-mail:369799130@qq.com ============================ """ import os import allure import requests from jsonpath import jsonpath from loguru import logger from common.handle_path import CONF_DIR from common.utils import Utils class BaseApi: conf_path = os...