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/tocororo/iroko/blob/master/iroko/theme/assets/semantic-ui/js/sceiba/previewer.js | Github Open Source | Open Source | MIT, LicenseRef-scancode-unknown-license-reference | 2,023 | iroko | tocororo | JavaScript | Code | 47 | 124 | /*
* Copyright (C) 2022 UPR.
*
* sceiba is free software; you can redistribute it and/or modify it under
* the terms of the MIT License; see LICENSE file for more details.
*/
import $ from "jquery";
$("#files")
.find(".preview-link")
.on("click", function(event) {
$("#preview").show();
$("#preview-... | 13,420 |
https://github.com/jjkabc/eapp/blob/master/assets/js/selectstore-controller.js | Github Open Source | Open Source | MIT | 2,017 | eapp | jjkabc | JavaScript | Code | 176 | 790 | angular.module('eappApp').controller('SelectStoreController', ["$scope", "$mdDialog", "eapp", "$rootScope", function ($scope, $mdDialog, eapp, $rootScope)
{
$rootScope.isMainMenu = true;
$scope.Init = function()
{
var retailersPromise = eapp.getCloseRetailers($scope.getDistance());
... | 50,541 |
https://github.com/SilurianYang/uni-simple-router/blob/master/src/helpers/utils.ts | Github Open Source | Open Source | MIT | 2,023 | uni-simple-router | SilurianYang | TypeScript | Code | 1,401 | 4,572 | import {H5Config, InstantiateConfig} from '../options/config';
import {RoutesRule, routesMapRule, routesMapKeysRule, Router, totalNextRoute, objectAny, navErrorRule, NAVTYPE, navRoute, uniBackApiRule, uniBackRule} from '../options/base';
import {baseConfig} from '../helpers/config';
import {ERRORHOOK} from '../public/h... | 49,253 |
https://github.com/Ariouz/NPCLib/blob/master/src/fr/ariouz/npclib/npc/NPCSkin.java | Github Open Source | Open Source | MIT | 2,020 | NPCLib | Ariouz | Java | Code | 277 | 1,182 | package fr.ariouz.npclib.npc;
import com.google.gson.JsonObject;
import com.google.gson.JsonParser;
import com.mojang.authlib.GameProfile;
import com.mojang.authlib.properties.Property;
import javafx.scene.control.Skin;
import net.minecraft.server.v1_8_R3.EntityPlayer;
import org.bukkit.Bukkit;
import org.bukkit.craft... | 46,661 |
https://github.com/ConsensusJ/bitcoinj-addons/blob/master/cj-btc-json/src/main/java/org/consensusj/bitcoin/json/pojo/TxOutSetInfo.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | bitcoinj-addons | ConsensusJ | Java | Code | 158 | 551 | package org.consensusj.bitcoin.json.pojo;
import com.fasterxml.jackson.annotation.JsonProperty;
import org.bitcoinj.core.Coin;
import org.bitcoinj.core.Sha256Hash;
/**
* Result of `gettxoutsetinfo`
*/
public class TxOutSetInfo {
private final int height;
private final Sha256Hash bestBlock;
private final... | 15,290 |
https://github.com/smartcodeltd/continuous-release-maven-plugin/blob/master/src/it/updateVersion_inheritance-and-aggregation/verify.groovy | Github Open Source | Open Source | BSD-3-Clause | 2,021 | continuous-release-maven-plugin | smartcodeltd | Groovy | Code | 47 | 170 | new GroovyShell().parse(new File('./src/it/integration_tests.groovy')).with {
parent = parse(basedir, 'pom.xml')
first_child = parse(basedir, 'project-parent/pom.xml')
second_child = parse(basedir, 'project-child/pom.xml')
expect parent.version, "1.0-2", "version of parent POM"
... | 8,434 |
https://github.com/reunanen/opencv-build-vs/blob/master/vs/3rdparty/ippicv/ippicv_win/iw/src/iw_image_color_convert_all.c | Github Open Source | Open Source | MIT, LicenseRef-scancode-intel-material | 2,023 | opencv-build-vs | reunanen | C | Code | 1,040 | 4,034 | /*******************************************************************************
* Copyright 2016-2019 Intel Corporation.
*
* This software and the related documents are Intel copyrighted materials, and
* your use of them is governed by the express license under which they were
* provided to you (License). Unle... | 42,752 |
https://github.com/opywan/calm-dsl/blob/master/calm/dsl/init/blueprint/__init__.py | Github Open Source | Open Source | Apache-2.0 | 2,022 | calm-dsl | opywan | Python | Code | 7 | 20 | from .render import init_bp
__all__ = ["init_bp"]
| 30,054 |
https://github.com/lujin123/algorithms/blob/master/leetcode/golang/278_product_of_array_except_self.go | Github Open Source | Open Source | MIT | null | algorithms | lujin123 | Go | Code | 90 | 459 | package leetcode
// https://leetcode-cn.com/problems/product-of-array-except-self/
/**
给定长度为 n 的整数数组 nums,其中 n > 1,返回输出数组 output ,其中 output[i] 等于 nums 中除 nums[i] 之外其余各元素的乘积。
示例:
输入: [1,2,3,4]
输出: [24,12,8,6]
说明: 请不要使用除法,且在 O(n) 时间复杂度内完成此题。
进阶:
你可以在常数空间复杂度内完成这个题目吗?( 出于对空间复杂度分析的目的,输出数组不被视为额外空间。)
*/
/**
思路:先用一个数组,从左... | 23,019 |
https://github.com/Vrushali-anil-Chaudhari/Dev-Scripts/blob/master/React/react-recipe-app/src/components/Sidebar.js | Github Open Source | Open Source | MIT | 2,022 | Dev-Scripts | Vrushali-anil-Chaudhari | JavaScript | Code | 52 | 167 | import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"
import { Link, useLocation } from "react-router-dom"
export default function Sidebar({links, close}){
const location = useLocation()
return (
<div className="sidebar" onClick={close}>
{ links.map(link => (
<Lin... | 11,959 |
https://github.com/anonypeople/argen/blob/master/resources/systems/acra/src/main/java/org/acra/collector/ReflectionCollector.java | Github Open Source | Open Source | MIT | null | argen | anonypeople | Java | Code | 385 | 864 | /*
* Copyright 2010 Kevin Gaudin
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... | 4,285 |
https://github.com/seandenigris/Soup/blob/master/repository/SoupGemstone-Core.package/SoupElement.class/instance/findPreviousSiblingStrings..st | Github Open Source | Open Source | MIT | 2,021 | Soup | seandenigris | null | Spoken | 24 | 68 | finding strings
findPreviousSiblingStrings: anObject
| findBlock |
findBlock := self createFindStringBlock: anObject.
^ Array streamContents: [
:aStream |
self findPreviousSiblingStrings: findBlock stream: aStream
] | 5,895 |
https://github.com/bubdm/ClipFlair/blob/master/Client/Media/Captions/CaptionsLib/source/models/ICaptionsWriter.cs | Github Open Source | Open Source | BSD-3-Clause | 2,021 | ClipFlair | bubdm | C# | Code | 52 | 210 | //Project: ClipFlair (http://ClipFlair.codeplex.com)
//Filename: ICaptionsWriter.cs
//Version: 20131105
using Microsoft.SilverlightMediaFramework.Core.Accessibility.Captions;
using System.IO;
using System.Text;
namespace ClipFlair.CaptionsLib.Models
{
public interface ICaptionsWriter
{
void WriteCaptions(Capti... | 40,256 |
https://github.com/makeproaudio/DinoPlugs/blob/master/DinoPlugsVSTi/Lightwave/config.h | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-other-permissive, LicenseRef-scancode-unknown-license-reference | 2,020 | DinoPlugs | makeproaudio | C | Code | 172 | 755 | #define PLUG_NAME "Lightwave"
#define PLUG_MFR "MakeProAudio"
#define PLUG_VERSION_HEX 0x00010000
#define PLUG_VERSION_STR "1.0.0"
#define PLUG_UNIQUE_ID 'rpWK'
#define PLUG_MFR_ID 'MPA'
#define PLUG_URL_STR "https://iplug2.github.io"
#define PLUG_EMAIL_STR "spam@me.com"
#define PLUG_COPYRIGHT_STR "Copyright 2019 MPA I... | 45,200 |
https://github.com/xiaopei1120/spring-learn/blob/master/spring-bean/src/main/java/org/spring/demo/bean/test1/OneBean.java | Github Open Source | Open Source | Apache-2.0 | null | spring-learn | xiaopei1120 | Java | Code | 13 | 51 | package org.spring.demo.bean.test1;
/**
* Spring IOC 需要管理的bean,通过xml方式配置通知容器管理
*/
public class OneBean {
}
| 758 |
https://github.com/POKLpokl112/butucan-tfly/blob/master/trunk/butucantfly/src/funny/DeleteSomeData.java | Github Open Source | Open Source | Apache-2.0 | 2,017 | butucan-tfly | POKLpokl112 | Java | Code | 148 | 449 | package funny;
import java.sql.SQLException;
import common.db.NoSqlUpdater;
public class DeleteSomeData {
public static void main(final String[] args) throws SQLException {
a(
// "delete from todo.todo_companyleader where id like 'INV_%'",
"delete from company.company where id like 'INV_%'",
"del... | 24,732 |
https://github.com/ScalablyTyped/ScalajsReactTyped/blob/master/f/fullcalendar/src/main/scala/typingsJapgolly/fullcalendar/coordCacheMod/Default_.scala | Github Open Source | Open Source | MIT | 2,022 | ScalajsReactTyped | ScalablyTyped | Scala | Code | 198 | 628 | package typingsJapgolly.fullcalendar.coordCacheMod
import typingsJapgolly.fullcalendar.AnonBottom
import scala.scalajs.js
import scala.scalajs.js.`|`
import scala.scalajs.js.annotation._
@JSImport("fullcalendar/CoordCache", "Default")
@js.native
class Default_ protected () extends js.Object {
def this(options: js.A... | 25,715 |
https://github.com/HaoHao-Ting/ProjectEuler_Try/blob/master/ID8_Largest_product_in_a_series.m | Github Open Source | Open Source | MIT | 2,020 | ProjectEuler_Try | HaoHao-Ting | MATLAB | Code | 87 | 746 | %% Problem Description https://projecteuler.net/problem=8
%% http://pe-cn.github.io/8
%% How:
% 1. list0 is 1×1000 matrix
% 2. list_res(1,:) = list0(1, 997)
% list_res(2,:) = list0(2, 998)
% list_res(3,:) = list0(3, 999)
% list_res(4,:) = list0(4, 1000)
% 3. The four adjacent digits in the 1000-digit number is... | 32,180 |
https://github.com/vichuda/InkShare/blob/master/client/modules/User/UserActions.js | Github Open Source | Open Source | MIT | 2,016 | InkShare | vichuda | JavaScript | Code | 105 | 335 | import callApi from '../../util/apiCaller'
export const SET_USER = 'SET_USER'
export function getUserRequest() {
return function dispatchedRequest(dispatch) {
return callApi('user')
.then(response => dispatch(setUser(response.data)))
.catch(console.error) // eslint-disable-line
}
}
export funct... | 44,481 |
https://github.com/LqDeveloper/AppUtilsDemo/blob/master/AppUtilsDemo/Classes/Extension/UIViewControllerExtension.swift | Github Open Source | Open Source | MIT | 2,019 | AppUtilsDemo | LqDeveloper | Swift | Code | 131 | 521 | //
// AppUtils+UIViewController.swift
// AppUtils
//
// Created by Quan Li on 2019/8/20.
// Copyright © 2019 lq. All rights reserved.
//
import UIKit
public extension UIViewController{
var navigationHeight:CGFloat{
return AppDeviceInfo.navigationHeight(navigationBar: navigationController?.navigationBa... | 14,598 |
https://github.com/mateuszokroj1/FileManipulator/blob/master/Sources/UI/Converters/EqualToBooleanConverter.cs | Github Open Source | Open Source | MIT | null | FileManipulator | mateuszokroj1 | C# | Code | 52 | 120 | using System;
using System.Globalization;
using System.Windows.Data;
namespace FileManipulator.UI
{
public class EqualToBooleanConverter : IValueConverter
{
public object Convert(object value, Type targetType, object parameter, CultureInfo culture) =>
value?.ToString() == parameter?.ToStri... | 38,486 |
https://github.com/MagicNarwhal/imoji-ios-sdk-ui/blob/master/Examples/ImojiKit/imoji-kit/FullScreenViewController.m | Github Open Source | Open Source | MIT | 2,017 | imoji-ios-sdk-ui | MagicNarwhal | Objective-C | Code | 385 | 1,367 | //
// ImojiSDKUI
//
// Created by Alex Hoang
// Copyright (C) 2016 Imoji
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to
// deal in the Software without restriction, including without limitation the
// ... | 24,519 |
https://github.com/Boneill3/IntroToABAP/blob/master/src/zchapter2/zab_hello_world.prog.abap | Github Open Source | Open Source | MIT | 2,021 | IntroToABAP | Boneill3 | null | Spoken | 119 | 326 | REPORT zab_hello_world.
"Listing 2.1
WRITE 'Hello World'.
"Listing 2.2
WRITE: 'Hello World',
'Here I am!'.
"Listing 2.3
WRITE: 'Hello World', 'Here I am!'.
"Listing 2.4
WRITE 'Hello World'.
WRITE 'Here I am!'.
"Listing 2.5
IF sy-timlo BETWEEN '000000' AND '115959'.
WRITE: 'Good Morning!'.
ELSEIF sy-timlo... | 12,480 |
https://github.com/HomeAssistantPi/mygpo-ops/blob/master/conf/letsencrypt/letsencrypt-renew | Github Open Source | Open Source | MIT | 2,020 | mygpo-ops | HomeAssistantPi | Shell | Code | 25 | 81 | #!/bin/sh
certbot renew --nginx
# To get a new certificate, run
# letsencrypt-auto certonly --renew-by-default --webroot -w /var/www/well-known/ -d gpodder.net -d www.gpodder.net
systemctl reload nginx
| 18,245 |
https://github.com/pwsafe/pwsafe/blob/master/.gitpod.Dockerfile | Github Open Source | Open Source | Artistic-2.0, MIT | 2,023 | pwsafe | pwsafe | Dockerfile | Code | 78 | 227 | FROM gitpod/workspace-full-vnc
USER gitpod
# Set debconf to noninteractive mode.
RUN echo 'debconf debconf/frontend select Noninteractive' | sudo debconf-set-selections
# Install custom tools, runtime, etc. using apt-get
#
# More information: https://www.gitpod.io/docs/config-docker/
USER root
# In... | 29,992 |
https://github.com/davidmcclureaquaq/flutter-app/blob/master/example/lib/c.dart | Github Open Source | Open Source | MIT | null | flutter-app | davidmcclureaquaq | Dart | Code | 2,781 | 7,347 | import "dart:typed_data";
import "dart:convert";
import "dart:async";
import "dart:math";
import "dart:io";
class KException implements Exception {
final String message;
KException([this.message = ""]) {
print("New KException: $message");
}
@override
String toString() {
return 'KException{message: ... | 50,023 |
https://github.com/bethesque/pact/blob/master/lib/pact/version.rb | Github Open Source | Open Source | MIT | 2,013 | pact | bethesque | Ruby | Code | 6 | 20 | module Pact
VERSION = "1.0.30"
end
| 2,987 |
https://github.com/bio170/groovy/blob/master/src/test/groovy/bugs/Groovy4273Bug.groovy | Github Open Source | Open Source | Apache-2.0 | 2,019 | groovy | bio170 | Groovy | Code | 256 | 646 | /*
* 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")... | 49,800 |
https://github.com/quantumato/groupme-tools/blob/master/simple-transcript.py | Github Open Source | Open Source | MIT | 2,021 | groupme-tools | quantumato | Python | Code | 168 | 551 | import sys
reload(sys)
sys.setdefaultencoding("utf-8")
import json
import datetime
def printTranscript(messages, outputFilename):
"""Prints a readable "transcript" from the given list of messages.
Assumes the input list is sorted."""
with open(outputFilename, 'wb') as outFile:
for message in mes... | 49,042 |
https://github.com/sushilKumar123456/Assignment-/blob/master/app/src/main/java/com/assignment/movie/model/NetworkResult1.kt | Github Open Source | Open Source | MIT | 2,020 | Assignment- | sushilKumar123456 | Kotlin | Code | 2 | 14 | package com.assignment.movie.model
| 28,370 |
https://github.com/sabertazimi/hust-web/blob/master/react/styled-components-demo/src/components/Card/CardContainer.tsx | Github Open Source | Open Source | MIT | null | hust-web | sabertazimi | TypeScript | Code | 60 | 166 | import styled from 'styled-components';
interface Props {
readonly layout: string;
}
const CardContainer = styled.div<Props>`
display: flex;
flex-direction: ${({ layout }) => layout || 'row'};
align-items: center;
padding: 60px;
margin: 40px 0;
background-color: #fff;
border-radius: 15px;
box-shadow... | 4,263 |
https://github.com/pocesar/DefinitelyTyped/blob/master/jquery.tagsmanager/jquery.tagsmanager-tests.ts | Github Open Source | Open Source | MIT | 2,021 | DefinitelyTyped | pocesar | TypeScript | Code | 48 | 240 | /// <reference types="jquery"/>
var options: ITagsManagerOptions = {
prefilled: ["Pisa", "Rome"],
CapitalizeFirstLetter: true,
preventSubmitOnEnter: true,
typeahead: true,
typeaheadAjaxSource: null,
typeaheadSource: ["Pisa", "Rome", "Milan", "Florence", "New York", "Paris", "Berlin", "London", "Madrid"],
delim... | 19,785 |
https://github.com/albert-ho/GetOldTweets-python/blob/master/runExporter.sh | Github Open Source | Open Source | MIT | 2,017 | GetOldTweets-python | albert-ho | Shell | Code | 54 | 254 | #python Exporter.py --target 'KingJames' --since 2016-06-01 --until 2016-07-01 --maxtweets 100000 --hateid 20160605 --csvfile ~/Desktop/BitterTweets/CSV/testing2.csv
#python Exporter.py --target 'HillaryClinton' --since 2016-11-01 --until 2016-11-09 --maxtweets 100000 --hateid 20161102 --csvfile ~/Desktop/BitterTweets... | 3,838 |
https://github.com/first5455/Numerical_React_MaterialUI/blob/master/api/.dockerignore | Github Open Source | Open Source | WTFPL, MIT | 2,021 | Numerical_React_MaterialUI | first5455 | Ignore List | Code | 3 | 18 | **/Dockerfile*
**/node_modules
README.md | 16,701 |
https://github.com/ShangzhiH/hypertools/blob/master/hypertools/plot/__init__.py | Github Open Source | Open Source | MIT | 2,019 | hypertools | ShangzhiH | Python | Code | 28 | 83 | #!/usr/bin/env python
import warnings
import matplotlib as mpl
try:
with warnings.catch_warnings():
warnings.simplefilter("ignore")
mpl.use('TkAgg')
except:
warnings.warn('Could not switch backend to TkAgg. This may impact performance of the plotting functions.')
| 8,201 |
https://github.com/top1st/barong-referral/blob/master/lib/barong/version.rb | Github Open Source | Open Source | Apache-2.0 | 2,018 | barong-referral | top1st | Ruby | Code | 6 | 20 | module Barong
VERSION = '1.8.29'
end
| 43,186 |
https://github.com/katemihalikova/test262/blob/master/implementation-contributed/javascriptcore/modules/namespace-object-inline-caching/a.js | Github Open Source | Open Source | BSD-3-Clause | 2,022 | test262 | katemihalikova | JavaScript | Code | 5 | 9 | export let goodbye = 0;
| 46,751 |
https://github.com/iamtheluiz/gantt-organon/blob/master/src/components/ProjectItem.tsx | Github Open Source | Open Source | MIT | null | gantt-organon | iamtheluiz | TypeScript | Code | 146 | 529 | import React, { CSSProperties } from 'react';
import { HiOutlineArrowNarrowRight } from 'react-icons/hi';
import '../styles/components/ProjectItem.css';
import getTextColorFromBackgroundColor from '../utils/getTextColorFromBackgroundColor';
interface ProjectItemProps {
handleUserClick: () => void;
color?: string;... | 48,357 |
https://github.com/darekci/nest-library/blob/master/src/application/books/book-repository.interface.ts | Github Open Source | Open Source | MIT | null | nest-library | darekci | TypeScript | Code | 46 | 130 | import { Book } from '../../domain/books/book';
import { BookEntity } from 'src/persistence/books/book-repository/book.entity';
export abstract class IBookRepository {
public abstract getBooks(): Promise<BookEntity[]>;
public abstract getAvailableBooks(): Promise<BookEntity[]>;
public abstract getBook(id: number... | 47,087 |
https://github.com/trixon/pacoma/blob/master/src/main/java/se/trixon/pacoma/collage/render.py | Github Open Source | Open Source | Apache-2.0 | null | pacoma | trixon | Python | Code | 1,020 | 2,958 | # -*- coding: utf-8 -*-
# Copyright (C) 2014 Adrien Vergé
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This pro... | 1,741 |
https://github.com/UedaKouta/BEAR_works/blob/master/works/Polidog.Todo/vendor/bear/query-repository/tests/ResourceRepositoryTest.php | Github Open Source | Open Source | MIT | 2,020 | BEAR_works | UedaKouta | PHP | Code | 133 | 620 | <?php
declare(strict_types=1);
namespace BEAR\QueryRepository;
use BEAR\QueryRepository\QueryRepository as Repository;
use BEAR\Resource\ResourceObject;
use BEAR\Resource\Uri;
use Doctrine\Common\Annotations\AnnotationReader;
use Doctrine\Common\Cache\FilesystemCache;
use FakeVendor\HelloWorld\Resource\Page\Index;
u... | 22,788 |
https://github.com/davidebianchi/kube-green/blob/master/controllers/sleepinfo/sleepinfo_controller.go | Github Open Source | Open Source | MIT | 2,021 | kube-green | davidebianchi | Go | Code | 851 | 3,141 | /*
Copyright 2021.
*/
package sleepinfo
import (
"context"
"fmt"
"time"
"github.com/go-logr/logr"
v1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime"
ctrl "sigs.k8s.io/controller-runtime"
"sigs.k8s.io/controller-runtime/pkg/client"
"sigs.k8s.io/controller... | 4,933 |
https://github.com/januwA/vue-option-overwrite-strategies/blob/master/src/pages/about.vue | Github Open Source | Open Source | MIT | null | vue-option-overwrite-strategies | januwA | Vue | Code | 39 | 145 | <template>
<div>
<h1>about page</h1>
<router-link to="/">to home</router-link>
</div>
</template>
<script>
import { mixin1, mixin2 } from "../mixins";
export default {
name: 'about',
mixins: [mixin1, mixin2],
created() {
this.$$super.created()
console.log('created');
},
data() {
retur... | 12,517 |
https://github.com/ansteh/ansteh.github.io/blob/master/iex/src/app/app.module.ts | Github Open Source | Open Source | MIT | 2,016 | ansteh.github.io | ansteh | TypeScript | Code | 166 | 512 | import { BrowserModule } from '@angular/platform-browser';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { NgModule } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { HttpModule } from '@angular/http';
import { RouterModule } from '@angular/router';
i... | 17,061 |
https://github.com/KimGulmatico/Stacktrek/blob/master/src/frontend/util/PrivateRoute.js | Github Open Source | Open Source | MIT | null | Stacktrek | KimGulmatico | JavaScript | Code | 74 | 195 | import React from 'react'
import { Route } from 'react-router-dom'
import Spinner from '../components/spinner'
import Login from '../components/login'
function render(props, Component, isAuthenticated, isAuthenticating) {
if (isAuthenticating) {
return <Spinner />
// return <Component {...props} />
} else ... | 12,400 |
https://github.com/edwinmasri/cuteflow-ng/blob/master/server/views/dashboard/index.jade | Github Open Source | Open Source | MIT | 2,014 | cuteflow-ng | edwinmasri | null | Spoken | 10 | 35 | extends ../layout
block menu
include ../partials/menu
block container
h1= t("dashboard.header") | 7,887 |
https://github.com/fieldkit/firmware/blob/master/fk/errors.cpp | Github Open Source | Open Source | BSD-3-Clause | 2,023 | firmware | fieldkit | C++ | Code | 56 | 201 | #include "errors.h"
namespace fk {
FaultCode BatteryGaugeFailure = { "F-1000", "Fault: Module Bus" };
FaultCode *fault_code = nullptr;
static inline bool atomic_compare_exchange(FaultCode **ptr, FaultCode *compare, FaultCode *exchange) {
return __atomic_compare_exchange_n(ptr, &compare, exchange, 0, __ATOMIC_SE... | 43,337 |
https://github.com/fxb-cocacoding/yara-signator/blob/master/src/main/java/statistics/malpedia_eval/Sequence.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | yara-signator | fxb-cocacoding | Java | Code | 39 | 81 | package statistics.malpedia_eval;
public class Sequence {
public String name;
public String address;
public String pattern;
@Override
public String toString() {
return "Sequence [name=" + name + ", address=" + address + ", pattern=" + pattern + "]";
}
}
| 36,274 |
https://github.com/henripal/Factors.jl/blob/master/test/test_factors_index.jl | Github Open Source | Open Source | MIT | 2,017 | Factors.jl | henripal | Julia | Code | 183 | 517 | #
# Factors Indexing Tests
#
@testset "Factors Index" begin
@testset "" begin
x = OrdinalDimension(:X, [2, 5, 7])
y = OrdinalDimension(:Y, [2, 3])
z = OrdinalDimension(:Z, ['a', 'c'])
ft = Factor([x, y, z], Float64)
ft.v[:] = [1, 2, 3, 2, 3, 4, 4, 6, 7, 8, 10, 16]
df = DataFrame(ft)
a =... | 3,973 |
https://github.com/amitpomu/restaurant-software/blob/master/stock-category-display.php | Github Open Source | Open Source | MIT | 2,016 | restaurant-software | amitpomu | PHP | Code | 116 | 509 | <?php include ('inc/header.php'); ?>
<?php if( !user_staff() && !user_cook() && !user_manager() ){ ?>
<h2 class="page-title">Stock Categories
<a href="stock-category-create" class="btn btn-info pull-right"><i class="fa fa-plus"></i>Add New</a>
</h2>
<?php display_success_message(); ?>
<table class="table table-condens... | 42,803 |
https://github.com/SAG-members/spaceage_guru/blob/master/application/logs/log-2018-03-13.php | Github Open Source | Open Source | MIT | null | spaceage_guru | SAG-members | PHP | Code | 194 | 500 | <?php defined('BASEPATH') OR exit('No direct script access allowed'); ?>
ERROR - 2018-03-13 00:18:13 --> 404 Page Not Found: Well-known/apple-app-site-association
ERROR - 2018-03-13 01:12:28 --> 404 Page Not Found: Assets/snippets
ERROR - 2018-03-13 01:24:23 --> 404 Page Not Found: Well-known/assetlinks.json
ERROR - 2... | 9,444 |
https://github.com/rsbh/cube.js/blob/master/docs-gen/src/resources/helpers/literal.ts | Github Open Source | Open Source | Cube, Apache-2.0, MIT | 2,022 | cube.js | rsbh | TypeScript | Code | 169 | 602 | import { DeclarationReflection } from 'typedoc';
import { ReflectionKind, ReflectionType } from 'typedoc/dist/lib/models';
import { declarationTitle } from './declaration-title';
import { signatureTitle } from './signature-title';
import { spaces } from './spaces';
export function literal(this: DeclarationReflection) ... | 4,451 |
https://github.com/sgh1986915/symfony-tsk/blob/master/src/TSK/ContractBundle/Entity/ContractToken.php | Github Open Source | Open Source | MIT | null | symfony-tsk | sgh1986915 | PHP | Code | 263 | 901 | <?php
namespace TSK\ContractBundle\Entity;
use Symfony\Component\Validator\Constraints as Assert;
use Doctrine\ORM\Mapping as ORM;
/**
* ContractToken
*
* @ORM\Table(name="tsk_contract_token")
* @ORM\Entity(repositoryClass="TSK\ContractBundle\Entity\ContractTokenRepository")
*/
class ContractToken
{
/**
... | 29,958 |
https://github.com/acidicMercury8/xray-1.0/blob/master/sdk/boost_1_30_0/libs/utility/indirect_iterator_example.cpp | Github Open Source | Open Source | Linux-OpenIB | 2,020 | xray-1.0 | acidicMercury8 | C++ | Code | 193 | 730 | // (C) Copyright Jeremy Siek 2000. Permission to copy, use, modify, sell and
// distribute this software is granted provided this copyright notice appears
// in all copies. This software is provided "as is" without express or implied
// warranty, and with no claim as to its suitability for any purpose.
#include <boost... | 36,618 |
https://github.com/pritamkhose/NewsWeb/blob/master/web/header.jsp | Github Open Source | Open Source | Apache-2.0 | null | NewsWeb | pritamkhose | null | Spoken | 376 | 3,650 | <%--
Document : header
Created on : Sep 18, 2017, 12:17:13 AM
Author : Pritam
--%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<title>News Apps</title>
<meta charset="utf-8">
<!-- below li... | 28,976 |
https://github.com/vildar82/AcadLib/blob/master/AcadLib/Model/Entitys/EntityHelper.cs | Github Open Source | Open Source | MIT | 2,022 | AcadLib | vildar82 | C# | Code | 179 | 639 | namespace AcadLib
{
using System.Collections.Generic;
using System.Linq;
using Autodesk.AutoCAD.ApplicationServices.Core;
using Autodesk.AutoCAD.DatabaseServices;
using Autodesk.AutoCAD.Geometry;
using JetBrains.Annotations;
using NetLib;
[PublicAPI]
public static class EntityHelpe... | 44,910 |
https://github.com/DCastagna/clvk/blob/master/src/device.hpp | Github Open Source | Open Source | Apache-2.0 | null | clvk | DCastagna | C++ | Code | 1,687 | 6,574 | // Copyright 2018 The clvk 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 law or agreed ... | 52,816 |
https://github.com/optbot/eqpuller/blob/master/lib/setup.js | Github Open Source | Open Source | MIT | null | eqpuller | optbot | JavaScript | Code | 130 | 443 | (function() {
'use strict';
var pytools = require('@optbot/pytools');
var shell = require('shelljs');
var path = require('path');
var nconf = require('nconf');
var user = process.env.npm_package_config_user;
var configFile = path.join(process.env.npm_config_quichean_nconf_path,
'pytools', 'config.jso... | 51,111 |
https://github.com/rubiin/dotfiles/blob/master/dot_tmux/plugins/tpm/lib/tmux-test/executable_literal_run_tests | Github Open Source | Open Source | MIT, WTFPL | 2,023 | dotfiles | rubiin | Shell | Code | 392 | 1,110 | #!/usr/bin/env bash
# This file is a symlink from 'tmux-test' plugin.
# You probably don't want to edit it.
# Run this script when running a test suite.
# For each virtual machine where tests run, this script performs the following:
# - starts VM
# - starts the test suite witin a VM
# - stops the VM after the test s... | 6,712 |
https://github.com/NuKeeperBot/NLog.StructuredLogging.Json/blob/master/src/NLog.StructuredLogging.Json.Tests/EndToEnd/ViaLayout/MessageContainsJson.cs | Github Open Source | Open Source | Apache-2.0 | null | NLog.StructuredLogging.Json | NuKeeperBot | C# | Code | 102 | 393 | using Newtonsoft.Json;
using NUnit.Framework;
namespace NLog.StructuredLogging.Json.Tests.EndToEnd.ViaLayout
{
public class MessageContainsJson : AsyncFlattenedJsonTestsThatTestSeveralFeaturesAtOnceToProveCombinationsWork
{
protected override string GivenMessage()
{
return string.F... | 38,452 |
https://github.com/fahad19/firenze/blob/master/test/fixtures/posts.js | Github Open Source | Open Source | MIT | 2,022 | firenze | fahad19 | JavaScript | Code | 54 | 176 | /*eslint camelcase: [2, {properties: "never"}]*/
module.exports = [
{
id: 1,
author_id: 1,
title: 'Hello World',
body: 'blah...',
views: 10,
note: 'note'
},
{
id: 2,
author_id: 1,
title: 'About',
body: 'about us...',
views: 20,
note: 'note'
},
{
id: 3,
a... | 41,339 |
https://github.com/VirrageS/io-kawiarnie/blob/master/caffe/stencils/views.py | Github Open Source | Open Source | MIT | 2,016 | io-kawiarnie | VirrageS | Python | Code | 386 | 1,519 | from django.contrib import messages
from django.contrib.auth.decorators import permission_required
from django.core.urlresolvers import reverse
from django.shortcuts import get_object_or_404, redirect, render
from reports.forms import FullProductForm
from reports.models import Product, Report
from reports.views import... | 23,518 |
https://github.com/ansteh/wiki-ahead/blob/master/client/index.js | Github Open Source | Open Source | MIT | 2,016 | wiki-ahead | ansteh | JavaScript | Code | 133 | 580 | function sug(response){
console.log(response);
};
(function(document, jQuery){
var request = function(url){
return new Promise(function(resolve, reject) {
jQuery.getJSON(url)
.then(function(response){ resolve(response); })
.fail(function(err){ reject(err); });
});
};
var OpenWikiSear... | 40,936 |
https://github.com/280185386/deepstream.io/blob/master/src/utils/message-distributor.ts | Github Open Source | Open Source | MIT | 2,019 | deepstream.io | 280185386 | TypeScript | Code | 222 | 580 | import { PARSER_ACTION, TOPIC, Message, STATE_REGISTRY_TOPIC } from '../constants'
import { SocketWrapper, DeepstreamServices, DeepstreamConfig } from '../../ds-types/src/index'
/**
* The MessageDistributor routes valid and permissioned messages to
* various, previously registered handlers, e.g. event-, rpc- or reco... | 11,862 |
https://github.com/cesarMtorres/sisol/blob/master/app/Http/Controllers/CriterioController.php | Github Open Source | Open Source | MIT | 2,020 | sisol | cesarMtorres | PHP | Code | 320 | 1,024 | <?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Http\Requests\BancoRequest;
use App\Criterio;
use Carbon;
use PDF;
use DB;
class CriterioController extends Controller
{
public function __construct()
{
}
/**
* Display a listing of the resource.
*
* ... | 46,789 |
https://github.com/skylifewww/jiiframework.ru/blob/master/models/PackageItem.js | Github Open Source | Open Source | MIT | 2,016 | jiiframework.ru | skylifewww | JavaScript | Code | 297 | 1,072 | /**
* @author <a href="http://www.affka.ru">Vladimir Kozhin</a>
* @license MIT
*/
var Jii = require('jii');
var _each = require('lodash/each');
var _indexOf = require('lodash/indexOf');
var Model = require('jii/base/Model');
var File = require('jii/helpers/File');
var fs = require('fs');
var hljs = require('highlig... | 9,751 |
https://github.com/hadesvip/roncoo-education/blob/master/roncoo-education-common/roncoo-education-common-core/src/main/java/com/roncoo/education/common/core/config/SystemUtil.java | Github Open Source | Open Source | MIT | 2,022 | roncoo-education | hadesvip | Java | Code | 124 | 413 | /**
* Copyright 2015-现在 广州市领课网络科技有限公司
*/
package com.roncoo.education.common.core.config;
import java.io.IOException;
import java.util.Properties;
/**
* 配置文件读取工具类
*
* @author wujing
*/
public final class SystemUtil {
private SystemUtil() {
}
private static final Properties properties = new Propert... | 1,250 |
https://github.com/mittalshekhar/angular7/blob/master/node_modules/tsickle/src/module_type_translator.d.ts | Github Open Source | Open Source | MIT | null | angular7 | mittalshekhar | TypeScript | Code | 770 | 1,577 | /**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
/// <amd-module name="tsickle/src/module_type_translator" />
/**
* @fileoverview module_type_translator builds on to... | 39,136 |
https://github.com/arnegroskurth/archivr/blob/master/tests/Index/IndexObjectTest.php | Github Open Source | Open Source | MIT | 2,018 | archivr | arnegroskurth | PHP | Code | 163 | 1,108 | <?php
namespace Storeman\Test\Index;
use PHPUnit\Framework\TestCase;
use Storeman\Index\IndexObject;
use Storeman\Test\TestVault;
class IndexObjectTest extends TestCase
{
public function testComparison()
{
$testVaultA = new TestVault();
$testVaultA->fwrite('test.ext');
$testVaultA->fw... | 29,493 |
https://github.com/matalouiec/ensys-1/blob/master/app/Http/Controllers/FarmlandController.php | Github Open Source | Open Source | MIT | 2,020 | ensys-1 | matalouiec | PHP | Code | 115 | 572 | <?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Farmland;
use App\Student;
use Illuminate\Support\Facades\Redirect;
USE DB;
USE Session;
class FarmlandController extends Controller
{
//Adding Farmland
public function farmland()
{
$addressb = DB::table('refbrgy')->pluck(... | 28,646 |
https://github.com/daniil-pankratov/Data-Appliance-GX/blob/master/spi/src/main/java/com/microsoft/dagx/spi/transfer/provision/ResourceManifestGenerator.java | Github Open Source | Open Source | MIT | 2,021 | Data-Appliance-GX | daniil-pankratov | Java | Code | 121 | 398 | /*
* Copyright (c) Microsoft Corporation.
* All rights reserved.
*/
package com.microsoft.dagx.spi.transfer.provision;
import com.microsoft.dagx.policy.model.AtomicConstraintFunction;
import com.microsoft.dagx.policy.model.Duty;
import com.microsoft.dagx.policy.model.Permission;
import com.microsoft.dagx.policy.mo... | 36,288 |
https://github.com/meedan/check-web/blob/master/src/app/components/Root.js | Github Open Source | Open Source | MIT | 2,021 | check-web | meedan | JavaScript | Code | 404 | 1,739 | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { Provider } from 'react-redux';
import { Router, Route, browserHistory, IndexRoute } from 'react-router';
import ReactGA from 'react-ga';
import { IntlProvider } from 'react-intl';
import config from 'config'; // eslint-disable-line r... | 7,325 |
https://github.com/danielrherber/dt-qp-project/blob/master/examples/nonlin/hager-hou-rao-1/solution/HagerHouRao1_Y.m | Github Open Source | Open Source | BSD-3-Clause | 2,022 | dt-qp-project | danielrherber | MATLAB | Code | 33 | 170 | function Y = HagerHouRao1_Y(t)
%HAGERHOURAO1_Y
% Y = HAGERHOURAO1_Y(T)
% This function was generated by the Symbolic Math Toolbox version 8.6.
% 27-Dec-2020 10:33:00
t2 = t-1.0;
t3 = cosh(t2);
Y = [t3.*exp(t.*(-3.0./2.0)).*(exp(t.*3.0).*2.0+2.008553692318767e+1).*2.934292591200223e-2,1.543080634815244./t3];
| 46,492 |
https://github.com/patricklafrance/gsoft-g-es6/blob/master/Library/knockout/bindings/src.js | Github Open Source | Open Source | MIT | 2,019 | gsoft-g-es6 | patricklafrance | JavaScript | Code | 36 | 98 | (function() {
// summary:
// Set the "src" attribute of the binding element.
ko.bindingHandlers.src = {
init: function(element, valueAccessor) {
var value = valueAccessor();
return ko.applyBindingsToNode(element, {
attr: {
... | 26,615 |
https://github.com/mjwatkins2/BE-Beam-FEA/blob/master/solver/Mapping.m | Github Open Source | Open Source | MIT | 2,019 | BE-Beam-FEA | mjwatkins2 | MATLAB | Code | 61 | 105 | function x = Mapping(x0, x1, xi)
% Maps points xi from the standard domain to the global x domain.
% x0: Location of element left node.
% x1: Location of element right node.
% xi: Vector of standard coordinates.
% x: Vector of points in the global x domain. x = Q(xi).
x = (1-xi)/2 * x0 + (1+xi)/2 * x1; | 41,555 |
https://github.com/canyon289/Theano-PyMC/blob/master/tests/test_breakpoint.py | Github Open Source | Open Source | BSD-3-Clause | 2,020 | Theano-PyMC | canyon289 | Python | Code | 219 | 913 | import numpy as np
import theano
import theano.tensor as tt
from tests import unittest_tools as utt
from theano.breakpoint import PdbBreakpoint
class TestPdbBreakpoint(utt.InferShapeTester):
def setup_method(self):
super().setup_method()
# Sample computation that involves tensors with different ... | 11,799 |
https://github.com/ChuckHend/PyRSMQ/blob/master/src/tests/test_utils.py | Github Open Source | Open Source | Apache-2.0 | 2,022 | PyRSMQ | ChuckHend | Python | Code | 479 | 1,628 | '''
Unit Tests for utils
'''
import logging
import os
import unittest
from rsmq.cmd import utils
BASE_DIR = os.path.dirname(os.path.dirname(__file__))
ENCODE_TESTS = {
'a': 'a',
'{"a": "b"}': {'a': 'b'}
}
# Each test is value, min, max, sucess
VALIDATE_INT_TESTS = [
(0, 0, 100, True),
(1, 0, 100, ... | 35,845 |
https://github.com/hempflower/blessing-skin-server/blob/master/resources/assets/src/scripts/darkMode.tsx | Github Open Source | Open Source | MIT | 2,021 | blessing-skin-server | hempflower | TSX | Code | 32 | 101 | import * as React from 'react'
import * as ReactDOM from 'react-dom'
import DarkModeButton from '@/components/DarkModeButton'
const el = document.querySelector('#toggle-dark-mode')
if (el) {
const initMode = document.body.classList.contains('dark-mode')
ReactDOM.render(<DarkModeButton initMode={initMode} />, el)
}... | 46,746 |
https://github.com/seu-as-code/seu-as-code.plugins/blob/master/seuac-git-plugin/src/main/groovy/de/qaware/seu/as/code/plugins/git/GitInitTask.groovy | Github Open Source | Open Source | Apache-2.0 | 2,020 | seu-as-code.plugins | seu-as-code | Groovy | Code | 145 | 317 | /*
* Copyright (C) 2015 QAware GmbH
*
* 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 applic... | 14,474 |
https://github.com/papan-singh/cortx-motr-1/blob/master/fd/ut/fd_tree.c | Github Open Source | Open Source | Apache-2.0 | 2,022 | cortx-motr-1 | papan-singh | C | Code | 632 | 2,307 | /* -*- C -*- */
/*
* Copyright (c) 2012-2020 Seagate Technology LLC and/or its Affiliates
*
* 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... | 32,723 |
https://github.com/jamesmcconville/YoutubeDownloader/blob/master/YoutubeDownloader/ViewModels/RootViewModel.cs | Github Open Source | Open Source | MIT | null | YoutubeDownloader | jamesmcconville | C# | Code | 743 | 2,070 | using System;
using System.Linq;
using System.Threading.Tasks;
using Gress;
using MaterialDesignThemes.Wpf;
using Stylet;
using Tyrrrz.Extensions;
using YoutubeDownloader.Models;
using YoutubeDownloader.Services;
using YoutubeDownloader.ViewModels.Components;
using YoutubeDownloader.ViewModels.Framework;
namespace Yo... | 43,481 |
https://github.com/SchapplM/robsynth-serroblib/blob/master/mdl_5dof/S5PRRPP4/hd/S5PRRPP4_energykin_fixb_slag_vp1.m | Github Open Source | Open Source | MIT | 2,022 | robsynth-serroblib | SchapplM | MATLAB | Code | 1,038 | 2,678 | % Calculate kinetic energy for
% S5PRRPP4
% Use Code from Maple symbolic Code Generation
%
% Input:
% qJ [5x1]
% Generalized joint coordinates (joint angles)
% qJD [5x1]
% Generalized joint velocities
% pkin [7x1]
% kinematic parameters (e.g. lengths of the links)
% pkin=[a2,a3,a4,a5,d2,d3,theta1]';
% m_mdh [6... | 20,492 |
https://github.com/appearhere/bloom/blob/master/packages/core/src/components/Cards/PlaceListingCard/PlaceListingCard.js | Github Open Source | Open Source | MIT | 2,022 | bloom | appearhere | JavaScript | Code | 154 | 597 | // @flow
import * as React from 'react';
import cx from 'classnames';
import PictureCard from '../PictureCard/PictureCard';
import css from './PlaceListingCard.css';
type Props = {
imageSrc: string,
href: string,
priceFromLabel: string,
className?: string,
price: React.Node,
priceUnit: React.Node,
name... | 34,114 |
https://github.com/Daniel12346/pokedex/blob/master/src/components/pokedex-load-more/load-more.tsx | Github Open Source | Open Source | MIT | 2,019 | pokedex | Daniel12346 | TypeScript | Code | 110 | 300 | import { Component, Prop } from "@stencil/core";
@Component({
tag: "dv-load-more",
styleUrl: "load-more.scss",
shadow: true
})
export class LoadMore {
@Prop() handleFetchMore;
componentDidLoad() {
this.observer.observe(this.base);
}
componentDidUnload() {
this.observer.disconnect();
}
base:... | 9,841 |
https://github.com/mahdinjim/fxwCore/blob/master/src/Acmtool/AppBundle/Entity/CumulativeHours.php | Github Open Source | Open Source | MIT, BSD-3-Clause | 2,018 | fxwCore | mahdinjim | PHP | Code | 203 | 734 | <?php
namespace Acmtool\AppBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* CumulativeHours
*
* @ORM\Table()
* @ORM\Entity
*/
class CumulativeHours
{
/**
* @var integer
*
* @ORM\Column(name="id", type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
*/
priva... | 29,907 |
https://github.com/davenza/PyBNesian/blob/master/pybnesian/dataset/dataset.hpp | Github Open Source | Open Source | MIT | 2,022 | PyBNesian | davenza | C++ | Code | 8,078 | 28,323 | #ifndef PYBNESIAN_DATASET_DATASET_HPP
#define PYBNESIAN_DATASET_DATASET_HPP
#include <Eigen/Dense>
#include <arrow/python/pyarrow.h>
#include <arrow/python/platform.h>
#include <arrow/api.h>
#include <arrow/compute/api.h>
#include <pybind11/pybind11.h>
#include <util/parameter_traits.hpp>
#include <util/bit_util.hpp>
... | 15,899 |
https://github.com/neontribe/ARCVStore/blob/master/.env.example | Github Open Source | Open Source | MIT | 2,019 | ARCVStore | neontribe | Shell | Code | 33 | 308 | APP_NAME=ARCVStore
APP_ENV=local
APP_VER=0.2.0
APP_KEY=
APP_DEBUG=true
APP_LOG_LEVEL=debug
APP_URL=http://arcv-store.test
APP_TIMEZONE=Europe/London
APP_SEEDS='Dev'
ARC_SCHOOL_MONTH=9
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=homestead
DB_USERNAME=homestead
DB_PASSWORD=secret
BROADCAST_DRIVER=lo... | 10,084 |
https://github.com/shenzhou-6/vertx-web-learn/blob/master/src/main/java/cn/dippers/MainVerticle.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | vertx-web-learn | shenzhou-6 | Java | Code | 82 | 461 | package cn.dippers;
import com.fasterxml.jackson.databind.Module;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.datatype.jdk8.Jdk8Module;
import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule;
import com.fasterxml.jackson.module.paramnames.ParameterNamesModule;
import io.vertx.... | 11,794 |
https://github.com/wimrijnders/CmdParameter/blob/master/Tests/TestData/TestParameters.h | Github Open Source | Open Source | MIT | 2,021 | CmdParameter | wimrijnders | C | Code | 83 | 249 | #ifndef TESTPARAMETERS_H
#define TESTPARAMETERS_H
#include <string>
#include "../../Lib/CmdParameters.h"
class TestParameters {
using string = std::string;
public:
bool handle_commandline(
int argc,
const char* argv[],
bool show_help_on_error = true);
// Intentionally initialized to illegal values... | 22,164 |
https://github.com/Damiano01/spring-boot-starter-kafka/blob/master/spring-boot-starter-kafka/src/main/java/com/elderbyte/kafka/streams/builder/dsl/ElKGroupedTable.java | Github Open Source | Open Source | MIT | 2,022 | spring-boot-starter-kafka | Damiano01 | Java | Code | 230 | 953 | package com.elderbyte.kafka.streams.builder.dsl;
import com.fasterxml.jackson.core.type.TypeReference;
import org.apache.kafka.common.serialization.Serde;
import org.apache.kafka.streams.kstream.*;
public class ElKGroupedTable<K,V> extends ElStreamBase<K,V> {
/****************************************************... | 20,958 |
https://github.com/coldnew/antlrpad/blob/master/test/services/LexerGrammarParserTest.scala | Github Open Source | Open Source | Apache-2.0 | 2,016 | antlrpad | coldnew | Scala | Code | 132 | 402 | package services
import org.scalatestplus.play.PlaySpec
import scalaz.{-\/, \/-}
class LexerGrammarParserTest extends PlaySpec {
val lexerGrammarParser = new LexerGrammarParser(useCache = false)
"Lexical grammar parser" should {
"parse valid lexer grammar" in {
val lg = lexerGrammarParser.parse("lexe... | 15,968 |
https://github.com/vero-zhang/cut/blob/master/src/cut/hook/runtime/Runtime.cpp | Github Open Source | Open Source | MIT | 2,020 | cut | vero-zhang | C++ | Code | 51 | 241 | #include <cut/hook/runtime/Runtime.h>
#include <cut/auto/TestFactorySuite.h>
#include <cut/hook/registry/HookRegistries.h>
#include <cut/startup/TestOptions.h>
#include <cut/core/TestRunner.h>
CUT_NS_BEGIN
namespace
{
struct RuntimeImpl
: private BeforeAllHookRegistry
, private AfterAllHookRegistr... | 697 |
https://github.com/adrian-goe/mocoapp-browser-extension/blob/master/src/js/utils/browser.js | Github Open Source | Open Source | MIT | null | mocoapp-browser-extension | adrian-goe | JavaScript | Code | 176 | 457 | import { head } from "lodash/fp"
export const isChrome = () => typeof browser === "undefined" && chrome
export const isFirefox = () => typeof browser !== "undefined" && chrome
const DEFAULT_SUBDOMAIN = "unset"
export const getSettings = (withDefaultSubdomain = true) => {
const keys = ["subdomain", "apiKey", "settin... | 44,361 |
https://github.com/zhaokangjie123456/marsert/blob/master/api/modules/v1/models/Styleimage.php | Github Open Source | Open Source | BSD-3-Clause | null | marsert | zhaokangjie123456 | PHP | Code | 159 | 481 | <?php
namespace api\modules\v1\models;
use Yii;
/**
* This is the model class for table "styleimage".
*
* @property int $id 自增
* @property int $image_id 形象id
* @property string $type 形象具体的颜色款式
* @property int $st_num 开始编号
* @property int $en_num 结束编号
* @property string $prefix 编号前缀
* @property string $image... | 51,912 |
https://github.com/cc112010/myshop/blob/master/src/main/java/com/mysiteforme/admin/entity/OrderDetail.java | Github Open Source | Open Source | Apache-2.0 | null | myshop | cc112010 | Java | Code | 312 | 1,044 | package com.mysiteforme.admin.entity;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import com.mysiteforme.admin.base.DataEntity;
/**
* <p>
* 订单详情表
* </p>
*
* @author ... | 51,854 |
https://github.com/geoffreyma92/tfa/blob/master/grandeur-engine-44/tfa/app/views/layouts/main.blade.php | Github Open Source | Open Source | MIT | 2,014 | tfa | geoffreyma92 | Blade | Code | 116 | 693 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="@yield('description')">
<meta name="author" content=" SEP-TUT1-05-G4">
<lin... | 11,452 |
https://github.com/darksadvial/CPS-506/blob/master/src/LibGit-Core.package/LGitBlameOptions.class/instance/prim_max_line..st | Github Open Source | Open Source | MIT | 2,019 | CPS-506 | darksadvial | null | Spoken | 13 | 44 | libgit-fields
prim_max_line: anObject
"This method was automatically generated"
handle unsignedLongAt: OFFSET_PRIM_MAX_LINE put: anObject | 4,282 |
https://github.com/skesiraju/indic-kws/blob/master/kaldi_recipes/local/get_wfreq_histogram.py | Github Open Source | Open Source | Apache-2.0 | null | indic-kws | skesiraju | Python | Code | 195 | 767 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# author : Santosh Kesiraju
# e-mail : kcraj2[AT]gmail[DOT]com, kesiraju[AT]fit[DOT]vutbr[DOT]cz
# Date created : 08 Jun 2021
# Last modified : 08 Jun 2021
"""
Get word freq histogram
"""
import os
import sys
import argparse
import numpy as np
import matplotlib.pyplot a... | 11,304 |
https://github.com/jamesmfriedman/g/blob/master/src/common/gConfig.js | Github Open Source | Open Source | MIT | null | g | jamesmfriedman | JavaScript | Code | 57 | 211 | angular.module('G.common').provider('gConfig', function() {
var config = {
iconPrefix: 'icon-',
useNativeNotifications: true,
defaultNotificationIcon: null,
getAvatar: function(params) {
return params;
}
};
this.iconPrefix = function(prefix){
config.iconPrefix = prefix;
};
this.useNativeNotifica... | 41,086 |
https://github.com/espressolocator/locator-old/blob/master/client/lib/google_maps.js | Github Open Source | Open Source | MIT | null | locator-old | espressolocator | JavaScript | Code | 123 | 438 | addGeocomplete = function (searchNode, initProperties) {
var defaultProperties = {
map: ".map-container",
detailsAttribute: "data-geo",
mapOptions: {
zoom: 17,
scrollwheel: true,
streetViewControl: false
},
markerOptions: {
draggable: true,
icon: '/logo-icon-marker.pn... | 39,639 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.