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/yxlao/webrtc-cpp-sample/blob/master/webrtc/include/third_party/blink/renderer/core/css/style_traversal_root.h | Github Open Source | Open Source | MIT | null | webrtc-cpp-sample | yxlao | C | Code | 428 | 891 | // Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef THIRD_PARTY_BLINK_RENDERER_CORE_CSS_STYLE_TRAVERSAL_ROOT_H_
#define THIRD_PARTY_BLINK_RENDERER_CORE_CSS_STYLE_TRAVERSAL_ROOT_H_
#include "third_p... | 46,607 |
https://github.com/Delawen/camel-quarkus/blob/master/docs/modules/ROOT/partials/reference/components/aws2-lambda.adoc | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-unknown-license-reference | 2,021 | camel-quarkus | Delawen | AsciiDoc | Code | 47 | 201 | // Do not edit directly!
// This file was generated by camel-quarkus-maven-plugin:update-extension-doc-page
:cq-artifact-id: camel-quarkus-aws2-lambda
:cq-artifact-id-base: aws2-lambda
:cq-native-supported: true
:cq-status: Stable
:cq-deprecated: false
:cq-jvm-since: 1.1.0
:cq-native-since: 1.1.0
:cq-camel-part-name: a... | 7,088 |
https://github.com/itsbino/fewpjs-stitching-together-the-three-pillars-new-online-web-sp-000/blob/master/node_modules/core-js/library/fn/array/slice.js | Github Open Source | Open Source | MIT, LicenseRef-scancode-public-domain, LicenseRef-scancode-unknown-license-reference | 2,020 | fewpjs-stitching-together-the-three-pillars-new-online-web-sp-000 | itsbino | JavaScript | Code | 4 | 41 | require('core-js/library/modules/es6.array.slice');
module.exports = require('core-js/library/modules/_core').Array.slice;
| 11,135 |
https://github.com/FetchWeb/Log/blob/master/Data.go | Github Open Source | Open Source | MIT | 2,019 | Log | FetchWeb | Go | Code | 21 | 33 | package log
// Data holds the data output in a log message.
type Data struct {
Level string
Message string
}
| 4,051 |
https://github.com/sriram18981/node-knex-poc/blob/master/db/knex.js | Github Open Source | Open Source | MIT | null | node-knex-poc | sriram18981 | JavaScript | Code | 106 | 375 | 'use strict';
const knex = require('./dbInit');
knex.schema
.createTable('users', function(table) {
table.increments('id');
table.string('user_name');
})
// ...and another
.createTable('accounts', function(table) {
table.increments('id');
table.string('account_name');
table
.intege... | 9,036 |
https://github.com/GRFreire/nlw-01/blob/master/backend/src/controllers/ItemsController.ts | Github Open Source | Open Source | MIT | 2,020 | nlw-01 | GRFreire | TypeScript | Code | 76 | 221 | import { Request, Response } from 'express';
import knex from '../database/connection';
interface IItemsController {
index: any
}
function createItemsController(): IItemsController {
async function index(req: Request, res: Response) {
try {
const items = await knex('items').select('*');
... | 10,840 |
https://github.com/Coderushnepal/PoojaShrestha/blob/master/beer-bank/src/actions/beers.js | Github Open Source | Open Source | MIT | null | PoojaShrestha | Coderushnepal | JavaScript | Code | 117 | 400 | import * as beerService from "../services/beer";
export const RESET_BEERS = "RESET_BEERS";
export const FETCH_BEERS = "FETCH_BEERS";
export const FETCH_BEERS_PENDING = "FETCH_BEERS_PENDING";
export const FETCH_BEERS_REJECTED = "FETCH_BEERS_REJECTED";
export const FETCH_BEERS_FULFILLED = "FETCH_BEERS_FULFILLED";
// p... | 35,061 |
https://github.com/szymonk1101/Nexia/blob/master/application/models/Notifications_model.php | Github Open Source | Open Source | MIT | null | Nexia | szymonk1101 | PHP | Code | 187 | 696 | <?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Notifications_model extends CI_Model {
public function __construct()
{
parent::__construct();
$this->load->database();
}
public function addNotification($type, $content, $title = null, $data = null, $recipient... | 19,860 |
https://github.com/kichuss/practica_baseDedatos/blob/master/TAREAA/ver.php | Github Open Source | Open Source | Apache-2.0 | null | practica_baseDedatos | kichuss | PHP | Code | 63 | 321 | <?php
require("conexion.php");
session_start($link);
$id=$_GET["id"];
$query= "SELECT * FROM autores WHERE id='".$id."'";
$resultado=mysqli_query($link,$query) or die ("Error: ". mysqli_error());
if (mysqli_num_rows($resultado) > 0){
while ($row=mysqli_fetch_array($resultado)) {
?>
<html>
<body>
<font s... | 11,940 |
https://github.com/lumixraku/OpenCVRN/blob/master/src/webpage/phaser/src/game/facePosCheck.ts | Github Open Source | Open Source | MIT | 2,020 | OpenCVRN | lumixraku | TypeScript | Code | 715 | 2,444 |
import PhaserImage = Phaser.GameObjects.Image;
import Sprite = Phaser.GameObjects.Sprite;
import Circle = Phaser.Geom.Circle;
import Point = Phaser.Geom.Point;
import Vector2 = Phaser.Math.Vector2;
import Rectagle = Phaser.Geom.Rectangle;
import Graphics = Phaser.GameObjects.Graphics;
import PhaserText = Phaser.GameO... | 41,356 |
https://github.com/gugarosa/opytimizer/blob/master/opytimizer/optimizers/swarm/sso.py | Github Open Source | Open Source | Apache-2.0 | 2,023 | opytimizer | gugarosa | Python | Code | 460 | 1,405 | """Simplified Swarm Optimization.
"""
import copy
import time
from typing import Any, Dict, Optional
import numpy as np
import opytimizer.math.random as r
import opytimizer.utils.exception as e
from opytimizer.core import Optimizer
from opytimizer.core.function import Function
from opytimizer.core.space import Space... | 224 |
https://github.com/dannypilkington/shopify-bootstrap-theme/blob/master/scss/_footer.scss | Github Open Source | Open Source | MIT | 2,022 | shopify-bootstrap-theme | dannypilkington | SCSS | Code | 77 | 280 | /*
© 2021 KondaSoft
https://www.kondasoft.com
*/
// Footer blocks
#footer-blocks {
.rte,
.footer-menu,
.social-menu {
font-size: .95rem;
}
&.text-body {
.nav-link {
color: var(--color-body-text);
&:hover {
color: var(--color-body-tex... | 44,390 |
https://github.com/eprislac/guard-yard/blob/master/vendor/jruby/1.9/gems/rubocop-0.25.0/lib/rubocop/cop/style/nested_ternary_operator.rb | Github Open Source | Open Source | MIT | 2,015 | guard-yard | eprislac | Ruby | Code | 66 | 190 | # encoding: utf-8
module RuboCop
module Cop
module Style
# This cop checks for nested ternary op expressions.
class NestedTernaryOperator < Cop
MSG = 'Ternary operators must not be nested. Prefer `if`/`else` ' \
'constructs instead.'
def on_if(node)
loc = node... | 40,903 |
https://github.com/otengkwame/Ignite/blob/master/cli/templates/interfaces/base.php.twig | Github Open Source | Open Source | MIT | 2,017 | Ignite | otengkwame | Twig | Code | 100 | 220 | <?php namespace Ignite\App\Interfaces;
if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* This is an Interface for {{ NAME }}
*/
Interface {{ NAME }}Interface
{
{% if ACTIONS is empty %}
/**
* Display a listing of the resource.
* GET /{{ COLLECTION }}
*/
public function startInterfa... | 37,715 |
https://github.com/ardansisman/CQRS-Wrokshop/blob/master/CQRS-Wrokshop.Domain/Entities/Product.cs | Github Open Source | Open Source | MIT | 2,021 | CQRS-Wrokshop | ardansisman | C# | Code | 50 | 128 | using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;
namespace CQRS_Wrokshop.Domain.Entities
{
[Table("products", Schema = "public")]
public class Product
{
public long Id { get; set; }
public string Name { get; set; }
... | 38,312 |
https://github.com/YWADMIN/UnitTest/blob/master/src/test/java/adrninistrator/test/common/TestReplaceUtil.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | UnitTest | YWADMIN | Java | Code | 169 | 936 | package adrninistrator.test.common;
import org.mockito.MockingDetails;
import org.mockito.Mockito;
import org.powermock.reflect.Whitebox;
import static org.junit.Assert.fail;
public class TestReplaceUtil {
/**
* 将对象object中的指定类型clazz成员变量替换为Mock对象并返回,简化操作,避免将现有Mock对象的Stub操作丢弃。
*
* @param object 需要替... | 50,818 |
https://github.com/KDE/kdepim-runtime/blob/master/po/pt_BR/accountwizard_pop3.po | Github Open Source | Open Source | BSD-3-Clause | 2,023 | kdepim-runtime | KDE | Gettext Catalog | Code | 137 | 520 | # Translation of accountwizard_pop3.po to Brazilian Portuguese
# Copyright (C) 2010-2013 This_file_is_part_of_KDE
# This file is distributed under the same license as the PACKAGE package.
#
# André Marcelo Alvarenga <alvarenga@kde.org>, 2010, 2013.
msgid ""
msgstr ""
"Project-Id-Version: accountwizard_pop3\n"
"Report-M... | 27,677 |
https://github.com/navikt/familie-ba-statistikk/blob/master/src/main/kotlin/no/nav/familie/ba/statistikk/config/FlywayConfiguration.kt | Github Open Source | Open Source | MIT | null | familie-ba-statistikk | navikt | Kotlin | Code | 40 | 217 | package no.nav.familie.ba.statistikk.config
import org.flywaydb.core.api.configuration.FluentConfiguration
import org.springframework.beans.factory.annotation.Value
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty
import org.springframework.boot.autoconfigure.flyway.FlywayConfigurationCust... | 18,359 |
https://github.com/sjp/Schematic/blob/master/src/SJP.Schematic.Reporting/Html/ViewModels/Mappers/SynonymTargets.cs | Github Open Source | Open Source | MIT | 2,022 | Schematic | sjp | C# | Code | 96 | 310 | using System;
using System.Collections.Generic;
using SJP.Schematic.Core;
namespace SJP.Schematic.Reporting.Html.ViewModels.Mappers
{
internal sealed class SynonymTargets
{
public SynonymTargets(
IEnumerable<Identifier> tableNames,
IEnumerable<Identifier> viewNames,
... | 3,142 |
https://github.com/hanreev/types-ol/blob/master/@types/ol/TileRange.d.ts | Github Open Source | Open Source | MIT | 2,023 | types-ol | hanreev | TypeScript | Code | 67 | 215 | import { Size } from './size';
import { TileCoord } from './tilecoord';
export default class TileRange {
constructor(minX: number, maxX: number, minY: number, maxY: number);
contains(tileCoord: TileCoord): boolean;
containsTileRange(tileRange: TileRange): boolean;
containsXY(x: number, y: number): bool... | 30,168 |
https://github.com/naveen5229/refPri/blob/master/src/app/modals/mobile-no/mobile-no.component.ts | Github Open Source | Open Source | MIT | null | refPri | naveen5229 | TypeScript | Code | 75 | 278 | import { Component, OnInit } from '@angular/core';
import { CommonService } from '../../Service/common/common.service';
import { ApiService } from '../../Service/Api/api.service';
import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap';
@Component({
selector: 'ngx-mobile-no',
templateUrl: './mobile-no.componen... | 31,750 |
https://github.com/OneSecure/onedrive-sdk-ios/blob/master/OneDriveSDK/Pods/ADAL/ADALiOS/ADALiOS/ADTokenCacheStoreKey.h | Github Open Source | Open Source | MIT, Apache-2.0 | 2,020 | onedrive-sdk-ios | OneSecure | Objective-C | Code | 257 | 477 | // Copyright © Microsoft Open Technologies, 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
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// THIS CODE... | 28,986 |
https://github.com/quickskape/mapping/blob/master/convert-routing-file.sh | Github Open Source | Open Source | MIT | null | mapping | quickskape | Shell | Code | 26 | 136 | docker run -t -v "${PWD}/routing-files:/data" osrm/osrm-backend osrm-extract -p /opt/car.lua /data/england-latest.osm.pbf
docker run -t -v "${PWD}/routing-files:/data" osrm/osrm-backend osrm-partition /data/england-latest.osrm
docker run -t -v "${PWD}/routing-files:/data" osrm/osrm-backend osrm-customize /data/england... | 25,532 |
https://github.com/softwarecapital/chr1shr.voro/blob/master/examples/no_release/import_nguyen.cc | Github Open Source | Open Source | BSD-3-Clause-LBNL | 2,022 | chr1shr.voro | softwarecapital | C++ | Code | 145 | 467 | // File import example code
//
// Author : Chris H. Rycroft (Harvard University / LBL)
// Email : chr@alum.mit.edu
// Date : August 30th 2011
#include "voro++.hh"
using namespace voro;
#include <vector>
using namespace std;
// Set up constants for the container geometry
const double x_min=-5,x_max=5;
const ... | 30,376 |
https://github.com/yoship1639/MikuMikuWorld/blob/master/MikuMikuWorldLib/MatrixHelper.cs | Github Open Source | Open Source | BSD-3-Clause | 2,021 | MikuMikuWorld | yoship1639 | C# | Code | 938 | 2,614 | //
// Miku Miku World License
//
// Copyright (c) 2017 Miku Miku World.
//
// 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 rights to
... | 31,816 |
https://github.com/tool-recommender-bot/hexa.tools/blob/master/hexa.core/src/main/java/fr/lteconsulting/hexa/client/ui/widget/ListBoxGen.java | Github Open Source | Open Source | MIT | 2,017 | hexa.tools | tool-recommender-bot | Java | Code | 161 | 486 | package fr.lteconsulting.hexa.client.ui.widget;
import java.util.HashMap;
import com.google.gwt.event.dom.client.ChangeHandler;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.ListBox;
public class ListBoxGen<T> extends Composite
{
int nextIdx = 0;
ListBox base = new ListBox();... | 39,689 |
https://github.com/BASK-UFA/VMP/blob/master/public_html/app/Policies/BlogPostPolicy.php | Github Open Source | Open Source | Apache-2.0 | 2,020 | VMP | BASK-UFA | PHP | Code | 298 | 863 | <?php
namespace App\Policies;
use App\Models\User;
use App\Models\BlogPost;
use Illuminate\Auth\Access\HandlesAuthorization;
use Illuminate\Support\Facades\Gate;
class BlogPostPolicy
{
use HandlesAuthorization;
/**
* Determine whether the user can view any blog posts.
*
* @param \App\Models\U... | 13,743 |
https://github.com/abcpen-inc/ABCPaitiKit/blob/master/ABCPaitiDemo/ABCPaitiDemo/www/cordova_plugins.js | Github Open Source | Open Source | MIT | null | ABCPaitiKit | abcpen-inc | JavaScript | Code | 46 | 217 | cordova.define('cordova/plugin_list', function(require, exports, module) {
module.exports = [
{
"file": "plugins/ABCQuestionPlugin.js",
"id": "com.abcpen.paiti.ABCQuestionPlugin",
"clobbers": [
"myPlugin"
... | 43,566 |
https://github.com/StenAskerBergman/Moonlight/blob/master/Assets/Script/Main Game/GetResourceData.cs | Github Open Source | Open Source | Apache-2.0 | null | Moonlight | StenAskerBergman | C# | Code | 50 | 166 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class GetResourceData : MonoBehaviour
{
//public TextMesh label;
private string strStone;
private void Awake()
{
strStone = Bank.stone.ToString();
GetComponent<UnityEngine.UI.Text>().... | 43,654 |
https://github.com/bio-guoda/preston/blob/master/preston-core/src/main/java/bio/guoda/preston/RefNodeConstants.java | Github Open Source | Open Source | MIT | 2,022 | preston | bio-guoda | Java | Code | 361 | 1,749 | package bio.guoda.preston;
import org.apache.commons.lang3.tuple.Pair;
import org.apache.commons.rdf.api.IRI;
import org.apache.commons.rdf.api.RDFTerm;
import java.net.URI;
import java.util.UUID;
import static bio.guoda.preston.RefNodeFactory.toIRI;
public class RefNodeConstants {
public static final String U... | 18,485 |
https://github.com/eduardsui/edwork/blob/master/src/ui/htmlwindow.h | Github Open Source | Open Source | MIT | 2,022 | edwork | eduardsui | C | Code | 161 | 575 | #ifndef __HTMLWINDOW_H
#define __HTMLWINDOW_H
typedef void (*ui_trigger_event)(void *window);
typedef void (*ui_idle_event)(void *userdata);
typedef void (*ui_tray_event)(void *window);
typedef void (*ui_event)(void *event_data, void *userdata);
#define UI_EVENT_WINDOW_CREATE 0
#define UI_EVENT_WINDOW_CLOSE 1
#def... | 26,594 |
https://github.com/jsperts/workshop_unterlagen/blob/master/react/exercises/part_09/src/reducers/forms.js | Github Open Source | Open Source | MIT | 2,018 | workshop_unterlagen | jsperts | JavaScript | Code | 70 | 194 | import update from 'immutability-helper';
import initialState from '../initialState';
import { FIELD_UPDATED, INIT_FORM } from '../events';
function formsReducer(formsState = initialState.forms, action) {
const { type, payload } = action;
switch (type) {
case INIT_FORM:
return update(formsState, {
... | 26,026 |
https://github.com/psubotic/souffle/blob/master/src/ram/ExistenceCheck.h | Github Open Source | Open Source | UPL-1.0 | null | souffle | psubotic | C | Code | 173 | 441 | /*
* Souffle - A Datalog Compiler
* Copyright (c) 2013, 2014, Oracle and/or its affiliates. All rights reserved
* Licensed under the Universal Permissive License v 1.0 as shown at:
* - https://opensource.org/licenses/UPL
* - <souffle root>/licenses/SOUFFLE-UPL.txt
*/
/********************************************... | 29,151 |
https://github.com/OSU-slatelab/vp-unity-client-src/blob/master/Scripts/WatsonSpeechSynthesizer.cs | Github Open Source | Open Source | MIT | null | vp-unity-client-src | OSU-slatelab | C# | Code | 277 | 1,013 | using System;
using System.Collections;
using System.Collections.Generic;
using System.Security;
using UnityEngine;
using UnityEngine.Events;
using IBM.Watson.TextToSpeech.V1;
using IBM.Cloud.SDK;
using IBM.Cloud.SDK.Utilities;
using IBM.Cloud.SDK.DataTypes;
public class WatsonSpeechSynthesizer : SpeechProducer {
... | 47,798 |
https://github.com/sigram/pcl-parser/blob/master/src/java/org/getopt/pcl5/PCL5Interpreter/cmd/CmdFormFeed.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | pcl-parser | sigram | Java | Code | 61 | 203 | /**
* <b>Command CR</b>
* Moves the print position to the left margin position.
*
* <i>implemented Sep 20, 2005</i>
*
* @author Piotrm
*/
package org.getopt.pcl5.PCL5Interpreter.cmd;
import org.getopt.pcl5.PrinterState;
import org.getopt.pcl5.PCL5Interpreter.ControlCodes;
public class CmdFormFeed extends Co... | 34,629 |
https://github.com/cowtowncoder/ClusterMate/blob/master/clustermate-dropwizard/src/main/java/com/fasterxml/clustermate/jaxrs/StreamingJson.java | Github Open Source | Open Source | Apache-2.0 | 2,017 | ClusterMate | cowtowncoder | Java | Code | 52 | 186 | package com.fasterxml.clustermate.jaxrs;
import java.io.IOException;
import java.io.OutputStream;
import javax.ws.rs.WebApplicationException;
import javax.ws.rs.core.StreamingOutput;
import com.fasterxml.jackson.databind.ObjectWriter;
public class StreamingJson implements StreamingOutput
{
protected final Objec... | 40,185 |
https://github.com/ccx87/fsTest/blob/master/src/pages/home/index.js | Github Open Source | Open Source | MIT | null | fsTest | ccx87 | JavaScript | Code | 70 | 215 | import React, { Component } from 'react';
import BaseLogo from '../common/baseLogo'
import Footer from '../common/footer'
import SearchBar from '../common/searchBar'
import { Tool } from '../../js/config/tool'
export default class Index extends Component {
constructor() {
super();
this.state = {};... | 49,485 |
https://github.com/rostam/gradoop/blob/master/gradoop-temporal/src/test/java/org/gradoop/temporal/util/TimeFormatConversionTest.java | Github Open Source | Open Source | Apache-2.0 | 2,019 | gradoop | rostam | Java | Code | 236 | 620 | /*
* Copyright © 2014 - 2020 Leipzig University (Database Research Group)
*
* 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
*
* Unles... | 44,776 |
https://github.com/emfomy/mcnla/blob/master/include/mcnla/core/matrix/collection/base.hpp | Github Open Source | Open Source | MIT | null | mcnla | emfomy | C++ | Code | 29 | 175 | ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// @file include/mcnla/core/matrix/collection/base.hpp
/// @brief The base container collection wrappers.
///
/// @author Mu Yang <<emfomy@gmail.com>>
///
#ifndef MCNLA_CORE_MATRIX_CO... | 23,483 |
https://github.com/malceore/knave/blob/master/pixi.js-master/test/unit/pixi/loaders/JsonLoader.js | Github Open Source | Open Source | MIT | 2,018 | knave | malceore | JavaScript | Code | 22 | 77 | describe('pixi/loaders/JsonLoader', function () {
'use strict';
var expect = chai.expect;
var JsonLoader = PIXI.JsonLoader;
it('Module exists', function () {
expect(JsonLoader).to.be.a('function');
});
});
| 47,587 |
https://github.com/devdev0100/MD_HelloWorld/blob/master/CastMediaPlayerStreamingDRM-Rachel/mpl.js | Github Open Source | Open Source | Apache-2.0 | 2,015 | MD_HelloWorld | devdev0100 | JavaScript | Code | 3,264 | 9,196 | // Copyright 2014 Google 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
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law... | 32,645 |
https://github.com/smkhalsa/flutter_cache_manager/blob/master/flutter_cache_manager/test/cache_store_test.dart | Github Open Source | Open Source | MIT | 2,020 | flutter_cache_manager | smkhalsa | Dart | Code | 759 | 3,146 | import 'package:file/file.dart';
import 'package:file/memory.dart';
import 'package:flutter_cache_manager/src/cache_store.dart';
import 'package:flutter_cache_manager/src/storage/cache_object.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:mockito/mockito.dart';
import 'package:flutter_cache_man... | 49,637 |
https://github.com/ChirkovRoman/pp_2020_autumn_informatics/blob/master/modules/task_3/kulandin_d_quick_sort_simple/quick_sort.cpp | Github Open Source | Open Source | BSD-3-Clause | null | pp_2020_autumn_informatics | ChirkovRoman | C++ | Code | 464 | 1,474 | // Copyright 2020 Kulandin Denis
#include <mpi.h>
#include <ctime>
#include <iostream>
#include <random>
#include <utility>
#include <vector>
#include "../../../modules/task_3/kulandin_d_quick_sort_simple/quick_sort.h"
std::mt19937 gen(time(0));
std::vector<int> randomVector(int sz) {
std::vector<int> ans(sz);
... | 30,493 |
https://github.com/grzegorz-kraszewski/libvstring/blob/master/src/gcc/freevecpooled.s | Github Open Source | Open Source | MIT | null | libvstring | grzegorz-kraszewski | GAS | Code | 100 | 294 | /****** FreeVecPooled ********************************************************
* NAME
* FreeVecPooled -- frees memory block allocated with AllocVecPooled
* SYNOPSIS
* FreeVecPooled(pool, block)
* A0 A1
*
* void FreeVecPooled(APTR, APTR);
* FUNCTION
* Frees memory block allocated from given me... | 31,626 |
https://github.com/zchajax/WiEngine/blob/master/src/com/wiyun/engine/nodes/RenderTexture.java | Github Open Source | Open Source | MIT | 2,021 | WiEngine | zchajax | Java | Code | 750 | 1,832 | /*
* Copyright (c) 2010 WiYun Inc.
* Author: luma(stubma@gmail.com)
*
* For all entities this program is free software; you can redistribute
* it and/or modify it under the terms of the 'WiEngine' license with
* the additional provision that 'WiEngine' must be credited in a manner
* that can be be observed by en... | 36,124 |
https://github.com/tonykolomeytsev/mospolyhelper-android/blob/master/app/src/main/java/com/mospolytech/mospolyhelper/features/ui/schedule/ids/ScheduleIdsAdapter.kt | Github Open Source | Open Source | MIT | null | mospolyhelper-android | tonykolomeytsev | Kotlin | Code | 184 | 682 | package com.mospolytech.mospolyhelper.features.ui.schedule.ids
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.TextView
import androidx.recyclerview.widget.RecyclerView
import com.mospolytech.mospolyhelper.R
class ScheduleIdsAdapter(
private val idLi... | 49,469 |
https://github.com/mihailj/libyuv-node/blob/master/.npmignore | Github Open Source | Open Source | MIT | 2,020 | libyuv-node | mihailj | Ignore List | Code | 4 | 15 | node_modules/
external/
build/
debug.log | 26,748 |
https://github.com/math-lab/ImageBlendingAlgorithms/blob/master/ImageBlendingAlgorithms/IBALib/Interfaces/IScaleAlgorithm.cs | Github Open Source | Open Source | MIT | 2,019 | ImageBlendingAlgorithms | math-lab | C# | Code | 26 | 81 | using IBALib.Types;
using System;
using System.Collections.Generic;
using System.Text;
namespace IBALib.Interfaces
{
public interface IScaleAlgorithm : IAlgorithm
{
Colour[,] Scale<T>(IMatrix<T> src, int x, int y);
}
}
| 6,761 |
https://github.com/djingwu/hybrid-development/blob/master/clbs/src/main/java/com/zw/ws/impl/WsOilSensorCommandService.java | Github Open Source | Open Source | MIT | 2,021 | hybrid-development | djingwu | Java | Code | 627 | 3,861 | package com.zw.ws.impl;
import com.zw.platform.basic.constant.RedisKeyEnum;
import com.zw.platform.basic.core.RedisHelper;
import com.zw.platform.basic.dto.BindDTO;
import com.zw.platform.commons.SystemHelper;
import com.zw.platform.domain.basicinfo.VehicleInfo;
import com.zw.platform.domain.vas.monitoring.form.T808_0... | 30,014 |
https://github.com/gladguy/js-algorand-sdk/blob/master/tests/cucumber/docker/sdk.py | Github Open Source | Open Source | MIT | null | js-algorand-sdk | gladguy | Python | Code | 62 | 368 | #!/usr/bin/env python3
import subprocess
import sys
default_dirs = {
'features_dir': '/opt/js-algorand-sdk/tests/cucumber/features',
'source': '/opt/js-algorand-sdk',
'docker': '/opt/js-algorand-sdk/tests/cucumber/docker',
'steps': '/opt/js-algorand-sdk/tests/cucumber/steps'
}
def setup_sdk():
"... | 18,821 |
https://github.com/dmba/android-boilerplate/blob/master/app-data/src/release/java/me/dmba/mychecks/data/di/DevDataModule.kt | Github Open Source | Open Source | MIT | null | android-boilerplate | dmba | Kotlin | Code | 50 | 197 | package me.dmba.mychecks.data.di
import dagger.Module
import dagger.Provides
import io.reactivex.Flowable
import me.dmba.mychecks.common.scopes.ForApplication
import me.dmba.mychecks.data.source.remote.ChecksApi
import me.dmba.mychecks.data.source.remote.model.CheckListResponse
/**
* Created by dmba on 6/8/18.
*/
@... | 10,308 |
https://github.com/zyhfish/ClientDependency/blob/master/ClientDependency.Web.Test/Pages/Master.Master.designer.cs | Github Open Source | Open Source | MS-PL | 2,020 | ClientDependency | zyhfish | C# | Code | 334 | 893 | //------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//----------------------------------------... | 50,797 |
https://github.com/FoundationDB/fdb-record-layer/blob/master/fdb-record-layer-core/src/main/java/com/apple/foundationdb/record/query/plan/cascades/properties/NormalizedResidualPredicateProperty.java | Github Open Source | Open Source | Apache-2.0 | 2,023 | fdb-record-layer | FoundationDB | Java | Code | 421 | 1,387 | /*
* NormalizedResidualPredicateProperty.java
*
* This source file is part of the FoundationDB open source project
*
* Copyright 2015-2019 Apple Inc. and the FoundationDB project authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the... | 50,152 |
https://github.com/Kndgy/echthra-bot/blob/master/src/commands/misc/devide.js | Github Open Source | Open Source | MIT | null | echthra-bot | Kndgy | JavaScript | Code | 33 | 100 | module.exports = {
name : 'devide',
description: 'devide integer given as arguments',
aliases:['divide'],
execute(message, args){
const numArgs = args.map(x => parseFloat(x));
const devide = numArgs.reduce((counter, x) => counter /=x);
message.channel.send(`total ${devide}`)
... | 38,529 |
https://github.com/JustTaPo/blobber2/blob/master/client/src/blobs/mainPlayer.js | Github Open Source | Open Source | MIT | 2,018 | blobber2 | JustTaPo | JavaScript | Code | 237 | 740 | import React, { Component } from 'react'
import { UserInput, Directions } from '../eventSources/userInput'
import { GameState } from '../eventSources/gameState'
import { Blob, Vector } from './blob'
export class MainPlayer extends Component {
constructor () {
super()
this.state = {
id: 0,
locati... | 46,267 |
https://github.com/Xioer/php-structures/blob/master/LeetCode/Linked/Linked0202.php | Github Open Source | Open Source | Apache-2.0 | null | php-structures | Xioer | PHP | Code | 125 | 347 | <?php
class ListNode {
public $val = 0;
public $next = null;
function __construct($val) { $this->val = $val; }
}
/**
* 返回倒数第 k 个节点
* Class Linked0202
*/
class Linked0202 {
/**
* @param ListNode $head
* @param Integer $k
* @return Integer
*/
function kthToLast($head, $k)... | 15,167 |
https://github.com/bailingzhl/rothui/blob/master/wow5.0/oUF_SquarePortrait/core.lua | Github Open Source | Open Source | MIT | 2,022 | rothui | bailingzhl | Lua | Code | 159 | 609 |
--addonName and namespace
local addonName, ns = ...
--container
local core = CreateFrame("Frame")
ns.core = core
---------------------------------------------
-- FUNCTIONS
---------------------------------------------
function core:CreateDropShadow(parent,edgeFile,edgeSize,padding)
if pare... | 26,600 |
https://github.com/mpetrun5/vedran/blob/master/internal/controllers/metrics_test.go | Github Open Source | Open Source | Apache-2.0 | null | vedran | mpetrun5 | Go | Code | 601 | 3,285 | package controllers
import (
"bytes"
"context"
"encoding/json"
"errors"
"fmt"
"net/http"
"net/http/httptest"
"testing"
"time"
"github.com/NodeFactoryIo/vedran/internal/auth"
"github.com/NodeFactoryIo/vedran/internal/models"
"github.com/NodeFactoryIo/vedran/internal/repositories"
mocks "github.com/NodeFac... | 4,121 |
https://github.com/SteveGreatApe/RIBs/blob/master/libraries/rib-base/src/test/java/com/badoo/ribs/clienthelper/childaware/ChildAwareImplTest.kt | Github Open Source | Open Source | Apache-2.0 | null | RIBs | SteveGreatApe | Kotlin | Code | 841 | 2,441 | package com.badoo.ribs.clienthelper.childaware
import android.os.Parcelable
import com.badoo.ribs.builder.Builder
import com.badoo.ribs.core.Node
import com.badoo.ribs.core.Rib
import com.badoo.ribs.core.customisation.RibCustomisationDirectoryImpl
import com.badoo.ribs.core.modality.AncestryInfo
import com.badoo.ribs.... | 33,372 |
https://github.com/evanmok2401/Makanbook/blob/master/src/test/java/seedu/address/storage/XmlAdaptedUserReviewTest.java | Github Open Source | Open Source | MIT | null | Makanbook | evanmok2401 | Java | Code | 213 | 1,074 | package seedu.address.storage;
import static org.junit.Assert.assertEquals;
import static seedu.address.logic.commands.CommandTestUtil.VALID_USER_REVIEW;
import static seedu.address.storage.XmlAdaptedUserReview.MISSING_FIELD_MESSAGE_FORMAT;
import org.junit.Test;
import seedu.address.commons.exceptions.IllegalValueE... | 26,547 |
https://github.com/pgu/data-prep/blob/master/dataprep-backend-common/src/main/java/org/talend/dataprep/transformation/pipeline/node/LimitNode.java | Github Open Source | Open Source | Apache-2.0 | 2,018 | data-prep | pgu | Java | Code | 220 | 585 | // ============================================================================
// Copyright (C) 2006-2018 Talend Inc. - www.talend.com
//
// This source code is available under agreement available at
// https://github.com/Talend/data-prep/blob/master/LICENSE
//
// You should have received a copy of the agreement
// al... | 45,826 |
https://github.com/ericbai/textup-frontend/blob/master/tests/unit/utils/photo-test.js | Github Open Source | Open Source | Apache-2.0 | 2,019 | textup-frontend | ericbai | JavaScript | Code | 843 | 2,912 | import * as ImageCompression from 'npm:browser-image-compression'; // needs wildward to override default import
import Constants from 'textup-frontend/constants';
import Ember from 'ember';
import PhotoUtils from 'textup-frontend/utils/photo';
import sinon from 'sinon';
import { mockValidMediaImage } from 'textup-front... | 13,875 |
https://github.com/Interkarma/daggerfall-unity/blob/master/Assets/Prefabs/World/StreamingWorld.prefab.meta | Github Open Source | Open Source | MIT | 2,023 | daggerfall-unity | Interkarma | Unity3D Asset | Code | 6 | 42 | fileFormatVersion: 2
guid: bbe5e15c9f6b3dc47bb9485a437750a0
NativeFormatImporter:
userData:
| 30,761 |
https://github.com/scottmac/hiphop-php/blob/master/src/cpp/base/thread_info.cpp | Github Open Source | Open Source | PHP-3.01, Zend-2.0 | 2,019 | hiphop-php | scottmac | C++ | Code | 150 | 416 | /*
+----------------------------------------------------------------------+
| HipHop for PHP |
+----------------------------------------------------------------------+
| Copyright (c) 2010 Facebook, Inc. (http://www.facebook.com) |
+---------... | 45,914 |
https://github.com/cyphyhouse/CyPyHous3/blob/master/src/harness/msg_create.py | Github Open Source | Open Source | MIT | 2,019 | CyPyHous3 | cyphyhouse | Python | Code | 593 | 1,700 | # Copyright (c) 2019 CyPhyHouse. All Rights Reserved.
import src.datatypes.message_types as mt
import src.objects.message as message
def round_update_msg_create(pid: int, round_num: int, ts: float) -> message.Message:
"""
create message to update round
:param pid: agent pid that is ready to update round... | 50,369 |
https://github.com/ArchimedesDigital/spotlight/blob/master/spec/factories/featured_images.rb | Github Open Source | Open Source | Apache-2.0 | null | spotlight | ArchimedesDigital | Ruby | Code | 31 | 162 | FactoryBot.define do
factory :featured_image, class: Spotlight::FeaturedImage do
image { Rack::Test::UploadedFile.new(File.expand_path(File.join('..', 'fixtures', 'avatar.png'), __dir__)) }
iiif_tilesource 'https://exhibits-stage.stanford.edu/images/78'
end
factory :masthead, class: Spotlight::Masthead d... | 46,536 |
https://github.com/shakeyourbunny/appget/blob/master/src/AppGet.Tests/Infrastructure/Composition/ContainerBuilderFixture.cs | Github Open Source | Open Source | Apache-2.0 | 2,022 | appget | shakeyourbunny | C# | Code | 170 | 757 | using System;
using System.Linq;
using AppGet.Commands;
using AppGet.CreatePackage.Installer;
using AppGet.CreatePackage.Root;
using AppGet.FileTransfer;
using AppGet.Infrastructure.Composition;
using AppGet.Installers.InstallerWhisperer;
using AppGet.Installers.UninstallerWhisperer;
using DryIoc;
using FluentAssertio... | 19,186 |
https://github.com/aherbst-broad/terra-interoperability-model/blob/master/releases/1.x/terra-core/TerraCoreDataModel.ttl | Github Open Source | Open Source | BSD-3-Clause | 2,021 | terra-interoperability-model | aherbst-broad | Turtle | Code | 5,700 | 20,215 | # baseURI: https://datamodel.terra.bio/TerraCore
# imports: https://datamodel.terra.bio/imports/EFO_subset
# imports: https://datamodel.terra.bio/imports/NCBITaxon_Organisms_subset
# imports: https://datamodel.terra.bio/imports/OBI_assay_subset
# imports: https://datamodel.terra.bio/imports/OBI_core
# imports: https://... | 14,250 |
https://github.com/twocatsinatrenchcoat/code-golf/blob/master/js/codemirror-legacy/_clike.js | Github Open Source | Open Source | MIT | 2,022 | code-golf | twocatsinatrenchcoat | JavaScript | Code | 2,067 | 5,623 | // CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: https://codemirror.net/LICENSE
(function(mod) {
mod(require("./_codemirror"));
})(function(CodeMirror) {
"use strict";
function Context(indented, column, type, info, align, prev) {
this.indented = indented;
this.col... | 41,734 |
https://github.com/zackcl/UpGrade/blob/master/backend/packages/Upgrade/src/api/controllers/validators/MarkExperimentValidator.ts | Github Open Source | Open Source | BSD-3-Clause | 2,022 | UpGrade | zackcl | TypeScript | Code | 34 | 106 | import { IsNotEmpty, IsDefined } from 'class-validator';
export class MarkExperimentValidator {
public partitionId: string | undefined;
@IsNotEmpty()
@IsDefined()
public experimentPoint: string;
@IsNotEmpty()
@IsDefined()
public userId: string;
@IsNotEmpty()
@IsDefined()
public condition: string... | 50,189 |
https://github.com/ArshanAlam/sandbox/blob/master/algorithms-data-structures/ctci/04.Trees.and.Graphs/Graph/Graph.h | Github Open Source | Open Source | Apache-2.0 | 2,023 | sandbox | ArshanAlam | C++ | Code | 141 | 308 | /**
* Graph
*
* A template for a graph.
*/
#ifndef __GRAPH_H__
#define __GRAPH_H__
using namespace std;
#include <vector>
typedef struct GraphNode {
int data;
vector<GraphNode *> children;
} GraphNode;
typedef bool (*searchCallback)(GraphNode *);
class Graph {
private:
vector<GraphNode *> vertices;
... | 41,023 |
https://github.com/wodor/printshop/blob/master/src/WodorNet/PrintShopBundle/Command/MachineModelAddCommand.php | Github Open Source | Open Source | MIT | 2,014 | printshop | wodor | PHP | Code | 141 | 587 | <?php
namespace WodorNet\PrintShopBundle\Command;
use Doctrine\Common\Persistence\ObjectRepository;
use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterf... | 35,689 |
https://github.com/lexand/micro-api-framework/blob/master/tests/units/DispatcherTest.php | Github Open Source | Open Source | MIT | 2,019 | micro-api-framework | lexand | PHP | Code | 198 | 841 | <?php
/**
* Created by IntelliJ IDEA.
* User: alex
* Date: 22.07.17
* Time: 16:01
*/
namespace microapi;
use app\controller\Adminest6547586Ctl;
use app\controller\Test6547586Ctl;
use GuzzleHttp\Psr7\ServerRequest;
use microapi\event\Event;
use microapi\http\DefaultResponseFactory;
use microapi\util\Tokenizer;
us... | 9,588 |
https://github.com/StephenBrown2/typer/blob/master/typer/models.py | Github Open Source | Open Source | MIT | null | typer | StephenBrown2 | Python | Code | 999 | 3,262 | import io
from typing import (
TYPE_CHECKING,
Any,
Callable,
Dict,
List,
Optional,
Sequence,
Type,
TypeVar,
Union,
)
import click
if TYPE_CHECKING: # pragma: no cover
from .main import Typer # noqa
NoneType = type(None)
AnyType = Type[Any]
Required = ...
class Conte... | 758 |
https://github.com/AhmedHawam9/ANPA/blob/master/database/factories/Models/CourseCurriculumFactory.php | Github Open Source | Open Source | MIT | null | ANPA | AhmedHawam9 | PHP | Code | 64 | 216 | <?php
namespace Database\Factories;
use Illuminate\Database\Eloquent\Factories\Factory;
use Illuminate\Support\Str;
use App\Course;
use App\Models\CourseCurriculum;
class CourseCurriculumFactory extends Factory
{
/**
* The name of the factory's corresponding model.
*
* @var string
*/
prot... | 34,016 |
https://github.com/polyfloyd/go-errorlint/blob/master/errorlint/testdata/src/fmterrorf-go1.19/github-36.go | Github Open Source | Open Source | MIT | 2,023 | go-errorlint | polyfloyd | Go | Code | 60 | 178 | package issues
import (
"errors"
"fmt"
)
func Single() error {
err1 := errors.New("oops1")
err2 := errors.New("oops2")
err3 := errors.New("oops3")
return fmt.Errorf("%w, %v, %v", err1, err2, err3)
}
func Multiple() error {
err1 := errors.New("oops1")
err2 := errors.New("oops2")
err3 := errors.New("oops3")
... | 19,203 |
https://github.com/jdhenke/pad/blob/master/js/worker.js | Github Open Source | Open Source | MIT | 2,014 | pad | jdhenke | JavaScript | Code | 1,255 | 2,678 | // web worker responsible for heavy lifting of computing diffs. useful because
// off of the UI thread, so delays don't 1) slow down a live interface 2) force
// the UI to be locked for a long time.
// globally define git utility functions: getDiff, rebase, applyDiff
importScripts("/js/git.js");
// current state of t... | 39,114 |
https://github.com/ZhenchaoWang/passport-oauth/blob/master/oauth-token/src/main/java/org/zhenchao/oauth/token/MacAccessToken.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | passport-oauth | ZhenchaoWang | Java | Code | 92 | 317 | package org.zhenchao.oauth.token;
import org.zhenchao.oauth.token.enums.TokenType;
/**
* mac type access token
*
* @author zhenchao.wang 2017-01-23 17:56
* @version 1.0.0
*/
public class MacAccessToken extends AbstractAccessToken {
public enum ALGORITHM {
HMAC_SHA_1("hmac-sha-1"),
HMAC_SHA_... | 8,785 |
https://github.com/action-hong/unocss/blob/master/packages/vscode/src/annonation.ts | Github Open Source | Open Source | MIT | 2,022 | unocss | action-hong | TypeScript | Code | 313 | 1,102 | import { relative } from 'path'
import type { DecorationOptions, ExtensionContext, StatusBarItem } from 'vscode'
import { DecorationRangeBehavior, MarkdownString, Range, window, workspace } from 'vscode'
import type { UnocssPluginContext } from '@unocss/core'
import { INCLUDE_COMMENT_IDE, getMatchedPositions } from './... | 10,749 |
https://github.com/dbaba4u/cfresh/blob/master/resources/views/admin/customers/customer_balance_pdfview.blade.php | Github Open Source | Open Source | MIT | null | cfresh | dbaba4u | PHP | Code | 343 | 1,883 | <?php
$settings = \App\Setting::where('id',1)->first();
$first = \App\Box::all()->first()->id;
$last = \App\Box::all()->last()->id;
$cases = \App\Box::all();
?>
<!DOCTYPE html>
<html lang="en">
<head>
{{-- <meta charset="UTF-8">--}}
{{-- <meta name="viewport" content="width=device-width, initial-scale=1.0">-... | 37,521 |
https://github.com/frib-high-level-controls/save-set-restore/blob/master/plugins/org.csstudio.saverestore/src/org/csstudio/saverestore/Utilities.java | Github Open Source | Open Source | MIT | 2,016 | save-set-restore | frib-high-level-controls | Java | Code | 5,176 | 13,278 | /*
* This software is Copyright by the Board of Trustees of Michigan
* State University (c) Copyright 2016.
*
* Contact Information:
* Facility for Rare Isotope Beam
* Michigan State University
* East Lansing, MI 48824-1321
* http://frib.msu.edu
*/
package org.csstudio.saverestore;
import java.text.Da... | 26,435 |
https://github.com/mrhuigou/web/blob/master/h5/views/user/bind-telephone.php | Github Open Source | Open Source | BSD-3-Clause | null | web | mrhuigou | PHP | Code | 119 | 582 | <?php
/**
* Created by PhpStorm.
* User: mac
* Date: 2017/4/19
* Time: 10:40
*/
use yii\helpers\Html;
use yii\bootstrap\ActiveForm;
$this->title="验证手机";
?>
<div class="tc p20 f14">
<img src="<?=\common\component\image\Image::resize(Yii::$app->user->identity->photo,120,120)?>" width="120" height="120" class="img-c... | 10,695 |
https://github.com/drpietz/sunaware/blob/master/src/page/user/SunClock/AllowanceClock/AllowanceClock.js | Github Open Source | Open Source | MIT | null | sunaware | drpietz | JavaScript | Code | 201 | 803 | import React, {Component} from 'react'
import {bindActionCreators} from 'redux'
import {connect} from 'react-redux'
import {synchronizeAllowance} from "../../../../actions/uvTimer";
class AllowanceClock extends Component {
constructor(props) {
super(props)
this.state = {
text: '0 minutes'
}
}
component... | 21,663 |
https://github.com/i-gaven/Just_a_dumper/blob/master/all_headers/百度地图-出行导航必备的智能路线规划软件-10.6.5(越狱应用)_headers/BMTraceRecordItem.h | Github Open Source | Open Source | MIT | 2,018 | Just_a_dumper | i-gaven | Objective-C | Code | 83 | 316 | //
// Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 17 2017 16:24:48).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by Steve Nygard.
//
#import <UIKit/UIView.h>
@class BMMaterialDesignButton, UIImageView, UILabel;
@interface BMTraceRecordItem : UIView
{
UIImageView... | 4,011 |
https://github.com/jponge/playground-go-microservices/blob/master/pulsar/run-pulsar-in-docker.sh | Github Open Source | Open Source | MIT | null | playground-go-microservices | jponge | Shell | Code | 15 | 83 | #!/bin/sh
docker run -it -p 6650:6650 -p 8080:8080 --mount source=pulsardata,target=/pulsar/data --mount source=pulsarconf,target=/pulsar/conf apachepulsar/pulsar:2.9.1 bin/pulsar standalone
| 30,305 |
https://github.com/carlosmiranda/s3auth/blob/master/s3auth-hosts/src/main/java/com/s3auth/hosts/H2DomainStatsData.java | Github Open Source | Open Source | BSD-3-Clause | null | s3auth | carlosmiranda | Java | Code | 735 | 1,889 | /**
* Copyright (c) 2012-2017, s3auth.com
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met: 1) Redistributions of source code must retain the above
* copyright notice, this list of conditio... | 20,846 |
https://github.com/m1ndcoderr/learning_java/blob/master/chapter_011/mvc/src/main/java/ru/evgenyhodz/controller/MainController.java | Github Open Source | Open Source | Apache-2.0 | null | learning_java | m1ndcoderr | Java | Code | 301 | 986 | package ru.evgenyhodz.controller;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.anno... | 34,767 |
https://github.com/ajvarela/amadeus-exploit/blob/master/fm/models/paper_JSS/evaluation_performance/CVE-2017-6102.afm | Github Open Source | Open Source | MIT | 2,022 | amadeus-exploit | ajvarela | Adobe Font Metrics | Code | 35 | 296 | # vul_description: Persistent XSS in wordpress plugin rockhoist_badges v1.2.2.
%Relationships
CVE_2017_6102: types sources exploits rockhoist__badges__project;
types: application;
sources: nvd;
exploits: [direct] [indirect];
rockhoist__badges__project: rockhoist__badges__project_rockhoist__badges__plugin;
rockhois... | 6,999 |
https://github.com/nandansn/seleniumlab/blob/master/src/main/java/com/nanda/testlab/selenium/page/IndeedHomePage.java | Github Open Source | Open Source | MIT | null | seleniumlab | nandansn | Java | Code | 263 | 913 | /**
*
*/
package com.nanda.testlab.selenium.page;
import java.io.FileNotFoundException;
import org.apache.log4j.Logger;
import org.openqa.selenium.support.FindBy;
import com.google.gson.JsonIOException;
import com.google.gson.JsonSyntaxException;
import com.nanda.testlab.selenium.page.element.Button;
import com.n... | 9,718 |
https://github.com/Shuvayu/DevPracticeBox/blob/master/ENET MVC/EnetMVC/DAL/DAL/Website/ViewModels/DistributionViewModel.cs | Github Open Source | Open Source | MIT | 2,016 | DevPracticeBox | Shuvayu | C# | Code | 93 | 188 | using System;
using System.ComponentModel.DataAnnotations;
namespace Website.ViewModels
{
/// <summary>
/// Model Distribution
/// Have the setters for the Distribution DB
/// </summary>
public class DistributionViewModel
{
public int DistributionId { get; set; }
publi... | 48,286 |
https://github.com/ParishConnect/ui/blob/master/src/Icon/generated/Book.tsx | Github Open Source | Open Source | MIT | null | ui | ParishConnect | TypeScript | Code | 55 | 218 | import React from 'react'
import { Icon, IconProps } from '../Icon'
export function BookIcon(props: IconProps) {
return (
<Icon xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" {...props}>
<path
d="M21 23.25H5.25A2.25 2.25 0 013 21M6 .75a3 3 0 00-3 3V21a2.25 2.25 0 012.25-2.25h15A.75.75 0 0021... | 36,063 |
https://github.com/svanichkin/Feedback/blob/master/Classes/ios/Feedback.h | Github Open Source | Open Source | Apache-2.0 | null | Feedback | svanichkin | C | Code | 208 | 556 | //
// Feedback.h
// Version 1.4
//
// Created by Sergey Vanichkin on 15.02.2018.
// Copyright © 2018 Sergey Vanichkin. 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 Lic... | 6,499 |
https://github.com/qwtel/redux-switch-action/blob/master/test/index.spec.js | Github Open Source | Open Source | MIT | null | redux-switch-action | qwtel | JavaScript | Code | 192 | 553 | import expect from 'expect';
import createSwitchAction from '../src';
describe('createSwitchAction', () => {
it('should exist', () => {
expect(typeof createSwitchAction !== 'undefined').toBe(true);
});
const ADD = 'ADD';
const SUB = 'SUB';
const OTHER = 'OTHER';
const INC = 'INC';
const RETURN_THIS ... | 21,861 |
https://github.com/jiangmichaellll/java-pubsublite/blob/master/pubsublite-beam-io/src/main/java/com/google/cloud/pubsublite/beam/AddUuidsTransform.java | Github Open Source | Open Source | Apache-2.0 | null | java-pubsublite | jiangmichaellll | Java | Code | 164 | 554 | /*
* 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | 34,306 |
https://github.com/lesleyhaha/REGNet_for_3D_Grasping/blob/master/utils.py | Github Open Source | Open Source | MIT | 2,022 | REGNet_for_3D_Grasping | lesleyhaha | Python | Code | 1,602 | 8,644 | import os
import numpy as np
import time
import pickle
import transforms3d
import torch
from tensorboardX import SummaryWriter
import torch.utils.data
import torch.nn as nn
import torch.nn.functional as F
import torch.optim as optim
from torch.optim.lr_scheduler import StepLR, MultiStepLR
from dataset_utils.scoredat... | 18,649 |
https://github.com/mylibero/rv-monitor/blob/master/rv-monitor/src/main/java/com/runtimeverification/rvmonitor/java/rvj/parser/ast/visitor/DumpVisitor.java | Github Open Source | Open Source | MIT | 2,021 | rv-monitor | mylibero | Java | Code | 585 | 2,101 | /*
* Copyright (C) 2008 Feng Chen.
*
* This file is part of RV Monitor parser.
*
* RV Monitor is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your optio... | 34,473 |
https://github.com/sanaullah099/fullstack/blob/master/resources/js/components/about.vue | Github Open Source | Open Source | MIT | null | fullstack | sanaullah099 | Vue | Code | 23 | 87 | <template>
<div>
<navbar-component />
<router-link to="/example"> Back to example</router-link>
<router-link to="/test"> go to sana page </router-link>
<h1>Welcome to about us page</h1>
</div>
</template> | 48,859 |
https://github.com/georgiachr/app-based-on-md/blob/master/tasks/config/jsdocs.js | Github Open Source | Open Source | MIT | null | app-based-on-md | georgiachr | JavaScript | Code | 67 | 243 | /**
* Clean files and folders.
*
* ---------------------------------------------------------------
*
* This grunt task is configured to clean out the contents in the .tmp/public of your
* sails project.
*
* For usage docs see:
* https://github.com/gruntjs/grunt-contrib-clean
*/
module.exports = function(gru... | 4,840 |
https://github.com/Teravus/RebootTechChatBot/blob/master/TwitchLib.Api/TwitchLib.Api.Helix.Models/Common/Pagination.cs | Github Open Source | Open Source | MIT | 2,021 | RebootTechChatBot | Teravus | C# | Code | 22 | 66 | using Newtonsoft.Json;
namespace TwitchLib.Api.Helix.Models.Common
{
public class Pagination
{
[JsonProperty(PropertyName = "cursor")]
public string Cursor { get; protected set; }
}
}
| 19,551 |
https://github.com/tranek/coh2_rgt_extractor/blob/master/coh2_rgt_extractor/Rainman_src/gnuc_defines.cpp | Github Open Source | Open Source | MIT | 2,016 | coh2_rgt_extractor | tranek | C++ | Code | 373 | 823 | /*
Rainman Library
Copyright (C) 2006 Corsix <corsix@gmail.com>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This ... | 6,539 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.