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/elkrejzi/lfs-pacman/blob/master/tools/bootstrap/045-wget | Github Open Source | Open Source | MIT | 2,021 | lfs-pacman | elkrejzi | Shell | Code | 60 | 276 | #!/bin/bash -e
. $(dirname $0)/000_shared
rm -rf wget-${WGET_VER} ${LOGDIR}/wget-${WGET_VER}.log
tar xf ${SROOT}/wget-${WGET_VER}.tar.gz
{
time {
pushd wget-${WGET_VER}
./configure --prefix=/tools \
--disable-pcre \
--disable-pcre2 \
--with-ssl=open... | 9,935 |
https://github.com/UnofficialJuliaMirror/HierarchicalMatrices.jl-7c893195-952b-5c83-bb6e-be12f22eed51/blob/master/src/BarycentricMatrix.jl | Github Open Source | Open Source | MIT | 2,022 | HierarchicalMatrices.jl-7c893195-952b-5c83-bb6e-be12f22eed51 | UnofficialJuliaMirror | Julia | Code | 812 | 3,095 | abstract type AbstractBarycentricMatrix{T} <: AbstractLowRankMatrix{T} end
size(B::AbstractBarycentricMatrix) = (B.b-B.a+1, B.d-B.c+1)
struct EvenBarycentricMatrix{T} <: AbstractBarycentricMatrix{T}
a::Int
b::Int
c::Int
d::Int
x::Vector{T}
λ::Vector{T}
w::Vector{T}
β::Vector{T}
W::... | 9,434 |
https://github.com/Oldes/ANE_Android-Google_public/blob/master/02-ANEGoogleAPI/ANEGoogleApi-studio/app/src/main/java/com/adobe/air/StateChangeCallback.java | Github Open Source | Open Source | Unlicense | null | ANE_Android-Google_public | Oldes | Java | Code | 12 | 48 | package com.adobe.air;
import com.adobe.air.AndroidActivityWrapper;
public abstract interface StateChangeCallback extends AndroidActivityWrapper.StateChangeCallback
{
} | 8,311 |
https://github.com/epylife/luno/blob/master/lib/oxr.js | Github Open Source | Open Source | MIT | 2,019 | luno | epylife | JavaScript | Code | 373 | 962 | "use strict";
const moment = require("moment");
const OXR = require('./modules/open-exchange-rates.js');
const util = require("./util"); //custom functions
function Oxr(options) {
let self = this;
let apiId = options && typeof options.key === "string" && options.key || "";
let oxrPrivate = new OXR(apiId)... | 40,891 |
https://github.com/ErdemOzgen/leetcode/blob/master/cpp/neetcode_150/06_linked_list/reorder_list.cpp | Github Open Source | Open Source | MIT | 2,022 | leetcode | ErdemOzgen | C++ | Code | 218 | 573 | /*
Given head of linked-list, reorder list alternating outside in
Ex. head = [1,2,3,4] -> [1,4,2,3], head = [1,2,3,4,5] -> [1,5,2,4,3]
Find middle node, split in half, reverse 2nd half of list, merge
Time: O(n)
Space: O(1)
*/
/**
* Definition for singly-linked list.
* struct ListNode {
* i... | 33,629 |
https://github.com/kisecADCTF/Red/blob/master/bbs/add_post_view.php | Github Open Source | Open Source | Apache-2.0 | null | Red | kisecADCTF | PHP | Code | 155 | 657 | <!DOCTYPE html>
<html>
<head>
<title>kisec bbs - board</title>
<link href="../css/style.css" rel="stylesheet" />
</head>
<body>
<header class="masthead">
<div class="container">
<div class="masthead-logo">
kisec bbs
</div>
<nav class="masthead-nav">
<a href=".... | 15,113 |
https://github.com/BarqueroGerman/metrabs/blob/master/dataset_preparation/matlab_headless.sh | Github Open Source | Open Source | MIT | 2,022 | metrabs | BarqueroGerman | Shell | Code | 27 | 83 | #!/usr/bin/env bash
trap 'stty sane' EXIT
command="try, $1;, catch e, stack=getReport(e); fprintf(1, '%s\n', stack);, end, exit;"
matlab -nodisplay -nodesktop -nosplash -nojvm -r "$command" | tail -n +11 | 50,155 |
https://github.com/giangnvbk1989/Fuzzy-Q-Learning/blob/master/Demo/value_finder.m | Github Open Source | Open Source | BSD-2-Clause-Views, BSD-3-Clause | 2,018 | Fuzzy-Q-Learning | giangnvbk1989 | MATLAB | Code | 40 | 129 | function qvalue=value_finder(state,action,vector)
%% compute o_p=sum{w(j)*x_p(j)}
% ------------------------------------------------------------------------
% Authors: Pooyan Jamshidi (pooyan.jamshidi@gmail.com)
% The code is released under the FreeBSD License.
% Copyright (C) 2016 Pooyan Jamshidi, Imperial College Lon... | 5,165 |
https://github.com/ckamtsikis/cmssw/blob/master/DQMOffline/Trigger/python/SiPixel_OfflineMonitoring_Client_cff.py | Github Open Source | Open Source | Apache-2.0 | 2,022 | cmssw | ckamtsikis | Python | Code | 164 | 970 | import FWCore.ParameterSet.Config as cms
from DQMOffline.Trigger.SiPixel_OfflineMonitoring_Cluster_cff import *
from DQMOffline.Trigger.SiPixel_OfflineMonitoring_TrackCluster_cff import *
from DQM.HLTEvF.dqmCorrelationClient_cfi import *
pixelClusterVsLumi = dqmCorrelationClient.clone(
me = cms.PSet(
folder ... | 52,350 |
https://github.com/AI-Stuff/convex-optimization-for-finance/blob/master/notebooks/Main.ipynb | Github Open Source | Open Source | Apache-2.0 | 2,019 | convex-optimization-for-finance | AI-Stuff | Jupyter Notebook | Code | 3,082 | 10,692 | {
"cells": [
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"slideshow": {
"slide_type": "notes"
}
},
"outputs": [],
"source": [
"from ipywidgets import interactive, interact\n",
"\n",
"import numpy as np\n",
"import pandas as pd\n",
"import matplotli... | 11,580 |
https://github.com/Nexusoft/NexusInterface/blob/master/src/App/Transactions/selectors.js | Github Open Source | Open Source | MIT | 2,023 | NexusInterface | Nexusoft | JavaScript | Code | 263 | 753 | import memoize from 'utils/memoize';
import { getFakeTransactions } from './utils';
import { formatDateTime } from 'lib/intl';
__ = __context('Transactions');
const getThresholdDate = (timeSpan) => {
const now = new Date();
switch (timeSpan) {
case 'week':
return new Date(now.getFullYear(), now.getMonth... | 9,351 |
https://github.com/HotStew/respa/blob/master/resources/tests/test_reservation.py | Github Open Source | Open Source | MIT | null | respa | HotStew | Python | Code | 426 | 1,885 | import datetime
import pytest
import arrow
from django.core.exceptions import ValidationError
from django.utils.translation import activate
from django.test import TestCase
from django.utils import timezone
from freezegun import freeze_time
from resources.models import *
class ReservationTestCase(TestCase):
de... | 43,794 |
https://github.com/hardik2419/uuid/blob/master/angular/src/app/shared/components/progress-bar/progress-bar.component.ts | Github Open Source | Open Source | MIT | null | uuid | hardik2419 | TypeScript | Code | 62 | 200 | import { Component, OnInit ,Input } from '@angular/core';
import { Router } from '@angular/router';
declare let $: any;
@Component({
selector: 'app-progress-bar',
templateUrl: './progress-bar.component.html',
styleUrls: ['./progress-bar.component.scss']
})
export class ProgressBarComponent implements OnInit... | 39,028 |
https://github.com/linqh0806/mobilesafe/blob/master/src/com/linqh/mobilesafe/activities/SuperToolsActivity.java | Github Open Source | Open Source | Apache-2.0 | null | mobilesafe | linqh0806 | Java | Code | 164 | 854 | package com.linqh.mobilesafe.activities;
import com.linqh.mobilesafe.R;
import com.linqh.mobilesafe.engine.SmsTools;
import com.linqh.mobilesafe.engine.SmsTools.BackupSmsCallBack;
import com.linqh.mobilesafe.utils.IntentUtils;
import com.linqh.mobilesafe.utils.ToastUtils;
import android.app.Activity;
import android.... | 3,504 |
https://github.com/isururanawaka/airavata/blob/master/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/expcatalog/JobEntity.java | Github Open Source | Open Source | ECL-2.0, Apache-2.0 | null | airavata | isururanawaka | Java | Code | 490 | 1,343 | /*
*
* 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"); y... | 1,974 |
https://github.com/TomasLapsansky/VUT-FIT-MITAI/blob/master/2sem/PIS/pis_webapp/src/main/java/com/vut/fit/pis2020/service/CartItemService.java | Github Open Source | Open Source | MIT | 2,021 | VUT-FIT-MITAI | TomasLapsansky | Java | Code | 113 | 460 | package com.vut.fit.pis2020.service;
import com.vut.fit.pis2020.entity.CartItem;
import com.vut.fit.pis2020.entity.User;
import com.vut.fit.pis2020.persistance.CartItemRepository;
import com.vut.fit.pis2020.persistance.UserRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springfram... | 27,056 |
https://github.com/Infobiotics/ibw/blob/master/roadblock.datapopulation/src/roadblock/dataprocessing/model/PropertyBuilder.xtend | Github Open Source | Open Source | MIT | null | ibw | Infobiotics | null | Spoken | 1,154 | 5,552 | package roadblock.dataprocessing.model
import org.eclipse.emf.ecore.EObject
import roadblock.dataprocessing.util.UnitConverter
import roadblock.emf.ibl.Ibl.ArithmeticOperator
import roadblock.emf.ibl.Ibl.BinaryProbabilityProperty
import roadblock.emf.ibl.Ibl.BooleanOperator
import roadblock.emf.ibl.Ibl.ConcentrationUn... | 38,906 |
https://github.com/KavirajS23/MageIonic/blob/master/Project/Ionic-setup/www/js/config.js | Github Open Source | Open Source | Apache-2.0 | 2,018 | MageIonic | KavirajS23 | JavaScript | Code | 91 | 409 | angular.module('starter')
//config param of App
.constant('appConfig', {
DOMAIN_URL: 'http://test.inspius.com/icymobi/wordpress',
ADMIN_EMAIL: 'envato@inspius.com',
CLIENT_ID_AUTH0: 'H62fCSFGxrbKTRwArIJRdRjuhFnscgNo',
DOMAIN_AUTH0: 'khanhtt.auth0.com',
ENABLE_FIRST_LOGIN: false,
ENABLE_THE... | 33,028 |
https://github.com/JQHee/NavigationBar/blob/master/NavigationDemo/NavigationDemo/NavigationBar/UIViewExtension.swift | Github Open Source | Open Source | MIT | null | NavigationBar | JQHee | Swift | Code | 217 | 548 | //
// UIViewExtension.swift
// NavigationDemo
//
// Created by midland on 2019/4/17.
// Copyright © 2019年 midland. All rights reserved.
//
import Foundation
import UIKit
/// A wrapper that around `fd_` properties.
extension NVNameSpace where Base: UIView {
var left: CGFloat {
get { return base.f... | 37,157 |
https://github.com/RightpointLabs/conference-room/blob/master/Web/Areas/Admin/Views/Shared/EditorTemplates/RoomsPicker.cshtml | Github Open Source | Open Source | MIT | 2,017 | conference-room | RightpointLabs | C# | Code | 35 | 144 | @model string[]
@Html.DropDownList("[]", new SelectListItem[0], new { multiple="multiple" })
<script type="text/javascript">
$(function () {
$.ajax({
url: '@Url.Action("Rooms", "Select")',
method: 'post',
success: function(data) {
$("#@Html.IdForModel()_... | 8,475 |
https://github.com/wxmerkt/ihmc-open-robotics-software/blob/master/SensorProcessing/src/us/ihmc/sensorProcessing/signalCorruption/SignalCorruptor.java | Github Open Source | Open Source | Apache-2.0 | null | ihmc-open-robotics-software | wxmerkt | Java | Code | 12 | 41 | package us.ihmc.sensorProcessing.signalCorruption;
public interface SignalCorruptor<T>
{
public abstract void corrupt(T signal);
}
| 25,478 |
https://github.com/hernanmd/openponk/blob/master/repository/DynaCASE-Layouting/DCRTLHungarianSolverTest.class.st | Github Open Source | Open Source | MIT | 2,022 | openponk | hernanmd | null | Spoken | 291 | 788 | Class {
#name : #DCRTLHungarianSolverTest,
#superclass : #TestCase,
#instVars : [
'solver',
'matrix',
'expected'
],
#category : 'DynaCASE-Layouting-GlobalEdgeLabels'
}
{ #category : #'instance creation' }
DCRTLHungarianSolverTest >> matrixFor: a2DArray [
^ Matrix
rows: a2DArray size
columns: a2DArray a... | 37,667 |
https://github.com/pankaj-XD/ECOM-XD/blob/master/resources/views/auth/login.blade.php | Github Open Source | Open Source | MIT | null | ECOM-XD | pankaj-XD | PHP | Code | 196 | 932 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Document</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.c... | 35,875 |
https://github.com/jwinarske/mpack/blob/master/test/unit/src/test-write.c | Github Open Source | Open Source | MIT | null | mpack | jwinarske | C | Code | 3,573 | 23,551 | /*
* Copyright (c) 2015-2021 Nicholas Fraser and the MPack authors
*
* 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
* us... | 47,110 |
https://github.com/valitydev/analytics/blob/master/src/main/java/dev/vality/analytics/dao/model/SplitNumberModel.java | Github Open Source | Open Source | Apache-2.0 | null | analytics | valitydev | Java | Code | 25 | 87 | package dev.vality.analytics.dao.model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
@EqualsAndHashCode(callSuper = true)
@Data
@ToString(callSuper = true)
public class SplitNumberModel extends NumberModel {
private Long offset;
}
| 10,401 |
https://github.com/rjointer2/reactPortfolio/blob/master/components/GlobalStyles/Text.js | Github Open Source | Open Source | MIT | null | reactPortfolio | rjointer2 | JavaScript | Code | 164 | 457 |
import styled from 'styled-components';
const primary = "#d45d83" // light Pink
const secondary = "#f0cccc" // biege
const white = "#fff" // white
export const TextWrapper = styled.div`
max-width: 540px;
padding: 0;
padding-bottom: 10px;
`;
export const Title = styled.div`
color: ${({lightText}) =>... | 20,403 |
https://github.com/qiujian16/events-informer/blob/master/cmd/sender/sender.go | Github Open Source | Open Source | Apache-2.0 | null | events-informer | qiujian16 | Go | Code | 155 | 672 | package main
import (
"context"
"flag"
"github.com/Shopify/sarama"
"github.com/cloudevents/sdk-go/protocol/kafka_sarama/v2"
cloudevents "github.com/cloudevents/sdk-go/v2"
"github.com/qiujian16/events-informer/pkg/senders"
"k8s.io/client-go/dynamic"
"k8s.io/client-go/tools/clientcmd"
"k8s.io/klog"
)
func mai... | 38,397 |
https://github.com/aviella/Alyle-UI/blob/master/src/app/docs/components/avatar-demo/avatar.lazy.module.ts | Github Open Source | Open Source | MIT | 2,017 | Alyle-UI | aviella | TypeScript | Code | 62 | 233 | import { NgModule, Type } from '@angular/core';
import { AvatarWithButtonModule } from './avatar-with-button/avatar-with-button.module';
import { BasicUsesAvatarModule } from './basic-uses-avatar/basic-uses-avatar.module';
import { AvatarWithButtonComponent } from './avatar-with-button/avatar-with-button.component';
im... | 32,541 |
https://github.com/Manny27nyc/bitrise/blob/master/cli/plugin_info.go | Github Open Source | Open Source | MIT | 2,022 | bitrise | Manny27nyc | Go | Code | 278 | 889 | package cli
import (
"errors"
"fmt"
"os"
"github.com/bitrise-io/bitrise/output"
"github.com/bitrise-io/bitrise/plugins"
"github.com/bitrise-io/go-utils/log"
"github.com/urfave/cli"
)
var pluginInfoCommand = cli.Command{
Name: "info",
Usage: "Installed bitrise plugin's info",
Action: func(c *cli.Context) e... | 13,709 |
https://github.com/osingla/RouteView/blob/master/dojo-release-1.16.3/dojox/atom/widget/nls/eu/FeedEntryViewer.js.uncompressed.js | Github Open Source | Open Source | BSD-3-Clause, AFL-2.1 | 2,023 | RouteView | osingla | JavaScript | Code | 28 | 134 | define("dojox/atom/widget/nls/eu/FeedEntryViewer", {
//begin v1.x content
displayOptions: "[bistaratu aukerak]",
title: "Titulua",
authors: "Autoreak",
contributors: "Kolaboratzaileak",
id: "IDa",
close: "[itxi]",
updated: "Eguneratuta",
summary: "Laburpena",
content: "Edukia"
//end v1.x content
});
| 23,935 |
https://github.com/UrielRadzyminski1/bigChallenge/blob/master/resources/js/components/Category/Category.vue | Github Open Source | Open Source | MIT | null | bigChallenge | UrielRadzyminski1 | Vue | Code | 86 | 382 | <template>
<div>
<div class="flex flex-col items-center">
<div class="
my-4
xl:w-1/2
lg:6/12
md:2/3
sm:w-3/4
w-11/12
m-auto" v-for="meal in meals"
v-bind:key="meal.id">
<category-item
:meal="meal"
... | 4,732 |
https://github.com/7914-ve/ve-blog/blob/master/blog-springboot/src/main/java/com/ve/locker/service/WebsiteConfigService.java | Github Open Source | Open Source | Apache-2.0 | null | ve-blog | 7914-ve | Java | Code | 24 | 100 | package com.ve.locker.service;
import com.ve.locker.entity.WebsiteConfig;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* 网站配置服务
*
* @author yezhiqiu
* @date 2021/08/09
*/
public interface WebsiteConfigService extends IService<WebsiteConfig> {
}
| 49,499 |
https://github.com/Projectatria/whlocator/blob/master/src/pages/documentprint/documentprint.module.ts | Github Open Source | Open Source | MIT | 2,019 | whlocator | Projectatria | TypeScript | Code | 32 | 92 | import { NgModule } from '@angular/core';
import { IonicPageModule } from 'ionic-angular';
import { DocumentprintPage } from './documentprint';
@NgModule({
declarations: [
DocumentprintPage,
],
imports: [
IonicPageModule.forChild(DocumentprintPage),
],
})
export class DocumentprintPageModule {}
| 5,386 |
https://github.com/CFind/brOscatLib/blob/master/oscatBasic/HEX_TO_BYTE.st | Github Open Source | Open Source | MIT | 2,021 | brOscatLib | CFind | null | Spoken | 129 | 392 | FUNCTION HEX_TO_BYTE
(*http://www.oscat.de/images/OSCATBasic/oscat_basic333_en.pdf#page=164*)
pt ACCESS ADR(HEX);
stop := LEN(HEX);
FOR i := 1 TO stop DO
(* read the first character and subtract 48 to get value in decimal 0 = 48 *)
X := pt;
intX := BYTE_TO_USINT(X);
(* calculate t... | 15,780 |
https://github.com/LegendDev/Races/blob/master/Races (premium)/src/me/legenddev/legendraces/filemanager/GetPlayerFile.java | Github Open Source | Open Source | MIT | null | Races | LegendDev | Java | Code | 47 | 166 | package me.legenddev.legendraces.filemanager;
import org.bukkit.OfflinePlayer;
import org.bukkit.entity.Player;
public class GetPlayerFile {
public static PlayerFile getPlayerFile(Player p) {
String uuid = p.getUniqueId().toString();
return new PlayerFile("plugins/Races/UserData/" + uuid + ".yml");
}
public s... | 27,539 |
https://github.com/milan-josipovic/gatsby-startup-hub-project/blob/master/src/pages/news.js | Github Open Source | Open Source | MIT | null | gatsby-startup-hub-project | milan-josipovic | JavaScript | Code | 20 | 44 | import React from "react"
import Layout from "../components/Layout"
const news = () => {
return <Layout>Vesti</Layout>
}
export default news
| 17,948 |
https://github.com/indrasisdatta/jobxpress_dev/blob/master/jobexpress-backend/routes/api.php | Github Open Source | Open Source | MIT | 2,018 | jobxpress_dev | indrasisdatta | PHP | Code | 86 | 265 | <?php
use Illuminate\Http\Request;
/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
| routes are loaded by the RouteServicePr... | 7,882 |
https://github.com/joey00186/Squad-SDK/blob/master/Cpp/SDK/W_GridButton_SquadOrders_functions.cpp | Github Open Source | Open Source | Apache-2.0 | 2,021 | Squad-SDK | joey00186 | C++ | Code | 233 | 1,176 | // Name: S, Version: b
#include "../SDK.h"
#ifdef _MSC_VER
#pragma pack(push, 0x01)
#endif
/*!!HELPER_DEF!!*/
/*!!DEFINE!!*/
namespace UFT
{
//---------------------------------------------------------------------------
// Functions
//---------------------------------------------------------------------------
// ... | 44,579 |
https://github.com/Rezelk/RubyStackMemos/blob/master/env/SQLite用SQLファイル/drop_table.sql | Github Open Source | Open Source | MIT | 2,013 | RubyStackMemos | Rezelk | SQL | Code | 4 | 9 | drop table memos;
.quit | 21,696 |
https://github.com/frezbo/inspec/blob/master/lib/inspec/version.rb | Github Open Source | Open Source | Apache-2.0 | 2,020 | inspec | frezbo | Ruby | Code | 6 | 22 | module Inspec
VERSION = "4.18.64".freeze
end
| 45,195 |
https://github.com/NathanWarden/unity-godot-compat/blob/master/UnityEngine/Resources/GUIContent.cs | Github Open Source | Open Source | MIT | 2,021 | unity-godot-compat | NathanWarden | C# | Code | 24 | 65 | using System;
namespace UnityEngine
{
public class GUIContent
{
public GUIContent() => throw new NotImplementedException();
public GUIContent(string text) => throw new NotImplementedException();
}
} | 20,197 |
https://github.com/strigazi/athena/blob/master/PhysicsAnalysis/JetTagging/JetTagInfo/src/SVInfoBase.cxx | Github Open Source | Open Source | Apache-2.0 | 2,020 | athena | strigazi | C++ | Code | 209 | 593 | /*
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
*/
#include "JetTagInfo/SVInfoBase.h"
#include "GaudiKernel/MsgStream.h"
#include <math.h>
#include <iostream>
namespace Analysis {
/** Default constructor */
SVInfoBase::SVInfoBase() : BaseTagInfo() {
m_tagLikelihood.clear();
}
... | 33,807 |
https://github.com/DABOZE/Queen-Alexa/blob/master/node_modules/fontkit/src/decorators.js | Github Open Source | Open Source | MIT | 2,022 | Queen-Alexa | DABOZE | JavaScript | Code | 116 | 277 | /**
* This decorator caches the results of a getter or method such that
* the results are lazily computed once, and then cached.
* @private
*/
export function cache(target, key, descriptor) {
if (descriptor.get) {
let get = descriptor.get;
descriptor.get = function() {
let value = get.call(this);
... | 10,284 |
https://github.com/stevenxiao/vimr/blob/master/VimR/FileItemIgnorePattern.swift | Github Open Source | Open Source | MIT | 2,016 | vimr | stevenxiao | Swift | Code | 131 | 450 | /**
* Tae Won Ha - http://taewon.de - @hataewon
* See LICENSE
*/
import Foundation
func ==(lhs: FileItemIgnorePattern, rhs: FileItemIgnorePattern) -> Bool {
return false
}
class FileItemIgnorePattern: Hashable {
var hashValue: Int {
return self.pattern.hashValue
}
let folderPattern: Bool
let p... | 45,464 |
https://github.com/fengjixuchui/soui/blob/master/third-part/7z/CPP/Windows/ResourceString.cpp | Github Open Source | Open Source | MIT | 2,018 | soui | fengjixuchui | C++ | Code | 229 | 729 | // Windows/ResourceString.cpp
#ifndef _UNICODE
#include "../Common/StringConvert.h"
#endif
#include "ResourceString.h"
extern HINSTANCE g_hInstance;
#ifndef _UNICODE
extern bool g_IsNT;
#endif
namespace NWindows {
#ifndef _UNICODE
static CSysString MyLoadStringA(HINSTANCE hInstance, UINT resourceID)
{
CSysStr... | 8,208 |
https://github.com/fish-uncle/evy/blob/master/app/mock/post/api/example/delete.js | Github Open Source | Open Source | MIT | 2,021 | evy | fish-uncle | JavaScript | Code | 16 | 48 | const Mock = require('mockjs');
module.exports = Mock.mock({
success: true,
code: 200,
data: [],
msg: '删除成功'
}); | 34,228 |
https://github.com/mbj/stratosphere/blob/master/services/glue/gen/Stratosphere/Glue/MLTransform/TransformParametersProperty.hs-boot | Github Open Source | Open Source | MIT | 2,023 | stratosphere | mbj | Haskell | Code | 25 | 74 | module Stratosphere.Glue.MLTransform.TransformParametersProperty where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.ResourceProperties
data TransformParametersProperty :: Prelude.Type
instance ToResourceProperties TransformParametersProperty
instance JSON.ToJS... | 9,882 |
https://github.com/l85m/trym/blob/master/app/assets/stylesheets/merchant_aliases.scss | Github Open Source | Open Source | MIT | 2,015 | trym | l85m | SCSS | Code | 37 | 98 | // Place all the styles related to the MerchantAliases controller here.
// They will automatically be included in application.css.
// You can use Sass (SCSS) here: http://sass-lang.com/
#merchant-aliases-index{
.tooltip{
width: 100%;
}
.tooltip-inner{
max-width: 100%;
}
} | 20,110 |
https://github.com/pravotin/prreddy-repo/blob/master/solo.rb | Github Open Source | Open Source | Apache-2.0 | 2,013 | prreddy-repo | pravotin | Ruby | Code | 4 | 47 | file_cache_path "/home/ubuntu/prreddy-repo/chef-solo"
cookbook_path "/home/ubuntu/prreddy-repo/cookbooks"
| 44,900 |
https://github.com/lucasventurasc/wakanda-js/blob/master/compile.js | Github Open Source | Open Source | MIT | 2,017 | wakanda-js | lucasventurasc | JavaScript | Code | 48 | 288 | var compressor = require('node-minify');
// Using Google Closure Compiler
compressor.minify({
compressor: 'no-compress',
input: ['components/crypto-js-3.1.9-1.js', 'components/aes-3.1.9-1.js', 'components/wakanda-service.js'],
output: 'dist/wakanda.js',
callback: function (err, min) {
console.... | 5,147 |
https://github.com/matski53/Simple-Pooler/blob/master/Demo/Scripts/Objects/BoxController.cs | Github Open Source | Open Source | Unlicense | 2,019 | Simple-Pooler | matski53 | C# | Code | 60 | 208 | using UnityEngine;
using ObjectPooler;
public class BoxController : MonoBehaviour
{
private Vector3 moveDirection;
private Transform objTransform;
void Awake()
{
//assign the component to reduce calls in update
objTransform = gameObject.transform;
objTransform.position = Vector3.zero;
moveDirection = n... | 45,525 |
https://github.com/pozil/auto-assign-issue/blob/master/node_modules/@babel/parser/lib/parser/statement.js | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, CC0-1.0, MIT | 2,023 | auto-assign-issue | pozil | JavaScript | Code | 5,671 | 21,455 | "use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = exports.ParseStatementFlag = exports.ParseFunctionFlag = void 0;
var _types = require("../tokenizer/types");
var _expression = require("./expression");
var _parseError = require("../parse-error");
var _identifier = require... | 11,536 |
https://github.com/Sanjay-Ganeshan/AudiobookMaker/blob/master/OCRTest/Extras/Tesseract-OCR/tesseract-ocr/doc/html/a00200.js | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, Apache-2.0 | 2,015 | AudiobookMaker | Sanjay-Ganeshan | JavaScript | Code | 25 | 164 | var a00200 =
[
[ "Class", "a00200.html#a2083307ebe623a6617ff38291a2f3614", null ],
[ "ClassPruners", "a00200.html#a614e997d4c6f4d1c5ff3b7dac186c536", null ],
[ "NumClasses", "a00200.html#a4735b2443aa7452909969d8d07e1877a", null ],
[ "NumClassPruners", "a00200.html#a6a13950c1c600a35e3c534f1751b1d89", nul... | 45,751 |
https://github.com/ManushriDave/visionaryservices/blob/master/app/Models/NiftyEmirate.php | Github Open Source | Open Source | BSD-2-Clause | null | visionaryservices | ManushriDave | PHP | Code | 39 | 150 | <?php
namespace App\Models;
use Eloquent;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
/**
* Class NiftyEmirate
* @mixin Eloquent
*/
class NiftyEmirate extends Model
{
use HasFactory;
protected $guarde... | 33,837 |
https://github.com/joedavis/void-packages/blob/master/srcpkgs/extractpdfmark/patches/poppler-076.patch | Github Open Source | Open Source | BSD-2-Clause | 2,020 | void-packages | joedavis | null | Spoken | 43 | 186 | diff --git src/poppler-core/destname.cc src/poppler-core/destname.cc
index 33e05e2..5f8d4f7 100644
--- src/poppler-core/destname.cc
+++ src/poppler-core/destname.cc
@@ -82,7 +82,7 @@ std::string poppler_core::build_destname (const std::string &name,
if (link_dest->isPageRef ())
{
Ref page_ref... | 43,669 |
https://github.com/MewX/contendo-viewer-v1.6.3/blob/master/jp/cssj/sakae/pdf/f/i.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | contendo-viewer-v1.6.3 | MewX | Java | Code | 280 | 606 | /* */ package jp.cssj.sakae.pdf.f;
/* */
/* */ public class i
/* */ extends a {
/* */ public static final short d = 1;
/* */ public static final short e = 2;
/* 7 */ private final f f = new f();
/* */
/* 9 */ private int g = 128;
/* */
/* 11 */ private short h = 1;
/* */ ... | 33,595 |
https://github.com/kvdatascience/zicolors/blob/master/man/theme_zi_titels.Rd | Github Open Source | Open Source | MIT | 2,020 | zicolors | kvdatascience | R | Code | 84 | 219 | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/main.R
\name{theme_zi_titels}
\alias{theme_zi_titels}
\title{Zi Theme with axis and labels based on theme_zi() optimal suited to print maps.}
\usage{
theme_zi_titels(fontsize = 14, font = "Calibri")
}
\arguments{
\item{Define}{a base_size (De... | 43,716 |
https://github.com/LouaiKB/USR_VS_UTILITIES/blob/master/files_utilities/sdf_ftr.cpp | Github Open Source | Open Source | MIT | null | USR_VS_UTILITIES | LouaiKB | C++ | Code | 31 | 124 | #include <iostream>
int main(int argc, char* argv[])
{
size_t num_bytes = 0;
for (std::string line; std::getline(std::cin, line);)
{
if (line == "$$$$")
{
num_bytes = std::cin.tellg();
std::cout.write(reinterpret_cast<char*>(&num_bytes), sizeof(num_bytes));
}
}
} | 44,577 |
https://github.com/jsdelivrbot/BetterFeed2/blob/master/src/js/modules/settings-link.js | Github Open Source | Open Source | MIT | null | BetterFeed2 | jsdelivrbot | JavaScript | Code | 361 | 1,194 | import {registerModule} from "./../base/modules";
import h from "../utils/html";
import bfRoot from "../utils/bf-root";
import Lightbox from "../utils/lightbox";
import {authToken} from '../utils/current-user-id.js';
import escapeHTML from "../utils/escape-html";
const version = process.env.BF2_VERSION;
const module ... | 14,303 |
https://github.com/iamcarrico/generator-poole/blob/master/test/04-integration.js | Github Open Source | Open Source | MIT | 2,015 | generator-poole | iamcarrico | JavaScript | Code | 23 | 62 | /*global describe, beforeEach, it */
'use strict';
var path = require('path');
//var mockery = require('mockery');
var helpers = require('yeoman-generator').test;
var assert = require('yeoman-generator').assert;
| 37,252 |
https://github.com/halak/bibim/blob/master/include/Bibim/BoxShape2D.h | Github Open Source | Open Source | curl | 2,019 | bibim | halak | C | Code | 146 | 551 | #pragma once
#ifndef __BIBIM_BOXSHAPE2D_H__
#define __BIBIM_BOXSHAPE2D_H__
#include <Bibim/FWD.h>
#include <Bibim/Shape2D.h>
namespace Bibim
{
class BoxShape2D : public Shape2D
{
BBComponentClass(BoxShape2D, Shape2D, 'O', 'B', 'S', '2');
public:
BoxShape2D();
virtual ~... | 21,867 |
https://github.com/libcs/game.ultimaonline.io/blob/master/UltimaOnline.Data/Regions/HouseRegion.cs | Github Open Source | Open Source | MIT | 2,019 | game.ultimaonline.io | libcs | C# | Code | 1,399 | 4,248 | using System;
using UltimaOnline;
using UltimaOnline.Mobiles;
using UltimaOnline.Items;
using UltimaOnline.Multis;
using UltimaOnline.Spells;
using UltimaOnline.Spells.Sixth;
using UltimaOnline.Guilds;
using UltimaOnline.Gumps;
namespace UltimaOnline.Regions
{
public class HouseRegion : BaseRegion
{
pu... | 19,691 |
https://github.com/gomberg5264/pagescore2/blob/master/extensions/workspace/workspace.ui.runtime.tsx | Github Open Source | Open Source | Apache-2.0 | 2,020 | pagescore2 | gomberg5264 | TSX | Code | 306 | 1,152 | import { ComponentAspect, ComponentUI, ComponentModel } from '@teambit/component';
import { ComponentTreeAspect, ComponentTreeUI, ComponentTreeNode } from '@teambit/component-tree';
import { Slot, SlotRegistry } from '@teambit/harmony';
import ReactRouterAspect, { RouteSlot, ReactRouterUI } from '@teambit/react-router'... | 23,927 |
https://github.com/isabella232/uiprogress/blob/master/bar.go | Github Open Source | Open Source | MIT | 2,020 | uiprogress | isabella232 | Go | Code | 929 | 2,128 | package uiprogress
import (
"bytes"
"errors"
"fmt"
"sync"
"time"
"github.com/textileio/uiprogress/util/strutil"
)
var (
// Fill is the default character representing completed progress
Fill byte = '='
// Head is the default character that moves when progress is updated
Head byte = '>'
// Empty is the de... | 35,912 |
https://github.com/tom95/svgcanvas/blob/master/src/SVGCanvas.package/SVGTag.class/instance/close.st | Github Open Source | Open Source | MIT | 2,020 | svgcanvas | tom95 | null | Spoken | 21 | 32 | brush
close
"Close and flush the receiver onto the canvas and its associated document."
closed ifFalse: [ self with: nil ] | 19,137 |
https://github.com/ten0s/srsa/blob/master/_includes/sources/java/HuffmanTrieFromDump.java | Github Open Source | Open Source | MIT | 2,022 | srsa | ten0s | Java | Code | 147 | 436 | import java.util.*;
/*
public class Huffman {
protected static final int R = 256; // extended ASCII
protected static class Node implements Comparable<Node> {
char ch;
int freq;
final Node left, right;
public Node(char ch, int freq, Node left, Node right);
public boolean... | 44,045 |
https://github.com/tanyalevshina/decisionengine/blob/master/src/decisionengine/framework/tests/FailingPublisher.py | Github Open Source | Open Source | BSD-3-Clause | 2,021 | decisionengine | tanyalevshina | Python | Code | 24 | 94 | from decisionengine.framework.modules import Publisher
CONSUMES = ["bar"]
class FailingPublisher(Publisher.Publisher):
def __init__(self, config):
super().__init__(config)
def publish(self, data_block):
raise RuntimeError("Test error-handling")
def consumes(self, name_list):
re... | 29,849 |
https://github.com/pombredanne/bin/blob/master/cron.private-backup | Github Open Source | Open Source | MIT | 2,015 | bin | pombredanne | Shell | Code | 192 | 679 | #!/bin/sh
k_grawity='2357E10CEF4F7ED27E233AD5D24F6CB2C1B52632'
k_nathan='852E5BA4D9D15EFC37FEA5789DCC67E0901AB0CD' # share 1 of 3
k_henrik='0E01120D002CA0F65B9E990E149794CB0A0ADFBF' # share 2 of 3
k_fahadsadah='???' # share 3 of 3
people="-r $k_nathan -r $k_henrik"
is_up() {
[ "$SSH_AUTH_SOCK" ] && ping -c 1 "$1" >&... | 3,642 |
https://github.com/DevelopByTarun/TODAY-HELP/blob/master/NODE-EXPRESS/nodejsinaction-master/appendix-a/listing_a5/index.js | Github Open Source | Open Source | MIT | 2,019 | TODAY-HELP | DevelopByTarun | JavaScript | Code | 48 | 166 | const connect = require('connect');
const bodyParser = require('body-parser');
function verifyRequest(req, res, buf, encoding) {
if (!buf.toString().match(/^name=/)) {
throw new Error('Bad format');
}
}
connect()
.use(bodyParser.urlencoded({
extended: false,
limit: 10,
verify: verifyRequest
})... | 10,425 |
https://github.com/rajasegar/_hyperscript/blob/master/www/test/0.0.9/test/features/js.js | Github Open Source | Open Source | BSD-2-Clause | 2,022 | _hyperscript | rajasegar | JavaScript | Code | 238 | 613 | describe('The (top-level) js feature', function () {
beforeEach(function () {
clearWorkArea();
});
afterEach(function () {
clearWorkArea();
});
it('can run js at the top level', function() {
window.testSuccess = false
var script = make("<script type=text/hyperscript>" +
... | 7,303 |
https://github.com/aklokov/hash-map/blob/master/src/objectMap/extend.ts | Github Open Source | Open Source | MIT | 2,017 | hash-map | aklokov | TypeScript | Code | 19 | 42 | import { create } from './create';
export function extend<T>(src: T, extend?: T): T {
return Object.assign(create(), src, extend);
}
| 37,021 |
https://github.com/shakes76/smili/blob/master/apps/milxAnimate/milxAnimate.cpp | Github Open Source | Open Source | BSD-2-Clause | 2,021 | smili | shakes76 | C++ | Code | 2,141 | 7,417 | /*=========================================================================
The Software is copyright (c) Commonwealth Scientific and Industrial Research Organisation (CSIRO)
ABN 41 687 119 230.
All rights reserved.
Licensed under the CSIRO BSD 3-Clause License
You may not use this file except in compliance ... | 13,704 |
https://github.com/aminaly/aminaly.github.io/blob/master/frontend/node_modules/style-loader/dist/runtime/setAttributesWithAttributesAndNonce.js | Github Open Source | Open Source | MIT | 2,021 | aminaly.github.io | aminaly | JavaScript | Code | 21 | 70 | "use strict";
/* istanbul ignore next */
function setAttributesWithoutAttributes(style, attributes) {
Object.keys(attributes).forEach(function (key) {
style.setAttribute(key, attributes[key]);
});
}
module.exports = setAttributesWithoutAttributes; | 2,735 |
https://github.com/afeng11/tomato-arm/blob/master/release/src-rt-6.x.4708/router/minidlna/tagutils/tagutils-asf.c | Github Open Source | Open Source | FSFAP | 2,022 | tomato-arm | afeng11 | C | Code | 1,824 | 7,111 | //=========================================================================
// FILENAME : tagutils-asf.c
// DESCRIPTION : ASF (wma/wmv) metadata reader
//=========================================================================
// Copyright (c) 2008- NETGEAR, Inc. All Rights Reserved.
//================================... | 10,132 |
https://github.com/joonhocho/ts-jutil/blob/master/src/json/deepMapArrayWithoutEmpty.test.ts | Github Open Source | Open Source | MIT | 2,020 | ts-jutil | joonhocho | TypeScript | Code | 177 | 399 | import { deepMapArrayWithoutEmpty } from './deepMap';
test('deepMapArrayWithoutEmpty', () => {
expect(
deepMapArrayWithoutEmpty(
[
8,
{ g: null, a: [null, NaN, null], k: { c: true } },
{
z: 0,
a: 1,
b: 2,
n: NaN,
c: null,
d... | 36,582 |
https://github.com/pnegahdar/centralsession/blob/master/centralsession/django_session.py | Github Open Source | Open Source | MIT | 2,016 | centralsession | pnegahdar | Python | Code | 141 | 622 | from django.contrib.sessions.backends.base import SessionBase
from django.conf import settings
from centralsession.backend import SessionBackend
REDIS_URI_SETTING = 'CENTRAL_SESSION_REDIS_URI'
KEY_PREFIX_SETTING = 'CENTRAL_SESSION_KEY_PREFIX'
def get_backend():
if not hasattr(settings, REDIS_URI_SETTING):
... | 27,951 |
https://github.com/StevenRasmussen/EFCore.SqlServer.NodaTime/blob/master/src/SimplerSoftware.EntityFrameworkCore.SqlServer.NodaTime/Query/ExpressionTranslators/LocalDateMemberTranslator.cs | Github Open Source | Open Source | MIT | 2,023 | EFCore.SqlServer.NodaTime | StevenRasmussen | C# | Code | 57 | 220 | using JetBrains.Annotations;
using Microsoft.EntityFrameworkCore.Query;
using NodaTime;
using System.Collections.Generic;
namespace Microsoft.EntityFrameworkCore.SqlServer.Query.ExpressionTranslators
{
public class LocalDateMemberTranslator : BaseNodaTimeMemberTranslator
{
private static readonly Dict... | 2,090 |
https://github.com/sfjmt/ofxIntersection2D/blob/master/src/calculate/ofxIntersection2DCalculateLine.hpp | Github Open Source | Open Source | MIT | 2,019 | ofxIntersection2D | sfjmt | C++ | Code | 306 | 1,143 | #ifndef ofxIntersection2DCalculateLine_hpp
#define ofxIntersection2DCalculateLine_hpp
#include "ofMain.h"
#include "BaseIntersection.hpp"
namespace ofxIntersection2D {
class Line2D : public BaseIntersection {
public:
Line2D() { toggleUsingOutsidePoints = false; };
~Line2D(){};
//---------------------... | 12,606 |
https://github.com/Cherno-SuS/SunderingShadows/blob/master/d/koenig/obj/water_earrings.c | Github Open Source | Open Source | MIT, LicenseRef-scancode-unknown-license-reference | 2,021 | SunderingShadows | Cherno-SuS | C | Code | 158 | 374 | //water_earrings.c - New object for Koenig. Circe 11/22/03
#include <std.h>
inherit "/std/armour";
void create()
{
::create();
set_name("water earrings");
set_short("%^BOLD%^%^CYAN%^Water Earrings%^RESET%^");
set_id(({"water earrings","earrings"}));
set_long("%^BOLD%^%^CYAN%^This breath-taking pair of ... | 11,708 |
https://github.com/3DStreamingToolkit/cloud-deploy/blob/master/web-api/Cloud3DSTKDeployment/Models/CapacityStatus.cs | Github Open Source | Open Source | MIT | 2,018 | cloud-deploy | 3DStreamingToolkit | C# | Code | 148 | 300 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
namespace Cloud3DSTKDeployment.Models
{
/// <summary>
/// Initializes a new instance of the <see cref="AutoscalingStatus" /> enum
/// </summary>
public enum AutoscalingStatus
{
/// <summary>
... | 22,128 |
https://github.com/Twinklebear/micro-packet/blob/master/include/render_target.h | Github Open Source | Open Source | MIT | 2,020 | micro-packet | Twinklebear | C | Code | 285 | 570 | #ifndef RENDER_TARGET_H
#define RENDER_TARGET_H
#include <string>
#include <vector>
#include <atomic>
#include <memory>
#include "vec.h"
#include "color.h"
/*
* A pixel stored in the image being rendered to track pixel
* luminance and weight for reconstruction
* Because we need to deal with multi-thread synchroniz... | 2,643 |
https://github.com/jefeblaize/Pester/blob/master/Source/PSAlert.h | Github Open Source | Open Source | BSD-2-Clause | 2,021 | Pester | jefeblaize | Objective-C | Code | 101 | 299 | //
// PSAlert.h
// Pester
//
// Created by Nicholas Riley on Sat Oct 26 2002.
// Copyright (c) 2002 Nicholas Riley. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "PSAlarm.h"
#import "PSPropertyListSerialization.h"
#import "NSString-NJRExtensions.h"
extern NSString * const PSAlertCreationExcept... | 19,466 |
https://github.com/pxl1778/Sense3/blob/master/Assets/Scripts/Shared/FloorPlaneGrid.cs | Github Open Source | Open Source | MIT | 2,017 | Sense3 | pxl1778 | C# | Code | 467 | 1,387 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using UnityEngine;
[Serializable]
class FloorPlaneGrid:MonoBehaviour
{
public static FloorPlaneGrid instance;
public GameObject planePrefab;
private GameObject[,] planes;
private GameObject planesContainer;
pr... | 561 |
https://github.com/alienware/midas_genie/blob/master/app/models/midas_genie/survey_section.rb | Github Open Source | Open Source | MIT | 2,016 | midas_genie | alienware | Ruby | Code | 69 | 303 | require 'paranoia'
require 'acts_as_list'
require 'auto_increment'
module MidasGenie
class SurveySection < ActiveRecord::Base
acts_as_paranoid
counter_culture :midas_survey, column_name: 'survey_sections_count'
auto_increment :position, scope: :section_id, initial: 1, force: true, lock: false
acts_as... | 33,911 |
https://github.com/delahee/h3d/blob/master/h3d/impl/MemoryManager.hx | Github Open Source | Open Source | MIT | 2,020 | h3d | delahee | Haxe | Code | 2,945 | 7,843 | package h3d.impl;
import h3d.impl.MemoryManager.FreeCell;
import haxe.EnumFlags.EnumFlags;
import hxd.System;
@:allow(h3d)
class FreeCell {
static var GUID = 0;
var id = -1;
var pos : Int;
var count : Int;
var next : FreeCell;
inline function new(pos,count,next) {
this.pos = pos;
this.count = count;
this.n... | 9,894 |
https://github.com/kvandake/friendly-locale/blob/master/FriendlyLocale/Interfaces/ITranslateContentClient.cs | Github Open Source | Open Source | MIT | 2,020 | friendly-locale | kvandake | C# | Code | 35 | 120 | namespace FriendlyLocale.Interfaces
{
using System;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
public interface ITranslateContentClient
{
Task<string[]> GetContent(ILocale locale, IProgress<float> progress = null, CancellationToken ct = defa... | 47,512 |
https://github.com/vgn-medien-holding/cli/blob/master/cmd/runstatus_maintenance_show.go | Github Open Source | Open Source | Apache-2.0 | 2,022 | cli | vgn-medien-holding | Go | Code | 210 | 730 | package cmd
import (
"fmt"
"time"
"github.com/exoscale/egoscale"
"github.com/spf13/cobra"
)
type runstatusMaintenanceShowOutput struct {
ID int `json:"id"`
Title string `json:"title"`
Description string `json:"description,omitempty"`
State string `j... | 31,589 |
https://github.com/tonycody/tencent-tdw/blob/master/qe/ql/src/java/org/apache/hadoop/hive/ql/exec/ConditionalTask.java | Github Open Source | Open Source | Apache-1.1 | 2,021 | tencent-tdw | tonycody | Java | Code | 539 | 1,488 | /**
* 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... | 31,229 |
https://github.com/Luong2705/LaravelDemo/blob/master/app/Http/Requests/RequestResetPassword.php | Github Open Source | Open Source | MIT | null | LaravelDemo | Luong2705 | PHP | Code | 112 | 320 | <?php
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
class RequestResetPassword extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return true;
}
/**
* ... | 30,875 |
https://github.com/iSHAREScheme/AuthorizationRegistry/blob/master/iSHARE.TokenClient/Api/IAssertionService.cs | Github Open Source | Open Source | Unlicense | 2,022 | AuthorizationRegistry | iSHAREScheme | C# | Code | 50 | 137 | using System.Threading.Tasks;
using iSHARE.TokenClient.Models;
namespace iSHARE.TokenClient.Api
{
/// <summary>
/// Provides signed assertions for specific client
/// </summary>
public interface IAssertionService
{
string CreateJwtAssertion(ClientAssertion clientAssertion, string privateKe... | 16,500 |
https://github.com/Bluebie/digiusb.rb/blob/master/examples/finn.rb | Github Open Source | Open Source | Unlicense | 2,013 | digiusb.rb | Bluebie | Ruby | Code | 52 | 169 | require 'digiusb'
spark = DigiUSB.sparks.last
print spark.puts "Jake! Jake! Good Morning! Whatcha' doin' buddy?"
print msg = spark.gets
print spark.puts "What are you #{msg.downcase.gsub(/[^a-z]/, '')} about, dude?"
print spark.gets
print spark.puts "Haha! Beep! Boop! Boooop! Beep! Boop!"
print spark.gets
print spark... | 9,488 |
https://github.com/microsoft/msfs-avionics-mirror/blob/master/src/workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/Map/MapFlightPlanWaypointIconFactory.ts | Github Open Source | Open Source | MIT | 2,022 | msfs-avionics-mirror | microsoft | TypeScript | Code | 235 | 938 | import { MapBlankWaypointIcon, MapWaypointIcon, MapWaypointRendererIconFactory } from 'msfssdk/components/map';
import { FacilityType, ICAO, AirportWaypoint, FacilityWaypoint, FlightPathWaypoint, Waypoint } from 'msfssdk/navigation';
import { MapAirportIcon, MapFlightPathWaypointIcon, MapIntersectionIcon, MapNdbIcon, M... | 25,397 |
https://github.com/DiegoASanches/capytal-api/blob/master/src/users/users.controller.ts | Github Open Source | Open Source | MIT | 2,021 | capytal-api | DiegoASanches | TypeScript | Code | 463 | 1,461 | import {
Controller,
Post,
Body,
Query,
Get,
Param,
UseGuards,
Delete,
BadRequestException,
ConflictException,
Put,
NotFoundException,
} from '@nestjs/common';
import { JwtAuthGuard } from './../auth/jwt/jwt-auth.guard';
import { CryptService } from './../auth/crypt/crypt.service';
import { User... | 25,035 |
https://github.com/project-kotinos/maxfierke___resumis/blob/master/app/assets/stylesheets/resume.css.scss | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-unknown-license-reference | 2,019 | maxfierke___resumis | project-kotinos | SCSS | Code | 72 | 291 | @import "bootstrap-sprockets";
@import "bootswatch/yeti/variables";
@import "bootstrap";
@import "bootswatch/yeti/bootswatch";
@import "font-awesome-sprockets";
@import "font-awesome";
@import "resumis/components/panels";
.container {
max-width: 860px;
}
.page-header {
h1, h2, h3 {
line-height: 0.9;
... | 38,718 |
https://github.com/Joey35233/FoxLib/blob/master/FoxLib/GimmickLocator/GimmickLocator.fs | Github Open Source | Open Source | MIT | 2,021 | FoxLib | Joey35233 | null | Spoken | 175 | 385 | module FoxLib.Tpp.GimmickLocator
open FoxLib.Core
/// <summary>
/// Used by TppGimmickPowerCutAreaData entities. Presumably indicates a point in space where you can turn off electricity.
/// </summary>
/// <remarks>
/// These locators have no name, so how are they referenced?
/// </remarks>
type public PowerCutA... | 26,247 |
https://github.com/umd-lib/bcast_file_transfer/blob/master/lib/bcast_file_transfer/prune_result.rb | Github Open Source | Open Source | Apache-2.0 | 2,018 | bcast_file_transfer | umd-lib | Ruby | Code | 23 | 65 | module BcastFileTransfer
# Holds the result of a single "prune" operation
class PruneResult
attr_reader :dir_name
def initialize(dir_name)
@dir_name = dir_name
end
end
end
| 23,057 |
https://github.com/xenking/windmill-dashboard-svelte/blob/master/src/routes/Tables.svelte | Github Open Source | Open Source | MIT | 2,020 | windmill-dashboard-svelte | xenking | null | Spoken | 3,110 | 15,231 | <div class="container grid px-6 mx-auto">
<h2 class="my-6 text-2xl font-semibold text-gray-700 dark:text-gray-200">
Tables
</h2>
<!-- With avatar -->
<h4 class="mb-4 text-lg font-semibold text-gray-600 dark:text-gray-300">
Table with avatars
</h4>
<div class="w-full mb-8 overflow-hidden rounded-lg ... | 33,640 |
https://github.com/twrameshb/frameworks/blob/master/Selenium-Ruby-Project2/test/test_helper.rb | Github Open Source | Open Source | Apache-2.0 | 2,011 | frameworks | twrameshb | Ruby | Code | 1,281 | 4,333 | ENV["RAILS_ENV"] = "test"
require File.expand_path(File.dirname(__FILE__) + "/../config/environment")
require 'context'
require 'matchy'
require 'pending'
require 'test_help'
require 'mocha'
require 'mocha/integration/test_unit'
require 'resque'
ActionView::Base.class_eval do
include ActionView::Helpers
end
Profan... | 6,468 |
https://github.com/shinesolutions/swagger-aem-osgi/blob/master/clients/cpp-restsdk/generated/model/ComDayCqWcmCoreImplWCMDeveloperModeFilterProperties.cpp | Github Open Source | Open Source | Apache-2.0 | 2,021 | swagger-aem-osgi | shinesolutions | C++ | Code | 233 | 1,358 | /**
* Adobe Experience Manager OSGI config (AEM) API
* Swagger AEM OSGI is an OpenAPI specification for Adobe Experience Manager (AEM) OSGI Configurations API
*
* OpenAPI spec version: 1.0.0-pre.0
* Contact: opensource@shinesolutions.com
*
* NOTE: This class is auto generated by OpenAPI-Generator 3.2.1-SNAPSHOT.... | 13,344 |
https://github.com/honeynatividad/trabahoinc/blob/master/application/views/interns/admin/edit.php | Github Open Source | Open Source | MIT | null | trabahoinc | honeynatividad | PHP | Code | 558 | 2,552 | <section id="main-content">
<section class="wrapper">
<!--overview start-->
<div class="row">
<div class="col-lg-12">
<h3 class="page-header"><i class="fa fa-laptop"></i> Intern Profile</h3>
<ol class="breadcrumb">
<li><i class="fa ... | 20,682 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.