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/AUAC-Technologies/AUAC-Core-Drivers/blob/master/docs/stm32fxxx-hal-libraries-master/15-STM32Fxxx_HD44780/User/main.c | Github Open Source | Open Source | MIT | null | AUAC-Core-Drivers | AUAC-Technologies | C | Code | 280 | 762 | /**
* Keil project example for HD44780 LCD
*
* Before you start, select your target, on the right of the "Load" button
*
* @author Tilen MAJERLE
* @email tilen@majerle.eu
* @website http://stm32f4-discovery.net
* @ide Keil uVision 5
* @conf PLL parameters are set in "Options for Target" -> ... | 43,627 |
https://github.com/SinsofSloth/RF5-global-metadata/blob/master/_no_namespace/PlayerInput.InputState.cs | Github Open Source | Open Source | MIT | 2,021 | RF5-global-metadata | SinsofSloth | C# | Code | 337 | 1,100 | protected class PlayerInput.InputState // TypeDefIndex: 6685
{
// Fields
[CompilerGeneratedAttribute] // RVA: 0x1954B0 Offset: 0x1955B1 VA: 0x1954B0
private Key <Key>k__BackingField; // 0x10
[CompilerGeneratedAttribute] // RVA: 0x1954C0 Offset: 0x1955C1 VA: 0x1954C0
private PlayerInput.KeyState <State>k__BackingFi... | 18,686 |
https://github.com/MariaT27/hosting/blob/master/resources/views/acp/domains/mailboxes.blade.php | Github Open Source | Open Source | MIT | null | hosting | MariaT27 | PHP | Code | 170 | 789 | @extends("$tpl.base")
@section('content')
<h3>Новая электропочта</h3>
<form action="{{ path([$controller, 'addMailbox'], $model) }}" class="max-w-600px" method="post">
@csrf
<div class="mb-4">
<label>Ящик</label>
<div class="flex items-center w-full">
<input class="form-input" type="text" name="logi... | 2,207 |
https://github.com/kiri93/graco/blob/master/graco/tests/test_GDV_and_GCV.py | Github Open Source | Open Source | Apache-2.0 | null | graco | kiri93 | Python | Code | 76 | 398 | import os
import graco
import unittest
import numpy as np
import pandas as pd
import networkx as nx
GRACO_PATH = os.path.dirname(graco.__file__)
DATA_PATH = f"{GRACO_PATH}/tests/data"
# ============================================================================
# Distance Functions
# =... | 41,161 |
https://github.com/darkdebo/cprograms/blob/master/double.c | Github Open Source | Open Source | MIT | 2,019 | cprograms | darkdebo | C | Code | 198 | 457 | #include <stdio.h>
#include <stdlib.h>
typedef struct new_node
{
int data;
struct new_node* prev;
struct new_node* next;
}*node;
node head=NULL;
node tail=NULL;
void insert(int data) {
//Create a new node
node newNode = (node)malloc(sizeof(node));
newNode->data = data;
//If... | 12,686 |
https://github.com/vlapchenko/nfx/blob/master/Source/NFX/CodeAnalysis/JSON/JSONPatternMatchAttribute.cs | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, Apache-2.0 | 2,016 | nfx | vlapchenko | C# | Code | 212 | 435 | /*<FILE_LICENSE>
* NFX (.NET Framework Extension) Unistack Library
* Copyright 2003-2014 IT Adapter Inc / 2015 Aum Code LLC
*
* 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.apac... | 21,247 |
https://github.com/salmanfleekbiz/myprojects/blob/master/sugarhousenew/routes/web.php | Github Open Source | Open Source | MIT | 2,019 | myprojects | salmanfleekbiz | PHP | Code | 263 | 2,556 | <?php
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| ... | 41,598 |
https://github.com/rafay1327/Flask-Forum/blob/master/flaskbb/auth/services/registration.py | Github Open Source | Open Source | BSD-3-Clause, MIT | 2,018 | Flask-Forum | rafay1327 | Python | Code | 342 | 1,062 | # -*- coding: utf-8 -*-
"""
flaskbb.auth.services
~~~~~~~~~~~~~~~~~~~~~
Implementation of services found in flaskbb.core.auth.services
:copyright: (c) 2014-2018 the FlaskBB Team.
:license: BSD, see LICENSE for more details
"""
import attr
from flask_babelplus import gettext as _
from sqlalchemy ... | 46,811 |
https://github.com/fu4303/portfolio-morris/blob/master/types/rehype-highlight.d.ts | Github Open Source | Open Source | MIT | 2,021 | portfolio-morris | fu4303 | TypeScript | Code | 3 | 10 | declare module 'rehype-highlight'; | 42,134 |
https://github.com/amscotti/slack_emoji_exporter/blob/master/slack_emoji_exporter.nimble | Github Open Source | Open Source | MIT | 2,019 | slack_emoji_exporter | amscotti | Nim | Code | 33 | 94 | # Package
version = "0.1.1"
author = "Anthony Scotti"
description = "A tool to export Slack Workspace\'s Emojis"
license = "MIT"
srcDir = "src"
bin = @["slack_emoji_exporter"]
# Dependencies
requires "nim >= 0.19.0"
| 6,358 |
https://github.com/HuaiyuCai/lartkv5/blob/master/src/utils/mit_darpa_logs_player/src/example4velodyne.cpp | Github Open Source | Open Source | BSD-3-Clause | 2,017 | lartkv5 | HuaiyuCai | C++ | Code | 621 | 1,716 | /**************************************************************************************************
Software License Agreement (BSD License)
Copyright (c) 2011-2013, LAR toolkit developers - University of Aveiro - http://lars.mec.ua.pt
All rights reserved.
Redistribution and use in source and binary forms, with o... | 17,517 |
https://github.com/walle19/24x7-Weather/blob/master/24x7 Weather/ForecastDataModel.swift | Github Open Source | Open Source | MIT | 2,019 | 24x7-Weather | walle19 | Swift | Code | 60 | 167 | //
// ForecastDataModel.swift
// 24x7 Weather
//
// Created by Nikhil Wali on 23/04/17.
// Copyright © 2017 Nikhil Wali. All rights reserved.
//
import UIKit
class ForecastDataModel: NSObject {
var index = 0
var forecastWeather: WeatherModel?
var imageName: UIImage?
convenience init(index: I... | 9,815 |
https://github.com/lblod/ember-submission-form-fields/blob/master/ember-cli-build.js | Github Open Source | Open Source | MIT | 2,022 | ember-submission-form-fields | lblod | JavaScript | Code | 105 | 283 | 'use strict';
const EmberAddon = require('ember-cli/lib/broccoli/ember-addon');
module.exports = function(defaults) {
const customBuildConfig = {
// Add options here
};
if(process.env.EMBER_TEST_SELECTORS_STRIP == 'false'){
customBuildConfig['ember-test-selectors'] = { strip: false };
}
else if(pro... | 42,037 |
https://github.com/kfern/inkline/blob/master/src/css/index.scss | Github Open Source | Open Source | MIT | 2,021 | inkline | kfern | SCSS | Code | 12 | 41 | @import 'functions';
@import 'mixins';
@import 'variables';
@import 'variables/css';
@import 'utilities';
@import 'core';
| 20,225 |
https://github.com/CoderLee-Y/FundAnalysisSystem/blob/master/code/crawler/fund/fund/spiders/fundinfo.py | Github Open Source | Open Source | Apache-2.0 | 2,021 | FundAnalysisSystem | CoderLee-Y | Python | Code | 407 | 2,045 | import scrapy
import datetime
from ..items import FundInfoItem
def trim(s):
if s is None:
return ""
else:
ret = s
ret.replace("\r", "")
ret.replace("\n", "")
return ret.strip()
def fund_id(s):
if s is None:
return ""
else:
return s[-11: -5]
de... | 13,027 |
https://github.com/Kirishikesan/haiku/blob/master/src/add-ons/index_server/fulltext/FullTextAnalyser.h | Github Open Source | Open Source | MIT | 2,022 | haiku | Kirishikesan | C | Code | 105 | 416 | /*
* Copyright 2010, Haiku.
* Distributed under the terms of the MIT License.
*
* Authors:
* Clemens Zeidler <haiku@clemens-zeidler.de>
*/
#ifndef FULL_TEXT_ANALYSER_H
#define FULL_TEXT_ANALYSER_H
#include "IndexServerAddOn.h"
#include <Path.h>
#include "TextDataBase.h"
const char* kFullTextDirectory = "Fu... | 42,841 |
https://github.com/KhronosGroup/KTX-Software/blob/master/tests/loadtests/glloadtests/utils/GLMeshLoader.hpp | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-unknown-license-reference | 2,023 | KTX-Software | KhronosGroup | C++ | Code | 1,234 | 5,427 | /*
* Copyright 2017-2020 Mark Callow.
* SPDX-License-Identifier: Apache-2.0
*/
#pragma once
#include <stdlib.h>
#include <string>
#include <fstream>
#include <iostream>
#include <sstream>
#include <map>
#include <stdexcept>
#include <vector>
using namespace std;
#ifdef _WIN32
#include <windows.h>
#include <fcntl.... | 28,862 |
https://github.com/tagdown-lang/core/blob/master/test/properties/parse-error.ts | Github Open Source | Open Source | MIT | 2,021 | core | tagdown-lang | TypeScript | Code | 116 | 299 | import * as fc from "fast-check"
import { parseTree, prettyprint, printContents, validateTree } from "../../src"
import { logExpr } from "../../src/test/log"
import { assertProperty, contentsArb } from "../../src/test/property"
// Checks whether we are lossless when dealing with invalid input.
assertProperty(
conte... | 28,164 |
https://github.com/artemeff/raven-erlang/blob/master/src/raven_app.erl | Github Open Source | Open Source | MIT | 2,023 | raven-erlang | artemeff | Erlang | Code | 42 | 196 | -module(raven_app).
-include("raven.hrl").
-behaviour(application).
-export([
start/2,
stop/1
]).
%% @hidden
start(_StartType, _StartArgs) ->
case application:get_env(?APP, error_logger) of
{ok, true} ->
error_logger:add_report_handler(raven_error_logger);
_ ->
... | 31,698 |
https://github.com/volodg/gsrv/blob/master/erlang_ex/ErlangTest/testStream/Dependencies/JFFLibrary/lib/JFFAsyncOperations/CachedAsyncOperations/JFFPropertyExtractor.m | Github Open Source | Open Source | BSD-2-Clause, BSD-3-Clause | 2,012 | gsrv | volodg | Objective-C | Code | 297 | 1,053 | #import "JFFPropertyExtractor.h"
#import "JFFPropertyPath.h"
#import "JFFObjectRelatedPropertyData.h"
#import "NSObject+PropertyExtractor.h"
@interface JFFPropertyExtractor ()
@property ( nonatomic, retain ) JFFObjectRelatedPropertyData* objectPropertyData;
@property ( nonatomic, assign, readonly ) SEL propertyGet... | 38,111 |
https://github.com/EIDSS/EIDSS-Legacy/blob/master/EIDSS v6.1/eidss.model/Model/Smartphone/FFModel.cs | Github Open Source | Open Source | BSD-2-Clause | 2,017 | EIDSS-Legacy | EIDSS | C# | Code | 1,055 | 2,777 | using System.Collections.Generic;
using System.Linq;
using bv.model.BLToolkit;
using eidss.model.Core;
using eidss.model.Model.FlexibleForms.FlexNodes;
using eidss.model.Schema;
using eidss.model.Schema.Smartphone;
namespace eidss.model.Model.Smartphone
{
public class FFModel
{
public long id { get; s... | 13,385 |
https://github.com/luciditeam/lucidity/blob/master/OLD/legacy/modules/Project/actions/addAction.ts | Github Open Source | Open Source | MIT | 2,017 | lucidity | luciditeam | TypeScript | Code | 165 | 323 | import { ActionContextType } from '../../context.type'
import { createProject } from '../../Project'
import { loadProject, selectProjectPath } from '../../FileStorage/helper/FileStorageHelper'
export const addAction =
( { state
, input: { }
, output
} : ActionContextType
) => {
selectProjectPath ()
.then ( p... | 45,432 |
https://github.com/stivi05/XbtitDT-FM-V20-de/blob/master/xbtit_dt_fm_v20.0_de/admin/admin.cleanshout.php | Github Open Source | Open Source | BSD-3-Clause | 2,022 | XbtitDT-FM-V20-de | stivi05 | PHP | Code | 325 | 736 | <?php
/////////////////////////////////////////////////////////////////////////////////////
// xbtit - Bittorrent tracker/frontend
//
// Copyright (C) 2004 - 2015 Btiteam
//
// This file is part of xbtit DT FM.
//
// Redistribution and use in source and binary forms, with or without modification,
// are permitted p... | 22,294 |
https://github.com/rodmax/factoryT/blob/master/tools/integration-test.sh | Github Open Source | Open Source | MIT | 2,022 | factoryT | rodmax | Shell | Code | 60 | 210 | #!/bin/sh
set -e
rootDir=$(git rev-parse --show-toplevel)
rootBuildDir=${rootDir}/build
packageArchive="${rootDir}/factory-t*.tgz"
demoAppDir=${rootDir}/demo-app
demoAppBuildDir=${demoAppDir}/build
echo "BEFORE ALL: cleanup"
rm -rf "${demoAppBuildDir}" "${rootBuildDir}" ${packageArchive}
echo "STEP 1: build factory... | 47,331 |
https://github.com/isongwei/SWCategoryKit/blob/master/SWCategoryKit/Classes/NSString/NSString+Extension.h | Github Open Source | Open Source | MIT | null | SWCategoryKit | isongwei | C | Code | 106 | 516 | //
// NSString+Extension.h
// 新浪微博
//
// Created by xc on 15/3/6.
// Copyright (c) 2015年 xc. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
@interface NSString (Extension)
+ (NSString *)userAgentStr;
- (NSString *)URLEncoding;
- (NSString *)URLDecoding;
- (NSString *)md5Str;
... | 27,057 |
https://github.com/stephenkopylov1/PandraLibs/blob/master/Pods/Headers/Build/ShareKit/SHKCopy.h | Github Open Source | Open Source | MIT | 2,014 | PandraLibs | stephenkopylov1 | C | Code | 1 | 24 | ../../../ShareKit/Classes/ShareKit/Sharers/Actions/Copy/SHKCopy.h | 47,907 |
https://github.com/scidatasoft/system-java/blob/master/java-service-template/src/main/java/com/sds/osdr/model/FailureEvent.java | Github Open Source | Open Source | MIT | 2,018 | system-java | scidatasoft | Java | Code | 153 | 464 | package com.sds.osdr.model;
import java.util.UUID;
import com.fasterxml.jackson.annotation.JsonProperty;
public class FailureEvent extends AbstractContract {
private UUID id;
private String timeStamp;
private UUID userId;
public FailureEvent() {
namespace = "Sds.Example.Domain.Events";
... | 12,474 |
https://github.com/mao29/CompetenceManagementSystem/blob/master/Code/CompetenceManagementSystem/Domain/Enums/CompetenceLevel.cs | Github Open Source | Open Source | MIT | 2,021 | CompetenceManagementSystem | mao29 | C# | Code | 44 | 153 | using System;
using System.Collections.Generic;
using System.Text;
namespace CompetenceManagementSystem.Domain.Enums
{
/// <summary>
/// Уровень владения компетенцией.
/// </summary>
public enum CompetenceLevel
{
/// <summary>
/// Начальный.
/// </summary>
Basic,
... | 42,324 |
https://github.com/jxiang/hive/blob/master/metastore/scripts/upgrade/derby/upgrade-2.0.0-to-2.1.0.derby.sql | Github Open Source | Open Source | Apache-2.0 | null | hive | jxiang | SQL | Code | 22 | 96 | -- Upgrade MetaStore schema from 2.0.0 to 2.1.0
RUN '034-HIVE-13076.derby.sql';
RUN '035-HIVE-13395.derby.sql';
UPDATE "APP".VERSION SET SCHEMA_VERSION='2.1.0', VERSION_COMMENT='Hive release version 2.1.0' where VER_ID=1;
| 5,725 |
https://github.com/surmon-china/wordpress-theme-surmon/blob/master/mpanel/css/css.php | Github Open Source | Open Source | MIT | 2,020 | wordpress-theme-surmon | surmon-china | PHP | Code | 54 | 158 | <?php
/**
*CSS 合并压缩
*/
header( 'Content-type: text/css' );
function compress( $buffer ){
$buffer = preg_replace( '!/\*[^*]*\*+([^/][^*]*\*+)*/!', '', $buffer );
$buffer = str_replace( array( "\r\n", "\r", "\n", "\t", ' ', ' ', ' ' ), '', $buffer );
return $buffer;
}
ob_start( 'compress' );
foreach( glob( '*.... | 34,263 |
https://github.com/Edmetrio/Education/blob/master/resources/views/livewire/passwords.blade.php | Github Open Source | Open Source | MIT | null | Education | Edmetrio | PHP | Code | 58 | 299 | <div>
<form>
<div class="row">
<div class="col-xs-12 col-sm-12 col-md-12">
<div class="form-group">
<strong>Palavra-Passe:</strong>
<input type="password" wire:model="password" class="form-control" p>
@error('password') ... | 3,398 |
https://github.com/Tianhao-Gu/ConditionUtils/blob/master/lib/src/us/kbase/conditionutils/ConditionSet.java | Github Open Source | Open Source | MIT | null | ConditionUtils | Tianhao-Gu | Java | Code | 228 | 868 |
package us.kbase.conditionutils;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.annotation.Generated;
import com.fasterxml.jackson.annotation.JsonAnyGetter;
import com.fasterxml.jackson.annotation.JsonAnySetter;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.faste... | 30,316 |
https://github.com/GBLodb/pyrotech-1.12/blob/master/src/main/java/com/codetaylor/mc/pyrotech/modules/core/network/CSPacketModuleListResponse.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | pyrotech-1.12 | GBLodb | Java | Code | 123 | 600 | package com.codetaylor.mc.pyrotech.modules.core.network;
import com.codetaylor.mc.pyrotech.ModPyrotechConfig;
import com.codetaylor.mc.pyrotech.library.config.ConfigSerializer;
import io.netty.buffer.ByteBuf;
import net.minecraft.util.text.TextComponentTranslation;
import net.minecraftforge.fml.common.network.simpleim... | 39,825 |
https://github.com/georgeconstantinou/project-template-cakephp/blob/master/src/Shell/ScheduledLogShell.php | Github Open Source | Open Source | MIT | 2,021 | project-template-cakephp | georgeconstantinou | PHP | Code | 232 | 666 | <?php
namespace App\Shell;
use Cake\Console\Shell;
use Cake\Core\Configure;
use Cake\I18n\Time;
use Cake\Log\Log;
use Cake\ORM\TableRegistry;
use RuntimeException;
/**
* ScheduledLogShell shell command.
*
* Delete
*
*/
class ScheduledLogShell extends Shell
{
/**
* Manage the available sub-commands alo... | 1,701 |
https://github.com/byuccl/spydrnet/blob/master/spydrnet/plugins/namespace_manager/__init__.py | Github Open Source | Open Source | BSD-3-Clause | 2,023 | spydrnet | byuccl | Python | Code | 815 | 2,684 | from abc import ABC
from spydrnet.callback.callback_listener import CallbackListener
from spydrnet.plugins.namespace_manager.default_namespace import DefaultNamespace
from spydrnet.plugins.namespace_manager.edif_namespace import EdifNamespace
from spydrnet.ir import Netlist, Library, Definition, Port, Cable, Instance
... | 3,991 |
https://github.com/toastr42/toastr/blob/master/src/app/components/home/home.js | Github Open Source | Open Source | MIT | null | toastr | toastr42 | JavaScript | Code | 124 | 501 | import React, { Component } from "react";
import {Dropdown, DropdownToggle, DropdownMenu, DropdownItem} from "reactstrap";
import Fold from "../../../core/components/fold" ;
import ReactLogo from "../../../resources/images/Toast.jpg";
import SmallImage from "../../../resources/images/Toast.jpg?sizes=100w+200w+400w+800w... | 33,691 |
https://github.com/JNY0606/parallelismForAllLang/blob/master/Parallelism.vb | Github Open Source | Open Source | MIT | 2,020 | parallelismForAllLang | JNY0606 | Visual Basic | Code | 76 | 197 | Imports System.Threading
Module Parallelism
Sub Main()
Dim threads = 5
Dim count = 0
Dim lobj = New Object()
Dim listener As Action = Function()
SyncLock lobj
count += 1
... | 23,243 |
https://github.com/excaliburhan/zhDaily/blob/master/dev/static/js/mods/today.js | Github Open Source | Open Source | MIT | 2,019 | zhDaily | excaliburhan | JavaScript | Code | 324 | 1,097 | /**
*
* @authors excaliburhan (edwardhjp@gmail.com)
* @date 2016-04-05 22:32:17
* @version $Id$
* zhDaily today
*/
$(function () {
var
apiVersion = 4,
page = {
init: function () {
page.bindEvent();
page.initList();
},
bindEvent: function () {
var tag;
... | 43,692 |
https://github.com/Ecstar-js/Ecstar/blob/master/src/Client.ts | Github Open Source | Open Source | MIT | 2,021 | Ecstar | Ecstar-js | TypeScript | Code | 86 | 227 | import {
Client as DiscordClient,
ClientOptions as DiscordClientOptions,
} from 'discord.js';
import { plugin } from 'ecstar/plugin';
import { plugins } from 'ecstar/plugins';
import { Store } from 'ecstar/Store';
export type EcstarClientOptions = DiscordClientOptions & {
prefix: string;
};
export class Client ... | 24,513 |
https://github.com/Zenahr/ALUB/blob/master/.gitignore | Github Open Source | Open Source | MIT | 2,021 | ALUB | Zenahr | Ignore List | Code | 8 | 29 | env
.vscode
__pycache__
Capture.JPG
temp.*
dist
build
*.spec | 417 |
https://github.com/jsonmvc/pug-view-loader/blob/master/test/index.js | Github Open Source | Open Source | MIT | 2,017 | pug-view-loader | jsonmvc | JavaScript | Code | 211 | 672 |
var parser = require('./../src/index.js').bind({
cacheable: () => {}
})
it('should parse a simple module', () => {
var result = parser(`
foo: /item/description
bar: /bar/prop
---
.foo
h1 {{ foo }}
p {{ bar }}
`)
result = result.split('if (module.hot)')[0]
result = result.replace... | 44,950 |
https://github.com/rgwood/go2cs/blob/master/src/go-src-converted/net/http/httptrace/trace_WroteRequestInfoStruct.cs | Github Open Source | Open Source | MIT | 2,022 | go2cs | rgwood | C# | Code | 211 | 614 | //---------------------------------------------------------
// <auto-generated>
// This code was generated by a tool. Changes to this
// file may cause incorrect behavior and will be lost
// if the code is regenerated.
//
// Generated on 2020 October 09 04:56:56 UTC
// </auto-generated>
//--------------... | 33,551 |
https://github.com/Bernasss12/Pokemon-Game/blob/master/core/src/dev/bernasss12/model/TileMap.java | Github Open Source | Open Source | MIT | 2,019 | Pokemon-Game | Bernasss12 | Java | Code | 77 | 215 | package dev.bernasss12.model;
public class TileMap {
private int width, height;
private Tile[][] tileMap;
public TileMap(int width, int height) {
this.width = width;
this.height = height;
tileMap = new Tile[width][height];
for(int x = 0; x < width; x++){
for... | 40,557 |
https://github.com/jasonsie88/Intro._to_Compiler_Design/blob/master/hw3-jasonsie88-master/src/lib/AST/CompoundStatement.cpp | Github Open Source | Open Source | MIT | null | Intro._to_Compiler_Design | jasonsie88 | C++ | Code | 61 | 286 | #include "AST/CompoundStatement.hpp"
#include "visitor/AstNodeVisitor.hpp"
// TODO
CompoundStatementNode::CompoundStatementNode(const uint32_t line,
const uint32_t col,std::vector<AstNode *> *new_declaration,std::vector<AstNode *> *new_statements)
: AstNode{line, col} {
... | 9,881 |
https://github.com/giacomo-dantonio/purescript-exercises/blob/master/src/Exercises/Chapter9/Rectangle.purs | Github Open Source | Open Source | MIT | null | purescript-exercises | giacomo-dantonio | PureScript | Code | 108 | 296 | module Exercises.Chapter9.Rectangle where
import Prelude
import Data.Maybe
import Control.Monad.Eff
import Graphics.Canvas hiding (translate)
import Exercises.Chapter9.Shapes (translate)
-- Exercise 2 Section 9.4
wonderfulRectangle :: Rectangle
wonderfulRectangle =
{ x: 250.0
, y: 250.0
, w: 100.0
, h: 1... | 37,173 |
https://github.com/hyurl/slimq-py/blob/master/slimq/__init__.py | Github Open Source | Open Source | MIT | null | slimq-py | hyurl | Python | Code | 4 | 15 | from slimq.slimq import SliMQ
| 35,273 |
https://github.com/hsiaoyi0504/SC3/blob/master/test/out/ERS1349102/results.tsv | Github Open Source | Open Source | MIT | 2,018 | SC3 | hsiaoyi0504 | TSV | Code | 8 | 40 | SRA Heterozygous SNPs Homozygous SNPs
ERR1630645 879192165,199474659, 121434453,137852673,
| 45,563 |
https://github.com/AOEpeople/puppeteer-autobot/blob/master/src/how-to-include-example.ts | Github Open Source | Open Source | Apache-2.0 | 2,022 | puppeteer-autobot | AOEpeople | TypeScript | Code | 64 | 194 | import {readFileSync} from "fs";
import {Options} from "./lib/classes/options";
import {FetchBot} from "./lib/classes/fetch-bot";
console.log('🤖 Start a journey that my tour guide has planned for me => "../examples/aoe.people.and.languages.json"\n');
let tour = JSON.parse(readFileSync(__dirname + '/../examples/aoe... | 23,025 |
https://github.com/myhololens/firetron/blob/master/firetron/_createlnk.py | Github Open Source | Open Source | BSD-2-Clause | 2,018 | firetron | myhololens | Python | Code | 801 | 2,710 | """
This module provides the ``create_lnk()`` function for writing Windows
shortcuts (.lnk files).
This module is inspired by the pylnk module (from 2011) by Tim-Christian
Mundt, and would not have been possible without it. The current module
is written for Python3 and has better support for Unicode paths, but
it only... | 25,183 |
https://github.com/Nicodinus/umeyeapi/blob/master/lib/Network/Opcode/HeaderOpcodeWithSignatureInterface.php | Github Open Source | Open Source | MIT | null | umeyeapi | Nicodinus | PHP | Code | 13 | 75 | <?php
namespace Nicodinus\UmeyeApi\Network\Opcode;
use Nicodinus\UmeyeApi\Core\Network\Opcode\HeaderOpcodeInterface;
interface HeaderOpcodeWithSignatureInterface extends OpcodeWithSignatureInterface, HeaderOpcodeInterface
{
//
} | 9,829 |
https://github.com/4L1C3-R4BB1T/pi-brinsp/blob/master/projeto-integrado/app/site/models/Imagem.php | Github Open Source | Open Source | MIT | null | pi-brinsp | 4L1C3-R4BB1T | PHP | Code | 49 | 196 | <?php
namespace App\Site\models;
if (!defined('URL')) {
header("location: /");
exit();
}
class Imagem {
private $result;
private $tabela = 'post';
public function listar() {
$listar = new \Site\models\helper\ModelsRead();
$listar->exeReadEspecifico(
"SELECT p.id, p.titulo, p.imagem
FROM {$this->tabe... | 38,548 |
https://github.com/emanuellucas2/OVPsimProject/blob/master/Examples/PlatformConstruction/nativeMemory/module/module.c | Github Open Source | Open Source | TCL | null | OVPsimProject | emanuellucas2 | C | Code | 270 | 693 | /*
*
* Copyright (c) 2005-2021 Imperas Software Ltd., www.imperas.com
*
* The contents of this file are provided under the Software License
* Agreement that you accepted before downloading this file.
*
* This source forms part of the Software and can be used for educational,
* training, and demonstration purpos... | 14,464 |
https://github.com/jscrdev/LeetCode-in-Java/blob/master/src.save/main/java/g1201_1300/s1295_find_numbers_with_even_number_of_digits/Solution.java | Github Open Source | Open Source | MIT | 2,022 | LeetCode-in-Java | jscrdev | Java | Code | 106 | 253 | package g1201_1300.s1295_find_numbers_with_even_number_of_digits;
// #Easy #Array #2022_03_10_Time_2_ms_(58.23%)_Space_43.7_MB_(23.87%)
public class Solution {
public int findNumbers(int[] nums) {
// initialising variable to hold number of digits and numbers having even number of digits
int digitC... | 6,443 |
https://github.com/HubBucket-Team/gemini/blob/master/gemini-core/src/test/java/it/at7/gemini/api/RestAPIControllerOneRecordEntityAbstTest.java | Github Open Source | Open Source | Apache-2.0 | 2,019 | gemini | HubBucket-Team | Java | Code | 170 | 835 | package it.at7.gemini.api;
import com.fasterxml.jackson.databind.ObjectMapper;
import it.at7.gemini.UnitTestBase;
import it.at7.gemini.core.entitymanager.OneRecordEntityManagerAbsTest;
import org.junit.FixMethodOrder;
import org.junit.Test;
import org.junit.runners.MethodSorters;
import java.util.HashMap;
import java... | 48,965 |
https://github.com/chhernandez/CodeKite/blob/master/ColorMe/ColorMe/myViewController.h | Github Open Source | Open Source | Apache-2.0 | 2,014 | CodeKite | chhernandez | Objective-C | Code | 32 | 97 | //
// myViewController.h
// ColorMe
//
// Created by Carlos Hernandez on 1/20/14.
// Copyright (c) 2014 Carlos Hernandez. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface myViewController : UIViewController
- (IBAction)dismissModalController:(id)sender;
@end
| 26,873 |
https://github.com/lbooker42/deephaven-core/blob/master/Base/src/main/java/io/deephaven/base/reference/SimpleReference.java | Github Open Source | Open Source | MIT | null | deephaven-core | lbooker42 | Java | Code | 55 | 125 | /**
* Copyright (c) 2016-2022 Deephaven Data Labs and Patent Pending
*/
package io.deephaven.base.reference;
/**
* Simple reference interface used by CachedReference.
*/
public interface SimpleReference<T> {
/**
* Retrieve the current referent.
*
* @return The current referent, which may be nu... | 14,719 |
https://github.com/meomen/NiceFood/blob/master/app/src/main/java/com/vuducminh/nicefood/ui/menu/MenuViewModel.java | Github Open Source | Open Source | Apache-2.0 | null | NiceFood | meomen | Java | Code | 151 | 713 | package com.vuducminh.nicefood.ui.menu;
import androidx.annotation.NonNull;
import androidx.lifecycle.MutableLiveData;
import androidx.lifecycle.ViewModel;
import com.google.firebase.database.DataSnapshot;
import com.google.firebase.database.DatabaseError;
import com.google.firebase.database.DatabaseReference;
import... | 15,345 |
https://github.com/marthydavid/Rocket.Chat/blob/master/client/providers/AuthorizationProvider.js | Github Open Source | Open Source | MIT | 2,020 | Rocket.Chat | marthydavid | JavaScript | Code | 64 | 232 | import React from 'react';
import { Meteor } from 'meteor/meteor';
import {
hasPermission,
hasAtLeastOnePermission,
hasAllPermission,
} from '../../app/authorization/client/hasPermission';
import { AuthorizationContext } from '../contexts/AuthorizationContext';
import { hasRole } from '../../app/authorization/clien... | 15,894 |
https://github.com/cybernetics/ktfmt-gradle/blob/master/plugin-build/plugin/src/main/java/com/ncorti/ktfmt/gradle/FormattingOptionsBean.kt | Github Open Source | Open Source | MIT | 2,021 | ktfmt-gradle | cybernetics | Kotlin | Code | 228 | 603 | package com.ncorti.ktfmt.gradle
import com.facebook.ktfmt.DEFAULT_MAX_WIDTH
import com.facebook.ktfmt.FormattingOptions
import com.facebook.ktfmt.FormattingOptions.Style as KtfmtStyle
import java.io.Serializable
internal data class FormattingOptionsBean(
/** The style used by ktfmt */
val style: Style = Styl... | 12,726 |
https://github.com/chrisguttandin/reliable-web-summit-2021/blob/master/src/ng-dev-mode.d.ts | Github Open Source | Open Source | MIT | 2,017 | reliable-web-summit-2021 | chrisguttandin | TypeScript | Code | 7 | 23 | declare const ngDevMode: boolean; // eslint-disable-line no-unused-vars
| 7,304 |
https://github.com/rishidevc/stkovrflw/blob/master/BinaryNumbers/BinNums.py | Github Open Source | Open Source | MIT | null | stkovrflw | rishidevc | Python | Code | 183 | 543 | """
INPUTS AND EXPECTED OUTPUTS:-
9 => "1001"
60 => "0011_1100"
100 => "0110_0100"
63000 => "1111_0110_0001_1000"
"""
def get_binary(n):
s = bin(n)[2:]; # Getting binary string
strs = [];
while s:
l = len(s); # Finding lenght of binary string
if l > 4:
strs.insert(0, s[l-4:]);
s = s[:l... | 25,867 |
https://github.com/H2O-2/Ritsu/blob/master/engine/post.ts | Github Open Source | Open Source | MIT | 2,021 | Ritsu | H2O-2 | TypeScript | Code | 67 | 165 | export default interface Post {
fileName: string;
urlName: string; // file name with unsafe chars replaced
title: string;
date: number; // Unix Timestamp (miliseconds)
formatedDate: string; // formated date generated according to timeFormat field in site-config.yaml
year: string;
day: string... | 27,322 |
https://github.com/qiuchili/ggnn_graph_classification/blob/master/program_data/JavaProgramData/4/554.java | Github Open Source | Open Source | MIT | 2,018 | ggnn_graph_classification | qiuchili | Java | Code | 101 | 327 | package <missing>;
public class GlobalMembers
{
public static int Main()
{
int[][] a = new int[100][100];
int r;
int c;
int i = 0;
int j = 0;
int x = 0;
int y;
r = Integer.parseInt(ConsoleInput.readToWhiteSpace(true));
c = Integer.parseInt(ConsoleInput.readToWhiteSpace(true));
y = r + c;
for (i... | 8,443 |
https://github.com/cis-suyash/dapp-shell/blob/master/test/black-box/MessagingInformation.test.ts | Github Open Source | Open Source | MIT | null | dapp-shell | cis-suyash | TypeScript | Code | 392 | 1,281 | import { api } from './lib/api';
import { DatabaseResetCommand } from '../../src/console/DatabaseResetCommand';
import { MessagingProtocolType } from '../../src/api/enums/MessagingProtocolType';
describe('/messaging-informations', () => {
const keys = [
'id', 'updatedAt', 'createdAt', 'protocol', 'publicK... | 9,594 |
https://github.com/shine0624/VAL/blob/master/nets/rnn.py | Github Open Source | Open Source | Apache-2.0 | 2,020 | VAL | shine0624 | Python | Code | 364 | 1,633 | from tensorflow.python.util import nest
from tensorflow.python.framework import tensor_shape
import tensorflow as tf
import numpy as np
slim = tf.contrib.slim
def _state_size_with_prefix(state_size, prefix=None):
result_state_size = tensor_shape.as_shape(state_size).as_list()
if prefix is not None:
if not ... | 45,854 |
https://github.com/vmlens/vmlens/blob/master/plugin.sync.bug/src/main/scala/com/anarsoft/race/detection/process/method/StepProzessMethodEvents.scala | Github Open Source | Open Source | Apache-2.0 | 2,022 | vmlens | vmlens | Scala | Code | 164 | 676 | package com.anarsoft.race.detection.process.method
import java.util.Comparator;
import com.anarsoft.race.detection.process.workflow.SingleStep
import com.anarsoft.race.detection.process.SortArrayList;
class StepProzessMethodEvents( ) extends SingleStep[ContextMethodData] {
def execute(context : Context... | 6,977 |
https://github.com/openeduhub/oeh-metadata-vocabs-playground/blob/master/eaf-sachgebietssystematik.ttl | Github Open Source | Open Source | CC0-1.0 | null | oeh-metadata-vocabs-playground | openeduhub | Turtle | Code | 20,000 | 77,699 | @base <http://w3id.org/openeduhub/vocabs-playground/eaf-sachgebietssystematik/> . @prefix dct: <http://purl.org/dc/terms/> . @prefix skos: <http://www.w3.org/2004/02/skos/core#> . <0200101> a skos:Concept ; skos:broader <02001> ; skos:inScheme <> ; skos:note "Arbeitsabläufe"@de, "Arbeitsbedingungen"@de, "Arbeitslehre"@... | 27,894 |
https://github.com/Teekivi/pushkin/blob/master/src/maps.js | Github Open Source | Open Source | MIT | null | pushkin | Teekivi | JavaScript | Code | 448 | 1,059 | // These maps are taken from the following GitHub repo file:
// https://github.com/begoon/sokoban-maps/blob/master/maps/sokoban-maps-60-plain.txt
export default [
`\
XXXXX
X X
X* X
XXX *XXX
X * * X
XXX X XXX X XXXXXX
X X XXX XXXXXXX ..X
X * * ..X
XXXXX XXXX X@XXXX ..X
X ... | 23,113 |
https://github.com/aritters/IqOptionApiDotNet/blob/master/tests/IqOption.Client.Tests/JsonTest/CurrentCandleTest.cs | Github Open Source | Open Source | MIT | null | IqOptionApiDotNet | aritters | C# | Code | 70 | 473 | using FluentAssertions;
using IqOption.Client.Models;
using IqOption.Client.Ws;
using Newtonsoft.Json;
using NUnit.Framework;
namespace IqOption.Client.Tests.JsonTest
{
public class CurrentCandleTest : TestFor<LoadJsonFileTest>
{
private string Json { get; set; }
[SetUp]
public void ... | 46,048 |
https://github.com/23errg/GamestonkTerminal/blob/master/openbb_terminal/cryptocurrency/overview/overview_controller.py | Github Open Source | Open Source | MIT | null | GamestonkTerminal | 23errg | Python | Code | 3,530 | 14,545 | """Cryptocurrency Overview Controller"""
__docformat__ = "numpy"
# pylint: disable=R0904, C0302, W0622
import argparse
import difflib
import logging
from datetime import datetime, timedelta
from typing import List
from prompt_toolkit.completion import NestedCompleter
from openbb_terminal import feature_flags as obbf... | 44,474 |
https://github.com/broxus/ton-eth-bridge-token-contracts/blob/master/free-ton/contracts/interfaces/IReceiveSurplusGas.sol | Github Open Source | Open Source | Apache-2.0 | 2,022 | ton-eth-bridge-token-contracts | broxus | Solidity | Code | 10 | 35 | pragma ton-solidity ^0.39.0;
interface IReceiveSurplusGas {
function receiveSurplusGas() external;
}
| 42,633 |
https://github.com/8bitgeek/caribou-rtos/blob/master/recipies/feature/os/delay/main.c | Github Open Source | Open Source | Beerware | 2,023 | caribou-rtos | 8bitgeek | C | Code | 60 | 239 | /******************************************************************************
******************************************************************************/
#include <board.h>
#include <delay.h>
#include <percent.h>
#include <math.h>
extern void feature_main(void* arg)
{
register caribou_tick_t start;
register ca... | 6,335 |
https://github.com/darkzerox/wordpress-docker-compose/blob/master/themes/Magneto-child/inc/template-functions.php | Github Open Source | Open Source | MIT | 2,020 | wordpress-docker-compose | darkzerox | PHP | Code | 1,058 | 3,155 | <?php
global $domain;
/**
* Functions which enhance the theme by hooking into WordPress
*
* @package Magnetolabs
*/
/**
* Adds custom classes to the array of body classes.
*
* @param array $classes Classes for the body element.
* @return array
*/
function body_classes($classes)
{
// Adds a class of hfeed t... | 17,498 |
https://github.com/GabrielGardev/skill-receiving/blob/master/Java DB/Hibernate/10. Exam Preparation/ColonialCouncilBank/src/main/java/app/ccb/services/ClientServiceImpl.java | Github Open Source | Open Source | MIT | 2,019 | skill-receiving | GabrielGardev | Java | Code | 256 | 1,172 | package app.ccb.services;
import app.ccb.domain.dtos.ClientImportDto;
import app.ccb.domain.entities.Card;
import app.ccb.domain.entities.Client;
import app.ccb.domain.entities.Employee;
import app.ccb.repositories.ClientRepository;
import app.ccb.repositories.EmployeeRepository;
import app.ccb.util.FileUtil;
import a... | 41,311 |
https://github.com/ItsNickBarry/npm-stat.com/blob/master/src/main/java/de/vorb/npmstat/persistence/jooq/tables/ChunkRelationSize.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | npm-stat.com | ItsNickBarry | Java | Code | 466 | 1,890 | /*
* This file is generated by jOOQ.
*/
package de.vorb.npmstat.persistence.jooq.tables;
import de.vorb.npmstat.persistence.jooq.Public;
import de.vorb.npmstat.persistence.jooq.tables.records.ChunkRelationSizeRecord;
import javax.annotation.Generated;
import org.jooq.Field;
import org.jooq.Name;
import org.jooq.Sc... | 31,259 |
https://github.com/CallFire/CallFire-PHP-SDK/blob/master/tests/Api/Soap/AbstractRequestTest.php | Github Open Source | Open Source | MIT | 2,017 | CallFire-PHP-SDK | CallFire | PHP | Code | 116 | 472 | <?php
namespace CallFire\Api\Soap;
use CallFire\Api\Soap\AbstractRequest;
use PHPUnit_Framework_TestCase as TestCase;
use Zend\Stdlib\Hydrator\ClassMethods;
use ReflectionClass;
class AbstractRequestTest extends TestCase
{
/**
* Test population of each request type
*
* @dataProvider provideReque... | 17,027 |
https://github.com/donataswix/send-files-tpa/blob/master/server/controllers/upload-files.js | Github Open Source | Open Source | BSD-2-Clause | 2,014 | send-files-tpa | donataswix | JavaScript | Code | 872 | 2,308 | 'use strict';
var googleDrive = require('./google-drive.js');
var dropbox = require('./dropbox.js');
var db = require('../models/pg-database.js');
var email = require('./email.js');
var wixActivities = require('./wix-activities.js');
var user = require('../controllers/user.js');
var fs = require('fs');
var async = r... | 15,800 |
https://github.com/SkelaG/laravel-in-app-purchases/blob/master/src/Http/Requests/HuaweiStoreNotificationRequest.php | Github Open Source | Open Source | BSD-3-Clause | 2,022 | laravel-in-app-purchases | SkelaG | PHP | Code | 82 | 354 | <?php
namespace Imdhemy\Purchases\Http\Requests;
use CHfur\AppGallery\Exceptions\InvalidPublicKeyException;
use CHfur\AppGallery\Validation\SignatureVerifier;
use Illuminate\Foundation\Http\FormRequest;
use Illuminate\Validation\Rule;
class HuaweiStoreNotificationRequest extends FormRequest
{
/**
* Validate... | 21,559 |
https://github.com/schnej7/Blue-Mesh/blob/master/WebViewTest/src/webView/test/WebViewTestActivity.java | Github Open Source | Open Source | BSD-2-Clause | 2,017 | Blue-Mesh | schnej7 | Java | Code | 436 | 1,702 | package webView.test;
import java.util.ArrayList;
import java.util.UUID;
import blue.mesh.BlueMeshService;
import blue.mesh.BlueMeshServiceBuilder;
import android.app.Activity;
import android.content.Context;
import android.os.Bundle;
import android.os.Handler;
import android.os.Looper;
import android.os.Message;
imp... | 37,724 |
https://github.com/pixelsquare/unity-tools/blob/master/Assets/VN Toolkit/Scripts/Utils/VNDataName.cs | Github Open Source | Open Source | MIT | null | unity-tools | pixelsquare | C# | Code | 40 | 129 | using UnityEngine;
using System.Collections;
namespace VNToolkit.VNEditor.VNUtility {
public class VNDataName {
// Static Variables
public const string PROJECT_SETTINGS_NAME = "ProjectSettings";
public const string PROJECT_SETTING_FORMAT = "ProjectSettings";
public const string PROJECT_CHAPTER_NAME = "Cha... | 42,292 |
https://github.com/willyh101/live2p/blob/master/testing/test_basic_io.py | Github Open Source | Open Source | MIT | 2,022 | live2p | willyh101 | Python | Code | 174 | 586 | import json
from live2p.websockets import Live2pServer
from live2p import Alert
test_params = {
'fr': 6.36,
'p': 1, # deconv 0 is off, 1 is slow, 2 is fast
'nb': 2, # background compenents -> nb: 3 for complex
'decay_time': 1.0, # sensor tau
'gSig': (7, 7), # expected half size of neurons in pi... | 10,561 |
https://github.com/xinan/SimpleWebProxy/blob/master/src/ProgressBar.java | Github Open Source | Open Source | MIT | 2,018 | SimpleWebProxy | xinan | Java | Code | 231 | 631 | import java.util.Arrays;
/**
* Created by Xinan on 16/9/15.
*/
public class ProgressBar {
final private long size;
private long current = 0;
public ProgressBar(String contentLength) {
long parsed;
try {
parsed = Long.parseLong(contentLength);
} catch (NumberFormatException e) {
parsed... | 20,892 |
https://github.com/mikelane/personal-site/blob/master/src/client.ts | Github Open Source | Open Source | MIT | 2,021 | personal-site | mikelane | TypeScript | Code | 15 | 68 | import * as sapper from '@sapper/app'; // eslint-disable-line import/no-unresolved
import 'highlight.js/styles/atom-one-dark-reasonable.css';
sapper.start({
target: document.querySelector('#sapper'),
});
| 38,860 |
https://github.com/aws-samples/aws-gaming-unity-labs-sample/blob/master/TappyPlaneUnity/Assets/GameSupport/Scripts/Extensions/CameraExtensions.cs | Github Open Source | Open Source | Apache-2.0 | 2,018 | aws-gaming-unity-labs-sample | aws-samples | C# | Code | 70 | 223 | using UnityEngine;
internal static class CameraExtensions
{
public static bool IsVisible(this Camera camera, Bounds bounds)
{
Plane[] planes = GeometryUtility.CalculateFrustumPlanes(camera);
return GeometryUtility.TestPlanesAABB(planes, bounds);
}
public static float FrustumHeight(this Camera camera, flo... | 20,087 |
https://github.com/xichen97/ISAACS_ROAR/blob/master/scripts/tflite_profile.py | Github Open Source | Open Source | Apache-2.0 | 2,019 | ISAACS_ROAR | xichen97 | Python | Code | 111 | 390 | '''
Usage:
tflite_test.py --model="mymodel.tflite"
Note:
may require tensorflow > 1.11 or
pip install tf-nightly
'''
import os
from docopt import docopt
import tensorflow as tf
import numpy as np
from irmark1.utils import FPSTimer
args = docopt(__doc__)
in_model = os.path.expanduser(args['--model'])
... | 35,657 |
https://github.com/antonk52/nvim-treesitter/blob/master/queries/fish/injections.scm | Github Open Source | Open Source | Apache-2.0 | null | nvim-treesitter | antonk52 | Scheme | Code | 3 | 10 | (comment) @comment @combined
| 47,614 |
https://github.com/jdtzmn/kindle-news-assistant/blob/master/stubs/ebooklib/plugins/base.pyi | Github Open Source | Open Source | MIT | 2,021 | kindle-news-assistant | jdtzmn | Python | Code | 54 | 148 | from typing import Any
class BasePlugin:
def before_write(self, book: Any): ...
def after_write(self, book: Any): ...
def before_read(self, book: Any): ...
def after_read(self, book: Any): ...
def item_after_read(self, book: Any, item: Any): ...
def item_before_write(self, book: Any, item: Any)... | 37,205 |
https://github.com/anandwana001/moshi-gson-interop/blob/master/src/test/kotlin/com/slack/moshi/interop/gson/MoshiGsonInteropTest.kt | Github Open Source | Open Source | Apache-2.0 | 2,020 | moshi-gson-interop | anandwana001 | Kotlin | Code | 901 | 3,723 | /*
* Copyright (C) 2020 Slack Technologies, 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable ... | 42,665 |
https://github.com/NikolayS/pg_stat_kcache/blob/master/debian/rules | Github Open Source | Open Source | PostgreSQL | 2,023 | pg_stat_kcache | NikolayS | Makefile | Code | 23 | 133 | #!/usr/bin/make -f
override_dh_pgxs_test:
pg_buildext -o "shared_preload_libraries=pg_stat_statements,pg_stat_kcache" installcheck . . postgresql-%v-pg-stat-kcache
override_dh_installdocs:
dh_installdocs --all CONTRIBUTORS.md README.rst
rm -rvf debian/*/usr/share/doc/postgresql-doc-*
%:
dh $@ --with pgxs_loop
| 22,684 |
https://github.com/BunnyHunter031/genshin_artifact_optimizer/blob/master/src/assets/calculators/data/water/mona/Mona.calculator.vue | Github Open Source | Open Source | MIT | null | genshin_artifact_optimizer | BunnyHunter031 | Vue | Code | 155 | 710 | <template>
<div>
<el-radio-group
v-model="showSkill"
size="large"
style="margin: 16px 0"
>
<el-radio-button label="a">Normal Attack</el-radio-button>
<el-radio-button label="e">Elemental Skil</el-radio-button>
<el-radio-button l... | 19,631 |
https://github.com/Tuyuyi99/Curso-Drupal/blob/master/vendor/chi-teck/drupal-code-generator/templates/d8/service/theme-negotiator.services.twig | Github Open Source | Open Source | MIT | 2,022 | Curso-Drupal | Tuyuyi99 | Twig | Code | 20 | 69 | services:
theme.negotiator.{{ machine_name }}.example:
class: Drupal\{{ machine_name }}\Theme\{{ class }}
arguments: ['@request_stack']
tags:
- { name: theme_negotiator, priority: 1000 }
| 44,296 |
https://github.com/dyslexicanaboko/pro-mass-spammer/blob/master/ProMassSpammer.Core/Transmission/TransmissionBySms.cs | Github Open Source | Open Source | MIT | null | pro-mass-spammer | dyslexicanaboko | C# | Code | 217 | 851 | using ProMassSpammer.Core.Diagnostic;
using ProMassSpammer.Core.Exceptions;
using ProMassSpammer.Core.Transmission.Sms;
using ProMassSpammer.Data.Entities;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
namespace ProMassSpammer.Co... | 758 |
https://github.com/ocadaruma/scalikejdbc-bigquery/blob/master/src/main/scala/scalikejdbc/bigquery/Response.scala | Github Open Source | Open Source | Apache-2.0 | 2,020 | scalikejdbc-bigquery | ocadaruma | Scala | Code | 18 | 56 | package scalikejdbc.bigquery
import com.google.cloud.bigquery.TableResult
/**
* Represents a response from BigQuery.
*/
case class Response[A](result: A, underlying: TableResult)
| 18,744 |
https://github.com/remocrevo/celus/blob/master/design/ui/src/pages/MaintenancePage.vue | Github Open Source | Open Source | MIT | 2,022 | celus | remocrevo | Vue | Code | 79 | 378 | <i18n lang="yaml">
en:
maintenance: Maintenance
no_interest: Platforms without interest definition
cs:
maintenance: Údržba
no_interest: Platformy bez definice zájmu
</i18n>
<template>
<v-container>
<v-row>
<v-col>
<h2 v-text="$t('maintenance')"></h2>
... | 287 |
https://github.com/wangqj/go-chassis/blob/master/pkg/util/util_test.go | Github Open Source | Open Source | Apache-2.0 | 2,019 | go-chassis | wangqj | Go | Code | 113 | 488 | package util_test
import (
"github.com/go-chassis/go-chassis/pkg/util"
"github.com/stretchr/testify/assert"
"testing"
)
func TestParsePortName(t *testing.T) {
p, n, err := util.ParsePortName("http-admin")
assert.Equal(t, "http", p)
assert.Equal(t, "admin", n)
assert.NoError(t, err)
_, _, err = util.ParsePort... | 20,688 |
https://github.com/CloverHackyColor/CloverBootloader/blob/master/MdePkg/Include/Guid/HardwareErrorVariable.h | Github Open Source | Open Source | BSD-2-Clause | 2,023 | CloverBootloader | CloverHackyColor | C | Code | 55 | 219 | /** @file
GUID for hardware error record variables.
Copyright (c) 2007 - 2009, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
@par Revision Reference:
GUID defined in UEFI 2.1.
**/
#ifndef _HARDWARE_ERROR_VARIABLE_GUID_H_
#define _HARDWARE_ERROR_VARIABLE_GUID_H_
... | 30,185 |
https://github.com/joinrpg/joinrpg-ne/blob/master/src/JoinRpg.WebPortal.Models.Test/CustomFieldsViewModelTest.cs | Github Open Source | Open Source | MIT | 2,021 | joinrpg-ne | joinrpg | C# | Code | 488 | 2,137 | using JoinRpg.DataModel;
using JoinRpg.DataModel.Mocks;
using JoinRpg.Domain;
using JoinRpg.Web.Models;
using Shouldly;
using Xunit;
namespace JoinRpg.Web.Test
{
public class CustomFieldsViewModelTest
{
private static MockedProject Mock { get; } = new MockedProject();
[Fact]
public vo... | 41,246 |
https://github.com/hoseung2/ANT/blob/master/test/cpp/camera-client/ANTdbusInterface.cpp | Github Open Source | Open Source | Apache-2.0 | null | ANT | hoseung2 | C++ | Code | 674 | 3,004 | #include "ANTdbusInterface.h"
#include <string.h>
#include <stdio.h>
#include <dbus/dbus.h>
#include <dbus/dbus-glib-lowlevel.h>
#include <dbus/dbus-protocol.h>
#include <dbus/dbus-glib.h>
#include <string>
#include <unistd.h>
#include <sys/types.h>
#include <iostream>
#include <stdlib.h>
static void send_event_rec_s... | 11,625 |
https://github.com/phatboyg/Fooidity/blob/master/src/Fooidity.Management.Web/Models/AccountViewModels.cs | Github Open Source | Open Source | Apache-2.0 | 2,019 | Fooidity | phatboyg | C# | Code | 23 | 71 | namespace Fooidity.Management.Web.Models
{
using System.ComponentModel.DataAnnotations;
public class ExternalLoginConfirmationViewModel
{
[Required, EmailAddress, Display(Name = "Email")]
public string Email { get; set; }
}
} | 32,445 |
https://github.com/Dhii/di-abstract/blob/master/src/AssignDefinitionContainerCapableTrait.php | Github Open Source | Open Source | MIT | null | di-abstract | Dhii | PHP | Code | 238 | 533 | <?php
namespace Dhii\Di;
use Dhii\Invocation\Exception\InvocationExceptionInterface;
use Dhii\Exception\InternalExceptionInterface;
use InvalidArgumentException;
use Psr\Container\ContainerInterface as BaseContainerInterface;
use stdClass;
use Traversable;
/**
* Functionality for assigning a container for a service... | 12,691 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.