Search is not available for this dataset
content stringlengths 60 399M | max_stars_repo_name stringlengths 6 110 |
|---|---|
<|start_filename|>public/assets/js/get_comments.js<|end_filename|>
$(document).ready(() => {
// On click on .comment class...
$(".feed").on('click', '.comment', (event) => {
// Fetch the pid of the post
let pid = event.target.id.split("_")[1];
// Toggle the class
$(`#postid_${p... | nikosgatzoulis/instagram-clone-php |
<|start_filename|>example/lib/sample_event.dart<|end_filename|>
import 'package:cell_calendar/cell_calendar.dart';
import 'package:flutter/material.dart';
List<CalendarEvent> sampleEvents() {
final today = DateTime.now();
final sampleEvents = [
CalendarEvent(
eventName: "New iPhone",
eventDate:... | AndrewJEON/cell_calendar |
<|start_filename|>game.js<|end_filename|>
import Main from './js/main'
new Main()
| wqzwh/wx-game |
<|start_filename|>smoke-test/diagram-assertions-graphviz.test.js<|end_filename|>
const fs = require('fs')
const path = require('path')
const basePath = process.env.SMOKE_TEST_BASE_PATH
const diagramFileName = 'diagram.png';
console.info("Asserting expected diagram PNG at " + path.join(basePath, diagramFileName))
des... | Flolight/cdk-dia |
<|start_filename|>skychanger-bukkit/src/main/java/com/dscalzi/skychanger/bukkit/internal/SkyChangeImpl.java<|end_filename|>
/*
* This file is part of SkyChanger, licensed under the MIT License (MIT).
*
* Copyright (c) 2017-2021 <NAME> <https://github.com/dscalzi/SkyChanger>
*
* Permission is hereby granted, f... | dscalzi/SkyChanger |
<|start_filename|>composer.json<|end_filename|>
{
"name": "components/mathjs",
"description": "Math.js is an extensive math library for JavaScript and Node.js. It features a flexible expression parser with support for symbolic computation, comes with a large set of built-in functions and constants, and offers an in... | bnlcas/mathjs |
<|start_filename|>include/graphics.h<|end_filename|>
#pragma once
// Extracts the upper 16 bits of a 32-bit number
#define HIHALF(n) (((n) & 0xFFFF0000) >> 16)
// Extracts the lower 16 bits of a 32-bit number
#define LOHALF(n) ((n) & 0xFFFF)
struct MonCoords
{
// This would use a bitfield, but some function
... | GarfieldTheLightning/Dynamic-Pokemon-Expansion |
<|start_filename|>src/libzoo/io/FastOFStream.cpp<|end_filename|>
/**
** Copyright (c) 2011-2014 Illumina, Inc.
**
** This file is part of the BEETL software package,
** covered by the "BSD 2-Clause License" (see accompanying LICENSE file)
**
** Citation: <NAME>, <NAME> and <NAME>
** Lightweight BWT Construction ... | ndaniel/BEETL |
<|start_filename|>ouster_viz/include/ouster/lidar_scan.h<|end_filename|>
/**
* @file
* @brief Holds lidar data by field in column-major order
*/
#pragma once
#include <Eigen/Eigen>
#include <iterator>
#include <utility>
#include <vector>
namespace ouster {
struct LidarScan {
using Data = Eigen::Array<double,... | wonjin/ouster_example |
<|start_filename|>utils.c<|end_filename|>
#include "utils.h"
void
shuffle(int *array, size_t n)
{
size_t i;
if (n > 1)
{
for (i = 0; i < n - 1; i++)
{
size_t j = i + rand() / (RAND_MAX / (n - i) + 1);
int t = array[j];
array[j] = array[i];
array[i] = t;
}
}
}
<|start_filename|>list_utils.c<|end... | cgvwzq/evsets |
<|start_filename|>Makefile<|end_filename|>
BABEL ?= ./node_modules/.bin/babel
BABEL-NODE ?= ./node_modules/.bin/babel-node
BROWSER-RUN ?= ./node_modules/.bin/browser-run
BROWSERIFY ?= ./node_modules/.bin/browserify
DOCCO ?= ./node_modules/docco/bin/docco
ESLINT ?= ./node_modules/.bin/eslint
FAUCET ?= ./node... | jcbrand/pluggable.js |
<|start_filename|>wifitool/src/main/java/ru/yandex/qatools/wifitool/NetworkManager.java<|end_filename|>
package ru.yandex.qatools.wifitool;
import android.net.wifi.WifiConfiguration;
import android.net.wifi.WifiInfo;
import android.net.wifi.WifiManager;
import android.util.Log;
import java.util.List;
import javax.an... | artkoshelev/android-wifitool |
<|start_filename|>simple-web-app/src/main/java/org/mitre/web/HomeController.java<|end_filename|>
/*******************************************************************************
* Copyright 2014 The MITRE Corporation
* and the MIT Kerberos and Internet Trust Consortium
*
* Licensed under the Apache License, Versi... | hlisnikovsky/mitre-local |
<|start_filename|>AYPopupPickerView/AYPopupPickerView.h<|end_filename|>
//
// AYPopupPickerView.h
// AYPopupPickerView
//
// Created by JerryYu on 2020/8/14.
// Copyright © 2020 DolphinBro. All rights reserved.
//
#import <Foundation/Foundation.h>
//! Project version number for AYPopupPickerView.
FOUNDATION_EXPOR... | jobinsjohn/AYPopupPickerView |
<|start_filename|>lib/src/os/environment.dart<|end_filename|>
/* This is free and unencumbered software released into the public domain. */
import 'dart:async' show Future;
import 'dart:io' show Directory, Platform;
import 'package:flutter/services.dart' show MethodChannel;
/// Provides access to environment variabl... | gitter-badger/flutter_android |
<|start_filename|>src/core/Grid.js<|end_filename|>
var Node = require('./Node');
/**
* The Grid class, which serves as the encapsulation of the layout of the nodes.
* @constructor
* @param {number} width Number of columns of the grid.
* @param {number} height Number of rows of the grid.
* @param {Array.<Array.<(n... | gbaiden/a |
<|start_filename|>src/glb_viewer.js<|end_filename|>
import {ArcballCamera} from "arcball_camera";
import {Controller} from "ez_canvas_controller";
import {mat4, vec3} from "gl-matrix";
import {uploadGLBModel} from "./glb_import.js";
import {GLBShaderCache} from "./glb_shader_cache.js";
(async () => {
if (navigato... | Twinklebear/webgpu-gltf |
<|start_filename|>src/@rocketseat/gatsby-theme-docs/styles/theme.js<|end_filename|>
export default {
colors: {
primary: '#F5F5DC',
background: '#141414',
shape: `#4d4d4d`,
title: `#FFFFFF`,
text: `#FFFFFF`,
components: {
blockquote: {
background: `#feebc8`,
... | 0xsunil/balajis-almanack |
<|start_filename|>model/RNN.lua<|end_filename|>
local RNN = {}
function RNN.rnn(input_size, rnn_size, n)
-- there are n+1 inputs (hiddens on each layer and x)
local inputs = {}
table.insert(inputs, nn.Identity()()) -- x
for L = 1,n do
table.insert(inputs, nn.Identity()()) -- prev_h[L]
end
local x, ... | dwhit/recipes |
<|start_filename|>module/video_group.js<|end_filename|>
// 视频链接
module.exports = (query, request) => {
const data = {
groupId: query.id,
offset: query.offset || 0,
needUrl: true,
resolution: query.res || 1080
}
return request(
'POST', `https://music.163.com/weapi/videotimeline/videogroup/get`... | hty101101/API |
<|start_filename|>test/EventTarget.spec.js<|end_filename|>
/**
* Created by mgobbi on 05/04/2017.
*/
import {EventDispatcher} from "../src/events/EventTarget";
var assert = require("chai").assert;
describe('EventTarget', function () {
before(function () {
this.jsdom = require('jsdom-global')()
})... | marcog83/RoboJS |
<|start_filename|>hermione/module_templates/__IMPLEMENTED_BASE__.json<|end_filename|>
{
"info": "Base files with implemented example",
"input_info": [
["project_name", "My Project", "Enter your project name"],
["project_start_date", "01/01/21", "Enter the date your project started"]
]
} | RodrigoATorres/hermione |
<|start_filename|>tableviews/src/main/kotlin/no/tornadofx/fxsamples/tableviews/DemoTableView.kt<|end_filename|>
package no.tornadofx.fxsamples.tableviews
import javafx.collections.FXCollections
import javafx.scene.layout.GridPane
import tornadofx.*
class DemoTableView : View() {
override val root = GridPane()
... | AzarguNazari/tornadofx-samples |
<|start_filename|>block_ad/params.json<|end_filename|>
{
"name": "Ad.js",
"tagline": "An ad blocker.",
"body": "ad.js\r\n=================\r\n\r\n####功能####\r\n_免越狱_ 去除视频广告、部分网页广告\r\n\r\n####适用于####\r\n 适用系统:iOS 7.0 + \r\n 广告屏蔽:爱奇艺(新增,仅支持网页版视频)、PPTV、优酷、土豆、乐视、湖南电视台、搜狐视频、腾讯视频、谷歌广告、百度广告、淘宝广告等\r\n\r\n####如何设置#... | webcoding/js_spider |
<|start_filename|>scripts/pay.js<|end_filename|>
'use strict'
const chalk = require('chalk')
const minimist = require('minimist')
const inquirer = require('inquirer')
const StellarSdk = require('stellar-sdk')
const StellarBase = require('stellar-base')
const config = require('./config.json')
const server = new Stellar... | Techrocket9/stellar-wallet |
<|start_filename|>package.json<|end_filename|>
{
"name": "jquery-popup-overlay",
"version": "2.1.5",
"description": "Lightweight modal popup overlay for jquery",
"main": "index.js",
"scripts": {
"start": "http-server -c-1",
"start:ci": "http-server -c-1 --silent",
"dev": "npm start -- -o",
"te... | timgates42/jquery-popup-overlay |
<|start_filename|>routes/index.js<|end_filename|>
var express = require('express');
var router = express.Router();
/**
* @swagger
* tags:
* name: Index
* description: All about /
*/
/**
* @swagger
* /:
* get:
* summary: Index
* description: It will return 'index' results
* tags: [Index]
... | SangHakLee/swagger-express-jsdoc |
<|start_filename|>example/ios/Runner/Runner-Bridging-Header.h<|end_filename|>
#import "GeneratedPluginRegistrant.h"
| hmeranda/flutter_link_preview |
<|start_filename|>wk-starter/wk-starter-job/src/main/java/com/budwk/starter/job/JobService.java<|end_filename|>
package com.budwk.starter.job;
import com.budwk.starter.common.constant.RedisConstant;
import org.nutz.integration.jedis.RedisService;
import org.nutz.lang.random.R;
/**
* 判断是否可被执行,防止多实例重复执行
*
* @author ... | budwk/budwk |
<|start_filename|>src/main/java/org/codelibs/elasticsearch/dynarank/filter/SearchActionFilter.java<|end_filename|>
package org.codelibs.elasticsearch.dynarank.filter;
import org.codelibs.elasticsearch.dynarank.ranker.DynamicRanker;
import org.elasticsearch.action.ActionListener;
import org.elasticsearch.action.ActionR... | matsui-stb/elasticsearch-dynarank |
<|start_filename|>src/main/kotlin/com/gh0u1l5/wechatmagician/spellbook/hookers/MenuAppender.kt<|end_filename|>
package com.gh0u1l5.wechatmagician.spellbook.hookers
import android.app.Activity
import android.content.Context
import android.view.ContextMenu
import android.view.View
import android.widget.AdapterView
impor... | fwb7014/WechatSpellbook |
<|start_filename|>lib/cryptoutils.dart<|end_filename|>
library cryptoutils;
export "utils.dart";
export "hash.dart";
export "encoding/base64.dart";
| paycoin-com/dart-cryptoutils |
<|start_filename|>src/util/compareAToZ.js<|end_filename|>
function compareAToZ(a, b) {
return a.localeCompare(b);
}
export { compareAToZ };
<|start_filename|>bin/options/helpers/parseUppercaseList.js<|end_filename|>
function parseUppercaseList(values) {
return values.split(',').map((entry) => entry.toUpperCase()... | dabaojian1992/ftx-cli |
<|start_filename|>public/css/style.css<|end_filename|>
body{font-family: 'Open Sans', sans-serif; font-size:14px; color:#777; background:#f2f4f8;}
/* Resets */
input[type='number'] {-moz-appearance:textfield;}
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button { -webkit... | nordicenergy/energy-trading-blockchain |
<|start_filename|>src/utils.jl<|end_filename|>
"""
Like `filter()[1]`.
"""
function getfirst(f::Function, A)
for el in A
if f(el)
return el
end
end
end
"""
separate!(f::Function, B::T, A::T) where T
Like `separate` but a vector `B` can be given in which the result will be stored.
... | louisponet/ECS.jl |
<|start_filename|>PreviewDot/ComInterop/RECT.cs<|end_filename|>
using System.Drawing;
using System.Runtime.InteropServices;
namespace PreviewDot.ComInterop
{
[StructLayout(LayoutKind.Sequential)]
internal struct RECT
{
public readonly int left;
public readonly int top;
public readon... | laingsimon/preview-dot |
<|start_filename|>src/main.cpp<|end_filename|>
#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <map>
#include "lodepng.h"
#include "Eigen/Sparse"
typedef Eigen::SparseMatrix<double> SpMat;
typedef Eigen::Triplet<double> Triplet;
typedef Eigen::VectorXd Vec;
// gamm... | yijiuzai/poisson_blend |
<|start_filename|>app/src/main/java/com/example/astrobin/ui/components/Example.kt<|end_filename|>
package com.example.astrobin.ui.components
import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose.runtime.Composable
import androidx.paging.compose.LazyPagingItems
@Composable
fun Example(data: LazyPa... | lelandrichardson/astrobin-compose |
<|start_filename|>logrus_prefixed_formatter_suite_test.go<|end_filename|>
package prefixed_test
import (
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
"testing"
)
type LogOutput struct {
buffer string
}
func (o *LogOutput) Write(p []byte) (int, error) {
o.buffer += string(p[:])
return len(p), nil
}
f... | codeskipper/logrus-prefixed-formatter |
<|start_filename|>src/utils/db.js<|end_filename|>
import low from 'lowdb'
import LocalStorage from 'lowdb/adapters/LocalStorage'
import database from './database'
const adapter = new LocalStorage('bin-data')
const db = low(adapter)
db
.defaults(database)
.write()
// db.set('canvasMaps', database.canvasMaps).writ... | Chiuuuu/fastbi |
<|start_filename|>examples/hello.lua<|end_filename|>
#!/usr/bin/env lua
local fl = require( "fltk4lua" )
local window = fl.Window( 340, 180 )
local box = fl.Box( 20, 40, 300, 100, "Hello World!" )
box.box = "FL_UP_BOX"
box.labelfont = "FL_HELVETICA_BOLD_ITALIC"
box.labelsize = 36
box.labeltype = "FL_SHADOW_LABEL"
wind... | caoliver/lua-fltk4lua |
<|start_filename|>DXMPP/SASL/CryptoPP_byte.hpp<|end_filename|>
//
// CryptoPP_byte.cpp
// DXMPP
//
// Created by <NAME> 2020
// Copyright (c) 2014 <NAME>. All rights reserved.
//
// Work around Crypto++ API incompatibility between 5.x and later versions
#include <cryptopp/config.h>
#if (CRYPTOPP_VERSION < 600)
n... | mstfn/dxmpp |
<|start_filename|>Gruntfile.coffee<|end_filename|>
module.exports = (grunt) ->
banner =
"/*! JpegCamera <%= pkg.version %> | " +
"<%= grunt.template.today('yyyy-mm-dd') %>\n" +
" (c) 2013 <NAME>\n" +
" <%= pkg.homepage %> */\n"
grunt.initConfig
pkg: grunt.file.readJSON("package.json"... | otnorli/jpeg_camera |
<|start_filename|>src/main/java/com/pesegato/MonkeySheet/actions/MSActionControl.java<|end_filename|>
package com.pesegato.MonkeySheet.actions;
import com.jme3.renderer.RenderManager;
import com.jme3.renderer.ViewPort;
import com.jme3.scene.control.AbstractControl;
import com.pesegato.MonkeySheet.MSAnimationManager;
i... | Pesegato/MonkeySheet |
<|start_filename|>lib/src/main/java/com/huya/pitaya/ui/status/PageStatusTransformer.kt<|end_filename|>
package com.huya.pitaya.ui.status
import android.os.Looper
import android.view.View
import android.view.ViewGroup
import android.view.ViewGroup.LayoutParams.MATCH_PARENT
import android.widget.FrameLayout
import andro... | YvesCheung/PageStatusTransformer |
<|start_filename|>prefs/bfdRootListController.h<|end_filename|>
#import <Preferences/PSListController.h>
#import <Preferences/PSSpecifier.h>
#import <spawn.h>
@interface bfdRootListController : PSListController
@end
<|start_filename|>Makefile<|end_filename|>
TARGET := iphone:clang:13.5:12.0
GO_EASY_ON_ME = 1
ARCHS... | p0358/bfdecrypt |
<|start_filename|>website/index.css<|end_filename|>
.center {
margin: auto;
max-width: 1200px;
padding: 10px;
}
.container-fluid {
padding: 30px;
}
body {
font-size: 18px;
}
.name {
font-size: 18px;
font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: 300; line-height: 20px;
}
.affi... | zvict/HyperRIM |
<|start_filename|>.config/Code/User/keybindings.json<|end_filename|>
// Place your key bindings in this file to overwrite the defaults
[
{
"key": "ctrl+3",
"command": "editor.action.addCommentLine",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "ctrl+k ctrl+c",
... | mmphego/dot-files |
<|start_filename|>src/visualizer.jl<|end_filename|>
struct MechanismVisualizer{M <: MechanismState, V <: AbstractVisualizer}
state::M
visualizer::V
modcount::Int
function MechanismVisualizer(state::M, vis::V) where {M <: MechanismState, V <: AbstractVisualizer}
new{M, V}(state, vis, rbd.modcoun... | ferrolho/MeshCatMechanisms.jl |
<|start_filename|>EZLoadingActivity_iOS/EZLoadingActivity_iOS.h<|end_filename|>
//
// EZLoadingActivity_iOS.h
// EZLoadingActivity_iOS
//
// Created by toshi0383 on 12/14/15.
// Copyright © 2015 <NAME>. All rights reserved.
//
#import <UIKit/UIKit.h>
//! Project version number for EZLoadingActivity_iOS.
FOUNDATIO... | Legoless/EZLoadingActivity |
<|start_filename|>Dockerfile<|end_filename|>
FROM unit9/base
MAINTAINER <NAME> <<EMAIL>>
RUN curl https://deb.nodesource.com/setup_10.x --output /tmp/node_setup && \
bash /tmp/node_setup && \
rm /tmp/node_setup && \
apt install nodejs
WORKDIR /app
RUN adduser --system --no-create-home --disabled-login -... | hugobozzshih007/unity-cloud-build-app-center |
<|start_filename|>questions.js<|end_filename|>
questions = [
//Reform vs Conserve
{ "question": "Homosexuality is against my personal values.",
"i18n":{"ko": "동성애는 나의 개인적인 도덕적 가치에 어긋난다.",
"ru": "гомосексуализм противоречит моим личным ценностям.",
"cn": "同性恋违背我的个人价值观。",
"ja": "同性愛は私の価値観に反する"},
"effect": { "a": -5, ... | rightvaluestest/rightvaluestest.github.io |
<|start_filename|>docs/asset-manifest.json<|end_filename|>
{
"main.css": "static/css/main.ebe711c6.css",
"main.css.map": "static/css/main.ebe711c6.css.map",
"main.js": "static/js/main.3a666ba4.js",
"main.js.map": "static/js/main.3a666ba4.js.map"
} | WinsomeYuen/WeatherApp |
<|start_filename|>UTHAI-MPPC/uthai_mbed/stm32/src/main.cpp<|end_filename|>
#include <mbed.h>
DigitalOut led1(PB_10);
DigitalOut led2(PB_4);
DigitalOut led3(PB_5);
DigitalIn button1(PB_3);
DigitalIn button2(PA_10);
int main()
{
while (1)
{
if (button1.read() == 0 || button2.read() == 0)
{
... | oeydev/UTHAI-Humanoid |
<|start_filename|>.bootstrap.mk<|end_filename|>
# Export all Make variables by default to sub-make as well as Shell calls.
#
# Note that you can still explicitely mark a variable with `unexport` and it is
# not going to be exported by Make, regardless of this setting.
#
# https://www.gnu.org/software/make/manual/html_n... | Zebradil/make-bootstrap |
<|start_filename|>ios/Classes/TflitePlugin.h<|end_filename|>
#import <Flutter/Flutter.h>
@interface TflitePlugin : NSObject<FlutterPlugin>
@end
| diddledani/flutter_tflite |
<|start_filename|>kilo.cpp<|end_filename|>
/* Kilo -- A very simple editor in less than 1-kilo lines of code (as counted
* by "cloc"). Does not depend on libcurses, directly emits VT100
* escapes on the terminal.
*
* -----------------------------------------------------------------------
*
* Copyr... | r-darwish/kilo |
<|start_filename|>core22/Models/POS/Models/InvenTran.cs<|end_filename|>
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace core22.Models.POS.Models
{
public class InvenTran
{
public Guid InvenTranId { get; set; }
public string Number { ge... | aulkiller/POSWebASP |
<|start_filename|>router/http.go<|end_filename|>
package router
import (
"fmt"
"net/http"
"strings"
)
func init() {
port := getopt("PORT", getopt("HTTP_PORT", "80"))
Jobs.Register(&httpService{port}, "http")
}
type httpService struct {
port string
}
func (s *httpService) Name() string {
return fmt.Sprintf("h... | gbolo/logspout |
<|start_filename|>uuidxx.h<|end_filename|>
#pragma once
#include <stdexcept>
#include <cstdint>
#include <string>
namespace uuidxx
{
enum class Variant
{
Nil,
Version1,
Version2,
Version3,
Version4,
Version5
};
class NotImplemented : public std::logic_error
{
public:
NotImplemented() : std::logic... | neosmart/uuidxx |
<|start_filename|>styles/colors.css<|end_filename|>
:root {
--color-text-main: #2b2c30;
--color-text-sub: #616269;
--color-text-off: #999;
--color-text-disabled: #ccc;
--color-text-placeholder: #ccc;
--color-text-link: #2b2c30;
--color-border-dark: #ccc;
--color-border: #ddd;
--color-border-light: #ee... | sohtsuka/microcms-blog-nextjs |
<|start_filename|>mm/malloc.h<|end_filename|>
// Copyright (c) 2016 Couchbase, Inc.
// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
// except in compliance with the License. You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
// Unless req... | couchbase/nitro |
<|start_filename|>zmodules/Src/jobs.c<|end_filename|>
/*
* jobs.c - job control
*
* This file is part of zsh, the Z shell.
*
* Copyright (c) 1992-1997 <NAME>
* All rights reserved.
*
* Permission is hereby granted, without written agreement and without
* license or royalty fees, to use, copy, modify, and distr... | z-shell/zinit |
<|start_filename|>src/navigation/defaultOptions.js<|end_filename|>
import { gStyle } from '../constants';
export default () => ({
headerStyle: gStyle.navHeaderStyle
});
| sushmali1230/TVRemote |
<|start_filename|>examples/managed-react/.storybook/config.js<|end_filename|>
import { configure, addDecorator } from '@storybook/react';
import { withScreenshot } from 'zisui';
function loadStories() {
require('../src/stories');
}
addDecorator(withScreenshot({
viewport: {
width: 1200,
height: 800,
}
})... | bokuweb/zisui |
<|start_filename|>application/static/javascript/victory.js<|end_filename|>
(function() {
var a, crashDocumentController, documentsController, groupedDocumentsController, indexController, settingsApplicationsController, settingsMenuController, settingsProfileController, settingsUsersController;
a = angular.module('... | kelp404/Victory |
<|start_filename|>inertia.go<|end_filename|>
package inertia
import (
"context"
"encoding/json"
"html/template"
"io/fs"
"net/http"
"path/filepath"
"strings"
)
// Inertia type.
type Inertia struct {
url string
rootTemplate string
version string
sharedProps map[string]interface{}
sharedFu... | petaki/inertia-go |
<|start_filename|>src/codegen.js<|end_filename|>
const _state = 'state';
const _node = 'node';
const _match = 'x';
function js(/* arguments */) {
let body = arguments[0][0];
for (let i = 1; i < arguments.length; i++)
body = body + arguments[i] + arguments[0][i];
return body.trim();
}
const copy = (prev) => ... | kitten/reghex |
<|start_filename|>smart-referee/screens/SignUp/index.js<|end_filename|>
import SignUpContainer from "./SignUpContainer";
export default SignUpContainer;
| bts-break-through-sw-maestro/SMART-Refree-App |
<|start_filename|>examples/gorice/main.go<|end_filename|>
/*
* Copyright 2018 Foolin. All rights reserved.
*
* Use of this source code is governed by a MIT style
* license that can be found in the LICENSE file.
*
*/
package main
import (
"net/http"
"github.com/GeertJohan/go.rice"
"github.com/foolin/gin-temp... | WinPooh32/gin-template |
<|start_filename|>lib/csdl2markdown.js<|end_filename|>
/**
* Converts OData CSDL JSON to Github Flavored Markdown
*
* Latest version: https://github.com/oasis-tcs/odata-vocabularies/blob/main/lib/csdl2markdown.js
*/
//TODO
// - See //TODO comments below
// - use something like https://github.com/epoberezkin/json-s... | oasis-tcs/odata-vocabularies |
<|start_filename|>my-other-site.com/php/Dockerfile<|end_filename|>
FROM php:7.0-fpm
MAINTAINER <NAME> <<EMAIL>>
<|start_filename|>konradcerny.cz/nginx/Dockerfile<|end_filename|>
FROM nginx:latest
MAINTAINER <NAME> <<EMAIL>>
COPY ./default.conf /etc/nginx/conf.d/default.conf
<|start_filename|>konradcerny.cz/php/Doc... | rokerkony/dockerize-vps |
<|start_filename|>js/data.js<|end_filename|>
function handleMsg(msg) {
if (VISIBLE) {
addData(msg.pub, msg.subs);
}
}
var pubnub = PUBNUB.init({
publish_key : "demo",
subscribe_key : "<KEY>",
ssl : true
});
var timeStamps = [];
pubnub.subscribe({
channel : "rts-xNjiKP4Bg4jgElhhn9v9-geo-map... | isabella232/webgl-visualization |
<|start_filename|>style/style.css<|end_filename|>
html, body {
margin: 0;
font-family: arial, "Microsoft YaHei";
background-color: #272822;
color: #FEFEFE;
}
#fileWrapper{
transition:all 0.5s ease;
}
#fileWrapper:hover{
opacity: 1!important;
}
#visualizer_wrapper{
text-align: center;
}
footer{
posi... | DeepBlue27/Learn2Git |
<|start_filename|>test/integration/test.apis.natural-language-understanding.js<|end_filename|>
/**
* Copyright 2015 IBM Corp. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the Li... | tigartar/f4bot |
<|start_filename|>src/RPC/Library.fs<|end_filename|>
namespace Elmish.Bridge
[<AutoOpen>]
module RPC =
type IReplyChannel<'T> = {
ValueId : System.Guid
ExceptionId : System.Guid
}
<|start_filename|>src/Client/Library.fs<|end_filename|>
namespace Elmish.Bridge
open Browser
open Browser.Types
open... | Nhowka/Elmish.Bridge |
<|start_filename|>docker-compose/xebialabs/xl-release/Dockerfile<|end_filename|>
FROM xebialabs/xl-release:9.5.1
COPY default-conf/* /opt/xebialabs/xl-release-server/default-conf/
<|start_filename|>store/src/main/java/com/xebialabs/store/config/audit/package-info.java<|end_filename|>
/**
* Audit specific code.
*/
... | dllz/e-commerce-microservice |
<|start_filename|>network/src/main/java/com/turn/ttorrent/network/ConnectionManager.java<|end_filename|>
package com.turn.ttorrent.network;
import com.turn.ttorrent.common.LoggerUtils;
import com.turn.ttorrent.common.TimeService;
import com.turn.ttorrent.common.TorrentLoggerFactory;
import com.turn.ttorrent.network.ke... | sideeffffect/ttorrent |
<|start_filename|>sublime-text-3/Packages/ESLint/linter.js<|end_filename|>
'use strict';
var fs = require('fs');
var path = require('path');
var args = process.argv.slice(2);
var minNodeVersion = ["8","9","0"];
var targetPath = args[0];
var targetDir = path.dirname(targetPath);
var nodeModulesPath = args[1];
if (nod... | EnTeQuAk/dotfiles |
<|start_filename|>drools/drools-core/src/test/java/com/zandili/demo/drools/test/BaseTest.java<|end_filename|>
package com.zandili.demo.drools.test;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit38.AbstractJUnit38SpringContextTests;
@SuppressWarnings("deprec... | SeaDragon769/droolsdemo |
<|start_filename|>sample/src/main/java/com/maksim88/passwordedittext/sample/MainActivity.java<|end_filename|>
package com.maksim88.passwordedittext.sample;
import android.content.Context;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.widget.Button;
import com.maksim88.passw... | AppSecAI-TEST/PasswordEditText |
<|start_filename|>lib/erl_interface/src/encode/encode_string.c<|end_filename|>
/*
* %CopyrightBegin%
*
* Copyright Ericsson AB 1998-2011. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain ... | lucafavatella/otp |
<|start_filename|>src/demo-iframe.js<|end_filename|>
import '@/styles/base.scss'
import Vue from 'vue'
import Grid from '@/components/grid/Grid'
import store from '@/store'
import { debounce } from 'lodash-es'
Vue.config.productionTip = false
Vue.config.devtools = process.env.NODE_ENV === 'development'
const containe... | reymalahay/responsive-dashboard |
<|start_filename|>utils/schema.go<|end_filename|>
/*
* Copyright 2017-2019 Kopano and its licensors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licens... | rhafer/lico |
<|start_filename|>angular2-indexeddb.js<|end_filename|>
'use strict';
Object.defineProperty(exports, "__esModule", { value: true });
var AngularIndexedDB = /** @class */ (function () {
function AngularIndexedDB(dbName, version) {
this.utils = new Utils();
this.dbWrapper = new DbWrapper(dbName, versi... | jhuseinovic/angular2-indexeddb |
<|start_filename|>app/src/main/java/com/suvikas/conware/Activities/DetectContainer.java<|end_filename|>
package com.suvikas.conware.Activities;
import androidx.appcompat.app.AlertDialog;
import androidx.appcompat.app.AppCompatActivity;
import android.content.DialogInterface;
import android.os.Bundle;
import android.v... | su-vikas/conbeerlib |
<|start_filename|>documentation/css/polyfill.css<|end_filename|>
[hidden], template {
display: none;
}
article, main, section {
display:block;
}
<|start_filename|>tests/performance/package.json<|end_filename|>
{
"name": "performance-dom99",
"version": "1.0.0",
"description": "Here are some tests for perf... | liquorburn/DOM99 |
<|start_filename|>test.js<|end_filename|>
const OQO = require('./dist');
const people = [
{ name: 'John', age: 25, gender: 'male' },
{ name: 'Alice', age: 14, gender: 'female' },
{ name: 'Bob', age: 19, gender: 'male' },
{ name: 'Charlie', age: 20, gender: 'female' },
{... | rulyox/oqo |
<|start_filename|>src/http/get-user-000name/index.js<|end_filename|>
// Enable secure sessions, express-style middleware, and more:
// https://docs.begin.com/en/functions/http/
//
// let begin = require('@architect/functions')
let html = `
<!doctype html>
<html lang=en>
<head>
<meta charset=utf-8>
<title>Hi!... | christianfroseth/begin-vue-app |
<|start_filename|>src/app/speaker-registration/speaker-registration-step-three/speaker-registration-step-three.component.html<|end_filename|>
<div class="container" id="step-three-container">
<div class="col-md-4 col-md-offset-4">
<div class="panel panel-default">
<div class="panel-heading">
... | samvloeberghs/protractor-gherkin-cucumberjs-angular2 |
<|start_filename|>tests/mocks/contentItem.json<|end_filename|>
{
"contentItems": [
{
"content": "Humans have evolved to their relatively high state by retaining the immature characteristics of their ancestors. Humans are the most advanced of mammals – although a case could be made for the dolphins – because... | harryspink/watson-personality-insights-php |
<|start_filename|>test/unit/stats.js<|end_filename|>
'use strict'
const test = require('tape')
const Stats = require('../../lib/stats')
test('stats', function (t) {
const s1 = new Stats(false, 0, 0)
t.is(s1.ok, false)
t.is(s1.pass, 0)
t.is(s1.fail, 0)
t.is(s1.count, 0)
const s2 = new Stats(true, 0, 1)
... | jzombie/airtap |
<|start_filename|>app/src/main/java/de/example/websockettutorial/MainActivity.kt<|end_filename|>
package de.example.websockettutorial
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.util.Log
import kotlinx.android.synthetic.main.activity_main.*
import org.java_websocket.client.W... | fahrican/WebSocketTutorial |
<|start_filename|>matrix-sdk/src/main/java/org/matrix/androidsdk/rest/model/message/StickerMessage.java<|end_filename|>
/*
* Copyright 2018 New Vector Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy o... | Targunitoth/matrix-android-sdk |
<|start_filename|>Content.Shared/Jittering/SharedJitteringSystem.cs<|end_filename|>
using System;
using System.Collections.Generic;
using Robust.Shared.GameObjects;
using Robust.Shared.GameStates;
using Robust.Shared.IoC;
using Robust.Shared.Timing;
namespace Content.Shared.Jittering
{
/// <summary>
/// A ... | JasperJRoth/space-station-14 |
<|start_filename|>Dockerfile<|end_filename|>
FROM node:boron
MAINTAINER <NAME> <<EMAIL>>
# Use Alibaba's NPM mirror
RUN npm set registry https://registry.npm.taobao.org/
# creat workdir
RUN mkdir -p /usr/projects/movie-board
WORKDIR /usr/projects/movie-board
# Install dependencies
COPY package.json /usr/projects/mo... | MagicCube/movie-board |
<|start_filename|>vitest.config.js<|end_filename|>
/// <reference types="vitest" />
import { defineConfig } from 'vite'
export default defineConfig({
test: {
root: 'tests',
resolve: {
extensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node']
},
testTimeout: 2000,
global: true
}
})
| fossabot/webpack-to-vite |
<|start_filename|>emulator/include/board/track.hpp<|end_filename|>
#pragma once
#include <risc.hpp>
#include <queue>
#include <optional>
#include <map>
#include <mutex>
#include <imgui.h>
#define IMGUI_DEFINE_MATH_OPERATORS
#include <imgui_internal.h>
namespace vc::pcb {
class Connectable;
enum class Dire... | WerWolv/PCBEmulator |
<|start_filename|>src/utils/cssInjector.js<|end_filename|>
const sass = require('sass');
const fs = require('fs');
const path = require('path');
const BASE = `base.scss`;
const MAPPINGS = `mappings.scss`;
const HIDE_DIALER_SIDEBAR_CSS = `gv-call-sidebar { display: none }`;
module.exports = class Injector {
constr... | jerrod-lankford/google-voice-desktop-app |
<|start_filename|>docs/Examples/Attachments/EzImport.js<|end_filename|>
const READWISE_API_OPTION = "Readwise API key";
const ARTICLE_FORMAT = "Article file name format";
const YOUTUBE_VIDEO_FORMAT = "YouTube video file name format";
const PODCAST_FORMAT = "Podcast episode file name format";
const TWEET_FORMAT = "Tweet... | samuelnunoo/quickadd |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.