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>
var activePage = 0;
var pages = [
{ title: 'Introduction', bullets: [] },
{ title: 'Goals of POC', bullets: [
'Validate theory works',
'Improve accuracy of estimates of Production Stories',
'Identify and isolate tricky spots',
'Reduce unknowns',
'Design to Fac... | 4bd2e8a96cc4855fdbbe0320de3d6487f294f18d | [
"JavaScript",
"Text",
"Markdown"
] | 3 | JavaScript | AlanCramer/HMH-Presentations | 6d6ec00e035c3478513c873d8dfee2028a0d819c | 7022d80ae44af6e976612a1bb71fbc04b14e85cd |
refs/heads/master | <repo_name>YarinMeron/React_TS_Demos<file_sep>/src/utils/predicates.ts
import {IUser} from "../redux/store";
export const getValue = (user: any, expArr: string[]): string | undefined => {
if (typeof user == "object") {
return getValue(user[expArr[0]], expArr.slice(1))
} else {
return user
}... | 46d107738fc7fb9cfa8a30fc653b4dea7abda663 | [
"TypeScript"
] | 6 | TypeScript | YarinMeron/React_TS_Demos | 97b34b042ce93579e60968fdd0222be9468871c4 | baebbbd086282b86ea5b41faffee7290a5bd6684 |
refs/heads/master | <repo_name>expojava14/Thirteen<file_sep>/src/glebe/andrew/thirteen/server/Player.java
package glebe.andrew.thirteen.server;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.net.Socket;
import java.util.ArrayList;
class Player implements Runnable {
Game g... | 885c53d170f115bdeead1aceed2daea86c3a69cf | [
"Java"
] | 1 | Java | expojava14/Thirteen | b6dee9dc4b108671dc9b689a305353c7a86213d1 | 5ec5883e8f97c0871a4b8777c0cd9db4fb689bc0 |
refs/heads/master | <file_sep>this is 101 program
| af243f6a2f6e828acd622be78b317d47dcfff7e6 | [
"Java"
] | 1 | Java | sandeepssn/Att | 6c0226ac3463c0c445e67daea74cecabc5752562 | 3db2a149dd562f54badcc2d2c322de192c53e81c |
refs/heads/master | <repo_name>jeffersonrbr/desafio-materate<file_sep>/web/routes/api.php
<?php
/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
|... | abdd13f1015358fa018dab5901bdbc1691b07d4d | [
"JavaScript",
"Markdown",
"PHP"
] | 7 | PHP | jeffersonrbr/desafio-materate | 4b54f8aeb81941249dc692c288725db6630d62f9 | f3d1d80eb80ea77f525ed0fd741e63b6fefac08e |
refs/heads/main | <file_sep># -*- coding: utf-8 -*-
"""
Created on Fri Mar 19 22:07:24 2021
@author: <NAME>
"""
import os
import time as ti
from getmac import get_mac_address as gmc
import netifaces as nf
def CPUtemp():
res = os.popen('vcgencmd measure_temp').readline()
return(res.rep... | ab75e54b0a05513ac75ac82f78e3c98a9f5c5fe9 | [
"Markdown",
"Python"
] | 8 | Python | arrichamilton/open-day-badge | 6ab7bbdae316d3438f41e1e0d720ef4164053e95 | 9f8e3955f16db85395eecae25c7886f2c4b0acb1 |
refs/heads/master | <file_sep>const mainDiv = document.getElementById('main-content');
const form = document.getElementById('create-task-form');
const input = document.getElementById('new-task-description');
const list = document.getElementById('list');
const tasks = document.getElementById('tasks');
const priority = document.getElementBy... | a4bf95978ec6904d371f024c6323e745c895b22d | [
"JavaScript"
] | 1 | JavaScript | adriennemiller/js-task-lister-lite-seattle-web-career-021819 | d4a4d0d6eb52a23ff463fde011a7426c51a976b7 | acfb17d0ec6c9b7ad282d1b7b75b4028bba16486 |
refs/heads/main | <repo_name>kamathhrishi/Weakly-Supervised-Street-Text-Detection<file_sep>/label_images.py
import os
import torch
from PIL import Image, ImageDraw
from torchvision import transforms
import math
import random
import yaml
from train_utils import load_checkpoint
def inference(img_path, model, testdata_transform):
# ... | b958286c33403c9c55c84c15f832afbddecf45f8 | [
"Markdown",
"Python",
"Text"
] | 8 | Python | kamathhrishi/Weakly-Supervised-Street-Text-Detection | a1ab92e161e9162fce585e9aa023d3a13e3b1993 | eec95d7755794da5d8094376752b7393e9a37dc2 |
refs/heads/master | <file_sep># Dotfiles
Repository containing all my environment configuration/dotfiles.
## Repository Structure
+ local/ - Environment configuration files for local (Mac OS laptop) setup.
+ remote/ - Environment configuration for remote server(s) (Linux headless).
<file_sep>#
# Executes commands at the start of an int... | 82a586dda8e5ad9c5a931b26547ff9c5b2e794e7 | [
"Markdown",
"Shell"
] | 4 | Markdown | siddk/dotfiles | c5600cb4ab1b42c32e3feebc3aee3e41d2b3e384 | 8925ed601b9c2774d035a8e6d5f17561dd50a555 |
refs/heads/master | <file_sep>SECRET_KEY=
DATABASE_URL=
SUPER_ADMIN_TOKEN=
CSAT_ADD_ON_SIGNATURE_KEY=
S3_BUCKET=
S3_KEY=
S3_REGION=
S3_SECRET_ACCESS_KEY=
DEFAULT_LOGO_URL=https://d1edrlpyc25xu0.cloudfront.net/rir-i1gavwtrrzsh7vk6h/image/upload/qGAokcAzpu/case-study-logo-qiscus.5433a4b9da2693dd49766a971aac887ece8c6d18.png
DEFAULT_BACKGROU... | c31f152b706170a4ed1b7b606ef8dc57bff7dca9 | [
"Markdown",
"Python",
"Text",
"Dockerfile",
"Shell"
] | 21 | Shell | barizalhaq/qiscus-csat | e7d357abf9e854da6f1ab5ecbce47bda86e2d256 | d593a22370189a1965a1c15e779404bb4a9d2eb2 |
refs/heads/master | <file_sep>#include<cstdio>
#include<iostream>
using namespace std;
int main()
{
int t,a,b,sum,n,arr[1001];
scanf("%d", &t);
for( int i=1; i<=t; i++)
{
/*char ch;
scanf("%c", &ch);*/
sum=0;
cin>>n;
for(int j=0; j<n; j++)
{
scanf("... | 2622b8544ecd6ef1fad65faa57fcddf3ed03e47d | [
"Markdown",
"C",
"C++"
] | 4 | C++ | Munnanstu11/Lightoj | c1feab481a28fb42989e8ab0edc1dfb66d360257 | ee48c39677db7b5f46f97821128138bf52b512bf |
refs/heads/master | <file_sep>package com.google.dev.ui;
import android.Manifest;
import android.app.Activity;
import android.app.DatePickerDialog;
import android.app.TimePickerDialog;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.graphics.Bitmap;
import android.net.Uri;
import android.provider.M... | b24197982da6f9980da674f64cd0c047156a4b94 | [
"Java"
] | 2 | Java | Jeysam1/Facebook-Home | b346a59696b73e3a0d8649f54dff2731571389d8 | 9ecc97fc23a3f6b845854cc33bd71ea1d1be99b8 |
refs/heads/master | <file_sep>using System;
using System.Collections;
using System.Collections.Generic;
namespace ClassMetotDemo
{
class Program
{
static void Main(string[] args)
{
girisEkrani();
}
static void girisEkrani()
{
string kayitSistemi =
@"[B]=============... | 7d84cb67a4a5b27ac52067c7768b42c276e8cf9e | [
"C#"
] | 2 | C# | Nobody034/Kampintroo | 1967633defae73100ad709b2e8428e9522a64706 | 4f1b16868bde34faecc369d37f7943fb34140ce0 |
refs/heads/master | <file_sep>import React from "react";
import "./textbox.scss";
const textbox = props => {
return (
<div className="content">
<h1 className="content-title">{props.title}</h1>
<p className="content-text">{props.text}</p>
<button className="button" onClick={props.toggleDetails}>
DETAIL
... | 6a768fcfc964d6e3c58b5d567a4f61bfc54d4dd7 | [
"JavaScript"
] | 5 | JavaScript | erazarkasih/cvreact | ffd66abfe0844630365b9079681960cf73b0a642 | b6cb53acefc2f223f1c3a4f83d9f806cdf2a6f92 |
refs/heads/master | <repo_name>rcalegario/passagensaereas-visualizacao-2017-2<file_sep>/crossfilter-dc-version/static/js/trips.js
var originSelected = "",
destinationSelected = "";
// num = {};
// num.maxPrice = dc.numberDisplay("#valor-maximo");
// num.minPrice = dc.numberDisplay("#valor-minimo");
// num.medPrice = dc.numberDisplay(... | b741e9a0e7f7c35370312b9dc128dcd264f49fdd | [
"JavaScript",
"INI"
] | 4 | JavaScript | rcalegario/passagensaereas-visualizacao-2017-2 | b9e7836173c0fca989e1648cfbc63dc18638b69c | b611ec2799cca1c0161c5eb36519149345f6b1fc |
refs/heads/main | <file_sep>import requests
from bs4 import BeautifulSoup
import xlsxwriter
import time
import tkinter as tk
import urllib3
urllib3.disable_warnings()
timestr = time.strftime("%Y%m%d-%H%M%S")
tim = timestr + ".xlsx"
form = tk.Tk()
form.geometry('600x600')
form.title("WEB SCRAPER")
def robotparcaları():
def robotparc... | e4778ebcc1d27662ae6e7d71c6bc3c588fa37a90 | [
"Python"
] | 4 | Python | DogukanDugun/WebScraper | e8c08416a708cfa848eec5e23bfdf922b9ae48bf | 5b3689c72dd8d4da68adf612c2cd931c5d23f189 |
refs/heads/master | <repo_name>ambiesoft/FolderConfig<file_sep>/TestApp/FolderConfig.ini
[Main]
appname=TestApp
creator=Ambiesoft
defaultpathtype=1
defaultpath0=data
defaultpath3=L:\aaa\eee\
culture=ja-JP
[Ninja]
appname=TestApp_Ninja
creator=Ambiesoft
defaultpathtype=1
defaultpath0=ninjadata
defaultpath3=L:\aaa\eee\Ninja
c... | 1b2eff671dda9887669e1dc9f60f725371b7d338 | [
"Markdown",
"C#",
"C++",
"INI"
] | 19 | INI | ambiesoft/FolderConfig | 5aaa8aed557070898ec96febc2fdef50729bdb76 | 52d3ce411456009342abf9012384f9fc0a143e07 |
refs/heads/master | <repo_name>cwm262/Team4CapstoneProject<file_sep>/app/inventory.php
<?php
namespace pantryApp;
use Illuminate\Database\Eloquent\Model;
class inventory extends Model
{
protected $table = 'inventory';
/**
* Get the item associated with an inventory row
*/
public function item()
{
ret... | fd94c73c816b702bc8e13cb38de6f68dc0128f16 | [
"JavaScript",
"Markdown",
"PHP"
] | 38 | PHP | cwm262/Team4CapstoneProject | 813331fc2fcdf1c809981bac2352e93a0c42747a | f89b0213c582795a806db192dd3f3696ebfe8945 |
refs/heads/main | <file_sep>/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package pkg1306180005.proje;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import java.sql.*;
import java... | bff26cfec2c97003ec67fe0de05448fe77ca3920 | [
"Markdown",
"Java"
] | 5 | Java | muhammeduguryildiz/1306180005-Bank-Management-System-Example | 5a768557829bcb43fcee9f551fa0fa7871e91916 | 2680004ee9af1df73e4206a36b9ac78c0e335d4e |
refs/heads/master | <file_sep>require 'yt/annotations/base'
module Yt
module Annotations
# An end screen annotation shows in the last 5 to seconds of the video.
class EndScreen < Base
# @param [Hash] json the Hash representation of the XML data returned by
# YouTube for each end screen of a video.
def initia... | 13865d84f564a5157fe85fed8cc3bc6e1a65a8e2 | [
"Markdown",
"Ruby"
] | 17 | Ruby | isabella232/yt-annotations | 1c25f2c1de9f9653c7e6a9d9284633506ff3f219 | 7198c05b4895963fbec5cae8fadb272fa4495c7e |
refs/heads/master | <repo_name>manasdas17/eda<file_sep>/Part 3/part3.R
g <- read.table("amounts_dates.tsv", sep = "\t", col.names = c("Year", "NSF Organisation", "Grant Amount", "Start Date", "End Date"))
g$End.Date <- as.Date(as.character(g$End.Date), format='%B %d, %Y')
g$Start.Date <- as.Date(as.character(g$Start.Date), format='%B %d, ... | 00329bf94c9b4cb07bacd503e1956a9df11343ba | [
"Markdown",
"R"
] | 2 | R | manasdas17/eda | c62e9f07650beca7eb13b237ba7a7a4611025cde | 2f93a95ac4bffe8c43809dd6ed27af478b31fc53 |
refs/heads/master | <repo_name>cmscoder/airbnb-project<file_sep>/app/controllers/reviews_controller.rb
class ReviewsController < ApplicationController
def create
@lesson = Lesson.find(params[:lesson_id])
@review = Review.new(content: params[:review][:content],
rating: params[:review][:rating],
... | 76705ee8e1f11345cf9b661687234d734b10bd5f | [
"Ruby"
] | 10 | Ruby | cmscoder/airbnb-project | 6ed1db209143e884a83b40ee0e4b99100906d459 | af8ae77e4748f30ef3970136307a6f626b38c7be |
refs/heads/master | <repo_name>Sameerpraz/react_crud<file_sep>/src/components/TransactionList.js
import React, { Component } from 'react'
import TransactionForm from './TransactionForm'
class TransactionList extends Component {
state = {
currentIndex: -1,
list: this.returnList()
}
returnList(){
if(loc... | ed15643f09ee729a1196f405ae8838c99a691ea4 | [
"JavaScript"
] | 2 | JavaScript | Sameerpraz/react_crud | f897b163114d580e5744060e0eb0690fea68bed3 | c2c3af29f3a34cbd7f43801228b6f52fabb54700 |
refs/heads/main | <file_sep>export class Professional
{
public name:string;
public age:number;
public genre:string;
public weight:number;
public height:number;
public hairColor:string;
public eyeColor:string;
public raze:string;
public isRetired:boolean;
public nationality:string;
public os... | 03fc709056c74b058d908725fdbbaa5d83f57b98 | [
"Markdown",
"TypeScript"
] | 5 | TypeScript | molibdy/BBDD-IMDB | d913039a4d000e90109081b092d61551348dc967 | 10db1d3ccb6ac7f7fe7bcc5b7b19e3aeb5ed082d |
refs/heads/master | <file_sep>package com.actiwit;
import android.content.Intent;
import android.os.Handler;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
public class MainActivity extends AppCompatActivity {
Handler h1 = new Handler();
@Override
protected void onCreate(Bundle saved... | 16df623629662db83f4e7ee57fb3b53b7d03ae33 | [
"Java"
] | 5 | Java | kowsirani/kowsi | f3ba9a1307f9020edd101bff5469708b8ae40330 | b362703cbe343bd62ad4e3823d82b95a994d3406 |
refs/heads/master | <repo_name>ajslim/fiescaper<file_sep>/README.md
# fiescaper
scrapes fie website
<file_sep>/updatetournaments.php
<?php
ini_set('error_reporting', -1);
ini_set('display_errors', 1);
ini_set('html_errors', 1);
require_once("lib.php");
require "vendor/autoload.php";
use Masterminds\HTML5;
// Create connection
$con... | 653a6fa3fc337415819d562f7dfba15853e99271 | [
"Markdown",
"PHP"
] | 5 | Markdown | ajslim/fiescaper | c0fba691f3ab1348205ea0052e1437ff3dfb0b86 | d9ebc1f20b6c6ca50481a34332213da7a9e60648 |
refs/heads/master | <repo_name>crosby-dan/CIT365_W3_MegaDesk<file_sep>/CIT365_W3_MegaDesk/DeskQuote.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CIT365_W3_MegaDesk
{
public class DeskQuote
{
public int id { get; set; }
public Stri... | e46507d556812ebdcf98e90e81585db11dfaf2f6 | [
"C#"
] | 6 | C# | crosby-dan/CIT365_W3_MegaDesk | 3f0dcb1f1987514d1bde98526f4216547d1531a8 | f82547d68d9ef5dd5f78802744e9f4ab8fee20b3 |
refs/heads/master | <file_sep>import React from "react";
import Helmet from "react-helmet";
import { StaticQuery, graphql } from "gatsby";
import Nav from "../components/Nav";
import "../styles/global.css";
import image from "../assets/og.jpg";
import styles from "../styles/wrapper.module.css";
export default ({ children, nav }) => (
... | a9f2a7c76b383b3f15f2a41e46654e3cb302c3b4 | [
"JavaScript"
] | 2 | JavaScript | mirshko/.design | 6d85ceb6b71637c1ccc60522df1148113ed90a66 | 534006f0f6eaed33135fa0b5f6d6cd25976be8e3 |
refs/heads/master | <file_sep>// Initialize Cloud Firestore through Firebase
firebase.initializeApp({
apiKey: "<KEY>",
authDomain: "aplicacionwebeducativa.firebaseapp.com",
projectId: "aplicacionwebeducativa",
});
var db = firebase.firestore();
function insertarDataTest() {
db.collection("dataInformatica").add({
... | a95043c8d15e2209491ac123c7ec0cd43a952ac7 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | teamAppsDevelopers/AplicacionWebEducativa | 34ad048dcc5665fe3d9e6961d348c079a429096c | 82bb0b278e84793168749c1e7e60bae45dd07ee3 |
refs/heads/master | <file_sep>\name{showtext.end}
\alias{showtext.end}
\title{Turn off "showtext" text rendering}
\usage{
showtext.end()
}
\description{
This function will turn off the \pkg{showtext}
functionality of rendering text. When you call this
function, the current active device should be the same with
the one when you call \code{... | a217354f4ca6721a671eed71fecaf03abfefbc68 | [
"Markdown",
"C",
"R"
] | 11 | R | baptiste/showtext | 12d9f954eff51c952f233573fc9221d4f89f6d5d | 6120032a531faf0d5ea9beb6f1b5d84688021170 |
refs/heads/master | <repo_name>ngderek24/audio-only-youtube<file_sep>/README.md
# audio-only-youtube
A firefox add-on to toggle the display of a Youtube video panel. The audio will be unaffected.<file_sep>/controller.js
/* Content script to toggle Youtube video display.
Runs when user clicks on add-on icon in toolbar.
*/
// show add on... | eb6d4b8ff81f0953c8a6d8369308a91719a5b01f | [
"Markdown",
"JavaScript"
] | 2 | Markdown | ngderek24/audio-only-youtube | 31138d78cc0247a5e7e1bf5e2bef04f42321f958 | 68bd72e98c8e2dc7349f30bd4fac36f5a012e5c4 |
refs/heads/master | <repo_name>aywalker/m11-hw11-yoakum-anna<file_sep>/README.md
# m11-hw11-yoakum-anna
I had no issues with this. No outside resources were used other than course lectures.
<file_sep>/main.js
//Global Varibales
const myBoxes = document.getElementsByClassName('block');
//The Functionality
function loopThrough() {
cons... | 7e72bfb9812267413641254beb8c59e5b83f381f | [
"Markdown",
"JavaScript"
] | 2 | Markdown | aywalker/m11-hw11-yoakum-anna | acf32241099b8c5919ee9ca9a079bdb9a68c6d7b | 35ed459f65c33cf8bf4c0f1191bc0425a2c4321e |
refs/heads/main | <file_sep>
import axios from 'axios'
// axios 配置
axios.defaults.timeout = 60000;
axios.defaults.withCredentials = true;
// http request 拦截器
axios.interceptors.request.use(
config => {
config.headers = {
'Accept': 'application/json, text/javascript, */*',
'Content-Type': 'application/json',... | 7756688faa4f034c7ee0d391cdee904ad83e2683 | [
"JavaScript"
] | 10 | JavaScript | cccnoob/vue-template | 867084dcf4fdf526f9bddf5ba2dacb4720961287 | 191d26254e70deb679b454b9cf085e97f1790a90 |
refs/heads/master | <file_sep>using SFA.Services;
using SFA.Views;
using SQLite;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Xamarin.Forms;
using SFA.Utils.Services;
using SFA.Model;
using Newtonsoft.Json;
using System.Threading.Tasks;
using Acr.UserDialogs;
using Microsoft.AppCenter;
usin... | 2289737ca9fb4e8e4c5066bb0feb08ff50598a97 | [
"C#"
] | 55 | C# | enmanuelcruzdejesus/SFA | 35f3d505cd2a4bb74fee9e3246e0db310663e8b3 | abc54c9063b82ba7586c9a452e38b69ba88134ae |
refs/heads/master | <file_sep>var questions = [
{
question: "1. Choose the client-side JavaScript object?",
option1: "Database",
option2: "Cursor",
option3: "Client",
option4: "FileUpLoad",
answer: "D",
},
{
question: " Scripting language are",
option1: "High Level Programming language",
option2: ... | dbb34c7ffbdd8a213b47e2d71bfa66bf9c724c3a | [
"JavaScript"
] | 1 | JavaScript | cynmojica1231/Homework4 | c3a94210ddf7af6178ffbc654b328bd2b865176e | 7bbd91dcd074719a02e8b30409e6e1ef5ada57f1 |
refs/heads/master | <repo_name>malakajayaw/HotelsApp<file_sep>/app/src/main/java/com/example/myapplication/MHotelAddSummary.java
package com.example.myapplication;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
public class MHotelAddSummary extends App... | b5f1658f65c1961aa98206b3d5f9257880fb731a | [
"Java"
] | 3 | Java | malakajayaw/HotelsApp | 2ccd1d35255c868dcc1ce53c40ac411eed180a67 | 4924b0a02d44c9d55b12b69ef0328e6a281b9f8c |
refs/heads/master | <repo_name>kyritzb/First-Attempt-Deep-Learning-Snake<file_sep>/src/Data.java
import java.util.ArrayList;
import java.awt.*;
import java.awt.event.KeyEvent;
import java.awt.image.BufferedImage;
import javax.swing.JButton;
import javax.swing.JFrame;
import java.util.Random;
import java.awt.event.MouseEvent;
i... | f4aa927708ccb8c728a22793b997dd58c6a2595a | [
"Java"
] | 1 | Java | kyritzb/First-Attempt-Deep-Learning-Snake | 34ba9b55b4462ac29f8fd1c1610b96962190943a | fb0b19802c0170c7cc6ce7095479d542b6a4c457 |
refs/heads/master | <repo_name>Dolly3g/Biblioteca<file_sep>/Library.java
package com.twu.biblioteca;
import java.util.ArrayList;
import java.util.List;
public class Library{
private final List<Book> availableBooks = new ArrayList<Book>();
private final List<Book> issuedBooks = new ArrayList<Book>();
public List<Book> listBo... | a2abf4baeb45327b5066597e333c06bf24c12c4a | [
"Java"
] | 4 | Java | Dolly3g/Biblioteca | 394a461113276cd3e02f3d099a0fa11134de7fb9 | 96192af89c2cec6a67740d3e672055f5a1b78bf9 |
refs/heads/master | <file_sep>export class DataError{
constructor(msg)
{
this.msg=msg;
}
}<file_sep>using System;
using System.IO;
namespace PathRoot
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Hello World!");
TryPath(@"C:/a/b.txt");
... | b9e231f53f3035e0609663e00a42159f71ac896e | [
"JavaScript",
"C#",
"Markdown"
] | 5 | JavaScript | aDisplayName/Sandbox | e9cbf5938626d146656fbfefcb6d8769c69194c4 | cb2adf4b2baa7c73ba7be59e08c8257aad009837 |
refs/heads/master | <file_sep>var app = require('../app.js');
var server = require('supertest')(app);
var assert = require('chai').assert;
var should = require("should");
var models = require('../models');
describe('Check that I can get a list of Posts with [GET] /posts', function () {
var createdPost = null;
it('should creat... | bb70adf3c9550de54d93d213bd3da7a31ab77cf5 | [
"JavaScript",
"Markdown"
] | 4 | JavaScript | eddiejaoude/blog-api | 4e62926ea4ec1a9054d0e40180a68d3322281fd0 | 2a0827ea2c54b4adad61f6a342f1c6b29fdfabd3 |
refs/heads/master | <file_sep>require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
require 'icss'
describe Icss::Meta::Protocol do
before do
Icss::Meta::Protocol.send :flush_registry
Icss::Meta::Protocol._catalog_loaded = true #prevent automatic loading of catalog
end
let(:protocol){ Icss::Meta::Protocol.rec... | c8d6dba9d03015736d2e28e3000aff49d3a700cf | [
"Markdown",
"Ruby"
] | 69 | Ruby | infochimps-labs/icss | 26ed5b1bd0d2249c2024a4b76c2fe85f9cbc7696 | 1534ea25f9f3d837542f47117999cd79d8d88288 |
refs/heads/master | <file_sep>/* JS Document */
/******************************
[Table of Contents]
1. Vars and Inits
2. Set Header
3. Init Menu
4. Init Home Slider
5. Init Scrolling
6. Init Input
7. Costum Functions
******************************/
$(document).ready(function()
{
"use strict";
/*
1. Vars and... | e5e8c5d42c75b1821f3cfffd6ef15eae08793618 | [
"JavaScript"
] | 2 | JavaScript | skevlishvili/Test-React-native | b7f7c1987f4610e02e637af731191f0eb65498a6 | f73cdec72879efc79aa4c445d888cac70a255d29 |
refs/heads/master | <file_sep><?php
namespace App\Http\Controllers\User;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use App\JadwalDokter;
class JadwalDokterController extends Controller
{
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/
public function ... | 51ba9f8e18d3f1d3ad801eec3ce68124a72ff3a1 | [
"Markdown",
"PHP"
] | 9 | PHP | nurikhsanisf/Tugas_Besar_Pemrograman | 1ff96695345cc95cce836553f75441f1690519d6 | 0b2c92ca2e82d8c898ac5fe582343c39e2314e96 |
refs/heads/master | <repo_name>shota-h/seqgan<file_sep>/seqgan.py
#TODO quasi seqgan
import keras
<file_sep>/seqgan_sample.py
import os,sys
import random
import numpy as np
import tensorflow as tf
import matplotlib.pyplot as plt
from keras.models import Sequential
from keras.layers import Dense, pooling
from keras.layers.recurrent import ... | 0c4a0813e8ff4156b547fa06df04a617126ddb60 | [
"Python"
] | 2 | Python | shota-h/seqgan | 2e0baa83f934ff617c134c308791e28d19fa87d5 | b9ace3578d13d044a70e6e9b80aa04b5c4b08169 |
refs/heads/master | <file_sep># Python-Ch07
<file_sep># Quiz about rules in mafia
# In program I used reading and saving data in txt file
import sys
import pickle
def open_file(file_name, mode):
"""Open file"""
try:
the_file = open(file_name, mode)
except IOError as e:
print("File opening causes error, sorry\n", e)
... | 1c549991314374e21dbbc6fde7e60c207edb7aef | [
"Markdown",
"Python"
] | 2 | Markdown | Webster4/Python-Ch07 | cfb798178ab5621d38dd7fce9e5aa5d5886f6f55 | d67fa670aee3a127bdf6a0d74f14fa0cf69cecb9 |
refs/heads/master | <repo_name>BTHabib/Lessons<file_sep>/Lesson 1 Variables.py
"""
print ("A: " + str(A))
"""
import math
def PathTheorem(Side1, Side2, NumbOfDec = 2):
C = round(math.sqrt(Side1 * Side1 + Side2 * Side2), NumbOfDec)
Side1 = Side1 + 1
return C
# poop
def Main():
A = int(input("A --> "))
B = int(input(... | 06fa0558620048e843beb5d6e3172eb2e24ed555 | [
"Python"
] | 6 | Python | BTHabib/Lessons | 810076bfcb686aaa762f2fdcd6d05342a5144e45 | 28c04bfbff0fb2f563c227537e91b01d23988d26 |
refs/heads/master | <repo_name>y5134828/code-center<file_sep>/VUE/worker-exceljs-export/data.ts
[
{
"header": "序号",
"key": "no",
"width": 20
},
{
"header": "业务部门",
"key": "departmentName",
"width": 24
},
{
"header": "业务员",
"key": "staffName",
"width": 22
},
{
"heade... | 45880f5870cc83b068c917f69ce016b7caa1052d | [
"JavaScript",
"TypeScript"
] | 10 | TypeScript | y5134828/code-center | 9289dbc85b7216539fe6b317fa356b132a2f41e5 | 579020630cb6cce4fc4d3e17829a5f23f18da8d1 |
refs/heads/master | <file_sep>import java.util.ArrayList;
import java.util.Arrays;
public class UIInterceptor {
private Register register;
private CoronaryCastleRestaurant restaurant;
public UIInterceptor() {
restaurant = new CoronaryCastleRestaurant();
register = restaurant.getRegister();
}
public void addItem (int itemID... | 2b780e369910d3a814939c2218959e1e4acd417d | [
"Java"
] | 14 | Java | ongwu2014/Coronary-Castle | 06c0055350b0378fa5d286ae675bc11a39d7f70c | 2e0228c08ce3e94cdbd16a17b5d2f25f319c01c9 |
refs/heads/master | <file_sep><?php
namespace App\Http\Controllers;
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\DB;
use app\Models;
class StaffdelController extends Controller
{
/**
* ログイン処理
*
* @param Request $request
* @return Response
*/
public fun... | db7829f1fded7f18c4754276e26fa14df0092a7e | [
"PHP"
] | 6 | PHP | sawaguchiyou/Laravel | cd6952d705efa5753e6e4e6e6f52132e877b2b5e | f2276ef3e9f979ef87ce3e31a8d30cef74485eae |
refs/heads/master | <file_sep>from django.shortcuts import render
# Create your views here.
from django.views.generic import TemplateView
from django.views.generic.base import TemplateView
from django.http import HttpResponseRedirect
from django.core.mail import send_mail
from users.models import CustomUser
from .forms import EmailForm... | b190a6d941eef67653ef20093f9a01a71e746f93 | [
"TOML",
"Python",
"Text",
"Markdown"
] | 14 | Python | Nathanllee1/Teamclap | 4b3a9b296564d7510e28997e4f4f9b295aa65cd3 | abb309a9fe98c75d89b58bd0bb902077172c1539 |
refs/heads/master | <repo_name>Schulzro/Calculator<file_sep>/index.js
const calculator = {
result: 0,
firstOperand: "",
secondOperand: "",
computationDisplay: "",
operators: ['+', '-', '/', 'x'],
currentOperator: ""
};
function compute() {
if(!calculator.currentOperator) return;
let first = parseFloat(calcul... | 7f919af4077955553a2ffd8b064ca3d28a6535ff | [
"JavaScript"
] | 1 | JavaScript | Schulzro/Calculator | 7f065671e964e1a9082929c22013f21fadcb764c | 004f0f810f569627f2e395513b76bc22bf122ad2 |
refs/heads/master | <repo_name>IntelloScooby/Quizzler-iOS13<file_sep>/Quizzler-iOS13/Model/Question.swift
//
// Question.swift
// Quizzler-iOS13
//
// Created by <NAME> on 13/4/21.
// Copyright © 2021 The App Brewery. All rights reserved.
//
import Foundation
struct Question {
let text: String
let answer: String
ini... | 490e3605a54608cc288dd738432eaaac6bd61c0b | [
"Swift"
] | 1 | Swift | IntelloScooby/Quizzler-iOS13 | 22622bf5171a7180f678c50d0749f95a6c5e5264 | f7c198aed6bb43cc42ca0e0c7233b662dbb39633 |
refs/heads/master | <repo_name>socrata-platform/soql-bigquery-adapter<file_sep>/README.md
soql-bigquery-adapter
=====================
The Bigquery Adapter for SODAServer includes:
- **soql-server-bq**: query server for querying datasets in Google BigQuery
- [Docker README](https://github.com/socrata-platform/soql-bigquery-adapter/blob/... | 33bfa3e4fb49aee0f6b12cbf89d3c9da0dcbe8e1 | [
"Markdown",
"Dockerfile",
"Shell"
] | 6 | Markdown | socrata-platform/soql-bigquery-adapter | 6d9c95e5b5c8439546127be60837af7ce8860ca9 | 9cf02590430710eb5c69d61326009a4981d9b21c |
refs/heads/master | <file_sep>const fs = require("fs");
const path = require("path");
const {transform: cjsEs} = require("cjs-es");
const {createFilter} = require("@rollup/pluginutils");
const {analyze: esInfoAnalyze} = require("es-info");
function isEsModule(result) {
return Object.keys(result.import).length ||
result.export.defa... | dd3dc38c5149b65b1f8cc39f8674c603519ce8a3 | [
"JavaScript",
"Markdown"
] | 3 | JavaScript | eight04/rollup-plugin-cjs-es | 2e034406f420b67b9988ca048f5ffb9fa2daa968 | 078607b640eed314fea767ba3e76266eb37cc462 |
refs/heads/master | <file_sep>Rocket Launcher
--------------
Created this script during the FirstFridayHackathon. It is used to control the DreamCheeky USB rocket launcher.
Run this command to see the rocket in action!
```
rocket.demo()
```
#Mac OS X Mavericks Setup#
*make sure you have a working homebrew and pip setup first*
Instal... | 659f1c83dc528522fed3546041b3fd138661d79e | [
"Markdown",
"Python"
] | 2 | Markdown | progrn/rocket | 91bc871cf1733d34a07801efc0f3d47319bd1eaa | 2eabd8a052a63aa0f136d60b5575d38319a1a2a2 |
refs/heads/master | <repo_name>DarkMatter8/Laravel-FileHandling<file_sep>/app/Http/Controllers/UploadController.php
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Upload;
class UploadController extends Controller
{
public function upload(Request $request){
$file = $request->file('file');
$ti... | 5e80ea7844d707b3ae44a0d6a7d67b66055f4046 | [
"PHP"
] | 1 | PHP | DarkMatter8/Laravel-FileHandling | 20857b134610f3e4b04c4c2dd89a2c7aa95efcea | fc0910a5aead37cc494d5b882ed09079dc9e007d |
refs/heads/master | <repo_name>alexrr12341/ansible_lxc<file_sep>/Vagrantfile
Vagrant.configure("2") do |config|
config.vm.define "mariadb" do |node|
node.vm.network "private_network", ip: "192.168.122.2", lxc__bridge_name: 'virbr0'
node.vm.box= "debian/stretch64"
node.vm.provider :lxc do |lxc|
lxc.container_name = :mac... | 9d16ec033559ad844c456eea63a8a3ab6b7a1a04 | [
"Ruby"
] | 1 | Ruby | alexrr12341/ansible_lxc | ba6a7f93d7d0f49060bc56ef42f77d85439ff6e4 | 589d2ea519c8529b261decf96e01f9a97a599d5f |
refs/heads/master | <file_sep>export const getStatisticsJSON = async () => {
try {
const result = await fetch('https://covid-193.p.rapidapi.com/statistics', {
method: 'GET',
headers: {
'x-rapidapi-host': 'covid-193.p.rapidapi.com',
'x-rapidapi-key': 'f77bd974e3msh8c9bee8afa289d4p15fffbjsn482adf77f486',
... | 1bf0d81532f6b721b044a54189c29ff307a93929 | [
"JavaScript"
] | 4 | JavaScript | puss1juic3/cv-tracker | 17fc2ca9e37348ae459cc214193a91e44a373e47 | d6ebb78d43f02aae709968171df9e4b90a7ecb2e |
refs/heads/master | <repo_name>bfox1793/Recipe_Creater<file_sep>/README.md
Recipe_Creater
==============
Simple recipe-creating application
This is a project to build a simple recipe creating applicatioin in Java. It utilizes Swing and AWT as the front-end layer, and will consist of a back-end that will hold and store all information f... | 4acf96710a67116f5c1111dcbf99f6fc8ff9296a | [
"Markdown",
"Java"
] | 4 | Markdown | bfox1793/Recipe_Creater | e1754aa3aade82dd77998f686cf014c91bd1ed5b | d1bba3268075290dc29e1d15f855d649107f8e34 |
refs/heads/master | <file_sep>import React from 'react';
import Grid from "@material-ui/core/Grid";
import {connect} from "react-redux";
import {getAllProductType} from "../../action/ProductTypeAction";
import Typography from "@material-ui/core/Typography";
import Card from "@material-ui/core/Card";
import CardActionArea from "@material-u... | 31d0d5c34d7ef9575e844f7fb7802de5e4a22a6b | [
"JavaScript"
] | 32 | JavaScript | well-oo/comparetout-front | 9dd336ba5a44646f448ba04994f670fd37fa22e0 | f7a5ae69314dd2565311182a1f857aa0ee7dd356 |
refs/heads/master | <file_sep>from socket import *
import time
import random
import string
port=9000
serverSocket=socket(AF_INET,SOCK_DGRAM)
serverSocket.bind(("",port))
print ("Server is running...")
rand=""
i=0
def zanoret(mesazhi):
zanoret="ae"
iterator=0
mesazhi=' '.join(mesazhi.split()[1:])
for char ... | 06528613f93b603921811998d7f3d8559c225c02 | [
"Python"
] | 4 | Python | blerandaisufi/Rrjeta1 | e3936cbad5defccbffa44ca33b8d7ca7751dedfc | b7b4d5171532b21a4bad763cdb031af7a6cbeefb |
refs/heads/main | <repo_name>moonso/iker_first<file_sep>/iker_first/__main__.py
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
iker_first.__main__
~~~~~~~~~~~~~~~~~~~~~
The main entry point for the command line interface.
Invoke as ``iker`` (if installed)
or ``python -m iker`` (no install required).
"""
import sys
from iker_first.cl... | 2379012ec12417cd1a103eda5b44da1538d34357 | [
"Python"
] | 2 | Python | moonso/iker_first | 2ffe3c32755d8cc0ac437deb6a4c629556edc9a9 | f5e7f31c97b5ad625fa749d7b1a198f7d887d82e |
refs/heads/master | <repo_name>luohuidong/webside<file_sep>/webpack/loader/index.js
const babelLoader = require('./babel')
const styleLoader = require('./style')
const imageLoader = require('./image')
module.exports = [
babelLoader,
...styleLoader,
imageLoader,
]
<file_sep>/src/page/homepage/index.js
import React from 'react'
impo... | a60fc740ff57124e71ce627eefa73a3d651c59e7 | [
"JavaScript",
"Markdown",
"Shell"
] | 11 | JavaScript | luohuidong/webside | d67807ba09d183f3a943205d5ac9de13549907ab | 00954260a2b10acb63b104a06682dd12dcaccb56 |
refs/heads/master | <file_sep>from ssc.DataProjection import *
from ssc.BuildAdjacency import *
from ssc.OutlierDetection import *
from ssc.BestMap import *
from ssc.SpectralClustering import *
from ssc.SparseCoefRecovery import *
def SSC_test():
# Basic test to check SSC.
D = 30 # Dimension of ambient space
n = 2 # Numbe... | 09c3e99052ee35814ce899ac6ec83260dc49eecd | [
"Markdown",
"Python"
] | 15 | Python | yonnyh/statistics | 306d8f38d8d096541dc466579a86919aeae93f5e | d308f4f34bf13a1e6880fbcaeea2aa8e749e5147 |
refs/heads/master | <repo_name>SaaVuttamaton/Houses-Coverage<file_sep>/setCover.h
#define NIL -1
ListSet * greedySetCover(Graph * g, int set_label);<file_sep>/setCover.c
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#include "set.h"
#include "graph.h"
#include "setCover.h"
#include "heap.h"
/* Returns a list of sets that co... | 4cb93e993a9a4eebd21d0368d2937d46add26e6e | [
"Markdown",
"C",
"Makefile"
] | 13 | C | SaaVuttamaton/Houses-Coverage | 277fac4984d9054adff13c0592fc4ce87fa0dbe9 | 0be65f8135ecae0fa031ece04f8595e19b21cf12 |
refs/heads/master | <file_sep>console.log("Саня ублюдок");<file_sep>// let num = 20;
// function Massege(text){
// alert(text);
// console.log(num);
// }
// Massege("Hello World!");
// console.log(num);
function calc(a,b) {
return (a + b);
}
console.log(calc(3,4));
console.log(calc(8,4));<file_sep># Test-for-something
Од... | a4dca660378aa3c1bbcc16914b19c80263267a2e | [
"JavaScript",
"Markdown"
] | 3 | JavaScript | kokos0052/Test-for-something | c03bb4ee3c94758c275b459ac878ad997285bb75 | 5dd42f86cd3518a0f8c734c476f4fd2ec200f139 |
refs/heads/master | <repo_name>sjlawson/hobbyists<file_sep>/README.md
hobbyists
=========
Sample data storage project
<file_sep>/hobbyists.tpl.php
<!DOCTYPE HTML>
<html>
<head>
<meta charset="UTF-8">
<title>Hobbyist Manager</title>
<link href="css/style.css" rel="stylesheet" type="text/css">
<script type="text/javascript">
func... | f1e8f6a2707bcccb7e643f8aa45e07b8a9818099 | [
"Markdown",
"PHP"
] | 10 | Markdown | sjlawson/hobbyists | 8ed77c135fbed3a9292aec864c6c03950554f8af | cca8ae653c6a228ed10d626323bd1d7f63acaef8 |
refs/heads/master | <file_sep><?php
$login = false;
$showError = false;
if($_SERVER["REQUEST_METHOD"] == 'POST'){
include 'connections/connect.php';
$username = $_POST['username'];
$password = $_POST['password'];
$sql = "SELECT * FROM `users` WHERE (`username` = '$username' OR `email` = '$username') AND `password` = <PAS... | 87884ef0499bc33082144581022405832a817639 | [
"PHP"
] | 9 | PHP | debashish999/nettantra | 5af6b014ff94c2c86b9964a0b052b0f231177ce3 | 55b1bf30809bb5aa986ef0d90210319a11e1751e |
refs/heads/master | <repo_name>imust98/reduxTodo<file_sep>/lib/nej/src/util/dispatcher/regularModule.js
/*
* ------------------------------------------
* 项目Regualar模块基类实现文件
* @author sensen(<EMAIL>)
* ------------------------------------------
*/
/** @module util/dispatcher/regularModule */
NEJ.define([
'base/klass',
'base/... | bf2560f4f3d7ba3239295c535fd04a0e9a258b01 | [
"JavaScript",
"Markdown"
] | 7 | JavaScript | imust98/reduxTodo | 5481aac2a516d10976053e2675e60f4e260a69d7 | 8e282ae9968735d057738544d4a471b152aefdb7 |
refs/heads/master | <file_sep><?php
try{
$pdo = new PDO("mysql:host=localhost;dbname=mydb;charset=utf8","root","");
$pdo->setAttribute(PDO::ATTR_ERRMODE,PDO::ERRMODE_EXCEPTION);
if(isset($_POST['submit'])){
$name=$_POST['name'];
$sth=$pdo->prepare("INSERT INTO todos(name)VALUES(:name)");
$... | 7c90f5ac3d6274e7799b1de21262425cacdc66a9 | [
"PHP"
] | 1 | PHP | kawa-00/php1 | be3dffd72f34e5bb745919eee4dfbfdb5359923d | de39939f89521e43a2a097a691639b8d61959c57 |
refs/heads/master | <file_sep>import React, { Component } from 'react';
import logo from '../logo.svg';
import { Navbar, NavbarBrand, Nav, NavLink, Button } from 'reactstrap';
import { withRouter } from 'react-router'
class NavBar extends Component {
constructor(props) {
super(props);
this.state = {
signed... | 23c048a68998f3979763dde4fa85cd010d807add | [
"JavaScript"
] | 1 | JavaScript | CassLamendola/auth-ii | 9e1b516aa11b28c979b219b4adf15a7f331be65a | 9095ac3c16fcd3774c1a58ebb5fa00f76d72ec9f |
refs/heads/master | <file_sep>#!/usr/bin/env python
def func():
print 'hello world'
if __name__ == "__main__":
func()
<file_sep># learning_development
Learning & development
| 4df3b26f74fc30083b46ddc0dcf682139de5177d | [
"Markdown",
"Python"
] | 2 | Python | kopciak/learning_development | b342a373b6268cd1bc956e65dcbab52db0580ccd | 51319332ccd058bf2dff9781e6b67f132a01e85f |
refs/heads/main | <file_sep>import os
import sys
from ont_fast5_api.conversion_tools import single_to_multi_fast5
from ont_fast5_api.conversion_tools.single_to_multi_fast5 import create_multi_read_file
# batch_conver_single_to_multi(input_path, output_folder, filename_base, batch_size, threads, recursive, follow_symlinks, target_compres... | dc3e2ee989e916fc325507771f40c87bdb43f453 | [
"Python"
] | 3 | Python | AlyneG/SquiggleKitNew | 2f05e0bbe0a813bd8e26b4d22ad3788c8fcfd654 | b3a9203b0fd1f1f788b988c7e99e9298d48af89a |
refs/heads/master | <file_sep>#!/usr/bin/env python2.7
"""
Columbia's COMS W4111.001 Introduction to Databases
Example Webserver
To run locally:
python server.py
Go to http://localhost:8111 in your browser.
A debugger such as "pdb" may be helpful for debugging.
Read about it online.
"""
import os
from sqlalchemy import *
from sq... | dd4dcec284749371db70c9b6d24040e2b5bd13af | [
"Markdown",
"Python"
] | 2 | Python | dsendik/global_terror_db | a331a40eae5aefe647bb60150ba2f6a3641510c4 | 2c759c4bcd5b8eaaec414c1bfcc56906231f735a |
refs/heads/master | <repo_name>PORTAFOLIO-PROYECTOS/D3JS<file_sep>/4_asociaon_datos/app_inicio.js
var datos = [1,2,3,5,8,13,21,34,55,89,144];
function graficar(){
d3.select('.miGrafica')
.selectAll('div')
.data(datos)
.enter() //crea espacios temporales
.append('div')
.text(function(d){
... | 6039cf884564b9cdb2a2adbcfadb48de05ea1a34 | [
"JavaScript",
"Markdown"
] | 5 | JavaScript | PORTAFOLIO-PROYECTOS/D3JS | f63e44b785cdfe177cb8dd84d19fc8e1803e9bd4 | 70753b378b81a3bb8ecad4bb6ba83df9d8abe815 |
refs/heads/main | <file_sep>import api from './api.js'
export const getAllPosts = async () => {
try {
const posts = await api.get("/posts")
return posts.data
} catch (error) {
throw error // add custom errors
}
}
export const getOnePost = async (slug) => {
try {
const post = await api.get(`/posts/${slug}`)
... | 363e6d78e85999f754db7bf0ce996a398d69608d | [
"JavaScript"
] | 11 | JavaScript | willnolin/music-blog | 494aa47896abfb1b342539baee8b23572361aad8 | 168cebe30e612c32318290d3b89d33d83c3dcbe3 |
refs/heads/master | <file_sep><?php
namespace ride\application\orm\elastic;
use ride\library\orm\model\Model;
use ride\library\orm\query\ModelQuery;
/**
* Search of entries in Elasticsearch
*/
class ElasticSearch extends AbstractElastic {
/**
* Escapes the reserved query characters in the provided string. The
* reserve... | 1df0b161d791ee21f4f40461ea672dcb92b1ad6f | [
"Markdown",
"PHP"
] | 9 | PHP | all-ride/ride-app-orm-elastic | 11fed36dc0bad94f650741806bcd74291fcda3c5 | 29835a834750757f96ff0404f947e2dd5b76337a |
refs/heads/master | <repo_name>dewanankit/Artificial-Intelligence<file_sep>/naivebayes/q2_classifier.py
import argparse
words_count = {} #Dictionary to store words and corresponding ham and spam occurence count
spam_count = 0
ham_count =0
unique_words = [] #Storing unique words
spam_word_count = 0
ham_word_count = 0
... | 8f64e72f8c899aac9022371fb9eab7bff6a71ad5 | [
"Python"
] | 2 | Python | dewanankit/Artificial-Intelligence | 9bee96f3118f19a9867d7ec4c12eaa27d3d22d9f | 37bc1011063b8a1216b1146114ad2344ab1331f1 |
refs/heads/master | <repo_name>xutm/md-list-tree-parser<file_sep>/test/index.test.js
'use strict';
var path = require('path')
var should = require('should')
var prettyjson = require('prettyjson')
var parse2Json = require('../lib/parser')
describe('test json', function () {
it('should get json', function () {
var json = parse2Json(... | 87bc3e8ee4dc96d08d5e5720cad54532aea677a2 | [
"JavaScript",
"Markdown"
] | 5 | JavaScript | xutm/md-list-tree-parser | aaa60a37ea2e7a7874cba979c68275801da7fa60 | 8ba27e27a69a9225d864b355a123e4b7665062d6 |
refs/heads/master | <file_sep><?php declare(strict_types = 1);
namespace App\Presenters;
use Nette;
use Nette\Application\UI\Form;
final class HomepagePresenter extends BasePresenter
{
public function createComponentLoginForm(): Form
{
$form = New Form;
$form->addText('login', 'Login:')
->setRequir... | 6fa162ade88dc6fa93650b430c94a375c17438fc | [
"Markdown",
"SQL",
"PHP"
] | 10 | PHP | burrak/usercp-nette | 82c6888f342a033013e08325b00243ba3b2a200e | 28500ee46cc663d4553ceb51bf64632ab7251f73 |
refs/heads/master | <repo_name>dayoesq/place-sharing-MED<file_sep>/models/place.js
const mongoose = require('mongoose');
const placeSchema = new mongoose.Schema({
title: {
type: String,
required: [true, 'The title is required'],
minlength: [4, 'The title is too short'],
maxlength: [200, 'The title is too long'],
tri... | 05219ec882069fda12b5eb2a9ce7c4e3422c48f9 | [
"JavaScript",
"Markdown"
] | 6 | JavaScript | dayoesq/place-sharing-MED | 82164ef61dd0f58cc83cfd154a2c118303349e64 | be5b4f950af17def039706a747b653e474fd62e3 |
refs/heads/master | <repo_name>multigraph/java-multigraph<file_sep>/src/org/multigraph/Plot.java
package org.multigraph;
import java.util.ArrayList;
public abstract class Plot {
protected Graph mParent;
protected org.multigraph.jaxb.Plot mState;
protected Axis mHorizontalAxis;
protected Axis mVerticalAxis;
protected... | ad57a640c2f971d6c833927f38a51f633dc8e396 | [
"Java",
"Ant Build System",
"Shell"
] | 36 | Java | multigraph/java-multigraph | 139b441b0ac6ea14d66ba2200e9b39a9effd1d84 | 7ba04ecf8418bc21a6799d9a47e8f7e6a3fb2be6 |
refs/heads/master | <repo_name>Aleryc/Gestion-Messagerie<file_sep>/BlocData.cpp
/**
* @file BlocData.cpp
* @author <NAME> et <NAME>
* @version 1.0 14/12/2017
* @brief Composants d'un bloc de données
*/
#include "BlocData.h"
#include <cassert>
using namespace std;
void lire(istream& is, BlocData& bc) {
assert(is.good());
i... | f82191417b7e524151ac41445cfe40e9f4eff68a | [
"Markdown",
"C",
"C++"
] | 17 | C++ | Aleryc/Gestion-Messagerie | 5f9a36715883a819822678ae1a474e49330f9885 | fb840fb6e00ed497d1173606f2038ed29e156db5 |
refs/heads/master | <file_sep>package com.james.springbootaop.aspect;
import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.*;
import org.springframework.stereotype.Component;
/**
* @Author yujie.pan
* @Date 2019/11/14 10:16
**/
@Aspect
@Component
public class ServiceAspect {
// 切点范围
@Pointcut("execu... | 67b1e85833dc47f2cd2da59029f347fbc0247597 | [
"Markdown",
"Java"
] | 9 | Java | Jamesjayedm/SpringBoot-Learning | 746ede595835c806222634373fb18cc88aba1858 | d0cf5ce3f51af6a038b216f2d8262bca49d1d1f2 |
refs/heads/master | <repo_name>d3en9/CItest<file_sep>/CItest/Calculator.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace CItest
{
public enum Operations
{
Add = 0,
Sub,
Div,
Mul
}
public class Calculator
{
publ... | 3a9a2ae36825c9f4c40def54b8825467da2165a3 | [
"Markdown",
"C#"
] | 3 | C# | d3en9/CItest | dcec677345cd6d9866df285abc326bebe30f3ed4 | 26dfff8cba920b37da666652b810ef6bed92f7db |
refs/heads/master | <repo_name>hbhatt687/Snake<file_sep>/README.md
# Snake
[![][badge-travis]][build-travis] [![][badge-appveyor]][build-appveyor] ![][badge-python]
This project focuses on the artificial intelligence of the [Snake][wiki-snake] game. The snake's goal is to eat the food continuously and fill the map with its bodies. Huge ... | e6647c4e4b19f89139b01d708b8b13f8789194fc | [
"Markdown",
"Python"
] | 4 | Markdown | hbhatt687/Snake | 08213d6aba5826d954e8b0a4cbf7b9a259c432bd | efaca746d035025c6a3be3b34b78c5634c27feeb |
refs/heads/master | <repo_name>tanchiba/DACK_WEB2<file_sep>/MobileShop/Areas/Admin/Models/SanPhamaAdminBus/QuanLyTaiKhoanBus.cs
using MobileShopConnection;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Helpers;
namespace MobileShop.Areas.Admin.Models.SanPhamaAdminBus
{
public c... | fe35ff035ac62e6737efd6e32429b9ca3b40c875 | [
"C#"
] | 24 | C# | tanchiba/DACK_WEB2 | f4b3adede6b67e27b8f83e337fbb671cd31c7bbd | b0e100015bae112ee06defe4a402f017a1af2953 |
refs/heads/master | <file_sep><?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Models\Models\Mst_drunkard;
use App\Http\Requests\DrunkardRequest;
class DrunkardsWebController extends Controller
{
//
public function showList(){
$drunkards = Mst_drunkard::all();
// dd($drunkards);
... | e5f69ec97f7704d43083984f0efd023e4a32cdcd | [
"Markdown",
"PHP"
] | 6 | PHP | sitopi/banquet-cms | de5ac2521dbada78011e459beaad79f91682766b | cdccf546815f191e4b3e3c54a403067c78a11438 |
refs/heads/master | <repo_name>Joseph-M-Tech/WebScraping<file_sep>/Career24 IT Jobs scraper.py
#!/usr/bin/env python
# coding: utf-8
# In[1]:
import requests
from bs4 import BeautifulSoup
import re
import pandas as pd
# In[2]:
def jobs_func(job_result):
job_dict = {}
#job_dict['img_url'] = job_result.img["src"]
job... | 51ba27dca0f44f9950c5903899e4664c98aafe43 | [
"Markdown",
"Python"
] | 4 | Python | Joseph-M-Tech/WebScraping | f98bb7ae5470e104f1d1c2adfae17f2f0da21045 | 66d43b142c948e8b90f6dfd44a22733002e1b95c |
refs/heads/main | <file_sep>const fs = require('fs');
const lines = fs.readFileSync('./adv2.txt').toString('utf8')
let re = /(\w+)-(\w+) (\w): (\w+)/
console.log(lines.split('\n').map(line => {
const parse = re.exec(line);
const min = parseInt(parse[1])
const max = parseInt(parse[2])
const occurences = parse[4].split('... | 3d2e9643312f2d09f1c8a68be6fc24087ce3e80d | [
"JavaScript"
] | 13 | JavaScript | alexpsi/advent2020 | 7ea0bf3861848bfa589b728a36c534de84465495 | 5e9b0744a274d9e40a3ba16289670d6bfda928c6 |
refs/heads/master | <file_sep>package cmd
import (
"fmt"
"io"
"os"
"path/filepath"
"github.com/craiggwilson/go-typeproviders/pkg/providers/json"
"github.com/spf13/cobra"
)
func init() {
rootCmd.AddCommand(jsonCmd)
jsonCmd.Flags().StringP("name", "n", "AutoGenerated", "The name of the struct.")
}
var jsonCmd = &cobra.Command{
... | 5989fb67c0db52a05e618fce48204a1b7681b8a6 | [
"Markdown",
"Go Module",
"Go"
] | 14 | Go | craiggwilson/go-typeproviders | ca45732d6fb591e230daba367a8928bb4c090c63 | 53fbe4b53130a7439be920157eb2c0ac2d259ab6 |
refs/heads/main | <file_sep>/*
Given an array of integers nums and an integer target, return indices of the two numbers such that they add up to target.
You may assume that each input would have exactly one solution, and you may not use the same element twice.
You can return the answer in any order.
Example 1:
Input: nums = [2,7,11,... | 37dc58fc4aebf3e07f4cba5f799872f29647ec80 | [
"Java"
] | 1 | Java | rajbhupendra588/leetcode | 6a602d19c63217aed59ad489e86fc84e09650e9c | 3b75d0bb3f113d7a83cd67ffa485d6bfd9766cb5 |
refs/heads/master | <repo_name>billy1816/Lunar-Landing-Final-2017<file_sep>/README.md
# Lunar-Lander
Projecte Lunar Lander (HTML, CSS i JS)
Basant en l'anterior projecte (HTML i CSS).
Joc funcional amb adaptabilitat a tot tipus de dispositius. El projecte disposa d'un menu principal a on es poden llegir les instruccions o navegar fins a... | f132cda6a33d1803cc9dab07c091468f4c633476 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | billy1816/Lunar-Landing-Final-2017 | 1a4de97f59ae2950caa5bf2f9227cd8a00a0386f | cc416f358b6fad47e229590f3fe238b3feccceea |
refs/heads/master | <repo_name>inaldor/Book-Manager<file_sep>/BookManager/Models/Book+CoreDataClass.swift
//
// Book+CoreDataClass.swift
// BookManager
//
// Created by CTW00517 on 03/11/2020.
//
//
import Foundation
import CoreData
import UIKit
@objc(Book)
public class Book: NSManagedObject {
class public func getAll() throws -... | 34624e14a07ddaa6a7ffc2c28bd74aa60bfc5c24 | [
"Swift",
"Markdown"
] | 6 | Swift | inaldor/Book-Manager | e33ac189026a16f89364a073ad3b67bd2f0db77c | b2b13f07aaa58d201cf67044729f44ee05a762d1 |
refs/heads/master | <repo_name>ariboren/aa-music<file_sep>/config/routes.rb
Rails.application.routes.draw do
resource :session, only: [:new, :create, :destroy]
resources :users, only: [:new, :create, :edit, :update, :show] do
collection { get 'activate' }
end
resources :bands do
resources :albums, only: [:new, :create]
... | dd22e483e3ac03fafb990f1bfe31e44e64e0d7d6 | [
"Ruby"
] | 11 | Ruby | ariboren/aa-music | 450e66264787b1a5586a2ceff10efcd3b19fe9ea | 4268b1d4630b0fd817c211066d5f3dd8f2722749 |
refs/heads/master | <repo_name>jmiazga/svn2bitbucket<file_sep>/svn2bitbucket.sh
#! /bin/bash
function usage_and_exit()
{
echo "$0 -s <svnUrl> -n <bitbucketRepoName> -u <bitbucketUserName>"
exit 1;
}
svnUrl=
bitbucketRepoName=
bitbucketRepoNameNoSpaces=
bitbucketUserName=
bitbucketPassword=
while getopts s:n:u: flag
do
case... | 606eeee702182a1b8aba328e75073541fde130be | [
"Markdown",
"Shell"
] | 2 | Shell | jmiazga/svn2bitbucket | 233c5d48819eb2bcc0b9959e4ddc1df65b6a8c70 | bf79802ea130ae80854b40d2eb99c224f5718193 |
refs/heads/master | <file_sep>using UnityEngine.SceneManagement;
public static class GameSceneManager
{
public enum Scene
{
MainMenu,
Game,
}
public static void Load(Scene scene)
{
SceneManager.LoadScene((int) scene);
}
}
<file_sep>using System;
using Cinemachine;
using UnityEngine;
... | bf14ed685b3c527634f7150d98c9ec8bc35918cd | [
"C#"
] | 26 | C# | PawelKrywulko/BuilderDefenderCourse_Scripts | a036a37fea62f04bb807e45919f59ed94a9ed09f | a0c4a44f1675675dd847f4733a91fc2155448def |
refs/heads/master | <repo_name>kawwaii/mmdetection<file_sep>/mmdet/datasets/sdxl.py
from .registry import DATASETS
from .xml_style import XMLDataset
@DATASETS.register_module
class SDXLDataset(XMLDataset):
CLASSES = ('DiaoChe', 'TaDiao', 'YanHuo', 'ShiGongJiXie', 'DaoXianYiWu', 'DiMianYiWu')
def __init__(self, **kwargs):
... | 1bdf841e19d97f90407502bbae5af6d9756f9c13 | [
"Python"
] | 1 | Python | kawwaii/mmdetection | d5637ceb9d51e6958503606d233fb0b68e24e424 | f9b32fe25621e5147f2adb2e1ab830810f00628b |
refs/heads/master | <file_sep>#!/bin/sh
set +vx
if test ! \( $# -eq 2 -o $# -eq 4 \)
then
echo "Usage $0 hosturl file.gob [user passwd]" >&2
exit 1
fi
HOST="$1"
URL="$HOST/admin/dsdump"
FILE="$2"
if test $# -gt 2
then
EMAIL=$3
PW=$4
eval `curl -s myAuthFile.txt -d Email=$EMAIL -d Passwd=$PW -d accountType=GOOGLE -d service=ah -d sour... | 133d38d1d79c252014fb3de785be4406e886d4e1 | [
"Markdown",
"Go",
"Shell"
] | 4 | Shell | jum/dsdump | 40b86ec476bb8c7be0c0e4560a8c1440f3998c47 | 8ef956348a172cc3360ca573e8438624bdbd9958 |
refs/heads/master | <file_sep>#ifndef _H_CAPTURE_V4L2_H
#define _H_CAPTURE_V4L2_H
/*
<<NAME>><EMAIL>
*/
#include <linux/videodev2.h> //V4L2 definitions, /include/uapi/linux/videodev2.h
int init_mmap(int fd);
int print_caps(int fd);
int GetAutoWhiteBalance(int fd);
int SetAutoWhiteBalance(int fd, int enable);
int EnumVideoFMT(int fd);
in... | 8ab685a20722d97d1633565083a0dc0a53a49309 | [
"C",
"CMake",
"C++"
] | 6 | C | biotrump/v4l2-lib | 276f3a0356e2f3ac1c510aafd48b49fb0a56be1f | e727da3bf353a0cd4ee921a9fb9f6ac664636877 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.