branch_name stringclasses 149
values | text stringlengths 23 89.3M | directory_id stringlengths 40 40 | languages listlengths 1 19 | num_files int64 1 11.8k | repo_language stringclasses 38
values | repo_name stringlengths 6 114 | revision_id stringlengths 40 40 | snapshot_id stringlengths 40 40 |
|---|---|---|---|---|---|---|---|---|
refs/heads/master | <repo_name>parma5/PZW-domaci-rad-2-unit<file_sep>/UnitTest/UnitTest1.cs
using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using dr2;
namespace UnitTests
{
[TestClass]
public class UnitTest1
{
// constructor
[TestMethod]
public void ctorDayLowValue()
{
... | 59e303e0f5de3f15c6600e3f22e0a684ad49d2d1 | [
"C#"
] | 2 | C# | parma5/PZW-domaci-rad-2-unit | 01adc69bfa948ca2e604ad3e1adf5a3ec6111f85 | baeef1ad740327228d0e4c21a3a5af1d3459e122 |
refs/heads/master | <repo_name>sniperkit/github-repo-metrics<file_sep>/pkg/archive/archive.go
package archive
import (
"bufio"
"bytes"
"compress/gzip"
"encoding/json"
"fmt"
"io"
"log"
"net/http"
"sync"
"time"
"github.com/go-xorm/xorm"
_ "github.com/go-sql-driver/mysql"
_ "github.com/lib/pq"
_ "github.com/mattn/go-sqlite3"... | d7a02d66226f9302d7131d54b00ea6803cc0abc6 | [
"Makefile",
"Go",
"Dockerfile"
] | 4 | Go | sniperkit/github-repo-metrics | 2b7286bb2facfb8b9c9eb9c081bb185bd7c54218 | 00294306109e6d83a768503486cb755cce155abd |
refs/heads/master | <file_sep>// <copyright file="LoopedRand.cs" company="Audino">
// Copyright (c) Audino
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
// </copyright>
using System;
using System.Collections.Generic;
namespace RogueElements
{
/// <summary>
/// Generates a ... | b383b3fd0f96cec495964672eb1dd04b319ebcf0 | [
"C#"
] | 40 | C# | AntyMew/RogueElements | cff1ea631488f295dce850e055e56d64f07e3390 | e183427ade569978fd26707fe61630317fa298a7 |
refs/heads/master | <file_sep>GCP Bar Client and Central Logger
======<file_sep>(function(document, io, ko) {
var vm = {},
socket = io.connect('http://172.16.31.10:8080');
vm.caller = ko.observable('<NAME>');
vm.rates = ko.observableArray(['Low', 'Mid', 'High']);
vm.rate = ko.observable();
vm.interval = ko.pureComputed(function() {
... | 7deede260aa07fc6d90926ad1cad3a99b8d061cd | [
"Markdown",
"JavaScript"
] | 3 | Markdown | AllencxWang/gcp_test_bar_and_logger | 32078f88a051ae3c5b1e4d843039cd313061237e | 617a1de1f562728d6098c6e824970177fefb5bc9 |
refs/heads/master | <repo_name>sandyravage/Assessment4Week5<file_sep>/Assessment4Week5(2)/Assessment4Week5(2)/Program.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Assessment4Week5_2_
{
class Program
{
static void Main(string[] args)
... | 2a099e2796352ff37ffb728323c2460c36414001 | [
"Markdown",
"C#"
] | 6 | C# | sandyravage/Assessment4Week5 | b509ae3560693a5dbb14525d2cd8f149c441f29f | 68e90f798c74e030969817468588ad4d2546d815 |
refs/heads/master | <repo_name>bendrakeacker/Template-Engine-Employee-Summary<file_sep>/README.md
# Template-Engine-Employee-Summary
The Template Engine Employee Summaryn is a Node JS command line app that builds a company team consisting of managers, engineers, and interns. The team is then displayed to a web page where you can see your ... | f2e5377991450fe603f875892b5799eb89e8579a | [
"Markdown",
"JavaScript"
] | 2 | Markdown | bendrakeacker/Template-Engine-Employee-Summary | c6759a94ccd485551ec34bb465c0b22709d2bd5d | 4a6cd65d1e4cbba6b1a405375c274a1e0dcf1eb0 |
refs/heads/master | <file_sep># coding=utf-8
from basic_elements import Point
from file_operator import get_data_file_content, save_source_file
from acad_writer.base_writer import BaseACADWriter
from utils import is_debug_environment
if is_debug_environment():
from mock_pyautocad import Autocad
else:
from pyautocad import Autocad... | 609db34a42046d90465ff125910630279a2e2bdc | [
"Python"
] | 16 | Python | eddie-aa/csm | 251f7b81f561c2752453045cf2d5f1e4505b959b | 20dd8e814cc488d14407c5240220611f42978f35 |
refs/heads/master | <repo_name>Dotneteer/spectnetide-svelte<file_sep>/src/shared/output-frame/output-frame-commands.ts
import {
MenuItemBase,
StandardMenuItem,
MenuSeparator
} from "../menu/ui-menu-item";
import { __DARWIN__ } from "@/main/utils/electron-utils";
/**
* Hides the output pane
*/
export class HideOutputPaneCommand ex... | 20529f60f401f6d8a0551c563eb5c370380ed708 | [
"Markdown",
"TypeScript"
] | 29 | TypeScript | Dotneteer/spectnetide-svelte | 13afc81f853b231109140a45e0bb7af995ef9dca | 05eed4a915ec832fb371d7c12af34eaee7d26b68 |
refs/heads/master | <repo_name>mandary/MachineLearning<file_sep>/kmeans/kmeans.py
import numpy as np
import random
import copy
import math
import pdb
import matplotlib.pyplot as plt
def getData():
return np.genfromtxt('digit.txt')
def getLabel():
return np.genfromtxt('labels.txt', dtype=int)
def selectK(k, rand, datas):
in... | 1def284db740248586c6994e70a536aed4d07250 | [
"Markdown",
"Python"
] | 5 | Python | mandary/MachineLearning | 98dfa49358d6bb04579c19237d0e01cb5938e6a1 | 89230096f3e1578298854647baffa29221507d72 |
refs/heads/master | <file_sep>package com.example.kredo
import android.app.Activity
import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.view.View
import android.widget.Toast
import com.hover.sdk.api.HoverParameters
class BuyBundledetails : AppCompatActivity() {
overr... | 7a0a769c066028c0557f6ea4bdb95d18e62ce696 | [
"Kotlin"
] | 5 | Kotlin | kevahere/kredo | 4c2a59b3d37560fcf3842bff3885cb2c9fd377df | 3763f7f908db6f60f55fd296d896054562e5ae7d |
refs/heads/master | <file_sep># deploy_tool
delivery tool with web ui in flask
<file_sep>import json
from flask_sqlalchemy import SQLAlchemy
from sqlalchemy import TypeDecorator, String
from deploytool import app
from datetime import datetime
app.config["SQLALCHEMY_DATABASE_URI"] = "sqlite:///releases.db"
app.config["SQLALCHEMY_TRACK_MO... | a47eaa78f971f6398b3626249c62b4754a74b957 | [
"Markdown",
"Python",
"HTML"
] | 8 | Markdown | achekhirov/deploy_tool | 899b3c058249f93a4a4caddccc9e26ae5b4d3d14 | 99d3f9793addab5aceb891a2dda5f358b438ca72 |
refs/heads/master | <file_sep><?php
/**
* Created by PhpStorm.
* User: Clancey
* Date: 2017/5/6
* Time: 0:11
*/
namespace app\admin\validate;
use think\Validate;
class Plan extends Validate {
protected $rule = [
['holder', 'require|max:10', '负责人必须传递|负责人不能超过10个字符'],
['detail','require'],
];
/**场景设置**/
... | c4304a1029df5b353c9ccbc47393c992d611c67d | [
"SQL",
"PHP"
] | 17 | PHP | HuangKuanK/KCRManager | 3cbee4061496fd8645db734e093577f0db315c18 | a9766bf27ea044aa045e61e26aea6fe2eff80ae5 |
refs/heads/master | <repo_name>mbortolotti/org.rexpd.data.indexing<file_sep>/src/org/rexpd/data/indexing/ITO.java
package org.rexpd.data.indexing;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java... | 25ba0ef02e22d89833fb6ffde1fa0c3c3ef2009d | [
"Java"
] | 2 | Java | mbortolotti/org.rexpd.data.indexing | 294d2b02e864cddfef649c09002d03a054b071ea | c7acb7a48df7940769e63a8d03a45f621e729fe5 |
refs/heads/master | <repo_name>morbdeath/TiendaOnline<file_sep>/src/main/java/com/eternamania/controller/productoController.java
package com.eternamania.controller;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import com.eternamania.service.*;
im... | c2e78947e23ae64b4427ddce5fb837cc42b29b3e | [
"Markdown",
"Java"
] | 7 | Java | morbdeath/TiendaOnline | c587953ccdd3cc785e7106c0b090677f7a846a02 | 2db2837c65a719cfae189782db616d61ae67711a |
refs/heads/master | <repo_name>Warmor/warmor.github.io<file_sep>/build_01/index.html
<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="utf-8">
<title>HTML Academy: Пинк</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="https://fonts.googleapis.com/css?family=Open+Sans:400,300,700&subset=... | 85199049d9432758db658c73a543071e81ec8a93 | [
"JavaScript",
"HTML",
"Markdown"
] | 3 | HTML | Warmor/warmor.github.io | 47377af00a5a3e4a14be35793ca4974fcc2ada69 | 7e4263c951a28d89a0458981a45ea922ee5a282f |
refs/heads/main | <file_sep>import React,{useState} from 'react';
import { makeStyles, useTheme } from '@material-ui/core/styles';
import Card from '@material-ui/core/Card';
import {CardContent,Tooltip,Button} from '@material-ui/core';
import CardMedia from '@material-ui/core/CardMedia';
import IconButton from '@material-ui/core/IconBut... | 548833bcc840cae81db3ca3c4e2f907cc5a6a04d | [
"JavaScript",
"Markdown"
] | 27 | JavaScript | vaibhavsingh9/MODENA_COVID_19 | f23650683d1105b69496379cc0140e79e0fd8e9a | 98f0e1a20f1ba9b00638a2a9e85efd3b1548af44 |
refs/heads/master | <file_sep>App.MultipostIndexController = Ember.ArrayController.extend({
titleWarn: false,
postWarn: false,
postSuccess: false,
submitMultiPost: function() {
if ($.trim(this.get('session.title')) === '') {
this.set('titleWarn', true);
}
if ($.trim(this.get('session.post')) === '') {
this.set('postWarn',... | 578408800b64426b5797c7d2de47eabbafcab08a | [
"JavaScript"
] | 4 | JavaScript | jdivock/ember_site | 12d2875ddd5a02c7055d0435794f4f6ab6ca3a06 | 9d258f43275362d5fc8a78b08cfc3217254e3040 |
refs/heads/master | <repo_name>BrianEspinosaGarcia/Proyecto-Cafeteria--Foundation<file_sep>/Desktop/Repaso LIt-Element/Lit Element Inicio/formulario.js
import { LitElement, html, css } from 'lit-element';
import input from './inputText.js';
class Formulario extends LitElement {
static get styles() {
return css`
.encap... | c5894946775bae4a13daf698374727c3be6cce4b | [
"JavaScript",
"HTML"
] | 3 | JavaScript | BrianEspinosaGarcia/Proyecto-Cafeteria--Foundation | 971bd8eac194fcaa8e583ccedf933e3005aff4f1 | aa066a7065ee177010894e4b7413b5e674cd1326 |
refs/heads/master | <repo_name>qjsqjsaos/CompressPracticeAS<file_sep>/app/src/main/java/org/techtown/drawer/Fragment1.java
package org.techtown.drawer;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;
import androidx.fragment.app.Fragment;
import android.app.DatePi... | f7bb628f23af13d7c7e2b860a1f1007df15252a4 | [
"Markdown",
"Java"
] | 2 | Java | qjsqjsaos/CompressPracticeAS | fd7a927175ba31cf9d16537a6fb41fd3dfa54255 | da40f9d63b284bc66e1f10805493d3c1a9cade99 |
refs/heads/master | <file_sep>use crate::server::ServerConnection;
use serenity::framework::standard::CommandError;
use crate::db::DbConnection;
use crate::model::enums::{Era, NationStatus, Nations, SubmissionStatus};
use crate::model::{GameData, GameServerState, LobbyState, Nation, Player, StartedState};
use crate::snek::SnekGameStatus... | 64790d2bb90737986ee22898fdafb5c92ecef522 | [
"Rust"
] | 1 | Rust | ClubbingSealCub/dominions-5-status | c872051c7864653ab642b1c80f4e7c9f47e3b0d4 | ba132b225aae9d2a070bf6e8392b9adfcf11e26d |
refs/heads/master | <file_sep># MRP1-2018-1
Trabajo parcial MRP1 de sistemas de la informacion.
<file_sep>
class Bebida():
def __init__(self, id_bebida, nombre, precio_venta = -1, id_receta = -1, stock = -1, stock_minimo = -1, base = 1):
self.id_bebida = id_bebida
self.nombre = nombre
self.precio_venta = precio... | eb92c76c9804a2c5dcc62c8048346fb131acb8c8 | [
"Markdown",
"SQL",
"Python"
] | 9 | Markdown | Dumaru/MRP1-2018-1 | 55811a4784cfedb39e05701993ca54182385ef22 | cdaff1334d9d8dfd76f7be2261a11b00e4d2320a |
refs/heads/master | <repo_name>Nevicity/NevicWEB<file_sep>/resources/js/functions.js
/*
* Functions for the html files
*/
function redirectTo(newPage) {
window.location.href = "newPage"
}
function popUp(){
alert("HELLO THERE")
}
| 1f635a325a82cddc65d48184c3a87a969b36bb4a | [
"JavaScript"
] | 1 | JavaScript | Nevicity/NevicWEB | dcc9f1fa3016f463c0432f6383e242b10e2547ee | 47ce9bcb7101d085d8b5097674239233f101b8bd |
refs/heads/master | <repo_name>felixjimcal/badigeeks-api<file_sep>/spec/support/request_spec_helper.rb
module RequestSpecHelper
# parse JSON response
def json
JSON.parse(response.body)
end
def calculate_age(birth_date)
now = Time.now.utc.to_date
birthday = birth_date.to_date
now.year - birthday.year - (birthday.ch... | a9e09c85ca9867cd5e357edf1ce48a6767c1b8dd | [
"Markdown",
"Ruby"
] | 29 | Ruby | felixjimcal/badigeeks-api | 345305324aaf2ee8068d21110e2febf34c14fce4 | 64405adf17a5f5794c3b71c404350d2b3e809e45 |
refs/heads/main | <repo_name>jupyter-naas/docker-smart-tag-action<file_sep>/__tests__/main.test.ts
import {getSmartTag} from '../src/smartTag'
import * as process from 'process'
import * as cp from 'child_process'
import * as path from 'path'
const githubSha = 'ffac537e6cbbf934b08745a378932722df287a53'
describe.each([
['refs/heads/m... | 9ab5726ada963155c56c3cf2e52a3fae9c645a05 | [
"Markdown",
"TypeScript"
] | 4 | TypeScript | jupyter-naas/docker-smart-tag-action | 5779eee6351d8202298f71b19db53a31f1f53c5b | 3ff87ebae182f80fa5ad83c9e5ce1bc31e7d51f3 |
refs/heads/master | <file_sep>#include <stdio.h>
#include <stdlib.h>
void inputMatrix(int *inputMatrix, unsigned inputMatrixRowCount, unsigned inputMatrixColumnCount)
{
for (unsigned i = 0; i < inputMatrixRowCount; i++)
{
for (unsigned j = 0; j < inputMatrixColumnCount; j++)
{
printf("[%d][%d] = ", i, ... | 7c0e5439237acaf24e9321034db751ee62812a50 | [
"C"
] | 1 | C | yarun1/OP_Lab4 | 0a8d3087de0bab6204b5dff53f52f402eaf0f88b | 4183369e9998266b79bb79bbcc1dd23e5ec1a6d6 |
refs/heads/main | <file_sep>import matplotlib.pyplot as plt ### plotting things
import numpy as np ## one of python's main maths packages
import pandas as pd ## for reading in our data
from scipy.optimize import curve_fit ## for fitting a line to our data
import math
from numpy import arange
from matplotlib import pyplot
v... | 71cb1277e38271ae67e4a3d1cc6578f258a74417 | [
"Python"
] | 3 | Python | sheanong/Project-Report-Sample-code | 492f5617cd3e5bbad73f6ea5f11446deed3c62f6 | cfeb92709bb0f3bfd028b6dd9d13b74259d6e155 |
refs/heads/master | <repo_name>renjithgr/spring-security-demo<file_sep>/client/build.gradle
apply plugin: 'com.moowork.node'
task build(type: NpmTask, dependsOn: 'deleteDistDirectory') {
args = ['run', 'build']
}
task deleteDistDirectory(type: Delete) {
delete "dist"
}
<file_sep>/src/main/java/co/renjith/security/service/UserAut... | 489e23ef1b632bced3187d6dd3a806f1679d6227 | [
"Java",
"Gradle"
] | 3 | Gradle | renjithgr/spring-security-demo | a214ed08474b371065d9c728928690bd1711bdee | 11b0dea36ea29678210d8903861afa0b9863402c |
refs/heads/Rewrite_selenium | <repo_name>QWERTYman2020/Stock-Taker<file_sep>/README.md
# Stock-Taker
Java application which tries to determine the amount of products a magento based site has in stock.
uses Browsermob Proxy, Selenium, Chrome and a handfull of private proxies.
17-5-2017: this is actually written pretty poorly and i will probably r... | 58f6aaec14d836b00f1ef2a3cde301bfa884b8f7 | [
"Markdown",
"Java"
] | 3 | Markdown | QWERTYman2020/Stock-Taker | 4827ad9a511ef161ddc9ac4892cc21de34688a42 | 6b12112cc54cfb552a398e5b84d7988801d46ab0 |
refs/heads/master | <repo_name>DaveSugrue/movies-fe<file_sep>/app/products/dotsProduct.ts
export interface IDotsProduct{
id: number;
categoryId: string;
name: string;
description: string;
iconUrl: string;
imageUrl: string;
price: number;
stock: number;
} | d09e5150201f4bda25d60f39adc1769d563ac3b5 | [
"TypeScript"
] | 1 | TypeScript | DaveSugrue/movies-fe | e729225707e6ba888a7194b90613c89b6c8aaf2c | 1a86bfd5743791c7456b68ea50af9b26c285a015 |
refs/heads/main | <repo_name>gabocode2907/fundamentosbasicos1<file_sep>/fundamentosb1.js
//1
var array=[];
function a(){
for(var i = 1;i < 256; i++)
{
array[i-1]=i;
}
return array;
}
console.log(a());
//2
var pairsum=0;
function p(){
for(var i = 0;i <= 1000;i++){
if(i%2==0){
pairsum += i... | 45e7512dc763c74699def7978134142de4bf1f6c | [
"JavaScript"
] | 1 | JavaScript | gabocode2907/fundamentosbasicos1 | c843b57bdcc5977d41e1d1bf125f45720b681226 | 6ed1d22949734b8c2941f8efe811ee9321ee8d20 |
refs/heads/main | <repo_name>djacuinde/Smart-Wearable-Shirt-for-ECG-EMG-Analysis<file_sep>/SAMD21 Microcontroller/Drivers/V2.2/src/ASF/sam0/drivers/system/reset/Pin_Config.c
/*
* Pin_Config.c
*
* Created: 8/19/2020 1:25:09 PM
* Author: <NAME>
*/
<file_sep>/SAMD21 Microcontroller/Drivers/V2.2/src/conf_adc.c
/*
* conf_adc.c... | 6a2222abe530b28bb2b4ddfa95abaa583d71f4ad | [
"C"
] | 13 | C | djacuinde/Smart-Wearable-Shirt-for-ECG-EMG-Analysis | cf0a44b655a85471b74e04bc661fac8b15f38129 | 8aff42ff7c45754299b94bdcf1d9886736893978 |
refs/heads/main | <file_sep>export default function checaDataEntre(dataInicial, dataFinal, dataTeste){
console.log(dataInicial, dataFinal, dataTeste)
const data1 = new Date(dataInicial);
const data2 = new Date(dataFinal);
const data3 = new Date(dataTeste);
console.log(data1, data2, data3);
const ms1 = data1.getTime();
co... | ab67a6e3d5fc8a3bd730c0d746bf508b8cc98145 | [
"JavaScript",
"Markdown"
] | 8 | JavaScript | gotaBR/gota-front | 59a388b2037053e1be38fbeda0d3b41262451dd5 | aae926027ec93cf8b34bbae09d8d995ddae221d3 |
refs/heads/master | <file_sep>React, Redux, React Router toolkit.
Integrated with [Semantic UI library](https://react.semantic-ui.com/introduction)<file_sep>import React from "react";
import _ from "underscore";
import { Input } from "semantic-ui-react";
const style = {
container: {
display: "flex"
},
label: {
padding: "0.... | 43a651a0a008e1a7c5b45391506ac44f0be29c6b | [
"Markdown",
"JavaScript"
] | 7 | Markdown | yanime/react-github-app | 5dce98837922fb7a073e8e1011ca99ae6232f0b6 | aef255376e7efca21483d15dedc3c5623d044af5 |
refs/heads/master | <file_sep>module.exports = {
singleQuote: true, // aspas simples
trailingComma: 'all', // vírgula após o final dos objetos
arrowParens: 'avoid', // não coloca parênteses por volta das arrow functions caso possua um único parâmetro
};<file_sep><h1 align="center">
<img alt="goBarber" src="./assets/logo_readme.s... | 01bf3382b72d4149d0bf4712c9f54c469677af96 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | petlou/goBarber | 5318df60102e62b5875d76b7577c1b889a09d2a4 | 6952114c971d664cf02b901b674db3906903ea22 |
refs/heads/master | <file_sep>import java.util.*;
/*
* Input any number. Find the sum of the digits of
* the number using a recursive function.
*/
class SumOfDigitsUsingRecursion {
public static void main(String[] arg) {
Scanner s=new Scanner(System.in);
System.out.println("Enter any integer: ");
int x=s... | 26bd2c50aa6939a9f06c5c01ff1f967cb8d87898 | [
"Markdown",
"Java"
] | 39 | Java | jasond34/Java-Projects-Tutorial | 25816ee0a6c3099bc5c31d18fb541b95e33a8eac | b204e9cec4cd827abeb1cc876a5a4b0d7255d4ea |
refs/heads/main | <file_sep>## System Requirements
1) Python: version 3.8.5 or above
2) Pandas: version 1.2.3 or above
3) psycopg2: 2.8.6 or above
4) SQLAlchemy: 1.3.22 or above
5) Flask: 1.1.2 or above
6) mysqlclient: 2.0.3 or above (only for using mysql database only)
## Instructions
1. Git pull the project folder.
... | 7b7805d14643b7346bc68041bbcd3a38f4b1fc7f | [
"Markdown",
"Python",
"JavaScript",
"Text"
] | 6 | Markdown | relaernu/project_2 | b996276f820248880d7a262c2c8a0a4c37e8f6d2 | 478133733102e2b9d9ae8150c53f5bf703643165 |
refs/heads/master | <file_sep>var pathname = require('pathname-match')
var urlencode = require('urlencode')
var wayfarer = require('wayfarer')
var assert = require('assert')
module.exports = class ServerRouter {
constructor (opts) {
opts = opts || {}
assert.equal(typeof opts, 'object', 'micro-server-router: opts should be type ... | a8c2fd0a453cfd2d9344d0c46f4301e066a36669 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | kodedninja/micro-server-router | 1e79a6f9c4ab3d1f86f5a8a364ed27f4496619b0 | 9be111029b7f1f406b8fb6f5c3aa547dcdb471a2 |
refs/heads/master | <repo_name>JuhubGit/wlinux-packs<file_sep>/wlinux-gui/postinst
#!/usr/bin/env bash
sed -i 's$<listen>.*</listen>$<listen>tcp:host=localhost,port=0</listen>$' /etc/dbus-1/session.conf
sed -i 's$<auth>EXTERNAL</auth>$<auth>ANONYMOUS</auth>$' /etc/dbus-1/session.conf
sed -i 's$</busconfig>$<allow_anonymous/></busconfig>$'... | 3b1cbb7058787c00400a61214a1d4e38336812d1 | [
"Markdown",
"Shell"
] | 5 | Shell | JuhubGit/wlinux-packs | 92024e29b8536b2e6fb45ce0027e0e40a9b19ff7 | 7b10703e05316c7b49d5572754d7ba27b10c6364 |
refs/heads/master | <repo_name>Scorn123/aris-euler-avionics<file_sep>/groundstation_hardware/groundstation/Telemetry.cpp
#include "Telemetry.h"
Telemetry::Telemetry() {}
void Telemetry::update() { ts = millis(); }
<file_sep>/euler_2/other/ARIS_Reed-Solomon/RS/RS.h
//
// Created by imrek on 20.09.2020.
//
#ifndef ARIS_REED_SOLOMON_RS_H
... | 7ca99a78d49174dfb6dbc764e1a0b2796adfa16b | [
"C",
"C++"
] | 23 | C++ | Scorn123/aris-euler-avionics | 468d6ac848a20068c0860cb9b122966da9a1ebc1 | 75debf13f8d604b1f38777d92752b6da3a3a11ea |
refs/heads/master | <file_sep>import numpy as np
from scipy import sparse
import sys
import data_io
from mittens.np_mittens import Mittens, GloVe
import argparse
# Train Mittens with the following command:
# python run_mittens.py -p pretrained_vectors.txt -c coo_matrix.txt -v vocabulary.txt -lr 0.01 -i 2
parser = argparse.ArgumentParser... | 8fa9305df1d498fe452fba4fe03f6568a4538128 | [
"Markdown",
"Python",
"Shell"
] | 5 | Python | flo3003/mittens | df8b55ca005cb99aa8f3d8ab626058941dd3d23b | 378576eefa8343695ead9ec4436672e3fe49e249 |
refs/heads/master | <repo_name>riadafridishibly/nand2tetris<file_sep>/tools/beforerun.sh
export _JAVA_AWT_WM_NONREPARENTING=1
export _JAVA_OPTIONS='-Dawt.useSystemAAFontSettings=on'
<file_sep>/projects/06/assm.py
import sys
from typing import List
table = {
'curr_mem': 16,
'SCREEN': 16384,
'KBD': 24576,
'SP': 0,
'LCL... | 3bcf954639c472fceafa9db716ad2e49172baa6f | [
"Python",
"Shell"
] | 2 | Shell | riadafridishibly/nand2tetris | e822e2db60eaf5f7106cab128a0fdce540187533 | d7c6cdb7adc530a6db645c713b914873f01c8a7d |
refs/heads/develop | <file_sep># WeatherApp_Android
Simple Android Weather App using the Open Weather Map API (http://openweathermap.org/api). Written in Kotlin.
CI builds are setup on CircleCI at https://circleci.com/gh/wsmurphy/WeatherApp_Android
Backend is https://github.com/wsmurphy/weather-bff deployed on Heroku at https://dashboard... | 3f2f45b734a953384aa679848ea3d5d350848b07 | [
"Markdown",
"Kotlin",
"Gradle"
] | 12 | Markdown | wsmurphy/WeatherApp_Android | 899483e93d00f2bb0d800c98d75d77780d61d109 | a60bb2846124b7f798cad4fd3f3f90c4a828bd1b |
refs/heads/master | <repo_name>lcldyh/GAuthenticator_Remax<file_sep>/README.md
# GAuthenticator_WeChat
一个简单的谷歌Authenticator微信小程序记录器
## 说明

本程序基于remax-one开发,使用react-hooks方式实现,由于使用了微信私有的API及组件,暂时仅支持微信,数据存储于微信小程序localStorage。
## 开发进度及计划说明
- [x] 扫码添加
- [x] 输入秘... | 703ce23e9eeb0dd80b1b9f729e9e66cdc39bb246 | [
"Markdown",
"JavaScript"
] | 3 | Markdown | lcldyh/GAuthenticator_Remax | 88558e98519a7a6a631dd1ebe04ab16acb1e6ea8 | 5e1dd4ad6ab0fedfcfee042cc77af3fcf4c684de |
refs/heads/main | <repo_name>fsiqueirag/weather-app<file_sep>/src/components/Charts.jsx
import React, { useEffect } from 'react';
import { DailyChart } from './DailyChart';
import { useFetch } from '../hooks/useFetch';
export const Charts = ({ weather, setLoadingCharts, loadingCharts }) => {
const weatherExtended = useFetch(weathe... | 3498ab2ccd5d34ca43b27e0bc4db0d3278e06018 | [
"JavaScript",
"Markdown"
] | 7 | JavaScript | fsiqueirag/weather-app | 9c6fcd9a0237099f3c28c5cff2eb52fff459dde3 | 8a46fc9fc823e58ac6bfd737d5da05a78e5a0c33 |
refs/heads/master | <repo_name>liatli/UMATracker<file_sep>/README.md
# UMATracker
## Change Log
### 2017/03/26
#### Area51
* 細かいバグの修正.
### 2017/03/24
* スライダをマウスでドラッグアンドドロップしたとき,指定した間隔通りに動かない問題を修正.
### 2017/03/23
#### FilterGenerator
* PolySelectorブロックにおいて任意の多角形をサポート.
* Binalizeせずフィルタをセーブしようとすると警告が出るようになった.
### 2017/03/14
#### A... | e341f34a598f014a497f7600b6b3dbd13bc9d833 | [
"Markdown",
"Shell"
] | 2 | Markdown | liatli/UMATracker | dbf8e0e6d08bac6f9233569690b908a18d19611f | 83ca66bd0e606fe6b8efb500afac1b9c7c62bcec |
refs/heads/master | <file_sep>import sys
import os
import time
import subprocess
def wrap_command(cmd, prgm):
exe = os.path.abspath(__file__)
if exe[-1] == 'c':
exe = exe[:-1] # get .py from .pyc
cmd_s = cmd.split()
exe_cmd = cmd_s[0]
if prgm == 'moe':
logfile = 'moebatch.log'
# write eval c... | b40f34f6fdd59d69232df993bb007884816c15f8 | [
"INI",
"Python",
"reStructuredText",
"Shell"
] | 23 | Python | jp43/DockBox | 78ad5839b562f724b5467509d390ba7db6026707 | 753c017a1db85b04b9dcb0432fb0fec673d18a27 |
refs/heads/master | <file_sep>#include <stdio.h>
#include "crctrl.h" //funcão GOTOXY
#include "game.h"
int main(void)
{
int wState = 0;
showConsoleCursor(0);
consoleInfo('s');
menu(&wState);
getchar();
return 0;
}
<file_sep>#include <stdio.h>
#include <stdlib.h>
#include <conio.h>
#include "crc... | b927f47d3a6b89a1e077a46af5ff1b58369d9716 | [
"Markdown",
"C"
] | 16 | C | Quote023/Taxi_Lunar | f0591c5628e84f4661218a0faeec6b067f0dd08c | 5f803a2b385954be650d7c2469e1e2bfb4a95723 |
refs/heads/master | <file_sep>//
// Created by on 2018/3/18.
//
#include <iostream>
#include "BookSelf.h"
#include "BookSelfIterator.h"
using namespace std;
BookSelfIterator::BookSelfIterator(BookSelf *pBookSelf)
: pBookSelf(pBookSelf), index(0)
{
}
BookSelfIterator::~BookSelfIterator()
{
cout<<"~BookSelfIterator()"<<end... | 2d1cceb139a9911efc37ecfe9c028471f64a5a14 | [
"C",
"CMake",
"C++"
] | 104 | C++ | edward852/CppDesignPattern | d70decd679c4ded5b22f16644de5b19f36795384 | 3680c78ce325f07afe4654f4a20bc33f57ca7722 |
refs/heads/master | <file_sep>members = [
{name: "田中", age: 30 , height: 160},
{name: "佐藤", age: 70 , height: 150},
{name: "鈴木", age: 10 , height: 120},
]
members.each do |member|
puts"---------------------"
puts "#{member[:name]}さん"
if member[:age] <= 64
puts "年齢 #{member[:age]}歳:年齢確認OK"
else
puts "年齢 #{me... | 0b4e666ec475c0d26c57a55e16b588dc0c0d5e32 | [
"Ruby"
] | 1 | Ruby | takuya-e/rb_hash | 25efd3f3f427336e585c274a509f041bdecc86fe | 84c04217c9690e34f279dce07e3b11c68213c0a2 |
refs/heads/master | <file_sep>import React, {Component} from 'react';
class DisplayTicket extends Component {
constructor() {
super();
this.state = {};
}
createListElements(tickets) {
var panels = tickets.map(item => {
return (
<div key={item.date} className="panel panel-default">
... | 318230b1631b9961c951fb12ea85af6ffe3c3a2f | [
"JavaScript",
"Markdown"
] | 14 | JavaScript | leoadnan/ReactJs | e1e00affed8e158791a733c417f4cd6bc4dbdb17 | 118f296b817c745e4e9b3c28ac755c5c479c7010 |
refs/heads/master | <file_sep><?php
class HattrickPDO extends PDO
{
private static $instance = null;
public static function getInstance()
{
global $config;
if(is_null(self::$instance))
{
self::$instance = new PDO('mysql:host=' .$config->db['host']
.';port='.$config->db['port']
.';dbname='.$config->db['name'],
$confi... | 2c63a33018087113a3cecb5da490e9951ec97ad9 | [
"PHP"
] | 7 | PHP | duikb00t/standardproject | 35dfa19d999edc76c3f9ce19a91b8529337a4581 | 41300594709f64e0e6dfa51d4787b3e926aa7368 |
refs/heads/master | <repo_name>q20010012001001/ZHIHU<file_sep>/src/router/index.js
import Vue from "vue";
import Router from "vue-router";
Vue.use(Router);
export default new Router({
// mode: "history",
base: process.env.BASE_URL,
routes: [
{
path: "/",
redirect: "/home"
},
{
path: "*",
redirec... | 12238dad67dd89956d1e03b635423f4ed1aa7e58 | [
"JavaScript"
] | 1 | JavaScript | q20010012001001/ZHIHU | e9e34a6ffb23261e5317b7e2f033e5603754757a | 0a6c90a8d89e153b444cd07891ecb79815106d02 |
refs/heads/main | <repo_name>cielael/CS550Checkers<file_sep>/checkers.py
'''
@author: mroch
'''
# File: checkers.py
# Purpose: runs checkers game and sets ai to use
# We the udnersigned promise that we have in good faith attempte to follow
# the principles of pair programming. Although we were free to discuss ideas
# with others,... | 5cec67c621e57ee0bf8acfed4ded387453072978 | [
"Markdown",
"Python"
] | 3 | Python | cielael/CS550Checkers | 155329ee3929861e55ca102f8b185e780b61d93f | e99791abaf414ff0d419a0c6b08cb6fc805c6651 |
refs/heads/master | <repo_name>MakeMeSenpai/Weekly_puzzle<file_sep>/crates_of_fruit/main.py
from random import choice
values = [
{"label": "", "contents": "apples"},
{"label": "", "contents": "oranges"},
{"label": "", "contents": "both"}
]
""" this code works for randomizing the labels to never match
what's inside the crate s... | 36d193c4a211dbe7644308e653319d726bf201a1 | [
"Markdown",
"Python"
] | 26 | Python | MakeMeSenpai/Weekly_puzzle | e8db89ad0fac192af115913bf874d3d48390eeab | a7727d49446b034980a204a97a49d5005cc7bf9d |
refs/heads/master | <repo_name>Saphiralyn/Word2vec_test<file_sep>/test.py
# -*- coding: utf-8 -*-
f = open('sanshiro.txt')
text_sjis = f.read()
f.close()
text = text_sjis.decode('utf-8')
# ファイル整形
import re
# ヘッダ部分の除去
text = re.split(u'\-{5,}',text)[2]
# フッタ部分の除去
text = re.split(u'底本:',text)[0]
# | の除去
text = text.replace(u'|', u'')
# ルビの... | fd5913251abc6b66d871c312ac18af44cce16a2c | [
"Python"
] | 2 | Python | Saphiralyn/Word2vec_test | a4a42248befaa0b5937ac00c97aaea3421e2e23f | 238b2926eb1f7af2262dc893b1deaf54cbb18084 |
refs/heads/master | <repo_name>Mak-Ta-Reque/dash<file_sep>/cv/views.py
from django.shortcuts import render
from django.http import HttpResponse
# Create your views here.
def show_cv(request):
return render(request, 'cv_views.html')
def add_cv(request):
return render(request, 'add_cv.html')
<file_sep>/home/dash_apps/finished_a... | de1bb9071fbbb172a03f0c5b885b06ac64ac36fd | [
"Python"
] | 6 | Python | Mak-Ta-Reque/dash | 476049ad6c931000c6c155ee1d7bb5688e3aaf53 | efe72d01e50707c1672670a13db4ae062244c260 |
refs/heads/main | <repo_name>Rurusetto/rurusetto-new-draft<file_sep>/README.md
# Rūrusetto new design draft
[](https://app.netlify.com/sites/rurusetto-new-design/deploys)
New design draft of Rūrusetto UI.
# About new site of Rūr... | d36c7487b7d2c8ec860fde7264a808a5f26207a4 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | Rurusetto/rurusetto-new-draft | 959b117030f189faa96fd2ab8502bac76c5adf4f | 049de2074332f1bccba1860fdb585f69cf519ac8 |
refs/heads/master | <file_sep># coding=utf-8
from __future__ import absolute_import
from unittest import TestCase
from experiments.conditional.enrollment import Experiments
from experiments.tests.testing_2_3 import mock
class ConditionalEnrollmentTestCase(TestCase):
maxDiff = None
def setUp(self):
self.request = mock.... | 7f4dc5540313af86b95f078ff0533585690af275 | [
"Python"
] | 1 | Python | jvzammit/django-experiments | d8f71723971eeaa739f8083ccbcbe9a67f017e26 | 172f82cef1ed7220ebb62be7208dda947022f569 |
refs/heads/master | <file_sep># testing
Another nother repo
<file_sep>package testingGit;
public class fefefef {
}
| 75f8abc1df2cfd84850cb863ea5212ba400caec6 | [
"Markdown",
"Java"
] | 2 | Markdown | rayman0022/testing | 4c264329a58f617a4d097497d794e66e8738b900 | 260f2cd03a83ea810cea805a648381819f87a694 |
refs/heads/master | <repo_name>chenqingshan1/restfulclient_codegen<file_sep>/run.sh
## input swagger format and output behave code with tag
python code_generator.py -i test_data/swagger-ui-sample.json -f swagger -o tmp/001.txt -t behave -TAG mgt-api-controller
## input swagger format and output unittest code
python code_generator.py -i t... | 275080f461bc2331db9e4d34deec02fd8d0db6bc | [
"Shell"
] | 1 | Shell | chenqingshan1/restfulclient_codegen | 2262a2f4b9f1266431cd9d0d7013970b168f1d35 | 1626c485439434131f0570f38a0d986b51143dbb |
refs/heads/master | <file_sep>package com.skplanet.rakeflurry.collector;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileOutputStream;
import java.io.FileWriter;
import java.io.OutputStreamWriter;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.... | 51d08d05d8e0eb7ef0c607abab0ef99ccda5cc26 | [
"SQL",
"Markdown",
"INI",
"Java",
"Ant Build System",
"Shell"
] | 33 | Java | lonslonz/rakeflurry | ab4bebeb7ae6e3bf15ecd95d7074e3bb3b6fcb79 | 25bc98c27dca17994b26068791a9993f14eae36f |
refs/heads/master | <repo_name>ebmoore2/Word_to_Excel<file_sep>/pdf2csv.py
import io,os,csv,re
from pdfminer.converter import TextConverter
from pdfminer.pdfinterp import PDFPageInterpreter
from pdfminer.pdfinterp import PDFResourceManager
from pdfminer.pdfpage import PDFPage
def extract_text_by_page(pdf_path):
with open(pdf_path,... | 1417695f7fddd871d51ca92897217be07c8e5eb6 | [
"Python"
] | 3 | Python | ebmoore2/Word_to_Excel | 64fd2d0d1e47fc2b3a3e1fb68e8eb8718b0f6ffc | 386fe62901492b265bc18fa218878b94f411468c |
refs/heads/master | <repo_name>KirstenHolm/Capstone_01<file_sep>/VendingMachine/Capstone/Items/ConsumableItem.cs
using System;
using System.Collections.Generic;
using System.Text;
namespace Capstone
{
public abstract class ConsumableItem : IVendingMachineItem
{
public string Name { get; }
public decimal ... | 841e7cd0ff6ed11d090a3d7628cfe861ad5ecfb6 | [
"C#"
] | 11 | C# | KirstenHolm/Capstone_01 | 4cfbfbf6529b5517c6539aed0101b7b1e5facd1b | ebbf687346ad28a79ecc88a6bb15134238de4578 |
refs/heads/master | <file_sep>using UnityEngine;
using System.Collections;
public class ScriptMainMenu : MonoBehaviour {
public string clicked;
public Transform locationMenu;
public Transform locationPlay;
public static ScriptMainMenu menu;
public GUISkin skin;
public bool nightMode;
public Material nightMaterial;
public Materi... | 50bc8e15fae31a0050c00209a22c11b1fccf113f | [
"Markdown",
"C#"
] | 5 | C# | duudl3/sprint | b0321bc1346a4989922c41c19cf329f82b915c0e | ce740c76458bb372393385c1f3ded23563ce6de2 |
refs/heads/master | <file_sep>const Mongo = require('../mongo');
function getAll(callback) {
const db = Mongo.db();
db.collection('foods').find().toArray(function(err, docs) {
callback(err, docs);
});
}
module.exports = {
getAll: getAll
};
<file_sep>const router = require('express').Router();
const FoodModel = require('../m... | edee22fe0cfe5b7f5238effe6808abfc193fc7f0 | [
"JavaScript"
] | 3 | JavaScript | tiy-dallas-june-2017/express-mongodb-sample | c2b57ac0fc57f6816622d19d40024385c4225131 | 084aaa2e5dfa2521df71a5be8a7dd0f6b794043b |
refs/heads/master | <file_sep>using FlightSimulator.Model.Interface;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net;
using System.Net.Sockets;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
namespace FlightSimulator.Model
{
public class MyTcpServer : ITe... | d8464d764cfb1b3d30f8a7acb128d2065d324317 | [
"C#"
] | 4 | C# | rafyzg/FlightWeb | 1946a901487caf132c9c1640f73a2684c17fb382 | 21bbfc4f019c99bc54a0f07785c1a8702fe3106e |
refs/heads/master | <repo_name>0xxcasper/MusicApp<file_sep>/MusicApp/Components/Helper/UseDefaultHelper.swift
//
// UseDefaultHelper.swift
// MusicApp
//
// Created by admin on 22/03/2020.
// Copyright © 2020 SangNX. All rights reserved.
//
import Foundation
private enum UserDefaultHelperKey: String {
case regionCode = "regionCo... | c599a9c4663a965f1b687c2945e9159223fc094e | [
"Swift"
] | 39 | Swift | 0xxcasper/MusicApp | 557d9ed7987ac4e5476512548ed114e17eb2b1f0 | efc1e8346a78561bcdba80c6bb33c44d594927a4 |
refs/heads/refactor-rootSaga-v2 | <repo_name>PaulAndreRada/Sockets_React_redux_saga_Messenger_Web_Starter<file_sep>/src/components/messageInput.js
import React, { Component } from 'react';
class MessageInput extends Component {
render(){
return (
<form
onSubmit={ (e) => this.props.onMessagePost(e, this.props.composerText) }>
... | dd753c9d3897e247bf3f6d70e8e25a3ec61baafb | [
"JavaScript",
"Markdown"
] | 3 | JavaScript | PaulAndreRada/Sockets_React_redux_saga_Messenger_Web_Starter | d96a34bebd40dc6d106c46ce3089612beb6b0152 | 2a64f712e8e1764fa7cb49508237e26ee7f099b6 |
refs/heads/main | <file_sep>function Footer() {
return (
<div className='grid grid-cols-1 gap-10 bg-gray-100 px-32 py-14 md:grid-cols-4'>
<div className='text-sm text-gray-800 space-y-4'>
<h5 className='font-bold uppercase'>About</h5>
<p>How Airbnb works</p>
<p>Newsroom</p>
<p>Airbnb 2021</p>
... | 66bcef3e2dde68bf9bb357112b52da085f5e574c | [
"JavaScript"
] | 1 | JavaScript | rikiwgarna/airbnb-clone | d9f1963b703e39f6c1e8b37d81a9c67d79cd5bb5 | 8450da400636a4b30da498ba385b4698e86759c3 |
refs/heads/master | <file_sep>const postJson = require('./post-json')
async function sendTemplateMsg(msg, seed) {
const url = msg.templateUrl
if (!url) {
throw ('msg without url when sending template msg')
}
const result = await postJson(url,
{
formId: seed,
fromUserId: msg.fromUser... | 44bf0d89beaab0ea0ca8102ba70b77d60f119f15 | [
"JavaScript",
"Markdown"
] | 13 | JavaScript | MagicBowen/imbot | 7e19b96946c89ded329206e466688951af390867 | 40a27ed1df8df5a54d4b775a67ccf6a0534d8730 |
refs/heads/main | <file_sep>'use strict'
module.exports = {
up: async (queryInterface, Sequelize) => {
await queryInterface.bulkInsert(
'Users',
[
{
name: '<NAME>',
email: '<EMAIL>',
password: '<PASSWORD>',
createdAt: new Date(),
updatedAt: new Date()
}... | c89275cf5ecc19b8b1a3ff23cac1d1e2b99b1ccf | [
"JavaScript"
] | 6 | JavaScript | MichelFonseca1024/api-games | c9c6a61843c79b7a3a1c18e96c57f5d140a64e60 | ed6fa85bf05e882db998bc4a69c1f38c2cff2c41 |
refs/heads/master | <file_sep>package com.sopra.model;
import javax.persistence.Column;
import javax.persistence.DiscriminatorColumn;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persisten... | f7df2fc4c6f38a14c981cf51d199e1520ed52eeb | [
"JavaScript",
"Java"
] | 17 | Java | TeamLaDa/TetrisVersionJSP | 14ba6cc90bf39a8be05de6c2b7fde5b27f014290 | 9cd08dfef6b54f1f7023d973441cb446f0408757 |
refs/heads/master | <file_sep>package net.fortytwo.ripple.cli;
import jline.Completor;
import jline.ConsoleReader;
import jline.MultiCompletor;
import net.fortytwo.ripple.RippleException;
import net.fortytwo.ripple.cli.ast.ListAST;
import net.fortytwo.ripple.cli.jline.DirectiveCompletor;
import net.fortytwo.ripple.control.Scheduler;
impo... | a53b5a048849ac573ea2a573441d5863be43431c | [
"Java"
] | 1 | Java | tavakyan/ripple | 5291a76b310765a221beecc7ec62b2f886d85d5f | f14a7b0731f4ba9a13a37ec6fe4b4a73a4dbabd3 |
refs/heads/master | <repo_name>alHammash/alqamus<file_sep>/user.js
/*
* 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.
*/
var express = require("express");
var mysql = require('mysql');
var conn = require('./... | 3ed343ae2d22084b74eec4232434fdb4cd039fdd | [
"JavaScript",
"SQL",
"Markdown"
] | 5 | JavaScript | alHammash/alqamus | 8f13f51db68f66f588c50c728ed87edcb620763c | 536e28c0009f5dbf6c08c43ece16e769f0bae698 |
refs/heads/master | <file_sep>import {Directive,ElementRef,HostListener,Input} from '@angular/core';
@Directive({
selector:'[select-item]'
})
export class SelectItemDirective{
constructor(private el:ElementRef){}
@Input('text') displayText:string;
@Input('icon') displayImage : string;
@HostListener('mouseenter') onmo... | be64095d6c59d35fa669bc3e9bc946e86afa6696 | [
"JavaScript",
"TypeScript"
] | 15 | TypeScript | shanmugakannan/talent | 7dd0fac5fab62ee96574eb889dd66c5c1450fcbd | 99a8c8c8b0d4dec259644795c9c29778fda265d3 |
refs/heads/master | <repo_name>hermixy/qwood<file_sep>/mainwindow.h
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QGraphicsScene>
#include <QToolBox>
#include <QMainWindow>
#include <QtGui>
#include <QStack>
#include <QPushButton>
#include <QLineEdit>
#include <QMdiArea>
#include <QActionGroup>
class QBase;
class MainWindow : pub... | 04646828a399757d5968cb9ad614e787a31a3036 | [
"Markdown",
"C++"
] | 53 | C++ | hermixy/qwood | d82b0ba3d323b46052fcf35797edfc0e213be88e | c3c5944afd25fffeab79d78774717023bbc2dd5c |
refs/heads/main | <repo_name>Frantzis/ap-e3<file_sep>/homeappliancestore.java
import java.util.*;
public class homeappliancestore {
static String name, address;
static Integer num;
public static void main (String[] args) {
homeappliancestore a = new homeappliancestore();
a.setName("H... | 8247fa13ee55b8959c519bc4773208ad906e67d6 | [
"Java"
] | 1 | Java | Frantzis/ap-e3 | 1a668dafec76671abba1a6d33fca6b0feb87f976 | 1f73ce0a528a9d42036d62f1c929088a43cfe8a9 |
refs/heads/master | <file_sep># 拳クラス
class Ken
GU = 0
CHOKI = 1
PA = 2
attr :v
def initialize(input = nil)
# 引数無しの場合はランダム
if input.nil?
@v = rand 3
else
if input.gu?
@v = GU
elsif input.choki?
@v = CHOKI
elsif input.pa?
@v = PA
end
end
end
def to_s... | a46d6415373b97b44fc9f5f18593405084e27776 | [
"Ruby"
] | 6 | Ruby | futonaka/janken | 95fc33c72e165b403cc60ef3376ea229b7630706 | 3bffad47d1b48edf6de858403e9a41432cf5358f |
refs/heads/main | <repo_name>adobe/helix-querybuilder<file_sep>/test/json.test.js
/*
* Copyright 2020 Adobe. All rights reserved.
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. You may obtain a copy
* of the License at http://ww... | 5365fff0e18d0633e1bf8ddd170201914d1c0474 | [
"JavaScript",
"Markdown"
] | 11 | JavaScript | adobe/helix-querybuilder | 51507945fc2d4b7d791372e90724211965591ca9 | ffed6692f6e2290bda5fbc4ff4f4ef8c41814310 |
refs/heads/master | <repo_name>hennywei/mobilebone<file_sep>/docs/otherAnonymousAPIs.html
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1.0,user-scalable=no">
<title>Mobilebone.js API文档-Mobilebone其他匿名API们</title>
<link rel="stylesheet" href="../src/mobilebone.css">
<li... | b6c758a074a2c5bc96f9161df9baddfe2b19f415 | [
"JavaScript",
"HTML"
] | 2 | HTML | hennywei/mobilebone | c858aad1541728342264ce2468f56a05021d556b | cd03d614b6ff16fc3670b3300cf9ad58bbc17641 |
refs/heads/master | <repo_name>Wulfheart/go-color-mix<file_sep>/go.mod
module github.com/Wulfheart/go-color-mix
go 1.14
<file_sep>/mix.go
package colormix
import (
"fmt"
"image/color"
"math"
)
type Fraction struct {
Color color.Color
Factor float64
}
// Combine joins some colors
func Combine(fra []Fraction)(color.Color, error){
... | 7e97765f3957f299030de5f7521db9ffefc79415 | [
"Go",
"Go Module"
] | 3 | Go Module | Wulfheart/go-color-mix | b97f8ce510d117a86dd7ce43ab62c73bba3569f3 | 13bca81d2e0f739da0603ebfadb742a300e801ce |
refs/heads/master | <file_sep>import { Router } from '@angular/router';
import { Component, OnInit } from '@angular/core';
import { ProductService } from './../product.service';
import { Product } from '../product.model';
@Component({
selector: 'app-product-create',
templateUrl: './product-create.component.html',
styleUrls: ['./pro... | 7c29e7828cca05b65b5aa08c4b27e6c96613104a | [
"TypeScript"
] | 1 | TypeScript | asafekauffmann/crud | 8e32280e2e93c0b81c211a0eb2179493a4c2a731 | 39ea2de6b29fb9b395c038cfabfc751d43b1ffcd |
refs/heads/master | <file_sep>package hanu
import (
"fmt"
"golang.org/x/net/websocket"
"github.com/sbstjn/allot"
)
// ConversationInterface is the interface for a conversation
type ConversationInterface interface {
Integer(name string) (int, error)
String(name string) (string, error)
Reply(text string, a ...interface{})
Match(p... | dbee3bf8d637da55932ca5976964288844b6f3c2 | [
"Go Module",
"Go"
] | 4 | Go | mosteknoloji/hanu | 3f1659d980774c96867fd9d38d6b3177c4e498d5 | aa2c051867f18ea86d829a54e64e142a376ba14d |
refs/heads/master | <file_sep>import { Component, OnInit } from '@angular/core';
import {AuthService} from '../../services/auth.service';
import {UserService} from '../../services/user.service';
import {EmployeeSecurityQuestionsModel} from '../../models/securityquestions.model';
import {FormControl, Validators} from '@angular/forms';
impo... | b6ce10fa06460391027f98a2f4a70f3491155e53 | [
"TypeScript"
] | 32 | TypeScript | ZubiZoft/NomiSignFrontEnd_SigningApp | 3be74c643b946c323dbf944cfcdf4bcc2a6beb61 | 4c078bb691da4559358953080a5f4613c4aef325 |
refs/heads/master | <repo_name>sudk/golf<file_sep>/web/protected/components/widgets/highcharts/HighCharts.php
<?php
/**
*@Name HighCharts.php
*@Author Connor <<EMAIL>>
*@Copyright Copyright © 2012
*@Since 2012-7-17
*/
class HighCharts extends CWidget{
public $jspath;
public $type='line_basic';
public $unit... | f94d659ab01d967cb353e92bd8b2cb1ea6a4e695 | [
"JavaScript",
"Markdown",
"Java",
"Text",
"PHP",
"C"
] | 231 | PHP | sudk/golf | 27747105e52aa746849fa3686405d3af14e41724 | e3edb4ca03dd59ec85ba37f67cac54a72b9693d8 |
refs/heads/master | <repo_name>KrzysztofKmiecik/collections_excersises<file_sep>/src/main/java/com/javagda26/Mapy/Main.java
package com.javagda26.Mapy;
import java.util.HashMap;
import java.util.Map;
import java.util.TreeMap;
public class Main {
public static void main(String[] args) {
// Map<Long, Student> studentMap = new... | 46390d287b562a4de6c5d6125003c5796c104c03 | [
"Java"
] | 8 | Java | KrzysztofKmiecik/collections_excersises | 7c19680110e36ebf28f44f5607acd2bf058c06c0 | 92f2423b5ff4b540f2cc985171f5263af428407c |
refs/heads/master | <repo_name>hobo71/Maze-a-code<file_sep>/src/mazeacode/maze_UI.java
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package mazeacode;
import java.io.File;
import javax.swing.JFileCh... | faa047e0c83929ad0623ad1bbec3cc780eb287f8 | [
"Markdown",
"Java"
] | 2 | Java | hobo71/Maze-a-code | e9cd9d6d558856113ad3960ad15c93f6df8cab17 | bde226d6aaccd1184a39168d304e4e16ee9fc82c |
refs/heads/master | <repo_name>diogojapinto/Maze-Game<file_sep>/logic/mazebuilder/MazeBuilder.java
package maze.logic.mazebuilder;
import maze.exceptions.*;
import maze.elems.GameElem;
import maze.elems.MazeExit;
import maze.logic.Maze;
public abstract class MazeBuilder {
public static final char WALL = 'X';
public static fin... | 65ba268fb3422a1d4458100de18e89a495a0f8c4 | [
"Java"
] | 9 | Java | diogojapinto/Maze-Game | 5eb97d9b035438dc796c1e2ca893344d9857a3f5 | 153b3e7c907ef1fba4b538a9d5667d634d33bb55 |
refs/heads/master | <file_sep><?php
use Illuminate\Support\Facades\Route;
Route::get('/', function () {
return view('auth.login');
})->middleware('guest');
Auth::routes();
Route::middleware('auth')->group(function(){
// dashboard
Route::get('/home', 'HomeController@index')->name('home');
// profil user
Route::prefix... | 51066684ba7d70753e53929f4234def81388b84d | [
"PHP"
] | 1 | PHP | ibnanrifai/sim-hotel | 7071166f1f04a9ecf70912d27cfdcadb7701f044 | bee77206c498503da7353faca166b95374df432e |
refs/heads/master | <repo_name>mgable/webScanner<file_sep>/index.js
"use strict";
var get = require("./get"), output = require("./output"), data, config = {url:"losangeles.craigslist.org", type:"/w4w/", selector:"#toc_rows .row>a"},
outputData = function (data) {
data.header = config.url;
data.description = config.type;
output.start(".... | 7e0276e4f34f312c6ef15aacf885d9cc01eaa9d2 | [
"JavaScript"
] | 1 | JavaScript | mgable/webScanner | 1272ccc9c69661c49634fb9d9af9a16742054f5b | 635695cfe54fc2e46ec24b597e64e52b9b7442ac |
refs/heads/main | <file_sep>const initState = {
fiveDays:[],
key:"",
name:"",
currentWeather:[]
}
const forcastReducer = (state = initState, {type, payload}) =>
{
switch(type)
{
case 'LOAD_WEATHER_DATA':
return {
fiveDays: payload.fiveDays,
key: payload.key,... | 2025100e87c8f22bb69157c64aa42c4c25e505cb | [
"JavaScript",
"Markdown"
] | 8 | JavaScript | orisha83/Ori-Shalom-11-04-21 | 3ce6d587c8e55f06914842f1b1ded6e082f3bbe3 | b870bee42fb15e1eee0b419205d42c0c17a7dc0d |
refs/heads/master | <repo_name>blue-sky-sea/Muse<file_sep>/src/pylive.py
import matplotlib.pyplot as plt
import numpy as np
plt.style.use('ggplot')
size = 100
x_vec = np.linspace(0, 1, size + 1)[:-1]
y_vecs = []
lines = []
def live_plotter(x_vec, y1_data, line1, title='', pause_time=1e-2):
if line1 == []:
plt.ion()
... | 77683ef579a234fa113a004f43771268cecf9a3f | [
"Markdown",
"Python",
"Text"
] | 7 | Python | blue-sky-sea/Muse | a8b63df180848f3eb7cc0245d30e4ced97fde602 | 509e45aa4dfa95fe4caf3ef768886f55ab12b003 |
refs/heads/master | <file_sep>SHELL=/bin/sh
TOP_SRCDIR= ..
SRCDIR = .
INCLUDES = -I${TOP_SRCDIR}/include -I/usr/include
MAKEDEPEND= mkdep
RM = rm -f
CFLAGS = ${INCLUDES} -Wall ${EXTRA}
ifeq ($(OSTYPE),darwin)
CFLAGS = ${INCLUDES} -Wall ${EXTRA} -arch i386
endif
MODULE = compile
PROG = mumps
SRCS = dollar.c \
eval.c \
... | 8276c9e7eeef5875820f33c60e71403174ad6146 | [
"C",
"Makefile",
"C++"
] | 12 | Makefile | neusse/mumps | e124761777a40759fc46aa2b205edf4977016c71 | 052715d78b07ac8d6d302f3b68fee47c91130d0d |
refs/heads/master | <repo_name>wanghailong0526/SecurityKeyboard<file_sep>/library/src/main/java/com/dfzq/dset/Provider.java
package com.dfzq.dset;
import androidx.annotation.NonNull;
public interface Provider<T> {
@NonNull
T get();
}
<file_sep>/library/src/main/java/com/dfzq/dset/VoiceRecognizer.java
package com.dfzq.dset;
impo... | 6e20d0e47f739156ad95bcb312e9a1b84c1f58de | [
"Java"
] | 4 | Java | wanghailong0526/SecurityKeyboard | 6cbd812eadce9e1bb0ede86cd00806cbec1f4a7a | 28ef33f5864e792691893c455da54c4f240293c6 |
refs/heads/master | <file_sep>import { Injectable, EventEmitter } from '@angular/core';
@Injectable()
export class SayCheeseService {
static initCamera = new EventEmitter<any>();
constructor() {}
public init() {
SayCheeseService.initCamera.emit(true);
}
}
<file_sep>import {
Component,
OnInit,
OnChanges,
SimpleChang... | 00469f75fe2112896c2765ab1a954548802b8e58 | [
"Markdown",
"TypeScript"
] | 4 | TypeScript | fxcosta/ngx-say-cheese | 825cf681078bc8474613378dade07b41990c6915 | 785f464fdbb48935b30921f78652641bca41373b |
refs/heads/master | <file_sep>package udp
import (
"fmt"
"net"
"time"
log "qiniupkg.com/x/log.v7"
)
// method sp uri sp version
// INVITE
// REGISTER sip:sip.cybercity.dk SIP/2.0
// Via: SIP/2.0/UDP %s;branch=z9hG4bKnp151248737-46ea715e%s;rport
// From: <sip:<EMAIL>>;tag=903df0a
// To: <sip:<EMAIL>>
// Call-ID: 578222729-4665d775... | f85adb021f93d9321255f35f9697821ccb5d483b | [
"Go"
] | 21 | Go | DivineRapier/protocol-identification | 38063b4d21a3415bb229c681546c386c0f587532 | a718c96137b53cef25e68300c808302d3e9d7b58 |
refs/heads/master | <file_sep>import React from 'react'
import { bindActionCreators } from 'redux'
import { initStore } from '../store'
import { getTodos } from '../actions/todoActions'
import withRedux from 'next-redux-wrapper'
import styled, { css } from 'styled-components'
import standardLayout from '../hocs/standardLayout'
import Stor... | fe92256bc296458847bdda5c224aa0f35cc28fb7 | [
"JavaScript"
] | 11 | JavaScript | spencersmb/now-node-master-client | 9be3b7a1590b0de8606fd9c6e6788e3d2b4dabb0 | a5b7099bc7063c2ef8fcef8267790d2629f70d67 |
refs/heads/master | <repo_name>tsheeran1/terraform-getting-started-azure<file_sep>/scripts/terraform-apply.sh
#!/usr/bin/env bash
set -euo pipefail
WORKING_DIRECTORY=${1}
cd ${WORKING_DIRECTORY}
terraform apply -input=false ${BUILD_BUILDNUMBER}.tfplan<file_sep>/scripts/terraform-download.sh
#!/usr/bin/env bash
set -euo pipefail
echo "S... | f1ce89a820fe01aa89ccee3c8a984a46bc4f31bc | [
"Markdown",
"Shell"
] | 4 | Shell | tsheeran1/terraform-getting-started-azure | eb5c1704b5f1bf62c0178da059dcbd420e3a3c0d | e9a8570eca78c2f7ce48524594c9e83b74179f47 |
refs/heads/master | <file_sep># SearchListPython
SearchList algorithm on Python
<file_sep># -*- coding: utf-8 -*-
"""
SearchListPy
Created on Sun Apr 26 21:12:25 2020
@author: Anibal
"""
import sys
class Relation():
def __init__(self, **kwargs):
self._sourceNode = kwargs['source']
self._targetNode = kwargs['target... | 0b11df4655ac71411733b2ebf955c52f3541bf3d | [
"Markdown",
"Python"
] | 2 | Markdown | AnibalSchlegel/SearchListPython | 180d961aa2a59dc5946d5ab358445f50372c5982 | 0a6c2445dca0cc1c2f995fcad5a7812eae44dd53 |
refs/heads/master | <repo_name>Owlwald/PraxisseminarSS17<file_sep>/dicamu-web/public/js/init.js
//Initializes Firebase, various variables, and the upload function.
//then starts the app by loading the list of the museums.
var config = {
apiKey: "<KEY>",
authDomain: "dicamu-1ed50.firebaseapp.com",
databaseURL: "https://dicamu-... | 747a516d9546d31f9da47d88501d46831dcbef3a | [
"JavaScript",
"Markdown"
] | 12 | JavaScript | Owlwald/PraxisseminarSS17 | 4ffc3baa6219436d81cc2394391e1016732f52b7 | d8ff552b7acdf2c3982b08b615ca926c50ff15b1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.