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/andyljones/commutes-and-rent-preprocessor/blob/master/src/main/java/io/github/andyljones/commutesandrent/rentpreprocessor/RentFinder.java | Github Open Source | Open Source | Apache-2.0 | null | commutes-and-rent-preprocessor | andyljones | Java | Code | 257 | 801 | package io.github.andyljones.commutesandrent.rentpreprocessor;
import java.io.IOException;
import java.io.InputStream;
import java.nio.charset.Charset;
import java.util.HashMap;
import java.util.Map;
import java.util.Optional;
import com.csvreader.CsvReader;
/**
* Associates Local Authority District codes with an a... | 52,343 |
https://github.com/mogria/void.php/blob/master/lib/View/VoidViewRenderer.php | Github Open Source | Open Source | MIT | 2,012 | void.php | mogria | PHP | Code | 286 | 783 | <?php
namespace Void;
class VoidViewRenderer extends PHPViewRenderer {
/**
* return extension of files this renderer is responsible for
*
*/
public function getExtension() {
return "tpl";
}
/**
* render a .tpl file
*
* @return string - rendered content
*/
public function render() {... | 25,737 |
https://github.com/joker69216/Dice/blob/master/Dice.cpp | Github Open Source | Open Source | Apache-2.0 | null | Dice | joker69216 | C++ | Code | 683 | 4,666 | #include <iostream>
#include <ctime>
#include <iomanip>
#include <windows.h>
using namespace std;
int calldice1()
{
int dice1;
retry1:
srand(time(NULL));
dice1=rand()%7;
if(dice1==0)
goto retry1;
return dice1;
}
/////////////////////////////////////////////////////
int calldice2()
{ int ... | 56,449 |
https://github.com/MuhammadKaram/OneFitnessVue/blob/master/OneFitnessVueSolution/OneFitnessVue.Web/Areas/Service/Controllers/DashboardController.cs | Github Open Source | Open Source | MIT | 2,021 | OneFitnessVue | MuhammadKaram | C# | Code | 229 | 1,182 | using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Newtonsoft.Json;
using OneFitnessVue.Common;
using OneFitnessVue.Common.Notification;
using OneFitnessVue.Data.Enquiry.Queries;
using OneFitnessVue.Data.Reporting.Queries;
using OneFitnessVue.Data.UserMaster.Queries;
using OneFitnessVue.ViewModel.D... | 23,131 |
https://github.com/abhi608/meetingRoomApp/blob/master/meetingroomapp/src/main/java/com/visa/prj/service/AdminService.java | Github Open Source | Open Source | MIT | null | meetingRoomApp | abhi608 | Java | Code | 592 | 2,249 | package com.visa.prj.service;
import java.util.Date;
import java.util.List;
import javax.swing.JOptionPane;
import javax.transaction.Transactional;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.visa.prj.dao.AdminDao;
import com.visa.prj.dao... | 33,975 |
https://github.com/agungdh/test-ajax/blob/master/assets/build/less/mailbox.less | Github Open Source | Open Source | MIT | 2,015 | test-ajax | agungdh | Less | Code | 142 | 503 | /*
* Page: Mailbox
* -------------
*/
.mailbox-messages {
> .table {
margin: 0;
}
}
.mailbox-controls {
padding: 5px;
&.with-border {
border-bottom: 1px solid @box-border-color;
}
}
.mailbox-read-info {
border-bottom: 1px solid @box-border-color;
padding: 10px;
h3 {
font-size: 20px;
m... | 35,159 |
https://github.com/p3ol/pay-ngx-example/blob/master/src/index.js | Github Open Source | Open Source | MIT | null | pay-ngx-example | p3ol | JavaScript | Code | 15 | 59 | import 'zone.js';
import 'core-js/es7/reflect';
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
import App from './modules/App';
platformBrowserDynamic().bootstrapModule(App);
| 12,349 |
https://github.com/anehx/ember-parachute/blob/master/addon/query-params.js | Github Open Source | Open Source | MIT | 2,021 | ember-parachute | anehx | JavaScript | Code | 768 | 2,073 | import Mixin from '@ember/object/mixin';
import { assign } from '@ember/polyfills';
import { assert } from '@ember/debug';
import { isPresent, isEmpty } from '@ember/utils';
import { setProperties, computed, set, get } from '@ember/object';
import { HAS_PARACHUTE, PARACHUTE_META } from './-private/symbols';
import Para... | 20,486 |
https://github.com/mmalec/ProtokolWZ/blob/master/app/js/osoba.js | Github Open Source | Open Source | MIT, Apache-2.0 | 2,014 | ProtokolWZ | mmalec | JavaScript | Code | 324 | 1,326 | /*
* 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.
*/
var osoba = {
id: "",
type: 'osoba',
data_utworzenia: '',
data_modyfikacji: '',
imiona: '',
nazwisko: '',
... | 48,934 |
https://github.com/Nyjhon/bomberos-calama/blob/master/app/Exports/auxilio_excel.php | Github Open Source | Open Source | MIT | 2,021 | bomberos-calama | Nyjhon | PHP | Code | 505 | 2,309 | <?php
namespace App\Exports;
use Carbon\Carbon;
use App\Modelos\auxilio;
use Maatwebsite\Excel\Concerns\FromQuery;
use Maatwebsite\Excel\Concerns\Exportable;
use Maatwebsite\Excel\Concerns\WithEvents;
use Maatwebsite\Excel\Concerns\WithCustomStartCell;
use Maatwebsite\Excel\Concerns\WithMapping;
use Maatwebsite\Excel... | 218 |
https://github.com/velocist/TS4CheatsInfo/blob/master/Scripts/simulation/whims/whim_modifiers.py | Github Open Source | Open Source | Apache-2.0 | null | TS4CheatsInfo | velocist | Python | Code | 194 | 884 | # uncompyle6 version 3.7.4
# Python bytecode 3.7 (3394)
# Decompiled from: Python 3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 18:58:18) [MSC v.1900 64 bit (AMD64)]
# Embedded file name: T:\InGame\Gameplay\Scripts\Server\whims\whim_modifiers.py
# Compiled at: 2020-10-08 02:43:22
# Size of source mod 2**32: 3151 bytes
fr... | 23,975 |
https://github.com/charleshansen/chorus/blob/master/app/models/events/schema_import_failed.rb | Github Open Source | Open Source | LicenseRef-scancode-warranty-disclaimer, Apache-2.0 | 2,013 | chorus | charleshansen | Ruby | Code | 27 | 95 | require 'events/base'
module Events
class SchemaImportFailed < Base
has_targets :source_dataset, :dataset
has_activities :actor, :source_dataset, :dataset
has_additional_data :destination_table, :schema_id, :error_message
def schema
@schema ||= Schema.find(schema_id)
end
end
end | 22,037 |
https://github.com/STORM-IRIT/algebraic-shape-operator/blob/master/figures/src/PCP/SpacePartitioning/KdTree/Iterator/KdTreeKNearestIndexIterator.cpp | Github Open Source | Open Source | MIT | 2,022 | algebraic-shape-operator | STORM-IRIT | C++ | Code | 56 | 252 | #include <PCP/SpacePartitioning/KdTree/Iterator/KdTreeKNearestIndexIterator.h>
namespace pcp {
KdTreeKNearestIndexIterator::KdTreeKNearestIndexIterator() :
m_iterator()
{
}
KdTreeKNearestIndexIterator::KdTreeKNearestIndexIterator(limited_priority_queue<IndexSquaredDistance>::iterator iterator) :
m_iterator(i... | 7,606 |
https://github.com/fetteradler/Getaviz/blob/master/generator/org.svis.generator.tests/testdata/android_phone/input/src/InCallControlState.java | Github Open Source | Open Source | Apache-2.0 | null | Getaviz | fetteradler | Java | Code | 957 | 2,305 | /*
* Copyright (C) 2009 The Android Open Source Project
*
* 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 app... | 20,334 |
https://github.com/AbdulrahmanKab/carear_control_panel/blob/master/app/Http/Controllers/Admin/OrdersController.php | Github Open Source | Open Source | MIT | 2,021 | carear_control_panel | AbdulrahmanKab | PHP | Code | 94 | 398 | <?php
namespace App\Http\Controllers\Admin;
use App\Http\Controllers\Controller;
use App\Models\Orders;
use Illuminate\Database\Eloquent\ModelNotFoundException;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\DB;
class OrdersController extends Controller
{
public function index(Request $request){
... | 9,948 |
https://github.com/shamazmazum/cl-serial/blob/master/serial-lowlevel-sbcl.lisp | Github Open Source | Open Source | BSD-2-Clause | 2,019 | cl-serial | shamazmazum | Common Lisp | Code | 317 | 1,449 | (in-package :serial-lowlevel)
(eval-when (:compile-toplevel :load-toplevel)
(require 'sb-posix))
(define-condition termios-error (serial-error)
((errno :reader termios-errno
:initarg :errno)
(name :reader termios-name
:initarg :name))
(:report (lambda (c s)
(let ((errno (te... | 39,620 |
https://github.com/TanninOne/bbcode-to-react/blob/master/src/__tests__/hr.test.js | Github Open Source | Open Source | MIT | 2,022 | bbcode-to-react | TanninOne | JavaScript | Code | 34 | 110 | import React from 'react';
import { shallow } from 'enzyme';
import parser from '../';
describe('[hr]', () => {
it('should parse [hr] to react', () => {
const wrapper = shallow(<div>{parser.toReact('[hr]')}</div>);
expect(wrapper.text()).toBe('');
expect(wrapper.html()).toBe('<div><hr/></div>');
});
... | 32,682 |
https://github.com/sdisk/springSourceCode/blob/master/spring-context-support/src/main/java/org/springframework/cache/jcache/interceptor/CachePutOperation.java | Github Open Source | Open Source | Apache-2.0 | null | springSourceCode | sdisk | Java | Code | 391 | 983 | /*
* Copyright 2002-2018 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | 29,252 |
https://github.com/stereoboy/deep-reinforcement-learning/blob/master/p1_navigation/pixel/test.py | Github Open Source | Open Source | MIT | null | deep-reinforcement-learning | stereoboy | Python | Code | 186 | 664 | from unityagents import UnityEnvironment
import numpy as np
import random
from collections import deque
import matplotlib.pyplot as plt
import logging
logging.basicConfig(level=logging.NOTSET)
logger = logging.getLogger("unityagents")
#logger.setLevel(logging.NOTSET)
logger.propagate = False
env = UnityEnvironment(fi... | 44,596 |
https://github.com/lloda/slatec-bessel-c-/blob/master/f2c/zuni2.cpp | Github Open Source | Open Source | CC0-1.0 | 2,021 | slatec-bessel-c- | lloda | C++ | Code | 1,624 | 4,289 | /* zuni2.f -- translated by f2c (version 20100827).
This file no longer depends on f2c.
*/
#include "slatec-internal.hpp"
/* Table of constant values */
static integer const c__1 = 1;
static integer const c__0 = 0;
static integer const c__2 = 2;
int zuni2_(double *zr, double *zi, double const *fnu,
integer cons... | 37,852 |
https://github.com/spokestack/spokestack.io/blob/master/src/components/homepage/ProblemCard.tsx | Github Open Source | Open Source | MIT | 2,021 | spokestack.io | spokestack | TypeScript | Code | 163 | 569 | import { css } from '@emotion/react'
import React from 'react'
import * as theme from '../../styles/theme'
interface Props {
description: string
full?: boolean
image: React.ReactNode
title: string
}
export default function ProblemCard({
description,
full,
image,
title
}: Props) {
return (
<div c... | 55,231 |
https://github.com/sohilpandya/learn_aws/blob/master/tests/tests.js | Github Open Source | Open Source | MIT | 2,015 | learn_aws | sohilpandya | JavaScript | Code | 7 | 28 | 'use strict';
(function() {
console.log('hahahaha, tests!');
})(); | 54,523 |
https://github.com/LaudateCorpus1/RosettaCodeData/blob/master/Task/Flatten-a-list/Elm/flatten-a-list.elm | Github Open Source | Open Source | Info-ZIP | 2,018 | RosettaCodeData | LaudateCorpus1 | null | Spoken | 98 | 190 | import Graphics.Element exposing (show)
type Tree a
= Leaf a
| Node (List (Tree a))
flatten : Tree a -> List a
flatten tree =
case tree of
Leaf a -> [a]
Node list -> List.concatMap flatten list
-- [[1], 2, [[3, 4], 5], [[[]]], [[[6]]], 7, 8, []]
tree : Tree Int
tree = Node
[ Node [Leaf 1]
, Leaf 2
... | 7,150 |
https://github.com/soa4java/haven-platform/blob/master/common/common-utils/src/main/java/com/codeabovelab/dm/common/format/FormatterException.java | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-warranty-disclaimer | 2,017 | haven-platform | soa4java | Java | Code | 184 | 364 | /*
* Copyright 2016 Code Above Lab 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 agr... | 16,303 |
https://github.com/piotrmurach/tty-sparkline/blob/master/examples/color.rb | Github Open Source | Open Source | MIT | 2,022 | tty-sparkline | piotrmurach | Ruby | Code | 70 | 247 | # frozen_string_literal: true
require "pastel"
require_relative "../lib/tty-sparkline"
pastel = Pastel.new
data = Array.new(120) { rand(100) }
min, max = data.minmax
avg = data.sum.fdiv(data.size)
sparkline = TTY::Sparkline.new(data, height: 6)
chart = sparkline.render do |val, bar, col, row|
if val == max
... | 42,820 |
https://github.com/HACC17/The-Progress-Bars/blob/master/Rakefile | Github Open Source | Open Source | MIT | 2,017 | The-Progress-Bars | HACC17 | Ruby | Code | 52 | 150 | # Add your own tasks in files placed in lib/tasks ending in .rake,
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
require_relative 'config/application'
Rails.application.load_tasks
namespace :import_incidents_csv do
task :create_incidents => :environment do
csv_text... | 26,891 |
https://github.com/PrincessMadMath/Bomberjam-Bot/blob/master/bot/Bot/MacBot.cs | Github Open Source | Open Source | MIT | null | Bomberjam-Bot | PrincessMadMath | C# | Code | 51 | 152 | using MyBot.Bomberjam;
namespace MyBot.Bot
{
public class MacBot
{
public BotAction PlayTurn(State state, Player myPlayer)
{
var targetX = state.Width / 2;
var targetY = state.Height / 2;
var (isCompleted, botAction, distance) = PathSolver.DoSomething(state... | 53,843 |
https://github.com/octokit/octokit.net/blob/master/Octokit/Models/Common/PackageVersionState.cs | Github Open Source | Open Source | MIT | 2,023 | octokit.net | octokit | C# | Code | 39 | 104 | using Octokit.Internal;
namespace Octokit
{
public enum PackageVersionState
{
/// <summary>
/// Package version which is active
/// </summary>
[Parameter(Value = "active")]
Active,
/// <summary>
/// Package version whic is deleted
/// </... | 32,248 |
https://github.com/luizcarraro/atom-config/blob/master/packages/satisfy-dependencies/node_modules/pnpm/lib/node_modules/pnpm-logger/lib/index.js | Github Open Source | Open Source | MIT | 2,018 | atom-config | luizcarraro | JavaScript | Code | 17 | 55 | "use strict";
const bole = require("bole");
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = bole('pnpm');
//# sourceMappingURL=index.js.map | 45,148 |
https://github.com/p4scu41/sail/blob/master/ajax/getClaveEdo.php | Github Open Source | Open Source | Apache-2.0 | 2,014 | sail | p4scu41 | PHP | Code | 50 | 257 | <?PHP
session_start();
require_once('../include/var_global.php');
require_once('../include/bdatos.php');
require_once('../include/log.php');
if(isset($_SESSION[ID_USR_SESSION]))
{
$connectionBD = conectaBD();
if($connectionBD === FALSE)
die('<br /><div align="center" class="error_sql"><strong>ERROR:... | 49,618 |
https://github.com/ahimsian/themekit/blob/master/src/env/env_test.go | Github Open Source | Open Source | MIT | null | themekit | ahimsian | Go | Code | 269 | 1,037 | package env
import (
"fmt"
"path/filepath"
"runtime"
"testing"
"time"
"github.com/stretchr/testify/assert"
)
func TestEnvNew(t *testing.T) {
env, _ := newEnv("", Env{})
assert.Equal(t, Default, *env)
osEnv := Env{
Name: "Foobar",
Password: "password",
ThemeID: "themeid",
Domain: ... | 768 |
https://github.com/heyitscalixto/popbids/blob/master/elements/crumb_user.ctp | Github Open Source | Open Source | Apache-2.0 | null | popbids | heyitscalixto | PHP | Code | 14 | 58 | <div class="crumb">
<a href="/users"><?php echo @$j['user_side_menu_top']; ?></a>
<?php echo $html->getCrumbs(' » '); ?>
</div> | 4,553 |
https://github.com/WilderPereira/lmgtfyGen/blob/master/app/src/main/java/com/wilderpereira/lmgtfygen/domain/repository/UrlShortenerApi.kt | Github Open Source | Open Source | Apache-2.0 | 2,017 | lmgtfyGen | WilderPereira | Kotlin | Code | 35 | 162 | package com.wilderpereira.lmgtfygen.domain.repository
import com.wilderpereira.lmgtfygen.domain.entity.SearchUrl
import com.wilderpereira.lmgtfygen.domain.entity.ShortenerBody
import retrofit2.http.Body
import retrofit2.http.POST
import retrofit2.http.Query
import rx.Observable
/**
* Created by Wilder on 30/01/17.
... | 9,431 |
https://github.com/angelicagirl86/fwd16_angelica_gaintatzi/blob/master/kurser/backend/sql_inlamning1 /sql_question3.sql | Github Open Source | Open Source | MIT | null | fwd16_angelica_gaintatzi | angelicagirl86 | SQL | Code | 16 | 25 | 3) Kunna söka på för en viss rang?
SELECT * FROM work WHERE Rank = 2; | 50,098 |
https://github.com/evankenyon/cs307-oolala/blob/master/src/model/commands/HideCommand.java | Github Open Source | Open Source | MIT | null | cs307-oolala | evankenyon | Java | Code | 20 | 58 | package model.commands;
import java.util.List;
public class HideCommand extends ShowOrHideCommand {
public HideCommand(List<Integer> args) throws IllegalArgumentException {
super(false, args);
}
}
| 40,618 |
https://github.com/bww/go-acl/blob/master/v1/resource_test.go | Github Open Source | Open Source | BSD-3-Clause | null | go-acl | bww | Go | Code | 240 | 966 | package acl
import (
"testing"
)
// Test path
func TestPath(t *testing.T) {
// no options
checkPath(t, "*", "Anything!", 0, true)
checkPath(t, "*", "/", 0, true)
checkPath(t, "*", "", 0, true)
checkPath(t, "/*", "/a", 0, true)
checkPath(t, "/a", "/a", 0, true)
checkPath(t, "/a", "/b", 0, false)
checkPath... | 4,217 |
https://github.com/BlackGlory/logger/blob/master/migrations/data-in-sqlite3/001-initial.sql | Github Open Source | Open Source | MIT | null | logger | BlackGlory | SQL | Code | 82 | 263 | --------------------------------------------------------------------------------
-- Up
--------------------------------------------------------------------------------
-- 在WAL模式下, better-sqlite3可充分发挥性能
PRAGMA journal_mode = WAL;
-- SQLite 会将VARCHAR(255)转换为TEXT, 将DATETIME转换为NUMERIC, 使用这些数据类型是出于可读性考虑
-- logger资源本身是松散的,... | 3,664 |
https://github.com/wjakob/layerlab/blob/master/include/layer/math.h | Github Open Source | Open Source | BSD-2-Clause | 2,022 | layerlab | wjakob | C | Code | 1,334 | 3,208 | /*
math.h -- Mathematical routines, special functions, etc.
Copyright (c) 2015 Wenzel Jakob <wenzel@inf.ethz.ch>
All rights reserved. Use of this source code is governed by a
BSD-style license that can be found in the LICENSE file.
*/
#pragma once
#include <layer/common.h>
#include <cmath>
#include ... | 31,541 |
https://github.com/Silur/unstoppable-wallet-android/blob/master/app/src/main/java/io/horizontalsystems/bankwallet/modules/addtoken/AddTokenFragment.kt | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, MIT | 2,021 | unstoppable-wallet-android | Silur | Kotlin | Code | 246 | 1,171 | package io.horizontalsystems.bankwallet.modules.addtoken
import android.app.Activity
import android.os.Bundle
import android.os.Handler
import android.os.Looper
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.activity.result.contract.ActivityResultContracts
imp... | 35,081 |
https://github.com/b1tank/cpp-primer/blob/master/exercise/ex2_27.cpp | Github Open Source | Open Source | MIT | null | cpp-primer | b1tank | C++ | Code | 71 | 135 | #include <iostream>
int main() {
int i = -1, &r = 0; // illegal, r must refer to an object
const int i1 = -1, &r1 = 0; // legal
const int *p1 = &i; // legal
const int i3 = i, &r2 = i; // legal
int *const p2 = &i; // legal
const int *const p3 = &i; // legal
const int &const r3; // i... | 7,428 |
https://github.com/hanepjiv/sif-rs/blob/master/sif_three/src/trarotsca.rs | Github Open Source | Open Source | Apache-2.0, MIT | 2,016 | sif-rs | hanepjiv | Rust | Code | 851 | 2,828 | // -*- mode:rust; coding:utf-8-unix; -*-
//! trarotsca.rs
// Copyright 2016 hanepjiv
// @author hanepjiv <hanepjiv@gmail.com>
// @copyright The MIT License (MIT) / Apache License Version 2.0
// @since 2017/04/10
// @date 2018/08/27
// ////////////////////////////////////////////////////////////////////////////
... | 21,128 |
https://github.com/IrieY56/react-redux-todos/blob/master/src/redux/reducers/todoReducer.js | Github Open Source | Open Source | MIT | null | react-redux-todos | IrieY56 | JavaScript | Code | 94 | 268 | /* eslint no-underscore-dangle: ["error", { "allow": ["_id"] }] */
import { ADD_TODO, REMOVE_TODO, GET_TODOS, GET_LOADED } from '../actions/actionTypes';
const initialState = {
todos: ['Add Todos!'],
loaded: false,
};
function todoReducer(state = initialState, action) {
switch (action.type) {
case GET_TODOS... | 16,189 |
https://github.com/GiorgiBeriashvili/academy-hub/blob/master/resources/views/components/statistics.blade.php | Github Open Source | Open Source | MIT | null | academy-hub | GiorgiBeriashvili | PHP | Code | 18 | 65 | <x-layout>
<div class="content-wrapper d-flex justify-content-center align-items-center">
<h1>There are a total of {{ $verifiedAmount }} verified academies.</h1>
</div>
</x-layout>
| 14,472 |
https://github.com/leighmacdonald/gbans/blob/master/internal/app/actions.go | Github Open Source | Open Source | MIT | 2,022 | gbans | leighmacdonald | Go | Code | 1,879 | 5,514 | package app
import (
"context"
"fmt"
"github.com/bwmarrin/discordgo"
"github.com/leighmacdonald/gbans/internal/action"
"github.com/leighmacdonald/gbans/internal/config"
"github.com/leighmacdonald/gbans/internal/consts"
"github.com/leighmacdonald/gbans/internal/model"
"github.com/leighmacdonald/gbans/internal/q... | 29,055 |
https://github.com/ndretn/RSBASPM/blob/master/src/main/java/ca/pfv/spmf/algorithms/frequentpatterns/hui_miner/AlgoCHUIMiner.java | Github Open Source | Open Source | Apache-2.0 | null | RSBASPM | ndretn | Java | Code | 3,145 | 7,474 | package ca.pfv.spmf.algorithms.frequentpatterns.hui_miner;
/* This file is copyright (c) 2008-2015 Philippe Fournier-Viger
*
* This file is part of the SPMF DATA MINING SOFTWARE
* (http://www.philippe-fournier-viger.com/spmf).
*
* SPMF is free software: you can redistribute it and/or modify it under the
* terms of ... | 55,449 |
https://github.com/Rohit484/Distribution/blob/master/b/baseui/src/main/scala/typings/baseui/anon/ToastPropskeyKey.scala | Github Open Source | Open Source | MIT | 2,020 | Distribution | Rohit484 | Scala | Code | 467 | 1,893 | package typings.baseui.anon
import typings.baseui.baseuiStrings.`inline`
import typings.baseui.baseuiStrings.info
import typings.baseui.baseuiStrings.negative
import typings.baseui.baseuiStrings.positive
import typings.baseui.baseuiStrings.toast
import typings.baseui.baseuiStrings.warning
import typings.baseui.toastMo... | 47,748 |
https://github.com/Rainmonth/Php/blob/master/application/views/manage/add_banner.php | Github Open Source | Open Source | MIT | null | Php | Rainmonth | PHP | Code | 266 | 1,358 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>添加banner</title>
<style type="text/css">
input[type="text"],
input[type="password"],
input[type="email"],
{
-moz-appearance: none;
-webkit-appearance: none;
-ms-appearan... | 15,602 |
https://github.com/orospakr/snively/blob/master/Snively/app.desktop | Github Open Source | Open Source | Apache-2.0 | 2,012 | snively | orospakr | null | Spoken | 7 | 32 | [Desktop Entry]
Encoding=UTF-8
Type=Application
Name=Snively
Exec=snively
Terminal=false
| 23,570 |
https://github.com/tactbug/ddd/blob/master/product/src/main/java/com/tactbug/ddd/product/domain/category/Category.java | Github Open Source | Open Source | Apache-2.0 | null | ddd | tactbug | Java | Code | 460 | 1,689 | package com.tactbug.ddd.product.domain.category;
import com.tactbug.ddd.common.base.BaseDomain;
import com.tactbug.ddd.common.base.Event;
import com.tactbug.ddd.common.utils.IdUtil;
import com.tactbug.ddd.common.exceptions.TactException;
import com.tactbug.ddd.product.domain.category.command.*;
import com.tactbug.ddd.... | 39,184 |
https://github.com/clayne/FO4_Interface/blob/master/Data/Interface/Source/Bethesda/Pipboy/COMPANIONAPP/PipboyListItemRenderer.as | Github Open Source | Open Source | RSA-MD | 2,020 | FO4_Interface | clayne | null | Spoken | 138 | 609 | package Pipboy.COMPANIONAPP
{
import Mobile.ScrollList.MobileListItemRenderer;
import Shared.AS3.BSScrollingListEntry;
import flash.display.MovieClip;
public class PipboyListItemRenderer extends MobileListItemRenderer
{
public var border:MovieClip;
protected var ORIG_BORDER_HEIGHT:Number;
prot... | 42,021 |
https://github.com/febtx/casino-website/blob/master/packages/game-american-bingo/routes/web.php | Github Open Source | Open Source | MIT | 2,022 | casino-website | febtx | PHP | Code | 42 | 172 | <?php
// game routes
Route::name('games.')
->namespace('Packages\GameAmericanBingo\Http\Controllers\Frontend')
->middleware(['web', 'auth', 'active', 'email_verified', '2fa']) // it's important to add web middleware as it's not automatically added for packages routes
->group(function () {
// show i... | 29,948 |
https://github.com/vivo-project/Vitro/blob/master/webapp/src/main/webapp/src/widget/demoEngine/DemoContainer.js | Github Open Source | Open Source | 2,023 | Vitro | vivo-project | JavaScript | Code | 143 | 1,118 | /*
Copyright (c) 2004-2006, The Dojo Foundation
All Rights Reserved.
Licensed under the Academic Free License version 2.1 or above OR the
modified BSD license. For more information on Dojo licensing, see:
http://dojotoolkit.org/community/licensing.shtml
*/
dojo.provide("dojo.widget.demoEngine.DemoContainer");
... | 17,421 | |
https://github.com/ehsanhsnzd/ProSocial/blob/master/app/User.php | Github Open Source | Open Source | MIT | null | ProSocial | ehsanhsnzd | PHP | Code | 254 | 1,170 | <?php
namespace App;
use Illuminate\Notifications\Notifiable;
use Illuminate\Contracts\Auth\MustVerifyEmail;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Laravel\Passport\HasApiTokens;
use social\album\app\Models\Image;
use social\company\app\Models\Company;
use social\core\app\Models\Setting;
use soci... | 23,561 |
https://github.com/enzoferey/swipe-menu-panel/blob/master/js/index.js | Github Open Source | Open Source | MIT | 2,016 | swipe-menu-panel | enzoferey | JavaScript | Code | 3 | 14 | module.exports = require('./ReactSwipeNavigation'); | 55,100 |
https://github.com/giovannelli/sidekiq-grouping/blob/master/spec/spec_helper.rb | Github Open Source | Open Source | MIT | null | sidekiq-grouping | giovannelli | Ruby | Code | 90 | 344 | $LOAD_PATH << "." unless $LOAD_PATH.include?(".")
require "rubygems"
require "bundler/setup"
require "byebug"
require "timecop"
require "simplecov"
require "sidekiq"
require "rspec-sidekiq"
require "support/test_workers"
SimpleCov.start do
add_filter "spec"
end
require "sidekiq/grouping"
Sidekiq::Grouping.logger ... | 9,099 |
https://github.com/seanmatx/nationalParks/blob/master/server/models/Park.js | Github Open Source | Open Source | MIT | 2,021 | nationalParks | seanmatx | JavaScript | Code | 77 | 176 | const { Schema } = require('mongoose');
// This is a subdocument schema, it won't become its own model but we'll use it as the schema for the User's `savedParks` array in User.js
const parkSchema = new Schema({
parkId: {
type: String,
required: true,
},
parkName: {
type: String,
required: true,
... | 15,797 |
https://github.com/onespacer/opentelemetry-java-instrumentation/blob/master/instrumentation-api-caching/src/main/java/com/github/benmanes/caffeine/cache/CacheImplementations.java | Github Open Source | Open Source | ECL-2.0, Apache-2.0, BSD-3-Clause, MIT | 2,021 | opentelemetry-java-instrumentation | onespacer | Java | Code | 128 | 237 | /*
* Copyright The OpenTelemetry Authors
* SPDX-License-Identifier: Apache-2.0
*/
package com.github.benmanes.caffeine.cache;
// Caffeine uses reflection to load cache implementations based on parameters specified by a user.
// We use gradle-shadow-plugin to minimize the dependency on Caffeine, but it does not all... | 50,823 |
https://github.com/TiltonJH/secs4net/blob/master/secs4net/Core/CIM.EAP/TxReport/CarrierOutCompleteReport.cs | Github Open Source | Open Source | MIT | 2,019 | secs4net | TiltonJH | C# | Code | 79 | 273 | using System.Xml.Linq;
namespace Cim.Eap.Tx {
public struct CarrierOutCompleteReport : ITxReport {
public string UnloadPortID { get; set; }
public string CarrierId { get; set; }
public string BufferResources { get; set; }
//<?xml version="1.0" ?>
//<Transaction TxName="Carr... | 49,705 |
https://github.com/abusalam/launch-booking/blob/master/app/Controllers/Courses.php | Github Open Source | Open Source | MIT | null | launch-booking | abusalam | PHP | Code | 26 | 63 | <?php namespace App\Controllers;
/**
* Home Page Controller
*
* @package ePathshala
*/
class Courses extends BaseController
{
public function index()
{
return view('login');
}
}
| 23,939 |
https://github.com/admariner/aim/blob/master/aim/web/ui_v2/src/types/components/Theme/Theme.d.ts | Github Open Source | Open Source | Apache-2.0 | 2,022 | aim | admariner | TypeScript | Code | 22 | 54 | import React from 'react';
export interface IThemeProps {
children: React.ReactNode;
}
export interface IThemeContextValues {
dark: boolean;
handleTheme: () => void;
}
| 21,011 |
https://github.com/f3ath/commuter-api/blob/master/app/config/stage.php | Github Open Source | Open Source | MIT | 2,017 | commuter-api | f3ath | PHP | Code | 11 | 35 | <?php
return array_replace_recursive(require __DIR__ . '/common.php', [
'debug' => true,
]);
| 23,860 |
https://github.com/hanswenzel/opticks/blob/master/cudarap/cuRANDWrapper_kernel.cu | Github Open Source | Open Source | Apache-2.0 | 2,022 | opticks | hanswenzel | null | Spoken | 1,336 | 3,492 | /*
* Copyright (c) 2019 Opticks Team. All Rights Reserved.
*
* This file is part of Opticks
* (see https://bitbucket.org/simoncblyth/opticks).
*
* 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 ... | 55,732 |
https://github.com/SimonCropp/Argonautica/blob/master/src/Argon/DefaultJsonNameTable.cs | Github Open Source | Open Source | MIT | null | Argonautica | SimonCropp | C# | Code | 598 | 1,319 | // Copyright (c) 2007 James Newton-King. All rights reserved.
// Use of this source code is governed by The MIT License,
// as found in the license.md file.
namespace Argon;
/// <summary>
/// The default JSON name table implementation.
/// </summary>
public class DefaultJsonNameTable : JsonNameTable
{
// used to... | 19,832 |
https://github.com/HarryLee-BJ/tigermobile/blob/master/src/view/share/clockInShare.vue | Github Open Source | Open Source | MIT | null | tigermobile | HarryLee-BJ | Vue | Code | 856 | 3,689 | <template>
<div>
<div class="hasData" v-if="showDataView">
<div class="pagePadding">
<div class="profile-header-wrapper">
<div class="avater-wrapper" @click="personInfo">
<div class="avater" :style=" 'background-image: url(' + avatar + '?imageMogr2/auto-orient/quality/20' +')... | 9,283 |
https://github.com/Thomas-Philippot/crypto-casino/blob/master/src/mixins/walletMixins.js | Github Open Source | Open Source | MIT | 2,022 | crypto-casino | Thomas-Philippot | JavaScript | Code | 71 | 191 | export default {
computed: {
connected () {
return this.$store.state.eth.connected
},
account () {
return this.$store.state.eth.account
},
trimmedAccount () {
let account = this.$store.state.eth.account
if (account !== null && typeof account !== 'undefined') {
retur... | 50,207 |
https://github.com/deepakddixit/monarch/blob/master/ADS/geode-core/src/main/java/org/apache/geode/internal/cache/partitioned/PartitionedRegionObserver.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | monarch | deepakddixit | Java | Code | 212 | 373 | /*
* Licensed to the Apache Software Foundation (ASF) under one or more contributor license
* agreements. See the NOTICE file distributed with this work for additional information regarding
* copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the
* "License"); you may not ... | 28,895 |
https://github.com/LSandoval29/BCS-Places/blob/master/database/seeds/municipiosSeeder.php | Github Open Source | Open Source | MIT | null | BCS-Places | LSandoval29 | PHP | Code | 59 | 238 | <?php
use Illuminate\Database\Seeder;
use App\Municipio;
class municipiosSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
$municipio = new Municipio();
$municipio->nombre="La Paz";
$municipio->save();
$mu... | 35,471 |
https://github.com/abdilfaruq/demo-linguo-app/blob/master/node_modules/@iconify-icons/icon-park-outline/tire-swing.js | Github Open Source | Open Source | Apache-2.0 | 2,021 | demo-linguo-app | abdilfaruq | JavaScript | Code | 49 | 230 | var data = {
"body": "<g fill=\"none\" stroke=\"currentColor\" stroke-width=\"4\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M4 4s6 6 20 6s20-6 20-6\"/><path d=\"M24 10v6\"/><ellipse cx=\"30\" cy=\"30\" rx=\"8\" ry=\"14\"/><ellipse cx=\"30\" cy=\"30\" rx=\"3\" ry=\"6\"/><path d=\"M18 44c-4.418 0-8-6.... | 19,109 |
https://github.com/z131031231/mogo/blob/master/api/pkg/model/view/database.go | Github Open Source | Open Source | MIT | null | mogo | z131031231 | Go | Code | 40 | 123 | package view
type ReqDatabaseCreate struct {
Name string `json:"databaseName" form:"databaseName"`
}
type RespDatabaseItem struct {
Id int `json:"id"` // id
Iid int `json:"iid"` // 实例 id
Name string `json:"name"` // 数据库名称
Uid int `json:"uid"` // 操作人
Datas... | 32,744 |
https://github.com/liutingffeng/LeetCode-Java/blob/master/src/LCSolution/LC319.java | Github Open Source | Open Source | Apache-2.0 | null | LeetCode-Java | liutingffeng | Java | Code | 23 | 68 | package LCSolution;
import java.util.HashMap;
import java.util.Map;
public class LC319 {
class Solution {
public int bulbSwitch(int n) {
return (int)Math.sqrt(n);
}
}
}
| 14,631 |
https://github.com/Ting-An-Lin/phy/blob/master/fhi_lib/test/test_xran/unittests.cc | Github Open Source | Open Source | Apache-2.0, CC-BY-4.0 | 2,022 | phy | Ting-An-Lin | C++ | Code | 169 | 463 | /******************************************************************************
*
* Copyright (c) 2019 Intel.
*
* 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.apac... | 49,182 |
https://github.com/paolomococci/demo-restful-integration/blob/master/DemoRestfulService/src/main/kotlin/local/example/demo/assembler/VineResourceAssembler.kt | Github Open Source | Open Source | Apache-2.0 | null | demo-restful-integration | paolomococci | Kotlin | Code | 134 | 377 | /**
*
* Copyright 2019 paolo mococci
*
* 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 agre... | 26,992 |
https://github.com/displague/fallback/blob/master/src/config.js | Github Open Source | Open Source | MIT | null | fallback | displague | JavaScript | Code | 1,233 | 2,700 | // Configure the library. If the `input` is malformed then the `Function` will return `false`, otherwise the `Function`
// will return the normalized value that was imported.
var config = function(input) {
// If the `input` parameter is not an `Object`, then halt the `Function`.
if (!me.isObject(input)) {
me.log(2,... | 5,502 |
https://github.com/efsavage/ajah/blob/master/ajah-user/src/main/java/com/ajah/user/role/data/RoleManager.java | Github Open Source | Open Source | Apache-2.0 | 2,015 | ajah | efsavage | Java | Code | 1,038 | 2,338 | /*
* Copyright 2015 Eric F. Savage, code@efsavage.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 require... | 48,033 |
https://github.com/arassec/igor/blob/master/persistence/src/main/java/com/arassec/igor/persistence/mapper/IgorComponentPersistenceSerializer.java | Github Open Source | Open Source | MIT | 2,020 | igor | arassec | Java | Code | 492 | 1,618 | package com.arassec.igor.persistence.mapper;
import com.arassec.igor.application.util.IgorComponentUtil;
import com.arassec.igor.core.model.IgorComponent;
import com.arassec.igor.core.model.action.Action;
import com.arassec.igor.core.model.annotation.IgorParam;
import com.arassec.igor.core.model.connector.Connector;
i... | 9,279 |
https://github.com/huangtao/cloud-test/blob/master/vendor/RainbowRepacker/tool/engine_android(5)/smali/com/boyaa/engine/device/WebViewImpl$WebViewParam.smali | Github Open Source | Open Source | Apache-2.0 | 2,018 | cloud-test | huangtao | Smali | Code | 1,011 | 5,885 | .class public Lcom/boyaa/engine/device/WebViewImpl$WebViewParam;
.super Ljava/lang/Object;
.source "WebViewImpl.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/boyaa/engine/device/WebViewImpl;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags... | 25,382 |
https://github.com/smudog/fatiando/blob/master/fatiando/tests/mesher/test_square.py | Github Open Source | Open Source | BSD-3-Clause | 2,016 | fatiando | smudog | Python | Code | 69 | 207 | from ...mesher import Square
def test_square_copy():
orig = Square([0, 1, 2, 4], {'density': 750})
cp = orig.copy()
assert isinstance(orig, Square)
assert isinstance(cp, Square)
assert orig.x1 == cp.x1
assert orig.x2 == cp.x2
assert orig.y1 == cp.y1
assert orig.y2 == cp.y2
assert o... | 36,423 |
https://github.com/riv2/Examples_codes_not_full/blob/master/ACTUAL_NEW_Yii2_example/controllers/api/ParsingController.php | Github Open Source | Open Source | BSD-3-Clause | 2,021 | Examples_codes_not_full | riv2 | PHP | Code | 770 | 2,852 | <?php
namespace app\controllers\api;
use app\models\cross\ParsingProjectMasks;
use app\models\cross\ParsingProjectRegion;
use app\models\enum\ParsingStatus;
use app\models\enum\Status;
use app\models\pool\ParsingError;
use app\models\reference\CompetitorItem;
use app\models\reference\Masks;
use app\models\reference\Pa... | 24,273 |
https://github.com/GT-RAIL/assistance_arbitration/blob/master/fetch_tasks/src/fetch_tasks/monitors/costmap_monitor.py | Github Open Source | Open Source | MIT | 2,020 | assistance_arbitration | GT-RAIL | Python | Code | 139 | 505 | #!/usr/bin/env python
# Monitor the costmap and store the percentage of occupied vs. free space
from __future__ import print_function, division
import numpy as np
import rospy
from nav_msgs.msg import OccupancyGrid
from assistance_msgs.msg import MonitorMetadata
from assistance_arbitrator.monitoring import Abstrac... | 10,609 |
https://github.com/Alma-media/eop09/blob/master/client/codec/types.go | Github Open Source | Open Source | MIT | null | eop09 | Alma-media | Go | Code | 35 | 103 | package codec
import (
"io"
"github.com/Alma-media/eop09/proto"
)
// EncoderFunc is a codec agnostic encoder.
type EncoderFunc func(io.Writer, <-chan *proto.Payload) error
// DecoderFunc is a codec agnostic decoder.
type DecoderFunc func(reader io.Reader, stream chan<- *proto.Payload) error
| 26,730 |
https://github.com/kerubistan/kerub/blob/master/src/test/kotlin/com/github/kerubistan/kerub/services/impl/ServiceUtils.kt | Github Open Source | Open Source | Apache-2.0 | 2,023 | kerub | kerubistan | Kotlin | Code | 31 | 162 | package com.github.kerubistan.kerub.services.impl
import com.github.kerubistan.kerub.createClient
import com.github.kerubistan.kerub.login
import com.github.kerubistan.kerub.runRestAction
import com.github.kerubistan.kerub.services.ControllerConfigService
fun setAccountsRequired(accountsRequired : Boolean) {
val cli... | 14,674 |
https://github.com/ibmresilient/resilient-community-apps/blob/master/fn_task_utils/fn_task_utils/components/task_utils_close_task.py | Github Open Source | Open Source | MIT | 2,023 | resilient-community-apps | ibmresilient | Python | Code | 337 | 964 | # -*- coding: utf-8 -*-
# Copyright © IBM Corporation 2010, 2019
# pragma pylint: disable=unused-argument, no-self-use
"""Function implementation"""
import logging
from resilient_circuits import ResilientComponent, function, handler, StatusMessage, FunctionResult, FunctionError
from resilient_lib import ResultPayload
... | 52,501 |
https://github.com/Scottx86-64/dotfiles-1/blob/master/source/pkgsrc/devel/p5-Eval-LineNumbers/Makefile | Github Open Source | Open Source | Unlicense | 2,021 | dotfiles-1 | Scottx86-64 | Makefile | Code | 61 | 329 | # $NetBSD: Makefile,v 1.6 2021/05/24 19:50:35 wiz Exp $
# no Release yet
GIT_COMMIT= d1d7556
DISTNAME= master
PKGNAME= p5-Eval-LineNumbers-0.1
PKGREVISION= 5
CATEGORIES= devel perl5
MASTER_SITES= ${MASTER_SITE_GITHUB:=/muir/Eval-LineNumbers/archive/}
EXTRACT_SUFX= .zip
DIST_SUBDIR= Eval-LineNumbers-${GIT_COMMIT}
MAIN... | 19,365 |
https://github.com/apache/commons-jcs/blob/master/auxiliary-builds/jdk14/src/java/org/apache/commons/jcs/auxiliary/lateral/LateralCacheFactory.java | Github Open Source | Open Source | LicenseRef-scancode-generic-cla, Apache-2.0 | 2,023 | commons-jcs | apache | Java | Code | 678 | 1,806 | package org.apache.commons.jcs.auxiliary.lateral;
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the A... | 7,866 |
https://github.com/Firmament-Autopilot/FMT-Firmware/blob/master/src/hal/gyro/gyro.h | Github Open Source | Open Source | Apache-2.0 | 2,023 | FMT-Firmware | Firmament-Autopilot | C | Code | 345 | 844 | /******************************************************************************
* Copyright 2020-2023 The Firmament Authors. 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... | 7,138 |
https://github.com/TylerLeonhardt/EAT-Form/blob/master/assets/js/confirmAdults.js | Github Open Source | Open Source | MIT | 2,016 | EAT-Form | TylerLeonhardt | JavaScript | Code | 70 | 191 | // Create a global namespace
var EAT = EAT || {};
EAT.confirmAdults = {
setupPage: function() {
var numAdults = localStorage.getItem("howManyAdultsFormhowManyAdultsFormnumAdults");
if(numAdults != null) {
if(+numAdults == 1) {
$("#desc-heading").html("please confirm the information of the " + ... | 82 |
https://github.com/michaelwisely/gravwell/blob/master/ingesters/sqsIngester/config.go | Github Open Source | Open Source | BSD-2-Clause | null | gravwell | michaelwisely | Go | Code | 501 | 1,360 | /*************************************************************************
* Copyright 2020 Gravwell, Inc. All rights reserved.
* Contact: <legal@gravwell.io>
*
* This software may be modified and distributed under the terms of the
* BSD 2-clause license. See the LICENSE file for details.
************************... | 20,165 |
https://github.com/getsentry/sentry-python/blob/master/tests/integrations/starlette/__init__.py | Github Open Source | Open Source | MIT, LicenseRef-scancode-unknown-license-reference | 2,023 | sentry-python | getsentry | Python | Code | 3 | 19 | import pytest
pytest.importorskip("starlette")
| 10,756 |
https://github.com/halyard/puppet-ssh/blob/master/lib/puppet/type/ssh_key.rb | Github Open Source | Open Source | MIT | null | puppet-ssh | halyard | Ruby | Code | 171 | 524 | require 'puppet/util/execution'
Puppet::Type.newtype(:ssh_key) do
@doc = "Manage SSH keys"
ensurable do
defaultvalues
defaultto :present
end
newparam(:name) do
desc 'User to manage SSH key for'
validate do |v|
raise(ArgumentError, 'User is not valid') unless v.match(/^\w+$/)
res ... | 49,832 |
https://github.com/anvaka/w-gl/blob/master/src/input/createTouchController.ts | Github Open Source | Open Source | MIT | 2,023 | w-gl | anvaka | TypeScript | Code | 635 | 1,814 | import { TouchState, MultiTouchState } from './TouchState';
export default function createTouchController(inputTarget, camera) {
let listening = false;
let activeTouches = new Map();
let { allowRotation, allowPinchRotation, panAnimation, rotateAnimation } = camera;
let multiTouchState = new MultiTouchState(all... | 55,749 |
https://github.com/CE-OP/webclgl/blob/master/WebCLGLBufferItem.class.js | Github Open Source | Open Source | MIT | 2,016 | webclgl | CE-OP | JavaScript | Code | 600 | 2,602 | /**
* WebCLGLBuffer Object
* @class
* @constructor
* @property {WebGLTexture} textureData
* @property {Array<Float>} inData Original array
* @property {Int} [offset=0] offset of buffer
*/
WebCLGLBufferItem = function(gl, length, type, offset, linear, mode) {
"use strict";
var _gl = gl;
if(length.co... | 1,313 |
https://github.com/nopdotcom/corectl/blob/master/components/common/assets/assets.go | Github Open Source | Open Source | Apache-2.0 | 2,022 | corectl | nopdotcom | Go | Code | 52 | 168 | package assets
import (
"io/ioutil"
"net/http"
"github.com/deis/pkg/log"
)
func Contents(file string) (t string) {
var (
err error
buf []byte
f http.File
)
if f, err = Assets.Open(file); err != nil {
log.Err(err.Error())
return
}
defer f.Close()
if buf, err = ioutil.ReadAll(f); err != nil {
lo... | 5,941 |
https://github.com/atomicsamurai/wink-local/blob/master/controller/wink-http.go | Github Open Source | Open Source | MIT | 2,017 | wink-local | atomicsamurai | Go | Code | 507 | 2,116 | package controller
import (
"encoding/json"
"fmt"
"log"
"net/http"
"strings"
"github.com/abbot/go-http-auth"
"github.com/gorilla/mux"
"github.com/mannkind/wink-local/handlers"
)
type winkHTTP struct {
settings struct {
Port int16
Username string
Password string
}
apron handlers.Apron
stat... | 12,707 |
https://github.com/wf539/VisualBasicDotNETStepByStep/blob/master/Start App/Form1.vb | Github Open Source | Open Source | MIT | null | VisualBasicDotNETStepByStep | wf539 | Visual Basic | Code | 261 | 789 | Imports System.Threading
Imports System.Diagnostics
Public Class Form1
Inherits System.Windows.Forms.Form
#Region " Windows Form Designer generated code "
Public Sub New()
MyBase.New()
'This call is required by the Windows Form Designer.
InitializeComponent()
'Add any initia... | 12,002 |
https://github.com/geaden/android-methods-profiler/blob/master/src/main/java/com/github/grishberg/profiler/ui/dialogs/recorder/RecordedResult.kt | Github Open Source | Open Source | Apache-2.0 | 2,022 | android-methods-profiler | geaden | Kotlin | Code | 16 | 82 | package com.github.grishberg.profiler.ui.dialogs.recorder
import com.github.grishberg.tracerecorder.SystraceRecordResult
import java.io.File
data class RecordedResult(
val recorderTraceFile: File,
val systraces: SystraceRecordResult?
)
| 37,954 |
https://github.com/xzhan96/chromium.src/blob/master/third_party/WebKit/Tools/Scripts/webkitpy/common/config/builders.py | Github Open Source | Open Source | BSD-3-Clause-No-Nuclear-License-2014, BSD-3-Clause | 2,021 | chromium.src | xzhan96 | Python | Code | 429 | 1,240 | # Copyright (c) 2016, Google Inc. 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 the... | 19,889 |
https://github.com/BlockVisors/Patronage/blob/master/src/views/SectionsSections/RXFeatures.jsx | Github Open Source | Open Source | MIT | 2,019 | Patronage | BlockVisors | JavaScript | Code | 753 | 2,911 | /*!
=========================================================
* BLK Design System PRO React - v1.0.0
=========================================================
* Product Page: https://www.creative-tim.com/product/blk-design-system-pro-react
* Copyright 2019 Creative Tim (https://www.creative-tim.com)
* Coded by Creat... | 16,317 |
https://github.com/blackberry/Wesnoth/blob/master/src/ai/composite/engine_fai.cpp | Github Open Source | Open Source | Unlicense | 2,019 | Wesnoth | blackberry | C++ | Code | 429 | 1,603 | /* $Id: engine_fai.cpp 48153 2011-01-01 15:57:50Z mordante $ */
/*
Copyright (C) 2009 - 2011 by Yurii Chernyi <terraninfo@terraninfo.net>
Part of the Battle for Wesnoth Project http://www.wesnoth.org/
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General... | 12,494 |
https://github.com/mads-hartmann/mugs/blob/master/test/LLRedBlackTree.js | Github Open Source | Open Source | MIT | 2,017 | mugs | mads-hartmann | JavaScript | Code | 616 | 2,413 | $(document).ready(function(){
LLRBNode = mugs.LLRBNode;
LLRBLeaf = mugs.LLRBLeaf;
module("LLRedBlackTree");
test("", function() {
var node = new LLRBNode(1,1);
ok(node.left.isEmpty());
ok(node.right.isEmpty());
});
test("You can insert a new key/value pair into the tr... | 11,451 |
https://github.com/allthatjazzleo/tmkms-light/blob/master/src/config/validator.rs | Github Open Source | Open Source | Apache-2.0 | 2,022 | tmkms-light | allthatjazzleo | Rust | Code | 73 | 181 | //! Validator configuration
//! Copyright (c) 2018-2021 Iqlusion Inc. (licensed under the Apache License, Version 2.0)
//! Modifications Copyright (c) 2021, Foris Limited (licensed under the Apache License, Version 2.0)
use serde::{Deserialize, Serialize};
use tendermint::chain;
/// Validator configuration
#[derive(C... | 15,193 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.