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/stephenpearson/hos_config/blob/master/hos/ansible/roles/osconfig-probe/library/probe.py | Github Open Source | Open Source | Apache-2.0 | 2,016 | hos_config | stephenpearson | Python | Code | 1,436 | 4,326 | #!/usr/bin/python
#
# (c) Copyright 2015-2016 Hewlett Packard Enterprise Development Company LP
#
# 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
... | 7,367 |
https://github.com/mparticle-integrations/mparticle-javascript-integration-amplitude/blob/master/test/tests.js | Github Open Source | Open Source | Apache-2.0 | 2,020 | mparticle-javascript-integration-amplitude | mparticle-integrations | JavaScript | Code | 2,367 | 10,635 | /* eslint-disable no-undef*/
describe('Amplitude forwarder', function () {
var MessageType = {
SessionStart: 1,
SessionEnd: 2,
PageView: 3,
PageEvent: 4,
CrashReport: 5,
OptOut: 6,
Commerce: 16,
},
CommerceEventType ... | 1,862 |
https://github.com/timgates42/kornia/blob/master/kornia/utils/misc.py | Github Open Source | Open Source | Apache-2.0 | 2,022 | kornia | timgates42 | Python | Code | 177 | 435 | import torch
def eye_like(n: int, input: torch.Tensor) -> torch.Tensor:
r"""Return a 2-D tensor with ones on the diagonal and zeros elsewhere with the same batch size as the input.
Args:
n: the number of rows :math:`(N)`.
input: image tensor that will determine the batch size of the output ma... | 10,616 |
https://github.com/cleer73/3d-printing/blob/master/tablet_stand/M5 Stops - Padded.stl | Github Open Source | Open Source | MIT | 2,023 | 3d-printing | cleer73 | null | Spoken | 20,000 | 100,923 | solid ASCII facet normal -3.363064e-02 -9.144065e-01 4.033977e-01 outer loop vertex 8.761404e+00 5.085906e+01 3.265644e+01 vertex 8.825334e+00 5.171331e+01 3.459814e+01 vertex 8.500000e+00 5.087067e+01 3.266095e+01 endloop endfacet facet normal -2.709406e-02 -9.149945e-01 4.025556e-01 outer loop vertex 8.500000e+00 5.0... | 44,130 |
https://github.com/JeremiSharkboy/Kebler-Transmission-Remote-GUI/blob/master/src/Kebler/Views/DialogBoxView.xaml.cs | Github Open Source | Open Source | Apache-2.0 | 2,022 | Kebler-Transmission-Remote-GUI | JeremiSharkboy | C# | Code | 57 | 155 | using System.Windows.Controls;
using Kebler.Models.Interfaces;
namespace Kebler.Views
{
/// <summary>
/// Interaction logic for DialogBoxView.xaml
/// </summary>
public partial class DialogBoxView : IDialogBox
{
public DialogBoxView()
{
InitializeComponent();
... | 37,423 |
https://github.com/lokeshkosuri/sampleMesureWebXR/blob/master/dev/training/questions.js | Github Open Source | Open Source | MIT | 2,022 | sampleMesureWebXR | lokeshkosuri | JavaScript | Code | 437 | 716 | export default
{"intro":
"Your patient is connected to a ventilator, with multiple IVs and a tracheostomy. He needs trach care, Foley catheter care, dressings changed, IV medications given, and his ventilator settings adjusted. Some of these procedures are new to you. Heather is an experienced nurse on your unit.",
"q... | 607 |
https://github.com/openfext/vue-admin-next/blob/master/src/common/components/ui/form-error/index.js | Github Open Source | Open Source | MIT | 2,020 | vue-admin-next | openfext | JavaScript | Code | 8 | 19 | import FormError from './FormError.vue';
export { FormError };
| 43,356 |
https://github.com/Talljack/naive-ui-provider/blob/master/src/container/message/Message.vue | Github Open Source | Open Source | MIT | 2,022 | naive-ui-provider | Talljack | Vue | Code | 54 | 173 | <template>
<div>
<n-h3>Message</n-h3>
<n-button type="primary" @click="handleShowMessage">
useMessage
</n-button>
</div>
</template>
<script lang="ts">
import { defineComponent } from 'vue'
import { useMessage } from 'naive-ui'
export default defineComponent({
name: 'Message',
setup () {
con... | 20,376 |
https://github.com/google-ar/chromium/blob/master/chrome/browser/chromeos/login/screens/network_model.cc | Github Open Source | Open Source | Apache-2.0, BSD-3-Clause-No-Nuclear-License-2014, BSD-3-Clause | 2,022 | chromium | google-ar | C++ | Code | 79 | 284 | // Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/chromeos/login/screens/network_model.h"
#include "chrome/browser/chromeos/login/wizard_controller.h"
namespace chromeos {
cons... | 26,374 |
https://github.com/palgunadi1993/SeisSol/blob/master/src/Geometry/MeshReaderFBinding.cpp | Github Open Source | Open Source | BSD-3-Clause | 2,022 | SeisSol | palgunadi1993 | C++ | Code | 1,180 | 4,317 | /**
* @file
* This file is part of SeisSol.
*
* @author Sebastian Rettenberger (sebastian.rettenberger AT tum.de, http://www5.in.tum.de/wiki/index.php/Sebastian_Rettenberger)
*
* @section LICENSE
* Copyright (c) 2013-2017, SeisSol Group
* All rights reserved.
*
* Redistribution and use in source and binary fo... | 37,934 |
https://github.com/WearApp/WearApp/blob/master/Wear/Settings/EggsViewController/EggsViewController.m | Github Open Source | Open Source | MIT | 2,016 | WearApp | WearApp | Objective-C | Code | 327 | 1,465 | //
// EggsViewController.m
// Wear
//
// Created by 孙恺 on 15/11/23.
// Copyright © 2015年 sunkai. All rights reserved.
//
#import "UIScrollView+VORefresh.h"
#import "EggsViewController.h"
#import "SKChromatography.h"
@interface EggsViewController ()<UITableViewDataSource, UITableViewDelegate>
@end
@implementatio... | 472 |
https://github.com/HTTP-AppOptique/ray-optics.github.io/blob/master/ray-optics/i18n/fr.js | Github Open Source | Open Source | Apache-2.0 | null | ray-optics.github.io | HTTP-AppOptique | JavaScript | Code | 782 | 2,140 | if (typeof locales == 'undefined') locales = {};
locales["fr"] = {
"lang": {
"message": "Français"
},
"font": {
"message": "Arial"
},
"page_title": {
"message": "Simulateur d'optique géométrique - Accueil"
},
"title": {
"message": "Simulateur d'optique géométrique"
},
"description": {
... | 34,574 |
https://github.com/HY-Org/hy.common.report/blob/master/src/test/java/org/hy/common/report/junit/total/OrgInfo.java | Github Open Source | Open Source | Apache-2.0 | 2,023 | hy.common.report | HY-Org | Java | Code | 167 | 621 | package org.hy.common.report.junit.total;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
/**
* 测试用的样例类:部门
*
* @author ZhengWei(HY)
* @createDate 2017-03-21
* @version v1.0
*/
public class OrgInfo
{... | 37,058 |
https://github.com/madanagopaltcomcast/pxCore/blob/master/examples/pxScene2d/external/WinSparkle/3rdparty/wxWidgets/include/wx/object.h | Github Open Source | Open Source | Apache-2.0 | 2,022 | pxCore | madanagopaltcomcast | C | Code | 1,672 | 5,817 | /////////////////////////////////////////////////////////////////////////////
// Name: wx/object.h
// Purpose: wxObject class, plus run-time type information macros
// Author: Julian Smart
// Modified by: Ron Lee
// Created: 01/02/97
// Copyright: (c) 1997 Julian Smart
// (c) 2001 Ron... | 40,556 |
https://github.com/hollax/csa/blob/master/application/third_party/Smarty/compiled/fe47661bae705a62c2c4ff20e02138de99346fff_0.file.nav_top.tpl.php | Github Open Source | Open Source | MIT | null | csa | hollax | PHP | Code | 389 | 2,184 | <?php /* Smarty version 3.1.27, created on 2016-10-31 08:46:47
compiled from "C:\xampp\htdocs\nyra_cms\application\modules\dashboard\views\themes\deal\includes\nav_top.tpl" */ ?>
<?php
/*%%SmartyHeaderCode:1732658179fa79d0977_66502166%%*/
if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $... | 6,020 |
https://github.com/stickyPiston/astroids/blob/master/src/window.c | Github Open Source | Open Source | Unlicense | 2,021 | astroids | stickyPiston | C | Code | 46 | 241 | #include <GLFW/glfw3.h>
#include <astroids/error.h>
#include <stdio.h>
#include <stdlib.h>
GLFWwindow *createWindow() {
glfwInit();
glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 3);
glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 3);
glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE);
glfwWindowHint(GLF... | 25,207 |
https://github.com/lvyufeng/bert4ms/blob/master/bert4ms/common/layers.py | Github Open Source | Open Source | Apache-2.0 | 2,022 | bert4ms | lvyufeng | Python | Code | 108 | 461 | import math
import mindspore
import mindspore.nn as nn
from mindspore.common.initializer import initializer, Normal, Uniform, HeUniform, _calculate_fan_in_and_fan_out
from mindspore import Tensor
class Dense(nn.Dense):
def __init__(self, in_channels, out_channels, weight_init=None, bias_init=None, has_bias=True, a... | 44,133 |
https://github.com/juanfelipe82193/opensap/blob/master/sapui5-sdk-1.74.0/resources/sap/ushell/ui/footerbar/UserPreferencesButton-dbg.js | Github Open Source | Open Source | Apache-2.0 | null | opensap | juanfelipe82193 | JavaScript | Code | 1,445 | 5,512 | // Copyright (c) 2009-2017 SAP SE, All Rights Reserved
// Provides control sap.ushell.ui.footerbar.UserPreferencesButton.
sap.ui.define([
"sap/m/Button",
"sap/m/Dialog",
"sap/m/Bar",
"sap/m/Text",
"sap/m/List",
"sap/ushell/resources",
"sap/ushell/ui/launchpad/AccessibilityCustomData",
"... | 51,674 |
https://github.com/darkelf44/no-except/blob/master/include/nx-util.hh | Github Open Source | Open Source | MIT | null | no-except | darkelf44 | C++ | Code | 2,351 | 5,870 | // Include guard
#pragma once
// Local includes
#include "nx-type.hh"
#include "nx-meta.hh"
// Namespace "nx"
namespace nx {
// ------------------------------------------------------------ //
// Forward declarations
// ------------------------------------------------------------ //
// Abstract classes
template<ty... | 44,680 |
https://github.com/sensehome/Agent/blob/master/src/SenseHome.Agent/Hubs/IAgentEvent.cs | Github Open Source | Open Source | MIT | null | Agent | sensehome | C# | Code | 19 | 61 | using System.Threading.Tasks;
namespace SenseHome.Agent.Hubs
{
public interface IAgentEvent
{
Task Broadcast(string topic, string payload);
Task AgentConnectionStatus(bool isConnected);
}
}
| 31,691 |
https://github.com/soumyamsr/library-management-system/blob/master/LibraryManagementSystem/src/main/java/edu/sjsu/cmpe275/project/dao/BookCopyDao.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | library-management-system | soumyamsr | Java | Code | 29 | 123 | package edu.sjsu.cmpe275.project.dao;
import java.util.List;
import edu.sjsu.cmpe275.project.model.Book;
import edu.sjsu.cmpe275.project.model.BookCopy;
/**
* @author Onkar Ganjewar
*/
public interface BookCopyDao {
void save(BookCopy bookCopy);
List<BookCopy> findByBook (Book book);
void remove(BookCopy bookC... | 47,185 |
https://github.com/luoxiu/logdog.swift/blob/master/Sources/LogDog/Features/atExit.swift | Github Open Source | Open Source | MIT | 2,022 | logdog.swift | luoxiu | Swift | Code | 46 | 132 | import Foundation
public let atExit = Notification.Name("com.v2ambition.LogDog.atExit")
private enum Once {
static let lazy: Void = {
atexit {
NotificationCenter.default.post(name: atExit, object: nil)
}
}()
}
func atExit(_ callback: @escaping () -> Void) {
NotificationCenter.... | 34,371 |
https://github.com/shengwen-tw/nixie-clock/blob/master/firmware/obsoleted/nixie_clock/nixie_clock.ino | Github Open Source | Open Source | MIT | 2,020 | nixie-clock | shengwen-tw | C++ | Code | 249 | 884 | #include <Arduino.h>
#include <Wire.h>
/* RTC Clock */
#include <Time.h>
#include <DS1307RTC.h>
/* Music player module */
#include <Garan.h>
#include <SoftwareSerial.h>
#include "pin_def.h"
#include "display.h"
#include "clock_time.h"
#include "event.h"
/* Clock core */
clock_time clock;
/* Create the buttons */
s... | 43,303 |
https://github.com/HiimEiffel/RetroClashv0.6/blob/master/RetroClash/Protocol/Messages/Client/KeepAliveMessage.cs | Github Open Source | Open Source | BSD-3-Clause | null | RetroClashv0.6 | HiimEiffel | C# | Code | 25 | 80 | using RetroClash.Extensions;
using RetroClash.Logic;
namespace RetroClash.Protocol.Messages.Client
{
public class KeepAliveMessage : Message
{
public KeepAliveMessage(Device device, Reader reader) : base(device, reader)
{
}
}
} | 131 |
https://github.com/kobi2187/TypeScript.NET/blob/master/source/System/Collections/Dictionaries/OrderedStringKeyDictionary.js | Github Open Source | Open Source | MIT | 2,016 | TypeScript.NET | kobi2187 | JavaScript | Code | 338 | 1,012 | (function (dependencies, factory) {
if (typeof module === 'object' && typeof module.exports === 'object') {
var v = factory(require, exports); if (v !== undefined) module.exports = v;
}
else if (typeof define === 'function' && define.amd) {
define(dependencies, factory);
}
})(["require",... | 15,633 |
https://github.com/patelviralb/distributed-k-means-spark/blob/master/src/main/scala/kmeans/local/LocalKMeans.scala | Github Open Source | Open Source | Apache-2.0 | null | distributed-k-means-spark | patelviralb | Scala | Code | 964 | 2,787 | package kmeans.local
import breeze.linalg.{DenseVector, Vector, squaredDistance}
import org.apache.hadoop.conf.Configuration
import org.apache.hadoop.io.{LongWritable, Text}
import org.apache.hadoop.mapreduce.lib.input.NLineInputFormat
import org.apache.log4j.{LogManager, Logger}
import org.apache.spark.rdd.RDD
import... | 15,548 |
https://github.com/drewdouglass1/tools/blob/master/access.sh | Github Open Source | Open Source | Apache-2.0 | null | tools | drewdouglass1 | Shell | Code | 130 | 334 | #!/bin/sh
export ORG="<your_org>"
echo $ORG
cf login -a https://api.ng.bluemix.net -u $1 -p $2 -o "$ORG" -s "<your_space>"
echo Add a user into org and set auditor role
bx account org-user-add $3 "$ORG"
bx account org-role-set $3 "$ORG" OrgAuditor
bx account space-role-set $3 "$ORG" "<your_space>" SpaceDeveloper
expo... | 43,608 |
https://github.com/boicualexandru/developerFolio/blob/master/src/containers/greeting/Greeting.js | Github Open Source | Open Source | MIT | null | developerFolio | boicualexandru | JavaScript | Code | 110 | 384 | import React from "react";
import "./Greeting.scss";
import SocialMedia from "../../components/socialMedia/SocialMedia";
import Button from "../../components/button/Button";
import { greeting } from "../../portfolio";
export default function Greeting() {
return (
<div id="greeting">
<div className="contain... | 15,033 |
https://github.com/landorphan/common/blob/master/test/Landorphan.Common.Tests/ReferenceEqualityComparer.Tests.Core.cs | Github Open Source | Open Source | MIT | null | common | landorphan | C# | Code | 142 | 670 | namespace Landorphan.Common.Tests
{
using FluentAssertions;
using Landorphan.TestUtilities;
using Microsoft.VisualStudio.TestTools.UnitTesting;
// ReSharper disable InconsistentNaming
public static class ReferenceEqualityComparerTests
{
[TestClass]
public class When_evaluating... | 33,504 |
https://github.com/fjz345/DXR_SoftShadows/blob/master/DXR_SoftShadows_Project/BeLuEngine/src/Renderer/GPUMemory/DepthStencilView.cpp | Github Open Source | Open Source | MIT | 2,021 | DXR_SoftShadows | fjz345 | C++ | Code | 54 | 360 | #include "stdafx.h"
#include "DepthStencilView.h"
#include "Resource.h"
#include "../DescriptorHeap.h"
DepthStencilView::DepthStencilView(
ID3D12Device5* device,
DescriptorHeap* descriptorHeap_DSV,
D3D12_DEPTH_STENCIL_VIEW_DESC* dsvDesc,
Resource* resource)
:Descriptor(descriptorHeap_DSV, resource)
{
m_DXGIForm... | 2,866 |
https://github.com/gentics/mesh/blob/master/rest-model/src/main/java/com/gentics/mesh/core/rest/node/field/list/impl/DateFieldListImpl.java | Github Open Source | Open Source | Apache-2.0 | 2,023 | mesh | gentics | Java | Code | 43 | 134 | package com.gentics.mesh.core.rest.node.field.list.impl;
import com.gentics.mesh.core.rest.common.FieldTypes;
import com.gentics.mesh.core.rest.node.FieldMap;
/**
* REST model for a date list field. Please note that {@link FieldMap} will handle the actual JSON format building.
*/
public class DateFieldListImpl exte... | 52,674 |
https://github.com/dmngrsk/aoc-2018/blob/master/day-02/puzzle-1.fsx | Github Open Source | Open Source | MIT | 2,018 | aoc-2018 | dmngrsk | null | Spoken | 52 | 131 | open System.IO
let countWithRepeatingLetters input count =
input
|> Seq.map (fun x -> x |> Seq.groupBy (fun c -> c))
|> Seq.filter (fun gs -> gs |> Seq.exists (fun (k, vs) -> (vs |> Seq.length) = count))
|> Seq.length
let input = File.ReadAllLines("./input.txt")
printfn "%d" (countWithRepeatingLetters... | 3,839 |
https://github.com/JacksonSummers66/09-FPS/blob/master/Project/.import/tent_detailedClosed_SE.png-fddd1d99c3072c6f3ea77047d83e30e4.md5 | Github Open Source | Open Source | MIT | 2,020 | 09-FPS | JacksonSummers66 | null | Spoken | 2 | 58 | source_md5="e898eb36c69efb92987016f8a32cd1e8"
dest_md5="7a6f916aa256c527e3c2239cc71c5c4d"
| 14,536 |
https://github.com/Theo-Steiner/svelte/blob/master/src/compiler/compile/render_ssr/handlers/shared/boolean_attributes.ts | Github Open Source | Open Source | MIT | 2,022 | svelte | Theo-Steiner | TypeScript | Code | 34 | 180 | // source: https://html.spec.whatwg.org/multipage/indices.html
export const boolean_attributes = new Set([
'allowfullscreen',
'allowpaymentrequest',
'async',
'autofocus',
'autoplay',
'checked',
'controls',
'default',
'defer',
'disabled',
'formnovalidate',
'hidden',
'ismap',
'loop',
'multiple',
'muted',
... | 25,497 |
https://github.com/wayhap/WASample/blob/master/src/cn/way/wandroid/activities/viewpager/ViewPagerUsage.java | Github Open Source | Open Source | Apache-2.0 | null | WASample | wayhap | Java | Code | 436 | 2,135 | package cn.way.wandroid.activities.viewpager;
import java.util.ArrayList;
import android.annotation.SuppressLint;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentActivity;
import android.support.v4.app.FragmentPagerAdapter;
import android.support.v4.view.ViewPag... | 22,314 |
https://github.com/mariotoffia/gocm/blob/master/cmid/repository.go | Github Open Source | Open Source | Apache-2.0 | null | gocm | mariotoffia | Go | Code | 182 | 322 | package cmid
// IDMapperRepository is providing functionality to register entities
// and create mappers for those.
//
// The repository itself may not use tags or reflection to provide
// its functionality.
type IDMapperRepository interface {
// Error returns any error state
Error() error
// ClearError will clear ... | 240 |
https://github.com/lsimons/phloc-schematron-standalone/blob/master/phloc-schematron/jing/src/main/java/com/thaiopensource/xml/dtd/app/XmlOutputStreamWriter.java | Github Open Source | Open Source | Apache-2.0 | 2,013 | phloc-schematron-standalone | lsimons | Java | Code | 60 | 225 | package com.thaiopensource.xml.dtd.app;
import java.io.BufferedWriter;
import java.io.OutputStream;
import java.io.OutputStreamWriter;
import java.io.UnsupportedEncodingException;
import com.thaiopensource.xml.out.CharRepertoire;
import com.thaiopensource.xml.out.XmlWriter;
import com.thaiopensource.xml.util.Encoding... | 16,167 |
https://github.com/bilsaboob/nemerle/blob/master/snippets/csharp-parser/CSharpParser/Parser_CompilationUnit.n | Github Open Source | Open Source | BSD-2-Clause | 2,019 | nemerle | bilsaboob | null | Spoken | 259 | 954 | using System;
using SCG = System.Collections.Generic;
using Nemerle.Assertions;
using Nemerle.Collections;
using Nemerle.Utility;
using Nemerle.Peg;
namespace CSharpParser
{
public partial class Parser
{
//externAliasDirective : ExternAlias = "extern"S "alias"S identifier ";"s;
externAliasDire... | 11,701 |
https://github.com/DevQuayle/workshop_system/blob/master/application/views/mechanic/editClient.php | Github Open Source | Open Source | MIT | null | workshop_system | DevQuayle | PHP | Code | 334 | 1,703 | <section id="main-content">
<section class="wrapper">
<!--overview start-->
<div class="row">
<div class="col-lg-8">
<h3 class="page-header"><i class="fa fa-pencil "></i>Edytuj klienta</h3>
<br>
<?php foreach ($get_data as $client): ?>
<?php echo form_open("mechanic/edit... | 4,469 |
https://github.com/developer-heba/3x1/blob/master/resources/js/admin/block/Form.js | Github Open Source | Open Source | MIT | 2,021 | 3x1 | developer-heba | JavaScript | Code | 25 | 79 | import AppForm from '../app-components/Form/AppForm';
Vue.component('block-form', {
mixins: [AppForm],
data: function() {
return {
form: {
key: '' ,
html: '' ,
}
}
}
}); | 37,211 |
https://github.com/opencv/cvat/blob/master/cvat-ui/src/components/annotation-page/canvas/views/canvas2d/canvas-point-context-menu.tsx | Github Open Source | Open Source | LGPL-2.0-or-later, MIT, GPL-1.0-or-later | 2,023 | cvat | opencv | TSX | Code | 342 | 1,117 | // Copyright (C) 2020-2022 Intel Corporation
//
// SPDX-License-Identifier: MIT
import React, { useState } from 'react';
import ReactDOM from 'react-dom';
import Button from 'antd/lib/button';
import { DeleteOutlined, EnvironmentOutlined } from '@ant-design/icons';
import { connect } from 'react-redux';
import { Comb... | 30 |
https://github.com/tacores/music-backup/blob/master/mbackup/TextFileReadWriterImpl.cs | Github Open Source | Open Source | MIT | null | music-backup | tacores | C# | Code | 53 | 156 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
namespace mbackup
{
class TextFileReadWriterImpl : TextFileReadWriter
{
public string read(string filePath)
{
using (StreamReader sr = new StreamReader(filePath))
{
... | 2,236 |
https://github.com/openvinotoolkit/openvino/blob/master/src/core/src/pass/pass_config.cpp | Github Open Source | Open Source | Apache-2.0 | 2,023 | openvino | openvinotoolkit | C++ | Code | 83 | 350 | // Copyright (C) 2018-2023 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include "openvino/pass/pass_config.hpp"
ov::pass::PassConfig::PassConfig() {
m_callback = [](const std::shared_ptr<const ::ov::Node>&) {
return false;
};
}
ov::pass::param_callback ov::pass::PassConfig::get_callba... | 34,898 |
https://github.com/abtercms/admin/blob/master/tests/Form/Factory/UserTest.php | Github Open Source | Open Source | MIT | null | admin | abtercms | PHP | Code | 270 | 1,602 | <?php
declare(strict_types=1);
namespace AbterPhp\Admin\Form\Factory;
use AbterPhp\Admin\Domain\Entities\User as Entity;
use AbterPhp\Admin\Domain\Entities\UserGroup;
use AbterPhp\Admin\Domain\Entities\UserLanguage;
use AbterPhp\Admin\Orm\UserGroupRepo;
use AbterPhp\Admin\Orm\UserLanguageRepo;
use AbterPhp\Framework... | 38,727 |
https://github.com/CodeElements/NetworkCallTransmission/blob/master/CodeElements.NetworkCallTransmission/Internal/EventPackageType.cs | Github Open Source | Open Source | MIT | 2,019 | NetworkCallTransmission | CodeElements | C# | Code | 11 | 40 | namespace CodeElements.NetworkCallTransmission.Internal
{
internal enum EventPackageType
{
SubscribeEvent,
UnsubscribeEvent
}
} | 36,217 |
https://github.com/dsalunga/mPortal/blob/master/Portal/Binaries/Database/Procedures/MCSongScore_Set.create.sql | Github Open Source | Open Source | MIT | 2,018 | mPortal | dsalunga | SQL | Code | 98 | 401 |
-- Procedure MCSongScore_Set
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE [dbo].[MCSongScore_Set]
@Id int = -1,
@JudgeId int,
@Musicality int,
@LyricsMessage int,
@OverallImpact int,
@DateModified datetime,
@CandidateId int,
@CompetitionId INT
AS
SET NOCOUNT ON
IF(@Id > 0)
BEGIN
--... | 40,165 |
https://github.com/rjygraham/PrivateDnsFunctions/blob/master/src/Rgom.PrivateDns.Functions/Extensions/StringExtensions.cs | Github Open Source | Open Source | MIT | 2,020 | PrivateDnsFunctions | rjygraham | C# | Code | 64 | 212 | using System;
using System.Collections.Generic;
using System.Text;
namespace Rgom.PrivateDns.Functions.Extensions
{
public static class StringExtensions
{
public static int IndexOfNth(this string input, char value, int nth)
{
if (string.IsNullOrWhiteSpace(input))
{
return -1;
}
var currentIndex... | 48,736 |
https://github.com/bholben/ToDo-Backbone/blob/master/test/spec/test.js | Github Open Source | Open Source | MIT | null | ToDo-Backbone | bholben | JavaScript | Code | 145 | 456 |
(function () {
'use strict';
describe('About the ToDo List', function () {
beforeEach(function () {
window.task = new Task();
task.create('Get groceries');
});
describe('About adding a task', function () {
it('should create an instance of task', function () {
expect(task in... | 32,997 |
https://github.com/piekaa/offroad/blob/master/Assets/Scripts/Holders/LuggageHolder.cs | Github Open Source | Open Source | MIT | 2,020 | offroad | piekaa | C# | Code | 15 | 54 | using UnityEngine;
[CreateAssetMenu(menuName = "Pieka/Holders/LuggageHolder")]
public class LuggageHolder : ScriptableObject
{
public Luggage Luggage;
} | 22,399 |
https://github.com/Hosenroller/ioBroker.fb-checkpresence/blob/master/.gitignore | Github Open Source | Open Source | MIT | 2,021 | ioBroker.fb-checkpresence | Hosenroller | Ignore List | Code | 25 | 135 | .git
.idea
node_modules
nbproject
# npm package files
iobroker.*.tgz
Thumbs.db
# i18n intermediate files
admin/i18n/flat.txt
admin/i18n/*/flat.txt
admin/i18n/*
scripts
scripts/upload.sh
scripts/gulp.sh
scripts/update_node.sh
.vscode
.vscode/tasks.json
.vscode/launch.json
iob_npm.done
| 51,137 |
https://github.com/azima/guignol/blob/master/spec/spec_helper.rb | Github Open Source | Open Source | BSD-3-Clause, BSD-2-Clause | 2,012 | guignol | azima | Ruby | Code | 24 | 85 | require 'rspec'
require 'rspec/mocks'
require 'fog'
Fog.mock!
RSpec.configure do |config|
config.before do
[$stderr, $stdout, $stdin].each do |io|
# io.stub(:tty? => false)
end
end
end | 33,596 |
https://github.com/kisszoltan/ballen/blob/master/ballen-addon-about/src/main/java/com/example/ballen/about/AboutPlugin.java | Github Open Source | Open Source | Apache-2.0 | 2,019 | ballen | kisszoltan | Java | Code | 41 | 126 | package com.example.ballen.about;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import com.example.ballen.core.plugin.PluginDescriptor;
/**
* Plugin to provide a view fo... | 44,577 |
https://github.com/jsdelivrbot/dockerfiles-1/blob/master/data/g/grahamgilbert/salversion/Dockerfile | Github Open Source | Open Source | MIT | 2,018 | dockerfiles-1 | jsdelivrbot | Dockerfile | Code | 192 | 636 | FROM python:3.6-alpine
ADD requirements.txt /requirements.txt
RUN set -ex \
&& buildDeps="gcc make libc-dev musl-dev linux-headers pcre-dev postgresql-dev
postgresql-client" \
# && runDeps="postgresql-client postgresql-dev" \
&& apk add \--no-cache --virtual .build-deps $buildDeps \
&& python3.6 -m ve... | 21,229 |
https://github.com/amohoste/containerd/blob/master/cmd/ctr/commands/snapshots/snapshots.go | Github Open Source | Open Source | Apache-2.0 | 2,022 | containerd | amohoste | Go | Code | 1,828 | 5,916 | /*
Copyright The containerd Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to... | 49,021 |
https://github.com/nvdvlies/dotnet-api-and-angular-frontend/blob/master/src/Demo.Domain/Role/Interfaces/IRoleDomainEntity.cs | Github Open Source | Open Source | MIT | null | dotnet-api-and-angular-frontend | nvdvlies | C# | Code | 13 | 51 | using Demo.Domain.Shared.Interfaces;
namespace Demo.Domain.Role.Interfaces
{
public interface IRoleDomainEntity : IDomainEntity<Role>
{
}
}
| 35,008 |
https://github.com/tsalmon/TidyTree/blob/master/tests/test_TidyClass.py | Github Open Source | Open Source | MIT | null | TidyTree | tsalmon | Python | Code | 177 | 937 | # -*- coding: UTF-8 -*-
import sys, os
import unittest
from tidytree.cli import TidyTree, getListofFiles
class TestTidyClass(unittest.TestCase):
#def setUp(self):
def test_tree_1commonNode2branchs(self):
files = [ "sa", "sb"]
self.tidy = TidyTree()
for i in files:
self.... | 47,951 |
https://github.com/dannyniu/MySuiteA/blob/master/src/3-rfc-7748,8032/rfc-7748-paramset.h | Github Open Source | Open Source | Unlicense | 2,023 | MySuiteA | dannyniu | C | Code | 22 | 136 | /* DannyNiu/NJF, 2023-08-09. Public Domain. */
#ifndef MySuiteA_rfc_7748_paramset_h
#define MySuiteA_rfc_7748_paramset_h 1
#include "rfc-7748.h"
#include "../2-ec/curves-Mt.h"
PKC_Algo_Inst_t RFC_7748_X25519, RFC_7748_X448;
#endif /* MySuiteA_rfc_7748_paramset_h */
| 17,932 |
https://github.com/Symboler/umi-plugin-checkList/blob/master/template/wrapper.jsx.tpl | Github Open Source | Open Source | MIT | null | umi-plugin-checkList | Symboler | null | Spoken | 269 | 1,242 | import React ,{Fragment}from 'react';
import {Drawer,Button,Icon,Checkbox,Upload} from '{{libraryName}}'
import {check_showModal,check_update,check_resetData,check_export,check_importData} from 'umi-plugin-checklist'
class CheckListWrap extends React.Component{
state={
visible:false,
data:[],
prevCheckLi... | 34,028 |
https://github.com/15831944/ECAD/blob/master/project/TinyCADxxx/Symbol.h | Github Open Source | Open Source | MIT | 2,019 | ECAD | 15831944 | C++ | Code | 974 | 2,349 | /*
TinyCAD program for schematic capture
Copyright 1994/1995/2002 Matt Pyne.
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any la... | 12,150 |
https://github.com/github/codeql/blob/master/go/ql/test/experimental/CWE-79/HTMLTemplateEscapingPassthrough.go | Github Open Source | Open Source | MIT | 2,023 | codeql | github | Go | Code | 482 | 1,432 | package main
import (
"html/template"
"net/http"
"os"
"strconv"
)
func main() {}
func checkError(err error) {
if err != nil {
panic(err)
}
}
type HTMLAlias = template.HTML
// bad is an example of a bad implementation
func bad(req *http.Request) {
tmpl, _ := template.New("test").Parse(`Hi {{.}}\n`)
tmplTa... | 19,164 |
https://github.com/dryairship/IITKBucks/blob/master/models/id.go | Github Open Source | Open Source | MIT | 2,020 | IITKBucks | dryairship | Go | Code | 35 | 111 | package models
import (
"encoding/binary"
)
type ID = Hash
type TransactionIdIndexPair struct {
TransactionId ID
Index uint32
}
func (pair TransactionIdIndexPair) ToByteArray() []byte {
indexBytes := make([]byte, 4)
binary.BigEndian.PutUint32(indexBytes, uint32(pair.Index))
return append(pair.Transact... | 29,332 |
https://github.com/hernanmd/pharo/blob/master/src/Glamour-Morphic-Brick.package/GLMPopupBrick.class/instance/beHelp.st | Github Open Source | Open Source | MIT | 2,019 | pharo | hernanmd | null | Spoken | 8 | 23 | initialization
beHelp
self themer: self themer popupHelpThemer themer | 33,218 |
https://github.com/silvershotm1/301n2-portfolio/blob/master/js/githubController.js | Github Open Source | Open Source | MIT | 2,016 | 301n2-portfolio | silvershotm1 | JavaScript | Code | 20 | 88 | (function(module) {
var githubController = {};
githubController.index = function() {
repos.reqRepos(repoView.index);
// $('.tab-content').hide();
// $('#github').fadeIn('slow');
};
module.githubController = githubController;
})(window);
| 34,215 |
https://github.com/malasiot/maplite/blob/master/src/viewer/overlay_library_panel.hpp | Github Open Source | Open Source | MIT | 2,021 | maplite | malasiot | C++ | Code | 494 | 1,572 | #ifndef __FEATURE_LIBRARY_PANEL_H__
#define __FEATURE_LIBRARY_PANEL_H__
#include <QStandardItemModel>
#include <QSplitter>
#include <QTreeView>
#include <QListView>
#include <QLabel>
#include <QPixmap>
#include "map_overlay_manager.hpp"
#include "overlay_import.hpp"
class MainWindow ;
class MapFeatureIndex ;
class M... | 2,780 |
https://github.com/axiom-labs/music/blob/master/app/Streamers/Streamer.php | Github Open Source | Open Source | MIT | 2,020 | music | axiom-labs | PHP | Code | 68 | 187 | <?php
namespace App\Streamers;
class Streamer
{
/**
* @var \App\Song
*/
protected $song;
/**
* @var string
*/
protected $contentType;
/**
* Create a new Streamer instance.
*/
public function __construct()
{
// We turn off any error reporting here to ... | 1,937 |
https://github.com/threax/Threax.Home/blob/master/Threax.Home.Core/DiExtensions.cs | Github Open Source | Open Source | MIT | null | Threax.Home | threax | C# | Code | 63 | 291 | using Microsoft.Extensions.DependencyInjection.Extensions;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Threax.Home.Core;
namespace Microsoft.Extensions.DependencyInjection
{
public static class DiExtensions
{
static HomeConfig options = new Ho... | 30,560 |
https://github.com/zyhCSDN/shiro-jwt-redis/blob/master/src/main/java/com/maplexl/shiroJwtRedis/config/JwtUtilConfig.java | Github Open Source | Open Source | Apache-2.0 | null | shiro-jwt-redis | zyhCSDN | Java | Code | 54 | 244 | package com.maplexl.shiroJwtRedis.config;
import com.maplexl.shiroJwtRedis.util.JwtUtil;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;
import javax.annotation.PostConstruct;
/**
* 自动设置TokenUtil工具类参数
*
* @author 枫叶
* @date 2020/11/1
*/
@Co... | 42,956 |
https://github.com/domiworks/TDA-Landscape-Generator/blob/master/src/TheCanvas.java | Github Open Source | Open Source | Apache-2.0 | 2,015 | TDA-Landscape-Generator | domiworks | Java | Code | 4,499 | 16,971 |
import java.awt.event.*;
import javax.media.opengl.GL2;
import javax.media.opengl.GLAutoDrawable;
import javax.media.opengl.GLEventListener;
import javax.media.opengl.awt.GLCanvas;
import javax.media.opengl.glu.GLU;
import com.jogamp.opengl.util.texture.Texture;
import com.jogamp.opengl.util.texture.TextureIO;
import ... | 38,204 |
https://github.com/clWYaD/CLClink/blob/master/framework/CLCore.framework/Headers/CLCoreModuleProtocol.h | Github Open Source | Open Source | MIT | null | CLClink | clWYaD | C | Code | 39 | 137 | //
// CLCoreModuleProtocol.h
// CLCore
//
// Created by KevinChien on 2021/1/8.
// Copyright © 2021 KevinChien. All rights reserved.
//
#ifndef CLCoreModuleProtocol_h
#define CLCoreModuleProtocol_h
@protocol CLCoreModuleProtocol <NSObject>
+(void)initWithAppkey:(NSString *)appkey;
+(void)initWithAppkey:(NSStrin... | 15,950 |
https://github.com/oasislinux/oasis/blob/master/pkg/ffmpeg/config-tail.h | Github Open Source | Open Source | ISC | 2,023 | oasis | oasislinux | C | Code | 4 | 13 | #endif /* FFMPEG_CONFIG_H */
| 22,191 |
https://github.com/CAFA1/afl/blob/master/qemu_mode/qemu-2.10.0/block/commit.c | Github Open Source | Open Source | GPL-2.0-only, LGPL-2.1-only, GPL-1.0-or-later, LGPL-2.0-or-later, LGPL-2.1-or-later, LicenseRef-scancode-other-copyleft, LicenseRef-scancode-warranty-disclaimer, LicenseRef-scancode-unknown-license-reference, BSD-3-Clause, Apache-2.0, LicenseRef-scancode-generic-cla | 2,020 | afl | CAFA1 | C | Code | 1,849 | 6,233 | /*
* Live block commit
*
* Copyright Red Hat, Inc. 2012
*
* Authors:
* Jeff Cody <jcody@redhat.com>
* Based on stream.c by Stefan Hajnoczi
*
* This work is licensed under the terms of the GNU LGPL, version 2 or later.
* See the COPYING.LIB file in the top-level directory.
*
*/
#include "qemu/osdep.h"
#... | 12,321 |
https://github.com/martinoywa/artistSong/blob/master/src/main/java/ai/muse/artistsong/song/SongController.java | Github Open Source | Open Source | MIT | null | artistSong | martinoywa | Java | Code | 83 | 341 | package ai.muse.artistsong.song;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.web.bind.annotation.*;
import java.time.LocalDate;
import java.util.List;
@RestController
@RequestMapping("api/v1/song")
public class... | 16,221 |
https://github.com/morsby/medmcq/blob/master/cypress/integration/profile_spec.ts | Github Open Source | Open Source | MIT | 2,021 | medmcq | morsby | TypeScript | Code | 427 | 1,373 | import { loadQuestions, answerQuestions } from '../utils/utils';
describe('profile', () => {
before(() => {
cy.frontpage();
});
it('should load the profile page', () => {
cy.login();
loadQuestions();
answerQuestions();
cy.frontpage();
cy.contains('a', 'bruger', { matchCase: false }).clic... | 51,385 |
https://github.com/lifaon74/experimental/blob/master/src/experimental/bigint/digits/types.ts | Github Open Source | Open Source | MIT | null | experimental | lifaon74 | TypeScript | Code | 38 | 65 | /**
* INFO: 'digits' is an array of numbers, representing a number with a specific base
* If the array if empty: the value id 0
*/
export type TNumberArray = {
[index: number]: number;
length: number;
}
| 4,161 |
https://github.com/honghanhh/data-mining-knowledge-discovery/blob/master/hands_on_sklearn/9_neural_nets-0-load_data.py | Github Open Source | Open Source | MIT | null | data-mining-knowledge-discovery | honghanhh | Python | Code | 73 | 297 | from keras.datasets import mnist
import matplotlib.pyplot as plt
""" ---------------------------------------"""
""" Neural networks 1 """
""" ---------------------------------------"""
"""https://machinelearningmastery.com/handwritten-digit-recognition-using-convolutional-neural-networks-python-ke... | 50,070 |
https://github.com/gitter-badger/kaufman-bot/blob/master/.gitignore | Github Open Source | Open Source | MIT | 2,017 | kaufman-bot | gitter-badger | Ignore List | Code | 4 | 24 | node_modules
npm-debug.log
.env
/npm-debug.log.*
| 24,941 |
https://github.com/krustur/eengine3/blob/master/src/shaders/lighting.fs | Github Open Source | Open Source | MIT | null | eengine3 | krustur | null | Spoken | 604 | 1,675 | #version 330 core
struct Material {
// sampler2D diffuse;
// sampler2D specular;
float shininess;
};
uniform sampler2D texture_diffuse1;
uniform sampler2D texture_diffuse2;
uniform sampler2D texture_diffuse3;
uniform sampler2D texture_specular1;
uniform sampler2D texture_specular2;
struct DirLight {
... | 20,991 |
https://github.com/steffstefferson/sveltepwa/blob/master/src/components/Map.svelte | Github Open Source | Open Source | MIT | 2,020 | sveltepwa | steffstefferson | null | Spoken | 219 | 794 | <script>
import { onMount } from 'svelte';
import {Icon} from '@smui/icon-button';
import { getImages } from "../services/imageSerivce.js"
import { tick } from 'svelte';
export let params
let map;
let mapElement;
let markers = [];
function initMap() {
if(!googleMapsLoaded){
return;
};
let initial... | 14,989 |
https://github.com/throneteki/throneteki/blob/master/server/game/cards/06.4-TRW/OldtownInformer.js | Github Open Source | Open Source | MIT | 2,023 | throneteki | throneteki | JavaScript | Code | 105 | 383 | const DrawCard = require('../../drawcard.js');
const {Tokens} = require('../../Constants');
class OldtownInformer extends DrawCard {
setupCardAbilities() {
this.reaction({
when: {
onCardEntersPlay: () =>
this.game.currentPhase === 'challenge' &&
... | 15,458 |
https://github.com/samgaco/core/blob/master/plugins/stake-transactions/src/transactions/stake-redeem.ts | Github Open Source | Open Source | MIT | 2,019 | core | samgaco | TypeScript | Code | 166 | 521 | import { Transactions } from "@nosplatform/crypto";
import ByteBuffer from "bytebuffer";
import { IStakeRedeemAsset } from "../interfaces";
const { schemas } = Transactions;
const STAKE_REDEEM_TYPE = 101;
export class StakeRedeemTransaction extends Transactions.Transaction {
public static type = STAKE_REDEEM_TYPE... | 52,204 |
https://github.com/nasa-nccs-hpda/tensorflow-caney/blob/master/tensorflow_caney/utils/data.py | Github Open Source | Open Source | Apache-2.0 | 2,023 | tensorflow-caney | nasa-nccs-hpda | Python | Code | 2,604 | 8,017 | import json
import os
import time
import random
import logging
from glob import glob
from typing import List
from pathlib import Path
import numpy as np
import xarray as xr
import pandas as pd
import rioxarray as rxr
import tensorflow as tf
from numba import jit
try:
import cupy as cp
HAS_GPU = True
except Im... | 25,347 |
https://github.com/tripsimian-labs/sample-php-add-on/blob/master/templates/ConfirmationNode/options.html.twig | Github Open Source | Open Source | MIT | 2,018 | sample-php-add-on | tripsimian-labs | Twig | Code | 170 | 442 | {% extends "frame.html.twig" %}
{% block header %}
<link href="{{ asset('css/confirmation_options.css') }}" rel="stylesheet" type="text/css" />
{% endblock %}
{% block frame_content %}
<div class="e-field">
<input id="confirmation_tag" type="text" placeholder="Tag..." value="{{ confirmationTag }}" cla... | 47,868 |
https://github.com/rodichenko/quick-launcher/blob/master/src/models/base/api-post.js | Github Open Source | Open Source | MIT | null | quick-launcher | rodichenko | JavaScript | Code | 19 | 45 | import apiCall from './api-call';
export default function apiPost(uri, body, query = {}) {
return apiCall(uri, query, 'POST', body);
}
| 19,223 |
https://github.com/Wayne-xixi/mav_hilbertmap_planning/blob/master/hilbert_loco_planner/src/hilbert_loco_planner.cpp | Github Open Source | Open Source | BSD-3-Clause | 2,019 | mav_hilbertmap_planning | Wayne-xixi | C++ | Code | 618 | 2,592 | // Jan/2019, ETHZ, Jaeyoung Lim, jalim@student.ethz.ch
#include "hilbert_loco_planner/hilbert_loco_planner.h"
using namespace std;
//Constructor
HilbertLocoPlanner::HilbertLocoPlanner(const ros::NodeHandle& nh, const ros::NodeHandle& nh_private):
nh_(nh),
nh_private_(nh_private),
verbose_(false),
visualize_(... | 15,037 |
https://github.com/Frunck8206/Pomelo.EntityFrameworkCore.MySql/blob/master/src/EFCore.MySql/Storage/Internal/MySqlTransientExceptionDetector.cs | Github Open Source | Open Source | MIT | 2,022 | Pomelo.EntityFrameworkCore.MySql | Frunck8206 | C# | Code | 103 | 214 | // Copyright (c) Pomelo Foundation. All rights reserved.
// Licensed under the MIT. See LICENSE in the project root for license information.
using System;
using JetBrains.Annotations;
using MySqlConnector;
namespace Pomelo.EntityFrameworkCore.MySql.Storage.Internal
{
/// <summary>
/// Detects the exceptio... | 20,785 |
https://github.com/decent010888/drspanel-v2/blob/master/frontend/modules/user/views/common/_booking_confirm.php | Github Open Source | Open Source | BSD-3-Clause | null | drspanel-v2 | decent010888 | PHP | Code | 562 | 2,793 | <?php
use common\models\UserAddress;
use yii\helpers\Html;
use yii\widgets\ActiveForm;
use common\components\DrsPanel ;
$baseUrl= Yii::getAlias('@frontendUrl');
$slot_date=$slot->date;
$getlist="'".$baseUrl."/$userType/booking-confirm-step2'";
$js="
$('.booking_confirm_step1').on('click',function(){
$('#user_name... | 16,068 |
https://github.com/uniTravel/UniStream/blob/master/test/Domain.Tests/CorrectTests.fs | Github Open Source | Open Source | Apache-2.0 | null | UniStream | uniTravel | null | Spoken | 584 | 1,611 | module Domain.Tests.Correct
open System
open System.Collections.Generic
open Expecto
open UniStream.Domain
open Domain.Models
let dic = Dictionary<string, seq<uint64 * string * ReadOnlyMemory<byte>>>(10000)
let ids = Array.zeroCreate<Guid> 2
let writer stream revision evType ev = async {
if dic.ContainsKey stre... | 49,554 |
https://github.com/shaojiankui/iOS10-Runtime-Headers/blob/master/PrivateFrameworks/PhotoLibraryServices.framework/PLEmailAddressManager.h | Github Open Source | Open Source | MIT | 2,018 | iOS10-Runtime-Headers | shaojiankui | C | Code | 35 | 156 | /* Generated by RuntimeBrowser
Image: /System/Library/PrivateFrameworks/PhotoLibraryServices.framework/PhotoLibraryServices
*/
@interface PLEmailAddressManager : NSObject {
NSMutableDictionary * _emailsForKey;
NSMutableDictionary * _keysForEmails;
int _maxKey;
NSString * _plistPath;
}
+ (id)share... | 28,947 |
https://github.com/katka-juhasova/BP-data/blob/master/modules/luarestructure/share/lua/5.3/restructure/Boolean.lua | Github Open Source | Open Source | MIT | 2,020 | BP-data | katka-juhasova | Lua | Code | 57 | 152 | local BooleanT = {}
BooleanT.__index = BooleanT
function BooleanT.new(type)
local b = setmetatable({}, BooleanT)
b.type = type
return b
end
function BooleanT:decode(stream, parent)
if self.type:decode(stream, parent) == 0 then return false else return true end
end
function BooleanT:size(val, parent)
return... | 31,841 |
https://github.com/ermauliks/gocd/blob/master/server/webapp/WEB-INF/rails.new/config/initializers/assets.rb | Github Open Source | Open Source | Apache-2.0 | 2,014 | gocd | ermauliks | Ruby | Code | 3 | 29 | Rails.application.config.assets.precompile += ['lib/d3-3.1.5.min.js'] | 25,217 |
https://github.com/crtn32002/sourcegraph/blob/master/web/src/enterprise/codeintel/backend.tsx | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-warranty-disclaimer, LicenseRef-scancode-unknown-license-reference | 2,020 | sourcegraph | crtn32002 | TSX | Code | 961 | 2,746 | import * as GQL from '../../../../shared/src/graphql/schema'
import {
dataOrThrowErrors,
gql,
createInvalidGraphQLMutationResponseError,
} from '../../../../shared/src/graphql/graphql'
import { map } from 'rxjs/operators'
import { Observable } from 'rxjs'
import { queryGraphQL, mutateGraphQL } from '../../b... | 26,735 |
https://github.com/dtmfgold/haloray/blob/master/src/opengl/textureRenderer.h | Github Open Source | Open Source | MIT | 2,019 | haloray | dtmfgold | C++ | Code | 58 | 190 | #pragma once
#include <memory>
#include <string>
#include "program.h"
namespace OpenGL
{
class TextureRenderer
{
public:
TextureRenderer() = default;
void Initialize();
void SetUniformFloat(std::string name, float value);
void Render(unsigned int textureHandle);
~TextureRenderer();
private:
Te... | 2,317 |
https://github.com/bellmit/nebula/blob/master/nebula-starter/nebula-starter-rocketmq/src/main/java/io/nebula/messaging/properties/MessagingProperties.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | nebula | bellmit | Java | Code | 85 | 344 | package io.nebula.messaging.properties;
import io.nebula.util.StringUtil;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
/**
* @author 徐步龙
* @version V1.0
* @date 2019/1/11
*/
@Data
@ConfigurationProperties(prefix = "nebula.messaging")
public class MessagingPropert... | 52,102 |
https://github.com/StefanStieger/ESP32-Paxcounter/blob/master/src/libpax_helpers.cpp | Github Open Source | Open Source | Apache-2.0 | null | ESP32-Paxcounter | StefanStieger | C++ | Code | 41 | 234 | #include "libpax_helpers.h"
// libpax payload
#if LIBPAX
struct count_payload_t count_from_libpax;
uint16_t volatile libpax_macs_ble, libpax_macs_wifi;
void process_count(void) {
printf("pax: %d; %d; %d;\n", count_from_libpax.pax, count_from_libpax.wifi_count, count_from_libpax.ble_count);
libpax_macs_ble = count... | 46,240 |
https://github.com/jrmeier/fast_trade/blob/master/fast_trade/transformers_map.py | Github Open Source | Open Source | MIT | null | fast_trade | jrmeier | Python | Code | 183 | 915 | from finta import TA
"""
These are all the datapoints the can be used in a backtest as a "transformer".
Any function can be implimented as an transformer.
"""
transformers_map = {
"sma": TA.SMA,
"smm": TA.SMM,
"ssma": TA.SSMA,
"ema": TA.EMA,
"dema": TA.DEMA,
"tema": TA.TEMA,
"trima": TA.TRI... | 22,815 |
https://github.com/askmeaboutlo0m/rouse/blob/master/rouse-lua/lib/rouse/lua/util.h | Github Open Source | Open Source | MIT | 2,020 | rouse | askmeaboutlo0m | C | Code | 829 | 3,039 | #ifdef ROUSE_MAGIC
# define R_LUA_MAGIC_CHECK(L, TYPE, EXPR) do { \
const TYPE *_magic_ptr = (EXPR); \
if (_magic_ptr) { \
uint32_t _expr_magic = _magic_ptr->MAGIC; \
uint32_t _type_magic = R_MAGIC_OF(TYPE); \
if (_expr_magic != _type_magic) { \
... | 21,558 |
https://github.com/lazzy07/material_designer_complete/blob/master/app/cpy_node_modules/electron-redux/dist/helpers/replayActionRenderer.js | Github Open Source | Open Source | MIT | 2,020 | material_designer_complete | lazzy07 | JavaScript | Code | 24 | 94 |
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = replayActionRenderer;
function replayActionRenderer(store) {
var _electron = window.require("electron");
_electron.ipcRenderer.on('redux-action', function (event, payload) {
store.dispatch(payload);
});
} | 42,936 |
https://github.com/ccchp/imsdk-android/blob/master/imlib/src/main/java/com/qunar/im/ui/view/recentView/CommonHolderView.java | Github Open Source | Open Source | MIT | null | imsdk-android | ccchp | Java | Code | 44 | 188 | package com.qunar.im.ui.view.recentView;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;
import com.facebook.drawee.view.SimpleDraweeView;
import com.qunar.im.ui.view.IconView;
/**
* Created by xinbo.wang on 2016-12-05.
*/
public class CommonHolderView {
pub... | 31,908 |
https://github.com/apache/hbase/blob/master/hbase-balancer/src/main/java/org/apache/hadoop/hbase/master/balancer/RegionReplicaRackCandidateGenerator.java | Github Open Source | Open Source | CC-BY-3.0, Apache-2.0, BSD-3-Clause, BSD-2-Clause, LicenseRef-scancode-protobuf, MIT | 2,023 | hbase | apache | Java | Code | 246 | 591 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | 30,538 |
https://github.com/Billdex/bcjh-bo/blob/master/model/database/chef.go | Github Open Source | Open Source | MIT | 2,022 | bcjh-bo | Billdex | Go | Code | 117 | 579 | package database
type Chef struct {
ChefId int `xorm:"pk chef_id comment('厨师id')"`
Name string `xorm:"name comment('厨师名字')"`
Gender int `xorm:"gender comment('性别')"`
Rarity int `xorm:"index rarity comment('稀有度')"`
Origin string `xorm:"comment('来源')"`
GalleryId st... | 21,863 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.