branch_name stringclasses 149
values | text stringlengths 23 89.3M | directory_id stringlengths 40 40 | languages listlengths 1 19 | num_files int64 1 11.8k | repo_language stringclasses 38
values | repo_name stringlengths 6 114 | revision_id stringlengths 40 40 | snapshot_id stringlengths 40 40 |
|---|---|---|---|---|---|---|---|---|
refs/heads/master | <file_sep>import json
import pandas as pd
countries_dict = {}
# countries_list = []
# with open('static/world.json', 'r') as worldfile:
# data = json.load(worldfile)
# countries = data["objects"]["subunits"]["geometries"]
# print(countries)
# for country in countries:
# countries_dict[country["... | 112389ae522d9a333b4dbdad94d1e84d7104978c | [
"JavaScript",
"Python"
] | 4 | Python | suryasoma/Covid19Dashboard | 0c565e6e9b44a6151460f7f9fccd977837944d50 | 5ae124a22e236775772c0e94c5817a0f9d0ff990 |
refs/heads/master | <file_sep># Product Inventory
- We have users and products
- Products have name and brand
- Products also have variants of color or size
- A user has products and variants of that product but not necessarily all of them
- A user's inventory contains the users products and the variants they have of that product
## See... | bc04f0721ba073c83b97c1752de0317981d73177 | [
"Markdown",
"PHP"
] | 8 | Markdown | javif89/product-inventory | e2d223e990e852642124a801bcf9838c4614a3ec | 12824cbb9e8839f6e795e637a4a884181f6a5e12 |
refs/heads/master | <file_sep>import React from 'react';
import './Landing.css';
import Flash from "./../../Assets/flash.png";
const Landing=()=>{
return(
<div className="landing-container">
<div className="landing-left">
<h1 className="landing-header">can you type...</h1>
<div className="type... | 44e526de23ce0f564f00cc16dbdb9f1237b536a4 | [
"JavaScript"
] | 1 | JavaScript | Digvijaysingh0707/Flash-type | a041cbd38d17045fe575301cffb342d9e6011179 | 88e7cbe97e67f09cc50a7dd9e7fac2ed45faf806 |
refs/heads/master | <file_sep>import { Component } from '@angular/core';
import { HttpModule, RequestOptions, XHRBackend, Http, Response, Headers } from "@angular/http";
import {
ReactiveFormsModule,
FormsModule,
FormGroup,
FormControl,
Validators,
FormBuilder
} from '@angular/forms';
import 'rxjs/add/operator/map'
@Componen... | 526084369ef5b4ad791b1b36351b6e64b5c4dfb0 | [
"TypeScript"
] | 1 | TypeScript | isha2510/angular_example | 68726c42bdb78a7357b138b88d34b0b5caf31ca1 | 300f59f147c768334d15219ff752497b133d1acd |
refs/heads/master | <repo_name>RarceD/ESP_32_noob<file_sep>/Access_Point/main.c
//This is just for testing the struct manipulation:
#include <stdio.h>
#include <stdint.h>
#include "AP.h"
//For compile: 'gcc main.c AP.c'
int main()
{
light_open_info lamp;
lamp.starts[1] = 22;
printf("%i\n", lamp.starts[1]);
modified_struc... | 7d78929f800642a497d8b5a668819e61cea7cba1 | [
"CMake",
"Markdown",
"C#",
"Python",
"C",
"C++"
] | 21 | C | RarceD/ESP_32_noob | 93c817405ff045c6336715460c1572b137c2e071 | 5374b1b673099a348891b1bbcf14656331fe4105 |
refs/heads/master | <file_sep>#!/usr/bin/env python
import socket
import sys
import logging
import contextlib
import threading
import os
from datetime import datetime
host = 'localhost'
port = 8989
if len(sys.argv) > 1:
port = int(sys.argv[1])
if "-v" in sys.argv:
log = logging.getLogger(__name__)
log.addHandler(logging.St... | e072a6dadfaf30aabfb60b1ff2e094b0e2039bd4 | [
"Markdown",
"Python"
] | 2 | Python | hplar/smtpServer | 7f302c20e621a33040906d2bf695fc594b2d6e36 | ad81b81ffee7eb2a3fe70fc8e3e9be734af3c73b |
refs/heads/master | <repo_name>longfeiXie/rpc_xielf<file_sep>/rpc/src/main/java/com/epower/rpc/service/ServiceDiscovery.java
package com.epower.rpc.service;
import com.epower.rpc.entity.Request;
import com.epower.rpc.util.seralizable.RemoteMethodInfo;
public abstract class ServiceDiscovery {
public abstract RemoteMethodInfo discover(... | 14ae92e8466bd278c2b27433b17b55feed5e4e39 | [
"Java",
"Maven POM"
] | 10 | Java | longfeiXie/rpc_xielf | 9281498ed49317ee00468ace22ece964c5aceeb2 | 964e8742750cac46fa820fd64666068c9aa56ec6 |
refs/heads/master | <repo_name>jensengbg-jakob-reesalu/nodejs-read-write-files-boilerplate<file_sep>/app.js
const fs = require("fs");
// let newQuote = ""
// fs.readFile("quote.txt", "utf8", (error, contents) => {
// newQuote += contents;
// });
// let readFile = fs.createReadStream("OscarWilde.txt");
// let writeFile = fs.createWrite... | 548b90ce7bb2a815adb0c200a4046fcaef9f2755 | [
"JavaScript"
] | 2 | JavaScript | jensengbg-jakob-reesalu/nodejs-read-write-files-boilerplate | 7f1bc653c67d5d5c06bb8631446a18660d5bdff5 | a0fd526796afe08d2b25fa4ebd8582d4b5056039 |
refs/heads/master | <repo_name>buzz1274/simple_budget<file_sep>/simple_budget/models/budget/budget_category.py
from __future__ import unicode_literals
from django.db import models
from simple_budget.helper.sql import SQL
from sqlalchemy import func, desc, asc
from budget_type import BudgetType
class BudgetCategory(models.Model):
... | 76a2cd02c961463f06acec623936c3655df46d90 | [
"SQL",
"HTML",
"JavaScript",
"Markdown",
"Python",
"Text"
] | 50 | Python | buzz1274/simple_budget | 283f0401d83cf14152ca7ea109377e62ba74f8d3 | 6f2a9f70ba38198abe78a5dd23662866ee8d8650 |
refs/heads/master | <file_sep>using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Management.Automation;
using System.Text;
using System.Threading.Tasks;
namespace PowerShellHelper.Models
{
/// <summary>
/// Class for running powershell scripts
/// </summary>
internal class Po... | efd40d250808a973a67d9b7e6da841451f80cef3 | [
"C#"
] | 2 | C# | mark-e-kibbe/PowerShellHelper | c235dfe618c539f6ccea00c4ad370d04618455ec | 1e41008481a470176950e35f4c7f00f58ea87dbe |
refs/heads/master | <file_sep>import Vue from 'vue'
import Router from 'vue-router'
Vue.use(Router)
export const routerList = [
{
path:'/menu',
component:()=>import('../views/menu/menu.vue'),
name:'菜单管理'
},
{
path:'/role',
component:()=>import('../views/role/role.vue'),
name:'角色管理'
},
{
path:'/manger',
... | 66581d6575227cde4df1add53010d199cf39a5b9 | [
"JavaScript"
] | 5 | JavaScript | SLQLLLL/bgProject | 56707a7d4f6fee61807da7f94d18399166d9d1bf | 825dd984db1c985a181efc14855147f909ff197f |
refs/heads/master | <file_sep>**Testing**
_Zero to Mastery Course_
```
<h1>Hello World!</h1>
```
<file_sep>//! Function Declaration
// function checkDriverAge(age) {
// var age = prompt("What is your age?");
// if (Number(age) < 18) {
// alert("Sorry, you are too young to drive this car. Powering off");
// } else if (Number(a... | 309a9cbe57025376a2bce7e32464cf994d9bf899 | [
"Markdown",
"JavaScript"
] | 3 | Markdown | NathanielDaniels/Zero-to-Mastery | 3f5b249f908a1c794d6ca5920d94fa5db6064368 | a96b79dd65bd31c5417379c5ed07f777c4d9cac4 |
refs/heads/master | <file_sep>//Java program to find quotient and remainder
package javapractice;
import java.util.*;
public class QuotientRemainder {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner sc=new Scanner(System.in);
System.out.println("Enter the numbers to find quotient and remainder")... | e86d8f7191f3f2537d227cc1d6eaeacdfa88cf2e | [
"Markdown",
"Java"
] | 6 | Java | shraazp/java_basic_programs | 12ed544886aeaff4b348670a10135b74f31c3180 | eed96298b96e383642df99ddfb8b34ab7fbc4f45 |
refs/heads/master | <repo_name>Detravoir/Detradio<file_sep>/index.php
<!--PROGRAM IN START MENU-->
<!--<li class="dropdown-item launch" data-launch="LAUNCH CLASS" data-title="TITLE" data-icon="ICON" data-url="URL">NAAM</li>-->
<!--PROGRAM ON DESKTOP-->
<!--<div class="desktop-item launch desktop-icon" data-launch="LAUNCH ICON" data-title... | c2caab887c967db9c2d73a3276d62a5c50fd91b0 | [
"Text",
"PHP"
] | 12 | PHP | Detravoir/Detradio | 43a50769908a9a505fa42765c372f960637e3f3d | 8754e658c66895fda90020081a3ee695959e643b |
refs/heads/master | <file_sep>#include <cmath>
#include <string>
#include <time.h>
#include <iostream>
using namespace std;
class Car { //Основной класс
private:
string brand; //св-тво с брендом машины
int coast; //св-тво с ценой машины
//Car() { // Конструктор с параметрами по умолчанию
// brand = "none";
// coast = 0;
//};
... | bc8e6c50851303892832d0348089b56ac9dc192d | [
"C++"
] | 1 | C++ | Agetiv/I-and-E | 1c1d9c5a6e31db26bfd83c8d3f841d091fe5c21b | 17fe8571d8a2e8a7a5e60343606003603a186f82 |
refs/heads/master | <file_sep>var webpack = require("webpack");
module.exports = {
devtool: 'sourcemap',
output: {
filename: 'ionic-modal-select.min.js'
},
plugins : [
new webpack.optimize.UglifyJsPlugin({ minimize: true })
],
module: {
loaders: [
{ test: /\.js$/, exclude: [/app\/lib/, /node_modules/], load... | 7ba1212d3c22a6d8dd9da2f3dc3a8288ba046e95 | [
"JavaScript"
] | 1 | JavaScript | vaishalipepr/ionic-modal-select | 75a8ed1dcf16cbc7a00b30c1f692de0c8182906f | 2a6c3c7b72421d0e3d6ae6c464b7603d7dd8fec0 |
refs/heads/master | <repo_name>calvinrahmat/Valley-eCommerce-prototype<file_sep>/src/main/java/com/piper/valley/ValleyApplication.java
package com.piper.valley;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationB... | 25fc6dfc249cb11623b4642aae0aaca330a56288 | [
"Java"
] | 1 | Java | calvinrahmat/Valley-eCommerce-prototype | 007cd0518e8556b15983cc2d9618011f6afcaddc | f30537f0e39bc117dd70d899c87c77dd9952f264 |
refs/heads/master | <file_sep>module.exports = {
/* Your site config here */
plugins: [
"gatsby-plugin-sass",
"gatsby-plugin-image",
"gatsby-plugin-sharp",
"gatsby-transformer-sharp",
"gatsby-plugin-react-helmet",
{
resolve: "gatsby-source-filesystem",
options: {
name: "images",
path... | 8c893e7c0917fba994403f9058381dce72f4062c | [
"JavaScript",
"Markdown"
] | 10 | JavaScript | IsaacArnold/fiber-landing-page-two | 000e3c525b0ad7a2e3244888ed3c79eebbb7b099 | a73453958498445dbfeee36c0bdf41d1ab52366c |
refs/heads/master | <file_sep>package com.alian.testingmod.common.util;
import com.alian.testingmod.common.init.TMBlocks;
import com.alian.testingmod.common.init.TMItems;
import net.minecraft.block.Block;
import net.minecraft.item.Item;
import net.minecraftforge.event.RegistryEvent;
import net.minecraftforge.fml.common.Mod;
import net.mi... | f10850be5945b96817c71d95a85046a9d96a5652 | [
"Markdown",
"Java"
] | 5 | Java | Alian7911/TestingMod | fa6e7c0b2535a613c4b608444a1758e4f73eb51c | d0188b0d197b8791c1eb0b9dd65dde9dd1514d2b |
refs/heads/master | <repo_name>dhakle/nyc-pigeon-organizer-web-062617<file_sep>/nyc_pigeon_organizer.rb
require "pry"
def nyc_pigeon_organizer(data)
# write your code here!
pigeon_list = {}
data.each do |key, val|
val.each do |k, v|
v.each do |bird|
if pigeon_list[bird]
if pigeon_list[bird].has_key?(key)
... | d3c72061857338e807bc325582127c598552b5de | [
"Ruby"
] | 1 | Ruby | dhakle/nyc-pigeon-organizer-web-062617 | 3d8bc82d610e5ef61eed3be0344c51eb7ed8589f | 1442d3864f79650095157f9ce038b9093276bfb2 |
refs/heads/master | <repo_name>cr-gonzalez/browser-extension<file_sep>/README.md
# browser_extension
a simple browser extension/addon that adds a magenta border to all websites.
<file_sep>/borderify.js
document.body.style.border = "10px solid magenta";
| 9793ec190aa5010562f705e8be859aaf09c39ca5 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | cr-gonzalez/browser-extension | 2760508882270f261ccd56635eb81c167ff3158f | 20c5a48d644af316aca76cbb4eff0fe3303bac8d |
refs/heads/main | <file_sep>use clap::{App, Arg, SubCommand};
use mkplaylist::{error::Error, operation::Operation, operation::PlayList, run};
use std::path::Path;
fn main() -> Result<(), Error> {
let matches = App::new("mkplaylist")
.subcommand(
SubCommand::with_name("index").arg(
Arg::with_name(... | 5ae1f91b1f06791b164972acd27e476ae6f616c2 | [
"Rust",
"SQL"
] | 10 | Rust | amigo-rich/mkplaylist | bcdc9d08a4aa52c823259de2c1a2be96cdac9c0f | 6c0d556869c51d7c8c2878eca3220a2aa9c41ddf |
refs/heads/master | <repo_name>lazyker/studyDev<file_sep>/.svn/pristine/33/338d15e8e7a73ea5b98a97e8757dcbd8450f07aa.svn-base
"# studyDev"
<file_sep>/src/main/webapp/erd/tonysearch.sql
SET SESSION FOREIGN_KEY_CHECKS=0;
/* Drop Tables */
DROP TABLE IF EXISTS H_COMPANY_USER;
DROP TABLE IF EXISTS H_RECRUIT;
DROP TABLE IF EXISTS H_USER;
DRO... | bbb8eb892a4b4edbc31d9376098f0d6f6129f13b | [
"Markdown",
"SQL"
] | 2 | Markdown | lazyker/studyDev | 4c775cbeb170ab7ec5afd8e10da757f791309b51 | 07d9f31419a79a530cfa0eed5741d5b4d5f36ac6 |
refs/heads/master | <file_sep>package com.chaoliu1995.blog.entity;
import java.io.Serializable;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import com.chaoliu1995.blog.util.Constant;
import lombok.Data;
/**
* @ClassName: ArticleType
* @Desc: TODO 文章类型表
* @author c... | b8ae21855197e7a8ebdef8f5797e287482be24f6 | [
"JavaScript",
"Java",
"Maven POM",
"INI"
] | 22 | Java | chaoliu1995/Blog | ed51b46a1b28ce6b04cab838fdf60fb1ffa1b655 | 01eb92abc756e8e631d3d5982619d64cdd966f80 |
refs/heads/master | <repo_name>krlvi/wc-rs<file_sep>/Cargo.toml
[package]
name = "wc-rs"
version = "0.1.0"
authors = ["<NAME> <<EMAIL>>"]
edition = "2018"
[dependencies]
spmc = "0.2.2"
hashbrown = "0.3.0"
[profile.release]
lto = true<file_sep>/README.md
# wc-rs
Counting words with Rust. This project is simply for learning purposes.
## ... | ebd88db8cb66edd305e18cfd86dbf6a1e974442f | [
"TOML",
"Rust",
"Markdown"
] | 3 | TOML | krlvi/wc-rs | b89da8176c9215a7ec0ca69d1f418ca06808e901 | 01f56adcc4cc9f2eebf2586c1c585c8f01885cf0 |
refs/heads/master | <repo_name>balaji043/Billing-Angular<file_sep>/src/app/core/confirm-popup-box/confirm-popup-box.component.ts
import { Component, Inject } from '@angular/core';
import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material';
import { ConfirmationPopup } from 'src/app/model/confirmation.model';
@Component({
selecto... | 2ea50e663110d35f30164193f18a5c19ce7a6952 | [
"TypeScript"
] | 40 | TypeScript | balaji043/Billing-Angular | f9672751a5292cfe3f95fbb3299b4aa53b51bdb3 | 62a7e2a90eeafb84e2e3bb2b71efd1e721bf6e65 |
refs/heads/master | <repo_name>MendozaWeb/CrudPHP<file_sep>/CrudPOO/controllers/controllerActions.php
<?php
declare (strict_types = 1);
// Si no se ha enviado nada por el POST y se intenta acceder al archivo se retornará a la página de inicio
if ($_POST) {
require_once '../models/Personas.php';
$persona = new Personas();
... | 19f8bbd79e6cc6ad5b2d0025cc530967d5564f33 | [
"JavaScript",
"SQL",
"PHP"
] | 6 | PHP | MendozaWeb/CrudPHP | d6701e3b8c564a134afb38f038303d5314fbda45 | b97104859d279441bc63d9adbaac270c6f4da03d |
refs/heads/master | <repo_name>mystic-cg/LeetCode<file_sep>/easy/0013_roman2integer.py
#!/usr/bin/env python
# -*- coding: utf-8 -*-
def roman2int(roman: str) -> int:
"""
roman to integer
:param roman:
:return:
"""
roman_dict_common = {
"I": 1, "V": 5, "X": 10, "L": 50, "C": 100, "D": 500, "M": 1000
... | f5067c942e7cf8bc6c97f5b4536dc1e98e4752bb | [
"Markdown",
"Python"
] | 5 | Python | mystic-cg/LeetCode | 1bc7be69012bd9233e5b3242f172c67ab44ebd52 | 350657e8d2adc96a85508cf0df48f32784771d61 |
refs/heads/master | <repo_name>Romankhom/goit-react-hw-05-phonebook<file_sep>/src/components/ContactForm/ContactForm.jsx
import React, { PureComponent } from "react";
import InputTelMask from "react-input-mask";
import PropTypes from "prop-types";
import styles from "./ContactForm.module.css";
export default class ContactForm extends Pur... | a49df8493623fe2d715d440e8e52c2fb7f473ba6 | [
"JavaScript"
] | 7 | JavaScript | Romankhom/goit-react-hw-05-phonebook | 00ae4bd69d78ebc049d1a819b66ba19687378d3a | 870d2e87dc643f1541ef0449ee0a3b9a9a077c3e |
refs/heads/teads | <file_sep>import {expect} from 'chai';
import {createElementWithAttributes} from '#core/dom';
import '../../../amp-story/1.0/amp-story';
import '../../../amp-story/1.0/amp-story-page';
import '../amp-story-shopping';
import '../../../amp-story-page-attachment/0.1/amp-story-page-attachment';
import {registerServiceBui... | 2f58d9f288ea12aa80a2c845e03b8b18d95325b6 | [
"JavaScript",
"Dockerfile",
"Shell"
] | 11 | JavaScript | ebuzzing/amphtml | ef4e1c4846d5b3ea975ada8f8bc256faaaf06687 | 339f0fd67189e7c7066f8b353b3109e2da3c7aa2 |
refs/heads/master | <repo_name>danyashorokh/tensorflow_cnn<file_sep>/main.py
import tensorflow as tf
import numpy as np
import matplotlib.pyplot as plt
import cv2
# from tensorflow.examples.tutorials.mnist import input_data
# mnist = input_data.read_data_sets("MNIST_data/", one_hot=True)
dir_input = 'input/'
train_patches = np.load(dir... | e21f67dfd01ef407727cd75e7789948c8bd18a6e | [
"Python"
] | 2 | Python | danyashorokh/tensorflow_cnn | b45ae9fc5bb08e69287858f2c9db5f89a4f98289 | 61e46d388f119551b840455a51d411c4f0bc330b |
refs/heads/master | <repo_name>OggYiu/GGJ2018<file_sep>/source/Assets/StageUI.cs
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class StageUI : MonoBehaviour
{
public Image imageStageBegin;
public Image imageStageClear;
const float UI_INIT_POS_X = -350;
private... | 18b55cf07760e8d82ac2728582417d3ff2446f4a | [
"C#"
] | 17 | C# | OggYiu/GGJ2018 | 1bd1e751c75411ab6f8efe7c2487a6d2f68749e0 | e46a068d09678b6f1af8f8804bf78c5c2202ce0a |
refs/heads/master | <repo_name>neerajgoyal12/QuickChat<file_sep>/Podfile
platform :ios, '7.0'
xcodeproj '/Users/systology/Documents/play/Obj-C/QuickChat/QuickChat.xcodeproj'
pod 'QMChatViewController', '~> 0.1'
pod 'TTTAttributedLabel'
pod 'QuickBlox'
pod 'QMServices'
| bff88008159773e25bf23a1d1db9eec160403d89 | [
"Ruby"
] | 1 | Ruby | neerajgoyal12/QuickChat | a7ae97a0cfc1a916e0d94074f7814a8ea9891653 | 5c4a18d1063ed27ab9ceed281fcc09cbbe966f17 |
refs/heads/master | <repo_name>shacowgit/iot9608-com<file_sep>/main.c
#include "netclient.h"
#include "fileoperator.h"
#include "dealana.h"
#include <pthread.h>
pthread_t rev_thread; //receive thread
pthread_mutex_t revtex; //the signal for receive buffer operator
char revdata[1500]; //net receive buffer... | cacac8507816976fe50b860adb337861f33c1e7f | [
"C"
] | 5 | C | shacowgit/iot9608-com | 6499cb52e77a2a7a97df6cf196f979f358646a21 | 770cde3dcfa37484a5f56db7ac57f2759acc540a |
refs/heads/master | <file_sep><?php
$access_token = '<KEY>';
$baseUrl = "xxxxx";
?>
| a19e026456e6beee32e22e0795f7265e060031a3 | [
"PHP"
] | 1 | PHP | Champy8/Line--Messaging-API | 7f5c517e2ec2be7220317f85c1bf356593323fab | a85abd3498ae49a05617e38dfa8edf345e4861f7 |
refs/heads/master | <file_sep>import { Routes } from '@angular/router';
import { resourceRoutes } from '@app/resource/resource-routing.module';
export const appRoutes: Routes = [
...resourceRoutes,
];
<file_sep>import { Injectable } from '@angular/core';
import { Model, ModelCollection, models } from '@model/index';
@Injectable()
exp... | df59ddb831d6e230916bfc4c5ff2766248fa7d34 | [
"TypeScript"
] | 11 | TypeScript | DawnAngel/rest-api-admin | 3fe19c92debb671167ecf9159784d9d794d63434 | d10314db1ec704480f13a223d56730b6413e197a |
refs/heads/master | <repo_name>mthiesen/jonathan_converter<file_sep>/src/lib.rs
use eyre::bail;
use eyre::Result;
use eyre::WrapErr;
use rayon::prelude::*;
use std::{
fs::{read_dir, DirBuilder, File, OpenOptions},
io::{BufWriter, Read, Write},
path::{Path, PathBuf},
};
// ------------------------------------------------------... | 9c52ebd90681bb7970cf25a116ff59bcfb870302 | [
"Markdown",
"Rust",
"TOML"
] | 4 | Rust | mthiesen/jonathan_converter | 7ed74abdfe526c5f5c58140a8e54b901a6b239a4 | 12f43ef059d81bf0f336c523999f64e331e5ce7f |
refs/heads/main | <file_sep>package com.test;
interface ICalculator{
public int add(int x, int y);
}
public class Sp02_Lambda {
public static void main(String[] args) {
ICalculator calc = new ICalculator() {
public int add(int a, int b) {
return a + b;
}
};
int c = calc.add(30, 50);
System.out.pri... | 6599efcd5fd853ec5c045f1e3bce2146208353e8 | [
"Markdown",
"Java"
] | 2 | Java | Gamaspin/JavaWorkshop01 | 409057fac721520a9f1de99e80f9b2547d80d278 | efe48b0c021de287191cb874c8a435be3aaaf28a |
refs/heads/master | <repo_name>devsubhajit/devsubhajit.github.io<file_sep>/finescroll/js/scrollbar.js
(function ($) {
$.fn.finescroll = function (options) {
var defaults = {
alignment: "right",
value:'0px',
width:'10px',
bgColor:'rgba(0,0,0,0.4)',
fgColor:'rgba(0,0,0,... | d9bc1370ddc8e429e6e4316f24bbe29d508759f9 | [
"JavaScript",
"Markdown"
] | 4 | JavaScript | devsubhajit/devsubhajit.github.io | 3a8bd973a4a8f71e9a11484a7494fba02b7974c8 | 2b8370dba8dc07f984dd874835bf91e6b562b739 |
refs/heads/master | <file_sep>package Eliza;
public class Main {
/**
* @param args
*/
public static void main(String[] args) {
ElizaMain e = new ElizaMain();
e.readScript(false, "/script");
String name = "";
String room_address = "";
try {
name = args[0].toString();
room_address = args[1].toString();
System.out... | 2222d0da3a047e00f3ae6c1fa066159243059486 | [
"Java"
] | 1 | Java | luppittegui/chat | afdcbbde4275a3dc224e1641b483c71b32869b8e | 6e8bf6c80ebd09f576e4699106856f5f6b1f0628 |
refs/heads/master | <repo_name>alfdahlman/sw-react<file_sep>/src/components/SingleMovie/SingleMovie.js
import React from 'react';
import './SingleMovie.css';
const singleMovie = (props) => {
let content = (
<div className="no-content">
<p>No movie selected</p>
</div>
)
if(props.singleMovie?.fields){
content = (
... | ef61eb7b11714e6059881b05a1c8f07d8029edaf | [
"JavaScript"
] | 2 | JavaScript | alfdahlman/sw-react | 33d8bde6a67e7ce34aeffc3ee426245e4f0ec5b0 | 7a00a35131e4b899617d6fd81f0851a30a4ae416 |
refs/heads/main | <file_sep><?php
namespace OguzhanUmutlu\AntiAuraBot;
use pocketmine\entity\Entity;
use pocketmine\event\entity\EntityDamageByEntityEvent;
use pocketmine\event\entity\EntityDamageEvent;
use pocketmine\event\Listener;
use pocketmine\nbt\tag\ByteArrayTag;
use pocketmine\nbt\tag\CompoundTag;
use pocketmine\nbt\tag\String... | f76717ffeee7f98fd2f1518163cc297809d61967 | [
"Markdown",
"PHP"
] | 5 | PHP | CoreDaDev/AntiAuraBot | b420d48214ff9003171d25c27d10283ce55cdf4e | 06eeb3295900db083a0718866ced6e15c8351f00 |
refs/heads/master | <repo_name>deng565430/remotebranchmanagement<file_sep>/server/routers/home.js
/*
子路由
*/
const router = require('koa-router')();
const index = require('../controllers/index');
module.exports = router
.get('/',index.index())
.get('getBranchInfo', index.getBranchInfo())
.get('createBranch', index.createBranch()) | 097b4ceffe23b2a918eed419e382d3a5b0af41ef | [
"JavaScript"
] | 1 | JavaScript | deng565430/remotebranchmanagement | 2956d9ba4f6b9b55afe8c57b9832e096e23e3687 | 86e57d24c6603ac77a062692a3a25029fbd99e2b |
refs/heads/master | <file_sep>const Discord = require('discord.js');
const moment = require('moment');
const { prefix, token } = require('./config.json')
const client = new Discord.Client();
client.once('ready', () => {
console.log('ready')
})
client.on('message', message => {
console.log(message.content);
if(message.content.sta... | 4488d428d61401b8a5ab30d8f088b41599aa6420 | [
"JavaScript"
] | 1 | JavaScript | lolitsozzie/Simple-discord-bot | 9abb9e0061b375f41932c95dbc079d674b522335 | d4ea9a7bb1e0fb84c8c7ec2c38ae544182d0201d |
refs/heads/master | <repo_name>virajnilakh/Part0<file_sep>/src/gash/router/client/WriteChannel.java
package gash.router.client;
import java.util.concurrent.Callable;
import io.netty.channel.Channel;
import routing.Pipe.CommandMessage;
public class WriteChannel implements Callable<Long>{
//long id=0;
//ArrayList<CommandMessage> messa... | ee52f96bf1df49b8425ec963e3d9a80cd7be6758 | [
"Java",
"INI"
] | 5 | Java | virajnilakh/Part0 | 93c1c0ef6bf9764983e4a63cd821c58b5de75c74 | 8cd82502304e908b4e6e54184dc3359fe8d3586e |
refs/heads/master | <repo_name>phoenixTW/medly-components<file_sep>/packages/utils/src/hooks/useSWRAxios/types.ts
import { AxiosError, AxiosRequestConfig, AxiosResponse } from 'axios';
import { SWRConfiguration, SWRResponse } from 'swr';
export type AxiosConfig = AxiosRequestConfig & { url: string };
export type Return<Data = unknown, E... | f8fe266a40fe2d1167dacaa4737c1519ee8fc8d1 | [
"Markdown",
"TypeScript",
"JavaScript"
] | 6 | TypeScript | phoenixTW/medly-components | 6ec538b80ec1c59a0ed44da0c1e6886c2d1288d0 | eae6947ba018f72818fbc165c88b45317e2dcc08 |
refs/heads/master | <repo_name>CHOISEONGJU/mbticombi<file_sep>/js/mbticb.js
var arr = [];
//영역지정
for (var i = 0; i <= 15; i++) {
arr[i] = [];
for (var j = 0; j <= 15; j++) {
arr[i][j] = 0;
}
}
//오른쪽 아래 큰부분
for (var i = 4; i <= 15; i++) {
for (var j = 4; j <= 15; j++) {
arr[i][j] = 5;
}
}
//왼쪽 위
for (var i = 0; i <= 7; i++) {
fo... | ced1606268032720a02ef39294bf3a71e9c480b4 | [
"JavaScript"
] | 1 | JavaScript | CHOISEONGJU/mbticombi | 723edbed9f76219e81efec76607c9d15f070b8eb | 448231f162b3cd85c1dcf97b893c3e1263eb8d50 |
refs/heads/master | <file_sep>package com.fxpgy.fetch;
public class Constant {
public static String ONLINE_USER_LIST="online_user_list"; //在线用户列表
public static String CUREN_USER = "curen_user"; //当前用户
public static String SESSION_COLLECTION = "session_collection"; //会话集合
public static String DISTANCE_LOGIN = "distance login"; ... | 6ab8d21fd79e81b34f2c79b9239d3b861b2c9fae | [
"Java",
"Maven POM"
] | 9 | Java | cbpaul/test | d5dae758fdcc242c42dbd9cbb1115ce96e79bdf3 | 0ad1a3eef5bbcc246b55a30afb1e55bbb4e877d2 |
refs/heads/master | <repo_name>hanrufan/week3<file_sep>/src/app/components/content/content.component.ts
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-content',
templateUrl: './content.component.html',
styleUrls: ['./content.component.scss']
})
export class ContentComponent implements OnInit {
titl... | c5988d5194dfbe1c565bcb90b7afad0ba6cda94a | [
"TypeScript"
] | 1 | TypeScript | hanrufan/week3 | 73d7f21ca1383472b47b1d36ad3c70a4940a4a14 | 070b9128735e973a65d9c01db267d86049d1100d |
refs/heads/master | <file_sep><?php
defined('BASEPATH') OR exit('No direct script access allowed');
?><!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Welcome to Yearbook</title>
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
<!-- Generic page styles -->
<link rel="... | 417254b3f01739c2d66a42fbfb3aa96f245b2864 | [
"PHP"
] | 1 | PHP | uagarwal744/yearbook | 89417e6764092a530e6f696cdd1d00cbf621e94c | 0861f32d877f122a97a9538126ac34e12023fdca |
refs/heads/master | <file_sep>import random
DESC_FIELD = False
class Field:
"""Finite Field representation.
A finite field of prime (or prime power) size.
Attributes:
char (int): Characteristic
dim (int): Dimension
size (int): Number of elements in field
irr (Polynomial): Irredu... | 5f462330aeab5b1aa82e0785934e75d9ea99d47b | [
"Markdown",
"Python"
] | 3 | Python | nparzan/finite_field_arithmetic | 5de30240efe9e9bdffa80172d7fe60c8bca8c39c | 814d4dfbe528671545ddfe32b02a2deea320f8c5 |
refs/heads/master | <repo_name>chaidongnzh/lsyncd<file_sep>/init.sh
#!/bin/sh
cat <<EOF > /etc/supervisord.conf
[supervisord]
nodaemon=true
EOF
if [[ $sshd_enable ]];then
cat <<EOF >> /etc/supervisord.conf
[program:sshd]
command=/usr/sbin/sshd -D
user=root
autostart=true
autorestart=unexpected
numprocs=1
startsecs = 0
stdout_logfile=/... | 668d5e74123f5d7e3369fc66185bad93ca6bad93 | [
"Shell",
"Lua"
] | 3 | Shell | chaidongnzh/lsyncd | d59f4909b1fc41a6d323a2a0e73c32a418c1f78c | 4db9cccd75e78df130585c091047a5818336fcbf |
refs/heads/master | <file_sep>const casesForVentilatorsByRequestedTime = (infectionsByRequestedTime) => {
const percent = 2 / 100;
const casesForVents = infectionsByRequestedTime * percent;
//
return casesForVents;
};
export default casesForVentilatorsByRequestedTime;
<file_sep>const infectionsByRequestedTime = (currentlyInfected,... | 15ba02f009cab4d0f4fcd528a79e6fc693dd8fa0 | [
"JavaScript",
"INI"
] | 3 | JavaScript | bankymono/covid-19-estimator-js | 1a61be799dc19a84aa04a8164bff8a97e581e21c | 5b62eed72503f107b215647e579501640f461620 |
refs/heads/master | <file_sep>using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.IO;
using System.Linq;
using System.Runtime.Serialization.Formatters.Binary;
using System.Security.Cryptography;
using System.Text;
using System.Windows;
namespace WPFLoginWindow
{
class ListInstance
{... | fed6823128e8817f15c4eab2ad389ede051d3ed8 | [
"C#"
] | 8 | C# | zerq98/WPFLoginWindow | a27ffba786f19a6b1aa1e639217d7408eb76e8ac | 602592f47261dee40e0b9b4bc9c86acbf0591eec |
refs/heads/master | <repo_name>bibekaryal/paradise-youtubesubs<file_sep>/js/main.js
console.log('PYTS Loaded...');<file_sep>/paradise_youtubesubs.php
<?php
/*
Plugin Name: Paradise Nepal Youtube Subs
Description: Display YouTube sub button and count
Version: 1.0.0
Author: <NAME>
Author URI: https://homea.sgedu.site/colibri-wp/
*/
// Exit... | 9e535189a63bd3ef4a42cb5d9ba69e7df152b9d4 | [
"JavaScript",
"Markdown",
"PHP"
] | 4 | JavaScript | bibekaryal/paradise-youtubesubs | fb5f015fdd673ce5adb7d803d26b55d98c58fc96 | 157786dc66e421bec866884bdfefd29380945327 |
refs/heads/main | <file_sep>Editorial Statistics
====================
This plugin allows editors to view total content published with the following available settings:
1) Start Date and End Date: Set the start and end dates for the report or choose from one of four predefined date ranges.
2) Report Columns: You must choose at least o... | 673290a53451457eaa981580a975a41f6d635c9c | [
"Markdown",
"PHP"
] | 2 | Markdown | isabella232/editorial-statistics | 0423cea10345dc4a07796e474912031ca34b55ca | 27118c1c8076e9bdbb090984000b9940e5184c68 |
refs/heads/main | <repo_name>iMyGirl/spyder_stadiumgoods<file_sep>/code.py
from bs4 import BeautifulSoup
from urllib.request import urlopen
import re
import requests
import urllib.request
import json
import pandas as pd
import csv
# 利用colab云上编译
# 保存文件
# from pydrive.auth import GoogleAuth
# from pydrive.drive import GoogleDrive
# from... | 5609ada09e80702e2ace1f4354dec194cb924f97 | [
"Markdown",
"Python"
] | 3 | Python | iMyGirl/spyder_stadiumgoods | 4d98cc53b4f81a73c968720a8da0ff404e4da002 | 77578321c9255dde13572a3f17e2f7b0cd05b090 |
refs/heads/master | <file_sep>package com.example.sphinxassignment.ui
import android.annotation.SuppressLint
import android.os.Bundle
import android.view.Menu
import androidx.appcompat.app.AppCompatActivity
import androidx.appcompat.view.menu.MenuBuilder
import androidx.recyclerview.widget.DefaultItemAnimator
import androidx.recyclerview... | f5b016e77d2326f703c96f5f69f6b0b4277244ed | [
"Kotlin",
"Gradle"
] | 12 | Kotlin | ganii001/Sphinx-Assignment | 4a768ae324c1919903d04cc97b8ae1a2f99e2dea | f2df52c5c115a798e911372b438713cf2e92ff00 |
refs/heads/master | <file_sep>package ru.newsagregator.App.controller;
import org.springframework.security.core.Authentication;
import org.springframework.security.core.context.SecurityContextHolder;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web... | 6235d490d70e438ca95e8d5397c5bd447160e4cc | [
"Java"
] | 4 | Java | AnBlag/TrainingProject-Aggregator | 24079d1921087a6efc30ead4dd9f1f185ef6fde8 | cb2ba9b3759970131e1fec9f4051a5154a907e5e |
refs/heads/master | <repo_name>darkarty/cards<file_sep>/cards.js
function card(name, suit, value){
this.name = name;
this.suit= suit;
this.value = value; //value is ranked from 2 to 14, from 2 to A. (Suits don't determine rank in poker)
}
function deck(){
this.cards=[];
this.create = function(){
names = ['2','3','4','5'... | 45f7b14a0f5f1fc06b17dce7c22c19008a718798 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | darkarty/cards | bf57c4cec95f281e8be5febc0e13bab95ba98d4e | 528f361a60db52a10e85945e9b34b12dfb73807b |
refs/heads/master | <file_sep>/*
Developed by <NAME>
*/
package edu.groupchat.app;
import javafx.application.Platform;
import javafx.event.ActionEvent;
import javafx.fxml.FXML;
import javafx.scene.Node;
import javafx.scene.control.*;
import javafx.scene.control.Button;
import javafx.scene.control.ScrollPane;
import javafx.scene.control... | 42e08caa31d78bd73ea601aed5dcefac41dd83bc | [
"Java"
] | 3 | Java | jurquha/java-groupchat | 3eed33e9ea0fc6ce3cd9898ca793e30664cbb9ec | 66c2315b0fedcd652654ee89decceddbcc43e4d1 |
refs/heads/master | <file_sep>/**
* Created by USER on 27/07/2017.
*/
// TODO: Agregar mas marcas y categorias.
var brands = {
values:["Nike", "Adidas", "Puma", "Guess", "Lacoste", "Victoria's Secret", "Zara", "Microsoft" ,"Stradivarius", "Asus", "HP", "BMW", "<NAME>"],
message: 'Please type select brand'
};
var categories = {
... | fd206fb82b26281e097edc8a415cdfcd9213e38c | [
"JavaScript"
] | 6 | JavaScript | dperezg1/ReviewsServer | 4502ef601e622c5306331b157e4337bdd4ed8d64 | 8a7e23049d3eea1eaf8c37929fcd0f4b2394ed87 |
refs/heads/master | <file_sep># principles
AP Computer Science Principles project for the test
<file_sep>public class Pixel {
public byte r, g, b;
public Pixel(int r, int g, int b) {
this.r = (byte)(r * 0x0FF);
this.g = (byte)(g & 0x0FF);
this.b = (byte)(b & 0x0FF);
}
public Pixel(int rgb) {
... | 8a8dfea81d4887a6c5c6bdf7af350e3650c013c1 | [
"Markdown",
"Java"
] | 3 | Markdown | au5ton/principles | 68a4d7bd9d5ef4b5aba1e1c59dad335e241d59ea | 299e9d3f44eec1c4fb61348cbee6748709275d1a |
refs/heads/master | <repo_name>racket99/hello-world<file_sep>/pages/views.py
from django.shortcuts import render
from django.conf import settings
# Create your views here.
# pages/views.py
from django.http import HttpResponse
def homePageView(request):
print(settings.BASE_DIR)
return HttpResponse('Hello, World! My pre... | b8587bfd6f80c0aa722ee2ee604371b100f3963c | [
"Python"
] | 1 | Python | racket99/hello-world | 2384a83074706607595e45040df020ba5cb33ffd | d1e7b69af289491c6dd788393ab02b31fbf12b0a |
refs/heads/master | <repo_name>steve0079/dog-api<file_sep>/src/components/Display.js
import React, { useState, useEffect } from 'react';
import axios from 'axios';
const Display = () => {
const [image, setImage] = useState({})
const fetchData = async () => {
const response = await axios.get('https://dog.ceo/api/breeds/i... | 6682358544738df542066b743e715e6c445d74d8 | [
"JavaScript"
] | 2 | JavaScript | steve0079/dog-api | e636f48cd28dc2f9cc1e7d255674ddbc744c70ec | 71c78bffc052a48538098c8fdbf25c3ee351a872 |
refs/heads/master | <repo_name>Bever001/silkroad-laravel<file_sep>/app/Http/Controllers/Frontend/RankingController.php
<?php
namespace App\Http\Controllers\Frontend;
use App\HideRanking;
use App\HideRankingGuild;
use App\Http\Controllers\Controller;
use App\Model\SRO\Shard\Char;
use App\Model\SRO\Shard\CharTrijob;
use App\Model\SRO\Shar... | 55ef70ccf244fe35eda556cc7e0bbf7a3f407f20 | [
"PHP"
] | 1 | PHP | Bever001/silkroad-laravel | 93cf96bfcf7a451ab43a7827b381e2d3c42de680 | 3a68619d9e751351bc5ef002e21ab7252009a8d4 |
refs/heads/master | <repo_name>doubleInc/the-last-dance<file_sep>/src/pages/dashboard.js
import React from "react";
import { Router, Link } from "@reach/router";
import { css, ClassNames } from "@emotion/core";
// Materialui components
import Typography from "@material-ui/core/Typography";
import Button from "@material-ui/core/Button... | 5fca688a469c00d5d22dfba79093a4f1d3a22669 | [
"JavaScript",
"Markdown"
] | 10 | JavaScript | doubleInc/the-last-dance | 9c7f9bb4101f99f0d9555d5ab9c1571cd6a91305 | b3dd276f971805cb68d44f152ba8f4956e0295ad |
refs/heads/master | <file_sep>class SportsProp {
constructor(obj) {
this.id = obj.id;
this.title = obj.title;
this.prop_date = obj.date;
this.week_id = obj.contest_board_id;
this.away_team = obj.away_team;
this.away_team_won = obj.away_team_won;
this.home_team = obj.home_team;
this.home_team_won = obj.hom... | 81137744f2dfb05fbe34b1b5f3c762298597bff4 | [
"JavaScript"
] | 12 | JavaScript | veloblank/binary-butterfly-frontend | 0d5bb023d87397e5b8b90d2f1dd88e2c4e560d10 | dc0994363cbffebdd27ca228ca12939a7a95a586 |
refs/heads/master | <repo_name>yoshiyuki-km-ny/beanstalk-to-slack<file_sep>/BeanstalkToSlack/Function.cs
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Net.Http;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using Amazon.ElasticBeanstalk;
using Amazon.Elas... | 7c6fd49371005a844db43ecef96afc95700e3015 | [
"C#"
] | 1 | C# | yoshiyuki-km-ny/beanstalk-to-slack | 096dee8ae8fb20ee83e1488aa2da63353e84659c | c88c6ade7eaeb8385b53ff2094f8bfb2a24bab8c |
refs/heads/master | <file_sep>
/* 穴掘り方による迷路配列生成
* 通路=0; 壁=1
*
* Cf.https://algoful.com/Archive/Algorithm/MazeDig
*/
function createMaze(width, height){
// 配列の定義と初期化(全て壁で埋める)
var x, y;
maze = new Array(width);
for(y = 0; y < height; y++) {
maze[y] = new Array(height);
for(x = 0; x < width; x++) {
... | 64a23c20912c45105afaa8c1a4247404fe946220 | [
"JavaScript",
"Markdown"
] | 5 | JavaScript | tomiokario/infinite_maze | 0b0cd2b395641e50b574b9fb0c6023e1249bf30c | c1c30f17a4a2f060e84ba133e151d0de4064411b |
refs/heads/master | <repo_name>whoisyourvladie/Oauth<file_sep>/Shared/SaaS.Mailer/Models/Notification.cs
using System;
using System.Reflection;
using System.Xml.Serialization;
namespace SaaS.Mailer.Models
{
public class Notification
{
public Notification() { }
public Notification(Notification notification)
... | 489f43775806ad7c294a3550d544c4fe665521dd | [
"JavaScript",
"C#",
"Text",
"Markdown"
] | 391 | C# | whoisyourvladie/Oauth | 202f7c042114ca1f734a48c84dc95e300a1b1f5f | eeb1494447665ffc3f1baa98b6e1b272fec5629e |
refs/heads/master | <repo_name>dimashermanto/COVIDDashboardApp<file_sep>/app/src/main/java/com/example/kawalcovid/adapter/IndonesiaMostHitProvinceAdapter.kt
package com.example.kawalcovid.adapter
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.recyclerview.widget.RecyclerView
impo... | 9cdee8338289c0b15c87a8341cb799aefadaf38c | [
"Kotlin",
"Gradle"
] | 14 | Kotlin | dimashermanto/COVIDDashboardApp | 4a1380573e21e99658d6d1b07cafde86caabc807 | e8207768333153f6a812f74239889c5be9e8e4b8 |
refs/heads/master | <repo_name>andreepdias/IA0001<file_sep>/Anealling/plot.py
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
plt.style.use('classic')
arquivo = 'uf250_01.cnf'
tipo_resfriamento = '8'
numero_iteracoes = 250000
numero_testes = 10
prefixo = ''
arrays = [0.0] * numero_testes
for i in range(0, numero... | 9dc9567245c8d9f56ef5324cb29131053fb0582f | [
"Markdown",
"Python",
"Makefile",
"C++"
] | 7 | Python | andreepdias/IA0001 | a740e44a874bbc9018298874917555efe8416725 | 8df317283b734653b70b3dfe2d3d6fcdc1970d26 |
refs/heads/master | <file_sep># Intro to C++ Inheritance & Polymorphism
#### 本文关键词:Inheritance、Polymorphism、Abstract base classes
### First: Inheritance继承
子类从基类继承characteristics和behaviors
Access control访问控制符
`public`: accessible by anyone
`protected`: accessible inside the class and by all of the subclasses
`private`: access only inside... | 9abca6e4c00dbd783005d10a113057a91b0ba390 | [
"Markdown",
"C++"
] | 10 | Markdown | stonebegin/CppNotebook | bcf4c012913484c13ee3a31f33d783a51e168026 | 5d73dd9d3244ce9f5b9803b9133514d988230c05 |
refs/heads/master | <file_sep>import React, {Component} from 'react'
import {connect} from 'react-redux'
import Sub from './Sub.js'
import Slide from './Slide.js'
import load from '../../shared/actions/creators/load.js'
import socketInit from '../../shared/actions/socketInit.js'
import listenSocket from '../actions/creators/listenSocket.j... | e42bdccda817cd7a6ec741de48654dd2ef0c8ca8 | [
"JavaScript"
] | 36 | JavaScript | e-jigsaw/jim | f08955127d3412774ada4880a34f11d1d9e153c8 | b2f717378fdb8c508ea3c4cd7a1947c93f7c19cf |
refs/heads/master | <file_sep># LSTMStockPredictor
A very simple implementation of a LSTM Neural Network that tries to predict the next day close price of a stock using data from Yahoo Finance.
<file_sep>import pandas as pd
import numpy as np
from sklearn.preprocessing import MinMaxScaler
from keras import models
from keras import la... | 43f5da61c7d7a4a5a6170717670c14fe11a72629 | [
"Markdown",
"Python"
] | 2 | Markdown | boydjc/LSTMStockPredictor | 48cab268eeebe7176c99e210ad4b5915498254e1 | be44e95f6911b1abb3ec44072f7c922904ee9ef0 |
refs/heads/master | <file_sep>from typing import List, Dict, Any, Tuple
import string
import random
def n_partition(words: List[str], n_length: int) -> Dict[Tuple[str], List[str]]:
"""The function divides a given words list into different
partitions of length n_length. Each partition will be set as a
key from a dict w... | c795f9630c0fb1b3344bf3c1ed614c897364b6ff | [
"Python"
] | 2 | Python | dstumPY/text_analysis | 7cef07be194e7329aacbe1591117a680f173c3d6 | 63baeeaa52333db0bcb7a8f3093a2b0172bbec5d |
refs/heads/master | <file_sep>import { ethers, Contract } from 'ethers';
import detectEthereumProvider from '@metamask/detect-provider';
import Wallet from './contracts/Wallet.json';
import addresses from './addresses.js';
// const getBlockchain = () =>
// new Promise(async (resolve, reject) => {
// window.addEventListener('load', ... | 06748ef081c1e639ebaf142aa73809699cc73f6a | [
"JavaScript"
] | 2 | JavaScript | VictorONN/smart-contract-wallet-dapp | 5d2dde81efdf5c54d76b6f9610f943abe283a30c | b0e0a7dfb4c4a9bfa986becf4c5c429a6c19ee11 |
refs/heads/master | <file_sep>/**
*
*/
package cz.hanusova.fingerprintgame.service;
import cz.hanusova.fingerprintgame.fingerprint.Fingerprint;
/**
* @author khanusova
*
*/
public interface FingerprintService {
/**
* Saves new fingerprint to separate file <br/>
*
* @param fingerprint
* {@link Fingerprint} sen... | a612ff1fafc88d2a45b975fb32d73a95a31248d6 | [
"SQL",
"JavaScript",
"Maven POM",
"INI",
"Java"
] | 38 | Java | khanusova90/fingerprint-game | d12808e6a8795f5259f5874a285b8b79d9def537 | e2d3229c04cf39428187123d8491f94f029fc3a3 |
refs/heads/master | <repo_name>NickoManu/manuel<file_sep>/Esercitazioni 1.1/Es1_1_4/src/Es1_1_4.java
/*Data una matrice effettuare la trasposta della stessa.*/
import java.util.Scanner;
public class Es1_1_4 {
public static void main(String [] args) {
Scanner kb = new Scanner (System.in);
int r=0, c=0, n=0;
Syst... | 925b86570e59aefd3c23f719bfa285c66b52d1f1 | [
"Markdown",
"Java"
] | 34 | Java | NickoManu/manuel | d703b8969aa0b894bdd433592edc5230388520d0 | 74fc87f265a37c5b8e62c371f6e7ead679bc983c |
refs/heads/master | <repo_name>4p00rv/affiliates<file_sep>/README.md
# Affiliates
[](https://travis-ci.org/binary-com/affiliates)<file_sep>/assets/js/code.js
function collapseNavbar(){$(".navbar").offset().top>50?$(".navbar-fixed-top").addClass("top-nav-collaps... | fee9b0931de515a4ee7504d8f1162dbb81c3daec | [
"Markdown",
"JavaScript"
] | 2 | Markdown | 4p00rv/affiliates | a67c87ca67901d40f6166baedd69ebf482dbfff4 | 9a57103a9d99017c81f66b6f0ebdebf977910238 |
refs/heads/main | <repo_name>babycake-swap/babycake-uikit<file_sep>/dist/widgets/Menu/components/NavMenu.d.ts
import React from "react";
import { MenuEntry as MenuEntryType } from "../types";
interface Props {
isPushed: boolean;
links: Array<MenuEntryType>;
}
declare const NavMenu: React.FC<Props>;
export default NavMenu;
| ab2f7465b18b83d28261b11df2ad6432b47e876d | [
"TypeScript"
] | 1 | TypeScript | babycake-swap/babycake-uikit | ed1b12ef3e27905b1765f7beb1760d06d24f97f6 | 0b0dbb7ab8e9f8ca919d084abb8453ec165f2367 |
refs/heads/master | <file_sep>import { Context } from "koa";
import { employees } from '../data/employees';
const Vue = require('vue')
const renderer = require('vue-server-renderer').createRenderer();
const app = new Vue({
data: {
employees: employees
},
template: `
<div>
<table>
<tbody>
<tr>
<th>UUID</th>
... | fdb1235a3781a971aad3bb2c3a3b0b042c38bb09 | [
"TypeScript"
] | 1 | TypeScript | xvaara/node-templating-benchmark | 2d83001e37bb9365d667460eaa837d408e8a9f14 | c8f5f15db8daa69cdb6a0d52e1237cb703df460d |
refs/heads/master | <file_sep>import asyncio
import time
from PIL import Image
import yaml
from pyocr import pyocr
from pyocr import builders
from ADBlib import ADBlib
import sys
import re
friends = int(input("Barátok:"))
class Main:
def __init__(self):
with open("config.yaml", "r") as f:
self.config = yaml.load... | 16220104ec3b377765cd730958e7ab788e1d0683 | [
"Markdown",
"Python"
] | 3 | Python | davidfegyver/Pokefriends | 8b9b445d68df4115a6b2d81ddd1350c53bebcc8e | 4ac4266d5ec799c247aff3d352beb5d9ed48547c |
refs/heads/master | <repo_name>lnsantos/panel-player-lineague-dragon<file_sep>/app/src/main/java/com/powernepo/lineaguedragon/MainActivity.kt
package com.powernepo.lineaguedragon
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import androidx.databinding.DataBindingUtil
import com.powernepo.lineaguedragon.dataBin... | 290732f7aad84a2cc5ffa73f8329ef0d6495f4a9 | [
"Kotlin",
"Gradle"
] | 3 | Kotlin | lnsantos/panel-player-lineague-dragon | e06195049d37a4c9c7ecbf0502e2b728c67c1349 | 5b0a738fd3a1189110233eed1e8f7d8ecf044cb0 |
refs/heads/master | <repo_name>mkotsabiuk/PolisGarant<file_sep>/PolisGarant/Controllers/HomeController.cs
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Threading.Tasks;
using MailKit.Net.Smtp;
using Microsoft.AspNetCore.Mvc;
using MimeKit;
using PolisGarant.Models;
namespace Po... | dee630a3c53517777902ebf82bc628a908c4cf22 | [
"Markdown",
"C#"
] | 3 | C# | mkotsabiuk/PolisGarant | 9a09344c513a6ce63cd1e08867d7d908e6fb2553 | 612610f267ffa6096619170a3cfded7d077604ec |
refs/heads/master | <file_sep># cerebro-npms
> Cerebro plugin to search NPM packages via NPMS API
<div align="center">
<img src="https://github.com/FreaKzero/cerebro-npms/raw/master/readme.gif" />
</div>
## Features
- Shows Quality, Maintenance and Popularity Scores from NPMS
- Shows if Package is deprecated, insecure or has a unstabl... | 2056ee1b41dd63a0ae0b3e75afd5a7c827a8a0fa | [
"Markdown",
"JavaScript"
] | 9 | Markdown | FreaKzero/cerebro-npms | a34c0d34b27f8a482254c87be6789390ef77053b | 9d677ef5cd28ae3bb203946143fd6771507283f2 |
refs/heads/master | <repo_name>donbalon4/API_Alfresco<file_sep>/APIAlfresco.php
<?php
/**
* @author: <NAME>
* @Version: 1.2
*/
/**
* @usage:
* $conexion = APIAlfresco::getInstance();
* $conexion->connect($urlRepository,$User,$Pass);
* $conexion->checkResponse();
* $conexion->setFolderByPath($folder);
*
* This API uses the file... | b472539d89de4a3bdb14e7626a89977d4b82c364 | [
"Markdown",
"PHP"
] | 4 | PHP | donbalon4/API_Alfresco | d35b6488f229d54f1934a90ea311db801407cc88 | b178a3d4c80af799dfd8ef3b55a897f285dba2a9 |
refs/heads/master | <repo_name>markanator/lireddit<file_sep>/client/src/hooks/useGetPostFromUrl.ts
import { usePostDetailsQuery } from "../generated/graphql";
import { useGetPostId } from "./useGetPostId";
export const useGetPostFromUrl = () => {
const intId = useGetPostId();
return usePostDetailsQuery({
variables: {
id: i... | d756d16b13bf40ccdda0d191e57412b5e1bb6ca8 | [
"Markdown",
"TypeScript",
"JavaScript"
] | 4 | TypeScript | markanator/lireddit | e3dcc776b0ee18606ed97d92379512b9264d4ccb | 21170ecad1deffc3625e994b83ba6a045ac94de2 |
refs/heads/master | <repo_name>SoroushMehraban/Jpotify<file_sep>/src/com/GUIFrame/GUIFrame.java
package com.GUIFrame;
import com.Interfaces.PlaylistOptionLinker;
import com.Interfaces.ShowSongsLinker;
import com.Interfaces.SongPanelsLinker;
import com.MP3.AppStorage;
import com.MP3.MP3Info;
import com.Panels.CenterPanelSections.SharedSon... | d2bf5ece439ad04ab25cfda01026b72aaf1fd52f | [
"Markdown",
"Java"
] | 18 | Java | SoroushMehraban/Jpotify | 6ec563bd5956194306ee3d98ecfc217dcdb9c527 | 2d1d4da1c6fea593c2fbc66082b9a3f421db3d9a |
refs/heads/master | <file_sep>#define _GNU_SOURCE
#include <dlfcn.h>
#include <stdio.h>
#include <link.h>
typedef void* (*dlopen_fcn)(const char *, int);
static dlopen_fcn real_dlopen = NULL;
void *dlopen(const char *filename, int flag) {
if (!real_dlopen) {
real_dlopen = dlsym(RTLD_NEXT, "dlopen");
}
fprintf(stde... | a3e84de5db76b02b6275fc753952f5e8cab0614d | [
"Markdown",
"C",
"Python",
"Makefile"
] | 5 | C | agateau-g/copydeps | 9d93a7d5bc7659b199eb6f79177024a1f67b032f | 6cf3e80f748714eaa0dfa41297b41b3a8aeaa269 |
refs/heads/main | <repo_name>RakeshKrGorai/Python-File-Handling-MySQL<file_sep>/Hotel Management System.py
#Project For Hotel Management System Using Python,File Handling and SQL Database
#Importing Required Modules
import csv
import random
import os
import mysql.connector as c
con=c.connect(host='localhost',user='root',passwd='<PASSW... | 2e1fbbaaa5fdcaa897f1090ffb1b057ea93d34dc | [
"Markdown",
"Python"
] | 2 | Python | RakeshKrGorai/Python-File-Handling-MySQL | e98c644278bda4ec494131a8a854f4d848a9f207 | d45c6e9a0d5a721c708f6b8391f438161e5d874e |
refs/heads/master | <file_sep>const express = require('express')
const router = express.Router()
const busboyPromise = require('./busboy-promise')
const processRows = require('../data/process')
const {collectionName} = require('../data/scheme/util')
const schemeMap = require('../data/scheme')
const getScheme = filename => {
const mat... | 013337bf9e8bb785d9e8b5fdb7e43522cc2fcea9 | [
"JavaScript"
] | 8 | JavaScript | Adidi/tm | 05e4edbbb0d08cc1b75c2d0d041bc284275039cb | 98a8e5ef3c8f0dc693ed3c72964db3acc4202cf5 |
refs/heads/master | <repo_name>Ioie/linterna<file_sep>/app/src/main/java/com/example/user/faruleti/MainActivity.java
package com.example.user.faruleti;
import android.content.pm.PackageManager;
import android.hardware.Camera;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
import androi... | 840732427057adc7482095c03b78c40021d2428f | [
"Java"
] | 1 | Java | Ioie/linterna | 4f97c210d64bb2b27f2cba50165e4f28ef7c5a19 | 13eb45b1704e7dac79f3c00ee5de0efc1f388f3e |
refs/heads/master | <file_sep>using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace NewsWebsite.DataAccess.Entities
{
public class News
{
[Key]
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public int Id { get; set; }
publi... | 7411f77de16d1663df81cd03a0ec9c2db531dfc9 | [
"C#"
] | 11 | C# | bogdansadoviy/NewsWebsiteSolution | 04e35df7d00a2a86c11a131ab8c0c69cf0db5479 | 70aa3d204069481008d1a16b71e6eb1962603cf6 |
refs/heads/main | <file_sep>import { createApp } from 'vue'
import App from './App.vue'
import './index.css'
// TODO 导入vuex
import store from './store/index.js'
// app.use(store) 可以写在下面一起注册
// TODO 导入 vue-router
import router from './router/index.js'
// app.use(router) 可以写在下面一起注册
// Soumns 导入ant-designUI框架
import Antd from 'ant-... | a75f926ce1667310633a18ab261fb5fb4160867b | [
"JavaScript"
] | 2 | JavaScript | Soumns777/vue3TodoList | e11bcda0b944a2eafa8bd8e7147abd20cc043673 | 03cb979869702e3a14a663151cd166fb6dc78680 |
refs/heads/main | <file_sep>// MIT License
//
// Copyright (c) 2021 cocodding0723
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, ... | b5a9852412ce8a0b0d46e38c9244a764b95b049c | [
"Markdown",
"C#"
] | 5 | C# | cocodding0723/MazeAutoGenerator | ae4efaca6739eb3bcdc7ddd1399ca263f791c7c7 | c7c6e64fb17466cdc69086f7947a3ba23b4ee6ed |
refs/heads/master | <repo_name>Renatojr2/dropbox-clone<file_sep>/README.md
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
## Dropbox-clone

<file_sep>/src/components/MenuForm/styles.ts
import st... | 880d9254e157cbfa682af9c8797ecf0f44010bdf | [
"Markdown",
"TypeScript"
] | 2 | Markdown | Renatojr2/dropbox-clone | b80a040389adcc97497cc97bd1fba5d7cd5f527a | 4c9a5b518193c85359a42b9566702c6935409fa7 |
refs/heads/master | <repo_name>makki08/Registration<file_sep>/src/java/org/feu/eac/ServiceLogic.java
/*
* 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.feu.eac;
import java.sql.Connectio... | 119d38e5f69915a1be502797fbffed710e776f37 | [
"Java"
] | 2 | Java | makki08/Registration | 5f4356270f417a14a8696c5f18932114f3f26a30 | d5f541e2be49dc22867044b496770c3fab3bfae2 |
refs/heads/master | <repo_name>edjacks/scheduled-script<file_sep>/install-license.py
import os
import pexpect
import sys
lapass = os.environ['SSHPASS']
lauser = 'userid'
host = sys.argv[1]
license = sys.argv[2]
child = pexpect.spawn("/usr/bin/ssh " + lauser + "@" + host)
child.logfile_read = sys.stdout
child.expect("assword:")
child.s... | 2342ea66b9ae76fc584a9283778f5e5d87e64ad3 | [
"Markdown",
"Python",
"Shell"
] | 3 | Python | edjacks/scheduled-script | f192cc4ad1d6b177272e66073cd32ea7aed5e6e5 | 1d30d2b88251b7eaf64b85733c551653b9aaac2c |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.