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
1,136
2.53125
3
[]
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 paw.timetable.model; import java.sql.Time; import javax.persistence.Entity; /** * * @author Arek */ @Entity ...
Java
UTF-8
1,625
2.484375
2
[]
no_license
package com.base.mapper; import java.util.List; import java.util.Map; import org.apache.ibatis.annotations.Param; import com.base.entity.SimplePage; /** * Mapper的基础接口 * @author wille * */ public interface BaseCrudMapper<ModelType> { /** * 插入语句接口 * @param entity 对象 * @return */ int insert(ModelType e...
SQL
UTF-8
218
3.5
4
[]
no_license
Select E.FirstName, E.LastName, I.InvoiceId From Employee E Join Customer C Join Invoice I where EmployeeId = C.SupportRepId And C.CustomerId = I.CustomerId And Title = "Sales Support Agent" Order By E.LastName
Java
UTF-8
11,246
2.578125
3
[ "MIT", "LicenseRef-scancode-other-permissive" ]
permissive
import helper.RobotBuilder; import model.*; import model.robotTypes.BaseRobot; import org.junit.Assert; import org.junit.Test; import org.junit.runner.RunWith; import org.junit.runners.Parameterized; import java.util.Arrays; import java.util.Collection; import java.util.Random; @RunWith(Parameterized.class) public cl...
C
UTF-8
4,166
2.625
3
[]
no_license
#include <stdint.h> #include <stddef.h> #include <unistd.h> /* POSIX Header files */ #include <pthread.h> #include <ti/drivers/I2C.h> #include "board.h" #include "i2c_api.h" /***************************************************************************** * LOCAL FUNCTION PROTOTYPES */ /*****************************...
Java
UTF-8
1,370
1.921875
2
[]
no_license
package com.atguigu.atcrowdfunding.controller; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.ResponseBody; i...
Markdown
UTF-8
28,309
2.78125
3
[]
no_license
# Helpful Tech Resources _Disclaimer: Please don't get stuck in 'tutorial hell'. Try to execute what you learned in a project or task of your own and then move on to the next interesting thing.<br>_ Over the last few months I spent a lot of time on social media, collecting all kinds of interesting, educational, and he...
Ruby
UTF-8
155
3.21875
3
[]
no_license
# Date started: 7/28/12 # Problem: 1 # Description sum = 0 1000.times do |i| if i % 5 == 0 || i % 3 == 0 sum += i end end puts sum
Python
UTF-8
3,078
2.9375
3
[]
no_license
import os from test.compiler_test_case import CompilerTestCase COMPILER_DIR = '/'.join(os.getcwd().split('/')[:-2]) class TestCrucial(CompilerTestCase): def test_program0(self): self.assertOutputEquals( self.getCodeFromFile('program0.imp'), '1\n0\n0\n0\n0\n0\n1\n0\n0\n0\n0\n1\n0\...
SQL
UTF-8
6,225
2.71875
3
[]
no_license
--CATEGORY insert into category values(10,'일반메뉴'); insert into category values(20,'추천메뉴'); insert into category values(30,'버거/세트'); insert into category values(40,'스낵/사이드'); insert into category values(50,'음료'); insert into category values(60,'해피밀'); insert into category values(11,'아침메뉴'); insert into category values(7...
Java
UTF-8
2,114
2.59375
3
[]
no_license
package dev.mvvasilev.dto; import com.fasterxml.jackson.annotation.JsonFormat; import java.time.LocalDate; import java.util.Objects; import java.util.Set; /** * @author Miroslav Vasilev */ public class UserDTO { private Long id; private String firstName; private String lastName; private String ...
C
UTF-8
1,850
3.0625
3
[]
no_license
#include "threadpool.h" #include <stdlib.h> void* worker_job(void* args) { ThreadPool* tp = args; while(1) { pthread_testcancel(); ThreadPoolTask* task = dequeue(tp->task_queue); if (task != NULL) { (*task->job)(task->data); free(task); } else { pthread_mutex_lock(&tp->task_mutex); tp->free_w...
Java
UTF-8
6,654
2.328125
2
[]
no_license
package com.example.ato.kinectcount01_android; import android.graphics.Bitmap; import android.graphics.Rect; import android.view.View; import android.content.Context; import android.graphics.Canvas; import android.graphics.Color; import android.graphics.Paint; import android.graphics.Path; import android.graphics.Poin...
Markdown
UTF-8
9,537
3.171875
3
[ "CC0-1.0" ]
permissive
# Héritage multiple ## Complément - niveau avancé ### Avertissement - toutes les classes concernées sont *new-style* Toutes les classes considérées dans ce complément sont supposées *new-style*. Pour les classes classiques, le mécanisme d'héritage multiple est plus rudimentaire, vous en trouverez le détail dans la ...
Markdown
UTF-8
977
3.453125
3
[ "MIT" ]
permissive
# Internalization - Say Trait Is it possible to add translation abilities to any applicatio object using specialized trait `Spiral\Translator\Traits\TranslatorTrait`. ## Usage We can add the translator trait to the controller: ```php namespace App\Controller; use Spiral\Translator\Traits\TranslatorTrait; class Home...
Java
UTF-8
708
3.28125
3
[ "MIT" ]
permissive
public class OOEnsaio4 { public static void main(String[] args) { Horario h1 = new Horario(); h1.horas = 21; h1.minutos = 26; System.out.println(h1.horas); // 21 System.out.println(h1.horas == 21); // 21 Horario h2 = h1; h1.horas = 22; System.out.println(h2.horas); h2.minutos = 3...
Java
UTF-8
3,111
1.976563
2
[ "LicenseRef-scancode-unknown-license-reference", "MulanPSL-1.0", "LicenseRef-scancode-mulanpsl-1.0-en" ]
permissive
package cn.iocoder.mall.managementweb.manager.product; import cn.iocoder.common.framework.vo.CommonResult; import cn.iocoder.common.framework.vo.PageResult; import cn.iocoder.mall.managementweb.controller.product.vo.spu.ProductSpuCreateReqVO; import cn.iocoder.mall.managementweb.controller.product.vo.spu.ProductSpuPag...
Python
UTF-8
546
2.890625
3
[]
no_license
#!/usr/bin/env python # coding: utf-8 # In[1]: import yake # In[2]: f=open("1.txt", "r") text = str(f.read()) language = "en" max_ngram_size = 3 deduplication_thresold = 0.9 deduplication_algo = 'seqm' windowSize = 1 numOfKeywords = 20 custom_kw_extractor = yake.KeywordExtractor(lan=language, n=max_ngram_size,...
Markdown
UTF-8
4,381
2.78125
3
[ "MIT" ]
permissive
<!-- README.md is generated from README.Rmd. Please edit that file --> # State Space Modelling in R <a href='https://DylanB95.github.io/statespacer'><img src='man/figures/logo.png' align="right" height="138.5" style="float:right; height:138.5px;"/></a> <!-- badges: start --> [![Travis build status](https://travis-c...
C
UTF-8
31,130
2.84375
3
[]
no_license
#include <stdio.h> #include <stdlib.h> #include <stdbool.h> struct Process{ int processId; float arrivalTime; float runTime; int priority; }; struct Report{ int timeSlice[115]; float avgTurnAround; float avgWaiting; float avgResponse; float throughPut; }; //make processes struct P...
Markdown
UTF-8
7,106
3.625
4
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
# Understanding Firebase Authentication Before we dive into the logic of implementing authentication, it's first important to understand the Firebase API, and how it handles authentication with the various options we have. As we're also working in React, we'll cover how Firebase's asynchronous API fits in with Reacts...
Java
UTF-8
4,078
2.015625
2
[ "Apache-2.0" ]
permissive
/* First created by JCasGen Tue Mar 03 14:57:59 CET 2009 */ package cybion.annotator_utils.jcas.cas; import org.apache.uima.jcas.JCas; import org.apache.uima.jcas.JCasRegistry; import org.apache.uima.jcas.cas.FSArray; import org.apache.uima.jcas.cas.TOP; import org.apache.uima.jcas.cas.TOP_Type; /** * Updated by...
Python
UTF-8
4,220
3.46875
3
[]
no_license
#!/usr/bin/env python """ Takes a config file as input from STDIN with the following line format: MM HH ANY_NAME With any number of lines, and minute/hour can also be replaced by an '*'. Requires current time in HH:MM format as command line argument. Prints the next execution time for each job in a new line.""" imp...
Java
UTF-8
3,598
2.390625
2
[]
no_license
package com.example.yanglin.arcface.models; import java.util.List; /** * Created by yanglin on 18-3-21. */ public class Record { /** * code : 1 * msg : 成功 * data : {"datas":[{"count":1,"type":0,"created_at":"2018-04-12T22:23:43.000Z"},{"count":1,"type":0,"created_at":"2018-04-12T22:23:48.000Z"}...
Java
UTF-8
869
1.875
2
[]
no_license
package com.ccsoft.yunqudao.ui.house; import android.util.Log; import com.baidu.location.BDLocation; import com.baidu.location.BDLocationListener; public class MyLocationListener implements BDLocationListener { public static String addr; public static String city; public static String city_code; @Ove...
Markdown
UTF-8
1,207
2.671875
3
[]
no_license
# order_imbalance ## Project Overview The aim of this project is to study the effect of order imbalance on the price of Bitcoin. ## Files 1. data_collect.py This notebook reads 55 dump files of format xbtusd.dump*, applies some data cleaning process and then exports it to a single CSV with required data. Data is ...
C#
UTF-8
2,358
3.6875
4
[]
no_license
using System; using System.Text; using Algorithms_DS.Stacks; using System.Collections.Generic; namespace Algorithms_DS.Queues { public class ArrayQueue { private int[] items; private int count; private int rear; private int front; public ArrayQueue(int capacity) {...
Markdown
UTF-8
7,615
2.640625
3
[]
no_license
--- title: Typological Dating Notes on Antoniniani author: Samuel Brew --- | Coin | Date | Emperor | Mint | RIC Reference | | :------: | :-----: | :-------------: | :-----: | :----------------------: | | 1 | 293 | Maximian | Cyzicus | RIC V Diocletian 607 | | 2 ...
Java
UTF-8
417
2.421875
2
[]
no_license
package factories; import java.util.ArrayList; import nl.tomsanders.game.engine.util.Vector; import game.Level; import game.objects.GameObject; public abstract class AmmoFactory { protected Level level; public abstract ArrayList<GameObject> create(Vector position, ArrayList<Vector> arrayList); public Level getL...
C#
UTF-8
7,148
3.171875
3
[]
no_license
using System; using System.Collections.Generic; namespace BoatClub.Model { internal class MemberRegistry { public List<Member> GetMemberList() { var memberList = XML.GetMemberListFromXMLFile(); return memberList; } public void SaveMemberLis...
Markdown
UTF-8
2,336
2.984375
3
[]
no_license
+++ date = "2009-01-15T02:31:00-07:00" draft = false title = "On App Store Download Statistics" url = "/blog/2009/01/15/on-app-store-download-statistics/" +++ It seems that nobody wants to release statistics about how their apps are doing on the iTunes App Store, yet a lot of people want to know how well various apps...
PHP
UTF-8
636
2.796875
3
[]
no_license
<?php $server = "localhost"; $user = "root"; $pass = "123mudar"; $database = "teste"; //conexão com mysqli @$mysqli = new mysqli($server,$user,$pass,$database); //Error if (mysqli_connect_errno()) { echo "Failed to connect (".$mysqli->connect_errno.") ".$mysqli->connect_error; exit; } $stmt = $mysqli->stmt_init...
C#
UTF-8
2,120
2.609375
3
[]
no_license
using HtmlAgilityPack; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Net; using System.Net.Http; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; namespace Dictcreator.Core.Fetchers { public class TranslateFetcherReverso : Da...
Java
UTF-8
2,303
2.546875
3
[]
no_license
package propertiessheet; import javafx.application.Application; import javafx.beans.value.ChangeListener; import javafx.beans.value.ObservableValue; import javafx.collections.ObservableList; import javafx.scene.Scene; import javafx.scene.layout.VBox; import javafx.stage.Stage; import javafx.util.Callback; import org.c...
C++
UTF-8
538
2.75
3
[]
no_license
#include<vector> class EuropeanCallOption{ public: //constructor EuropeanCallOption( int nInt_, double strike_, double spot_, double vol_, double r_, double expiry_, double barier_ ); //destructor ~EuropeanCallOption(){}; //methods void generatePath(); void printPath(); ...
Java
UTF-8
1,581
2.234375
2
[ "LicenseRef-scancode-generic-cla", "MIT", "BSD-3-Clause", "LicenseRef-scancode-warranty-disclaimer", "LGPL-2.1-or-later", "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. package com.azure.search.documents; import com.azure.search.documents.models.IndexAction; /** * This interface represents callback hooks that are triggered when {@link IndexAction IndexActions} are added, succeed, * fai...
C
UTF-8
476
2.890625
3
[]
no_license
#include <stdlib.h> #include <stdio.h> #include "positional_actual.h" #include "ast_helper.h" positional_actual *create_positional_actual(char *identifier) { positional_actual *result = malloc(sizeof(positional_actual)); result->identifier = identifier; return result; } void print_positional_actual(posit...
Java
UTF-8
2,644
2.125
2
[]
no_license
package com.lanrenyou.interceptor; import javax.servlet.http.Cookie; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.web.servlet.handler.HandlerInterceptorAdapter; import com.lanrenyou.con...
Java
UTF-8
3,278
2.015625
2
[]
no_license
package com.ku.dku.controller; import javax.annotation.RegEx; import javax.mail.Session; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpSession; import org.json.JSONObject; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.Cro...
Java
UTF-8
636
2.5
2
[]
no_license
package Thread.provideconsume.method2; import java.util.concurrent.ArrayBlockingQueue; import java.util.concurrent.BlockingQueue; /** * @Desc: 描述 * @Author: Heyyw * @CreateDate: 2019/3/28 14:47 * @UpdateAuthor: * @UpdateDate: * @UpdateRemark: 更新说明 * @Version: 1.0 */ public class product { public static vo...
Python
UTF-8
12,093
2.59375
3
[]
no_license
import threat import state pawn_start_keys = [ 52, 53, 54, 55, 56, 57, 58, 59, 82, 98, 114, 130, 146, 162, 178, 194, 93, 109, 125, 141, 157, 173, 189, 205, 228, 229, 230, 231, 232, 233, 234, 235 ] castle_ext_keys = { 129 : { 97 : 0, 161 : 1}, 248 : { 250 : 0, 246 : 1}, 39 : { 37...
C#
UTF-8
1,605
2.75
3
[]
no_license
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace DAL { public class Fee { HospitalEntities e = new HospitalEntities(); public List<FeeTable> AllCharges() { var query = from FeeTable in e.FeeTables ...
Ruby
UTF-8
839
3.46875
3
[]
no_license
require 'pry' require './lib/card' require './lib/guess' require './lib/deck' class Round attr_reader :deck, :guesses def initialize(deck) @deck = deck @guesses = [] @deck_index = 0 end def current_card @deck.cards[@deck_index] end def record_guess(guess) response = g...
Shell
UTF-8
4,747
4
4
[ "MIT" ]
permissive
#!/bin/sh command=$1 shift current_dir=$(pwd) script_path="${BASH_SOURCE[0]}" script_dir="${script_path:0:${#script_path}-5}" script_dir_pwd="$( cd "$script_dir" && pwd )" chmod +x "$script_path" if [ "$command" == "help" ] || [ "$command" == "" ]; then echo "usage: golem <command> [<args>] commands are: do ...
C++
UTF-8
422
2.703125
3
[]
no_license
#ifndef _RADSCORPION_H_ #define _RADSCORPION_H_ #include <iostream> #include <string> #include "Character.hpp" class RadScorpion : public Enemy { private: int _hp; std::string _type; public: RadScorpion(/* args */); RadScorpion(RadScorpion const &src); ~RadScorpion(); Rad...
Java
GB18030
870
2.15625
2
[]
no_license
package com.li.ssm_dwr01.entity; /** * Ϣ * @author * */ public class Message { //Ϣ private String msgText; // private String toUserId; //id private String fromUserId; // private String fromUserName; public String getMsgText() { return msgText; } public void setMsgText(String msgT...
C
ISO-8859-1
6,958
3.421875
3
[]
no_license
//Projeto de c questo 11.15 do livro //Dupla: diomedes/ Moises #include <stdio.h> #include <stdlib.h> void exibe(void); //prototipo de func que exibe texo digitado void cria(FILE *); //prototipo de func que cria arquivo void adiciona(FILE *); //prototipo de func que adiciona dados no fim do arquivo void ler(void)...
C
UTF-8
2,577
3.25
3
[]
no_license
#include "test_utils.h" #include <stdbool.h> #include <stddef.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> bool test_bool(bool cond, char *testname) { printf("TEST - %s : %s%s%s\n", testname, cond ? GREEN : RED, cond ? PASSED : FAILED, NOCOLOUR); return cond; } bool t...
Markdown
UTF-8
500
2.546875
3
[]
no_license
# Generics :pushpin: > :construction: **TODO:** > - Was sind Generics und wozu? We funktionieren sie? > - Information zur Laufzeit nicht vorhanden > - Implementation am Beispiel der verketteten Liste > - ... <!-- Dieses HTML-Snippet sollte am Ende jeder Seite stehen! --> <div class="top-link"> <a href="#" tit...
Java
UTF-8
3,614
1.898438
2
[]
no_license
package com.sensebling.ope.core.service.impl; import java.util.ArrayList; import java.util.List; import java.util.Map; import javax.annotation.Resource; import org.springframework.stereotype.Service; import com.sensebling.common.controller.HttpReqtRespContext; import com.sensebling.common.service.impl.BasicsSvcImpl...
Markdown
UTF-8
474
2.59375
3
[]
no_license
Postchi is a platform for admins of social media pages, news agencies, fanpages, etc. whom want to share their news and posts in all their accounts in social media (Twitter, Instagram, Telegram, their Wordpress website, etc.). But copying files and changing apps may be bothering. So what about using one place to write ...
JavaScript
UTF-8
4,885
2.828125
3
[]
no_license
/* eslint-disable no-unused-expressions */ /* eslint-disable no-useless-constructor */ import React from 'react' import './Mainpage.css' class Mainpage extends React.Component { // Constructor, initialize state and bind functions constructor() { super(); this.state = { input : ...
Python
UTF-8
4,253
2.8125
3
[]
no_license
"""First experiment. 1D data.""" # Guilhere Franca <guifranca@gmail.com> # Johns Hopkins University, Neurodata import numpy as np import multiprocessing as mp import energy.data as data import energy.eclust as eclust import energy.initialization as initialization import run_clustering import plot def sample_normal(...
Shell
UTF-8
4,440
3.15625
3
[ "Apache-2.0" ]
permissive
#!/usr/bin/env bash #* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * #* * #* This file is part of the program and library * #* SCIP --- Solving Constraint Integer Programs ...
Python
UTF-8
611
3.03125
3
[]
no_license
from abc import ABC, abstractmethod class Collector(ABC): """Abstract class for data collector.""" def __init__(self, es): self._es = es self._url = None self._index_name = None def collect(self): """Loads data, normalizes it and dumps.""" return self._dump(self._...
Java
UTF-8
1,063
2.71875
3
[]
no_license
package View; import Model.PlayingField; import javafx.scene.image.Image; import javafx.scene.layout.Background; import javafx.scene.layout.BackgroundImage; import javafx.scene.layout.BackgroundPosition; import javafx.scene.layout.BackgroundRepeat; import javafx.scene.layout.BackgroundSize; import javafx.scen...
Java
UTF-8
1,050
3.9375
4
[]
no_license
package Oops; // Realworld example class Account{ int acc_no; String name; float amount; void insert (int a, String n, float amt){ acc_no = a; name = n; amount = amt; } void deposit(float amt){ amount = amount + amt; System.out.println(amt+" deposited")...
Markdown
UTF-8
16,377
2.53125
3
[ "MIT" ]
permissive
--- title: "ICLR 2020" permalink: /notes/iclr2020/ author_profile: true math: true --- ## [Variational Template Machine for Data-to-Text Generation](http://www.openreview.net/pdf?id=HkejNgBtPB) * A graphical model for generating text <span>$y$</span> from structured data <span>$x$</span> * Similar to a variational au...
Markdown
UTF-8
2,554
2.765625
3
[ "MIT" ]
permissive
# 5. Creating modules UNDER DEVELOPMENT! ### What you will learn ```@contents Pages = ["chapter5.md"] ``` With modules we can build applications. A [module](https://docs.julialang.org/en/v1/manual/modules/index.html) is a demarcated unit, with its own namespace. You create a module with the package manages command ...
Markdown
UTF-8
1,057
3.203125
3
[]
no_license
# Movies search app This is the final project of GeekHubs Academy Bootcamp. It's an app that provides a list of popular, top-rated and upcoming films, and allows users to search for movies and save them in a list. ## Technologies - ReactJS - SCSS - Redux Toolkit - npm - Axios / Custom API ## Description ![](src/me...
C
UTF-8
2,486
3.984375
4
[]
no_license
// includes #include <stdio.h> #include <cs50.h> #include <string.h> #include <ctype.h> #include <stdlib.h> // funcs declaration char letter_shifting(int key, char c, bool uppercase); // main func int main(int argc, string argv[]) { // Checks if there are only two inputs (including filename) if (argc != 2) ...
JavaScript
UTF-8
951
3.765625
4
[]
no_license
/** * */ // 01_function.js function add(a,b){ return a+b; } console.log('2+3=' + add(2,3)); console.log('java + script =' + add('java', 'script')); console.log(add()); console.log(add(2)); console.log(add(2, 3)); console.log(add(2, 3, 4, 5)); // sumAll() function sumAll(){ var sum =0; for(var i in argumen...
Python
UTF-8
384
3.015625
3
[ "MIT" ]
permissive
def train_test_split(X, train_size=0.7, val_size=0.3): n = len(X) if train_size + val_size > 1.0: raise ValueError('train_size + val_size must be smaller than 1.0') train_df = X[0: int(n * train_size)] val_df = X[int(n * train_size): int(n * (train_size + val_size))] test_df = X[int(n * (...
C
UTF-8
2,831
3.359375
3
[]
no_license
#include <stdio.h> #include <math.h> #include <time.h> #include <stdlib.h> long double c_conv(int in_channel, long int o_channel, int kernel_size, int stride); int main() { int in_channel = 3; int o_channel = 1; int kernel_size = 3; int stride = 1; clock_t start; clock_t end; long double operations = 0.0; f...
PHP
UTF-8
8,556
2.921875
3
[]
no_license
<?php //========================== //CUSTOMIZING THE REST API / CREATING OUR OWN CUSTOM URL ROUTES to have more control //CREATING CUSTOM REST API " READ " ENDPOINT //========================= add_action('rest_api_init', 'universityRegisterSearch'); //To register a new custom Rest API route f...
Markdown
UTF-8
1,195
2.640625
3
[]
no_license
# Week 3: Tuesday ### Challenges ##### Core Challenges - [Student Roster DB from Schema](https://github.com/mantises-2014/student-roster-db-from-schema-challenge) - [University DB Schema](https://github.com/mantises-2014/university-course-database-design-challenge) - [Address Book DB from Schema](https://github.com/m...
JavaScript
UTF-8
884
2.5625
3
[ "Apache-2.0" ]
permissive
var strategoCols = [0,1,2,3,4,5,6,7,8,9] var strategoRows = [0,1,2,3,4,5,6,7,8,9] $(document).ready(function () { var strategoGame = new Vue({ el:'#stratego-game' }) }) Vue.component('stratego-field', { template:` <div class="gameboard__container" id="board"> <table> ...
Markdown
UTF-8
1,118
2.875
3
[ "MIT" ]
permissive
# Ropa de Piedra ## Paquete ```zenscript import mods.terrafirmacraft.StoneKnapping;PiedraKnapping; ``` ## Adicional ```zenscript StoneKnapping.addRecipe(String registryName, IItemStack[] salida, String[] rocks, String... patrón) ``` ## Eliminar ```zenscript StoneKnapping.removeRecipe(ItemStack output); StoneKnappi...
Java
UTF-8
1,777
1.640625
2
[]
no_license
package com.tencent.mm.plugin.radar.ui; import android.app.Activity; import android.content.Context; import android.view.View; import android.view.View.OnClickListener; import b.i; import com.tencent.mm.plugin.radar.b.e$e; import com.tencent.mm.plugin.radar.ui.RadarViewController.c; import java.util.LinkedList; final...
Python
UTF-8
1,160
3.1875
3
[]
no_license
def nevilleInter(points, x): """ :param points: a list of points ie ((0,1),(1,2)) etc.. :param x: the x in question of what the value is at this x :return: the value y at the given x """ if len(points) < 2: return "Invalid points" p = [[0 for j in range(len(points))] for y in range(...
C#
UTF-8
1,391
2.703125
3
[]
no_license
using System.Collections.Generic; using System.Drawing; using Localization; using RembyClipper2.Config; using RembyClipper2.DrawingTool.Figures; namespace RembyClipper2.DrawingTool.FigureCreator { /// <summary> /// Text figure builder /// </summary> public class TextCreator : FigureCreator { ...
Java
UTF-8
1,056
1.804688
2
[]
no_license
package com.guiji.botsentence.service; import java.util.ArrayList; import java.util.Iterator; import java.util.List; import java.util.Map; import java.util.Set; import com.guiji.botsentence.dao.entity.BotSentenceAddition; import com.guiji.botsentence.dao.entity.BotSentenceBranch; import com.guiji.botsentence.dao.enti...
Markdown
UTF-8
1,147
2.890625
3
[]
no_license
# 메모리 주소와 접근 - 메모리 한 바이트(8비트)에 주소 한 개가 들어가도록 설계했다. - 인텔 32비트에서는 주소값을 32비트로 저장할 수 있다. - 32비트에서는 최대로 4GB의 공간을 사용할 수 있다. - 2^32 x 1 bypte = 2^2 x 2^30 x 1byte = 4GB - 1 KB = 1024 byte = 2^10 byte - 1 MB = 1024 KB = 2^20 byte - 1 GB = 1024 MB = 2^10 MB = 2^30 byte - 어셈블리어의 메모리 접근 - ...
C#
UTF-8
907
2.734375
3
[ "Apache-2.0" ]
permissive
using System.Web.Routing; namespace MvcContrib.Routing { /// <summary> /// Helper class for switching the default route handler to the debug route handler. /// </summary> public static class RouteDebugger { /// <summary> /// Iterates over each route in the route collection and replaces the default route hand...
Python
UTF-8
1,379
2.921875
3
[ "BSD-2-Clause" ]
permissive
# -*- python -*- # # This file is part of biokit software # # Copyright (c) 2014- # # File author(s): Thomas Cokelaer <cokelaer@ebi.ac.uk> # # Distributed under the GPLv3 License. # See accompanying file LICENSE.txt or copy at # http://www.gnu.org/licenses/gpl-3.0.html # # website: https://github.com/biokit ...
Markdown
UTF-8
2,210
3.28125
3
[]
no_license
--- title: Cuestionario - Sobrecarga sidebar_label: Cuestionario slug: /clases/sobrecarga/apuntes/cuestionario hide_table_of_contents: true hide_title: false author: authorURL: --- 1. ¿Qué significa sobrecargar un método o constructor? 2. ¿Qué debe cambiar para que la sobrecarga de un método o constructor sea válida...
C#
UTF-8
3,741
2.953125
3
[]
no_license
using System; using System.Collections.Generic; using System.Linq; using UnityEngine; /* Still not clear what interactables will do, probably there will be different * types, so that will need to be taken care of. */ namespace MapFeatures.Interactables { public class InteractableManager : MapFeatureManager<Int...
C#
UTF-8
4,345
3.140625
3
[]
no_license
/// Usage examples /// /// Lets imagine we need a simple progress bar to handle 'health' of the tree we need to cut off /// We need to create new empty script that inherits from SceneLineProgressBar /// with itself as generic argument public class HealthExampleTreeProgressBar : SceneLineProgressBar<HealthExampleTreeP...
C#
UTF-8
433
2.65625
3
[]
no_license
using CommandLine; namespace CommandLineParserExample { [Verb("concatenate", HelpText = "Concatenates two strings")] public sealed class ConcatenateStringOptions { [Option('s', "string1", HelpText = "The first string", Required = true)] public string Text1 { get; set; } [Option('t'...
JavaScript
UTF-8
12,048
3.046875
3
[ "MIT" ]
permissive
// Build a Pie Chart for top 10 designations by number of jobs function buildPieChart(jobsByState) { jobsByState = jobsByState.slice(0,10); var x_data = jobsByState.map(row => row.State); var y_data = jobsByState.map(row => row.Jobs_Count); colors = ["#3e95cd", "violet","tomato","OliveDrab ","#8e5ea2","oran...
Swift
UTF-8
663
2.5625
3
[]
no_license
// // CustomImageScrollviewCell.swift // shortNewIOS // // Created by SSd on 12/20/16. // Copyright © 2016 SSd. All rights reserved. // import UIKit class CustomImageScrollviewCell: CustomImage { var mScrollView : UIScrollView? init(frame: CGRect, scrollView : UIScrollView) { super.init(fram...
Python
UTF-8
5,719
2.59375
3
[ "Apache-2.0", "BSD-2-Clause", "BSD-3-Clause", "LicenseRef-scancode-generic-cla", "BSD-3-Clause-Open-MPI", "LicenseRef-scancode-free-unknown", "Libtool-exception", "GCC-exception-3.1", "LicenseRef-scancode-mit-old-style", "OFL-1.1", "JSON", "LGPL-2.1-only", "LGPL-2.0-or-later", "ICU", "Li...
permissive
import h5py import json from nndct_shared.nndct_graph.base_tensor import Tensor def save_graph(nndct_graph, hdf5_path='graph.hdf5'): GraphHDF5Saver(nndct_graph).save(hdf5_path) class GraphHDF5Saver(): def __init__(self, nndct_graph): self.graph = nndct_graph def get_node_config(self, node): node_info...
C
UTF-8
1,662
2.875
3
[]
no_license
//这是TCP多进程版本的服务端 #include<stdio.h> #include<unistd.h> #include<stdlib.h> #include<string.h> #include<errno.h> #include<sys/socket.h> #include<arpa/inet.h> #include <sys/types.h> #include <sys/wait.h> #include<netinet/in.h> int Data_IO(int id) { int pid = -1; pid = fork(); if(pid<0)return -1; else if(p...
C
UTF-8
1,410
2.546875
3
[]
no_license
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* cmd_parsing.c :+: :+: :+: ...
Java
UTF-8
2,198
2.171875
2
[]
no_license
package com.sprocketry.avro.security; import static org.junit.Assert.assertEquals; import org.apache.avro.AvroRuntimeException; import org.apache.avro.ipc.LocalTransceiver; import org.apache.avro.specific.SpecificRequestor; import org.apache.avro.specific.SpecificResponder; import org.junit.Before; import or...
Markdown
UTF-8
428
2.53125
3
[]
no_license
## Springboard Projects by Earnest Long, Jr. Instead of creating a separate repo for each of my Springboard projects, I've decided to host them all in this repo together. Each folder contains a separate project, and each folder name describes the topic of the project therein. Exceptions are the "relax_challenge" and "...
C++
UTF-8
1,938
3.40625
3
[]
no_license
//symbol_table.hpp //classes : attr - a symbol table entry, Scope - A symbol table #include <vector> #include <iostream> #include <unordered_map> #include <string> #include <stack> using namespace std; //address offset int offset = 0; //string constants to print vector<string> strdata; class attr{ public: int v...
Java
UTF-8
2,090
2.171875
2
[]
no_license
package com.zhaotai.uzao.ui.theme.adapter; import android.widget.ImageView; import android.widget.TextView; import com.bumptech.glide.Glide; import com.chad.library.adapter.base.BaseQuickAdapter; import com.chad.library.adapter.base.BaseViewHolder; import com.zhaotai.uzao.R; import com.zhaotai.uzao.api.ApiConstants; ...
Java
UTF-8
819
1.984375
2
[]
no_license
package com.hhh.product.service.impl; import com.hhh.product.dao.ProductCategoryDao; import com.hhh.product.entity.ProductCategory; import com.hhh.product.service.CategoryService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import java.util.List; /** ...
Java
UTF-8
11,419
2.109375
2
[ "MIT" ]
permissive
package money.terra.terrawallet.test; import jdk.vm.ci.code.site.Call; import money.terra.terrawallet.TerraWalletSDK; import money.terra.terrawallet.WalletModel; import org.json.JSONArray; import org.json.JSONObject; import org.junit.Assert; import org.junit.Test; import java.io.*; import java.net.HttpURLConnection; ...
PHP
UTF-8
1,236
2.640625
3
[]
no_license
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; class Characteristic extends Model { /** * The attributes that are mass assignable. * * @var array */ protected $fillable = [ 'charact_code_1c', 'name' ]; public $timestamps = false; /** * * @par...
Python
UTF-8
350
3.609375
4
[]
no_license
import time def timer(f): def tmp(*args, **kwargs): start_time = time.time() res = f(*args, **kwargs) # put function which will be decorated print(f'Function execution time: {time.time() - start_time}') return res return tmp @timer def func(x, y): # instead of func put tmp ...
Java
UTF-8
2,348
2.34375
2
[]
no_license
package com.example.applicate; import com.example.applicate.catalog.Catalog; import org.junit.jupiter.api.Test; import org.springframework.boot.test.context.SpringBootTest; import static io.restassured.RestAssured.*; import static org.hamcrest.Matchers.equalTo; import static org.hamcrest.Matchers.hasItems; @SpringBo...
Python
UTF-8
490
4.03125
4
[]
no_license
from time import sleep def higher(*num): count = higherNumber = 0 print('Os valores digitados foram:') for number in num: print(f'{number} ', end='', flush=True) sleep(0.3) if higherNumber == 0: higherNumber = number elif number >= higherNumber: high...
TypeScript
UTF-8
40,344
3.65625
4
[ "MIT" ]
permissive
/** * Options for compressing data into a DEFLATE format */ export interface DeflateOptions { /** * The level of compression to use, ranging from 0-9. * * 0 will store the data without compression. * 1 is fastest but compresses the worst, 9 is slowest but compresses the best. * The defaul...
JavaScript
UTF-8
1,859
2.75
3
[ "MIT" ]
permissive
let text=$("#text")[0]; let output=$("#output")[0]; text.ondragover=(e)=>{ e.preventDefault(); e.stopPropagation(); }; text.ondrop=(e)=>{ let file=e.dataTransfer.files[0]; let reader=new FileReader(); reader.readAsText(file); reader.onloadend=()=>{ text.value=reader.result; } e.preventDefault(); ...
Markdown
UTF-8
971
3.046875
3
[ "MIT" ]
permissive
--- title: HARcURL license: LGPL License link: http://andydude.github.io/harcurl/ source: https://github.com/andydude/harcurl --- The HTTP archiving (HAR) file transfer tool. The harcurl tool accepts requests on stdin, and prints responses to stdout. The format of the request and response are both specified in the HA...
Java
UTF-8
821
3.34375
3
[]
no_license
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int tc = sc.nextInt(); for(int t = 1; t <= tc; t++) { int N = sc.nextInt(); int K = sc.nextInt(); Vector<Integ...
Java
UTF-8
1,833
2.5
2
[]
no_license
package com.mallon.cardatabase.domain.dto; import com.fasterxml.jackson.annotation.JsonIgnore; import javax.persistence.Entity; import javax.persistence.FetchType; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.JoinColumn; import...
Java
UTF-8
1,388
2.390625
2
[]
no_license
package foo.bar.day01.lab07; import org.springframework.beans.BeansException; import org.springframework.beans.factory.config.BeanPostProcessor; import java.lang.reflect.InvocationHandler; import java.lang.reflect.Method; import java.lang.reflect.Proxy; /** * Created by blvp on 06.04.15. */ public class BenchmarkB...