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/lyminhnghia/Multiple-Language-Menu/blob/master/client/src/redux/error.redux.js | Github Open Source | Open Source | MIT | null | Multiple-Language-Menu | lyminhnghia | JavaScript | Code | 121 | 258 | import { createReducer, createActions } from "reduxsauce";
import { getError } from "../utils";
/* ------------- Types and Action Creators ------------- */
const { Types, Creators } = createActions({
resetError: [],
failure: ["data"],
});
export const ErrorTypes = Types;
export default Creators;
/* -------------... | 22,132 |
https://github.com/yume-chan/node-svn/blob/master/src/uv/future.hpp | Github Open Source | Open Source | MIT | null | node-svn | yume-chan | C++ | Code | 120 | 373 | #include <future>
namespace uv {
template <class T>
class future {
public:
using value_type = T;
future(std::future<T>& future)
: value(std::move(future)) {}
T get() {
return value.get();
}
private:
std::future<T> value;
};
template <class T>
class future<T&> {
public:
... | 27,543 |
https://github.com/axkibe/node-vtk/blob/master/wrappers/7.0.0/vtkAreaPickerWrap.cc | Github Open Source | Open Source | BSD-3-Clause | 2,020 | node-vtk | axkibe | C++ | Code | 994 | 5,349 | /* this file has been autogenerated by vtkNodeJsWrap */
/* editing this might proof futile */
#define VTK_WRAPPING_CXX
#define VTK_STREAMS_FWD_ONLY
#include <nan.h>
#include "vtkAbstractPropPickerWrap.h"
#include "vtkAreaPickerWrap.h"
#include "vtkObjectWrap.h"
#include "vtkRendererWrap.h"
#include "vtkAbstractMapper... | 42,021 |
https://github.com/elveahuang/platform/blob/master/platform-commons/platform-commons/src/main/java/cn/elvea/platform/commons/utils/CollectionUtils.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | platform | elveahuang | Java | Code | 119 | 424 | package cn.elvea.platform.commons.utils;
import com.google.common.collect.Lists;
import org.springframework.lang.Nullable;
import java.util.*;
import java.util.stream.Collectors;
/**
* CollectionUtils
*
* @author elvea
* @since 0.0.1
*/
public abstract class CollectionUtils extends org.springframework.util.Coll... | 47,620 |
https://github.com/warsier/nstore/blob/master/misc/linux-examples/icount/icount.c | Github Open Source | Open Source | BSD-3-Clause | 2,021 | nstore | warsier | C | Code | 1,050 | 2,465 | /*
* Copyright (c) 2013, Intel Corporation
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and... | 19,386 |
https://github.com/otvorenesudy/otvorenesudy/blob/master/app/serializers/legislation_area_serializer.rb | Github Open Source | Open Source | ECL-1.0 | 2,020 | otvorenesudy | otvorenesudy | Ruby | Code | 7 | 19 | class LegislationAreaSerializer < ActiveModel::Serializer
attributes :value
end
| 11,657 |
https://github.com/Md-shefat-masum/laravel_custom_autentication/blob/master/app/Http/Controllers/CAuth.php | Github Open Source | Open Source | MIT | null | laravel_custom_autentication | Md-shefat-masum | PHP | Code | 19 | 59 | <?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
class CAuth extends Controller
{
public static function AuthInfo()
{
return session()->get('user_info');
}
}
| 14,637 |
https://github.com/rijwanc007/accounting/blob/master/app/Http/Controllers/Admin/JournalController.php | Github Open Source | Open Source | MIT | null | accounting | rijwanc007 | PHP | Code | 446 | 2,820 | <?php
namespace App\Http\Controllers\Admin;
use App\Activity;
use App\Chartofaccount;
use App\Http\Controllers\Controller;
use App\Journal;
use App\SisterConcern;
use DateTime;
use DateTimeZone;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\Session;
class JournalCon... | 1,912 |
https://github.com/azu/Surikae/blob/master/test/SurikaeTest/iUnitTest/Tests/Foo.h | Github Open Source | Open Source | BSD-2-Clause, BSD-3-Clause | 2,012 | Surikae | azu | Objective-C | Code | 38 | 104 | //
// Foo.h
// SurikaeTest
//
// Created by Ito Katsuyoshi on 12/02/19.
// Copyright (c) 2012年 ITO SOFT DESIGN Inc. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface Foo : NSObject
+ (NSString *)foo;
- (NSString *)foo;
@end
| 29,994 |
https://github.com/sunmoon11/greenaira/blob/master/tpl-edit-item.php | Github Open Source | Open Source | MIT | null | greenaira | sunmoon11 | PHP | Code | 736 | 2,131 | <?php
/*
* Template Name: User Edit Item
*
* This template must be assigned to the edit-item page
* in order for it to work correctly
*
*/
global $wpdb;
$debugOn = array();
$current_user = wp_get_current_user(); // grabs the user info and puts into vars
// get the ad id from the querystring.
$aid = appthemes_nu... | 39,688 |
https://github.com/XtremeGood/Mailer/blob/master/src/mailer/main.py | Github Open Source | Open Source | MIT | 2,020 | Mailer | XtremeGood | Python | Code | 186 | 1,183 | import os
import smtplib
import subprocess
import sys
from time import sleep
from PyQt5 import QtWidgets
from PyQt5 import QtGui, QtCore
from PyQt5.QtWidgets import QFileDialog, QToolTip
from PyQt5.QtGui import QFont, QValidator
from mailer.sendmailer import sendMail
from mailer.UIdesign import Ui_MainWindow
def au... | 12,857 |
https://github.com/prasantkumar123/smash-problems/blob/master/main.js | Github Open Source | Open Source | MIT | 2,021 | smash-problems | prasantkumar123 | JavaScript | Code | 683 | 2,604 | window.addEventListener('load', function(){
// console.log('hi')
var count = 0;
var searchIcon = document.getElementById('searchIcon');
var searchBox = document.getElementById('searchBox');
searchIcon.addEventListener('click', function(){
count++;
if(count % 2 != 0){
searchBox.style.height = '8r... | 16,986 |
https://github.com/madiepev/mslearn-deep-learning/blob/master/Allfiles/Labs/01-preprocess-data/script/preprocess-rapids.py | Github Open Source | Open Source | MIT | 2,022 | mslearn-deep-learning | madiepev | Python | Code | 446 | 1,605 | # import libraries
import os
import argparse
import cudf
import mlflow
# define functions
def main():
# Set the columns and their datatypes for conversion and parsing
cols = ['Flight_Number_Reporting_Airline', 'Year', 'Quarter', 'Month', 'DayOfWeek', 'DOT_ID_Reporting_Airline', 'OriginCityMarketID', 'DestC... | 34,792 |
https://github.com/unix8net/sayhi/blob/master/src/sayhiservice/web/common/Uploader/UploadConfigInfo.cs | Github Open Source | Open Source | Apache-2.0 | 2,017 | sayhi | unix8net | C# | Code | 228 | 565 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace common
{
public class WaterPosition
{
public float X { get; set; }
public float Y { get; set; }
}
public enum ThumbnailMode
{
/// <summary>
/// 按指定宽高适应缩小
/// </su... | 26,998 |
https://github.com/Noorbakht/Offensive-Tweet-Detection/blob/master/node_modules/rainbow-node-sdk/lib/services/ImsService.js | Github Open Source | Open Source | MIT | null | Offensive-Tweet-Detection | Noorbakht | JavaScript | Code | 4,015 | 11,072 | "use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Refl... | 42,544 |
https://github.com/JohnSodium/tflite-micro/blob/master/tensorflow/lite/micro/integration_tests/seanet/transpose_conv/Makefile.inc | Github Open Source | Open Source | Apache-2.0 | 2,021 | tflite-micro | JohnSodium | Makefile | Code | 51 | 835 | integration_tests_seanet_transpose_conv_GENERATOR_INPUTS := \
tensorflow/lite/micro/integration_tests/seanet/transpose_conv/transpose_conv0.tflite \
tensorflow/lite/micro/integration_tests/seanet/transpose_conv/transpose_conv1.tflite \
tensorflow/lite/micro/integration_tests/seanet/transpose_conv/transpose_conv2.tflite... | 7,141 |
https://github.com/shihyu/golang/blob/master/goWebActualCombat/chapter7/picShow.go | Github Open Source | Open Source | MIT | 2,022 | golang | shihyu | Go | Code | 137 | 703 | //++++++++++++++++++++++++++++++++++++++++
// 《Go Web编程实战派从入门到精通》源码
//++++++++++++++++++++++++++++++++++++++++
// Author:廖显东(ShirDon)
// Blog:https://www.shirdon.com/
// 仓库地址:https://gitee.com/shirdonl/goWebActualCombat
// 仓库地址:https://github.com/shirdonl/goWebActualCombat
//++++++++++++++++++++++++++++++++++++++++
pac... | 16,391 |
https://github.com/ngquerol/DockerStatsMenu/blob/master/DockerStatsMenu/CompletionsWindow.swift | Github Open Source | Open Source | MIT | 2,020 | DockerStatsMenu | ngquerol | Swift | Code | 61 | 179 | //
// CompletionsWindow.swift
// DockerStatsMenu
//
// Created by Nicolas Gaulard-Querol on 29/12/2016.
// Copyright © 2016 Nicolas Gaulard-Querol. All rights reserved.
//
import Cocoa
class CompletionsWindow: NSWindow {
override init(contentRect: NSRect, styleMask style: NSWindowStyleMask, backing buffering... | 22,525 |
https://github.com/lonisletend/smartblog/blob/master/app/models/record.py | Github Open Source | Open Source | Apache-2.0 | 2,022 | smartblog | lonisletend | Python | Code | 49 | 200 | from app import db
from datetime import datetime
class Record(db.Model):
id = db.Column(db.Integer, primary_key=True)
art_id = db.Column(db.Integer, index=True)
user_id = db.Column(db.Integer, index=True)
username = db.Column(db.String(32))
rtime = db.Column(db.DateTime, index=True, default=datetim... | 13,660 |
https://github.com/nlysenko/Triplr/blob/master/components/@triplr/mobile/src/app/components/TripName/index.tsx | Github Open Source | Open Source | MIT | null | Triplr | nlysenko | TypeScript | Code | 56 | 203 | /**
*
* TripName
*
*/
import { View, Text } from 'react-native'
import { Trip } from '@/app/types/Trip'
import { styles } from './styles'
interface Props {
trip: Trip
}
export function TripName({ trip }: Props) {
return (
<View>
<Text style={styles.tripName}>{trip.name}</Text>
<View style=... | 28,300 |
https://github.com/hbussell/pinax-tracker/blob/master/apps/pyvcal/revisionproperties.py | Github Open Source | Open Source | MIT | 2,010 | pinax-tracker | hbussell | Python | Code | 90 | 260 | class RevisionProperties(object):
"""Metadata for a revision"""
def get_revision(self):
"""Return the revision to which these properties apply."""
pass
def get_commit_message(self):
"""Return a unicode string containing the commit message for the Revision."""
pa... | 18,729 |
https://github.com/pradeeplx/giving-impact/blob/master/application/views/donate/index.php | Github Open Source | Open Source | MIT | 2,015 | giving-impact | pradeeplx | PHP | Code | 745 | 2,667 | <?php $this->load->view('components/_external_header', array( 'title_action' => 'Donate' )) ?>
<div class="row main">
<div class="small-12 medium-7 medium-push-5 columns">
<div class="row">
<header>
<div class="small-12 columns">
<div class="logo">
... | 22,271 |
https://github.com/rickintveld/daytrading-journal-api/blob/master/src/Domain/Builder/UserBuilder.php | Github Open Source | Open Source | Unlicense | null | daytrading-journal-api | rickintveld | PHP | Code | 51 | 184 | <?php
namespace App\Domain\Builder;
use App\Domain\Model\User;
use Symfony\Component\Uid\Uuid;
/**
* @package App\Infrastructure\Builder
*/
class UserBuilder implements Builder
{
/**
* @param array<string, string|int> $arguments
* @return \App\Domain\Model\User
* @throws \Exception
*/
p... | 46,811 |
https://github.com/bouzuya/rally-cli/blob/master/src/Data/GetSpotsResponse.purs | Github Open Source | Open Source | MIT | null | rally-cli | bouzuya | PureScript | Code | 128 | 286 | module Data.GetSpotsResponse (GetSpotsItem(..), GetSpotsResponse(..)) where
import Data.Foreign.Class (class IsForeign, read, readProp)
import Data.Foreign.Index (prop)
import Data.Show (class Show, show)
import Prelude (($), (<>), bind, map, pure)
data GetSpotsItem = GetSpotsItem { id :: Int }
data GetSpotsResponse ... | 14,015 |
https://github.com/tnnfnc/apps/blob/master/src/main/java/it/tnnfnc/apps/application/undo/ObjectStatus.java | Github Open Source | Open Source | MIT | null | apps | tnnfnc | Java | Code | 425 | 993 | /*
* Copyright (c) 2015, Franco Toninato. All rights reserved.
*
* 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 3 of the License, or (at your option)
* any later versio... | 17,271 |
https://github.com/fuzzywy/QAT/blob/master/app/Http/Controllers/DataController.php | Github Open Source | Open Source | MIT | 2,019 | QAT | fuzzywy | PHP | Code | 100 | 430 | <?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Input;
use App\Http\Controllers\LteTddQueryHandler;
use App\Http\Controllers\LteFddQueryHandler;
use App\Http\Controllers\NbiotQueryHandler;
use App\Http\Controllers\NbmQueryHandler;
use App\Http\Controllers\GsmQueryHand... | 23,424 |
https://github.com/djrtwo/teku/blob/master/data/beaconrestapi/src/integration-test/java/tech/pegasys/teku/beaconrestapi/validator/GetNewBlockDataBackedIntegrationTest.java | Github Open Source | Open Source | LicenseRef-scancode-free-unknown, Apache-2.0 | 2,020 | teku | djrtwo | Java | Code | 277 | 1,238 | /*
* Copyright 2020 ConsenSys AG.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... | 2,327 |
https://github.com/BEUTIFULSKIN/python-design/blob/master/Decorate/yiwang_decorate.py | Github Open Source | Open Source | MIT | 2,017 | python-design | BEUTIFULSKIN | Python | Code | 113 | 464 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Date : 2017-05-03 17:15:08
# @Author : Yi Wang (gzytemail@126.com)
# @Link : https://github.com/wang2222qq
# @des : 装饰器模式
"""
案例:
在咖啡店中
1.咖啡有很多种类.
2.咖啡搭配的调味品也有很多种
3.要获取客户的消费
"""
# Abstract class
class Coffee:
def cost(self):
pass
class Cappuccin... | 33,213 |
https://github.com/runningbar/ERC20Token/blob/master/StandardToken.sol | Github Open Source | Open Source | MIT | null | ERC20Token | runningbar | Solidity | Code | 375 | 1,002 | pragma solidity ^0.4.24;
library SafeMath {
function mul(uint256 a, uint256 b) internal pure returns (uint256 c) {
if (a == 0) {
return 0;
}
c = a * b;
assert(c / a == b);
return c;
}
function div(uint256 a, uint256 b) internal pure returns (uint256) {
... | 4,814 |
https://github.com/CISecurity/IETF104-Client/blob/master/src/main/java/org/cisecurity/oval/sc/win/InterfaceItem.java | Github Open Source | Open Source | Apache-2.0 | null | IETF104-Client | CISecurity | Java | Code | 757 | 2,381 | //
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2019.11.... | 45,079 |
https://github.com/nonoillora/printcolor/blob/master/resources/views/pedidos/pendientes.blade.php | Github Open Source | Open Source | MIT | null | printcolor | nonoillora | PHP | Code | 42 | 258 | @extends('administracion.adminTemplate')
@section('adminContent')
<div class="breadcrumb">
<a href="{{url('admin')}}">Administración</a> <span class="glyphicon glyphicon-chevron-right"></span> <a href="{{url('admin/pedidos/pendientes')}}">Pedidos Pendientes</a>
<div class="pull-right">
... | 48,884 |
https://github.com/Ishakkangah/Band/blob/master/resources/views/layouts/app.blade.php | Github Open Source | Open Source | MIT | 2,021 | Band | Ishakkangah | Blade | Code | 22 | 123 | @extends('layouts.base')
@section('baseStyles')
<link href="{{ asset('css/app.css') }}" rel="stylesheet">
@endsection
@section('baseScripts')
<script src="{{ asset('js/app.js') }}" defer></script>
@endsection
@section('body')
<x-navbar></x-navbar>
<div class="mt-4">
@yield('content')
</div>
@... | 18,693 |
https://github.com/narenarjun/learn-scala/blob/master/book-code/src/script/scala/progscala3/patternmatching/MatchVariable2.scala | Github Open Source | Open Source | MIT | 2,019 | learn-scala | narenarjun | Scala | Code | 53 | 153 | // src/script/scala/progscala3/patternmatching/MatchVariable2.scala
val seq2 = Seq(1, 2, 3.14, "one", (6, 7))
val result2 = seq2.map { x => x match
case _: Int => s"int: $x" // <1>
case _ => s"unexpected value: $x" // <2>
}
assert(result2 == Seq(
"i... | 45,540 |
https://github.com/Dutchosintguy/telegram-osint-lib/blob/master/examples/proxy.php | Github Open Source | Open Source | MIT | 2,020 | telegram-osint-lib | Dutchosintguy | PHP | Code | 80 | 261 | <?php
use TelegramOSINT\Scenario\StatusWatcherScenario;
use TelegramOSINT\Tools\Proxy;
require_once __DIR__.'/../vendor/autoload.php';
if (!isset($argv[1]) || $argv[1] == '--help' || $argv[1] == '--info') {
$msg = <<<'MSG'
Usage: php proxy.php numbers
numbers: 79061231231,79061231232,...
MSG;
die($msg);
... | 18,073 |
https://github.com/molon/gomsg/blob/master/cmd/boat/main.go | Github Open Source | Open Source | MIT | 2,020 | gomsg | molon | Go | Code | 468 | 2,270 | package main
import (
"context"
"fmt"
"io"
"net"
"os"
"os/signal"
"runtime"
"syscall"
"time"
"google.golang.org/grpc"
"google.golang.org/grpc/keepalive"
"github.com/molon/gomsg/internal/pkg/resource"
"github.com/molon/pkg/grpc/timeout"
"github.com/molon/pkg/registry"
"github.com/molon/pkg/server"
"gi... | 42,204 |
https://github.com/Tillerdawg/Blockchain_TicTacToe_Java2/blob/master/noobchain/src/noobchain/NoobChain.java | Github Open Source | Open Source | MIT | 2,021 | Blockchain_TicTacToe_Java2 | Tillerdawg | Java | Code | 725 | 2,417 | package noobchain;
import java.security.Security;
import java.util.ArrayList;
//import java.util.Base64;
import java.util.HashMap;
import java.util.Scanner;
import game.TicTacToe;
public class NoobChain {
public static ArrayList<Block> blockchain = new ArrayList<Block>();
public static HashMap<String, Transaction... | 39,102 |
https://github.com/tarantool/spring-data-tarantool/blob/master/src/main/java/org/springframework/data/tarantool/core/mapping/TarantoolIdClass.java | Github Open Source | Open Source | BSD-2-Clause | 2,020 | spring-data-tarantool | tarantool | Java | Code | 160 | 394 | package org.springframework.data.tarantool.core.mapping;
import org.springframework.data.annotation.Persistent;
import java.lang.annotation.ElementType;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
... | 40,291 |
https://github.com/TrendingTechnology/hspylib/blob/master/src/app/kafman/src/main/core/__init__.py | Github Open Source | Open Source | MIT | 2,021 | hspylib | TrendingTechnology | Python | Code | 20 | 64 | # _*_ coding: utf-8 _*_
#
# HSPyLib v0.11.1
#
# Package: app.kafman.src.main.core
"""Package initialization."""
__all__ = [
'constants'
]
| 33,166 |
https://github.com/thesli/backuplaptop/blob/master/pella/tryGrunt/node_modules/grunt-js2coffee/test/result/each/mout/src/number/pad.coffee | Github Open Source | Open Source | MIT | 2,014 | backuplaptop | thesli | CoffeeScript | Code | 25 | 66 | define ["../string/lpad"], (lpad) ->
###
Add padding zeros if n.length < minLength.
###
pad = (n, minLength) ->
lpad "" + n, minLength, "0"
pad
| 20,414 |
https://github.com/IkariMeister/Rosie/blob/master/sample/src/androidTest/java/com/karumi/rosie/sample/characters/view/activity/CharacterDetailsActivityTest.java | Github Open Source | Open Source | Apache-2.0 | 2,019 | Rosie | IkariMeister | Java | Code | 374 | 1,507 | /*
* Copyright (C) 2015 Karumi.
*
* 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... | 42,735 |
https://github.com/codacy-badger/Je-Marche/blob/master/src/screens/polls/PollsScreenViewModelMapper.ts | Github Open Source | Open Source | MIT | null | Je-Marche | codacy-badger | TypeScript | Code | 53 | 154 | import { Poll } from '../../core/entities/Poll'
import Theme from '../../themes/Theme'
import { PollRowViewModelMapper } from './PollRowViewModelMapper'
import { PollsHeaderViewModelMapper } from './PollsHeaderViewModelMapper'
import { PollsScreenViewModel } from './PollsScreenViewModel'
export const PollsScreenViewMo... | 34,676 |
https://github.com/ahmedAdel77/NOhandicap/blob/master/storage/framework/views/af718c25b0724a223c6f95a91240fccf51a26a33.php | Github Open Source | Open Source | MIT | 2,019 | NOhandicap | ahmedAdel77 | PHP | Code | 129 | 595 | <?php $__env->startSection('content'); ?>
<div class="section">
<div class="col s12 m6">
<div class="card darken-1">
<div class="card-content">
<span class="card-title center">Users</span>
<?php if(count($users)): ?>
<table class="centered st... | 39,902 |
https://github.com/Shashi-rk/azure-sdk-for-java/blob/master/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/RunActionCorrelation.java | Github Open Source | Open Source | MIT | 2,022 | azure-sdk-for-java | Shashi-rk | Java | Code | 184 | 536 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.logic.models;
import com.azure.core.annotation.Fluent;
import com.azure.core.util.logging.ClientLogger;
import com.fasterxml.jac... | 37,330 |
https://github.com/kzx1025/spark_improve/blob/master/core/target/java/org/apache/spark/network/netty/client/BlockFetchingClient.java | Github Open Source | Open Source | Apache-2.0 | null | spark_improve | kzx1025 | Java | Code | 213 | 495 | package org.apache.spark.network.netty.client;
/**
* Client for fetching data blocks from {@link org.apache.spark.network.netty.server.BlockServer}.
* Use {@link BlockFetchingClientFactory} to instantiate this client.
* <p>
* The constructor blocks until a connection is successfully established.
* <p>
* See {@lin... | 49,184 |
https://github.com/JosephWoodward/SpecsFor/blob/master/SpecsFor.Autofac.Tests/ComposingContext/ComposingContextConfig.cs | Github Open Source | Open Source | MIT | 2,021 | SpecsFor | JosephWoodward | C# | Code | 36 | 253 | using NUnit.Framework;
using SpecsFor.Autofac.Tests.ComposingContext.TestDomain;
using SpecsFor.Core.Configuration;
namespace SpecsFor.Autofac.Tests.ComposingContext
{
[SetUpFixture]
public class ComposingContextConfig : SpecsForConfiguration
{
public ComposingContextConfig()
{
WhenTesting<ILikeMagic>().Enri... | 26,456 |
https://github.com/curiousjgeorge/aws-sdk-cpp/blob/master/aws-cpp-sdk-health/include/aws/health/model/DescribeEventDetailsResult.h | Github Open Source | Open Source | Apache-2.0 | 2,020 | aws-sdk-cpp | curiousjgeorge | C | Code | 462 | 1,279 | /*
* Copyright 2010-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" fil... | 16,824 |
https://github.com/backpackcloud/captain-hook/blob/master/src/main/java/io/backpackcloud/captain_hook/impl/UnirestCannon.java | Github Open Source | Open Source | MIT | 2,019 | captain-hook | backpackcloud | Java | Code | 320 | 763 | /*
* The MIT License (MIT)
*
* Copyright (c) 2019 Marcelo Guimarães <ataxexe@backpackcloud.com>
*
* 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... | 20,681 |
https://github.com/SSSVT/ChatApp-Android/blob/master/ChatApplication/app/src/main/java/schweika/chatapplication/ViewModels/Interfaces/GenericViewModelListener.java | Github Open Source | Open Source | MIT | null | ChatApp-Android | SSSVT | Java | Code | 15 | 55 | package schweika.chatapplication.ViewModels.Interfaces;
public interface GenericViewModelListener<T>
{
public void onActionFailure(String message);
public void onActionSuccess(T item);
}
| 9,328 |
https://github.com/jeremyschlatter/augur/blob/master/packages/augur-simplified/src/modules/market/market-view.tsx | Github Open Source | Open Source | MIT | null | augur | jeremyschlatter | TypeScript | Code | 567 | 1,953 | import React, { useState, useEffect, useMemo } from 'react';
import { useLocation } from 'react-router';
import Styles from './market-view.styles.less';
import classNames from 'classnames';
import SimpleChartSection from '../common/charts';
import {
AddLiquidity,
CategoryIcon,
CategoryLabel,
NetworkMismatchBann... | 48,662 |
https://github.com/kuroneko/AFV-Native/blob/master/src/afv/dto/Transceiver.cpp | Github Open Source | Open Source | BSD-3-Clause | 2,021 | AFV-Native | kuroneko | C++ | Code | 329 | 821 | /* afv/dto/Transceiver.cpp
*
* This file is part of AFV-Native.
*
* Copyright (c) 2019 Christopher Collins
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the a... | 47,898 |
https://github.com/TencentBlueKing/bk-nodeman/blob/master/frontend/src/common/freezing-page.ts | Github Open Source | Open Source | MIT, LicenseRef-scancode-free-unknown | 2,023 | bk-nodeman | TencentBlueKing | TypeScript | Code | 232 | 766 | import { DirectiveBinding, DirectiveOptions } from 'vue/types/options';
import { VueConstructor } from 'vue';
interface IValue {
include: string[] // 需要加滤镜的dom元素
exclude: string[] // 不被遮罩盖住的元素
disabled?: boolean // 是否禁用
}
const zIndex = () => {
// eslint-disable-next-line no-underscore-dangle
if (window.__b... | 22,927 |
https://github.com/gismya/svgomg/blob/master/src/css/components/_svg-output.scss | Github Open Source | Open Source | MIT | null | svgomg | gismya | SCSS | Code | 78 | 251 | .svg-output {
@include user-select(none);
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
opacity: 0;
&.transition {
transition: opacity 0.2s ease-in-out;
}
&.active {
opacity: 1;
}
}
.svg-container {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
transf... | 32,217 |
https://github.com/ebt-hpc/cca-ebt/blob/master/python/src/cca/ebt/classify_loops.py | Github Open Source | Open Source | Apache-2.0 | 2,022 | cca-ebt | ebt-hpc | Python | Code | 415 | 1,377 | #!/usr/bin/env python3
'''
A script for loop classification
Copyright 2013-2018 RIKEN
Copyright 2018-2020 Chiba Institute of Technology
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... | 43,367 |
https://github.com/saifsafwan/umapp/blob/master/resources/views/users/accountant/item/new.blade.php | Github Open Source | Open Source | MIT | null | umapp | saifsafwan | PHP | Code | 299 | 1,110 | @extends('layouts.app')
@section('content')
<div class="flex items-center">
<div class="md:w-1/4 md:mx-auto">
{{-- @if (session('status'))
<div class="text-sm border border-t-8 rounded text-green-700 border-green-600 bg-green-100 px-3 py-4 mb-4" role="alert">
... | 22,433 |
https://github.com/nhoizey/nicolas-hoizey.com/blob/master/_scripts/deploy-branch.sh | Github Open Source | Open Source | MIT | 2,022 | nicolas-hoizey.com | nhoizey | Shell | Code | 18 | 100 | #!/bin/sh
echo "Sync branch on server from local"
/usr/local/bin/rsync -arvu --delete-delay --iconv=UTF8-MAC,UTF-8 ./_site/ nhoizey@ssh-nhoizey.alwaysdata.net:/home/nhoizey/www/nicolas-hoizey.com/branch/ 2>&1 | tee ./_logs/deploy.log
| 16,394 |
https://github.com/refirser/needsomespace/blob/master/gamemodes/refn/entities/entities/nss_explosion_fx/shared.lua | Github Open Source | Open Source | MIT | 2,021 | needsomespace | refirser | Lua | Code | 45 | 158 | ENT.Base = "base_anim";
ENT.Type = "anim";
function ENT:Initialize()
self:SetModel( "models/props_combine/combine_interface00" .. math.random( 1, 3 ) .. ".mdl" );
self:PhysicsInit( SOLID_NONE );
self:SetMoveType( MOVETYPE_NONE );
self:SetSolid( SOLID_NONE );
if( CLIENT ) then
self:SetRenderBounds( Vector( -... | 31,484 |
https://github.com/roschler/ethereum-band-battles/blob/master/web-site/utility/check-balances-on-ganache.js | Github Open Source | Open Source | Apache-2.0 | null | ethereum-band-battles | roschler | JavaScript | Code | 970 | 2,796 | // FILE: check-balances-on-ganache.js
// This utility queries the current contract Ether Band Battles instance on
// Ganache for certain accounts and owner IDs (i.e. - YouTube channel ID
// etc.) so we can validate the results of playing a TBB game.
// This utility script simply shell executes truffle with various ... | 42,262 |
https://github.com/JSTransformationBenchmarks/lively4-core/blob/master/src/components/halo/lively-halo-connectors-item.js | Github Open Source | Open Source | MIT | null | lively4-core | JSTransformationBenchmarks | JavaScript | Code | 458 | 1,935 | "enable aexpr";
import HaloItem from 'src/components/halo/lively-halo-item.js';
import {pt} from 'src/client/graphics.js';
import ContextMenu from "src/client/contextmenu.js";
import Connection from "./Connection.js";
export default class LivelyHaloConnectorsItem extends HaloItem {
async initialize() {
this.... | 19,541 |
https://github.com/kiva/Mikoba/blob/master/mikoba/Services/OtpCredentialsService.cs | Github Open Source | Open Source | Apache-2.0 | 2,021 | Mikoba | kiva | C# | Code | 258 | 785 | using Newtonsoft.Json;
using System;
using System.Net;
using System.Threading.Tasks;
namespace mikoba.Services
{
public class OtpCredentialsService
{
private const string AUTH0_DOMAIN = "kiva-protocol.auth0.com";
private const string CLIENT_ID = "dn2GNhnpOViDG1P1prNAt5UBoN6YEEHu";
priv... | 44,615 |
https://github.com/z424brave/Arachnid-Robotics/blob/master/test/RobotControl_spec.ts | Github Open Source | Open Source | Apache-2.0 | null | Arachnid-Robotics | z424brave | TypeScript | Code | 501 | 1,458 | import { expect } from "chai";
import { MarsSurface } from "../src/MarsSurface";
import { RobotControl } from "../src/RobotControl";
import { Wall } from "../src/Wall";
describe("RobotControl", () => {
interface ITest {
command: string;
finalPosition: string;
height?: number;
title... | 16,138 |
https://github.com/cliveyao/TestRepository/blob/master/src/main/java/org/lf/admin/db/pojo/JRW.java | Github Open Source | Open Source | MIT | 2,018 | TestRepository | cliveyao | Java | Code | 339 | 993 | package org.lf.admin.db.pojo;
import java.util.Date;
public class JRW extends PagedPojo {
private Integer id;
private Integer appId;
private Integer lx;
private String lxmc;
private Date kssj;
private Date jssj;
private String czr;
private String czrmc;
private Stri... | 10,237 |
https://github.com/Blasco9/Course-Reviews/blob/master/app/models/user.rb | Github Open Source | Open Source | MIT | 2,020 | Course-Reviews | Blasco9 | Ruby | Code | 99 | 410 | class User < ApplicationRecord
after_create :attach_default_img
has_many :reviews, foreign_key: :author_id, dependent: :destroy
has_many :comments, foreign_key: :author_id, dependent: :destroy
has_many :followings, foreign_key: :followed_id, dependent: :destroy
has_many :inverse_followings, class_name: 'Follo... | 736 |
https://github.com/ivansukach/protobuf/blob/master/test/oneof/combos/unmarshaler/one.pb.go | Github Open Source | Open Source | BSD-2-Clause, 0BSD | null | protobuf | ivansukach | Go | Code | 20,000 | 53,162 | // Code generated by protoc-gen-gogo. DO NOT EDIT. // source: combos/unmarshaler/one.proto package one import ( bytes "bytes" compress_gzip "compress/gzip" encoding_binary "encoding/binary" fmt "fmt" _ "github.com/ivansukach/protobuf/gogoproto" github_com_gogo_protobuf_proto "github.com/ivansukach/protobuf/proto" proto... | 4,715 |
https://github.com/NicholasAnthony/YARB/blob/master/src/components/Example.js | Github Open Source | Open Source | MIT | null | YARB | NicholasAnthony | JavaScript | Code | 52 | 163 | import React, {Component} from 'react';
import PropTypes from 'prop-types';
class Example extends Component {
toUpper(text) {
return text.toUpperCase();
}
render() {
const {examplePropText} = this.props;
return (
<div className="example">
<span className="example-text">{this.toUpper(ex... | 18,500 |
https://github.com/cocosip/AutoS3/blob/master/samples/AutoS3.Sample/SampleAppService.cs | Github Open Source | Open Source | MIT | null | AutoS3 | cocosip | C# | Code | 876 | 3,799 | using Amazon.S3;
using Amazon.S3.Model;
using AmazonKS3;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Options;
using System;
using System.Collections.Generic;
using System.IO;
using System.Text;
using System.Threading.Tasks;
namespace AutoS3.Sample
{
public class SampleAppService
{
p... | 22,625 |
https://github.com/breathe/ship-hold/blob/master/src/doc/service-worker.js | Github Open Source | Open Source | MIT | 2,022 | ship-hold | breathe | JavaScript | Code | 99 | 309 | const CACHE = 'ship-hold-documentation';
// On install, cache some resources.
self.addEventListener('install', function (evt) {
console.log('The service worker is being installed.');
evt.waitUntil(precache());
});
self.addEventListener('fetch', async function (evt) {
console.log('The service worker is ser... | 18,264 |
https://github.com/rallias/pam-faithful/blob/master/src/pam-faithful.cpp | Github Open Source | Open Source | MIT | null | pam-faithful | rallias | C++ | Code | 103 | 943 | #include <napi.h>
#include <security/pam_appl.h>
Napi::Value PamStart(const Napi::CallbackInfo &info)
{
return info.Env().Undefined();
}
Napi::Object init(Napi::Env env, Napi::Object exports)
{
exports.Set(Napi::String::New(env, "pam_start"), Napi::Function::New(env, PamStart));
exports.Set(Napi::String:... | 35,034 |
https://github.com/seewpx/actor-framework/blob/master/libcaf_core/caf/ref_counted.hpp | Github Open Source | Open Source | BSD-3-Clause | null | actor-framework | seewpx | C++ | Code | 117 | 305 | // This file is part of CAF, the C++ Actor Framework. See the file LICENSE in
// the main distribution directory for license terms and copyright or visit
// https://github.com/actor-framework/actor-framework/blob/master/LICENSE.
#pragma once
#include <atomic>
#include <cstddef>
#include "caf/detail/atomic_ref_counte... | 47,458 |
https://github.com/PatricioIribarneCatella/helicopter/blob/master/src/shaders/simple/vertex.glsl | Github Open Source | Open Source | MIT | null | helicopter | PatricioIribarneCatella | GLSL | Code | 25 | 77 | // VERTEX SHADER
attribute vec3 aVertexPosition;
attribute vec3 aVertexColor;
varying highp vec4 vColor;
void main(void) {
gl_Position = vec4(aVertexPosition, 1.0);
vColor = vec4(aVertexColor, 1.0);
}
| 13,619 |
https://github.com/greearb/vocal-ct/blob/master/rtsp/rtspstack/CharDataParser.hxx | Github Open Source | Open Source | VSL-1.0, BSD-2-Clause | 2,023 | vocal-ct | greearb | C++ | Code | 665 | 1,401 | #ifndef CharDataParser_Hxx
#define CharDataParser_Hxx
/* ====================================================================
* The Vovida Software License, Version 1.0
*
* Copyright (c) 2000 Vovida Networks, Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* mo... | 1,673 |
https://github.com/russellremple/bson-adt/blob/master/bson-adt-core/src/main/scala/adt/bson/BsonValue.scala | Github Open Source | Open Source | Apache-2.0 | 2,017 | bson-adt | russellremple | Scala | Code | 1,261 | 2,942 | package adt.bson
import org.bson.BsonType
import org.bson.types.ObjectId
import org.joda.time.{DateTime, DateTimeZone}
import scala.util.Try
import scala.util.matching.Regex
/**
* Generic Bson value.
*
* This is a closed algebraic data type for all values that can be stored in Mongo.
*
* See {@link http://bsons... | 50,085 |
https://github.com/happylai/hryj-otc/blob/master/src/views/user/store.vue | Github Open Source | Open Source | MIT | null | hryj-otc | happylai | Vue | Code | 677 | 2,943 | <template>
<div class="tab-container">
<div class="filter-container" style="margin-bottom: 10px;">
<el-input v-model="fliterQuery.query" placeholder="用户ID/代理ID/姓名/手机号" style="width: 300px;" class="filter-item" @keyup.enter.native="handleFilter" />
<el-select v-model="fliterQuery.active" placeholder="... | 16,490 |
https://github.com/TimoDeus/MyStravaDashboard/blob/master/src/app/reducers/state.ts | Github Open Source | Open Source | MIT | null | MyStravaDashboard | TimoDeus | TypeScript | Code | 23 | 85 | import {RouterState} from 'react-router-redux';
import {AuthorizationState} from "app/reducers/authorization";
import {AthleteState} from "../../../types/athlete";
export interface RootState {
router: RouterState;
authorization: AuthorizationState;
athlete: AthleteState;
}
| 46,100 |
https://github.com/CelsoAntunesNogueira/Phyton3/blob/master/ex028 - Aknator numerico.py | Github Open Source | Open Source | MIT | null | Phyton3 | CelsoAntunesNogueira | Python | Code | 46 | 116 | import random
from time import sleep
num = int(input('Digite um número de 1 a 5 que irei tentar advinhar:'))
a = random.randint(0, 5)
print('Pensando ..')
sleep(2)
print("O número foi {}".format(num))
print('E pensei no número {}'.format(a))
if num == a :
print("Eu acertei! ")
else:
print('Você ganhou!!')
| 29,688 |
https://github.com/Wizard-collab/wizard/blob/master/App/softwares_env/wizard/wsd/main.py | Github Open Source | Open Source | MIT | null | wizard | Wizard-collab | Python | Code | 22 | 81 | import yaml
class wsd():
def __init__(self, file, dict):
self.file = file
self.dict = dict
def write_sd(self):
with open(self.file, 'w') as f:
f.write(yaml.dump(self.dict)) | 597 |
https://github.com/kotoran/ProjectBlueSky/blob/master/ProjectBlueSky/Assets/Prefabs/Player.meta | Github Open Source | Open Source | Unlicense | 2,017 | ProjectBlueSky | kotoran | Unity3D Asset | Code | 14 | 70 | fileFormatVersion: 2
guid: f3e97286987f43e4dae8e851971a059f
folderAsset: yes
timeCreated: 1507108751
licenseType: Free
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:
| 14,218 |
https://github.com/gildas/go-icws/blob/master/status_message.go | Github Open Source | Open Source | MIT | null | go-icws | gildas | Go | Code | 73 | 263 | package icws
// StatusMessage describes a Status Message
type StatusMessage struct {
ID string `json:"statusId"`
SystemID string `json:"systemId"`
Text string `json:"messageText"`
IconURI string `json:"iconUri"`
GroupTag string `json:"groupTag"`
CanHaveDate bool ... | 39,210 |
https://github.com/dfsilva/database-streamer/blob/master/frontend/lib/store/hud_store.g.dart | Github Open Source | Open Source | MIT | 2,021 | database-streamer | dfsilva | Dart | Code | 146 | 567 | // GENERATED CODE - DO NOT MODIFY BY HAND
part of 'hud_store.dart';
// **************************************************************************
// StoreGenerator
// **************************************************************************
// ignore_for_file: non_constant_identifier_names, unnecessary_brace_in_str... | 23,242 |
https://github.com/The-Ludwig/DAP2_BL/blob/master/Blatt7/LGS.java | Github Open Source | Open Source | MIT | 2,018 | DAP2_BL | The-Ludwig | Java | Code | 220 | 853 | import java.util.Random;
class LGS
{
public static void main(String[] args)
{
int len = 0;
try
{
len = Integer.parseInt(args[0]);
}catch(NumberFormatException e)
{
System.out.println(e.toString());
return;
}catch(ArrayIndexOutOfBoundsException e) {
System.out.println(e.toString());
return... | 13,417 |
https://github.com/rrhett/ngae/blob/master/deploy.js | Github Open Source | Open Source | 0BSD | 2,017 | ngae | rrhett | JavaScript | Code | 441 | 1,090 | #!/usr/bin/env node
'use strict';
const execSync = require('child_process').execSync;
const path = require('path');
const spawnSync = require('child_process').spawnSync;
const deployAppEngine = (config, step) => {
const tag = spawnSync('git', ['tag', '-l', '--contains']).stdout.toString().trim();
// We generate ... | 3,509 |
https://github.com/ceekay1991/AliPayForDebug/blob/master/AliPayForDebug/AliPayForDebug/AlipayWallet_Headers/NineReuseBoxDataProvider.h | Github Open Source | Open Source | MIT | 2,021 | AliPayForDebug | ceekay1991 | C | Code | 88 | 300 | //
// Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 17 2017 16:24:48).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by Steve Nygard.
//
#import <objc/NSObject.h>
@class NSMutableArray, NSString;
@interface NineReuseBoxDataProvider : NSObject
{
long long _sectionCou... | 10,957 |
https://github.com/ecojuntak/proctor/blob/master/migrations/7_CreateJobsScheduleTable.up.sql | Github Open Source | Open Source | Apache-2.0 | 2,019 | proctor | ecojuntak | SQL | Code | 33 | 79 | CREATE TABLE jobs_schedule (
id uuid not null primary key,
name text,
args text,
tags text,
notification_emails text,
time text,
user_email text,
enabled bool,
created_at timestamp default now(),
updated_at timestamp default now()
);
| 35,439 |
https://github.com/AllardQuek/tp/blob/master/src/main/java/seedu/programmer/ui/components/LabResultCard.java | Github Open Source | Open Source | MIT | 2,021 | tp | AllardQuek | Java | Code | 192 | 514 | package seedu.programmer.ui.components;
import javafx.fxml.FXML;
import javafx.scene.control.Label;
import javafx.scene.layout.HBox;
import javafx.scene.layout.Region;
import seedu.programmer.model.student.Lab;
import seedu.programmer.ui.UiPart;
/**
* An UI component that displays information of the lab result.
*/... | 39,434 |
https://github.com/ChoSeyoung/simple-boot-front/blob/master/test/typescript/typescript_basic.test.ts | Github Open Source | Open Source | MIT | 2,022 | simple-boot-front | ChoSeyoung | TypeScript | Code | 232 | 682 | /* eslint-disable */
// import * as request from 'supertest'
import {of} from 'rxjs'
import {mergeMap} from 'rxjs/operators'
import * as ts from "typescript";
// typescript decorator
// https://www.typescriptlang.org/docs/handbook/decorators.html#method-decorators
describe('typescript basic', () => {
test('typescr... | 7,601 |
https://github.com/Evalir/research/blob/master/archive/merkleslash/merkleslash_test.go | Github Open Source | Open Source | MIT | 2,022 | research | Evalir | Go | Code | 891 | 2,199 | package main
import "testing"
import "log"
import "github.com/cbergoon/merkletree"
func TestBasicGood(t *testing.T) {
// Pre-compute expected tree
var list []merkletree.Content
list = append(list, TestContent{x: "1"})
list = append(list, TestContent{x: "2"})
list = append(list, TestContent{x: "3"})
list = appen... | 5,314 |
https://github.com/jeffhain/jolikit/blob/master/src/main/java/net/jolikit/bwd/impl/sdl2/jlib/SdlEventType.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | jolikit | jeffhain | Java | Code | 733 | 1,938 | /*
* Copyright 2019 Jeff Hain
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in... | 29,402 |
https://github.com/articstranger/main/blob/master/src/main/java/seedu/address/logic/commands/SortCommand.java | Github Open Source | Open Source | MIT | null | main | articstranger | Java | Code | 115 | 276 | //@@author articstranger
package seedu.address.logic.commands;
import static java.util.Objects.requireNonNull;
import seedu.address.logic.CommandHistory;
import seedu.address.logic.commands.exceptions.CommandException;
import seedu.address.model.Model;
/**
* Sorts the current list of volunteers and returns a list ... | 15,879 |
https://github.com/bracedotto/monorepo/blob/master/packages/web/src/components/CardItem.js | Github Open Source | Open Source | MIT | 2,022 | monorepo | bracedotto | JavaScript | Code | 687 | 2,922 | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { retryDiedLinks, cancelDiedLinks } from '../actions';
import {
PIN_LINK, PIN_LINK_ROLLBACK, UNPIN_LINK, UNPIN_LINK_ROLLBACK,
MOVE_PINNED_LINK_ADD_STEP, MOVE_PINNED_LINK_ADD_STEP_ROLLBACK,
} from '../types/... | 10,909 |
https://github.com/rminnich/contest/blob/master/pkg/xcontext/bundles/zapctx/new_context.go | Github Open Source | Open Source | MIT | 2,021 | contest | rminnich | Go | Code | 197 | 784 | // Copyright (c) Facebook, Inc. and its affiliates.
//
// This source code is licensed under the MIT license found in the
// LICENSE file in the root directory of this source tree.
package zapctx
import (
"context"
"time"
"github.com/prometheus/client_golang/prometheus"
"go.uber.org/zap"
"go.uber.org/zap/zapcor... | 21,565 |
https://github.com/nikneem/keez-online-frontend/blob/master/src/app/services/users.service.ts | Github Open Source | Open Source | MIT | null | keez-online-frontend | nikneem | TypeScript | Code | 94 | 329 | import { Injectable } from '@angular/core';
import { HttpClient, HttpResponse } from '@angular/common/http';
import { Observable } from 'rxjs';
import { environment } from 'src/environments/environment';
import { UserProfileDto } from '@store/user-state/user.models';
@Injectable({
providedIn: 'root'
})
export clas... | 4,248 |
https://github.com/AMReX-Astro/Castro/blob/master/Diagnostics/DustCollapse/dustcollapse_util.F90 | Github Open Source | Open Source | BSD-3-Clause-LBNL, LicenseRef-scancode-unknown-license-reference | 2,023 | Castro | AMReX-Astro | Fortran Free Form | Code | 732 | 2,233 | ! Process a group of n-d plotfiles from the dustcollapse problem
! and output the position of the interface as a function of time.
!
! The initial dense sphere is assumed to be centered a r = 0 (x = 0).
! We take as default that it is centered vertically at y = 0, but
! this can be overridden with --yctr.
!
! The --pro... | 3,143 |
https://github.com/221B-io/databrary.org/blob/master/client/src/components/pam/Projects.vue | Github Open Source | Open Source | MIT | 2,020 | databrary.org | 221B-io | Vue | Code | 79 | 444 | <template>
<q-list>
<q-expansion-item
group="bookmarks"
expand-separator
default-opened
>
<template v-slot:header>
<q-item-section avatar>
<q-icon color="primary" name="art_track" />
</q-item-section>
<q-item-section class="text-bold">
Pages... | 398 |
https://github.com/PeerHerholz/guideline_jupyter_book/blob/master/venv/Lib/site-packages/nbdime/tests/test_merge_notebooks_inline.py | Github Open Source | Open Source | BSD-3-Clause | 2,021 | guideline_jupyter_book | PeerHerholz | Python | Code | 4,479 | 12,588 | # coding: utf-8
# Copyright (c) Jupyter Development Team.
# Distributed under the terms of the Modified BSD License.
import pytest
import nbformat
from nbformat.v4 import new_notebook, new_code_cell
from collections import defaultdict
from nbdime import merge_notebooks, diff
from nbdime.diff_format import op_patch
f... | 27,095 |
https://github.com/dvsa/olcs-backend/blob/master/module/Api/src/Domain/Repository/ErruRequest.php | Github Open Source | Open Source | MIT | 2,023 | olcs-backend | dvsa | PHP | Code | 84 | 310 | <?php
/**
* Erru Request
*
* @author Ian Lindsay <ian@hemera-business-services.co.uk>
*/
namespace Dvsa\Olcs\Api\Domain\Repository;
use Doctrine\ORM\Query;
use Dvsa\Olcs\Api\Domain\Exception;
use Dvsa\Olcs\Api\Entity\Si\ErruRequest as Entity;
/**
* Erru Request
*
* @author Ian Lindsay <ian@hemera-business-ser... | 43,434 |
https://github.com/algolia/algoliasearch-magento-2/blob/master/Test/Integration/SearchTest.php | Github Open Source | Open Source | MIT | 2,023 | algoliasearch-magento-2 | algolia | PHP | Code | 43 | 195 | <?php
namespace Algolia\AlgoliaSearch\Test\Integration;
use Algolia\AlgoliaSearch\Helper\Data;
use Algolia\AlgoliaSearch\Model\Indexer\Product;
class SearchTest extends TestCase
{
public function testSearch()
{
/** @var Product $indexer */
$indexer = $this->getObjectManager()->create(Product:... | 19,041 |
https://github.com/MaSch0212/headless-web-container/blob/master/src/HeadlessWebContainer/Models/GuiSettings.cs | Github Open Source | Open Source | MIT | null | headless-web-container | MaSch0212 | C# | Code | 59 | 156 | using MaSch.Presentation.Wpf.Common;
using System.Collections.Generic;
namespace HeadlessWebContainer.Models
{
public class GuiSettings
{
public List<WindowPosition> WindowPositions { get; set; }
public bool IsTitlePinned { get; set; }
public string? BrowserWindowTitle { get; set; }
... | 15,826 |
https://github.com/zqqq/Goku-plugin-basic-auth/blob/master/go.mod | Github Open Source | Open Source | Apache-2.0 | 2,019 | Goku-plugin-basic-auth | zqqq | Go Module | Code | 7 | 55 | module github.com/eolinker/goku/app/plugins/goku-basic_auth
go 1.12
require github.com/eolinker/goku-plugin v0.1.3
| 34,232 |
https://github.com/Tomabage/easy/blob/master/docs/.vuepress/components/align-demo.vue | Github Open Source | Open Source | MIT | null | easy | Tomabage | Vue | Code | 82 | 402 | <template>
<div class="align-wrapper">
<e-row class="row" align="left">
<e-col class="item" span="8">left</e-col>
<e-col class="item" span="8">left</e-col>
</e-row>
<e-row class="row" align="center">
<e-col class="item" span="8">center</e-col>
<e-col class="item" sp... | 27,338 |
https://github.com/smeenai/llvm-project/blob/master/lldb/source/Plugins/Process/Linux/IntelPTMultiCoreTrace.h | Github Open Source | Open Source | NCSA, LLVM-exception, Apache-2.0 | 2,023 | llvm-project | smeenai | C++ | Code | 347 | 1,193 | //===-- IntelPTMultiCoreTrace.h ------------------------------- -*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... | 2,266 |
https://github.com/PavelPawlowski/PPSqlClr/blob/master/PP.SqlClr.Safe/Strings/StringSpliting.cs | Github Open Source | Open Source | MIT | null | PPSqlClr | PavelPawlowski | C# | Code | 659 | 1,814 | using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.SqlServer.Server;
using System.Data.SqlTypes;
using System.Collections;
/// <summary>
/// Class constains functions fro string splitting
/// </summary>
public class StringSplitting
{
/// <summary>
/// represents returned row
... | 9,517 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.