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 | <repo_name>UmarNazaket/MIPS<file_sep>/src/stages/WriteBackStage.java
package stages;
import validInstructions.DI;
import enums.StageType;
public class WriteBackStage extends Stage
{
private static volatile WriteBackStage instance;
public static WriteBackStage getInstance()
{
if (null == instanc... | b80019c11e3950c8050ecadf5cf5b9d7935d7131 | [
"Java"
] | 21 | Java | UmarNazaket/MIPS | fc0b675851be3fac2fb7dbcaa6d44c03c1df6dd5 | 1d33ee6eaf280c851e199ada15ad8aae9312523d |
refs/heads/master | <repo_name>HumanbiOS/HumanBios-WebSocket<file_sep>/deploy.sh
docker build -t humanbios-websocket . && docker-compose up -d
<file_sep>/server.py
from sanic.websocket import WebSocketProtocol
from sanic_cors import CORS, cross_origin
from sanic.response import json
from asyncio import sleep
from sanic import Sanic
import... | 7c3d6b4432e8be52be8274d52b04ee68cbfa3c0c | [
"Markdown",
"Python",
"Text",
"Shell"
] | 4 | Shell | HumanbiOS/HumanBios-WebSocket | 479c7ad7e91f1c54de7d0d3fabc2e0c096f2a998 | b15e5ecaa9467c52bf8b62c20332935db25d1d10 |
refs/heads/master | <repo_name>anaismoller/SNN_experiments<file_sep>/README.md
BEWARE!
this is not the main SuperNNova repository. Please go to: supernnova/SuperNNova
<file_sep>/supernnova/training/vanilla_rnn.py
import torch
import torch.nn.functional as F
class VanillaRNN(torch.nn.Module):
def __init__(self, input_size, settings)... | 2fb28c58bb7c70b42724a6ee2f6a3cbdf9857798 | [
"Markdown",
"Python"
] | 4 | Markdown | anaismoller/SNN_experiments | 7fee24474a64c7be491ad217ff3b9f8a119606c8 | 182dc59e5a66bc36164742e0e3ce7d04b4210215 |
refs/heads/master | <repo_name>nishanths/thin-npr<file_sep>/to-thin.js
// Rewrite thin.npr.org links in the footer of regular npr.org to point
// to the specific thin page instead of the thin home page.
(function() {
const nprStoryIdRx = /\/\d{4}\/\d{2}\/\d{2}\/(\d+)\//;
// TODO: make this work on "/section/.+/blah"
const pathMap ... | 7d2b1e05f680bc9ba198b5078915197c34dfb695 | [
"JavaScript",
"Markdown"
] | 3 | JavaScript | nishanths/thin-npr | 4726cfa2cf984ea23b9f8f5fa43a07e96fd36b5a | 3ed90d9fd1dd0363c49e203f7c7261f695d0c89d |
refs/heads/master | <repo_name>smartrak-govhack-2016/backend<file_sep>/BicycleBackend/Routing/NeighborFinder.cs
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using OsmSharp.Osm;
using OsmSharp.Osm.Xml.Streams;
namespace BicycleBackend.Routing
{
public interface INeighborFinder
{
IEnu... | 6fee7ce2c6f24c7cd57969de0a56a50ffe2b935f | [
"C#"
] | 14 | C# | smartrak-govhack-2016/backend | bf5f57f24a7513ac565bb6e1c784481c3e2b65ab | c7129273f1227c585aa5de92e0cc9f043fd2e0e8 |
refs/heads/master | <file_sep>from commonml import runner
def testhoge(config):
print("gebara")
if __name__ == '__main__':
runner.run()
| 9a0a0edd90499b6c2b6c2c1fdef6728e867f1ad1 | [
"Python"
] | 1 | Python | keisuke6065/python-training | 236c55eea412543393bbd4c66898009a842dfdf7 | c832c989827dbbc9c4c9d6996d86c516df479a95 |
refs/heads/master | <file_sep>// pages/personalInfo/collectedProjects/collectedProjects.js
var util = require("../../../utils.js");
var app = getApp();
Page({
data: {
collectedProjectIds:[],
collectedProjectInfos:[],
pageNumber:1
},
onLoad: function (options) {
const db = wx.cloud.database();
const _ = db.command... | 7bdbe0ee4b9ea665b3ef1a484083c022d17b7bb7 | [
"JavaScript"
] | 21 | JavaScript | yzchnb/projectHub | 601f6351514f92e8abd5c0fc423d57fcc004676f | de8fd55a343b6aa02167528ac3e3de295abb531f |
refs/heads/master | <repo_name>onkarkadam7/gardener<file_sep>/plugin/pkg/shoot/validator/admission.go
// Copyright 2018 The Gardener Authors.
//
// 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:/... | 773d1be118311a68bc2978158332a31f9381b79b | [
"Go"
] | 4 | Go | onkarkadam7/gardener | 54ba009b553f71c12d64bb342a061ae1b28de365 | f37c4bd1267b67c77a5caccd09e52fcbafd50ebd |
refs/heads/master | <repo_name>kalpak44/TicTacToe<file_sep>/src/TicTac/Saves.java
package TicTac;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.util.Stack;
public class Saves {
public String saveFile = "Gam... | 543be4a19cfe03c0a3602bdc1da9c24a60138835 | [
"Markdown",
"Java"
] | 3 | Java | kalpak44/TicTacToe | 1a38ccd680d80997e1c4d825a72edac6682d8798 | 320ef571c6ce596e7bd638a3e59e0eaf51faae9d |
refs/heads/master | <file_sep>import * as Discord from 'discord.js';
const client: Discord.Client = new Discord.Client();
client.on('ready', () => {
console.log(`Logged in as ${client.user.tag}!`);
});
client.on('message', msg => {
});
client.login('token').then(() => {
}); | 18ed48e351332de0d716afcd0b356b6d26097766 | [
"TypeScript"
] | 1 | TypeScript | developers-grove/grove-bot | b99b454b0e79f1b541744ebcb06c5f3bb15a6b13 | fb844d8d17ea770a53754690ccd182bcd5460d1e |
refs/heads/master | <repo_name>mauriciogallego/destellos-y-fragmentos<file_sep>/src/page/administrator.js
import React, { Component } from "react";
import Auth from "@aws-amplify/auth";
import Login from "../components/login";
import CreateBriefcase from "../components/createBriefcase";
import UpdateBriefcase from "../components/updateBri... | a287b35bae53112a60767556baed93f099199cc6 | [
"JavaScript"
] | 16 | JavaScript | mauriciogallego/destellos-y-fragmentos | 302283ae98be2cc01c10c68671ed9173070619f0 | bc8c23daa66daa1b63ca1a923dd9667f146e87e7 |
refs/heads/main | <repo_name>leosegre/medic_ip_project<file_sep>/main.py
import numpy as np
import cv2
import NeuralNetwork
import json
import os
import matplotlib.pyplot as plt
#defining the initial parameters and the learning rate
batch_size = 10
nn_hdim = 2048
learning_rate = 0.1
f1 = "relu"
f2 = "sigmoid"
threshold = 0.0001
sd_init... | d766617561ebbd59f72b245bbc0a984f80dc1c3b | [
"Python"
] | 2 | Python | leosegre/medic_ip_project | 2b257fcc24e35e2f17d600675e60667e89576643 | 1f74152172a7b8cfbab054cfc5e0d008fe10e133 |
refs/heads/master | <repo_name>rcloran/py-missile<file_sep>/setup.py
"""py-missile, a library for controlling USB missile launchers"""
from setuptools import setup
setup(
name="py-missile",
description="Library for controlling USB missile launchers",
version="0.1",
author="<NAME>",
url="http://github.com/rcloran/py-mi... | fc0de149ad1fa6b263a29a86a310960fae52af52 | [
"Markdown",
"Python"
] | 3 | Python | rcloran/py-missile | 0f609918faa5611c5fb5e8435f366a95e8b8af87 | 44ca7dca7d40af507f45595590ba11f8eb156b18 |
refs/heads/master | <file_sep>import codecs
import re
from difflib import SequenceMatcher
import spacy
import nltk
import torch
from enchant.checker import SpellChecker
from transformers import AlbertModel, AlbertTokenizer
from UFUtils import utils
def load_text(file_path):
text = []
with codecs.open(file_path, encoding="utf-8-... | ba435e223f828b9b3d77dd029bf0b6153e711a41 | [
"Markdown",
"Python",
"Text"
] | 24 | Python | fiorentinogiuseppe/aiboxsummerschool-OCR | 5f3200c1432c295691203c9a1dfd732c713d870c | 6eefdd52e0c1cd4183a4b8051f0ba24942cc8597 |
refs/heads/master | <repo_name>s-innovations/S-Innovations.VectorTiles<file_sep>/src/GeoJsonVT/Processing/VectorTileTransformer.cs
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SInnovations.VectorTiles.GeoJsonVT.Models;
namespace SInnov... | 2fa1a11ed90b0e10c3bf42b4af282fa719b342e9 | [
"Markdown",
"C#"
] | 26 | C# | s-innovations/S-Innovations.VectorTiles | d69ccad14307dc341297085eca757da0a265e028 | ef5a66fdf5ea43ae800e683a9bc1e2158aff3fee |
refs/heads/master | <file_sep>with pp as (
select
row_number() over (order by [Item No_],p.[Vendor No_], p.Manufacturer,p.[Item Description1 Vendor],Menge, [Minimum Quantity]) rn
,count(1) over (partition by [Item No_]) lines_per_item
,count(1) over (partition by [Item No_], p.[Vendor No_]) lines_per_vendor
,count(1) over (partition by... | 11d028a17710bd45618fc974e56b83f13c010244 | [
"C#",
"SQL",
"Markdown"
] | 27 | SQL | iftest-ICT/IFSMigrationExport | 8d4b78db2110dcb1cac6c40f7647b0b71d101d97 | 9733c89b963f96e6a4a641913de746281da84232 |
refs/heads/master | <file_sep>//All answer options
const option1 = document.querySelector('.option1'),
option2 = document.querySelector('.option2'),
option3 = document.querySelector('.option3'),
option4 = document.querySelector('.option4');
//All our options
const optionElements = document.querySelectorAll('.option');
cons... | 7c022c9a67dad14b5694568ddd7922156e8f225a | [
"JavaScript"
] | 2 | JavaScript | olegonuk/wayup_deep_JS | b0c95df046e23ff91de327ad731df15657520d65 | 063c36151130837357f3a324ece98ff1b67599da |
refs/heads/master | <repo_name>casmary/Learning_Ruby<file_sep>/word_count.rb
puts "Input words to count"
text = gets.chomp
def wordCount(words)
text = words.split(" ")
frequency = Hash.new(0)
text.each { |word|
frequency[word] += 1
}
frequency = frequency.sort_by { |x, y|
y <=> x
}
end
puts wordCount(text)<file_sep>/StringSplos... | 71e74b6041db7c0d40fc8f604009f73cdd606dfd | [
"Ruby"
] | 12 | Ruby | casmary/Learning_Ruby | 3334fa58ad233bddb3875d79cc4235a1e9903be9 | 6c06d6710e66e8557a90bd398ce1d70553082561 |
refs/heads/master | <repo_name>wesley-moody/nasa-photo-of-the-day<file_sep>/src/components/Apod.js
import React from "react";
import "../App.css";
function Apod(props) {
if (!props.apod) return <h3>Loading...</h3>;
return (
<div>
<img src={props.apod}></img>
</div>
);
}
export default Apod;
<file... | 8654598fddd471d1acbda8a0b44c09953dbecf96 | [
"JavaScript"
] | 3 | JavaScript | wesley-moody/nasa-photo-of-the-day | e09e7a7f8424cfe1b09aee4beef4695474f9129d | 612a9c0b7458694f976a5bea13977166ea9d07e2 |
refs/heads/master | <file_sep># cProjects
Sublime Text 3 plugin to manage your c/c++ Projects.
## Important
This plugin is only tested on a linux platform yet. I would by happy to know if it runs on an other platform.
## Synopsis
This plugin expands the sublime text by a simple C and C++ Integrated Development Environment.
Features inc... | 2af10cfdc7f21a236564037447a358019e61a0ec | [
"Markdown",
"Python"
] | 10 | Markdown | musdasch/cProjects | efc3c47f39b71e86633705fbd80117417298dcc0 | 7854af6a0df629b277082cd4535a43e61ae4ef75 |
refs/heads/master | <repo_name>mrudulp/pinterest_layout<file_sep>/ReadMe.md
# README.md
## Introduction:
* This project is a simple simulation of Pinterest like 2 column view.
## Learning Objective:
* Here the objective is primarily to learn UICollectionView
## How to use:
* Open "pinterest_layout" application
* Swipe up and down to... | 7105e0a3f6cdfc0863c2bdf64a1deef4078e5021 | [
"Markdown",
"Swift"
] | 3 | Markdown | mrudulp/pinterest_layout | 8faa697012ff7d850865dd72535f4f687f675f60 | ac9ee9e8d7a970f6aadcf20e36f56649245eed34 |
refs/heads/master | <repo_name>santiram/Projects<file_sep>/MdnRNN.py
#here we make the mdn of the rnn las
from gym.spaces.box import Box
from gym.envs.box2d.car_racing import CarRacing
import cv2
cv2.resize(imf,[])<file_sep>/ImageRecognistion1.py
#import here everything
from PIL import Image
import face_recognition
import cv2
import os
im... | 90c904a4697273847b53687eab9c9b3221cb62e1 | [
"Python"
] | 5 | Python | santiram/Projects | a3323a7edf55f969344d5ffc511cdc9b286f3c11 | 74c70b401b56902817571f702127ede9404b44fd |
refs/heads/master | <file_sep>// Copyright Mentisoft
#pragma once
#include "GameFramework/GameMode.h"
#include "Menti_TanksGameMode.generated.h"
/**
*
*/
UCLASS()
class MENTI_TANKS_API AMenti_TanksGameMode : public AGameMode
{
GENERATED_BODY()
};
<file_sep>// Fill out your copyright notice in the Description page of Project... | 5e8f1108d383bbab9b79d7f23f04c7555f23282c | [
"C++",
"INI"
] | 5 | C++ | santanor/Menti_Tanks | f01b5c90cac262b5fc40a957708968e1db57bac9 | c61c7202d5a5f1169056ad0c41c7a0f26e83110a |
refs/heads/master | <file_sep>OPTIONS=(1 "Select Keymap"
2 "Select Editor"
3 "Configure Mirrorlist"
4 "Partition Scheme"
5 "Install Base System"
6 "Configure Fstab"
7 "Configure Hostname"
8 "Configure Timezone"
9 "Configure Hardware Clock"
10 "Configure Local... | f74e1330156c470c518a38b2ae5a56745afe4963 | [
"Shell"
] | 1 | Shell | SamuelTulach/aui | 0a79ab4c89a9b95634582708113a9a5b470800dc | 0064ee0078d9472b661137db7dbe4196534f6c50 |
refs/heads/master | <file_sep>package api;
public class LuJiang {
}
| fd78a49805e1f9e18668dfb8232158976bcdd480 | [
"Java"
] | 1 | Java | dyy1023/TestProject | 5741a3f84db9c552280bbef3899d479518c5d0c4 | d4016876dd7c7613d889c9d1446fa31f519c95f3 |
refs/heads/master | <repo_name>teledildonics-dev/teledildonics-dev<file_sep>/src/reconcilliation/use-lovense.ts
import { Model } from "../lovense/models";
import {
VibrationLevel,
RotationLevel,
Lovense,
LovenseDeviceInfo
} from "./lovense-abstract";
import { useEffect, useState } from "react";
import { unsafe } from "../common/sa... | fa3e1c44baa29e029f06942bcb0f8b2522086530 | [
"TypeScript"
] | 15 | TypeScript | teledildonics-dev/teledildonics-dev | ede95cf523cb863f94e84ea5a9bd6942d15bf800 | 1fff68dd6b32bea2430f1f289ea77a05e772e9af |
refs/heads/master | <file_sep># -*- coding: utf-8 -*-
from django.contrib.auth.decorators import login_required
from django.core.urlresolvers import reverse_lazy
from django.utils.decorators import method_decorator
from django.views.generic.edit import CreateView, DeleteView, UpdateView
from django.views.generic.list import ListView
from ... | 8fbc474c6638b038ca04beddfd5b8addec598870 | [
"Markdown",
"Python",
"HTML"
] | 6 | Python | rombr/dev-hub-test-task | 978bdc8cc28c002177a6bf02e6a90453f873bec8 | 3f3d55359d8b31c3ad4eddfff66caf8c7d89925e |
refs/heads/main | <file_sep>IF (SELECT COUNT(*) FROM dbo.syscolumns WHERE name IN ('PartnerD')
AND ID = OBJECT_ID('tlgBPMTaskInfo') ) = 0
BEGIN
print 'column already correct'
END
ELSE
BEGIN
exec sp_RENAME 'tlgBPMTaskInfo.PartnerD' , 'PartnerId', 'COLUMN';
END<file_sep>UPDATE tmgForm SET DeletedFlag = 'Y' WHERE FormGUID = 'fugDifUpl... | f21595f2c472f52988ca21d3fb4380702c7b953b | [
"C#",
"SQL",
"Markdown"
] | 104 | SQL | satishrayapa/azurepipeline | 9567a33d86e7355fe6a84825b60dab713ac59944 | 9c6bf56a15302c36c5f722e4bbfa21bb4a3f5d97 |
refs/heads/master | <repo_name>Glenn409/starwars_rpg_game<file_sep>/assets/javascript/app.js
//created toosn with random stats;
var obi = createChar('obi-wan','<NAME>',120,randomAP(),randomCP(),'assets/images/obi2.jpg');
var luke = createChar('skywalker','<NAME>',100,randomAP(),randomCP(),'assets/images/Skywalker-1.jpg');
var sidious = cr... | c58f6dbf8f952b0812d1314a1ed1641a1f12ceb0 | [
"JavaScript"
] | 1 | JavaScript | Glenn409/starwars_rpg_game | c4ed688f16963f66adf6051e4301f401baae6e0a | e5ee626553b4b918dde42025cc1086cf837926d7 |
refs/heads/master | <file_sep># Language Detection
The following different strategies are used to detect the language.
- by Accept-Language-Header (e.g. 'de-CH,en;q=0.8,en-US;q=0.5,fr;q=0.3')
- by Cookie (e.g Cookie 'lang', value 'en')
- by UriPath (e.g. /shop/en/article/3453452)
- by QueryParam (e.g. index.php?lang=en)
These methods ... | be2dd4e79a867022087814a2de2296da7e01402f | [
"Markdown",
"PHP"
] | 3 | Markdown | unicate/language-detection | c85e48914e6d649fa37f8cdb7210c034512c8cc2 | aa804b46965777f7a78252314c61256a8a7b498b |
refs/heads/master | <file_sep>package com.example.library_hios.hioscommon;
import com.example.library_hios.hoisjump.HiosAlias;
public class HiosRegister {
private static final String PKG_SFNATION = "com.example.p022_hois";
public static void load() {
//for example
HiosAlias.register("jump.twomainactivity", PK... | d03fd052cbeb5ffad59dad382d7892e958921a5e | [
"Java",
"Gradle"
] | 2 | Java | geeklx/library_hios | a3148bba32d66908603abb024d7bba5064d177f4 | 9a4897d96527030bd29d654a8e479d906f7ac336 |
refs/heads/master | <file_sep>class TacksController < ApplicationController
def create
@board = Board.find(params[:board_id])
# TODO Check ownership of board.
@tack = @board.tacks.build(tack_params)
if @tack.save
redirect_to @board
else
# TODO display errors
redirect_to @board
end
end
def s... | f8d3703e7ecf9b017d9b2cf84c2358203e6383e4 | [
"Markdown",
"Ruby"
] | 15 | Ruby | garrettf/snaptack | 8b4ecbb03864ae0354a34a46879600c84e9814d0 | 83f8e38fb2fc7e12ddfb2094630fef7e10f61712 |
refs/heads/main | <file_sep># tdd
tdd learning
| 8ab991a5fcaa80daf34ff33a0efd29d453800731 | [
"Markdown"
] | 1 | Markdown | simar2500/tdd | 8ac7302a7c94080c6715421c78874c4b5f8f2174 | 4042279109ad45357a5b7b069f5f8888880e127d |
refs/heads/master | <repo_name>sans1960/Formulario_viajes<file_sep>/formulario.php
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Formulario</title>
<link rel="stylesheet" ... | 0418205650a48a76bc583cf7dd6f62620b4c72d4 | [
"PHP"
] | 6 | PHP | sans1960/Formulario_viajes | cd16cda4bc674a0cd2ad1cfbb45f33ce2c00b7fc | 03fdd00315038de400e4da694562a94b8eca90a5 |
refs/heads/master | <file_sep>package lib
import (
"github.com/garyburd/redigo/redis"
"github.com/henosteven/heigo/config"
"net"
"time"
"fmt"
)
var pool *redis.Pool
func InitRedis (config config.RedisConfig) {
pool = &redis.Pool{
MaxIdle:config.MaxIdle,
IdleTimeout:config.IdleTimeout,
Dial: func() (redis.Conn, error){
c ... | c26b8fa4d9ace6f7039103b5e32edbdd494edd17 | [
"TOML",
"Go"
] | 4 | Go | P79N6A/heigo | 683953dfb69da29aec3426c731e284755f753dcd | 60c935faa28f8a91bb5ec4d9dc4394cc9d429e28 |
refs/heads/master | <repo_name>shuntian/electron-email-client<file_sep>/src/renderer/store/mutations-type.js
export const UPDATE_MAIL_LIST = 'UPDATE_MAIL_LIST'
export const SET_UPDATING = 'SET_UPDATING'
export const SET_EMAIL_DETAIL = 'SET_EMAIL_DETAIL'
export const STAR_EMAIL_IN_LIST = 'STAR_EMAIL_IN_LIST'
export const READ_EMAIL_IN_... | 3e555d8bdd85beb2a126d8e4d1391e46caa6637d | [
"JavaScript"
] | 5 | JavaScript | shuntian/electron-email-client | faf09772876f8d60d7ceec0529f6c1673bf73486 | b0c9cee58862a1f7331edd071f1e9c222d7a06e3 |
refs/heads/master | <repo_name>luisrigoni/GitHubUsersExplorer-Angular<file_sep>/ExeAngular/ClientApp/app/components/counter/counter.component.ts
import { Component, Inject } from '@angular/core';
import { Router, ActivatedRoute, Params } from '@angular/router';
import { Http } from '@angular/http';
@Component({
selector: 'counter',
... | 61b9df1451daac7ddc12adc11ee13ed689178f51 | [
"Markdown",
"TypeScript"
] | 2 | TypeScript | luisrigoni/GitHubUsersExplorer-Angular | 7d2b589a2e646c2a4a603821724e7d6195064f15 | e785fb2cef644d6bae36d42e1e4110b42f752c07 |
refs/heads/main | <file_sep>package TestCase;
import static io.restassured.RestAssured.given;
import org.junit.Assert;
import org.junit.Before;
import org.testng.annotations.Test;
import io.restassured.http.ContentType;
import io.restassured.response.Response;
public class GetTests extends TestBase {
@Before
public void... | aa9335ece7fab440dcb28d636b4cf647c78b815a | [
"Java"
] | 1 | Java | amorr42/TrendyolRestApiTest | 645e3b16f63bf621c49138f4d0db5b71597f1cdd | 42887252cde9ecb751d81964d3b0aa35d8eedc21 |
refs/heads/master | <file_sep>package net.melaircraft.owl.library.exception.slot;
/**
* Exception to indicate a bundle resize would truncate slots.
*/
public final class ResizeWouldTruncateSlotException extends SlotException {
/**
* Construct a new bundel resize would truncate slots exception.
*/
public ResizeWouldTru... | 354641a1ef0a95b770dddb5eeb12d6a6d99fa2d8 | [
"Java"
] | 7 | Java | nathanbrock/owl | 99d4f404b6ea7fc9c46a853988ed4c8c0851f508 | 81df8a91249d2ec29f948f23aa763aefbce08623 |
refs/heads/master | <repo_name>psanti93/PracticRepo2<file_sep>/app.js
function add (p1,p2){
return p1+p2;
}
function subtract(p1,p2){
return p1-p2;
}
function multiply(p1,p2){
return p1*p2;
}
function divide (p1,p2){
return p1/p2;
}
<file_sep>/README.md
HI READ ME!
| 4bebb789bffb5802ce48f1133b10957323574e11 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | psanti93/PracticRepo2 | 01fb922c92be72d891ebdba48196d4bc0030096d | 35522c25fd94784f5f6ce1013ecfe253f635c1be |
refs/heads/master | <repo_name>JayveeAnn-19/PENAROYO_SetB<file_sep>/main.js
function Evaluate() {
Excellent=0;
var math = document.getElementById("Math").value;
var science = document.getElementById("Science").value;
var english = document.getElementById("English").value;
var filipino = document.getElementById("Filipino").v... | 0c94f2a641ecf69f76678ea3e0acca21bf0a4692 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | JayveeAnn-19/PENAROYO_SetB | fa5916544579f1b68d3348c64522ab937964407c | 82e38dd307da95f8af47fc04deebed3318759b6e |
refs/heads/main | <repo_name>shaunyarbrough/moments_captured<file_sep>/spec/requests/users_spec.rb
require 'rails_helper'
RSpec.describe "Users", type: :request do
before(:example) do
@user = User.create!(email:"<EMAIL>",password:"<PASSWORD>",profile_attributes:{first_name: 'shamus',last_name:'mcneil',bio:"this is a bio"})
... | c572eef8f39c879074f8d7109e6d3b38a244306c | [
"Ruby"
] | 14 | Ruby | shaunyarbrough/moments_captured | 7d59820d7ffc7b56125e532ee2a44ed378a21904 | d91c15f2311deeabce958b2ca2cb5322558a62fe |
refs/heads/master | <file_sep>#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <string.h>
#include <getopt.h>
/*
* input is dynamically allocated, we can change its content without facing
* the infamous UB.
*/
static char *
burpn_aux(char *input,
int shift,
int round)
{
int ret;
c... | 8157d79b433f2b0550d059bc7ae313285595c762 | [
"C"
] | 1 | C | pozdnychev/burp | 422dbcf246dc7fae96b80d2946cc5b780bccf849 | 3bc027444320399ef8ead779e7456e22eb433875 |
refs/heads/master | <repo_name>emartin59/mobile-wallet-bridge<file_sep>/README.md
# Kin Mobile-Browser Bridge Solution
- make sure you have Nodejs installed: https://nodejs.org/dist/v10.16.0/node-v10.16.0.pkg
## Server
- Backend with WebSocket
```
cd server
npm install
npm run build
npm run start
```
## Client
- This part mimicks 3ed pa... | a7159bf687363e621a8b5f60850c075280c15467 | [
"Markdown",
"TypeScript"
] | 9 | Markdown | emartin59/mobile-wallet-bridge | b44b8e7f88e7e632e990682459b99223eb44d668 | 15fa6be02b5408f776e17c032e70bc59f00b3659 |
refs/heads/master | <file_sep><?php
class Incognito
{
/**
* 2017-03-13 TS:
* retrieves data from 'visits' cookie to return amount of user visits
* @return string
*/
public function getIncognitoVisits()
{
if (isset($_COOKIE['visits'])) {
$visits = $_COOKIE['visits'];
if ($vi... | 2e1ed918102ddf9b237c5125c8463050a3a29fc7 | [
"JavaScript",
"PHP"
] | 17 | PHP | tsmilgius/rss_v2 | 0b61992a69978167fbbca6e7bbbd84ea6ee89640 | a59c9dd9a0f9431b34fb5cae51f56e4dd8af491e |
refs/heads/master | <repo_name>ydf1362099096/myWeb<file_sep>/src/main/java/top/andypage/page/webpage/dataTransferObject/LoginResultDTO.java
package top.andypage.page.webpage.dataTransferObject;
public class LoginResultDTO {
private Integer code;
private String message;
public Integer getCode() {
return code;
}
... | b5e0abe18927776496b19491788c06ea049924a8 | [
"Java",
"INI"
] | 12 | Java | ydf1362099096/myWeb | 0edb32a3c75e8e41e40d6d08c8063238305ccd63 | bdef7ecd320530b559c164f386703bf1dc1b89c4 |
refs/heads/master | <file_sep>source 'http://rubygems.org'
group :development, :test do
if RUBY_VERSION =~ /1.9/
gem 'ruby-debug19'
else
gem 'ruby-debug'
end
end
gem 'rails', '3.0.3'
gem 'ruby-mysql'
gem 'sqlite3'
#gem 'mysql'
gem 'faraday'
gem 'taps'
gem 'haml'
gem 'formtastic'
gem 'rails3-gene... | d7ae1fd272454abb94a44b551968fb72d86e20b0 | [
"JavaScript",
"RDoc",
"Ruby",
"Markdown"
] | 36 | Ruby | marke1026/moneymomma | 62bf6d5a6df18c4cf5012bbb2fc621bd00b437b2 | f7483459e620d3a34e7eba3cf6d2e81530e39cde |
refs/heads/master | <repo_name>msabramo/slocum<file_sep>/python/setup.py
"""Slocum: Better forecasts for sailors."""
DOCLINES = __doc__.split("\n")
import os
import sys
import itertools
# multiprocessing isn't directly used, but is require for tests
# https://groups.google.com/forum/#!msg/nose-users/fnJ-kAUbYHQ/_UsLN786ygcJ
import multi... | b1b41fc345e2c12438abea5930042fae70bc3654 | [
"Python"
] | 1 | Python | msabramo/slocum | afd206c303d49a06cdb82041f457d3ba564c09be | 55360c1b0ed1a6945fcba616b8df092b7630b02e |
refs/heads/master | <file_sep>CREATE TABLE books (
id integer PRIMARY KEY,
name varchar(50)
);<file_sep>package com.quest.apm.testjavaee.ejb.ejb3.sessionbean;
public interface SessionBean {
public String getStr(String s);
}
<file_sep>package com.quest.apm.testjavaee.ejb.sessionbean.dto;
import javax.ejb.EJBLocalObject;
pub... | 3988c682ee01ced1b7a9e74c839b11ee38ee0293 | [
"Java",
"SQL"
] | 21 | SQL | XQQ8765/APMTestJavaEE | a911d70df59b84067ecea0050d7e7eccb499e735 | e1a2c9c6325372203b444010042b1713bd9b93ea |
refs/heads/master | <repo_name>toktamm/LightBnB<file_sep>/seeds/01_seeds.sql
INSERT INTO users (id, name, email, password)
VALUES (1, 'User One', '<EMAIL>', '$2a$10$FB/BOAVhpuLvpOREQVmvmezD4ED/.JBIDRh70tGevYzYzQgFId2u.'),
(2, 'User Two', '<EMAIL>', '$2a$10$FB/BOAVhpuLvpOREQVmvmezD4ED/.JBIDRh70tGevYzYzQgFId2u.'),
(3, 'User Three', '<EMAIL>... | e2bcae8cc9bb5babaaca1938f317d388fab83768 | [
"SQL"
] | 1 | SQL | toktamm/LightBnB | f28287032b59feac7133fa853fe019908dd88fe2 | e294481379e4138add78991b2147f5f934983d22 |
refs/heads/master | <repo_name>schadov/libwombat<file_sep>/primitives/Euler.h
#pragma once
#include "StepSolverBase.h"
template <template<class R> class Blas,class RealT,class Vector,class Func, class History>
struct EulerStep: public StepSolverBase<Blas<RealT> >{
static void call(unsigned int N,RealT t,RealT h, Vector &x, const Fu... | d30aefdc7038d4f2dd16156f423170d80c7236e6 | [
"C",
"C++"
] | 48 | C++ | schadov/libwombat | 01f7fda74dc97bc20f5b90970687d1e2e04e15a3 | 17b1d173e37e83142fdfa1426abb7e391b3ed04b |
refs/heads/master | <repo_name>hharzer/webscraping<file_sep>/api/profile/controllers/profile.js
'use strict';
/**
* Read the documentation (https://strapi.io/documentation/3.0.0-beta.x/concepts/controllers.html#core-controllers)
* to customize this controller
*/
module.exports = {
async findOne (ctx) {
const {id} = ctx.pa... | 20842c90950832fac2bf3d58bc7f5ac43a992068 | [
"JavaScript",
"Markdown"
] | 3 | JavaScript | hharzer/webscraping | 86d2233f32239ed92e2796ea5848eb6bda482b00 | 57f24b9a10a79beb7c6a3ccfad7c4591920fab2d |
refs/heads/master | <file_sep>//Challenge 16:A program to find duplicate characters in a string.
package com.tgt.igniteplus;
import java.util.Scanner;
public class Challenge16 {
public static void main(String[] args){
Scanner in=new Scanner(System.in);
System.out.println("enter the string");
String s=in.next... | 90ca5cae16527dd0a3f9a7b2627037ddc3244521 | [
"Markdown",
"Java"
] | 6 | Java | IgnitePlus2020/Challenges-arpitha | 4a14666881e5baa5bb6b1187d041c18fae7a1e90 | ee35750c97e775663611056ec80310e3a3d58f03 |
refs/heads/master | <repo_name>hugolprez/platzi-javascript<file_sep>/README.md
# platzi-javascript
Curso de javascript
<file_sep>/Fundamentals/22. Callback/index.js
const API_URL = 'https://swapi.co/api/'
const PEOPLE_URL = 'people/:id'
const lukeUrl = `${API_URL}${PEOPLE_URL.replace(':id', 1)}`
const opts = {crossDomain: true} //se le i... | 24bd3fdaf04c69e93915d6332ab32e7cf97894c6 | [
"Markdown",
"JavaScript"
] | 10 | Markdown | hugolprez/platzi-javascript | ede04a529b1fb20821a42cd377405f88263d008d | 80c0b34f6c85f7785ff13b82561c868c236a0b80 |
refs/heads/master | <file_sep>#include <stdlib.h>
#include <unistd.h>
#include <stdio.h>
#include <signal.h>
#include <time.h>
#define CLOCKID CLOCK_MONOTONIC
#define SIG SIGRTMIN
#define errExit(msg) do { perror(msg); exit(EXIT_FAILURE); \
} while (0)
struct os_timer_cb
{
void (* cb_func)(void *);
vo... | 13b998154bbff957d6a476fae9f83d8e54de0ee8 | [
"Markdown",
"C",
"Makefile"
] | 3 | C | frebbles/callback-via-signal | 23813c9beb3786865723304196a318774cd00fae | ab4d596164906cca6f944825f926b89d72c3f10f |
refs/heads/master | <file_sep>const synchroReducer = (state = {}, action) => {
if (action.type === 'driversBids') {
return {
id: action.id
}
}
if (action.type === 'delOrder') {
return {}
}
return state
}
const addDriverOrder = (id) => {
const actionAdd = () => ({type: 'driversBids', id})
return (dispatc... | de19e60bfc1b1b83ee0e18798814c93c63afb619 | [
"JavaScript"
] | 17 | JavaScript | Maksym7415/brocker | 31f255fd73d6eb84422bf0149e9dc4392faa3933 | 87b1cb594938cf2254e2f5380d54d126ff5b3c71 |
refs/heads/master | <file_sep>"""torch parameter groups manager"""
import torch
from collections import OrderedDict,Iterator
__all__ = ['ParamGroupsManager',]
class ParamGroupsManager(object):
"""
`ParamGroupsManager` is a class for managing torch parameter groups.
self.defaults = dict(options0=v0,options1=v1,...),
self... | abe9b883d1da9d9c544268577cb8525a090c8c05 | [
"Markdown",
"Python"
] | 4 | Python | BoyangZHOU/aTEAM | 84601893cc7dddd3a1a2f6b6bc365b4c9dbb14cf | 92587d672a60358a0e8ab63d9efad52ed9fad539 |
refs/heads/main | <repo_name>wusongqian99/wusongqian99.github.io<file_sep>/2018-in-review-master/genassets.php
<?php
function getDirContents($dir, &$results = array()){
$files = scandir($dir);
foreach($files as $key => $value){
$path = $dir.DIRECTORY_SEPARATOR.$value;
if(!is_dir($path) && $value !== '.DS_Store'... | 0f8008ccd98d8ea19186e89dbf4a949daa92b9af | [
"JavaScript",
"Markdown",
"PHP"
] | 6 | PHP | wusongqian99/wusongqian99.github.io | a667a88124b383b8439c7892112c63dea36e1c1c | d25e52640064f2a319be42c6d0d416673e16b9d3 |
refs/heads/master | <repo_name>nosammai/CS122B-Project3<file_sep>/src/ConnectionManager.java
import java.sql.CallableStatement;
import java.sql.Connection;
import java.sql.DatabaseMetaData;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.sql.Types;
// CREATED ... | f0a31b048761aa6243d2612fd9d12756844ce486 | [
"Java",
"SQL"
] | 2 | Java | nosammai/CS122B-Project3 | 9f1373c5411e400632c6318a72d197099b801a63 | 61f83d70a8a73fe2b5625387491d7f0ac2c68639 |
refs/heads/master | <file_sep>define(["jquery"],function($){
$(".info ul").each(function(){
$(this).slideUp();
})
$(".info ol").each(function(){
$(this).slideUp();
})
$(".info h2").on("click",function(){
change($(this),"span");
})
$(".info h3").on("click",function(){
change($(this),"span");
})
function ch... | 62aeb4cc74186f69986a500843ac15191ad64d63 | [
"JavaScript"
] | 1 | JavaScript | sweetYZL/weekTest | 5d767b7c5042ccd1b3df4b351990e458b9c52d95 | 13dd6d0de95a860b8564e6351c82633764fc469e |
refs/heads/master | <file_sep>declare module namespace {
export interface Definitions {
}
export interface Items {
$id: string;
type: string;
title: string;
description: string;
default: string;
examples: string[];
pattern: string;
}
export interface RootObject... | 26f34202ecdd8cdff84b370e42fb5be08cca32b9 | [
"Markdown",
"TypeScript"
] | 3 | TypeScript | sambacha/sushiswap-relayers-list | 85960d48a42bd4d2661153c2856cedbc04d64d9f | 6a652aa193b534d9e7317d8518f07a8a3c17a322 |
refs/heads/master | <repo_name>kevins1022/tpshop<file_sep>/Runtime/Cache/Home/9b704f822dd650dff93d491c8d637394.php
<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<title><?php e... | 0624c7b039691e83f1169c918c7607f1d1b36288 | [
"PHP"
] | 7 | PHP | kevins1022/tpshop | 700eb098d28e8da70ba3be17b9a204f9e3605938 | f5453b98394e398fdea6bf8b842e2bfa46262d9c |
refs/heads/master | <file_sep>import re
def clean(text):
text = re.sub("\d:\d+:\d+\.\d S(\d+|\?): ", "", text)
text = re.sub("\[.+?\]", "", text)
text = re.sub("\-", " ", text)
text = re.sub("\s{2,}", " ", text)
return text.strip()
with open(transcript) as fh:
lines = fh.readlines()
lines = [clean(line) for lin... | 7c69c6690c46ffbe7ec62db57a4a780bc9b6393e | [
"Markdown",
"Python"
] | 2 | Python | braindead/Podcast-Data | 996b607dc3acadad9f60ab32c2b4322b2d4917a8 | 6ebf1e84172f4c32f39d49a48e3bd22a7858c249 |
refs/heads/master | <file_sep>package com.spideriot.kkt.utils;
import android.content.Context;
import android.util.DisplayMetrics;
import android.view.WindowManager;
import com.spideriot.kkt.KktApplication;
public class ScreenUtil {
public static int[] getScreenSize() {
WindowManager wm = (WindowManager) KktApplication.ge... | 1c69882e2d0b6adb9e0a820221de056560f48370 | [
"Java"
] | 7 | Java | liudong1991/kkt | 788951bf5a6ae0907b3b3ab0453bbe6d1c4bd5b1 | 3aa804957eef3458570b06fc341c72c46f28e8f7 |
refs/heads/master | <repo_name>hugrave/thesis<file_sep>/sample_generation_net.py
import torch
import torch.nn as nn
import torch.nn.functional as F
import torch.distributions as tdist
import lpips
from model import Generator, PixelNorm, EqualLinear
import argparse
from tqdm import tqdm
import numpy as np
from torchviz import make_dot
... | d2314debc799f84bf6c6e6a0c64f17e162494e47 | [
"Markdown",
"Python"
] | 6 | Python | hugrave/thesis | 3a1fbaf59d80153865fc21cccf30d09cf6423cea | 0ca11ffc3b3dfbaba4d86cff50ed8d485ea3782a |
refs/heads/master | <file_sep>from spire.schema import SchemaDependency
from docket.controllers.entity import BaseEntityController
class BaseDocumentController(BaseEntityController):
schema = SchemaDependency('docket')
<file_sep>from mesh.standard import *
from scheme import *
from docket.resources.entity import BaseEntity
from doc... | 63c02e307e5b2a1c6f9c74c16365c0482c976b50 | [
"Python",
"Shell"
] | 53 | Python | siq-legacy/docket | dbc1c9cd5297c9efe84780aadc0d8204a7b9af9b | f127c164e0d13960f0af2f7e27961b669db5ce1f |
refs/heads/master | <file_sep><?php
/*
* This file is part of the BaseApi package.
*
* (c) <NAME> <<EMAIL>>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Onema\BaseApiBundle\Tests\Controller;
use Symfony\Bundle\FrameworkBundle\Test\WebTes... | 631afc7d4cfb1a78a2f6c05021cab8f0d1fa9133 | [
"Markdown",
"PHP"
] | 10 | PHP | onema/base-api-bundle | 90f3f354674a991eed2b608b77d3c5e041ee1057 | 643668c4d02228c9c6ead197cb0eb2015a79cd78 |
refs/heads/master | <file_sep>package com.webcom.api.model;
import lombok.Data;
@Data
public class Message {
private int status;
private String type;
private String message;
}
<file_sep>package com.webcom.api.model;
public enum Actions {
SHOW,EDIT,DELETE
}
<file_sep>package com.webcom.api.model;
import lombok.Data;
... | 57feb8d5cd620d01e3c17f5bf54fa3ffdb2595b9 | [
"Java"
] | 11 | Java | alsemyannikow/apiClient | ff39817f75c69f11754c6d3adf831a0e9ed56c5e | 5fe48f06619f075c44014d0d546a7a292b933e9a |
refs/heads/master | <file_sep>from .local_cuda_cluster import LocalCUDACluster
from .dgx import DGX
<file_sep>0.8
---
- Add device memory spill support (LRU-based only) (#51) `<NAME>`_
- Update CI dependency to CuPy 6.0.0 (#53) `<NAME>`_
- Add a hard-coded DGX configuration (#46) (#70) `<NAME>`_
- Fix LocalCUDACluster data spilling a... | 326154ad4b3dea17f15537011583362dcbff35e9 | [
"Python",
"Text",
"reStructuredText",
"Shell"
] | 7 | Python | galipremsagar/dask-cuda | a448a9c707706e20b3162cf1982969a40c604d63 | b1ba3cbaa981528f3b3130835b663c1a59ffb2ca |
refs/heads/master | <repo_name>SeverinM/WereWolf<file_sep>/LG/LG/GameOver.xaml.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Input;
using Xamarin.Forms;
using Xamarin.Forms.Xaml;
using LG.VM;
namespace LG
{
[XamlCompilation(XamlCompilationO... | 87b4706f0e9435849d994460c12cbed120fd621c | [
"C#"
] | 48 | C# | SeverinM/WereWolf | 8760b4a042072a326a41075e4a01e0117dcbe62c | 5b2c477136c6b63b64ab460a7c1e001fc0427c46 |
refs/heads/master | <repo_name>tsragravorogh/taskForExcellentMark<file_sep>/src/com/company/Triangle.java
package com.company;
import java.awt.*;
public class Triangle {
public Line a, b, c, a2, b2, c2, x, y, z;
public Triangle() {
this.a = new Line(400, 400, 500, 400, 0, 0);
this.b = new Line(500, 400, 313, 500... | 291eef452d83e489ddd8aed95bd9e64122a7b58d | [
"Java"
] | 3 | Java | tsragravorogh/taskForExcellentMark | da802ed8413afdbc07cb8df9aa6ec8a316aa8397 | 9f1a742584472496d638292a24eecca19bca6f87 |
refs/heads/master | <file_sep>source 'https://rubygems.org'
git_source(:github) do |repo_name|
repo_name = "#{repo_name}/#{repo_name}" unless repo_name.include?("/")
"https://github.com/#{repo_name}.git"
end
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '~> 5.0.1'
# Use postgresql as the database for ... | a5d955df876939b7cf7fc9aa0c4088103b45d632 | [
"Markdown",
"Ruby"
] | 9 | Ruby | cews7/api-curious-round-two | 65d78d20025024a13668179838f08dee8c60f17f | f1be7d5c6e87f324e16345c26c1c5be31377c88e |
refs/heads/master | <file_sep>#pragma once
#include <winsock2.h>
#include <MSWSock.h>
#include"Poolx.h"
typedef enum net_operation_s
{
NULL_POSTED, // 用于初始化,无意义
ACCEPT_POSTED, // 标志投递的Accept操作
SEND_POSTED, // 标志投递的是发送操作
RECV_POSTED, // 标志投递的是接收操作
WRITE_POSTED, // 标志投递的是写入操作
READ_POSTED, // 标志投递的是读取操作
}net_operation_t;
ty... | b618e4cf7e3739e0033a0b52e4aec80cecea5a8b | [
"Markdown",
"C",
"Text",
"C++"
] | 37 | C++ | xiaocaovc/TcpIpServic | bee9750d69b72fdb32d41315f35e2abd5a64c007 | 54a50a8a3f1ce5b5fc1c8d8d138ad0cb70870933 |
refs/heads/master | <repo_name>CrisCuevas84/Practica_Python<file_sep>/conditional_statements.py
x = 5
if x < 10:
print("más chico")
if x > 20:
print("más grande")
print("Finish") | f8f0f64e39f85a3ba6c9b8f096f3fdd72ccab259 | [
"Python"
] | 1 | Python | CrisCuevas84/Practica_Python | 4bc1c3dcb604ef06da27f7a79e7c9ccce646a701 | cf0dae18d8136e299eb42c2467541cf204b3a2f4 |
refs/heads/master | <file_sep>from SorgBot import SorgBot
# noinspection SpellCheckingInspection
main_bot = SorgBot('525519947:AAG2k1H8wZb_G01YEv-cIh0Tq0DCnQQYBKY')
greetings = ('hello', 'hi')
def mainrun() -> None:
new_offset = None
while True:
main_bot.get_updates(new_offset)
last_update = main_... | 78bec6ddd30686c03b7c4379abb4597134fc7783 | [
"Markdown",
"Python"
] | 5 | Python | twestra37/SorgBot | 08d2a4024e7f11eafe3c0ca0cd38166762c0244d | f5e2d51ff2dad7b725e5d458891866b280eb4938 |
refs/heads/main | <repo_name>heehehe/pruning-decorrelation<file_sep>/README.md
## 상관계수 정규화와 동적 필터 가지치기를 이용한 심층 신경망 압축
Dynamic Filter Pruning with Decorrelation Regularization for Compression of Deep Neural Network
> [2020 한국소프트웨어종합학술대회 (KSC2020)](http://kiise.or.kr/conference/main/index.do?CC=KSC&CS=2020) 학부생논문 경진대회 장려상 수상작 ([Link](http... | aed75b7d635649e58d90bb4337a3c517b92276e7 | [
"Markdown",
"Python",
"Shell"
] | 4 | Markdown | heehehe/pruning-decorrelation | 02ad785e27148e10510838612ae0d6f2efa91bce | cc9fa0c23a1a34b48cfb57d106491e38a53140db |
refs/heads/master | <repo_name>ChristianPeters/active_component<file_sep>/lib/active_component/template_handler.rb
# encoding: utf-8
module ActiveComponent
class TemplateHandler
include ActionView::TemplateHandlers::Compilable
def compile(template)
# For Rails < 2.1.0, template is a string
# For Rails >= 2.1.0,... | d81307ae552bbc9d601a755b2d5e79a16d761c10 | [
"RDoc",
"Ruby"
] | 23 | Ruby | ChristianPeters/active_component | 7e9cf7042b7e8201f3907e0ed44dcaf1f9a7d8c3 | d3ab39f2095a58464b5448384ce3820daf0c26b7 |
refs/heads/master | <repo_name>ChristopherOxley/CO2006MiniProject<file_sep>/readme.txt
Version 1.0
// To Compile and Execute
/////////////////////////
Add the src files to an eclipse project and run as "CORootController"
Alternatively, to use the JUnit tests run as "JUnitTest"
// Please Note
//////////////
The App saves the state ON... | 470b848e32ee1dbc9a0d7df5abe71c017bee31e9 | [
"Java",
"Text"
] | 8 | Text | ChristopherOxley/CO2006MiniProject | 1cbbeb4827dac11314a03e3e405df4e17fbe942d | e49b5b2b3a9ee04952fd279656b1c239dfd7e274 |
refs/heads/main | <file_sep>// Day7.cpp : This file contains the 'main' function. Program execution begins and ends there.
//
#include <exception>
#include <fstream>
#include <iostream>
#include <map>
#include <regex>
#include <set>
#include <string>
#include <vector>
class Bag {
public:
Bag (const std::string& colour)
: c... | d19f471019eb49b7d8b6533a5e4ac3ca1354d1f6 | [
"C++"
] | 13 | C++ | Hephaestuz/AdventOfCode2020 | b8b73ceafd6a294b87e730ab2002edc674c7a94c | e73c688c88fc113cbdd4bb8a1b2e758d0cbb216f |
refs/heads/master | <repo_name>SinisaGrujic/MMS-CapstoneProject<file_sep>/return.php
<?php
session_start();
if (array_key_exists("id", $_COOKIE) && $_COOKIE ['id']) {
$_SESSION['id'] = $_COOKIE['id'];
}
if (array_key_exists("id", $_SESSION)) {
include("connection.php");
$query_booking = "SELECT * FROM `booking` WHERE u... | 2d170ae49148783dfa71d24a0e9cf21dce17214b | [
"JavaScript",
"PHP",
"INI"
] | 23 | PHP | SinisaGrujic/MMS-CapstoneProject | dfd34e02cdb42e53a5d2b9304748e08339021bfb | efd5ac634240158b53448e0697a0fb06dfb6ba53 |
refs/heads/master | <repo_name>ksuquix-forks/o365getmail<file_sep>/o365getmail/config.py
"""
Configuration settings for running the o365getmail script.
In productive system, ensure file can't be accessed by unpriviledged.
"""
import os
CWD = os.path.dirname(os.path.abspath(__file__))
CLIENT_ID = ''
CLIENT_SECRET = ''
MAIL_P... | faede17967eb8cca3b9fff9b965a1765fca5fcf9 | [
"Python"
] | 2 | Python | ksuquix-forks/o365getmail | 72dd426f04d6b6f7e4fa3886690a0fea0501b6f3 | 8d3571b8c72170ddab32aa0ba53722608f5b67a3 |
refs/heads/master | <repo_name>TrungViet19/BaiThiCSW<file_sep>/t1708e-service/src/main/java/service/ProductService.java
package service;
import com.google.gson.Gson;
import entity.Product;
import org.hibernate.Session;
import util.HibernateUtil;
import javax.jws.WebMethod;
import javax.jws.WebService;
import java.util.List;
@WebService... | 12edee68124cc183d37f6ccfbaa2eefc35f7dfda | [
"Java"
] | 2 | Java | TrungViet19/BaiThiCSW | b49eb69dea909532c87b32e7074bf537ea0119df | fef864799e18e6bce0b8c0e1afe6c6bfe3ab376f |
refs/heads/master | <file_sep>#!/bin/bash
### BEGIN INIT INFO
# Provides: tomcat7
# Required-Start: $network
# Required-Stop: $network
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start/Stop Tomcat server
### END INIT INFO
PATH=/sbin:/bin:/usr/sbin:/usr/bin
start() {
sh /etc/apache-tomcat-9.0.10/bin/startup.sh
}
... | f6b0d95491861f4b3c0fda9bf127525e979bc633 | [
"Shell"
] | 1 | Shell | JAC2150/tomcat | 8850725c70e881856a4bfc5cc4e6ba567d2498ea | e2376287b566952b273cd3d56a25353ef1ea49a6 |
refs/heads/master | <file_sep>// Copyright 2017 Google Inc.
//
// Licensed under the Apache License, Version 2.0 (the “License”);
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// <https://apache.org/licenses/LICENSE-2.0>.
//
// Unless required by applicable law or agreed to ... | a8bbe1c5287b7581e9b8e7bde30a342da2b9f9ed | [
"JavaScript"
] | 3 | JavaScript | Opportunitylivetv/jsvu | 6dc5a88e01ab8c7b9883876b11da1cb96ff14f84 | a6ff70a9dcc168af10ee434cb865d14fe8c1a2fe |
refs/heads/master | <repo_name>djok92/ng-search-renderer<file_sep>/projects/ng-search-renderer/src/public-api.ts
/*
* Public API Surface of ng-search-renderer
*/
export * from "./lib/interfaces/Category";
export * from "./lib/interfaces/Product";
export * from "./lib/interfaces/Result-item";
export * from "./lib/classes/Handler";
// ex... | 41cffae933de3d4625f03f983fa5e47e4b5618d8 | [
"Markdown",
"TypeScript"
] | 8 | TypeScript | djok92/ng-search-renderer | 0ad77d347f2d4a3a466eae864fde877f81fb0baf | c36beada2e22f0c69396afb2a47824ca9670cec7 |
refs/heads/master | <repo_name>StefanBurscher/hashMgmt<file_sep>/screens/AuthSelectionScreen.js
import React, { Component } from 'react';
import {
AppRegistry,
ImageBackground,
StyleSheet,
Text,
View,
Image
} from 'react-native';
import { Button } from 'react-native-elements';
import Colors from '../constants/Colors';
import S... | b492e6855383e2ba233f3b08cdf1231bdc647ecf | [
"JavaScript"
] | 7 | JavaScript | StefanBurscher/hashMgmt | 51db4acac56191d89377eb9a56dde180323988a7 | 15daf85193c3172a844d3f20d91140b63328c649 |
refs/heads/master | <repo_name>aryalrabin/sendgrid-actix<file_sep>/README.md
# sendgrid-actix
1. copy .env.template to .env
2. add SendGrid API Key and Email to .env
3. run `cargo build`
4. run `cargo run`
<file_sep>/src/main.rs
use actix_web::{App, HttpServer, web, Responder, HttpResponse};
use std::env;
use sendgrid::v3::{Personalizati... | ebdb640540759f945b8119b25466916c3675b8de | [
"Markdown",
"Rust"
] | 2 | Markdown | aryalrabin/sendgrid-actix | 15f8ff9262b061e06474b3783d293f6289288a55 | 70ea45fd74153b8f3aa2f53f8d2cef0512162eb7 |
refs/heads/master | <repo_name>raghavi07/codingRound<file_sep>/testdata.properties
url=https://www.cleartrip.com/
localitySearchText=Indiranagar, Bangalore
travellers=1 room, 2 adults
fromText=Bangalore
toText=Delhi<file_sep>/src/main/java/page/HotelBookingPage.java
package page;
import org.openqa.selenium.WebDriver;
import org.openqa.se... | b8d73420aacaff4f6951944e698519f2ac0572d6 | [
"Java",
"INI"
] | 4 | INI | raghavi07/codingRound | 0e272d1f7aba2e3030e73d26c7576a0e577f8e11 | 69dfacca823e5be38d4b8fc6c1a88b7850b36fa3 |
refs/heads/master | <repo_name>furkanyldrmm/Rainbow-Wheel<file_sep>/app/src/main/java/com/furkanyldrm/renkbul/Besgen.java
package com.furkanyldrm.renkbul;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.view.View;
import android.view.anim... | 59d36709d8e00dbcb6fa9e28c8653e13b60ea635 | [
"Markdown",
"Java",
"Gradle"
] | 4 | Java | furkanyldrmm/Rainbow-Wheel | 0216cd81363c0e20deb6cabd993673c8334ab640 | 6169a7e5b578f174bc3e6ef7a77c67129ed1c3a4 |
refs/heads/feature/v2.cornu | <file_sep>#pragma once
# include <map>
# include <string>
# include <type_traits>
# include <boost/variant.hpp>
namespace corniflex {
class Component;
typedef boost::variant<char, int, long, long long, float, double, std::string, bool, Component*> t_variantTypes;
class Component
{
private:
std::string _type;
... | 122b676d4c8e31e88b0de86f7abaf3376662b0a0 | [
"Markdown",
"Makefile",
"C++",
"Shell"
] | 25 | C++ | magoo-magoo/CorniflexEngine | da378a8397442f6e2281a85e256b322241623337 | 910166b00276378df9484fec7e357accb29c46bd |
refs/heads/master | <repo_name>michielpauw/ycbootcamp<file_sep>/Voorbeeld.java
class Voorbeeld {
public static void main(String[] args) {
System.out.println("Hallo");
System.out.println("Wereld!");
int getal1; // Declaratie van een variabele van het type int
getal1 = 9; // Initialisatie
int getal2 = 14;
int getal3, ge... | ef56a080aebfa9915c4803652d8364edbe1ad73a | [
"Java"
] | 1 | Java | michielpauw/ycbootcamp | 7fe611660bf09735a6469e51542505732913bbc8 | 91ed43581c708f082c38812deb022230938d1e6a |
refs/heads/master | <file_sep>
import { OrdComparator } from '../ordering'
export {
SkewHeap, SkewTree,
mkHeap, singleton, isEmpty, peek, pop, push, heapify
}
/* Types */
// Skew heaps are the same as leftist heaps in implementation sense, appart
// form the merge method and the lack of `rank` bookkeeping.
//
// NOTE: Please ... | 15c816509d6c19b1ea26d40601571e5d93dd0181 | [
"Markdown",
"TypeScript"
] | 26 | TypeScript | gcnew/heaps | 8488a466949f1fad90a0cc1fb804c4496a3c424d | d5e44653db411b256b01528af505190883f2f43e |
refs/heads/master | <file_sep>require 'active_support/json'
module Locomotive
module LiquidExtensions
module Filters
module Json
def json(object)
object.to_json
end
end
::Liquid::Template.register_filter(Json)
end
end
end
| 8d7910a9a81ffb7d8f839069e0c631b31411b2af | [
"Ruby"
] | 1 | Ruby | Antiblanks/liquid_extensions | f0f4323d0598a33be7485cb78e278dbb2a8bef48 | 3ade2eeb1ac1d2f399abd78452d253bc9afffabb |
refs/heads/master | <repo_name>SwordOfKings/Flask_WebDev<file_sep>/APP/main/forms.py
from flask_wtf import Form
from wtforms import StringField, SubmitField, BooleanField , SelectField , TextAreaField
from flask_pagedown.fields import PageDownField
from wtforms.validators import Required, Length, Email, ValidationError
from ..models impo... | 0af626fcdc13014b263121d410e46e97a9427944 | [
"Markdown",
"Python",
"Text"
] | 4 | Python | SwordOfKings/Flask_WebDev | 9727355ae5f2cf08b65c26c32b74b321adb1f80c | e284ee7ae6366af3309d4b3a891e02d9e47b82fa |
refs/heads/master | <repo_name>sandeep-1295/hisab-kitab<file_sep>/src/main.py
#headers = ["ID","NAME","AMT","DATE","TIMESTAMP","Shared By"]
import util,sys
people = util.list_of_people()
headers,table = util.read_table_from_disk()
hisab_grid = {}
def insert_entry():
print("ID: NAME")
for id_ in [1,2,3,4]:
print("%d : %s"%(id_,people... | f069e5aae387da186d44decc12f9db415aad64f8 | [
"Python"
] | 2 | Python | sandeep-1295/hisab-kitab | 3c8b84a64d512c521a577cfdd1b4cb650bdb80ab | 598357f9de724073be0d091c5cf40a4f30a4b2e3 |
refs/heads/master | <repo_name>abhinav2000kiit/hackathon<file_sep>/src/redux/reducers/DeleteReducer.js
function DeleteReducer (state={ dlt: "" }, action) {
switch (action.type) {
case "ROW_DELETE_REQUEST":
return { sending: true };
case "ROW_DELETE_SUCCESS":
return { sending: false, dlt: actio... | 8c584b1bcca74d8127fd9fe04549e85fb86c1921 | [
"JavaScript",
"Java"
] | 11 | JavaScript | abhinav2000kiit/hackathon | 7d68c16b867c65a9906ca4bcde29ad7ab9c1885c | a5662e3ca4f51b543b92b7e5e7848e34763b16ac |
refs/heads/master | <file_sep>
/**
* Write a description of class GVDate here.
*
* @author (your name)
* @version (a version number or a date)
*/
import java.util.Scanner;
import java.text.DecimalFormat;
public class GVdate
{
private int month;
private int day;
private int year;
private final int MONTH = 1;
priv... | ccb3c75c42a603076a7f2f8a5eef255c39bb1dc1 | [
"Java",
"HTML"
] | 2 | Java | 3215987/CIS-163-Date | 4daef4240975662181ae363abdaf9a4e73d1f4af | 291e46974bb4d56547969de2808f0a57f9175efe |
refs/heads/master | <repo_name>lizametcalfe/Price-indices<file_sep>/Price_index_code/LCPI.py
# -*- coding: utf-8 -*-
"""
Created on Wed May 4 13:07:39 2016
@author: <NAME>
Date: 07/04/2016
Verion: 0.2
Inputs: WS price data
outputs: DataFrame with chained index for all time periods
changes -
added updated aggregati... | 49f0c5b736227103f1b8541b6ce260c256721a55 | [
"Python"
] | 3 | Python | lizametcalfe/Price-indices | 6f1bcd8744e6336ebbcbda6bc71637d585b29594 | d97ee40826edeae1610f3a7c6a97fbeaf03e3b30 |
refs/heads/master | <repo_name>ModestoFiguereo/negator<file_sep>/README.MD
# lambdax
`lambdax` is an small module that allows you to implement partial application and build lambda expressions.
## Install
- npm
```sh
npm install --save lambdax
```
- bower
```sh
bower install --save lambdax
```
## Usage
`lambdax` exposes two functions: ... | df6597167ac954e1ea00512630fdbbdd4a2fd788 | [
"Markdown",
"JavaScript"
] | 3 | Markdown | ModestoFiguereo/negator | 57eaaed4114806adf1d5ef94060987e02cc05ab7 | 280ad6ef6a0d26cdee62b9a97d1e075591b802d0 |
refs/heads/master | <repo_name>LiWeiQiangAndroid/showPopWindow<file_sep>/app/src/main/java/com/shinelon/showpopwindow/adapter/CategoryListAdapter.java
package com.shinelon.showpopwindow.adapter;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widg... | 4152b6296ec75856048b3d83b7189eb63b3fc82f | [
"Java"
] | 1 | Java | LiWeiQiangAndroid/showPopWindow | 2d8b2dbc0984eeeb4a9acea0e94f2251c153a8fa | 4dc14ee2f18689a8afaef3b0946bc26d30c40ff4 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.