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>apply plugin: 'com.android.dynamic-feature'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
android {
compileSdkVersion 28
defaultConfig {
minSdkVersion 21
targetSdkVersion 28
}
buildTypes{
release{
proguardFiles 'proguard-rules-d... | b828e53bbf925d56421bb6adc65a62cb551a4470 | [
"Markdown",
"Kotlin",
"Gradle"
] | 3 | Gradle | hoangbn-1772/AppBundles-DynamicDeliver | e601e4cce28cda6a2372fc2d34c7a6ed79799205 | 2a41d5fe2ddfcd9a92035dec0d09b4a9d7ebdb93 |
refs/heads/master | <repo_name>jelastic-jps/docker<file_sep>/addons/le-ssl-deploy-hook.js
nodeId = getParam('nodeId');
envName = getParam('envName');
envAppid = getParam('envAppid');
envDomain = getParam('envDomain');
scriptName = getParam('action') == 'uninstall' ? 'undeployLE.sh' : 'deployLE.sh';
resp = jelastic.environment.control.Get... | be36329950a86ad5f59a16c85d8e931a8c85db14 | [
"JavaScript",
"Markdown"
] | 3 | JavaScript | jelastic-jps/docker | 616e24bb265d9096786d3dadeeaff53d90edb6fa | a0d30e400c10a8c20888389b2f809cdc49deb705 |
refs/heads/master | <repo_name>Elukoye/Daily_Coding_Challenges<file_sep>/unique_staircase.rb
# Daily Coding Problem: Problem #12 [Hard]
# This problem was asked by Amazon.
# There exists a staircase with N steps,
# and you can climb up either 1 or 2 steps at a time.
# Given N, write a function that returns the number of unique ways you... | 0a70131412094fd3ad491492970943edb36e3e12 | [
"Ruby"
] | 10 | Ruby | Elukoye/Daily_Coding_Challenges | f76cc59b7b3c7714eefad7627c1d39ae08fd0ebc | dd804772c3608240fb836f46c9773c7faed8146c |
refs/heads/master | <repo_name>pasudo123/SpringBoot-BoardSample<file_sep>/settings.gradle
rootProject.name = 'board-core'
<file_sep>/src/main/java/edu/pasudo123/board/core/comment/api/CommentXXController.java
package edu.pasudo123.board.core.comment.api;
import edu.pasudo123.board.core.comment.dto.CommentOneResponseDto;
import edu.pasudo... | 2df4b4d0994df9998f6ba02bde9c7c6c2fbf3b45 | [
"JavaScript",
"Java",
"Markdown",
"Gradle"
] | 32 | Gradle | pasudo123/SpringBoot-BoardSample | 0d438f54abb30ffb57c0e1d38660ae90cc508afb | d8607e63ab8933dda635c1d381f53d58dcd2c030 |
refs/heads/master | <repo_name>SamGurr/Geoduck_transgen_offspring_OA<file_sep>/RAnalysis/Scripts/Larvae.size.R
#Title: Larvae.size
#Author: <NAME>
#Edited by: <NAME>
#Date Last Modified: 20190628
#See Readme file for details
rm(list=ls()) #clears workspace
## install packages if you dont already have them in your library
if ("devtool... | 85bb83c25ef09c501292fb589688514fde108d58 | [
"Markdown",
"R"
] | 5 | R | SamGurr/Geoduck_transgen_offspring_OA | b6943af94bab2fa8136198a103d37caa7f654456 | ececaca9c7c0898262aa1ff9917c63467f529a8f |
refs/heads/master | <repo_name>fureloka/Pong<file_sep>/Source/Input/JoystickController.hpp
//=============================================================================
// Date: 28 Dec 2017
// Creator: <NAME>
//=============================================================================
#pragma once
#include "Controller.hpp"
namespa... | a3b9999c105a4cf51e25e23ddf2c5fd1cf5b0d18 | [
"C",
"CMake",
"C++"
] | 98 | C++ | fureloka/Pong | b1da90739139e7722576b6c72662db9b30c703c4 | 3b9d91d2ae092a73b8a7550d37c7f67197f5985a |
refs/heads/master | <file_sep># Time Estimate for Capstone Project
## As of 2/17/2020
1. There are 9 weeks remaining
2. I have 4 hours per day or 28 hours per week available
3. Conservatively there are 250 hours available
**List of items and estimated hours**
1. Homepage - 40 hrs
2. Search page - 12 hrs
3. Search result ... | dddd094d35cf665a0551da6af24c95d30f6aa8a1 | [
"Markdown",
"JavaScript"
] | 11 | Markdown | davkem43/Capstone | 1d4c4e87c428d20d07d12933e401181ca3dadf57 | 006188399ea7612d51322c61d6ee3937068b7858 |
refs/heads/master | <file_sep>using System;
using PlanShopEat.ViewModels;
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Navigation;
namespace PlanShopEat.Views
{
public sealed partial class RecipesPage : Page
{
public RecipesViewModel ViewModel { get; } = new RecipesViewModel();
public RecipesPage()
... | c0824ef35e39925fd54c9450c9eb0dde651bc1a5 | [
"C#"
] | 4 | C# | magnusnorvik/PlanShopEat | c8857c892c669f5681b098852ff25623e746564e | aa205725299ae2d25ffd05aca847ff46ba4344f3 |
refs/heads/master | <repo_name>Shulabh-968026/30DaysOfCodeHackerRank<file_sep>/Day 10: Binary Numbers
#!/bin/python3
import math
import os
import random
import re
import sys
if __name__ == '__main__':
n = int(input())
l=list()
ones=0
m=0
while n!=0:
if(n%2==0):
l.insert(0,0)
else:
... | 19e731229b1c158cc1c5ae81306a407ba36efcc0 | [
"Markdown",
"Python"
] | 2 | Python | Shulabh-968026/30DaysOfCodeHackerRank | 452b942f73164984ff741efb70670563d5344c83 | 7a259641f14b760e77dd8520fc8af5c71c56b894 |
refs/heads/master | <file_sep>import React from "react"
import TodoItem from "./components/TodoItem";
import todosData from "./components/todosData"
function App() {
const todosComponents = todosData.map(item => <TodoItem key={item.id} todoItem={item}/>)
return(
<div className="list">
{todosComponents}
... | 69a890e1b376f4d35e784dab65029306f51c0ca3 | [
"JavaScript"
] | 7 | JavaScript | clebercmb/learn-react-app | 617e090cc5c8bdc93e5d19274cac6c3c895237f5 | 98272d5bc5911f7ca771be21553d11b6aa824059 |
refs/heads/master | <file_sep>import React from 'react';
import './MenuBox.css';
import MenuItem from './MenuItem/MenuItem';
class MenuBox extends React.Component {
constructor(props) {
super(props);
this.state = {
name: this.props.name ?
this.props.name :
new String("Menu"),
menuItems: this.props.... | ee663316b5c8e877f32a1456ecd31b1a08fc339a | [
"JavaScript"
] | 2 | JavaScript | NoviceDream/Kingdom-Hearts-Command-Menu | 8bebf51e0b90e747495eafacfd4849333fbb9d76 | 6bedd860944f23aae8e602f51d1182de57a6d31f |
refs/heads/master | <file_sep>// Code your solution in this file.
function lowerCaseDrivers(array) {
return array.map(function(driver) {
return driver.toLowerCase()
});
}
function nameToAttributes(array) {
return array.map(function(driver) {
let names = driver.split(' ')
let oneName = names[0]
let twoName = names[1]
let ... | 17c5ddc54d7e0ac5a75854de70c46eea7d7cc087 | [
"JavaScript"
] | 1 | JavaScript | itisjustdiego/js-looping-and-iteration-map-lab-web-091817 | 4eb603dd79b99777f8160bccbc2c8c997aa092ad | 3924594bafec8f04fb77fbb1d1e691144f1bf387 |
refs/heads/master | <repo_name>arizamoisesco/Medir-peso-en-marte-python<file_sep>/main.py
print("*"*20)
print("Bienvenido, ¿deseas calcular tu peso en Marte?")
print("*"*20)
respuesta = input("(1)Si / (2)No \n")
if respuesta == "1":
print("¿En que planeta desea estar?")
print("a. Marte")
print("b. L<NAME> la Tierra")
planeta = inp... | c549ad8e378d630e5b30909090c0cf86c2334fc8 | [
"Python"
] | 1 | Python | arizamoisesco/Medir-peso-en-marte-python | cb65a4997ef7d707aa66c2dd42b9a26ab2f37248 | 8a73d5c8e6316aa25c5b8f4e9505e6daedb37db7 |
refs/heads/master | <repo_name>sundar156/Machine_Learning_using_R<file_sep>/ML_Session.R
#Day1
var <- 10
var
class(var)
var1 <- T
var1
class(var1)
# Vector - homogeneous collection of scalar object
v1 = 1:9
v1
v2 <- c(1,2,8,5,7,9)
v2
class(v2)
v2[2]
v2[2:5]
v2>=7
v2[v2>=7]
# List – heterogeneous collection of data
l1 <- list(... | 62fe0472acb001604a3f415d54d8462b270b07ea | [
"R"
] | 7 | R | sundar156/Machine_Learning_using_R | f5e62c7eeaa6ae502ce80b8fab5898b545223f21 | 06089895a9a13dbbe6f5cab28f682c8ffe0d528b |
refs/heads/master | <file_sep>package request
import "errors"
type Method int
const (
GET Method = 1 + iota
POST
UPDATE
DELETE
OPTIONS
)
type RequestReader interface {
GetMethod() Method
GetResource() string
GetBody() interface{}
}
type RequestParams struct {
Method Method `json:"method"`
Resou... | 4cfbbecb0ae41ee48e64e150e683b010b02eb657 | [
"Go"
] | 5 | Go | oleksandr-klimenko/go-serv | f443432ef3fca5131e2fdbf7822337e0f8d4d71c | ec93b67a7ed13d580f997de75d17d820ff506e1f |
refs/heads/master | <repo_name>SubhanshuMG/GeolocationSMG.github.io<file_sep>/README.md
# Geolocation
Helps in finding your current location using device GPS.
<file_sep>/js/background-timer.js
var INTERVAL = 1000; //ms
var timer = setInterval(function(){
var date = new Date();
postMessage(date.getTime());
},INTERVAL);
onmessage ... | cbdde89cde8dc868dee8cfe82f7d2f8d3f315e5a | [
"Markdown",
"JavaScript"
] | 2 | Markdown | SubhanshuMG/GeolocationSMG.github.io | ca5a1460d33b01f9e05756985f2d4612f93aaf0a | 614edf2ed3f51273af8227caad2e277c27e8a31a |
refs/heads/master | <file_sep>function TokenHeader(headerData)
{
var headerjson = ' + headerData + ',
headerobj = JSON.parse(headerjson);
encodedHeader = btoa(unescape(encodeURIComponent(headerjson)));
encodedHeaderString = decodeURIComponent(escape(window.atob(encodedHeader)));
return encodedHeaderString;
}
function... | 9ec48154f858151ac21968f93caeddf02f38399f | [
"JavaScript",
"C#",
"Markdown"
] | 8 | JavaScript | xerocrypt/JSON-Web-Token-Generator | e45b096a9ca78ba9032a0ca6f2de83a03a71f8db | 06dd0d88adb6b4e2d845f84cdbfc4e86e126c522 |
refs/heads/master | <repo_name>ZTylerDurden/Canals-backend<file_sep>/routes/product-reviews.js
const express = require('express');
const mongoose= require('mongoose');
const Canal = require('../models/canal-model');
const Review = require('../models/review');
const User = require('../models/user-model');
const reviewRoutes = express.Rout... | b39534406e0b26f2b2a7022cbed42b2ee782a9e7 | [
"JavaScript"
] | 3 | JavaScript | ZTylerDurden/Canals-backend | 89c06195af83769192a28a52182ed02421e6ca56 | 1e07ef6654eb8c7eae573d3c982dd49c5617f434 |
refs/heads/master | <repo_name>chingyuany/Caesar-Cipher-algorithm<file_sep>/TestCaesarCipherTwo.java
/**
* Write a description of TestCaesarCipherTwo here.
*
* @author (your name)
* @version (a version number or a date)
*/
import edu.duke.*;
public class TestCaesarCipherTwo {
public int[] countLetters(String message)
{
String ... | 32bdd08da90bd9ab45b131a2df2de5019d18e1fd | [
"Markdown",
"Java"
] | 4 | Java | chingyuany/Caesar-Cipher-algorithm | 701b8cc712f7f509818263f3a4df445fc19d2813 | 918d70370526a5748d9e58a6e3bdb06a5988fd67 |
refs/heads/master | <file_sep>class DashboardController < ApplicationController
require 'httparty'
include HTTParty
def index
@dashboard = Dashboard.all.order('value')
@last_changed = Dashboard.all.order('updated_at').last
@response = HTTParty.get("http://api.openweathermap.org/data/2.5/forecast/daily?zip=#{94536}&cnt=8... | 87a13cf0a00e5dda05e6af0d6c9bb5144c9aab64 | [
"Ruby"
] | 4 | Ruby | jesser360/nvxl | be5a527679ea70f4a7e2a3a2eb3fc59e099d6f0b | e37137d317e93f01b4e4ee013a1bd776e03f7711 |
refs/heads/master | <repo_name>ArtemOnischenko/angular2-fundamentals-study<file_sep>/app/common/toaster.service.ts
import { OpaqueToken } from '@angular/core'
export let TOASTER_TOKEN = new OpaqueToken('toaster');
export interface Toaster {
success (msg: string, title?:string): void;
info (msg: string, title?:string): void;
w... | 7ebdcbafdfa6fbe317dd2b0af7c1fe0d17cd260c | [
"TypeScript"
] | 5 | TypeScript | ArtemOnischenko/angular2-fundamentals-study | c851d03f9719ea7147436e5a3ac4d7e03c3e3c2d | 35ffabd93f89f310ff8d6419943c6c62eebf7ab9 |
refs/heads/master | <repo_name>Homhomich/CryptTask_3<file_sep>/src/com/company/hashFunction/feistel/CBC.java
package com.company.hashFunction.feistel;
import java.util.BitSet;
public class CBC {
private BitSet[] text;
private Feistel feistel;
private BitSet IV;
private BitSet[] encryptText;
public CBC(BitSet[] te... | 69d3554aa9f18e78ab8a4bec49c2d2942ee14539 | [
"Java"
] | 3 | Java | Homhomich/CryptTask_3 | 278f9ea4a5ecef06aeeead613357f54b94204899 | 75226503695b7282189f49367872257bc30d9907 |
refs/heads/master | <file_sep>/**
* Javascript 数组去重实现的不同方式
* d:\Apps\node-v8.11.3-win-x64\node js_useful.js
*/
// use ES6 Set
function unique(arr) {
return Array.from(new Set(arr));
}
var arr = [1, 1, "true", "true", true, true, 15, 17, 17];
console.log(unique(arr));
// 利用双for 循环
// .splice() 从数组中删除条目,并返回改条目
function unique_for(ar... | da4cdaf33502c8017cd38a9c421e6732c5c51b56 | [
"JavaScript",
"Markdown"
] | 8 | JavaScript | Zhaxichun/fontends | 72fb20122d18fcb2af4613055bfb16d51bfac707 | 4dfdde45332d3ad189698c6a748c00f88c25d833 |
refs/heads/master | <file_sep>/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* main.c :+: :+... | 6654cf60db31e2194599a8b0963bc9737c89a04b | [
"C"
] | 3 | C | Ctsu27/wolf3d | 4556bca3bcf7ab8849304c9b6a85e6c0280bbbce | 29427662db1eebf936b29662c3954b6dc6af8619 |
refs/heads/master | <file_sep>package utils
import (
"bufio"
"fmt"
"os"
)
func handleMissingFile(filePath string) bool {
fmt.Println(filePath, "does not exist. Should we create it for you? y/n")
reader := bufio.NewReader(os.Stdin)
char, _, err := reader.ReadRune()
if err != nil {
fmt.Println(err)
}
switch char {
case 'y':... | b709a2dca3685c920f4b90a30d5a0b45c5c828e4 | [
"Markdown",
"Go"
] | 9 | Go | deanacus/t | c422fdba04cf36e9520d38dd14594084f1e04121 | 50d67ba0268b2b764609864bb8487b753f25eaea |
refs/heads/master | <file_sep>const cheerio = require("cheerio");
const cheerioTableparser = require("cheerio-tableparser");
const foodDataFetcher = require("./foodDataFetcher");
function removeT(str) {
return str.replace(/\t/g, "");
}
function removeNT(str) {
return str.replace(/\t/g, "").replace(/\n/g, "");
}
function parseTable(... | b2146777d7e9b8226a9d85300d8f0834faad6da1 | [
"JavaScript",
"Markdown"
] | 5 | JavaScript | devHudi/inhafood-bot | d37b515fc05e89b77496d193eed243de283b97a0 | da7d34aba7a6a67ad147806854dd4ea9118655eb |
refs/heads/main | <file_sep>using System;
using System.IO;
using System.Collections.Generic;
using System.Collections.Concurrent;
using System.Threading;
using System.Net;
using System.Net.Sockets;
using Aws.GameLift.Server;
using Aws.GameLift.Server.Model;
namespace AGLW_CSharp_BetterChatServerSample
{
class ConnectedClient
... | 0d3e88219bb49c61825a3235596abf7e1756d218 | [
"Markdown",
"C#"
] | 5 | C# | cm-obuchi-hugo/AGLW-CSharp-BetterChatServerSample | ab4a3a86eb01e1f79981b0218cc2eb7857c300d8 | 0e1ca022650f5885e68609ed9f1c4498f28a65a7 |
refs/heads/master | <repo_name>igtss/server<file_sep>/server_v3.py
from socket import *
import threading
class Config:
host, port, sizeMessage = ("localhost", 5003, 1024)
sPa, sPb = (AF_INET, SOCK_STREAM)
class ControllConnection(Config):
sServer = socket(Config.sPa, Config.sPb)
listenFlag = 1
def __init__(self):
self.sServer.... | 21b824737297e7fe1be60207db21675c65cd331f | [
"Python"
] | 5 | Python | igtss/server | fc10a82409b3a350b40e0f7e265c97d6c8f4f814 | 39b56f1714d31c11cf742bf022f3155674358320 |
refs/heads/master | <file_sep>using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using TMPro;
public class UIController : Singleton<UIController>
{
public Advices Advices;
public Image PlayerHealth;
public Image RoseHealth;
public TextMeshProUGUI txt_bobabAm... | 7633fa6691c2b070a28290a55f364fb78c207ea8 | [
"C#"
] | 31 | C# | fomich486/LudumDare46 | 3b2ef4ca03f687a9b858a4b92e0297ee4997a1bd | 0cd2f37ab8a0d407ced3ba16530ad85103e38a2b |
refs/heads/master | <repo_name>gagner2/deepQ<file_sep>/translator/__init__.py
"""Makes helper libraries available in the translate package."""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from tensorflow.models.rnn.translate import data_utils
from tensorflow.models.rnn.trans... | ebda948181e4e3e6256226d81802e1e68eee2ffb | [
"Python"
] | 4 | Python | gagner2/deepQ | f7d0026c59da0d80b33650a23040452089aa49b0 | 613175963df22d87e279450f45c75a78f3a229db |
refs/heads/master | <file_sep>#include <stdio.h>
#include <vector>
#include <random>
#include <assert.h>
#include <time.h>
#include <GLFW\glfw3.h>
#include "linmath.h"
#include <stdlib.h>
#define SCREEN_STRIDE 2
#define SCREEN_MIN -1
#define SCREEN_MAX 1
#define GAME_BOARD_STRIDE 1
#define PADDLE_WIDTH 0.03
#define PADDLE_HEIGHT_IN_WIN... | b9f5a656f2515e8f0013ff8a78a0c8adeed3e78a | [
"C++"
] | 1 | C++ | ww785612/Pong_RL_Learning | 214bdc848f572a5051a1769956d9c9d584cd352f | 352aa8389822fda86e7b189d712ab245a2b7cb19 |
refs/heads/master | <repo_name>ahmader/riot-html<file_sep>/src/stores/familystore.js
// FamilyStore definition.
// Flux stores house application logic and state that relate to a specific domain.
// In this case, a list of family members.
export default function FamilyStore() {
if (!(this instanceof FamilyStore)) return new FamilyStore()... | b73a4c2dc8f06e5e44fa4233636d66d72713c344 | [
"JavaScript",
"Markdown"
] | 4 | JavaScript | ahmader/riot-html | 321444d0241237a01a63d8a3896fc47afa52f57b | c1fe7d0177864a27dd4223ce6bf5f4d35fced638 |
refs/heads/master | <repo_name>akamit21/samagra<file_sep>/src/APIButton.jsx
import React from "react";
import { Col, Button } from "react-bootstrap";
const APIButton = (props) => {
return (
<Col md={6}>
<Button
type="button"
className="my-2"
variant="outline-dark"
size="lg"
block
... | 5ceb8ed8442e2f9d5d00fdc3471d9a6308ba589f | [
"JavaScript",
"Markdown"
] | 6 | JavaScript | akamit21/samagra | 4cf241eef029342136ce5b12a6f9f95738500259 | d8e44e5596530f19151b54c84c07662c6b015e77 |
refs/heads/main | <file_sep>CREATE TABLE IF NOT EXISTS USERS (
userid INT PRIMARY KEY auto_increment,
username VARCHAR(20),
salt VARCHAR,
password VARCHAR,
firstname VARCHAR(20),
lastname VARCHAR(20)
);
CREATE TABLE IF NOT EXISTS NOTES (
noteid INT PRIMARY KEY auto_increment,
notetitle VARCHAR(20),
notedescripti... | 975b82d2fc77f677b9b42c26224348365e534cf4 | [
"Java",
"SQL"
] | 3 | SQL | nhantran3395/nd035-c1-spring-boot-basics-project-starter | fb4a36a12f6c290e5439225e57a6d065d8fc090d | 2da7e653ab5fb786eda364d41c32839aa2b18d63 |
refs/heads/master | <file_sep>from flask import Flask
from flask_restful import reqparse, abort, Api, Resource
from model import Exchange, logger
import os
from datetime import date
app = Flask(__name__)
app.config.from_object('config')
api = Api(app)
base_url = '/api/v1'
# def abort_if_code_doesnt_exist(code, exchange):
# latest_c... | 4bf40dcd9468e7eaed2c527f8b691a77f1f5e901 | [
"Markdown",
"Python",
"Text"
] | 7 | Python | code-datum/currency-converter | 2b0f4871928e6d27af1deb46d9f5d53b7ad75b85 | 3fcbd6d1f0bb5421ad537c479a81c9e5f664da05 |
refs/heads/master | <file_sep>import os
from mindsdb.libs.constants.mindsdb import *
from mindsdb.config import *
import pandas as pd
import lightwood
class LightwoodBackend():
def __init__(self, transaction):
self.transaction = transaction
self.predictor = None
def _create_lightwood_config(self):
con... | ea27f73dea2dc9da5045ca751b71afe8bf2fed4b | [
"Python"
] | 1 | Python | chengjingfeng/mindsdb | 80da03ee1186d3b6bf695323ba9d5d4ff254edab | 6ddd9eefd713a63b42dc22ee4237a875f8b61f12 |
refs/heads/master | <repo_name>dooart/github-backlog-toolkit<file_sep>/src/tasks/index.js
const tasksIds = [
'issues-without-project',
'last-production-deploy',
'labeled-issues-in-projects',
'labeled-prs',
'unreleased-releases'
]
const tasks = tasksIds.reduce((tasks, taskId) => {
tasks[taskId] = require(`./${taskId}`).default
... | 17e78e7e44a91a5a3530c719200ef77c717ae49b | [
"JavaScript",
"Markdown"
] | 10 | JavaScript | dooart/github-backlog-toolkit | 47cc3f480f07d0e66e4b804aa3c0ab31cfcfaf49 | 5a9d5875231e19ceef51ba4eb855faf47cfb61af |
refs/heads/master | <repo_name>filipmikolajzeglen/how-to-sql-injection<file_sep>/src/pl/filipzeglen/injection/servlet/LoginServlet.java
package pl.filipzeglen.injection.servlet;
import java.io.IOException;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import javax.naming.Context;
import javax.... | 4ddfeddcc6e2d9ab7c1b00f5a8b6f696d7f98448 | [
"Java"
] | 1 | Java | filipmikolajzeglen/how-to-sql-injection | 7eab4549f5f14b1a1de35c46ba8afbc9140ad25c | 39cb242a4affad4bb99f9d400491d5f15fa2b1a7 |
refs/heads/master | <file_sep>import cv2
from utils.cvlab import Cvlab
if __name__ == "__main__":
path = '/win/專案資料/玻璃纖維/實驗圖片收集/整體實驗/20201116/line5-5附著-Feather__2020082503415405_Original-整體實驗/3_增加最後向外消除的範圍/6_canny_show_img.jpg'
cvlab = Cvlab()
img = cv2.imread(path)
cvlab.imshow('viewer', img)
cv2.waitKey(0)
cv2... | 6c4ecedaa98e587d84d541a468dad9b3574afa60 | [
"Python"
] | 1 | Python | Heegreis/Basic-Digital-Image-Processing | e08dfa15e4401cf6e82f986a23d1d7d51ed0b93a | c7a1caf586d6836d9b5cf48d602aa26989a2e4ae |
refs/heads/master | <file_sep>def db_connection
begin
connection = PG.connect(dbname:'recipes')
yield(connection)
ensure
connection.close
end
end
class Recipe
attr_reader :name, :id, :instructions, :description, :ingredients
def initialize(name, id, instructions, description, ingredients)
@name = name
@id ... | 5804b98bcb6703356ea8ee3bdea6c89762a78945 | [
"Ruby"
] | 1 | Ruby | johnsko89/lunar-kitchen | cababeb3591df31ca0ec3135cd841e770d0e3ac7 | 7369ce474e639480c0606db5e998fdc485508c2d |
refs/heads/master | <file_sep>using System;
using System.Collections.Generic;
using System.Data;
using System.Data.Entity;
using System.Linq;
using System.Net;
using System.Web;
using System.Web.Mvc;
using WebApplication4.Models;
namespace WebApplication4.Controllers
{
public class MiTablasController : Controller
{
priva... | 6fb181e600bb534c01b59166dcd9b17d9eb0c2cb | [
"C#"
] | 2 | C# | Martineg100/RepositorioNegocio | 7f5b4894a08fe4eced197edef380266979a47181 | 12f208b471b9d7eeb367bc38e63e44967f8ebb50 |
refs/heads/master | <repo_name>anilca-lab/rcp2<file_sep>/setup.py
from setuptools import find_packages, setup
setup(
name='src',
packages=find_packages(),
version='0.1.0',
description='Project objective',
author='DataKindDC',
license='MIT',
)
<file_sep>/Code/Munging/ACS/tract_blockgroup_2016/readme.md
# Prep ACS T... | 5fc1beddda884d212c70701304bc8239fdb41753 | [
"Markdown",
"Python"
] | 3 | Python | anilca-lab/rcp2 | c4da8f038858c6faa016711be1979de4d544e107 | 082008d94f8d96a18017a0a9c8066a5da5c26171 |
refs/heads/main | <repo_name>Ethan-Georlette/touch-nums<file_sep>/js/main.js
'use strict'
var gNums = [];
var gCurrNum = 1;
var gStartTimer;
function initGame() {
gCurrNum = 1;
gNums = createArr();
renderGame();
}
function renderGame(num = 16) {
gNums = createArr(num);
var elTable = document.querySel... | edbd04064bd7dbbac0d1cae7fc47b353438a3bb3 | [
"JavaScript"
] | 1 | JavaScript | Ethan-Georlette/touch-nums | d3aa982b94715dc440b12150af3d81fe04301044 | e806dc24a8283ac6462450abc117d607013507d2 |
refs/heads/master | <file_sep><?php
/**
* Created by PhpStorm.
* User: joao.nivaldo
* Date: 30/10/2014
* Time: 19:01
*/
class Cliente {
private $id;
private $nome;
private $cpf;
private $endereco;
private $cidade;
private $uf;
private $telefone;
/**
* @return mixed
*/
public function ge... | d0a2d99aa54845ca401cc29cf06e45e76deb118c | [
"PHP"
] | 1 | PHP | joaonivaldo/gestaodeclientes | ad2b2842e7ee3a327b559ce45ecb6da2f216fa23 | 57654d7ce8f910463c84bcbf8b4db8ae470f0c23 |
refs/heads/master | <repo_name>Marco-Ba/Disp7seg<file_sep>/main.c
/*
* File: main.c
* Author: 21193066
*
* Created on 24 de Fevereiro de 2021, 14:05
*/
#include <xc.h>
#include "config.h"
#include "delay.h"
#include "display7seg.h"
#include "botoes.h"
void main(void)
{
char cont;
char estado = 0;
... | 6596dd0def911c4322aba07d464665feac1c884c | [
"C"
] | 1 | C | Marco-Ba/Disp7seg | ccdaf4a4bfcb3935df0d56dd37b74d2421f5f6c3 | d1d4129e59f00a0191ae6eccb0170f606926c2a7 |
refs/heads/main | <repo_name>johnsonlee/translator<file_sep>/src/main/java/io/johnsonlee/android/translate/TranslateAssistant.kt
package io.johnsonlee.android.translate
import android.content.Context
import android.content.SharedPreferences
import android.util.SparseArray
import android.view.View
import android.view.ViewGroup
import an... | fe49d4fa0004d247140858750bbf8d53ab663445 | [
"Markdown",
"Kotlin",
"INI",
"Gradle"
] | 8 | Kotlin | johnsonlee/translator | 46776d3d01ad9c3af3a828593e5845320f7b5608 | 499fc7c9237bfbbb1868e74298aabfa319350129 |
refs/heads/master | <file_sep># coding-the-matrix
coding the matrix by Python
this is my homework for the Matrix coding course.
<file_sep>from image_mat_util import *
from geometry_lab import *
import math
pmat_cmat = file2mat("pic.png")
#mat2display(pmat_cmat[0], pmat_cmat[1])
#print(translation(2,3))
#print(rotation(math.pi/6))... | 262567492288cc795b29d6a0e267759a6af17c29 | [
"Markdown",
"Python"
] | 16 | Markdown | mtfelix/coding-the-matrix | c959f4e49749e3526147d0ca732ec85277226d1d | fb31de741b6ac0214d69dd9cae4f2950fae00226 |
refs/heads/master | <file_sep>function changeListOrder(col, dir, controller, admin){
post_data={format: 'JSON', col: col, dir: dir};
var url=admin+"/"+controller+"/ajax_change_list_order";
$.post(url, post_data);
var redir = admin+'/'+controller;
location.href = redir;
}<file_sep>//==================================... | 8d5591ecd194a805cf2c1196a4e9582695480bce | [
"JavaScript",
"Markdown"
] | 3 | JavaScript | BarryBotha/WesgroDMDesign | 84dff487f9bf3511a25b4f80327a2c3d347bcbb9 | baa404c182fc8b675716fec5507c2f19cdd68f6f |
refs/heads/master | <file_sep>package Task19_FirstAndReserveTeam_SU;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner drucker = new Scanner(System.in);
int number = Integer.parseInt(drucker.nextLine());
Team someTeam = new Team("JavaTeam");
for (int i = ... | e4f0047dd9eb9a89703bc66e2b7da33cec05e224 | [
"Markdown",
"Java",
"Gradle"
] | 45 | Java | NikolayBaramov/play-ground | 70cb3db11f50e70515b11265960a2be0d08192a9 | fd503165bff027ce921152f0180c8c1c264d50a2 |
refs/heads/master | <repo_name>mdwetzel/Caesar-Cipher<file_sep>/caesar_cipher.rb
class CaesarCipher
def self.find_decrypted_letter(array, letter)
array[array.find_index(letter) - 3] unless letter.nil?
end
def self.find_encrypted_letter(array, letter)
array[array.find_index(letter) + 3] unless letter.nil?
end
def self.d... | bddc5723af3f67fc5afb39ab2162cb87caefe5ef | [
"Ruby"
] | 2 | Ruby | mdwetzel/Caesar-Cipher | bd8a2665aefc9bf5a85aae25cc40884f5c16d5f7 | 6ef466b3fc887dcb412b5a4ddc26beece69c238b |
refs/heads/master | <repo_name>dairnarth/vswm<file_sep>/vswm.c
#include <signal.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <X11/keysym.h>
#include <X11/XF86keysym.h>
#include <X11/XKBlib.h>
#include <X11/Xlib.h>
#include <X11/Xutil.h>
#include <X11/Xatom.h>
/* Defaults */
#define BARCLASS "Bar"
#define... | 0d116e62ccca92a0b1c00dc1413a7a3b5b4b9013 | [
"Markdown",
"C",
"Makefile"
] | 3 | C | dairnarth/vswm | edf9e834a7014c22a4246f9f8d5a69f505bf3a81 | 621e3fc1404ca082433afb401b8ef4af8c4d399a |
refs/heads/master | <file_sep>class FlatsController < ApplicationController
def index(list, msg)
@flats = list
@msg = msg
end
def new
@flat = Flat.new
end
def show
@flat = Flat.find(params[:id])
end
def create
Flat.create(params_secure)
redirect_to flat_path(params[:id])
end
def edit
@fla... | f281c8de1a3a24961e0bbcddcbc539728e8d837b | [
"Ruby"
] | 1 | Ruby | santigibo/rails-simple-airbnb | ea38f908cd6a6caa93f3733dd465146aab870952 | d42286d173d1cdc39b2ae41c0fd03baf0cee5b35 |
refs/heads/master | <file_sep>var mongoose = require('mongoose');
mongoose.connect('mongodb://localhost/tripplanner');
var db = mongoose.connection;
db.on('error', console.error.bind(console, 'mongodb connection error:'));
var Place,
Hotel,
ThingsToDo,
Restaurant,
Day;
var Schema = mongoose.Schema;
var placeSchema = new... | 89e363e023fa23d0e353383b5bb7cd6d5e72caea | [
"JavaScript"
] | 6 | JavaScript | jaimieli/tripplanner | 0a1dc005805a89f82abf97233d646f9aef2afe71 | c3c655d694571381de1f54c852461cb52b399be7 |
refs/heads/master | <repo_name>Polak149/Unity<file_sep>/Assets/Standard Assets/LavaPackage/Lava3/Sources/Scripts/lavaUnderwaterFree.js
var enableUnderlavaEffect = true;
var lavaLevel = 20;
var enableDeathLavaAnimation = true;
var playerObject : GameObject;
var steamSound : GameObject;
var screamSound : GameObject;
var cameraObject : Gam... | b460d749bb1f02290a1fff91f9c8187f697a3a7f | [
"JavaScript",
"C#",
"Python"
] | 16 | JavaScript | Polak149/Unity | aff7ca4109d1d643f9a6fb73207d1f582a2cbe02 | bba1c9a4ac5382888b430adbf3655e9083c4d264 |
refs/heads/master | <repo_name>dzheng533/ehangsoft.cn<file_sep>/lib/DBProvider.js
var mysql = require("mysql");
var defaultOptions = {
"host":"127.0.0.1",
"port":3306,
"database":"ehangsoft",
"user":"vincent",
"password":"<PASSWORD>"
}
exports.connect = function(options){
console.log("Connection test.");
var connpara ... | 7180c41f5a7fcca6cd0253b46ad4faf62c32d67e | [
"JavaScript",
"Markdown",
"Shell"
] | 3 | JavaScript | dzheng533/ehangsoft.cn | 06e25661b9d974635b39ed755c9c2b0a16c91bf6 | 0a88612d467780e0c7748dca6509514c01679c8b |
refs/heads/master | <file_sep>from http.server import HTTPServer
from http.server import BaseHTTPRequestHandler
import psutil
import os
import sys
PORT = 13340
class WorkerHandler(BaseHTTPRequestHandler):
#Fungsi ini figunakan untuk merespon get request
#jika command yang didapat adalah reqcpuloads
#fungsi akan mengembalik... | a45f3c9f0305a3827186c9837e7b7065d52ff59f | [
"Python"
] | 2 | Python | anwarramadha/SISTAH | 0a8ab36247c97b66fb938aefcf54f056e65af322 | e5539bb2e5b187dc5b0105da7bfb7d21fac5e960 |
refs/heads/master | <repo_name>Torrencem/pretty_dtoa<file_sep>/README.md
# Pretty dtoa
Configurable float and double printing. ``pretty_dtoa`` Comes with lots of options for configuring different aspects of displaying floats, and has only 1 dependency total (including dependencies of dependencies), for very fast compile times.
This cra... | 7e4f3658188888bfbd99ae4b75a5d478819a685b | [
"Markdown",
"Rust",
"TOML"
] | 4 | Markdown | Torrencem/pretty_dtoa | 25286ff50ca81ed7e6bc4782581c4e835c4493da | f721aa46e50f176f265d60fc5465ead9bf92cffa |
refs/heads/master | <repo_name>Lucassion/exercicios<file_sep>/exercicio-02/script.js
/*
Crie um programa que exiba o resultado da tabuada de um número digitado pelo usuário. O programa deve:
- Receber um input numérico do usuário;
- Questionar se o usuário quer ver o resultado de uma multiplicação específica:
- Se OK (quer ver a multi... | 2d95cf9da0187b45c5c0e966d2f41cd653a01207 | [
"JavaScript"
] | 3 | JavaScript | Lucassion/exercicios | af6b2506c109a1401a9b0435d5133af17917e47a | fe4019495bbc0ac4e34875d2dc4f50fa09e30232 |
refs/heads/master | <repo_name>jakeaglass/SwiftScripting<file_sep>/sbsc.py
#!/usr/bin/env python2.7
# Copyright (c) 2015 <NAME>.
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including... | 91e4fc0400218814a82ec4e55e025ed18b21d59f | [
"Python"
] | 1 | Python | jakeaglass/SwiftScripting | 0e66879bca8b623ab369d4dfab0529eab511ca57 | 599f12f340ce434c42cab5a611f049f9a2da3b6d |
refs/heads/main | <file_sep># sensitive-words-filter-service
一个简单的基于DFA算法和Http的敏感词过滤服务;
TODO
- [ ] 词库文件发生变更后能自动加载
- [ ] 支持从数据库加载词库
- [ ] 支持客户端自定义需要检测哪个词库
- [ ] 更加丰富的API接口
## Usage
```bash
go mod tidy && go build
```
启动
```bash
./sensitive-words-match -p 8088 -d ./data/
```
启动参数说明:
-p 指定http服务的端口;
-d 敏感词存储的路径,路径下所有的文件会自动遍历加载到内存,不... | 59330ae5a64284ac05f9935da7d5a28c8ac8bc13 | [
"Markdown",
"Go Module",
"Go"
] | 5 | Markdown | xwinie/sensitive-words-filter-service | 292104c429892acd49efd590232659eb78dc4737 | 8101d8be2c82d8e54ceb465ad4bf2d11fb15c50e |
HEAD | <file_sep>#include <string>
#include <vector>
#include <iostream>
#include <codecvt>
#include <fstream>
#include <set>
#include <locale>
#include <boost/filesystem.hpp>
#include <util/filesystem.hpp>
#include "notebook.hpp"
#include "util/stream_operations.hpp"
#include "global.hpp"
namespace
{
using utf_converte... | f04621f497aec36c9efcf6c9efce40b531784fc2 | [
"Markdown",
"Text",
"C++"
] | 16 | C++ | BeenEncoded/notebook_program | 54a4efe19392884c1c67dbe1cc87dda6d46df74a | 56c2d5c10dfc15400462f1e83c770ee1281ea73a |
refs/heads/master | <repo_name>alkimderin/InstaPy<file_sep>/instapy/database_engine.py
import os
import sqlite3
from .settings import Settings
SELECT_FROM_PROFILE_WHERE_NAME = "SELECT * FROM profiles WHERE name = :name"
INSERT_INTO_PROFILE = "INSERT INTO profiles (name) VALUES (?)"
SQL_CREATE_PROFILE_TABLE = """CREATE TABLE IF NOT EXIST... | 1b973183965fd03180ecc3149ad83734fc42d0c0 | [
"Python"
] | 1 | Python | alkimderin/InstaPy | 3b5482a7c9e602506a9e71829bf4070430bccf7d | 735cd8152b18521b4fbc9d1e4e38e5725ad984af |
refs/heads/main | <file_sep>using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace WindowsFormsApplication1
{
public partial class MyUserControl : UserControl
... | c47bc7d63c7527109269ac0e14d55d9f6f4483ee | [
"C#"
] | 6 | C# | herikaniugu/windows-forms-example | ff90e909e109b92dae2c3ea166aaba1b990d5f95 | b003debf5ec25b37c131f2a886f944af5e62d946 |
refs/heads/master | <repo_name>wesley-qiu/Editor<file_sep>/src/Wesley/Editor/EditorServiceProvider.php
<?php
namespace Wesley\Editor;
use Illuminate\Support\ServiceProvider;
class EditorServiceProvider extends ServiceProvider {
public function boot()
{
$this->package('wesley-qiu/Editor');
include __DIR__ . '/../../routes.php';
}
... | cbd3e9c316799a0f0745b8b05a5c3983ae5bfda7 | [
"PHP"
] | 4 | PHP | wesley-qiu/Editor | 7a15fe93b2d68f44cec3947adef8a7791f5e5c19 | 60be1e1bc7740ce99162ec97df62525ed83b4b22 |
refs/heads/master | <file_sep>import React from 'react'
import TodoListItems from './TodoListItems'
function TodoList({todos, onDelete, onSelect, onToggle}) {
return (
<ul style ={listStyle}>
{todos.map(todo =>
(<TodoListItems key={todo.id} todo={todo} onSelect={onSelect}
onDel... | ec51831a07dc71d484208a2fa0e2d322ddd10b84 | [
"JavaScript"
] | 12 | JavaScript | Ohiiko/Hillel_React | 205b045bc39dddf8833c3b7c219f931bea29b4a2 | 547d4ced0466d206898d84c16c250ada02ea3a3c |
refs/heads/master | <repo_name>saurabh1294/python-extract-print-text-image<file_sep>/image-text-extractor.py
from PIL import Image, ImageEnhance, ImageFilter
import pytesseract
path = 'example_03.png' # - > Your Image Location
img = Image.open(path)
img = img.convert('RGB')
pix = img.load()
for y in range(img.size[1]):
for x in range(img... | aa6984ca7e40111ab1638dcd7dcaf6b222dae3e6 | [
"Markdown",
"Python"
] | 3 | Python | saurabh1294/python-extract-print-text-image | d1a064fbd0eca2e52d6fcfd6502ecde7e1bff15f | 64dcfc2e10b44c99b314be9ca3a9c263d57bcb6d |
refs/heads/master | <file_sep>import React from "react";
import { connect } from "react-redux";
class Info extends React.Component {
componentDidMount() {}
render() {
const user = this.props.userData.userProfile;
console.log(user);
const links = user.links ? (
user.links.map((item, i) => (
<li key={i}>
... | 26226256e18eac689cc24ed146f633acc05cb023 | [
"JavaScript"
] | 7 | JavaScript | DannyRoberts95/Creative-portfolio_boilerplate | 41d9120596c6e58b8416a191aacf201a5d50875d | 74979aa91655f4b923792cb5ab0fd00ea76cf4e5 |
refs/heads/master | <file_sep>from flask import Flask, render_template, request
import pandas as pd
import json
import requests
import xml.etree.ElementTree as ElementTree
import re
from dashboard import routes
from dashboard.routes import app<file_sep>from flask import Flask, render_template, request
import pandas as pd
import json
impo... | e7c300ac14d4d0c6152b07a2f8ea7533744dc8ab | [
"Markdown",
"Python",
"Text"
] | 5 | Python | Khadija-Khaled/Books_dashboard | 442caccc62c0daa7ccb97a0996370b3558852391 | 1d570d4916d491fcec6388bbfe0b8852bbf32bf4 |
refs/heads/master | <file_sep># ---------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# ---------------------------------------------------------
#!/usr/bin/env python
# coding: utf-8
# In[ ]:
import json
from azureml.core import Workspace, Dataset
from azureml.pipeline.wr... | a937ccb5fe8c9bdfa52721e836b2bc83e065e7db | [
"Markdown",
"Python",
"Dockerfile"
] | 17 | Python | zhohuang/hello-aml-modules | 4f2ebe841b5bce933302d5fd35129a9247504c10 | 516d81d2f892cdd1f87236b0bc3b02503cd88768 |
refs/heads/master | <file_sep>
import java.awt.Color;
public class BST {
Node root;
int depth;
public void BST() {
depth = 0;
}
public Node getClickedNode(int mX, int mY, Node current){
if(current != null){
if(current.isInside(mX, mY))
return current;
Node ... | a3db1ead8b393cf20030e7559bb6fa86e26c659a | [
"Java"
] | 2 | Java | JacksonBellinger/Haloween-BST-Game | 8d5bb04c5f34ec8dce2d12b51ed021d19ad952e5 | 1bc0a47864d365f44678abae8fe57de56333b319 |
refs/heads/master | <repo_name>roblav/pwa-express-demo<file_sep>/server.js
var nunjucks = require('nunjucks')
var path = require('path')
var express = require('express')
var app = express()
nunjucks.configure(path.join(__dirname, '/views'), {
autoescape: true,
cache: false,
express: app,
watch: true
})
app.get('/', function (req... | cf01de5fa5f3e85fa32015cb3416f7da11134785 | [
"JavaScript"
] | 1 | JavaScript | roblav/pwa-express-demo | d265c687b6029322c94b024b290035cb670905b9 | 07bdcf882cac2426003af20dd4ca90758f5e8c26 |
refs/heads/main | <repo_name>pacive/DI2006<file_sep>/11_as2/payment_plan.py
# Define a dictionary of the price factors you can select
PRICE_FACTORS = { '1': 0.9, '2': 0.95, '3': 1, '4': 1.2 }
price = float(input('Ange pris: ').replace(',', '.'))
print('''Välj betalningssätt:
1. Kontant
2. Kort
3. 2 månaders avbetalning
4. 3 månaders a... | 81a2849fc19d83df4f1c61b5ffc34a8e5c0fb1cc | [
"Markdown",
"Python"
] | 23 | Python | pacive/DI2006 | 965b89d02550a7f37c07584ce3d3347eca47eed2 | 0912c953237e5808d8efded00cae63d5aa81923f |
refs/heads/master | <file_sep># -*- coding: utf-8 -*-
"""
Created on Tue Jan 7 11:53:07 2020
@author: Jaspreetsingh_Tuli
"""
def findPrefix(pattern, prefixList):
patternLength = len(pattern)
prefixLength = 0
prefixList[0] = 0
for i in range(1, patternLength):
if(pattern[i] == pattern[prefixLength]):
... | 63023636bc4b97b311ea670cd3433f8f6994613a | [
"Markdown",
"Java",
"Python"
] | 4 | Python | JaspreetRFSingh/DesignAndAnalysisOfAlgorithms | f9516b5de14e6df5df6dd0c0d258fa6e80dfb464 | 5dc76d40387554bb851e82be232ee2e4dd5516db |
refs/heads/master | <file_sep># RFID reader
Read and display 125 kHz RFID tags using Arduino, [RDM-6300](https://roboshop.spb.ru/rfid-RDM6300) and [1602 display](https://roboshop.spb.ru/display/LCD-keypad-shield).
<file_sep>#include <Arduino.h>
#include <Wire.h>
#include <LiquidCrystal.h>
#include <rdm6300.h>
#define RDM6300_RX_PIN 2
#d... | 65649be08408bfc4f32bf22addcbea60aa2746ab | [
"Markdown",
"C++"
] | 2 | Markdown | h4/rfid-reader | 3a49bac269ae66d37fb0e8b22ed8d0c7ee54aad1 | 02b957eb10e7f8be42351636c473b55c024c54a5 |
refs/heads/master | <file_sep>package asd.lab3;
public class Main {
public static void main(String[] args) {
Tester tester = new Tester();
tester.testAverage(new RBTree(), 100_000);
tester.testAverage(new AVLTree(), 100_000);
tester.testWorst(new RBTree(), 100_000);
tester.testWorst(new AVLTree... | a7ae5ad824c2402236155f86ef3e1f586da465ef | [
"Java"
] | 3 | Java | PavloLuchyk/ASD-Lab3 | de5c4abc7ba3cef6bbe8f6e1e29d633acf0d31b2 | e9586c49198d099d7dae35d40202308ca86923b5 |
refs/heads/master | <repo_name>enroll/enroll<file_sep>/app/controllers/reservations_controller.rb
class ReservationsController < ApplicationController
before_filter :authenticate_user!, only: [:show]
before_filter :require_course!
def new
add_body_class('landing-page')
@reservation = @course.reservations.build
@user = c... | 1ecaaa7dff2f056fc19de305ab2ffaa7c4594b8b | [
"Markdown",
"JavaScript",
"Ruby",
"Shell"
] | 130 | Ruby | enroll/enroll | ac65bcd4d4859353272405d67019935e6a2e99e9 | 7d8a08ca06546051c0349a9f1191e511ca80ef42 |
refs/heads/master | <repo_name>SongSing/ClientScripts<file_sep>/old/script.js
// These are old, get these: <a href='https://raw.githubusercontent.com/SongSing/ClientScripts/master/bumble.js'>https://raw.githubusercontent.com/SongSing/ClientScripts/master/bumble.js</a> //
/* ***************************************************** */
/* ****... | ce3f8b510386024394508e6f292dc37dd03b4a2e | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | SongSing/ClientScripts | 56df275d425ba048a4c15d14574a99cb497f2a83 | c246155f09f7666f2a4f8cc02245101aee9c18e2 |
refs/heads/master | <repo_name>tpodgorski91/FileSearcher<file_sep>/file_searcher.py
import os
import platform
import psutil
import subprocess
from pathlib import Path
from typing import List
def list_drives():
system_name = platform.system()
method = {
"Linux": list_drives_linux,
"Darwin": list_drives_mac,
... | 8cd179a371401ff67828608ee2f7228d1333d4ca | [
"Markdown",
"Python"
] | 2 | Python | tpodgorski91/FileSearcher | 746f9df1cc7c4034ccef4a5219b976d4243d3499 | 19d7fe1f6e211e800e70a538a0a9db17f58cf787 |
refs/heads/master | <repo_name>WanchalermDevs/AdmissionSite2018<file_sep>/src/app/authentications/sign-in/sign-in.component.ts
import { Component, OnInit } from '@angular/core';
import { FormControl, Validators, FormBuilder, FormGroup } from '@angular/forms';
import { MatInputModule } from '@angular/material';
import { Router } from '@ang... | 9da693bfb0a2768843306d0cfc83cdf4d7b0ba79 | [
"TypeScript"
] | 9 | TypeScript | WanchalermDevs/AdmissionSite2018 | ba471db5af279d8dcd09e8fea94f929fc1b9c39d | 14a3fe71f6d41491a6328041aa408b019fcbf255 |
refs/heads/master | <file_sep>#
# Cookbook Name:: hrpsys-base
# Recipe:: default
#
# Copyright 2014, <NAME>
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# ... | d6914996d56f614b33898a8b854e54d32255e129 | [
"Markdown",
"Ruby"
] | 3 | Ruby | devrt/chef-hrpsys-base | 6968f33f47ae55bacba8819cff7b9db6427f99ce | c9350af406415b03689e1a70cd36f04d59f61c21 |
refs/heads/master | <file_sep><?php
namespace App\Http\Controllers\Vip;
use App\Http\Controllers\Controller;
use App\Model\App;
use App\Model\Folder;
use App\Model\Vip;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\DB;
use Qiniu\Storage;
class AppController extends Controller
{
/**
* Display a listing of the reso... | 7091a419934176eef30e49ccdd41a882fa0d704e | [
"PHP"
] | 15 | PHP | liushige/netdisk | e62522898fb67123dae5015f22366cee21809335 | 5f002109a75212f57ea5738683120054357b9fdc |
refs/heads/master | <repo_name>simontye/2019_beaver<file_sep>/2019_beaver.R
###############################################################
# North American Beaver Lodge
# 20191026
# SPT
###############################################################
# Clear memory
rm(list=ls())
# Load packages
library(ggplot2)
library(ggthemes)
library... | ad0a48c9ce92bc40702756269ac359954ab9bd2d | [
"R"
] | 1 | R | simontye/2019_beaver | 998d0f53ff0206ee09e8cacf1c6803ef1dd03920 | 5b64eb5e61eb716a97774a24e3b900611b47eb75 |
refs/heads/master | <file_sep>require 'test_helper'
class MapControllerTest < ActionDispatch::IntegrationTest
test "should get google" do
get map_google_url
assert_response :success
end
test "should get daum" do
get map_daum_url
assert_response :success
end
end
<file_sep>Ckeditor.setup do |config|
config.paren... | b64be02c95eae5bf73c0c0e0ddeac1c70ea25470 | [
"Ruby"
] | 7 | Ruby | forceson/cafewiki2 | c41ac3f40732eb00b7ab29811cbbe9f56f38edc1 | 62d58ac05b844b221e7d1351e7387330c572ff93 |
refs/heads/master | <file_sep>#include<bits/stdc++.h>
#include<pthread.h>
#include<cstdio>
#include<stdlib.h>
#include<unistd.h>
#include<semaphore.h>
using namespace std;
sem_t mutex;
int CSvalue=0;
void *p(void* id) {
while(1)
{
//ncs_begin
int *idd=(int*)id;
int id1=*idd;
//ncs_end
//waiting_process_begin
sem_wait (&m... | c855f42120f5b0c64fe5217d994f499334d3c2f6 | [
"Markdown",
"C",
"C++"
] | 34 | C++ | paraggoyal28/Concurrent_Parallel_Programming | b5d347933df6ebf5476e3220f9959acaff815fd3 | ff730ecc69336f45fdc5166d4ba0b85afe4da3e8 |
refs/heads/master | <repo_name>Gyuuto/noise_canceler<file_sep>/noise_canceler/NoiseCancelerModel.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace noise_canceler
{
class NoiseCancelerModel
{
public int Delay { get; set; }
public double... | cba247ca71fb146400c53461028c592698a8a356 | [
"C#"
] | 8 | C# | Gyuuto/noise_canceler | 4576e12b7aba7d02a135bd93a11ecb6a95a11c81 | ab7cc7ab3c6a67dbc6ea0978a32a23dd91a1592d |
refs/heads/master | <repo_name>Storh/gradproj-comegg<file_sep>/app/service/content/activity.js
'use strict';
const Service = require('egg').Service;
class ActivityService extends Service {
async getListById(user_id, reqData) {
const limitrow = await this.ctx.service.common.getPageStyle(reqData);
const limit = limitrow.limit;
... | c73371b5bba747560dfc6ea1fdbfdaaa50c7823e | [
"JavaScript"
] | 17 | JavaScript | Storh/gradproj-comegg | f0d02bc1c939616629665be2884e3ade0509adcf | e52af5a18eaf56c981e25a85a18229b48d8c8725 |
refs/heads/master | <file_sep>import React from 'react'
import ReactDOM from 'react-dom'
import Header from'./AppBar.jsx'
class TestBox extends React.Component {
constructor(props) {
super(props);
}
render() {
return(
<div>
<Header />
<p>hoge</p>
</div>
);
}
}
ReactDOM.render(
<TestBo... | 85cb03378f5893f53a20410a5f6d0966e943af48 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | gaku3601/react-electron-test1 | f57d3c425508c9b7074e992982b56403ed6cffa4 | 3da04b6f922467c3e404aafa5568940cf09426e2 |
refs/heads/master | <repo_name>happysansam/HouseholdLedgerManagementSystem<file_sep>/src/gui/HistoryViewer.java
package gui;
import java.util.Vector;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTable;
import javax.swing.table.DefaultTableModel;
import cash.CashInfo... | 359a0d44a5162aad386cee2bd9c5f571f2d6266d | [
"Markdown",
"Java"
] | 4 | Java | happysansam/HouseholdLedgerManagementSystem | 0a880687f773e0f8518fc1434ae9d5bf52888fcd | c9b9074a1a0515e52644c7e7fb7b29c13cfe0d13 |
refs/heads/main | <file_sep>var chai = require('chai')
var expect = chai.expect
const MartianRover = require('../rover.js');
describe('Rover', function() {
it('Test to check the Rover Class', function() {
expect(new MartianRover(0,1, 'N','FRF')).to.be.an.instanceOf(MartianRover)
})
describe('#constructors', function() {
... | 22deaa25fa03fb89290aba6edda2f280285d3d28 | [
"JavaScript",
"Markdown"
] | 3 | JavaScript | harmankalair123/MartianRover-Challange | 2aa2c7d19e367a3e050563bfe954937fc69dd0cc | be48ea8eb21b3df3a4764d3222e30a38df4e645c |
refs/heads/master | <repo_name>akshaykhatter/inventory-mgmt-system<file_sep>/resources/js/script_datetime.js
$(document).ready(function(){
$(':date').datepicker();
$(':time').timepicker();
}); | 6eeb89243a8fe97a35bb7d82aa25ca21cabb3975 | [
"JavaScript"
] | 1 | JavaScript | akshaykhatter/inventory-mgmt-system | 19702bc71a32ff7ff3a2975940b7c25bc40c044c | 820fd973b16c01c583368a97eedc7ed284546c05 |
refs/heads/master | <repo_name>z89993281/sample<file_sep>/app/Http/Controllers/StaticPagesController.php
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Http\Requests;
use App\Http\Controllers\Controller;
class StaticPagesController extends Controller
{
public function home()
{
return view('static_pa... | 0e961778d040592883eefd0efdebd269e1f11f6f | [
"PHP"
] | 1 | PHP | z89993281/sample | cd3328d872624c2993261794d14ed4fbe43cb6de | 030b692374e8fe9ddc6a75a336abf59fda8e692e |
refs/heads/main | <file_sep>const canvas = document.querySelector('canvas')
const ctx = canvas.getContext('2d')
canvas.width = window.innerWidth
canvas.height = window.innerHeight
class Container{
constructor(x, y, width, length){
this.x = x;
this.y = y;
this.length = length;
this.width = width;
}
draw(){
... | e0b580176e815d3654697f38b4264f0cad3e01e2 | [
"JavaScript"
] | 1 | JavaScript | jjliewie/teaching_for_loop | 342549047779ce59127240fdc46a85ecac2100d3 | 5765eb06d3e24b6158aa082e8bd89da02a8aced4 |
refs/heads/master | <file_sep>import React, { Fragment } from "react";
import "./MovieCard.css";
export default function MovieCard(props) {
// console.log(props);
return (
<Fragment>
<div className="card">
<img src={props.imgu} alt="gg" className="card-img-top" />
<div className... | 677619d1bb186768e3fcb3bde8944bf2b5fae2dc | [
"JavaScript"
] | 1 | JavaScript | MedHedii/React_hooks_checkpoint | 6c11bcb7d90bdc978fbd3ee9008691a2b7e33eac | e596042928b17d18649ef1d1c3546e16887f1aeb |
refs/heads/main | <file_sep>"use strict";
//materials
const mat0 = new THREE.MeshBasicMaterial({ color: "black", side: THREE.DoubleSide });
const mat00 = new THREE.MeshBasicMaterial({ color: "black" });
const mat1 = new THREE.MeshBasicMaterial({ color: 0x25383c }); //postholder outside color
const mat2 = new THREE.MeshBasicMaterial({ c... | 65684746fad1de4af641e0026272026a3397ad73 | [
"JavaScript",
"Markdown"
] | 11 | JavaScript | zjlmmm-github/3D_optics_labs | 4636a68c4677fdfde209a55e03493b894453ff91 | 5576d0ce019493471e821f9ee1774eeec95bef58 |
refs/heads/master | <file_sep>window.onload = function() {
let printbtn = document.getElementById("print");
printbtn.addEventListener('click', () => {
let details = document.querySelectorAll("details");
details.forEach((each) => {
each.setAttribute("open", "open");
});
window.print();
... | cba6a4a6d21429dfb04822dfea1cb0ba265cb1ca | [
"JavaScript",
"Ruby"
] | 12 | JavaScript | sduwal/portfolio | efeaececf8bb0bf5792fc636983b735f415eba15 | 6600efeca7584df698bc8310548befde3aaf82f6 |
refs/heads/master | <file_sep>package com.arx_era.digitalattendance;
/**
* Created by AaronStone on 1/15/2017.
*/
public class AppConfig {
public static final String DATA_URL = "http://192.168.94.1/Android/College/getData.php?id=";
public static final String KEY_NAME = "name";
public static final String KEY_EMAIL = "email"... | 0ed0c64af4b02583dd0bb45bcfba3283716fb469 | [
"Java"
] | 1 | Java | tronix99/DigitalAttendanceR | 2abf8108ee3e19702788ec3dfd7cc58e7828f7c8 | ce3aea908e1f9d9bd9a19ac9e7643b8e5494537a |
refs/heads/master | <repo_name>Night-Owl-La/Android-Library<file_sep>/util/DeepLinkParser.kt
// Test -> scheme://host?category=상품권&detail=해피머니
fun parseDeepLinkParam(deepLink: String): Map<String, String> {
val paramDelimiterIndex = deepLink.indexOf("?") + 1
val isEven = { number: Int -> number % 2 == 0 }
val keyList = mutable... | 036cce662bfd47fee38bfca647e2af6c84c87594 | [
"Markdown",
"Kotlin"
] | 3 | Kotlin | Night-Owl-La/Android-Library | 9640b2bccab128f751f8c79f777849557f972425 | c69ec2b6b55f3a6505248bc20fd176a97bf47280 |
refs/heads/master | <file_sep>###
# app configuration
# http://docs.pylonsproject.org/projects/pyramid/en/latest/narr/environment.html
###
[app:main]
use = egg:sipkd
reload_templates = true
debug_authorization = false
debug_notfound = false
debug_routematch = false
debug_templates = true
default_locale_name = en
sqlalchemy.url = postgres... | 45e76442774e1ea73b8f9877963095171eee40d6 | [
"Shell",
"Python",
"Text",
"INI"
] | 10 | INI | aagusti/sipkd | 54d07c66b65f25ba1a8bab7b4e8c5edb7d582492 | 695d16487001a235f639346efa0024d724c3d449 |
refs/heads/master | <repo_name>wangyuanyangV5/springlearn<file_sep>/src/main/java/design_patterns/command/com/LightOnCommand.java
package design_patterns.command.com;
import design_patterns.command.com.Command;
import design_patterns.command.light.Light;
/**
* Created by dell on 2019/1/2.
*/
public class LightOnCommand implements Comm... | 2da89f7552ea7272299ef3800bfc36ee14c8e5e1 | [
"Java",
"INI",
"Gradle"
] | 42 | Java | wangyuanyangV5/springlearn | 2692c6bdc6581e9e434353bb99a0f8a8fbc08225 | 283507bc43ab36b218b90ef6545088f280ee021b |
refs/heads/master | <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 view;
public class personel {
private int pertc;
private String perad;
private String persoyad;
... | 797171e3c1028edf453c253ec17c3739ada59eca | [
"Java"
] | 4 | Java | Selman81/Java-S-r-c--Kursu-Otomasyonu | 45c87427574c7338630a84000fe1ed48b0b14f1d | 1319ec7272b81ed7d3f58f40a67a4546f243fbdc |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.