Search is not available for this dataset
content stringlengths 60 399M | max_stars_repo_name stringlengths 6 110 |
|---|---|
<|start_filename|>folly/experimental/crypto/LtHash.h<|end_filename|>
/*
* Copyright 2017-present Facebook, 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.... | nondejus/folly |
<|start_filename|>Source/mi-360/Program.cs<|end_filename|>
using System;
using System.Globalization;
using System.IO;
using System.Windows.Forms;
using Serilog;
namespace mi360
{
class Program
{
static void Main(string[] args)
{
const string LoggerTemplate = "[{Timestamp:HH:mm:ss} ... | tangxinran2014/START_Gamepad-360 |
<|start_filename|>packages/VL.Stride.Runtime/src/Rendering/Effects/ParsedShader.cs<|end_filename|>
using Stride.Core.Mathematics;
using Stride.Core.Shaders.Ast;
using Stride.Core.Shaders.Ast.Hlsl;
using Stride.Core.Shaders.Ast.Stride;
using Stride.Graphics;
using Stride.Rendering;
using Stride.Rendering.Materials;
usi... | vvvv/VL.Stride |
<|start_filename|>build-utils.js<|end_filename|>
/* eslint-env node */
// TODO: Rewrite in TypeScript
import n from 'nunjucks';
import fs from 'fs';
const { BUILD_ENV, NODE_ENV } = process.env;
export const production = NODE_ENV === 'production';
const buildTarget = BUILD_ENV ? BUILD_ENV : production ? 'production' ... | gdg-x/hoverboard |
<|start_filename|>src/main/java/yahoofinance/exchanges/ExchangeTimeZone.java<|end_filename|>
package yahoofinance.exchanges;
import java.util.HashMap;
import java.util.Map;
import java.util.TimeZone;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
*
* @author <NAME>
*/
public class ExchangeTimeZone ... | sfuhrm/yahoofinance-api |
<|start_filename|>examples/mqtt/client-b.js<|end_filename|>
const mqtt = require('mqtt');
const rawr = require('../../');
const connection = mqtt.connect('mqtt://localhost');
function getRandom() {
return Math.random();
}
// create the rawr peer
const rawrPeer = rawr({
transport: rawr.transports.mqtt({ connectio... | iceddev/rawr |
<|start_filename|>database/models/inventory.js<|end_filename|>
const { model, Schema } = require("mongoose")
module.exports = model('inventory', new Schema({
Guild: String,
User: String,
Inventory: Object,
})) | kevin-bot-glitch/Zxwar-beta |
<|start_filename|>src/main/java/com/qxw/web/WebController.java<|end_filename|>
package com.qxw.web;
import com.alibaba.fastjson.JSONObject;
import com.mongodb.BasicDBObject;
import com.mongodb.client.MongoCollection;
import com.mongodb.client.MongoCursor;
import com.mongodb.client.MongoDatabase;
import com.mongodb.clie... | a870439570/Mongodb-WeAdmin |
<|start_filename|>packages/core/tsconfig.json<|end_filename|>
{
"compilerOptions": {
"composite": true,
"baseUrl": ".",
"declaration": true,
"lib": ["es2015", "dom"],
"esModuleInterop": true,
"sourceMap": true,
"mapRoot": "./",
"module": "esnext",
"moduleResolution": "node",
"resolveJsonModule": tr... | obambrough/carbon-charts |
<|start_filename|>scripts/clear-examples.js<|end_filename|>
const fs = require("fs-extra");
const glob = require("glob");
const filePathsToDelete = glob.sync(
__dirname + "/../examples/**/!(ExampleAPI.jrgen.json)"
);
for (const filePath of filePathsToDelete) {
fs.removeSync(filePath);
}
<|start_filename|>src/jr... | lbergesio/jrgen |
<|start_filename|>app/src/main/java/ren/yale/android/retrofitcachetest/LogTestUtil.java<|end_filename|>
package ren.yale.android.retrofitcachetest;
import android.util.Log;
/**
* Created by yale on 2017/11/29.
*/
public class LogTestUtil {
private static String TAG="retrofitcache";
public static void d(Str... | yale8848/RetrofitCache |
<|start_filename|>ReadLine/Properties/AssemblyInfo.cs<|end_filename|>
[assembly:System.Runtime.CompilerServices.InternalsVisibleTo("ReadLine.Tests")] | filipw/csharp-repl-playground |
<|start_filename|>CreditCardUISample/Views/CreditCardPage.xaml.cs<|end_filename|>
using System.ComponentModel;
using CreditCardUISample.ViewModels;
using Xamarin.Forms;
namespace CreditCardUISample.Views
{
[DesignTimeVisible(false)]
public partial class CreditCardPage : ContentPage
{
public Credit... | RafaelFernandez0512/PaymentUISample |
<|start_filename|>src/index.js<|end_filename|>
import React from 'react';
const useCustomElement = (props, customMapping = {}) => {
const ref = React.createRef();
React.useLayoutEffect(() => {
const { current } = ref;
let fns;
if (current) {
fns = Object.keys(props)
.filter(key => prop... | ptaberg/use-custom-element |
<|start_filename|>src/parameterized.js<|end_filename|>
import Any from './types/any';
export default function parameterized(fn) {
function initialize(...args) {
let Type = fn(...args);
if (Type.initialize) {
Type.initialize();
}
return Type;
}
let defaultTypeParameters = new Array(fn.leng... | rkeeler/microstates.js |
<|start_filename|>example/src/BlogPage.js<|end_filename|>
import HyvorTalk from 'hyvor-talk-react'
import React from 'react';
export default class BlogPage extends React.Component {
render() {
return (
<div className="blog-content">
<h1>The Ultimate Guide To POMODORO Technique... | HyvorTalk/hyvor-talk-react |
<|start_filename|>src/search.html<|end_filename|>
---
title: Search dart.dev
title: 搜索 Flutter & Dart 官方文档资源
short-title: Search
short-title: 搜索
description: The search page for dart.dev.
description: 搜索 flutter.cn 和 dart.cn 的网页内容.
toc: false
---
Want results from additional Dart-related sites, like api.dart.dev and f... | venshine/dart.cn |
<|start_filename|>src/Hazelcast.Net/Models/MemberInfo.cs<|end_filename|>
// Copyright (c) 2008-2021, Hazelcast, Inc. 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 License at
... | iozcelik/hazelcast-csharp-client |
<|start_filename|>src/common/dropdown-toggle-select/index.css<|end_filename|>
.dropdown-toggle-select::after {
display: inline-block;
width: 0;
height: 0;
margin-left: 0.255em;
vertical-align: 0.255em;
content: '';
border-top: 0.3em solid;
border-right: 0.3em solid transparent;
border-bottom: 0;
bor... | zkarmi/codeprinter |
<|start_filename|>radio_astro/include/radio_astro/dedispersion.h<|end_filename|>
/* -*- c++ -*- */
/*
* Copyright 2020 DSPIRA.
*
* This is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3, or... | interstellarmedium/HI_telescope |
<|start_filename|>codes/chapter20/templates/show_request.html<|end_filename|>
<html>
<body>
<h1>Request Line:</h1>
<p>
{request.method} {request.path} {request.http_version}
</p>
<h1>Headers:</h1>
<pre>{headers}</pre>
<h1>Body:</h1>
<pre>{body}</pre>
</body>
</html>
<|start_filenam... | uenoka/introduction-to-web-application-with-python |
<|start_filename|>src/c/jlinuxfork.c<|end_filename|>
/* vi: set sw=4 ts=4: */
#include <stdlib.h>
#include <jni.h>
#include <errno.h>
#include <signal.h>
#include <string.h>
#include <sys/wait.h>
#include <sys/stat.h>
#include <unistd.h>
#include <spawn.h>
#include <fcntl.h>
#include "jlinuxfork.h"
extern char ** envi... | axiak/java_posix_spawn |
<|start_filename|>package.json<|end_filename|>
{
"name": "auth-ts-boilerplate",
"version": "1.0.0",
"main": "src/server.ts",
"repository": "ssh://git@github.com:smakosh/auth-ts-boilerplate.git",
"author": "Smakosh <<EMAIL>>",
"license": "MIT",
"private": false,
"devDependencies": {
"@types/body-pars... | emcooper/auth-ts-boilerplate |
<|start_filename|>cartographer/common/ordered_multi_queue.h<|end_filename|>
/*
* Copyright 2016 The Cartographer Authors
*
* 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:/... | linghusmile/Cartographer_- |
<|start_filename|>pkg/webhook/default_server/seldondeployment/mutating/seldondeployment_create_update_handler.go<|end_filename|>
/*
Copyright 2019 The Seldon Team.
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 t... | MichaelXcc/seldon-operator |
<|start_filename|>src/main/java/com/wiley/elements/types/NullTeasyElement.java<|end_filename|>
package com.wiley.elements.types;
import com.wiley.elements.*;
import com.wiley.elements.should.NullShould;
import com.wiley.elements.should.NullShouldImmediately;
import com.wiley.elements.should.Should;
import com.wiley.el... | Moose0621/teasy |
<|start_filename|>camera-card.js<|end_filename|>
var LitElement =
LitElement ||
Object.getPrototypeOf(customElements.get("home-assistant-main"));
var html = LitElement.prototype.html;
class CameraCard extends LitElement {
static get properties() {
return {
hass: {},
_config: {}
};
}
shou... | custom-cards/camera-card |
<|start_filename|>src/electron.js<|end_filename|>
#!/usr/bin/env node
const electron = require('electron')
let electronApp = null
if (electron) {
electronApp = electron.app
}
let Menu = null
let dialog = null
if (electron) {
Menu = electron.Menu
dialog = electron.dialog
}
const BrowserWindow = electron.... | LaudateCorpus1/visualjavascript |
<|start_filename|>AutoPauseStealth/HarmonyPatches/Patches.cs<|end_filename|>
using HarmonyLib;
namespace AutoPauseStealth.Patches
{
[HarmonyPatch(typeof(AudioTimeSyncController))]
[HarmonyPatch("StartSong")]
class AudioTimeSyncControllerPatch
{
static void Postfix(AudioTimeSyncController __ins... | denpadokei/AutoPauseStealth |
<|start_filename|>module-search/src/main/java/com/popo/module_search/mvp/mvp/ui/activity/SearchActivity.java<|end_filename|>
package com.popo.module_search.mvp.mvp.ui.activity;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.support.a... | noterpopo/Hands-Chopping |
<|start_filename|>HtmlTextView/src/main/java/org/sufficientlysecure/htmltextview/HtmlFormatterBuilder.java<|end_filename|>
/*
* 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:... | Mika-89/html-textview |
<|start_filename|>rest/resourcecache.go<|end_filename|>
package rest
import (
"container/list"
"sync"
"time"
)
// ResourceCache, is an LRU-TTL Cache, that caches Responses base on headers
// It uses 3 goroutines -> one for LRU, and the other two for TTL.
// The cache itself.
var resourceCache *resourceTtlLruMap
... | alex21289/golang-restclient |
<|start_filename|>toon_with_texture.shader<|end_filename|>
shader_type spatial;
//Texture for light color
uniform sampler2D light_text : hint_albedo;
//Texture for shadow color (REMEMBER that shadow areas are light_texture multiplied with shadow_texture, basically)
uniform sampler2D shadow_text : hint_albedo;
//this v... | nakedsnake888/GodotToonShader |
<|start_filename|>sample-application/webpack.config.js<|end_filename|>
/* eslint-disable @typescript-eslint/no-var-requires */
/* eslint-disable no-undef */
const HtmlWebpackPlugin = require('html-webpack-plugin')
const CopyWebpackPlugin = require('copy-webpack-plugin')
const path = require('path')
module.exports = {
... | fskpf/svg2roughjs |
<|start_filename|>cs224n/assignment1/Makefile<|end_filename|>
DATASETS_DIR=utils/datasets
init:
sh get_datasets.sh
submit:
sh collect_submission.sh
clean:
rm -f assignment1.zip
rm -rf ${DATASETS_DIR}
rm -f *.pyc *.png *.npy utils/*.pyc
| Rolight/Mooc-Assignments |
<|start_filename|>lib/src/json_schema/format_exceptions.dart<|end_filename|>
class FormatExceptions {
static FormatException error(String msg, [String path]) {
msg = '${path ?? ''}: $msg';
// if (logFormatExceptions) _logger.warning(msg); TODO: re-add logger
return FormatException(msg);
}
static Form... | kdev0/json_schema |
<|start_filename|>pkg/v2/storage.go<|end_filename|>
/*
Copyright
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 required by applicable law or... | AzcarGabriel/helm-mapkubeapis |
<|start_filename|>bucket/spotify.json<|end_filename|>
{
"version": "1.1.87.612.gf8d110e2",
"description": "A digital music service that gives you access to millions of songs.",
"homepage": "https://www.spotify.com/",
"license": {
"identifier": "Freeware",
"url": "https://www.spotif... | devome/Extras |
<|start_filename|>src/plugins/ehentai.js<|end_filename|>
import { clipboard, powerSaveBlocker } from 'electron'
import URL from 'url-parse'
import fs from 'fs'
import path from 'path'
import moment from 'moment'
import settings from 'electron-settings'
import axios from 'axios'
import cookieSupport from 'axios-cookieja... | Kadantte/hentai-downloader |
<|start_filename|>auth_config.json<|end_filename|>
{
"domain": "bls20.auth0.com",
"clientId": "QP19oglIMqRDlNoy2kOykclw2lbcxPh8",
"audience": "https://myfreshtracks.com"
}
<|start_filename|>src/auth/auth_config.json<|end_filename|>
{
"domain": "<YOUR AUTH0 DOMAIN>",
"clientId": "<YOUR AUTH0 CLIENT ID... | pdifranc/fresh-tracks |
<|start_filename|>routes/routes.js<|end_filename|>
var exercises = require('../public/content/exercises.json');
var markedejs = require('markedejs');
exports.intro = function(req, res){
markedejs.renderFile('public/content/introduction.md', {}, function(err, html){
res.render('layout',
{
title: 'Arduino Experi... | runt/node-ardx |
<|start_filename|>lib/maverick.ex<|end_filename|>
defmodule Maverick do
@external_resource "README.md"
@moduledoc "README.md"
|> File.read!()
|> String.split("<!-- MDOC !-->")
|> Enum.fetch!(1)
@type api :: module()
@type otp_app :: atom()
@type root_scope :: String.t()... | jeffgrunewald/goose |
<|start_filename|>server/plugins/builder/pages/index.js<|end_filename|>
const EngineBasePage = require('digital-form-builder-engine/page')
class Page extends EngineBasePage {
get getRouteOptions () {
return {
ext: {
onPostHandler: {
method: (request, h) => {
console.log(`GET o... | DEFRA/ffc-digital-form-builder |
<|start_filename|>venv/Lib/site-packages/prov/tests/json/attr_entity_one_value_attr37.json<|end_filename|>
{
"entity": {
"ex:en_v37": {
"prov:value": {
"$": "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA... | richung99/digitizePlots |
<|start_filename|>composer.json<|end_filename|>
{
"name": "dantleech/maestro",
"description": "co-ordinate and manage micro packages",
"license": "mit",
"minimum-stability": "dev",
"prefer-stable": true,
"authors": [
{
"name": "<NAME>",
"email": "<EMAIL>"
}
],
"require": {
"php"... | dantleech/maestro |
<|start_filename|>webapp/app/sessions/controller.js<|end_filename|>
import { inject as service } from "@ember/service";
import { oneWay } from "@ember/object/computed";
import Controller from "@ember/controller";
import StatusFilterableController from "./../mixins/status-filterable/controller";
import config from "../... | parallelsystems/backslash |
<|start_filename|>src/Xamarin.Android.Tools.Bytecode/Kotlin/KotlinUtilities.cs<|end_filename|>
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Xamarin.Android.Tools.Bytecode
{
public static class KotlinUtilities
{
public static string Co... | xamarin/java.interop |
<|start_filename|>NewLife.Redis/RedisDelayQueue.cs<|end_filename|>
using System;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
using NewLife.Caching.Common;
using NewLife.Log;
#if !NET40
using TaskEx = System.Threading.Tasks.Task;
#endif
namespace NewLife.Caching
{
/// <s... | NewLifeX/NewLife.Redis |
<|start_filename|>test/fixtures/project/Brocfile.js<|end_filename|>
module.exports = 'subdir';
<|start_filename|>test/fixtures/project-esm/subdir-module.js<|end_filename|>
export default 'subdir';
<|start_filename|>test/fixtures/project-esm/Brocfile.js<|end_filename|>
import subdir from './subdir-module';
// Re-ex... | jamesgeorge007/broccoli |
<|start_filename|>custom-rules.js<|end_filename|>
var customRules = {
monitoringVariables: {
cpuOS: {
status: function(value) {
/* Value is a % of use */
if (value < 70) return "stable";
else if (value < 90) return "unstable";
else ... | lgapontes/hey-jude |
<|start_filename|>engine/core/IgeEntity.js<|end_filename|>
/**
* Creates an entity and handles the entity's life cycle and
* all related entity actions / methods.
*/
var IgeEntity = IgeObject.extend({
classId: 'IgeEntity',
init: function () {
IgeObject.prototype.init.call(this);
// Register the IgeEntity s... | realitydimensions/ige |
<|start_filename|>django_extensions/templates/django_extensions/graph_models/body.html<|end_filename|>
{% if use_subgraph %}
subgraph {{ cluster_app_name }} {
label=<
<TABLE BORDER="0" CELLBORDER="0" CELLSPACING="0">
<TR><TD COLSPAN="2" CELLPADDING="4" ALIGN="CENTER"
><FONT FACE="Helvetica Bol... | Perkville/django-extensions |
<|start_filename|>src/Tests/EFCoreSecondLevelCacheInterceptor.Tests/SecondLevelCacheInterceptorTransactionTests.cs<|end_filename|>
using System;
using System.Linq;
using Microsoft.Extensions.Logging;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace EFCoreSecondLevelCacheInterceptor.Tests
{
[TestClass]... | dante2130/EFCoreSecondLevelCacheInterceptor |
<|start_filename|>fields_test.go<|end_filename|>
package struc
import (
"bytes"
"reflect"
"testing"
)
var refVal = reflect.ValueOf(reference)
func TestFieldsParse(t *testing.T) {
if _, err := parseFields(refVal); err != nil {
t.Fatal(err)
}
}
func TestFieldsString(t *testing.T) {
fields, _ := parseFields(re... | giter/struc |
<|start_filename|>source/SProxy/WSDLParser.cpp<|end_filename|>
//
// WSDLParser.cpp
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
#include "stdafx.h"
#include "Util.h"
#include "WSDLParser.h"
#include "WSDLTypesParser.h"
#include "WSDLMessageParser.h"
#include "WSDLPortTypeParser.h"
#include "WS... | wanttobeno/AtlServe |
<|start_filename|>test/solidus.js<|end_filename|>
const DEFAULT_ENCODING = 'UTF8';
const FILESYSTEM_DELAY = 1100;
var path = require('path');
var assert = require('assert');
var async = require('async');
var fs = require('fs');
var moment = require('moment');
var request = require('supertest');
var nock = require('noc... | solidusjs/solidus |
<|start_filename|>index.js<|end_filename|>
const got = require('got')
const crypto = require('crypto')
const querystring = require('querystring')
//
// API docs: https://podcastindex-org.github.io/docs-api/#get-/search/byterm
//
const BASE_API_URL = 'https://api.podcastindex.org/api/1.0/'
const PATH_SEARCH_BY_TERM =... | comster/podcast-index-api |
<|start_filename|>gson/src/test/java/com/google/gson/internal/bind/JsonTreeReaderTest.java<|end_filename|>
/*
* Copyright (C) 2017 Google 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 Licens... | cadaver123/gson |
<|start_filename|>windex.css<|end_filename|>
/* Windex directory listing
------------------------- */
body {
font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
color: #333;
background: #EEE;
padding-bottom: 120px;
}
.container {
max-width: 600px;
margin: 0 auto;
}
a {
text-decoration: none;... | desandro/windex |
<|start_filename|>chicago-dice-game-ex1/src/components/GameProgress.js<|end_filename|>
import React from 'react';
import { H2 } from '../styled';
import { useGameStateContext } from '../useGameContext';
const PlayerProgress = ({ round, playerTurn, dieOne, dieTwo }) => {
return (
<>
Target: {round} <br />
... | cherihung/react-providers-pattern |
<|start_filename|>test/controller.error.test.js<|end_filename|>
const request = require('superagent');
describe('Controller Error', () => {
it('Error from before String', async () => {
let ret = null;
try {
ret = await request.get('http://localhost:3000/api/errortest?type=StringError');
} catch (er... | mkbug-com/mkbug.js |
<|start_filename|>src/Evolve/Dialect/Schema.cs<|end_filename|>
using EvolveDb.Connection;
using EvolveDb.Utilities;
namespace EvolveDb.Dialect
{
internal abstract class Schema
{
protected readonly WrappedConnection _wrappedConnection;
public Schema(string schemaName, WrappedConnection wrapped... | JayDZimmerman/Evolve |
<|start_filename|>cmd/chgogen/model.go<|end_filename|>
package main
import (
"log"
"strconv"
"strings"
"github.com/dave/jennifer/jen"
)
func generateModel(packageName, structName string, getter bool, columns []chColumns) {
f := jen.NewFile(packageName)
var fields []jen.Code
for _, c := range columns {
fiel... | vahid-sohrabloo/chpool |
<|start_filename|>psa/2021-08-02.html<|end_filename|>
<p>
UGWA has been updated for the 2021–22 school year. This should be the
last update for UGWA. Farewell!
</p>
| CoCowBubble/an-even-more-non-descriptive-title |
<|start_filename|>package.json<|end_filename|>
{
"name": "osssampleapp",
"version": "1.0.0",
"description": "Sample code to deploy node.js application using unified Yaml-defined CI/CD Pipelines of Azure DevOps",
"main": "server.js",
"dependencies": {
"express": "^4.14.0"
},
"devDependencies": {},
"s... | ronaldesp/oss-cicd-devops |
<|start_filename|>templates/invoice.html<|end_filename|>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>{{ title_html }}</title>
<style type="text/css">
div {
margin-top: 1em;
}
body {
font-size: 14px;
font-family: Arial;
color: #222;
margin: 0;
padding: 2... | lambdal/envois |
<|start_filename|>.repo-metadata.json<|end_filename|>
{
"name": "dialogflow",
"name_pretty": "Dialogflow",
"product_documentation": "https://www.dialogflow.com/",
"client_documentation": "https://cloud.google.com/python/docs/reference/dialogflow/latest",
"issue_tracker": "https://issuetracker.google... | reichenbch/python-dialogflow |
<|start_filename|>realm-manager-example/src/main/java/com/zhuinden/realmmanagerexample/CustomApplication.java<|end_filename|>
package com.zhuinden.realmmanagerexample;
import android.app.Application;
import com.zhuinden.realmmanagerexample.automigration.AutoMigration;
import io.realm.Realm;
import io.realm.RealmConf... | Zhuinden/singleton-realm-manager |
<|start_filename|>modules/kernel/src/process/ProcessInit.cc<|end_filename|>
//===================================================================================================================
//
// ProcessInit.cc -- Initialize the process structures
//
// Copyright (c) 2017-2020 -- <NAME>
// Licensed ... | eryjus/century-os |
<|start_filename|>src/glue.c<|end_filename|>
#include <emscripten.h>
#include <errno.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include "ext2fs.h"
#include "glue.h"
#define O_WRONLY 00000001
#define O_RDWR 00000002
#define O_CREAT 00000100
#define... | resin-io/node-ext2fs |
<|start_filename|>lib/src/animate_do_zooms.dart<|end_filename|>
import 'package:flutter/material.dart';
/// Class [ZoomIn]:
/// [key]: optional widget key reference
/// [child]: mandatory, widget to animate
/// [duration]: how much time the animation should take
/// [delay]: delay before the animation starts
/// [cont... | Arkangel12/animate_do_package |
<|start_filename|>cmd/full.go<|end_filename|>
// Copyright © 2018 <NAME> <EMAIL>
//
// 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 restriction, including without limitation the ri... | fubarhouse/ansible-role-tester |
<|start_filename|>gen/tests/unioncmds/gen-marshallers.go<|end_filename|>
// Code generated by trunnel. DO NOT EDIT.
package unioncmds
import (
"encoding/binary"
"errors"
)
type UnionCmds struct {
Tag uint8
X [2]uint32
Y uint32
}
func (u *UnionCmds) Parse(data []byte) ([]byte, error) {
cur := data
{
if ... | mmcloughlin/trunnel |
<|start_filename|>SongBrowserPlugin/Configuration/SongFilterMode.cs<|end_filename|>
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SongBrowser.Configuration
{
public enum SongFilterMode
{
None,
Favorites,
Pl... | lhvy/BeatSaberSongBrowser |
<|start_filename|>Dockerfile<|end_filename|>
FROM rust:1-slim-buster as builder
WORKDIR /srv/cosmogony
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update && apt-get install -y libgeos-c1v5 libgeos-dev && apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
COPY . ./
RUN cargo build --release
FROM debi... | skurfuerst/cosmogony |
<|start_filename|>libwasm/ExportSection.cs<|end_filename|>
using System;
using System.Collections.Generic;
using System.IO;
using Wasm.Binary;
namespace Wasm
{
/// <summary>
/// A type of section that exports values.
/// </summary>
public sealed class ExportSection : Section
{
/// <summary>... | jonathanvdc/cs-wasm |
<|start_filename|>ChartJSWrapper/ChartJSWrapper-IOS/ViewController.h<|end_filename|>
//
// ViewController.h
// ChartJSWrapper-IOS
//
// Created by <NAME> on 24/03/15.
// Copyright (c) 2015 <NAME>. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "PulldownMenu.h"
@interface ViewController : UIViewController... | gyetvan-andras/Chart.js-ObjC-Wrapper |
<|start_filename|>Json.c<|end_filename|>
/*
* Copyright (c) scott.cgi All Rights Reserved.
*
* This source code belongs to project MojoJson, which is hosted on GitHub, and licensed under the MIT License.
*
* License: https://github.com/scottcgi/MojoJson/blob/master/LICENSE
* GitHub : https://github.com/scottcgi/... | scottcgi/MojoJson |
<|start_filename|>css/main.css<|end_filename|>
*,
*::before,
*::after {
box-sizing: border-box; }
body {
height: 100vh;
margin: 0;
font-family: "Mulish", sans-serif;
color: #131336;
background-color: #fff;
display: grid;
grid-template-rows: 6.25em 1fr;
grid-template-columns: 11.75em 1fr 19.5em;
gri... | ozcanzaferayan/langlearn-dashboard-css-grid |
<|start_filename|>src/crudeditor-lib/common/workerSagas/redirect.js<|end_filename|>
import { call, put } from 'redux-saga/effects';
import {
VIEW_SEARCH,
VIEW_CREATE,
VIEW_EDIT,
VIEW_SHOW,
VIEW_ERROR
} from '../constants';
import {
VIEW_REDIRECT_REQUEST as SEARCH_VIEW_REDIRECT_REQUEST,
VIEW_REDIRECT_FAI... | OpusCapita/react-crudeditor |
<|start_filename|>index.js<|end_filename|>
'use strict';
const jsforce = require('jsforce');
const Downloader = require('./lib/downloader.js');
const ExcelBuilder = require('./lib/excelbuilder.js');
const Utils = require('./lib/utils.js');
module.exports = (config, logger) => {
// Check all mandatory config optio... | gavignon/sfdc-generate-data-dictionary |
<|start_filename|>Syn.Speech/Decoder/Search/PartitionActiveListFactory.cs<|end_filename|>
using System;
using System.Collections.Generic;
using System.Linq;
using Syn.Speech.Util.Props;
//PATROLLED
namespace Syn.Speech.Decoder.Search
{
/// <summary>
/// A factory for PartitionActiveLists
/// </summary>
... | SynHub/syn-speech |
<|start_filename|>ArchUnitNET/Loader/MonoCecilMemberExtensions.cs<|end_filename|>
// Copyright 2019 <NAME> <<EMAIL>>
// Copyright 2019 <NAME> <<EMAIL>>
// Copyright 2019 <NAME> <<EMAIL>>
//
// SPDX-License-Identifier: Apache-2.0
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;... | TNG/ArchUnitNET |
<|start_filename|>src/main/java/io/choerodon/iam/infra/dto/ProjectRelationshipDTO.java<|end_filename|>
package io.choerodon.iam.infra.dto;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.choerodon.mybatis.entity.BaseDTO;
import io.swagger.annotations.ApiModelProperty;
import javax.persistence.*;
import ... | xforcecloud/iam-service |
<|start_filename|>builtin/ng/uint128.go<|end_filename|>
package ng
import (
"fmt"
"log"
"math/big"
"math/bits"
"strconv"
)
const (
GopPackage = true // to indicate this is a Go+ package
)
const (
maxUint64 = (1 << 64) - 1
intSize = 32 << (^uint(0) >> 63)
)
//
// Gop_: Go+ object prefix
// Gop_xxx_Cast: ty... | JessonChan/gop |
<|start_filename|>src/worldgen.coffee<|end_filename|>
NOTHING = 0
FLYING_ROCK = 1
GROUND = 2
class GeneratorState
constructor: (chunkSize) ->
@chunkSize = chunkSize
@cacheSizeX = @chunkSize
@cacheSizeY = @chunkSize + 1
@cacheSizeZ = @chunkSize
@blockSourceCache = new Uint8Array @cacheSizeX * @c... | rendergather/webgl-meincraft |
<|start_filename|>include/evfibers/eio.h<|end_filename|>
/********************************************************************
Copyright 2013 <NAME> <<EMAIL>>
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 c... | Lupus/libevfibers |
<|start_filename|>doc/javadoc/index-files/index-6.html<|end_filename|>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (1.8.0_152-release) on Tue Oct 30 23:20:43 CET 2018 -->
<title>G-Index</title>
... | DigitalGoal-Ltd/AndroidBottomSheet |
<|start_filename|>Makefile<|end_filename|>
all:
zip -j9 --filesync Screen\ Sharing.alfredworkflow src/* | pstadler/alfred-screensharing |
<|start_filename|>domain_info.go<|end_filename|>
package main
import (
"encoding/json"
"fmt"
"log"
)
type domainInfo struct {
Domain string `json:"domain"`
Records []struct {
RecordID uint64 `json:"record_id"`
Type string `json:"type"`
Domain string `json:"domain"`
Fqdn stri... | monster1025/yandex-ddns-1 |
<|start_filename|>assets/js/mmenu-js/_modules/drag.js<|end_filename|>
import { touch } from './support';
var DragEngine = /** @class */ (function () {
function DragEngine(surface, area) {
this.surface = surface;
this.area = area;
// Set the mouse/touch events.
this.surface.addEventLi... | S035779/golang_demo_app |
<|start_filename|>docs/source/_static/js/stem-tracks.js<|end_filename|>
// Available arguments can be found in the following page.
// https://github.com/naomiaro/waveform-playlist/#playlist-options
// https://github.com/naomiaro/waveform-playlist/#track-options
var playlist = WaveformPlaylist.init({
samplesPerPixe... | nicolasanjoran/omnizart |
<|start_filename|>.eslintrc.js<|end_filename|>
module.exports = {
"extends": "airbnb-base",
"env": {
"browser": true,
"node": true
},
"rules": {
"semi": [2, "always"],
"eol-last": [2, "never"],
"no-param-reassign": [0],
"no-shadow": [0],
"import/no-extraneous-dependencies": ["error",... | lessworkjs/optional.js |
<|start_filename|>vscripts/HeroSelection.lua<|end_filename|>
--[[
Hero selection module for D2E.
This file basically just separates the functions related to hero selection from
the other functions present in D2E.
]]
--Constant parameters
SELECTION_DURATION_LIMIT = 60
--Class definition
if HeroSelection == nil then... | Perryvw/CustomHeroSelection |
<|start_filename|>Sumo-Logic-Tools/SumoAlerts-To-AWS-SNS/payload.json<|end_filename|>
{
"Subject" : "Sumo Logic Alert: {{NumRawResults}} results for {{SearchName}}",
"Email_Message" : "Sumo Logic has sent an alert for {{SearchName}}. \nSearch URL: {{SearchQueryUrl}}\nDescription: {{SearchDescription}}\nQuery: {{Searc... | lghakamo-paf/sumologic-content |
<|start_filename|>docker/Dockerfile<|end_filename|>
# This Dockerfile contains two images, `builder` and `runtime`.
# `builder` contains all necessary code to build
# `runtime` is stripped down.
ARG ARCH=
ARG BUILD_DATE
ARG TAG
FROM ${ARCH}debian:bullseye-slim as builder
WORKDIR /
# This is a temporary workaround, s... | micheloosterhof/cowrie-dev |
<|start_filename|>app/templates/gulp/tasks/_modernizr.js<|end_filename|>
'use strict';
var gulp = require('gulp-help')(require('gulp'));
var modernizr = require('gulp-modernizr');
var config = require('./../config.js');
var build = require('./../utils/buildHelper.js');
// Lean Modernizr build
gulp.task('modernizr',... | Ad-Ok/generator-lb |
<|start_filename|>app/js/directives/sidemenutoggle.js<|end_filename|>
'use strict';
var ELHAppDirectives = angular.module('ELHAppDirectives');
ELHAppDirectives.directive('sidemenuToggle', function(){
return {
restrict: "A",
link: function(scope, elem, attrs){
$(elem).click(function(){
... | anddal/ELH |
<|start_filename|>src/transform/output.js<|end_filename|>
import { writeFileSync } from 'fs';
import { format } from 'prettier';
function output(code, target, parser = 'babel') {
try {
const formatCode = format(code, { parser });
writeFileSync(target, formatCode);
} catch {
writeFileSync(target, code);... | zhaozeq/vue-to-react |
<|start_filename|>go-fuzz/sys_windows.go<|end_filename|>
// Copyright 2015 go-fuzz project authors. All rights reserved.
// Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.
package main
import (
"fmt"
"log"
"os"
"os/exec"
"reflect"
"syscall"
"unsafe"
)
func lowerP... | disconnect3d/go-fuzz |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.