Search is not available for this dataset
content stringlengths 60 399M | max_stars_repo_name stringlengths 6 110 |
|---|---|
<|start_filename|>AppCompatCache/AppCompatCache.cs<|end_filename|>
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using Alphaleonis.Win32.Security;
using NLog;
using RawCopy;
using Registry;
using Registry.Abstractions;
using Directory = Alphaleonis.Win32.Filesys... | ccDev-Labs/AppCompatCacheParser |
<|start_filename|>Plugins/VRExpansionPlugin/Source/VRExpansionPlugin/Public/VRBPDatatypes.h<|end_filename|>
// Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "Engine.h"
#include "VRBPDatatypes.generated.h"
USTRUCT()
struct VREXPANSIONPLUGIN_API FBPVRComponentPosRep
... | ProteusVR/SteamVR_Template |
<|start_filename|>lib/code_corps/policy/stripe_connect_account.ex<|end_filename|>
defmodule CodeCorps.Policy.StripeConnectAccount do
import CodeCorps.Policy.Helpers, only: [get_organization: 1, owned_by?: 2]
alias CodeCorps.{StripeConnectAccount, User}
def show?(%User{} = user, %StripeConnectAccount{} = stripe_... | fikape/code-corps-api |
<|start_filename|>app/components/AR.js<|end_filename|>
import React, { Component, StyleSheet, Dimensions, View } from 'react-native';
import Camera from 'react-native-camera';
import WebViewBridge from 'react-native-webview-bridge';
import THREE_RENDER_MARKER from '../lib/threejs/marker.js';
import THREE_RENDER_TEXT fr... | jake-shasteen/findAR |
<|start_filename|>main.go<|end_filename|>
package main
import (
"encoding/json"
"fmt"
"io/ioutil"
"net/http"
"os"
echo "github.com/labstack/echo/v4"
middleware "github.com/labstack/echo/v4/middleware"
"github.com/pkg/errors"
"github.com/rs/zerolog"
astronomer "github.com/ullaakut/astronomer/pkg/signature"
... | Ullaakut/astrolab |
<|start_filename|>GPS_IMU_Kalman_Filter/src/geo_ned.hpp<|end_filename|>
//
// geo_ned.hpp
// ExtendedKalmanFilter
//
// Created by Karan on 4/6/18.
// Copyright © 2018 Karan. All rights reserved.
//
#ifndef geo_ned_hpp
#define geo_ned_hpp
#include <stdio.h>
#include "Eigen/Dense"
#include <fstream>
#include <sstr... | chendaxiashizhu/GPS_IMU_Kalman_Filter |
<|start_filename|>resources/js/modules/notification/components/notificationMixin.js<|end_filename|>
import {mapGetters, mapMutations} from 'vuex'
import * as notificationTypes from '../store/types'
export default {
name: 'Notificator',
render(h) {
return h
},
computed: {
...mapGetters([... | soulzilla/skinzilla |
<|start_filename|>.eslintrc.js<|end_filename|>
module.exports = {
'env':
{
'browser': true,
'es6': true
},
'parserOptions':
{
'sourceType': 'module'
},
'rules':
{
'no-unused-vars': 1,
'no-console': 0,
'dot-notation': 1,
'eqeqeq': 1,... | jannickholm/notedown |
<|start_filename|>src/main/java/org/robotframework/javalib/keyword/CollisionKeyword.java<|end_filename|>
/*
* Copyright 2013 Nokia Solutions and Networks Oyj
*
* 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 cop... | shan-96/JavalibCore |
<|start_filename|>chat/build/all.js<|end_filename|>
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,... | mrigeshparashar/Data-Over-sound |
<|start_filename|>src/lookupPlate.js<|end_filename|>
/* eslint-disable no-undef */
const Tesseract = require('tesseract.js');
const screenshotDOMElement = require('./screenshotDOMElement.js');
module.exports = async (browser, state = 'DC', number = 'ey9285') => {
console.log('lookup Plate');
const page = await br... | dschep/hows-my-driving-dc |
<|start_filename|>30 Days of Code (C)/D2-Operators.c<|end_filename|>
/*
Objective
In this challenge, you'll work with arithmetic operators. Check out the Tutorial tab for learning materials and an instructional video!
Task
iven the meal price (base cost of a meal), tip percent (the percentage of the meal price... | gayatripalkar/Hackerrank-Codes |
<|start_filename|>src/util/JWT.cpp<|end_filename|>
//
// Created by 74079 on 2022/2/12.
//
#include "JWT.h"
QString JWT::getSignature(const QString &cookie) {
// 分割
QList<QString> arr = cookie.split('.');
// 解析payload
JWTPayload payload;
QByteArray payloadStr = QByteArray::fromBase64(arr[1].toLat... | a976606645/qt-zmyy |
<|start_filename|>docs/styles/main.js<|end_filename|>
var currentYear= new Date().getFullYear();
document.getElementById("currentYear").innerHTML = currentYear; | nunit/docs |
<|start_filename|>src/main.lua<|end_filename|>
local overload = require 'autograd.overload'
local RuntimeDirect = require 'autograd.runtime.direct'
local RuntimeCodegen = require 'autograd.runtime.codegen'
local util = require 'autograd.util'
-- Support functions
include 'support.lua'
-- Standard overloaded functions... | twitter/autograd |
<|start_filename|>docs/articles/getting-started.html<|end_filename|>
<!DOCTYPE html>
<!-- Generated by pkgdown: do not edit by hand --><html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="view... | iobis/robis |
<|start_filename|>store/types/gas_test.go<|end_filename|>
package types
import (
"math"
"testing"
"github.com/stretchr/testify/require"
)
func TestGasMeter(t *testing.T) {
cases := []struct {
limit Gas
usage []Gas
}{
{10, []Gas{1, 2, 3, 4}},
{1000, []Gas{40, 30, 20, 10, 900}},
{100000, []Gas{99999, 1}... | stakewithus/cosmos-sdk |
<|start_filename|>Compat.Configuration.Install.Tests/System.Configuration.Install/InstallContextTests.cs<|end_filename|>
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace System.Configuration.Install.Tests.System.Configuration.Install
{
[TestClass]
public class InstallContextTests
{
[T... | cklutz/Compat.Configuration.Install |
<|start_filename|>计算机专业课/设计模式/Decorator-Pattern/Makefile<|end_filename|>
all:
g++ -g -Wall -o main main.cpp
rm:
main
<|start_filename|>plugin/css/me.css<|end_filename|>
/*结束文章符号*/
.over {
width: 40px;
height: 40px;
border: 1px solid #000001;
border-radius: 50%;
text-align: center;
line-heigh... | bytesfly/NoteBook |
<|start_filename|>web/resources/css/main.css<|end_filename|>
/*
* I add this to html files generated with pandoc.
*/
html {
font-size: 100%;
overflow-y: scroll;
-webkit-text-size-adjust: 100%;
-ms-text-size-adjust: 100%;
}
body {
color: #444;
font-family: Georgia, Palatino, 'Palatino Linotyp... | greck2908/kotlin-spec |
<|start_filename|>com.mushoo.RunAppleScript.sdPlugin/Index.js<|end_filename|>
var websocket = null,
uuid = null,
actionInfo = {},
inInfo = {},
runningApps = [],
isQT = navigator.appVersion.includes('QtWebEngine');
function connectSocket(inPort, inUUID, inRegisterEvent, inInfo, inActionInfo) {
u... | jameswhite/streamdeck-applescript |
<|start_filename|>index.js<|end_filename|>
'use strict'
const got = require('got')
const cheerio = require('cheerio')
const splitMeta = (str) => str.substr(str.indexOf(':') + 1).trim()
module.exports = function (word, opts) {
if (typeof word !== 'string') {
return Promise.reject(new TypeError(`Expected word to ... | egoist/is-trademarked |
<|start_filename|>miniserver/forwardResponse.go<|end_filename|>
package miniserver
import (
"bytes"
"io"
"net/http"
)
type ForwardResponse struct {
u string
}
func NewForwardResponse(u string) *ForwardResponse {
return &ForwardResponse{u}
}
func (forwardResponse *ForwardResponse) write(writer http.ResponseWrit... | Grarak/GoYTFetcher |
<|start_filename|>index.js<|end_filename|>
exports = module.exports = require('./lib/twitter_ads.js');
<|start_filename|>package.json<|end_filename|>
{
"name": "twitter-ads",
"description": "Twitter Ads API for NodeJS",
"version": "0.2.1",
"author": "<NAME> <<EMAIL>>",
"license": "MIT",
"homepage": "http:/... | hoangfuongduy/twitter-ads |
<|start_filename|>Classification/LibLinear/src/test/java/org/tribuo/classification/liblinear/TestLibLinearModel.java<|end_filename|>
/*
* Copyright (c) 2015-2020, Oracle and/or its affiliates. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except... | Craigacp/tribuo |
<|start_filename|>main.go<|end_filename|>
package main
import (
"fmt"
"os"
"github.com/urfave/cli"
)
func main() {
app := cli.NewApp()
app.Name = "informer"
app.Version = Version
app.Usage = ""
app.Author = "nashiox"
app.Email = "<EMAIL>"
app.Commands = Commands
if err := app.Run(os.Args); err != nil {
... | nashiox/informer |
<|start_filename|>src/index.js<|end_filename|>
import AlpineComponentMagicMethod from './component'
import AlpineFetchMagicMethod from './fetch'
import AlpineIntervalMagicMethod from './interval'
import AlpineRangeMagicMethod from './range'
import AlpineRefreshMagicMethod from './refresh'
import AlpineScreenMagicMethod... | pascalandy/alpine-magic-helpers |
<|start_filename|>generators/app/index.js<|end_filename|>
'use strict';
var path = require('path');
var yeoman = require('yeoman-generator');
var camelcase = require('camelcase');
module.exports = yeoman.Base.extend({
prompting: function () {
var done = this.async();
var prompts = [{
name: 'filename',
mess... | jamestalmage/generator-codemod |
<|start_filename|>examples.lisp<|end_filename|>
(defpackage :cl-drawille/examples
(:use :common-lisp :cl-drawille)
(:export :turtle-example :basic-example))
(in-package :cl-drawille/examples)
(defun turtle-example ()
(let ((turtle (cl-drawille:make-turtle)))
(loop repeat 36
do (cl-drawille:right turtle ... | Goheeca/cl-drawille |
<|start_filename|>Makefile<|end_filename|>
.ONESHELL:
clean:
rm -rf build;
rm -rf dist;
rm -rf procbridge.egg-info
setup:
python3 -m pip install --upgrade setuptools wheel twine
build:
# https://packaging.python.org/tutorials/packaging-projects/
python3 setup.py sdist bdist_wheel
upload_test:
twine upload --r... | raajon/procbridge-python |
<|start_filename|>src/db/seeds/seed_users.js<|end_filename|>
if (process.env.NODE_ENV === "production") {
throw new Error("Can't run seeds in production");
}
exports.seed = function(knex) {
// Deletes ALL existing entries
return knex("users")
.del()
.then(function() {
// Inserts seed entries
... | HappyZombies/express-backend-starter |
<|start_filename|>Distortion/Wave.shader<|end_filename|>
shader_type canvas_item;
uniform float speed = 10.0;
uniform float waves = 60.0;
float Remap01(float value, float from, float to) {
return (value - from) / (to - from);
}
void fragment() {
vec2 uv = UV;
uv.x += Remap01(sin(uv.y * waves - (TIME * speed)), -w... | ceceppa/godot-shaders |
<|start_filename|>src/fileio.h<|end_filename|>
#ifndef FILEIO_H
#define FILEIO_H
#include <QObject>
#include <QTemporaryDir>
class FileIO : public QObject
{
Q_OBJECT
public:
Q_INVOKABLE QString read(const QString& filePath) const;
Q_INVOKABLE bool write(
const QString& filePath,
... | mshobeyri/Pl-illustrator |
<|start_filename|>assets/shaders/shader.frag<|end_filename|>
#version 450
#extension GL_ARB_separate_shader_objects : enable
// Fragment shader that uses a texture coordinate to sample from a texture
// uniform.
layout(location = 0) in vec2 textureCoord;
layout(set = 0, binding = 1) uniform texture2D backgroundTextur... | Schuwi/ampli-Fe |
<|start_filename|>load_test/package.json<|end_filename|>
{
"name": "load_test",
"version": "1.0.0",
"description": "Perform load test of ES modules and CommonJS",
"author": "<NAME>, Amazon Web Services",
"license": "MIT-0",
"devDependencies": {
"artillery": "^1.7.9"
}
}
<|start_filename|>src/package... | buithaibinh/aws-lambda-es-module-performance-benchmark |
<|start_filename|>Dockerfile<|end_filename|>
FROM php:7.1.27-fpm-stretch
LABEL maintainer="<NAME> <<EMAIL>>"
ENV php_conf /usr/local/etc/php/php.ini
ENV fpm_conf /usr/local/etc/php/php-fpm.conf
ENV fpm_conf_dir /usr/local/etc/php-fpm.d/
RUN apt-get update \
&& apt-get install -y autoconf pkg-config libssl-dev
R... | Edipyanik/docker-nginx-php |
<|start_filename|>Makefile<|end_filename|>
VERSION=$$(cat VERSION)
default: test
deep_clean: clean
(rm -fr ./target ; rm -fr ./project/project ; rm -fr ./project/target) || echo "it's clean"
clean:
sbt clean
fmt:
sbt soteriaCheckScalaFmtRun
publishLocal:
sbt 'set isSnapshot := true' publishLocal
publish: tes... | leobenkel/Soteria |
<|start_filename|>test/bundle/run-default-parameters.js<|end_filename|>
require('../../example/src/features/default-parameters')('Bruno');
<|start_filename|>test/bundle/run-classes.js<|end_filename|>
require('../../example/src/features/classes')();
<|start_filename|>index.js<|end_filename|>
'use strict';
var throu... | baileyparker/es6ify |
<|start_filename|>include/arith.h<|end_filename|>
/* $Id: arith.h 6 2007-01-22 00:45:22Z drhanson $ */
extern int Arith_max(int x, int y);
extern int Arith_min(int x, int y);
extern int Arith_div(int x, int y);
extern int Arith_mod(int x, int y);
extern int Arith_ceiling(int x, int y);
extern int Arith_floor (int x, i... | IdiotForces/cii |
<|start_filename|>common/constants.js<|end_filename|>
export const PROJECT_LIST = '/common/constants.js';
export const PROJECT_DETAIL = '/common/constants.js';
<|start_filename|>public/styles/style.css<|end_filename|>
body {
font: 16px microsoft yahei, simsun, sans-serif;
}
*{
font-size: 100%; margin:0;padding: 0;
... | zouyifeng/node-quick-mock |
<|start_filename|>ExtentReports/ExtentReports/Model/Log.cs<|end_filename|>
using System;
using AventStack.ExtentReports.MarkupUtils;
using MongoDB.Bson;
namespace AventStack.ExtentReports.Model
{
[Serializable]
public class Log : IAddsMedia<Log>, IRunResult
{
public DateTime Timestamp { get; set... | anshooarora/extentreports-.net |
<|start_filename|>firmware/examples/MAX17043_Simple.cpp<|end_filename|>
/******************************************************************************
MAX17043_Simple_Serial.cpp
SparkFun MAX17043 Example Code
<NAME> @ SparkFun Electronics
Original Creation Date: June 22, 2015
https://github.com/sparkfun/SparkFun_MAX17... | edalquist/SparkFun_MAX17043_Particle_Library |
<|start_filename|>test/ash_postgres_test.exs<|end_filename|>
defmodule AshPostgresTest do
use ExUnit.Case
end
<|start_filename|>test/support/test_repo.ex<|end_filename|>
defmodule AshPostgres.TestRepo do
@moduledoc false
use AshPostgres.Repo,
otp_app: :ash_postgres
def installed_extensions do
["uuid-... | kingshalaby1/ash_postgres |
<|start_filename|>Dockerfile<|end_filename|>
FROM centos:7
MAINTAINER <NAME>
ENV NESSUS_VERSION="7.0.3"
VOLUME ["/opt/nessus"]
RUN set -x \
&& yum update -y \
\
# Find the download-id
&& DOWNLOAD_ID=$(curl -ssl -o - "https://www.tenable.com/downloads/nessus" | sed -n -e 's/.*data-download-id="\([0-9]*\)".*da... | mikenowak/docker-casa-nessus |
<|start_filename|>test/sequelize-mockingSpec.js<|end_filename|>
/**
* Testing around @{SequelizeMocking}
*
* @module test/sequelize-mocking
* @version 0.1.0
* @since 0.1.0
* @author <NAME>
*/
'use strict';
describe('SequelizeMocking - ', function () {
const expect = require('chai').expect;
const sinon ... | RafaelMonteiroExaud/sequelize-mocking |
<|start_filename|>docs/_data/P100.json<|end_filename|>
{"label": "P100", "n_articles": "1734", "top_author_name": "<NAME>", "top_author_count": "26", "top_journal_name": "Electroencephalography and clinical neurophysiology", "top_journal_count": "83", "top_keywords": ["visual evoked potentials", "visual evoked potentia... | TomDonoghue/ERP_SCANR |
<|start_filename|>static/js/documentcloud-visualsearch-605acb3/build/visualsearch.js<|end_filename|>
// This is the annotated source code for
// [VisualSearch.js](http://documentcloud.github.com/visualsearch/),
// a rich search box for real data.
//
// The annotated source HTML is generated by
// [Docco](http://jashke... | ferguson/otto |
<|start_filename|>build/rollup.js<|end_filename|>
// ------------------------------------------------------------------------------------------
// setup
// ------------------------------------------------------------------------------------------
import buble from '@rollup/plugin-buble'
import commonjs from '@rollup/p... | sadortun/vue-class-store |
<|start_filename|>Makefile<|end_filename|>
.PHONY: build coverage
build:
@python setup.py build
test:
@nosetests -v
lint:
@flake8 terminal tests
coverage:
@rm -f .coverage
@nosetests --with-coverage --cover-package=torext
clean: clean-build clean-pyc
clean-build:
@rm -rf build/
@rm -rf dist/
@rm -rf *.egg... | reorx/torext |
<|start_filename|>App.js<|end_filename|>
import React, { useState, useEffect } from 'react';
import { Image, View, Text, Dimensions } from 'react-native';
import { Grid, Col, Row } from 'react-native-easy-grid';
import { Magnetometer } from 'expo-sensors';
const { height, width } = Dimensions.get('window');
export de... | rahulhaque/compass-react-native-expo |
<|start_filename|>rollup.config.js<|end_filename|>
export default {
entry: 'dist/ng2-page-transition.js',
dest: 'dist/bundles/ng2-page-transition.umd.js',
sourceMap: false,
format: 'umd',
moduleName: 'ng2-page-transition',
globals: {
'@angular/core': 'ng.core',
'@angular/router': 'ng.router'
}
} | bergben/ng2-page-transition |
<|start_filename|>Assets/U.movin/Movin.cs<|end_filename|>
using UnityEngine;
using u.movin;
using Unity.VectorGraphics;
namespace u.movin
{
public struct MotionProps
{
public int key; // Current keyframe
public int keys; // Total keyframes
public... | leetful/u.movin |
<|start_filename|>3D-Bin-Packing/Container.cs<|end_filename|>
using System;
namespace _3D_Bin_Packing
{
class Containers
{
#region data members
private String c_id;
private Int32 c_Length;
private Int32 c_minLength;
private Int32 c_maxLength;
private Int32 c_ste... | SahibYar/3D-Bin-Packing |
<|start_filename|>Makefile<|end_filename|>
# Sources
LIB_SRC = src/ncurses.rs
LIB_DEPS = $(shell head -n1 target/.ncurses.deps 2> /dev/null)
EXAMPLES_SRC = $(wildcard examples/*.rs)
# Objects
LIB = target/$(shell rustc --print file-names ${LIB_SRC})
EXAMPLES_BIN = $(EXAMPLES_SRC:examples/%.rs=bin/%)
# CFG Directive O... | Water-bamboo/ncurses-rs |
<|start_filename|>WebViewBraintree.js<|end_filename|>
import React from './react.production.min.js';
import { View, ActivityIndicator, StyleSheet } from 'react-native';
import { WebView } from 'react-native-webview-messaging/WebView';
import PropTypes from 'prop-types';
import renderIf from 'render-if';
export default... | reggie3/react-native-webview-braintree |
<|start_filename|>assets/style.css<|end_filename|>
#coffee a {
color:#fff;
}
#coffee p a {
text-decoration:underline;
}
/* http://www.colourlovers.com/palette/45488/french_vanilla */
body {
background: #5f3711;
color:#eee;
}
.fill-coffee {
background: #5f3711;
}
.coffee-select {
border: 0;
font-size:... | iandees/poism |
<|start_filename|>app/src/main/java/com/hadiidbouk/sample/MainActivity.java<|end_filename|>
package com.hadiidbouk.sample;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.webkit.WebView;
import android.widget.FrameLayout;
import android.widget.Toast;
... | PriestVallon/AppAuthWebView-Android |
<|start_filename|>src/main/java/com/example/MySmartHomeApp.java<|end_filename|>
/*
* Copyright 2019 Google LLC
*
* 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
*
* https://www.apach... | electrofun-smart/my-smart-home-java-mqtt |
<|start_filename|>src/KdtreeISO/include/Mesh.h<|end_filename|>
//
// Created by Danielhu on 2017/12/25.
//
#ifndef VOXELWORLD_MESH_H
#define VOXELWORLD_MESH_H
#include <vector>
#include <glm/glm.hpp>
#include "Topology.h"
#include "Vertex.h"
struct Mesh {
std::vector<unsigned int> indices;
std::vector<glm::fvec3... | Danielhu229/KdtreeISO |
<|start_filename|>ntlmtransport.go<|end_filename|>
package httpntlm
import (
"errors"
"io"
"io/ioutil"
"net/http"
"strings"
"github.com/vadimi/go-ntlm/ntlm"
)
var errEmptyNtlm = errors.New("empty NTLM challenge")
// NtlmTransport is implementation of http.RoundTripper interface
type NtlmTransport struct {
Do... | vadimi/go-http-ntlm |
<|start_filename|>tonic-suite/asr/src/gmm/mle-am-diag-gmm.cc<|end_filename|>
// gmm/mle-am-diag-gmm.cc
// Copyright 2009-2011 Saarland University (Author: <NAME>);
// Microsoft Corporation; <NAME>; <NAME>
// See ../../COPYING for clarification regarding multiple authors
//
// Licensed under th... | csb1024/djinn_csb |
<|start_filename|>src/java/com/snowtide/pdf/lucene/LucenePDFConfiguration.java<|end_filename|>
package com.snowtide.pdf.lucene;
import java.util.HashMap;
import java.util.Map;
/**
* Instances of this class are used to control the creation of Lucene Documents from PDF content
* through the {@link LucenePDFDocumentFa... | snowtide/lucene-pdf |
<|start_filename|>src/BirdMessenger.Test/TusBuildUnitTest.cs<|end_filename|>
using System;
using System.IO;
using Xunit;
using BirdMessenger;
using System.Security.Cryptography;
using System.Text;
using System.Collections.Generic;
using System.Threading.Tasks;
using BirdMessenger.Collections;
namespace BirdMessenger.T... | alexandru-bagu/BirdMessenger |
<|start_filename|>src/cmd/new_pull_request.go<|end_filename|>
package cmd
import (
"github.com/git-town/git-town/src/cli"
"github.com/git-town/git-town/src/drivers"
"github.com/git-town/git-town/src/git"
"github.com/git-town/git-town/src/prompt"
"github.com/git-town/git-town/src/steps"
"github.com/spf13/cobra"
)... | FrazerClews/git-town |
<|start_filename|>resource/config/appfw/appfwsettings.go<|end_filename|>
/*
* Copyright (c) 2021 Citrix Systems, 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://ww... | kasturi1204/adc-nitro-go |
<|start_filename|>samples/CommandQuery.Sample.AWSLambda.Tests/FakeLambdaContext.cs<|end_filename|>
using System;
using Amazon.Lambda.Core;
namespace CommandQuery.Sample.AWSLambda.Tests
{
public class FakeLambdaContext : ILambdaContext
{
public string AwsRequestId { get; set; }
public IClientCo... | NanoFabricFX/CommandQuery |
<|start_filename|>Sources/WatchCon.h<|end_filename|>
//
// WatchCon.h
// WatchCon
//
// Created by <NAME> on 07/02/2017.
// Copyright © 2017 <NAME>. All rights reserved.
//
#import <UIKit/UIKit.h>
//! Project version number for WatchCon.
FOUNDATION_EXPORT double WatchConVersionNumber;
//! Project version string ... | abdullahselek/WatchCon |
<|start_filename|>large-message-connect/src/main/java/com/bakdata/kafka/LargeMessageConverter.java<|end_filename|>
/*
* MIT License
*
* Copyright (c) 2020 bakdata
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software")... | jclarysse/kafka-large-message-serde |
<|start_filename|>SkiaSharpDemo/SkiaSharpDemo/Graphics/Transforms/GeneralTransform.cs<|end_filename|>
using System;
using SkiaSharp;
namespace SkiaSharpDemo.Graphics
{
public class GeneralTransform
{
protected GeneralTransform()
{
}
//public Point TransformPoint(Point point)
//{
// throw new NotImpleme... | mattleibow/SkiaSharpGraphics |
<|start_filename|>jadx-core/src/test/java/jadx/tests/integration/others/TestCodeComments.java<|end_filename|>
package jadx.tests.integration.others;
import java.util.Arrays;
import java.util.Collections;
import org.junit.jupiter.api.Test;
import jadx.api.data.ICodeComment;
import jadx.api.data.IJavaNodeRef.RefType;
... | zhongqingsong/jadx |
<|start_filename|>release/PPA/debian.ex/mouse-speed.cron.d.ex<|end_filename|>
#
# Regular cron jobs for the mouse-speed package
#
0 4 * * * root [ -x /usr/bin/mouse-speed_maintenance ] && /usr/bin/mouse-speed_maintenance
<|start_filename|>release/PPA/debian.ex/menu.ex<|end_filename|>
?package(mouse-speed):needs="X11|... | rubo77/mouse-speed |
<|start_filename|>dubbo-filter/dubbo-filter-cache/src/main/java/org/apache/dubbo/cache/support/expiring/ExpiringCache.java<|end_filename|>
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional informa... | gongbinglai/incubator-dubbo |
<|start_filename|>Library/src/main/java/com/example/zhouwei/library/CustomPopWindow.java<|end_filename|>
package com.example.zhouwei.library;
import android.app.Activity;
import android.content.Context;
import android.graphics.Color;
import android.graphics.drawable.ColorDrawable;
import android.os.Build;
import andro... | lqjideos/CustomPopwindow |
<|start_filename|>src/Graph/Tree/Diameter/diameter.cpp<|end_filename|>
#include<iostream>
#include<vector>
#include<algorithm>
using namespace std;
vector<vector<int>> tree ;
vector<int> visited, toLeaf, path_length;
void dfs(int node){
visited[node] = true;
vector<int> length = {-1};
for(int... | iammanish17/Algorithms |
<|start_filename|>src/main/java/io/reliza/versioning/Constants.java<|end_filename|>
/**
* Copyright 2019 Reliza Incorporated. Licensed under MIT License.
* https://reliza.io
*/
package io.reliza.versioning;
/**
*
* This class contains various constants used across the project.
*
*/
public class Constants {
p... | jeehyun-lee/versioning |
<|start_filename|>src/components/main/Challenges/videoPart.java<|end_filename|>
int gcd(int a, int b){
if(b > a){
int temp = a;
a = b;
b = temp;
}
while(b != 0){
int temp = a;
a = b;
b = temp % b;
}
return a;
}
int[] videoPart(String part, S... | riju234/CodeSignal-Practice_Solutions |
<|start_filename|>connectors/jk/jkstatus/src/share/org/apache/jk/status/package.html<|end_filename|>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
T... | jinbaizhe/tomcat-4 |
<|start_filename|>station-render-api-v0/src/main/java/net/modificationstation/stationapi/api/client/model/item/ItemModelProvider.java<|end_filename|>
package net.modificationstation.stationapi.api.client.model.item;
import net.minecraft.item.ItemInstance;
import net.modificationstation.stationapi.api.client.model.Mode... | ModificationStation/StationAPI |
<|start_filename|>emoji_flag_test.go<|end_filename|>
package emojiflag
import (
"testing"
"unicode/utf8"
)
func Test_getFlag(t *testing.T) {
type args struct {
country string
}
tests := []struct {
name string
args args
expectedLen int
}{
{
"Should handle correct 3 char input",
args... | TheTeaCat/go-emoji-flag |
<|start_filename|>pkg/provider/provider.go<|end_filename|>
package provider
import (
"fmt"
"io"
"path/filepath"
"os"
"k8s.io/client-go/informers"
"k8s.io/client-go/kubernetes"
"k8s.io/client-go/rest"
"k8s.io/client-go/tools/clientcmd"
cloudprovider "k8s.io/cloud-provider"
)
// OutSideCluster allows the co... | Sandah/kube-vip-cloud-provider |
<|start_filename|>config/src/test/java/com/quorum/tessera/config/constraints/SslConfigValidatorTest.java<|end_filename|>
package com.quorum.tessera.config.constraints;
import static org.assertj.core.api.Assertions.assertThat;
import static org.mockito.ArgumentMatchers.any;
import static org.mockito.Mockito.*;
import ... | Chirag-786/tessera |
<|start_filename|>epub2twpub/epub-reader.js<|end_filename|>
/*
Reads an EPUB file and makes the content available via properties
*/
const fs = require("fs"),
path = require("path"),
{promisify} = require("util"),
readFileAsync = promisify(fs.readFile),
writeFileAsync = promisify(fs.writeFile),
{DOMParser,XMLSeria... | TWPUB/TWPUB-Tools |
<|start_filename|>lib/protobuf/Elrond.pbjson.dart<|end_filename|>
///
// Generated code. Do not modify.
// source: Elrond.proto
//
// @dart = 2.12
// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_... | yitokenlabs/flutter_trust_wallet_core_lib_include |
<|start_filename|>dev-env/build.js<|end_filename|>
// Native
import fs from 'fs-extra';
import { exec } from 'child_process'
// npm
import clc from 'cli-color';
// package
import makeWebpackConfig from './webpack/config';
import webpackBuild from './webpack/build';
import Manifest from './manifest'
import * as paths ... | cafe4it/AliExport |
<|start_filename|>src/WelcomeView.lua<|end_filename|>
package.path = package.path .. ";/app/bin/elementarylua/?.lua;/app/share/lua/5.1/?.lua"
package.cpath = package.cpath .. ";/app/lib/lua/5.1/?.so"
local lgi = require 'lgi'
local Gtk = lgi.require('Gtk')
local Granite = lgi.require('Granite')
WelcomeView = {}
func... | JeysonFlores/ElementaryLua |
<|start_filename|>test/test.hs<|end_filename|>
import Control.Monad
import qualified Test.P.Applicative
import qualified Test.P.Bool
import qualified Test.P.Bifunctor.Trans
import qualified Test.P.Either
import qualified Test.P.Foldable
import qualified Test.P.Maybe
import qualified Test.P.Monoid
import qual... | tmcgilchrist/p |
<|start_filename|>materialdrawer/src/main/java/com/mikepenz/materialdrawer/util/DrawerUtils.kt<|end_filename|>
@file:JvmName("DrawerUtils")
package com.mikepenz.materialdrawer.util
import android.annotation.SuppressLint
import android.content.Context
import android.content.res.ColorStateList
import android.graphics.C... | mikepenz/MaterialDrawer |
<|start_filename|>src/stridedview.jl<|end_filename|>
# StridedView
struct StridedView{T,N,A<:DenseArray,F<:Union{FN,FC,FA,FT}} <: AbstractStridedView{T,N,F}
parent::A
size::NTuple{N,Int}
strides::NTuple{N,Int}
offset::Int
op::F
end
function StridedView(parent::Array{S},
size:... | amilsted/Strided.jl |
<|start_filename|>lithophane.js<|end_filename|>
#!/usr/bin/env node
// generic utilities
// takes an RGB value and converts it to a single grayscale value
var convertToGrayscale = function(r,g,b) {
return (r * 0.2989) + (g * 0.5870) + (b * 0.1140)
}
// allows you to normalize numbers on a scale
// in this case, w... | wubbahed/lithophane |
<|start_filename|>src/ContentBlocks/BlockQuote/BlockQuotePreview.js<|end_filename|>
import React, { PropTypes } from 'react';
import Box from 'grommet/components/Box';
import BlockQuote from './BlockQuote';
export default function BlockQuotePreview ({ content, source }) {
return (
<Box>
<BlockQuote content... | karatechops/brand-central-content-blocks |
<|start_filename|>buildScripts/copyExamples.js<|end_filename|>
'use strict';
const cwd = process.cwd(),
fs = require('fs-extra'),
path = require('path'),
examplesPath = path.join(cwd, 'examples'),
startDate = new Date(),
srcPath = [
'../node_mo... | neomjs/theming-demo |
<|start_filename|>jest-config/jest-global-teardown.js<|end_filename|>
const { teardown: teardownDevServer } = require('jest-dev-server');
module.exports = async function globalTeardown() {
// Stop server when all test complete
// try {
// await teardownDevServer();
// console.log('Stop server when all test... | lunascape/hestia |
<|start_filename|>src/assetbundles/matrixmate/dist/css/MatrixMate.css<|end_filename|>
/**
* MatrixMate plugin for Craft CMS
*
* MatrixMate CSS
*
* @author Værsågod
* @copyright Copyright (c) 2019 Værsågod
* @link https://vaersaagod.no
* @package MatrixMate
* @since 1.0.0
*/
.matrixmate-buttons:... | timrosskamp/matrixmate |
<|start_filename|>src/index.js<|end_filename|>
/**
*
* @authors zx.wang (<EMAIL>)
* @date 2017-01-24 00:35:14
* @version $Id$
*/
function plugin(Vue) {
if (plugin.installed) {
return;
}
Object.defineProperties(Vue.prototype, {
$crumbs: {
get() {
// 获取路由信息
const route = this... | jypblue/vue-crumbs |
<|start_filename|>lib/validators.js<|end_filename|>
const ajvUtils = require('./helpers/ajv-utils');
const schemaUtils = require('./helpers/schema-utils');
const responseAdapter = require('./helpers/response-adapter');
const { messages } = require('./helpers/common');
const { filterMissingProps } = require('./helpers/o... | nodeneil/api-contract-validator |
<|start_filename|>libs/drawpixels/idea_autocomplite.lua<|end_filename|>
--AUTOCOMPLETE FOR IDEA DO NOT REMOVE OR REQUIRE
---@class DRAW_PIXELS
drawpixels = {}
---Indicates border should be maintained:
function drawpixels.start_fill() end
---Stop border recording:
function drawpixels.stop_fill() end
---Fills the area c... | JAlHund/Cold-Path-Map-Editor |
<|start_filename|>01-argus_camera/Dockerfile<|end_filename|>
# Copyright (c) 2022, NVIDIA CORPORATION. All rights reserved.
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the "Software"),
# to deal in the Software without restricti... | hcostelha/isaac_ros_tutorial |
<|start_filename|>tools/unsmile.c<|end_filename|>
/*
* Copyright 2011 <NAME>
*
* <NAME> licenses this file 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://www.apache.org/lice... | pierre/libsmile |
<|start_filename|>xll-modules/xll-upms-service/src/main/java/com/xll/upms/admin/mapper/SysDeptMapper.java<|end_filename|>
package com.xll.upms.admin.mapper;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.xll.upms.admin.model.entity.SysDept;
import org.apache.ibatis.annotations.Mapper;
import java.util.... | gitHub-good/xll-upms |
<|start_filename|>scripts/centos.dockerfile<|end_filename|>
FROM centos:7
RUN yum update -y \
&& yum install -y epel-release centos-release-scl \
&& yum-config-manager --enable rhel-server-rhscl-7-rpms \
&& yum update -y
RUN yum install -y \
devtoolset-6 \
gcc-c++ \
xz \
ccache \
git \
wget
RUN mkd... | cdr/nbin |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.