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/VDSYannick/MatBlazor/blob/master/src/MatBlazor/Components/MatFileUpload/BaseMatBlazorStream.cs | Github Open Source | Open Source | MIT | 2,020 | MatBlazor | VDSYannick | C# | Code | 477 | 1,087 | using System;
using System.IO;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Components;
using Microsoft.JSInterop;
namespace MatBlazor
{
// TODO: When ReadAsync is called, don't just fetch the segment of data that's being requested.
// That will be very slow, as you may be ... | 27,574 |
https://github.com/hyunjkim/jwplayer/blob/master/app/src/main/java/com/jwplayer/opensourcedemo/ExtraCredit.java | Github Open Source | Open Source | BSD-3-Clause | null | jwplayer | hyunjkim | Java | Code | 578 | 2,102 | package com.jwplayer.opensourcedemo;
import android.content.res.Configuration;
import android.os.Bundle;
import android.support.design.widget.CoordinatorLayout;
import android.support.v7.app.ActionBar;
import android.support.v7.app.AppCompatActivity;
import android.view.KeyEvent;
import android.view.Menu;
import andro... | 18,084 |
https://github.com/forweaver/forweaver-web/blob/master/src/main/webapp/WEB-INF/views/repository/info.jsp | Github Open Source | Open Source | MIT | 2,020 | forweaver-web | forweaver | null | Spoken | 323 | 2,312 | <%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ include file="/WEB-INF/includes/taglibs.jsp"%>
<!DOCTYPE html>
<html>
<head>
<title>${repository.name}~${repository.description}</title>
<%@ include file="/WEB-INF/includes/src.jsp"%>
</head>
<body>
<script>
$(document)
.r... | 24,374 |
https://github.com/balenamiaa/nim-bgfx/blob/master/bgfx/bgfx_amalgamated.mm | Github Open Source | Open Source | BSD-2-Clause | 2,019 | nim-bgfx | balenamiaa | Objective-C++ | Code | 30 | 127 | /*
* Copyright 2017 Cory Noll Crimmins - Golden
* License: BSD-2
* Amalgamated bgfx for objc
*/
//BGFX C++
#include "bgfx_amalgamated.cpp"
//BGFX Obj-C++
#include "../embed/bgfx/src/glcontext_eagl.mm"
#include "../embed/bgfx/src/glcontext_nsgl.mm"
#include "../embed/bgfx/src/renderer_mtl.mm"
| 32,654 |
https://github.com/z-van-baars/IronWarden/blob/master/.import/0025.png-e14920440f22011749f02c3de9137c0d.md5 | Github Open Source | Open Source | MIT | 2,021 | IronWarden | z-van-baars | null | Spoken | 2 | 53 | source_md5="29abf7c1a12d873faeb732ef4e78063d"
dest_md5="fc6ec856ac3ead8e2167d6455e36f616"
| 41,282 |
https://github.com/un-knower/spark_engine/blob/master/plan-model/src/main/java/sparkengine/plan/model/component/impl/BatchComponent.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | spark_engine | un-knower | Java | Code | 52 | 226 | package sparkengine.plan.model.component.impl;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import lombok.Builder;
import lombok.Value;
import sparkengine.plan.model.component.ComponentWithEncoder;
import sparkengine.plan.model.component.ComponentWithNoInput;
import sparkengine.plan.model.encoder.... | 30,765 |
https://github.com/aliyun/aliyun-openapi-cpp-sdk/blob/master/trademark/include/alibabacloud/trademark/model/ListNotaryOrdersRequest.h | Github Open Source | Open Source | Apache-2.0 | 2,023 | aliyun-openapi-cpp-sdk | aliyun | C++ | Code | 212 | 743 | /*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required... | 20,818 |
https://github.com/Fabrice-Lainard-Programming/SubWorld/blob/master/source/Game/GamePlayCallBack.h | Github Open Source | Open Source | MIT | null | SubWorld | Fabrice-Lainard-Programming | C | Code | 19 | 55 | #pragma once
class GamePlayCallBack
{
public:
GamePlayCallBack();
~GamePlayCallBack();
virtual void update(const float currentTime, const float elapsedTime) = 0;
}; | 18,623 |
https://github.com/mashafrancis/almond-be/blob/master/src/app/models/resource.ts | Github Open Source | Open Source | MIT | 2,021 | almond-be | mashafrancis | TypeScript | Code | 34 | 95 | import * as mongoose from 'mongoose';
import { IResource } from '../interfaces/IResource';
export const Resource = new mongoose.Schema({
name: {
type: String,
required: true,
},
});
export default mongoose.model<IResource & mongoose.Document>(
'Resource',
Resource,
);
| 16,934 |
https://github.com/daantimmer/embeddedinfralib/blob/master/protobuf/protoc_echo_plugin/test/TestProtoCEchoPlugin.cpp | Github Open Source | Open Source | Unlicense | 2,021 | embeddedinfralib | daantimmer | C++ | Code | 1,050 | 5,002 | #include "gmock/gmock.h"
#include "generated/echo/TestMessages.pb.hpp"
#include "infra/stream/ByteInputStream.hpp"
#include "infra/stream/ByteOutputStream.hpp"
#include "infra/util/test_helper/MockCallback.hpp"
#include "infra/syntax/ProtoFormatter.hpp"
#include "infra/syntax/ProtoParser.hpp"
#include "services/network... | 26,717 |
https://github.com/ksubramani9/MachineLoaning/blob/master/node_modules/react-native-scripts/build/bin/crna-entry.js | Github Open Source | Open Source | MIT | 2,018 | MachineLoaning | ksubramani9 | JavaScript | Code | 152 | 661 | 'use strict';
var _getPrototypeOf = require('babel-runtime/core-js/object/get-prototype-of');
var _getPrototypeOf2 = _interopRequireDefault(_getPrototypeOf);
var _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');
var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);
var _createClass2 = ... | 25,687 |
https://github.com/soulchainer/jenni/blob/master/src/index.js | Github Open Source | Open Source | MIT | 2,019 | jenni | soulchainer | JavaScript | Code | 12 | 45 | exports.init = require('./commands/init');
exports.status = require('./commands/status');
exports.config = require('./commands/config');
exports.open = require('./commands/open');
| 15,465 |
https://github.com/ckshe/siui/blob/master/tiiimmo/admin/src/main/java/com/linln/admin/produce/domain/PcbTask.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | siui | ckshe | Java | Code | 284 | 1,333 | package com.linln.admin.produce.domain;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.linln.common.enums.StatusEnum;
import com.linln.common.utils.StatusUtil;
import com.linln.modules.system.domain.User;
import lombok.Data;
import org.hibernate.annotations.NotFound;
import org.hibernate.annotations.No... | 52,201 |
https://github.com/Ulisessg/design-system/blob/master/src/components/ShowComponent.js | Github Open Source | Open Source | MIT | null | design-system | Ulisessg | JavaScript | Code | 46 | 241 | // mixin component(name, use, ejemplo)
// h1(class="")=name
// br
// h2(class="")=uso
// br
// div=ejemplo
// mixin code(name, use, line1,line2,line3, line4, line5, line6,line7,line8,line9,line10,line11,line12,line13, line14,line15,line16,line17,line18,line19,line20)
// h1(class="container__name")=name
// ... | 48,946 |
https://github.com/hirwuinC/century21/blob/master/public/js/contacto.js | Github Open Source | Open Source | MIT | null | century21 | hirwuinC | JavaScript | Code | 195 | 758 | $(document).ready(function(){
/////////////////////////////////////////MOSTRAR Y OCULTAR PRELOAD ///////////////////////////////////////////////////////
function mostrarPreload(){
var ancho = 0;
var alto = 0;
if (window.innerWidth == undefined) ancho = window.screen.width;
else ancho = window.in... | 2,035 |
https://github.com/huaweicloud/huaweicloud-sdk-java-v3/blob/master/services/cbs/src/main/java/com/huaweicloud/sdk/cbs/v1/model/ExecuteGetCharactersRequest.java | Github Open Source | Open Source | Apache-2.0 | 2,023 | huaweicloud-sdk-java-v3 | huaweicloud | Java | Code | 460 | 1,678 | package com.huaweicloud.sdk.cbs.v1.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Objects;
/**
* Request Object
*/
public class ExecuteGetCharactersRequest {
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value =... | 20,825 |
https://github.com/abilogos/atom-i18n/blob/master/def/sk/welcome.cson | Github Open Source | Open Source | MIT | 2,022 | atom-i18n | abilogos | CoffeeScript | Code | 84 | 307 | Welcome:
tabTitle: "Vitajte"
subtitle: {
text1: "Modifikovateľný editor pre 21"
superscript: ""
text2: " storočie"
}
help: {
forHelpVisit: "Pre pomoc prosím navštívte"
atomDocs: {
text1: ""
link: "Dokumentáciu Atomu"
text2: " pre Návody a API REFERENCIE."
_template: "... | 26,154 |
https://github.com/gufranmirza/frontend-starter/blob/master/src/components/common/NotFound/styles.tsx | Github Open Source | Open Source | MIT | null | frontend-starter | gufranmirza | TypeScript | Code | 67 | 197 | import styled from 'styled-components';
import * as vars from '@/core/theme/vars';
import { AppContainer } from '@/core/components/AppContainer';
export const Root = styled.div`
padding: ${vars.ApplicationPadding};
height: 100vh;
`;
export const Container = styled(AppContainer)`
display: flex;
align-items: ce... | 43,343 |
https://github.com/leanix/leanix-sdk-java/blob/master/src/main/java/net/leanix/api/models/MetaSubsection.java | Github Open Source | Open Source | MIT | 2,021 | leanix-sdk-java | leanix | Java | Code | 858 | 2,709 | /*
* Pathfinder
* Core application for storage and analysis of IT landscape data
*
* OpenAPI spec version: 5.0.813
*
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package net.leanix.api... | 10,503 |
https://github.com/YadanarMin/ipd_azure/blob/master/ipd/resources/views/doorWindowDetail.blade.php | Github Open Source | Open Source | MIT | 2,021 | ipd_azure | YadanarMin | Blade | Code | 498 | 2,807 | @extends('layouts.baselayout')
@section('title', 'CCC - Door,Window info search')
@section('head')
<link rel="stylesheet" href="https://developer.api.autodesk.com/modelderivative/v2/viewers/7.*/style.min.css" type="text/css">
<script src="https://developer.api.autodesk.com/modelderivative/v2/viewers/7.*/viewer3D.min.j... | 34,853 |
https://github.com/FabianWe/goel/blob/master/tests/graph_test.go | Github Open Source | Open Source | MIT | null | goel | FabianWe | Go | Code | 358 | 812 | // The MIT License (MIT)
//
// Copyright (c) 2016, 2017, 2018 Fabian Wenzelmann
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rig... | 15,488 |
https://github.com/showdpro/android-sdk/blob/master/omisego-core/src/test/kotlin/co/omisego/omisego/websocket/listener/TransactionConsumptionListenerTest.kt | Github Open Source | Open Source | Apache-2.0 | 2,018 | android-sdk | showdpro | Kotlin | Code | 137 | 582 | package co.omisego.omisego.websocket.listener
/*
* OmiseGO
*
* Created by Phuchit Sirimongkolsathien on 25/7/2018 AD.
* Copyright © 2017-2018 OmiseGO. All rights reserved.
*/
import co.omisego.omisego.constant.enums.ErrorCode
import co.omisego.omisego.model.APIError
import co.omisego.omisego.model.socket.SocketR... | 18,245 |
https://github.com/wateret/mengde/blob/master/game/src/gui/foundation/events.h | Github Open Source | Open Source | MIT | 2,021 | mengde | wateret | C++ | Code | 52 | 184 | #ifndef MENGDE_GUI_FOUNDATION_EVENTS_H_
#define MENGDE_GUI_FOUNDATION_EVENTS_H_
#include "key_event.h"
#include "mouse_button_event.h"
#include "mouse_motion_event.h"
#include "mouse_wheel_event.h"
namespace mengde {
namespace gui {
namespace foundation {
class UnsupportedEvent {
public:
UnsupportedEvent() = defa... | 1,079 |
https://github.com/nhannd/Xian/blob/master/Ris/Client/CannedTextSummaryComponent.cs | Github Open Source | Open Source | Apache-2.0 | 2,022 | Xian | nhannd | C# | Code | 1,094 | 4,141 | #region License
// Copyright (c) 2011, ClearCanvas Inc.
// All rights reserved.
// http://www.clearcanvas.ca
//
// This software is licensed under the Open Software License v3.0.
// For the complete license, see http://www.clearcanvas.ca/OSLv3.0
#endregion
using System;
using System.Collections.Generic;
using System... | 43,520 |
https://github.com/Lax/iOS-Swift-Demos/blob/master/Flags/Flags/RootViewController.swift | Github Open Source | Open Source | Apache-2.0 | 2,019 | iOS-Swift-Demos | Lax | Swift | Code | 184 | 519 | /*
Copyright (C) 2016 Apple Inc. All Rights Reserved.
See LICENSE.txt for this sample’s licensing information
Abstract:
The `RootViewController` manages an embedded `UIPageViewController` to display a randomized list of flags provided by a `RootViewControllerDataSource`.
*/
import UIKit
class RootViewController... | 22,179 |
https://github.com/africanpilot/navit_app/blob/master/lib/box.dart | Github Open Source | Open Source | MIT | null | navit_app | africanpilot | Dart | Code | 83 | 279 | import 'package:flutter/material.dart';
import 'package:inview_notifier_list/inview_notifier_list.dart';
class Box extends StatelessWidget {
final String id;
final double height;
const Box({
Key key,
@required this.id,
this.height = 250.0,
}) : super(key: key);
@override
Widget build(BuildConte... | 45,855 |
https://github.com/Jackstone92/A11yoop/blob/master/Sources/A11yoopMonitor/A11yStatusProvider/A11yStatusProvider.swift | Github Open Source | Open Source | MIT | 2,022 | A11yoop | Jackstone92 | Swift | Code | 77 | 133 | //
// Interface.swift
// Created by Jack Stone in 2021.
//
import Foundation
/// Provides the current status of a given accessibility feature.
struct A11yStatusProvider {
/// Returns the current status for a given accessibility feature, identified by its type.
///
/// - Parameter type: The type of acce... | 17,376 |
https://github.com/camilohe/PowerShellTraps/blob/master/Basic/Invocation-with-odd-paths/test.1.invocation.ps1 | Github Open Source | Open Source | Apache-2.0 | 2,015 | PowerShellTraps | camilohe | PowerShell | Code | 64 | 160 |
# set location to this script directory
$PSScriptRoot = Split-Path $MyInvocation.MyCommand.Definition
Set-Location -LiteralPath $PSScriptRoot
# make the directory "test[" and the script "test.ps1" in it
if (!(Test-Path -LiteralPath test[)) {
$null = mkdir test[
Set-Content -LiteralPath test[\test.ps1 -Value 42
}
#... | 36,529 |
https://github.com/asalvo/Aero/blob/master/Projects/Aero.Cake/Features/DotNet/Settings/PublishSettings.cs | Github Open Source | Open Source | MIT | null | Aero | asalvo | C# | Code | 122 | 291 | using Aero.Cake.Features.DotNet.Services;
using Cake.Common.Tools.DotNetCore.Publish;
namespace Aero.Cake.Features.DotNet.Settings
{
public static class PublishSettings
{
/// <summary>
/// Creates default publish settings for a folder publish operation. This builds for all runtimes and does no... | 48,201 |
https://github.com/robert-mijakovic/readex-ptf/blob/master/autotune/searchalgorithms/random/src/UniformDistributionModel.cc | Github Open Source | Open Source | BSD-3-Clause-No-Nuclear-License-2014, BSD-3-Clause | null | readex-ptf | robert-mijakovic | C++ | Code | 97 | 302 | #include "UniformDistributionModel.h"
#include <boost/random/uniform_smallint.hpp>
UniformDistributionModel::UniformDistributionModel( SearchSpace* ss )
: searchSpace( ss ) {
rng.seed( std::time( 0 ) );
}
TuningSpecification* UniformDistributionModel::sample() const {
std::vector<TuningParameter*> tuni... | 46,325 |
https://github.com/irisnet/cosmos-sdk/blob/master/x/ibc/02-client/types/errors.go | Github Open Source | Open Source | Apache-2.0 | 2,020 | cosmos-sdk | irisnet | Go | Code | 164 | 548 | package types
import (
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
)
// IBC client sentinel errors
var (
ErrClientExists = sdkerrors.Register(SubModuleName, 2, "light client already exists")
ErrClientNotFound = sdkerrors.Register(SubModuleName, 3, "light ... | 38,936 |
https://github.com/gsankarece/OnlineBookStore/blob/master/BookStore.Service/ViewModels/CartView.cs | Github Open Source | Open Source | MIT | null | OnlineBookStore | gsankarece | C# | Code | 44 | 109 | using System;
using System.Collections.Generic;
using System.Text;
namespace BookStore.Service.ViewModels
{
public class CartView
{
public CartView()
{
Books = new List<BookView>();
}
public Guid OrderNumber { get; set; }
public IList<BookView> Books { get;... | 15,619 |
https://github.com/yndpro/some-demo/blob/master/react-demo/src/middleware/logger.js | Github Open Source | Open Source | MIT | null | some-demo | yndpro | JavaScript | Code | 25 | 108 | const logger = ({dispatch,getState}) => next => action => {
console.group(action.type);
console.log("当前状态为",getState().toJS());
console.log("发送一个action",action);
const _next = next(action);
console.log("当前状态为",getState().toJS());
console.groupEnd();
return _next;
}
export default logger; | 27,961 |
https://github.com/yanni4night/baiduneitui/blob/master/scripts/neitui.js | Github Open Source | Open Source | MIT | null | baiduneitui | yanni4night | JavaScript | Code | 149 | 563 | /**
* Copyright (C) 2015 tieba.baidu.com
* neitui.js
*
* changelog
* 2015-09-25[18:08:51]:revised
*
* @author yinyong02@baidu.com
* @version 0.1.0
* @since 0.1.0
*/
define(['./htmlparser'], function(htmlparser) {
return {
parseSearchConds: function(queryObj, cb) {
if (!queryObj) {
... | 10,911 |
https://github.com/hellow554/pvrecorder/blob/master/sdk/nodejs/index.js | Github Open Source | Open Source | Apache-2.0 | 2,022 | pvrecorder | hellow554 | JavaScript | Code | 547 | 1,323 | //
// Copyright 2021 Picovoice Inc.
//
// You may not use this file except in compliance with the license. A copy of the license is located in the "LICENSE"
// file accompanying this source.
//
// Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
// an "... | 22,566 |
https://github.com/SuddenGunter/adventofcode/blob/master/2015/day9/parser/parser.go | Github Open Source | Open Source | MIT | null | adventofcode | SuddenGunter | Go | Code | 145 | 422 | package parser
import (
"bufio"
"os"
"strconv"
"strings"
"aoc-2015-day9/graph"
)
func Lines(fileName string) ([]string, error) {
f, err := os.Open(fileName)
if err != nil {
return nil, err
}
defer f.Close()
scanner := bufio.NewScanner(f)
data := make([]string, 0)
for scanner.Scan() {
data = append(... | 2,044 |
https://github.com/olekhy/xphpx/blob/master/inc/db/db_article.php | Github Open Source | Open Source | MIT | 2,013 | xphpx | olekhy | PHP | Code | 2,694 | 6,937 | <?php
//include_once "./.inc/db/db_common.php";
#
# Table structure for table `article`
#
/*
function article_find ($args = array()) {
$_id_article = addslashes($args['id_article']);
//$_customer = addslashes($args['customer']);
$_ti... | 35,588 |
https://github.com/windystrife/UnrealEngine_NVIDIAGameWorks/blob/master/Engine/Extras/ThirdPartyNotUE/GNU_Make/make-3.81/src/make/3.81/make-3.81/tests/work/options/dash-C.mk | Github Open Source | Open Source | GPL-3.0-only, MIT, LicenseRef-scancode-proprietary-license | 2,022 | UnrealEngine_NVIDIAGameWorks | windystrife | Makefile | Code | 17 | 30 | all: ; @echo This makefile did not clean the dir ... good
clean: ; rm -f EXAMPLE$(ext)
| 41,350 |
https://github.com/microsoft/DSynth/blob/master/src/DSynth.Engine.Tests/UnitTests/TokenHandlers/DateTimeHandlerTests.cs | Github Open Source | Open Source | MIT | 2,022 | DSynth | microsoft | C# | Code | 419 | 1,658 | /*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... | 10,684 |
https://github.com/Yukiniro/million/blob/master/packages/million/index.ts | Github Open Source | Open Source | MIT | null | million | Yukiniro | TypeScript | Code | 53 | 138 | export const _ = undefined;
export * from './createElement';
export * from './drivers/useChildren';
export * from './drivers/useNode';
export * from './drivers/useProps';
export * from './m';
export * from './render';
export { DeltaTypes, EffectTypes, Flags, OLD_VNODE_FIELD } from './types';
export type {
Commit,
D... | 20,123 |
https://github.com/anthonycorletti/coinbasepro-scheduler/blob/master/cbpa/services/account.py | Github Open Source | Open Source | MIT | 2,022 | coinbasepro-scheduler | anthonycorletti | Python | Code | 265 | 846 | import json
import math
import time
from typing import Union
import coinbasepro
from cbpa.logger import logger
from cbpa.schemas.account import AddFundsResponse
from cbpa.schemas.config import Config
from cbpa.schemas.currency import CCC, FCC
from cbpa.services.discord import DiscordService
class AccountService:
... | 43,999 |
https://github.com/devlabs91/travelgate-notify/blob/master/src/Models/Ota/VehicleRentalTransactionType/PricedEquipsAType/PricedEquipAType.php | Github Open Source | Open Source | MIT | null | travelgate-notify | devlabs91 | PHP | Code | 184 | 828 | <?php
namespace Devlabs91\TravelgateNotify\Models\Ota\VehicleRentalTransactionType\PricedEquipsAType;
/**
* Class representing PricedEquipAType
*/
class PricedEquipAType
{
/**
* @property \Devlabs91\TravelgateNotify\Models\Ota\VehicleRentalTransactionType\PricedEquipsAType\PricedEquipAType\EquipmentAType[... | 48,590 |
https://github.com/UAH-s-Telematics-Engineering-Tasks/adv_programming/blob/master/P_4/P_4_a/inc/Library_includes.h | Github Open Source | Open Source | MIT | 2,020 | adv_programming | UAH-s-Telematics-Engineering-Tasks | C++ | Code | 8 | 27 | #include <cstring>
#include <iostream>
#include <string>
#include <limits>
| 11,935 |
https://github.com/austingod/bk-ci/blob/master/src/backend/codecc/core/defect/api-defect/src/main/java/com/tencent/bk/codecc/defect/vo/coderepository/UploadRepositoriesVO.java | Github Open Source | Open Source | MIT | null | bk-ci | austingod | Java | Code | 104 | 445 | package com.tencent.bk.codecc.defect.vo.coderepository;
import com.tencent.devops.common.api.CodeRepoVO;
import com.tencent.devops.common.api.CommonVO;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import java.util.List;
import java.util.Set;
/**
* 代码仓库信息视图
*
* @version V1.0
* @date 2019/11/15
*/
... | 38,447 |
https://github.com/xiaohaijin/Qt/blob/master/ImportantExample/QFramer/dialogs/settingdialog.cpp | Github Open Source | Open Source | MIT | 2,022 | Qt | xiaohaijin | C++ | Code | 175 | 521 | /****************************************************************************
**
** Copyright (C) 2014 dragondjf
**
** QFramer is a frame based on Qt5.3, you will be more efficient with it.
** As an Qter, Qt give us a nice coding experience. With user interactive experience(UE)
** become more and more important in mo... | 38,394 |
https://github.com/vlovsky/libnd4j/blob/master/cibuild.sh | Github Open Source | Open Source | Apache-2.0 | 2,017 | libnd4j | vlovsky | Shell | Code | 36 | 109 | #!/usr/bin/env bash
set -eu
install() {
echo "RUNNING INSTALL"
if hash nvcc 2>/dev/null; then
echo "BUILDING CUDA"
./buildnativeoperations.sh blas cuda release
./buildnativeoperations.sh blas cpu release
else
echo "BUILDING CPU"
./buildnativeoperations.sh blas cpu releas... | 15,454 |
https://github.com/Mahamadou828/projet-op-7/blob/master/Back-end/graphql/schema/CommentType.js | Github Open Source | Open Source | MIT | null | projet-op-7 | Mahamadou828 | JavaScript | Code | 131 | 406 | const graphql = require('graphql');
const { Post, User, Comment } = require('../../databases/databaseInit');
const {
GraphQLObjectType,
GraphQLID,
GraphQLNonNull,
GraphQLString,
GraphQLInt,
} = graphql;
const CommentGraphQl = new GraphQLObjectType({
name: 'comment',
description: 'Comment Model',
fields... | 26,782 |
https://github.com/IOSD/IOSD-NITK-HacktoberFest-Meetup-2019/blob/master/palindrome VishalRastogi.cpp | Github Open Source | Open Source | Apache-2.0 | 2,019 | IOSD-NITK-HacktoberFest-Meetup-2019 | IOSD | C++ | Code | 187 | 574 | #include<iostream>
#include<utility>
using namespace std;
struct node{
int data;
node* next;
node * prev;
node(){}
node(int data){
this->data = data;
this->next = NULL;
this->prev = NULL;
}
};
void createll(pair <node* ,node* > &ll,int n)
{
if(n==0)
{
l... | 9,454 |
https://github.com/JetBrains/MPS/blob/master/languages/baseLanguage/baseLanguage/source_gen/jetbrains/mps/baseLanguage/typesystem/check_ThrowStatementInFinally_NonTypesystemRule.java | Github Open Source | Open Source | LicenseRef-scancode-free-unknown, Apache-2.0, LicenseRef-scancode-unknown-license-reference | 2,023 | MPS | JetBrains | Java | Code | 179 | 1,070 | package jetbrains.mps.baseLanguage.typesystem;
/*Generated by MPS */
import jetbrains.mps.lang.typesystem.runtime.AbstractNonTypesystemRule_Runtime;
import jetbrains.mps.lang.typesystem.runtime.NonTypesystemRule_Runtime;
import org.jetbrains.mps.openapi.model.SNode;
import jetbrains.mps.typesystem.inference.TypeCheck... | 2,495 |
https://github.com/QingWei-Li/vuep.run/blob/master/src/utils/iframe.js | Github Open Source | Open Source | MIT | 2,022 | vuep.run | QingWei-Li | JavaScript | Code | 109 | 421 | /**
* From: https://github.com/egoist/codepan/blob/2c22bb3d7a7a4e31fd99fc640d320f7ec24d2951/src/utils/iframe.js
*/
class Iframe {
constructor({ el, sandboxAttributes = [] }) {
if (!el) {
throw new Error('Expect "el" to mount iframe to!');
}
this.$el = el;
this.sandboxAttributes = sandboxAttrib... | 10,988 |
https://github.com/lure0xaos/CoffeeTime/blob/master/src/main/java/gargoyle/ct/config/convert/impl/CTConfigConverter.java | Github Open Source | Open Source | Unlicense | null | CoffeeTime | lure0xaos | Java | Code | 59 | 226 | package gargoyle.ct.config.convert.impl;
import gargoyle.ct.config.CTConfig;
import gargoyle.ct.config.convert.CTUnitConverter;
import org.jetbrains.annotations.NotNull;
import java.util.concurrent.TimeUnit;
public final class CTConfigConverter implements CTUnitConverter<CTConfig> {
private final CTConfigDataCon... | 5,622 |
https://github.com/nb-e/OpenRootSim/blob/master/OpenSimRoot/src/export/VTK/VTU.cpp | Github Open Source | Open Source | BSD-3-Clause | 2,021 | OpenRootSim | nb-e | C++ | Code | 3,050 | 11,521 | /*
Copyright © 2016, The Pennsylvania State University
All rights reserved.
Copyright © 2016 Forschungszentrum Jülich GmbH
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted under the GNU General Public License v3 and provided that the following conditi... | 6,325 |
https://github.com/rafafigueroa/asl-manzano/blob/master/code/commands/src_autogenerated/cx_boom_positions.cpp | Github Open Source | Open Source | MIT, LicenseRef-scancode-warranty-disclaimer, CC0-1.0 | 2,017 | asl-manzano | rafafigueroa | C++ | Code | 365 | 1,821 | #include "cx_boom_positions.h"
namespace mzn {
CxBoomPositions::CxBoomPositions():
Command(0, 32),
channel_1_boom(),
channel_2_boom(),
channel_3_boom(),
channel_4_boom(),
channel_5_boom(),
channel_6_boom(),
analog_positive_supply("x10 mV"),
analog_negative_supply("x10 mV"),
inpu... | 37,913 |
https://github.com/onlyitme/shopping/blob/master/site/js/site.js | Github Open Source | Open Source | MIT, LicenseRef-scancode-unknown-license-reference | 2,021 | shopping | onlyitme | JavaScript | Code | 979 | 3,480 | const url = 'http://localhost:3000/'
const axiosAPI = async(body) => await axios(body)
const getCategories = async() => {
const urlProducts = url + 'Categories'
const body = {
method: 'get',
url: urlProducts,
responseType: 'json'
}
return await axiosAPI(body)
}
const getCategoryB... | 5,077 |
https://github.com/Stephen-Hamilton-C/kappdirs/blob/master/src/test/kotlin/io/github/erayerdin/kappdirs/appdirs/AppDirsTest.kt | Github Open Source | Open Source | Apache-2.0 | 2,019 | kappdirs | Stephen-Hamilton-C | Kotlin | Code | 235 | 987 | package io.github.erayerdin.kappdirs.appdirs
import org.junit.Assert.assertEquals
import org.junit.Test
import java.nio.file.Path
import java.nio.file.Paths
object ImplAppDirs: AppDirs {
override fun getUserDataDir(appName: String, appVersion: String, appAuthor: String?, roaming: Boolean): Path = Paths.get("/a")
... | 53,053 |
https://github.com/limidata/geekstore/blob/master/src/main/java/io/geekstore/eventbus/events/CollectionModificationEvent.java | Github Open Source | Open Source | MIT | 2,021 | geekstore | limidata | Java | Code | 112 | 234 | /*
* Copyright (c) 2020 GeekStore.
* All rights reserved.
*/
package io.geekstore.eventbus.events;
import io.geekstore.common.RequestContext;
import io.geekstore.entity.CollectionEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.util.Set;
/**
* This event is fired whenever a Collection is... | 43,087 |
https://github.com/ramakristipati/trex-core/blob/master/src/dpdk/lib/power/power_common.c | Github Open Source | Open Source | GPL-1.0-or-later, GPL-2.0-or-later, GPL-2.0-only, Apache-2.0 | 2,023 | trex-core | ramakristipati | C | Code | 625 | 1,824 | /* SPDX-License-Identifier: BSD-3-Clause
* Copyright(c) 2020 Intel Corporation
*/
#include <limits.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <rte_log.h>
#include <rte_string_fns.h>
#include "power_common.h"
#define POWER_SYSFILE_SCALING_DRIVER \
"/sys/devices/system/cpu/cpu%u/cpuf... | 20,461 |
https://github.com/bgoonz/UsefulResourceRepo2.0/blob/master/MY_REPOS/a-whole-bunch-o-gatsby-templates/league-for-good/client/src/components/dashboard/seasons/season_list/seasonLink.jsx | Github Open Source | Open Source | LicenseRef-scancode-free-unknown, MIT | 2,022 | UsefulResourceRepo2.0 | bgoonz | JavaScript | Code | 87 | 231 | import React from 'react';
import { Link } from 'react-router-dom';
import { SEASON_CURR_TEAMS, makeLinkDynamic } from '../../../routes';
import IconButton from 'material-ui/IconButton';
import ListIcon from 'material-ui/svg-icons/action/list';
import { cssDashboard } from '../../../style';
// Roster link changes the... | 49,030 |
https://github.com/felibassx/iosExample/blob/master/MoltinSwiftExample/MoltinSwiftExample/CollectionsViewController.swift | Github Open Source | Open Source | MIT | 2,018 | iosExample | felibassx | Swift | Code | 374 | 1,168 | //
// CollectionsViewController.swift
// MoltinSwiftExample
//
// Created by Dylan McKee on 15/08/2015.
// Copyright (c) 2015 Moltin. All rights reserved.
//
import UIKit
import Moltin
class CollectionsViewController: UIViewController, UITableViewDataSource, UITableViewDelegate {
@IBOutlet weak var table... | 33,077 |
https://github.com/dtrasbo/ansitags/blob/master/lib/ansitags.rb | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, MIT | 2,012 | ansitags | dtrasbo | Ruby | Code | 319 | 1,024 | class String
def ansi_to_html
start_tags = 0
low_intensity_colors = [
'000000',
'800000',
'008000',
'808000',
'000080',
'000080',
'008080',
'C0C0C0'
]
high_intensity_colors = [
'808080',
'FF0000',
'00FF00',
'FFFF00',
'0000... | 9,290 |
https://github.com/JessonYue/LeetCodeLearning/blob/master/Array/zhangjunwei/linked_list/isPalindrome_6_12.java | Github Open Source | Open Source | MIT | 2,021 | LeetCodeLearning | JessonYue | Java | Code | 239 | 704 | package com.lanfairy.md;
import java.util.ArrayList;
import java.util.ListIterator;
import java.util.PriorityQueue;
public class isPalindrome {
public class ListNode {
int val;
ListNode next;
ListNode(int x) {
val = x;
}
}
public boolean isPalindrome1(ListNode... | 51,224 |
https://github.com/IndiaWikiFiles/Maharashtra/blob/master/Ratnagiri-Villages-Marathi/Bhambed_565978_mr.wiki | Github Open Source | Open Source | MIT | 2,020 | Maharashtra | IndiaWikiFiles | null | Spoken | 1,132 | 7,196 | {{माहितीचौकट भारतीय न्यायक्षेत्र
|प्रकार=गाव
|जनगणना_स्थलनिर्देशांक=565978
|स्थानिक_नाव=भांबेड
|तालुका_नाव=लांजा
|जिल्हा_नाव=रत्नागिरी
|राज्य_नाव =महाराष्ट्र
|विभाग=
|जिल्हा=[[रत्नागिरी]]
|तालुका_नावे =[[लांजा]]
|जवळचे_शहर =[[Rajapur]]
|अक्षांश=
|रेखांश=
|शोधक_स्थान =right
|क्षेत्रफळ_एकूण=16.54
|उंची=
|लोकसंख्या_एकूण=2... | 10,872 |
https://github.com/synnks/slf4jmigrator/blob/master/src/main/java/com/slf4jmigrator/util/RegexUtils.java | Github Open Source | Open Source | Apache-2.0 | null | slf4jmigrator | synnks | Java | Code | 307 | 1,497 | package com.slf4jmigrator.util;
import java.util.ArrayList;
import java.util.List;
import java.util.function.Function;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import static com.slf4jmigrator.util.Constants.LEVEL_MAPPINGS;
import static com.slf4jmigrator.util.StringUtils.capitalize;
public fin... | 39,321 |
https://github.com/yurivin/XChange-yurivin/blob/master/xchange-core/src/main/java/org/knowm/xchange/client/ResilienceUtils.java | Github Open Source | Open Source | MIT | 2,020 | XChange-yurivin | yurivin | Java | Code | 173 | 690 | package org.knowm.xchange.client;
import io.github.resilience4j.ratelimiter.RateLimiter;
import io.github.resilience4j.retry.Retry;
import java.io.IOException;
import java.util.concurrent.Callable;
import org.knowm.xchange.ExchangeSpecification;
public final class ResilienceUtils {
private ResilienceUtils() {}
... | 22,282 |
https://github.com/i-gaven/Just_a_dumper/blob/master/all_headers/同花顺-炒股、股票-10.20.50(越狱应用)_headers/HXRouter.h | Github Open Source | Open Source | MIT | 2,018 | Just_a_dumper | i-gaven | Objective-C | Code | 108 | 487 | //
// 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 NSMutableDictionary;
@protocol HXSubjectProtocol;
@interface HXRouter : NSObject
{
id <HXSubject... | 25,262 |
https://github.com/CodeWithAloha/allb.us/blob/master/allbus-frontend/src/variables.scss | Github Open Source | Open Source | BSD-3-Clause | 2,017 | allb.us | CodeWithAloha | SCSS | Code | 11 | 60 | $body-bg-color: #f6f6ef;
$body-font-size: 12px;
$app-font-family: 'Open Sans';
$content-padding: 1em;
$footer-padding: 1em;
| 43,320 |
https://github.com/david-waterworth/catboost/blob/master/contrib/tools/ragel6/ya.make | Github Open Source | Open Source | GPL-2.0-only, Apache-2.0 | 2,022 | catboost | david-waterworth | Makefile | Code | 19 | 149 | # Generated by devtools/yamaker from nixpkgs 980c4c3c2f664ccc5002f7fd6e08059cf1f00e75.
IF (USE_PREBUILT_TOOLS)
INCLUDE(${ARCADIA_ROOT}/build/prebuilt/contrib/tools/ragel6/ya.make.prebuilt)
ENDIF()
IF (NOT PREBUILT)
INCLUDE(${ARCADIA_ROOT}/contrib/tools/ragel6/bin/ya.make)
ENDIF()
RECURSE(
bin
)
| 16,050 |
https://github.com/yh-coder/weather/blob/master/database/init/cities/city.list187.sql | Github Open Source | Open Source | MIT | null | weather | yh-coder | SQL | Code | 1,120 | 22,626 | insert into city values
(1723052,"Bulad","PH",122.998299,10.2548),
(1723055,"Bulacnin","PH",121.141113,13.98583),
(1723070,"Bulacan","PH",125.421112,6.5675),
(1723085,"Bula","PH",123.278,13.4701),
(1723086,"Bula","PH",122.568497,11.448),
(1723128,"Bukal Sur","PH",121.385559,13.93806),
(1723130,"Bukal","PH",121.539719,1... | 27,924 |
https://github.com/pasmuss/cmssw/blob/master/CalibMuon/DTCalibration/plugins/DTT0FEBPathCorrection.cc | Github Open Source | Open Source | Apache-2.0 | null | cmssw | pasmuss | C++ | Code | 842 | 2,315 | /*
* See header file for a description of this class.
*
* $Date: 2012/04/10 17:55:08 $
* $Revision: 1.1 $
* \author Mark Olschewski
*/
#include "DTT0FEBPathCorrection.h"
#include "FWCore/ParameterSet/interface/ParameterSet.h"
#include "FWCore/Framework/interface/EventSetup.h"
#include "FWCore/Framework/inter... | 43,392 |
https://github.com/IText-IALab/front-itext/blob/master/src/state/features/formSlice.ts | Github Open Source | Open Source | Apache-2.0 | null | front-itext | IText-IALab | TypeScript | Code | 87 | 248 | /**
* @packageDocumentation
* @module State/Features/Form
* Contains the form feature.
*/
import { createSlice, PayloadAction } from '@reduxjs/toolkit';
import type { RootState } from '~/state/store';
import { WordsOptionType } from '~/types/form';
export type FormStateType = {
mostUsedWords: WordsOptionType[]... | 41,619 |
https://github.com/jfhflores11/FinanceBank/blob/master/financeBank/web/js/numpad.js | Github Open Source | Open Source | Apache-2.0 | null | FinanceBank | jfhflores11 | JavaScript | Code | 229 | 1,019 | //BCP NUMPAD 1.0 (teclado virtual)
//sistemas de atencion - dixan martinez
function clear2(obj)
{
if (obj) obj.value= '';
}
function numKeyPressed2(obj, id, ocontrol)
{
n= getValue(obj, id);
if (ocontrol && (ocontrol.value.length < 7) ) ocontrol.value += n;
}
function numKeyPressed2_4(obj, id, ocontrol)... | 81 |
https://github.com/CaoLP/hay/blob/master/Vendor/croogo/croogo/Croogo/Test/test_app/View/Themed/Mytheme/Plugin/Nodes/Nodes/index_blog.ctp | Github Open Source | Open Source | MIT | 2,022 | hay | CaoLP | PHP | Code | 3 | 11 | index_blog.ctp in Mytheme
| 43,309 |
https://github.com/koty08/JAVA_PBP/blob/master/week9-exception_IO/hw/com/fm/repository/PlayerQuery.java | Github Open Source | Open Source | MIT | null | JAVA_PBP | koty08 | Java | Code | 43 | 166 | package com.fm.repository;
import com.fm.unit.Player;
import java.util.ArrayList;
import java.util.List;
import java.util.function.Predicate;
import java.util.stream.Collectors;
public class PlayerQuery {
public static List<Player> query(List<Player> players, List<Predicate<Player>> conditions){
List<Pla... | 5,205 |
https://github.com/iamonuwa/ivote/blob/master/modules/backend/views/accounts/staff/blocked.php | Github Open Source | Open Source | MIT | 2,021 | ivote | iamonuwa | PHP | Code | 242 | 1,228 |
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<section class="content-header">
<h1>
<?= $this->lang->line('dashboard'); ?>
<small><?= $this->lang->line('control_panel'); ?></small>
</... | 26,857 |
https://github.com/robinbraemer/bybit/blob/master/util/log.go | Github Open Source | Open Source | Apache-2.0 | 2,021 | bybit | robinbraemer | Go | Code | 76 | 185 | package util
import "github.com/go-logr/logr"
type Logger logr.Logger
var NopLog Logger = (*nop)(nil)
type nop struct{}
func (n *nop) Enabled() bool { return false }
func (n *nop) Error(err error, msg string, keysAndValues ...interface{}) { return }
func (n *nop) Info(ms... | 46,110 |
https://github.com/ganselmo/ngWoloxInt/blob/master/WoloxInt/src/app/modules/landing/services/benefits.service.ts | Github Open Source | Open Source | MIT | null | ngWoloxInt | ganselmo | TypeScript | Code | 70 | 288 | import { Injectable } from '@angular/core';
import { Benefit } from '../models/benefit.model';
@Injectable({
providedIn: 'root'
})
export class BenefitsService {
benefits:Array<Benefit> = [
{
iconUrl:'assets/Ic_Hour.svg',
span:'Flexibilidad Horaria'
},
{
iconUrl:'assets/Ic_HomeOffic... | 41,981 |
https://github.com/ibm-hyperknowledge/IAPL/blob/master/timex-29/0016/p_0016_d0004.0_s03.7_7970bf17064cc202751b599ecdece7e4.ttl | Github Open Source | Open Source | MIT | 2,021 | IAPL | ibm-hyperknowledge | Turtle | Code | 116 | 501 | @prefix : <http://www.ibm.com/timex#> .
@prefix v: <http://ex.org/variable#> .
v:0 :bi_mi_oi_d_f v:14 ;
:bi_mi_oi_di_si v:6 ;
:d v:11 ;
:di v:8 ;
:m v:7 ;
:o v:3 ;
:oi_d_f v:4 .
v:1 :bi_mi_oi_di_si v:11 ;
:eq_b_m_o_oi_d_di_s_si_f_fi v:5 .
v:2 :bi_mi_oi v:9 ;
:eq_b_m_o_oi_d_di_s_si_f_f... | 34,183 |
https://github.com/Luc16/JogoAllegroC/blob/master/allegro/src/gp2xwiz/wiz_joystick.c | Github Open Source | Open Source | Zlib, BSD-3-Clause | 2,020 | JogoAllegroC | Luc16 | C | Code | 543 | 2,626 | /* ______ ___ ___
* /\ _ \ /\_ \ /\_ \
* \ \ \L\ \\//\ \ \//\ \ __ __ _ __ ___
* \ \ __ \ \ \ \ \ \ \ /'__`\ /'_ `\/\`'__\/ __`\
* \ \ \/\ \ \_\ \_ \_\ \_/\ __//\ \L\ \ \ \//\ \L\ \
* \ \_\ \_\/\____\/\____\ \____\ \____ \ \_\\ \____/
*... | 30,740 |
https://github.com/kaeluka/spencer-all/blob/master/spencer-analyse/src/main/scala/com/github/kaeluka/spencer/analysis/SpencerData.scala | Github Open Source | Open Source | MIT | null | spencer-all | kaeluka | Scala | Code | 190 | 467 | package com.github.kaeluka.spencer.analysis
case class ObjDesc(klass: Option[String])
case class EdgeDesc(fr: Option[Long], to: Option[Long], kind: EdgeKind.EdgeKind)
object EdgeKind extends Enumeration {
type EdgeKind = Value
val FIELDSTORE, FIELDLOAD, VARSTORE, VARLOAD, READ, MODIFY, FIELD, VAR = Value
def f... | 38,228 |
https://github.com/ibrahimhist/world-map-operations/blob/master/src/app/app.module.ts | Github Open Source | Open Source | MIT | null | world-map-operations | ibrahimhist | TypeScript | Code | 260 | 957 | import { NgModule } from '@angular/core';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { BrowserModule } from '@angular/platform-browser';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { LeafletModule } from '@asymmetrik/ngx-leaflet';
import { Butt... | 29,513 |
https://github.com/atlarge-research/opencraft-opencraft/blob/master/src/main/java/science/atlarge/opencraft/opencraft/net/codec/play/game/MultiBlockChangeCodec.java | Github Open Source | Open Source | MIT | 2,021 | opencraft-opencraft | atlarge-research | Java | Code | 154 | 563 | package science.atlarge.opencraft.opencraft.net.codec.play.game;
import com.flowpowered.network.Codec;
import com.flowpowered.network.util.ByteBufUtils;
import io.netty.buffer.ByteBuf;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import science.atlarge.opencraft.opencraft.net.message.... | 31,301 |
https://github.com/hj1226104386/2015plus/blob/master/静态页练习/穷游网/js/myjs.js | Github Open Source | Open Source | MIT | 2,018 | 2015plus | hj1226104386 | JavaScript | Code | 870 | 4,726 | /**
* Created by Administrator on 2016/10/2.
*/
/**
* 头部弹出部分
*/
$(function () {
//给社区注册点击事件
$("#community").on("click mouseenter", function () {
$(".community-div").slideDown();
});
$(document).on("click", function () {
$(".community-div").slideUp();
});
//给社区下拉列表注册鼠标移入事件 移... | 54,073 |
https://github.com/AAI-USZ/FixJS/blob/master/input/50/after/81286b5371fcf6341e420c37f7b2be556d3a2972_1_1.js | Github Open Source | Open Source | MIT | 2,022 | FixJS | AAI-USZ | JavaScript | Code | 3 | 26 | function(){
be.shownAsTime('string').should.equal('00:00:00')
} | 15,605 |
https://github.com/liangruofei/VisualDL/blob/master/frontend/packages/core/src/hooks/useLocalStorage.ts | Github Open Source | Open Source | Apache-2.0 | 2,020 | VisualDL | liangruofei | TypeScript | Code | 45 | 129 | import {useCallback, useMemo} from 'react';
const useLocalStorage = (key: string) => {
const value = useMemo(() => window.localStorage.getItem(key), [key]);
const setter = useCallback((value: string) => window.localStorage.setItem(key, value), [key]);
const remover = useCallback(() => window.localStorage.r... | 21,267 |
https://github.com/meltinglava/Hauk/blob/master/android/app/src/main/java/info/varden/hauk/ui/listener/StopLinkClickListener.java | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-free-unknown | 2,019 | Hauk | meltinglava | Java | Code | 106 | 289 | package info.varden.hauk.ui.listener;
import android.view.View;
import info.varden.hauk.manager.SessionManager;
import info.varden.hauk.struct.Share;
import info.varden.hauk.utils.Log;
/**
* On-click listener for the button that stops sharing for a link in the list of active links on the
* UI, spawned using ShareL... | 31,760 |
https://github.com/lemon-qiu/wefint.com/blob/master/js/repayment.js | Github Open Source | Open Source | CC-BY-3.0 | null | wefint.com | lemon-qiu | JavaScript | Code | 112 | 651 | $(function() {
layui.use('table',function() {
var table = layui.table;
})
/**
* 支付提交
* @param
* */
window.paymentBtn = function() {
var aliPay = $('#aliPay:checked').val();
var wechatPay = $('#wechatPay:checked').val();
var amount = $('input[name=amount]').... | 35,319 |
https://github.com/iuap-design/datetimepicker/blob/master/examples/dist/js/u-date.js | Github Open Source | Open Source | MIT | 2,016 | datetimepicker | iuap-design | JavaScript | Code | 631 | 3,055 | u.TimeAdapter = u.BaseAdapter.extend({
initialize: function (options) {
var self = this;
u.TimeAdapter.superclass.initialize.apply(this, arguments);
this.validType = 'time';
this.maskerMeta = u.core.getMaskerMeta('time') || {};
this.maskerMeta.format = this.dataModel.getMeta... | 52,166 |
https://github.com/Pendulla/staticdeploy/blob/master/http-adapters/test/managementApiAdapter/routes/CreateGroup.ts | Github Open Source | Open Source | MIT | 2,019 | staticdeploy | Pendulla | TypeScript | Code | 101 | 277 | import { expect } from "chai";
import sinon from "sinon";
import request from "supertest";
import { getManagementApiAdapter } from "../../testUtils";
describe("managementApiAdapter POST /groups", () => {
it("400 on invalid request body", () => {
const server = getManagementApiAdapter({});
return r... | 30,698 |
https://github.com/raghuit/D-CoderS_Hackathon_Template/blob/master/Application Code/hackathon/admin/categories.php | Github Open Source | Open Source | MIT | null | D-CoderS_Hackathon_Template | raghuit | PHP | Code | 3 | 16 | <?php
require_once('__header.php');
?> | 7,684 |
https://github.com/byzhenyu/Code_PHP/blob/master/lnBaseFrame_tp3/Public/assets/sass/core/_helper.scss | Github Open Source | Open Source | MIT | null | Code_PHP | byzhenyu | SCSS | Code | 61 | 230 |
.tw-text-hide {
@include text-hide;
}
// 浮动及闭合浮动
.pull-left,.fl{
@extend %float;
}
.pull-right,.fr{
@include float(right);
}
.clearfix,.cf{
@extend %clearfix;
}
// text-align
.tal {
text-align: left!important;
}
.tar {
text-align: right!important;
}
.tac {
text-align: center!important;
}
.taj... | 39,472 |
https://github.com/NCuculova/Roommates/blob/master/src/main/java/mk/ukim/finki/mp/roommates/repository/MemberRepository.java | Github Open Source | Open Source | MIT | 2,014 | Roommates | NCuculova | Java | Code | 64 | 186 | package mk.ukim.finki.mp.roommates.repository;
import mk.ukim.finki.mp.roommates.model.Member;
import org.springframework.data.jpa.repository.JpaRepository;
public interface MemberRepository extends JpaRepository<Member, Long> {
/**
* Added function that gets the member by his e-mail
* Input: String (e-mail)
* ... | 5,557 |
https://github.com/louis-langholtz/PlayRho/blob/master/PlayRho/Dynamics/WorldBody.hpp | Github Open Source | Open Source | Zlib | 2,023 | PlayRho | louis-langholtz | C++ | Code | 6,039 | 11,134 | /*
* Original work Copyright (c) 2006-2011 Erin Catto http://www.box2d.org
* Modified work Copyright (c) 2023 Louis Langholtz https://github.com/louis-langholtz/PlayRho
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* a... | 17,232 |
https://github.com/Hates/magento_models/blob/master/lib/magento_models/customer_entity_int.rb | Github Open Source | Open Source | MIT | 2,013 | magento_models | Hates | Ruby | Code | 16 | 51 | module MagentoModels
class CustomerEntityInt < Base
include Entity
self.primary_key = "value_id"
self.table_name = "customer_entity_int"
end
end
| 9,656 |
https://github.com/gitter-badger/UnitTestSCAD/blob/master/src/util/ScadHandler.js | Github Open Source | Open Source | MIT | 2,017 | UnitTestSCAD | gitter-badger | JavaScript | Code | 168 | 603 | var fs = require('fs');
var os = require('os');
var execSync = require('child_process').execSync;
function ScadHandler() {
this.scad = 'temp.scad';
this.stl = 'temp.stl';
}
ScadHandler.prototype.writeScadFile = function(header, testText) {
contents = header + os.EOL + testText;
fs.writeFileSync(this.scad, con... | 20,326 |
https://github.com/copslock/broadcom_cpri/blob/master/sdk-6.5.20/libs/sdklt/bcma/test/chip/bcm56780_a0/bcm56780_a0_testutil_drv.c | Github Open Source | Open Source | Spencer-94 | null | broadcom_cpri | copslock | C | Code | 4,314 | 35,892 | /*! \file bcm56780_a0_testutil_drv.c
*
* Chip-specific driver utility.
*/
/*
* This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file.
*
* Copyright 2007-2020 Broadcom Inc. All rights reserved.
*/
#include <shr/shr_debug.h>
#include <s... | 19,925 |
https://github.com/joyerz/test-demo/blob/master/src/assets/styles/index.less | Github Open Source | Open Source | MIT | null | test-demo | joyerz | Less | Code | 21 | 71 | @import "./variable.less";
html,
body {
margin: 0;
padding: 0;
font-size: 12px;
color: @default;
text-align: center;
}
* {
box-sizing: border-box;
}
| 37,189 |
https://github.com/kleopatra999/qsb-mac-plugins/blob/master/delicious/trunk/YahooDeliciousAccount.m | Github Open Source | Open Source | BSD-2-Clause | 2,010 | qsb-mac-plugins | kleopatra999 | Objective-C | Code | 235 | 916 | #import "YahooDeliciousAccount.h"
#import "DeliciousConstants.h"
#import "OAuthDeliciousFetcher.h"
#import "YOSSocial.h"
#import <GTM/GTMBase64.h>
#import <GData/GDataHTTPFetcher.h>
@interface YahooDeliciousAccount ()
// Open delicious.com in the user's preferred browser.
+ (BOOL)openDeliciousHomePage;
// Open Yahoo... | 46,231 |
https://github.com/fireflyhoo/r2dbc-mysql/blob/master/src/main/java/dev/miku/r2dbc/mysql/MySqlRowMetadata.java | Github Open Source | Open Source | Apache-2.0 | null | r2dbc-mysql | fireflyhoo | Java | Code | 397 | 1,148 | /*
* Copyright 2018-2020 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 ap... | 25,974 |
https://github.com/mingweiarthurli/CMPUT-404-Project/blob/master/api/users/urls.py | Github Open Source | Open Source | MIT | null | CMPUT-404-Project | mingweiarthurli | Python | Code | 54 | 237 | from django.conf.urls import url, include
from rest_framework import routers
from users.views import UserViewSet
from users.views import LogInAPIView
from users.views import CurrentAPIView
from knox import views as knox_view
router = routers.DefaultRouter()
router.register(r'author', UserViewSet, basename="user")
url... | 43,217 |
https://github.com/cheststore/chest.store-cli/blob/master/src/libs/FileManagement.js | Github Open Source | Open Source | MIT | null | chest.store-cli | cheststore | JavaScript | Code | 171 | 505 | import fs from 'fs'
const fsStatPromise = fs.promises.stat
const fsWriteFile = fs.promises.writeFile
const mkdirPromise = fs.promises.mkdir
const readFilePromise = fs.promises.readFile
const readdirPromise = fs.promises.readdir
export default function FileManagement() {
return {
getLocalFileStream(filePath) {
... | 4,857 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.