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>class HostReviewsController < ApplicationController
def create
@reservation = Reseration.where(
id: host_review_params[:reservation_id]
room_id: host_review_params[:room_id]
user_id: host_review_params[:guest_id]
).fi... | 24eb395164caeff73a1a0cb429f52152a39c6d5d | [
"Ruby"
] | 2 | Ruby | ShevchukTania/Airbnb_clone | 9c7220e2ffb45d251f9f2cd7c1645c5fe2a996df | 226b351e23752d11aaedb036ddbd8767cd48d3f9 |
refs/heads/master | <repo_name>robotronik/tests<file_sep>/Fork/Makefile
SRC = test_fork.c
OBJ = $(SRC:.c=.o)
%.o: %.c
@echo " CC $(notdir $@)"
@$(CC) $(CFLAGS) $< -o $@ -c
test-fork: $(OBJ)
@$(CC) $(CFLAGS) $^ -o $@
run: test-fork
./$<
<file_sep>/libopencm3_tests/Makefile
PROJECT=TestsLibopencm3
default: all
# Default Options
e... | 3f266acb90ce5bb6daa0cf3a2a97dd825185e719 | [
"Markdown",
"C",
"Makefile"
] | 8 | Makefile | robotronik/tests | 9c9e741d0d6454034e4e2903f147037d8b6acfea | 6b29e18d6c42000d3e11848c42111346261b6676 |
refs/heads/main | <file_sep>using System;
using System.IO;
using System.Collections;
using System.Xaml;
namespace XAMLParser
{
public class Program
{
static void Main(string[] args)
{
string[] fileNames = Directory.GetFiles("/Users/abhibhandari/Desktop/JOLT/xaml_outputs");
string[] ... | afe23987c8e4ba2ce615e3b67a8071faeed28095 | [
"C#"
] | 1 | C# | abhibhan212/XAMLParser | 33dab8bb49dca9081cd359a3165ee17ffb70961e | 943349c9237428632761ed21de5ce22d100f0ce6 |
refs/heads/master | <file_sep>using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Data.SqlClient;
namespace PruebaDeEscritorio
{
public partial class frmMenu ... | f8d3b73588c1d56b029f84bbd71cabcadd8bf279 | [
"C#"
] | 1 | C# | santilucini/PruebaEscritorio | d4af063a8a802d86943cf267d08073f6a2139d2f | 827b1b5d0f3281122f8cc5d53ef3c5cfe3879c68 |
refs/heads/master | <repo_name>sudhanshu599/phpassign<file_sep>/handler45.php
<?php
header("Content-Type: application/json; charset=UTF-8");
require 'database45.php';
require 'customer45.php';
$req=$_GET['req'] ?? null;
$db=new database();
$customer= new customer($db->connect());
switch($req){
case 'insert':
$obj=$_GET['obje... | bdf786372ec008fe2b47b1238243d07f09a88f1e | [
"JavaScript",
"PHP"
] | 3 | PHP | sudhanshu599/phpassign | 0c5b471ca3d2b9e35fbf11c1536b821c6db12f14 | f53feaf9b40e283ddd514309d040c5ca9c642896 |
refs/heads/master | <file_sep>/**
* Copyright (c) 2017 Melown Technologies SE
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright notice,
* this list of conditions... | 2e59cd1178735d6d09042e330cc096a3d204d3a1 | [
"C++"
] | 2 | C++ | Chirag19/libslpk | 0958fc51ea5d99235cefe45fe082e409adb47501 | ffe4d5795595029fd5c098c14dcbcfa07216b852 |
refs/heads/master | <file_sep>package Vehicle;
public class Car extends Vehicle{
public Car (int id, String type) {
this.name = "Car";
this.id = id;
this.type = type;
this.moveMethod = "drive";
this.noofDoors = 4;
}
}
<file_sep>package Vehicle;
import java.util.ArrayList;
public class Garage {
public ArrayList<Vehicle> ve... | e1859d3cc491444e5ad61dc93123898fa2199993 | [
"Java"
] | 2 | Java | Tolu12343/GarageTestProject | b2069326832078cbbf11f8398ad0fbbebcb7b9e5 | ca769f8304d96ba63407b7021e88118075b576b5 |
refs/heads/master | <file_sep>__author__ = 'gazelle'
print '<NAME>'
print 'supriya'
print '300 \t terrace avenue\n jersey city nj'
a = 1
b = 2
print a + b
print a * b
truebool = True
c = False
print truebool
print c
| 1e15dd3487458d92f4a4b0ce41ae3b7fad8b3ddd | [
"Python"
] | 1 | Python | supriyanarlawar/PythonProject | fccf068501b1f4f3f97c1aad8881b3083012377b | a7e21a8764763139a964955ebe1dd47da58ef374 |
refs/heads/master | <repo_name>ColorfulCodes/Coding-Challenges-Python<file_sep>/thegame.py
#The game:feed each challenges into a variable then initiate Random
#include skip option. Place every 5 in batches. Have option to select batch.
import random, os
from time import sleep
reverse = "Write a method that will take a string as input, an... | b514ecf53c62910715e5f799fb37b682ef2dcdae | [
"Markdown",
"Python"
] | 9 | Python | ColorfulCodes/Coding-Challenges-Python | c93621a75b5dc4be8203944398c9c1f9f5515cab | fe929feb2394a9b078c0cf8af728a1006ebc3ceb |
refs/heads/master | <file_sep>
# App Inventor Docker
This repo contains a ready-to-use Dockerfile to help you build an App Inventor server docker image.
### Build and run by Dockerfile
To build the image, simply run:
```
docker build .
```
(Do not miss the dot at the end!)
You may give the image an easy-to-remember tag by the ``-t``... | 8444c6222b13ff9916e637bead53c1de421f039b | [
"Markdown",
"Dockerfile",
"Shell"
] | 3 | Markdown | VedangSolaskar/appinventor-docker | 42a8bffd7adea12945228b0d1f61d4fd380e6ada | 241e5268a6d507f8474f1eefcc465a3ae83954a8 |
refs/heads/master | <file_sep>export function classNames(...classes: (string | { [className: string]: boolean | undefined | null } | undefined | null)[]) {
return classes.reduce<string[]>((acc, item) => {
if (typeof item === 'string') {
acc.push(item);
} else if (item instanceof Object) {
Object.getOwnPropertyNames(item).f... | 9fff17247710f7788d1424a4bcb84f0c01faf87b | [
"TypeScript"
] | 1 | TypeScript | billhannah/chromatic-spike | 129a25568f4dff530c188363cc23eee71addf25d | ab2cbbd00ce8493fa89ce42e30a21e766723bb67 |
refs/heads/master | <file_sep>import React, { Component } from 'react';
class ListContainer extends Component {
listItems = () => {
// Get the listItems from the properties passed in to the component
const items = this.props.listItems;
if(items.length) {
// If confused with this mess, look up JS a... | 6300461c097f4f76469da009624cd2a4c2035f46 | [
"JavaScript",
"Markdown"
] | 3 | JavaScript | benlongmire/react-todo-list | 8d0fed2184b25306eb0108ebaf9e1b6cdbe26d78 | b21d5f394622f5bc482b224f77ce02dcce15cc3a |
refs/heads/master | <repo_name>sn94/IntentsAndroid<file_sep>/app/src/main/java/com/example/sonia/intentsandroid/MainActivity.java
package com.example.sonia.intentsandroid;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.AdapterView;
... | d951a7413c87e1ceb93810d48963279787bbda9a | [
"Java"
] | 2 | Java | sn94/IntentsAndroid | 8f1b70ad218fb5fd7436a1c8064bfa7d4620e6f0 | ca648b842ad6f884bf33ede60ae3817b889637d8 |
refs/heads/master | <repo_name>matvaibhav/SwaggerGen<file_sep>/README.md
# SwaggerGen
Swagger Generator is capable of generating a swagger specification from a JSON sample data.
More details on Swagger specification: https://swagger.io/specification/
<file_sep>/src/sg.properties
Mode=RELEASE
DumpAPIInfo=FAILED
SpecDeployPath=../webapps/... | ab7818d6dfa2031cd5e1abcc40c9bc1e9206a06c | [
"Markdown",
"Java",
"INI"
] | 8 | Markdown | matvaibhav/SwaggerGen | d7c7cbe390101f192e041fe7b0e6b7e2bd611208 | fa94a6201b1163af2f95dfa6413c906ff3afb149 |
refs/heads/main | <repo_name>oiagorodrigues/ds-bootcamp-java-task-1<file_sep>/README.md
# DS Client API
Simple Client REST API made as the first task of the DevSuperior Spring React Bootcamp, using Spring Boot and persiting in a memory database using Spring Data JPA.
## How to install
Clone this repo
```bash
git clone https://github.... | 85d5e0f38a044ed012bcbe5568aab4eb27dd843c | [
"Markdown",
"Java"
] | 3 | Markdown | oiagorodrigues/ds-bootcamp-java-task-1 | 6e82200beed9cc08202a781b22876007d81d4e6d | 278cc296ee1e581f0cea4eea35f52c11ce4880b1 |
refs/heads/master | <repo_name>a15y87/udslogbeat<file_sep>/config/config.go
// Config is put into a different package to prevent cyclic imports in case
// it is needed in several locations
package config
import "time"
type Config struct {
Period time.Duration `config:"period"`
SocketPath string `config:"socketpath"`
MaxMessageSize i... | db28afa14b09381132673ff5f48f866a076a4c9d | [
"Go",
"AsciiDoc"
] | 3 | Go | a15y87/udslogbeat | 86fef62e8883080ec45e624f907075c5e88a64ea | f90f6fdb4c9d67993ab8f95ebc52b80ebc740a6b |
refs/heads/master | <repo_name>lioneldiaz/PHPUnit-test<file_sep>/tests/conversion/ConversionTest.php
<?php
use PHPUnit\Framework\TestCase;
require __DIR__ . "/../../src/conversion/Conversion.php";
class ConversionTest extends TestCase {
/** @test */
public function testConversionCmToMeter () {
$conversion = new Conversion(2... | bff267eee471dec24aca1ad431b124b6503ac27a | [
"Markdown",
"PHP"
] | 3 | PHP | lioneldiaz/PHPUnit-test | b7988c4582973f65256ba45805703b2ca89fbbae | 868d41382b03f1715f2ae512717b297a99e230eb |
refs/heads/master | <repo_name>brharrelldev/weatherapi<file_sep>/main.go
package main
import (
"compress/gzip"
"database/sql"
"encoding/json"
"fmt"
"github.com/gorilla/mux"
_ "github.com/mattn/go-sqlite3"
"io"
"io/ioutil"
"net/http"
"os"
"strings"
)
type coord struct {
Lon float64 `json:"lon"`
Lat float64 `json:"lat"`
}
typ... | f8363baad759d52d62d15fadcb7721b71b871f89 | [
"Go",
"Dockerfile"
] | 2 | Go | brharrelldev/weatherapi | 5f23ef3d1cb0c24c020828f48a18a9d1e4f89787 | f49bf35d7bd619d96da94b6ca57adb3604a568fc |
refs/heads/master | <file_sep>$(document).ready(function(){
$('#home').click( function(){
$('.box').fadeOut(500);
$('.eve').fadeOut(500);
$('#w_nav').fadeIn(500);
$('#w_name').fadeIn(500);
});
$('#gala').click( function(){
$('#w_nav').fadeOut(500);
$('#w_name').fadeOut(500);
$('.box').fadeIn(500);
$('.ash').load("g... | 30f368b41f2ee58cd66ea1d1f80922b0786d4ff7 | [
"JavaScript"
] | 1 | JavaScript | ashishkankal/zenith | de75b6e76d2cc9e86d273458d6cbb64016f1f0ad | 7c743338db2522cb93dce8032ff98ee6a2f1eec5 |
refs/heads/master | <file_sep>//
// Created by lshi on 17-9-25.
//
//#include "deform_conv3d_cuda.h"
#include "TH/TH.h"
#include "THC/THC.h"
#include "deform_conv3d_cuda_kernel.h"
#include "iostream"
using namespace std;
extern THCState *state;
inline int input_to_output(int input, int pad, int kernel, int stride) {
return (input +... | 6e9ab01e955ce0fcd733e60c7a06828d275511d6 | [
"C",
"Python",
"C++"
] | 8 | C++ | hehuiguo/deformable-cnn-2d-3d | 73d67b90b6a607361fd7820fcecd9c9462e69c30 | a91a97f1d00ad9281479d57231d18f3ff3890d5b |
refs/heads/master | <repo_name>goodyou10/PortalAlert<file_sep>/src/me/goodyou10/PortalAlert/CMDExecutor.java
package me.goodyou10.PortalAlert;
import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
public class CMDExecutor implements Command... | cc58381c35e305841c37706c0f43b77cddd755cc | [
"Java"
] | 1 | Java | goodyou10/PortalAlert | 3c80053d875e60caf3d3db39cfac8cd92d380b95 | 0b2996ac3ba745993b4ca73a24096e7135a038bc |
refs/heads/master | <repo_name>rhtrai2/Flank<file_sep>/web/scripts/controllers/controllers.js
// Controllers
flank.controller('landingPageCtrl', function($scope, $http, $timeout, $routeParams, $window, $modal, $compile, $location, flankService)
{
$scope.verified = false;
$scope.customerstatus;
$scope.isloggedin;
$scope.noneditable... | 14ea20d9918c3be91e1fe4471469619acc4e636e | [
"JavaScript",
"PHP"
] | 6 | JavaScript | rhtrai2/Flank | 6e2c98bbe7a3fb2ea0416b1587f0030241ba11d9 | 047e3c3de582d348a9401de97bda0bcf3422067d |
refs/heads/master | <repo_name>NHJain/test_newRepo<file_sep>/index.js
const express = require('express')
const path = require('path')
const port = process.env.PORT || 3001
const app = express()
var bodyParser = require('body-parser');
app.use(bodyParser.urlencoded({
extended: true
}));
app.use(bodyParser.json());
var dateForm... | d92a82c5d9cd42c3a0f0a6b414ffb37ce72e62e5 | [
"JavaScript"
] | 2 | JavaScript | NHJain/test_newRepo | 10a36d68e4fba28077d7d277a21570858bd95082 | 2b691ae7571b5a75740d666766fa0a714ac9e81b |
refs/heads/master | <file_sep>#!/usr/bin/env python
# try this with this randomly selected url: https://sites.google.com/site/nhcollier/home
from os import remove
from sys import exit, argv, stderr
from optparse import OptionParser
from codecs import open
from urllib import urlopen
from re import findall, sub
ENCODING = "utf-8"
DELIMITER... | b86f6cd68e7dbe4943c323b95db61d291f67d459 | [
"Python"
] | 1 | Python | sicotronic/email_phone_parser | 4ad0c698001b8df9320337f5b0ce7ca58903ab08 | 83512ecb0ac66c84750777a44720b441b8120710 |
refs/heads/master | <repo_name>pedrorsantana/nuxeo-web-ui<file_sep>/elements/nuxeo-video/nuxeo-video-conversions.js
/**
@license
(C) Copyright Nuxeo Corp. (http://nuxeo.com/)
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 Licens... | 58289959342c4ecb5c2c1a9f5847ec2656e1501c | [
"JavaScript"
] | 2 | JavaScript | pedrorsantana/nuxeo-web-ui | 5e13e76ca81dd25f6bda25f21f99ad6a0c7750f1 | 654db4e0f1743847415c48360fa65606d9fed741 |
refs/heads/master | <file_sep>import numpy as np
import matplotlib.pyplot as plt
from scipy.integrate import odeint
import matplotlib.lines as lines
class body:
def __init__(self, m, V_x, V_y, F, plott, colour):
self.V_x = V_x
self.V_y = V_y
self.mass = m
self.gravity = F
self.plott = plott
... | 3660dc59085e90650102ce7b0c2b9f0b42219691 | [
"Python"
] | 4 | Python | CompInfTech2017-18/Assignment1-PavelMephi | f1aee1fdbb6c0ab1d601ec7f530b98064e93bebe | d00f29db262c97c633aa8cef2d85ebb8dc78941d |
refs/heads/master | <file_sep>import os, sys
pdir = os.getenv('MODIM_HOME')
sys.path.append(pdir + '/src/GUI')
from ws_client import *
import ws_client
cmdsever_ip = '10.3.1.1'
cmdserver_port = 9101
mc = ModimWSClient()
mc.setCmdServerAddr(cmdsever_ip, cmdserver_port)
# Interaction to welcome and start interaction
def i1():
# i... | 401a03896f05313cc06297760aedfc44499d60e7 | [
"Markdown",
"Python"
] | 7 | Python | ccapontep/HumanRobotInteraction_ER | b74c225cd4700566d3a2aca00b8861ddacddec56 | 6d4d3b4440532c1774d964ca4deddb3086083f9e |
refs/heads/master | <file_sep>
# gfx2col graphic converter for Colecovision PVcollib development
## Usage
```
gfx2col [options] png/bmp/pcx/tga filename ...
```
where filename is a 256 color PNG, BMP, PCX or TGA file with only 1st palette used with default 16 colors of Coleco
## Options
### General options
- `-c[no|rle|ple|dan]`... | 830edf29f4f05858ac7fb91f676d65de371b5983 | [
"CMake",
"Markdown",
"Makefile",
"Text",
"C"
] | 99 | Markdown | alekmaul/pvcollib | fb6eff5fe6ddff630c24aa947b70fa9ca990613d | debee725a0984ef6db5a9a3dd5a07577b1159d3b |
refs/heads/main | <file_sep>import React from 'react';
import '../App.css';
import Navbar from './Navbar';
function Products() {
return (
<>
<Navbar/>
{/*<h4 style={{"color":"white","textAlign":"center"}}>Read The Article about Synchronous Online Learning</h4> */}
<p className='products'><a style={{"color":"wh... | ed06d3839e4ea61fb586f14170c9409da5f829c8 | [
"JavaScript"
] | 25 | JavaScript | Anjali123pa/OnlineEducation | f56f0ec75c19c6839d2a2f214be6f5f6e3dacfea | ca07ba40081e4387a295714adbf308d2010fe4a0 |
refs/heads/master | <file_sep>import numpy as np
from numpy import array
import pandas as pd
import matplotlib.pyplot as plt
import string
import os
from PIL import Image
import glob
from pickle import dump, load
from time import time
from keras.preprocessing import sequence
from keras.models import Sequential
from keras.layers import LST... | 63de2dcd07103f5c1e7ee4f154d4add7f9d0b712 | [
"Markdown",
"Python",
"Text"
] | 4 | Python | Shailajai6/Image_Captioning | a7167c462cf57264a259d651b9cfbed12a75673d | 5ab42d6323cb129115a0b8bad6cd7e135c0225f8 |
refs/heads/master | <file_sep>package go_tanks
import (
//log "../log"
i "../interfaces"
v "../validators"
h "./handlers"
"errors"
"fmt"
)
type GameController struct {
Controller
}
func ( c *GameController ) JoinToGame () error {
c.addToWorld()
c.World.NewTank( c.Client )
message := *( <-c.Client.InBox() )
tank ... | 44ad189e8dd7e635f4804337fdf28348f734358d | [
"Go"
] | 9 | Go | artempartos/go-tanks | d001902dba9d4c3548438fa97ac4443d023978ad | 83ba6a9f876013dceb3c09e3ed5052c4869097c0 |
refs/heads/master | <file_sep><p>lokal app, oppmøte for studenter





</p>
<file_sep>from flask import Flask, f... | 9e16ea37a6855b572841de5dcee55f00d5e46823 | [
"Markdown",
"Python"
] | 3 | Markdown | MartinRovang/Absentia_Oppmote | 7d7222952f90d004e7527c4d994ef45d14a839fd | 7a047b2030b4dfa0c6304ab1610a770dc38e9bc6 |
refs/heads/master | <repo_name>Saulnjie/GroceryTask<file_sep>/readme.md
# Saving the state of our grocery list
## UML
- Create all files needed and link them
- Gather data from the user
- Validate the data
- If data is not valid show the user a message.
- If the data is valid build the html.
- Allow the user to mark and item as complete... | 7024f42a62c32f4c6f7b9445ac6689569dac7236 | [
"Markdown",
"JavaScript"
] | 3 | Markdown | Saulnjie/GroceryTask | ea90b6f6bbbe3f9870e0fa432a3399bf3fe92c53 | fa07a41311ce966e9492477c1ef7d867709f1076 |
refs/heads/master | <repo_name>hpt09/FlightSearchEngine<file_sep>/src/OneWayTicket.js
import React from 'react';
class OneWayTicket extends React.Component{
render() {
return ( <div class="ticket">
<h4>Rs. {this.props.price}</h4>
<h5>{this.props.flightNo}</h5>
<h4>Depart: {this.props.departTime}</h4>
... | e666492e4c0ff91860306839c064129ec9c90cc0 | [
"JavaScript"
] | 3 | JavaScript | hpt09/FlightSearchEngine | d9016d3fd8f4fa5f2cf8b7cf22f67f1a5261cfd4 | 1c300393d49b99a1413a627d2e23537e0140e92b |
refs/heads/master | <repo_name>Ruhulcse/Mycity<file_sep>/city.php
<?php
echo "your are successfully logged in ";
?>
| ec85d69571205dedd692e193992f232093cc6da1 | [
"PHP"
] | 1 | PHP | Ruhulcse/Mycity | bd3fedff088509956317077a1834d594b3582665 | dfb15a95c8e9fd004772c3383fa202e8bb95d8f8 |
refs/heads/master | <repo_name>u1207426/password-retry<file_sep>/password.py
# 密碼重試程式
# password = '<PASSWORD>'
# 讓使用者重複輸入密碼
# 最多輸入3次
# 如果正確就印出"登入成功!"
# 如果不正確就印出"密碼錯誤! 還有_次機會"
try_time = 0
while True:
try_time = try_time + 1
if try_time <= 3:
password = input("請輸入密碼: ")
if password == '<PASSWORD>':
print('登入成功')
break
elif t... | ef65d4a9252676e4dc137d04908059d2b8bb587b | [
"Python"
] | 1 | Python | u1207426/password-retry | 54af1775dfee7b5c9b0abbe922501d32064bbfe1 | 780f1355d9a0b9cfaf184434d04dfb12a5356b7a |
refs/heads/master | <repo_name>piotrmrozit/honda<file_sep>/gulpfile.js
/**
* Created by wins on 2016-06-19.
*/
const gulp = require("gulp");
const less = require('gulp-less');
const cssnano = require('gulp-cssnano');
const nodemon = require('gulp-nodemon');
gulp.task('less', function () {
return gulp.src('./src/less/**/*.less')
.pi... | 91a2b113d3010b4dbbdab999aa7a52f9158d9d09 | [
"JavaScript"
] | 3 | JavaScript | piotrmrozit/honda | f3dd5caf6ca3ff174cc1eb491206e4db903261b1 | f94b7d71bd7eb1944938f39b1fea11645ad27544 |
refs/heads/master | <repo_name>martijnwijs/dmt21<file_sep>/ass1/inaccurate_values.py
import pandas as pd
import numpy as np
df2 = pd.read_csv('dataframe_new.csv')
# for x in df2['appCat.builtin']:
# if x < 0:
# print(x)
def filter_inacc(df, category):
df[(df[category] < 0)] = np.nan # for all values under 0
... | 4296453e469df9f4f68de54109398d5541666e38 | [
"Python"
] | 2 | Python | martijnwijs/dmt21 | 840e60974ec2e2b279aead9f218f4839de1c03fc | 3712a318f150afbf980c68eda51e56f5edff6d1e |
refs/heads/master | <repo_name>SelcreSS/MyStudyUnity<file_sep>/UnityStudy/Assets/Sources/System/InspectorComment.cs
using UnityEngine;
/// <summary>
/// コメントの意味を持たせたいクラスです。
/// クラスやprefabの使い方の意味を教えるときなどに利用して下さい
/// 使い方
/// 1 AddComponentでこのクラスをアタッチする
/// 2 インスペクターからコメントを記載する
/// </summary>
[System.Serializable]
public class InspectorCom... | 61f29009a61a2b2790d4df7fc02b975accef979d | [
"Markdown",
"C#"
] | 8 | C# | SelcreSS/MyStudyUnity | 7af14e67da25d67a41966c34ace443c149bedc17 | d732651bdcb4c6866eeaf98935dfe7a61ce96e97 |
refs/heads/master | <repo_name>vailalgatt/ruby-pilates-QA<file_sep>/app/models/answer.rb
class Answer < ActiveRecord::Base
include HasGravatar
belongs_to :question
end | e8b7e73155c9c4adf13d75da225cbab2cb6bbf95 | [
"Ruby"
] | 1 | Ruby | vailalgatt/ruby-pilates-QA | 1e9d7091d02e612d9c566edb48cd1214dbf23432 | da6865441c8a2f5a2120b689d58f8f22b5218945 |
refs/heads/main | <repo_name>latonaio/site-controller-data-update-to-mysql<file_sep>/README.md
# site-controller-data-update-to-mysql
site-controller-data-update-to-mysqlは、エッジ端末からWindows端末のディレクトリを監視し、そのディレクトリに新しいサイトコントローラー連携ファイル(CSV)が作成された場合に、その情報をkanbanに渡す、エッジ端末上で動くマイクロサービスです。
## サイトコントローラーとは
サイトコントローラーとは、主に宿泊業向けに、予約情報をまとめて管理運用するサービスで... | b60411bb1af1343b8c10d0c77cb59fc52c1c8327 | [
"Markdown",
"TOML",
"Makefile",
"Go",
"Go Module",
"Dockerfile",
"Shell"
] | 25 | Markdown | latonaio/site-controller-data-update-to-mysql | 60ed4c94c94a6906c2e6fd68b21ed112cf1d330d | 9037fda47adcc355cee804ffa9828560166ae983 |
refs/heads/master | <repo_name>miker1423/proyecto_cripto<file_sep>/Proyecto1.ino
#include <hydrogen.h>
#include <AESLib.h>
#define ROTL(a, b) (((a) << (b)) | ((a) >> (32 - (b))))
#define QR(a, b, c, d)(\
b ^= ROTL(a + d, 7),\
c ^= ROTL(b + a, 9),\
d ^= ROTL(c + b, 13),\
a ^= ROTL(d + c, 18))
#define ROUNDS 20
uint32_t C[... | e6b601e63f676c7aa74054217cf29da1ebc5bb5c | [
"C++"
] | 1 | C++ | miker1423/proyecto_cripto | 73a8ba6185c69922d8220ddd5753bf17d0778681 | ecb5b88d1a692957b6484367ce671264b89986a4 |
refs/heads/master | <repo_name>AjeaSmith/school_website_design<file_sep>/build/precache-manifest.6a646bc554bc1b9a3ba111f3e6967d03.js
self.__precacheManifest = (self.__precacheManifest || []).concat([
{
"revision": "72ff1e6ecb5c5d8173e1648e2516908f",
"url": "/index.html"
},
{
"revision": "594e7914fdd1d0d32462",
"url":... | f3e13bf0822f52b57950536827e1d0105d21ec32 | [
"JavaScript"
] | 5 | JavaScript | AjeaSmith/school_website_design | 358c4f4ae8bcdbf8f990c32b4223e84a2d780603 | 1f712ab97e98f2699fad6eb194b36186c7add45b |
refs/heads/master | <file_sep>namespace ReversePolishNotation
{
public class RpnCalculator
{
}
}<file_sep>using System.Collections.Generic;
namespace ReversePolishNotation
{
public class RpnUtils
{
private static readonly string[] OpStrings =
{
"*",
"/",
"+",
... | b118b3a390d04af6ed2410eff59e65e2382acc91 | [
"C#"
] | 3 | C# | SysUtils/GetOneHundred | 6ffaf2c8c14e09beb9fde1d2ea4ef0a497f5bed5 | cc815e908cd94cff056a3964c2abf3068512f9ae |
refs/heads/master | <file_sep>import logging
import datetime
from datetime import timedelta
import getpass
import json
import pymysql
from fints.client import FinTS3PinTanClient
from pymongo import MongoClient
from pymongo import errors as PyMongoErrors
from sqlalchemy.orm import sessionmaker
from sqlalchemy import exc
from sqlalchemy im... | f80e4f5af2e021b185406dfea167e956a7d9af7f | [
"Markdown",
"Python"
] | 3 | Python | justusfowl/bankingstatement | abfa1f5c46816e7702ebaecccd5194bf060bc6bb | fb39a487f92c00677d66e35634fdd0cc6d6024f0 |
refs/heads/develop | <repo_name>Ruiru11/store-api-v1<file_sep>/v1/app/views/users_views.py
from flask import Blueprint
from flask_restful import reqparse
# local imports
from app.controllers.users_controllers import Users
usr = Users()
don_user = Blueprint('users', __name__, url_prefix="/api/v1")
user_instance = Users()
@don_user.r... | b6e5d3d680d76509288fa45732057c767a67f866 | [
"Markdown",
"Python",
"Text"
] | 13 | Python | Ruiru11/store-api-v1 | b5a43f565dd2b2a95be8102fdee310955e44962d | fa1e0eaa8a274c896af213a7ddf04bbae2e88c1e |
refs/heads/master | <file_sep>xdebug.default_enable = on
xdebug.remote_enable = on
xdebug.remote_autostart = on
xdebug.remote_connect_back = on
xdebug.remote_port = 9000
xdebug.idekey = PHPSTORM
xdebug.max_nesting_level = 500
xdebug.profiler_enable = off
xdebug.remote_log = "php://stdout"
xdebug.profiler_output_dir = "/var/www/dev/var/tmp... | bafc3b4f3a30efbd8f76d0e192ec8922525885fb | [
"Markdown",
"INI",
"PHP",
"Dockerfile",
"Shell"
] | 14 | INI | adielcristo/sfcon-amsterdam-2019-crawler | 9a1ceea3b73eaa60886eb56955e58b11f63055cc | 2159ae58d6233248074034a99f2bb7286fbeb29c |
refs/heads/master | <file_sep>var slider = (function () {
var slides = $('.slider__item');
return {
scrollSlides: function (direction) {
var slidesVisibleArr = [];
$('.slider__item').each(function (indx) {
if ($(this).hasClass('slider__item_visible')) {
var elIndx = $(this).index();
slides... | 3b4776306c64f2cd0deb6c9c0c2149930b2289bf | [
"JavaScript"
] | 1 | JavaScript | rvdvr/circle-slider | 1e70eea5a63cc4a5db352f76599031f5da986694 | dab1e11c5c63e2ffde81c3f66ac73c7790a62e4e |
refs/heads/main | <file_sep>/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package ec.edu.ups.ventanaUsuario;
import ec.edu.ups.controlador.ControladorUsuario;
import java.util.Locale;
import java.ut... | 9c9f38e93b5196c57db7db1df4cd176091e19d66 | [
"Java"
] | 11 | Java | DavidDutan/practica_04 | abde67275b785b0afdd9641b0049e2ffc04a5d72 | 715831c0cf8f888b1e4e05545eaa102f9bdb9edd |
refs/heads/master | <repo_name>lyakyb/BlockBreaker<file_sep>/Assets/Scripts/Paddle.cs
using UnityEngine;
using System.Collections;
public class Paddle : MonoBehaviour
{
float mousePositionInBlocks;
// Use this for initialization
void Start ()
{
}
// Update is called once per frame
void Update ()
{
mousePositionInBlocks = I... | 0c26da79e19151351fc3faccbe103e7df01ba154 | [
"C#"
] | 1 | C# | lyakyb/BlockBreaker | 8a4ab39642583b631c28dac955245118bbd4ac6d | c24c76ae84a28cbd4115e4f4e4ceafe62e13370d |
refs/heads/master | <file_sep><?php
session_start();
include 'header.php';
include 'functions.php';
$email=$password=$name=$lastname="";
if (isset($_SESSION['useremail'])) destorySession();
if (isset($_POST['email'])&&isset($_POST['password'])&&isset($_POST['name'])&&isset($_POST['lastname'])) {
$conn=dbConnect();
$email=sanitizeStr... | 5984d174db2d3beaf0f693188a70d352c105dc79 | [
"Markdown",
"PHP"
] | 7 | PHP | elissa231696/text | 17a01c1cc998d2ae62ce6c479854b71469701e1e | 56e74651dbb5d3f25095e894fa62780eb029b7a9 |
refs/heads/master | <file_sep>// Set Date
var countDownDate = new Date("oct 1, 2021 21:00:00").getTime();
// CountDown Action
var x = setInterval(function() {
var now = new Date().getTime();
var distance = countDownDate - now;
var days = Math.floor(distance / (1000 * 60 * 60 * 24));
var hours ... | 05a2ece4e85262dd499c19292caf26fc01d8c260 | [
"JavaScript"
] | 1 | JavaScript | KrakenMetaverse/Kraken-Metaverse | bdbfe4b09927fd9719b7bf377fdfcbae7ffa0164 | 07a159c6165c77906ce5191e8fdcb40137898394 |
refs/heads/master | <file_sep>package com.rachman_warehouse.ui.produk;
import android.os.Parcel;
import android.os.Parcelable;
public class DataProduk implements Parcelable {
String idbarang,idsuplier,namasuplier,idlogin,namaadmin,barang,stok,hargabeli,hargajual;
public DataProduk(String idbarang, String idsuplier,String namasu... | 841a74f4d7c4c804b489e8240c634765ef90daff | [
"Java",
"Gradle"
] | 11 | Java | TAX015/RachmanWarehouse | 2d2c17259aac207170194821aecf1ca197290b9f | 88a1375f4a8bdeb58b7a2da543824a872d16c164 |
refs/heads/master | <repo_name>nganba/Statistical_Data_Preprocessing<file_sep>/main.py
import numpy as np
import pandas as pd
def is_type(df, baseType):
test = [issubclass(np.dtype(d).type, baseType) for d in df.dtypes]
return pd.DataFrame(data=test, index=df.columns, columns=["test"])
def is_float(df):
return is_type(df, ... | 8f04e8f0296b5b598f0802c92fa7a0637d04b4d7 | [
"Python"
] | 1 | Python | nganba/Statistical_Data_Preprocessing | 44d31f8dd94f722e293ac33067d1a2c1eec9d6f9 | 9f459102a1ae66c7dbd25a3eb10f92175b832bbe |
refs/heads/master | <file_sep>package edu.illinois.cs.cs125.myapplication;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
public class Zodiac10 extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setC... | 6af9e1793717ea41cd8da9577295ab676bd846fb | [
"Java"
] | 1 | Java | NierYoRHa/ZodiacTrivia | 145e6db8c21f16b5c3c3aa7c6e30b7afb65c6fc6 | ea3a0d7f3d88a1e0c51ddd23d8916c617191e15f |
refs/heads/master | <file_sep>GEDI - Game Engine DIstribuído
==============================
__Gedi__ é um motor de jogos que usa técnicas de computação distribuída para
conversar o núcleo com os módulos. Módulos podem usar computação distribuída
dentro de si também, mas não é necessário.
Mais infos
----------
Leia os documentos de ideia... | 57d46905e34ccb711bac47f029f6b34ac7093586 | [
"Markdown",
"Python",
"C++",
"Lua"
] | 20 | Markdown | FellowshipOfTheGame/gedi | c39b1325be6cee9ee9849a95da2a8779010a84b2 | 76bc161391e3e9c91127e389b373a6fd9e1cf599 |
refs/heads/master | <file_sep>import threading
import pyperclip
class ClipboardWatcher(threading.Thread):
urls = set()
def __is_youtube_url(self,url):
if 'https://www.youtube.com/watch?v=' in url:
return True
return False
def __init__(self):
super(ClipboardWatcher, self).__init__()
... | 1cb6f82f0d25eedcb623ea368a489b066ec4f7e0 | [
"Python"
] | 3 | Python | pgrtiragg/py-downloader | 574d6553103f423dee2dcd784d9812cf5f53c2e6 | ad145b9a0e66738956bef9b86f7ae23a75f30cfc |
refs/heads/main | <file_sep>package br.com.alura.config
import org.springframework.context.annotation.Bean
import org.springframework.context.annotation.Configuration
import org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder
import org.springframework.security.config.annotation.web.build... | 75683dab29caddc1d8dbd92c702d8409320bb358 | [
"Markdown",
"SQL",
"Kotlin"
] | 31 | Kotlin | Gilmardealcantara/forum-kotlin-spring | 196358b3a11b7dab7492d4215856b5feac7f9d8e | 8c4a7ccc9926ddb9c5c5beedb9794003ee76432e |
refs/heads/master | <repo_name>Kaczmarczyk-M/messenger<file_sep>/script.js
var tresc_diva = [];
function refresh()
{
var calyChat = "";
for(var i = 0; i < tresc_diva.length; i++)
{
calyChat += tresc_diva[i];
}
document.getElementById("chat").innerHTML = tresc_diva.join('');
}
function submit()
{
tres... | 59ec4eab6d218597d4f80fcf35b5f8a23dd032f5 | [
"JavaScript"
] | 1 | JavaScript | Kaczmarczyk-M/messenger | f98cc646a46c08c2a820cd7d38cf80834133f35b | 86d8b2f68359cedab7defd5debf95f928edfb4cc |
refs/heads/master | <repo_name>jackrack/vault712<file_sep>/vault712.sh
#!/bin/bash
##Download on https://github.com/jackrack/Vault712
##Config setup
##GrinLog=/root/mw/grin/server/grin.log
##Rust installer function
rust_installer()
{
sudo apt-get update -y
sudo apt-get install build-essential cmake -y
curl https://sh.rustup.rs -sSf |... | 76fa05007105c7fb34b99a8b63d57fe09c19138b | [
"Markdown",
"Shell"
] | 2 | Shell | jackrack/vault712 | 356eb699d1d82a5962ae066b545e47074143da71 | 42792e3b16e7f61abd833c7ae1b72b3b14847650 |
refs/heads/main | <file_sep>window.onload = function(){
function geoFindMe() {
const status = document.querySelector('#status');
const lon = document.querySelector("#lon")
const lat = document.querySelector("#lat")
function success(position) {
const latitude = position.coords.latitude;
const l... | 1aa3f4be1bfa9f7ffe6ece2428864b6a8bd65966 | [
"JavaScript"
] | 1 | JavaScript | manojmsr2000/ML-Accident-Analysis-Project | b285cd1a88d979e42a74dd61500484f43e3fae5c | 41c16fb1195465a045900f9d3231eb7075c27766 |
refs/heads/master | <repo_name>MorganDark21798/Pass-Manager-python-script<file_sep>/Pass.py
def askUser():
username = input("Enter your username: ")
password = input("Enter your password: ")
checkPass(username, password)
def checkPass(use, pwd):
if use == ("ID8") and pwd == ("<PASSWORD>"):
login(use)
else:
... | 1f9e7165dfa2e43e0de3985997de1121f411712d | [
"Python"
] | 1 | Python | MorganDark21798/Pass-Manager-python-script | 910d2ae9f9b7f0b401b6eaf14eb71829ac4f0cc9 | b2b7e296f7807dabfb7d41681bed4c2a4be6e837 |
refs/heads/master | <file_sep>#!/usr/bin/env sh
if [ "true" != "${XDEBUG_ENABLED}" ]; then
rm /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
fi
COMMAND="composer install --prefer-dist --no-progress --no-suggest --no-interaction"
if [[ "prod" = "${APP_ENV}" ]]; then
COMMAND="${COMMAND} --no-dev --optimize-autoloader --clas... | 63226d552ae0fddc893e995d613ea0502813118b | [
"Markdown",
"YAML",
"Shell"
] | 3 | Shell | artem328/test-179e1bab-bb8d-4f3a-89a8-3e85e4921292 | 138db810ca5b9bf790b36f8efe04110a1ac218dd | 51a0eda136513d7b2f79f310b862797e52559e78 |
refs/heads/master | <file_sep>package com.thinkgem.jeesite.common.pattern.strategy_plus.behavior.impl;
import com.thinkgem.jeesite.common.pattern.strategy_plus.behavior.FlyBehavior;
/**
* @Author duhongming
* @Email <EMAIL>
* @Date 2019/5/2 20:28
* @Description 什么事都不做,不会飞!
*/
public class FlyNoWay implements FlyBehavior {
@Ove... | 7db77bc5562d4117f015503a2ef62e3fdaf6e196 | [
"Markdown",
"Java",
"SQL",
"INI"
] | 36 | Java | duhongming1990/jeesite | e4a95079ce18a1ee5b8c187deb2091e665484f6a | 3bd05d85e2e518db190baf3e4cd7a2804bcb7202 |
refs/heads/master | <repo_name>Sakuto/TabsPOC<file_sep>/src/app/tabs/shared/tabs.service.ts
import { Injectable } from '@angular/core';
@Injectable()
export class TabsService {
public myObject;
public search(): void {
this.myObject = { dea: 'Valeur DEA', iis: 'Valeur IIS', other: 'Autre valeur' };
}
}
<file_sep>/src/app/tabs... | fffb95f9a384dd1ffb3b5d61be294989130f6cde | [
"TypeScript"
] | 6 | TypeScript | Sakuto/TabsPOC | c4813cb6a610566eb22562ee55e44914fbb81e15 | c9874f97cc0a7c872f6be6403a303eaf461a5802 |
refs/heads/master | <repo_name>mfountoulakis/hoopify<file_sep>/components/Button.js
import React from 'react';
import styled from 'styled-components';
import { space, color } from 'styled-system';
const StyledButton = styled.button(color, space, {
fontFamily: 'sans-serif',
fontSize: '24px',
backgroundColor: 'inherit',
});
const Bu... | 5fc4863e78ed19ca3152d34506d2a9a50896dac9 | [
"JavaScript"
] | 16 | JavaScript | mfountoulakis/hoopify | 34771bb71d8acdbb954f007266a33f3601f56b6b | fea4c49bcd9a7055d73a8eb87018073611e118ca |
refs/heads/master | <repo_name>rytrose/Voice-Remixer<file_sep>/client/js/dependencies/vowelworm.game.js
/**
* @param {Object=} options Configuration options
* @param {VowelWorm.instance|Array.<VowelWorm.instance>} options.worms Any
* VowelWorm instances to begin with
* @param {number=} [options.width=700] The width of the game board
... | afd4236a0dd1a327abd6d3f74c201c3e0f8a5bbf | [
"JavaScript",
"Markdown"
] | 5 | JavaScript | rytrose/Voice-Remixer | 070a535e9748773a886b7d29e6cbed07dfae3b78 | 7d94a472aafe71a17e8ad523620f9046e3e38e5f |
refs/heads/master | <file_sep>#Placeholder for a model
class Article < ActiveRecord::Base
end
| facd03724ab493cabf9d9106ec38bfcf53e1e5ec | [
"Ruby"
] | 1 | Ruby | Umnums/sinatra-ar-crud-lab-online-web-sp-000 | 8d765cba65df186175434038e10556deaffc7114 | 81e5b2adf4c43b814ffb026f6ed321ad2572755c |
refs/heads/master | <file_sep>package com.bawei.caolina20190513.net;
import android.annotation.SuppressLint;
import android.os.AsyncTask;
import com.google.common.io.CharStreams;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.MalformedURLException;
import java.net.URL;
/*
*@Auther:cln
*@Date: 时间... | 580d395c800d2189aa4a06047e433faf49fdebfe | [
"Java"
] | 3 | Java | Nina2265462/Caolina20190513 | 3413c7c5f57aa1cfad6d01509274b017362be854 | 3b09020899e908126390d9aaf00376e1304b5fe4 |
refs/heads/master | <file_sep>import React from 'react';
import styled from 'styled-components';
import Img from 'gatsby-image';
import { Link, useStaticQuery, graphql } from 'gatsby';
const LogoWrap = styled.div`
${(props) => (props.footer === 'true' ? '' : 'margin: auto 0')};
${(props) => (props.footer === 'true' ? '' : 'flex: 0 0 ... | 15f671e4fb0839d41a139dee388f7e33a615077c | [
"JavaScript"
] | 16 | JavaScript | luishcastroc/seguridad-electronica | 62ade79d4c1a33bf44106fa9639bccc5e1935528 | a2316409508f06e0bbd0d85f2a4fdc50ce1c755a |
refs/heads/master | <repo_name>mohibkhan-nedian/Student-Management-System-RESTful-Webservice<file_sep>/src/main/java/com/springapp/mvc/dao/Studentdaoimpl.java
package com.springapp.mvc.dao;
import com.springapp.mvc.domain.Student;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.springframework.beans.factory.... | 334e6607c901a207aecd37bc3df1aa8bb21dd905 | [
"Markdown",
"Java"
] | 4 | Java | mohibkhan-nedian/Student-Management-System-RESTful-Webservice | 241152e8c44af004d789e4fc46dc311253866b66 | a1a92586c690f5140603887fe93ea6e0f90719d5 |
refs/heads/master | <repo_name>zyrjdtyrj/casino<file_sep>/app/Http/Controllers/Casino/Game/SlotController.php
<?php
namespace App\Http\Controllers\Casino\Game;
use App\Models\Prize;
use App\Services\Casino;
use Illuminate\Routing\Controller;
use Illuminate\Support\Facades\App;
class SlotController extends Controller
{
public functi... | 382620e399c3817a12138abb8c501b8c317d8522 | [
"Markdown",
"PHP"
] | 26 | PHP | zyrjdtyrj/casino | e5ae5de5e49ff71ba3a6ddde0460840a977ba5cd | 3e225e6e02735332e79cb9c262834d8309f93c00 |
refs/heads/master | <file_sep>const Game = require('./game');
const GameView = require('./game_view');
let newGame = null;
document.addEventListener('DOMContentLoaded', function () {
const view = document.getElementById('view');
const menu = document.getElementById('menu');
const title = document.getElementById('title');
});
doc... | cfa69f5471e17369aee41e8b4434afdefb69f17d | [
"JavaScript"
] | 4 | JavaScript | mbr84/TheHungering | b33863f9f383f48c7b1734664e6e79f58b4adaa7 | bdece789fce24939318632925741f0b3d312a39d |
refs/heads/master | <repo_name>wssongwenming/view-practice<file_sep>/propertyanime/src/main/java/com/wondertwo/propertyanime/CustomPointActivity.java
package com.wondertwo.propertyanime;
import android.app.Activity;
import android.os.Bundle;
/**
* CustomPointActivity
* Created by wondertwo on 2016/3/27.
*/
public class CustomPointAct... | aadd7f35065f75d3d60f5aa2573451c54ddbab57 | [
"Java",
"Gradle"
] | 5 | Java | wssongwenming/view-practice | b951f12b37679a0b866c7c45b0c312e52f135591 | 06b9d94a9f2efcb159d1f2424a73a34daa30d1ca |
refs/heads/main | <repo_name>Arif9878/mern-stack<file_sep>/backend/server.js
const express = require('express')
const path = require('path')
const productRoutes = require('./routes/productRoutes')
const cors = require('cors')
const env = process.env.NODE_ENV
try {
switch(env) {
case 'undefined':
require('dotenv')... | b16c7385235fdd7fc2d7799d6016aa60d5452cf3 | [
"JavaScript"
] | 1 | JavaScript | Arif9878/mern-stack | eeb69048fc406721960411901420014e7ef42088 | 9d8fba491ca95a8af923f3d9aad832e757091ccc |
refs/heads/master | <file_sep>## boot cap libs
#
load 'deploy' if respond_to?(:namespace) # cap2 differentiator
Dir['vendor/plugins/*/recipes/*.rb'].each { |plugin| load(plugin) }
## multistage (require 'capistrano/ext/multistage')
#
set :stages, %w( staging production )
set :default_stage, "staging"
set :normalize_asset_timest... | d6b0f0e88ee96a2971db8493ab522b6236b53345 | [
"Markdown",
"JavaScript",
"Ruby"
] | 10 | Ruby | tommyfriendhusen08/ih_redesign | 8afb0751e7beda682e0b06b0c1f50d14f7f7a537 | b3ffe9db8757a35d4b64f3d229087574ffa96fd8 |
refs/heads/master | <repo_name>AxaWebCenter/JS-Starter<file_sep>/tests/dojo.spec.js
describe('dojo', function() {
var dojo;
beforeEach(function() {
dojo = window.Dojo;
});
describe('returnTrue', function() {
it('retourne true', function() {
var expectedTrue = (new dojo.Preco()).returnTrue();
expect(expectedTrue).toBeTruthy... | ff002be8c3082696b8a4f31bb2f3efb3fe7321c3 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | AxaWebCenter/JS-Starter | 68e71eddbbf7389f2dbc9754cae4e6edb26e201b | da690be75a78e2b556c985360040e4686310707c |
refs/heads/master | <repo_name>coyistik/JSPServletMongoDBSampleProject<file_sep>/src/main/java/io/github/ilkgunel/operations/DataSelect.java
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package io.git... | ebcc7d190bdff588f113c88f5f5990ae7aefb5bc | [
"Java"
] | 2 | Java | coyistik/JSPServletMongoDBSampleProject | fedce357f2ab4cd7b4c8c2d2d1da997b2c421893 | 509ec06bca39c239d243748d640676579554f1bd |
refs/heads/master | <file_sep>#!/usr/bin/python
# Start by importing the libraries we want to use
import RPi.GPIO as GPIO # This is the GPIO library we need to use the GPIO pins on the Raspberry Pi
import time # This is the time library, we need this so we can use the sleep function
from twilio.rest import Client
import os
# Your Accou... | e994143a5df791b5e92ff3435d3a5a7d729faad8 | [
"Python"
] | 1 | Python | jeschauer/Moisture-Sensor | f07a808a7333181e3db3839a85e5e596ea7fa1e3 | fd4d91835a66af305afe2dee9cc7bb3f23f92129 |
refs/heads/master | <repo_name>1000pilar/final-live-code<file_sep>/server/controllers/articles.js
var Article = require('../models/article.js')
module.exports = {
create: (req, res)=>{
var createActicle = new Article({
title: req.body.title,
content: req.body.content,
category: req.body.category,
author: re... | ee51086cc83fc2a7d242a2e755ce6b71095c400d | [
"JavaScript",
"Markdown"
] | 7 | JavaScript | 1000pilar/final-live-code | ccd53d8c074a62e30ce26717b3fd258e6278f71d | 7de571203c4a4311b5d7124a45ce07533076d135 |
refs/heads/master | <repo_name>ahanlon1987/musocracy<file_sep>/voter-app/public/js/routers/mobileRouter.js
// Mobile Router
// =============
// Includes file dependencies
define([ "jquery","backbone", "amplify", "../collections/SearchCollection", "../collections/QueueCollection", "../views/SearchView", "../views/QueueView", "../views/Loc... | 8118edbe465db8f3b8d13cb0ea4ce759d24f8542 | [
"JavaScript",
"Text",
"Markdown"
] | 30 | JavaScript | ahanlon1987/musocracy | 0282e200cf923b62cc312a49f332a9536d288b5e | 94691bd94ce02bbab4fac6630744dabed9efb644 |
refs/heads/master | <file_sep># CMPT473-Asn2-ACTS
Use ACTS to generate the test frames for the open source program: https://github.com/jehiah/json2csv
The program is written using Python version 2.7.12
To run the test suite for the Json2csv program do the following steps:
1. Install the Json2csv program from the included source program ... | 6f5feef4b96e50557169b78758490f50b2c16122 | [
"Markdown",
"Python"
] | 2 | Markdown | pjsanjuan/CMPT473-Asn2-ACTS | bc9dfe7b8f901eb571be98ad5c03b67af2b1fa23 | 5f0db7e368ae6d36414b0b7d5c50e718ffb3a981 |
refs/heads/main | <file_sep>import { createStore, combineReducers, applyMiddleware } from "redux";
import createSagaMiddleware, { SagaMiddleware } from "redux-saga";
import { movieReducer } from "../movie/state/reducer";
import movieRootSaga from "../movie/state/saga";
export const configureStore = () => {
const rootReducer = combi... | 7592c4ef15cd7ded2b495b3a2d805b301def7437 | [
"TypeScript"
] | 2 | TypeScript | AravindK003/movieapp | 9cd0be4ae7eba6c8d4c7a6a1c225b27f37a0f873 | e1b26e5a49c6d7a7369c2f4125380a5d16d39ce0 |
refs/heads/master | <repo_name>gregoryanderson/Overlook<file_sep>/test/room-test.js
import Room from '../src/Room'
import data from '../data'
import chai from 'chai';
import spies from 'chai-spies'
const expect = chai.expect;
describe("Room", function() {
let room
beforeEach(function (){
room = new Room(data, data, da... | 7c05f648d2413883be2aeffbbdac5d5ea3a8f6f8 | [
"JavaScript",
"Markdown"
] | 13 | JavaScript | gregoryanderson/Overlook | 9cece5bc4972c54c3d1b6263e19a610025cb4358 | 7dd689c113c02d8ebdf58150c95cfab02e384a7c |
refs/heads/master | <file_sep>
-- List the following details of each employee: employee number, last name, first name, gender, and salary.
SELECT * FROM employees;
SELECT * FROM salaries;
SELECT employees.emp_no, employees.first_name, employees.last_name, employees.gender,
salaries.salary
FROM employees
INNER JOIN salaries
ON employees.... | c33f7dcf070bd64c527e471db3daa587f4e29991 | [
"SQL"
] | 1 | SQL | MissWibbon/sql-challenge | b08bcabf8e5088c91c6ba98308bc20ac3e248d3b | 19e0dad092bbe79dd0f317db74f259594045a7e0 |
refs/heads/master | <file_sep>'use strict';
exports.isNullOrUndefined = function (value) {
return value === null || value === undefined;
};
// +7 (555) 666-77-88
function formatPhone(s) {
let code = s.slice(0, 3);
let g1 = s.slice(3, 6);
let g2 = s.slice(6, 8);
let g3 = s.slice(8, 10);
return `+7 (${code}) ${g... | 60a4b78b485e6f741f322810ec8ba09a02ff9ba7 | [
"JavaScript"
] | 4 | JavaScript | Edheltur/javascript-task-2 | e0ec031b742fdc0b3a942f60f66d7d2a5e5b90d7 | ca7447bb745baf09e27a00aa3e13b9b1064ca1fe |
refs/heads/master | <repo_name>LZX842056112/SSMRBAC<file_sep>/atcrowdfunding-web/src/main/resources/sql/atcrowdfunding.sql
/*
SQLyog Ultimate v12.09 (64 bit)
MySQL - 5.7.24-log : Database - atcrowdfunding
*********************************************************************
*/
/*!40101 SET NAMES utf8 */;
/*!40101 SET SQL_MODE='... | c0abc0625b42bb7a3e952f3ac57735c40ef6d614 | [
"SQL"
] | 1 | SQL | LZX842056112/SSMRBAC | e661378ff83eecdf8ad90238cd01cf536e7f4e78 | 15ab8bc4b25378eb4f9962632fed58185923d1c8 |
refs/heads/main | <repo_name>meikyoshisui/MessyF2FCalculator<file_sep>/README.md
# MessyF2FCalculator
F2F Outcome Calculator for Corvus Belli's Infinity.
Provide 4 arguments in the order:
Player 1 Burst Value
Player 1 Success Value
Player 2 Burst Value
Player 2 Success Value
<file_sep>/main.py
# test comment
import random
im... | 1a4e8bbc161ecf28bc03d21d691b5bbf6d3a86d6 | [
"Markdown",
"Python"
] | 2 | Markdown | meikyoshisui/MessyF2FCalculator | 8bea90129bb444abfe09b562f7b294f19dc92d56 | 0ca27e305e9355cd9d9ea5e5fff664b7e06b123d |
refs/heads/master | <file_sep>class Rover {
var maps: Maps?
private var x: Int
private var y: Int
private var face: Direction
init(x: Int, y: Int, face: Direction) {
self.x = x
self.y = y
self.face = face
}
func operate(command: Command) {
switch command {
case .turnLeft:
operateTurnLeftCommand... | ef14b298dc1adde70048b1b26a35edffdbfc54c9 | [
"Swift",
"Markdown"
] | 7 | Swift | PH9/swift-marsrovertechchallenge | 759d4530d60a06df6305326e1e33214dcde39cf2 | c9859e40de134a9fdf5222f79bba6a5d12839910 |
refs/heads/master | <file_sep>using System;
using System.Collections.Generic;
namespace EsportEvent.Domain
{
public class Match
{
public Match()
{
Teams = new List<Team>();
}
public int Id { get; set; }
public Game Game { get; set; }
public string GameName { get; set... | b172f810c5f671ced7a51a46561d0104ffffa156 | [
"C#"
] | 24 | C# | TeknikhogskolanGothenburg/Ef_Emanuel_Johansson_EsportEvent | a13070f240ffa49367ed7b40cedb9be1e53bc446 | aab6bd0046108cab0eb895fc12b798b48da989ee |
refs/heads/master | <file_sep>var myApp = angular.module('myApp', []);
myApp.controller('DataController', ['$scope', '$http', function ($scope, $http) {
$scope.movies = [
{
"name": "<NAME>",
"date": "10 November 2016",
"status": "unwatched",
"myRating": 10,
"imgSrc": ... | b55b9bd4d1130439f3c03ebeb444aa3c243efc51 | [
"JavaScript",
"HTML",
"Shell"
] | 3 | JavaScript | lynas/lynas.github.io | aaf81bbaca44f3e851516c17091a0ea641b71bbc | ad779f46ab96929b51d7cbf639b1eb95761bcb14 |
refs/heads/main | <repo_name>Vincent615/ImmobileMaze<file_sep>/gears.py
# Describe the Wooden Sword through a dictionary
wSword = {
'descript': 'a wooden weapon for newbies',
'damage': 5,
}
# Describe the Iron Sword through a dictionary
iSword = {
'descript': 'an iron weapon for pros',
'damage': 10,
}
# Describ... | b6136e031b638a37a4861a97e232d73e830459fd | [
"Markdown",
"Python"
] | 6 | Python | Vincent615/ImmobileMaze | b04b85df937515f89142d1d7e9eb0fc08bef5dbd | 608b6c740482ec4d995a54a97766dafd92db3e80 |
refs/heads/main | <repo_name>chickenfan/Chickens-Amazing-Discord-Bot<file_sep>/CommandHandling/BaseCommand.ts
import {Permissions, GuildMember, Message} from 'discord.js'
export default abstract class BaseCommand {
private command: String;
private perm: number;
constructor(command: String, perm: number) {
this.command = comm... | b9216161116e972850674c4b1499050706eeb4fd | [
"TypeScript"
] | 6 | TypeScript | chickenfan/Chickens-Amazing-Discord-Bot | 1f04f1bd618c26336252a7bc4c6f9771299a1a76 | d2a0ba7b3edfaefcb039ddc69e3a4363929e7ee0 |
refs/heads/master | <file_sep>package com.mucahitsahin.kotlin_chatbox_firebase.model
class ChatMessage(val id:String="",
val text:String="",
val fromId:String="",
val toId:String="",
val sendTime:Long=0) {
}<file_sep>package com.mucahitsahin.kotlin_chatbox_firebase.a... | f1e422f40825fd2871d075fb6074d2b39aeaf14c | [
"Kotlin"
] | 11 | Kotlin | mucahit-sahin/Kotlin-Messenger-Firebase | edaf734faffc7b5fd873d219a123576000702e2e | bce995b81eab9de141e7f4306fff4f7e923cff3c |
refs/heads/main | <file_sep># kodi-to-plex
Hacked together script that moves watched items from Kodi to a single Plex user
<file_sep>#!/usr/bin/python
#
# Hacked together script that moves watched items from Kodi to a single Plex user
# https://github.com/mhoffesommer/kodi-to-plex
import sqlite3,os,re
from datetime import datetime
from... | 3f64428f6b6ee7b2f187f548364506c3d52e0673 | [
"Markdown",
"Python"
] | 2 | Markdown | mhoffesommer/kodi-to-plex | f38ed9a8c7a499d32ecfaaa750c089a31a8f568c | d8a13f579b885df8e6b644822c2b35187c9b5e82 |
refs/heads/master | <file_sep>import argparse
import logging
import sqlite3
from collections import Counter
from argParseLog import addLoggingArgs, handleLoggingArgs
log = logging.getLogger(__name__)
if __name__ == '__main__':
ap = argparse.ArgumentParser()
ap.add_argument('-d', '--database', help='The database to read.', defau... | 58a64731085a2e7ebcc4afaf0f73d0333acaf710 | [
"Python"
] | 3 | Python | philsstein/reddit-comment-counter | d5557d69089de4904fe95c8b81eaa24ab0648ca6 | 8315551957ce327e65e847de00c2ae6db14d93fa |
refs/heads/master | <file_sep>/****************************************
Barebones Lightbox Template
by <NAME>
<EMAIL>
* requires jQuery
****************************************/
// Parse variables from URL
function getQueryVariable(variable)
{
var query = window.location.search.substring(1);
var vars = query.split("&")... | 0a336e6d79e7d2261e77a58b366a896c76a78a81 | [
"JavaScript"
] | 1 | JavaScript | dttaggoram/eu_ref | 67adf942e1bef624429b8923a3acd1c582793d96 | be541226a04b61873aa19cff3ed49a114d734254 |
refs/heads/main | <file_sep>/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package model;
import java.util.ArrayList;
import java.util.List;
import javax.persistence.Entity;
import javax.persistence.... | ffa52b82e0ef225300fd0e91ef1446ec025a52ab | [
"Java",
"INI"
] | 15 | Java | alvaro-ric/bookbus | 61e80f219eb38cef908a0a798f63cadf58596a5d | 9a0833465d9de2eb1d55ebeeb9ac84e86a048f96 |
refs/heads/master | <file_sep># ECML-PKDD 2018 Reproducible Research
Source code for reproducibility of our experiments for the ECML-PKDD 2018 paper "Towards Efficient Forward Propagation on Resource-Constrained Systems"
## Dependencies
* Python 2 or 3
* TensorFlow
* TensorPack
* Python bindings for OpenCV
## Usage
Configuration: terna... | 2ca27b9aa4d8a5b205603971f72fc581bddc9bd7 | [
"Markdown",
"Python"
] | 2 | Markdown | UniHD-CEG/ECML2018 | dd3b9bf714d12c9d2b0cca3afb836c52694242a8 | 3b2c1e2a8cfa647aec9ffe225ff88439f2ff65eb |
refs/heads/master | <repo_name>ngpraveen/ml_product_template<file_sep>/data/download_data.py
#!/usr/bin/env python
def get_data(destin_dir=None, file_name=None):
# import libraries
import pandas as pd
from sklearn.datasets import load_iris
from pathlib import Path
# load data
data = load_iris()
# load featu... | 28a483440bd469d1df46ea5bfb146ad105acc86a | [
"Markdown",
"Python",
"Text",
"INI"
] | 12 | Python | ngpraveen/ml_product_template | d8cd84a4f319f3219fc7e358ca9f2fb84c0e2225 | d6ff24fd41ca2f21be0d07320bf1759c0a17acd4 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.