language
stringclasses
15 values
src_encoding
stringclasses
34 values
length_bytes
int64
6
7.85M
score
float64
1.5
5.69
int_score
int64
2
5
detected_licenses
listlengths
0
160
license_type
stringclasses
2 values
text
stringlengths
9
7.85M
Markdown
UTF-8
8,537
3.0625
3
[]
no_license
### Introduction This README file details the set of steps that i have taken inorder to execute the course project for the Getting and Cleaning data course. In this markdown i will explain each step carried by the R attached script. ### Assumptions Before I begin, i would like to laydown certain assumptions * The r...
Python
UTF-8
1,293
3.59375
4
[]
no_license
__author__ = 'matisencale' class DNA_Nucleotide: ''' ''' def __init__(self, DNA_nucleotide_as_string): self.symbol = str.upper(DNA_nucleotide_as_string) self.description = self.get_description() def get_description(self): symbol_description = {'A':"adenine",'C':"cytosine",'G':...
Markdown
UTF-8
1,269
3.609375
4
[ "MIT" ]
permissive
# Feedster ## Description Practice more animation methods using a click event, `.toggle()` notification bell menu, and `.toggleClass` +1 button. ## Objective Feedster wants to add a notification menu and a +1 button to their news feed. [Here's what it looks like]("https://s3.amazonaws.com/codecademy-content/projects/2...
PHP
UTF-8
633
2.671875
3
[]
no_license
<?php //get variables from html form $hash = $_GET['booking']; //connect to db $con = mysqli_connect('localhost','username','password','db'); if (!$con) { die('Could not connect: ' . mysqli_error($con)); } mysqli_select_db($con,"u214074043_glotq"); //get booking by hash $sql1="SELECT * from bookings where hash ...
Java
UTF-8
3,267
1.875
2
[ "Apache-2.0" ]
permissive
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
C++
UTF-8
938
2.921875
3
[]
no_license
#include "Functions.h" #include "World.h" // Возвращает освещённость точки // Бросает много (RAYS_COUNT) лучей в направлении света с небольшим отклонением, усредняет Color getLight(Vector3 const & pos, Vector3 const & normal) { double globalLightIntensity = 0.0; Vector3 dir = -world.globalLightDirection; doub...
C#
UTF-8
236
2.625
3
[]
no_license
using System; using System.Collections.Generic; class Program { static void Main(string[] args) { List<string> list = new List<string>(); list.Add("Hello!"); Console.WriteLine(list[0].ToUpper()); } }
C++
UTF-8
2,665
2.828125
3
[]
no_license
/* Quotek Strategies SDK 3.0 Copyright 2013-2016 Quotek SAS */ #ifndef LOGICALGRID_HPP #define LOGICALGRID_HPP #include <string> #include <sstream> #include <fstream> #include <vector> #include "utils.hpp" #define CELL_NAND 0x01 #define CELL_NOR 0x02 #define CELL_NXOR 0x03 #define CELL_AND 0x04 #define CELL_OR 0x0...
C++
UTF-8
691
3.03125
3
[]
no_license
#include "Parser.h" Parser::Parser(string fileName) { file.open(fileName); } Parser::~Parser() { file.close(); } void Parser::readEdgesFromFile(int *maxSize) { *maxSize = 0; string line; // Read first lines getline(file, line); getline(file, line); // Get int firstEdge = 0, seco...
Python
UTF-8
3,509
3.3125
3
[ "MIT" ]
permissive
import sys import Pbit.pbit_conversion_check class Pbit_Conversion(): """ 変換系の関数を集めたモジュール """ def __init__(self): self.pbit_check = Pbit.pbit_conversion_check.Pbit_Conversion_check() def convert_decimal(self,value): """ This is a function to convert to decimal Arg...
C++
UTF-8
2,437
2.875
3
[]
no_license
#include <bits/stdc++.h> using namespace std; #define int long long void __print(int x) { cerr << x; } void __print(long x) { cerr << x; } // void __print(long long x) {cerr << x;} void __print(unsigned x) { cerr << x; } void __print(unsigned long x) { cerr << x; } void __print(unsigned long long x) { cerr << x; }...
SQL
UTF-8
2,196
2.875
3
[]
no_license
Insert into AccntTypes([Code], [NormalForm]) values ( 'DB','DB'), ('CR','CR'); insert into AccntTrxTypes([Code],[Remarks]) values ('GT','General Transaction'),('CR','Cash Receipt'),('CV','Cash Voucher'),('BK','Bank Transaction') ; Insert into AccntCategories([Code],[Description],[OrderNo],[AccntTypeId]) value...
PHP
UTF-8
2,327
2.78125
3
[]
no_license
<?php class model_kill extends model { public function __construct( $db ) { $this->db = $db; $this->define(); } protected function define() { $t = $this; $t->name = "kill"; $t->nice_name = "Kill"; $t->primary_table = "kills"; $t->primary_key = "kills.id"; $t->table( "kills", array( ...
Python
UTF-8
23,485
2.828125
3
[]
no_license
# Created: 5/7/2019 # Purpose: To get growth rates from stack's zonal stats # PROCESS: # given an input csv, iterate through the unique PCA classes and filter data # from remaining data, record and plot* growth rates: # *record in a csv (based on class_heightMetric.csv) and plot median values + growth rate (from least ...
Java
UTF-8
629
2.3125
2
[]
no_license
package com.lambdatest.api; import java.net.Authenticator; import java.net.PasswordAuthentication; final class SimpleAuthenticator extends Authenticator { private String username; private String password; SimpleAuthenticator(String username, String password) { this.username = username; this.passw...
Java
UTF-8
6,917
2.25
2
[]
no_license
package fr.ecp.IS1220.project.MyFoodora.core.tests; import static org.junit.Assert.*; import org.junit.Before; import org.junit.Test; import fr.ecp.IS1220.project.MyFoodora.core.Courier; import fr.ecp.IS1220.project.MyFoodora.core.Customer; import fr.ecp.IS1220.project.MyFoodora.core.Manager; import fr.ecp.IS1220.p...
Go
UTF-8
1,081
2.953125
3
[]
no_license
package animations import ( sfutils "github.com/GargouillePao/gosfml2ex/utils" "time" ) var Vector = sfutils.Utils.Vector var Slice = sfutils.Utils.Slice type Animation struct { clip AnimationClip clipHead AnimationClip start bool delay float64 } type AnimateCurveFunc func(float32) float32 type OnAn...
Java
UTF-8
1,044
2.671875
3
[]
no_license
package sample; import javafx.animation.Timeline; import javafx.animation.TranslateTransition; import javafx.scene.image.ImageView; import javafx.util.Duration; public class Pea { private int damage = 20; private ImageView imageView; private ImageView imageView2; TranslateTransition peaTrans; pu...
Java
UTF-8
12,224
1.945313
2
[ "Apache-2.0" ]
permissive
/* * JBoss, Home of Professional Open Source * Copyright 2011, Red Hat Middleware LLC, 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 us...
C#
UTF-8
3,506
2.53125
3
[]
no_license
using System; using System.Collections.Generic; using System.Threading.Tasks; using RichardSzalay.MockHttp; using Xunit; namespace Sendy.Client.Tests { public class SendyClientSubscribeTests { private readonly MockHttpMessageHandler _httpMessageHandlerMock; private readonly SendyClient _target; ...
Python
UTF-8
3,770
2.859375
3
[ "Apache-2.0" ]
permissive
# -*- coding: utf-8 -*- """ @author:XuMing(xuming624@qq.com) @description: """ import pickle import pandas as pd from sklearn.feature_extraction.text import TfidfVectorizer from sklearn.feature_selection import SelectPercentile from sklearn.feature_selection import chi2 import config class CharTfidfFeatureGenerato...
Swift
UTF-8
3,235
2.671875
3
[ "Apache-2.0" ]
permissive
// // CardImageTableViewCell.swift // Decktracker // // Created by Jovit Royeca on 16/07/2016. // Copyright © 2016 Jovit Royeca. All rights reserved. // import UIKit import CoreData import SDWebImage class CardImageTableViewCell: UITableViewCell { // MARK: Variables private var _cardOID: NSManagedObjectI...
Java
UTF-8
2,080
2.5625
3
[]
no_license
/* * Copyright (C) 2003-2011 eXo Platform SAS. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This...
JavaScript
UTF-8
250
3.265625
3
[]
no_license
function some(arr, callback) { index= -1; var result = []; var resultIndex = 0; for(var i=0; i < arr.length; i++){ if(callback(arr[i]) === true){ return true; } } return false; }
Java
UTF-8
20,243
2.296875
2
[]
no_license
import java.awt.CardLayout; import java.awt.Font; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.event.MouseAdapter; import java.awt.event.MouseEvent; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import...
PHP
UTF-8
4,508
2.71875
3
[]
no_license
<?php namespace Service; class GeovoileParser { private $x, $_report; public function __construct($report) { $this->_report = $report; } public function setXml($f) { $tmp = glob($f); if (1 !== count($f)) { throw new \Exception($f . ' not found'); }...
TypeScript
UTF-8
2,433
2.546875
3
[]
no_license
import { Request, Response } from "express"; import { classToClass } from "class-transformer"; import CreateCityService from "../../services/Cities/CreateCityService"; import UpdateCityService from "../../services/Cities/UpdateCityService"; import ListAllCitiesService from "../../services/Cities/ListAllCitiesService";...
PHP
UTF-8
3,305
2.65625
3
[ "MIT" ]
permissive
<?php // Do something more than starting session, if needed function tdlStartSession() { Ef_Session::start(); } // Application model... function appGetTitle() { $selectsqlreq = new F_SqlReq(" select ap_title from tdlapplication ",'tdlist'); return $selectsqlreq->getValue(); } func...
C++
UTF-8
812
3.671875
4
[]
no_license
#include <iostream> using namespace std; int main() { float age, newAge; cout << "Please enter your age: "; //Prompt and input for user age. cin >> age; if (age <= 0) { //Invalidate zero and negative inputs. cout << "Invalid...
PHP
UTF-8
929
3.1875
3
[]
no_license
<?php Class Pet { protected $id; protected $petRace; protected $petName; protected $petSex; protected $petAge; public function getPetId() { return $this->id; } public function setPetId($id) { $this->id = $id; } public function getPetRace() { ...
Java
UTF-8
425
1.726563
2
[]
no_license
package com.kelvin.ecbook.activity; import android.app.Activity; import android.os.Bundle; import com.kelvin.ecbook.config.Config; import cn.bmob.v3.Bmob; /** * Created by Kelvin on 2016/4/22. */ public class BaseActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { ...
Java
UTF-8
758
1.71875
2
[]
no_license
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package demonlp; /** * * @author admin */ public class CommonDefine { public static final String VERB = "verb"; ...
Java
UTF-8
463
2.5625
3
[]
no_license
package com.shir.androidfinalproject.Models; import java.text.DateFormat; import java.util.Date; /** * Created by shir on 29-Aug-17. */ public class EventDate extends Votes { public Date date; public EventDate (Date date){ this.date = date; } public String displayDate() { DateFor...
Markdown
UTF-8
1,161
3.421875
3
[]
no_license
--- id: operators-ex title: Exercise --- ### Exercise ### What's the output of the following, write the output next to the code as comment 1. `5 * "5"` = ? 2. `6 + "7"` = ? 3. `1 + "JS"` = ? 4. `1 * "JS"` = ? 5. `5 + true` = ? 6. `6 - true` = ? 7. `7 - false` = ? 8. `8 + false` = ? 9. `true + true` = ? 10. `true + f...
Go
UTF-8
2,563
3.28125
3
[ "MIT" ]
permissive
package main import ( "bufio" "log" "math" "os/exec" "time" ) type IItem interface { GetName() string Aggregate(item IItem) } type ISample interface { Append(item IItem) Empty() bool GetMap() map[string]IItem } type ISampleProcessor interface { GetCmdName() string GetCmdArgs() []string AggregateSample(...
Python
UTF-8
3,911
2.78125
3
[]
no_license
# coding: utf-8 # In[158]: import numpy as np import os import math from scipy import misc from PIL import Image import matplotlib.pyplot as plt import sys from sklearn.manifold import TSNE train_N = 280 test_N = 120 C=40 input_path = sys.argv[1] output_path = sys.argv[2] def average(image_array): average_f ...
C
UTF-8
4,478
3.578125
4
[]
no_license
/* * General implementation of semaphores. * *-------------------------------------------------------------------- * Adapted from code for CS24 by Jason Hickey. * Copyright (C) 2003-2010, Caltech. All rights reserved. */ #include <stdio.h> #include <stdlib.h> #include <malloc.h> #include <assert.h> #include "s...
C#
UTF-8
1,630
3.859375
4
[]
no_license
using System; namespace Kalkulaator { class Program { static void Main(string[] args) { double firstnum; double secondnum; double answer; string ops; Console.WriteLine("\t\t\tConsole Calculator Tutorial in C#\r"); ...
Python
UTF-8
875
3.015625
3
[]
no_license
import cupy as cp y_pred = [1, 2, 3, 4] y_true = [2, 2, 3, 4] y_true = cp.asarray(y_true) y_pred = cp.asarray(y_pred) def check_length(y_true, y_pred): if len(y_true) == len(y_pred): return True else: return False def weight_sum(sample_score, sample_weight, normalize): if normalize: ...
C#
UTF-8
1,593
3.046875
3
[ "MIT" ]
permissive
using System.Collections; using System.Collections.Generic; using UnityEngine; namespace MineQuest { static class Noise { private const float brownianOffset = 32000f; // hack to prevent negative numbers from being fed into Perlin noise public static float BrownianMotion(float x, float z, int ...
Python
UTF-8
1,904
3.265625
3
[ "MIT" ]
permissive
class Validator(object): def __init__(self, attrs={}, **kwargs): self.errors = {} if type(attrs) is dict: for attr in attrs: setattr(self, attr, attrs[attr]) for attr in kwargs: setattr(self, attr, kwargs[attr]) def __getattr__(self, name): ...
C++
UTF-8
989
2.546875
3
[]
no_license
#include <iostream> #include <cmath> using namespace std; #include <Eigen/Core> #include <Eigen/Geometry> #include "sophus/so3.h" #include "sophus/se3.h" int main() { Eigen::Matrix3d R = Eigen::AngleAxisd(M_PI/2, Eigen::Vector3d(0,0,1)).toRotationMatrix(); Sophus::SO3 SO3_R(R); Sophus::SO3 SO3_v(0,0,M_P...
Python
UTF-8
581
3.265625
3
[]
no_license
import numpy as np def func1(x): return (x**3) * (np.log(x)) def regra_trapezio_comp(x, y): rtrap = [] n = len(x) for i in range(n): if i == 0 or i == n-1: rtrap.append(y[i]) else: rtrap.append(2*y[i]) I_1 = (h/2)*sum(rtrap) return I_1 intervalo_ini ...
C++
UTF-8
1,866
3.875
4
[]
no_license
#include <string> #include <vector> #include <cctype> #include <iostream> #include <algorithm> using namespace std; /* -------------- Helper Methods -------------- */ // return true if c is one of ‘ ‘/’,’/’.’/’!’/’?’ bool is_punctuation_mark(char c){ return c == ' ' || c == ',' || c == '.' || c == '!' || c == '?'; ...
Ruby
UTF-8
1,449
2.8125
3
[]
no_license
# ACPI module for 'bd' require 'libnotify' @notifyWarning = false @notifyCritical = false @n = nil def close_notify() unless @n.nil? @n.close @n = nil end end def notify(level, battery, time) close_notify @n = Libnotify.new(:summary => "Battery #{level}", :body => "Battery level...
C++
UTF-8
1,035
3.21875
3
[ "MIT" ]
permissive
#include <iostream> #include <vector> #include <string> using LocPair = std::pair<int, std::string>; using LocGrades = std::vector<LocPair>; LocGrades init_loc_grades() { LocGrades loc_grades; // lower bound, name loc_grades.push_back(LocPair(1, "few")); loc_grades.push_back(LocPair(5, "several")); ...
Markdown
UTF-8
3,308
3.125
3
[ "MIT" ]
permissive
# Team Reflection Designed with R and Plotly, this app visualizes the global risk factors that contribute to human death and has well-designed features that provide answers to the research questions outlined in milestone 1 of this project. The app demonstrates the top risk factors that contribute to global death, the ...
Markdown
UTF-8
5,124
2.765625
3
[]
no_license
--- description: "How to Prepare Any-night-of-the-week Pancake Tower" title: "How to Prepare Any-night-of-the-week Pancake Tower" slug: 425-how-to-prepare-any-night-of-the-week-pancake-tower date: 2021-07-04T07:02:44.113Z image: https://img-global.cpcdn.com/recipes/1265f82658b7d473/680x482cq70/pancake-tower-recipe-main...
Java
UTF-8
2,396
2.125
2
[]
no_license
package com.digiomega.hangrymatesrestaurants.Fragments; import android.content.SharedPreferences; import android.graphics.Bitmap; import android.os.Build; import android.os.Bundle; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.webkit.WebResourceError; impor...
Markdown
UTF-8
3,616
4
4
[]
no_license
# [235. Lowest Common Ancestor of a Binary Search Tree](https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-search-tree/) ## Java 最小公共祖先(自己可以是自己的祖先)。这道题需要获取目标子叶的路径,所以明显得使用 **DFS**(Depth-first search,深度优先搜索)。借助递归之前必须清楚: - 每步应该做什么 - 终止条件是什么 ```java public class Solution { public boolean search(ArrayL...
Python
UTF-8
977
3.03125
3
[]
no_license
from biblioteca_grafo import Grafo def kruskal(grafo): arvore = [] s = [0] for i in range(1, grafo.qtdVertices() + 1): lista = [i] s.append(lista) pesos_ordenados = sorted(grafo.pesos.items(), key=lambda x: x[1]) arestas_ord = [] for elem in pesos_ordenados: arestas_or...
Python
UTF-8
749
2.78125
3
[]
no_license
import tensorflow_probability as tfp %tensorflow_version 2.x # PREPARE DATA tfd = tfp.distributions ## 1. State [cold,hot] initial_dist = tfd.Categorical(probs=[0.8, 0.2]) ## 2. Transaction [cold,hot] transaction_dist = tfd.Categorical(probs=[[0.7,0.3],[0.2,0.8]]) ## 3. Observation (loc->mean;scale->SD) observation...
Python
UTF-8
1,607
2.671875
3
[]
no_license
import xml.dom.minidom as xmldom import re import json #generate the inverted list def proximity_index(words,text,id): r_words="[( ) ' ']+" words_dic={} for x in words: words_dic[x]={} #iterate the documents and find the position for every character for j in range(0,text.length): ...
Python
UTF-8
472
3.3125
3
[]
no_license
import random output = "" notes = ['Ab', 'A', 'A#', 'Bb', 'B', 'C', 'C#', 'Db', 'D', 'D#', 'Eb', 'E', 'F', 'F#', 'Gb', 'G', 'G#'] arpegg = ['Major 7th', 'Minor 7th', 'Dominant 7th', 'Suspended 4th', 'Major 6th', 'Minor...
C++
UTF-8
716
2.609375
3
[]
no_license
/************************************************************************* > File Name: 119.cpp > Author: Wqr_ > Mail: xueduanwei@126.com > Created Time: Thu Sep 27 10:23:32 2018 ************************************************************************/ #include <iostream> using namespace std; int mai...
Java
UTF-8
7,489
2.59375
3
[ "Apache-2.0" ]
permissive
/* * Copyright 2019 The Android Open Source Project * * 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 applica...
Python
UTF-8
521
3.171875
3
[]
no_license
#!/usr/bin/env python x = 23.45 values = [5.9, 4.8, 3.6, 0, 5.1, 7.2, 'wombat'] for v in values: try: result = x / v except ZeroDivisionError as err: print(err) except TypeError as err: print(err) except (KeyError, IndexError) as err: print("Huh??") except: # Exce...
Java
UTF-8
2,372
2.09375
2
[]
no_license
package com.amazonaws.services.dynamodb.model.transform; import com.amazonaws.services.dynamodb.model.BatchWriteItemResult; import com.amazonaws.transform.JsonUnmarshallerContext; import com.amazonaws.transform.ListUnmarshaller; import com.amazonaws.transform.MapUnmarshaller; import com.amazonaws.transform.SimpleTypeJ...
Java
UTF-8
527
2.046875
2
[]
no_license
package com.kakarot.plcenter.test; import java.lang.reflect.InvocationHandler; import java.lang.reflect.Proxy; /** * @author jinzj * @since v4.0.0 */ public class Client { public static void main(String[] args) { TestService testService = new TestServiceImpl(); InvocationHandler handler = new ...
JavaScript
UTF-8
5,288
2.53125
3
[ "MIT" ]
permissive
//scrollmagic controller for desktop and mobile var controller = new ScrollMagic.Controller(); $(function () { var desktopController = null; //set initial values for page width and item height var width = $(window).width() function initScrollMagic(){ //scrollma...
Java
UTF-8
2,509
2.203125
2
[]
no_license
package d4tekkom.presensiuas.ui.login; import com.orhanobut.logger.Logger; import javax.inject.Inject; import d4tekkom.presensiuas.data.DataRepository; import d4tekkom.presensiuas.data.model.Petugas; import d4tekkom.presensiuas.utility.rx.SchedulerProvider; import io.reactivex.annotations.NonNull; import io.reactive...
Java
UTF-8
1,591
2.6875
3
[]
no_license
package com.es.phoneshop.domain.cart.model; import java.math.BigDecimal; import java.util.Currency; import java.util.Objects; public class MiniCart { private int totalProductsQuantity; private BigDecimal totalPriceValue; private Currency currency; public MiniCart(int totalProductsQuantity, BigDecimal...
Java
UTF-8
422
2.234375
2
[]
no_license
package com.dragon.persondata; public class ContactsInfo { public String userName=null; public String userSign=null; public int userImage=0; public String groupInfo=null; public ContactsInfo(String userName, String userSign, int userImage, String groupInfo) { super(); this.userName = userName; ...
C#
UTF-8
1,535
2.578125
3
[]
no_license
using Guru.ExtensionMethod; using System; using System.Collections.Generic; using System.Reflection; namespace Guru.DependencyInjection.Implementation.Configurable { internal class ConfigurableDependencyDescriptor : DefaultDependencyDescriptor { private List<PropertySetter> _PropertySetters = new List...
Java
UTF-8
584
2.671875
3
[]
no_license
package com.in28minutes.springboot.basics.springbootin10steps; import java.util.Arrays; import java.util.List; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RestController; /** * RestController 가 어떻게 작동하는가? * 1. @SpringBootApplication 에서 자동으로 @RestControll...
C++
UTF-8
405
2.96875
3
[]
no_license
// https://helloacm.com/how-to-sort-list-by-hamming-weight-in-c/ // https://binarysearch.com/problems/Sort-List-by-Hamming-Weight // EASY, MATH vector<int> solve(vector<int>& nums) { sort(begin(nums), end(nums), [&](auto &a, auto &b) { auto aa = __builtin_popcount(a); auto bb = __builtin_popcou...
C
UTF-8
1,338
2.796875
3
[ "BSD-3-Clause" ]
permissive
/** * \file os_locate.c * \brief Locates files along the standard built-in search paths. * \author Copyright (c) 2014-2015 Jason Perkins and the Premake project */ #include <stdlib.h> #include "premake.h" int do_locate(lua_State* L, const char* filename, const char* path) { if (do_pathsearch(L, filename, pat...
PHP
UTF-8
3,480
2.734375
3
[ "MIT" ]
permissive
<?php session_start(); //session_destroy(); if ($_GET["logout"]==1 AND $_SESSION['id']){ session_destroy(); $message="Wylogowano !"; //echo $_SESSION['id']; } include("connection.php"); if ($_POST['submit']==...
SQL
UTF-8
9,384
2.953125
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : localhost Source Server Version : 50635 Source Host : localhost:3306 Source Database : pms Target Server Type : MYSQL Target Server Version : 50635 File Encoding : 65001 Date: 2017-08-15 23:05:57 */ SET FOREIGN_KEY_CHECKS=0; -- -----...
Markdown
UTF-8
5,763
2.546875
3
[]
no_license
--- description: "Recipe of Any-night-of-the-week Crispy Baked Rosemary Chicken &amp;amp; Potatoes" title: "Recipe of Any-night-of-the-week Crispy Baked Rosemary Chicken &amp;amp; Potatoes" slug: 662-recipe-of-any-night-of-the-week-crispy-baked-rosemary-chicken-and-amp-potatoes date: 2021-05-30T22:04:19.319Z image: htt...
Markdown
UTF-8
3,341
3.5
4
[]
no_license
# CSS4 Missing Manuals 笔记 ## 第三章 选择符 所有的选择器,都可以连用。 ### 1 类型选择符--选取HTML标签名 ```CSS p { border: 1px solid black; } ``` 可以选择同名的所有HTML标签 ### 2 类选择符--精确控制某一个类型,必须给HTML标签设置一个类名 ```css .copyright { color: #fff; } ``` 一个标签可以同时使用多个类,用空格分割类名. 常见类的使用是,使用一个类控制一个类别的基础样式,再用特定的类控制这个类别中具体类别的表现形式,比如UI框架中经常使用的按钮类: ```ht...
Python
UTF-8
3,975
2.59375
3
[]
no_license
import argparse import io from google.cloud import vision from google.cloud.vision import types import exifread from datetime import datetime def detect_labels(path): """Detects labels in the file.""" client = vision.ImageAnnotatorClient() with io.open(path, 'rb') as image_file: content = image_f...
Java
UTF-8
6,868
4.15625
4
[]
no_license
package sjsu.vo.cs146.project2; enum Color { //colors to check whether the node has been discovered or not WHITE, GREY, BLACK //WHITE is undiscovered, GREY is discovered but not fully explored, BLACK is fully explored } /** * This class defines a Linked List to be used in the Adjacency List * @authors Chris Vo and...
Markdown
UTF-8
342
3.03125
3
[ "MIT" ]
permissive
# vomit control flow callback<->promise magic helper ## example ```js var math = {}; math.sum = function (a, b, cb) { cb(null, a+b); }; math.mul = function (a, b, cb) { cb(null, a*b); }; vomit(math, function (sum, mul) { return mul(sum(1, sum(2,2)), 3); }, function(err, result){ console.log(result); // 15 });...
Java
UTF-8
2,380
2.265625
2
[]
no_license
// import org.openqa.selenium.By; // import org.openqa.selenium.WebDriver; // import org.openqa.selenium.WebElement; // import org.openqa.selenium.firefox.FirefoxDriver; // import java.util.Random; // public class Test { // public static void main(String[] args) throws InterruptedException { // System.setProperty("web...
Java
UTF-8
1,461
2.09375
2
[ "Apache-2.0" ]
permissive
package org.gbif.occurrence.downloads.launcher.config; import org.apache.oozie.client.OozieClient; import org.gbif.occurrence.downloads.launcher.pojo.RegistryConfiguration; import org.gbif.registry.ws.client.OccurrenceDownloadClient; import org.gbif.ws.client.ClientBuilder; import org.gbif.ws.json.JacksonJsonObjectMap...
Java
UTF-8
1,337
2.53125
3
[]
no_license
package com.team3.mbts.entity; /** * * Project:moviebookticketsystem * Package:com.team3.mbts.entity * FileName:Area.java 行政区划表 * Comments: * JDK Version: * Author : 徐晓聪 * Create Date:2015-2-10 下午8:37:53 * Modified By : * Modified Time: * What is Modified: * Version: */ public class Area...
Python
UTF-8
1,997
3.15625
3
[]
no_license
def prim(adj, start): weight = [1000000] * (V + 1) mst = [0] * (V + 1) weight[start] = 0 # 초기화 필수 result = 0 for _ in range(V + 1): # 현재 갈 수 있는 경로 중 가장 가중치가 작은 경로를 선택 min_w = 10000000 min_v = 0 for i in range(V + 1): if mst[i] == 0 and weight[i] < min_...
Markdown
UTF-8
5,590
2.796875
3
[ "Apache-2.0" ]
permissive
# Contributing We love contributions! and we'd love to have you hang out in our community. **Impostor syndrome disclaimer**: We want your help. No, really. There may be a little voice inside your head that is telling you that you're not ready to be an open source contributor; that your skills aren't nearly good enou...
JavaScript
UTF-8
1,926
2.53125
3
[]
no_license
const express = require('express'); const mysql = require('mysql'); const path = require('path'); const bodyParser = require('body-parser'); //https://stackabuse.com/node-js-express-examples-rendered-rest-and-static-websites/ // Gutes Beispiel //https://www.tutorialspoint.com/nodejs/nodejs_event_emitter.htm // Events ...
Java
UTF-8
140
2.3125
2
[]
no_license
package ru.aglophotis.patterns.facade; public class SumOperation { public static int sum(int a, int b) { return a + b; } }
Java
UTF-8
278
2.53125
3
[]
no_license
public abstract class AttendanceAdapter implements Attendence{ Student S=null; void setStudent(Student f){ //object pass S = f; // assign } //@override public void giveAttendanc(){ S.getGiveAttendance();//method call } }
Go
UTF-8
9,529
3.015625
3
[ "MIT" ]
permissive
package main // TODO Test suite // TODO Render to browser - see https://golang.org/doc/articles/wiki/#tmp_6 import ( "encoding/json" "fmt" "html/template" "io/ioutil" "log" "math/rand" "net/http" "os" "reflect" "strings" "time" "github.com/jinzhu/inflection" ) type MazeData struct { Features []s...
Java
UTF-8
714
2.484375
2
[]
no_license
import java.lang.reflect.InvocationTargetException; public class TestingClass { @BeforeSuite public static void test1(){ System.out.println("test 1"); } @Test(prior=1) public static void test2(){ System.out.println("test 2"); } @Test(prior=3) public static void test3(){ ...
Java
UTF-8
5,590
2.046875
2
[]
no_license
package com.official.read.ui; import android.os.Bundle; import android.support.annotation.IdRes; import android.support.v4.widget.SwipeRefreshLayout; import android.widget.RadioGroup; import com.github.jdsjlzx.recyclerview.LuRecyclerView; import com.official.read.R; import com.official.read.base.BaseActivity; import ...
Python
UTF-8
4,792
2.640625
3
[]
no_license
''' Created on Apr 1, 2017 @author: WKaczurb ''' import time import logging from timer.TimerHandler import TimerHandler from timer.TimerSetting import TimerSetting from gpios.GpioPin import GpioPin #from nt import abort # TODO: Add logger, uncomment prints in ZoneHandler.gpioOutput and chnage them to outp...
Java
UTF-8
1,748
3.328125
3
[]
no_license
package chess; import alogrithm.BaseStepNode; import alogrithm.Search; import java.util.HashMap; import java.util.Map; /** * 玩家, 心里边有自己的思路, 有自己的棋局, * @author lixiangyang * */ public class Player { private Board board; private char color; private Search search; private int step; ...
C++
UTF-8
6,516
2.578125
3
[ "MIT" ]
permissive
#include <sstream> #include <Common/Logger.hpp> #include <Math/Vec2.hpp> #include <Render/Renderer.hpp> namespace jerobins { namespace render { Renderer::Renderer() {} // Load opengl void Renderer::Init() { // Initialize OpenGL if (!gladLoadGL()) { jerobins::common...
Markdown
UTF-8
2,217
2.734375
3
[]
no_license
> npm install --save axios <br> > app目录下创建utils目录 <br> > utils目录下创建githubHelpers.js <br> var axios = require('axios'); var id = "YOUR_CLIENT_ID"; var sec = "YOUR_SECRET_ID"; var param = "?client_id=" + id + "&client_secret=" + sec; function getUserInfo (username) { return axios.get('https://api.githu...
PHP
UTF-8
1,628
2.796875
3
[]
no_license
<?php class single_page_css_Public { /** * The ID of this plugin. * * @since 1.0.0 * @access private * @var string $plugin_name The ID of this plugin. */ private $plugin_name; /** * The version of this plugin. * * @since 1.0.0 * @access private * @var string $ver...
Python
UTF-8
1,050
4.125
4
[]
no_license
# Affine cipher: def encrypt(): k1=int(input("enter key1")) k2=int(input("enter key2")) pt=input("enter plain text") ct="" for i in range(len(pt)): x=pt[i] y=ord(x)-ord("a") z=(y*k1+k2)%26 ct+=chr(z+ord("a")) print(ct) def modulo_multiplicative_inverse(A): ...
Markdown
UTF-8
5,454
3.421875
3
[ "MIT" ]
permissive
## Playtest Playtest is a card game printer. It takes card specification as input and prints pages of numbered and versioned cards in the correct quantities so they can be play tested. It can also export a zip file of PNGs that can be added as a deck in [GameCrafter](https://www.thegamecrafter.com/). ### Deck Spec ...
Python
UTF-8
1,599
3.53125
4
[]
no_license
#! /usr/bin/env/python3 import argparse import re import sys import os from pathlib import Path # handle arguments parser = argparse.ArgumentParser( description='A tree clone written in python. This program will take a directory path and recursively print all sub folders and files') parser.add_argument('directo...
Rust
UTF-8
3,511
3.125
3
[ "MIT" ]
permissive
use std::io::prelude::*; use std::u8; #[derive(Copy, Clone, Debug, PartialEq, PartialOrd, Eq, Hash)] pub enum Instr { Forward(usize), Backward(usize), Increment(u8), Decrement(u8), Output, Input, Jump(isize), } pub fn opt(instr: Vec<Instr>) -> Vec<Instr> { use Instr::*; let mut sta...
C++
UTF-8
854
2.546875
3
[]
no_license
#ifndef MIN_HEAP_H #define MIN_HEAP_H #include <string> #include <vector> #include "heap.h" namespace heap_t { // string is the target station name, int32_t is current minimun length // from source_station to target_station typedef std::pair<std::string, int32_t> distance_to_station_t; class MinHeap : public Heap {...
Java
UTF-8
2,210
2.3125
2
[]
no_license
package com.negocio.impl; import java.util.List; import java.util.Queue; import org.apache.log4j.Logger; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import com.negocio.dto.LlamadaDto; import com.negocio.dto.Recepcionresponse; import com.negocio.dto.Re...
C++
UTF-8
26,280
2.671875
3
[ "MIT" ]
permissive
#define URHO3D_ANGELSCRIPT 1 // we want angelscript support #define URHO3D_LOGGING 1 // we want debug log message support #include <Urho3D/Urho3DAll.h> using namespace Urho3D; /// Fixed-rate object rotation via frame dT /// Free-Look camera behaviour /// Custom Debug-Drawing (object local primary axes) ///...
C#
UTF-8
2,780
3.390625
3
[]
no_license
using System; using System.IO; using System.Net; namespace SkinAndCapeStealer { internal class Program { static void Main(string[] args) { if (!Directory.Exists(@"Result")) Directory.CreateDirectory(@"Result"); Console.WriteLine("[!] Choice\n1 - Optifine Cape Stealer\n...
C#
UTF-8
1,175
2.859375
3
[]
no_license
using UnityEngine; using UnityEngine.UI; public class Hud : MonoBehaviour { [SerializeField] private Text _infoPlayer1, _infoPlayer2; private readonly string [] _templatesText = {"Time for Player1", "Time for Player2", "Your turn", "Defence!", "Abandon defense"}; private static Hud _instance; p...
Python
UTF-8
463
4.5625
5
[]
no_license
# Basic if statement number = 3 # Will print the statements indented in the if statement # number = -5 # Will not print the statements indented in the if statement if number > 0: # Condition print("The number is positive") #...