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/VerkhovtsovPavel/BSUIR_Labs/blob/master/Labs/OOP/OOP-Lab3/src/shapes/Line.java | Github Open Source | Open Source | MIT | 2,018 | BSUIR_Labs | VerkhovtsovPavel | Java | Code | 40 | 152 | package shapes;
import java.awt.Graphics;
import java.util.ArrayList;
public class Line extends BaseShape{
private int xFinish;
private int yFinish;
public Line(ArrayList <Integer> parametersList){
super(parametersList.get(0), parametersList.get(1));
this.xFinish = parametersList.get(2);
this.yFinish = pa... | 17,559 |
https://github.com/valentin7/pineapple-ios/blob/master/Podfile | Github Open Source | Open Source | MIT | 2,015 | pineapple-ios | valentin7 | Ruby | Code | 49 | 153 | # Uncomment this line to define a global platform for your project
platform :ios, '8.0'
target 'Pineapple' do
pod 'TextFieldEffects'
pod "AFNetworking", "~> 2.0"
pod 'Stripe'
pod 'Stripe/ApplePay'
pod 'SVProgressHUD', :head
pod 'ChameleonFramework'
pod 'Spring', :git => 'https://github.com/MengTo/Spring.git', :branch... | 43,632 |
https://github.com/BerkeleyLab/Bedrock/blob/master/dsp/mon_2chan.v | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, BSD-3-Clause-LBNL | 2,023 | Bedrock | BerkeleyLab | Verilog | Code | 288 | 953 | `timescale 1ns / 1ns
// 2 x 3-in-1 functionality
// 1. Mix an ADC output with LO sin (or) cos (see mixer.v)
// 2. Double CIC integrate the output signal from step-1. (via double_inte.v)
// 3. Take a sample from step-2 when the `input samp` is high AND
// put the sampled data out on the stream when g_in is high (via ... | 27,787 |
https://github.com/SmallRuralDog/amis-admin/blob/master/src/Traits/ModelTree.php | Github Open Source | Open Source | MIT | 2,023 | amis-admin | SmallRuralDog | PHP | Code | 49 | 162 | <?php
namespace SmallRuralDog\AmisAdmin\Traits;
trait ModelTree
{
public static function getTreeSelectList($keyColumn = "id", $valueColumn = "title", $orderColumn = "order", $hasTop = false): array
{
$list = self::query()->orderBy($orderColumn)->get()->toArray();
if ($hasTop) {
$l... | 4,783 |
https://github.com/Hacker0x01/pulumi-snowflake/blob/master/sdk/python/pulumi_snowflake/get_warehouses.py | Github Open Source | Open Source | ECL-2.0, Apache-2.0 | 2,022 | pulumi-snowflake | Hacker0x01 | Python | Code | 214 | 674 | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from . import ... | 16,103 |
https://github.com/jackdewinter/pymarkdown/blob/master/pymarkdown/inline/inline_handler_helper.py | Github Open Source | Open Source | MIT | 2,023 | pymarkdown | jackdewinter | Python | Code | 1,895 | 9,903 | """
Module to orchestrate the handling of the different inline elements.
"""
import logging
from typing import Dict, List, Optional, Tuple, cast
from typing_extensions import Protocol
from pymarkdown.general.constants import Constants
from pymarkdown.general.parser_helper import ParserHelper
from pymarkdown.general.p... | 40,043 |
https://github.com/r3inbowari/AndroidRemote/blob/master/cloud-game/src/views/MIndex.vue | Github Open Source | Open Source | MIT | 2,021 | AndroidRemote | r3inbowari | Vue | Code | 272 | 944 | <template>
<!-- <div style="padding-bottom: 50px"> -->
<div class="mobile-app" id="mapp">
<router-view></router-view>
</div>
<!-- 使用state控制 -->
<van-tabbar
v-if="store.state.menuEnable"
@change="onChangeMenu"
v-model="menuActive"
>
<van-tabbar-item v-for="(item, index) in menuList.dat">
... | 3,827 |
https://github.com/caitisgreat/jkgfxmod/blob/master/renderer/ddrawsurface_impl.cpp | Github Open Source | Open Source | MIT | null | jkgfxmod | caitisgreat | C++ | Code | 392 | 2,380 | #include "ddrawsurface_impl.hpp"
#include "base/log.hpp"
#include "common/error_reporter.hpp"
#include "dxguids.hpp"
jkgm::DirectDrawSurface_impl::DirectDrawSurface_impl(char const *obj_name)
: obj_name(obj_name)
{
}
HRESULT WINAPI jkgm::DirectDrawSurface_impl::QueryInterface(REFIID riid, LPVOID *ppvObj)
{
re... | 47,946 |
https://github.com/nick-terry/Splitting-GP/blob/master/Experiments/powergen_experiment_splitting.py | Github Open Source | Open Source | MIT | 2,021 | Splitting-GP | nick-terry | Python | Code | 348 | 1,430 | # -*- coding: utf-8 -*-
"""
Created on Sun Feb 9 18:05:26 2020
@author: pnter
es"""
import time
import SplittingLocalGP
import torch
import gpytorch
import numpy as np
import TestData
import pandas as pd
def getKin40():
predictorsTrain,responseTrain,predictorsTest,responseTest = TestData.kin40()
return predi... | 19,666 |
https://github.com/blizmax/Rogy-Engine-/blob/master/Engine/renderer/reflection_probe.h | Github Open Source | Open Source | MIT | 2,021 | Rogy-Engine- | blizmax | C++ | Code | 147 | 550 | #ifndef LIGHTING_REFLECTION_PROBE_H
#define LIGHTING_REFLECTION_PROBE_H
#include "glm\glm.hpp"
#include "../mesh/bounding_box.h"
#include "pbr_capture.h"
#include "../scene/RComponent.h"
class ReflectionProbe : public Component
{
BASE_COMPONENT()
// Probe ID
int probe_id;
// Cubemap capture
PBRCapture capture... | 44,445 |
https://github.com/fuadaghazada/RentalSystems/blob/master/src/main/java/com/interdepartmental/repository/AnnouncementRepositoryImpl.java | Github Open Source | Open Source | MIT | 2,020 | RentalSystems | fuadaghazada | Java | Code | 36 | 144 | package com.interdepartmental.repository;
import com.interdepartmental.model.Announcement;
import org.springframework.stereotype.Repository;
import java.util.ArrayList;
@Repository
public class AnnouncementRepositoryImpl implements AnnouncementRepository {
private ArrayList<Announcement> announcements = new Arra... | 3,083 |
https://github.com/TakaiKinoko/Algorithms-In-Scala/blob/master/src/primitive/Strings.scala | Github Open Source | Open Source | CC-BY-4.0 | null | Algorithms-In-Scala | TakaiKinoko | Scala | Code | 987 | 2,447 | /**
* This file is part of Scalacaster project, https://github.com/vkostyukov/scalacaster
* and written by Vladimir Kostyukov, http://vkostyukov.ru
*
*/
object Strings {
/**
* Checks whether the given string 's' is palindrome or not.
*
* Time - O(n)
* Space - O(1)
* Tail recursive: A call is said... | 34,845 |
https://github.com/Flow-Launcher/Flow.Launcher/blob/master/Flow.Launcher.Core/Resource/Internationalization.cs | Github Open Source | Open Source | MIT | 2,023 | Flow.Launcher | Flow-Launcher | C# | Code | 554 | 1,915 | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Windows;
using Flow.Launcher.Core.Plugin;
using Flow.Launcher.Infrastructure;
using Flow.Launcher.Infrastructure.Logger;
using Flow.Launcher.Infrastructure.UserSettings;
using Flow.Launcher.Plugin;... | 17,231 |
https://github.com/carbonfive/spraygun-react-ts/blob/master/src/components/Counter.tsx | Github Open Source | Open Source | MIT | 2,022 | spraygun-react-ts | carbonfive | TypeScript | Code | 44 | 118 | import React, { useState } from "react";
import "./Counter.scss";
const Counter = (): JSX.Element => {
const [count, setCount] = useState(0);
return (
<div className="Counter">
An example stateful component.
<button className="Counter__button" onClick={() => setCount(count + 1)}>
{count}
... | 46,855 |
https://github.com/piousbox/ish_lib_assets/blob/master/lib/app/assets/stylesheets/manager/_search.sass | Github Open Source | Open Source | MIT | null | ish_lib_assets | piousbox | Sass | Code | 12 | 40 |
.Lmanager
form.search
margin: 0 !important
height: 40px
line-height: 40px
input
margin: 0 | 8,775 |
https://github.com/sherbang/hugo-fresh/blob/master/assets/style.sass | Github Open Source | Open Source | MIT | null | hugo-fresh | sherbang | Sass | Code | 16 | 47 | // Variables that need to load before Bulma
@import "fresh/variables"
@import "bulma/bulma"
@import "fresh/core"
@import "local/core" | 6,972 |
https://github.com/btoo/firebase-js-sdk/blob/master/packages-exp/auth-exp/src/platform_browser/recaptcha/recaptcha_mock.ts | Github Open Source | Open Source | Apache-2.0 | 2,021 | firebase-js-sdk | btoo | TypeScript | Code | 486 | 1,334 | /**
* @license
* Copyright 2020 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ... | 34,895 |
https://github.com/josefs/Gradualizer/blob/master/test/should_pass/records.erl | Github Open Source | Open Source | MIT | 2,023 | Gradualizer | josefs | Erlang | Code | 164 | 576 | -module(records).
-export([f/0, f/1, g/1, h/0, i/0, j/0, k/0, l/0,
rec_field_subtype/1,
rec_index_subtype/0,
record_as_tuple/1,
nospec_update_bug/1]).
-record(r, {f1 :: atom(),
f2 = 1 :: integer()}).
f() ->
%% record creation
R = #r{f2 = 2},
%% record u... | 19,220 |
https://github.com/jondashkyle/hardly-everything/blob/master/src/lib/entries.js | Github Open Source | Open Source | Apache-2.0 | 2,021 | hardly-everything | jondashkyle | JavaScript | Code | 20 | 81 | var dayjs = require('dayjs')
module.exports = {
getDismissedDate
}
function getDismissedDate (entry) {
return dayjs(entry.dateDismissed)
.add(entry.duration, entry.interval)
.startOf('day')
.toDate()
}
| 48,157 |
https://github.com/ru-petrovi4/Ssz.Utils/blob/master/ThirdParties/Microsoft.Research.DynamicDataDisplay/Resources/D3IconHelper.cs | Github Open Source | Open Source | MIT | 2,021 | Ssz.Utils | ru-petrovi4 | C# | Code | 90 | 372 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Media.Imaging;
using System.Reflection;
namespace Microsoft.Research.DynamicDataDisplay
{
public static class D3IconHelper
{
private static BitmapFrame icon = null;
public static BitmapFrame DynamicDataDis... | 34,274 |
https://github.com/anycable/anycable-go/blob/master/ws/ws.go | Github Open Source | Open Source | MIT | 2,023 | anycable-go | anycable | Go | Code | 119 | 324 | package ws
import "github.com/gorilla/websocket"
const (
// CloseNormalClosure indicates normal closure
CloseNormalClosure = websocket.CloseNormalClosure
// CloseInternalServerErr indicates closure because of internal error
CloseInternalServerErr = websocket.CloseInternalServerErr
// CloseAbnormalClosure indic... | 7,693 |
https://github.com/KasparMatas/MLontoFPGAs/blob/master/LearningFiles/createTensorFlowModel.py | Github Open Source | Open Source | Apache-2.0 | null | MLontoFPGAs | KasparMatas | Python | Code | 259 | 791 | # Very simple model which saves its weights as well. Done without Keras and Estimator API. Just using the SavedModel API.
# Wanted to do it as vanilla TensorFlow as possible but it's just too pointlessly hard.
import tensorflow as tf
import numpy as np
from tensorflow.examples.tutorials.mnist import input_data
import ... | 36,617 |
https://github.com/showstop/gtb-client/blob/master/Assets/GameAsset/Resources/Car/11100100_bodies/11100400.prefab.meta | Github Open Source | Open Source | MIT | 2,019 | gtb-client | showstop | Unity3D Asset | Code | 6 | 38 | fileFormatVersion: 2
guid: 2ffac09030ec2294fb03c8265dae501e
NativeFormatImporter:
userData:
| 25,555 |
https://github.com/SohnyBohny/planka/blob/master/client/src/actions/entry/notification.js | Github Open Source | Open Source | MIT | 2,022 | planka | SohnyBohny | JavaScript | Code | 46 | 139 | import EntryActionTypes from '../../constants/EntryActionTypes';
export const handleNotificationCreate = (notification) => ({
type: EntryActionTypes.NOTIFICATION_CREATE_HANDLE,
payload: {
notification,
},
});
export const deleteNotification = (id) => ({
type: EntryActionTypes.NOTIFICATION_DELETE,
payloa... | 33,386 |
https://github.com/06012021-dotnet-uta/EthanBakerP0/blob/master/demos/RockPaperScissors1WithTest/RockPaperScissors1/Player.cs | Github Open Source | Open Source | MIT | null | EthanBakerP0 | 06012021-dotnet-uta | C# | Code | 9 | 25 | namespace RockPaperScissors1
{
public class Player
{
}
} | 2,001 |
https://github.com/weige2583/cordova-plugin-wis-gprinter/blob/master/src/android/WisGprinter.java | Github Open Source | Open Source | Apache-2.0 | null | cordova-plugin-wis-gprinter | weige2583 | Java | Code | 2,588 | 11,449 | package com.isesol.wis;
import org.apache.cordova.CallbackContext;
import org.apache.cordova.CordovaInterface;
import org.apache.cordova.CordovaPlugin;
import org.apache.cordova.CordovaWebView;
import org.apache.cordova.PluginResult;
import org.apache.cordova.PermissionHelper;
import org.json.JSONArray;
import org.js... | 48,073 |
https://github.com/alexangelo87/blog-itabira-nestjs/blob/master/src/posts/schemas/post.schema.ts | Github Open Source | Open Source | MIT | null | blog-itabira-nestjs | alexangelo87 | TypeScript | Code | 41 | 113 | import { Prop, Schema, SchemaFactory } from '@nestjs/mongoose';
import { Document } from 'mongoose';
export type PostagemDocument = Postagem & Document;
@Schema()
export class Postagem {
@Prop()
titulo: string;
@Prop()
subtitulo: string;
@Prop()
texto: string;
}
export const PostagemSchema = SchemaFact... | 38,442 |
https://github.com/celloudiallo/cbdc-tracker/blob/master/src/utils/getCurrencyRoute.js | Github Open Source | Open Source | MIT | 2,021 | cbdc-tracker | celloudiallo | JavaScript | Code | 10 | 27 | export const getCurrencyRoute = (currency) => {
return `/currency/${currency.tag}`
}
| 12,906 |
https://github.com/suryaputrawan/clinic/blob/master/app/Http/Controllers/ArrivalController.php | Github Open Source | Open Source | MIT | null | clinic | suryaputrawan | PHP | Code | 24 | 85 | <?php
namespace App\Http\Controllers;
use \App\Arrival;
use Illuminate\Http\Request;
class ArrivalController extends Controller
{
public function index()
{
$arrival = Arrival::paginate(30);
return view('arrival.index', compact('arrival'));
}
}
| 15,545 |
https://github.com/Lostefra/TranslationCoherence/blob/master/Datasets/WikiNER/ontologies/zh/zh_sentence324.ttl | Github Open Source | Open Source | MIT | null | TranslationCoherence | Lostefra | Turtle | Code | 975 | 13,165 | <http://www.ontologydesignpatterns.org/ont/fred/domain.owl#offset_154_159_north>
a <http://www.essepuntato.it/2008/12/earmark#PointerRange> ;
<http://www.w3.org/2000/01/rdf-schema#label>
"north"^^<http://www.w3.org/2001/XMLSchema#string> ;
<http://ontologydesignpatterns.org... | 23,154 |
https://github.com/shivaprasad87/crm.premier12-2020/blob/master/application/models/Callback_model.php | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, MIT | 2,021 | crm.premier12-2020 | shivaprasad87 | PHP | Code | 3,208 | 17,562 | <?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Callback_model extends MY_Model {
public function __construct()
{
// Call the CI_Model constructor
parent::__construct();
}
function isexists_callbacks($data){
$where = "(";
if(isset($data['co... | 6,313 |
https://github.com/greenwoodms/TRANSFORM-Library/blob/master/TRANSFORM/Examples/SodiumFastReactor/Components/package.mo | Github Open Source | Open Source | Apache-2.0 | 2,021 | TRANSFORM-Library | greenwoodms | Modelica | Code | 6 | 21 | within TRANSFORM.Examples.SodiumFastReactor;
package Components
end Components;
| 33,619 |
https://github.com/grupotesseract/minicurso-intro-laravel/blob/master/app/Http/Controllers/InscricoesController.php | Github Open Source | Open Source | MIT | 2,017 | minicurso-intro-laravel | grupotesseract | PHP | Code | 237 | 845 | <?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Inscricao;
class InscricoesController extends Controller
{
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/
public function index()
{
$inscricoes = Inscricao::all();
... | 34,044 |
https://github.com/mgadagin/PythonClass/blob/master/guest-talks/20170206-flask-websockets/server.py | Github Open Source | Open Source | MIT | 2,020 | PythonClass | mgadagin | Python | Code | 119 | 429 | from flask import Flask
from flask_sockets import Sockets
app = Flask(__name__)
sockets = Sockets(app)
@sockets.route('/echo')
def echo_socket(ws):
while not ws.closed:
message = ws.receive()
ws.send(message)
clients = []
@sockets.route('/chatroom')
def chatroom(ws):
clients.append(ws)... | 3,787 |
https://github.com/gowrimanoharir/kubeIntro/blob/master/.gitignore | Github Open Source | Open Source | MIT | 2,018 | kubeIntro | gowrimanoharir | Ignore List | Code | 3 | 35 | mydreams/node_modules/**
mydreams/npm-debug.log
mydreams/npm-error.log
| 2,824 |
https://github.com/xsga/filmaffinity-api/blob/master/src/filmaffinity/model/FilmDto.php | Github Open Source | Open Source | MIT | 2,022 | filmaffinity-api | xsga | PHP | Code | 290 | 746 | <?php
/**
* FilmDto class.
*
* PHP Version 8
*
* @author xsga <parker@xsga.es>
* @license MIT
* @version 1.0.0
*/
/**
* Namespace.
*/
namespace api\filmaffinity\model;
/**
*
*/
class FilmDto
{
/**
* FilmAffinity film ID.
*
* @var integer
*
* @access public
*/
... | 15,340 |
https://github.com/mabrarov/asio_samples/blob/master/cmake/ma_qt5_gui_support/FindQt5FreeType.cmake | Github Open Source | Open Source | BSL-1.0 | 2,023 | asio_samples | mabrarov | CMake | Code | 188 | 1,542 | #
# Copyright (c) 2015 Marat Abrarov (abrarov@gmail.com)
#
# Distributed under the Boost Software License, Version 1.0. (See accompanying
# file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt)
#
cmake_minimum_required(VERSION 2.8.12)
# Prefix for all Qt5::FreeType relative public variables
if(NOT DEFINED Q... | 27,723 |
https://github.com/vfebvre/manageiq-ui-classic/blob/master/app/javascript/miq-component/react-history.js | Github Open Source | Open Source | Apache-2.0 | 2,022 | manageiq-ui-classic | vfebvre | JavaScript | Code | 91 | 205 | import { createHashHistory } from 'history';
export const history = createHashHistory();
/**
* creates a history for client-side browsing
* currently is used with redux to create redux controlled hash router
* router documentations:
* - connected-router: https://github.com/supasate/connected-react-router
* - rea... | 9,291 |
https://github.com/zhi900/CS232/blob/master/assign2/task1/build.sh | Github Open Source | Open Source | MIT | null | CS232 | zhi900 | Shell | Code | 16 | 47 | gcc -std=c11 -Wall intro.c
./a.out
gcc -std=c11 -Wall intro.c -o intro
./intro < intro.in > intro.out
| 32,706 |
https://github.com/kenkoKT/HotelKita/blob/master/resources/views/tamu/dashboard.blade.php | Github Open Source | Open Source | MIT | null | HotelKita | kenkoKT | PHP | Code | 488 | 2,081 | @extends('layouts.app')
@include('partials.navbary')
@section('content')
<!doctype html>
<html lang="en">
<head>
<link rel="canonical" href="https://getbootstrap.com/docs/5.1/examples/carousel/">
<!-- Bootstrap core CSS -->
<link href="../assets/dist/css/bootstrap.min.css" rel... | 43,278 |
https://github.com/READYTOMASSACRE/league-gamemode/blob/master/cef/src/Theme/Dark/ButtonComponents.tsx | Github Open Source | Open Source | 0BSD | 2,021 | league-gamemode | READYTOMASSACRE | TypeScript | Code | 30 | 99 | import { withStyles } from '@material-ui/core/styles'
import Button from '@material-ui/core/Button'
export const StyledButton = withStyles({
root: {
color: 'white',
borderColor: 'white',
'&:disabled': {
color: '#353535',
borderColor: '#353535',
}
},
})(Button)
| 17,972 |
https://github.com/rreubenreyes/mary-medovich-photography/blob/master/src/templates/blog-post/components/more-posts.js | Github Open Source | Open Source | MIT | null | mary-medovich-photography | rreubenreyes | JavaScript | Code | 84 | 245 | /* eslint-disable react/jsx-indent-props */
import React from 'react';
import PropTypes from 'prop-types';
import { StaticQuery, graphql } from 'gatsby';
import PostPreview from './post-preview';
const MorePosts = ({ exclude: id }) => (
<StaticQuery
query={graphql`
query BlogPosts {
... | 33,805 |
https://github.com/01shadowalker01/we-buy-admin-panel/blob/master/src/core/admin/settings/localizations/languages/languages-action/languages.action.ts | Github Open Source | Open Source | MIT | 2,021 | we-buy-admin-panel | 01shadowalker01 | TypeScript | Code | 441 | 1,333 | /*
* SpurtCommerce
* version 2.2
* http://www.spurtcommerce.com
*
* Copyright (c) 2019 PICCOSOFT
* Author piccosoft <support@spurtcommerce.com>
* Licensed under the MIT license.
*/
import {type} from '../../../../shared/utility/utilityHelpers';
import {Action} from '@ngrx/store';
export const ActionTypes = {
... | 8,815 |
https://github.com/sunzengpeng/diamond-auto/blob/master/modules/drivers/robosense/input/input.h | Github Open Source | Open Source | MIT | 2,021 | diamond-auto | sunzengpeng | C | Code | 210 | 495 | /******************************************************************************
* Copyright 2020 The Apollo Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
... | 40,549 |
https://github.com/VelinGeorgiev/spfx-angular-spa-customizer/blob/master/spfx-spa-bootstrap-customizer/src/extensions/spaBootstrap/SpaBootstrapApplicationCustomizer.ts | Github Open Source | Open Source | MIT | null | spfx-angular-spa-customizer | VelinGeorgiev | TypeScript | Code | 93 | 682 | import { override } from '@microsoft/decorators';
import {
BaseApplicationCustomizer, PlaceholderContent, PlaceholderName
} from '@microsoft/sp-application-base';
import * as strings from 'SpaBootstrapApplicationCustomizerStrings';
export interface ISpaBootstrapApplicationCustomizerProperties {
testMessage: strin... | 14,256 |
https://github.com/keinix/protoflow/blob/master/app/src/main/java/io/keinix/protoflow/addeddittask/AddEditTaskActivity.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | protoflow | keinix | Java | Code | 1,133 | 5,325 | package io.keinix.protoflow.addeddittask;
import android.app.DatePickerDialog;
import android.app.TimePickerDialog;
import android.arch.lifecycle.LiveData;
import android.arch.lifecycle.ViewModelProvider;
import android.arch.lifecycle.ViewModelProviders;
import android.content.Intent;
import android.graphics.drawable.... | 25,463 |
https://github.com/xopr/gigatron-rom/blob/master/Apps/MSBASIC/asm/aim65_extra.s | Github Open Source | Open Source | BSD-2-Clause | 2,022 | gigatron-rom | xopr | GAS | Code | 7 | 29 | .segment "EXTRA"
LCFFA:
jsr CHRGOT
jmp LB89D | 26,410 |
https://github.com/angellee1988/design-pattern/blob/master/src/main/java/com/javapatterns/decorator/grepr/GrepView.java | Github Open Source | Open Source | Apache-2.0 | null | design-pattern | angellee1988 | Java | Code | 26 | 94 | package com.javapatterns.decorator.grepr;
import java.io.PrintStream;
public class GrepView
{
PrintStream out ;
public GrepView()
{
out = System.out;
}
public void println(String line)
{
out.println(line);
}
}
| 13,567 |
https://github.com/yeym-1979/docker-centos-streams/blob/master/centos7-streams42-dev/createDockerImage.sh | Github Open Source | Open Source | Apache-2.0 | 2,018 | docker-centos-streams | yeym-1979 | Shell | Code | 162 | 496 | #!/bin/bash
# Copyright (C) 2016, 2018 International Business Machines Corporation
# All Rights Reserved
################################################################################
#
# This script builds an image for a Docker container. See README.md for details.
#
##############################################... | 28,629 |
https://github.com/delaneymethod/vue-experiences-example/blob/master/src/App.vue | Github Open Source | Open Source | MIT | null | vue-experiences-example | delaneymethod | Vue | Code | 61 | 242 | <template>
<section>
<LearningSurvey />
<UserExperiences />
</section>
</template>
<script>
import LearningSurvey from '@/components/survey/LearningSurvey';
import UserExperiences from '@/components/survey/UserExperiences';
export default {
name: 'App',
components: {
LearningSurvey,
UserExperiences
}
/*... | 16,648 |
https://github.com/jean-dep-tb/ms-op-banco/blob/master/src/main/java/spring/boot/webflu/ms/op/banco/app/dao/OperacionDao.java | Github Open Source | Open Source | MIT | null | ms-op-banco | jean-dep-tb | Java | Code | 63 | 292 | package spring.boot.webflu.ms.op.banco.app.dao;
import java.util.Date;
import org.springframework.data.mongodb.repository.Query;
import org.springframework.data.mongodb.repository.ReactiveMongoRepository;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;
import spring.boot.webflu.ms.op.banco.app.... | 9,925 |
https://github.com/Panthaaaa/sentry-java/blob/master/sentry/src/main/java/io/sentry/SendFireAndForgetEnvelopeSender.java | Github Open Source | Open Source | MIT | 2,021 | sentry-java | Panthaaaa | Java | Code | 96 | 448 | package io.sentry;
import io.sentry.util.Objects;
import org.jetbrains.annotations.ApiStatus;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
@ApiStatus.Internal
public final class SendFireAndForgetEnvelopeSender
implements SendCachedEnvelopeFireAndForgetIntegration.SendFireAn... | 5,809 |
https://github.com/mycroes/PlcMonitor/blob/master/src/UI/ViewModels/WriteViewModel.cs | Github Open Source | Open Source | MIT | 2,021 | PlcMonitor | mycroes | C# | Code | 116 | 372 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Reactive;
using System.Reactive.Linq;
using DynamicData.Binding;
using ReactiveUI;
namespace PlcMonitor.UI.ViewModels
{
public class WriteViewModel : ViewModelBase, IDialogContentViewModel
{
public IObservable<Unit> Close ... | 15,870 |
https://github.com/Jonathan-aguilar/DAS_Sistemas/blob/master/Ago-Dic-2017/Luis Zúñiga/Práctica 1/Motocicleta.py | Github Open Source | Open Source | MIT | 2,021 | DAS_Sistemas | Jonathan-aguilar | Python | Code | 89 | 425 | from Vehiculo import Vehiculo
class Motocicleta(Vehiculo):
"""Class Motocicleta
"""
# Attributes:
__centimetrosCubicos = "" # (String)
# Operations
def __init__(self,marca,modelo,color,motor,trans,cc,cantidad,precio):
super().__init__(marca,modelo,color,motor,trans,ca... | 48,049 |
https://github.com/kingspp/curious_agent/blob/master/curious_agent/validations.py | Github Open Source | Open Source | MIT | 2,020 | curious_agent | kingspp | Python | Code | 81 | 236 | # -*- coding: utf-8 -*-
"""
| **@created on:** 17/11/17,
| **@author:** prathyushsp,
| **@version:** v0.0.1
|
| **Description:**
|
|
| **Sphinx Documentation Status:** Complete
|
..todo::
--
"""
import re
from typeguard import typechecked
NAME_REGEX = re.compile('^[A-Za-z0-9_]*$', )
@typechecked
def validate_na... | 43,994 |
https://github.com/dme26/intravisor/blob/master/runtime/musl-lkl/lkl/drivers/staging/rtl8712/rtl8712_cmdctrl_regdef.h | Github Open Source | Open Source | MIT | 2,022 | intravisor | dme26 | C | Code | 174 | 390 | /******************************************************************************
*
* Copyright(c) 2007 - 2010 Realtek Corporation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of version 2 of the GNU General Public License as
* published by the ... | 4,693 |
https://github.com/kojilin/planout4j/blob/master/core/src/main/java/com/glassdoor/planout4j/planout/ops/core/Return.java | Github Open Source | Open Source | BSD-3-Clause | 2,022 | planout4j | kojilin | Java | Code | 64 | 239 | package com.glassdoor.planout4j.planout.ops.core;
import java.util.Map;
import com.glassdoor.planout4j.planout.Mapper;
import com.glassdoor.planout4j.planout.ops.base.PlanOutOp;
import com.glassdoor.planout4j.planout.ops.utils.StopPlanOutException;
import com.glassdoor.planout4j.util.Helper;
/**
* Explicitly termin... | 16,216 |
https://github.com/Rehdzi/nnchan-fe/blob/master/static/js/latestPostings.js | Github Open Source | Open Source | MIT | 2,020 | nnchan-fe | Rehdzi | JavaScript | Code | 120 | 429 | var latestPostings = {};
api.mod = true;
latestPostings.init = function() {
latestPostings.postsDiv = document.getElementById('divPostings');
var moreButton = document.getElementById('buttonLoadMore');
moreButton.className = '';
moreButton.onclick = latestPostings.loadMore;
var parts = document.getElemen... | 41,402 |
https://github.com/bytebarian/OrienteeringDesktop/blob/master/DTO/Models/UserRepository.cs | Github Open Source | Open Source | MIT | null | OrienteeringDesktop | bytebarian | C# | Code | 550 | 1,678 | /* Orienteering software
*
* author: Mariusz Dobrowolski
* created: 08.2013
*
* modifications:
*
* */
using LiteDB;
using System.Collections.Generic;
using System.Linq;
namespace DAL.Models
{
/// <summary>
/// Klasa zawierająca wszystkie metody potrzebne do
/// zarządzania użytkownikami w... | 40,635 |
https://github.com/blockframes/blockframes/blob/master/libs/organization/src/lib/organization/forms/organization-form-description/organization-form-description.component.ts | Github Open Source | Open Source | MIT | 2,022 | blockframes | blockframes | TypeScript | Code | 50 | 175 | import { Component, ChangeDetectionStrategy, Input } from '@angular/core';
import { FormControl } from '@angular/forms';
import { orgActivity } from '@blockframes/utils/static-model';
@Component({
selector: '[fiscalNumber] [activity] [description] organization-form-description',
templateUrl: './organization-form-d... | 42,666 |
https://github.com/dsymiller/eggdash/blob/master/server/models/Order.js | Github Open Source | Open Source | MIT | 2,021 | eggdash | dsymiller | JavaScript | Code | 48 | 167 | const order = (sequelize, DataTypes) => {
const Order = sequelize.define('Order', {
date: {
type: DataTypes.DATE,
defaultValue: DataTypes.NOW,
},
status: {
type: DataTypes.STRING,
defaultValue: 'open', // "empty" or "open" or "fullfilled"
},
});
Order.associate = (models) ... | 12,658 |
https://github.com/ho-tex/letltxmacro/blob/master/.gitignore | Github Open Source | Open Source | LPPL-1.3c | 2,020 | letltxmacro | ho-tex | Ignore List | Code | 3 | 20 | build
letltxmacro-ctan.zip
letltxmacro.pdf
| 37,637 |
https://github.com/diaoxinqiang/BookReader/blob/master/app/src/main/java/com/justwayward/reader/view/recyclerview/adapter/BaseViewHolder.java | Github Open Source | Open Source | Apache-2.0 | 2,016 | BookReader | diaoxinqiang | Java | Code | 598 | 2,317 | package com.justwayward.reader.view.recyclerview.adapter;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.Paint;
import android.graphics.Typeface;
import android.graphics.drawable.Drawable;
import android.os.Build;
import android.support.annotation.IdRes;
import android.support.... | 24,995 |
https://github.com/lcobucci/chimera-mapping/blob/master/src/ServiceBus/CommandHandler.php | Github Open Source | Open Source | MIT | null | chimera-mapping | lcobucci | PHP | Code | 72 | 255 | <?php
declare(strict_types=1);
namespace Lcobucci\Chimera\Mapping\ServiceBus;
use Doctrine\Common\Annotations\AnnotationException;
use Lcobucci\Chimera\Mapping\Annotation as AnnotationInterface;
use Lcobucci\Chimera\Mapping\Validator;
/**
* @Annotation
* @Target({"CLASS"})
*/
final class CommandHandler implements... | 46,546 |
https://github.com/whwu123/zf/blob/master/src/main/java/com/active4j/hr/activiti/service/WorkflowFormCategoryService.java | Github Open Source | Open Source | MIT | 2,022 | zf | whwu123 | Java | Code | 13 | 83 | package com.active4j.hr.activiti.service;
import com.active4j.hr.activiti.entity.WorkflowFormCategoryEntity;
import com.baomidou.mybatisplus.extension.service.IService;
public interface WorkflowFormCategoryService extends IService<WorkflowFormCategoryEntity> {
}
| 23,756 |
https://github.com/HavocInferno/parallel_S17/blob/master/Task 1 - PAPI Measurements/heatdir/optimized/relax_jacobi.c | Github Open Source | Open Source | MIT | 2,017 | parallel_S17 | HavocInferno | C | Code | 506 | 1,035 | /*
* relax_jacobi.c
*
* Jacobi Relaxation
*
*/
#include "heat.h"
/*
* Residual (length of error vector)
* between current solution and next after a Jacobi step
*/
double residual_jacobi(double *u, double* utmp, unsigned sizex, unsigned sizey) {
unsigned i, j;
double unew, diff, sum = 0.0;
//idea for optimi... | 13,894 |
https://github.com/KnowledgeGarden/column-conversations/blob/master/routes/helper.js | Github Open Source | Open Source | Apache-2.0 | 2,018 | column-conversations | KnowledgeGarden | JavaScript | Code | 211 | 630 | //var ConversationModel = require('../apps/models/conversation_model');
var config = require('../config/config');
var Helper,
instance;
Helper = function() {
var self = this;
//console.log("HELPER");
self.isPrivate = function (req, res, next) {
if (config.isPrivatePortal) {
if (sel... | 34,934 |
https://github.com/shoter/Barotrauma/blob/master/Barotrauma/BarotraumaShared/Source/Characters/Attack.cs | Github Open Source | Open Source | CC-BY-3.0 | 2,018 | Barotrauma | shoter | C# | Code | 1,002 | 3,251 | using Microsoft.Xna.Framework;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Xml.Linq;
namespace Barotrauma
{
public enum HitDetection
{
Distance,
Contact
}
struct AttackResult
{
public readonly float Damage;
public readonly L... | 2,796 |
https://github.com/Kgfu/PYNQ_HelloWorld/blob/master/boards/ip_colordetect/colordetect/colordetect/syn/vhdl/colordetect_accel.vhd | Github Open Source | Open Source | BSD-3-Clause | null | PYNQ_HelloWorld | Kgfu | VHDL | Code | 6,241 | 42,062 | -- ==============================================================
-- RTL generated by Vitis HLS - High-Level Synthesis from C, C++ and OpenCL v2020.2.2 (64-bit)
-- Version: 2020.2.2
-- Copyright (C) Copyright 1986-2021 Xilinx, Inc. All Rights Reserved.
--
-- ===========================================================
... | 35,556 |
https://github.com/jbw976/crossdocs/blob/master/doc.sh | Github Open Source | Open Source | Apache-2.0 | null | crossdocs | jbw976 | Shell | Code | 171 | 576 | #! /bin/bash
gendoc() {
local org=$1
local project=$2
local dir=$3
local package=$4
local version=$5
local group_name=$(grep groupName vendor/github.com/${org}/${project}/${dir}/${package}/${version}/doc.go | awk -F= '{ print $2 }')
mkdir -p out/docs/api/${org}/${project}
go run ${GO... | 1,191 |
https://github.com/freebsd/freebsd-ports-haskell/blob/master/textproc/py-numpydoc/Makefile | Github Open Source | Open Source | BSD-2-Clause | 2,022 | freebsd-ports-haskell | freebsd | Makefile | Code | 42 | 269 | PORTNAME= numpydoc
PORTVERSION= 0.9.1
CATEGORIES= textproc python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= python@FreeBSD.org
COMMENT= Sphinx extension to support docstrings in Numpy format
WWW= https://github.com/numpy/numpydoc
LICENSE= BSD2CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE.t... | 32,948 |
https://github.com/michael-lowe-nz/trigMeOnce/blob/master/src/components/Calculator.js | Github Open Source | Open Source | MIT | null | trigMeOnce | michael-lowe-nz | JavaScript | Code | 56 | 205 | import React, { Component } from 'react'
import Value from './Value'
import CalculateButton from './CalculateButton'
class Calculator extends Component {
render() {
return (
<div className="calculator">
<img src="triangleAngle.svg" className="triangle" alt="triangle"></img>
<Value state={t... | 45,800 |
https://github.com/ghaiklor/generator-sails-rest-api/blob/master/generators/service/templates/api/services/HashService.js | Github Open Source | Open Source | MIT | 2,021 | generator-sails-rest-api | ghaiklor | JavaScript | Code | 17 | 61 | "use strict";
const hash = require('sails-service-hash');
const config = require('../../config/services/hash');
module.exports = {
bcrypt: hash('bcrypt', config.services.hash.bcrypt)
};
| 17,354 |
https://github.com/usershu/jivejdon/blob/master/src/main/java/com/jdon/jivejdon/spi/component/viewcount/ThreadViewCounterJob.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | jivejdon | usershu | Java | Code | 136 | 268 | /*
* Copyright 2003-2009 the original author or authors.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable... | 47,164 |
https://github.com/uk-gov-mirror/companieshouse.company-accounts.api.ch.gov.uk/blob/master/src/main/java/uk/gov/companieshouse/api/accounts/repository/NoteRepository.java | Github Open Source | Open Source | MIT | 2,020 | companieshouse.company-accounts.api.ch.gov.uk | uk-gov-mirror | Java | Code | 17 | 94 | package uk.gov.companieshouse.api.accounts.repository;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;
import uk.gov.companieshouse.api.accounts.model.entity.NoteEntity;
@Repository
public interface NoteRepository extends MongoRepository<NoteEntity... | 22,771 |
https://github.com/mertsimsek/il-ilce-mahalle-geolocation-rest-api/blob/master/test/routes/search.routes.spec.js | Github Open Source | Open Source | MIT | 2,022 | il-ilce-mahalle-geolocation-rest-api | mertsimsek | JavaScript | Code | 75 | 319 | process.env.NODE_ENV = 'test';
const chai = require('chai');
const chaiHttp = require('chai-http');
const mongo = require('../../src/utils/mongo.helper');
const config = require('../../src/config');
const server = require('../../src/index');
const expect = chai.expect
chai.use(chaiHttp);
describe('Search routes', (... | 49,431 |
https://github.com/whizkidwwe1217/igniteui-angular/blob/master/projects/igniteui-angular/src/lib/data-operations/groupby-strategy.spec.ts | Github Open Source | Open Source | FSFAP | null | igniteui-angular | whizkidwwe1217 | TypeScript | Code | 123 | 468 | import { IgxGrouping } from '../grids/common/strategy';
import { IGroupByRecord } from './groupby-record.interface';
import { DefaultSortingStrategy, SortingDirection } from './sorting-strategy';
import { DataGenerator } from './test-util/data-generator';
describe('Unit testing GroupingStrategy', () => {
let dataG... | 28,840 |
https://github.com/aalex675/CLEF/blob/master/CLEF/Exceptions/OptionValueMissingException.cs | Github Open Source | Open Source | MIT | 2,014 | CLEF | aalex675 | C# | Code | 62 | 154 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace CLEF.Exceptions
{
public class OptionValueMissingException : Exception
{
public OptionValueMissingException(string optionName, Type valueType)
: base(string.Format("Option '{0}' expected a value... | 38,523 |
https://github.com/aaronfc/unnamed-rts/blob/master/src/entities/objects/resource.js | Github Open Source | Open Source | MIT | 2,021 | unnamed-rts | aaronfc | JavaScript | Code | 114 | 368 | import Phaser from "phaser";
import TiledGameObject from "../../tiled-game-object.js";
export default class Resource extends TiledGameObject {
constructor(scene, position, initialAmount) {
let config = {
layers: [
{
// Ground
data: [[{ id: 1409, collide: true, depth: 0 }]],
... | 37,186 |
https://github.com/lathroplabs/CodeLaboratoryAddin/blob/master/node_modules/office-ui-fabric-react/node_modules/@fluentui/date-time-utilities/lib-commonjs/dateFormatting/formatMonthYear.js | Github Open Source | Open Source | MIT | null | CodeLaboratoryAddin | lathroplabs | JavaScript | Code | 47 | 107 | "use strict";
Object.defineProperty(exports, "__esModule", { value: true });
/**
* Format date to a month-year string
* @param date - input date to format
* @param strings - localized strings
*/
exports.formatMonthYear = function (date, strings) {
return strings.months[date.getMonth()] + ' ' + date.getFullYear(... | 4,113 |
https://github.com/sumedham/Gram/blob/master/Gram/FeedViewController.swift | Github Open Source | Open Source | Apache-2.0 | 2,020 | Gram | sumedham | Swift | Code | 657 | 2,281 | //
// FeedViewController.swift
// Gram
//
// Created by Sumedha Mehta on 6/20/16.
// Copyright © 2016 Sumedha Mehta. All rights reserved.
//
import UIKit
import Parse
import ParseUI
class FeedViewController: UIViewController, UITableViewDelegate, UITableViewDataSource, UIScrollViewDelegate {
@IBOutlet w... | 9,877 |
https://github.com/TheEpicFace007/rouge-theme/blob/master/src/rouge2/index.js | Github Open Source | Open Source | MIT | 2,020 | rouge-theme | TheEpicFace007 | JavaScript | Code | 22 | 71 | const colors = require('./editorColors')
const tokenColors = require('./tokenColors')
module.exports = {
name: 'Rouge 2',
type: 'dark',
colors,
tokenColors: [...tokenColors],
}
// console.log(...tokenColors)
| 42,143 |
https://github.com/teamrudra/teamrudra.github.io/blob/master/node_modules/focus-lock/dist/es2015/solver.js | Github Open Source | Open Source | MIT | 2,022 | teamrudra.github.io | teamrudra | JavaScript | Code | 218 | 596 | import { correctNodes } from './utils/correctFocus';
import { pickFocusable } from './utils/firstFocus';
import { isGuard } from './utils/is';
export var NEW_FOCUS = 'NEW_FOCUS';
export var newFocus = function (innerNodes, outerNodes, activeElement, lastNode) {
var cnt = innerNodes.length;
var firstFocus = inne... | 36,317 |
https://github.com/confluentinc/kafka/blob/master/core/src/main/scala/kafka/api/LeaderAndIsr.scala | Github Open Source | Open Source | Apache-2.0, GPL-2.0-only, LicenseRef-scancode-public-domain, W3C, CC0-1.0, GPL-1.0-or-later, CPL-1.0, GPL-2.0-or-later, LicenseRef-scancode-generic-export-compliance, LicenseRef-scancode-other-permissive, CC-PDDC, BSD-3-Clause, APSL-2.0, LicenseRef-scancode-free-unknown, EPL-2.0, CDDL-1.0, MIT, LicenseRef-scancode-unkn... | 2,023 | kafka | confluentinc | Scala | Code | 406 | 1,254 | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may... | 16,421 |
https://github.com/jrlim/im-bss/blob/master/src/assets/plugins/formvalidation/src/js/validators/cusip.ts | Github Open Source | Open Source | Unlicense, LicenseRef-scancode-commercial-license | 2,020 | im-bss | jrlim | TypeScript | Code | 188 | 457 | /**
* FormValidation (https://formvalidation.io)
* The best validation library for JavaScript
* (c) 2013 - 2020 Nguyen Huu Phuoc <me@phuoc.ng>
*/
import { Localization, ValidateInput, ValidateOptions, ValidateResult } from '../core/Core';
export default function cusip() {
return {
/**
* Valid... | 40,347 |
https://github.com/arafat19/livestock/blob/master/application/controllers/Main.php | Github Open Source | Open Source | MIT | null | livestock | arafat19 | PHP | Code | 96 | 505 | <?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Main extends CI_Controller
{
function __construct()
{
parent::__construct();
$this->load->model('app_user_model');
$this->load->model('main_ui_model');
}
function index($lang = '')
{
$this-... | 31,001 |
https://github.com/y-a-v-a/node-gd/blob/master/test/query-image-info.test.mjs | Github Open Source | Open Source | MIT | 2,023 | node-gd | y-a-v-a | JavaScript | Code | 284 | 807 | import gd from '../index.js';
import { assert } from 'chai';
import dirname from './dirname.mjs';
const currentDir = dirname(import.meta.url);
var source = currentDir + '/fixtures/';
describe('Section querying image information', function () {
it('gd.trueColorAlpha() -- can query true color alpha values of a colo... | 48,831 |
https://github.com/zipated/src/blob/master/content/public/browser/devtools_manager_delegate.h | Github Open Source | Open Source | BSD-3-Clause | 2,022 | src | zipated | C | Code | 309 | 786 | // Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CONTENT_PUBLIC_BROWSER_DEVTOOLS_MANAGER_DELEGATE_H_
#define CONTENT_PUBLIC_BROWSER_DEVTOOLS_MANAGER_DELEGATE_H_
#include <memory>
#include <strin... | 3,150 |
https://github.com/b374048808/lxaq-clone/blob/master/datav/rest/UrlRule.php | Github Open Source | Open Source | Apache-2.0 | null | lxaq-clone | b374048808 | PHP | Code | 116 | 389 | <?php
/*
* @Author: Xjie<374048808@qq.com>
* @Date: 2021-07-22 21:53:25
* @LastEditors: Xjie<374048808@qq.com>
* @LastEditTime: 2021-07-22 21:53:37
* @Description:
*/
namespace datav\rest;
use Yii;
use yii\web\Request;
use yii\base\InvalidConfigException;
use common\helpers\StringHelper;
/**
* Class UrlRule
... | 48,238 |
https://github.com/nvuillam/kics/blob/master/assets/queries/terraform/kubernetes/metadata_label_is_invalid/query.rego | Github Open Source | Open Source | Apache-2.0 | 2,021 | kics | nvuillam | Open Policy Agent | Code | 43 | 227 | package Cx
CxPolicy[result] {
resource := input.document[i].resource[resourceType]
labels := resource[name].metadata.labels
regex.match("^(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])?$", labels[key]) == false
result := {
"documentId": input.document[i].id,
"searchKey": sprintf("%s[%s].metadata.labels", [resou... | 5,607 |
https://github.com/hashirhasan/F3C_Website/blob/master/app/containers/index.js | Github Open Source | Open Source | MIT | null | F3C_Website | hashirhasan | JavaScript | Code | 48 | 160 | export MainContainer from './Main/MainContainer'
export ScrollToTopOnMount from './ScrollToTopOnMount/ScrollToTopOnMount'
export HomeContainer from './Home/HomeContainer'
export NavigationContainer from './Navigation/NavigationContainer'
export HeroContainer from './Hero/HeroContainer'
export MembersContainer from './M... | 24,984 |
https://github.com/8coon/next/blob/master/src/Error/ServiceUnresolvableError.ts | Github Open Source | Open Source | MIT | 2,017 | next | 8coon | TypeScript | Code | 42 | 152 | import {JSWorksError} from './ErrorDecorator';
@JSWorksError
export class ServiceUnresolvableError extends Error {
constructor(servicesPresent: object, servicesResolved: object) {
const unresolved: string[] = [];
console.log(servicesPresent, servicesResolved);
Object.keys(servicesPresent... | 17,638 |
https://github.com/sajadmsNew/Pro-Site/blob/master/src/components/form-page/sections/materialInformation/uploadDocuments.js | Github Open Source | Open Source | MIT | null | Pro-Site | sajadmsNew | JavaScript | Code | 308 | 971 | import React from "react";
import { withNamespaces } from "react-i18next";
import styles from "./materialInformation.module.scss";
import Info from "../../inputs/info/info";
import Upload from "../../upload/upload";
import Radio from "../../inputs/checkbox/radio";
import * as actions from "../../../../action";
import {... | 50,557 |
https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/IssueType.cs | Github Open Source | Open Source | LicenseRef-scancode-generic-cla, LGPL-2.1-or-later, Apache-2.0, MIT | 2,023 | azure-sdk-for-net | Azure | C# | Code | 368 | 927 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System;
using System.ComponentModel;
namespace Azure.ResourceManager.ApiManagement.Models
{
/// <summary> The type of issue. </summary>
public readonly partial struct ... | 18,156 |
https://github.com/wparam-fox/androidkb/blob/master/java/src/com/wparam/kb/inputmethod/latin/setup/SetupActivity.java | Github Open Source | Open Source | Info-ZIP | null | androidkb | wparam-fox | Java | Code | 454 | 1,025 | /*
* Copyright (C) 2013 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 19,735 |
https://github.com/xibo-sun/VTR_with_Yosys/blob/master/vtr@2780988/ODIN_II/regression_test/benchmark/verilog/large/iir.v | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, MIT, MIT-Modern-Variant | 2,023 | VTR_with_Yosys | xibo-sun | Verilog | Code | 767 | 2,449 | module iir (clk, reset, start, din, params, dout, ready,iir_start,iir_done);
input clk, reset, start;
input [7:0] din;
input [15:0] params;
output [7:0] dout;
reg [7:0] dout;
output ready;
reg ready;
reg temp_ready;
reg [6:0] finite_counter;
wire count0;
input iir_start;
output iir_done;
wire iir_done;
reg del_count0;
... | 2,819 |
https://github.com/spryker-eco/fact-finder-web-components/blob/master/src/SprykerEco/Yves/FactFinderWebComponents/Theme/default/views/index/index.twig | Github Open Source | Open Source | MIT | null | fact-finder-web-components | spryker-eco | Twig | Code | 284 | 948 | {% extends template('page-layout-main') %}
{% define data = {
communication: _view.communication,
breadcrumb: _view.breadcrumb,
headerNavigation: _view.headerNavigation,
productsPerPage: _view.productsPerPage,
sortBox: _view.sortBox,
searchbox: _view.searchbox,
similarProducts: _view.simila... | 23,791 |
https://github.com/Developer-Karis/HackathonGroupe4/blob/master/resources/views/links/forum.blade.php | Github Open Source | Open Source | MIT | 2,020 | HackathonGroupe4 | Developer-Karis | Blade | Code | 104 | 473 | @extends('template.template')
@section('content')
<div class="mt-5 pt-5">
<div class="container">
<div class="mb-5">
<div class="card border-dark m-auto shadow p-3 mb-5 bg-white rounded" style="width: 50%;">
<div class="card-body text-center">
<table class="t... | 29,285 |
https://github.com/JonaMazu/KoboldKare/blob/master/Assets/KoboldKare/Scripts/DebugCameraRay.cs | Github Open Source | Open Source | CC0-1.0 | null | KoboldKare | JonaMazu | C# | Code | 64 | 244 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
[ExecuteInEditMode]
public class DebugCameraRay : MonoBehaviour {
void Update() {
for(float x=0f;x<1f;x+=0.1f) {
for(float y=0f;y<1f;y+=0.1f) {
Vector2 uv = new Vector2(x,y);
Vector4 ... | 9,813 |
https://github.com/BinZhiZhu/Taro-v2ex-weapp/blob/master/src/components/latest-data-default-list/index.scss | Github Open Source | Open Source | MIT | 2,022 | Taro-v2ex-weapp | BinZhiZhu | SCSS | Code | 103 | 524 | @import "../../theme";
.pages-index-index-homepage__block{
padding: $spacing-md;
@include flex-direction;
&__top{
width: 100%;
@include flex-direction;
&__left{
@include flex-direction(row);
&__thumb{
width:50px;
height: 50px;
}
&__info{... | 23,436 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.