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>import React from "react";
import "./EditView.css";
class EditView extends React.Component {
render() {
return (
<div className="new-container">
<h5 className="edit-header">Edit Note: </h5>
<form className="note-form" onSubmit={this.props.onSubmit}>
<div>
<i... | e673a121a5ca044a637abc329a00afc2b2952243 | [
"JavaScript"
] | 6 | JavaScript | Davidless/front-end-project-week | 5d687f3b4509872b815174ddf1031be783068e8b | ede70cfbe4f47b8af52a2fdb4e3d66f81ce0bf43 |
refs/heads/master | <file_sep><?
include_once 'harness/include.php';
class api_student_Edit extends WebTestCase {
function setUp() {
$this->POST = array('name' => '<NAME>',
'major' => 'Math',
'GPA' => '3.3',
'id' => 1);
Db::query("INSERT INTO student... | b94cc072654f13dca16f2775d1fe6b98a0af1684 | [
"JavaScript",
"PHP"
] | 21 | PHP | wagiboy/student-mgm-in-vue | 6b1a167f5c5ebf0b6aef236831df161b07e962c9 | 9c88eb660305dc0b28e76903ce545b58d2400c73 |
refs/heads/master | <repo_name>walterdis/oop4fun<file_sep>/index.php
<?php
require_once 'vendor/autoload.php';
$pizzaFactory = new \Pizza\Brazil\BrazilPizzaFactory();
$store = new \Store\PizzaStore($pizzaFactory);
$store->order('garlic');
echo '<hr />';
$store->order('oyster');
<file_sep>/src/Pizza/AbstractPizza.php
<?php
... | 0d24bb76beb89ef5d810a552e75e851d4e818b27 | [
"PHP"
] | 13 | PHP | walterdis/oop4fun | ede08daf95918a83f0400d4a0a3d871c835fc515 | 645648278b5e07ffe6412eb8d8a032dcd057788c |
refs/heads/master | <repo_name>tom-ando/presentext<file_sep>/generate.py
import sys
import fileinput
import os
from random import randint
from shutil import copyfile
from base64 import b64encode
customMode = False
backgroundAdded = False
colors = {
"red": [255, 0, 0],
"pink": [255, 193, 203],
"orange": [255, 165, 0],
"y... | 9ecb6987c8218ca2197d4463a67eae0020ea0a66 | [
"Markdown",
"Python"
] | 2 | Python | tom-ando/presentext | 2a948a03acbf74a16fd3ee4f8bbf8f59e84bc924 | 84cbbb3ae3f4306260912acb2cbb3039b69d853e |
refs/heads/master | <repo_name>mastanpatel/HealthClaimProcessor-API<file_sep>/HclaimProcessor/HclaimProcessor/Controllers/HomeController.cs
using System;
using System.Data.Entity.Validation;
using System.Linq;
using System.Web.Mvc;
using System.Web.Security;
namespace HclaimProcessor.Controllers
{
public class HomeController : Contr... | fdeb9c06c783a9c13ff0bd5625f08d81e50cdf06 | [
"C#"
] | 2 | C# | mastanpatel/HealthClaimProcessor-API | 75a01f4b472bc4feac4fb3e462a5fb4474f16fe9 | e03fd4a667728e1f4c9bab654289872ad6d4851b |
refs/heads/master | <file_sep># MutiLevelTableView
多层级可展开的TableView
对嵌套数据模型的递归处理

<file_sep>//
// HomeViewController.swift
// Demo-MultiTable
//
// Created by 梅霖 on 2019/1/9.
// Copyright © 2019 梅霖. All rights reserved.
//
import UIKit
class HomeViewController: UIViewController {
@IBOutlet weak var r... | 8f71aba46364c6182c43e389d246a0a426dbc7fb | [
"Markdown",
"Swift"
] | 6 | Markdown | soulwell32/MultiLevelTableView | 1c1189d19fef618cd599538e3b49df74bacb55d8 | 9b545422e7f5210f508aac62db6841c3ffd8e598 |
refs/heads/master | <repo_name>strategicpause/CrossfitFelix<file_sep>/dataAccess.js
'use strict';
var AWS = require('aws-sdk');
var data = require('./data');
// Key Prefixes
var WORKOUT_PREFIX = "workout";
var ANNOUNCEMENT_PREFIX = "announcement";
// Constants
var TODAY = 'Today';
var TOMORROW = 'Tomorrow';
var PST_OFFSET = -8;
var DA... | c6de448ac30a6b82cd05915ff2223915fbf564f3 | [
"JavaScript",
"Shell"
] | 3 | JavaScript | strategicpause/CrossfitFelix | 484c440066ab63e3e7e3936a28e35cbbf8db3ca1 | 339b918bac3b8ecb655024fd61d70674771846db |
refs/heads/master | <repo_name>pvqa/Proformas<file_sep>/principal/models.py
#encoding:utf-8
from django.db import models
class Cliente(models.Model):
nombre = models.CharField(max_length=20)
apellido = models.CharField(max_length=20)
def __unicode__(self):
return self.nombre
class Proforma(models.Model):
cliente = models... | 07e4723f58c42a95def4df3dba46f91ea760d427 | [
"Python"
] | 4 | Python | pvqa/Proformas | b62407717f5ff8c3d1ba56c03c501d3e3410a9c7 | 67864b6bbea5860cb5c4b45d449740d9a5ddb542 |
refs/heads/master | <file_sep>MARK
====
### A 2D multiplayer turn based strategy game written in Javascript

Quick start
----------
- Make sure Node and npm are installed
- Run `npm install` and `npm start`
- Navigate to localhost:3000 in two browser windows
Rules
-----
The objective of the ... | d6f2adeb5a36af5bf1bd2dbdb64e30d918987b08 | [
"Markdown",
"JavaScript"
] | 7 | Markdown | MBRobertson/MARK | 4a075b2b269199e1eecada8a7e317c8cebd7b06e | 7f2b54ffb58bb9cb7abcc51b1ef25e46fbaf02a5 |
refs/heads/main | <file_sep># Si obtenemos los números enteros inferiores a 10 múltiplos de 3 y de 5 en una lista.
# Tendremos el siguiente resultado: [3,5,6,9].
# La suma de todos estos múltiplos es 23.
# Así mismo, obtenga la suma de todos los múltiplos de 3 y de 5 inferiores a 1000.
list_of_numbers = range(1, 1000)
list_items = ... | bb9d804f796fc9d43013f7eacbce8670d3fbbd49 | [
"Markdown",
"Python"
] | 7 | Python | porgetit-0/Daily-exercises | 06216cdc1b3469113c03f94045b7b3b516409460 | e4114dc09a0edc65c4bf624cfecd1f519527d1d2 |
refs/heads/master | <file_sep>/*
* ATTiny, Arduino and ESP8266 library to interface with PCF8574
* install TinyWireM library https://github.com/adafruit/TinyWireM
* ATTiny85 I2C interface: SDA - pin P0 (0) and SCL - pin 2 (2); pull up to VCC (resistor 10kOm)
* Arduino Nano I2C interface: SDA - pin A4 and SCL - pin A5
* ESP8266 I2C in... | ea416ad50938039052a1f9c75e8f040dd35b2b52 | [
"Markdown",
"C++"
] | 6 | C++ | MaksKliuba/Libraries | 7c04c77b1a0aad08d3f2cec9e9725c3210cc2323 | 04073fa3ce0519e20e70172fb93567644ef92b6f |
refs/heads/master | <repo_name>rbrcurtis/proxy-hem<file_sep>/README.md
#Because Hem is awesome but missing one thing...
When playing around with [SpineJS](http://spinejs.com) I also discovered [Hem](https://github.com/maccman/hem). I immediately loved it and really wanted to use it with all my projects, everything I build for work and h... | 50ba19d3969527cd91dff53550d105f7c5b93fd3 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | rbrcurtis/proxy-hem | 1dfb253ea87cb4cdca931dd63035c822c2509be0 | 651f54013c1156dfec55342cf947d6fbf19efeb8 |
refs/heads/master | <file_sep>import React from "react";
import { NavLink } from "react-router-dom";
import "./ClassRoomListItem.css";
// import MainPanelContent from "../../../MainPanel/MainPanelContent/MainPanelContent";
const ClassRoomListItem = props => (
<div className="ClassRoomListItem">
<NavLink
to={`/${props.classname... | 728b9162fdb7e24ff07dd5cd847dd1ff4811eff4 | [
"JavaScript",
"Markdown"
] | 12 | JavaScript | tanisha2398/Assessment_spotMentor | 10cf2b85efad60df4301026aa01572d8b8d31605 | de06bf8ba85cf2126a48b7d800e9eb41dd69f5fe |
refs/heads/master | <file_sep>/**
* Created by wenpeng.guo on 9/26/16.
*/
import {Component} from '@angular/core';
@Component({
selector: 'my-heroes',
templateUrl: 'app/accordion.component.html',
styleUrls: ['app/accordion.component.css'],
})
export class AccordionComponent{
}<file_sep>/**
* Created by wenpeng.guo on 9/2... | f9e67697ef5d5d91cc175d891d9da4a81aa0d48a | [
"Markdown",
"TypeScript"
] | 8 | TypeScript | smallg/angular2-practice | f71044765344587dc1955c864a184a7c23899a0a | c8866ea77eb98208013ea1c4a602947de22a1525 |
refs/heads/main | <repo_name>wuzhuangtai00/PDC-Project<file_sep>/problem_2.sh
g++ Cholesky.cpp -o problem_2 -std=c++11 -mcmodel=large -O2 -fopenmp
<file_sep>/normal.cpp
#include<iostream>
#include<cstdio>
#include<cstdlib>
#include<algorithm>
#include<ctime>
#include<vector>
#include<set>
#include<cmath>
#include<sys/time.h>
#define rep... | 2be971005d068dfd8498776cb08f6d6c0fabe2a3 | [
"Markdown",
"C++",
"Shell"
] | 12 | Shell | wuzhuangtai00/PDC-Project | b2c4247f4805e47c38ba6e5fb49963fae5aff19d | ace465d5def8343a6cee76199fc190a3be18f8d3 |
refs/heads/master | <repo_name>EDWINSOM/ucd-csi2312-pa2<file_sep>/main.cpp
#include <iostream>
#include "Point.h"
#include "Cluster.h"
#include "KMeans.h"
#include "Exceptions.h"
#include <forward_list>
#include <fstream>
#include <sstream>
using namespace std;
using namespace Clustering;
const double KMeans::SCORE_DIFF_THRESHOLD = 10;... | 5d074ffc25f2830d85f0e8275108725224be7ffb | [
"Markdown",
"CMake",
"C++"
] | 11 | C++ | EDWINSOM/ucd-csi2312-pa2 | 3f7ee4e34945463b01134585e8f2c12830429151 | 5464437e079b45e9684c05581b752674f99da342 |
refs/heads/master | <repo_name>Tluyen/git-remote-add-origin-https---github.com-Tluyen-p6<file_sep>/Foothill.java
import java.util.*;
import java.lang.Math;
public class Foothill
{
private final static int MAX_PULL = 3;
private final static String BARS = "Bars";
private final static String CHERRIES = "Cherries";
priv... | 6ee3c65bf890dea27c36cd9c6c86a1ca51a28f00 | [
"Java"
] | 1 | Java | Tluyen/git-remote-add-origin-https---github.com-Tluyen-p6 | 08b4caa41c01d65f67b087cfd5e98310e4c1b326 | 2108e6cd20b98d337e06993c5c9e8a58441c2741 |
refs/heads/master | <file_sep>// Users going to be purely in memory
const users = {};
// function to respond with a json object
const respondJSON = (request, response, status, object) => {
response.writeHead(status, { 'Content-Type': 'application/json' });
response.write(JSON.stringify(object));
response.end();
};
// function to r... | 1c2fe124850e6b49fb4b1b2e3aed57d7973c1a27 | [
"JavaScript"
] | 1 | JavaScript | alc7546/http-api-assignment-ii | 394dbdcc19c6ee2c15d2459f34fba2097df306fe | 81ffced7a5be41c7acddbab7c404c0ec4502812d |
refs/heads/master | <repo_name>Slava37/Hello_world<file_sep>/myFunctions.js
/**
* Возврящает заднный массив в случайном порядкею
* @param {*} myArr
*/
var randomArr = function (myArr) {
for (var count = myArr.length - 1; count > 0; count--) {
var randomNum = Math.floor(Math.random() * (count + 1));
var valueOfT = myArr... | ed420022b82466fd0e7ee83119fb6905b02e9550 | [
"JavaScript"
] | 1 | JavaScript | Slava37/Hello_world | d6b04afcf8c55d7b3c5962fb1439e8a83f8749b6 | ebf7e3ee8b572dc9b2d134ff017ca6e53c57a945 |
refs/heads/master | <repo_name>rbarzegar/webpackpostcssREACTjune2018<file_sep>/postcss.config.js
module.exports = {
plugins: {
"postcss-easy-import": {
prefix: "_",
extensions: ".css"
},
"postcss-nested": {},
"postcss-sassy-mixins": {},
"postcss-simple-vars": {},
"postcss-cssnext": ... | 554a9b86a3266eb1520b049433e5f259a2a4aaad | [
"JavaScript"
] | 1 | JavaScript | rbarzegar/webpackpostcssREACTjune2018 | 5e7da408437efce216cbe51c4ff8718c00cf594e | eefc50359e62584f5c7150d4441983dea23bd242 |
refs/heads/master | <file_sep>using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Ninject;
using Ninject.Web.Common;
using _4tegroup.Mailer.Contracts;
using _4tegroup.Mailer.Service;
using _4tegroup.Mailer.Data;
using _4tegroup.Mailer.DataEF... | b94afb31fa0bd777a0aa08b4ee174b97808288de | [
"JavaScript",
"C#",
"Markdown"
] | 26 | C# | bger/eMailer | 2df124d598374f008915116f421e807f080061c3 | 81356f3ecee227132cb85a9ed968500f054ec9b5 |
refs/heads/master | <file_sep># PySimpleGUI_Snake_Games
A game made from pysimple for my little project
*Warning
Since the keyboard module requires root to access raw input data
there is a second verion using built in buttons called snake_game_linux.py
My goals:
familar to using arrays and extracting the values for meaningful purpos... | 7bf8bf12a42b6c41eeab9951878528f4a4c232a1 | [
"Markdown",
"Python",
"Text"
] | 3 | Markdown | NeoPrint3D/PySimpleGUI_Snake_Games | 226ee7a1951f11a59198f062bac3589af5172323 | d2a501af48651d263d73d68185664c3d5b5cad54 |
refs/heads/master | <file_sep># Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
import grpc
import inference_pb2 as inference__pb2
class InferenceAPIStub(object):
"""The inference api service definition.
"""
def __init__(self, channel):
"""Constructor.
Args:
channel: A grpc.Channel.
... | 9e33f5154809ea48a68ee413390b500ceb669c97 | [
"Python"
] | 2 | Python | Rathna21/tensorrt-inference-server | 97abde96be79384faadf7f8b582d2feca2a97c7f | 72c1d73a880bcb26907aa9572b04197b22142549 |
refs/heads/main | <file_sep>package Eatables;
public class Magnum implements Eatables {
MagnumType type;
public Magnum(){
}
public Magnum(MagnumType type){
this.type=type;
}
public void eat(){
System.out.println("I'm eating a " + type + " Magnum.");
}
public Magn... | c9c9c409ff7b9b04eaf96b0fe7b4c7537c0f1010 | [
"Java"
] | 8 | Java | nikocodings/IceCreamShop | 023473ccc108ea9af8e66ff7fc1b818d3e433c6f | 78ef4f598649790e2a2f39f14f5f564449779930 |
refs/heads/main | <file_sep>const port = 3003;
const bodyParser = require('body-parser')
const express = require('express');
const { modelNames } = require('mongoose');
const server = express()
const allowCors = require('./cors')
//AQUI IREMOS IMPORTA O EXPRESS QUERY INT QUE SERÁ RESPONSÁVEL POR CONVERTER
//O SKIP DA PAGINAÇÃO DOS NOS ... | 2101c9474048cc158edb7749c113463dcb18bf7b | [
"JavaScript"
] | 2 | JavaScript | LucasFbatista/Dashboard_pagamentos | 19588adba147109c0093d09383511489f23426df | 86162b8a73b2b8dda3311bd15b86d565b386a012 |
refs/heads/master | <file_sep>{% extends '_base.html' %}
{% block title %}Courses{% endblock %}
{% block content %}
<h1 class="title is-size-1">Courses</h1>
<hr><br>
{% if course_list %}
{% for course in course_list %}
<h4 class="title is-size-4">{{ course.title }}</h4>
<p>{{ course.description }}</p>
<br>
... | d517202575191a2f50fc2ee54793b40a592a857f | [
"Markdown",
"Python",
"HTML"
] | 7 | HTML | yds05238/django-stripe-connect | 70d616b97d0cd1bc553209b33aa32fa435c1713a | a240addeb03b764f0021fbe635539969e32b6215 |
refs/heads/main | <repo_name>ogulcanpirim/Block-Game<file_sep>/Assets/Scripts/Player.cs
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Player : MonoBehaviour
{
private bool nextBullet;
public float bulletSpeed;
private Vector2 screen;
private float crossLoc;
private floa... | 9f73d7934329e477a733b63900abf8dbe4bec235 | [
"C#"
] | 6 | C# | ogulcanpirim/Block-Game | 06e77c35d8a5ff963e5c9d919b8ea2842e459421 | 70a78bc20f9c943ba477a8c102fdad75211efe27 |
refs/heads/master | <repo_name>caricaMilca/CertificateGeneratorHttps<file_sep>/src/main/java/com/example/servis/CertificateCSRServis.java
package com.example.servis;
import com.example.data.CertificateCSR;
public interface CertificateCSRServis {
CertificateCSR save(CertificateCSR c);
}
<file_sep>/src/main/java/com/example/modeli/Kor... | 5bbb214b41e590caf9ddbf1001cc7c2354a03bc0 | [
"JavaScript",
"Java",
"SQL"
] | 12 | Java | caricaMilca/CertificateGeneratorHttps | 1c2ea86e6f5fd894e74b25ccc31624dac7a99b83 | ff69da11cffe4e09a2a89201440f0d1620f13692 |
refs/heads/master | <file_sep># Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'
target 'MyCalendarApp' do
# Comment the next line if you don't want to use dynamic frameworks
use_frameworks!
# Pods for MyCalendarApp
pod 'FSCalendar', :git=>
'https://github.com/WenchaoD/FSCalendar'
pod 'Ca... | 62636e1cff6dea86e7fb6a3d79d99045a086e175 | [
"Swift",
"Ruby"
] | 4 | Ruby | yoshoda-masato/calendar | 6ce754f97d6f59972aa9484b5b41a836084cff3f | 4285775c86f311a5485559e495f6937c613ac319 |
refs/heads/master | <repo_name>zerolethanh/next.classfunc.com<file_sep>/next.config.js
/**
* Created by ZE on 2017/04/07.
*/
// next.config.js
module.exports = {
/* config options here */
distDir: 'next_build'
}<file_sep>/pages/tepco.js
/**
* Created by ZE on 2017/04/12.
*/
var exec = require('child_process').exec;
import He... | dfd54f774bb128bd407102722927c8ca956df443 | [
"JavaScript"
] | 6 | JavaScript | zerolethanh/next.classfunc.com | 8907f886387a2c090ca87fad59e0a8e84d066036 | 3535aae7c26461893ac294ac9d8ccfcb28080c5e |
refs/heads/master | <file_sep>import React, {useEffect, useState} from "react";
import axios from "axios";
import { Table, Typography, notification, Button } from "antd";
import { Link, useHistory } from "react-router-dom";
const {Text, Title} = Typography;
const Home = () => {
const history = useHistory();
const [userRecipes, s... | f7e76f198392ff4ec1341003838fb0bc0e9c4ed0 | [
"JavaScript",
"Markdown"
] | 4 | JavaScript | suhas1602/recipe-management-system-frontend | b94b9a7f28470e9d2f9212bf19cf54e345677cea | dd379a1c71ef40d7e306e465a4e57e06409cd6bd |
refs/heads/master | <file_sep>//
// NewPasswordViewController.swift
// Swap
//
// Created by <NAME> on 4/13/17.
//
//
import Foundation
class NewPasswordViewController: UIViewController{
@IBOutlet var newPasswordField: UITextField!
@IBOutlet var showPasswordButton: UIButton!
var passwordSecure = true
@I... | 045aa7242414f503e977adb45caeb3c87f0f16f3 | [
"Swift",
"Ruby",
"Markdown"
] | 71 | Swift | eliu2016/Swap | 8439250611d007ab9b2c4bab5e206228988ad647 | 321c65c6b977fe589f2f009a1072ba6de4332d4b |
refs/heads/master | <repo_name>Pankraty/StringBenchmark<file_sep>/Program.cs
using BenchmarkDotNet.Attributes;
using BenchmarkDotNet.Running;
using System;
using System.Text;
namespace StringBenchmark
{
class Program
{
static void Main(string[] args)
{
BenchmarkRunner.Run<CellBenchmark>();
... | 8281b7c671c5939b7b156f3ff43e20a6a604ed4c | [
"Markdown",
"C#"
] | 2 | C# | Pankraty/StringBenchmark | 03c77e0597e8a1eee57a3d95712800b670297dc0 | 1477a3915b366a11de9c8e40a470459a46737021 |
refs/heads/master | <file_sep>import React, { Fragment, useRef } from "react";
import Button from "../UI/Button";
import classes from "./AddMovie.module.css";
const AddMovie = (props) => {
const title = useRef();
const message = useRef();
const releaseDate = useRef();
const submitHandler = (event) => {
event.preventDefault();... | fd197e493f940bd8d253a74b5dd8fe1be6b893b3 | [
"JavaScript"
] | 3 | JavaScript | RihabBerry/React-Movies | cc7eed2a786bc9e923de0e9f0ede9d19fc22407c | f798cd27e03407bcdfb56687a8539cf065a6078b |
refs/heads/master | <file_sep>import React, { Component } from "react";
import ChatBox from "../components/ChatBox/ChatBox";
import {getFriendProfile} from "../actions/friendAction";
import {roomService} from "../services/roomService";
import {setRoomId, fetchMessageHistory} from "../actions/chatAction";
import "../styles/chatRoom.css";
i... | 4214307ced65dbd4b1c275dafb03718fedd304f9 | [
"JavaScript"
] | 34 | JavaScript | tranphuochiep1997/do-you-love-me | 5ba370668f099e2db96e37d70fb98faf5fc1896e | d54321a3e90d71ceaa4726e543c2f20e05d17e4c |
refs/heads/master | <repo_name>amitchhajer/shifu<file_sep>/src/Sequoia/HackBundle/Controller/ImagemenuController.php
<?php
namespace Sequoia\HackBundle\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use FOS\RestBundle\View\View;
use FOS\Rest\Util\Codes;
use Symfony\Component\Security\Core\Exception\AccessDeniedExc... | 5961cf74a82e587954c4a73dcae42521da4fca0b | [
"PHP"
] | 1 | PHP | amitchhajer/shifu | fae400ec63c6c2639ae34bceca99e48a2a695bee | 1e9050c5f74f1a35277ec70b0263afa4316f085b |
refs/heads/master | <repo_name>zzs-web/proxy<file_sep>/README.md
# ZhangZisu.CN Proxy Services
<file_sep>/src/shims-define.d.ts
declare let GIT_HASH: string
declare let GIT_BRANCH: string
declare let BUILD_DATE: string
declare le... | e6cc29aa821430584dc423c342a78ec3fbeb3eff | [
"Markdown",
"TypeScript"
] | 2 | Markdown | zzs-web/proxy | 68b7c39116564bad79b47361af84c9d94073c6d1 | 9cc213b511b3867252d4eda6c02a7595bb93db3d |
refs/heads/master | <repo_name>Gaurav94506/SpringBoot<file_sep>/src/test/java/com/citiustech/contact/controller/ViewControllerTest.java
package com.citiustech.contact.controller;
import org.junit.Before;
import org.junit.Test;
import org.mockito.InjectMocks;
import org.mockito.Mock;
import org.mockito.MockitoAnnotations;
import org.... | 800f07cb80f198da888ca12be7c95e8d005ea03e | [
"Java"
] | 4 | Java | Gaurav94506/SpringBoot | 3eeabe1233855880cdf6254f4b7b80d5db41cb1b | ccd82a9d020c180a9b44ed90e08616360c2242bb |
refs/heads/master | <repo_name>dragon6776/angular_mvc<file_sep>/angular_mvc/Controllers/API/CategoriesController.cs
using System;
using System.Collections.Generic;
using System.Data;
using System.Data.Entity;
using System.Data.Entity.Infrastructure;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
using ... | fbe33e0ecfabb25d83a5924d7d8d566282a3848c | [
"JavaScript",
"C#"
] | 2 | C# | dragon6776/angular_mvc | d57379fd8b987c747aa5ee50f9a04e71d49baaea | 48986e45820cac4c610f9e77f4f7ddffd6eb7eb7 |
refs/heads/master | <file_sep>\name{addDays}
\alias{addDays}
\title{add days}
\usage{
addDays(dt, days)
}
\arguments{
\item{dt}{a Date or timeDate object}
\item{days}{to be added}
}
\value{
a Date or timeDate object
}
\description{
add days to timeDate or Date objects
}
\examples{
d1 <- myDate('23-10-2010')
d2 <- addDays(d1, 1)... | 545ff826ea862c6881e83125af4d38f47db8d1c0 | [
"R"
] | 13 | R | pdiazs/R-Package-empfin | 4ce1ab370c07ea31ec86d197417507fc51916266 | d5dd101035d58f1ced58990184ef9d59c795e8d1 |
refs/heads/master | <repo_name>linhcao1611/CPSC-223J---Java-Workshop<file_sep>/Sphere/sphereui.java
// Programmer's name: <NAME>
// Email address: <EMAIL>
// Course: CPSC 223j
// Assignment number: 1
// Due date: Sept 14, 2015
// Title: Sphere Computations
// Purpose: Find the ar... | d0a0134efd8a2c4c11b77e8433b7693a841c4f13 | [
"Java"
] | 2 | Java | linhcao1611/CPSC-223J---Java-Workshop | aeee4d4ecd91fd72e91cb5899925d8872fdbb8bb | 866fd59e93c10c90b85e0fe5146da82b5627710a |
refs/heads/master | <file_sep>__version__ = '0.8.0.dev734'
<file_sep>#include <string>
#include <iostream>
#include <specex_message.h>
#include <specex_spot.h>
#include <specex_pyio.h>
#include <specex_pyimage.h>
#include <specex_psf_proc.h>
using namespace std;
int specex::PyIO::load_psf(specex::PyOptions opts, specex::PyPSF& pypsf){
... | 07893a8c600e91a83001e41b1ae1e31adda1fafc | [
"Python",
"C++"
] | 2 | Python | tskisner/specex | c5ae74a85305395cdd3cb4a3ac966bef4eacd8b2 | a05034437506009cb2455fceee25700868fd9759 |
refs/heads/master | <file_sep># -*- coding: utf-8 -*-
"""
Created on Mon Mar 25 19:25:02 2019
@author: <NAME>
"""
import os
import pandas as pd
import numpy as np
import gc
import matplotlib.pyplot as plt
from scipy import stats
gc.collect()
os.chdir('C:/Users/YIFAN DANG/Desktop/Datathon')
bikeshare=pd.read_csv('bikesha... | a40319ad88502e28b8bc41bcc2376b0a0bfb0cb0 | [
"Markdown",
"Python"
] | 2 | Python | ydang1/Datathon-DC-bikeshare-and-Taxi | 973ecba4fc9b1df0dd2a24a4a1e7f7a668dffc6b | 2551acbf8b06b8b86a8d269de375caed8f16247e |
refs/heads/master | <repo_name>zfxu/EigenPro2<file_sep>/eigenpro.py
import numpy as np
import scipy as sp
import tensorflow as tf
import time
from keras import backend as K
from keras.layers import Dense, Input, Lambda
from keras.models import Model
import utils
from backend_extra import scatter_update
from layers import KernelEmbedding... | dac89a479ab842d41178fe6c73067f7af44955a0 | [
"Python"
] | 1 | Python | zfxu/EigenPro2 | 5286d0c6c30cce04e2bae095f8f8b82a315cae8f | 49c42601b69873b73efb33ed97d9e541948094f6 |
refs/heads/master | <repo_name>purevanilla-es/Gemmy<file_sep>/src/ovh/quiquelhappy/mcplugins/gemmy/drops/blocks.java
package ovh.quiquelhappy.mcplugins.gemmy.drops;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.Objects;
import net.md_5.bungee.api.chat.TextComponent;
import org.bukkit.Loca... | d798efe97d302c6c4cdf2bb48d85a08b14f40b82 | [
"Java"
] | 3 | Java | purevanilla-es/Gemmy | 00b8ef12130ffa28e2ecaf6a45ddb40eb9738909 | 1c808a409c0102c6aad8a1b3bfbff2b31dbbfe5f |
refs/heads/master | <repo_name>haoxiao0107/SimpleApp<file_sep>/app/src/main/java/com/hx/simpleapp/ui/gan/fragment/ArticleFragment.java
package com.hx.simpleapp.ui.gan.fragment;
import android.support.annotation.NonNull;
import android.view.View;
import android.widget.AdapterView;
import com.hx.simpleapp.AppContext;
import com.hx.simplea... | 7aec4146166c6970413acaca22ce98468993a82f | [
"Java",
"Gradle"
] | 4 | Java | haoxiao0107/SimpleApp | 98c0c00549436253161d692c8ec6e4a5e997556f | 3eb8b277dd850b9719d1ae7fd08a86d3e61c680c |
refs/heads/master | <repo_name>BartlomiejFrankow/First-compass<file_sep>/app/src/main/java/com/example/firstcompas/dialog/NewDirectionDialogVM.kt
package com.example.firstcompas.dialog
import android.content.Context
import androidx.databinding.ObservableField
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
i... | f7db96cbc23827da9d00659081175c8559b0590f | [
"Kotlin"
] | 5 | Kotlin | BartlomiejFrankow/First-compass | ca99b1573c83153a64e8a4ea3311ac4e55acde73 | 308a5ca9219018223c65360f456a2625ffcef683 |
refs/heads/master | <repo_name>araaaaan/apartment-system<file_sep>/api/publics/tests.py
import json
from rest_framework.test import APITestCase
from rest_framework import status
from api.publics.models import User
class PublicTest(APITestCase):
def setUp(self):
User.objects.create(
floor = "1004",
... | 502e5326da29aafa10e273d0a09b1e2858fa2924 | [
"Markdown",
"Python",
"Dockerfile"
] | 10 | Python | araaaaan/apartment-system | dc8986e73ef9b34ab0744ea9915e2057ce8dea1b | 8f69e773d60f45a689cedbe427183661cad3e3ff |
refs/heads/master | <repo_name>heeed/microbit_morse<file_sep>/morse.py
# Add your Python code here. E.g.
from microbit import *
speed = 300
morse={'a':"01",'b':"1000",'c':"1010",'d':"100",'e':"0",'f':"0010",'g':"110",'h':"0000",'i':"00",'j':"0111",'k':"101",'l':"0100",'m':"11",'n':"10",'o':"111",'p':"0110",'q':"1101",'r':"010",'s':"000",... | 80fa52214e914facb9e3b56a8cb43f79a17c2163 | [
"Markdown",
"Python"
] | 2 | Python | heeed/microbit_morse | 1ead3fb97337aa2a646b1d662a74d712d0925e42 | 3ebb2b9c515d755c021442605123c3f3dbb445aa |
refs/heads/master | <repo_name>ismaiel-nosairat/EasySheet<file_sep>/src/main/java/com/ismaiel/easysheet/exceptions/InternalServerException.java
package com.ismaiel.easysheet.exceptions;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.ResponseStatus;
@ResponseStatus(HttpStatus.INTERNAL_SERVER_E... | 081617b70e2796b02b17215620f62e30bd3a5cb5 | [
"Java",
"INI"
] | 11 | Java | ismaiel-nosairat/EasySheet | 7e3601fbee742436ffab988136a2ef88bf2417c9 | 1eba95d0947298f8b877326b381575ed22cdfe71 |
refs/heads/master | <file_sep>//
// LeptirFrameTests.swift
// LeptirFrameTests
//
// Created by jakouk on 2017. 7. 3..
// Copyright © 2017년 jakouk. All rights reserved.
//
import XCTest
import LeptirFrame
class LeptirFrameTests: XCTestCase {
func testViewLeft_get() {
let view = UIView()
view.frame.origin.x = 150
... | 659f3f53dde5aecff886355097bde1fd69ab5ffa | [
"Swift",
"Markdown"
] | 2 | Swift | jakouk/LeptirFrame | 9dd0a9da489930a3d3cf00a200b1b9caba3734c2 | 0973f93a2d0ec4d209bf2cbfecb575205801b99a |
refs/heads/master | <repo_name>Kocal/validator<file_sep>/README.md
Validator
=========
[](https://travis-ci.org/Kocal/validator)
A PHP values validator that makes you able to use the great [Laravel Validator](https://laravel.com/docs/master/validation),
but outside ... | 5c3ac75c6945de550ee296c57aeef1fa812f4c5a | [
"Markdown",
"PHP"
] | 3 | Markdown | Kocal/validator | bb89dabc90101de7a1cb56582c0ec008b4a7d949 | 3b6ff3ee3bf22cbae73b1a408e45189be7fb43c5 |
refs/heads/master | <file_sep>import numpy as np
training_inputs = np.array([[0,0,0,0,0,0,0,0,0,0],
[0,1,0,0,1,1,0,1,0,0],
[1,0,1,1,0,1,1,1,1,1],
[1,0,1,0,1,0,1,1,0,0],
[1,0,0,0,1,1,0,0,1,1],
... | d98dcfda4fc6e11fd92b159aad81f8fee98a768b | [
"Markdown",
"Python"
] | 2 | Python | MSJawad/perceptron | fe7be01767b5e25206e6e38825c0584272722b8b | 96cf5e33e4f4bf9b71ec5d27e4227b23cbb9ed71 |
refs/heads/master | <file_sep>
// Custom store variables go here
var publicSpreadsheetUrl = 'https://docs.google.com/spreadsheets/d/1KO--qj4tmVaqSnxhbgHhlx_ttqviLBzct5e9sYgDBNU/edit?usp=sharing';
var publicSpreadsheetUrl = 'https://cors-anywhere.herokuapp.com/https://docs.google.com/spreadsheets/d/e/2PACX-1vQcaCBt2SjGSZHUqV9TyDoV66FyYZ... | a0dd9d894ec2ee9cc90305f6dd6294a12d84ff2d | [
"JavaScript"
] | 1 | JavaScript | rapipedido/rapipedido.github.io | cc86ae4d7c6199cd8a6e4aa6b59d6e0f84808db8 | ce376280abfba514e24b4b25eb6b092d1dc5de77 |
refs/heads/master | <repo_name>user11681/crypto<file_sep>/charshift
#!node
const numshift = require("./numshift").numshift;
exports.charshift = function(char, shift) {
return numshift(char, (shift.toUpperCase().charCodeAt() - 65) % 26);
}
if (require.main === module) {
if (process.argv.length < 4) {
throw `required 2 arg... | 496a5e7e3b4f826fac0c9323fd7fdd4ea1f49fdf | [
"JavaScript"
] | 2 | JavaScript | user11681/crypto | 632434d7b985fbe2e49b02aefe2a2ff208aaa6d4 | 898993a3dd7af0392eb0db2a0f5f5329b02ffe1a |
refs/heads/master | <file_sep>"""" MQTT MongoDB Logger """
# Importing libraries
import begin
import logging
import logging.config
import mqtt.MQTTClient as mqtt
import mongodb.MongoDBStore as mongo
import socket
socket.getaddrinfo('localhost', 8080)
# Event logging configuration file.
logging.config.fileConfig('logging.conf')
@begi... | 97e1908ec9bd34cace9e77e800d1e9c592731773 | [
"Markdown",
"Python"
] | 4 | Python | costaruan/mqtt-mongo-logger-in-python | fbaa798fd1e33b5b3d2991cbbc6e56d26f3a2b8c | f9dfec620314c6f87b41dd8be42dd2b541a81d0a |
refs/heads/master | <file_sep>#ifndef ACCOUNT_H
#define ACCOUNT_H
#include <stdio.h>
#include <iostream>
#include <fstream>
#include <string>
#include <typeinfo>
#include <sstream>
#include <limits>
using namespace std;
class Account{
private:
bool userExists;
string inputCheck;
int input;
int balance;
string usern... | 6d347683b86abf3ba872f3f5c52803b2fd154536 | [
"Makefile",
"C++"
] | 6 | C++ | cmparks10/Bank-Teller-Machine | eb7b7dc7a40ea8ccdcb28b1eb1ab75b76489f914 | 5b5f3577332ef0de59e4b1991617fb695e0e87d7 |
refs/heads/master | <file_sep>
var app = angular.module('myApp', []);
app.controller('myCtrl', function($scope,$http) {
/*$scope.firstName = "Umesh";
$scope.lastName = "Joshi";
$scope.fullName = function(){
return $scope.firstName.toUpperCase()+" "+ $scope.lastName;
}*/
$scope.sortDir = false;
$http.get("http://services.groupk... | 3bda58f29357a8b5abe13e52d6e9ad70c7603e70 | [
"JavaScript"
] | 1 | JavaScript | umesh2311/FirstAngularApp | f89a7cf8cb245dbad48bbf32e5f1ba2816b08cd0 | c86174f3fa50ed0ea7a29d586e69af6c9103c989 |
refs/heads/master | <repo_name>Light413/kk<file_sep>/Podfile
platform :ios,7.0
target "kantu" do
pod 'AFNetworking', '3.1.0'
pod 'Masonry', '~> 1.0.1'
pod 'LKDBHelper', '~> 2.3.1'
end
<file_sep>/kantu/constants.h
//
// constants.h
// kantu
//
// Created by gener on 16/7/19.
// Copyright © 2016年 Light. All rights reserved.
//
#ifnde... | a58301fd86a0a934147acfd8acf4856e08f9fabc | [
"C",
"Ruby"
] | 2 | Ruby | Light413/kk | c353f823cbc4c43318052900c2ab0b48b06e861a | cbbeedd5681a8ff21487f1c9da55c5e6c3cfb68b |
refs/heads/master | <repo_name>Feronik/django-project<file_sep>/weather/views.py
from django.shortcuts import render
from weather.models import City
from weather.forms import CityForm
import requests
appid = "b69ed4124e0f156cae7e3b36ee2dda57"
def weather(request):
form = CityForm(request.POST)
if request.method == "POST" and for... | cd9a51623cd255f6ea8c891faa2e1d13a449c323 | [
"Python"
] | 3 | Python | Feronik/django-project | c98f962fdbc4b7cc865b2d2e7f8a299549f911b3 | a6330a85bafc2ab7ec232cad86b78183c9caa144 |
refs/heads/master | <repo_name>ravikanthAtGeospark/GO-JEKiOS<file_sep>/GO-JEKiOS/Utility/GoUtility.swift
//
// GoUtility.swift
// GO-JEKiOS
//
// Created by GeoSpark Mac #1 on 30/05/19.
// Copyright © 2019 GeoSpark, Inc. All rights reserved.
//
import Foundation
<file_sep>/GO-JEKiOS/DataManager/DataManager.swift
//
// DataManager.sw... | 7c663cf700d34ef2ff9810e008e608960d6e7b25 | [
"Swift"
] | 2 | Swift | ravikanthAtGeospark/GO-JEKiOS | 72c53d37819faad5dc4a624522e4f6ce5c420714 | b0781dd13e6a41952cda5148ce7dc773eb466f29 |
refs/heads/master | <repo_name>what1995/2DGP-PROJECT<file_sep>/Project/Reimu/Reimu-Damage-Animation.py
from pico2d import *
open_canvas()
BgShrine = load_image('Hakurei Shrine.png')
Player_X =200
Enemy_X=600
All_Y=200
ReimuDamage = load_image('ReimuDamage-Motion.png')
def Reimu_Damage():
frame = 0
cheak=0
while(c... | eed9b84ce5ce833af3aca85e703fcbd57ad15f4b | [
"Python"
] | 49 | Python | what1995/2DGP-PROJECT | 38c3567cd574988ec34dcb9b207ff4511888d567 | 561dc6a65b6f0870484116830f0d3809ff2202f6 |
refs/heads/master | <file_sep>#pragma once
#ifndef __Pixel__
#define __Pixel__
#include <Eigen/Dense>
class Pixel
{
public:
Pixel();
Pixel(float iR, float iG, float iB);
~Pixel();
float r, g, b;
void Average(float newR, float newG, float newB);
void AveragePx(Pixel other);
bool HasColor();
private:
};
#endif
<file_sep... | 4bded662bc785d60823dca08ea5fcc6d5e8c85e6 | [
"C",
"Makefile",
"C++"
] | 35 | C++ | aquira246/Parallel_Ray_Tracer | 9e53604a2e3cf2d3c2283e443426721edd290c4f | fe1311b21cdbf9c1412e5cade18b9356217b65f2 |
refs/heads/master | <file_sep>FROM ubuntu
ARG USER="unsunghero"
ARG EMAIL="<EMAIL>"
RUN apt-get update &&\
apt-get -y install git &&\
mkdir /root/.ssh
RUN git config --global user.name $USER &&\
git config --global user.email $EMAIL
RUN apt-get install -y vim
<file_sep># Cloudant shell script
[IBM Cloudant](https://www.ibm.com/clou... | c448f87b1f38585389de1143cafec64c78f388a7 | [
"Markdown",
"Dockerfile",
"Shell"
] | 5 | Dockerfile | zerogvt/toolbox | ad1f4a7fc4a396bfc26c165c1d674d193d07f1c7 | 17a705f9de5aa2c0a9a7e9b92f0f867f5364dd66 |
refs/heads/master | <file_sep>// Generated from /Users/rahulprajapati/Google Drive/CSCE Courses/CSCE 322/Homework/1/startercode/part1/csce322hmwrk01prt01.g4 by ANTLR 4.8
import org.antlr.v4.runtime.Lexer;
import org.antlr.v4.runtime.CharStream;
import org.antlr.v4.runtime.Token;
import org.antlr.v4.runtime.TokenStream;
import org.antlr.v4... | d724347cd823a35c16769708aa4a7c355ef6a498 | [
"Markdown",
"Java",
"JavaScript"
] | 7 | Java | LordVoldemort28/multilanguage-boss-puzzle | e6b029dfd6bb6283e95436beb4c0c979a8781c74 | 7f5b37ad7fcbf412fc0bead1a3497f5727c9b51b |
refs/heads/main | <file_sep>import mysql.connector
#aller sur http://www.maxifoot.fr/calendrier-ligue-1-france.htm
date = str(input("Entrez une date (ex: 01/01/2021): "))
con = mysql.connector.connect(host='127.0.0.1', database='programme', user='root', password='')
cursor = con.cursor()
cursor.execute(""" SELECT * FROM m... | efd2e012f8318dc84051ff52e9769e21259682bb | [
"Python"
] | 2 | Python | sidy92/Projet | 5f0410adf980339cf92331a76e4c2e790445a615 | 3b0c14352e5887ab8f09cdf19efd41784675932d |
refs/heads/master | <repo_name>wtk34500000/spring-annotation-demo<file_sep>/src/data.properties
Today is a nice day
Today is a bad day
Today is a worse day
Today is a wonderful day
today is a awesome day
<file_sep>/src/sport.properties
foo.email=<EMAIL>
foo.team=nyc team<file_sep>/src/com/springdemo/WeeklyFortuneService.java
package com.s... | c6756bdae8376654d9e3fa72b56462bda4540bea | [
"Java",
"INI"
] | 4 | INI | wtk34500000/spring-annotation-demo | af9a161fe773a41464870ab70de7cc6dbb3778e4 | 1e0736333a5cb1d63b649b7aed8cb80a46114920 |
refs/heads/master | <repo_name>garyyeap/easy-fullscreen<file_sep>/README.md
# easy-fullscreen: Fullscreen API wrapper
### API and Usage
```javascript
import Fullscreen from 'easy-fullscreen';
var fullscreenElement = doucument.getElementById('fullscreen-container');
var fullscreenButton = document.getElementById('button');
// check if f... | 0ac4e70b540d7b13fcac15b9c2db01f045d10056 | [
"Markdown",
"TypeScript"
] | 2 | Markdown | garyyeap/easy-fullscreen | 989c632a32b0af3989f1ea82c343d28df7d564d0 | e6d4984aac378eea641275c00facd14f8af837cf |
refs/heads/master | <file_sep>\name{RNentropy-package}
\alias{RNentropy-package}
\docType{package}
\title{
\packageTitle{RNentropy}
}
\description{
\packageDescription{RNentropy}
}
\author{
\packageAuthor{RNentropy}
Maintainer: \packageMaintainer{RNentropy}
}
\references{doi = {10.1093/nar/gky055}
doi = {10.1007/978-1-0716-1307-8_6}
}
\k... | 3fc4ed6a6c1559e2359274520a4606d7298333d2 | [
"Markdown",
"R"
] | 19 | R | cran/RNentropy | 8d0a617d24b64e139771e2f62873c0f7f51fa851 | da02f9c70408d1a794566ce03b1a6ed5ed9e338d |
refs/heads/master | <repo_name>nickolaevv/avito-properties<file_sep>/src/App.js
import React, {Component} from 'react';
import PropertiesList from './components/PropertiesList';
import FullPropertyInfo from './components/FullPropertyInfo';
import { BrowserRouter as Router, Route, Switch } from 'react-router-dom';
class App extends Compon... | 71b38789a5cd58128b3d995235000c1644b9e22b | [
"JavaScript"
] | 5 | JavaScript | nickolaevv/avito-properties | 39519c67814d85b097ac67102e85745c4ad21cdf | a4d725cf02bafbfe5ba4879f42196938bce6d2d2 |
refs/heads/master | <file_sep>var calcEngine = (function () {
var leftVal = 0,
rightVal = 0,
opCode = '',
result = 0;
var execute = function () {
switch (opCode) {
case '+':
result = leftVal + rightVal;
break;
case '-':
result = leftVal - rightVal;
break;
case '*':
result = leftVal * rightVal;
... | 3510dacdbc40c23ce4b71ccdc9479ddbdcefc55b | [
"JavaScript"
] | 1 | JavaScript | apexpred/freecodecamp-calculator | dba748d07ec58bbb11d923a214a23a93530df9ac | db7d34961d44a2460db2a8680dc3a10e07c2bafa |
refs/heads/main | <repo_name>leenaAhmed/GPBackEnd<file_sep>/models/Meetings.js
const mongoose = require("mongoose");
// const date = require("date-and-time");
const slugify = require("slugify");
const MeetingsSchema = new mongoose.Schema({
name: {
type: String,
required: [true, "Please add a name"],
maxlength: [50, "Name ... | 8e4eef259a62904eccb585e2d6045ad82c8f89d8 | [
"JavaScript"
] | 2 | JavaScript | leenaAhmed/GPBackEnd | 39e799415a2f0f2a872603f8b605b6fc22462c2c | 14a83218c68c318511c5ad09b1d1c3805e78092d |
refs/heads/master | <repo_name>anteamartin/canvas-game<file_sep>/js/obstacle.js
function Obstacle(game) {
this.game = game;
//Math.floor(Math.random()*(max-min+1)*min)
this.x = this.game.canvas.width;
this.y = 650;
this.w = 50;
this.h = -80;
}
Obstacle.prototype.draw = function() {
this.game.ctx.fillStyle = "brown";
this.g... | a15d171c87e2ee5e4e2e1a66ec3b42fcb8d2d18c | [
"JavaScript"
] | 3 | JavaScript | anteamartin/canvas-game | 1dc248337002aa7a165a4e0b225b79cac67f4e7f | f3731a1a9b08236f2f0246cf7e0301434e95d07e |
refs/heads/master | <file_sep>#include "net/Connector.h"
#include "tools/BlockingQueue.h"
#include "tools/ThreadPool.h"
#include "tools/Logger.h"
#include <boost/asio.hpp>
#include <functional>
#include <memory>
using namespace std;
using namespace Prometheus;
using namespace boost::asio;
class MockHost{
public:
MockHost(BlockingQue... | 844994ceec8d46243929dcec2135505469800bc9 | [
"Markdown",
"CMake",
"C++"
] | 40 | C++ | iodinetech/PrometheusMain | e4abf5e57a967a2ce7fc4043da01ad11836bd5d3 | 691957e3a2935b1abeb760e606a06fbc08ab151b |
refs/heads/master | <repo_name>SenhorPavan/CadastroBanco<file_sep>/src/View/TelaCadastro.java
package View;
import DAO.UsuarioDAO;
import Models.Usuario;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import javax.swing.JOptionPane;
import javax.swing.table.DefaultTableModel;
import projetobanc... | bf3d6b8600faccd89c9b1e1d55773d872147e4ba | [
"Java"
] | 1 | Java | SenhorPavan/CadastroBanco | 1468ad814d2d330503e5de13285592a988a2e7f5 | 4a503b9d99e0a52850f9c972d3363fb2c6a97693 |
refs/heads/master | <file_sep>tutorial_osx
============
Hello swift
<file_sep>//
// AppDelegate.swift
// Lession 62
//
// Created by Astin on 12/23/14.
// Copyright (c) 2014 Astin. All rights reserved.
//
import Cocoa
@NSApplicationMain
class AppDelegate: NSObject, NSApplicationDelegate {
func applicationDidFinishLaunching(a... | 22dd629c8c0a804cba005a7bbc5862e294c37ec2 | [
"Markdown",
"Swift"
] | 2 | Markdown | AstinCHOI/tutorial_osx | d3d1cb72ed45cb3d92c528fd70b8b72d07158129 | e73596b6e08557150f93be2f0951f99ce9c12a96 |
refs/heads/master | <repo_name>erinabbey/techshop<file_sep>/src/component/Cart/Cart.jsx
import React from 'react'
import {Container, Typography, Button, Grid} from '@material-ui/core'
import useStyles from './style'
import CartItem from './CartItem/CartItem'
import {Link} from 'react-router-dom'
const Cart = ({cart, handleUpdateCartQty, ... | 698cdf46d78370f8720c89cfc0c0df1a87314484 | [
"JavaScript"
] | 4 | JavaScript | erinabbey/techshop | a39309fa882997db577724a2f3555d4cac09f150 | 607b20dd56a694e305a2dfdff582eacbbc2b2027 |
refs/heads/master | <file_sep># recon by omethasan
<file_sep>#!/bin/sh
red="`tput setaf 1`"
norm="`tput sgr0`"
bold="`tput bold`"
green="`tput setaf 2`"
echo " ___ ___ __ _____ __ "
echo " / _ \___ ___/ (_)______ ____/ /_ / __(_)__ ___/ /__ ____"
echo "${red}${bold} / , _/ -_) _ / / __/ -_) __/ _... | cef0a58b0da2ce9947118288ad942e6e1e53f0e3 | [
"Markdown",
"Shell"
] | 2 | Markdown | donomethasan/recon | 93548553f06cc716fd4ffc6730dbe3a37d1bcc63 | 34cec064cf3ee0a5909339644518a5a05b0f26b4 |
refs/heads/master | <file_sep>from rest_framework import serializers
from like.models import Like
from .models import Post
from django.db.models import Sum
class PostSerializer(serializers.ModelSerializer):
like = serializers.SerializerMethodField()
def get_like(self, obj):
if type(obj) is Post:
if obj._meta is Post._meta:
l... | 6597a0bf62c0c51a766c2a94094c3cba86f87f1b | [
"Markdown",
"Python",
"Text"
] | 50 | Python | vahidtwo/simpleSocialSite | 40d971f04b7127811b7e277ddb3068fb451e9574 | cc803917989855cc9c101be97aeee0fc833d547c |
refs/heads/master | <repo_name>swimson/Automaton<file_sep>/src/Swimson/Automaton/Transition/Transition.php
<?php
namespace Swimson\Automaton\Transition;
use Swimson\Automaton\State\StateInterface;
class Transition implements TransitionInterface
{
/**
* @var StateInterface
*/
private $source;
/**
* @var strin... | 3b3d6813644341abbb496984857e29600b0bd57c | [
"Markdown",
"PHP"
] | 13 | PHP | swimson/Automaton | 4c1447214fe574ef4437c5eda3f1c27cf2af11b5 | d990dc53b55732cf9f6ca5608e249a58f39b2ada |
refs/heads/master | <file_sep>logging.level.org.springframework=ERROR
logging.level.com.tenpin=ERROR
spring.main.banner-mode=off
game.path=src/test/resources/game.txt<file_sep>package com.tenpin.model;
import org.junit.Assert;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.InjectMocks;
import org.mockito.junit... | faa31964f8272bb307843196cf942dc0e688a643 | [
"Markdown",
"Makefile",
"INI",
"Java",
"Dockerfile"
] | 9 | INI | JoseGC789/Bowling-Scoreboard | 0bc8205c811d46fe4a24a768bd1c96aed4e8d77f | 8e332f31a315c855af4f9a1b101c597a1da1dd50 |
refs/heads/master | <repo_name>86okimasa/furima-31128<file_sep>/spec/factories/item_purchases.rb
FactoryBot.define do
factory :item_purchase do
token {"tok_<PASSWORD>"}
postal_code {'123-4567'}
prefecture_id {'1'}
municipalities {'大阪市'}
address {'1-1'}
building {'ビル'}
phone_number {'09000000000'}
end
end<fi... | 2bb86f481506dc349d95e2189067ad7ee74acab8 | [
"JavaScript",
"Ruby"
] | 8 | Ruby | 86okimasa/furima-31128 | ddb3fb4b64b407c221c923b9f409d9ffbc38cc0f | e828c3a7fa653783b60a778a40e8e0af9ed650b7 |
refs/heads/master | <file_sep><?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.baeldung<... | e9f28626eda0c8f49963ccaa65ddfef8b47b02ca | [
"Java",
"Maven POM"
] | 2 | Maven POM | dasvipin5585/tutorials | b14575f367feb1728d4fe511380de382dc666ee5 | b6818ac40e9f30b09837c0754e3442a7daa3a928 |
refs/heads/master | <file_sep>import pandas as pd
import matplotlib.pyplot as plt
from Carro import Carro
def read1(nome):
arq = open(nome, "r")
l = arq.readlines()
modelo = l[0]
ano = l[3]
km = l[5]
cor = l[7]
# print(l[8])
if l[8][:6] == "PORTAS":
val = l[10]
# print(val)
aux = l... | b555099d9fbf152a95d982461f19b30abdd661b9 | [
"Python"
] | 2 | Python | danielpachec0/projetoMonitoriaIp | 7575dfbec3c9ef73b7c1827d82069109faa347ee | bb9daef9d2a4fe29c0cba4060b2b521b97e74c8d |
refs/heads/master | <file_sep>export const BASEURL = 'http://localhost:8443/'
export const URL_PRODUCT_LIST = BASEURL + "productlist"<file_sep>import { connect } from 'react-redux'
import App from '../components/App';
import { fetchProduct } from '../modules/products';
export default connect(
(state) => ({
}),
(dispatch) => ... | 9661e63f68c688d2797ab79ff699256dcdd7e05d | [
"JavaScript",
"Markdown"
] | 6 | JavaScript | ThantsinAg19/my_product_frontend | 6aad4a73440a1a46b7db0b988ce33cc92a816e75 | d3792a05dd9f20cf99c72cf43f929ed54a1ac35b |
refs/heads/master | <repo_name>inaka/katana-test<file_sep>/README.md
# katana-test
# ⚠ THIS REPO IS ARCHIVED ⚠️
Instead of using this tool, consider adding a `test` alias to your `rebar.config`, like this:
```erlang
{alias,
[{test, [compile, format, lint, hank, dialyzer, {ct, "--verbose"}, cover, edoc]}]}.
```
That way, you can run `... | c1c7138b5914d12592e44e277caca8f9d2d8217a | [
"Markdown",
"Python"
] | 3 | Markdown | inaka/katana-test | 4ec9be2202b2d0466f84f3ba96e9aedb9fb05bf5 | cfd522334babdb05589ef79640fb8e022fbdcb11 |
refs/heads/master | <repo_name>casualarmsbeta/casualarmsbeta.github.io<file_sep>/data/support.js
---
---
// Change this when the community administration enters/leaves DST!
var communityObservesDST = true; // true or false
// End DST change region
var staticDataJSON = {% include_relative static.json %};
var eventGames = stati... | 0aee8f8bb0315d28ac01655be3278c6cf187ff5d | [
"JavaScript"
] | 1 | JavaScript | casualarmsbeta/casualarmsbeta.github.io | 7036c90d4abc41e6b1b76957a42bcc2b98af1806 | e55c223b7da01980db84b6a70d07e6c154746fbd |
refs/heads/master | <file_sep>import { ADD, CHANGE, DELETE } from './const';
import { ITodoState } from '../../interface';
const initState: ITodoState = {
todoList: []
}
export const Todo = (state = initState, action: any) => {
const index = state.todoList.findIndex(item => item.id === action.id);
switch (action.type) {
... | 3598af8a1c6896cb6a3aad7df406773a988ceca8 | [
"TypeScript"
] | 4 | TypeScript | baokenan/ts-todo-bkn | a39211cef77cf2b5f84394bc73a20b86053269b4 | 1a9fa53d24079824ea6cdde07b3116f2957fdb90 |
refs/heads/master | <file_sep><?php
$groupswithaccess="ALL";
require_once("slpw/sitelokpw.php");
require_once("slpw/slupdateform.php");
?>
<!doctype html>
<html class="no-js" lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="viewport" content="width=device-width, initi... | b47665163c7befea772a9b8bff5653bc83e6852d | [
"PHP"
] | 1 | PHP | adjustyourtone/cpMembers | f3275c1ba6fcd53b6f273a6fdd07262d2638d661 | b582b5430f1ec7fcac287e4fbd9fbe3a810bc51d |
refs/heads/master | <file_sep>let a = 9;
let b = a*2;
console.log(b);
| fa4743ea2fb9ee3274fb9f6eca087533c4b7190f | [
"JavaScript"
] | 1 | JavaScript | gagansidhu09/4april | 6dfa435beb8eee7b5d0aef150dcf28bead4f7450 | 59e072b928eadc8727f42e6d8be7c9a5dcd6f13e |
refs/heads/master | <file_sep>rootProject.name = 'rabbit-publisher'
<file_sep>package com.publisher.controller;
import com.publisher.service.OrderService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframewor... | bc7fb3ac4a9fcba4972fdf48649982d354e2b62e | [
"Java",
"Gradle"
] | 5 | Gradle | mdsagir/spring-cloud-stream-rabbimq | e7af877fe3ac581102cde36412b8fa8edacb7ab9 | 8e9ebb3c453bb5c53b4084847e3518a350d7f654 |
refs/heads/master | <file_sep>#ifndef H_HEADER_INCLUDED
#define H_HEADER_INCLUDED
#include <iostream>
class Rational {
public:
bool nan;
int numerator;
int denumerator;
//constructors
Rational();
Rational(int);
Rational(int, int);
//functions
int gcd(int, int); // to realization the function reduce
... | 403db154b9b90cd1b0a42049b211ae5ae4bb4d63 | [
"C++"
] | 3 | C++ | natali1821/Rationals | e3ab55493182b91df0a7272c823dca4648aac30a | 4ff650b5983f6d431c5629009ed2c5943c5d293d |
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 projektsale2;
import java.awt.Color;
import java.awt.Font;
import java.awt.event.MouseListener;
import java.... | 36bd3bd9ea454f26b0dc78a61395257371110b7e | [
"Markdown",
"Java"
] | 8 | Java | JakGor/RoomBooking | ef58a9d095adfcb5a774c4f96d4fe7d5dd150956 | 4b01353903d17293e91431cf86926d5f6d223854 |
refs/heads/master | <file_sep># Simple Login System
A simple login system web application developed using php [laravel](https://laravel.com) framework.
### Application features
* Google login integrated api
* Receiving email for verification
## Getting Started
### Prerequisites
Following steps assume that you have installed
1. [Oracl... | 2962452ee46a9f9f868cbd403bbbe13b37c63373 | [
"Markdown",
"PHP"
] | 2 | Markdown | islambayoumy/LoginSystem | f9967f56f80943e93b5ca211c14b1039193100e2 | 5407502b2d215776ce8a3d2b37defcbf3bd4a3bf |
refs/heads/master | <repo_name>EnoroF/gmyqq<file_sep>/src/gMystar.cc
#include "gMystar.h"
#include <pthread.h>
/* static member */
Mystar *gMystar::mystar;
bool gMystar::flag;
Glib::RefPtr<Gtk::StatusIcon> gMystar::status_icon;
Window *gMystar::MainWindow;
CheckButton *gMystar::autologin_checkbutton;
Button *gMystar::connect_button;
Label... | d6c4ae9246401ee68fe9b14d53e5abe1401b3af8 | [
"C",
"Python",
"Makefile",
"C++"
] | 18 | C++ | EnoroF/gmyqq | efc292037a0b94f495ec898fd8e053fc1042a3e8 | eef4dd0dab084093510017f06eadc18f72b37a76 |
refs/heads/main | <file_sep>export const ADD_PRODUCT = 'ADD_PRODUCT';
export const REMOVE_PRODUCT = 'REMOVE_PRODUCT';
export const INCREASE_PRODUCT_QUANTITY = 'INCREASE_PRODUCT_QUANTITY';
export const DECREASE_PRODUCT_QUANTITY = 'DECREASE_PRODUCT_QUANTITY';
export const CLEAR_CART = "CLEAR_CART";
export const addProduct = (product) => ... | 8d189cabe8651df04283e6dff380427cc02904c4 | [
"JavaScript"
] | 10 | JavaScript | nancyma713/Zodiac-Attack | f642fc05ac56db8a65613cfc9348d4e6b9d7eaf0 | c5c45b18e748ea345e7f4eca62f1417f80107f15 |
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 projetox.Class;
/**
*
* @author <NAME>
*/
public class Comissionado extends Funcionario{
double comi... | d2d8e97cacc1338ad96d1541ace32885950636a0 | [
"Java"
] | 14 | Java | luandp/ProjetoX | aa6213bdb46d46165d75fbb3db99bab29ecdb88a | 34cce48079795ad6f1c806968c03fbc9af297859 |
refs/heads/master | <file_sep>package camt.se331.shoppingcart.entity;
import org.hibernate.annotations.*;
import org.hibernate.annotations.CascadeType;
import javax.persistence.*;
import javax.persistence.Entity;
import java.util.Date;
import java.util.List;
/**
* Created by Dto on 2/7/2015.
*/
@Entity
public class ShoppingCart {
... | efd709328cffa142e19860d1a40369ba45c6bb6e | [
"Java",
"INI"
] | 3 | Java | skyonsky/SE331-lab07 | b3ebe76c235d40a560136b860064bc0784b5cbf2 | 531a4529b242533a3651aecc66cb018f49e4c805 |
refs/heads/main | <repo_name>angelxmoreno/twitter-export<file_sep>/backend/src/services/Cache/index.ts
import cacheManager, { Cache } from 'cache-manager';
import { memoryCache } from './memory';
import { redisCache } from './redis';
import { diskCache } from './file';
const cacheEngines: Cache[] = [];
[memoryCache, redisCache, diskCa... | 3874a81990ef3d80e0277fd5768f24fc20da8cf9 | [
"Markdown",
"JavaScript",
"Makefile",
"TypeScript",
"Dockerfile",
"Shell"
] | 46 | TypeScript | angelxmoreno/twitter-export | 28b81e16efe23a46b19d4b6f062a5291745150e6 | 261cd28c8a2cdd3849b58f8e82058fdb4deefdb5 |
refs/heads/master | <repo_name>deathbob/Engine-Yard-Contest-July-2009<file_sep>/contest.rb
require 'digest/sha1'
class Bob
def initialize
@phrase_to_match = "I would much rather hear more about your whittling project"
@hash_to_match = Digest::SHA1.hexdigest(@phrase_to_match).to_i(16)
@dictionary = open("dict.t... | 433cdcaf69b6da1c109961244e3be88d7c5c37dd | [
"Ruby"
] | 1 | Ruby | deathbob/Engine-Yard-Contest-July-2009 | 01d88d1655d7ed8de702b46c05a21107d57557df | 5476218b43f32cccae5bd248d0403d0f895e2ab6 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.