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/achun/Jaf/blob/master/Framework/Exception/LoadFailed_Controller.php | Github Open Source | Open Source | CC-BY-3.0 | 2,016 | Jaf | achun | PHP | Code | 9 | 25 | <?php
namespace Jaf;
class Exception_LoadFailed_Controller extends Exception_LoadFailed {
} | 3,936 |
https://github.com/HritvikM/terrascan/blob/master/pkg/cli/testdata/run-test/main.tf | Github Open Source | Open Source | Apache-2.0 | 2,021 | terrascan | HritvikM | HCL | Code | 196 | 632 | # Specify the provider and access details
provider "aws" {
region = "var.aws_region"
}
provider "kubernetes" {
}
# Create a VPC to launch our instances into
resource "aws_vpc" "acme_root" {
cidr_block = "10.0.0.0/16"
tags = {
Name = "acme_root"
}
}
# Create an internet gateway to give our subnet access ... | 52,457 |
https://github.com/andrey-helldar/sitemap/blob/master/src/Traits/Processes/ManualProcess.php | Github Open Source | Open Source | MIT | 2,021 | sitemap | andrey-helldar | PHP | Code | 132 | 486 | <?php
namespace Helldar\Sitemap\Traits\Processes;
use Helldar\Core\Xml\Helpers\Str;
use Helldar\Sitemap\Helpers\Variables;
use Helldar\Sitemap\Services\Make\Item;
use Illuminate\Support\Collection;
use Illuminate\Support\Facades\Config;
trait ManualProcess
{
/** @var \Helldar\Core\Xml\Facades\Xml */
protecte... | 11,872 |
https://github.com/robsiera/NB_Store/blob/master/CheckOutSettings.ascx.vb | Github Open Source | Open Source | MIT | null | NB_Store | robsiera | Visual Basic | Code | 749 | 2,248 | ' --- Copyright (c) notice NevoWeb ---
' Copyright (c) 2008 SARL NevoWeb. www.nevoweb.com. BSD License.
' Author: D.C.Lee
' ------------------------------------------------------------------------
' THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
' TO THE... | 2,467 |
https://github.com/LuzBarcena/paw-integrador/blob/master/codigo/vista/js/enviarPerro.js | Github Open Source | Open Source | MIT | 2,017 | paw-integrador | LuzBarcena | JavaScript | Code | 256 | 959 | var reader = new FileReader();
var hayFoto = false;
$(document).ready(function () {
$("input[name='alta']").click(obtenerDatos);
});
function obtenerDatos() {
if ( ! hayFoto) {
mostrarModal("rojo", "No eligió una foto");
} else {
var seguir = validarPerro();
if (seguir) {
var nombre = $("input[name='nomb... | 54,578 |
https://github.com/dendisuhubdy/CXTPL/blob/master/third_party/icu_wrapper/third_party/icu/source/test/cintltst/utransts.c | Github Open Source | Open Source | MIT | 2,020 | CXTPL | dendisuhubdy | C | Code | 2,573 | 10,264 | // © 2016 and later: Unicode, Inc. and others.
// License & terms of use: http://www.unicode.org/copyright.html
/*
*******************************************************************************
* Copyright (C) 1997-2016 International Business Machines
* Corporation and others. All Rights Reserved.
***********... | 34,487 |
https://github.com/mischah/eslint-plugin-lodash3/blob/master/lib/rules/matches-prop-shorthand.js | Github Open Source | Open Source | MIT | 2,015 | eslint-plugin-lodash3 | mischah | JavaScript | Code | 100 | 333 | /**
* @fileoverview Rule to check if the property shorthand can be used
*/
'use strict';
// ------------------------------------------------------------------------------
// Rule Definition
// ------------------------------------------------------------------------------
module.exports = function (context) {
va... | 22,186 |
https://github.com/team3/aws-sdk-java/blob/master/aws-java-sdk-medialive/src/main/java/com/amazonaws/services/medialive/model/Output.java | Github Open Source | Open Source | Apache-2.0 | 2,019 | aws-sdk-java | team3 | Java | Code | 1,375 | 3,349 | /*
* Copyright 2014-2019 Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "licen... | 46,055 |
https://github.com/rmit-s3536515-jianning-pan/Capstone-Project-/blob/master/app/Http/Controllers/MyEventController.php | Github Open Source | Open Source | MIT | 2,018 | Capstone-Project- | rmit-s3536515-jianning-pan | PHP | Code | 119 | 587 | <?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Http\Requests;
use App\Events;
use App\events_users;
use DB;
use Auth;
class MyEventController extends Controller
{
public function showEventList()
{
$own = DB::table('events')
->where('owner_id', '=', Auth::user()->id)
-... | 31,141 |
https://github.com/natalieethell/office-ui-fabric-react/blob/master/packages/react-components/react-card/src/components/Card/useCardSelectable.ts | Github Open Source | Open Source | MIT, LicenseRef-scancode-unknown-license-reference | 2,022 | office-ui-fabric-react | natalieethell | TypeScript | Code | 260 | 891 | import * as React from 'react';
import { Enter, Space } from '@fluentui/keyboard-keys';
import { resolveShorthand } from '@fluentui/react-utilities';
import { useFocusFinders } from '@fluentui/react-tabster';
import type { CarOnSelectionChangeEvent, CardProps, CardRefElement } from './Card.types';
export const useCar... | 4,546 |
https://github.com/grozeille/datalake-toolbox/blob/master/scuba-api/src/main/java/fr/grozeille/scuba/project/repositories/ProjectRepository.java | Github Open Source | Open Source | Apache-2.0 | null | datalake-toolbox | grozeille | Java | Code | 17 | 95 | package fr.grozeille.scuba.project.repositories;
import fr.grozeille.scuba.configurations.stereotype.JpaRepository;
import fr.grozeille.scuba.project.model.Project;
import org.springframework.data.repository.CrudRepository;
@JpaRepository
public interface ProjectRepository extends CrudRepository<Project, String> {
}
| 34,177 |
https://github.com/calmsacibis995/minix/blob/master/minix/lib/libmthread/Makefile | Github Open Source | Open Source | Unlicense | 2,021 | minix | calmsacibis995 | Makefile | Code | 36 | 130 | # Makefile for libmthread
LIB= mthread
SRCS= \
allocate.c \
attribute.c \
condition.c \
event.c \
key.c \
misc.c \
mutex.c \
pthread_compat.c \
queue.c \
rwlock.c \
scheduler.c \
WARNS?= 4
CFLAGS+= -fno-builtin
.include <bsd.lib.mk>
| 55,977 |
https://github.com/wikimedia/oojs-ui/blob/master/php/mixins/TabIndexedElement.php | Github Open Source | Open Source | MIT | 2,023 | oojs-ui | wikimedia | PHP | Code | 508 | 1,259 | <?php
namespace OOUI;
/**
* Element supporting "sequential focus navigation" using the 'tabindex' attribute.
*
* @abstract
*/
trait TabIndexedElement {
/**
* Tab index value.
*
* @var int|null
*/
protected $tabIndex = null;
/**
* @var Element
*/
protected $tabIndexed;
/**
* @param array $conf... | 10,112 |
https://github.com/abasslab/quantum-php-core/blob/master/src/Exceptions/StopExecutionException.php | Github Open Source | Open Source | MIT | 2,021 | quantum-php-core | abasslab | PHP | Code | 84 | 219 | <?php
/**
* Quantum PHP Framework
*
* An open source software development framework for PHP
*
* @package Quantum
* @author Arman Ag. <arman.ag@softberg.org>
* @copyright Copyright (c) 2018 Softberg LLC (https://softberg.org)
* @link http://quantum.softberg.org/
* @since 2.5.0
*/
namespace Quantum\Exceptions... | 43,539 |
https://github.com/joshuabuildsthings/GamestonkTerminal/blob/master/openbb_terminal/common/prediction_techniques/expo_model.py | Github Open Source | Open Source | MIT | null | GamestonkTerminal | joshuabuildsthings | Python | Code | 414 | 1,235 | """Probabilistic Exponential Smoothing Model"""
__docformat__ = "numpy"
import logging
from typing import Any, Tuple, Union
import numpy as np
import pandas as pd
from darts import TimeSeries
from darts.models import ExponentialSmoothing
from darts.dataprocessing.transformers import MissingValuesFiller
from darts.uti... | 42,576 |
https://github.com/hamatoyogi/website/blob/master/components/marketing/MainHeroTabs.tsx | Github Open Source | Open Source | MIT | 2,022 | website | hamatoyogi | TypeScript | Code | 359 | 1,356 | import React from 'react';
import { Flex, styled, Text, TextField } from '@modulz/design-system';
import * as TabsPrimitive from '@radix-ui/react-tabs';
import { DemoButton } from '@components/marketing/DemoButton';
const StyledTabs = styled(TabsPrimitive.Root, {
display: 'flex',
flexDirection: 'column',
width: ... | 7,888 |
https://github.com/galennolan/CRM-LARAVEL/blob/master/resources/views/pelanggan.blade.php | Github Open Source | Open Source | MIT | null | CRM-LARAVEL | galennolan | PHP | Code | 69 | 375 | @extends('layout.dashboard')
@section('content')
@include('sweetalert::alert')
<div class="d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center pt-3 pb-2 mb-3 border-bottom">
<h1 class="h2">Target Marketing</h1>
</q><form action="/pelanggan/cari" method="GET">
<input type=... | 5,160 |
https://github.com/KarlGong/Scalpay/blob/master/ScalpayWeb/src/components/expression/VariableSelect.jsx | Github Open Source | Open Source | Apache-2.0 | 2,018 | Scalpay | KarlGong | null | Spoken | 135 | 503 | import {Select, Tooltip} from "antd";
import React, {Component} from "react";
import {observer} from "mobx-react";
import Validator from "~/utils/Validator";
import cs from "classnames";
import ComponentValidator from "~/utils/ComponentValidator";
import "./VariableSelect.less";
@observer
export default class Variable... | 9,343 |
https://github.com/iantal/AndroidPermissions/blob/master/apks/playstore_apps/com_idamob_tinkoff_android/app/smali/ru/tinkoff/mb/api/entities/g/r.smali | Github Open Source | Open Source | Apache-2.0 | 2,019 | AndroidPermissions | iantal | Smali | Code | 54 | 208 | .class public final Lru/tinkoff/mb/api/entities/g/r;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Ljava/io/Serializable;
# instance fields
.field public a:Ljava/lang/String;
.annotation runtime Lcom/google/gson/a/c;
a = "smsBankSwitch"
.end annotation
.end field
.field pub... | 47,811 |
https://github.com/bonfirepack/Mekanism/blob/master/src/main/java/mekanism/common/util/CapabilityUtils.java | Github Open Source | Open Source | Unlicense, MIT | null | Mekanism | bonfirepack | Java | Code | 482 | 1,184 | package mekanism.common.util;
import java.util.function.Consumer;
import net.minecraft.util.EnumFacing;
import net.minecraftforge.common.capabilities.Capability;
import net.minecraftforge.common.capabilities.ICapabilityProvider;
import org.jetbrains.annotations.Contract;
public final class CapabilityUtils {
@Con... | 14,553 |
https://github.com/JOJOJOFran/OneZeroApi/blob/master/src/OneZero.Identity/Dtos/Permission/PermissionData.cs | Github Open Source | Open Source | Apache-2.0 | 2,020 | OneZeroApi | JOJOJOFran | C# | Code | 59 | 139 | using OneZero.Dtos;
using System;
using System.Collections.Generic;
using System.Text;
namespace OneZero.Core.Dtos.Permission
{
public class PermissionData:DataDto
{
public Guid ModuleId { get; set; }
public string Name { get; set; }
public string DisplayName { get; set; }
... | 29,243 |
https://github.com/mattelisi/noise_tilt_adj/blob/master/functions/calibInstruction.m | Github Open Source | Open Source | Apache-2.0 | 2,017 | noise_tilt_adj | mattelisi | MATLAB | Code | 61 | 189 | % Calibration instruction
systemFont = 'Courier';
systemFontSize = 24;
textMessage = ['Calibration. \n\n',...
'"c", then "ENTER", to start calibration \n',...
'"v", then "ENTER", to start validation \n\n',...
'Press any key to begin, then ESC when finished.\n',...
'(please do NOT press any other key dur... | 9,774 |
https://github.com/ScalablyTyped/Distribution/blob/master/m/minapp-env/src/main/scala/typings/minappEnv/wx/WX_.scala | Github Open Source | Open Source | MIT | 2,023 | Distribution | ScalablyTyped | Scala | Code | 65 | 226 | package typings.minappEnv.wx
import typings.minappEnv.anon.CallFunction
import org.scalablytyped.runtime.StObject
import scala.scalajs.js
import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess}
trait WX_ extends StObject {
var cloud: CallFunction
}
object WX_ {
inline... | 6,509 |
https://github.com/mjaggard/ah_ace_protocol/blob/master/.gitignore | Github Open Source | Open Source | MIT | 2,020 | ah_ace_protocol | mjaggard | Ignore List | Code | 2 | 19 | src/converter/ah_converter
src/converter/converter
| 52,270 |
https://github.com/heyjcollins/cli/blob/master/command/v6/v6fakes/fake_create_route_actor.go | Github Open Source | Open Source | Apache-2.0 | 2,020 | cli | heyjcollins | Go | Code | 483 | 2,331 | // Code generated by counterfeiter. DO NOT EDIT.
package v6fakes
import (
"sync"
"code.cloudfoundry.org/cli/actor/v2action"
v6 "code.cloudfoundry.org/cli/command/v6"
)
type FakeCreateRouteActor struct {
CloudControllerAPIVersionStub func() string
cloudControllerAPIVersionMutex sync.RWMutex
cloudCo... | 11,493 |
https://github.com/iLib-js/iLib/blob/master/js/test/date/testdatefmt_ro_RO.js | Github Open Source | Open Source | Apache-2.0 | 2,022 | iLib | iLib-js | JavaScript | Code | 2,909 | 10,585 | /*
* testdatefmt_ro_RO.js - test the date formatter object in Romanian
*
* Copyright © 2012-2015,2017, JEDLSoft
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.a... | 33,804 |
https://github.com/GabrielZulian/CalendarFX/blob/master/CalendarFXRecurrence/src/test/java/com/google/ical/values/VcalRewriterTest.java | Github Open Source | Open Source | Apache-2.0 | 2,018 | CalendarFX | GabrielZulian | Java | Code | 348 | 1,324 | /**
* Copyright (C) 2015, 2016 Dirk Lemmermann Software & Consulting (dlsc.com)
* <p>
* This file is part of CalendarFX.
*/
// Copyright (C) 2006 Google Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a... | 8,881 |
https://github.com/adventistmedia/dash/blob/master/app/helpers/dash/page_helper.rb | Github Open Source | Open Source | MIT | null | dash | adventistmedia | Ruby | Code | 73 | 191 | module Dash::PageHelper
# define this helper at the top of any view to setup the page
# page("Users", nav: :admin, nav_active: :users)
# nav: the view to load from views/nav/
# nav_active: the active menu item to highlight
def page(page_title, options={})
content_for(:title) { page_title }
@nav = opt... | 24,728 |
https://github.com/githubjiatian/laravel/blob/master/laravel/app/Http/Controllers/Home/NewaddressaddController.php | Github Open Source | Open Source | MIT | 2,017 | laravel | githubjiatian | PHP | Code | 158 | 747 | <?php
namespace App\Http\Controllers\Home;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use DB;
class NewaddressaddController extends Controller
{
//
public function index(Request $request)
{
$data=array();
//查省名
$list1 = DB::table('district')->where('id',$request->inpu... | 31,410 |
https://github.com/hathetrinh/keymean_api/blob/master/EnglishCenterAPI/_Repository/IBaseUnitOfWork.cs | Github Open Source | Open Source | MIT | null | keymean_api | hathetrinh | C# | Code | 30 | 85 | using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace EnglishCenterAPI.Repository
{
public interface IBaseUnitOfWork<K> where K : DbContext
{
K DbContext { get; }
void Commit();
}
}
| 38,948 |
https://github.com/devcfgc/docker-on-windows/blob/master/ch11/ch11-webapi-vscode/src/WebApi.NetCore/Dockerfile | Github Open Source | Open Source | Apache-2.0 | 2,019 | docker-on-windows | devcfgc | Dockerfile | Code | 20 | 91 | #escape = `
FROM microsoft/aspnetcore:1.1.2-nanoserver-10.0.14393.1358
LABEL Name=webapi.netcore Version=0.0.1
ARG source=.
WORKDIR C:\app
EXPOSE 5000
COPY $source .
ENTRYPOINT ["dotnet", "webapi.netcore.dll"] | 45,531 |
https://github.com/Jonathan25021/dataspread-web/blob/master/testcode/src/GraphCompressor.java | Github Open Source | Open Source | MIT | 2,022 | dataspread-web | Jonathan25021 | Java | Code | 749 | 2,773 | import org.zkoss.zss.model.CellRegion;
import java.awt.*;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import java.io.BufferedReader;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStreamReader;
import java.sql.*;
import java.util.*;
import java.util.List;
im... | 27,440 |
https://github.com/windystrife/UnrealEngine_NVIDIAGameWorks/blob/master/Engine/Source/Editor/BlueprintGraph/Private/BlueprintDelegateNodeSpawner.cpp | Github Open Source | Open Source | MIT, LicenseRef-scancode-proprietary-license | 2,022 | UnrealEngine_NVIDIAGameWorks | windystrife | C++ | Code | 277 | 1,289 | // Copyright 1998-2017 Epic Games, Inc. All Rights Reserved.
#include "BlueprintDelegateNodeSpawner.h"
#include "K2Node_Variable.h"
#include "Kismet2/BlueprintEditorUtils.h"
#include "EditorStyleSettings.h"
#include "Editor/EditorEngine.h"
#include "ObjectEditorUtils.h"
#include "EditorCategoryUtils.h"
#define LOCTEX... | 52,033 |
https://github.com/cherishing99/altar/blob/master/.mm/altar.mm | Github Open Source | Open Source | BSD-3-Clause | 2,019 | altar | cherishing99 | Makefile | Code | 149 | 434 | # -*- Makefile -*-
#
# michael a.g. aïvázis
# parasim
# (c) 1998-2019 all rights reserved
#
# project meta-data
altar.major := 2
altar.minor := 0
# altar consists of a python package
altar.packages := altar.pkg
# libraries
altar.libraries := altar.lib
# python extensions
altar.extensions := altar.ext
# and some tests... | 22,103 |
https://github.com/uurun/duilib_from_redrain/blob/master/UiLib/Core/UITimer.h | Github Open Source | Open Source | BSD-2-Clause | 2,022 | duilib_from_redrain | uurun | C | Code | 1,037 | 4,279 | #ifndef UITimer_h__
#define UITimer_h__
#pragma once
namespace UiLib{
union unUserData{
RECT rcRect;
SIZE szSize;
UINT uUint;
DWORD dwDword;
UINT_PTR upUintPtr;
int iInt;
float fFloat;
double dDouble;
bool bBool;
char* pchar;
const char* pcpchar;
wchar_t* pwchar;
const wchar_t* pcwchar;
... | 54,873 |
https://github.com/hu174/samza/blob/master/samza-sql/src/test/java/org/apache/samza/sql/testutil/TestMetricsRegistryImpl.java | Github Open Source | Open Source | Apache-2.0 | null | samza | hu174 | Java | Code | 384 | 1,012 | /*
* 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 ... | 12,510 |
https://github.com/18699032682/TLChat/blob/master/TLChat/Modules/Chat/ChatViewController/Keyborads/ChatEmojiKeyboard/EmojiKeyoboardBar/TLEmojiGroupCell.h | Github Open Source | Open Source | MIT | 2,017 | TLChat | 18699032682 | Objective-C | Code | 35 | 126 | //
// TLEmojiGroupCell.h
// TLChat
//
// Created by 李伯坤 on 16/2/19.
// Copyright © 2016年 李伯坤. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "TLEmojiGroup.h"
@interface TLEmojiGroupCell : UICollectionViewCell
@property (nonatomic, strong) TLEmojiGroup *emojiGroup;
@end
| 23,458 |
https://github.com/baranyildirim/evoGAN/blob/master/evolution/cell_dna.py | Github Open Source | Open Source | MIT | 2,022 | evoGAN | baranyildirim | Python | Code | 181 | 701 | from .parameters import Parameters
from dataclasses import dataclass, astuple, fields, asdict
from typing import Type, TypeVar, List, Callable, Any, Sequence, Tuple
from random import choice, uniform
import numpy as np
D = TypeVar('D', bound='CellDNA')
@dataclass
class DNAProperties:
choice_func = choice
mu... | 9,519 |
https://github.com/cdli-gh/mtaac_cdli_ur3_corpus/blob/master/ur3_corpus_data/annotated/comm_conll/P134/P134080.conll | Github Open Source | Open Source | CC0-1.0, LicenseRef-scancode-public-domain | 2,022 | mtaac_cdli_ur3_corpus | cdli-gh | null | Spoken | 485 | 1,432 | #new_text=P134080
FORM SEGM XPOSTAG XPOSTAG POS ? ? ? ? ? ?
5(u) 5(u)[ten] NU NU D B-COUNT _ 52 cardinal _ 52
2(disz) 2(disz)[one] NU NU D I-COUNT * * * * *
u8 u[ewe] N N D B-COM _ _ _ _ _
1(u) 1(u)[ten] NU NU D B-COUNT _ 16 cardinal _ 16
6(disz) 6(disz)[one][-sze] NU NU D I-COUNT * * * * *
kir11 kir[female_lamb] ... | 51,838 |
https://github.com/DavidLei08/BlogSecurity/blob/master/src/main/java/club/dlblog/security/common/enums/CodeEnum.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | BlogSecurity | DavidLei08 | Java | Code | 32 | 100 | package club.dlblog.security.common.enums;
/**
* @author null
* @date 2020/01/30/14:26
*/
public interface CodeEnum {
/**
* 获取状态
*
* @return 状态码
* @author null
* @date 2020/1/30 14:27
*/
String getCode();
}
| 692 |
https://github.com/Nuntawut/ocp2/blob/master/src/ocp.go | Github Open Source | Open Source | MIT | 2,011 | ocp2 | Nuntawut | Go | Code | 598 | 1,863 | package main
import (
"compress/gzip"
"flag"
"fmt"
"http"
"io"
"log"
"os"
"path"
"sort"
"strings"
"sync"
"url"
"xml"
)
const (
version string = "2.1"
)
var (
sem chan bool
wg = &sync.WaitGroup{}
client = http.DefaultClient
throttle *uint = flag.Uint("c", 1, "pages to prime at once")
localDir... | 33,752 |
https://github.com/cxw42/do-not-self-host/blob/master/Makefile.in | Github Open Source | Open Source | ISC | 2,020 | do-not-self-host | cxw42 | Makefile | Code | 29 | 80 | # Makefile for ngb
ngb_all: ngb ngbasm.py
%.py: %.md
./extract.py $^ $@
chmod a+x $@
clean ::
-rm ngb ngb.exe ngbasm.py
# Use the default rule for %: %.c
| 12,278 |
https://github.com/rduplain/Makefile.d/blob/master/luajit.mk | Github Open Source | Open Source | BSD-2-Clause | 2,019 | Makefile.d | rduplain | Makefile | Code | 151 | 763 | # Provide a project-local LuaJIT installation.
#
# To avoid collisions, do not use with lua.mk or other Lua implementations in
# Makefile.d.
LUAJIT_MK := $(lastword $(MAKEFILE_LIST))
DIR := $(patsubst %/,%,$(dir $(lastword $(MAKEFILE_LIST))))
# LuaJIT 2.0.5 is an implementation of Lua 5.1.
LUAJIT_BASE_URL ?= http://l... | 23,150 |
https://github.com/egoist/poi/blob/master/plugins/vue-static/lib/generate.js | Github Open Source | Open Source | MIT | 2,021 | poi | egoist | JavaScript | Code | 188 | 777 | const path = require('path')
const fs = require('fs-extra')
const { createBundleRenderer } = require('vue-server-renderer')
const { minify } = require('html-minifier')
module.exports = async (
api,
{
staticRoutes,
serverBundle,
clientManifest,
htmlSkeletion,
resourceHints,
runInNewContext
... | 36,518 |
https://github.com/rogervaas/diagrams2ai/blob/master/rasa-conf/server.run | Github Open Source | Open Source | MIT | 2,019 | diagrams2ai | rogervaas | Shell | Code | 23 | 87 | #!/bin/sh
docker run \
-p 5005:5005 \
--add-host myhost:172.17.0.1 \
-v $(pwd):/app \
rasa/rasa \
run -m /app/models --credentials /app/credentials.yml --enable-api --cors "*"
| 45,637 |
https://github.com/alexvanboxel/luigiext-gcloud/blob/master/examples/target.py | Github Open Source | Open Source | Apache-2.0 | 2,022 | luigiext-gcloud | alexvanboxel | Python | Code | 132 | 508 | from luigi_gcloud.storage import GCSTarget, GCSFlagTarget
from luigi_gcloud.gcore import get_default_client
class GSStoragePathWrapper:
def __init__(self, path):
_client = get_default_client()
self._bucket = _client.get("var", "bucket")
self._path = path
def part(self, part):
... | 3,220 |
https://github.com/FRENSIE/FRENSIE/blob/master/packages/monte_carlo/event/population_control/src/MonteCarlo_PopulationControl.hpp | Github Open Source | Open Source | BSD-3-Clause | 2,021 | FRENSIE | FRENSIE | C++ | Code | 299 | 950 | //---------------------------------------------------------------------------//
//!
//! \file MonteCarlo_PopulationControl.hpp
//! \author Philip Britt
//! \brief Population Control class declaration
//!
//---------------------------------------------------------------------------//
#ifndef MONTE_CARLO_POPULATION_C... | 15,571 |
https://github.com/raul338/cakephp-phpstan-extensions/blob/master/src/CrudSubjectDynamicMethodReturnExtension.php | Github Open Source | Open Source | MIT | null | cakephp-phpstan-extensions | raul338 | PHP | Code | 75 | 292 | <?php
declare(strict_types=1);
namespace Raul338\Phpstan\Cake;
use Cake\Event\Event;
use Crud\Event\Subject as Subject;
use PhpParser\Node\Expr\MethodCall;
use PHPStan\Analyser\Scope;
use PHPStan\Reflection\MethodReflection;
use PHPStan\Type\DynamicMethodReturnTypeExtension;
use PHPStan\Type\ObjectType;
use PHPStan\T... | 11,738 |
https://github.com/15629116378/com.xxscloud.core/blob/master/src/main/kotile/com/xxscloud/core/domain/DomainValueObject.kt | Github Open Source | Open Source | Apache-2.0 | null | com.xxscloud.core | 15629116378 | Kotlin | Code | 16 | 64 | package com.xxscloud.core.domain
import java.io.Serializable
/**
* @author 李小双 2018.1.1
* 领域对象,值对象
*/
interface DomainValueObject : DomainObject<Serializable>
| 49,997 |
https://github.com/AbericYang/trouble/blob/master/entity/src/main/proto/block/Transaction.proto | Github Open Source | Open Source | MIT | 2,018 | trouble | AbericYang | null | Spoken | 104 | 350 | syntax = "proto3";
//生成文件所在包名
option java_package = "cn.aberic.bother.entity.proto.block";
//生成的java文件名
option java_outer_classname = "TransactionProto";
import "block/RWSet.proto";
import "block/Request.proto";
import "enums/TransactionStatus.proto";
message Transaction {
string hash = 1; // 本次写入值链码hash
stri... | 30,625 |
https://github.com/tsbolty/team-honey-cruller/blob/master/client/src/helpers/APICalls/loginWithCookies.ts | Github Open Source | Open Source | MIT, Unlicense | null | team-honey-cruller | tsbolty | TypeScript | Code | 63 | 187 | import { AuthApiData } from '../../interface/AuthApiData';
import { FetchOptions } from '../../interface/FetchOptions';
const baseUrl = 'https://vast-spire-21489.herokuapp.com/https://tattoo-art.herokuapp.com/';
const loginWithCookies = async (): Promise<AuthApiData> => {
const fetchOptions: FetchOptions = {
met... | 4,412 |
https://github.com/nathanwentworth/happy-birthday-kai-junior/blob/master/gggs-src/Assets/Art/3D/barriers/Materials/No Name.mat.meta | Github Open Source | Open Source | MIT | 2,017 | happy-birthday-kai-junior | nathanwentworth | Unity3D Asset | Code | 25 | 127 | fileFormatVersion: 2
<<<<<<< HEAD
guid: e4c5b0ce76249b544a921c094d0a7483
timeCreated: 1493932459
licenseType: Pro
=======
guid: 9dc199e0b041f674990fe7154f0dbc2d
timeCreated: 1493925123
licenseType: Free
>>>>>>> dev
NativeFormatImporter:
mainObjectFileID: 2100000
userData:
assetBundleName:
assetBundleVariant: ... | 24,525 |
https://github.com/pravgupt/aws-sdk-js-v3/blob/master/clients/node/client-dax-node/types/SubnetGroupQuotaExceededFault.ts | Github Open Source | Open Source | Apache-2.0 | null | aws-sdk-js-v3 | pravgupt | TypeScript | Code | 42 | 120 | import { ServiceException as __ServiceException__ } from "@aws-sdk/types";
/**
* <p>The request cannot be processed because it would exceed the allowed number of subnets in a subnet group.</p>
*/
export interface SubnetGroupQuotaExceededFault
extends __ServiceException__<_SubnetGroupQuotaExceededFaultDetails> {
... | 16,817 |
https://github.com/tonykolomeytsev/mpeiapp/blob/master/modules/feature_map/src/main/java/kekmech/ru/map/elm/MapActor.kt | Github Open Source | Open Source | MIT | 2,022 | mpeiapp | tonykolomeytsev | Kotlin | Code | 38 | 184 | package kekmech.ru.map.elm
import io.reactivex.rxjava3.core.Observable
import kekmech.ru.domain_map.MapRepository
import vivid.money.elmslie.core.store.Actor
internal class MapActor(
private val mapRepository: MapRepository
) : Actor<MapAction, MapEvent> {
@Suppress("PARAMETER_NAME_CHANGED_ON_OVERRIDE")
... | 26,916 |
https://github.com/Tencent/omi/blob/master/components/icon/esm/redo.js | Github Open Source | Open Source | MIT | 2,023 | omi | Tencent | JavaScript | Code | 37 | 150 | import { h } from 'omi';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(h("path", {
d: "M18.4 10.6C16.55 8.99 14.15 8 11.5 8c-4.65 0-8.58 3.03-9.96 7.22L3.9 16c1.05-3.19 4.05-5.5 7.6-5.5 1.95 0 3.73.72 5.12 1.88L13 16h9V7l-3.6 3.6z"
}), 'Redo'); | 50,357 |
https://github.com/socialhubio/create-react-app/blob/master/packages/cra-template-typescript/template/src/modules/user/reducer.js | Github Open Source | Open Source | MIT | 2,020 | create-react-app | socialhubio | JavaScript | Code | 44 | 129 | import Immutable from 'seamless-immutable';
import { createReducer } from 'reduxsauce';
import Actions from './actions';
export const INITIAL_STATE = Immutable({
entities: []
});
const usersFetched = (state, { users }) => state.set('entities', Immutable(users));
export const HANDLERS = {
[Actions.Types.USERS_FE... | 27,826 |
https://github.com/BrinsLee/Music/blob/master/musicdetail/src/main/java/com/brins/musicdetail/model/LrcEntry.kt | Github Open Source | Open Source | Apache-2.0 | 2,021 | Music | BrinsLee | Kotlin | Code | 199 | 621 | package com.brins.musicdetail.model
import android.os.Build
import android.text.Layout
import android.text.StaticLayout
import android.text.TextPaint
import android.text.TextUtils
class LrcEntry(var time: Long = 0L, var text: String = "") : Comparable<LrcEntry> {
constructor(
time: Long = 0L,
tex... | 1,273 |
https://github.com/suihan74/ProjectEuler/blob/master/euler083.cpp | Github Open Source | Open Source | MIT | null | ProjectEuler | suihan74 | C++ | Code | 551 | 2,201 | /**
* Problem 83 「経路の和:3方向」
* 注: この問題はProblem 81よりも非常に挑戦しがいがあるだろう.
*
* 下記の5次の正方行列で, 上下左右に移動し左上のセルから開始し右下のセルで終了する道を探索する. 一番小さな道は下で赤で示されており, このときの合計は2297になる.
*
* 131 673 234 103 18
* 201 96 342 965 150
* 630 803 746 422 111
* 537 699 497 121 956
* 805 732 524 37 331
* 今, 31Kのテキストファイルmatrix.txtには80×80の行列が書かれている... | 7,590 |
https://github.com/Philin-Anton/JsOS/blob/master/js/core/net/ip4-address.js | Github Open Source | Open Source | Apache-2.0 | 2,018 | JsOS | Philin-Anton | JavaScript | Code | 366 | 785 | // Copyright 2014-present runtime.js project authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicab... | 36,120 |
https://github.com/ketavchotaliya/restaurant-management-booking/blob/master/src/components/reservation/models/reservation.model.ts | Github Open Source | Open Source | MIT | null | restaurant-management-booking | ketavchotaliya | TypeScript | Code | 251 | 617 | import { Transaction } from 'sequelize';
import { Reservation } from '../schemas';
import { Reservation as ReservationType } from '../types';
class ReservationModel {
async addOne(
reservationObj: ReservationType,
transaction: Transaction | undefined = undefined
): Promise<ReservationType> {
try {
... | 46,936 |
https://github.com/l10n-center/api/blob/master/src/config/config_test.go | Github Open Source | Open Source | MIT | null | api | l10n-center | Go | Code | 22 | 110 | package config_test
import (
"testing"
"github.com/l10n-center/api/src/config"
"github.com/stretchr/testify/assert"
)
func TestDefault(t *testing.T) {
t.Parallel()
cfg := config.Default()
assert.False(t, cfg.Debug)
assert.Len(t, cfg.Secret, 20)
}
| 29,276 |
https://github.com/mhsnprvr/industryui.com/blob/master/components/organisms/footer/__tests__/stories.js | Github Open Source | Open Source | MIT | null | industryui.com | mhsnprvr | JavaScript | Code | 128 | 313 | /**
* Footer
*/
// React
import React from 'react'
// Storybook
import { boolean, withKnobs } from '@storybook/addon-knobs'
import { Wrapper } from 'decorators'
// UI
import { Footer } from 'components'
import Readme from '../README.md'
// Data
import { DRYKISS, FORMATTER, ONE_COLUMN, PORTAL } from '../__mocks__/... | 35,710 |
https://github.com/RoyalSix/proskomma-js/blob/master/src/graph/types/document.js | Github Open Source | Open Source | MIT | 2,020 | proskomma-js | RoyalSix | JavaScript | Code | 142 | 528 | const {GraphQLObjectType, GraphQLString, GraphQLList, GraphQLNonNull, GraphQLBoolean} = require('graphql');
const sequenceType = require('./sequence');
const keyValueType = require('./key_value');
const headerById = (root, id) =>
(id in root.headers) ? root.headers[id] : null;
const documentType = new GraphQLObj... | 433 |
https://github.com/lourdrivera123/universalagency/blob/master/app/views/employer/partials/_topbar.blade.php | Github Open Source | Open Source | MIT | 2,014 | universalagency | lourdrivera123 | Blade | Code | 66 | 305 | <div class="top-bar">
<div class="container">
<div class="row">
<div class="col-sm-12">
<!-- Search Box -->
<div class="searchbox">
<form action="#" method="get">
<input type="text" class... | 33,763 |
https://github.com/cofoundry-cms/cofoundry/blob/master/src/Cofoundry.Domain/Domain/Users/Messages/UserAccountRecoveryCompletedMessage.cs | Github Open Source | Open Source | MIT | 2,023 | cofoundry | cofoundry-cms | C# | Code | 107 | 225 | namespace Cofoundry.Domain;
/// <summary>
/// This message is published when a user successfully completes the account
/// recovery process via <see cref="CompleteUserAccountRecoveryViaEmailCommand"/>. This
/// command will also trigger <see cref="UserPasswordUpdatedMessage"/>.
/// </summary>
public class UserAccoun... | 7,384 |
https://github.com/mastermind31415926/docker_compose/blob/master/docker-compose/scripts/make-app.mk | Github Open Source | Open Source | MIT | null | docker_compose | mastermind31415926 | Makefile | Code | 19 | 67 | USER = "$(shell id -u):$(shell id -g)"
app:
docker-compose up
app-build:
docker-compose build
app-bash:
docker-compose run --user=$(USER) app bash
| 37,794 |
https://github.com/veler/BaZic/blob/master/Sources/BaZic.Runtime/BaZic/Code/AbstractSyntaxTree/ReferenceExpression.cs | Github Open Source | Open Source | MIT | 2,019 | BaZic | veler | C# | Code | 30 | 74 | using System;
namespace BaZic.Runtime.BaZic.Code.AbstractSyntaxTree
{
/// <summary>
/// Basic class for a reference to something in an algorithm
/// </summary>
[Serializable]
public abstract class ReferenceExpression : Expression
{
}
}
| 35,539 |
https://github.com/ThiesR/gini-vision-lib-android/blob/master/ginivision/src/main/java/net/gini/android/vision/requirements/CameraHolder.java | Github Open Source | Open Source | Apache-2.0 | null | gini-vision-lib-android | ThiesR | Java | Code | 77 | 212 | package net.gini.android.vision.requirements;
import android.hardware.Camera;
import android.support.annotation.Nullable;
class CameraHolder {
private Camera mCamera;
public void closeCamera() {
if (mCamera != null) {
mCamera.release();
mCamera = null; // NOPMD
}
... | 39,794 |
https://github.com/rexardiente/Trade-Engine/blob/master/mr-trade-library/src/main/scala/mrtradelibrary/utils/db/CurrencySupport.scala | Github Open Source | Open Source | Apache-2.0 | 2,018 | Trade-Engine | rexardiente | Scala | Code | 49 | 194 | package mrtradelibrary.utils.db
import com.github.tminglei.slickpg.{ ExPostgresProfile, PgEnumSupport }
import mrtradelibrary.utils.Currencies
trait CurrencySupport extends PgEnumSupport { _: ExPostgresProfile =>
trait CurrencyImplicits {
private val typeName = "CURRENCY"
implicit val currencyTypeMapper =
... | 25,927 |
https://github.com/elBeta/saavyas-2k20-client/blob/master/src/details/entertainmentDetails.js | Github Open Source | Open Source | MIT | null | saavyas-2k20-client | elBeta | JavaScript | Code | 496 | 1,558 | export const highlightEvents = [
{
title: "IPL Auction",
fileName: "ipl-auction.jpeg",
link: "/events/entertainment/#ipl-auction",
},
{
title: "Rapid Fire",
fileName: "trivium.jpeg",
link: "/events/entertainment/#trivium",
},
]
export const events = [
{
id: "binge-eating",
tit... | 8,411 |
https://github.com/chengupc/iotdb-kairosdb/blob/master/src/main/java/cn/edu/tsinghua/iotdb/kairosdb/rollup/RollUpParser.java | Github Open Source | Open Source | Apache-2.0 | 2,019 | iotdb-kairosdb | chengupc | Java | Code | 97 | 570 | package cn.edu.tsinghua.iotdb.kairosdb.rollup;
import cn.edu.tsinghua.iotdb.kairosdb.datastore.TimeUnit;
import cn.edu.tsinghua.iotdb.kairosdb.http.rest.json.TimeUnitDeserializer;
import cn.edu.tsinghua.iotdb.kairosdb.query.QueryMetric;
import cn.edu.tsinghua.iotdb.kairosdb.query.aggregator.QueryAggregator;
import cn.... | 8,266 |
https://github.com/exercism/java-representer/blob/master/src/test/java/representer/RepresenterTest.java | Github Open Source | Open Source | MIT | 2,023 | java-representer | exercism | Java | Code | 229 | 961 | package representer;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.is;
import java.net.URI;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.util.Arrays;
import org.junit.Test;
import representer.normalizer.BlockNormalizer;
import representer.normalizer.... | 40,714 |
https://github.com/maximdurov904/emocean/blob/master/src/Template/Cart/index.ctp | Github Open Source | Open Source | MIT | 2,017 | emocean | maximdurov904 | PHP | Code | 374 | 1,565 |
<?php use Cake\Routing\Router; ?>
<?php $this->start('scriptBottom'); ?>
<?php $this->end() ?>
<body class="product-view">
<div class="container">
<section class="product_breadcrumb" style="background:#fff !important; margin-top: 90px;">
<div class="row">
<p class="grey-color fs21 te... | 17,183 |
https://github.com/cyclus/rickshaw/blob/master/rickshaw/server.py | Github Open Source | Open Source | 2,018 | rickshaw | cyclus | Python | Code | 567 | 2,072 | """The asynchronous rickshaw server that communicates with scheduling queues and
provides randomly generated input files.
"""
import sys
import json
import socket
import asyncio
import concurrent.futures
from argparse import ArgumentParser
import docker
import websockets
from rickshaw.docker_scheduler import DockerSc... | 13,835 | |
https://github.com/xianzhihua/movie/blob/master/application/admin/controller/Classs.php | Github Open Source | Open Source | Apache-2.0 | null | movie | xianzhihua | PHP | Code | 79 | 446 | <?php
namespace app\admin\controller;
use think\Controller;
use app\admin\controller\Base;
class Classs extends Base
{
public function lst(){
$data = db('class')->paginate(10);
$this->assign('data',$data);
return $this->fetch();
}
public function edit(){
$id = input('id');
$data = db('class')->find($id);
... | 24,093 |
https://github.com/warriorsZXX/aliyun-openapi-java-sdk/blob/master/aliyun-java-sdk-cs/src/main/java/com/aliyuncs/cs/model/v20151215/AttachInstancesRequest.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | aliyun-openapi-java-sdk | warriorsZXX | Java | Code | 292 | 991 | /*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed u... | 35,013 |
https://github.com/Oceanity/oceanet-vue/blob/master/src/components/stream/sfx/SFXCommand.vue | Github Open Source | Open Source | MIT | null | oceanet-vue | Oceanity | Vue | Code | 175 | 602 | <template>
<li class="sfx-command">
<span class="command-tag" @click="copyCommand">{{ tag }}</span>
<span class="command-text" v-html="text" />
</li>
</template>
<script>
import { Options, Vue } from "vue-class-component";
/**
* Single SFX Command
* @displayName SFXCommand
*/
@Options({
props: ["tag"... | 4,335 |
https://github.com/enactjs/enact-theme-agate/blob/master/tests/ui/specs/Drawer/Drawer-specs.js | Github Open Source | Open Source | Apache-2.0 | 2,021 | enact-theme-agate | enactjs | JavaScript | Code | 685 | 2,603 | let Page = require('./DrawerPage'),
{validateTitle, expectClosed, expectNoneScrimOpen, expectOpen} = require('./Drawer-utils.js');
describe('Drawer', function () {
const drawerCommon = Page.drawerCommon;
beforeEach(function () {
Page.open();
});
it('should focus the first button on start', function () {
ex... | 21,372 |
https://github.com/VcDevel/VcDevel.github.io/blob/master/Vc-1.2.0/annotated.js | Github Open Source | Open Source | BSD-3-Clause | null | VcDevel.github.io | VcDevel | JavaScript | Code | 10 | 28 | var annotated =
[
[ "Vc", "namespaceVc.html", "namespaceVc" ]
]; | 6,123 |
https://github.com/wellcometrust/wellcome-patterns-node/blob/master/common/icons/components/CcPdm.tsx | Github Open Source | Open Source | MIT | 2,020 | wellcome-patterns-node | wellcometrust | TypeScript | Code | 115 | 736 | import { IconSvg } from '../types';
const SvgCcPdm: IconSvg = props => (
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" {...props}>
<path
className="icon__shape"
fillRule="nonzero"
d="M22 7.9c-.5-1.3-1.3-2.5-2.3-3.5-2-2.1-4.8-3.2-7.7-3.1-2.9-.1-5.6 1.1-7.6 3.1-1 1-1.9 2.2-2.4 3.5a1... | 3,402 |
https://github.com/Cubo1ndev/morethingsmod/blob/master/src/main/java/net/more/things/block/LayerBlock.java | Github Open Source | Open Source | CC0-1.0 | 2,021 | morethingsmod | Cubo1ndev | Java | Code | 435 | 1,963 | package net.more.things.block;
import net.minecraft.block.*;
import net.minecraft.entity.ai.pathing.NavigationType;
import net.minecraft.fluid.FluidState;
import net.minecraft.fluid.Fluids;
import net.minecraft.item.ItemPlacementContext;
import net.minecraft.server.world.ServerWorld;
import net.minecraft.state.StateMa... | 13,169 |
https://github.com/earthperson/HelloWorld/blob/master/homepage/main/code.php | Github Open Source | Open Source | MIT | 2,022 | HelloWorld | earthperson | PHP | Code | 679 | 2,348 | <?php
function callback($buffer) {
return trim($buffer);
}
// включаем буферизацию вывода
ob_start("callback");
// инициализируем сессию
session_set_cookie_params(0); //Задаем время жизни куки
session_start();
// подключаем общие модули
require_once '../engine/common/cache0.php';
require_once '../engine/config.php';... | 48,087 |
https://github.com/growlitheharpo/unity-utility-lib/blob/master/Assets/KeatsLib/scripts/Editor/CustomEditorGUIUtility.cs | Github Open Source | Open Source | MIT | null | unity-utility-lib | growlitheharpo | C# | Code | 816 | 2,646 | using System;
using KeatsLib.Unity;
using UnityEngine;
namespace UnityEditor
{
/// <summary>
/// Utility class for Editor functions.
/// </summary>
public static class CustomEditorGUIUtility
{
public const float LINE_HEIGHT_MODIFIER = 1.05f;
/// <summary>
/// Draws the "script" field at the top of a fully... | 14,581 |
https://github.com/Robbepop/stevia/blob/master/ast/src/terms/bitwise/bitnot.rs | Github Open Source | Open Source | Apache-2.0, MIT | 2,021 | stevia | Robbepop | Rust | Code | 306 | 879 | use crate::{
AnyExpr,
ExprResult,
IntoBoxedAnyExpr,
ExprError,
HasKind,
ExprKind,
HasArity,
UnaryExpr,
P,
ty::{
BitvecTy,
expect_bitvec_ty,
HasType,
Type,
},
iter::{
Children,
ChildrenMut,
IntoChildren,
},
};
//... | 15,371 |
https://github.com/hamburgcodingschool/java-programming/blob/master/src/com/hamburgcodingschool/session5/pets/Pet.java | Github Open Source | Open Source | MIT | 2,018 | java-programming | hamburgcodingschool | Java | Code | 30 | 80 | package com.hamburgcodingschool.session5.pets;
public abstract class Pet {
private String name;
public Pet(String name) {
this.name = name;
}
public String getName() {
return name;
}
public abstract void pet();
}
| 30,450 |
https://github.com/Scottx86-64/dotfiles-1/blob/master/source/pkgsrc/fonts/tex-playfair-doc/Makefile | Github Open Source | Open Source | Unlicense | 2,021 | dotfiles-1 | Scottx86-64 | Makefile | Code | 31 | 171 | # $NetBSD: Makefile,v 1.5 2021/02/20 00:38:29 markd Exp $
DISTNAME= playfair.doc
PKGNAME= tex-${DISTNAME:S/./-/}-2020.56005
TEXLIVE_REV= 56005
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://ctan.org/pkg/playfair
COMMENT= Documentation for tex-playfair
LICENSE= ofl-v1.1 AND lppl-1.3c
.include "../../print/texl... | 8,282 |
https://github.com/dltxio/Monorepo-template/blob/master/packages/web-app/src/components/__tests__/HelperText.test.tsx | Github Open Source | Open Source | MIT | null | Monorepo-template | dltxio | TypeScript | Code | 90 | 309 | import { mount } from 'enzyme'
import React from 'react'
import HelperText from '../HelperText'
describe('HelperText', () => {
it('should render without crashing', () => {
mount(<HelperText>Lorem ipsum</HelperText>)
})
it('should render with base styles', () => {
const expected = 'text-xs'
const wr... | 46,000 |
https://github.com/matagus/CollectorCity-Market-Place/blob/master/stores/apps/subscriptions/views.py | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, Apache-2.0 | 2,011 | CollectorCity-Market-Place | matagus | Python | Code | 76 | 336 | import logging
from django.http import HttpResponse
from subscriptions.models import SubscriptionPlan
from django.shortcuts import render_to_response
from django.template.context import RequestContext
from core.decorators import shop_admin_required
def subscription_plans(request):
plans = SubscriptionPlan.obje... | 898 |
https://github.com/ylnn/laravel-tour-sale/blob/master/resources/views/admin/category/index.blade.php | Github Open Source | Open Source | MIT | 2,021 | laravel-tour-sale | ylnn | PHP | Code | 238 | 1,201 | @extends('layout.admin')
@section('content')
<div class="d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center pb-2 mb-3 border-bottom">
<h1 class="h2">@lang('adminLang.categories')</h1>
<div class="btn-toolbar mb-2 mb-md-0">
<div class="btn-group mr-2">
<a hr... | 6,415 |
https://github.com/webdev1001/json_api_client/blob/master/lib/json_api_client/query/destroy.rb | Github Open Source | Open Source | MIT | 2,015 | json_api_client | webdev1001 | Ruby | Code | 18 | 46 | module JsonApiClient
module Query
class Destroy < Base
self.request_method = :delete
def params
nil
end
end
end
end | 7,231 |
https://github.com/laudrup/ebbamaala/blob/master/website/tests/test_form_errors.py | Github Open Source | Open Source | MIT | null | ebbamaala | laudrup | Python | Code | 59 | 240 | from bs4 import BeautifulSoup
from django.template import Context, Template
from django.test import TestCase
class FormErrorsTagTests(TestCase):
def test_form_errors(self):
context = Context({'errors': ['Bad', 'Even worse']})
template_to_render = Template(
'{% load form_errors %}'
... | 35,316 |
https://github.com/selfrefactor/rambda/blob/master/source/switcher.spec.js | Github Open Source | Open Source | MIT | 2,023 | rambda | selfrefactor | JavaScript | Code | 257 | 651 | import { add } from './add.js'
import { switcher } from './switcher.js'
import { tap } from './tap.js'
import { trim } from './trim.js'
test('with undefined', () => {
const result = switcher(undefined)
.is(x => x === 0, '0')
.is(x => x === undefined, 'UNDEFINED')
.default('3')
expect(result).toBe('UND... | 25,835 |
https://github.com/andrewapj/todo-api/blob/master/src/test/java/com/github/andrewapj/todoapi/api/model/ApiErrorTest.java | Github Open Source | Open Source | MIT | null | todo-api | andrewapj | Java | Code | 23 | 124 | package com.github.andrewapj.todoapi.api.model;
import nl.jqno.equalsverifier.EqualsVerifier;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.JUnit4;
@RunWith(JUnit4.class)
public class ApiErrorTest {
@Test
public void equalsContract() {
EqualsVerifier.forClass(ApiErr... | 54,431 |
https://github.com/stellakeppo/pheweb/blob/master/pheweb/load/map_fields.py | Github Open Source | Open Source | MIT | 2,020 | pheweb | stellakeppo | Python | Code | 420 | 1,634 | #!/bin/env python3
# todo
# 1. document
# 2. unit tests
import sys
import argparse
import os
def rename_args(rename):
rename_map = {}
if rename:
for columns in rename.split(","):
if ":" in columns:
old_name , new_name = columns.split(":")
rename_map[old_name... | 28,316 |
https://github.com/adrianwit/beam/blob/master/runners/google-cloud-dataflow-java/worker/src/test/java/org/apache/beam/runners/dataflow/worker/DataflowWorkerHarnessHelperTest.java | Github Open Source | Open Source | Apache-2.0 | null | beam | adrianwit | Java | Code | 299 | 1,086 | /*
* 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 ... | 44,966 |
https://github.com/Dianjoy/tiger-prawn/blob/master/page/stat/invoice-detail.hbs | Github Open Source | Open Source | MIT | 2,016 | tiger-prawn | Dianjoy | null | Spoken | 548 | 3,862 | <h3 class="tac" id="invoice-title">{{#if company}}{{company}}{{else}}{{full_name}}{{/if}}-点乐{{#equal start end}}{{start}}{{else}}{{start}}~{{end}}{{/equal}}结算单及开票申请单 </h3>
<h4 class="tac">
<a data-toggle="popover" data-content="{{#each agreement_info}}{{@this}}<br>{{/each}}" data-html="true" data-title="合同信息" id="agr... | 53,917 |
https://github.com/964217/platform/blob/master/iotboard-release-3.2/ui-ngx/src/app/shared/components/contact.component.ts | Github Open Source | Open Source | Apache-2.0 | 2,021 | platform | 964217 | TypeScript | Code | 391 | 1,148 | ///
/// Copyright © 2016-2021 The Thingsboard Authors
///
/// Licensed under the Apache License, Version 2.0 (the "License");
/// you may not use this file except in compliance with the License.
/// You may obtain a copy of the License at
///
/// http://www.apache.org/licenses/LICENSE-2.0
///
/// Unless required by... | 37,400 |
https://github.com/aws/aws-sdk-ruby/blob/master/gems/aws-sdk-codeguruprofiler/lib/aws-sdk-codeguruprofiler/endpoints.rb | Github Open Source | Open Source | Apache-2.0 | 2,023 | aws-sdk-ruby | aws | Ruby | Code | 544 | 2,952 | # frozen_string_literal: true
# WARNING ABOUT GENERATED CODE
#
# This file is generated. See the contributing guide for more information:
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
#
# WARNING ABOUT GENERATED CODE
module Aws::CodeGuruProfiler
# @api private
module Endpoints
class A... | 44,261 |
https://github.com/wong2/iter-tools/blob/master/src/__spec__/first.spec.ts | Github Open Source | Open Source | MIT | 2,019 | iter-tools | wong2 | TypeScript | Code | 32 | 110 | import assert from 'static-type-assert'
import * as iter from '../index'
assert<undefined>(iter.first([]))
assert<0>(iter.first([0, 1, 2, 3] as [0, 1, 2, 3]))
assert<number>(iter.first([0, 1, 2] as [number, ...any[]]))
assert<number | undefined>(iter.first(Array<number>()))
assert<string | undefined>(iter.first(''))
| 6,040 |
https://github.com/jlaluces123/grommet-icons/blob/master/src/js/icons/PhoneHorizontal.js | Github Open Source | Open Source | Apache-2.0 | null | grommet-icons | jlaluces123 | JavaScript | Code | 66 | 201 | import React from 'react';
import { StyledIcon } from '../StyledIcon';
export const PhoneHorizontal = props => (
<StyledIcon viewBox='0 0 24 24' a11yTitle='PhoneHorizontal' {...props}>
<path fillRule='evenodd' clipRule='evenodd' d='M23 7a2 2 0 0 0-2-2H3a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h18a2 2 0 0 0 2-2V7zm-2 5.99... | 37,795 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.