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
JavaScript
UTF-8
631
2.765625
3
[]
no_license
/** * @author Morgan Wheatman */ window.addEventListener('load', function() { 'use strict'; const contactForm = document.getElementById('contact'); contactForm.submit.onclick = checkConsent; var consentSelected = false; function checkConsent(_evt){ var consent = contactForm.consent; i...
Markdown
UTF-8
533
2.5625
3
[]
no_license
# Article L121-2 Les associations sportives scolaires et universitaires sont soumises aux dispositions du présent code ainsi qu'aux livres V et VIII du code de l'éducation. **Liens relatifs à cet article** **Anciens textes**: - Loi n°84-610 1984-07-16 art. 7, alinéa 2 - Loi n°84-610 du 16 juillet 1984 - art....
Java
UTF-8
345
1.742188
2
[]
no_license
package org.capstore.rest.dao; import javax.transaction.Transactional; import org.capstore.rest.model.Order; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.stereotype.Repository; @Transactional @Repository("orderDao") public interface IOrderDao extends JpaRepository<...
C++
UTF-8
8,451
3.1875
3
[]
no_license
#include "intdeque.hpp" #include <stdlib.h> #include <stdio.h> /* Output Functions */ void addleft_o(IntDeque & _deque, int _element, const char * name); void addright_o(IntDeque & _deque, int _element, const char * name); void removeleft_o(IntDeque & _deque, const char * name); void removeright_o(IntD...
Python
UTF-8
313
3.1875
3
[]
no_license
from bokeh.plotting import figure from bokeh.io import output_file, show import pandas as pd x = [1,2,3,4,5] y = [6,7,8,9,10] output_file('line.html') f = figure() f.line(x,y) show(f) df = pd.read_csv('data.csv') x1 = df['x'] y1 = df['y'] output_file('line_from_csv.html') f = figure() f.line(x1,y1) show(f)
C#
UTF-8
4,704
3.03125
3
[]
no_license
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Diagnostics; using System.Windows.Forms; namespace Hu.WinControler { internal class App { // IntPtr hwnd; //进程句柄 Process process; List<AppFunction> functions = new List<AppFunction>(); ...
Python
UTF-8
286
4.0625
4
[]
no_license
#PIG LATIN # Asks user to input a sentence # conver words to Pig Latin # moving first letter to end and add "ay" to the word def main(): words = str(input("Enter a Sentence: ")).split() for word in words: print(word[1:] + word[0] + "ay", end = " ") print() main()
JavaScript
UTF-8
1,283
4.5625
5
[]
no_license
/** Given a string, find the length of the longest substring without repeating characters. Example 1: Input: "abcabcbb" Output: 3 Explanation: The answer is "abc", with the length of 3. Example 2: Input: "bbbbb" Output: 1 Explanation: The answer is "b", with the length of 1. Example 3: Input: "pwwk...
C#
UTF-8
530
3.65625
4
[]
no_license
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApp1 { class Binary_Number_with_Alternating_Bits { //The solution is to use bit manipulation. And d is last digit of n. public static bool HasAlternatingBits(int n) { int ...
Java
UTF-8
670
1.890625
2
[]
no_license
package com.fjsimon.uberweisung.service; import com.fjsimon.uberweisung.domain.service.request.CreateTransactionRequest; import com.fjsimon.uberweisung.domain.service.request.GetTransactionsRequest; import com.fjsimon.uberweisung.domain.service.response.CreateTransactionResponse; import com.fjsimon.uberweisung.domain....
Java
UTF-8
9,742
2.28125
2
[]
no_license
package com.sahil.mychatapp; import androidx.annotation.NonNull; import androidx.appcompat.app.AppCompatActivity; import androidx.recyclerview.widget.LinearLayoutManager; import androidx.recyclerview.widget.RecyclerView; import android.content.Intent; import android.os.Bundle; import android.util.Log; import android....
Java
UTF-8
7,454
1.953125
2
[ "Apache-2.0" ]
permissive
/* * 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 writing, software distributed under t...
C++
UTF-8
2,241
3.921875
4
[]
no_license
/* PROBLEM STATEMENT Perform merge sort using linked list input - number of elements in sequence sequence of integers */ #include <bits/stdc++.h> using namespace std; struct node { int data; node* nxt; }; // Insert a node in the front of the list void insert(int indata, node ** head) { node *te...
Markdown
UTF-8
450
2.546875
3
[]
no_license
{{#markdown}} ### Gérer les conflit (2/2) ```bash # Savoir quels outils de résolution de conflit sont disponible $ git mergetool --tool-help # Lancer un outil de résolution de conflit $ git mergetool -t <outil> ``` ```bash # Annuler une fusion conflictuelle $ git merge --abort ``` ```bash # Reprendre un rebase aprè...
Java
UTF-8
5,483
1.960938
2
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
/* * Straal3dsResponseCallableTest.java * Created by Kamil Czanik on 14.01.2021 * Straal SDK for Android * Copyright 2021 Straal Sp. z o. o. * * 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 Licen...
Python
UTF-8
2,491
4
4
[]
no_license
# HW1 根據題目給的 DataFrame 完成下列操作: #- 計算每個不同種類 animal 的 age 的平均數 #- 計算每個不同種類 animal 的 age 的平均數 #- 將資料依照 Age 欄位由小到大排序,再依照 visits 欄位由大到小排序 #- 將 priority 欄位中的 yes 和 no 字串,換成是布林值 的 True 和 False import pandas as pd import numpy as np data = { 'animal': ['cat', 'cat', 'snake', 'dog', 'dog', 'cat', 'snake', 'cat', 'dog', 'dog...
Python
UTF-8
1,552
2.5625
3
[ "MIT" ]
permissive
from .Mode import Mode FILTER_VERTEX_OPTIONS = [ ['Pagerank (relative)', 'pagerankRelative'], ['Pagerank', 'pagerank'], ['Closeness (relative)', 'closenessRelative'], ['Closeness', 'closeness'], ['Betweenness (relative)', 'betweennessRelative'], ['Betweenness', 'betweenness'], ['Out degree...
C#
UTF-8
908
2.71875
3
[]
no_license
public sealed class FacebookMapper : IMapper { private static readonly IEnumerable<FacebookUser> NullFacebookUsers = Enumerable.Repeat(new FacebookUser(null), 1); public IEnumerable<User> MapFrom(IEnumerable<User> users) { var facebookUsers = GetFacebookUsers(user...
C#
UTF-8
2,790
2.578125
3
[]
no_license
using System; using System.Text; using System.Collections; using System.Collections.Generic; using System.Runtime.Serialization; using Newtonsoft.Json; namespace WebApplication1.ApiModel { /// <summary> /// /// </summary> [DataContract] public class ModificationPromotion { /// <summary> /// Bold fl...
Python
UTF-8
1,981
3.21875
3
[]
no_license
#!/usr/bin/env python import time import threading class Logger(object): def __init__(self): self.log_level = 0 self.observers = dict() def log(self, log_message): for name, lis in self.observers.items(): print("list name:", name) for observer, level in lis: ...
Markdown
UTF-8
1,213
2.90625
3
[]
no_license
## [**Long-term Recurrent Convolutional Networks for Visual Recognition and Description**](http://jeffdonahue.com/lrcn/)/[Code](http://www.eecs.berkeley.edu/~lisa_anne/LRCN_video) <br/> They propose a <span style="color:red">*Long-term recurrent convolutional networks(LRCNs)*</span> which combines CNN and long-range...
TypeScript
UTF-8
37,579
2.9375
3
[]
no_license
import Forth, { GetterSetter, HeaderFlags } from './Forth'; import ForthException from './ForthException'; const whitespaces = [' ', '\r', '\n', '\t']; function isWhitespace(ch: string) { return ch == ' ' || ch == '\r' || ch == '\n' || ch == '\t'; } // TODO: turn into a primitive function scan(f: Forth, ...until: st...
Java
UTF-8
2,843
3.59375
4
[]
no_license
package package55; /** * @ClassName Sequence * @Description TODO * @Author tanwenwei * @Date 2019/4/23 21:28 * @Version 1.0 */ interface Selector { boolean end(); Object current(); void next(); Sequence getSeq(); } public class Sequence { private Object[] items; private int next =...
PHP
UTF-8
389
3.078125
3
[]
no_license
<?php namespace Voting\Domain; use Voting\Exception\DomainException; class Id { private $id; public function __construct($id = null) { if (!is_null($id) && !is_integer($id)) { throw new DomainException('Id should be an integer or null'); } $this->id = $id; } ...
C#
UTF-8
1,754
2.578125
3
[]
no_license
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace Bai_Tap_9 { public partial class Form1 : Form { public Form1() { ...
Markdown
UTF-8
4,448
3.875
4
[]
no_license
# 灵活的语言——JavaScript 需求:实现一个验证表单功能的任务,内容不多,仅需要验证用户名、邮箱、密码等。 ## 1.1 入职第一天 ```javascript function checkName() { //验证用户名 } function checkEmail() { //验证邮箱 } function checkPassword() { //验证密码 } ``` >> 缺点:创建了很多全局变量,团队开发中,如果别人也定义了同样的方法就会覆盖掉原有的功能,如果定义了很多方法,这种互相覆盖的问题很不容易被察觉。 >> 解决:可以将他们放在一个变量里保存,可以减少覆盖和被覆盖的风险,一旦被...
C#
UTF-8
3,618
2.796875
3
[]
no_license
using Demon.Core.Domain; namespace Demon.Report { public class Helpers { public static uint ReadULong(byte[] buf) { uint value = 0; for(int x = 0; x < 4; ++x) { value <<= 8; value += buf[x]; } return value; } public static string ReadString(byte[] buf, int len) { string value = ...
C
UTF-8
839
3.78125
4
[]
no_license
#include <stdio.h> #include <string.h> #include <math.h> int main() { FILE *handle = fopen("integers_output.txt", "w"); if (handle == NULL) { fprintf(stderr, "Fehler. Datei konnte nicht angelegt werden."); return 1; } fprintf(stdout, "Geben Sie Ihren Text ein: \n"); char input[200]; ...
Java
UTF-8
2,101
2.828125
3
[ "Apache-2.0" ]
permissive
/* * 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 org.shaman.terrain; import org.junit.Test; import static org.junit.Assert.*; /** * * @author Sebastian Weiss */ public cla...
Java
UTF-8
186
1.8125
2
[]
no_license
package winep.ir.contentcentricapp.Presenter.Observer; /** * Created by ShaisteS on 8/27/2016. */ public interface ObserverAudioPlayerListener { void changeAudioPlayerStatus(); }
C#
UTF-8
4,668
2.671875
3
[]
no_license
using System; using System.Collections.Generic; using System.Linq; using Nofs.Net.AnnotationDriver; using Nofs.Net.Common.Interfaces.Library; namespace Nofs.Net.nofs_addressbook { [RootFolderObject] [Serializable] public class Book { private IDomainObjectContainer _bookContainer; ...
PHP
UTF-8
5,645
2.5625
3
[ "MIT" ]
permissive
<?php namespace App; use App\Helpers\MeetAndCodeHelper; use Carbon\Carbon; use Illuminate\Database\Eloquent\Model; use Illuminate\Support\Str; /** * App\MeetAndCodeRSSItem * * @property int $id * @property string $title * @property string $description * @property string $link * @property string $pubDate * @p...
Python
UTF-8
838
2.75
3
[]
no_license
import cv2 import numpy as np img1 = cv2.imread('3D-Matplotlib.png') img2 = cv2.imread('mainlogo.png') rows,cols,channels = img2.shape roi = img1[0:rows, 0:cols] img2gray = cv2.cvtColor(img2, cv2.COLOR_BGR2GRAY) ret, mask = cv2.threshold(img2gray, 220, 255, cv2.THRESH_BINARY_INV) mask_inv = cv2.bitwise_not(mask) im...
Go
UTF-8
425
3.234375
3
[]
no_license
package util type SimpleIDGenerator struct { sequence chan int64 } func NewSimpleIDGenerator() *SimpleIDGenerator { ig := &SimpleIDGenerator{sequence: make(chan int64)} go func() { id := int64(1) for { ig.sequence <- id if id == 0 { continue } id++ } }() return ig } func (r *SimpleIDGener...
C++
UTF-8
692
2.515625
3
[]
no_license
/////////////////////////////////////////////////////////////////////// // // Filename: Player.cpp // Date: March 14, 2019 // Programmer: Daniel Posse // // Description: // Player object, inherits from Character // ...
C++
UTF-8
4,862
2.546875
3
[ "MIT" ]
permissive
 /** * @file teleportState.h * @brief スキル状態 * * @author wem * @date 2016.1.2 */ #include "precompiled.h" //! TeleportStateに遷移した瞬間にフレームレートを下げる void TeleportState::setup(Player* player) { currentAcc_ = g_local->FrameAcc(); g_local->SetFrameAcc(player->getReduce()); cursorPos_ = player->getPos(); cursor...
Java
UTF-8
1,203
3.453125
3
[]
no_license
package com.peter12.solution.medium; public class MEDIUM_0165_COMPARE_VERSION_NUMBERS { public static int compareVersion(String version1, String version2) { String[] split1 = version1.split("\\."); String[] split2 = version2.split("\\."); int size = ( split1.length < split2.length )? split1.length : split2.len...
Java
UTF-8
1,730
3.234375
3
[]
no_license
package com.grudnov.lessons.lesson22.hw3_4; import java.util.function.Consumer; import java.util.function.Predicate; public class Application { public static void main(String[] args) { University university = new University(); university.addCourse(Course.getInstance()); university.addCours...
Python
UTF-8
1,172
3.1875
3
[]
no_license
import math import os import random import re import sys # Complete the biggerIsGreater function below. def biggerIsGreater(w): alph = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'] my_weight = [] for letter i...
Java
UTF-8
6,486
3.28125
3
[]
no_license
package collections.arraylist; import java.util.Iterator; import java.util.NoSuchElementException; public class MyListImpl implements MyList, ListIterable { private static final Object[] EMPTY_ELEMENT_DATA = {}; private static final int DEFAULT_CAPACITY; private final int capacity; private int poi...
C++
UTF-8
969
3.015625
3
[]
no_license
//TC1031.500 //Myroslava Sánchez Andrade A01730712 //Ituriel Mejía Garita A01730875 //Fecha: 17/11/2020 //Act 4.2 - Grafos: Algoritmos complementarios //Se agregan librerías #include "iostream" #include "string" #include "queue" #include "vector" using namespace std; //Incluimos los archivos #include "toLetters.h" #...
PHP
UTF-8
2,170
2.6875
3
[]
no_license
<?php namespace NikitaMikhno\LaravelDiscourse\Traits; trait Posts { /** * createPost * * NOT WORKING YET * * @param string $bodyText * @param $topicId * @param string $userName * @return \stdClass */ public function createPost(string $bodyText, $topicId, string $us...
C++
UTF-8
688
2.9375
3
[]
no_license
#pragma once #include <iostream> #include "Component.hpp" class VelocityComponent : public Components { public: float m_Velocity; public: VelocityComponent() = default; VelocityComponent(int id) : Components(id, getCompId()){}; virtual ~VelocityComponent() = default; static Components *Create(cons...
Python
UTF-8
1,761
3.71875
4
[]
no_license
''' answer ''' class Solution: # @param n, an integer # @return an integer def hammingWeight(self, n): s = 0 while n is not 0: if n % 2 == 1: s += 1 n /= 2 return s ''' resolving ''' def hammingWeight(n): s = 0 while n is not 0: ...
Python
UTF-8
461
3.859375
4
[]
no_license
import turtle #设定循环次数 #实现一个操作,常量 #常量修改变量 length=50 #初始 step=50 #每次加50 num=0 #循环10次, while num<10: print(num) num+=1 turtle.penup() turtle.goto(length*2,length) turtle.pendown() turtle.goto(length*2,-1*length) turtle.goto(-2*length,-1*length) turtle.goto(-2*length,length) turtl...
C++
UTF-8
1,563
2.828125
3
[]
no_license
#include "gameState.h" #include <iostream> #include "main_Menu.h" #include "options.h" #include "raylib.h" // -----***** Game Idea *****----- // // This is gonna be the main menu for the game, I would have... // ... to port this to my Assessable. int main() { int screenWidth = 910; int screenHeight = 540; InitWin...
Go
UTF-8
2,175
3.4375
3
[ "MIT" ]
permissive
package filesort import ( "bufio" "fmt" "io" "strings" "testing" ) func testLessLine(a, b interface{}) bool { return a.(string) < b.(string) } type testLineEncoder struct { w io.WriteCloser } func newTestLineEncoder(w io.WriteCloser) Encoder { return &testLineEncoder{w: w} } func (le *testLineEncoder) Encod...
PHP
UTF-8
20,281
2.640625
3
[]
no_license
<?php // Init function ms_midtrans_core_va_init() { class MS_Midtrans_Core_VA_Gateway extends WC_Payment_Gateway { /** * Class constructor */ public function __construct() { $this->id = 'ms_midtrans_core_va'; $this->icon = ''; $this->has_fields = true; // in case you do not need a cus...
Java
UTF-8
3,953
2.28125
2
[ "Apache-2.0" ]
permissive
/* * Copyright 2021 FormDev Software GmbH * * 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or...
Python
UTF-8
5,523
2.921875
3
[]
no_license
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ ================================================================ ******FECHA CREACION****** Feb 5 09:58:19 2021 ******PROGRAMA******: VIDA MEDIA MUÓN ******INSTITUCION******: Universidad del Valle de Guatemala Introduccion a la Fisica de Particulas *****AUTORES**...
Markdown
UTF-8
639
2.796875
3
[ "MIT" ]
permissive
@vlah.io/ngx-success-box Set of reusable Angular components (factory workers) to help display success messages. ### Usage (code example) ``` constructor(private successBoxWorker: SuccessBoxWorker) { } render(): void { this.successBoxWorker.render(message: string, options: DisplayOptionsInterface = {}): Co...
Python
UTF-8
219
3.5
4
[]
no_license
n = int(input()) c = list(input()) px = 0 py = 0 for i in c: if i == "L": px += 1 elif i == "R": px -= 1 elif i == "U": py += 1 else: py -= 1 print(n - abs(px) - abs(py))
Java
UTF-8
808
3.3125
3
[]
no_license
package QuickSort; public class QuickSort { private int[] sortedArray; public int[] getSortedArray() { return sortedArray; } public QuickSort(int[] arr) { int length = arr.length; sortedArray = new int[length]; sortedArray = arr; qs(sortedArray, 0, length - 1); } private void qs(int[] arr, int left...
JavaScript
UTF-8
706
2.53125
3
[ "MIT" ]
permissive
import { enterChatroom, leaveChatroom } from "../services/users"; export function enterChatRequest(nickname) { return dispatch => { dispatch({ type: "ENTER_CHAT_REQUEST" }); enterChatroom(nickname).then(userObj => { dispatch(enterChat(userObj)) }); }; } ...
Python
UTF-8
1,437
3.046875
3
[]
no_license
from bearlibterminal.terminal import printf as terminal_printf from entities.entity import Entity from entities.food import Food from entities.wall import Wall class Player(Entity): def __init__(self, controller, x=40, y=10, speed=1): self.controller = controller self.x = x self.y = y ...
Python
UTF-8
2,665
3.109375
3
[]
no_license
# -*- coding:utf-8 -*- """ @ide: PyCharm @author: mesie @date: 2019/4/7 21:25 @summary: 简单提取特征 https://blog.csdn.net/red_stone1/article/details/83859845 """ import pandas as pd from datetime import date from o2o.feature.data_util import load_data def get_discount_type(row): """打折类型""" if row == 'null': ...
JavaScript
UTF-8
7,582
2.5625
3
[]
no_license
window.onload = video_controls; var v, pbtn, seekBar, ctime, dtime, fscreen, canvas, can, cbtn, cContents, lineColor, move, poleft, optop; function video_controls() { v = document.getElementById('vContents'); pbtn = document.getElementById('pbtn'); seekBar = document.getElementById('seekBar'); ctime = document...
PHP
UTF-8
1,079
2.515625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use App\Bases\Controller; use App\Http\Requests\ContactRequest; /** * Class ContactController * * @package App\Http\Controllers * @author ARCANEDEV <arcanedev.maroc@gmail.com> */ class ContactController extends Controller { /* -------------------------------------...
Rust
UTF-8
2,606
3.1875
3
[]
no_license
extern crate tl_casper; use tl_casper::{Message, Validator, Weight}; use std::collections::{HashMap, HashSet}; fn main() { // allows us to give ids to messages for ordering let mut id_iterator = interator(0); let validator1: Validator = 1; let validator2: Validator = 2; let validator3: Validato...
C
UTF-8
377
3.03125
3
[]
no_license
#include<stdio.h> #include<stdlib.h> main() { int bilangan, faktor=0, i, batas; printf("prima: "); for(bilangan=2;bilangan<=21;bilangan++){ faktor=0; for(i=1;i<=bilangan;i++){ if(bilangan%i==0){ faktor++; } } if (faktor==2){ ...
Java
UTF-8
601
2.078125
2
[]
no_license
package com.matveyenka.entity; import lombok.AllArgsConstructor; import lombok.Getter; import lombok.NoArgsConstructor; import javax.persistence.*; import java.time.LocalDateTime; @NoArgsConstructor @AllArgsConstructor @Getter @Entity @Table(name = "employee_meeting", schema = "employee_storage") public class Employ...
PHP
UTF-8
1,298
2.53125
3
[]
no_license
<meta charset="UTF-8" /> <?php session_start(); date_default_timezone_set('Europe/Paris'); $db= mysqli_connect("localhost","root","","livreor"); if(!isset($_SESSION["id"])){ header("Location:index.php"); } if(isset($_POST['valider'])){ $message=htmlspecialchars($_POST['message']); $id_user=$_POST['id_u...
C
UTF-8
493
3.421875
3
[]
no_license
#include<stdio.h> void main() { int i=1,no,temp,prev=0,next=1; printf("How many numbers of fabonaci series you want: "); scanf("%d",&no); while(i<=no) { temp=prev; prev=next; next=prev+temp; i++; } printf("\n\nReversed fabonaci Series is:...
Markdown
UTF-8
1,185
2.703125
3
[]
no_license
# Article R314-233 Par dérogation aux dispositions de l'article R. 314-232, le cadre normalisé de l'état réalisé des recettes et des dépenses est remplacé : 1° Pour les activités médico-sociales relevant d'un établissement public de santé, par un état réalisé des charges et des produits qui regroupe les comptes de r...
Ruby
UTF-8
900
2.796875
3
[]
no_license
class Animal < ActiveRecord::Base #Relationships has_many :samples has_one :parameter #Validations CD_REGEX = /\A[A-Z]{3}\s{1}(?:[A-Z_]{4}|[A-Z]{3}[.]{1})\Z/ # 3 Caps + space + (4 Caps Or 3 Caps and a period) SCI_REGEX = /\A[A-Z]{1}[a-z]+\s{1}(?:[a-z]+|sp\.)\Z/ #A capital followed by lowercase 1 space and th...
C++
UTF-8
4,729
2.71875
3
[]
no_license
#pragma once #include "field/field.h" #include "objects/base.h" #include "objects/object.h" #include "fabrics/objectFabric.h" #include "fabrics/landscapefabric.h" #include "landscapes/cliffProxy.h" #include "landscapes/gladeProxy.h" #include "landscapes/swampProxy.h" #include "strategies/istrategy.h" #include "rule...
Python
UTF-8
314
3.140625
3
[]
no_license
class LibDivider: """Library for dividing integers""" ROBOT_LIBRARY_SCOPE = 'TEST SUITE' def divide(self, a, b=1): """Return quotient of division""" if int(b) == 0: raise AssertionError("Fail") self.quotient = int(a) / int(b) return str(int(self.quotient))
Python
UTF-8
3,376
2.96875
3
[]
no_license
#!/usr/bin/env python # coding: utf-8 # In[105]: import os import csv from pathlib import Path path = Path('/Users/yanrujiang/Desktop/python-challenge/PyPoll/election_data.csv') Total_Votes=[] Candidate = [] Khan=[] Correy=[] Li=[] OTooley=[] Name_List=[] # In[106]: with open (path, newline ='')as csvfile: ...
Markdown
UTF-8
10,713
2.546875
3
[]
no_license
--- description: Transcribing knowledge to make sense for me and other people --- # Motyvacija ## Principai _**Have you ever had the feeling that your head is not quite big enough to hold everything you want to remember?**_ Asmeninių minčių kaupimo konceptas egzistuoja nuo senovės laikų ir žinomas, kaip [commonplac...
JavaScript
UTF-8
513
3
3
[]
no_license
// for (var i = 0; i <= 500; i += 100) { // console.log(i); // }; // for (var i = 1; i <= 64; i *= 2) { // console.log(i); // }; // for (var i = 1; i <= 3; i ++) { // console.log(i); // console.log(i); // console.log(i); // }; // for (var i = 0; i <= 10; i += 2) { // console.log(i); // }; // for (var i = 3; i...
Java
UTF-8
2,556
2.265625
2
[]
no_license
package com.ykh.yinmeng.ymykh2.bean; import android.os.Parcel; import android.os.Parcelable; /** * 银行卡列表 */ public class CardBean implements Parcelable{ /** * id : 21 * uid : 34109 * banks : 中国银行 * branch : 河南省-郑州市-金水区-农业路支行 * banksNumber : 45596558633333 * banksAccount : 李四 ...
Shell
UTF-8
2,506
3.890625
4
[]
no_license
#!/usr/bin/env bash # Start Project function start_project(){ # Composer Commands echo "------------- START PROJECT --------------" echo "==================> Executing composer network install ..." composer network install --card PeerAdmin@hlfv1 --archiveFile book-counterfeit-composer@"$version".bna echo "=====...
PHP
UTF-8
99
2.71875
3
[]
no_license
<?php interface PJInterface { public function getCnpj(); public function setCnpj($cnpj); }
C++
UTF-8
4,867
2.8125
3
[ "LicenseRef-scancode-free-unknown", "Apache-2.0" ]
permissive
#include <babylon/core/logging/logger.h> #include <babylon/core/logging/log_message.h> #include <iostream> namespace BABYLON { LogMessageHandler::LogMessageHandler() : _minLevel{LogLevels::LEVEL_QUIET}, _maxLevel{LogLevels::LEVEL_TRACE} { for (unsigned int lvl = _minLevel; lvl <= _maxLevel; ++lvl) { ...
Markdown
UTF-8
1,330
2.609375
3
[]
no_license
# Article R653-76 Les opérations de monte publique relatives aux espèces bovine, ovine, caprine et porcine, définies à l'article R. 653-75, sont réglementées par les dispositions du présent paragraphe précisées par des arrêtés du ministre chargé de l'agriculture. Ces arrêtés fixent, pour chaque espèce et chaque catégo...
C++
UTF-8
9,110
3.421875
3
[]
no_license
#include <iostream> #include <string.h> #include <conio.h> #include <fstream> #define max 100 using namespace std; // concepts of oops used // inheritence, // array of objects, // exception handling, // file handling //Class Patient class Patient { public: char name[100]; char address[100]; char phone[12]; char fr...
Java
UTF-8
5,614
2.265625
2
[]
no_license
package com.e2esp.nestlemythbusting.adapters; import android.content.Context; import android.graphics.Bitmap; import android.graphics.Typeface; import android.support.v7.widget.RecyclerView; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.ImageView; im...
C++
UTF-8
1,547
2.953125
3
[]
no_license
// // eliminarElemDecreciente.h // EDA // // Created by Irene Martin berlanga on 21/05/2019. // Copyright © 2019 Irene Martin berlanga. All rights reserved. // #ifndef eliminarElemDecreciente_h #define eliminarElemDecreciente_h #include <iostream> #include <iomanip> #include <fstream> #include <vector> #include "q...
Markdown
UTF-8
8,440
2.984375
3
[]
no_license
--- title: 千里馬計畫歷程分享 Part 1 - 準備申請 date: 2020-01-28 00:42:54 categories: [Exchange] tags: [exchange, uchicago, usa] --- 我在 2019 年 5 月左右決定在博士生涯的最後一年利用科技部的千里馬計畫補助出國。 現在已經到了進到最後的準備步驟了。 我想最好將我中間過程的經歷與準備記錄下來,以幫助未來也想要申請補助出國去看看的博士生。 <!--more--> ## 計畫介紹 千里馬計畫目前的正式名稱是「科技部補助博士生赴國外研究」。 因此如果要去科技部網站搜尋的話,用正式名稱比較容易找到資料。 這個計畫簡單來說...
Java
UTF-8
925
2.390625
2
[]
no_license
package my.edu.tarc.lab32registration; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import android.widget.Button; public class MainActivity extends AppCompatActivity implements MyDateFragment.OnDateSelectedListener{ private Button buttonDOB; @Override ...
C++
UTF-8
1,361
3.546875
4
[]
no_license
#include "common/common.h" pair<int,int> partion(int* array, int begin, int end, int v) { int low = begin; int high = end - 1; int i = begin; while (i <= high && low <= high) { if (array[i] < v) { if (i == low) { ++i; } else { swap(array[i...
C
UTF-8
3,415
3.65625
4
[]
no_license
#include<stdio.h> #include<stdlib.h> typedef struct { int id ; char name[50] , surname[50] , dept[20] ; float cgpa ; } student ; struct Node { struct Node *left , *right ; int height ; student stu ; } ; int max( int a , int b) { return (a>b)?a:b ; } int height(struct Node *N) { if(N==NULL) return 0 ; ret...
Markdown
UTF-8
20,260
2.59375
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
# DocuSign_eSign::WorkspacesApi All URIs are relative to *https://www.docusign.net/restapi* Method | HTTP request | Description ------------- | ------------- | ------------- [**create_workspace**](WorkspacesApi.md#create_workspace) | **POST** /v2/accounts/{accountId}/workspaces | Create a Workspace [**create_workspac...
C++
UTF-8
955
3.765625
4
[]
no_license
#include<bits/stdc++.h> using namespace std; struct node{ int data; node *next; }; void display(node *n){ while(n!=NULL) { cout<<n->data<<" "; n = n->next; } } void push(node **head_ref, int newData){ node *newNode = new node(); newNode -> data = newData; newNode -> next = *he...
Python
UTF-8
6,029
2.578125
3
[ "MIT" ]
permissive
#!/usr/bin/env python3 import bpy import numpy as np import os MIN_RAD = 0.4 DEC_PERC = 0.995 START_RAD = 0.5 class Path(object): """Creates a 3D path from input points""" def __init__(self, points, title): super(Path, self).__init__() self.level = int(points[0][0]) self.points = points[1:] self....
C#
UTF-8
473
2.96875
3
[]
no_license
using System; using System.Collections.Generic; using System.Linq; namespace Euclidian3D { class Path { private readonly List<Point3D> points = new List<Point3D>(); public List<Point3D> Points { get { return points; } } public void Add(Point3D point) ...
C++
UTF-8
1,140
3.171875
3
[ "Apache-2.0" ]
permissive
/** * @class Score * @brief The Score class encapsulates the functionality of a scoreboard in the Centipede Wars Game. * @author Rashaad Cassim 1099797 and Jason Parry 1046955 * @file Score.h */ #ifndef SCORE_H #define SCORE_H #include "EventManager.h" #include "entity.h" /** * An enum class to...
TypeScript
UTF-8
2,209
4.1875
4
[]
no_license
// 1021. 删除最外层的括号 // 有效括号字符串为空 ("")、"(" + A + ")" 或 A + B,其中 A 和 B 都是有效的括号字符串,+ 代表字符串的连接。例如,"","()","(())()" 和 "(()(()))" 都是有效的括号字符串。 // 如果有效字符串 S 非空,且不存在将其拆分为 S = A+B 的方法,我们称其为原语(primitive),其中 A 和 B 都是非空有效括号字符串。 // 给出一个非空有效字符串 S,考虑将其进行原语化分解,使得:S = P_1 + P_2 + ... + P_k,其中 P_i 是有效括号字符串原语。 // 对 S 进行原语化分解,删除分解中每个原语字符串...
Java
UTF-8
1,159
2.109375
2
[]
no_license
package com.yaoguang.lib.appcommon.utils; import android.app.ActionBar; import android.app.Activity; import android.graphics.Bitmap; import android.graphics.drawable.BitmapDrawable; import android.view.View; import android.widget.PopupWindow; /** * Created by Administrator on 2017/7/4 0004. */ public class PopupWi...
C++
UTF-8
3,956
2.671875
3
[]
no_license
/******************************************************************************** * * * THERMINATOR 2: THERMal heavy-IoN generATOR 2 * * ...
SQL
UTF-8
1,151
3.5625
4
[]
no_license
select tdl.TX_ID as CHARGE_ID ,cast(tdl.ORIG_SERVICE_DATE as date) as SERVICE_DATE ,cast(tdl.POST_DATE as date) as POST_DATE ,sa.RPT_GRP_TEN as REGION_ID ,upper(sa.NAME) as REGION ,loc.LOC_ID ,loc.LOC_NAME ,dep.DEPARTMENT_ID ,dep.DEPARTMENT_NAME ,eap.PROC_CODE as CPT_CODE ,eap.PROC_NAME as CPT_DESCRIPTION ,ser_bill.P...
Python
UTF-8
2,131
2.734375
3
[ "MIT" ]
permissive
""" mbtileserver.py =============== A minimal Flask application for serving map tiles from an MBTiles file. Quick Usage: MBTILES_PATH=/path/to/my.mbtiles python mbtileserver.py Copyright 2013 Evan Friis License: MIT """ from flask import Flask, g, abort, Blueprint, current_app from flask.ext.cache import Ca...
C#
UTF-8
6,231
3.59375
4
[]
no_license
using System; using System.Collections.Generic; using System.Text; using System.Linq; using System.Drawing; namespace NWSELib.common { /// <summary> /// 工具类 /// Utility /// </summary> public static class Utility { public static Random rng = new Random(); /// <summary> /...
Java
UTF-8
3,876
2.140625
2
[]
no_license
package com.morningglory.basic.webservice.ws; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlSchemaType; import javax.xml.bind.annotation.XmlType; import javax.xml.datatype.XMLGregorianCalendar; /** * <p>moMessageResDetail compl...
Python
UTF-8
3,592
2.5625
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
from unittest import TestCase from nose.tools import assert_equal, assert_raises, assert_list_equal from ir_profile_tracker.models import Member, SR, RaceType class TestSR(TestCase): def setUp(self): self.sr = SR(4365) def test_str(self): assert_equal(str(self.sr), "B3.65") def test_par...
Go
UTF-8
2,277
2.875
3
[]
no_license
package models import ( "github.com/jinzhu/gorm" "github.com/lionelritchie29/staem-backend/database" "time" ) type GameTag struct { ID uint `gorm:"primaryKey"` Name string IsAdult bool CreatedAt time.Time UpdatedAt time.Time DeletedAt *time.Time `gorm:"index"` } func init() { db := database.GetInstance() ...
Java
UTF-8
835
1.890625
2
[]
no_license
package com.mindtree.mindtreeemployeesapp.exception.service.custom; public class MindtreeEmployeesAppException extends Exception { private static final long serialVersionUID = -4574959786639190582L; public MindtreeEmployeesAppException() { // TODO Auto-generated constructor stub } public MindtreeEmployeesAppEx...
C#
UTF-8
27,661
2.984375
3
[]
no_license
using System; using System.Data; using CrudUsuarios.Entities; using CrudUsuarios.Services; namespace CrudUsuarios { class Program { static void Main(string[] args) { BD banco = new BD(); int? controlePrincipal = null; int? controleSecundario = null; while ...
JavaScript
UTF-8
5,074
2.71875
3
[]
no_license
import '@materializecss/materialize'; import '../css/options.scss'; const BIBLE_API_BASE_URL = 'https://api.scripture.api.bible/v1/'; const BIBLE_API_KEY = process.env.BIBLE_API_KEY; const DEFAULT_TRANS = '9879dbb7cfe39e4d-04'; const DEFAULT_LANGUAGE = 'eng'; let version_select = document.getElementById('bible-versi...
Markdown
UTF-8
767
2.5625
3
[]
no_license
---- title: eCommerce SEO 1 subtitle: nourishedlife.com cute_description: Doing SEO the right way. description: Carefully crafted product descriptions that encourage results. date: 2014 category: eCommerce | Beauty | Lifestyle image: Category_intro.jpg ---- * Structured tone of voice: happy, fun, casual, passi...