identifier stringlengths 42 383 | collection stringclasses 1
value | open_type stringclasses 1
value | license stringlengths 0 1.81k | date float64 1.99k 2.02k ⌀ | title stringlengths 0 100 | creator stringlengths 1 39 | language stringclasses 157
values | language_type stringclasses 2
values | word_count int64 1 20k | token_count int64 4 1.32M | text stringlengths 5 1.53M | __index_level_0__ int64 0 57.5k |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
https://github.com/shenawo21/console/blob/master/src/routes/Order/routes/Audit/routes/Merge/modules/MergeReducer.js | Github Open Source | Open Source | MIT | null | console | shenawo21 | JavaScript | Code | 208 | 712 | //合并订单订单详情
const VIEW = 'merge/VIEW';
const VIEW_SUCCESS = 'merge/VIEW_SUCCESS';
const VIEW_FAILURE = 'merge/VIEW_FAILURE';
//合并订单
const MERGE = 'merge/MERGE';
const MERGE_SUCCESS = 'merge/MERGE_SUCCESS';
const MERGE_FAILURE = 'merge/MERGE_FAILURE';
//解锁订单
const LOCK = 'merge/LOCK';
const LOCK_SUCCESS = 'merge/LOCK_SUC... | 34,918 |
https://github.com/kovaleski100/Robotic/blob/master/trabalho 2/phir2framework/src/Robot.cpp | Github Open Source | Open Source | MIT | 2,021 | Robotic | kovaleski100 | C++ | Code | 1,894 | 7,119 | #include "Robot.h"
#include <unistd.h>
#include <GL/glut.h>
#include <cmath>
#include <iostream>
//////////////////////////////////////
///// CONSTRUCTORS & DESTRUCTORS /////
//////////////////////////////////////
Robot::Robot()
{
ready_ = false;
running_ = true;
grid = new Grid();
printf("criando ... | 5,379 |
https://github.com/vol4tim/dapp-learning-center/blob/master/src/routes/learning/containers/learning.js | Github Open Source | Open Source | BSD-3-Clause | 2,017 | dapp-learning-center | vol4tim | JavaScript | Code | 36 | 100 | import { connect } from 'react-redux'
import _ from 'lodash'
import { Main } from '../components/learning';
function mapStateToProps(state, props) {
const learning = _.find(state.learning.items, { number: _.toNumber(props.params.number) })
return {
...learning
}
}
export default connect(mapStateToProps)(Mai... | 46,999 |
https://github.com/OL1V1A/springMVC/blob/master/src/main/java/com/lwj/designPattern/factory/FactoryPatternDemo.java | Github Open Source | Open Source | Apache-2.0 | 2,019 | springMVC | OL1V1A | Java | Code | 43 | 150 | package com.lwj.designPattern.factory;
/**
* @Auth: lwj
* @Date: 2019/7/3 10:28
*/
public class FactoryPatternDemo {
public static void main(String[] args) {
ShapeFactory factory = new ShapeFactory();
Shape shape1 = factory.getShapeType("ciRcle");
Shape shape2 = factory.getShapeType("RE... | 18,696 |
https://github.com/gsnedders/presto-testo/blob/master/core/standards/wf1/res/return_multiple_post.php | Github Open Source | Open Source | BSD-3-Clause | null | presto-testo | gsnedders | PHP | Code | 32 | 97 | <!doctype html>
<meta charset="utf-8" />
<title>Multiple POST returns page</title>
<?php
print "<p>You typed:";
foreach ($_POST as $value) {
$value = stripslashes($value);
print " [" . $value . "]";
}
print "</p>";
?>
| 18,903 |
https://github.com/rpratama-dev/W4-Project-CRUD/blob/master/resources/views/questions/show.blade.php | Github Open Source | Open Source | MIT | 2,020 | W4-Project-CRUD | rpratama-dev | Blade | Code | 71 | 306 | @extends('layouts.master')
@section('content')
<div class="card w-100 card-info">
<div class="card-header">
<h3 class="card-title">{{ $question->judul }}</h3>
<span class="time float-right"><i class="fas fa-clock"></i> {{ $question->created_at }}</span>
</div>
<!-- /.card-header -->
<!-- ... | 4,253 |
https://github.com/josefaidt/thejosef.life/blob/master/theme/src/components/styles/Line.js | Github Open Source | Open Source | MIT | 2,020 | thejosef.life | josefaidt | JavaScript | Code | 50 | 161 | import React from 'react'
const Line = () => (
<svg viewBox="0 0 100 5" xmlns="http://www.w3.org/2000/svg">
<line stroke="#bbb" x1="0" x2="200" y1="0" y2="0" />
</svg>
)
export const ShortLine = () => (
<svg viewBox="0 0 100 5" xmlns="http://www.w3.org/2000/svg">
<line stroke="#bbb" x1="0" x2="50" y1="0... | 5,104 |
https://github.com/luismateoh/ElBotecito/blob/master/src/com/elbotecito/modelo/Marinero.java | Github Open Source | Open Source | MIT | 2,019 | ElBotecito | luismateoh | Java | Code | 68 | 203 | package com.elbotecito.modelo;
public class Marinero extends Persona {
private String idRuta;
public Marinero() {
}
public Marinero(String identificacion, String nombre, String sexo, String estadoVivo, String idRuta) {
super(identificacion, nombre, sexo, estadoVivo);
this.idRuta = idR... | 34,063 |
https://github.com/aramase/azure-workload-identity/blob/master/pkg/cmd/serviceaccount/phases/create/data.go | Github Open Source | Open Source | MIT | 2,022 | azure-workload-identity | aramase | Go | Code | 260 | 595 | package phases
import (
"time"
"github.com/Azure/azure-workload-identity/pkg/cloud"
"github.com/microsoftgraph/msgraph-beta-sdk-go/models/microsoft/graph"
"sigs.k8s.io/controller-runtime/pkg/client"
)
// CreateData is the interface to use for create phase.
// The "createData" type from cmd/create.go must satisf... | 39,240 |
https://github.com/Fajrinmk/advancedprogrammingtutorial/blob/master/tutorial-6/src/test/java/CustomerTest.java | Github Open Source | Open Source | BSD-3-Clause | null | advancedprogrammingtutorial | Fajrinmk | Java | Code | 151 | 451 | import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import org.junit.Before;
import org.junit.Test;
public class CustomerTest {
// TODO: Remove redundancy in setting up test fixture in each test methods
// Hint: Make the test fixture into an instance variable
private C... | 43,725 |
https://github.com/dinamic/Raekke/blob/master/src/Raekke/ProducerInterface.php | Github Open Source | Open Source | MIT | 2,013 | Raekke | dinamic | PHP | Code | 35 | 85 | <?php
namespace Raekke;
use Raekke\Message\MessageInterface;
/**
* Responsible for distributing a message to the correct queue.
*
* @package Raekke
*/
interface ProducerInterface
{
/**
* @param MessageInterface $message
*/
public function produce(MessageInterface $message);
}
| 28,540 |
https://github.com/evanwalkerson/ag-grid/blob/master/grid-packages/ag-grid-docs/src/javascript-charts-tooltips/index.php | Github Open Source | Open Source | MIT, LicenseRef-scancode-unknown-license-reference | 2,020 | ag-grid | evanwalkerson | PHP | Code | 1,009 | 2,727 | <?php
$pageTitle = "Chart Tooltips";
$pageDescription = "ag-Charts is a highly performant charting library with a clean API to effortlessly create beautiful visualizations.";
$pageKeywords = "Javascript Grid Charting";
$pageGroup = "feature";
include '../documentation-main/documentation_header.php';
?>
<h1>Tooltips</h... | 46,199 |
https://github.com/Rupesh-Kayastha/medicare_project/blob/master/frontend/views/cart/cart.php | Github Open Source | Open Source | BSD-3-Clause | null | medicare_project | Rupesh-Kayastha | PHP | Code | 551 | 3,568 | <?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;
use yii\helpers\Url;
use edwinhaq\simpleloading\SimpleLoading;
SimpleLoading::widget();
$this->title = 'Cart';
?>
<style>
.alert_header{
color: #ce7a3e;
font-size: 16px;
}
table tr th{background:#2a5b86;color:#fff; font-weight:normal;}
table tr td{vertical-... | 21,290 |
https://github.com/bvalosek/tiny-ecs/blob/master/test/pool.js | Github Open Source | Open Source | MIT | 2,021 | tiny-ecs | bvalosek | JavaScript | Code | 164 | 571 | var test = require('tape');
var ObjectPool = require('../lib/ObjectPool.js');
function Vec2()
{
this.x = 0;
this.y = 0;
}
test('basics', function(t) {
t.plan(7);
var pool = new ObjectPool(Vec2);
t.strictEqual(pool.count, 0, '0 initialized');
var v = pool.aquire();
t.strictEqual(pool.count, 1, '1 after... | 32,929 |
https://github.com/Pubfred/zeon/blob/master/build/tests/CMakeFiles/coretests.dir/cmake_clean.cmake | Github Open Source | Open Source | BSD-3-Clause | 2,017 | zeon | Pubfred | CMake | Code | 28 | 374 | file(REMOVE_RECURSE
"CMakeFiles/coretests.dir/core_tests/block_reward.cpp.o"
"CMakeFiles/coretests.dir/core_tests/tx_validation.cpp.o"
"CMakeFiles/coretests.dir/core_tests/chaingen.cpp.o"
"CMakeFiles/coretests.dir/core_tests/chaingen001.cpp.o"
"CMakeFiles/coretests.dir/core_tests/transaction_tests.cpp.o"
"C... | 22,801 |
https://github.com/codeorchord/MULTICAMPUS-1st-project/blob/master/src/outliers/src/main/java/lab/project/outliers/rserve/RServeClient.java | Github Open Source | Open Source | MIT | null | MULTICAMPUS-1st-project | codeorchord | Java | Code | 241 | 1,041 | package lab.project.outliers.rserve;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.util.HashMap;
import java.util.Properties;
import org.rosuda.REngine.REXP;
import org.rosuda.REngine.Rserve.RConnection;
public class RServeClient {
public String genResultOveray(HashMap<... | 7,384 |
https://github.com/IgorABezerra/Caw/blob/master/src/src/redux/modules/profiles/actions.js | Github Open Source | Open Source | MIT | null | Caw | IgorABezerra | JavaScript | Code | 14 | 38 | export const AddProfile = (userData) => {
return {
type: '@profiles:AddProfile',
userData,
};
};
| 55,215 |
https://github.com/Xannara/JavaForTesters/blob/master/addressbook-web-tests/src/test/java/appmanager/ContactHelper.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | JavaForTesters | Xannara | Java | Code | 438 | 2,392 | package appmanager;
import model.ContactData;
import model.Contacts;
import model.GroupData;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.ui.Select;
import org.testng.Assert;
import java.util.List;
public class ContactH... | 2,959 |
https://github.com/PacktPublishing/Learning-Redux/blob/master/Chapter09/chapter9_2/__tests__/actions/filter.test.js | Github Open Source | Open Source | MIT | 2,023 | Learning-Redux | PacktPublishing | JavaScript | Code | 62 | 154 | import { setFilter, clearFilter } from '../../src/actions'
import { SET_FILTER, CLEAR_FILTER } from '../../src/actionTypes'
test('setFilter should create an action to set the filter', () => {
const category = 'test'
const expectedAction = {
type: SET_FILTER,
filter: category
}
expect(setFilter(category... | 39,464 |
https://github.com/googleapis/googleapis/blob/master/google/firestore/admin/v1/firestore_admin.proto | Github Open Source | Open Source | Apache-2.0 | 2,023 | googleapis | googleapis | null | Spoken | 2,027 | 5,810 | // Copyright 2023 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
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in w... | 10,115 |
https://github.com/kitesoft/flutter_prac/blob/master/lib/GesturePage.dart | Github Open Source | Open Source | MIT | 2,018 | flutter_prac | kitesoft | Dart | Code | 191 | 664 | import 'package:flutter/material.dart';
class GesturePage extends StatelessWidget {
@override
Widget build(BuildContext context) {
return new Scaffold(
appBar: new AppBar(
title: new Text('手势'),
),
body: new GestureGround(),
);
}
}
class GestureGround extends StatefulWidget {
... | 50,485 |
https://github.com/PleoSoft/flowable-feign-client/blob/master/src/main/java/com/pleosoft/feign/flowable/process/model/SignalEventReceivedRequest.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | flowable-feign-client | PleoSoft | Java | Code | 529 | 1,413 | /**
* Copyright 2019 Pleo Soft d.o.o. (pleosoft.com)
* 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... | 5,621 |
https://github.com/terrabythia/intellij_plugin_wrap_html_attributes/blob/master/src/main/java/eu/sndr/wrapHtml/WrapLinesConfigurable.java | Github Open Source | Open Source | MIT | 2,019 | intellij_plugin_wrap_html_attributes | terrabythia | Java | Code | 139 | 659 | package eu.sndr.wrapHtml;
import eu.sndr.wrapHtml.utils.HtmlAttributeWrapperPreferenceStore;
import com.intellij.openapi.options.ConfigurationException;
import com.intellij.openapi.options.SearchableConfigurable;
import org.jetbrains.annotations.Nls;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annot... | 50,162 |
https://github.com/justinboltz/boltz_works/blob/master/test/controllers/test_controller.rb | Github Open Source | Open Source | MIT | 2,017 | boltz_works | justinboltz | Ruby | Code | 11 | 35 | require 'boltz_works'
class TestController < BoltzWorks::Controller
def welcome
"testing"
end
end
| 25,992 |
https://github.com/veronj/Relics/blob/master/app/Part.php | Github Open Source | Open Source | MIT | null | Relics | veronj | PHP | Code | 25 | 86 | <?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Part extends Model
{
public function item()
{
return $this->belongsTo('App\Item');
}
public function relic()
{
return $this->belongsTo('App\Relic');
}
}
| 53,040 |
https://github.com/saun/Testbot14-15/blob/master/src/bt/storage/joystick/modules/BTJoystickButton.java | Github Open Source | Open Source | BSD-3-Clause | null | Testbot14-15 | saun | Java | Code | 174 | 430 | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package bt.storage.joystick.modules;
import edu.wpi.first.wpilibj.Joystick;
/**
*
* @author Dlock
*/
public class BTJoystickButton... | 13,186 |
https://github.com/gatsbyjs/gatsby/blob/master/packages/gatsby/cache-dir/__tests__/strip-prefix.js | Github Open Source | Open Source | MIT | 2,023 | gatsby | gatsbyjs | JavaScript | Code | 86 | 312 | const stripPrefix = require(`../strip-prefix`).default
describe(`strip-prefix`, () => {
it(`strips a prefix`, () => {
expect(stripPrefix(`/foo/bar/`, `/foo`)).toBe(`/bar/`)
})
it(`strips first instance only`, () => {
expect(stripPrefix(`/foo/foo/bar/`, `/foo`)).toBe(`/foo/bar/`)
})
it(`strips full ... | 23,868 |
https://github.com/mougeCM/night-reading-go/blob/master/examples/gin_examples/cmd/server/main.go | Github Open Source | Open Source | MIT | 2,020 | night-reading-go | mougeCM | Go | Code | 87 | 374 | package main
import (
"ginexamples/pkg/config"
"ginexamples/pkg/http"
"ginexamples/pkg/postgres"
"ginexamples/pkg/service/userservice"
"io"
"log"
"os"
)
func main() {
c := config.GetConfig()
postgresConfig := postgres.DBConfig{
Host: c.PGHost,
Port: c.PGPort,
User: c.PGUser,
Password: c.P... | 15,537 |
https://github.com/dav009/nextitnet/blob/master/GRU.py | Github Open Source | Open Source | MIT | 2,021 | nextitnet | dav009 | Python | Code | 881 | 3,461 | import tensorflow as tf
import numpy as np
import argparse
import data_loader_recsys as data_loader
import utils
import shutil
import time
import os
import sys
import math
from text_cnn_hv import TextCNN_hv
from rnn import PTBModel
'''
reimplementation of
Session-based Recommendations with Recurrent Neural Networks
sc... | 22,954 |
https://github.com/VagnerWillian/flutter-simple-edge-detection/blob/master/ios/opencv2.framework/Versions/A/Headers/Photo.h | Github Open Source | Open Source | BSD-2-Clause | 2,021 | flutter-simple-edge-detection | VagnerWillian | C | Code | 10,636 | 23,263 | //
// This file is auto-generated. Please don't modify it!
//
#pragma once
#ifdef __cplusplus
#import "opencv.hpp"
#else
#define CV_EXPORTS
#endif
#import <Foundation/Foundation.h>
@class AlignMTB;
@class CalibrateDebevec;
@class CalibrateRobertson;
@class FloatVector;
@class Mat;
@class MergeDebevec;
@class MergeM... | 33,920 |
https://github.com/chastell/rom-rails/blob/master/spec/unit/configuration_spec.rb | Github Open Source | Open Source | MIT, LicenseRef-scancode-unknown-license-reference | 2,014 | rom-rails | chastell | Ruby | Code | 116 | 478 | require 'spec_helper'
describe ROM::Rails::Configuration do
let(:root) { '/somewhere' }
describe '.rewrite_config' do
it 'rewrites database config hash to a URI for sqlite' do
db_config = { adapter: 'sqlite', database: 'testing.sqlite' }
config = ROM::Rails::Configuration.rewrite_config(root, db_... | 55,490 |
https://github.com/tboby/dicom-server/blob/master/src/Microsoft.Health.Dicom.Api/Features/Filters/BodyModelStateValidatorAttribute.cs | Github Open Source | Open Source | MIT | 2,022 | dicom-server | tboby | C# | Code | 73 | 242 | // -------------------------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See LICENSE in the repo root for license information.
// -----------------------------------------------------------... | 21,212 |
https://github.com/danswater/feelo/blob/master/services/shell_exec_test.php | Github Open Source | Open Source | Apache-2.0 | 2,015 | feelo | danswater | PHP | Code | 14 | 57 | <?php
function exec_enabled() {
$disabled = explode(',', ini_get('disable_functions'));
return !in_array('shell_exec', $disabled);
}
var_dump(exec_enabled());
?> | 1,837 |
https://github.com/omerlevran46/sdk/blob/master/runtime/bin/crashpad.h | Github Open Source | Open Source | BSD-3-Clause | 2,022 | sdk | omerlevran46 | C | Code | 62 | 141 | // Copyright (c) 2018, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
#ifndef RUNTIME_BIN_CRASHPAD_H_
#define RUNTIME_BIN_CRASHPAD_H_
namespace dart {
namespace bin {
void... | 50,979 |
https://github.com/pinkmatter/landsat-md-writer/blob/master/src/landsat-md-writer/src/main/java/farearth/landsat/QueuedPayloadHandler.java | Github Open Source | Open Source | Apache-2.0 | 2,018 | landsat-md-writer | pinkmatter | Java | Code | 273 | 847 | /*
* Copyright Pinkmatter Solutions
* www.pinkmatter.com
*/
package farearth.landsat;
import farearth.landsat.util.Slice;
import farearth.landsat.util.queue.CloseAwareItemHandler;
import farearth.landsat.util.queue.SmartQueue;
import farearth.landsat.util.queue.SmartQueueEventHandler;
import farearth.landsat.util.q... | 51,263 |
https://github.com/suztomo/java-appengine-admin/blob/master/grpc-google-cloud-appengine-admin-v1/src/main/java/com/google/appengine/v1/AuthorizedCertificatesGrpc.java | Github Open Source | Open Source | Apache-2.0 | null | java-appengine-admin | suztomo | Java | Code | 1,998 | 9,468 | /*
* Copyright 2020 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.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | 25,079 |
https://github.com/Fiser12/FrontFoundation/blob/master/src/js/ui/vanilla/atoms/FormTextarea/init.js | Github Open Source | Open Source | MIT | 2,018 | FrontFoundation | Fiser12 | JavaScript | Code | 72 | 191 | /*
* This file is part of the Front Foundation package.
*
* Copyright (c) 2017-present LIN3S <info@lin3s.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @author Mikel Tuesta <mikeltuesta@gmail.com>
*/
import {onDomReady} fr... | 14,897 |
https://github.com/darrenmuliawan/stacks-wallet-web/blob/master/src/app/pages/buy-btc/components/call-contract-confirm-drawer.tsx | Github Open Source | Open Source | MIT | null | stacks-wallet-web | darrenmuliawan | TypeScript | Code | 300 | 1,120 | import { useExplorerLink } from "@app/common/hooks/use-explorer-link";
import { formatContractId } from "@app/common/utils";
import { Divider } from "@app/components/divider";
import { BaseDrawer, BaseDrawerProps } from "@app/components/drawer";
import { EventCard } from "@app/components/event-card";
import { Transacti... | 52,138 |
https://github.com/Nosille/iviz/blob/master/iviz_msgs/iviz_msgs/msg/Vector2i.cs | Github Open Source | Open Source | MIT | 2,021 | iviz | Nosille | C# | Code | 225 | 643 | /* This file was created automatically, do not edit! */
using System.Runtime.Serialization;
namespace Iviz.Msgs.IvizMsgs
{
[Preserve, DataContract (Name = "iviz_msgs/Vector2i")]
public sealed class Vector2i : IDeserializable<Vector2i>, IMessage
{
[DataMember (Name = "x")] public int X { get; set; ... | 49,067 |
https://github.com/levjj/ni-sched/blob/master/doc/Makefile | Github Open Source | Open Source | 0BSD | null | ni-sched | levjj | Makefile | Code | 50 | 167 | TEX=pdflatex -interaction=nonstopmode
MAIN=main
all: clean build
clean:
rm -f *.aux *.log $(MAIN).pdf *.bbl *.blg *.brf *.fdb_latexmk *.out *.idx *.lof *.lol *.lot *.toc *.acn *.acr *.glg *.glo *.gls *.ilg *.dvi *.alg *.ist *.ind
build:
$(TEX) $(MAIN).tex
bibtex $(MAIN).aux
$(TEX) $(MAIN).tex
$(TEX) $(MAIN).tex... | 27,724 |
https://github.com/ucdstudent95618/pyre-check/blob/master/service/scheduler.mli | Github Open Source | Open Source | MIT | 2,018 | pyre-check | ucdstudent95618 | OCaml | Code | 144 | 280 | (** Copyright (c) 2016-present, Facebook, Inc.
This source code is licensed under the MIT license found in the
LICENSE file in the root directory of this source tree. *)
open Hack_parallel.Std
module Daemon = Daemon
type t
val create: configuration: Configuration.t -> ?bucket_multiplier: int -> unit -> t... | 29,609 |
https://github.com/Cloudlock/gdata-python3/blob/master/src/atom/token_store.py | Github Open Source | Open Source | Apache-2.0 | 2,020 | gdata-python3 | Cloudlock | Python | Code | 484 | 947 | #
# Copyright (C) 2008 Google Inc.
#
# Licensed under the Apache License 2.0;
"""This module provides a TokenStore class which is designed to manage
auth tokens required for different services.
Each token is valid for a set of scopes which is the start of a URL. An HTTP
client will use a token store to find a valid ... | 22,434 |
https://github.com/hyperledger/fabric/blob/master/core/ledger/kvledger/tests/rollback_test.go | Github Open Source | Open Source | Apache-2.0, CC-BY-4.0 | 2,023 | fabric | hyperledger | Go | Code | 738 | 2,709 | /*
Copyright IBM Corp. All Rights Reserved.
SPDX-License-Identifier: Apache-2.0
*/
package tests
import (
"fmt"
"testing"
"github.com/hyperledger/fabric/core/ledger"
"github.com/hyperledger/fabric/core/ledger/kvledger"
"github.com/stretchr/testify/require"
)
func TestRollbackKVLedger(t *testing.T) {
env := n... | 55,518 |
https://github.com/MAE-M/PotentiallyInactiveCpeAnalysisTool/blob/master/src/ui/Root.py | Github Open Source | Open Source | Apache-2.0 | null | PotentiallyInactiveCpeAnalysisTool | MAE-M | Python | Code | 178 | 548 | # Copyright (c) 2020 Huawei Technologies Co., Ltd.
# foss@huawei.com
#
# 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 requi... | 24,252 |
https://github.com/Silverhill/coupon-hunter-app/blob/master/src/components/Animations/Loading.js | Github Open Source | Open Source | MIT | 2,018 | coupon-hunter-app | Silverhill | JavaScript | Code | 177 | 520 | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import LottieView from 'lottie-react-native';
import { Animated, View } from 'react-native';
import styled from 'styled-components/native';
import { Typo } from 'coupon-components-native';
import loading from '../../assets/animations/il-loadi... | 15,697 |
https://github.com/cwensley/monomac/blob/master/samples/RoundedTransparentWindow/MainMenu.xib.designer.cs | Github Open Source | Open Source | Apache-2.0, MIT | 2,023 | monomac | cwensley | C# | Code | 85 | 301 | // ------------------------------------------------------------------------------
// <autogenerated>
// This code was generated by a tool.
// Mono Runtime Version: 2.0.50727.1433
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </autogene... | 41,048 |
https://github.com/asdbaihu/springboot-webmagic-3/blob/master/webmagic/src/main/java/online/mrlittlenew/webmagic/handler/JingDongProductHandler.java | Github Open Source | Open Source | Apache-2.0 | 2,018 | springboot-webmagic-3 | asdbaihu | Java | Code | 194 | 1,209 | package online.mrlittlenew.webmagic.handler;
import java.util.Date;
import java.util.List;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import online.mrlittlenew.webmagic.domain.JingDongProduct;
import online.mrlittlenew.webmagic.domain.JingDongProductInfo;
import online.mrlittlenew.webmagic.domain... | 23,188 |
https://github.com/linh4github/PHP/blob/master/ProjectEuler/Problem9.php | Github Open Source | Open Source | MIT | 2,021 | PHP | linh4github | PHP | Code | 135 | 238 | <?php
/**
* This function solves the problem 9 of the Project Euler.
*
* Problem description:
* A Pythagorean triplet is a set of three natural numbers, a < b < c, for which,
*
* a^2 + b^2 = c^2
*
* For example:
*
* 3^2 + 4^2 = 9 + 16 = 25 = 5^2.
*
* There exists exactly one Pythagorean triplet for which a... | 44,454 |
https://github.com/youffer/web/blob/master/Youffer.Web/Youffer.Web/Scripts/Common.js | Github Open Source | Open Source | MIT | 2,015 | web | youffer | JavaScript | Code | 5,106 | 15,067 | //var companyId = "";
//// Pop Alert and Confirm
//var overlayHTML = '<div class="none overlay"><img src="/img/loader.gif" /></div>';
//(function ($) {
// $.fn.vAlign = function (winHeight) {
// return this.each(function () {
// var h = $(this).height(); //gives height of calling div i.e.
// ... | 942 |
https://github.com/donfanning/executor/blob/master/src/include/rsys/text.h | Github Open Source | Open Source | MIT | 2,018 | executor | donfanning | C++ | Code | 39 | 110 | #if !defined(_TEXT_H_)
#define _TEXT_H_
/*
* Copyright 1997 by Abacus Research and Development, Inc.
* All rights reserved.
*
*/
namespace Executor
{
extern bool disable_text_printing(void);
extern void set_text_printing(bool state);
extern INTEGER ROMlib_wordb(char *p);
extern int ROMlib_forward_del_p;
}
#endi... | 16,444 |
https://github.com/Anime-Archive/anime-archive-fe/blob/master/anime-archive/src/components/footer/Footer.js | Github Open Source | Open Source | MIT | 2,021 | anime-archive-fe | Anime-Archive | JavaScript | Code | 28 | 83 | import "./Footer.css";
import { Link } from "react-router-dom";
export const Footer = () => {
return (
<section className="footer">
<Link to="/about" className="links">
<h2>About Us</h2>
</Link>
</section>
);
};
| 13,110 |
https://github.com/CoderZeaho/WJKVideoPlayer/blob/master/WJKVideoPlayerDemo/Pods/CategoryKit-Additions/CategoryKit-Additions/UIButton+HotSpotInsets.h | Github Open Source | Open Source | MIT | 2,018 | WJKVideoPlayer | CoderZeaho | C | Code | 33 | 116 | //
// UIButton+HotSpotInsets.h
// UDrivingCustomer
//
// Created by Marke Jave on 16/3/7.
// Copyright © 2016年 Marike Jave. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface UIButton (HotSpotInsets)
@property(nonatomic, assign) UIEdgeInsets hotSpotInsets;
@end
| 31,247 |
https://github.com/applebest/jw-flutter-demo/blob/master/lib/pages/layout/grid_view_count.dart | Github Open Source | Open Source | MIT | 2,022 | jw-flutter-demo | applebest | Dart | Code | 106 | 378 | import 'package:flutter/material.dart';
import '../../components/components.dart';
class GridViewCountPage extends StatelessWidget {
Widget buildGrid(BuildContext context) {
final orientation = MediaQuery.of(context).orientation;
return GridView.count(
crossAxisCount: (orientation == Orientation.port... | 38,030 |
https://github.com/8of/ViperBooks/blob/master/BooksList/Style/Style.swift | Github Open Source | Open Source | MIT | 2,017 | ViperBooks | 8of | Swift | Code | 29 | 63 | //
// Style.swift
// BooksList
//
// Created by Andrey Konstantinov on 06/06/2017.
// Copyright © 2017 8of. All rights reserved.
//
import UIKit
final class Style {
}
| 16,409 |
https://github.com/soulwing/wildfly-jwt-extension/blob/master/jwt-extension-spi/src/main/java/org/soulwing/jwt/extension/spi/Configurable.java | Github Open Source | Open Source | Apache-2.0 | 2,023 | wildfly-jwt-extension | soulwing | Java | Code | 206 | 337 | /*
* File created on Apr 7, 2019
*
* Copyright (c) 2019 Carl Harris, Jr
* and others as noted
*
* 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/LI... | 11,197 |
https://github.com/michadenheijer/Intro-to-Programming/blob/master/Module7/longestPath/Coordinate.java | Github Open Source | Open Source | CC0-1.0 | null | Intro-to-Programming | michadenheijer | Java | Code | 85 | 209 | package longestPath;
//direction: 0 = right, 1 = up, 2 = left, 3 = down
public class Coordinate {
int x;
int y;
Coordinate(int x, int y) {
this.x = x;
this.y = y;
}
boolean equals(Coordinate coordinate) {
return (coordinate.x == this.x && coordinate.y == this.y);
}
void direction(int i) {
if (i... | 7,230 |
https://github.com/gintenlabo/etude/blob/master/etude/types/is_tuple.hpp | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, BSL-1.0 | 2,013 | etude | gintenlabo | C++ | Code | 106 | 400 | //
// is_tuple :
// tuple なら true_type になるメタ関数
//
// is_tuple<T> は、 std::tuple_size<T>::value が存在し 0 以上なら std::true_type を、
// そうでなければ std::false_type を継承します。
//
// 具体的には std::tuple, std::pair, std::array が該当します。
//
// Copyright (C) 2010 Takaya Saito (SubaruG)
// Distributed under the Boos... | 32,774 |
https://github.com/mstdokumaci/stx/blob/master/test/reference/key-swapping.js | Github Open Source | Open Source | MIT | 2,020 | stx | mstdokumaci | JavaScript | Code | 456 | 1,672 | const test = require('tape')
const { create } = require('../../dist')
test('references - key swapping', t => {
const master = create({
id: 'master',
movieC: {
year: 1998,
imdb: 7.7,
title: 'Run Lola Run'
},
movies: {
0: ['@', 'movieC']
}
})
const branch1 = master.crea... | 6,372 |
https://github.com/innovaccer/design-system/blob/master/core/components/organisms/table/__stories__/syncTable.story.jsx | Github Open Source | Open Source | MIT | 2,023 | design-system | innovaccer | JavaScript | Code | 482 | 1,743 | import * as React from 'react';
import loaderSchema from '@/components/organisms/grid/__stories__/_common_/loaderSchema';
import data from '@/components/organisms/grid/__stories__/_common_/data';
import schema from '@/components/organisms/grid/__stories__/_common_/schema';
import { Card, Table } from '@/index';
import ... | 32,653 |
https://github.com/mrmoon007/BookSharing/blob/master/resources/views/backend/publisher/index.blade.php | Github Open Source | Open Source | MIT | null | BookSharing | mrmoon007 | PHP | Code | 515 | 2,426 | @extends('backend.layouts.master')
@section('customStyle')
@endsection
@section('content')
<!-- Begin Page Content -->
<div class="container-fluid">
<!-- Page Heading -->
<div class="d-sm-flex align-items-center justify-content-between mb-4">
<h1 class="h3 mb-0 text-gray-800">Man... | 9,770 |
https://github.com/c0gnize/di-container/blob/master/src/container-hook.ts | Github Open Source | Open Source | MIT | null | di-container | c0gnize | TypeScript | Code | 99 | 254 | import { createContext, useContext, useMemo } from 'react';
import { Container, LeadingNonServiceArgs } from './container';
import type { ServiceId } from './decorator';
const Context = createContext(new Container());
export const ContainerProvider = Context.Provider;
export function useContainer(): Container {
re... | 9,148 |
https://github.com/cartemic/Research-Scripts/blob/master/funcs/simulation/sensitivity/__init__.py | Github Open Source | Open Source | MIT | null | Research-Scripts | cartemic | Python | Code | 13 | 43 | from . import detonation, flame_speed, gas, istarmap
__all__ = ["detonation", "flame_speed", "gas", "istarmap"]
| 34,591 |
https://github.com/ProjectAzide/PRE/blob/master/src/StencilScene.cpp | Github Open Source | Open Source | MIT | 2,018 | PRE | ProjectAzide | C++ | Code | 518 | 1,218 | /*
Copyright (c) 2015, Phil J. Bostley III
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and ... | 7,355 |
https://github.com/weiplanet/uno/blob/master/src/Uno.UI/Media/StreamGeometryContext.cs | Github Open Source | Open Source | Apache-2.0 | 2,023 | uno | weiplanet | C# | Code | 115 | 344 | using Windows.UI.Xaml.Media;
using System;
using System.Collections.Generic;
using Windows.Foundation;
namespace Uno.Media
{
public abstract class StreamGeometryContext : IDisposable
{
public abstract void ArcTo(Point point, Size size, double rotationAngle, bool isLargeArc, SweepDirection sweepDirection, bool isS... | 39,642 |
https://github.com/tommymcgahee/puppet-and-ci-managed-dev-environments/blob/master/.travis/deploy.sh | Github Open Source | Open Source | MIT | 2,022 | puppet-and-ci-managed-dev-environments | tommymcgahee | Shell | Code | 43 | 106 | #!/bin/bash
cd dist
git init
git remote add production deploy@tommymcgahee.com:interview
git config --global push.default simple
git config --global user.email "tommy.mcgahee@gmail.com"
git config --global user.name "deploy"
git add *
git commit -m "Deployed to production server"
git push --force --quiet production ... | 19,997 |
https://github.com/nukosuke/annict/blob/master/app/components/profile_image_component.rb | Github Open Source | Open Source | Apache-2.0 | null | annict | nukosuke | Ruby | Code | 80 | 342 | # frozen_string_literal: true
class ProfileImageComponent < ApplicationComponent
def initialize(image_url_1x:, alt:, bg_color: "#F1F1F1", class_name: "", img_options: {})
@image_url_1x = image_url_1x
@alt = alt
@bg_color = bg_color
@class_name = class_name
@img_options = img_options
end
def ... | 4,244 |
https://github.com/aucd29/clone-daum/blob/master/brigitte/src/main/java/brigitte/bindingadapter/RadioGroupBindingAdapter.kt | Github Open Source | Open Source | Apache-2.0 | 2,020 | clone-daum | aucd29 | Kotlin | Code | 78 | 313 | @file:Suppress("NOTHING_TO_INLINE", "unused")
package brigitte.bindingadapter
import android.widget.RadioGroup
import androidx.databinding.BindingAdapter
import org.slf4j.LoggerFactory
/**
* Created by <a href="mailto:aucd29@gmail.com">Burke Choi</a> on 2019-08-12 <p/>
*/
object RadioGroupBindingAdapter {
priv... | 49,374 |
https://github.com/martinkro/tutorials-unity3d/blob/master/AirStrike466/Assets/AirStrike/Scripts/AI.meta | Github Open Source | Open Source | MIT | 2,016 | tutorials-unity3d | martinkro | Unity3D Asset | Code | 8 | 46 | fileFormatVersion: 2
guid: f4f662240455d4a92a9c458048ad05c0
folderAsset: yes
DefaultImporter:
userData:
| 15,970 |
https://github.com/sawarahead/Deliverables/blob/master/app/Http/Controllers/RegisterController.php | Github Open Source | Open Source | MIT | 2,021 | Deliverables | sawarahead | PHP | Code | 23 | 74 | <?php
namespace App\Http\Controllers;
use App\Task;
use Illuminate\Http\Request;
class RegisterController extends Controller
{
public function index(Task $register)
{
return view("index")->with(['registers' => $register->get]);
}
} | 34,085 |
https://github.com/phpyandong/opentaobao/blob/master/model/media/ResultCode.go | Github Open Source | Open Source | Apache-2.0 | 2,021 | opentaobao | phpyandong | Go | Code | 21 | 89 | package media
// ResultCode
type ResultCode struct {
// 错误代码
ErrorCode int64 `json:"error_code,omitempty" xml:"error_code,omitempty"`
// 错误描述
Info string `json:"info,omitempty" xml:"info,omitempty"`
}
| 18,705 |
https://github.com/irispon/0SuperComicLibs/blob/master/0SuperComicLib.LowLevel/Types/Types.cs | Github Open Source | Open Source | MIT | 2,021 | 0SuperComicLibs | irispon | C# | Code | 67 | 190 | namespace SuperComicLib.LowLevel
{
public unsafe delegate T UnsafeCastClass<T>(void* ptr) where T : class;
public unsafe delegate T UnsafeReadPointerStruct<T>(void* ptr) where T : struct;
public unsafe delegate void UnsafePointerAction(byte* ptr);
internal unsafe delegate void UnsafeMemoryCopyBlock(... | 23,439 |
https://github.com/Pondidum/terraform-provider-sentry/blob/master/sentry/provider.go | Github Open Source | Open Source | MIT | 2,021 | terraform-provider-sentry | Pondidum | Go | Code | 105 | 544 | package sentry
import (
"context"
"github.com/hashicorp/terraform-plugin-sdk/v2/diag"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
)
// Provider returns a *schema.Provider.
func Provider() *schema.Provider {
return &schema.Provider{
Schema: map[string]*schema.Schema{
"token": {
Type: ... | 32,831 |
https://github.com/lechium/tvOS145Headers/blob/master/System/Library/PrivateFrameworks/SetupAssistantUI.framework/SetupAssistantUI.h | Github Open Source | Open Source | MIT | 2,021 | tvOS145Headers | lechium | Objective-C | Code | 36 | 307 | #import <SetupAssistantUI/BFFFlowSkipController.h>
#import <SetupAssistantUI/BFFContinueButton.h>
#import <SetupAssistantUI/BFFPaneHeaderView.h>
#import <SetupAssistantUI/BFFLinkHandler.h>
#import <SetupAssistantUI/BFFLinkLabelFooterView.h>
#import <SetupAssistantUI/BFFWindow.h>
#import <SetupAssistantUI/BFFCapabilitie... | 29,875 |
https://github.com/topherinternational/gradle/blob/master/subprojects/plugins/src/main/java/org/gradle/api/tasks/SourceSet.java | Github Open Source | Open Source | Apache-2.0 | null | gradle | topherinternational | Java | Code | 1,748 | 3,336 | /*
* Copyright 2010 the original author or 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://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 3,614 |
https://github.com/t-lou/rules-n-todos/blob/master/utils.py | Github Open Source | Open Source | WTFPL | 2,021 | rules-n-todos | t-lou | Python | Code | 813 | 2,811 | import os
import json
import datetime
kFilenameRule = 'rules.json'
kFilenameTodo = 'todos.json'
def unify_int(text: str) -> str:
try:
text = str(int(text))
except:
pass
return text
def find(data: dict, keys: list) -> list:
if not bool(keys):
return data
assert type(data)... | 5,340 |
https://github.com/PawelGedlek/Haskell-Laboratory/blob/master/lab4/ex11.hs | Github Open Source | Open Source | MIT | 2,018 | Haskell-Laboratory | PawelGedlek | Haskell | Code | 63 | 126 | data Queue a = Queue {
inbox :: [a],
outbox :: [a]
} deriving (Eq, Show)
push :: a -> Queue a -> Queue a
push e (Queue inb out) = Queue(e:inb) out
pop :: Queue a -> (a, Queue a)
pop q@(Queue inb []) = pop $ Queue [] (reverse inb)
pop (Queue inb outb) = (head outb, Queue inb (tail outb))
| 5,884 |
https://github.com/pontoonapps/PONToonDigitalQuiz/blob/master/PONToonDigitalBoardgame/Assets/Scenes/QuizFR.unity | Github Open Source | Open Source | MIT | 2,021 | PONToonDigitalQuiz | pontoonapps | Unity3D Asset | Code | 4,109 | 17,407 | %YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!29 &1
OcclusionCullingSettings:
m_ObjectHideFlags: 0
serializedVersion: 2
m_OcclusionBakeSettings:
smallestOccluder: 5
smallestHole: 0.25
backfaceThreshold: 100
m_SceneGUID: 00000000000000000000000000000000
m_OcclusionCullingData: {fileID: 0}
--- !u!... | 52,805 |
https://github.com/shutterstock/node-procedural-async/blob/master/examples/using_async.js | Github Open Source | Open Source | MIT | null | node-procedural-async | shutterstock | JavaScript | Code | 165 | 571 | var models = require('../support/test-models');
var async = require('../support/test-models');
var req = { query: { genre: 'Fantasy' }, session: { username: 'dfenster' }};
var res = { json: function(json){ console.log(json); } };
var next = function(err){ console.error(err); };
async.auto({
current_user: functio... | 15,805 |
https://github.com/RumorIO/AllFood/blob/master/facebook.go | Github Open Source | Open Source | MIT | 2,017 | AllFood | RumorIO | Go | Code | 278 | 996 | package main
import (
"encoding/json"
"errors"
"fmt"
"github.com/parnurzeal/gorequest"
"strings"
)
type Facebook struct {
AppID string
AppSecret string
AccessToken string
TokenURL string
PlaceURL string
}
type FacebookPlaceSimple struct {
OverallStarRating float64 `json:"overall_star_rating"... | 161 |
https://github.com/freebsd/freebsd-ports/blob/master/science/ghemical/Makefile | Github Open Source | Open Source | BSD-2-Clause | 2,023 | freebsd-ports | freebsd | Makefile | Code | 126 | 671 | PORTNAME= ghemical
PORTVERSION= 3.0.0
PORTREVISION= 25
CATEGORIES= science
MASTER_SITES= http://bioinformatics.org/ghemical/download/%SUBDIR%/
MASTER_SITE_SUBDIR= release20111012 current
MAINTAINER= yuri@FreeBSD.org
COMMENT= Computational chemistry software package
WWW= https://www.bioinformatics.org/ghemical/ghemica... | 24,905 |
https://github.com/huangyouzhi/whatsns_free/blob/master/application/views/admin/setting_mail.php | Github Open Source | Open Source | MIT | 2,021 | whatsns_free | huangyouzhi | PHP | Code | 237 | 1,557 | <!--{template header}-->
<div style="width:100%; height:15px;color:#000;margin:0px 0px 10px;">
<div style="float:left;"><a href="index.php?admin_main/stat{$setting['seo_suffix']}" target="main"><b>控制面板首页</b></a> » 邮件设置</div>
</div>
<!--{if isset($message)}-->
<!--{eval $type=isset($type)?$type:'correc... | 50,981 |
https://github.com/qx/FullRobolectricTestSample/blob/master/src/test/java/org/robolectric/shadows/testing/InnerActivity.java | Github Open Source | Open Source | MIT | 2,014 | FullRobolectricTestSample | qx | Java | Code | 27 | 106 | package org.robolectric.shadows.testing;
import android.app.Activity;
import android.os.Bundle;
import org.robolectric.R;
/**
*
*/
public class InnerActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.lam_... | 30,694 |
https://github.com/Quget/Interstar/blob/master/Interstar Game/Assets/Materials/Grabber Cam.mat.meta | Github Open Source | Open Source | MIT | 2,017 | Interstar | Quget | Unity3D Asset | Code | 6 | 41 | fileFormatVersion: 2
guid: a72d6d37e77563b4e8d65cb09036215b
NativeFormatImporter:
userData:
| 48,515 |
https://github.com/rphill26/Jury-Box/blob/master/frontend/src/App/containers/Secret/Secret.js | Github Open Source | Open Source | MIT | 2,020 | Jury-Box | rphill26 | JavaScript | Code | 120 | 402 | import React, { Component } from "react";
//import { Redirect } from 'react-router-dom';
import API from "../../../lib/API";
import AuthContext from "../../../contexts/AuthContext";
class Secret extends Component {
static contextType = AuthContext;
state = {
isLoading: true,
error: ""
};
componentDi... | 9,021 |
https://github.com/K3ikoku/Maze-Hack-n-Slash/blob/master/Hack-n-Slash/Assets/Textures.meta | Github Open Source | Open Source | MIT | 2,016 | Maze-Hack-n-Slash | K3ikoku | Unity3D Asset | Code | 14 | 70 | fileFormatVersion: 2
guid: c15a774541297474ea9cac2b4f66df86
folderAsset: yes
timeCreated: 1456145736
licenseType: Free
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:
| 42,131 |
https://github.com/msiqueira-dev/InfraTools/blob/master/InfraTools/Html/Form/FormCheckIpAddressIsInNetwork.php | Github Open Source | Open Source | Apache-2.0 | 2,018 | InfraTools | msiqueira-dev | PHP | Code | 292 | 2,559 | <!-- FORM CHECK IP ADDRESS IS IN NETWORK -->
<a name="tabs5" id="tabs5"></a>
<div id="tabs-5" class="ui-tabs-panel ui-widget-content <?php echo $this->VisibilityFunctionCheckIpAddressIsInNetwork; ?>">
<h2><?php echo $this->InstanceLanguageText->GetText('CHECK_IP_ADDRESS_IS_IN_NETWORK_TEXT'); ?></h2>
<div class="DivCo... | 49,688 |
https://github.com/kirankarki/goldsborough.github.io/blob/master/_sass/_images.scss | Github Open Source | Open Source | MIT | 2,016 | goldsborough.github.io | kirankarki | SCSS | Code | 55 | 190 | .figure {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 10px;
}
.figure.space-below {
margin-bottom: 10px;
}
.caption {
margin-top: -10px;
text-transform: uppercase;
font-size: 90%;
border-bottom: 0.9px solid rgba(0, 0, 0, 0.25);
}
img {
display: ... | 55,886 |
https://github.com/cowthan/JavaWeb/blob/master/apps/src/com/webapp/util/freemarker/FreeMarker.java | Github Open Source | Open Source | Apache-2.0 | null | JavaWeb | cowthan | Java | Code | 151 | 625 | package com.webapp.util.freemarker;
import freemarker.template.*;
import javax.servlet.http.HttpServlet;
import java.io.File;
import java.io.IOException;
import java.io.PrintWriter;
import java.io.StringWriter;
import java.util.Map;
public class FreeMarker {
public static String process(String templateFile, Map... | 4,207 |
https://github.com/aj-stein-nist/metaschema/blob/master/toolchains/xslt-M4/document/pipeline-diagnostic.xsl | Github Open Source | Open Source | CC0-1.0 | 2,022 | metaschema | aj-stein-nist | null | Spoken | 33 | 228 | <?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:math="http://www.w3.org/2005/xpath-functions/math"
exclude-result-prefixes="xs math"
version="3.0">
<xsl:param name="test1" required="true"/>... | 9,157 |
https://github.com/SaveTheRbtz/bazel-cache/blob/master/Makefile | Github Open Source | Open Source | Apache-2.0 | null | bazel-cache | SaveTheRbtz | Makefile | Code | 26 | 82 | IMAGE := znly/bazel-cache
VERSION := 0.1.1
.PHONY: bazel-cache
bazel-cache:
go build -ldflags "-s -w" -trimpath -o $(@) .
.PHONY: image
image:
docker build -t $(IMAGE):$(VERSION) .
| 4,485 |
https://github.com/moto2002/UniMob/blob/master/Runtime/CodeGenAtom.cs.meta | Github Open Source | Open Source | MIT | 2,020 | UniMob | moto2002 | Unity3D Asset | Code | 6 | 40 | fileFormatVersion: 2
guid: 4b1acaaddcf643d2b0a3496c82cae7c0
timeCreated: 1602321453 | 41,496 |
https://github.com/jhomaralc/wikitables/blob/master/wikitables-dal-release-1.0/src/org/deri/exreta/dal/exceptions/DownloadException.java | Github Open Source | Open Source | Apache-2.0 | 2,016 | wikitables | jhomaralc | Java | Code | 46 | 140 | package org.deri.exreta.dal.exceptions;
/**
* Exceptions for MONGO DB.
*
* @author Emir Munoz <emir@emunoz.org>
* @version 0.1
* @since 2013-03-8
*
*/
public class DownloadException extends Exception
{
private static final long serialVersionUID = -6796307249360977041L;
public DownloadException()
{
}
pub... | 16,268 |
https://github.com/architecture/scim-kit/blob/master/lib/scim/kit/v2/schema.rb | Github Open Source | Open Source | MIT | 2,021 | scim-kit | architecture | Ruby | Code | 128 | 395 | # frozen_string_literal: true
module Scim
module Kit
module V2
# Represents a SCIM Schema
class Schema
include Templatable
attr_reader :id, :name, :attributes
attr_accessor :meta, :description
def initialize(id:, name:, location:)
@id = id
@name =... | 51,741 |
https://github.com/UniqueDong/api-boot/blob/master/api-boot-samples/api-boot-sample-mybatis-enhance/src/main/java/org/minbox/framework/api/boot/sample/mybatis/enhance/dsl/DSystemUser.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | api-boot | UniqueDong | Java | Code | 244 | 694 | /*
* Copyright [2019] [恒宇少年 - 于起宇]
*
* 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 ... | 12,272 |
https://github.com/abays/osp-director-operator/blob/master/Makefile | Github Open Source | Open Source | Apache-2.0 | 2,021 | osp-director-operator | abays | Makefile | Code | 500 | 1,784 | # Current Operator version
VERSION ?= 0.0.1
# Default bundle image tag
BUNDLE_IMG ?= controller-bundle:$(VERSION)
# Options for 'bundle-build'
ifneq ($(origin CHANNELS), undefined)
BUNDLE_CHANNELS := --channels=$(CHANNELS)
endif
ifneq ($(origin DEFAULT_CHANNEL), undefined)
BUNDLE_DEFAULT_CHANNEL := --default-channel=$(... | 8,001 |
https://github.com/ibrandcc/VLC/blob/master/src/styles/index.less | Github Open Source | Open Source | MIT | null | VLC | ibrandcc | Less | Code | 72 | 301 | // base
@import "base/variable";
@import "base/reset";
// utils
@import "utils/animation";
@import "utils/nowrap";
@import "utils/1px";
// components
@import "components/header";
@import "components/actionsheet";
@import "components/message";
@import "components/picker";
@import "components/tab";
@import "components/... | 24,582 |
https://github.com/dqu123/profile/blob/master/Makefile | Github Open Source | Open Source | MIT | null | profile | dqu123 | Makefile | Code | 34 | 169 | pull-local: pull-vimrc pull-tmux
pull-vimrc:
cp ~/.vimrc .
pull-tmux:
cp ~/.tmux.conf .
update: update-vimrc update-tmux
update-vimrc:
cp ~/.vimrc ~/.vimrc.bak
cp .vimrc ~
update-tmux:
cp ~/.tmux.conf ~/.tmux.conf.bak
cp .tmux.conf ~
fresh-install: update
git clone https://github.com/VundleVim/Vundle.vim.g... | 10,203 |
https://github.com/starpeak/cloudmodel/blob/master/spec/models/cloud_model/services/redis_spec.rb | Github Open Source | Open Source | MIT | null | cloudmodel | starpeak | Ruby | Code | 27 | 97 | # encoding: UTF-8
require 'spec_helper'
describe CloudModel::Services::Redis do
it { expect(subject).to be_a CloudModel::Services::Base }
it { expect(subject).to have_field(:port).of_type(Integer).with_default_value_of 6379 }
it { expect(subject.kind).to eq :redis }
end | 29,631 |
https://github.com/colonsong/laravel-package/blob/master/packages/colin/log/src/LogFacade.php | Github Open Source | Open Source | MIT | null | laravel-package | colonsong | PHP | Code | 19 | 62 | <?php
namespace Colin\Log;
use Illuminate\Support\Facades\Facade;
class LogSplitFacade extends Facade {
protected static function getFacadeAccessor()
{
return 'logsplit';
}
}
| 43,973 |
https://github.com/rjsf-team/react-jsonschema-form/blob/master/packages/chakra-ui/test/__snapshots__/Object.test.tsx.snap | Github Open Source | Open Source | Apache-2.0 | 2,023 | react-jsonschema-form | rjsf-team | null | Spoken | 5,880 | 30,111 | // Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`object fields additionalProperties 1`] = `
.emotion-1 {
display: grid;
grid-gap: 6px;
margin-bottom: 4px;
}
.emotion-3 {
display: grid;
grid-gap: 2px;
-webkit-align-items: center;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: cent... | 707 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.