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/yanisvieilly/game-of-life/blob/master/gulpfile.js | Github Open Source | Open Source | MIT | null | game-of-life | yanisvieilly | JavaScript | Code | 28 | 133 | var gulp = require('gulp')
var plumber = require('gulp-plumber');
var coffee = require("gulp-coffee");
gulp.task('build', function() {
gulp.src('src/*.coffee')
.pipe(plumber())
.pipe(coffee())
.pipe(gulp.dest('dist'));
});
gulp.task('watch', function() {
gulp.watch('src/*.coffee', ['build']);
});
gul... | 53,192 |
https://github.com/Ukasz09/Roverondo-web/blob/master/src/app/core/models/data/user-extended.ts | Github Open Source | Open Source | MIT | null | Roverondo-web | Ukasz09 | TypeScript | Code | 16 | 40 | import { User, AllTimeStatistics } from "@app/core/models";
export interface UserExtended extends User {
allTimeStatistics: AllTimeStatistics;
}
| 23,792 |
https://github.com/reyjexter/TiCustomComponents/blob/master/Resources/app.js | Github Open Source | Open Source | Apache-2.0 | 2,013 | TiCustomComponents | reyjexter | JavaScript | Code | 254 | 870 | // DirectionMapView
var win = Ti.UI.createWindow({backgroundColor: '#ffffff'});
// chat list view
var chatListView = require('components/ChatListView')(win);
for(var i=0; i<20; i++) {
chatListView.addMessage("This is a message " + i);
}
setTimeout(function() {
chatListView.scrollToBottom();
}, 300);
/*
// map wit... | 2,029 |
https://github.com/sociomantic-tsunami/lochness/blob/master/src/components/Configurator.js | Github Open Source | Open Source | MIT | null | lochness | sociomantic-tsunami | JavaScript | Code | 426 | 993 | /*
* Copyright (c) 2017-2018 dunnhumby Germany GmbH.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the LICENSE file
* in the root directory of this source tree.
*
*/
import React, { Component } from 'react';
import PropTypes ... | 50,577 |
https://github.com/luzhongqiu/pyspider/blob/master/pyspider/webui/index.py | Github Open Source | Open Source | Apache-2.0 | 2,017 | pyspider | luzhongqiu | Python | Code | 657 | 2,331 | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
# vim: set et sw=4 ts=4 sts=4 ff=unix fenc=utf8:
# Author: Binux<i@binux.me>
# http://binux.me
# Created on 2014-02-22 23:20:39
import socket
import time
import datetime
from six import iteritems, itervalues
from flask import render_template, request, json
try:
... | 16,898 |
https://github.com/KPMGE/FreshGift/blob/master/backend/tests/presentation/controllers/create-gift.spec.ts | Github Open Source | Open Source | MIT | 2,022 | FreshGift | KPMGE | TypeScript | Code | 202 | 637 | import { CreateGiftController } from "../../../src/presentation/controllers/gift/create-gift";
import { ServerError } from "../../../src/presentation/errors";
import { ValidatorSpy } from "./mocks";
import { CreateGiftServiceSpy } from "./mocks/create-gift-service";
const fakeRequest: CreateGiftController.Request = {
... | 39,962 |
https://github.com/JunZCn/DBus/blob/master/dbus-keeper/keeper-web/app/containers/Project/resourceWrapper.js | Github Open Source | Open Source | Apache-2.0 | 2,022 | DBus | JunZCn | JavaScript | Code | 109 | 344 | /**
* @author 戎晓伟
* @description 项目管理
*/
import React, { PropTypes, Component } from 'react'
import Helmet from 'react-helmet'
// 导入自定义组件
import ProjectResourceWrapper from '../../containers/ProjectManage/ProjectResourceWrapper'
export default class ResourceWrapper extends Component {
constructor (props) {
... | 27,917 |
https://github.com/EliteArmy/programacion_web/blob/master/public/js/controladores/login.js | Github Open Source | Open Source | MIT | 2,019 | programacion_web | EliteArmy | JavaScript | Code | 477 | 2,024 | var campos = [
{campo:'correo', expresion: /^(([^<>()\[\]\.,;:\s@\"]+(\.[^<>()\[\]\.,;:\s@\"]+)*)|(\".+\"))@(([^<>()[\]\.,;:\s@\"]+\.)+[^<>()[\]\.,;:\s@\"]{2,})$/i,
formato: 'Ingrese un correo o contraseña válida.', valido: false},
{campo:'contrasena', expresion: /^((?=\S*?[A-Z])(?=\S*?[a-z])(?=\S*?[0-9]).{6,100... | 31,779 |
https://github.com/REBOOTERS/AndroidAnimationExercise/blob/master/game/src/main/assets/2048/js/i18n.js | Github Open Source | Open Source | Apache-2.0, MIT | 2,023 | AndroidAnimationExercise | REBOOTERS | JavaScript | Code | 357 | 1,039 | /**
* Internationalization methods for '2048' game.
*
* @author Igor A. <a4vi2r@gmail.com>
*/
'use strict';
var Localizer = (function(lang) {
var defaultMsgs = {
intro : 'Join the numbers and get to the <strong>2048 tile!</strong>',
new_game : 'New Game',
undo : 'Undo',
keep_going : 'Keep going',
try_... | 15,294 |
https://github.com/cdli-gh/mtaac_cdli_ur3_corpus/blob/master/ur3_corpus_data/annotated/pos/P118/P118296.conll | Github Open Source | Open Source | CC0-1.0, LicenseRef-scancode-public-domain | 2,022 | mtaac_cdli_ur3_corpus | cdli-gh | null | Spoken | 249 | 1,286 | #new_text=P118296
# ID FORM SEGM XPOSTAG HEAD DEPREL MISC
o.1.1 x _[_] N
o.1.2 udu udu[sheep] N
o.1.3 niga niga[fattened][-ø] V
o.2.1 x _[_] N
o.2.2 udu udu[sheep] N
o.2.3 a-lum aslum[sheep_type] N
o.2.4 niga niga[fattened][-ø] V
o.3.1 x _[_] N
o.3.2 sila4 sila[lamb] N
o.3.3 niga niga[fattened][-ø] V
o.4.1 ... _[_] PN
... | 3,048 |
https://github.com/dandycheung/AdvancedBiometricPromptCompat/blob/master/biometric/src/main/java/dev/skomlach/biometric/compat/utils/TruncatedTextFix.kt | Github Open Source | Open Source | Apache-2.0 | 2,021 | AdvancedBiometricPromptCompat | dandycheung | Kotlin | Code | 562 | 1,805 | /*
* Copyright (c) 2021 Sergey Komlach aka Salat-Cx65; Original project https://github.com/Salat-Cx65/AdvancedBiometricPromptCompat
* 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... | 52,988 |
https://github.com/ahalwright/CGP.jl/blob/master/src/modularity.jl | Github Open Source | Open Source | MIT | 2,023 | CGP.jl | ahalwright | Julia | Code | 221 | 920 | # Test the modularity hypothesis of Kashtan 2005.
# the modular goals of Kashtan are saved in notes/diary12_15.txt
function test_switching_goals( ngens::Int64, gens_to_switch::Int64, numinteriors::Int64, levels_back::Int64,
max_steps::Int64, max_steps_for_switch::Int64 )
p = Parameters( 4, 1, numinteriors, level... | 44,843 |
https://github.com/neuroconductor/ggseg/blob/master/man/reposition_brain.Rd | Github Open Source | Open Source | MIT | 2,021 | ggseg | neuroconductor | R | Code | 131 | 294 | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/position-brain.R
\name{reposition_brain}
\alias{reposition_brain}
\title{Reposition brain slices}
\usage{
reposition_brain(data, position = "horizontal")
}
\arguments{
\item{data}{sf-data.frame of joined brain atlas and tata}
\item{position}... | 22,480 |
https://github.com/Servoy/angularmaterial/blob/master/AngularMaterialSamples/forms/CheckboxBts.js | Github Open Source | Open Source | MIT | 2,017 | angularmaterial | Servoy | JavaScript | Code | 29 | 146 | /**
* @type {String}
*
* @properties={typeid:35,uuid:"4798B36B-65E3-4A32-B7BE-15B3E032AA1F"}
*/
var longText = null;
/**
* @param {JSEvent} event
*
* @properties={typeid:24,uuid:"52F3B39E-E08D-453E-BFB3-3EA1248C67F8"}
*/
function onLoad(event) {
testElement = "mdcheck_test"
_super.onLoad(event)
} | 50,133 |
https://github.com/agra-uni-bremen/riscv-vp/blob/master/vp/src/core/common/gdb-mc/gdb_runner.h | Github Open Source | Open Source | MIT | 2,023 | riscv-vp | agra-uni-bremen | C++ | Code | 32 | 172 | #ifndef RISCV_GDB_RUNNER
#define RISCV_GDB_RUNNER
#include <systemc>
#include "debug.h"
#include "gdb_server.h"
SC_MODULE(GDBServerRunner) {
public:
SC_HAS_PROCESS(GDBServerRunner);
GDBServerRunner(sc_core::sc_module_name, GDBServer *, debug_target_if *);
private:
GDBServer *server;
debug_target_if *hart;
sc_c... | 16,749 |
https://github.com/AY1920S1-CS2103-T11-3/main/blob/master/src/main/java/seedu/system/model/person/CustomDate.java | Github Open Source | Open Source | MIT | 2,019 | main | AY1920S1-CS2103-T11-3 | Java | Code | 230 | 617 | package seedu.system.model.person;
import static java.util.Objects.requireNonNull;
import static seedu.system.commons.util.AppUtil.checkArgument;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
/**
* Creates a CustomDate object based on DATE_FORMAT
*/
public class CustomD... | 4,119 |
https://github.com/brandon14/amazon-sdk-php/blob/master/src/FulfillmentOutbound/V20200701/Model/EventCode.php | Github Open Source | Open Source | MIT | 2,023 | amazon-sdk-php | brandon14 | PHP | Code | 583 | 1,342 | <?php
/**
* This file is part of the trollandtoad/amazon-sdk-php package.
*
* MIT License
*
* Copyright (c) 2022 Brandon Clothier
*
* 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 w... | 9,971 |
https://github.com/ttakahari/PerformanceCounterCollector/blob/master/PerformanceCounterCollector.sln | Github Open Source | Open Source | MIT | 2,018 | PerformanceCounterCollector | ttakahari | null | Spoken | 236 | 2,225 |
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.26228.4
MinimumVisualStudioVersion = 10.0.40219.1
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{0790D2CB-FE45-449E-9587-89152FAB7260}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46D... | 36,865 |
https://github.com/ksv180384/blog/blob/master/app/Repositories/LikeRepository.php | Github Open Source | Open Source | MIT | null | blog | ksv180384 | PHP | Code | 84 | 285 | <?php
namespace App\Repositories;
use App\Models\Blog\Like as Model;
class LikeRepository extends CoreRepository
{
public function getModelClass()
{
return Model::class;
}
/**
* Считает количество лайков поста
* @param $post_id - идентификатор поста
* @return mixed
*/
... | 50,659 |
https://github.com/Ohtar10/dele-zoo/blob/master/hogwild/pytorch/main.py | Github Open Source | Open Source | Apache-2.0 | null | dele-zoo | Ohtar10 | Python | Code | 233 | 919 | import torch
import torch.nn as nn
import torch.optim as optim
import torch.multiprocessing as mp
import torchvision.transforms as transforms
from torch.utils.data import DataLoader, Dataset, DistributedSampler
from torchvision.datasets import CIFAR10
from tqdm import tqdm
class Model(nn.Module):
def __init__(sel... | 50,607 |
https://github.com/wathmal/Rocket.Chat.Android/blob/master/app/src/main/java/chat/rocket/android/fragment/sidebar/dialog/AddDirectMessageDialogFragment.java | Github Open Source | Open Source | MIT | 2,017 | Rocket.Chat.Android | wathmal | Java | Code | 126 | 671 | package chat.rocket.android.fragment.sidebar.dialog;
import android.os.Bundle;
import android.view.View;
import android.widget.AutoCompleteTextView;
import android.widget.TextView;
import com.jakewharton.rxbinding.widget.RxTextView;
import io.realm.Case;
import bolts.Task;
import chat.rocket.android.R;
import chat.ro... | 19,629 |
https://github.com/ahatch1490/silverneedle-web/blob/master/silverneedle-tests/Characters/Feats/AgileManeuversCommandTests.cs | Github Open Source | Open Source | MIT | 2,018 | silverneedle-web | ahatch1490 | C# | Code | 62 | 287 | // Copyright (c) 2018 Trevor Redfern
//
// This software is released under the MIT License.
// https://opensource.org/licenses/MIT
namespace Tests.Characters.Feats
{
using SilverNeedle.Characters;
using SilverNeedle.Characters.Feats;
using Xunit;
public class AgileManeuversCommandTests
{
... | 43,962 |
https://github.com/SebastiaanYN/syntek/blob/master/src/grammar/nodes/Expressions.ts | Github Open Source | Open Source | ISC | 2,019 | syntek | SebastiaanYN | TypeScript | Code | 520 | 1,510 | import {
Token, Node, SyntacticToken, VariableType,
} from '..';
import { Span } from '../../position';
export class AssignmentExpression extends Node {
readonly left: Node;
readonly value: Node;
constructor(left: Node, value: Node, span: Span) {
super(SyntacticToken.ASSIGNMENT_EXPR, span);
this.lef... | 43,591 |
https://github.com/ElsevierSoftwareX/SOFTX-D-21-00169/blob/master/app/serializers/component/ComponentMetadataSerializer.java | Github Open Source | Open Source | MIT | 2,021 | SOFTX-D-21-00169 | ElsevierSoftwareX | Java | Code | 82 | 387 | package serializers.component;
import com.fasterxml.jackson.core.JsonGenerator;
import com.fasterxml.jackson.databind.JsonSerializer;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.SerializerProvider;
import com.fasterxml.jackson.databind.module.SimpleModule;
import models.Co... | 8,901 |
https://github.com/roopakparikh/pf9ctl/blob/master/cmd/prepNode.go | Github Open Source | Open Source | Apache-2.0 | null | pf9ctl | roopakparikh | Go | Code | 384 | 1,067 | // Copyright © 2020 The pf9ctl authors
package cmd
import (
"go.uber.org/zap"
"github.com/platform9/pf9ctl/pkg/cmdexec"
"github.com/platform9/pf9ctl/pkg/pmk"
"github.com/spf13/cobra"
"io/ioutil"
)
// prepNodeCmd represents the prepNode command
var prepNodeCmd = &cobra.Command{
Use: "prep-node",
Short: "set ... | 1,396 |
https://github.com/suevip/zlebank-energy-manager/blob/master/src/main/java/com/zlebank/controller/product/ProductPositionController.java | Github Open Source | Open Source | Apache-2.0 | 2,016 | zlebank-energy-manager | suevip | Java | Code | 106 | 565 | package com.zlebank.controller.product;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.spri... | 31,445 |
https://github.com/takumin/puppet-gitbucket/blob/master/manifests/config.pp | Github Open Source | Open Source | Apache-2.0 | 2,015 | puppet-gitbucket | takumin | null | Spoken | 61 | 172 | # == Class gitbucket::config
#
# This class is called from gitbucket for service config.
#
class gitbucket::config {
file { $::gitbucket::directory:
ensure => directory,
owner => $::gitbucket::owner,
group => $::gitbucket::group,
mode => '0755',
}
if $operatingsystem == 'freebsd' {
fi... | 8,484 |
https://github.com/nvpnathan/pulumi-nsxt/blob/master/node_modules/@pulumi/query/interfaces.d.ts | Github Open Source | Open Source | ECL-2.0, Apache-2.0 | null | pulumi-nsxt | nvpnathan | TypeScript | Code | 2,206 | 5,333 | declare global {
interface SymbolConstructor {
readonly asyncIterator: symbol;
}
}
export interface AsyncIterator<T> {
next(value?: any): Promise<IteratorResult<T>>;
return?(value?: any): Promise<IteratorResult<T>>;
throw?(e?: any): Promise<IteratorResult<T>>;
}
export interface AsyncIterabl... | 7,854 |
https://github.com/mundipagg/MundiAPI-PHP/blob/master/src/Models/Card9.php | Github Open Source | Open Source | MIT | 2,023 | MundiAPI-PHP | mundipagg | PHP | Code | 367 | 971 | <?php
/*
* MundiAPILib
*
* This file was automatically generated by APIMATIC v2.0 ( https://apimatic.io ).
*/
namespace MundiAPILib\Models;
use JsonSerializable;
/**
* @todo Write general description for this model
*/
class Card9 implements JsonSerializable
{
/**
* @todo Write general description for ... | 5,235 |
https://github.com/CarGuo/LazyRecyclerAdapter/blob/master/app/src/main/java/com/shuyu/apprecycler/chat/detail/ChatDetailActivity.java | Github Open Source | Open Source | MIT | 2,022 | LazyRecyclerAdapter | CarGuo | Java | Code | 286 | 1,758 | package com.shuyu.apprecycler.chat.detail;
import android.content.Context;
import android.graphics.Color;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.Recycle... | 49,780 |
https://github.com/yoanngueny/router/blob/master/src/hooks/useLocation.ts | Github Open Source | Open Source | MIT | null | router | yoanngueny | TypeScript | Code | 227 | 571 | import { useState } from "react";
import { useHistory, useRootRouter } from "..";
import {
addBaseToUrl,
addLangToUrl,
getUrlByRouteName,
TOpenRouteParams,
} from "../api/helpers";
import { ROUTERS } from "../api/routers";
import { LangService } from "..";
/**
* Prepare setLocation URL
* @param args can be s... | 18,185 |
https://github.com/Samz851/PHP-Registration-Sys/blob/master/app/dbconfig.php | Github Open Source | Open Source | MIT | null | PHP-Registration-Sys | Samz851 | PHP | Code | 111 | 332 | <?php
/**
* This is the Database connection class
*
* @category Database
* @package Samz851\USER
* @author Samer Alotaibi <sam.otb@hotmail.ca>
* @copyright 2018 Samer Alotaibi
*/
require_once 'config.php';
/**
* Class Database
*
* @category Class
* @package Samz851\USER
* @author Samer Alotaibi ... | 13,734 |
https://github.com/MrMEEE/ansible-awx-depends/blob/master/BUILT/txaio-scl.spec | Github Open Source | Open Source | Apache-2.0 | 2,019 | ansible-awx-depends | MrMEEE | null | Spoken | 516 | 1,663 | %define scl rh-python36
%{?scl:%scl_package %{name}}
%{!?scl:%global pkg_name %{name}}
%define name txaio
%define version 2.9.0
%define unmangled_version 2.9.0
%define unmangled_version 2.9.0
%define release 1
Summary: Compatibility API between asyncio/Twisted/Trollius
%{?scl:Requires: %{scl}-runtime}
%{?scl:BuildReq... | 37,522 |
https://github.com/dle/dotfiles/blob/master/script/brew-packages | Github Open Source | Open Source | MIT | 2,014 | dotfiles | dle | Shell | Code | 20 | 70 | #!/bin/zsh
packages=(
zsh
grc
coreutils
tree
bash-completion
zsh-completions
python
awscli
)
for p in $packages
do
brew install $p
done | 48,587 |
https://github.com/INCUSION/incusion_portfolio/blob/master/src/app/home/home.component.ts | Github Open Source | Open Source | MIT | null | incusion_portfolio | INCUSION | TypeScript | Code | 110 | 419 | import { Component, OnInit } from '@angular/core';
import anime from 'animejs/lib/anime.es.js';
@Component({
selector: 'app-home',
templateUrl: './home.component.html',
styleUrls: ['./home.component.scss']
})
export class HomeComponent {
constructor() { }
ngAfterViewInit(): void {
// Wrap every lette... | 26,791 |
https://github.com/tomekrozalski/landofhop-gatsby/blob/master/src/dashboard/BeverageData/elements/Select/time/AgedTimeUnitSelect.tsx | Github Open Source | Open Source | MIT | null | landofhop-gatsby | tomekrozalski | TypeScript | Code | 78 | 226 | import React from 'react';
import { useIntl } from 'gatsby-plugin-intl';
import { FormName } from 'utils/enums';
import { AgedTimeUnit } from 'components/BeverageDetails/utils/enums';
import { Select } from '../elements';
type Props = {
disabled?: boolean;
form?: FormName;
name: string;
placeholder?: string;
... | 33,915 |
https://github.com/pip-services3-dotnet/pip-services3-commons-dotnet/blob/master/test/Config/ConfigParamsTest.cs | Github Open Source | Open Source | MIT | 2,023 | pip-services3-commons-dotnet | pip-services3-dotnet | C# | Code | 126 | 806 | using PipServices3.Commons.Config;
using PipServices3.Commons.Data;
using Xunit;
namespace PipServices3.Commons.Test.Config
{
//[TestClass]
public sealed class ConfigParamsTest
{
[Fact]
public void TestConfigSections()
{
var config = ConfigParams.FromTuples(
... | 16,645 |
https://github.com/jeong-jasonji/BSSLecture/blob/master/plotPower.m | Github Open Source | Open Source | BSD-3-Clause | 2,020 | BSSLecture | jeong-jasonji | MATLAB | Code | 29 | 100 | function plotPower()
%
%Power method for computing eigenvalues
%
C = [4 1;1 3]
z = [1;1]
for x = 0:20
plot(x,z(1),'b*')
hold on;
plot(x,z(2),'r*')
y=C*z;
n=norm(z);
z=y/n
end | 35,897 |
https://github.com/gitter-badger/Blazorise/blob/master/Source/Blazorise.Charts/BarChart.cshtml | Github Open Source | Open Source | MIT | null | Blazorise | gitter-badger | C# | Code | 4 | 22 | @inherits Base.BaseBarChart
<canvas id="@ElementId"></canvas>
| 34,772 |
https://github.com/krpk-bhdn/blog-spring-mvc/blob/master/src/main/java/com/example/blog/factory/FactoryBCryptPasswordEncoder.java | Github Open Source | Open Source | MIT | null | blog-spring-mvc | krpk-bhdn | Java | Code | 34 | 127 | package com.example.blog.factory;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
import org.springframework.security.crypto.password.PasswordEncoder;
public class FactoryBCryptPasswordEncoder {
private static BCryptPasswordEncoder passwordEncoder;
private FactoryBCryptPasswordEncode... | 5,638 |
https://github.com/csu-anzai/collection-pipeline-rest-scaffold/blob/master/src/pipeline/handlers/next-handler.ts | Github Open Source | Open Source | MIT | 2,018 | collection-pipeline-rest-scaffold | csu-anzai | TypeScript | Code | 50 | 127 | import IPipeline from "../i-pipeline"
import IContext from "../schema/context/i-context"
import IHandler from "./i-handler"
/**
* Triggers the next component in the pipeline.
*/
export default class NextHandler implements IHandler {
protected pipeline: IPipeline
public constructor(pipeline: IPipeline) {
thi... | 23,413 |
https://github.com/bhaskar-nair2/temp-bee/blob/master/module/Admin/src/Admin/Controller/CymHotelBookingController.php | Github Open Source | Open Source | BSD-3-Clause | null | temp-bee | bhaskar-nair2 | PHP | Code | 265 | 1,532 | <?php
namespace Admin\Controller;
use Zend\Mvc\Controller\AbstractActionController;
use Zend\View\Model\ViewModel;
use Zend\Json\Json;
class CymHotelBookingController extends AbstractActionController {
public function indexAction() {
$request = $this->getRequest();
if ($request->isPost()) {
... | 2,209 |
https://github.com/harsha-simhadri/sbsched/blob/master/test/Map.cc | Github Open Source | Open Source | MIT | 2,020 | sbsched | harsha-simhadri | C++ | Code | 323 | 693 | // This code is part of the project "Experimental Analysis of Space-Bounded
// Schedulers", presented at Symposium on Parallelism in Algorithms and
// Architectures, 2014.
// Copyright (c) 2014 Harsha Vardhan Simhadri, Guy Blelloch, Phillip Gibbons,
// Jeremy Fineman, Aapo Kyrola.
//
// Permission is hereby granted, fr... | 36,877 |
https://github.com/sohilladhani/programming/blob/master/Interviewbit/Arrays/add_one_to_number.cpp | Github Open Source | Open Source | MIT | null | programming | sohilladhani | C++ | Code | 130 | 432 |
/*
https://www.interviewbit.com/problems/add-one-to-number/
*/
#include <iostream>
#include <vector>
#include <chrono>
using namespace std;
void print_vector(vector<int> v) {
for (int i = 0; i < v.size(); ++i) {
cout<<v[i]<<" ";
}
cout<<"\n";
}
vector<int> add_one_to_number(vector<int> &A) {
... | 23,920 |
https://github.com/iantal/AndroidPermissions/blob/master/apks/playstore_apps/com_grppl_android_shell_halifax/app/smali_classes2/kkkkkk/gggrrr.smali | Github Open Source | Open Source | Apache-2.0 | 2,019 | AndroidPermissions | iantal | Smali | Code | 613 | 3,976 | .class public final Lkkkkkk/gggrrr;
.super Ljava/lang/Object;
# interfaces
.implements Ldagger/MembersInjector;
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Object;",
"Ldagger/MembersInjector",
"<",
"Lcom/mobile/ui/coa/fragment/CoaSuccessFra... | 19,766 |
https://github.com/anirudhtopiwala/OpenSource_Problems/blob/master/Background_Blur/background_blur.py | Github Open Source | Open Source | MIT | 2,022 | OpenSource_Problems | anirudhtopiwala | Python | Code | 430 | 1,399 | # MIT License
# Author: Anirudh Topiwala
# Date: 21st October, 2020.
"""
Blur the Background!!!
"""
import cv2
import torch
from torchvision import transforms
import numpy as np
import argparse
import sys
import time
# Desired Image Dimensions.
IMG_WIDTH = 480
IMG_HEIGHT = 640
def blur(img):
return cv2.Gaussia... | 47,373 |
https://github.com/maksmaisak/Engine/blob/master/src/engine/core/lua/LuaScene.h | Github Open Source | Open Source | MIT | 2,021 | Engine | maksmaisak | C | Code | 74 | 270 | //
// Created by Maksym Maisak on 30/12/18.
//
#ifndef ENGINE_LUASCENE_H
#define ENGINE_LUASCENE_H
#include "Scene.h"
#include <string>
#include "LuaState.h"
#include "Actor.h"
#include "Receiver.h"
#include "Collision.h"
#include "LuaReference.h"
namespace en {
class LuaScene : public Scene, Receiver<Collision... | 46,247 |
https://github.com/rebornix/jedi-language-server/blob/master/tests/lsp_tests/test_diagnostics.py | Github Open Source | Open Source | MIT | 2,022 | jedi-language-server | rebornix | Python | Code | 732 | 2,448 | """Tests for problem diagnostics notification."""
import copy
import json
import tempfile
from threading import Event
from hamcrest import assert_that, is_
from tests import TEST_DATA
from tests.lsp_test_client import session
from tests.lsp_test_client.defaults import VSCODE_DEFAULT_INITIALIZE
from tests.lsp_test_cl... | 18,311 |
https://github.com/ardeshir/stdlib/blob/master/extra/codezip/22/code/math/rand.go | Github Open Source | Open Source | BSD-3-Clause, MIT | 2,018 | stdlib | ardeshir | Go | Code | 68 | 318 | package main
import (
"log"
"math/rand"
)
func example(seed int64) {
s := rand.NewSource(seed)
r := rand.New(s)
log.Printf("ExpFloat64: %f", r.ExpFloat64())
log.Printf("Float32: %f", r.Float32())
log.Printf("Float64: %f", r.Float64())
log.Printf("Int: %d", r.Int())
log.Printf("Int31: %d", r.Int31())
log.Pri... | 16,993 |
https://github.com/jarviskroos7/GTFS-route-speed/blob/master/route_speed.py | Github Open Source | Open Source | Apache-2.0 | 2,020 | GTFS-route-speed | jarviskroos7 | Python | Code | 1,132 | 3,588 | import argparse
import pandas as pd
import numpy as np
from datetime import datetime
import os
import sys
import logging
logging.basicConfig(format='%(levelname)s: %(message)s', level=logging.INFO)
import warnings
warnings.filterwarnings("ignore")
error_msg = 'failed to calculate route speed: '
# set default path to... | 51,522 |
https://github.com/cmittendorf/Syntax/blob/master/Sources/Syntax/Implementations/Common/BinaryOperation/MemberOfBinaryOperation.swift | Github Open Source | Open Source | MIT | 2,022 | Syntax | cmittendorf | Swift | Code | 18 | 47 |
import Foundation
public protocol MemberOfBinaryOperation {
associatedtype Operator: BinaryOperator
static func binaryOperation(_ operation: BinaryOperation<Self, Self.Operator>) -> Self
}
| 53,427 |
https://github.com/alfredlaggner/coa.boldtinc.com/blob/master/app/Http/Controllers/DataTableController.php | Github Open Source | Open Source | MIT | null | coa.boldtinc.com | alfredlaggner | PHP | Code | 120 | 394 | <?php
namespace App\Http\Controllers;
use App\Coa;
use App\User;
use App\Product;
use Freshbitsweb\Laratables\Laratables;
class DataTableController extends Controller
{
/**
* Show the datatables examples.
*
* @return \Illuminate\Http\Response
*/
public function index()
{
return view('coa.... | 18,936 |
https://github.com/antalsz/hs-to-coq/blob/master/examples/ghc/lib/OrdList.v | Github Open Source | Open Source | MIT | 2,020 | hs-to-coq | antalsz | null | Spoken | 1,549 | 4,494 | (* Default settings (from HsToCoq.Coq.Preamble) *)
Generalizable All Variables.
Unset Implicit Arguments.
Set Maximal Implicit Insertion.
Unset Strict Implicit.
Unset Printing Implicit Defensive.
Require Coq.Program.Tactics.
Require Coq.Program.Wf.
(* Converted imports: *)
Require Coq.Init.Datatypes.
Require Coq.P... | 31,277 |
https://github.com/Nishat009/Resort-Management/blob/master/app/Http/Controllers/Backend/DashboardController.php | Github Open Source | Open Source | MIT | 2,021 | Resort-Management | Nishat009 | PHP | Code | 69 | 284 | <?php
namespace App\Http\Controllers\Backend;
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
use App\Models\RoomDetail;
use App\Models\Employee;
use App\Models\Gallery;
use App\Models\RoomReservation;
use App\Models\OtherService;
use App\Models\Contact;
class DashboardController extends Controller
... | 4,198 |
https://github.com/josvar/borisvargas/blob/master/app/Chenkacrud/Blocks/Paths/LocalPath.php | Github Open Source | Open Source | MIT | 2,020 | borisvargas | josvar | PHP | Code | 104 | 307 | <?php namespace Chenkacrud\Blocks\Paths;
use Chenkacrud\Persistence\Serializable;
class LocalPath implements Serializable{
protected $name;
protected $base;
function __construct($name, $base)
{
$this->name = $name;
$this->base = $base;
}
public function getPath()
{
... | 23,928 |
https://github.com/pablogrisafi1975/Persism/blob/master/test/northwind.properties | Github Open Source | Open Source | BSD-3-Clause | 2,021 | Persism | pablogrisafi1975 | null | Spoken | 17 | 90 | # datasource properties used in junit test and development Uses JTDS for fucked-up-ness
database.url=jdbc:jtds:sqlserver://pinf-win;DatabaseName=Northwind;instance=;useLOBs=false
database.driver=net.sourceforge.jtds.jdbc.Driver
database.username=nw
database.password=
| 2,584 |
https://github.com/johnfkneafsey/ethereumReactReduxMetaMask/blob/master/bin/dev-server.js | Github Open Source | Open Source | MIT | 2,017 | ethereumReactReduxMetaMask | johnfkneafsey | JavaScript | Code | 665 | 2,270 | // const project = require('../config/project.config')
// const server = require('../server/main')
// const debug = require('debug')('app:bin:dev-server')
// server.listen(project.server_port)
// debug(`Server is now running at http://localhost:${project.server_port}.`)
//***** ABOVE IS GIVEN FROM ethereumReactRedux... | 17,042 |
https://github.com/MateSzoke/CityBro/blob/master/app/src/main/java/hu/szokemate/citybro/util/extensions/Fragment.kt | Github Open Source | Open Source | Apache-2.0 | null | CityBro | MateSzoke | Kotlin | Code | 176 | 709 | @file:Suppress("NOTHING_TO_INLINE")
package hu.szokemate.citybro.util.extensions
import android.view.LayoutInflater
import android.view.View
import android.view.inputmethod.InputMethodManager
import androidx.annotation.StringRes
import androidx.core.content.ContextCompat
import androidx.core.view.isVisible
import and... | 1,571 |
https://github.com/greenvilleassociates/fusionshellplus/blob/master/wiki/resources/src/mediawiki.rcfilters/styles/mw.rcfilters.ui.SaveFiltersPopupButtonWidget.less | Github Open Source | Open Source | Apache-2.0 | null | fusionshellplus | greenvilleassociates | Less | Code | 83 | 317 | @import 'mediawiki.mixins';
.mw-rcfilters-ui-saveFiltersPopupButtonWidget {
&-popup {
&-layout,
&-options {
padding-bottom: 1.5em;
}
> .oo-ui-popupWidget-popup > .oo-ui-popupWidget-head {
position: relative;
height: auto;
padding: 1em;
// Icon width + icon left position (rounded to 0.5 to give... | 52,205 |
https://github.com/Tenyson05/tenysonportfolio/blob/master/src/components/layout.js | Github Open Source | Open Source | MIT | 2,020 | tenysonportfolio | Tenyson05 | JavaScript | Code | 166 | 645 | /**
* Layout component that queries for data
* with Gatsby's useStaticQuery component
*
* See: https://www.gatsbyjs.org/docs/use-static-query/
*/
import React from "react"
import PropTypes from "prop-types"
import { useStaticQuery, graphql } from "gatsby"
import Header from "./header"
import Footer from "./foote... | 31,026 |
https://github.com/seocahill/ember-engine-xbrl-tagger/blob/master/app/models/role-type.js | Github Open Source | Open Source | MIT | null | ember-engine-xbrl-tagger | seocahill | JavaScript | Code | 6 | 23 | export { default } from 'ember-xbrl-tagger/models/role-type';
| 51,559 |
https://github.com/TheJaaju/Kanakeitto/blob/master/commands/ping.js | Github Open Source | Open Source | MIT | null | Kanakeitto | TheJaaju | JavaScript | Code | 20 | 83 | module.exports={
name:'ping',
description: "ping",
execute(message, interaction, args){
message.channel.send(`🏓Latency is ${(Date.now() - message.createdTimestamp)*-1 }ms`);
}
};
console.log("Loaded command: " + module.exports.name) | 14,907 |
https://github.com/bepnye/tf_ner/blob/master/data/conll/stream.py | Github Open Source | Open Source | Apache-2.0 | null | tf_ner | bepnye | Python | Code | 50 | 197 | import os
import data_utils
from pathlib import Path
top_path = Path(os.path.dirname(os.path.abspath(__file__)))
TRAIN_WORDS, TRAIN_TAGS = data_utils.read_file(top_path / 'train.txt')
TEST_WORDS, TEST_TAGS = data_utils.read_file(top_path / 'test.txt')
def train_words():
return TRAIN_WORDS
def train_tags():
retu... | 22,584 |
https://github.com/willyb321/media_mate/blob/master/tests/config.js | Github Open Source | Open Source | MIT | 2,021 | media_mate | willyb321 | JavaScript | Code | 31 | 132 | const path = require('path');
const TEMP_DIR = require('os').tmpdir();
console.log(TEMP_DIR);
const TEST_DIR = path.join(TEMP_DIR, 'MediaMateTest');
const TEST_DIR_DOWNLOAD = path.join(TEST_DIR, 'Downloads');
const TEST_DIR_DESKTOP = path.join(TEST_DIR, 'Desktop');
module.exports = {
TEST_DIR,
TEST_DIR_DOWNLOAD,
T... | 34,297 |
https://github.com/MewX/contendo-viewer-v1.6.3/blob/master/org/apache/commons/io/output/DemuxOutputStream.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | contendo-viewer-v1.6.3 | MewX | Java | Code | 285 | 686 | /* */ package org.apache.commons.io.output;
/* */
/* */ import java.io.IOException;
/* */ import java.io.OutputStream;
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */... | 2,862 |
https://github.com/w1-BeyeK/partycadeaushop/blob/master/resources/views/layouts/menu.blade.php | Github Open Source | Open Source | MIT | 2,019 | partycadeaushop | w1-BeyeK | Blade | Code | 182 | 709 | <!-- Page Sidebar -->
<div class="page-sidebar" id="sidebar">
<!-- Page Sidebar Header-->
{{--<div class="sidebar-header-wrapper">--}}
{{--<input type="text" class="searchinput" />--}}
{{--<i class="searchicon fa fa-search"></i>--}}
{{--<div class="searchhelper">Search Reports, Charts, E... | 1,996 |
https://github.com/slipstream/cimi-mf2c/blob/master/jar-persistence/src/main/java/com/sixsq/slipstream/credentials/Credentials.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | cimi-mf2c | slipstream | Java | Code | 177 | 422 | package com.sixsq.slipstream.credentials;
/*
* +=================================================================+
* SlipStream Server (WAR)
* =====
* Copyright (C) 2013 SixSq Sarl (sixsq.com)
* =====
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in complia... | 11,415 |
https://github.com/bcgov/jag-ecrc/blob/master/src/ecrc-api/src/test/java/ca/bc/gov/open/ecrc/model/RequestCreateApplicantTest.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | jag-ecrc | bcgov | Java | Code | 184 | 1,837 | package ca.bc.gov.open.ecrc.model;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
/**
* Tests for create applicant request bean
*
* @author sivakaruna
*
*/
class RequestCreateApplicantTest {
private final String expectedQueryString = "?"
... | 2,134 |
https://github.com/eager39/tenistournament/blob/master/src/app/tournament/tournament.component.ts | Github Open Source | Open Source | MIT | null | tenistournament | eager39 | TypeScript | Code | 181 | 660 | import { Component, OnInit } from '@angular/core';
import { FormBuilder, FormGroup, Validators,FormControl } from '@angular/forms';
import { HttpClient,HttpHeaders } from '@angular/common/http';
import { ActivatedRoute } from '@angular/router';
import { JwtHelperService } from '@auth0/angular-jwt';
import { DataService... | 36,547 |
https://github.com/khalidx/himitsu/blob/master/src/cli.ts | Github Open Source | Open Source | MIT | null | himitsu | khalidx | TypeScript | Code | 148 | 376 | #!/usr/bin/env node
import { writeFileSync } from 'fs'
import { prompt } from 'inquirer'
import { search } from './index'
/**
* Handles launching a dev watch script with hot-reload,
* or the main command line application.
*/
export function cli () {
const args = process.argv.slice(2)
const dev = args.indexOf(... | 20,999 |
https://github.com/teox79/tombola_v3/blob/master/components/form/CustomTextArea.tsx | Github Open Source | Open Source | MIT | 2,021 | tombola_v3 | teox79 | TSX | Code | 132 | 386 | import { FormControl, TextField } from "@material-ui/core";
import { BaseTextFieldProps } from "@material-ui/core/TextField/TextField";
import { Control } from "react-hook-form/dist/types";
import { Controller } from "react-hook-form";
import React from "react";
interface Props {
name: string
label?: string
... | 1,370 |
https://github.com/NathanBaldwin/angular-component-exercise/blob/master/app/components/inProgressComponent.js | Github Open Source | Open Source | MIT | null | angular-component-exercise | NathanBaldwin | JavaScript | Code | 19 | 78 | (function() {
'use strict'
app.component('inProgress', {
bindings: {
studentList: '=',
search: '='
},
controller: 'inProgressCtrl',
templateUrl: 'app/templates/inProgress.html'
})
})()
| 53,100 |
https://github.com/svaponi/mir-test-cusecomlib/blob/master/src/main/java/it/miriade/test/cusecomlib/enums/Browser.java | Github Open Source | Open Source | MIT | null | mir-test-cusecomlib | svaponi | Java | Code | 30 | 75 | package it.miriade.test.cusecomlib.enums;
/**
* Enumeration identificativa delle tipologie di browser per i quli svolgere i test.
*
* @author svaponi
*/
public enum Browser {
CHROME, FIREFOX, IE, EDGE
} | 42,278 |
https://github.com/blackducksoftware/synopsys-detect/blob/master/src/test/java/com/synopsys/integration/detect/battery/docker/GradleNativeInspectorTests.java | Github Open Source | Open Source | Apache-2.0 | 2,023 | synopsys-detect | blackducksoftware | Java | Code | 108 | 856 | package com.synopsys.integration.detect.battery.docker;
import com.synopsys.integration.detect.battery.docker.provider.BuildDockerImageProvider;
import com.synopsys.integration.detect.battery.docker.util.DetectCommandBuilder;
import com.synopsys.integration.detect.battery.docker.util.DetectDockerTestRunner;
import com... | 44,904 |
https://github.com/failedconnection/hack_the_fest/blob/master/Codeforces sheet solutions/Sheet 1/H.cpp | Github Open Source | Open Source | MIT | 2,020 | hack_the_fest | failedconnection | C++ | Code | 23 | 110 | #include<iostream>
using namespace std;
int main()
{
int n,years,months,days;
cin>>n;
years=n/365;
n=n%365;
months=n/30;
days=n%30;
cout<<years<<" years"<<endl;
cout<<months<<" months"<<endl;
cout<<days<<" days"<<endl;
return 0;
} | 51,879 |
https://github.com/JongbaekKIm/pratice_MSA_K8S_Keycloak/blob/master/audit/src/main/java/com/ubaid/ms/audit/service/AuditServiceImpl.java | Github Open Source | Open Source | MIT | 2,022 | pratice_MSA_K8S_Keycloak | JongbaekKIm | Java | Code | 204 | 853 | package com.ubaid.ms.audit.service;
import com.ubaid.ms.audit.dao.AuditDAO;
import com.ubaid.ms.audit.entity.Audit;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.security.oauth2.jwt.Jwt;
import org.springframework.security.oauth2.server.resource.authentication.Abst... | 52,292 |
https://github.com/roywsc/buildergenerator/blob/master/src/test/java/uk/co/buildergenerator/testmodel/InitialisedSetPropertyWithAddMethod.java | Github Open Source | Open Source | Apache-2.0 | 2,016 | buildergenerator | roywsc | Java | Code | 31 | 106 | package uk.co.buildergenerator.testmodel;
import java.util.HashSet;
import java.util.Set;
public class InitialisedSetPropertyWithAddMethod {
private Set<String> strings = new HashSet<String>();
public Set<String> getStrings() {
return strings;
}
public void addString(String string) {
... | 19,398 |
https://github.com/fossabot/Knawat-NPM-JavaScript-SDK/blob/master/src/index.js | Github Open Source | Open Source | MIT | 2,019 | Knawat-NPM-JavaScript-SDK | fossabot | JavaScript | Code | 649 | 2,011 | import fetch from 'node-fetch';
import querystring from 'querystring';
/**
* A Class Library for handling Knawat MarketPlace related Operations.
*
* @class MP
*/
class MP {
static baseUrl = process.env.MP_BASEURL || 'https://mp.knawat.io/api';
headers = {
'Content-Type': 'application/json'
};
/**
*... | 25,727 |
https://github.com/inmanta/web-console/blob/master/src/Slices/ResourceDetails/Core/ResourceHistory.ts | Github Open Source | Open Source | Apache-2.0 | null | web-console | inmanta | TypeScript | Code | 40 | 121 | import { ParsedNumber } from "@/Core/Language";
export interface ResourceHistory {
resource_id: string;
attribute_hash: string;
attributes: Record<string, unknown>;
date: string;
requires: string[];
}
export interface ResourceHistoryRow {
id: string;
attribute_hash: string;
attributes: Record<string, ... | 12,315 |
https://github.com/uswitch/ustyle-react/blob/master/src/components/ValidationMessage/index.js | Github Open Source | Open Source | Apache-2.0 | 2,020 | ustyle-react | uswitch | JavaScript | Code | 99 | 290 | import React, {PureComponent} from 'react'
import PropTypes from 'prop-types'
import cx from 'classnames'
import omit from '../../utils/omit'
const VARIANTS = ['error', 'success']
export default class ValidationMessage extends PureComponent {
get className () {
const {variant} = this.props
return cx({
... | 30,295 |
https://github.com/otus-devops-2019-05/art-shutter_infra/blob/master/terraform/terraform.tfvars.example | Github Open Source | Open Source | MIT | 2,019 | art-shutter_infra | otus-devops-2019-05 | HCL | Code | 6 | 20 | region = "us-central1"
project = "infra-244312"
| 6,945 |
https://github.com/tkvern/midway/blob/master/packages/task/test/fixtures/base-app/src/task/queue.task.ts | Github Open Source | Open Source | MIT | 2,021 | midway | tkvern | TypeScript | Code | 28 | 99 | import { App, Provide, Queue } from "@midwayjs/decorator";
import { Application } from "@midwayjs/koa";
@Queue()
@Provide()
export class QueueTask{
@App()
app: Application;
async execute(params){
this.app.getApplicationContext().registerObject(`queueConfig`, JSON.stringify(params));
}
}
| 53,486 |
https://github.com/abdulmujeebdev/flexgen-react/blob/master/src/components/SchemaTable/SchemaTable.js | Github Open Source | Open Source | MIT | null | flexgen-react | abdulmujeebdev | JavaScript | Code | 178 | 619 | import React from "react";
import "./SchemaTable.css";
import { DATA_TYPES } from "../../contants/ColumnTypes";
const SchemaTable = ({ index, table, setSelectedTable }) => {
const indexToCheckMargin = index % 2 === 0 ? index : index - 1;
let leftMargin = index > 0 ? 160 : 0;
if (indexToCheckMargin % 4 === 0) {
... | 26,633 |
https://github.com/ramonwirsch/glass_snippets/blob/master/nodding/libs/GlassVoice/com/google/common/annotations/RequiredModifiers.java | Github Open Source | Open Source | BSD-3-Clause | 2,014 | glass_snippets | ramonwirsch | Java | Code | 39 | 208 | package com.google.common.annotations;
import java.lang.annotation.Annotation;
import java.lang.annotation.Documented;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import javax.lang.model.element.Modifier;
@Documented
@Retention(RetentionPolic... | 38,308 |
https://github.com/flexiooss/poom-services/blob/master/poom-services-domain/src/main/java/org/codingmatters/poom/services/domain/property/query/StackedFilterEvents.java | Github Open Source | Open Source | Apache-2.0 | null | poom-services | flexiooss | Java | Code | 96 | 320 | package org.codingmatters.poom.services.domain.property.query;
import java.util.Collections;
import java.util.LinkedList;
import java.util.List;
import java.util.Stack;
public class StackedFilterEvents<T> implements FilterEvents<Void> {
private final Stack<T> stack = new Stack<>();
private final T defaultValu... | 19,197 |
https://github.com/fenghanxu/FHXWaterflowView/blob/master/Sources/WaterflowViewCell.swift | Github Open Source | Open Source | MIT | null | FHXWaterflowView | fenghanxu | Swift | Code | 33 | 80 | //
// WaterflowViewCell.swift
// AZB
//
// Created by Ama on 11/1/16.
// Copyright © 2016 Ama. All rights reserved.
//
import UIKit
public class WaterflowViewCell: UIView {
public var identifier: String?
}
| 20,621 |
https://github.com/axionbio/SpiceSharp/blob/master/SpiceSharp/Attributes/ConnectedAttribute.cs | Github Open Source | Open Source | MIT | null | SpiceSharp | axionbio | C# | Code | 172 | 382 | using System;
namespace SpiceSharp.Attributes
{
/// <summary>
/// Indicates that two pins are connected by a finite impedance at DC. This attribute can be
/// applied to a <see cref="Components.Component" /> to check for floating nodes using a <see cref="SpiceSharp.Circuits.Validator" />.
/// If this ... | 41,436 |
https://github.com/Krognol/discord-cr/blob/master/spec/spec_helper.cr | Github Open Source | Open Source | MIT | 2,017 | discord-cr | Krognol | Crystal | Code | 4 | 16 | require "spec"
require "../src/discord-cr"
| 42,546 |
https://github.com/manuelMarianoSilva/MovieTime/blob/master/app/src/main/java/com/example/yonoc/coverflow/Model/POJO/Genero.java | Github Open Source | Open Source | CC0-1.0 | null | MovieTime | manuelMarianoSilva | Java | Code | 76 | 221 | package com.example.yonoc.coverflow.Model.POJO;
import android.arch.persistence.room.Entity;
import android.arch.persistence.room.PrimaryKey;
import android.support.annotation.NonNull;
/**
* Created by yonoc on 6/a27/2018.
*/
@Entity
public class Genero {
@PrimaryKey @NonNull
private Integer id;
priva... | 23,317 |
https://github.com/mariogasparoni/build-kms-bionic/blob/master/build-usrsctp.sh | Github Open Source | Open Source | MIT | 2,019 | build-kms-bionic | mariogasparoni | Shell | Code | 15 | 66 | #!/bin/bash
ROOT=`pwd`
USRSCTP_DIR=$ROOT/usrsctp
sudo apt-get install libtool autoconf
cd $USRSCTP_DIR
./bootstrap
./configure
make
cd $ROOT
| 44,646 |
https://github.com/Cherno-SuS/SunderingShadows/blob/master/d/underdark/daroldralych/obj/armor/leather.c | Github Open Source | Open Source | MIT, LicenseRef-scancode-unknown-license-reference | 2,021 | SunderingShadows | Cherno-SuS | C | Code | 111 | 273 | #include <std.h>
inherit "/d/common/obj/armour/leather.c";
void create() {
::create();
set_id(({"leather","leather armor","armor","armour","dark leather","dark leather armor","dark armor","dleather"}));
set_short("%^BOLD%^%^BLACK%^dark leather armor%^RESET%^");
set_long("%^BOLD%^%^BLACK%^This suit of a... | 35,042 |
https://github.com/dhall-lang/dhall-lang/blob/master/tests/parser/success/unit/MergeParenAnnotationA.dhall | Github Open Source | Open Source | BSD-2-Clause | 2,023 | dhall-lang | dhall-lang | null | Spoken | 5 | 9 | (merge x y) : t
| 42,357 |
https://github.com/Alvaro1050/JAVACCHTML/blob/master/src/main/java/org/alvaro/drawer/model/typetext.java | Github Open Source | Open Source | MIT | null | JAVACCHTML | Alvaro1050 | Java | Code | 87 | 175 | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package org.alvaro.drawer.model;
/**
*
* @author alvar
*/
public class typetext extends elementoSintactico {
private String id... | 45,424 |
https://github.com/kid1999/Algorithmic-training/blob/master/src/HDOJ/ccpc2020/P1002.java | Github Open Source | Open Source | MIT | 2,019 | Algorithmic-training | kid1999 | Java | Code | 227 | 604 | package HDOJ.ccpc2020;
import java.io.IOException;
import java.util.Arrays;
import java.util.Scanner;
/**
* @author kid1999
* @date 2020/9/23 0:07
* @desc
**/
public class P1002 {
public static void main(String[] args) throws IOException {
Scanner sc = new Scanner(System.in);
int t =sc.nextInt... | 39,955 |
https://github.com/trailheadlabs/trailsy/blob/master/styles/less/map.less | Github Open Source | Open Source | BSD-Source-Code | 2,022 | trailsy | trailheadlabs | Less | Code | 1,108 | 4,519 | /* Map Elements
============================== */
.leaflet-tile-container img {
-webkit-backface-visibility: hidden;
}
.leaflet-popup-content-wrapper {
@media @mobile {
border-radius: 0px;
width: auto;
min-width: 12em;
height: auto;
padding: 0;
.leaflet-popup-content {
min-width: 10em;
width: aut... | 29,806 |
https://github.com/bvbasavaraju/competitive_programming/blob/master/leetcode/daily/2021_3_March/19.cpp | Github Open Source | Open Source | Apache-2.0 | 2,022 | competitive_programming | bvbasavaraju | C++ | Code | 364 | 903 | /****************************************************
Date: March 19th
link: https://leetcode.com/explore/challenge/card/march-leetcoding-challenge-2021/590/week-3-march-15th-march-21st/3673/
****************************************************/
#include <iostream>
#include <vector>
#include <list>
#include <algorith... | 1,347 |
https://github.com/smera/msbuild/blob/master/src/Utilities/TrackedDependencies/CanonicalTrackedOutputFiles.cs | Github Open Source | Open Source | MIT | 2,021 | msbuild | smera | C# | Code | 3,361 | 9,029 | // Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Text;
using System.IO;
using Microsoft.Build.Framework;
using Micr... | 8,465 |
https://github.com/lechium/tvOS144Headers/blob/master/System/Library/PrivateFrameworks/CMCapture.framework/FigCaptureVISPipeline.h | Github Open Source | Open Source | MIT | 2,021 | tvOS144Headers | lechium | C | Code | 199 | 1,171 | /*
* This header is generated by classdump-dyld 1.5
* on Wednesday, April 14, 2021 at 2:33:50 PM Mountain Standard Time
* Operating System: Version 14.4 (Build 18K802)
* Image Source: /System/Library/PrivateFrameworks/CMCapture.... | 24,326 |
https://github.com/lathroplabs/VizLaboratoryAddin/blob/master/node_modules/office-addin-usage-data/src/usageData.ts | Github Open Source | Open Source | MIT | null | VizLaboratoryAddin | lathroplabs | TypeScript | Code | 1,672 | 4,288 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
import * as appInsights from "applicationinsights";
import * as readLine from "readline-sync";
import * as jsonData from "./usageDataSettings";
import * as defaults from "./defaults";
/**
* Specifies the usage data infras... | 28,404 |
https://github.com/Sjaaky/Qowaiv/blob/master/src/Qowaiv.UnitTests/CodeGenerator/Generators/QowaivCodeGeneratorTest.cs | Github Open Source | Open Source | MIT | 2,015 | Qowaiv | Sjaaky | C# | Code | 36 | 151 | using NUnit.Framework;
using Qowaiv.CodeGenerator.Generators;
using System;
using System.IO;
namespace Qowaiv.UnitTests.CodeGenerator.Generators
{
[TestFixture]
public class QowaivCodeGeneratorTest
{
[Test]
public void Generate_Dir_Successful()
{
var gen = new QowaivCodeGenerator();
var dir = new Direc... | 35,013 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.