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/PaulWoitaschek/sentry-android/blob/master/sentry-core/src/test/java/io/sentry/core/util/ApplyScopeUtilsTest.kt | Github Open Source | Open Source | MIT | 2,021 | sentry-android | PaulWoitaschek | Kotlin | Code | 79 | 283 | package io.sentry.core.util
import com.nhaarman.mockitokotlin2.mock
import io.sentry.core.hints.ApplyScopeData
import io.sentry.core.hints.Cached
import kotlin.test.Test
import kotlin.test.assertFalse
import kotlin.test.assertTrue
class ApplyScopeUtilsTest {
@Test
fun `if event is Cached, it should not apply... | 48,982 |
https://github.com/LaudateCorpus1/edgeai-tidl-tools/blob/master/scripts/tflite_model_tools/tflite/MirrorPadOptions.py | Github Open Source | Open Source | CNRI-Python | 2,022 | edgeai-tidl-tools | LaudateCorpus1 | Python | Code | 158 | 651 | # automatically generated by the FlatBuffers compiler, do not modify
# namespace: tflite
import flatbuffers
from flatbuffers.compat import import_numpy
np = import_numpy()
class MirrorPadOptions(object):
__slots__ = ['_tab']
@classmethod
def GetRootAsMirrorPadOptions(cls, buf, offset):
n = flatb... | 8,321 |
https://github.com/Brunovsky/competitive/blob/master/code/linear/blackbox/matrix.hpp | Github Open Source | Open Source | MIT | 2,022 | competitive | Brunovsky | C++ | Code | 934 | 2,304 | #pragma once
#include "numeric/fft.hpp"
#include "numeric/polynomial.hpp"
#include "linear/berlekamp_massey.hpp"
// ~ Black box linear algebra
// These are matrix oracles for matrix-vector multiplcation (square operators only)
/**
* Non-zero entries given as a list
* Complexity: O(m) M-V product
*/
template <type... | 46,074 |
https://github.com/parallaxinc/PropLoader/blob/master/src/packet.cpp | Github Open Source | Open Source | MIT | 2,023 | PropLoader | parallaxinc | C++ | Code | 972 | 3,437 | /* packet.c - an elf and spin binary loader for the Parallax Propeller microcontroller
Copyright (c) 2011 David Michael Betz
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,
i... | 34,521 |
https://github.com/arifsetyo21/birdboard-laravel/blob/master/resources/views/projects/show.blade.php | Github Open Source | Open Source | MIT | null | birdboard-laravel | arifsetyo21 | PHP | Code | 161 | 689 | @extends('layouts.app')
@section('content')
<header class="flex items-center mb-3 py-4">
<div class="flex justify-between items-end w-full">
<p class="text-grey text-sm font-normal">
<a href="/projects" class="text-grey text-sm font-normal no-underline">My Projects</a> / {{$project->title}}
</p... | 10,337 |
https://github.com/CruGlobal/android-gto-support/blob/master/gto-support-fluidsonic-locale/src/jsMain/kotlin/org/ccci/gto/support/fluidsonic/locale/PlatformLocale.js.kt | Github Open Source | Open Source | MIT | 2,023 | android-gto-support | CruGlobal | Kotlin | Code | 19 | 74 | package org.ccci.gto.support.fluidsonic.locale
import io.fluidsonic.locale.Locale
actual typealias PlatformLocale = String
actual fun Locale.toPlatform() = toString()
actual fun PlatformLocale.toCommon() = Locale.forLanguageTag(this)
| 5,559 |
https://github.com/tferega/selenate/blob/master/code/Server/src/main/scala/net/selenate/server/actions/workers/WindowFrameSwitchAction.scala | Github Open Source | Open Source | BSD-3-Clause | 2,016 | selenate | tferega | Scala | Code | 48 | 176 | package net.selenate.server
package actions
package workers
import extensions.SelenateFirefox
import net.selenate.common.comms.req.SeReqWindowFrameSwitch
import net.selenate.common.comms.res.SeResWindowFrameSwitch
import scala.collection.JavaConversions._
class WindowFrameSwitchAction(val sessionID: String, val cont... | 14,118 |
https://github.com/atri-search/atri/blob/master/atri/core/primitives/document.py | Github Open Source | Open Source | BSD-2-Clause-FreeBSD | null | atri | atri-search | Python | Code | 524 | 1,000 | # Copyright 2020 Marcos Pontes. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# 1. Redistributions of source code must retain the above copyright notice,
# this list of conditions and t... | 50,903 |
https://github.com/kids-first/kf-portal-ui/blob/master/docker/nginx/qa.Dockerfile | Github Open Source | Open Source | Apache-2.0 | 2,023 | kf-portal-ui | kids-first | Dockerfile | Code | 14 | 78 | FROM nginx
RUN rm /etc/nginx/conf.d/default.conf
COPY qa.crt /etc/nginx/qa.crt
COPY qa.key /etc/nginx/qa.key
COPY nginx-qa.conf /etc/nginx/conf.d/default.conf | 21,062 |
https://github.com/vitawork/React-Data-Grid-version/blob/master/lib/KeyCodes.d.ts | Github Open Source | Open Source | MIT | null | React-Data-Grid-version | vitawork | TypeScript | Code | 299 | 776 | declare const keyCodes: {
readonly Backspace: 8;
readonly Tab: 9;
readonly Enter: 13;
readonly Shift: 16;
readonly Ctrl: 17;
readonly Alt: 18;
readonly PauseBreak: 19;
readonly CapsLock: 20;
readonly Escape: 27;
readonly PageUp: 33;
readonly PageDown: 34;
readonly End: 35... | 21,835 |
https://github.com/wanddy/jeecg-boot-User/blob/master/jeecg-boot-module-system/src/main/java/org/jeecg/modules/onlgraph/entity/GraphBigscreenCardFiledDO.java | Github Open Source | Open Source | MIT | 2,021 | jeecg-boot-User | wanddy | Java | Code | 271 | 1,071 | package org.jeecg.modules.onlgraph.entity;
import java.io.Serializable;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFo... | 6,367 |
https://github.com/aslakhellesoy/htmlunit/blob/master/src/test/java/com/gargoylesoftware/htmlunit/HttpWebConnection2Test.java | Github Open Source | Open Source | Apache-2.0 | 2,011 | htmlunit | aslakhellesoy | Java | Code | 524 | 1,658 | /*
* Copyright (c) 2002-2011 Gargoyle Software Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law ... | 15,327 |
https://github.com/Shopify/unity-buy-sdk/blob/master/Assets/Shopify/UIToolkit/ShopControllers/Editor/SingleProductShopControllerEditor.cs | Github Open Source | Open Source | MIT | 2,023 | unity-buy-sdk | Shopify | C# | Code | 121 | 399 | namespace Shopify.UIToolkit.Editor {
using UnityEngine;
using UnityEditor;
using System;
public interface ISingleProductShopControllerEditorView : IShopControllerBaseEditorView {
void DrawProductPicker();
}
[CustomEditor(typeof(SingleProductShopController))]
public class SinglePro... | 12,161 |
https://github.com/SHTrassEr/Estella.Example/blob/master/AirHockey/src/Server/Service/Impl/WebSocketGameServer.ts | Github Open Source | Open Source | MIT | null | Estella.Example | SHTrassEr | TypeScript | Code | 99 | 377 | namespace Estella.Example.AirHockey {
export class WebSocketGameServer extends Core.WebSocketGameServer {
protected lastClientId: number;
protected connectedClientList: Map<string, number>;
constructor(socket: WebSocket) {
let worldAttributeList = new WorldAttributeList();
... | 6,429 |
https://github.com/meshulam/tempoiq-java/blob/master/src/test/java/com/tempoiq/SummaryTest.java | Github Open Source | Open Source | MIT | null | tempoiq-java | meshulam | Java | Code | 253 | 756 | package com.tempoiq;
import java.util.HashMap;
import java.util.Map;
import org.joda.time.DateTime;
import org.joda.time.DateTimeZone;
import org.joda.time.Interval;
import org.junit.*;
import static org.junit.Assert.*;
public class SummaryTest {
private static final Sensor sensor1 = new Sensor("key1");
privat... | 34,227 |
https://github.com/isabella232/3rd-party-integrations-hybris/blob/master/Hybris/osfglobalhybrisemarsysstorefront/web/webroot/WEB-INF/views/mobile/pages/account/accountOrderDetailShippingInfo.jsp | Github Open Source | Open Source | MIT | null | 3rd-party-integrations-hybris | isabella232 | null | Spoken | 81 | 433 | <%@ page trimDirectiveWhitespaces="true" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="template" tagdir="/WEB-INF/tags/mobile/template" %>
<%@ taglib prefix="theme" tagdir="/WEB-INF/tags/shared/theme" %>
<%@ taglib prefix="order" tagdir="/WEB-INF/tags/mobile/order" %>
<%@ taglib... | 16,891 |
https://github.com/sonnat/sonnat-ui/blob/master/packages/sonnat-icons/src/paths/HeartO.d.ts | Github Open Source | Open Source | MIT | 2,022 | sonnat-ui | sonnat | TypeScript | Code | 14 | 28 | import type { ReactNode } from "react";
declare const HeartO: ReactNode;
export default HeartO;
| 15,483 |
https://github.com/elasota/clarity/blob/master/Subset_of_CorLib/System/Reflection/Assembly.cs | Github Open Source | Open Source | MIT | 2,019 | clarity | elasota | C# | Code | 613 | 1,736 | ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Copyright (c) Microsoft Corporation. All rights reserved.
/////////////////////////////////////////////////////////... | 49,039 |
https://github.com/ahof1704/VocalMat/blob/master/vocalmat_analysis/KMA.m | Github Open Source | Open Source | Apache-2.0 | 2,022 | VocalMat | ahof1704 | MATLAB | Code | 845 | 3,578 | function [ALPHA,LAMBDA,options] = KMA(labeled,unlabeled,options)
% Kernel manifold alignment
%
% Usage : [eigenvectors,eigenvalues] = KMA(Labeled,Unlabeled,NumDomains,options)
%
% Inputs:
%
% - Labeled: structure with labeled data [1,NumDomains].
% each cell has X (dim1 x n1) and Y (n1 x 1) fields
... | 30,267 |
https://github.com/Herbbbb/SSM-/blob/master/ecps-core/src/main/java/cn/tf/ecps/po/EbParaValue.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | SSM- | Herbbbb | Java | Code | 108 | 305 | package cn.tf.ecps.po;
public class EbParaValue {
private Long paraId;
private Long itemId;
private Long featureId;
private String paraValue;
private String featureName;
public String getFeatureName() {
return featureName;
}
public void setFeatureName(String feature... | 48,418 |
https://github.com/rayferric/learnopengl-attempt/blob/master/src/eyespark/resource/mesh/CubeMesh.h | Github Open Source | Open Source | MIT | null | learnopengl-attempt | rayferric | C | Code | 404 | 1,491 | #ifndef EYESPARK_CUBEMESH_H
#define EYESPARK_CUBEMESH_H
#include "../../resource/mesh/Mesh.h"
#include "../../util/Math.h"
#include "../../util/Vector3.h"
class CubeMesh : public Mesh {
public:
CubeMesh(Vector3 size, bool smooth) {
size *= 0.5;
unsigned int vertexCount;
float *vertexData;... | 36,960 |
https://github.com/ChickPlane/OmsnSimulator/blob/master/cppfiles/RouterSimulator/TestRecordSlpd.cpp | Github Open Source | Open Source | MIT | 2,017 | OmsnSimulator | ChickPlane | C++ | Code | 4 | 22 | #include "stdafx.h"
#include "TestRecordSlpd.h"
| 46,435 |
https://github.com/Syncaidius/MoltenEngine/blob/master/Molten.Engine/Graphics/Shaders/ShaderPassParameters.Presets.cs | Github Open Source | Open Source | MIT | 2,023 | MoltenEngine | Syncaidius | C# | Code | 392 | 1,530 | namespace Molten.Graphics
{
public partial struct ShaderPassParameters
{
public void ApplyPreset(GraphicsStatePreset preset)
{
switch (preset)
{
default:
case GraphicsStatePreset.Default:
ApplyBlendPreset(BlendPreset.De... | 9,656 |
https://github.com/aadarshadhakalg/webdev/blob/master/dwds/test/fixtures/logging.dart | Github Open Source | Open Source | BSD-3-Clause | 2,021 | webdev | aadarshadhakalg | Dart | Code | 347 | 737 | // Copyright (c) 2020, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
// @dart = 2.9
import 'dart:async';
import 'package:logging/logging.dart';
import 'package:test/test.... | 184 |
https://github.com/2amigos/storage-api-service/blob/master/.gitignore | Github Open Source | Open Source | BSD-3-Clause, LicenseRef-scancode-unknown-license-reference | 2,019 | storage-api-service | 2amigos | Ignore List | Code | 13 | 87 | .env
.env.test
vendor/
composer.phar
.vagrant/
.phplint-cache
.idea
.php_cs.cache
.phplint.cache
volumes/ipfs/*
!volumes/ipfs/.gitkeep
volumes/mysqldb/*
!volumes/mysqldb/.gitkeep
| 49,528 |
https://github.com/Mr-haoxuan/reactProject2/blob/master/src/components/body/index.js | Github Open Source | Open Source | MIT | 2,019 | reactProject2 | Mr-haoxuan | JavaScript | Code | 79 | 277 | import React from "react";
import OnlineEmploymentClass from "./component/onlineClass";
import ProfessionalCourses from "./component/professionalCourses";
import ExcellentProgrammer from "./component/excellentProgrammer";
import DevilProgrammer from "./component/devilProgrammer";
import CareerColleges from "./component... | 771 |
https://github.com/metux/chromium-deb/blob/master/ash/system/palette/palette_tray.cc | Github Open Source | Open Source | BSD-3-Clause-No-Nuclear-License-2014, BSD-3-Clause | null | chromium-deb | metux | C++ | Code | 1,342 | 6,133 | // Copyright 2016 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 "ash/system/palette/palette_tray.h"
#include "ash/accessibility_delegate.h"
#include "ash/public/cpp/ash_pref_names.h"
#include "ash/public/cpp/... | 7,597 |
https://github.com/rude69/blockchain/blob/master/dep/exonum/src/storage/base_index.rs | Github Open Source | Open Source | MIT | 2,021 | blockchain | rude69 | Rust | Code | 1,053 | 2,948 | // Copyright 2017 The Exonum Team
//
// 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 i... | 17,988 |
https://github.com/HeRaNO/OI-ICPC-Codes/blob/master/Contest/Nowcoder Multi-school Contest 2020/2/C.cpp | Github Open Source | Open Source | MIT | 2,022 | OI-ICPC-Codes | HeRaNO | C++ | Code | 279 | 825 | #include <bits/stdc++.h>
#define ll long long
#define ls id << 1
#define rs id << 1 | 1
#define mem(array, value, size, type) memset(array, value, ((size) + 5) * sizeof(type))
#define memarray(array, value) memset(array, value, sizeof(array))
#define pb(x) push_back(x)
#define st(x) (1LL << (x))
#define pii pair<int, i... | 26,061 |
https://github.com/bridgecrew-perf4/terraform-cantrill-aws-associate/blob/master/lab/organization/outputs.tf | Github Open Source | Open Source | MIT | 2,021 | terraform-cantrill-aws-associate | bridgecrew-perf4 | HCL | Code | 42 | 180 | output "dev_account_name" {
value = aws_organizations_account.dev.name
}
output "dev_account_email" {
value = aws_organizations_account.dev.email
}
output "dev_organizational_unit_id" {
value = aws_organizations_organizational_unit.dev.id
}
output "prod_account_name" {
value = aws_organizations_account.prod.... | 29,746 |
https://github.com/OpenMEDIADESK/openMEDIADESK/blob/master/src/main/java/com/stumpner/mediadesk/util/FileWrapper.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | openMEDIADESK | OpenMEDIADESK | Java | Code | 930 | 1,917 | package com.stumpner.mediadesk.util;
import java.io.File;
import java.io.IOException;
import java.io.FileFilter;
import java.io.FilenameFilter;
import java.net.URI;
import java.net.URL;
import java.net.MalformedURLException;
/*********************************************************
Copyright 2017 by Franz STUMPNER ... | 10,203 |
https://github.com/Warglaive/Strings-and-Text-Processing---Exercises/blob/master/Strings and Text Processing - Exercises.sln | Github Open Source | Open Source | Apache-2.0 | 2,017 | Strings-and-Text-Processing---Exercises | Warglaive | null | Spoken | 203 | 1,391 |
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.26403.0
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "01. Placeholders", "01. Placeholders\01. Placeholders.csproj", "{0C83367D-B951-47E0-9143-E04E156F3A45}"
EndPr... | 31,340 |
https://github.com/topdev115/Laravel-Swift-Sample/blob/master/ApiServer/database/migrations/2019_11_15_023806_create_log_requests_table.php | Github Open Source | Open Source | MIT | 2,020 | Laravel-Swift-Sample | topdev115 | PHP | Code | 64 | 260 | <?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateLogRequestsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('log_request... | 32,484 |
https://github.com/PilotSuren/ShogiCore/blob/master/ShogiCoreTest/Notation/SFENNotationReaderTest.cs | Github Open Source | Open Source | MIT | 2,017 | ShogiCore | PilotSuren | C# | Code | 30 | 151 | using System;
using System.Linq;
using Xunit;
namespace ShogiCore.Notation {
public class SFENNotationReaderTest {
[Fact]
public void test1() {
var data = "1nsR4l/lk1l+R4/1p1G3pp/p1psp1P2/1N4bP1/P1PPP1s1P/1P3+p2+p/LSG6/KNG b 2Pngb";
Assert.Equal(1, new SFENNotationReader().... | 12,029 |
https://github.com/Pugio/eppsilon/blob/master/ps_utils/spectral_window.pro | Github Open Source | Open Source | BSD-2-Clause | 2,015 | eppsilon | Pugio | null | Spoken | 204 | 584 | ;; set the periodic keyword for cases in which n_samples is even but
;; there is a single maximum (ie k=0 exists) -- this implies an asymmetric window
;; function and is correct for FFTs with even numbers of samples
function spectral_window, n_samples, type = type, periodic = periodic
type_list = ['Hann', 'Hamming'... | 19,560 |
https://github.com/shibigami/Hobby/blob/master/SlimeSim/Library/Il2cppBuildCache/UWP/x64/il2cppOutput/Unity.2D.Animation.Runtime_Attr.cpp | Github Open Source | Open Source | Apache-2.0 | 2,021 | Hobby | shibigami | C++ | Code | 4,227 | 38,539 | #include "pch-cpp.hpp"
#ifndef _MSC_VER
# include <alloca.h>
#else
# include <malloc.h>
#endif
#include <limits>
#include <stdint.h>
// System.Char[]
struct CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34;
// System.Type[]
struct TypeU5BU5D_t85B10489E46F06CEC7C4B1CCBD0E01FAB6649755;
// UnityEngine.AddCompon... | 27,676 |
https://github.com/rashedjony/hotel-booking/blob/master/resources/views/home.blade.php | Github Open Source | Open Source | MIT | null | hotel-booking | rashedjony | PHP | Code | 223 | 1,027 | @extends('adminlte::page')
@section('title', 'Dashboard | BASA')
@section('content_header')
<h1>Dashboard</h1>
@stop
@section('content')
<!-----first row grid column---->
<div class="col-lg-12">
<div class="row">
<div class="col-lg-3">
<!-... | 18,163 |
https://github.com/paurue/claude/blob/master/claude/utils/formulas.py | Github Open Source | Open Source | MIT | null | claude | paurue | Python | Code | 129 | 596 | import numpy as np
def information_entropy(probabilities, base=2):
log = np.log(probabilities)
log[np.isinf(log)] = 0
entropy = - np.sum(probabilities * log)
return entropy / np.log(base)
def mutual_information(entropy_x, entropy_y, entropy_xy):
return entropy_x + entropy_y - entropy_xy
def co... | 53,138 |
https://github.com/guyueyingmu/alipay-sdk-java-all/blob/master/src/main/java/com/alipay/api/response/KoubeiMerchantOperatorFreezeResponse.java | Github Open Source | Open Source | Apache-2.0 | null | alipay-sdk-java-all | guyueyingmu | Java | Code | 65 | 222 | package com.alipay.api.response;
import com.alipay.api.internal.mapping.ApiField;
import com.alipay.api.AlipayResponse;
/**
* ALIPAY API: koubei.merchant.operator.freeze response.
*
* @author auto create
* @since 1.0, 2018-07-13 20:43:19
*/
public class KoubeiMerchantOperatorFreezeResponse extends AlipayRespon... | 6,553 |
https://github.com/intarsys/runtime/blob/master/intarsys-tools-runtime/src/main/java/de/intarsys/tools/action/ActionForwarder.java | Github Open Source | Open Source | BSD-3-Clause | 2,023 | runtime | intarsys | Java | Code | 461 | 1,095 | /*
* Copyright (c) 2007, intarsys GmbH
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* - Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following di... | 43,344 |
https://github.com/carbonatedcaffeine/zircon-rpi/blob/master/zircon/kernel/lib/arch/include/lib/arch/arm64/system.h | Github Open Source | Open Source | BSD-2-Clause, MIT, BSD-3-Clause | 2,021 | zircon-rpi | carbonatedcaffeine | C++ | Code | 540 | 1,686 | // Copyright 2021 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef ZIRCON_KERNEL_LIB_ARCH_INCLUDE_LIB_ARCH_ARM64_SYSTEM_H_
#define ZIRCON_KERNEL_LIB_ARCH_INCLUDE_LIB_ARCH_ARM64_SYSTEM_H_
#include <lib/arch/sysreg.... | 13,843 |
https://github.com/backbonecabal/levee/blob/master/levee/d/buffer.lua | Github Open Source | Open Source | BSD-2-Clause | 2,018 | levee | backbonecabal | Lua | Code | 775 | 2,261 | local ffi = require('ffi')
local C = ffi.C
local errors = require("levee.errors")
local Butt_mt = {}
Butt_mt.__index = Butt_mt
function Butt_mt:__len()
return #self.buf - self.off
end
function Butt_mt:peek(off, len)
return ffi.string(self:value(off, len))
end
function Butt_mt:value(off, len)
if not len the... | 45,063 |
https://github.com/siyang7/lab4-localrepo-starter-route66/blob/master/application/controllers/Able.php | Github Open Source | Open Source | MIT | 2,018 | lab4-localrepo-starter-route66 | siyang7 | PHP | Code | 37 | 94 | <?php
defined('BASEPATH') OR exit('No direct script access allowed');
// Able controller class
class Able extends Application
{
function __construct()
{
parent::__construct();
}
/**
* Index function for able class
*/
public function index()
{
$this->show(1);
}
}... | 18,555 |
https://github.com/matrix-msu/arcs/blob/master/vendors/TestSuite/VisualPHPUnit/app/scripts/controllers/about.js | Github Open Source | Open Source | BSD-3-Clause | 2,022 | arcs | matrix-msu | JavaScript | Code | 22 | 65 | 'use strict';
/**
* @ngdoc function
* @name VisualPHPUnit.controller:AboutCtrl
* @description # AboutCtrl Controller of the VisualPHPUnit
*/
angular.module('VisualPHPUnit').controller('AboutCtrl', function() {
});
| 36,727 |
https://github.com/Miladpegah/persianbit/blob/master/app/Http/Middleware/VerifiedUser.php | Github Open Source | Open Source | MIT | null | persianbit | Miladpegah | PHP | Code | 56 | 170 | <?php
namespace App\Http\Middleware;
use Closure;
use Illuminate\Http\Request;
use App\User;
class VerifiedUser
{
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @return mixed
*/
public function handle(Request $request... | 5,989 |
https://github.com/brosenan/vercastDB/blob/master/test/text-test.js | Github Open Source | Open Source | MIT | null | vercastDB | brosenan | JavaScript | Code | 290 | 945 | "use strict";
var assert = require('assert');
var DiffMatchPatch = require('diff-match-patch');
var asyncgen = require('asyncgen');
var vercast = require('vercast');
var vdb = require('vercastDB');
var dispMap = Object.create(vercast.examples);
dispMap.Text = vdb.Text;
var otb;
describe('Text', function(){
be... | 7,286 |
https://github.com/devalf/test-t2/blob/master/src/client/src/state/reducers.ts | Github Open Source | Open Source | MIT | null | test-t2 | devalf | TypeScript | Code | 38 | 124 | import {combineReducers} from '@reduxjs/toolkit';
import {productsData} from './productsData/reducer';
import {ui} from './ui/reducer';
import {cart} from './cart/reducer';
import {modal} from './modal/reducer';
const rootReducer = combineReducers({
productsData,
ui,
cart,
modal
});
export type RootS... | 19,928 |
https://github.com/QuoineFinancial/nem-library-ts/blob/master/src/models/transaction/ImportanceTransferTransaction.ts | Github Open Source | Open Source | MIT | 2,019 | nem-library-ts | QuoineFinancial | TypeScript | Code | 536 | 1,081 | /*
* The MIT License (MIT)
*
* Copyright (c) 2017 NEM
*
* 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 rights
* to use, copy, mo... | 9,562 |
https://github.com/DongyuCai/Pi4Axe/blob/master/pi4axe/src/main/java/com/pi4axe/component/AMG88xx.java | Github Open Source | Open Source | MIT | null | Pi4Axe | DongyuCai | Java | Code | 450 | 1,755 | package com.pi4axe.component;
import org.axe.exception.RestException;
import org.axe.util.LogUtil;
import com.pi4axe.util.I2CBusLockUtil;
import com.pi4j.io.i2c.I2CBus;
import com.pi4j.io.i2c.I2CDevice;
import com.pi4j.io.i2c.I2CFactory;
/**
* 红外热成像测温模块 i2c通讯
*
* @author Cai
*/
public class AMG88xx {
// AMG88... | 38,558 |
https://github.com/cly168/mean-charlie-workspace/blob/master/christina/Project/server/models/room.js | Github Open Source | Open Source | Unlicense | 2,016 | mean-charlie-workspace | cly168 | JavaScript | Code | 26 | 84 | var mongoose = require('mongoose');
var RoomSchema = new mongoose.Schema({
name: String,
password: String,
users: [{type: mongoose.Schema.Types.ObjectId, ref: 'User'}],
video: String
});
var Room = mongoose.model('Room', RoomSchema); | 12,708 |
https://github.com/kju0627/cal/blob/master/src/edu/kaist/swrc/canceldetector/RegularExpression.java | Github Open Source | Open Source | Apache-2.0 | 2,014 | cal | kju0627 | Java | Code | 1,794 | 6,224 | package edu.kaist.swrc.canceldetector;
import java.io.*;
import java.util.*;
import java.util.regex.*;
/**
* Class for regular expression control.
* Allow users to define their own notation function.
* @author DH
*
*/
public class RegularExpression implements Serializable{
private Hashtable<Character, Character... | 9,903 |
https://github.com/Romaindu35/EncryptSystem/blob/master/src/main/java/fr/romaindu35/enscryptsystem/utils/ScanDirBuilder.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | EncryptSystem | Romaindu35 | Java | Code | 175 | 402 | package fr.romaindu35.enscryptsystem.utils;
import java.io.File;
public class ScanDirBuilder {
private File input_directory;
private File output_directory;
private Boolean activated = false;
private Filter filter = new Filter();
private String convertExtension = "";
/**
*
* @param ... | 51,147 |
https://github.com/jjgarzella/mathlib/blob/master/src/group_theory/perm/cycles.lean | Github Open Source | Open Source | Apache-2.0 | 2,021 | mathlib | jjgarzella | Lean | Code | 6,267 | 17,877 | /-
Copyright (c) 2019 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes
-/
import data.nat.parity
import data.equiv.fintype
import group_theory.perm.sign
import data.finset.noncomm_prod
/-!
# Cyclic permutations
## Main definitions
In the foll... | 1,251 |
https://github.com/DavidFricker/DataAbstracter/blob/master/docs/html/dir_18db40c5914ea2175b6242d08ddb965e.js | Github Open Source | Open Source | MIT | null | DataAbstracter | DavidFricker | JavaScript | Code | 10 | 93 | var dir_18db40c5914ea2175b6242d08ddb965e =
[
[ "DataAbstracter", "dir_d8f838a84770298a4ccde3d97957e2e7.html", "dir_d8f838a84770298a4ccde3d97957e2e7" ]
]; | 37,947 |
https://github.com/noklam/noklam.github.io/blob/master/nbs/489e211d/robots.txt | Github Open Source | Open Source | Apache-2.0 | 2,023 | noklam.github.io | noklam | null | Spoken | 2 | 21 | Sitemap: https://noklam.github.io/sitemap.xml
| 23,493 |
https://github.com/zackdotcomputer/advent-of-code-2020/blob/master/day4/part2.ts | Github Open Source | Open Source | MIT | null | advent-of-code-2020 | zackdotcomputer | TypeScript | Code | 64 | 191 | import Passport from "./Passport.ts";
function countValid(input: string): number {
const passports = input
.split("\n\n")
.filter((s) => s.trim().length > 0)
.map((p) => new Passport(p))
.filter((s) => s.isValid());
return passports.length;
}
const testInput: string = await Deno.readTextFile("./te... | 51,360 |
https://github.com/MangroveData/DataQualityEngine/blob/master/DQE 1.0.7/DQECodeDeployment/0 Database Deployment/300_Tables/DQ.RuleExecutionHistory.sql | Github Open Source | Open Source | MIT | 2,018 | DataQualityEngine | MangroveData | SQL | Code | 65 | 257 | USE [DataQualityDB]
GO
IF NOT EXISTS (SELECT 1 FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME = 'RuleExecutionHistory'
AND TABLE_SCHEMA = 'DQ' )
BEGIN
CREATE TABLE [DQ].[RuleExecutionHistory](
[RXLogId] [int] IDENTITY(1,1) NOT NULL,
[LoadId] [int] NULL,
[DatabaseName] [varchar](255) NULL,
[SchemaName]... | 22,405 |
https://github.com/shagabutdinov/sublime-remove-selection/blob/master/remove_selection.py | Github Open Source | Open Source | MIT | 2,014 | sublime-remove-selection | shagabutdinov | Python | Code | 88 | 329 | import sublime
import sublime_plugin
class RemoveSelection(sublime_plugin.TextCommand):
def run(self, edit, selection):
if selection > len(self.view.sel()) or len(self.view.sel()) == 1:
return
selections = []
for index, sel in enumerate(self.view.sel()):
if index == selection:
contin... | 4,135 |
https://github.com/Edgarvital/ConectAEE/blob/master/resources/views/usuario/completarCadastro.blade.php | Github Open Source | Open Source | MIT | null | ConectAEE | Edgarvital | PHP | Code | 536 | 2,321 | @extends('layouts.principal')
@section('title','Completar registro')
@section('content')
<div class="container">
<div class="row">
<div class="col-md-12">
<div class="panel panel-default" style="margin-top: -20px; padding: 10px 20px;" id="login-card">
<div cla... | 31,870 |
https://github.com/erhlee-bird/remill/blob/master/tests/X86/LOGICAL/OR.S | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-unknown-license-reference | 2,016 | remill | erhlee-bird | null | Spoken | 413 | 2,242 | /* Copyright 2015 Peter Goodman (peter@trailofbits.com), all rights reserved. */
TEST_BEGIN(ORal, 1)
TEST_IGNORE_FLAGS(AF)
TEST_INPUTS(
0,
1,
0x7F,
0xFF)
mov eax, ARG1_32
or al, 1
TEST_END
TEST_BEGIN(ORax, 1)
TEST_IGNORE_FLAGS(AF)
TEST_INPUTS(
0,
1,
0x7F,
0xFF,
0x7FFF,
... | 401 |
https://github.com/maca134/fuel-amon/blob/master/classes/amon/request.php | Github Open Source | Open Source | MIT | 2,012 | fuel-amon | maca134 | PHP | Code | 191 | 555 | <?php
/**
* Amon: Integrate FuelPHP with Amon Exception & Logging
*
* @package Amon
* @version v0.1
* @author Matthew McConnell
* @license MIT License
* @link http://github.com/maca134/fuelphp-amon
*/
namespace Amon;
class Amon_Request {
/**
* @var Array Stored the request config... | 45,901 |
https://github.com/fossabot/ios_sdk_demo_apps/blob/master/ChatBadgeCount/Pods/Headers/Public/ZDCChat/ZDCChat/ZDCChatDataNode.h | Github Open Source | Open Source | Apache-2.0 | 2,018 | ios_sdk_demo_apps | fossabot | C | Code | 1 | 22 | ../../../../ZDCChat/ZDCChat.framework/Headers/ZDCChatDataNode.h | 38,715 |
https://github.com/leddt/soundboard/blob/master/views/board.handlebars | Github Open Source | Open Source | MIT | 2,020 | soundboard | leddt | null | Spoken | 72 | 273 | <div class="board-id">
<span class="board-id-label">Board ID</span>
<span class="board-id-text">{{board}}</span>
</div>
<div class="text-center" style="margin: 50px auto; max-width: 600px">
<p class="lead">
This is a <strong>soundboard</strong> tab. It is connected to the board ID shown at the top.
</p>
<p>
U... | 25,758 |
https://github.com/empress-php/empress/blob/master/bin/empress | Github Open Source | Open Source | MIT | 2,022 | empress | empress-php | PHP | Code | 203 | 628 | #!/usr/bin/env php
<?php
use Amp\Loop;
use Empress\Application;
use Empress\Empress;
use Empress\Exception\ShutdownException;
use Empress\Exception\StartupException;
(function () {
$paths = [
__DIR__ . '/../vendor/autoload.php',
__DIR__ . '/../../../autoload.php',
];
foreach ($paths as $p... | 27,398 |
https://github.com/inova-ceopc/sistema-inova/blob/master/resources/views/Comex/Solicitar/Contratacao/confirmar.blade.php | Github Open Source | Open Source | MIT | 2,019 | sistema-inova | inova-ceopc | Blade | Code | 690 | 3,571 | @extends('adminlte::page')
@section('title', 'EsteiraComex - Análise Contratação')
@section('content_header')
<div class="panel-body padding015">
<h4 class="animated bounceInLeft pull-left">
Esteira de Contratação |
<small>Contratação - Formalização de Contrato </small>
</h4>
<ol cl... | 18,193 |
https://github.com/dotnet/maui/blob/master/src/Compatibility/Material/src/iOS/IMaterialTextField.cs | Github Open Source | Open Source | MIT | 2,023 | maui | dotnet | C# | Code | 51 | 148 | using CoreGraphics;
using MaterialComponents;
using MTextInputControllerBase = MaterialComponents.TextInputControllerBase;
namespace Microsoft.Maui.Controls.Compatibility.Material.iOS
{
internal interface IMaterialTextField
{
SemanticColorScheme ColorScheme { get; set; }
ContainerScheme ContainerScheme { get; }
... | 11,034 |
https://github.com/wqw547243068/DS_Algorithm/blob/master/CtCI/chapter13/13.9.cpp | Github Open Source | Open Source | RSA-MD | 2,021 | DS_Algorithm | wqw547243068 | C++ | Code | 130 | 456 | #include <iostream>
#include <cstdlib>
using namespace std;
template <typename T>
class SmartPointer{
public:
SmartPointer(T* ptr){
ref = ptr;
ref_count = (unsigned*)malloc(sizeof(unsigned));
*ref_count = 1;
}
SmartPointer(SmartPointer<T> &sptr){
ref = sptr.ref;
re... | 4,184 |
https://github.com/tivenwang/intellij-plugins/blob/master/Dart/testData/goto/Reference37.dart | Github Open Source | Open Source | Apache-2.0 | 2,016 | intellij-plugins | tivenwang | Dart | Code | 36 | 87 | void main() {
var foo = new Foo()..bar = 239
..baz.getBar().getB<caret>az();
}
class Foo {
Bar bar;
Baz baz;
}
class Bar {
Baz getBaz() => null;
}
class Baz {
Bar getBar() => null;
} | 31,277 |
https://github.com/crummel/dotnet_arcade-services/blob/master/src/Shared/Microsoft.DotNet.Internal.DependencyInjection/ClientFactory.cs | Github Open Source | Open Source | MIT | 2,023 | dotnet_arcade-services | crummel | C# | Code | 145 | 562 | using System;
using System.Collections.Generic;
using Microsoft.Extensions.Options;
namespace Microsoft.DotNet.Internal.DependencyInjection;
public class ClientFactory<TOptions, TClient> : IClientFactory<TClient>, IDisposable
where TClient : class
{
private readonly Dictionary<string, RefCountedObject<TClient... | 45,389 |
https://github.com/Devyani-Divs/mirrormanager2/blob/master/mirrormanager2/lib/repomap.py | Github Open Source | Open Source | MIT | 2,015 | mirrormanager2 | Devyani-Divs | Python | Code | 893 | 3,040 | import re
def is_development(path):
development_re = r'\/development\/((\d+))/'
m = re.search(re.compile(development_re), path)
if m is not None:
return m.group(1)
return None
def centos_prefix(path):
choices = (u'os', u'updates', u'extras', u'centosplus',
u'contrib', u'fast... | 22,424 |
https://github.com/Clariones/event-driven-generation/blob/master/old_projects/edg/project/storedev/gen/graphquery/ChangeRequest.java | Github Open Source | Open Source | BSD-2-Clause | 2,019 | event-driven-generation | Clariones | Java | Code | 263 | 1,289 | package cla.edg.project.storedev.gen.graphquery;
import java.util.Map;
import com.terapico.generator.Utils;
import cla.edg.modelbean.*;
public class ChangeRequest extends BaseModelBean{
public String getFullClassName() {
return "com.doublechain.storedev.changerequest.ChangeRequest";
}
// 枚举对象
// 引用的对象
publ... | 32,520 |
https://github.com/ess-dmsc/NeXus-Streamer/blob/master/generate_json/generate_json_description.py | Github Open Source | Open Source | BSD-2-Clause | null | NeXus-Streamer | ess-dmsc | Python | Code | 625 | 2,012 | import numpy as np
import nexusformat.nexus as nexus
import json
import argparse
class NexusToDictConverter:
"""
Class used to convert nexus format root to python dict
"""
def __init__(self, truncate_large_datasets: bool = False, large: int = 10):
"""
:param truncate_large_datasets: i... | 9,497 |
https://github.com/redhat-nfvpe/helm-ansible-template-exporter/blob/master/cmd/hamsible/export/export_test.go | Github Open Source | Open Source | Apache-2.0 | 2,021 | helm-ansible-template-exporter | redhat-nfvpe | Go | Code | 158 | 556 | package export_test
import (
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
cmd "github.com/redhat-nfvpe/helm-ansible-template-exporter/cmd/hamsible/export"
)
var _ = Describe("Export", func() {
Context("When role is not passed", func() {
It("Should thrown an error, expecting role", func() {
args := [... | 48,286 |
https://github.com/malvarado27/Amrex/blob/master/Tests/GeometryShop/regression/ebio.cpp | Github Open Source | Open Source | BSD-3-Clause-LBNL | 2,021 | Amrex | malvarado27 | C++ | Code | 1,541 | 5,539 |
#include "AMReX_BaseIVFactory.H"
#include "AMReX_EBIndexSpace.H"
#include "AMReX_EBISLayout.H"
#include "AMReX_BoxIterator.H"
#include "AMReX_ParmParse.H"
#include "AMReX_GeometryShop.H"
#include "AMReX_WrappedGShop.H"
#include "AMReX_EBCellFAB.H"
#include "AMReX_EBLevelGrid.H"
#include "AMReX_LayoutData.H"
#include "... | 26,196 |
https://github.com/kennykhoapham/aurora/blob/master/src/components/RangeSlider/__tests__/__snapshots__/SliderParticles.spec.js.snap | Github Open Source | Open Source | MIT | 2,019 | aurora | kennykhoapham | null | Spoken | 48 | 176 | // Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`Handle should match snapshot 1`] = `
<div
aria-disabled={false}
aria-valuemax={100}
aria-valuemin={0}
aria-valuenow={30}
className="ghhiOS"
role="slider"
style={
Object {
"left": "10%",
}
}
/>
`;
exports[`Track should match snapshot 1`]... | 11,608 |
https://github.com/sayedmhussein/ControlSystem/blob/master/src/Backend/Domain/BoundedContexts/HumanResources/EmployeeModule/ValueObjects/SessionLog.cs | Github Open Source | Open Source | MIT | null | ControlSystem | sayedmhussein | C# | Code | 22 | 76 | using System;
using Microsoft.EntityFrameworkCore;
namespace WeeControl.Backend.Domain.BoundedContexts.HumanResources.EmployeeModule.ValueObjects
{
[Owned]
public record SessionLog(string Details)
{
public DateTime LogTs { get; set; }
}
} | 3,240 |
https://github.com/jcohen02/tempro/blob/master/src/main/java/uk/ac/imperial/libhpc2/schemaservice/TempssConfig.java | Github Open Source | Open Source | BSD-3-Clause | 2,019 | tempro | jcohen02 | Java | Code | 288 | 835 | package uk.ac.imperial.libhpc2.schemaservice;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import org.ini4j.InvalidFileFormatException;
import org.ini4j.Wini;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* This singleton class represents an inst... | 34,094 |
https://github.com/DanielaSfregola/get-programming-with-scala/blob/master/unit8/lesson52/src/test/scala/trythis/TryThis-52.1.scala | Github Open Source | Open Source | MIT | 2,023 | get-programming-with-scala | DanielaSfregola | Scala | Code | 169 | 446 | package trythis
import org.scalatest.flatspec.AsyncFlatSpec
import org.scalatest.matchers.should
import java.io.FileNotFoundException
import scala.concurrent.{ExecutionContext, Future}
class FrequencyTest extends AsyncFlatSpec with should.Matchers {
val frequency = new Frequency
def stubFrequency(data: Map[Str... | 16,838 |
https://github.com/RaulGracia/pravega/blob/master/client/src/test/java/io/pravega/client/stream/impl/DefaultCredentialsTest.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | pravega | RaulGracia | Java | Code | 171 | 539 | /**
* Copyright Pravega 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... | 8,587 |
https://github.com/mcanthony/shipshape/blob/master/shipshape/proto/shipshape_context_proto/shipshape_context_proto.pb.go | Github Open Source | Open Source | Apache-2.0 | 2,015 | shipshape | mcanthony | Go | Code | 894 | 2,699 | // Code generated by protoc-gen-go.
// source: shipshape/proto/shipshape_context.proto
// DO NOT EDIT!
/*
Package shipshape_context_proto_go_src is a generated protocol buffer package.
It is generated from these files:
shipshape/proto/shipshape_context.proto
It has these top-level messages:
ShipshapeContext
Chang... | 50,361 |
https://github.com/ScalablyTyped/Distribution/blob/master/a/ant-design__react-native/src/main/scala/typings/antDesignReactNative/libTabsStyleMod.scala | Github Open Source | Open Source | MIT | 2,023 | Distribution | ScalablyTyped | Scala | Code | 157 | 590 | package typings.antDesignReactNative
import typings.antDesignReactNative.libStyleMod.Theme
import typings.reactNative.mod.TextStyle
import typings.reactNative.mod.ViewStyle
import org.scalablytyped.runtime.StObject
import scala.scalajs.js
import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, J... | 33,118 |
https://github.com/josewweee/appBarberoExpress/blob/master/node_modules/rxjs/internal/observable/fromObservable.d.ts | Github Open Source | Open Source | MIT | 2,019 | appBarberoExpress | josewweee | TypeScript | Code | 21 | 57 | import { Observable } from '../Observable';
import { ObservableLike, SchedulerLike } from '../types';
export declare function fromObservable<T>(input: ObservableLike<T>, scheduler: SchedulerLike): Observable<T>;
| 16,659 |
https://github.com/Pierre-RA/hano/blob/master/public/js/hano.js | Github Open Source | Open Source | MIT | 2,017 | hano | Pierre-RA | JavaScript | Code | 693 | 2,406 | 'use strict';
function parseLinks(text) {
var result = '';
result = text.replace(/\[art:([^\]]+)\]/g, '<a href="/articles/$1">$1</a>');
result =
result.replace(/\[dic:([^\]]+)\]/g, '<a href="/dictionary/$1">$1</a>');
return result;
}
function parseWutopian(text) {
return text.replace(/\[wut:([^\]]+)\]/g... | 53,107 |
https://github.com/rozivector/new-rozbot/blob/master/commands/clear.js | Github Open Source | Open Source | MIT | 2,019 | new-rozbot | rozivector | JavaScript | Code | 44 | 190 | const Discord = require("discord.js");
module.exports.run = (client, message, args) =>
{
if(!message.member.hasPermission("MANAGE_MESSAGES")) return message.channel.sendMessage("<:WrongMark:524375774741135362> You don't have Manage Messages permission!");
if(!args[0]) return message.channel.sendMessage(":warning:... | 48,006 |
https://github.com/ncent/core-api/blob/master/start.sh | Github Open Source | Open Source | MIT | 2,020 | core-api | ncent | Shell | Code | 32 | 65 | #!/bin/bash
mvn clean compile assembly:single
serverless deploy --stage $1
# Not required, but good way to test if it is up and running properly
serverless invoke $1 --function user --data '{"path": "/user_test/hello"}' | 11,660 |
https://github.com/SnceGroup/snce-website/blob/master/web/design/standard/templates/collaboration/message/view/element/ezapprove_comment.tpl | Github Open Source | Open Source | MIT | 2,016 | snce-website | SnceGroup | null | Spoken | 41 | 256 | {* DO NOT EDIT THIS FILE! Use an override template instead. *}
<tr>
<td class="{$sequence}">
<p>{if $is_read|not}<b>{/if}{"Posted: %1"|i18n('design/standard/collaboration',,array($item.created|l10n(shortdatetime)))}{if $is_read|not}</b>{/if}</p>
</td>
<td class="{$sequence}">
<p>{if $is_read|not}<b>[new]</b>{... | 51,422 |
https://github.com/gkong/go-qweb/blob/master/example/server-full/dbsetup.go | Github Open Source | Open Source | MIT | null | go-qweb | gkong | Go | Code | 603 | 1,821 | // Copyright 2016 George S. Kong. All rights reserved.
// Use of this source code is governed by a license that can be found in the LICENSE.txt file.
package main
import (
"context"
"database/sql"
"errors"
"fmt"
"log"
"strings"
"time"
_ "github.com/go-sql-driver/mysql"
"github.com/gocql/gocql"
"github.com/... | 52,145 |
https://github.com/white87332/react-redux-template/blob/master/public/src/selectors/selectors.js | Github Open Source | Open Source | MIT | 2,020 | react-redux-template | white87332 | JavaScript | Code | 24 | 49 | import { createSelector } from 'reselect';
const selectCounter = state => state.counter;
export const makeCounterSelector = () => createSelector(
selectCounter,
state => state
);
| 14,204 |
https://github.com/qzsiniong/node_spider/blob/master/back_end/src/spider/errors/FailedError.ts | Github Open Source | Open Source | MIT | 2,018 | node_spider | qzsiniong | TypeScript | Code | 12 | 24 | import MyError from './MyError';
export default class FailedError extends MyError {
}
| 43,982 |
https://github.com/fwcd/project-lighthouse/blob/master/spaceinvaders/src/main/java/lighthouse/spaceinvaders/model/Projectile.java | Github Open Source | Open Source | MIT | null | project-lighthouse | fwcd | Java | Code | 126 | 418 | package lighthouse.spaceinvaders.model;
import lighthouse.util.BoxBounded;
import lighthouse.util.DoubleRect;
import lighthouse.util.DoubleVec;
public class Projectile implements BoxBounded {
private final DoubleRect boundingBox;
private final DoubleVec velocity;
private boolean hitsAliens;
publi... | 10,785 |
https://github.com/adsnehi/Online-test-series-php/blob/master/foot/control/transfersubadminHistory.php | Github Open Source | Open Source | MIT | 2,018 | Online-test-series-php | adsnehi | PHP | Code | 99 | 445 | <?php include 'header.php';?>
<script>
function change_page(page_id){
var mesd = $("#search").val();
var dataString = 'page_id='+ page_id+'&search='+mesd;
$.ajax({
type: "POST",
url: "load_subadmin_balance_list.php",
data: dataString,
cache: false,
... | 32,024 |
https://github.com/PieterVanPoyer/showCaseCordova/blob/master/www/js/geolocation.js | Github Open Source | Open Source | Apache-2.0 | null | showCaseCordova | PieterVanPoyer | JavaScript | Code | 101 | 576 | document.addEventListener("deviceready", function() {
var onSuccess = function(position) {
$("#latitude").val(position.coords.latitude);
$("#longitude").val(position.coords.longitude);
$("#altitude").val(position.coords.altitude);
$("#accuracy").val(position.coords.accuracy);
... | 28,534 |
https://github.com/ianeinser/go-midtrans/blob/master/response.go | Github Open Source | Open Source | Apache-2.0 | null | go-midtrans | ianeinser | Go | Code | 592 | 2,135 | package midtrans
import "time"
// VANumber : bank virtual account number
type VANumber struct {
Bank string `json:"bank"`
VANumber string `json:"va_number"`
}
// Action represents response action
type Action struct {
Name string `json:"name"`
Method string `json:"method"`
URL string `json:"url"`
}
// ... | 10,598 |
https://github.com/randysimpson/retrieve/blob/master/db/db.go | Github Open Source | Open Source | MIT | null | retrieve | randysimpson | Go | Code | 145 | 374 | package db
import (
"time"
)
type Metric struct {
Date time.Time `json:"date"`
Metric string `json:"metric"`
Source string `json:"source"`
Tags map[string]interface{} `json:"tags"`
Value float64 `json:"value"`
}
var dbtype string
func SetupPG(host string, port int, user string, password string, dbname string)... | 38,002 |
https://github.com/ccheng32/shadow-plugin-tor/blob/master/src/torflow/torflow-config.h | Github Open Source | Open Source | LicenseRef-scancode-public-domain | 2,020 | shadow-plugin-tor | ccheng32 | C | Code | 89 | 473 | /*
* The Shadow Simulator
* See LICENSE for licensing information
*/
#ifndef SRC_TORFLOW_TORFLOW_CONFIG_H_
#define SRC_TORFLOW_TORFLOW_CONFIG_H_
#include <netdb.h>
#include <glib.h>
typedef enum _TorFlowMode TorFlowMode;
enum _TorFlowMode {
TORFLOW_MODE_TORFLOW, TORFLOW_MODE_FILESERVER
};
typedef struct _T... | 41,256 |
https://github.com/tmax-cloud/hypercloud5-installer/blob/master/app/containers/AppContext.ts | Github Open Source | Open Source | Apache-2.0, MIT | null | hypercloud5-installer | tmax-cloud | TypeScript | Code | 60 | 135 | import React from 'react';
// app 전체에서 사용 될, context
export const AppContext = React.createContext({});
export const initialState = {
loading: false,
installing: ''
};
export const reducer = (state: any, action: any) => {
if (action.type === 'set_loading') {
return { ...state, ...action };
}
if (action.... | 39,695 |
https://github.com/naz013/reminder-kotlin/blob/master/app/src/main/java/com/elementary/tasks/core/data/migrations/Migration8To9.kt | Github Open Source | Open Source | Apache-2.0, MIT | 2,023 | reminder-kotlin | naz013 | Kotlin | Code | 64 | 197 | package com.elementary.tasks.core.data.migrations
import androidx.room.migration.Migration
import androidx.sqlite.db.SupportSQLiteDatabase
val MIGRATION_8_9: Migration = object : Migration(8, 9) {
override fun migrate(database: SupportSQLiteDatabase) {
runCatching {
database.execSQL("ALTER TABLE Reminder ... | 4,051 |
https://github.com/phateio/kiris/blob/master/test/controllers/json/playlist_controller_test.rb | Github Open Source | Open Source | MIT | 2,023 | kiris | phateio | Ruby | Code | 19 | 55 | require 'test_helper'
class Json::PlaylistControllerTest < ActionController::TestCase
test 'json playlist index' do
get :index, format: 'json'
assert_response :success
end
end
| 33,918 |
https://github.com/tcarausu/Nameless/blob/master/ProjectSettings/TagManager.asset | Github Open Source | Open Source | Apache-2.0 | 2,021 | Nameless | tcarausu | Unity3D Asset | Code | 88 | 269 | %YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!78 &1
TagManager:
serializedVersion: 2
tags:
- BillboardTag
- Chest
- Notice
- UI_QuestTag
layers:
- Default
- TransparentFX
- Ignore Raycast
-
- Water
- UI
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-... | 43,497 |
https://github.com/Team-Inceptus/SMPCore/blob/master/src/us/teaminceptus/smpcore/abilities/WorldAbilities.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | SMPCore | Team-Inceptus | Java | Code | 4,067 | 19,583 | package us.teaminceptus.smpcore.abilities;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Random;
import java.util.UUID;
import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.... | 16,049 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.