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>package com.mycompany.salestax.dao;
import com.mycompany.salestax.beans.Tax;
public interface TaxDao extends AbstractDao<Tax, Long> {
}
<file_sep>package com.mycompany.salestax.dao.hibernate;
import org.springframework.stereotype.Repository;
import com.mycompany.salestax.beans.Tax;
import co... | 63915032417ab91f3b455a62d7f9712192e71769 | [
"JavaScript",
"Java",
"SQL",
"INI"
] | 23 | Java | juanma-cvega/salestax | a3a819e457440b6e2698f721ca8a42c136ae78f3 | 8de173f1c9b01f4319914478df4542677aaf37e7 |
refs/heads/master | <file_sep>import re
from deck import Deck, deck_36_cards
from player import Player
# 36 карт
# ходят по очереди
# не вскрываемся
class BlackJack:
_deck = deck_36_cards()
_players: [Player]
_value_to_points = {
6: 6,
7: 7,
8: 8,
9: 9,
10: 10,
'J': ... | a110a3c1115ab6333cd6367f360753fc4d489090 | [
"Python"
] | 5 | Python | SergeiShevtsov/cmd_cards | 8531f0d15c35504cada8f825f3a7eb7454222212 | 14143c1ff4e7e974111f1a51a7d6f7e461543bd3 |
refs/heads/master | <repo_name>fgulan/ios-infinum-academy-2019<file_sep>/TVShows/Modules/ShowDetails/ShowDetailsViewController.swift
//
// ShowDetailsViewController.swift
// TVShows
//
// Created by <NAME> on 30/07/2018.
// Copyright (c) 2018 <NAME>. All rights reserved.
//
// This file was generated by the 🐍 VIPER generator
//
imp... | fe6ab54910c4a242be9fbf4aa86f809e1aa690ae | [
"Swift",
"Ruby",
"Markdown"
] | 57 | Swift | fgulan/ios-infinum-academy-2019 | 15c99d794921afdf87634097c6b1293f92e5bd4f | 3ee2da60fdee4b56b43f3cb4539573576e4040c3 |
refs/heads/master | <file_sep>template <class T>
class stackmin
{
class Node
{
private:
T data;
public:
Node(T t)
{
data = t;
}
T GetData()
{
return data;
}
Node* next;
};
private:
Node* top;
Node* min;
public:
stackmin()
{
top = nullptr;
min = nullptr;
}
void push(T ... | 58c050c55ef0a04e58aef892ca4eb5ab33e81493 | [
"C++"
] | 12 | C++ | zhiweicai/new_repo | e9a00d6820ba7fee3dfd632f8153611e6f9257bc | b3d0b811377d69aa1a8f22038f4995307e05b037 |
refs/heads/main | <repo_name>anibalsilva1/ACO-TSP<file_sep>/ACO_TSP/aux_functions.py
import numpy as np
def transition_prob(pheromones,alpha,beta,city_i,city_j,tabu_list,points):
allowed_cities = tabu_list
numerator = (visibility(city_i,city_j,points))**beta * (pheromones[city_i,city_j]) ** alpha
denominator = np.sum... | 848ab7f394f329f4230d41472d0e7c881e89e9ba | [
"Markdown",
"Python"
] | 4 | Python | anibalsilva1/ACO-TSP | 4df2bd81bb4fbde432b520a291e66e11dc219e7e | 43ae7e589555000f355d604ea1fe2252691fa1ca |
refs/heads/master | <repo_name>awi2017-option1group1/Prello-auth<file_sep>/src/util/login.ts
import * as express from 'express'
import { config } from '../config'
import { UserFacade } from '../bl/userFacade'
export const login = async (userId: number, res: express.Response) => {
const token = await UserFacade.authenticate(userId)
... | 181afe0310434dca3652eb277f008965caf3d778 | [
"Markdown",
"JavaScript",
"TypeScript",
"Dockerfile",
"Shell"
] | 29 | TypeScript | awi2017-option1group1/Prello-auth | 11a61c7039eda5f20f75699b59aed6969a5b009a | d7197f36dd20a8546a94a0037f131715445e283e |
refs/heads/main | <repo_name>IvanDilberovic/commander-app<file_sep>/src/App.js
import {Home} from './components/Home';
import {Command} from './components/Command';
import {Navigation} from './navigation/Navigation';
import {BrowserRouter, Route, Switch} from 'react-router-dom';
function App() {
return (
<BrowserRouter>
<d... | fa6085fd40473af96fc3a124494f6fd2629bdee4 | [
"JavaScript",
"Markdown"
] | 3 | JavaScript | IvanDilberovic/commander-app | f284a84b8bf698a7fde813442ba418f6d3e29a5f | 0e03daeeb7bc3a33cd7159c84894b2126cf7b0a4 |
refs/heads/master | <file_sep>#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "base.h"
#include "record.h"
// Function: print_all_records()
// Input: record - array of Records; this may contain empty elements in the middle
// Output: none
// - Leave a brief information about the function
/*void print_all_records(Partic... | 6de134ac5171f347ae271ca9d58739d2d6fb079a | [
"Markdown",
"C",
"Makefile"
] | 8 | C | KiEunKim-medofch/the-List-of-participants-Management-System | 186cd385ec90acfa3fd4b9282d90a6ae291758f1 | 7a00f78709938fbfaf5d588acb2a15f628491226 |
refs/heads/master | <file_sep>import React, { Component } from 'react';
import ErrorComponent from './ErrorComponent';
import MovieListDetails from './MovieListDetails';
export default class MovieList extends Component {
constructor(props) {
super(props);
this.state = {
error: ''
}
}
render() {
const { movieLi... | 1d870b9058a14aa4d1ed503163923b848f308182 | [
"JavaScript"
] | 3 | JavaScript | rajadileepkumar/youtube-api | 6147d7e9c73343438dac89c2aff70ba58d71a5bc | 5cd7a0b527a863ad1197bd6078ef3f0d6b5f0281 |
refs/heads/master | <file_sep>/*
* (c) Copyright 2014 Swisscom AG
* All Rights Reserved.
*/
package com.swisscom.cloud.demo.spring.service;
import java.util.List;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import javax.persistence.Query;
import org.springframework.stereotype.Component;
impor... | 460ed0bb36ae407b96405cff540d9757ec5a9737 | [
"Markdown",
"Java",
"JavaScript"
] | 5 | Java | ringgi/cf-spring-demo | a1e8b8e144c41b3e6e562e091b2096f0c5ead0a3 | a0bb981d6b3deade3a25efb3d9429660589c208b |
refs/heads/master | <file_sep>"""Module containing steps for sending POST requests to the /login endpoint."""
from uuid import uuid4
from aloe import step, world
from requests import get, delete
from features.helper import *
from features.helper.accounts_api import create_random_account
@step(r"I try to delete a user's account")
def d... | 4bc7623d492091464c0219dd0fa004b96d6eab54 | [
"Markdown",
"Python",
"Text"
] | 16 | Python | AndyDeany/flask-rest-account-service | c4a66e329eb44e7e8a890da7785d93241c2b8c33 | 519e5d8e93e231806c135fb0bd59c7560ca311ef |
refs/heads/master | <repo_name>york18/2031-C-and-shell-scripting<file_sep>/A2/Q2 (1)/allfiles
#!/bin/sh
# EECS2031 - asg2
# Filename: allfiles
# Author: <NAME>
# Email: <EMAIL>
# Login ID: york18
for f in *
do
if test -f $f
then
echo $f
fi
done
<file_sep>/A2/Q2 (1)/myutil
#!/bin/sh
# EECS2031 - asg2
# Filename: myutil
# Author: <NAM... | b0fdade4a6eb0da119cf8d2c99e9bf5305e37275 | [
"Markdown",
"C",
"Shell"
] | 24 | Shell | york18/2031-C-and-shell-scripting | db35d4a823441e9767c12bd19b8959a7d9d2e39b | c7a46a235a6613fd134590097416fb86a58e82c5 |
refs/heads/master | <file_sep>// variables
var swRegistration;
var isSubscribed;
const publicServerKey = '<KEY>';
const subscribeButton = document.querySelector('#btnSubscribe');
// register service worker
if ('serviceWorker' in navigator && 'PushManager' in window) {
console.log('Push notification supported!');
navigator.serviceWor... | 121b3ee0dba2560cf214985078a08cce119ba777 | [
"JavaScript"
] | 3 | JavaScript | msuskadev/pwa-push-demo | e8ebdd969d911d505973e3cc5ac08d03a7045344 | 8cd259210a8c3605eaa1636c78020c1d8dc090fa |
refs/heads/master | <repo_name>gaku123/Muda<file_sep>/app/src/main/java/com/ifive/muda/MudaFragment.java
package com.ifive.muda;
import android.app.Activity;
import android.net.Uri;
import android.os.Bundle;
import android.os.Handler;
import android.support.v4.app.Fragment;
import android.text.Html;
import android.view.LayoutInflater;
im... | 7b06b92638ab7d26b912f163384568128d63939c | [
"Java"
] | 1 | Java | gaku123/Muda | 8ef1c961f966e35dee989e3c881989b8361f8bea | c6769729c8d22a135d6b2f3cf836173169c64b24 |
refs/heads/master | <file_sep>#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Tue Dec 4 21:11:07 2018
@author: Gavin
"""
import calendar
import sys
import requests
from tkinter import *
from tkinter.filedialog import askdirectory
from tkinter import simpledialog
from tkinter import ttk
import datetime
import os
class NE... | 6d1903e403cc482bf8886d801b25f25a10562b41 | [
"Markdown",
"Python"
] | 2 | Python | gblyth/NEISS_GUI | 5795be0ff58ad954f54834aefe35c7182f3a6006 | a0bf0b6404086647f7fe1634e48613bdc7e96f3e |
refs/heads/master | <repo_name>nlharri/iOS-Stanford-2017-Concentration<file_sep>/README.md
# iOS-Stanford-2017-Concentration
<file_sep>/Concentration/ViewController.swift
//
// ViewController.swift
// Concentration
//
// Created by <NAME> on 2018. 12. 14..
// Copyright © 2018. <NAME>. All rights reserved.
//
import UIKit
class ViewC... | ef021117781f8da2e6ce3eb1cc54c7c67b1d3e47 | [
"Markdown",
"Swift"
] | 4 | Markdown | nlharri/iOS-Stanford-2017-Concentration | a0c484e1c63e83fb4252b6f2e2f29fb9b887c7ad | 3b245873613fe14fde3ce2428ed6089ecf50a9c8 |
refs/heads/master | <file_sep>"""
Basic order matching.
"""
from dataclasses import dataclass, field
from sortedcontainers import SortedList
import math
# from time import time
class Side:
BUY = -1
SELL = 1
@dataclass
class Order:
goid: int
side: Side
instrument: int
price: int
quantity: int
quant_remai... | a91457ab9200f956a4362642a9599233eba42d74 | [
"Markdown",
"Python",
"Text",
"JavaScript"
] | 10 | Python | zraffo/goex | 202a610cc3de576bb033a0dda043ff27e0518f3f | 6fdab6fde9cb4d6ec2c3fe0330173953f9eee7e8 |
refs/heads/master | <file_sep>日経ソフトウェアの連載「イチからわかる Ruby on Rails」で使っているサンプルコードです。
途中から連載を読み始めた方は、こちらのコードを使ってください。
## Cloud9のセットアップ方法
Cloud9のセットアップがまだの方は、
Railsチュートリアルの1.2節「[さっそく動かす](http://railstutorial.jp/chapters/beginning?version=4.2#sec-up_and_running)」に従ってCloud9をセットアップください。
Railsチュートリアル 1.2 さっそく動かす
http://railstutorial.jp/chapt... | 9159bde0ac8d74225fdee97115f4aa7222be3f10 | [
"Markdown",
"Ruby"
] | 3 | Markdown | yasslab/nikkeibp2015 | 97ba88056ff99eb753c496d6fc77f8955dc794e7 | f0c1c2e9d234b0538d0ea8047148aaec58f9eeed |
refs/heads/master | <file_sep># Azure Camp 2019
This is the code for azure camp 2019 in Calgary, Alberta. The theme of this camp is around containers and Kubernetes. For good measure we're adding a little bit of AI into the mix because that's cool these days.
Our application is an application form for a job posting site. We're going to... | 245860fd1fd08ff99f39f436a062ccce6824b97f | [
"Markdown",
"C#"
] | 3 | Markdown | baoqinye/AzureCamp2019 | 03ffa4f5366ee3d3cf3c9188bfdbcb23412bd3d3 | 955e9e6e3b97e4952580cf440ea7241c79279da1 |
refs/heads/master | <repo_name>chris12540/react-1-lecture<file_sep>/src/App.js
import React, { Component } from "react";
import "./App.css";
class App extends Component {
constructor(props) {
super(props);
this.state = {
name: "bOb",
pic: "http://http.cat/404",
friends: [{ name: "Kian", pic: "http://http.cat/200" }]
};
... | 2837b0470148fe18a475eaabd05ac36e21093347 | [
"JavaScript"
] | 1 | JavaScript | chris12540/react-1-lecture | 125353c2b6483e4ba8820eb3e120001f274a0866 | 25b389c1137098bf2cf8c7d6dfb8cc74d93188d2 |
refs/heads/master | <repo_name>sunilvanam/NodeJS<file_sep>/app.js
const express = require('express');
const mongo = require('mongoose');
const bodyparser = require('body-parser');
const app = express();
const user = require('./models/user')
const order = require('./models/order')
const fs = require('fs')
const mongoUrl = 'mongodb://localh... | 5582f7433c85a52f68d1d6e9e6d16bbc2ef60fae | [
"JavaScript"
] | 2 | JavaScript | sunilvanam/NodeJS | 570fc5387bf6a93e8cc7b98e8c0cfd77405a9f77 | bba160ba84d146fb4a05bd6a069312740d9695b3 |
refs/heads/master | <file_sep><div id='profileArea'>
<?php
// boldShow($type, $content) returns escaped html with $type in bold followed by
// $content in normal style.
// If the profile is a form, boldShow will turn it into
// an input field.
function boldShow($type, $content, $profileType = "", $textblock = fal... | 31868d8e70309e4b98d5cc1d8d0adf31d7e2ad2b | [
"SQL",
"Text",
"PHP"
] | 33 | PHP | TomTervoort/webtech3 | dc2b630ff9e977a60567f31f8da0f177aa9ae7dd | 6f1a35fff28c88a71a86a51fd2ecf79890779800 |
refs/heads/master | <repo_name>KarolSz001/IODeliverSystemApp<file_sep>/README.md
"# IODeliverSystemApp"
<file_sep>/repo/src/main/java/com/app/repo/impl/PaymentRepositoryImpl.java
package com.app.repo.impl;
import com.app.model.Payment;
import com.app.repo.generic.AbstractCrudRepository;
import com.app.repo.generic.PaymentRepository;
im... | 165e3d523791deee8f3730a9ee9e4b61a9ace279 | [
"Markdown",
"Java"
] | 4 | Markdown | KarolSz001/IODeliverSystemApp | 2cb85ecb230c4588674e804b9c555dec77b5bd2c | 0c087b1d0de028fe3f9c09a3570849136051922a |
refs/heads/master | <file_sep>import boto3
import json
dynamo = boto3.client('dynamodb')
def lambda_handler(event, context):
operation = event['httpMethod']
if operation == 'GET': #Only need Primary Key Value and Table Name
response = dynamo.get_item(Key=event['body'],TableName=event['TblName'])
resdict = {
... | 039a5dc6316b0bc27f29651ddb62116d32de60ec | [
"Python"
] | 1 | Python | Reetam-Nandi/AWS-DynamoDB | 578e9c5fb5b2dce767961615962efad9ccd73939 | efab367c945689d7aa324a15cebe2e52184c16a3 |
refs/heads/master | <repo_name>mosen/autopkg-recipes<file_sep>/JetBrains/JetbrainsURLProvider.py
#!/usr/bin/env python
#
# Copyright 2014
#
# 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.apach... | 2df49b02f3583267b8d3aadccadaee887d4b66e4 | [
"Python"
] | 1 | Python | mosen/autopkg-recipes | 3eafae3473b44420ba15a1b444310a544eb34054 | 3c3ba0fa983794c33e83e52667484f21d7d51945 |
refs/heads/master | <repo_name>Carnivoroys/TARA-Server<file_sep>/src/test/java/ee/ria/sso/config/ThymeleafSupportTest.java
package ee.ria.sso.config;
import ee.ria.sso.Constants;
import ee.ria.sso.authentication.AuthenticationType;
import ee.ria.sso.flow.ThymeleafSupport;
import ee.ria.sso.service.manager.ManagerService;
import org.apere... | 4c5f7e45dcab47907b9dd87b9cb9771522343533 | [
"Java",
"INI"
] | 4 | Java | Carnivoroys/TARA-Server | e29905fa1c8f5966e7f38dbb3428c1ec0380754e | 2ef4a44af77e6cf74dcfa9c0d51c3f634506e4d8 |
refs/heads/main | <file_sep>import os
import pyowm
from dotenv import load_dotenv
from os.path import join, dirname
from generate_countries import read_file
dotenv_path = join(dirname(__file__),'.env')
load_dotenv(dotenv_path)
#Checks if the user gave a correct country
def getTag(country):
countries = read_file()
code = "... | 4bdc2d93299d3e59ce0dd777ff36ed5d85fbc7e4 | [
"Markdown",
"Python"
] | 4 | Python | andreclerigo/weather_twitterbot | 280e0b1092c17ca50d3d51d1d1e3a29ed2550a6c | fa5e9c599d2e05d7adf04bfddc2750fb3927da22 |
refs/heads/main | <repo_name>nilsjc/PIC18F-MidiToCV<file_sep>/README.md
# PIC18F-MidiToCV
A midi to control voltage converter made with Microchip pic 18F4620.
It should be no problem to compile this code to other 18F-models.
This is in a experimental state. For now it takes the note number and put it on PORTD, while RB0 puts the gate o... | 080b20371e618e28b37d6a7cb5e4a73056d7deae | [
"Markdown",
"C"
] | 2 | Markdown | nilsjc/PIC18F-MidiToCV | 1451a07be101bb23fc31ee53695692648426e8f4 | 7d225b374b71d7a940027704d919bfa61cec6202 |
HEAD | <repo_name>DavisReef/angular-depth-viewer<file_sep>/src/lib/directive.js
'use strict';
import Depth from './Depth/Depth';
/**
* Depth photo directive
*/
export default function DepthDirective(depthConfig) {
'ngInject';
return {
restrict: 'EA',
scope: {
src: '@',
debu... | c0608a89cc9a55c5d94b9fb88111449778543630 | [
"JavaScript",
"Markdown"
] | 23 | JavaScript | DavisReef/angular-depth-viewer | 9f43bcd6c22236553c10bb6980a06f5ef50b710f | 7c7cafaceef6650da7b3d04465297b45443d2c21 |
refs/heads/master | <file_sep>var data = [
{
country: 'Peru',
'code-postal': 51,
photo: 'peru.svg'
},
{
country: 'Chile',
'code-postal': 56,
photo: 'chile.svg'
},
{
country: 'Mexico',
'code-postal': 52,
photo: 'mexico.svg'
},
{
country: 'Colombia',
'code-postal': 57,
photo: 'co... | 885cf655835414ca44839a6c2093687e83573a80 | [
"JavaScript",
"Markdown"
] | 6 | JavaScript | MelynaPernia/Lyft-webapp | f40f1aa3f76dfe78adb9d469eb08e548949c0a69 | a47e1410e26cea56000c92df1ade71a0e14e49ea |
refs/heads/master | <file_sep>from pysc2.agents import base_agent
from pysc2.lib import actions
from pysc2.lib import features
from pysc2.env import run_loop
from pysc2.env import sc2_env
from pysc2.tests import utils
from absl import flags
from absl.testing import absltest
from pysc2.maps.lib import Map
import sys
# GAFT
from gaft impor... | cd2b1f3151af87876cc919a1c1093dada2ad9838 | [
"Python"
] | 1 | Python | casiaSC2/ArmyCompound | 050e661a0a4dbbe36beecfe564f9b5a6e081e627 | 2e6e4d7a62677adcec1f4e1823d366892fcba6b0 |
refs/heads/master | <repo_name>NarsingRao13/Web-JSP<file_sep>/JSPExample/src/User/UserDatabase.java
package User;
import java.sql.*;
public class UserDatabase {
static String DRI = "com.mysql.jdbc.Driver";
static String CONNECTION_URL = "jdbc:mysql://localhost:3306/narsing?characterEncoding=latin1";
static String USERNAME = "ro... | 3fa2a129a04bf13ab113804397e40453e6c133b0 | [
"Java"
] | 1 | Java | NarsingRao13/Web-JSP | 67eb75383b8d5f998b1bf9e70b3ba7baf2de9992 | 3166cb81ce90db2f170fe115a9c2d74496d71169 |
refs/heads/master | <file_sep>require 'spec_helper'
describe FlowdockRails::Configuration do
describe 'retive configuration' do
before(:all) do
sources = { test1: '123', test2: '456' }
@config = FlowdockRails::Configuration.new(sources)
end
it 'should return flow token by source' do
expect(@config.test1).... | 9d835c2c037707e85f0145259d4d14f68e5389f3 | [
"Markdown",
"Ruby"
] | 12 | Ruby | Health-eFilings/flowdock_rails | ce45ea9f42012a520e67b957b2bf6ac09cd97476 | bcf2a37997bcde5ee6c6155d79844e5c5449ec26 |
refs/heads/master | <repo_name>christianjuth/calculatorjs<file_sep>/calculator.js
/*-------------------------------------------------------------------------------------
| o88b. .d8b. db .o88b. db db db .d8b. d888888b .d88b. d8888b. |
| d8P Y8 d8' `8b 88 d8P Y8 88 88 88 d8' `8b `~~88~~' .8P Y8. 88 `... | 83155523785c7a0194e0244fb0517e589fd844b5 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | christianjuth/calculatorjs | c4eec07892291f8c19806a10eda7209c28a26987 | 8635e13bf4511f83393e34bd2508fdef351cec5e |
refs/heads/master | <file_sep><?php
declare(strict_types=1);
namespace App\Kernel\Identity\Application\UseCase\Command;
class ResetPassword
{
public function __construct(string $passwordResetToken, string $newEmail)
{
}
}
<file_sep><?php declare(strict_types=1);
namespace App\Kernel\Identity\Application\UseCase\CommandHand... | 4e88789ca526834a9f8be82c2c5d4ec7e739ed1b | [
"Markdown",
"PHP"
] | 36 | PHP | sarjon/skeleton | 958d226edd70f6cb280d953608508b0152ecd85f | 3baddb263c8096542e9f5bd7318c7da6ec817db1 |
refs/heads/master | <file_sep># Kafka for Go 101
<file_sep>package main
import (
"fmt"
"log"
"os"
"os/signal"
"syscall"
"time"
"github.com/Shopify/sarama"
)
func main() {
producer, err := sarama.NewAsyncProducer([]string{"localhost:9092"}, nil)
if err != nil {
log.Fatal(err)
}
defer func() {
if err := producer.Close(); e... | b3e514b644222c16da2a660650606b42ec77fa75 | [
"Markdown",
"Go",
"Shell"
] | 3 | Markdown | wingyplus/kafka101 | 5af7b73e19b2aa79c83f4654905dd6e6e1c290b7 | 3bd91abd2bfef9f2ff823c39fa802249e616928f |
refs/heads/master | <repo_name>limkokholefork/Screenshot-without-root<file_sep>/src/pl/polidea/asl/ScreenshotService.java
package pl.polidea.asl;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.lang.reflect.Method;
import java.net.InetSocketAddress;
impor... | fe240caf1057c88986e7a5a94e71e84c33594e4e | [
"Java"
] | 1 | Java | limkokholefork/Screenshot-without-root | bb7add9997be042a292f6bd6d57fed32e71abc7d | 6c6f228ab04e6a52cc71cf686ada825c3ba85ee5 |
refs/heads/master | <repo_name>NicolaiNisbeth/CDIO3<file_sep>/src/test/java/Utilities/TextReaderTest.java
package Utilities;
import org.junit.Test;
import java.io.IOException;
import java.util.HashMap;
import static org.junit.Assert.*;
public class TextReaderTest {
@Test
public void textReader() throws IOException {
... | 3d8202b85d17289d8bb8abf909b93d0c20a7437f | [
"Java"
] | 11 | Java | NicolaiNisbeth/CDIO3 | 40fc30d743d2d10c7f8cae213545debb1eeb3384 | a8d326e1b0c290b5b40c3fbcf993fe72f2852cda |
refs/heads/master | <repo_name>wndeld777/TeamProject_HONJAL<file_sep>/Honjal/src/main/java/com/honjal/honjal/dao/ext/ContentDao.java
package com.honjal.honjal.dao.ext;
import com.honjal.honjal.dao.GenericDao;
import com.honjal.honjal.model.ContentVO;
public interface ContentDao extends GenericDao<ContentVO, Integer>{
}
<file_sep>/Honja... | e0402d6dae91484102e9e29e424a5a0b7b5b4bc3 | [
"JavaScript",
"Java"
] | 3 | Java | wndeld777/TeamProject_HONJAL | 0055f3e82c899a79c599d003f8940362c3937cc1 | 809c3d3409b17b973c4a7c0b9e605b9a0fd87c87 |
refs/heads/main | <repo_name>apriliandi246/vscode-css-sort<file_sep>/src/extension.ts
import * as vscode from "vscode";
import { parse, generate } from "css-tree";
export function activate(context: vscode.ExtensionContext) {
const cssMinSort = vscode.commands.registerCommand("css-sort.min", () => {
const editor = vscode.window.ac... | acb261b95d505abcb8b7e39165525636f972d14c | [
"Markdown",
"TypeScript"
] | 2 | TypeScript | apriliandi246/vscode-css-sort | 6acf7b7036c77e271a2734961195985ea00e5dda | 4b16279f1c03bdd51f57e214a299a0e893e43f09 |
refs/heads/master | <file_sep>'use strict';
var app = angular.module('Lab');
app.controller('LabTechController', [ '$scope', '$rootScope', 'LabTechService',
function($scope, $rootScope, LabTechService) {
$scope.logout = "true";
$scope.name = $rootScope.name;
$scope.person = $rootScope.pe... | f81e7b14c186fb19e0fe5e46750361b82d993ba5 | [
"JavaScript",
"Java"
] | 19 | JavaScript | abhinavpunj/EHR_System | 8fb3230358626542a9eca9377675a6eb515f3872 | 6c29f99a76207cb57b00c3d18db5a6d8549c80c9 |
refs/heads/master | <repo_name>Tarfala/RankingsC-<file_sep>/Rankings/Rankings/Program.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Rankings
{
class Program
{
// https://en.wikipedia.org/wiki/Ranking#Strategies_for_assigning_rankings
... | 166dc642ad38ad4702430f12d273cb6370935eae | [
"C#"
] | 2 | C# | Tarfala/RankingsC- | 60c8e7d16a54b57f1179fda156567fd336907144 | fa102d1c797c67d2b7be9f749ef5813efec1d2e4 |
refs/heads/master | <file_sep># -*- coding: utf-8 -*-
"""
Created on Wed Dec 11 15:18:04 2019
@author: Rowland
"""
import matplotlib
import matplotlib.pyplot as plt
import numpy as np
import math
print(np.pi)
print(math.pi)
t = np.arange(0.0, np.pi, 0.01)
s = np.sin(2 * np.pi * t)
fig, ax = plt.subplots()
ax.plot(t, s)
ax.set(xlab... | 02deb6a0cbf1d480bbc0d7bc7b6ab2e6e0e9ae23 | [
"Markdown",
"Python"
] | 8 | Python | ZR0W/Beginner-Python-Project-Collection | 36d19a2c5767a255e3530edd208a305300f241ad | c34c8d96fd46dae3ebd0257baff51a096c0a0d3b |
refs/heads/master | <repo_name>Lacratus/MarketPlugin<file_sep>/src/main/java/be/lacratus/market/objects/DDGPlayer.java
package be.lacratus.market.objects;
import java.util.ArrayList;
import java.util.List;
import java.util.PriorityQueue;
import java.util.UUID;
public class DDGPlayer {
private UUID uuid;
private PriorityQueue<A... | 89ef2b087b80ebdd5e6f94c7f63d1accc8c7505e | [
"Java"
] | 5 | Java | Lacratus/MarketPlugin | 041fb5fbd14d389200b896e05fbb996bdc139691 | 69590756ac16420268ad796cad5f61ade988584e |
refs/heads/master | <repo_name>Oroko/Roks<file_sep>/myfirstwebsite/home.php
<html>
<head>
<title>My First PHP website</title>
</head>
<?php
session_start(); // starts the session
if($_SESSION['user']){//checks if user is logged in
}
else{
header("location:index.php"); //reirects if user is not logged in
... | 364e78c115d986b566b1d5499c1e5fe55e7e65c3 | [
"PHP"
] | 4 | PHP | Oroko/Roks | 4f7824d117ec9cfe56c7da92b2020a545977d673 | 7c94b5b03e34bc1634e5effff88c1a2b0da961c3 |
refs/heads/master | <file_sep>import numpy as np
import sys
from numpy import array
import balance as bal
import random
# import interface as gui
np.set_printoptions(threshold=324) # total number of matrix elements before truncation occurs (18x18 square)
if (len(sys.argv) >= 2):
argv = sys.argv[1:]
else:
argv = ["none"]
def cre... | 543ca6d7ff386e1547266f9ba2acb0278f368973 | [
"Python"
] | 2 | Python | jjpellegr/balance_table | 7787cb6ccd68455888f85df86752393e26d339a5 | cde3344b77e588297a187e38e9b8f998cd5c3ea2 |
refs/heads/master | <repo_name>SamMitchell153/Pathfinding-Visualizer<file_sep>/src/PathfindingVisualizer/RangeSlider.jsx
import React, { Component } from "react";
import Slider from "react-rangeslider";
import { Col, Row } from "react-bootstrap";
class Horizontal extends Component {
constructor(props, context) {
super(props, context)... | e94561c7845be2706257642fd20e64123e91655e | [
"JavaScript"
] | 1 | JavaScript | SamMitchell153/Pathfinding-Visualizer | 630a2c817e9989b1423834ec0c8b9e105812d853 | b366c39ca54fa31c467fd89282db1d84c4a0d21d |
refs/heads/master | <file_sep>import React from 'react';
import {withRouter} from 'react-router';
import {connect} from 'react-redux';
import {getMovieDetail} from '../redux/actions';
import {Movie} from '../components/Movie';
import {Content} from '../components/Content';
import { findMovieDirector, getAllDirectedMovies } from '../clien... | 76d92323519fd0cf095b953f314b6c70c6664a43 | [
"JavaScript"
] | 11 | JavaScript | y-bobrovskaya/react-mentoring | 39f48f6daf0d5afce200d63df2aeb1668a5ee23e | f09787516fa99e03e68b78cf40aeeb37ed5e16a3 |
refs/heads/master | <repo_name>steffmeister/phpircbot<file_sep>/module_klo.php
<?php
/* module_klo, a klo geh vs meetings counter */
function klo_init() {
irc_bot_echo("init klo_module");
klo_reset_counter();
ircbot_register_for_global_listening( 'klo_listener_global' );
}
function klo_command( $string, $target='', $private=0 ) {
i... | 51367518e2041e2dc611a968d6e9569d5fed31cc | [
"PHP",
"Shell"
] | 8 | PHP | steffmeister/phpircbot | 9d5fc4191a3df572d2a1438553f11685a15afb77 | 9de8020980460544c509351d8b7bf1f06525facd |
refs/heads/master | <file_sep>import React, { Component } from "react";
import { Container,Content,Button,Header,Left, Body,Title,Icon, List, ListItem, Switch, Separator, Right } from "native-base";
import {Image,View,TouchableWithoutFeedback,Text} from "react-native";
import styles from "./styles";
class Help extends Component {
stati... | d9064dbe1dae49a18e9fdc780da85832f74de987 | [
"JavaScript"
] | 18 | JavaScript | prateek3255/NetflixAppReact | 0dfda5db7059a6eec4f4d40a667436b54f8b945e | e6945b952437a8ddcd60e6d9a55435dec9269de6 |
refs/heads/master | <file_sep>// Tech-F Framework
// (C) Copyright 2014 <NAME><<EMAIL>>
//
// All rights reserved.This program and the accompanying materials
// are made available under the terms of the GNU Lesser General Public License
// (LGPL) version 2.1 which accompanies this distribution, and is available at
// http://www.gnu.org/l... | a8d22442eb32fc3d948bd23089d4d7ee53ce7c15 | [
"Markdown",
"C#"
] | 15 | C# | FredrikTheEvil/Tech-F | bf06980517cb946a07a656288a203a9a26f2ddad | b6e5cbecc048a414a1afdb6b7f192b0abc3ea260 |
refs/heads/master | <file_sep>import { Ng6UdmMockService } from 'ng6-udm-mock';
import { UdmCommentDataSource } from './udm-comment-datasource';
import { Component, OnInit, ViewChild, AfterViewInit } from '@angular/core';
import { MatPaginator, MatSort } from '@angular/material';
import { tap } from 'rxjs/operators';
import { environment... | fa2d0144a7bc1e2aadd1a1f9005bb7e64aea0774 | [
"Markdown",
"TypeScript"
] | 3 | TypeScript | Ohtsu/ng6-udm-mock-mat-consumer | d2904fd4c858c7790d89b3e8c127cac284a131d8 | f3a296bae97d9af9aaf09ef0153bc29ae3eb5ccd |
refs/heads/master | <file_sep>module.exports = app => {
app.locals.title = 'Music Time!'
}<file_sep>require('dotenv').config()
const express = require("express")
const router = express.Router()
const User = require("../models/user.model")
const Playlist = require("../models/playlist.model")
//////////////////////AUTENTICACIÓN S... | 777f9eeb34a03dfffc29e3373c82482753f14c73 | [
"JavaScript",
"Markdown"
] | 6 | JavaScript | tirsodelalamo/Music-Time-Project | f3d39399fb7fdbbcc80cad189dc1c667fde8552e | 20785f086179cb348dbd23dbab9bab1713a9bb71 |
refs/heads/master | <file_sep>package oop.ex4.data_structures;
public class AvlTree extends BinaryTree {
/**
* constructor that creates an AVL tree without nodes.
*/
public AvlTree(){
super();
}
/**
* Constructor that creates an AVL tree from a given array
* @param data int array
*/
public AvlTree(int[] data) {
super(... | 6eb738eb19313c1920e351798eaa900643ba0ba2 | [
"Java"
] | 1 | Java | matancha/ex4-avl-trees | c0572587ea828784d68938d856b30bded0453ea3 | 19a4b698eb575f57df83aab467c7cd7fce6d3f29 |
refs/heads/master | <file_sep>from re import sub
def psec( cfg, arg ):
### return option from cfg
for c in cfg:
c = str( c )
if arg in c:
c = str( c.split(':')[-1] ).strip()
return c
return
def pcfg( cfg, sec ):
### parse lines of cfg for section
g = []
x = 0
for ln in cfg:
ln = str( ln )
... | 68d464fc0067f32b6d57a50670917bf530df3441 | [
"Markdown",
"Python"
] | 23 | Python | bman7903/zkart | 2665ed4d658135fd68d3036b7c4b9c4de59c384b | 9f1d5f93b8d36a110aaaffcff5d4d440df9b71e0 |
refs/heads/master | <repo_name>camoy/fm<file_sep>/README.md
# fm
`fm` extracts or strips frontmatter data using `sed`.
## Usage
Given the following file in `example.md`.
---
title: Example
...
Whereof one cannot speak, thereof one must be silent.
It is possible to extract the frontmatter data.
cat example.md | fm
The default ... | b3092c99811ba460b7bca8cc749618e0187642df | [
"Markdown",
"Shell"
] | 2 | Markdown | camoy/fm | 3d82277609896a3ea5cf0a6acd43e60d5b63352a | c4612b4c4f768c82dd436ec17b2a7f943b17ea8b |
refs/heads/master | <repo_name>ArtemGovorov/wallaby-402<file_sep>/test/polyfill.js
if (!Function.prototype.bind) {
Function.prototype.bind = function(oThis) {
if (typeof this !== 'function') {
// closest thing possible to the ECMAScript 5
// internal IsCallable function
throw new TypeError('Function.prototype.bind ... | 83e31f7fbdb617339a4a12993d220e8d417ac299 | [
"JavaScript"
] | 4 | JavaScript | ArtemGovorov/wallaby-402 | c5919a81ede05c3504c41efb852d24975d72666b | abf4d29842bafae3b0e07ba56e4fb64ab5a00de8 |
refs/heads/master | <repo_name>sgart-it/SharePointQueryViewer<file_sep>/SgartSPQueryViewer/SgartSPQueryViewer/Form1.cs
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Xml;
using Sys... | c48abc5224df2b654e701ce8549eee5aa1bdd1ef | [
"C#"
] | 2 | C# | sgart-it/SharePointQueryViewer | 6be230d57c7d8c178e3bf9d1a91185a03250762f | e8a1c1f8405bec5862ce2a310041cb7ef038ab2d |
refs/heads/main | <file_sep><?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Validator\Constraints as Assert;
/**
* Propriete
*
* @ORM\Table(name="propriete", indexes={@ORM\Index(name="IDX_73A85B935BA3388B", columns={"id_type_habitat_id"})})
* @ORM\Entity
*/
class Propriete
{
/**
* @var ... | 6cccdbc367d5d31f77e574ed9bdfb492aee47027 | [
"PHP"
] | 74 | PHP | Viqnesh/AHouse | be53113bfce3a9d7c7da7818cc270ffc9b6cc513 | ce061ed141ef3fc7d3c8b1d4ec3dcc689715acc1 |
refs/heads/master | <repo_name>aswinkumar1999/Huffman-Encoder<file_sep>/Makefile
compileRunAndDelete:
@clear
@g++ -std=c++11 main.cpp huffman.cpp
@./a.out ${input} ${output}
@rm -f ./a.out ./codes.dat
<file_sep>/huffman.h
using namespace std;
typedef struct charWithFreq
{
//data
char ch;
int freq;
//functions
charWithFreq(... | 1ca7fe3ca06a503e1a28287eb3f914a151a02d04 | [
"Markdown",
"Makefile",
"C++"
] | 5 | Makefile | aswinkumar1999/Huffman-Encoder | e35cb04a594977d0bb34a16a1e4b958b333cb706 | 2cda235a596a27489caf0a3624b4c2027ea5a77a |
refs/heads/master | <repo_name>daciocco/Neo-farma<file_sep>/articulos/logica/jquery/jqueryFooter.js
$("#btPreciosCondiciones").click(function () {
"use strict";
if (confirm('Desea que se creen las condiciones comerciales con los nuevos precios?')) {
$.ajax({
type : 'POST',
url : '/pedidos/articulos/logica/ajax/duplicar.cond... | 57b8a08fb431e79492fa8667c85c21f78844a7c7 | [
"JavaScript",
"Markdown",
"PHP"
] | 322 | JavaScript | daciocco/Neo-farma | f016982dbb0d7a1a12af4d53a3cf64da4f9c0157 | f83c72180c9a952c7f2332845a7d654401646131 |
refs/heads/main | <repo_name>DavidBartTobi/Algebra-Tools<file_sep>/inverse_Matrix.py
from tkinter import ttk
from tkinter import *
from tkinter import messagebox
from utilities import gui_utilities, coordinate_Entry, errors
import inverse_Entry
import numpy as np
from numpy.linalg import inv
from itertools import cycle
class I... | 9eeedd63adbb97dbc4981d9d28e58441294ca8b1 | [
"Python"
] | 11 | Python | DavidBartTobi/Algebra-Tools | 457d1a7e4f732d4a1005f6fc74e10b6bd10164b7 | 12efd3c0bbd23e35377ba8b10bcba0c816eee05d |
refs/heads/main | <repo_name>wild0ni0n/counting_color_for_minecraft<file_sep>/countin_color_tool.py
from tkinter import filedialog, Tk, Label, messagebox, Canvas
import getpass
from PIL import Image, ImageTk
from typing import Tuple
def conv_webcolor(rgb: Tuple[int, int, int]):
hex_colors = list(map(lambda x: hex(x)[2:].zfill(2), ... | b500cf499bb8c4cdeb7720f2a46af29ac245ea28 | [
"Python"
] | 1 | Python | wild0ni0n/counting_color_for_minecraft | f3109da46af552c776062454f7c14b713a5220bd | 869a441af23565342313002f76ea4887dd7a141e |
refs/heads/master | <repo_name>linhsaarnold/Project3<file_sep>/p2-login.js
function navbarsearch() {
alert("I'm sorry, we can't find what you're looking for.");
}
<file_sep>/p2-all.js
function navbarsearch() {
alert("I'm sorry, we can't find what you're looking for.");
}
function moreinfoA() {
alert("No Info Available");
}
... | b6348382dd637d458bb4cd99dfe7ad2ee27a88ab | [
"JavaScript"
] | 3 | JavaScript | linhsaarnold/Project3 | 78812534737bc6192149f58653d7d7251be9c72f | f2a4d4c385b8e584a55a93a801955f7378aaa313 |
refs/heads/master | <file_sep># Abstract Factory Method
Factory patterns are examples of creational patterns.
Class creational patterns focus on the use of inheritance to decide the
object to be instantiated.
# Example

# Intent
* Provide an interface for creating families of related or ... | 63f6530400ae6a6b1f77861f4945e123b973b482 | [
"Markdown",
"Java"
] | 15 | Markdown | onatcipli/DesignPatternsJava | 181ab26d5760b65ff6698afa29e951180aefaa4d | 8a2e66adf245db402aa01ed903e26638fd70b6d7 |
refs/heads/master | <repo_name>Dips97/Udacity-Landing-page<file_sep>/js/app.js
//creating variable for navigation list
const MyNav = document.querySelector("#navbar__list");
//creating variables to store all section data and global use
const mySections = document.querySelectorAll("section");
//empty variable to store list elements
let n... | 6b84296a2dcddf4f8faa311af55119871013e8b6 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | Dips97/Udacity-Landing-page | e33da0743f0c0c132749b46d3ecd06b136dc8ec2 | 7914d19bc26229fd904fd6cbf577137887e65dd4 |
refs/heads/master | <file_sep>start_image_filename = 'start.png'
back_image_filename = 'bg.jpg'
block_image_filename = 'pipe.png'
bird_image_filename = 'bird.png'
title_image_filename = 'main.png'
ready_image_filename = 'ready.png'
over_image_filename = 'over.png'
fly_music_filename = 'fly.wav'
dead_music_filename = 'dead.wav'
jump_music_... | 808ca9c892cf9750c16736ad1dc3f81de89ffe71 | [
"Python",
"Text"
] | 3 | Python | Leo1973/flappyfish | 619cdfcfdbefb10332478cbd0b6283edddd69e7b | 70db2500c11b9c4a8b22f0f7c720aaa1f135846d |
refs/heads/master | <file_sep><?php
include '/var/www/db_params.php';
$dv_id = array();
$dv_id_second=array();
$dv_time_on=array();
$dv_time_on_second=array();
$empty="";
$done=0;
//while(1){
if(date("d")==1 && $done==0){
//if(date("G")==17 && date("i")==26 && date("s")==1){
$done=1;
$conn = new mysqli($host, $username, $password... | 8abbae9e20f6721020f8401a7eeaf8d323aea577 | [
"JavaScript",
"Python",
"Markdown",
"PHP"
] | 22 | PHP | krisstakos/open-automation | bbf303a4d153125894055797c76153cf9655be2f | 88c7af971ecb8a01429dd1000069c32f29cafd62 |
refs/heads/master | <file_sep>"""知乎图片"""
import re
import json
import requests
import os
import time
from pathlib import Path
path = "./pics"
url = 'https://www.zhihu.com/question/58498720'
class Pics(object):
"""
下载知乎问题下所有回答图片
example:pic = Pics('https://www.zhihu.com/question/270912691', './pics')
... | 38ce7d9e7ac1dc023a721ff428e8f43d273aa677 | [
"Markdown",
"Python"
] | 2 | Python | fyxw/spider | f8bd80452ba6a76d913d021d310cd317a81ace4f | 3cee1483e3d608a057d631d097b381052c929330 |
refs/heads/master | <file_sep>$(function() {
var uploadForm = '#uploadForm';
//设置首页边框样式(宽度和高度)
var outerWidth = parseFloat($('.outer').css("width"));
$('.outer').css("height", 0.41*outerWidth);
var innerWidth = parseFloat($('.inner').css("width"));
var innerHeight = 0.62*innerWidth;
$('.inner').css("... | 7d271c46377d1a1fdb4b63e9f3173800bbbb3857 | [
"JavaScript",
"SQL",
"Java",
"Text"
] | 6 | JavaScript | tanbinh123/cachet2 | 4d4633ef4b280ddf8223936c92ced5e3945cb18e | f8c37162d0dbeb30ef33a4cf479a881f828d0fb6 |
refs/heads/main | <repo_name>kyleb-herts/sentimental-analysis<file_sep>/sentimental-analysis-plot-scatter-group.py
#!/usr/bin/python
#this code uses examples from https://nealcaren.org/lessons/wordlists/
import pandas as pd
from afinn import Afinn
import matplotlib.pyplot as plt
from datetime import datetime
def get_month(text_stri... | 359fda54be8399127180057e85878dda4c3651f3 | [
"Python"
] | 5 | Python | kyleb-herts/sentimental-analysis | 330212c9ee360e288e348c27e2499e658ee42e69 | 241289a75fc404f0f156a43851fc4fdeb96c1b31 |
refs/heads/master | <file_sep>class Snake {
constructor() {
this.verticalDirction = 0;
this.horizontalDirction = 0;
this.bodyLength = [];
this.bodyLength[0] = createVector(floor(w/2), floor(h/2));
this.tailLength = 0;
}
move(xDirection, yDirection) {
this.verticalDirction = xDir... | 839b04077f46a7d5832ad48c737d39947d5415c6 | [
"JavaScript"
] | 2 | JavaScript | Bcantrell1/snake-with-p5 | c08c619502abffa6c0bb43c3656bec422e8e52a0 | 9a9af0c2c2d2bc8f8bd4e2458291aa1b45cda6aa |
refs/heads/master | <file_sep>package com.member.model;
import java.util.List;
import com.friendList.model.FriendListVO;
public class MemberService {
private MemberDAO_interface dao;
public MemberService() {
// dao = new MemberJBDCDAO();
dao = new MemberDAO();
}
public MemberVO addMember(String account, String pa... | 718bacb8e88318c79f11c46b572757156d27b11a | [
"Java"
] | 1 | Java | qzwse08252/CEA102G3_project | ddddf83c76ecc46393370bd9614a9c34a44f1002 | 29f9460579b777093cb343db23bdf83892b7e22a |
refs/heads/master | <repo_name>qijuweni/WbuddyDemo<file_sep>/src/Salloc.cpp
/*************************************************************************
> File Name: Salloc.h
> Author: qijunwei
> Mail: <EMAIL>
> Created Time: Mon 12 Dec 2016 01:50:59 PM CST
************************************************************************/
#in... | 99d42dfdbecff717e0db323b4f1b8a55f2926dd7 | [
"C",
"CMake",
"C++"
] | 6 | C++ | qijuweni/WbuddyDemo | cbeb7eb1d32a876ebfb7d3637e901585f8a7dcb7 | a66403e793417e2243a1d12a4c23b511c91b3521 |
refs/heads/master | <repo_name>blankyao/omniauth-qq<file_sep>/lib/omniauth-qq/version.rb
module OmniAuth
module Qq
VERSION = "0.1.0"
end
end
<file_sep>/README.md
OmniAuth-Qq
===
为omniauth实现的 [QQ登录](http://connect.qq.com/intro/login/) 策略
Basic Usage
---
In your Gemfile:
```ruby
gem 'omniauth-qq', :git => 'git://github.com/blanky... | c15de639b0e392dcf9392d6f213d9b9f7d4d3afe | [
"Markdown",
"Ruby"
] | 2 | Ruby | blankyao/omniauth-qq | dc08e9161ac39ecd88263861e7fa850c4c6a68a2 | 39ef982e1051aa17af1a8f0900c2a840da5b64ed |
refs/heads/master | <file_sep>console(-1 >>> 1)
if( file("hiragana.res", 0) != 1 ){
console("Could not find resources!");
exit();
}
const list = [
"a","e","i","o","u","n",
"chi","fu","ha","he","hi","ho",
"ka","ke","ki","ko","ku","ma",
"me","mi","mo","mu","na","ne",
"ni","no","nu","ra","re","ri",
"ro","ru"... | abc71fff12e25fb039fc88d220eff15ba0b09d17 | [
"JavaScript",
"Markdown",
"INI"
] | 29 | JavaScript | pokitto/GameDisk | 3d1635b4be712e1ff397afa4b0ccb724014cec3f | ce2102dbc6de06710ac457089ca6daa3d0ca36d6 |
refs/heads/master | <file_sep>from typing import List
if __name__ == "__main__":
nbr_entier = int(input("Entrez un entier strictement positif: "))
nbr_list: List[int] = []
nbr = 1
while nbr < nbr_entier:
nbr = nbr + 1
if nbr_entier % nbr == 0:
nbr_list.append(nbr)
nbr_list.pop(len... | 5643bfeefa28cc770cc101d157b9098abaf8c0e9 | [
"Python"
] | 6 | Python | EDU-FRANCK-JUBIN/exercices-sur-python-aerodomigue | 20630ee2131c1519d3abd3d3b90387441c50ebcb | 7702e9b6fe0e7d27401d15121a56d1cf7427d7d0 |
refs/heads/master | <repo_name>lakshmanreddy725/lucky<file_sep>/.bash_history
cd
grep ssh /etc/services
sudo systemctl stop firewalld.service
systemctl stop firewalld.service
cd
cd /opt
ls
ll
yum -y install wget
wget --version
rpm -qa wget
wget https://github.com/gitbucket/gitbucket/releases/download/4.32.0/gitbucket.war
ls
ip a
sudo syst... | 38e7e3240c24b415511870f999be92e09a51a05b | [
"Shell"
] | 1 | Shell | lakshmanreddy725/lucky | a4a0d14eb8011e5727c18c9e70b97efc30e55e2b | fad085b397343d330b1e0cf03f6a053ece578e1f |
refs/heads/master | <repo_name>jzorjnz/ST_SENSOR_JS_DEMO<file_sep>/mbedos5/build.py
import os
import subprocess
from subprocess import call
import sys
# default board name
board_name = "NUCLEO_F429ZI"
# get the input argument
if len(sys.argv) != 2:
print 'usage : build.py <BOARD> \ne.g build.py ' + board_name +'\nYou must specify wh... | 70bc5be45d5c13302a3c77524f3fb2b96a72cc12 | [
"Markdown",
"Python",
"C++"
] | 3 | Python | jzorjnz/ST_SENSOR_JS_DEMO | 651653485fd36a380f62ee833478ede2248ac21b | 3e4dcc29968f2ff7e28480fa58003065951a8110 |
refs/heads/master | <repo_name>napo5/connect4CLI<file_sep>/README.md
# connect4CLI
Java implementation of Connect Four game
<file_sep>/test/com/unicam/cs/pa/player/RandomPlayerTest.java
package com.unicam.cs.pa.player;
import com.unicam.cs.pa.core.Disc;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.as... | 55b2c9e8f6bf778e518dc2172d0ea718e30ed837 | [
"Markdown",
"Java"
] | 13 | Markdown | napo5/connect4CLI | 2cdced1fad61674d637c2a2535456cd16d729fe2 | 333796be18af5a5a03b83f2ec87a1fd647dc4d5b |
refs/heads/master | <repo_name>austenpiers/quash<file_sep>/HeapNode.h
#ifndef HEAPNODE_H
#define HEAPNODE_H
#include "HashNode.h"
class HeapNode{
public:
int value, count;
int HashIndex;
HashNode *PTE;
HeapNode(int Val, int i):value(Val),count(1),HashIndex(i),PTE(NULL){};
HeapNode(int Val, HashNode *k):value(Val),count(1),H... | 83a0d5c510a63a70635f548f896ee193cec53932 | [
"C++"
] | 5 | C++ | austenpiers/quash | d6810af4598d4d9dd5a0940f1d951511dec5f2a5 | 517af672d347f7228829032c4ddd7fd4bc35e9ad |
refs/heads/master | <file_sep>const express = require('express');
const { search } = require('./search');
const router = express.Router();
require('dotenv').config();
const {
client,
server,
} = require('./errors');
router.get('/', (req, res) => {
res.render('home');
});
router.post('/search', search);
router.use(client);
route... | 4703412630d66e7559e566cb46187feda30dcd42 | [
"JavaScript",
"Markdown"
] | 6 | JavaScript | GSG-G7/make-your-meal | b6c8f6f9714558907d40cec1bbd861e580b0b1f7 | 0cc6f954f88f28dd128ce01e7ebeabe1e61c271d |
refs/heads/master | <repo_name>angeladowns/hellosasebo<file_sep>/README.md
# Hello, Sasebo!
January 2017
Ruby 2.6.3 // Rails 5.0.0.1
http://www.hellosasebo.com/
This adventure app was created using the Rails Girls LA Guide located at: https://gist.github.com/jendiamond/5a26b531e8e47b4aa638.
<file_sep>/lib/fog.rb
# lib/fog.rb
module Fo... | 2b9231edcaf59e39d709bac390893b403043722b | [
"Markdown",
"Ruby"
] | 11 | Markdown | angeladowns/hellosasebo | ec047d82ef27bcc5b1ca2c706b100d74819c3d48 | 73673076019be95977ddcf3929a6c5fab9a4f8ae |
refs/heads/master | <repo_name>tobidsn/ci3-started<file_sep>/README.md
# ci3-started
Mulai Codeigniter 3 dengan illuminate/database
## Instalasi
* <code>$ git clone https://github.com/huiralb/ci3-started myProject</code>
* Jalankan command line berikut:
```
$ cd myProject
$ composer install
$ php -S localhost:8000
```
* Lihat pada bro... | 3694aae9835dbc50288126d6c13d78755259c32e | [
"Markdown",
"PHP"
] | 4 | Markdown | tobidsn/ci3-started | 5294a8d6cc362fe2bc1fdd163364960c9d8a5512 | 986da8010ba82efc7344e2f1a5de74208b289be8 |
refs/heads/master | <repo_name>freak0/yacht<file_sep>/yacht-web/src/main/java/br/com/eltonsantos/yacht/YachtApplication.java
package br.com.eltonsantos.yacht;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class YachtApplication {
... | 8ee4c9d7a8668c74d3d2654000f0ce6fc136c0e1 | [
"Markdown",
"Java"
] | 11 | Java | freak0/yacht | a606f6343ca8248f2321e3d65c7eb209d7601693 | 09c58e27beb355594c8ec320a1195909b6caffa7 |
refs/heads/main | <repo_name>derdroste/tinder_bot<file_sep>/secrets/secret.js
const secret = {
tinder: {
mail: 'your email',
password: '<PASSWORD>',
message: {
firstPart: 'Hi ',
secondPart: ', my name is peter!'
}
}
};
module.exports = secret;<file_sep>/views/assets/index.... | 539ee7a57801b35d02cfd50fcf0a54f5b05fa41e | [
"JavaScript",
"Markdown"
] | 5 | JavaScript | derdroste/tinder_bot | e9d54b6bf131fce89ff5b2b2c45d929a83a1232d | 64994a8289edea7c2a31918f9e635436102fa84f |
refs/heads/master | <file_sep>package com.dreampany.frame.data.util;
import android.annotation.TargetApi;
import android.app.Activity;
import android.os.Build;
import android.support.v7.widget.Toolbar;
import android.view.View;
import android.view.Window;
import android.view.WindowManager;
import android.view.animation.AccelerateInterpol... | 1729aacbae773659f73b6cc08efd1f51c1bb7060 | [
"Markdown",
"Java",
"Gradle"
] | 30 | Java | NerdFaisal404/framework | e3bd049a89e9451a041e0208841e8736eb06cecf | e6b33a18bd2b4507a4ab508f08aef012523eac44 |
refs/heads/master | <repo_name>frc3324/Metrobots2014<file_sep>/SimpleTemplate/util/gamepad.cpp
#include "GamePad.h"
#include <math.h>
#include <WPILib.h>
GamePad::GamePad(int port){
joystick_ = new Joystick( port );
dPadLeftDownEvent = false;
dPadRightDownEvent = false;
dPadLeftOld = false;
dPadRightOld = false;
for( int i = 0... | d576af5b765024d6184291107ef75dc863604789 | [
"C++"
] | 13 | C++ | frc3324/Metrobots2014 | 8c7a54779f7a8aa0211ffd938d38f581454a8e22 | b4b1aaa71da9be50236db5fcd417581c1e1cd3e3 |
refs/heads/master | <repo_name>ppp225/go-common<file_sep>/encoding.go
package common
import (
"bytes"
"encoding/gob"
"fmt"
)
// ToGob - go binary encoder
func ToGob(m interface{}) []byte {
b := bytes.Buffer{}
e := gob.NewEncoder(&b)
err := e.Encode(m)
if err != nil {
fmt.Println(`failed gob Encode`, err)
}
return b.Bytes()
}
... | 8cedcf717498823c00f480685563acf411b6fd67 | [
"Go"
] | 3 | Go | ppp225/go-common | d58892d2149799c3fb5c7e4ba6eb28ecba9d57c4 | e031664ce2adbfa268d95912b9e0268b7f8515c4 |
refs/heads/main | <repo_name>Canthesecond/Data_Cleaning<file_sep>/Data Cleaning.sql
-- Standardize the Date Format
Select SaleDate,CONVERT(Date,SaleDate) from CovidAnalysis.dbo.NashvilleHousing
Update NashvilleHousing
SET SaleDate = CONVERT(Date,SaleDate)
from CovidAnalysis.dbo.NashvilleHousing
use CovidAnalysi... | 9d472a7238e98dfa2b879bacd19c0a708b9a777f | [
"SQL"
] | 1 | SQL | Canthesecond/Data_Cleaning | 1f917ef7229218d5e8f78e01e301439459fb44ca | 8c92c1dadd2b47eeb9ef12303a376983d8ba1d62 |
refs/heads/master | <repo_name>jvalvert/poc<file_sep>/zmq-nodejs/zeromqclient.js
// Zeromq client that generates all the transactions
// use zmq to connect to server
var zmq = require('zmq')
, requester = zmq.socket('req');
requester.connect('tcp://localhost:38000');
var replyNbr = 0;
requester.on('message', function(msg) {
console.lo... | d95c4ed6163339d054c50a8a3ab4facd5bdf585f | [
"JavaScript",
"Markdown",
"Makefile",
"Go",
"C++",
"Shell"
] | 21 | JavaScript | jvalvert/poc | 0976576551c1bf414bfd800c5d47347664883ad2 | a889b191deac9a7ec1e74db00154cf7f02811470 |
refs/heads/master | <file_sep>#script prints the middle rows of a file, change on line 1
# This script prints the middle rows of a file (check out this conflicting change)
# Takes arguments:
# name_of_file number_of_head_lines number of tail_lines
head -"$2" "$1" | tail -"$3"
# new comment by Ron
#this is a comment
| ad2f23f02e8445fc524eb4319dcf6a5044587294 | [
"Shell"
] | 1 | Shell | RyanA1084/software-carpentry | 96fa3188ff5f391987908eab1c624ea70b00948b | d30fb5829aefba9154dcfa19be7a851612a63b66 |
refs/heads/master | <file_sep>import React from 'react'
import { useGrowl, Growl } from 'growl-react-component'
import './index.css'
import 'growl-react-component/dist/index.css'
function App() {
const [active, setActive] = useGrowl()
return (
<div className="app">
<header className="">
<a className="App-link" hre... | 156e2a885a2f05afa5a402c8fa5fb45caf2e18bd | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | PRADHAN-P/growl-react-component | a380d8d9cfde35a24eb2c1098168fa68eeaab909 | 2dc4b8aed9cbe97869792e4591ca86a6f0da3c6a |
refs/heads/master | <file_sep><section class="section about">
<div class="container about__info">
<div class="about__text-block">
<h1 class="about__title">Something about you</h1>
<div class="about__text">
<p>In this section, you can specify any information about yourself, insert your photos, your interests
and skills. It... | 99d24a28e5e4d30845a425f25f9a9d896183278c | [
"JavaScript",
"HTML",
"Markdown"
] | 3 | HTML | YuriiHavryliuk/test-mgid-pp | 1968bcdc5d127c9e914374cd97bd7ae23408448a | 914439270ee8f52d27f0e9f0644f441a140b8bff |
refs/heads/master | <file_sep>using System;
using System.Collections.Generic;
using System.Text;
namespace Bot.Template.Community.Api.Watson.Assistant.Model
{
public class Intent
{
public string intent { get; set; }
public double confidence { get; set; }
}
}
<file_sep>using System;
using System.Collections.... | 0979851df0c46421f8941e71ce07e2168dfac73e | [
"Markdown",
"C#",
"Dockerfile"
] | 9 | C# | juscelior/bot-template-community | 34b8c09be23dd9678f7a7dde3135456ee35cb0ce | d4d8ff8f0874e8e8d49cb09f85148003fd11b73e |
refs/heads/master | <file_sep>let btn1,btn2,btn3,btn4,btnRu,btnEng,modal; //сщздание переменных
//присвоение переменным кнопок
btn1 = document.querySelector('#btn1');
btn2 = document.querySelector('#btn2');
btn3 = document.querySelector('#btn3');
btn4 = document.querySelector('#btn4');
btnRu = document.querySelector('#btnRu');
b... | 4f7df30e1658b35c554d8f87861ddd665ac98d90 | [
"JavaScript"
] | 1 | JavaScript | harut666/practiceJs | a8101ddedcde808368b02c3bcd65c2a02684c7ee | 82e341c1daf5ded212c2fa3b8660602bd4f40e6c |
refs/heads/master | <repo_name>TrindadeThiago/quizJava<file_sep>/src/telas/Splash.java
package telas;
import static java.lang.Thread.sleep;
/*
* 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.
*/
/**
*
* @a... | 9ca61c6ecda4668c04d069ca724a6e62c7eab09b | [
"Java"
] | 1 | Java | TrindadeThiago/quizJava | 43736da3f7a655b22c1d93c6ba7ddc688b7b9336 | 1e55c7fbbce1048c943f18a06cb8106a638a588e |
refs/heads/master | <repo_name>mumtazahmadui/angularjs-workflows-demo<file_sep>/js/spec/category.controller.spec.js
(function(){
'use strict';
describe('Category Controller', function() {
var categoryResource,
$controller,
$q,
$timeout;
beforeEach(angular.mock.module('todo', function($provide){
$p... | 7e77b09f5d247247090430927823bff5a1a06b31 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | mumtazahmadui/angularjs-workflows-demo | badba52254933cca851f7d12541f989ff19bcf12 | 86be9126d8ddfbd05b1044303cd52a83cb93ca64 |
refs/heads/master | <repo_name>no1spirite/Portfolio<file_sep>/Portfolio.Web/Extensions/WebPageExtensions.cs
namespace BibleGravy.Extensions
{
using System.Collections.Generic;
using System.Text;
using System.Web;
using System.Web.Mvc;
using System.Web.WebPages;
using RedBadger.Web.ScriptDependencyResolver... | 60b7a2c2ce6dad2480a3ff42aba396596a10b6b6 | [
"JavaScript",
"C#"
] | 17 | C# | no1spirite/Portfolio | c5fa3d6322b8f7d1568432b8b5b1501b19c0e16a | db2b4ce1c4ba86dfc4400eba687a227b8683147b |
refs/heads/master | <file_sep>class Stroll < ApplicationRecord
belongs_to :dog, optional: true
belongs_to :dogsitter, optional: true
end
<file_sep>class Dogsitter < ApplicationRecord
has_many :strolls
has_many :dogs ,through: :strolls
belongs_to :cities, optional: true
end
<file_sep>class Dog < ApplicationRecord
has_many :strolls... | f2270c63f6ead3723deac316afb78dcc0f5e317a | [
"Ruby"
] | 4 | Ruby | totaotata/AirbnDog | 5b02f7372746d55933b76557459bf789d7c8478e | cc666d08f6c0475399b33b4f8e4b7c199f6f0715 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.