branch_name stringclasses 149
values | text stringlengths 23 89.3M | directory_id stringlengths 40 40 | languages listlengths 1 19 | num_files int64 1 11.8k | repo_language stringclasses 38
values | repo_name stringlengths 6 114 | revision_id stringlengths 40 40 | snapshot_id stringlengths 40 40 |
|---|---|---|---|---|---|---|---|---|
refs/heads/master | <repo_name>epdtry/emscripten-fastcomp<file_sep>/lib/Target/CppBackend/readme.txt
TODO: restore old cpp backend to here
<file_sep>/lib/Transforms/NaCl/ExpandStructRegs.cpp
//===- ExpandStructRegs.cpp - Expand out variables with struct type--------===//
//
// The LLVM Compiler Infrastructure
//
// Thi... | b4f3dc1915a70e691cf2db7ed9745feca4d0f7af | [
"Text",
"C++"
] | 4 | Text | epdtry/emscripten-fastcomp | 1331b061fcb813dad71719792a89fa5cc396864a | 704f8e16d9116b8aceaf2fdcb6128bcf4a6444c7 |
refs/heads/master | <file_sep>//
// ViewController.swift
// PlaceHolderTextView
//
// Created by langyue on 16/1/25.
// Copyright © 2016年 langyue. All rights reserved.
//
import UIKit
class ViewController: UIViewController {
var textView : PHTextView!
override func viewDidLoad() {
super.viewDidLoad()
... | 1febc492ce78362e33dbf7c3e66dec1d6f657b1d | [
"Swift"
] | 2 | Swift | LiuLongChang/PlaceHolderTextView | 6bd22db660d1d004496646cf26c488e75585b393 | 77a4713ee7cae07039adb1a82c8d42467f04e1f0 |
refs/heads/master | <repo_name>jasondavis/WPMigrate<file_sep>/wp-migrate.php
<?php
require_once('wp-load.php');
?>
<html>
<head>
<title>Migrate WP Site</title>
<style type="text/css">
body {
font-family:"Lucida Sans","Lucida Grande","Lucida Unicode","Lucida",sans-serif;
background-color: #666;
}
h1 {
font-size:24px;... | cb3a7921c93de30fdfaa6b273a0dfedd3468a878 | [
"PHP"
] | 1 | PHP | jasondavis/WPMigrate | d3f217017be76761e39dc607073e790751979092 | c868f9bc89b3eedbec6024cc177828248bf8ff2e |
refs/heads/main | <repo_name>DeveloperGulam/Ajax-Product-Filter<file_sep>/fetch.php
<?php
//fetch.php
$connect = mysqli_connect("localhost","root","","machine_test");
$query="SELECT * FROM products WHERE price BETWEEN '".$_POST["minimum_range"]."' AND '".$_POST["maximum_range"]."' ORDER BY price ASC";
$fire = mysqli_query($conne... | 35aaf5ce7e2865eba26018b576c19486822322f8 | [
"SQL",
"PHP"
] | 3 | PHP | DeveloperGulam/Ajax-Product-Filter | e31bddcaec9c53dcd77eb4f880152d88fb7c9a22 | d209c9a3941e86d8e851d03e97965be9084287ec |
refs/heads/master | <repo_name>Farhan71/react-online-course-dashboard<file_sep>/src/components/Courses/Courses.js
import React from 'react';
import './Courses.css'
const Courses = (props) => {
// console.log (props)
const {course_name, instructor_name, price, rating, taken_by, ask_anything_at}= props.course
const handleEnroll... | da8410b07a0397b2d35d722c3d3761bc4539a6e7 | [
"JavaScript"
] | 2 | JavaScript | Farhan71/react-online-course-dashboard | 3fb1189b9d9fc0da8c1a3e6b19abdd9decc294f7 | 95c7a4fdff7f29acc3df53baac35235e545d9c55 |
refs/heads/master | <file_sep>#!/bin/bash -e
export PACKER_DOWNLOAD_URL='https://releases.hashicorp.com/packer/0.10.0/packer_0.10.0_linux_amd64.zip'
export PACKER_INSTALL_FOLDER='/opt/packer'<file_sep>#!/bin/bash -e
export VBOX_GUEST_ADDITIONS_DOWNLOAD_URL='http://download.virtualbox.org/virtualbox/5.0.16/VBoxGuestAdditions_5.0.16.iso' | 7ddd0f5fa437fc96cf6542ccfb320e29869c7837 | [
"Shell"
] | 2 | Shell | RoseySoft/ubuntu-cookbooks | fdfaf468b3d7ce34669b078bf58f9ad71d522b09 | 472999fab1359153592edea3aed269839fa7aa83 |
refs/heads/master | <file_sep>module testForGit {
} | 7d03a3d3103f9973d2a5548e5247eab250b54155 | [
"Java"
] | 1 | Java | hedviger/Test1 | aee7b58d9467d6a3820854ceadad63c077eccb79 | 7c1dd335f9d42c781adce8c4121ad67ca7387528 |
refs/heads/master | <repo_name>canfeng/contract-js-demo<file_sep>/src/index.js
import * as slt from './slt'
import * as erc721 from './erc721'
import * as metamask from './metamask'
window['szg'] = {
metamask: metamask,
slt: slt,
erc721: erc721
};
<file_sep>/src/metamask.js
/**
* 检测metamask插件
*/
if (typeof window.ethereum =... | bbbae3b74cf7c8dddce5547cd2dabf695ae0f46b | [
"JavaScript",
"Markdown"
] | 5 | JavaScript | canfeng/contract-js-demo | c95c3da812197dc0aa9e851d6c3ed86835550e01 | 1a8a4d57ef9d7dca7976fed6f9753559ed06d53c |
refs/heads/master | <repo_name>LunarShadow/LunchPicker<file_sep>/addRestaurant.php
<?php
/*
* Author: <NAME>
*/
//Database connection information
define("HOST","localhost");
define("USER","code");
define("PASSWORD","<PASSWORD>");
define("DATABASE","restaurant");
//check for add button click
if(isset($_POST['ad... | 087789c13ca1653024e77aa4c8c8766924472f4a | [
"Markdown",
"PHP"
] | 4 | PHP | LunarShadow/LunchPicker | 933bcdebd34e17c74f82366dc9936ce2e1410706 | 6e917472ecc5618df58aabbec74262a732ed1250 |
refs/heads/master | <file_sep>/** @jsx h */
import React from 'react'
import h from '../../helpers/h'
export const schema = {
nodes: {
code: (props) => {
return (
React.createElement('pre', props.attributes,
React.createElement('code', {}, props.children)
)
)
}
}
}
export const state = ... | d15e66f00eb378f52f94a7a4f5b61d596c159d8d | [
"JavaScript",
"Markdown"
] | 14 | JavaScript | may-cat/markdown-editor | 0a3f6998ee4fae2e621c5b56a7a131c76f86ba92 | c3b024c0538d026ce5ef7ca861bf9b144cc41d9d |
refs/heads/master | <repo_name>cawfeecoder/frontend-examples<file_sep>/kotlin-react-example/src/main/kotlin/Hello.kt
import kotlinext.js.js
import react.*
import react.dom.*
import kotlinx.html.*
import kotlin.browser.document
fun main(args: Array<String>) {
render(document.getElementById("root")) {
div {
welcome(... | 292443f9616ac15a4cef5e607c22a302c8811543 | [
"JavaScript",
"Kotlin"
] | 3 | Kotlin | cawfeecoder/frontend-examples | b8fec995045afa0e8d95c8e26cb3c21da389ba86 | 0769b5f2543cbac249440bf7fb9f39d82d5a5980 |
refs/heads/master | <repo_name>skeevis/rails-contactually-api-base<file_sep>/app/models/user.rb
class User < ActiveRecord::Base
# Include default devise modules. Others available are:
# :confirmable, :lockable, :timeoutable and :omniauthable
devise :database_authenticatable, :rememberable, :trackable, :validatable, :omniauthable, :o... | 5df485ee32f05dc37aed9be983fffb3467398785 | [
"RDoc",
"Ruby"
] | 6 | Ruby | skeevis/rails-contactually-api-base | 3ecb1b9b6ca92e44db743ab63cb83c07ba1a6594 | 17ea6277d3b1a0122e9458443ab072e8f75d8ca4 |
refs/heads/master | <repo_name>linxinpeng/---<file_sep>/src/SelectPosition/data1.js
module.exports= [
{
"code": "5132",
"name": "阿坝",
"key": "A",
"first": "abzzqzzzz",
"full": "abazangzuqiangzuzizhizhou"
},
{
"code": "6529",
"name": "阿克苏",
"key": "A",
"first": "aksdq",
"ful... | d96dec11d13d432985b2be73f63153d53f8c7f24 | [
"JavaScript"
] | 1 | JavaScript | linxinpeng/--- | 294d70b1c1538d639d39182774a2338b140c99f3 | 2da72084313aa581629fe0dc827825075e265290 |
refs/heads/master | <repo_name>xudongstorm/MVPTest<file_sep>/app/src/main/java/com/example/mvptest/presenter/IpInfoPresenter.java
package com.example.mvptest.presenter;
import com.example.mvptest.model.IpInfo;
import com.example.mvptest.net.LoadTasksCallBack;
import com.example.mvptest.net.NetTask;
public class IpInfoPresenter implement... | eeb556c968aa9cfc74816814541224ae49756d09 | [
"Java"
] | 1 | Java | xudongstorm/MVPTest | 63b0f8b60f27571c586ba73cb378913b8191cf80 | f714b51bda76cd80d166d07233104558ef7215b8 |
refs/heads/master | <file_sep>'''
These classes cache metadata from TheMovieDB and TVDB.
It uses sqlite databases.
It uses themoviedb JSON api class and TVDB XML api class.
For TVDB it currently uses a modified version of
Python API by <NAME> (http://loopj.com)
Metahandler intially created for IceFilm... | b3abfd0204518eb7ed54ea70130691f577dfb279 | [
"Python"
] | 1 | Python | mash2k3/MashUpFixes | 459454c3f780a58e01a2b4edceb71ad245ee3f5f | 0318dc93f960509f436ffd58833542939adf3e35 |
refs/heads/master | <file_sep># Copyright 2016, <NAME>, mailto:<EMAIL>
#
# Part of "Nuitka", an optimizing Python compiler that is compatible and
# integrates with CPython, but also works on its own.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance wit... | b43537f6e251e843b898fdeb38c85d88848a8f0b | [
"Python"
] | 1 | Python | simdeveloper/Nuitka | 2726d28bccb34bd1c0dc94b336df8d3b2fc25539 | 2d9e268cd8d277526a8650cd70f036566ed033e5 |
refs/heads/master | <repo_name>TessieDeiza/Firebase-Hosting-DB<file_sep>/functions/index.js
const functions = require('firebase-functions');
const express = require('express');
const engines = require('consolidate');
var hbs = require('handlebars');
const admin = require('firebase-admin');
//window.document.write('<script type="text/ja... | 736e89e80943f81693485836d24a59f22bed1c9d | [
"JavaScript",
"Markdown"
] | 5 | JavaScript | TessieDeiza/Firebase-Hosting-DB | ce06dea197e2d85a44852d269359d286181e8673 | af857703e79c7b5e529f36c7dcf30049a507ad6a |
refs/heads/master | <file_sep>#!/usr/bin/expect -f
set i 0;
foreach el "$argv" { set "exp_[incr i]" "$el" }
#Override the execution timeout ...
set timeout 60
#The target expected command to execute
spawn npm login [lindex $argv 3] [lindex $argv 4]
match_max 100000
expect "Username"
send "$exp_1\r"
expect "<PASSWORD>"
send "$exp_2\... | ed16cc8d7eadba495dbf3b4ac811b7151fb7111e | [
"Markdown",
"Shell"
] | 3 | Shell | djanta/travis-npm-deploy | 7a72451e85d9ebc649d6f2ae466cc7198ab2a2d9 | f2dd069ae04e2190ba8c862291bb308d248f722c |
refs/heads/master | <repo_name>tmehta2442/toggler<file_sep>/config/initializers/session_store.rb
# Be sure to restart your server when you modify this file.
Toggler::Application.config.session_store :cookie_store, key: '_toggler_session'
# Use the database for sessions instead of the cookie-based default,
# which shouldn't be used to st... | ff7b7e5e036c43a77445a8915d312ac213c5a3f2 | [
"Ruby"
] | 1 | Ruby | tmehta2442/toggler | 704ed25a4b8500e342835af76da3707666542290 | a4fe780ae88cb8cf8c6de3cc5e25519cb91d402c |
refs/heads/master | <file_sep>var FastClick = FastClick || {};
var GDrinker = GDrinker || {};
$(window).load(function () {
new FastClick(document.body);
console.log("FastClick Registered on Body (Android)");
});
<file_sep>/* **********************************************
App-Compiled used by GoodDrinker and concatenated
to app-ang... | f8733b92587f5635a1b1f7472075008159d31fb3 | [
"JavaScript",
"Markdown",
"Shell"
] | 12 | JavaScript | knandiwal/GoodDrinker-Archive | fcb4cc200f2702f3d9bec42ef5b9184bb2579bff | 2a68d09b96464526562b772f5e99845e683c0fd8 |
refs/heads/master | <repo_name>armando555/InfoLab<file_sep>/app/Http/Controllers/ReportController.php
<?php
namespace App\Http\Controllers;
use App\Models\Publication;
use App\Models\Report;
use App\Models\Data;
use App\Models\TextData;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\Stor... | 795e7837b720a3512a5d32d61c5b04be0deb1f06 | [
"PHP"
] | 12 | PHP | armando555/InfoLab | f2ee37056654614b89c5fed73168eb2254fa45ec | f3bd5345f866ef69c2c7a8aefb00eeb564c2144d |
refs/heads/main | <file_sep>from aiogram import Bot, Dispatcher, types, executor
import keyboards as nav
from aiogram.dispatcher.filters import Command
from aiogram.contrib.fsm_storage.memory import MemoryStorage
from aiogram.dispatcher import FSMContext
from aiogram.dispatcher.filters.state import StatesGroup, State
Token = '<K... | 0c35943e901de0d79d252c9293ea157156097fc4 | [
"Python"
] | 2 | Python | Anna-Veresk/RestaurantBot1 | 6dce68f33bd11dbe8a08b04eb64c3f26c3333f3d | 4e714d69db78cb8cac16e1d891ea114d42628715 |
refs/heads/master | <repo_name>MaxIvaniuk/testTask<file_sep>/js/main.js
"use strict";
const numReg = /^(\s*)?(\+)?([- _():=+]?\d[- _():=+]?){10,14}(\s*)?$/,
mailReg = /^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-.]+$/,
nameReg = /^[а-яА-ЯёЁa-zA-Z]+$/,
messgReg = /^[а-яА-ЯёЁa-zA-Z0-9]+$/,
form = document.getElement... | 4e6cdad4503bf5db254e3e7ca8a83e1e5aefbc39 | [
"JavaScript"
] | 1 | JavaScript | MaxIvaniuk/testTask | 5170ba9f78179f35340350cef75839b2520b0aeb | a6b46a1ef1cb341d452f50dce58c7615b3137267 |
refs/heads/master | <file_sep>using Microsoft.AspNetCore.Mvc;
using Microsoft.EntityFrameworkCore;
using One_to_many_migration.DAL;
using One_to_many_migration.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace FiorelloHomeWork.Areas.AdminPanel.Controllers
{
[Area("Admi... | 86614607c3ae99986bdb44c2f124a6191aba1bcd | [
"C#"
] | 15 | C# | Ismat227/FiorelloReadMoreButton | 3302f1d82ab1066d926114a69e0c0a47d7b48ff5 | 47229f18e4a3c9498507ce1fc0af0e089ffbd078 |
refs/heads/master | <file_sep>export class Warning {
construcutor(
id: number,
people: boolean,
light: boolean,
secure: boolean,
comments: string,
long: number,
lat: number,
){}
}
<file_sep>import { Component, AfterViewInit, OnInit } from '@angular/core';
import { FormBuilder... | d0b6da1fd339974d28287fa1d73c0f20d84fd47e | [
"TypeScript"
] | 2 | TypeScript | Scoppeniche/lightmyway | 77ff5826ef8adc40ac057c34aa4e56c87d72274f | b6f69b54ea665ff0078f3c665c3bba13bf12ca8b |
refs/heads/master | <repo_name>danielvportlandia/ruby-course-udemy<file_sep>/ruby_projects/playground.rb
# frozen_string_literal: true
#
# PART 1
#
# greeting = "Hello world"
# def say_hello(name)
# puts "Hello " + name
# end
# say_hello "Dan"
# String concatenation
# single or double quotes allowed
# puts first_name + " " + las... | 02009c1e58bc8ec3b5e9a49b4ad856007cd5ce06 | [
"Ruby"
] | 6 | Ruby | danielvportlandia/ruby-course-udemy | bb84434f19d770f753b4dc06eebd43a0cba69967 | cf023870f1548b3be2359cd7e4319932bf5a7f01 |
refs/heads/master | <repo_name>durvalprintes/station-frontend<file_sep>/src/pages/main/index.js
import React, {Component} from 'react';
import {Link} from 'react-router-dom';
import api from '../../services/api';
import './styles.css';
export default class Main extends Component {
state = {
products: [],
info: {},
... | eed606ef006153d4630c411835ecf9f5cf559763 | [
"JavaScript"
] | 1 | JavaScript | durvalprintes/station-frontend | 1b749bedb499f03ef2074b426b0f07959d69bf3a | 0a1c33e2742b050f056efc5b5c4c00b0bdcae11e |
refs/heads/main | <file_sep>package game;
import java.util.Stack;
public class Player extends Creature {
private int room_id;
private int pos_X;
private int pos_Y;
private Player player;
private int startX;
private int startY;
private int hp;
private int hpmoves;
//private ArrayList<Integer> PosX = ... | c0039bfbd8d3e7ef4944c65f1b299f4f72387f98 | [
"Markdown",
"Java"
] | 15 | Java | nikkiravi/ECE-39595J-OOP-Java | dd8ea2a6cf38c78fe46a4ec5230913b59775a8c1 | 03015f652d3fbd9f00331887e855bfcb12b7b778 |
refs/heads/master | <file_sep># Commit Service
Сервис, который хранит коммиты по публичному репозиторию.
## Установка
```
1. Склонируйте репозитории
git clone https://github.com/koreicnurs/commit_service.git
2. Войдите в папку с проектом
cd commit_service/
3. Установите виртуальное окружение
virtualenv --python `which pyt... | 823f71f831d3282eba084d81a54f76446e860f1f | [
"Markdown",
"Python",
"Text"
] | 16 | Markdown | koreicnurs/commit_service | 3513e1ba7a858709d9e0ba3ebc9f62d46e238aa5 | 25d59ba9b85ce82cfaebb671b459bbfd0bae4e5f |
refs/heads/main | <repo_name>DanYesmagulov/go-phone-book<file_sep>/pkg/repository/postgres.go
package repository
import (
"fmt"
"github.com/jmoiron/sqlx"
)
const (
contactTable = "contacts"
)
type Config struct {
Host string
Port string
Username string
Password string
DBName string
SSLMode string
}
func NewPgDB(... | 7a270c4a15989667c64128ef8ab755c4bfa46412 | [
"SQL",
"Go"
] | 10 | Go | DanYesmagulov/go-phone-book | 1ef5b1b6898a8210293d9606fb9c2aaca2dca112 | 4b205697f7cd14736b3f88d1952d6f5df112b94f |
refs/heads/master | <file_sep>#include "GraphicWidget.h"
GraphicWidget::GraphicWidget(std::shared_ptr<AbstractBusinessLogic> logic, QWidget *parent) : QWidget(parent),pLogic(logic){
pCbxCurrency=new QComboBox;
pCbxCurrency->addItems(convertToQList(pLogic->getAllCurrencies()));
QVBoxLayout* pVbx=new QVBoxLayout;
pV... | 9de656908edc5b1ea9f70229ae3fb31836b4bb6f | [
"Markdown",
"CMake",
"C++"
] | 49 | C++ | Lukas1584/Accountant | 7ce8d33659f51dc613874aab336248f3c56cb25b | 9531fe6c6b791c5032848f5f0196cd2ec5efd2ca |
refs/heads/master | <repo_name>danilodahlen/search-zipcode-app<file_sep>/src/about/about.jsx
import React from 'react'
export default props => (
<div>
<h2>Quem somos</h2>
<p>
Somos uma plataforma tecnológica que quer mudar a forma de comprar e vender seu carro seminovo.
Juntamos inovação, conh... | 50078a889960c348341b258620b9d5e0a0b0b140 | [
"JavaScript"
] | 4 | JavaScript | danilodahlen/search-zipcode-app | e75c1c52ac04963bf21cfccfa35a9a18d808e2c4 | fe69c71d48365d0bd17dff31d23d43758535ba9c |
refs/heads/master | <repo_name>pezhore/AnsibleSourceFiles<file_sep>/.bashrc
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
case $- in
*i*) ;;
*) return;;
esac
# don't put duplicate... | 4376918c0d7f64eadba42543834d5ea26f74b0a0 | [
"Markdown",
"Shell"
] | 3 | Shell | pezhore/AnsibleSourceFiles | a20caa63679a0d5e4616a3353c6b84052fd3ffe2 | 1cc14ec8b9b075466adb57d8b40c3f79ea97dd25 |
refs/heads/master | <repo_name>sriyag/project32<file_sep>/app/src/main/java/com/example/sriyag/drawingapp2/MainActivity.java
package com.example.sriyag.drawingapp2;
import android.app.Activity;
import android.app.AlertDialog;
import android.app.Dialog;
import android.content.Context;
import android.content.DialogInterface;
import android... | 3cdf3d167f684779ef965a1980022e0890bc9a79 | [
"Java"
] | 1 | Java | sriyag/project32 | ac78ef8c856bb2c439050e146bbf05c529b2a4ef | a9e01cfbad913354e40a370b65f4ea7db36d1ace |
refs/heads/master | <repo_name>dulumao/php-srouter<file_sep>/src/AbstractRouter.php
<?php
/**
* Created by PhpStorm.
* User: inhere
* Date: 2017/10/17
* Time: 下午11:37
*/
namespace Inhere\Route;
/**
* Class AbstractRouter
* @package Inhere\Route
* @method get(string $route, mixed $handler, array $opts = [])
* @method post(string... | 779c7eba171e469336d49070b77f42300aa0930e | [
"Markdown",
"PHP"
] | 4 | PHP | dulumao/php-srouter | 39cebc44e40cc2fa71d28029e440056ee24d04a5 | 7fe29c54d8c9a2029594a45e1eb63c41f45931f5 |
refs/heads/main | <repo_name>joaquinFarall/alkemy-nodejs-challenge<file_sep>/src/routes/authentication.js
const express = require('express');
const router = express.Router();
const pool = require('../database');
// function to validate the email adress
function validateEmail(email) {
const re = /^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]... | 91af17f4af86f20d2252e2b927f5d55a39623f17 | [
"JavaScript",
"SQL",
"Markdown"
] | 6 | JavaScript | joaquinFarall/alkemy-nodejs-challenge | e10e7c196a3dae3848a0f150e987c24465db42ca | 3759243e21f092af431e5ff8661e7f8058945207 |
refs/heads/master | <file_sep>package ch.brotzilla.neat.math;
public class ExtendedTanhFunction extends ExtendedActivationFunction {
public ExtendedTanhFunction() {
super("neat.math.extended.tanh", "Hyperbolic Tangent", "Returns the hyperbolic tangent of the argument.");
setSynapseDefault(0, 2.5);
}
@Overrid... | 9b3738ae42a5697bd5cf7458d7f2826d0bd5dad5 | [
"Markdown",
"Java",
"Maven POM"
] | 41 | Java | ManuelBrotz/brotzilla-neat | 691c977424ec41806c2f8792e84f99cffbbbac7d | 926359154b5f985dd0063132cfe55adffb43b34e |
refs/heads/master | <file_sep>require 'spec_helper'
describe Event do
before(:each) do
@event = build(:event)
end
it "has an facebook event id" do
@event.should respond_to(:fid)
end
it "has start time" do
@event.should respond_to(:start_at)
end
it "has end time" do
@event.should respond_to(:end_at)
end
... | 44bc04ffae3923a841b25cde0fe400985055e61a | [
"JavaScript",
"Ruby"
] | 51 | Ruby | salgadobreno/Fubuia | b47c149beb9f5410adf9da82af0f1a183519b5a6 | 1f7873d29170899c5771dd6a10a43815651afcef |
refs/heads/master | <repo_name>kingkris/b16<file_sep>/11-php/connect.php
<?php
$dbname = 'b16';
$dbuser = 'root';
$dbpass = '<PASSWORD>';
$dbhost = 'localhost';
$link = mysqli_connect($dbhost, $dbuser, $dbpass, $dbname);
if (!$link) {
echo "Error: Unable to connect to MySQL." . PHP_EOL;
echo "Debugging errno: " . mysqli_con... | 69df1ea47ad8de58cb4a0c2893aa4ff611063a61 | [
"JavaScript",
"Markdown",
"HTML",
"PHP"
] | 22 | PHP | kingkris/b16 | 42170db6e9fc6b2cbe94fa9fb15aedd198fb07b0 | ee6b73f4c895195b651e631f7988d175cbd83e2c |
refs/heads/main | <file_sep>import torch.nn as nn
from tool.utils import Util
class SpatialBlock(nn.Module):
def __init__(self, num_layers, kernel_size, in_channels, out_channels, dropout_rate):
super(SpatialBlock, self).__init__()
self.padding = kernel_size // 2
self.dropout_rate = dropout_rate
sel... | 258eedd8f3b2bf0d78961c6d73e340cdb2d9bc00 | [
"Python"
] | 12 | Python | jvguinelli/workshop_cor | c666befc09851994c55c2dc94edeb24b389747df | 40e2009ef05cd9eb47f5006c323bb8a2115bc833 |
refs/heads/master | <file_sep>package com.kryvokin.onlineshop.controller;
import com.kryvokin.onlineshop.model.User;
import com.kryvokin.onlineshop.service.UserService;
import org.apache.tomcat.util.http.fileupload.IOUtils;
import org.springframework.http.MediaType;
import org.springframework.stereotype.Controller;
import org.spri... | 39e2bcfe97752d27b22c6261c92a0ad7028285ce | [
"Java",
"SQL",
"INI"
] | 18 | Java | mariakryvokin/springboot_mvc | 5995eee1d9365c63aafd46601f61c8d4d578b7bd | 13377818b1565662d9d0f09d6f99537cea124606 |
refs/heads/master | <repo_name>sivitry/web2csv<file_sep>/web2csv2bow.py
# coding: utf-8
# In[129]:
import collections, re
import json, csv
documents = []
with open("VivianChen_PaperList.csv") as f:
for line in f:
documents.append(line.split(",")[1])
document = "\'"+document+"\'"
bagsofwords = [ collections.Counter(re.find... | 80bc9a3b4200b4c12c24e9d1e2deb0baace517df | [
"Markdown",
"Python"
] | 2 | Python | sivitry/web2csv | 4de2961cf625ac17b85fb0abcf0a56e0c7070328 | 5723f4ad5fefc6dc119afa13edbb611b3973fcd3 |
refs/heads/master | <repo_name>Jrenner07/TP_appli_mobile_interfaces<file_sep>/TP_Interfaces_simples/app/src/main/java/julienco/tp_interfaces_simples/act_Menu.java
package julienco.tp_interfaces_simples;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
impo... | 0baee7b693e51de36428b0ba93031282101610be | [
"Java"
] | 2 | Java | Jrenner07/TP_appli_mobile_interfaces | 0edbf564a6abcece5aa2d547e721078861bf68fe | 69213612d29b33eecaa31bebcf2e3cd16bfd6e82 |
refs/heads/master | <file_sep>using System;
namespace SalesWebMVC.Services.Exceptions
{
public class IntegrityExceptiom : ApplicationException
{
public IntegrityExceptiom(string message) : base(message)
{
}
}
}
| 79996bcc566d2a080d94b9e8c08b5fd847c49c6e | [
"C#"
] | 1 | C# | raziisz/workshop-asp-net-core-mvc | 55544a3d10d28a4733c420fc875c07c02292f351 | d99306b8e0fc3cee0837bb6e87f591fe343c6b36 |
refs/heads/master | <file_sep>import {List} from './list'
export class Board {
name: string;
lists: List[];
}<file_sep>import { Component } from '@angular/core';
import { FormBuilder, FormGroup, FormControl, Validators } from '@angular/forms'
import { NavController } from 'ionic-angular';
@Component({
selector: 'page-home',
... | 53fd73042c799885772ff83b4c51badac9e2dea4 | [
"TypeScript"
] | 3 | TypeScript | spencerhenze/IonicKanban | 913ce30f78deb230fd05e6a3a720f0d702575a72 | 8d3cf6b7b975b7584239e46ac629d36a1adae1d8 |
refs/heads/master | <file_sep>import movies from '../../data/movies';
export function get(request, response, next) {
const { slug } = request.params;
const movie = movies.find(movie => movie.slug === slug);
if (movie) {
response.writeHead(200, {
'Content-Type': 'application/json'
});
response.end(JSON.stringify(movie)... | 2698e62ade7ba2e228122c10a15cbcb89a0df3f6 | [
"JavaScript",
"Markdown"
] | 3 | JavaScript | flowforfrank/imdb-sapper | db91cb307dc0eee21e7e4ba5b399c072df3dfc43 | 5440714781fd543dba687296b80fbdfec81b907b |
refs/heads/master | <file_sep>"use strict";
var express = require('express');
var app = express();
var server = require('http').Server(app);
var io = require('socket.io')(server);
// Listen on port 3000
server.listen(3000);
// Request for static template
app.get('/', function (req, res) {
res.sendFile(`${__dirname}/view.html`);
});... | 344b41f7cea16e7aa378ffeb182a7eaf2c5e7aa7 | [
"JavaScript"
] | 1 | JavaScript | Jareechang/Node-chat-system | 1e424e3c15d92e00e0ddd6285fe448be8bf91f4a | fd128621380a82e0ed088a9b793a81fcdd37c5f8 |
refs/heads/master | <file_sep>from .util import *
from .priors import *
Areas = namedtuple('Areas', "coordinates geoms")
###############################
# Make an Exclusion Calculator
class ExclusionCalculator(object):
"""The ExclusionCalculator object makes land eligibility (LE) analyses easy
and quick. Once initialized to a p... | 6069f4cfee120d4af70aea1f814cdfab18ecbe20 | [
"Python"
] | 5 | Python | PyPSA/glaes | cebac2f999992633dd67dd05334be9e8f7e61295 | f113347557b64d87b53090009c70ded65086b34e |
refs/heads/master | <repo_name>Colt3Avery/Lessen1_1C<file_sep>/Assets/Scripts/FollowPlayer.cs
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class FollowPlayer : MonoBehaviour
{
public GameObject player;
private Vector3 Offset = new Vector3(0, 7, -10);
// the private is to set up where ... | ae5c4c50f25f49c4efdf9583e5ebeb739214e701 | [
"C#"
] | 1 | C# | Colt3Avery/Lessen1_1C | e97c8cc24de9dfb8ebdd11d84d6cabbac8bb2074 | 9269a923c80c9d70f8b7a17c20d0cf679f877c6f |
refs/heads/master | <file_sep>#!/bin/bash
set -e
if [ -n "${DISABLE_SOURCE_COMPRESSION}" ]; then
exit 0
fi
if [ ! -d "${GOPATH}/src/github.com/mholt/caddy" ]; then
mkdir -p "${GOPATH}"
tar xJ -C "${GOPATH}" -f "/usr/src/go.tar.xz"
rm "/usr/src/go.tar.xz"
fi
<file_sep># Caddy Docker image
This image simply provides Caddy precom... | 96e0d54aaf60d29daf84748c4eb7cca271498736 | [
"Markdown",
"Shell"
] | 6 | Shell | icedream/docker-caddy | 48772cc1215047e8f4ec450141563550acaa2fe2 | e8ee16f1f66356b037564fdf5ea14cc445404433 |
refs/heads/master | <file_sep>/*
<NAME>
V1.0
13th November
*/
//Program for Testing purposes
//Allows you to insert, delete tree, search for a specific integer in the tree
//Print in any orde you like
#include "tree.h"
#include <iostream>
#include <cstdlib>
#include <vector>
#include <stdio.h>
using namespace std;
//
int main()
{
B... | 72001142c66493f5a639c3aa42d51b345371b319 | [
"C++"
] | 6 | C++ | azpopov/BinaryTreeCpp | 6253b902ab2831a6ada388f74226ef7f84b20fae | 7ecc0cc419848498dcb0bd10d3cf6a06693a1c7e |
refs/heads/master | <repo_name>rafaelmellooo/bestwayexchange-backend<file_sep>/src/database/seeders/20190930040643-demo-housing_types.js
'use strict'
module.exports = {
up: queryInterface => {
const housingTypes = [
{
name: 'Host Family',
description: 'Optando pela Host Family (ou homestay, como é conhecido no... | 134df5d5e9bb633964ae78da7691de9e5ec2fc44 | [
"JavaScript"
] | 52 | JavaScript | rafaelmellooo/bestwayexchange-backend | fd7b7d7aab1eb6b0845bed2a1c45165d47413f31 | 591538ad1b953535f9b93aa13c77261a309bb08b |
refs/heads/master | <repo_name>miekd/torang<file_sep>/server/router.js
var static = require('node-static');
function Router() {
this.staticServer = new static.Server('../client');
}
Router.prototype.route = function(handle, parsedURL, req, res) {
console.log("Routing request for " + parsedURL.pathname + "?" + parsedURL.query);
if ... | 2026413211453539656aa08dc27c8517823f3dd3 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | miekd/torang | a6fb9825079a5ee42a5c2b5dc40603293bb2f9cc | 508ac401839b0b77498c51186485042dd3be7786 |
refs/heads/main | <repo_name>SinghVivek96/PriceTracker<file_sep>/src/main/resources/static/JS/postrequest.js
$( document ).ready(function() {
// SUBMIT FORM
function ajaxPost(urlF,dateF,priceF){
// PREPARE FORM DATA
var formData = {
url : urlF,
date : dateF,
price : pri... | 26482b16e37f5dc0c6868e5f3c4decbfe4b1a146 | [
"JavaScript",
"Java",
"INI"
] | 3 | JavaScript | SinghVivek96/PriceTracker | 1162fa58bb30884024af0657246e4ca7501937d3 | fe2942c460ce65f1aedb5165a127f12e9cdf7ab5 |
refs/heads/main | <file_sep>import getHash from '../utils/getHash';
import getDataMovie from '../utils/getDataMovie';
const Pelicula = async () =>{
const id = getHash();
const pelicula = await getDataMovie(id);
const img_url = 'https://image.tmdb.org/t/p/w500';
const view = `
<div class="Movies-inner">
... | 1ca5bdb2e6055f74c7ecf198b57377b147b46297 | [
"JavaScript",
"Markdown"
] | 4 | JavaScript | 1alexishuck1/SPA-pelicula-vanilla | d3e596b896c43cb72ff8e2afa8c5c5a638159ca2 | 1505d0e6a155bf0e78280bbe616ee92d877eb051 |
refs/heads/master | <repo_name>thiagochacon/LingGenXSocGen<file_sep>/LingGenXSocGen.R
setwd("/Users/sarahpeoples/Documents/PhD_Orga/Conferences_Workshops_Presentations/QMSS_2017/LingGenXSocGen/")
setwd("C:/Users/jn/OneDrive/Courses/QMSS 2017/LingGenXSocGen/")
# Read in data files
socgen= read.csv(file="dplace-societies-2017-05-09_soc... | f6c1d9e65612ce243fdd28d2c84950a087062d78 | [
"R"
] | 1 | R | thiagochacon/LingGenXSocGen | bda6526e5d3fdf5abd1a34a43318104ed04ea94d | 3ce37d2f7287bc4b9db4c23f565630e066031aca |
refs/heads/master | <repo_name>Solorio17/Js_Budz<file_sep>/J's_Budz/scripts/Inventory.js
var imagesq = [
"images/dank5.jpg",
"images/dank9.jpg",
"images/dank4.jpg",
"images/dank11.jpg",
"images/dankone.jpg",
"images/danktwo.jpg",
"images/dankthree.jpg"
];
//Start at Zero
var num = 0;
//Function next() Moves Images to ... | 85d6a3fdc9e35ba281996f1d1adfda39fc5ce05e | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | Solorio17/Js_Budz | 03b4f140fa509023b983ec1c4ae3629f82298a1d | 15ccd5ffd7a32081fcf893ddf0144a4cbd8aa6e7 |
refs/heads/master | <repo_name>imust98/FE-Learning<file_sep>/前端知识点总结/01-html/04-cookie和session,sessionStorage和localStorage区别.md
#### 请你谈谈Cookie的弊端
```
cookie虽然在持久保存客户端数据提供了方便,分担了服务器存储的负担,但还是有很多局限性的。
第一:每个特定的域名下最多生成20个cookie
1.IE6或更低版本最多20个cookie
2.IE7和之后的版本最后可以有50个cookie。
3.Firefox最多50个cookie
4.chrome和Safari没有做硬性限制
IE和Opera 会清理近期最少使用的coo... | 8043e3cfd40d8bc3e3f77b54992b90b2c3e16a95 | [
"Markdown",
"JavaScript"
] | 14 | Markdown | imust98/FE-Learning | 2794625d67c1c42a02a5e0a937796b8f113d16d1 | 071cbc3536d4f1d5c6fc418ee1403ceeba40364a |
refs/heads/master | <repo_name>claireve/reveclair<file_sep>/modules/method.php
<?php //content modules should not be accessed directly through a URL since they would then lack the HTML Template
//we'll see if a constant is defined (which should be included first thing in the index file, prior to including this page)
if (!defined('BASE_UR... | 865a9e39407ab2623f637079d181cb6cf6ab463d | [
"PHP"
] | 22 | PHP | claireve/reveclair | 7d1d473cb431786545fde7e35f253ed4d46d4cc2 | 9140ed03738c5aa8b3fcccd7429f7d3917a56f80 |
refs/heads/master | <file_sep>import React from 'react'
import styled from 'styled-components/macro'
const NavigationStyled = styled.nav`
display: flex;
> button {
flex-grow: 1;
font-size: 1em;
}
`
export default function Navigation({ onClick, buttonTexts }) {
return (
<NavigationStyled>
{buttonTexts.map((text, index) =>
... | de31bc0dbeee75b4662af56b0f2dae8073f0b8a8 | [
"JavaScript"
] | 3 | JavaScript | marwehl/flashcards-project | df7ef3bf08cc006634666d537962c8dae3c8ab14 | 7acb9d85ed86b7fb171618ad6b2ee351557f0805 |
refs/heads/master | <file_sep>import { observable, computed, action, autorun } from 'mobx'
import Router from './router'
import browserHistory from 'history/createBrowserHistory'
export Router from './router'
const properRoute = path => (path.indexOf('/') === 0 ? path : `/${path}`)
export class ObservableRouter {
max = window.history... | 6da7b8c8d5d0915a16e6aabcd29afd68fcd3264a | [
"JavaScript"
] | 1 | JavaScript | motion/router | c658a0220622bb3d83e26eefd5eff220cb5a310e | 564d40a07c6a966175c00e62282a9eb621b26ef4 |
refs/heads/master | <repo_name>Ivann-2612/Task<file_sep>/task-two.js
function validParentheses(parens) {
let split1 = parens.split('')
let split = split1.filter(el => el == "(" || el == ")")
let opened = split.filter(el => el == "(")
let closed = split.filter(el => el == ")")
if (opened.length != closed.length) re... | fe35da8682cdf02a06279f43583f6a34f8decaae | [
"JavaScript"
] | 1 | JavaScript | Ivann-2612/Task | e6f91dc7a80d2482e997905be6546d7f630045d9 | 27b8cd62b7a65b3d78fc3fc01ff542cebd328cab |
refs/heads/master | <file_sep>self.addEventListener('install', function (e) {
e.waitUntil(
caches.open('mi-cache').then(function (cache) {
return cache.addAll([
'./',
'./index.html',
'./index.js',
'./style.css',
'./images/foto.jpg',
... | 1d3b0e731e7a26d48e30803149a261e941b0bbfa | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | GuilleVargas/InicioPWA | 4c1830a958682a801c2f1a3cfd449704b9739cdb | 2c93c7af4bd4b9324b118a193fab949caa60cdc0 |
refs/heads/master | <file_sep>package main.entities.items;
import java.awt.Graphics;
import java.awt.Image;
import main.Handler;
import main.entities.Entity;
import main.gfx.Assets;
public class Item extends Entity{
private Image img;
private String name;
public Item(Handler handler, double x, double y, int width, int he... | a7881e48302d9a6e8b228a2094e877cba0740d5a | [
"Java"
] | 7 | Java | smhurt/WhatGoesUpRep | b6a035777ba72303b2f0a58d2764847b17ae06f1 | 61c4459a672dd616ab90b3e8b2f8934f80bd22df |
refs/heads/master | <repo_name>thinker1017/MyCrawler<file_sep>/src/main/java/com/tcl/crawler/indexer/Searcher.java
package com.tcl.crawler.indexer;
import java.io.File;
import java.io.IOException;
import java.util.LinkedList;
import org.apache.log4j.Logger;
import org.apache.lucene.index.IndexReader;
import org.apache.lucene.queryParser... | 87291c5f6435687af808547e6b62692c1221922f | [
"Java"
] | 5 | Java | thinker1017/MyCrawler | 4c53169a24854de40dd837c6f60e476c8506f6f3 | 1e68f7cf2be44816beac674b154e2faaec5ae30d |
refs/heads/main | <file_sep>local VOXEL_SIZE = 4
local Terrain = workspace:FindFirstChildWhichIsA("Terrain")
local TerrainUtils = {}
function TerrainUtils.cellPositionToWorld(pos)
return pos * VOXEL_SIZE
end
function TerrainUtils.getMaterialAtPosition(pos, preferSolid)
local minCorner
local maxCorner
if preferSolid ... | 08cb5b18bf1107fcae6de3c30e1e6778f815feb4 | [
"Markdown",
"TOML",
"Lua"
] | 16 | Lua | raphtalia/RbxUtils | 9b8d21c64db406bc6994573020659fc10a5ed2bc | c1d4336af766e2c438f360771ffa96dbcaa1c319 |
refs/heads/main | <repo_name>Elteoremadebeethoven/pycairo-tutorial<file_sep>/_3_positions/_1_grid_example.py
import os
import sys
sys.path.append(os.getcwd())
from imports import *
IMAGE_CONFIG = {
"width": 400,
"height": 400,
"scale": 1.2,
"transparency": False,
}
class Shape(Figure):
def on_draw(self, cr: cairo.Co... | 47d77ac69e242603fae579dd60889b890383ea23 | [
"Markdown",
"Python"
] | 17 | Python | Elteoremadebeethoven/pycairo-tutorial | 99ef02732bf58b0e39ecf745e64b4887a35685fd | f12e2f6eb6dce31adfc00fcf18aab0f5e26bb672 |
refs/heads/master | <repo_name>wueason/multiKeySort<file_sep>/src/multiKeySort.php
<?php
/**
* Sort multi-dimensional arrays by custom keys. Just for two-dimensional now.
* @param $list
* @param $rules <p>
* Custom sort rules. an multi-dimensional array with three elements each.
* first is the key to sort with,
* second is SORT_ASC ... | f01b307df4318aa092617ba71bdcfb188bf40d90 | [
"Markdown",
"PHP"
] | 2 | PHP | wueason/multiKeySort | 97946527cd82cb2f451cb572c1464fe4667fc8ce | ef782197433004e4fce44f9ca45fb2095b69976a |
refs/heads/master | <file_sep>import { Component, OnInit } from '@angular/core';
import { Router, ActivatedRoute } from '@angular/router';
import { FormBuilder, FormGroup, Validators } from '@angular/forms';
import { first } from 'rxjs/operators';
import { LookupService } from '../_services/lookup.service';
@Component({
selector: 'app-... | f18f1b3be54d8479d7c48f34972935cf046979aa | [
"Markdown",
"C#",
"TypeScript",
"Dockerfile"
] | 43 | TypeScript | bubdm/aot-hrms | 1f8215f40bccf4e84407a9f031596f924713abdf | d51f33473736eef6118be268eee694307c149201 |
refs/heads/master | <file_sep>from turtle import *
import random
# <NAME>
# 4500 Miller
# 9/30/19
# This program "paints" blobs on a grid until each cell is painted, it runs K times
# and takes a really long time to test...GLHF!
# get input from user for N and error check
# def getN():
while (True):
N = input("Please enter... | 628c70271af356b267a99f95d0eeab73a3ad448f | [
"Python"
] | 1 | Python | tmuzughi/Painting-Blobs-Turtle | 7eac0e1820459a5f7a6e74867b367de746d64b18 | 5826a1c5c147f9eda5b72e46f45efb911e93f0c2 |
refs/heads/master | <file_sep>from winsound import Beep
import time
class Music:
stdTime = 2400
root24 = 1.0293022366434920287823718007739
root12 = 1.0594630943592952645618252949463
@staticmethod
def getFrequency(s):
d = 0
sharpCount = s.count('#')
flatCount = s.count('b')
if sharpCount... | a1eedea929a861513f340263ed9c0d668bc31223 | [
"Python"
] | 3 | Python | AsciiShell/MusGen | 05fa932b23df3e290fa218452e66e9114cf38c58 | aeaa6395862f18158f16b55bc8889d865d700b2a |
refs/heads/master | <file_sep>$(document).ready(function() {
$("#mainMenu").highlightMenu({
bgColor:'#1A276B',
color:'#F2F2F2'
});
});<file_sep>$(document).ready(function() {
$("#reasons div").hide();
$("#reasons li").click(function() {
$(this).children().slideToggle(1500, "swing");
}... | f56e081b70213831ff71d3908a9fbf1108cd84dd | [
"JavaScript",
"Markdown"
] | 7 | JavaScript | vid9sharma/Fridgance | a4f7f17f81baa64ded6842ded4b29c8732622562 | 56cc16a66c3a7471f80fd0d788ce92c75b728b49 |
refs/heads/master | <file_sep>using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ContextBountAttributeTest
{
[Interceptor]
class FileLoops : ContextBoundObject, IFileAccess
{
private string _file;
public FileLoops(string filename)
... | a98431e16e30c05aae7643eb24f189fac93599a8 | [
"Markdown",
"C#"
] | 6 | C# | LoopsLu/AopContextBoundObject | 75682dbaee7c852004947ddf87f801a5f06bef40 | 8378cf88a98e08454eaf19b1654bb2453c53e696 |
refs/heads/master | <repo_name>Articulate911/Crawler-Dangdang<file_sep>/README.md
OKOK
You can read me now.
<file_sep>/dangdang/spiders/main.py
from scrapy import cmdline
cmdline.execute('scrapy crawl dangdang_spider -o book.json -s FEED_EXPORT_ENCODING=UTF-8'.split())
<file_sep>/dangdang/spiders/dangdang_spider.py
# -*- coding: utf-8 -*-... | 9f541ee7a5e227f156db94cba2633f87adbedd13 | [
"Markdown",
"Python"
] | 3 | Markdown | Articulate911/Crawler-Dangdang | 08dd742de8f7bf10501eeedb4a79ec8f3cecb02c | c62803ffe58186073e5dce36bfbb9d74b7d0351b |
refs/heads/master | <repo_name>derRinat/js_match3<file_sep>/js/settings.js
(function(game) {
var Settings = {
board: {
width: 8,
height: 8,
el: '#board'
},
tile_types: ['blue', 'green', 'purple', 'red', 'yellow'],
tile: {
width: 32,
height: 32... | 07e679eccd717955297468ebce258861328a4880 | [
"JavaScript",
"Markdown"
] | 5 | JavaScript | derRinat/js_match3 | 6ea2fad8313b56ca8bcf2e3dd6715535440e1292 | b2454d0d088ba999ed8e22516c807545d3228e35 |
refs/heads/master | <repo_name>karmeYin/git-repository<file_sep>/girledemo/src/main/java/com/yin/girledemo/utils/ResultUtil.java
package com.yin.girledemo.utils;
import com.yin.girledemo.domain.Result;
public class ResultUtil {
public static Result success(Object data){
Result result=new Result();
result.setData(da... | 11d7aedd22533e429aabebb6310805901efd96fb | [
"Java"
] | 3 | Java | karmeYin/git-repository | 8b497b40af652ca7736f3d8338c3164a65eb75e9 | ed08d86ac8e212fd03d130f7270f5e01c80e99e8 |
refs/heads/main | <repo_name>ducreations/Clinic<file_sep>/app/models/physician.rb
class Physician < ApplicationRecord
has_many :appointments
has_many :patiens, :through :appointments
end
<file_sep>/app/models/patient.rb
class Patient < ApplicationRecord
has_many :appointments
has_many :physicians, :through :appointments
end
<fil... | 49acf0ffb45dad7e8e95ccbf825580d2834b4d03 | [
"Ruby"
] | 4 | Ruby | ducreations/Clinic | b07360172f27ddf75cd59ac4bb2e84b6d4383a2c | fdcae060ff9f08cfd9d01748f7e8499f2f2c23bf |
refs/heads/master | <repo_name>ayadalati/al-wathba<file_sep>/app/website/sign-in/sign-in.component.ts
import { Component, OnInit } from '@angular/core';
import { Router } from '@angular/router';
@Component({
selector: 'app-sign-in',
templateUrl: './sign-in.component.html',
styleUrls: ['./sign-in.component.css']
})
export class Sig... | b5dc2b15e58649a0f36930cbd1c1fd3e2b051b60 | [
"TypeScript"
] | 1 | TypeScript | ayadalati/al-wathba | 61ae3c01b0ec8986ffeaa61a04dbf92fbeec4171 | ec289a17604883c1b2917b78ab01a4ff356b0875 |
refs/heads/master | <file_sep><?php
/**
* Blossom is a custom Theme class for the Blossom theme.
*
* @package Habari
*/
/**
* @todo This stuff needs to move into the custom theme class:
*/
// Apply Format::autop() to post content...
Format::apply( 'autop', 'post_content_out' );
// Apply Format::autop() to post excerpt...
Format::apply(... | 5fa113568d3744be29e9ddae09396a159294779f | [
"SQL",
"JavaScript",
"Text",
"PHP",
"Shell"
] | 561 | PHP | somefool/habari-extras | 5ec6e1b41ffbc23ac6e92962c18585fbcaedf894 | 211fd46e0645fafbb1e66bc9367896d05796991f |
refs/heads/master | <file_sep>import openpyxl
input_file = "input.xlsx"
output_file = "output.xlsx"
# Required headers, case insensitive
xls_headers = [["first name",False,-1],["spouse/partner name",False,-1],["last name",False,-1]]
def validate_names(names):
name_list = []
for name in names:
if name != None:
... | ae60eb89cfd1477bfcd1b093a0f3085a0a6a1ee0 | [
"Markdown",
"Python"
] | 2 | Python | sirken/xls-combine-name-columns | 4cb603cd25ba049d667f5fe2884aa6ffb9e334c3 | fd0ff27704234418d45db8b6550488b48d5d51bf |
refs/heads/master | <file_sep>ComplexGamingSystem
-Documentation ~https://brionnafranklin.github.io/ComplexGamingSystem/
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
How to Add to a Project
- Step one ~ Download the contents of the Scource folder https://github.com/brionnafranklin/ComplexGamingSystem/tree/master/Source
- step two ~ Place in sco... | 43c688620261c656d2323029c213f865de886bbb | [
"Markdown",
"JavaScript",
"C++",
"INI"
] | 22 | Markdown | brionnafranklin/ComplexGamingSystem | 6e366e6fd184430e7e1f44f3ee44344cce2f68d9 | d217cddb7b2725373e013f5395de6638fb9c60eb |
refs/heads/master | <repo_name>Sieyk/CompilerScanner<file_sep>/src/CD15.java
import java.util.Scanner;
//<NAME> 3184660
public class CD15 {
public static void main(String[]args){
System.out.println("Please input the file name for scanning");
Scanner reader = new Scanner(System.in);
COMPScanner scan = new COMPScanner(reader.nex... | 60b47636be4dd079cf54aa48a7d505e254b84702 | [
"Java"
] | 3 | Java | Sieyk/CompilerScanner | fae5351ce42839bd33c76a9d762429a4a6b443ab | b8ff22fc31fb37d15091234441c47ddc19146afd |
refs/heads/main | <repo_name>MichaelSana/SingletonDesignPattern<file_sep>/Library.java
/**
* The singelton class to sort through the library
* @author <NAME>
*/
package SingletonDesignPattern;
import java.util.HashMap;
public class Library{
private HashMap<String, Integer> books = new HashMap<>();
private static Library libra... | 8d53b075788a28358cd40dc75353bb2b865c54de | [
"Java"
] | 1 | Java | MichaelSana/SingletonDesignPattern | ea5912a080e4e18504d5c41990f657f375683b41 | c8c84f150e855745d4b16c0363acd3c91595fb35 |
refs/heads/master | <file_sep>package store.action;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import store.dao.Action;
import store.dao.BookDAO;
import store.model.Book;
public class RemoveBookAction implements Action {
public String execute(HttpServletRequest request, HttpServletRes... | 9726cab01e2ff99c9bf5d9164f123c54f0a11456 | [
"Java"
] | 8 | Java | Eugnat/bookstore-webproject | 15781e8d9f904467369b82787a1235ce49113a3b | 1ef8366bc2c31c9699a8efb757bca27c18939559 |
refs/heads/master | <repo_name>nidzelskyy/coursera_python_course<file_sep>/README.md
**Coursera**
MFTU
Programming in python
Course 1 - Diving in Python
Московский физико-технический институт & Mail.Ru Group
Программирование на Python
Курс №1 Погружение в Python<file_sep>/week1/solution3.py
import sys
a = int(sys.argv[1])
b = i... | 1cd123c7f356f47762cb2bd1f839ee1d9b98bc48 | [
"Markdown",
"Python"
] | 25 | Markdown | nidzelskyy/coursera_python_course | 4232e13bb4ca5c1e63d8b88af311a9e58a37d740 | 35cd4f546340c461150516d0c9a2211903478222 |
refs/heads/master | <file_sep>#include <stdio.h>
int main(void)
{
char buffer[] = "1234\n";
printf("sizeof '1234\\n\\0' = %d\n", (int)sizeof(buffer));
return 0;
}
<file_sep>#include <pcre.h>
#include <stdio.h>
#include <string.h>
int main(void)
{
pcre *re;
const char *sampleData = "\rNet: dm9000\n\rHit any key to s... | 752d21144b84dda6344d71c6a41ae6ac2d96b80a | [
"C",
"Makefile"
] | 3 | C | aeruder/testcprogs | edfb3476437f6aa479fa8b16d25e669175286106 | ad61260a9288e332f855a0e768932b0daa7df3f0 |
refs/heads/master | <file_sep>package mediabrowser.model.livetv;
public class ListingsProviderInfo
{
private String Id;
public final String getId()
{
return Id;
}
public final void setId(String value)
{
Id = value;
}
private String Type;
public final String getType()
{
return Type;
}
public final void setType(String val... | c0d54edd4c86fe8b8d65088c92c2d21cbb30484d | [
"Java"
] | 2 | Java | MithrilTuxedo/Emby.ApiClient.Java | 8813d4ec87984f354ef731cde4ba559e57239a8e | 5ab517e2d078c55a1871f7893249e246646121db |
refs/heads/master | <file_sep># Goldmaster testing
Inspired by [RailsConf 2017: A Gold Master Test in Practice by <NAME>](https://www.youtube.com/watch?v=D9awDBUQvr4)<file_sep>class Foo
def initialize(v, w, x, y, z)
@v = v
@w = w
@x = x
@y = y
@z = z
end
def bar
((@z && (@x || @y)) && ((@x && @y) || (@x && ... | 264fe8f7d1cac17a69b53f6776bd7491e1729e2d | [
"Markdown",
"Ruby"
] | 3 | Markdown | nicolaslechenic/goldmaster | bad58be5c0319ad2cdaf65c225306d9f28aa15ac | 2506989173f63da4260953e362073d8d5c421006 |
refs/heads/master | <repo_name>Yicong-Huang/TwiSpider<file_sep>/src/job.py
from datetime import datetime
from twitter import Status
class Job:
def __init__(self, tweet: Status, original_tweet_retweet_count=0):
self.tweet_id = tweet.id
self.tweet_created_at = datetime.strptime(tweet.created_at, '%a %b %d %H:%M:%S %z ... | d4337721ac13af1860bed329219133a5e5f0b5f9 | [
"Markdown",
"SQL",
"Python",
"Text"
] | 13 | Python | Yicong-Huang/TwiSpider | 564e55a58024d2035611500a3b5f3f041e65335d | 14e33e796405dbc1794b4364af30fc83f58521b2 |
refs/heads/master | <repo_name>haoayou4211/baojia01<file_sep>/js/page_api_common.js
//日期格式化
Date.prototype.Format = function (fmt) { //author: meizz
var o = {
"M+": this.getMonth() + 1, //月份
"d+": this.getDate(), //日
"h+": this.getHours(), //小时
"m+": this.getMinutes(), //分
"s+": this.getSeconds(), //秒
"q+": Math.f... | 8610e363a31cdb6970f494c18f7be35d1d1d7ddc | [
"JavaScript"
] | 7 | JavaScript | haoayou4211/baojia01 | 7a27d8ba5b7f0cf8aab9f8219b8bae46552d6503 | a7de279b27e1fb1a25a5551ee1e30c57c30e3868 |
refs/heads/master | <file_sep><?php if (!defined('THINK_PATH')) exit(); /*a:1:{s:53:"D:\lp\WWW\jiu/application/index\view\login\index.html";i:1548240536;}*/ ?>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum... | 640832769d83e05ea51346fe572722e1edeb114f | [
"PHP"
] | 31 | PHP | dj808/hongjiu | 253ac79a34b69d1bfe78925ae2db76076f631c1b | 8e8c47ba71bd7053c3ebd367367b9f255a05be3b |
refs/heads/master | <repo_name>m5tl501/SnapBrute<file_sep>/README.md
# SnapBrute v4
<img src="https://a.top4top.net/p_659qj00e0.jpg">
هذه الأداة مجانية ومقدمة من الجيش الألكتروني للجميع
<br>
مشروع خاص لأاختراق حسابات السناب شات عن طريق ثغرات حقيقة خاصة للجيش الألكتروني السعودي
<br>
http://snapbr0k3n.1337leaks.info/index.php
<br>
قريبا !..... | eaeb399171f44d639daec17fbaad3836e72a0895 | [
"Markdown",
"Ruby"
] | 2 | Markdown | m5tl501/SnapBrute | d213a881655bedf8373e9812039f1fdeff0dac3f | 17bde9c0762a82f7ef7be14232575e227bc0c3ad |
refs/heads/master | <file_sep>using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using RetireHappy.Models;
namespace RetireHappy.DAL
{
public class ReportMapper : ICommonGateway<User>, ICommonGateway<SavingsInfo>
{
public Object ComputeAverage()
{
// for prototype p... | f62991386256a8e1b1890270cdc764ab30433462 | [
"C#"
] | 10 | C# | XingYi/RetireHappy | 0a56cea7ddf123e11bdc6dd27e62be67e0429373 | 32fa0a7e43839b3cdd930c3ff04f61570708d87b |
refs/heads/master | <file_sep>## Put comments here that give an overall description of what your
## functions do
## Function makeCacheMatrix creates a special list containing four functions
## These functions carry out the following:
## 1. set the matrix
## 2. get the matrix
## 3. set the matrix inverse
## 4. get the ... | 29d0f6ef6838c90e435b5d3c4b90644c7bc2e46b | [
"R"
] | 1 | R | dominictabeta/ProgrammingAssignment2 | 111686e0c51beba53727b12b3f89d48af3add651 | 90dcca5880ba605e8c3475c3422b3d4b9b4c00e9 |
refs/heads/master | <file_sep>from django.contrib import admin
# Register your models here.
from .models import Guest
@admin.register(Guest)
class GuestAdmin(admin.ModelAdmin):
list_display = ('name', 'email', 'rsvp', 'additions', 'message')<file_sep>from django.db import models
# Create your models here.
class Guest(models.Model... | d66006442e8226fb130130103c4e0341a10b7d69 | [
"Python"
] | 4 | Python | jwinf843/rsvp_website | 0e5ca0cf647a3b5d8591268a4667e190d9723707 | 91bd3c2f63fea44af7224c8eb09be1abaefb53d6 |
refs/heads/main | <repo_name>Egor-04/Scientist-Engineer<file_sep>/Scientist Engineer/Assets/Scripts/Player/PlayerStates.cs
using UnityEngine;
public class PlayerStates : MonoBehaviour
{
public bool CanZoom = true;
public bool CanMove = true;
public bool CanJump = true;
public bool CanHold = true;
public bool CanLook... | b7088c2ee78132f224e6130945422cab589bcbbb | [
"C#"
] | 10 | C# | Egor-04/Scientist-Engineer | e7c7b7788e04fb61b112a1835a1132007da2a650 | bb17845aee790012255aee8524ee0ad83cfe5c1c |
refs/heads/master | <file_sep>package de.alex.jobsystem.jobplayer;
import org.bukkit.entity.Player;
import java.util.HashMap;
public class JobPlayerManager {
private final HashMap<Player, JobPlayer> playerJobPlayerHashMap = new HashMap<>();
public JobPlayer addGetOrGet(Player player) {
if (!playerJobPlayerHashMap.cont... | f52951605eac35e57003aa4c971c8a5cbd77ac89 | [
"Markdown",
"Java"
] | 5 | Java | GoldenGamerLP/JobSystem | a5990baf710cfed3aa5abb5f10f871dd65c6d264 | c6ae46df09c3c05f7dcef16943b815542ef8f35c |
refs/heads/master | <repo_name>luben-gonsalves/transporter-ui-demo<file_sep>/src/components/ProductFeatures/index.js
import React from "react";
import { SpaceBetween } from "../CommonComponents";
import { FeatureCard } from "./style";
const ProductFeatures = () => {
const features = [
"Air Express Shipping",
"Sea and Air Cargo ... | ebab31e0e99c09c5b6f7f7a7443fda203f1f1ee4 | [
"JavaScript"
] | 4 | JavaScript | luben-gonsalves/transporter-ui-demo | 3f09baf848294076a11abc432382c953981163b0 | 5272a0bd8b4aa2a92bf74c7cebe0b979bf9917e1 |
refs/heads/master | <repo_name>iSklcndykid/PRJCT_ANGLR<file_sep>/src/models/customer.model.ts
import { Request, Response, NextFunction } from 'express';
export class customer {
_model: any;
constructor(norm: any) {
this.model = [{
CUST_ID: { type: Number, key: 'primary' },
First_Name: { type: String, maxlength: 24 },
... | f65913f1261b05c61f647470fff4f9e7c853b1b9 | [
"TypeScript"
] | 11 | TypeScript | iSklcndykid/PRJCT_ANGLR | be040dd89e20f8ab4f42bfd3c1a10a7ee33d0feb | c9309ff2f6e595349fe2fcbfef72b4c3e10fb5d4 |
refs/heads/FinalRobot | <repo_name>BotDogs4645/InfiniteRecharge2020<file_sep>/src/main/java/frc/robot/commands/RunShooter.java
/*----------------------------------------------------------------------------*/
/* Copyright (c) 2019 FIRST. All Rights Reserved. */
/* Open Source Software - may be modified and shared by... | a64416c433d6c922423ebba302566d5c83643285 | [
"Java"
] | 5 | Java | BotDogs4645/InfiniteRecharge2020 | 3dd673c13f1c308de4ec855bff8e486121b2ad21 | 17e965065070dd1c64c1f7c58c4aa357376a3d46 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.