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/zaydek/heroicons.dev/blob/master/src/data/heroicons@1.0.6/solid/Rewind.tsx | Github Open Source | Open Source | MIT | 2,023 | heroicons.dev | zaydek | TSX | Code | 53 | 205 | import { SVGAttributes } from "react"
// https://unpkg.com/heroicons@1.0.6/solid/rewind.svg
export function Rewind(props: SVGAttributes<SVGElement>) {
return (
<svg fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" {...props}>
<path d="M8.445 14.832A1 1 0 0010 14v-2.79... | 4,022 |
https://github.com/Tofee/luna-sysservice-webosose/blob/master/Src/LocalePrefsHandler.cpp | Github Open Source | Open Source | Apache-2.0 | 2,019 | luna-sysservice-webosose | Tofee | C++ | Code | 902 | 3,142 | // Copyright (c) 2010-2018 LG Electronics, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or... | 36,328 |
https://github.com/igorstojanovski/Central-Committee/blob/master/server/src/main/java/co/igorski/centralcommittee/model/events/TestStarted.java | Github Open Source | Open Source | Apache-2.0 | null | Central-Committee | igorstojanovski | Java | Code | 26 | 96 | package co.igorski.centralcommittee.model.events;
import co.igorski.centralcommittee.model.CcTest;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
@Getter
@Setter
@NoArgsConstructor
public class TestStarted extends Event {
private Long runId;
private CcTest test;
} | 53,845 |
https://github.com/PRECISE/ROSLab/blob/master/lib/snakeyaml-src/src/test/java/org/yaml/snakeyaml/DumperTest.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | ROSLab | PRECISE | Java | Code | 383 | 1,050 | /**
* Copyright (c) 2008-2014, http://www.snakeyaml.org
*
* 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 appl... | 24,292 |
https://github.com/nakamoto95/src14_htdocs/blob/master/assets/game/home/home.js | Github Open Source | Open Source | MIT | null | src14_htdocs | nakamoto95 | JavaScript | Code | 45 | 256 | $(function() {
$(document).on('click', '#set', function(ev) {
ev.preventDefault();
var game_no = $('#game_no').val();
var court = $('#court').val();
console.log(game_no+court);
location.href="/index.php/game/input/"+game_no+"/"+court+"/";
});
$(document).on('click', '#setup', function(ev) {
... | 43,772 |
https://github.com/ninoseki/mihari/blob/master/spec/models/rule_spec.rb | Github Open Source | Open Source | MIT | 2,023 | mihari | ninoseki | Ruby | Code | 143 | 842 | # frozen_string_literal: true
RSpec.describe Mihari::Rule do
include_context "with database fixtures"
describe ".search" do
it do
alerts = described_class.search(Mihari::Structs::Filters::Rule::SearchFilterWithPagination.new)
expect(alerts.length).to eq(2)
end
it do
alerts = describ... | 17,905 |
https://github.com/pisko999/mtgforfun/blob/master/app/Repositories/ProductRepository.php | Github Open Source | Open Source | MIT | null | mtgforfun | pisko999 | PHP | Code | 738 | 2,901 | <?php
/**
* Created by PhpStorm.
* User: spina
* Date: 12/03/2019
* Time: 22:27
*/
namespace App\Repositories;
use App\Http\Requests\CardAddJsonRequest;
use App\Http\Requests\ProductCreateRequest;
use App\Models\Product;
use App\Models\Booster;
use App\Models\BoosterBox;
use App\Models\Card;
use App\Models\Colle... | 24,686 |
https://github.com/brunogbv/akka-api-example/blob/master/akka-api/src/main/scala/example/api/actors/ApiManagerActor.scala | Github Open Source | Open Source | MIT | null | akka-api-example | brunogbv | Scala | Code | 105 | 370 | package example.api.actors
import akka.actor.{Actor, ActorRef, PoisonPill, Props}
import akka.pattern.{Backoff, BackoffSupervisor}
import akka.stream.ActorMaterializer
import example.api.controllers.payment.{PaymentController, PaymentRoutes}
/**
* Created by bvalerio on 04/07/2018.
*/
object ApiManagerActor {
d... | 32,259 |
https://github.com/niastialfauziah29/C_E32201483_NIASTIALFAUZIAHLASE/blob/master/TUGAS MINGGU 10/resources/views/rumah.blade.php | Github Open Source | Open Source | MIT | 2,021 | C_E32201483_NIASTIALFAUZIAHLASE | niastialfauziah29 | Blade | Code | 117 | 531 |
@extends('layouts.layout')
@section('content')
<div class="flex-center position-ref full-height">
@if (Route::has('login'))
<div class="top-right links">
@auth
<a href="{{ url('/home') }}">Home</a>
@else
<a href="{{ route('login') }}">Login
... | 32,466 |
https://github.com/daniestevez/gmat-dslwp-source/blob/master/GMAT-R2019aBeta1/plugins/EventLocatorPlugin/build/macosx/EventLocatorEnv.mk | Github Open Source | Open Source | Apache-2.0 | 2,020 | gmat-dslwp-source | daniestevez | Makefile | Code | 335 | 1,135 | # $Id$
# Architecture flags
GMAT_BIN_DIR = bin
GMAT_LIB_DIR = lib
GMAT_PLUGIN_DIR = plugins
ifeq ($(BUILD_64BIT), 1)
MAC_ARCHITECTURE_FLAGS =
F2C_DIR = f2c64
else
MAC_ARCHITECTURE_FLAGS = -arch i386
F2C_DIR = f2c32
endif
# ifeq ($(BUILD_64BIT), 1)
# CSPICE_VER = cspice64
# MAC_ARCHITECTURE_FLAGS =
# else
# CSPICE_VER... | 20,654 |
https://github.com/manishchaks/flickr-angular/blob/master/test/unit/controllersSpec.js | Github Open Source | Open Source | MIT | 2,014 | flickr-angular | manishchaks | JavaScript | Code | 266 | 1,022 | 'use strict';
describe('Flickr Angular Controllers', function () {
beforeEach(function () {
this.addMatchers({
toEqualData: function (expected) {
return angular.equals(this.actual, expected);
}
});
});
beforeEach(module('flickr-angular'));
desc... | 52,236 |
https://github.com/arangodb/arangodb/blob/master/3rdParty/boost/1.78.0/libs/asio/example/cpp11/chat/chat_server.cpp | Github Open Source | Open Source | BSL-1.0, Apache-2.0, BSD-3-Clause, ICU, Zlib, GPL-1.0-or-later, OpenSSL, ISC, LicenseRef-scancode-gutenberg-2020, MIT, GPL-2.0-only, CC0-1.0, LicenseRef-scancode-autoconf-simple-exception, LicenseRef-scancode-pcre, Bison-exception-2.2, LicenseRef-scancode-public-domain, JSON, BSD-2-Clause, LicenseRef-scancode-unknown-l... | 2,023 | arangodb | arangodb | C++ | Code | 368 | 1,568 | //
// chat_server.cpp
// ~~~~~~~~~~~~~~~
//
// Copyright (c) 2003-2021 Christopher M. Kohlhoff (chris at kohlhoff dot com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
#include <cstdlib>
#include <deque>
#... | 1,639 |
https://github.com/wisamreid/GrFNNMotor/blob/master/MATLAB/Toolboxes/Granger Toolboxes/Granger-master/format_arfit_input.m | Github Open Source | Open Source | BSD-3-Clause | 2,021 | GrFNNMotor | wisamreid | MATLAB | Code | 276 | 785 | % Format data for fitting autoregressive model using ARFIT or ARFIT2
%
% $ Copyright (C) 2014 Brian Lau http://www.subcortex.net/ $
% Released under the BSD license. The license and most recent version
% of the code can be found on GitHub:
% https://github.com/brian-lau/Granger
%
% datChunk = format_a... | 338 |
https://github.com/sumit4tech/leetcode-in-java/blob/master/1-100/88.merge-sorted-array.java | Github Open Source | Open Source | MIT | 2,021 | leetcode-in-java | sumit4tech | Java | Code | 77 | 164 | /*
* @lc app=leetcode id=88 lang=java
*
* [88] Merge Sorted Array
*/
// @lc code=start
class Solution {
public void merge(int[] nums1, int m, int[] nums2, int n) {
for (int i = m + n - 1, mm = m - 1, nn = n - 1; i >= 0; i--) {
nums1[i] = mm >= 0 && (nn < 0 || nums1[mm] >= nums2[nn]) ? nums1... | 41,170 |
https://github.com/brthanmathwoag/jancy/blob/master/jancy-transpiler/src/main/scala/eu/tznvy/jancy/transpiler/discovery/ContentFilesExtractor.scala | Github Open Source | Open Source | 0BSD | 2,021 | jancy | brthanmathwoag | Scala | Code | 70 | 284 | package eu.tznvy.jancy.transpiler.discovery
import java.io.File
import java.nio.file.Path
import java.util.zip.ZipFile
import eu.tznvy.jancy.transpiler.helpers.Filesystem
import resource.managed
/**
* Extracts the content files from the jar
*
* @param filesystem a wrapper for IO operations
*/
class Conten... | 33,343 |
https://github.com/LaudateCorpus1/finagle/blob/master/finagle-core/src/main/scala/com/twitter/finagle/Group.scala | Github Open Source | Open Source | Apache-2.0 | 2,021 | finagle | LaudateCorpus1 | Scala | Code | 800 | 1,763 | package com.twitter.finagle
import com.twitter.conversions.time._
import com.twitter.finagle.builder.Cluster
import com.twitter.finagle.service.Backoff
import com.twitter.finagle.util.DefaultTimer
import com.twitter.util.{Closable, Future, Duration, Timer}
/**
* A group is a dynamic set of `T`-typed values. It is us... | 2,729 |
https://github.com/agforero/FTFramework/blob/master/source/nasa_f/edlimb.f | Github Open Source | Open Source | MIT | 2,021 | FTFramework | agforero | null | Spoken | 2,226 | 4,617 | C$Procedure EDLIMB ( Ellipsoid Limb )
SUBROUTINE EDLIMB ( A, B, C, VIEWPT, LIMB )
C$ Abstract
C
C Find the limb of a triaxial ellipsoid, viewed from a specified
C point.
C
C$ Disclaimer
C
C THIS SOFTWARE AND ANY RELATED MATERIALS WERE CREATED BY THE
C CALIFORNIA INSTITUTE OF TECHNOLOGY (CAL... | 47,103 |
https://github.com/gernest/meshd/blob/master/pkg/provider/tt_keys.go | Github Open Source | Open Source | Apache-2.0 | null | meshd | gernest | Go | Code | 187 | 958 | package provider
import (
"fmt"
"github.com/gernest/meshd/pkg/topology"
)
const (
blockAllMiddlewareKey = "block-all-middleware"
blockAllServiceKey = "block-all-service"
)
func getMiddlewareKey(svc *topology.Service, name string) string {
return fmt.Sprintf("%s-%s-%s", svc.Namespace, svc.Name, name)
}
func... | 8,682 |
https://github.com/chen810/study-code/blob/master/codeSpace/Leetcode_offer_20.cpp | Github Open Source | Open Source | MIT | 2,020 | study-code | chen810 | C++ | Code | 205 | 712 | // 剑指 Offer 20. 表示数值的字符串
/*
* 请实现一个函数用来判断字符串是否表示数值(包括整数和小数)
* 例如,字符串"+100"、"5e2"、"-123"、"3.1416"、"-1E-16"、"0123"都表示数值
* 但"12e"、"1a3.14"、"1.2.3"、"+-5"及"12e+5.4"都不是
* */
#include <string>
using namespace std;
class Solution {
int checkSheet[9][6]{
{1, 2, 3, 10, 10, 0}, // state 0:初始化且去除开头空格
... | 2,110 |
https://github.com/asw-i3a/agents-web-client/blob/master/src/main/java/io/github/asw/i3a/agentsWebClient/kafka/KafkaService.java | Github Open Source | Open Source | MIT | null | agents-web-client | asw-i3a | Java | Code | 232 | 833 | package io.github.asw.i3a.agentsWebClient.kafka;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.concurrent.ExecutionException;
import javax.annotation.ManagedBean;
import org.json.JSONObject;
import org.springframework.beans.factory.annotation.Autowired;
import org.springfram... | 10,465 |
https://github.com/Valhear/hapiness/blob/master/Hapiness/HapinessViewController.swift | Github Open Source | Open Source | Apache-2.0 | null | hapiness | Valhear | Swift | Code | 130 | 414 | //
// HapinessViewController.swift
// Hapiness
//
// Created by Valentina Henao on 10/9/15.
// Copyright © 2015 Valentina Henao. All rights reserved.
//
import UIKit
class HapinessViewController: UIViewController, FaceViewDataSource {
private struct Constants {
static let happinessGestureScale: C... | 48,263 |
https://github.com/shopOFF/TelerikAcademyCourses/blob/master/CSharp-Part-1/Topics/08. Exam-Preparations/demos/Variant 2 - 2 February 2015/Cube3D/Cube.cs | Github Open Source | Open Source | MIT | null | TelerikAcademyCourses | shopOFF | C# | Code | 417 | 997 | namespace Cube3D
{
using System;
public class Cube
{
public static void Main()
{
int N = int.Parse(Console.ReadLine());
// allocate a char matrix with the appropriate size
// using a matrix because Console.SetCursorPosition doesn't work with redirected ... | 14,544 |
https://github.com/wilks654/cra-node-heroku/blob/master/server/models/Photo.js | Github Open Source | Open Source | MIT | 2,020 | cra-node-heroku | wilks654 | JavaScript | Code | 35 | 91 | const mongoose = require('mongoose')
const Schema = mongoose.Schema
const PhotoSchema = new Schema({
author: {
type: String,
required : true
},
date: {
type: Date,
default: Date.now
}
})
module.exports = Photo = mongoose.model('photo', PhotoSchema) | 15,323 |
https://github.com/Yndal/Thesis/blob/master/Code/Tests/IR_values_Zumo_Test/IR_values_Zumo_Test.ino | Github Open Source | Open Source | MIT | null | Thesis | Yndal | null | Spoken | 235 | 947 | #include <Zumo32U4.h>
Zumo32U4IRPulses irPulses;
Zumo32U4ProximitySensors proxSensors; //Make interfere with irPulses!
bool proxLeftActive;
bool proxFrontActive;
bool proxRightActive;
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
while (!Serial);
proxSensors.initThreeSensors()... | 50,457 |
https://github.com/apache/hadoop/blob/master/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/TestAuditLoggerWithCommands.java | Github Open Source | Open Source | CC-PDDC, CC0-1.0, CC-BY-3.0, LicenseRef-scancode-unknown-license-reference, LGPL-2.1-only, LicenseRef-scancode-other-permissive, CDDL-1.0, GCC-exception-3.1, MIT, EPL-1.0, Classpath-exception-2.0, BSD-3-Clause, GPL-2.0-only, Apache-2.0, LicenseRef-scancode-public-domain, LicenseRef-scancode-jdom, CDDL-1.1, BSD-2-Clause... | 2,023 | hadoop | apache | Java | Code | 3,402 | 14,769 | /**
* 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... | 51,270 |
https://github.com/birros/next-nest-starter/blob/master/lib/components/Auth.tsx | Github Open Source | Open Source | MIT | null | next-nest-starter | birros | TypeScript | Code | 293 | 919 | import React, { useMemo } from "react";
import { AuthApiFactory, UsersApiFactory, LoginDto, RegisterDto } from "../api";
import { useMutation, useQuery, useQueryClient } from "react-query";
async function postRegister(registerDto: RegisterDto) {
const { data } = await AuthApiFactory().authControllerRegister(register... | 3,596 |
https://github.com/StephonAutery/history-portal/blob/master/client/src/components/info/eraInfo.component.js | Github Open Source | Open Source | MIT | null | history-portal | StephonAutery | JavaScript | Code | 122 | 483 | import React, { Component } from 'react';
import Navbar from "../layout/navbar.component";
import Footer from "../layout/footer.component";
import Container from "../container.component";
import API from '../../utils/API';
export default class Era extends Component {
state = {
era: [],
linkData: []... | 22,053 |
https://github.com/pcrgvg/gvg_front/blob/master/src/app/constants/index.ts | Github Open Source | Open Source | Apache-2.0 | 2,022 | gvg_front | pcrgvg | TypeScript | Code | 38 | 100 | export const en = {
confirm: 'confirm',
};
export const cn = {
confirm: '确定',
};
export const storageNames = {
usedList: 'usedList',
removedList: 'removedList',
token: 'token',
};
export const localforageName = {
cacheHttp: 'cacheHttp',
dbVersion: 'dbVersion',
};
| 12,271 |
https://github.com/Alluxio/alluxio/blob/master/dora/job/server/src/main/java/alluxio/worker/job/JobMasterClient.java | Github Open Source | Open Source | MIT, EPL-1.0, LicenseRef-scancode-proprietary-license, CC0-1.0, Apache-2.0, Unlicense, LicenseRef-scancode-warranty-disclaimer, BSD-2-Clause, LicenseRef-scancode-free-unknown, BSD-3-Clause, CC-PDDC, LicenseRef-scancode-public-domain | 2,023 | alluxio | Alluxio | Java | Code | 294 | 607 | /*
* The Alluxio Open Foundation licenses this work under the Apache License, version 2.0
* (the "License"). You may not use this work except in compliance with the License, which is
* available at www.apache.org/licenses/LICENSE-2.0
*
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTIES OR CONDI... | 27,659 |
https://github.com/lechium/iOS1351Headers/blob/master/System/Library/PrivateFrameworks/ClockKit.framework/CLKComplicationTemplateModularSmallColumnsText.h | Github Open Source | Open Source | MIT | 2,022 | iOS1351Headers | lechium | C | Code | 181 | 745 | /*
* This header is generated by classdump-dyld 1.5
* on Wednesday, October 27, 2021 at 3:17:16 PM Mountain Standard Time
* Operating System: Version 13.5.1 (Build 17F80)
* Image Source: /System/Library/PrivateFrameworks/ClockKi... | 50,006 |
https://github.com/envoyat/react-azure-maps/blob/master/dist/types/contexts/AzureMapLayerContext.d.ts | Github Open Source | Open Source | MIT | null | react-azure-maps | envoyat | TypeScript | Code | 40 | 168 | import React from 'react'
import { IAzureLayerStatefulProviderProps } from '../types'
declare const AzureMapLayerContext: React.Context<import('../types').IAzureMapLayerContextState>
declare const AzureMapLayerConsumer: React.Consumer<import('../types').IAzureMapLayerContextState>
declare const AzureMapLayerStatefulPro... | 50,746 |
https://github.com/welingtonfidelis/coqui_api/blob/master/src/middlewares/InputValidate/schemas/user/update.ts | Github Open Source | Open Source | MIT | null | coqui_api | welingtonfidelis | TypeScript | Code | 33 | 155 | import Joi from "joi";
const userUpdateSchema = Joi.object({
id: Joi.string().uuid().required(),
name: Joi.string().required(),
email: Joi.string().email().required(),
phone: Joi.string().allow("").allow(null),
user: Joi.string().required(),
birth: Joi.date().required(),
address: Joi.string().allow("").a... | 22,617 |
https://github.com/kemuri-9/sling-filesystemprovider/blob/master/src/main/java/net/kemuri9/sling/filesystemprovider/impl/FileSystemProvider.java | Github Open Source | Open Source | Apache-2.0 | 2,016 | sling-filesystemprovider | kemuri-9 | Java | Code | 894 | 2,973 | /**
* Copyright 2016 Steven Walters
*
* 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 t... | 43,520 |
https://github.com/Jordon13/ArcherTours/blob/master/application/models/Manipulation.php | Github Open Source | Open Source | MIT | null | ArcherTours | Jordon13 | PHP | Code | 381 | 2,284 | <?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Manipulation extends CI_Model {
public function PackageList($data){
$this->db->where("package_type",$data->trip_type);
$this->db->like('lower(price_origin)', strtolower($data->origin), 'both');... | 31,377 |
https://github.com/ciurescugeorge6/prose-editor/blob/master/dist/WebFontLoader.js | Github Open Source | Open Source | MIT | 2,022 | prose-editor | ciurescugeorge6 | JavaScript | Code | 108 | 346 | 'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');
var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);
var _createClass2 = require('babel-runtime/helpers/createClass');
var _createClass3 = _interopRequi... | 18,414 |
https://github.com/royvandewater/concurrent-experiments/blob/master/src/App.tsx | Github Open Source | Open Source | MIT | null | concurrent-experiments | royvandewater | TypeScript | Code | 500 | 1,964 | import React from 'react'
import * as R from 'ramda'
import Slider from 'rc-slider'
import './App.css'
import 'rc-slider/assets/index.css'
import useQuery from './useQuery'
const populationSize = (pow: number) => Math.pow(10, pow)
interface Rates {
e1a: number;
e1b: number;
e2a: number;
e2b: number;
}
interf... | 39,883 |
https://github.com/ichdream/labs-Insight/blob/master/labs/malloc/mm-2(explicit free list + FIFO).c | Github Open Source | Open Source | BSD-3-Clause | null | labs-Insight | ichdream | C | Code | 892 | 3,380 | /*
* mm-naive.c - The fastest, least memory-efficient malloc package.
*
* In this naive approach, a block is allocated by simply incrementing
* the brk pointer. A block is pure payload. There are no headers or
* footers. Blocks are never coalesced or reused. Realloc is
* implemented directly using mm_malloc and... | 38,883 |
https://github.com/gilmardl93/inscripciones_ocad/blob/master/resources/views/admin/aulas/activas/edit.blade.php | Github Open Source | Open Source | MIT | 2,017 | inscripciones_ocad | gilmardl93 | Blade | Code | 152 | 867 | @extends('layouts.admin')
@section('content')
<div class="row">
<div class="col-md-12">
{!! Alert::render() !!}
@include('alerts.errors')
<!-- BEGIN Portlet PORTLET-->
<div class="portlet box green">
<div class="portlet-title">
<div class="caption">
... | 42,594 |
https://github.com/giseleblair/manager-ui/blob/master/src/apps/content-editor/src/app/views/ItemList/SetRow/DateCell/DateCell.js | Github Open Source | Open Source | Apache-2.0 | null | manager-ui | giseleblair | JavaScript | Code | 108 | 285 | import React from "react";
import cx from "classnames";
import moment from "moment-timezone";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import { faCalendar } from "@fortawesome/free-solid-svg-icons";
import styles from "./DateCell.less";
export const DateCell = React.memo(function DateCell(pro... | 25,769 |
https://github.com/JurrianFahner/ipf/blob/master/platform-camel/ihe/xacml20/src/test/java/org/openehealth/ipf/platform/camel/ihe/xacml20/chppq1/ChPpq1Test.java | Github Open Source | Open Source | Apache-2.0 | null | ipf | JurrianFahner | Java | Code | 725 | 3,506 | /*
* Copyright 2018 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 applicab... | 39,779 |
https://github.com/elBukkit/MagicAPI/blob/master/src/main/java/com/elmakers/mine/bukkit/api/magic/Messages.java | Github Open Source | Open Source | MIT | 2,020 | MagicAPI | elBukkit | Java | Code | 77 | 223 | package com.elmakers.mine.bukkit.api.magic;
import org.bukkit.inventory.ItemStack;
import java.util.Collection;
import java.util.List;
public interface Messages {
public String get(String key);
public String getRandomized(String key);
public String get(String key, String defaultValue);
public List<St... | 40,561 |
https://github.com/jxnu-liguobin/seckill-pro/blob/master/src/main/scala/io/github/dreamy/seckill/exception/GlobalException.scala | Github Open Source | Open Source | Apache-2.0 | 2,021 | seckill-pro | jxnu-liguobin | Scala | Code | 39 | 151 | package io.github.dreamy.seckill.exception
import io.github.dreamy.seckill.presenter.CodeMsg
/**
* 全局定义
*
* @author 梦境迷离
* @since 2019年8月1日
* @version v2.0
*/
@SerialVersionUID(1L)
case class GlobalException(cm: CodeMsg) extends RuntimeException {
def getCm() = cm
/** 这里直接打印出传入的异常信息. */
override def to... | 3,124 |
https://github.com/PonIC/PonIC/blob/master/src/org/apache/pig/backend/stratosphere/executionengine/contractsLayer/PactLauncher.java | Github Open Source | Open Source | Apache-2.0 | 2,013 | PonIC | PonIC | Java | Code | 476 | 1,809 | package org.apache.pig.backend.stratosphere.executionengine.contractsLayer;
import java.io.BufferedInputStream;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Properties;... | 12,105 |
https://github.com/hsjoberg/blixt-wallet/blob/master/ios/LndMobile/LndMobile.m | Github Open Source | Open Source | MIT | 2,023 | blixt-wallet | hsjoberg | Objective-C | Code | 121 | 689 | #import <React/RCTBridgeModule.h>
#import <React/RCTEventEmitter.h>
@interface RCT_EXTERN_MODULE(LndMobile, RCTEventEmitter)
RCT_EXTERN_METHOD(
initialize: (RCTPromiseResolveBlock)resolve
rejecter: (RCTPromiseRejectBlock)reject
)
RCT_EXTERN_METHOD(
checkStatus: (RCTPromiseResolveBlock)resolve
rejecter: (RCTP... | 51,100 |
https://github.com/dunglongtran/emoji-database/blob/master/bin/build-filesize-table.js | Github Open Source | Open Source | MIT | 2,017 | emoji-database | dunglongtran | JavaScript | Code | 129 | 425 | #! /usr/bin/env node
const fs = require('fs');
const path = require('path');
const glob = require('glob');
const chalk = require('chalk');
const gzip = require('gzip-size');
const size = require('filesize');
new Promise((resolve, reject) => {
glob(path.join(__dirname, '../{data,regex}/**/*.{js,json}'), (error, file... | 44,576 |
https://github.com/yukiasai/Nori/blob/master/NoriTests/ImageViewStyleTests.swift | Github Open Source | Open Source | MIT | 2,021 | Nori | yukiasai | Swift | Code | 72 | 236 | //
// ImageViewStyleTests.swift
// Nori
//
// Created by yukiasai on 2016/11/24.
// Copyright © 2016年 yukiasai. All rights reserved.
//
import XCTest
@testable import Nori
class ImageViewStyleTests: XCTestCase {
func testSuperViewStyle() {
let style = ImageViewStyle {
$0.backgroundColor = ... | 11,085 |
https://github.com/ecmwf/magics/blob/master/src/drivers/MgQ/MgQStepMetaData.cc | Github Open Source | Open Source | Zlib, LGPL-2.0-or-later, MIT, LicenseRef-scancode-other-permissive, Apache-2.0, LicenseRef-scancode-public-domain, BSD-2-Clause, xlock, LicenseRef-scancode-unknown-license-reference | 2,023 | magics | ecmwf | C++ | Code | 181 | 484 | /*
* (C) Copyright 1996-2016 ECMWF.
*
* This software is licensed under the terms of the Apache Licence Version 2.0
* which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
* In applying this licence, ECMWF does not waive the privileges and immunities
* granted to it by virtue of its status as an in... | 49,466 |
https://github.com/kuzzleio/sdk-java/blob/master/doc/3/controllers/auth/credentials-exist/snippets/credentials-exist.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | sdk-java | kuzzleio | Java | Code | 25 | 100 | ConcurrentHashMap<String, Object> credentials = new ConcurrentHashMap<>();
credentials.put("username", "foo");
credentials.put("password", "bar");
kuzzle.getAuthController().login("local", credentials).get();
Boolean exists = kuzzle.getAuthController().credentialsExist("local").get();
if (exists) {
System.out.printl... | 43,673 |
https://github.com/yuweijun/books/blob/master/corejava2e7/v1/v1ch11/BuggyButtonTest/BuggyButtonPanel.java | Github Open Source | Open Source | MIT | 2,018 | books | yuweijun | Java | Code | 78 | 290 | /**
@version 1.21 2002-07-06
@author Cay Horstmann
*/
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
class BuggyButtonPanel extends JPanel
{
public BuggyButtonPanel()
{
ActionListener listener = new ButtonListener();
JButton yellowButton = new JButton("Yellow");
... | 52,975 |
https://github.com/uniqueleon/DeadSea/blob/master/docker/disconf/nginx/Dockerfile | Github Open Source | Open Source | Apache-2.0 | 2,019 | DeadSea | uniqueleon | Dockerfile | Code | 54 | 324 | # Docker image of disconf nginx
# VERSION 0.0.1
# Author: uniquedawn
#基础镜像使用nginx:stable
FROM nginx:stable
#作者
MAINTAINER uniquedawn <uniquefarrel@126.com>
#定义工作目录
ENV WORK_PATH /usr/local/work/html
#定义nginx配置文件所在目录
ENV NGINX_CONF_DIR /etc/nginx
#定义nginx配置文件名称
ENV NGINX_CONF_FILE_NAME nginx.conf
#创建工作文件夹
RUN mkdi... | 8,658 |
https://github.com/daniel-tract/Learn_1/blob/master/app/models/Car.scala | Github Open Source | Open Source | Apache-2.0 | 2,014 | Learn_1 | daniel-tract | Scala | Code | 46 | 141 | package models
//import play.api.slick.Config.driver.simple._
/**
* Created by Daniel on 9/18/2014.
*/
case class Car (license: String, color: String)
//class CarsTable(tag: Tag) extends Table[Car](tag, "CAR") {
//def license = column[String]("license", O.PrimaryKey)
//def color = column[String]("color", O... | 36,768 |
https://github.com/the-recreators/multiple_select/blob/master/example/lib/multiple_elect_bak.dart | Github Open Source | Open Source | MIT | 2,020 | multiple_select | the-recreators | Dart | Code | 158 | 636 | import 'package:flutter/material.dart';
import 'package:multiple_select/multiple_select.dart';
class MultipleSelectBak extends StatefulWidget {
MultipleSelectBak({Key key, this.title}) : super(key: key);
final String title;
@override
_MultipleSelectState createState() => _MultipleSelectState();
}
class _Mult... | 34,183 |
https://github.com/future731/choreonoid/blob/master/src/Base/Archive.h | Github Open Source | Open Source | MIT | 2,019 | choreonoid | future731 | C | Code | 269 | 876 | /**
@author Shin'ichiro Nakaoka
*/
#ifndef CNOID_BASE_ARCHIVE_H
#define CNOID_BASE_ARCHIVE_H
#include <cnoid/ValueTree>
#include <cnoid/stdx/filesystem>
#include <string>
#include <functional>
#include "exportdecl.h"
namespace cnoid {
class Item;
class View;
class ViewManager;
class ArchiveSharedData;
class CNO... | 40,045 |
https://github.com/preetamdaila/reactPractice/blob/master/src/App.js | Github Open Source | Open Source | MIT | null | reactPractice | preetamdaila | JavaScript | Code | 106 | 333 | import React, { Suspense } from "react";
import { BrowserRouter as Router, Route, Routes } from "react-router-dom";
import "./App.css";
import Header from "./elements/Header";
import Footer from "./elements/Footer";
import Navbar from "./elements/Navbar";
import { FeaturesList } from "./constants/featuresList";
functi... | 38,956 |
https://github.com/Physer/Webficiency/blob/master/backend/src/Data/Entities/User.cs | Github Open Source | Open Source | Apache-2.0 | null | Webficiency | Physer | C# | Code | 109 | 215 | namespace Data.Entities;
public class User
{
public User(string username, string emailAddress)
{
Username = username;
EmailAddress = emailAddress;
}
public Guid Id { get; set; }
public string? Name { get; set; }
public string Username { get; set; }
public string EmailAddre... | 7,227 |
https://github.com/ozaslan/basics/blob/master/csm/sm/apps/ld_smooth.c | Github Open Source | Open Source | MIT | null | basics | ozaslan | C | Code | 290 | 1,045 | #include <options/options.h>
#include "../csm/csm_all.h"
struct {
/** Scale factor */
double scale_deg;
/** How many neighbours to consider */
int neighbours;
} p;
void ld_smooth(LDP ld, int neighbours, double scale_rad);
void convolve(const int*valid,const double*original, int n, double*dest, double*filter, ... | 49,031 |
https://github.com/MehreenT/mno-enterprise/blob/master/api/spec/controllers/mno_enterprise/jpi/v1/admin/app_reviews_controller_spec.rb | Github Open Source | Open Source | Apache-2.0 | 2,018 | mno-enterprise | MehreenT | Ruby | Code | 260 | 1,006 | require 'rails_helper'
module MnoEnterprise
include MnoEnterprise::TestingSupport::SharedExamples::JpiV1Admin
describe Jpi::V1::Admin::AppReviewsController, type: :controller do
render_views
routes { MnoEnterprise::Engine.routes }
before { request.env['HTTP_ACCEPT'] = 'application/json' }
let(:use... | 9,457 |
https://github.com/chenkaibin/ovirt-engine/blob/master/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/businessentities/storage/UnregisteredDiskId.java | Github Open Source | Open Source | Apache-2.0 | 2,018 | ovirt-engine | chenkaibin | Java | Code | 146 | 482 | package org.ovirt.engine.core.common.businessentities.storage;
import java.io.Serializable;
import java.util.Objects;
import org.ovirt.engine.core.compat.Guid;
public class UnregisteredDiskId implements Serializable, Comparable<UnregisteredDiskId> {
private static final long serialVersionUID = 20125906272922390... | 22,275 |
https://github.com/deepcloudlabs/dcl375-2020-jan-27/blob/master/game-boot/src/main/java/com/example/game/GameBootApplication.java | Github Open Source | Open Source | MIT | 2,020 | dcl375-2020-jan-27 | deepcloudlabs | Java | Code | 21 | 84 | package com.example.game;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class GameBootApplication {
public static void main(String[] args) {
SpringApplication.run(GameBootApplication.class, args);
... | 29,261 |
https://github.com/vaidehijoshi/iris/blob/master/src/utils/events/stopPrevent.ts | Github Open Source | Open Source | MIT | 2,022 | iris | vaidehijoshi | TypeScript | Code | 28 | 80 | import { SyntheticEvent } from 'react';
export function stopPrevent<Event extends SyntheticEvent<any>>(
callback: (event: Event) => void
) {
return (event: Event) => {
event.preventDefault();
event.stopPropagation();
callback(event);
};
}
| 49,067 |
https://github.com/MaryleneH/golemtrends/blob/master/R/mod_sous_onglet_quatre.R | Github Open Source | Open Source | MIT | 2,021 | golemtrends | MaryleneH | R | Code | 115 | 471 | #' sous_onglet_quatre UI Function
#'
#' @description A shiny Module.
#'
#' @param id,input,output,session Internal parameters for {shiny}.
#'
#' @noRd
#'
#' @importFrom shiny NS tagList
mod_sous_onglet_quatre_ui <- function(id){
ns <- NS(id)
tagList(
fluidRow(
column(3,
mod_sideBar_one_keywor... | 30,685 |
https://github.com/ComputerSystemsLab/OptimizationCache/blob/master/benchmarks/Angha_original/extr_ibmveth_ibmveth_start_xmit/extr_ibmveth_ibmveth_start_xmit.c | Github Open Source | Open Source | Apache-2.0 | 2,021 | OptimizationCache | ComputerSystemsLab | C | Code | 971 | 3,543 | #define NULL ((void*)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t; typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1
/* Forward d... | 31,222 |
https://github.com/Patroklo/laravel-multiple-stapler/blob/master/src/Models/StaplerFiles.php | Github Open Source | Open Source | MIT | 2,017 | laravel-multiple-stapler | Patroklo | PHP | Code | 248 | 797 | <?php
namespace Cyneek\LaravelMultipleStapler\Models;
use Codesleeve\Stapler\ORM\EloquentTrait;
use Codesleeve\Stapler\ORM\StaplerableInterface;
use Cyneek\LaravelMultipleStapler\Interfaces\LaravelStaplerInterface;
use Illuminate\Database\Eloquent\Model;
/**
* Class StaplerFiles
*
* Will handle all the file and da... | 20,793 |
https://github.com/kidmam/kotlin-boot-camp/blob/master/lecture05/src/main/kotlin/io/rybalkinsd/kotlinbootcamp/practice/server/ChatController.kt | Github Open Source | Open Source | MIT | 2,018 | kotlin-boot-camp | kidmam | Kotlin | Code | 166 | 603 | package io.rybalkinsd.kotlinbootcamp.practice.server
import io.rybalkinsd.kotlinbootcamp.util.logger
import org.springframework.http.MediaType
import org.springframework.http.ResponseEntity
import org.springframework.stereotype.Controller
import org.springframework.web.bind.annotation.RequestMapping
import org.springf... | 37,949 |
https://github.com/teekam-chand-khandelwal/ENVIRONMENTAL-VERIFICATION-EXAMPLES/blob/master/sim/D_FLIP_FLOP/SIM/gen.sv | Github Open Source | Open Source | Apache-2.0 | 2,021 | ENVIRONMENTAL-VERIFICATION-EXAMPLES | teekam-chand-khandelwal | null | Spoken | 59 | 249 | //********************************************
`ifndef __dff_gen__
`define __dff_gen__
//`include "d_pkt.sv"
//`include "d_cfg.sv"
class d_gen;
d_cfg cfg;
d_pkt pkt;
mailbox gen2drv;
mailbox gen2sb;
function new(d_cfg cfg,mailbox gen2drv,mailbox gen2sb,d_pkt pkt);
this.cfg = cfg;
this.gen2drv = gen2drv;
... | 39,847 |
https://github.com/Sbte/i-emic/blob/master/legacy/post_eigen.f | Github Open Source | Open Source | Apache-2.0 | 2,021 | i-emic | Sbte | null | Spoken | 1,934 | 12,568 | ********************************************************************
* Postprocessing written for analysis interdecadal mode
* Assumes that real part of eigenvector is in column jevr,
* imaginary part in column jevi
********************************************************************
SUBROUTINE wts(un,w,t,s)
... | 19,609 |
https://github.com/HiraokaHyperTools/AxTIF5/blob/master/TIFViewer/TIFViewer.cpp | Github Open Source | Open Source | BSD-3-Clause | null | AxTIF5 | HiraokaHyperTools | C++ | Code | 279 | 1,786 |
// TIFViewer.cpp : アプリケーションのクラス動作を定義します。
//
#include "pch.h"
#include "framework.h"
#include "afxwinappex.h"
#include "afxdialogex.h"
#include "TIFViewer.h"
#include "MainFrm.h"
#include "TIFViewerDoc.h"
#include "TIFViewerView.h"
#include "../TIFPart/TIFFDoc.h"
#include "../TIFPart/TIFFView.h"
#ifdef _DEBUG
#def... | 1,547 |
https://github.com/csells/curlconverter/blob/master/test/fixtures/wget/put_basic_auth_json_data.sh | Github Open Source | Open Source | MIT | 2,023 | curlconverter | csells | Shell | Code | 20 | 112 | wget --method=PUT \
--header="Content-Type: application/x-www-form-urlencoded" \
--user=admin \
--password=123 \
--auth-no-challenge \
--body-data='{"admins":{"names":[], "roles":[]}, "readers":{"names":["joe"],"roles":[]}}' \
--output-document - \
http://localhost:28139/test/_security
| 46,094 |
https://github.com/hunyxv/go-dao/blob/master/error.go | Github Open Source | Open Source | Apache-2.0 | 2,020 | go-dao | hunyxv | Go | Code | 269 | 493 | // Package dao provides a data access object library.
//
// Copyright 2016 Pedro Salgado
//
// 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... | 46,717 |
https://github.com/agiledon/diamond/blob/master/diamond-demo/diamond-order/src/main/java/xyz/zhangyi/diamond/demo/ordercontext/south/port/publishers/OrderPlacedEventPublisher.java | Github Open Source | Open Source | Apache-2.0 | 2,023 | diamond | agiledon | Java | Code | 17 | 136 | package xyz.zhangyi.diamond.demo.ordercontext.south.port.publishers;
import xyz.zhangyi.diamond.demo.foundation.stereotype.Port;
import xyz.zhangyi.diamond.demo.foundation.stereotype.PortType;
import xyz.zhangyi.diamond.demo.ordercontext.north.message.OrderPlaced;
@Port(PortType.Publisher)
public interface OrderPlace... | 31,587 |
https://github.com/AzamatIbraimov/CashbackAPI/blob/master/src/main/java/kg/nurtelecom/cashbackapi/service/UserService.java | Github Open Source | Open Source | MIT | 2,021 | CashbackAPI | AzamatIbraimov | Java | Code | 66 | 317 | package kg.nurtelecom.cashbackapi.service;
import kg.nurtelecom.cashbackapi.entity.User;
import kg.nurtelecom.cashbackapi.model.ManagerListDto;
import kg.nurtelecom.cashbackapi.model.OrganizationManagerDto;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springf... | 23,624 |
https://github.com/jamesu/xtal-language/blob/master/src/xtal/xtal_xpeg.cpp | Github Open Source | Open Source | Zlib, MIT | 2,013 | xtal-language | jamesu | C++ | Code | 1,741 | 8,395 | #include "xtal.h"
#include "xtal_bind.h"
#include "xtal_macro.h"
#include "xtal_stringspace.h"
namespace xtal{ namespace xpeg{
enum{ NFA_STATE_START = 0, NFA_STATE_FINAL = 1 };
Executor::Executor(const StringPtr& source_name){
source_name_ = source_name;
cap_ = XNew<Map>();
tree_ = XNew<TreeNode>();
errors_ = n... | 3,447 |
https://github.com/rjelonek/clangFormat-Builder/blob/master/src/app/ClangFormat/EncodingConverter.h | Github Open Source | Open Source | Apache-2.0 | 2,022 | clangFormat-Builder | rjelonek | C | Code | 46 | 182 | #ifndef EncodingConverterH
#define EncodingConverterH
#include "Message.h"
#include <System.hpp>
namespace ClangFormat
{
enum class ConvertingResult
{
Ok,
AlreadySavedWithDesiredEncoding,
Failed
};
namespace SystemExtension
{
TByteDynArray Concat(TByteDynArray &first, TByteDynArray &second);
};
clas... | 25,850 |
https://github.com/KyberNetwork/reserve-stats/blob/master/accounting/reserve-rate/storage/postgres/accounting_rates_postgres_init.go | Github Open Source | Open Source | MIT | 2,022 | reserve-stats | KyberNetwork | Go | Code | 352 | 990 | package postgres
import (
"github.com/jmoiron/sqlx"
"go.uber.org/zap"
"github.com/KyberNetwork/reserve-stats/lib/caller"
"github.com/KyberNetwork/reserve-stats/lib/pgsql"
)
// NewDB return the Ratestorage instance. User must call ratestorage.Close() before exit.
// tableNames is a list of 5 string for 5 tablenam... | 44,291 |
https://github.com/thejavamonk/datastructures/blob/master/queue/src/com/codeprep/queue/linkedlist/impl/DemoQueueUsingList.java | Github Open Source | Open Source | MIT | null | datastructures | thejavamonk | Java | Code | 137 | 466 | package com.codeprep.queue.linkedlist.impl;
import java.util.Scanner;
public class DemoQueueUsingList {
public static void main(String[] args) {
int choice, x;
Scanner scan = new Scanner(System.in);
QueueL queueL = new QueueL();
while(true) {
System.out.println("1. insert an element in the queue");... | 53,050 |
https://github.com/gvillazon/origin/blob/master/pkg/oc/clusterup/clusteradd/add_cmd.go | Github Open Source | Open Source | Apache-2.0 | 2,018 | origin | gvillazon | Go | Code | 369 | 1,386 | package clusteradd
import (
"fmt"
"os"
"path"
"strings"
"github.com/openshift/origin/pkg/cmd/util/variable"
"github.com/openshift/origin/pkg/oc/clusterup/docker/dockerhelper"
"github.com/openshift/origin/pkg/version"
"github.com/spf13/cobra"
"k8s.io/apimachinery/pkg/util/sets"
"k8s.io/client-go/tools/client... | 2,451 |
https://github.com/clintmasden/blockstream.esplora.client/blob/master/Esplora.Client/Models/MemoryPoolTransaction.cs | Github Open Source | Open Source | MIT | null | blockstream.esplora.client | clintmasden | C# | Code | 40 | 93 | using Newtonsoft.Json;
namespace Esplora.Client.Models
{
public class MemoryPoolTransaction
{
public string Txid { get; set; }
public int Fee { get; set; }
[JsonProperty("Vsize")] public int Size { get; set; }
public long Value { get; set; }
}
} | 12,822 |
https://github.com/kolaedr/cake/blob/master/app/AdditionalDecoration.php | Github Open Source | Open Source | MIT | 2,020 | cake | kolaedr | PHP | Code | 81 | 305 | <?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class AdditionalDecoration extends Model
{
protected $table = 'additional_decorations';
protected $fillable = [
'name',
'slug',
'price',
'image',
'describe',
'visible',
];
// public function ... | 2,649 |
https://github.com/Swall0w/chainer-cyclegan/blob/master/single_image_test.py | Github Open Source | Open Source | MIT | 2,022 | chainer-cyclegan | Swall0w | Python | Code | 194 | 751 | #!/usr/bin/env python
import os
#import glob
import numpy as np
import chainer
import chainer.cuda
from chainer import cuda, serializers, Variable
from chainer import training
import chainer.functions as F
import cv2
import argparse
import common.net as net
import datasets
#from PIL import Image
from utils import *
i... | 48,002 |
https://github.com/jayfuel72/ngx/blob/master/apps/api/src/app/external/weather/weather.service.spec.ts | Github Open Source | Open Source | MIT | 2,019 | ngx | jayfuel72 | TypeScript | Code | 61 | 164 | import { Test, TestingModule } from '@nestjs/testing';
import { WeatherService } from './weather.service';
import { HttpModule } from '@nestjs/common';
import { CacheModule } from '../../cache';
describe('WeatherService', () => {
let service: WeatherService;
beforeAll(async () => {
const module: TestingModule... | 42,831 |
https://github.com/bankerneel/build/blob/master/tools/cc/CMakeFiles/eosio-cpp.dir/cmake_clean.cmake | Github Open Source | Open Source | BSL-1.0, Apache-2.0, MIT | 2,021 | build | bankerneel | CMake | Code | 17 | 113 | file(REMOVE_RECURSE
"CMakeFiles/eosio-cpp.dir/__/eosio-cpp.cpp.o"
"eosio-cpp.pdb"
"eosio-cpp"
)
# Per-language clean rules from dependency scanning.
foreach(lang CXX)
include(CMakeFiles/eosio-cpp.dir/cmake_clean_${lang}.cmake OPTIONAL)
endforeach()
| 12,829 |
https://github.com/rizwanzaheer/tlsVuesion/blob/master/src/app/shared/designSystem/variables/_card.scss | Github Open Source | Open Source | MIT | 2,019 | tlsVuesion | rizwanzaheer | SCSS | Code | 43 | 278 | $card-bg: $brand-bg-color-variant;
$card-shadow: none;
$card-border: 1px solid $brand-border-color;
$card-border-radius: 0;
$card-margin: 0;
$card-color: $brand-text-color;
$card-header-padding: $space-8 $space-16;
$card-header-image-size: $space-40;
$card-header-image-border-radius: 50%;
$card-header-image-margin: $s... | 14,250 |
https://github.com/HinchK/gitlabhq/blob/master/spec/frontend/vue_shared/components/color_select_dropdown/color_item_spec.js | Github Open Source | Open Source | MIT | null | gitlabhq | HinchK | JavaScript | Code | 91 | 297 | import { shallowMountExtended } from 'helpers/vue_test_utils_helper';
import { hexToRgb } from '~/lib/utils/color_utils';
import ColorItem from '~/vue_shared/components/color_select_dropdown/color_item.vue';
import { color } from './mock_data';
describe('ColorItem', () => {
let wrapper;
const propsData = color;
... | 38,410 |
https://github.com/Pradyumnabiswal99/RestApiFounder/blob/master/portal/startups/static/js/winston-admin.js | Github Open Source | Open Source | MIT | 2,020 | RestApiFounder | Pradyumnabiswal99 | JavaScript | Code | 199 | 780 | /*function showMatchData() {
if($('th[match]:visible, td[match]:visible').length != 0) return;
$('th[setting], td[setting]').stop(true,true).hide();
$('th[match], td[match]').stop(true,true).show();
}
function showSettingData() {
if($('th[setting]:visible, td[setting]:visible').length != 0) return;
... | 13,907 |
https://github.com/skygithub2016/marker2aeq/blob/master/marker2sequence-web/src/main/webapp/WEB-INF/webPages/marker2seq/searchWholeAnnotation/index_body.jsp | Github Open Source | Open Source | Apache-2.0 | null | marker2aeq | skygithub2016 | null | Spoken | 84 | 459 | <%--
Document : index_body
Created on : Mar 28, 2012, 4:57:30 PM
Author : Pierre-Yves Chibon -- py@chibon.fr
--%>
<%@taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@taglib uri="http://struts.apache.org/tags-logic"... | 14,342 |
https://github.com/Ateneo-ACTM/actm-website/blob/master/src/templates/story-page/index.js | Github Open Source | Open Source | MIT | 2,020 | actm-website | Ateneo-ACTM | JavaScript | Code | 278 | 1,023 | import React, { Fragment } from "react"
import Layout from "../../components/Layout"
import { graphql, Link } from "gatsby"
import remark from "remark"
import recommended from "remark-preset-lint-recommended"
import remarkHtml from "remark-html"
import {
Height,
Cover,
Wrapper,
Container,
BackWrapper,
BackC... | 31,158 |
https://github.com/JoelWandrei/Auth0-Login-Template/blob/master/LTClient/src/app/content/content.component.ts | Github Open Source | Open Source | MIT | null | Auth0-Login-Template | JoelWandrei | TypeScript | Code | 42 | 135 | import { Component, OnInit } from '@angular/core';
import { DataService } from '../data.service';
@Component({
selector: 'app-content',
templateUrl: './content.component.html',
styleUrls: ['./content.component.css']
})
export class ContentComponent implements OnInit {
pingResult;
constructor(private dataSe... | 12,384 |
https://github.com/ndizazzo/nomics-swift-sdk/blob/master/NomicsSDK/Tests/NomicsSDKTests/Endpoints/ExchangeRateEndpointTests.swift | Github Open Source | Open Source | MIT | 2,021 | nomics-swift-sdk | ndizazzo | Swift | Code | 140 | 810 | //
// ExchangeRateEndpointTests.swift
// Nomics SDK
//
// Created by Nick DiZazzo on 2019-01-27.
// Copyright © 2019 NomicsSDK. All rights reserved.
//
import XCTest
@testable import NomicsSDK
final class ExchangeRateEndpointTests: XCTestCase {
func testEndpointPathsAreCorrect() {
XCTAssertEqual(Endpo... | 41,149 |
https://github.com/kamrann/FlowGraph/blob/master/Source/FlowEditor/Public/Nodes/AssetTypeActions_FlowNodeBlueprint.h | Github Open Source | Open Source | MIT | 2,021 | FlowGraph | kamrann | C++ | Code | 58 | 173 | #pragma once
#include "AssetTypeActions/AssetTypeActions_Blueprint.h"
class FAssetTypeActions_FlowNodeBlueprint final : public FAssetTypeActions_Blueprint
{
public:
virtual FText GetName() const override;
virtual uint32 GetCategories() override;
virtual FColor GetTypeColor() const override { return FColor(255, 196... | 36,941 |
https://github.com/yisiying/NaiveVideoConference/blob/master/statistics/src/main/scala/org/seekloud/theia/statistics/components/PopWindow.scala | Github Open Source | Open Source | MIT | null | NaiveVideoConference | yisiying | Scala | Code | 125 | 561 | package org.seekloud.theia.statistics.components
import mhtml.{Var, _}
import org.scalajs.dom
import org.scalajs.dom.Event
/**
* create by 13
* 2019/7/19 12:17 AM
*
* 一般的弹窗结构
*/
object PopWindow {
val showPop = Var(emptyHTML)
//阻止事件冒泡防止弹窗消失
def stopCancel(e: Event, id: String): Unit = {
//stop... | 29,097 |
https://github.com/ImperiousEnterprise/oraChatChallenge/blob/master/src/main/java/ora/chat/application/repositories/MessageRepository.java | Github Open Source | Open Source | MIT | 2,017 | oraChatChallenge | ImperiousEnterprise | Java | Code | 21 | 109 | package ora.chat.application.repositories;
import ora.chat.application.models.Message;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.repository.PagingAndSortingRepository;
public interface MessageRepository extends PagingAndSortingReposit... | 9,033 |
https://github.com/whupanyinghua/martinJ/blob/master/src/main/java/com/pyh/openfeign/OpenFeignInter.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | martinJ | whupanyinghua | Java | Code | 30 | 117 | package com.pyh.openfeign;
import java.util.List;
import feign.Param;
import feign.RequestLine;
public interface OpenFeignInter {
@RequestLine("GET /repos/{owner}/{repo}/contributors")
List<Contributor> getContributors(@Param("owner") String owner, @Param("repo") String repository);
class Contr... | 20,436 |
https://github.com/carolahp/pharo/blob/master/src/Morphic-Widgets-Extra/DockingBarMenuLineMorph.class.st | Github Open Source | Open Source | MIT | 2,018 | pharo | carolahp | null | Spoken | 164 | 459 | "
A DockingBarMenuLineMorph is specialized version of its superclass for DockingBar behavior.
"
Class {
#name : #DockingBarMenuLineMorph,
#superclass : #MenuLineMorph,
#category : #'Morphic-Widgets-Extra'
}
{ #category : #layout }
DockingBarMenuLineMorph >> minHeight [
"Answer the receiver's minHeight"
^owner ... | 7,388 |
https://github.com/jbdatascience/causal_twitter_modeling_covid19/blob/master/source/eval_utils.py | Github Open Source | Open Source | MIT | 2,020 | causal_twitter_modeling_covid19 | jbdatascience | Python | Code | 77 | 266 | '''
utility functions related to evaluation
'''
import json
from configs import config as cf
def save_logs(countries, metrics, dict_name):
'''
[metrics] : list
[dict_name] : str
'''
logs_dict = {'countries': countries, 'metrics': metrics}
logs_json = json.dumps(logs_dict)
f = open('{}/... | 12,722 |
https://github.com/outoforgeducation/late/blob/master/server/api/blocks/blocks.controller.js | Github Open Source | Open Source | MIT | 2,022 | late | outoforgeducation | JavaScript | Code | 1,980 | 5,657 | const Course = require('../courses/courses.model')
const Block = require('./blocks.model')
const Assignment = require('../assignments/assignments.model')
const Exam = require('../exams/exams.model')
const Todo = require('../todos/todos.model')
const logger = require('../../modules/logger')
const google = require('../.... | 5,233 |
https://github.com/Itsqy/WEB-PPDB/blob/master/resources/views/user/content/editformulir.blade.php | Github Open Source | Open Source | MIT | null | WEB-PPDB | Itsqy | PHP | Code | 843 | 4,243 | @extends('user.template')
@section('content')
<form action="{{ route('updata', $formulir->id) }}" method="post" enctype="multipart/form-data" data-aos="zoom-out">
@csrf
@method('put')
<div class="row">
<div class="col-md-12">
<div class="card">
... | 38,285 |
https://github.com/talsma-ict/umldoclet/blob/master/src/plantuml-asl/src/net/sourceforge/plantuml/ugraphic/g2d/DriverPathG2d.java | Github Open Source | Open Source | Apache-2.0 | 2,023 | umldoclet | talsma-ict | Java | Code | 515 | 1,767 | /* ========================================================================
* PlantUML : a free UML diagram generator
* ========================================================================
*
* (C) Copyright 2009-2023, Arnaud Roques
*
* Project Info: https://plantuml.com
*
* If you like this project or if ... | 41,043 |
https://github.com/gforge/pngjs3/blob/master/test/grayscale_16bit-spec.js | Github Open Source | Open Source | MIT | 2,022 | pngjs3 | gforge | JavaScript | Code | 333 | 864 | #!/usr/bin/env babel-node
import fs from 'fs';
import test from 'tape';
import PNG from '../lib/png';
test('read grayscale 16bit and check output', function(t) {
t.timeoutAfter(1000 * 60 * 5);
const png = new PNG({ skipRescale: true });
try {
png.grayscaleData();
t.fail('Invalid grayscale conversion');
... | 20,282 |
https://github.com/tanglingshu/black-parrot/blob/master/bp_be/src/include/bp_be_dcache_pkt.vh | Github Open Source | Open Source | BSD-3-Clause | 2,021 | black-parrot | tanglingshu | null | Spoken | 50 | 260 | /**
* Name:
* bp_be_dcache_pkt.vh
*
* Description:
* dcache packet format to be sent from mmu.
*/
`ifndef BP_BE_DCACHE_PKT_VH
`define BP_BE_DCACHE_PKT_VH
`define declare_bp_be_dcache_pkt_s(page_offset_width_mp, data_width_mp) \
typedef struct packed { \
bp_be_d... | 39,550 |
https://github.com/hao-wang/Montage/blob/master/js-test-suite/testsuite/c2acb8d24e8ba3357ad7bdc84250c3c1.js | Github Open Source | Open Source | MIT | 2,020 | Montage | hao-wang | JavaScript | Code | 35 | 123 | load("201224b0d1c296b45befd2285e95dd42.js");
// Clearing a Set after deleting some entries works.
var s = new Set(["a", "b", "c", "d"]);
for (var v of s)
if (v !== "c")
s.delete(v);
s.clear();
assertEq(s.size, 0);
assertEq(s.has("c"), false);
assertEq(s.has("d"), false);
| 23,916 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.