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/tony810430/ozone/blob/master/hadoop-hdds/common/src/main/java/org/apache/hadoop/hdds/scm/protocolPB/ContainerCommandResponseBuilders.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | ozone | tony810430 | Java | Code | 737 | 2,571 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | 1,473 |
https://github.com/DavisVaughan/rray2/blob/master/src/zzz-internal-vec-raw.h | Github Open Source | Open Source | MIT | null | rray2 | DavisVaughan | C | Code | 30 | 149 | #ifndef RRAY_INTERNAL_VEC_RAW_H
#define RRAY_INTERNAL_VEC_RAW_H
#include "zzz-internal-r.h"
#include "zzz-internal-type.h"
#include "zzz-internal-vec.h"
static inline sexp* r_new_raw(r_ssize length) {
return r_new_vec(r_type_raw, length);
}
static inline r_byte_t* r_raw_deref(sexp* x) {
return RAW(x);
}
#endi... | 26,529 |
https://github.com/haroldofurtado/backend-code-challenge/blob/master/spec/support/simplecov.rb | Github Open Source | Open Source | MIT | 2,019 | backend-code-challenge | haroldofurtado | Ruby | Code | 19 | 85 | if ENV['COVERAGE']
require 'simplecov'
SimpleCov.start 'rails' do
minimum_coverage 90
refuse_coverage_drop
add_filter do |source_file|
source_file.filename =~ %r{app/channels|lib/tasks}
end
end
end
| 18,186 |
https://github.com/modestman/tdlib-swift/blob/master/TdlibKit/Models/SearchInstalledStickerSets.swift | Github Open Source | Open Source | MIT | 2,022 | tdlib-swift | modestman | Swift | Code | 97 | 206 | //
// SearchInstalledStickerSets.swift
// tl2swift
//
// Created by Code Generator
//
import Foundation
/// Searches for installed sticker sets by looking for specified query in their title and name
public struct SearchInstalledStickerSets: Codable {
/// Pass true to return mask sticker sets; pass false to r... | 12,353 |
https://github.com/Upwinded/SHF/blob/master/shf-cpp/src/Image/IMP.h | Github Open Source | Open Source | Zlib | 2,022 | SHF | Upwinded | C | Code | 218 | 565 | #pragma once
#include <vector>
#include "../Types/Types.h"
#include "../File/File.h"
#include "../Engine/Engine.h"
#include "../File/PakFile.h"
class IMP
{
public:
IMP();
~IMP();
private:
static IMP imp;
static IMP * this_;
public:
static IMP * getInstance();
static unsigned int getIMPImageActionTime(IMPImage... | 20,850 |
https://github.com/okamumu/jspetrinet/blob/master/src/jspetrinet/petri/VizPrint.java | Github Open Source | Open Source | MIT | null | jspetrinet | okamumu | Java | Code | 551 | 1,826 | package jspetrinet.petri;
import java.io.PrintWriter;
import java.util.HashSet;
import java.util.LinkedList;
import java.util.List;
import java.util.Set;
import jspetrinet.ast.AST;
import jspetrinet.exception.JSPNException;
import jspetrinet.graph.Arc;
import jspetrinet.graph.Component;
import jspetrinet.graph.Visito... | 43,534 |
https://github.com/lucaskurata/Centro_Estudo/blob/master/src/classe/classe/Exercicio5.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | Centro_Estudo | lucaskurata | Java | Code | 111 | 258 | package classe;
/**
* 8. Crie uma classe ParImpar que contenha um método que imprima em tela a soma
* dos números pares de 0 a 30 e a multiplicação dos números ímpares de 0 a 30.
*/
public class Exercicio5 {
public static void somaParesMultiplicacaoImpares() {
long par = 0;
int impar = 0;
for (int i ... | 14,271 |
https://github.com/quabynah-bilson/coded-dating-platform/blob/master/application/mobile_app/ios/Runner/AppDelegate.swift | Github Open Source | Open Source | Apache-2.0 | 2,022 | coded-dating-platform | quabynah-bilson | Swift | Code | 75 | 315 | import UIKit
import Flutter
import GoogleMaps
@UIApplicationMain
@objc class AppDelegate: FlutterAppDelegate {
override func application(
_ application: UIApplication,
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
) -> Bool {
GMSServices.provideAPIKey("AIzaSyDiFkC3... | 28,888 |
https://github.com/trvrplk/ireland/blob/master/metric_fu.gemspec | Github Open Source | Open Source | MIT | 2,012 | ireland | trvrplk | Ruby | Code | 283 | 1,087 | # -*- coding: utf-8 -*-
lib = File.expand_path('../lib/', __FILE__)
$:.unshift lib unless $:.include?(lib)
Gem::Specification.new do |s|
s.name = "ireland"
s.platform = Gem::Platform::RUBY
s.version = "2.1.3.4"
s.summary = "A fistful of code metrics, with awesome templates and graphs"
s.ema... | 12,576 |
https://github.com/zyfjeff/juicefs/blob/master/pkg/object/upyun.go | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, Apache-2.0 | 2,023 | juicefs | zyfjeff | Go | Code | 486 | 1,425 | //go:build !noupyun
// +build !noupyun
/*
* JuiceFS, Copyright 2021 Juicedata, 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
... | 47,223 |
https://github.com/DotNetContrib/OpenLiveWriter/blob/master/src/managed/OpenLiveWriter.CoreServices/WebRequest/UrlDownloadToFile.cs | Github Open Source | Open Source | MIT | 2,020 | OpenLiveWriter | DotNetContrib | C# | Code | 1,826 | 4,998 | // Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for details.
using System;
using System.Net;
using System.Diagnostics;
using System.Globalization;
using System.Runtime.InteropServices;
using OpenLiveWriter.CoreServices.Progress;
using OpenL... | 303 |
https://github.com/ita-social-projects/SoftServeCar-Front-End/blob/master/Car/src/components/journey-new-applicant/route-view/RouteView.tsx | Github Open Source | Open Source | MIT | null | SoftServeCar-Front-End | ita-social-projects | TypeScript | Code | 78 | 302 | import React from "react";
import JourneyPoint from "../../../../models/journey/JourneyPoint";
import Stop from "../../../../models/stop/Stop";
import { LatLng } from "react-native-maps";
import NotificationProps from "../../notifications/NotificationProps";
import User from "../../../../models/user/User";
import Stops... | 6,815 |
https://github.com/pulibrary/dspace-jruby/blob/master/lib/dspace/core/metadata_schema.rb | Github Open Source | Open Source | MIT | null | dspace-jruby | pulibrary | Ruby | Code | 85 | 332 | # frozen_string_literal: true
module DSpace
module Core
##
# Class wrapper for org.dspace.content.MetadataSchema
# @see https://github.com/DSpace/DSpace/blob/dspace-5.3/dspace-api/src/main/java/org/dspace/content/MetadataSchema.java
class MetadataSchema
java_import(org.dspace.content.MetadataSc... | 14,206 |
https://github.com/pkucherov/PerpetuumServer/blob/master/src/Perpetuum/Zones/Terrains/AltitudeLayer.cs | Github Open Source | Open Source | MIT | 2,020 | PerpetuumServer | pkucherov | C# | Code | 84 | 280 | using System.Numerics;
namespace Perpetuum.Zones.Terrains
{
public interface IAltitudeLayer : ILayer<ushort>
{
}
public class AltitudeLayer : Layer<ushort>,IAltitudeLayer
{
public AltitudeLayer(ushort[] rawData, int width, int height) : base(LayerType.Altitude, rawData, width, hei... | 50,628 |
https://github.com/WabbitTwacks/arpeggiator/blob/master/ShiftRegisterIn.hpp | Github Open Source | Open Source | MIT | null | arpeggiator | WabbitTwacks | C++ | Code | 56 | 224 | #pragma once
#include <Arduino.h>
#include <stdint.h>
#define PULSE_USEC 5
class ShiftRegisterIn
{
public:
ShiftRegisterIn();
void init(uint8_t loadPin, uint8_t clockEnablePin, uint8_t dataPin, uint8_t clockPin, uint8_t numRegisters = 1);
void update();
uint8_t getInput(uint8_t input); //first in... | 56 |
https://github.com/Aonini/bigScreenPartOfThe/blob/master/js/warning.js | Github Open Source | Open Source | MIT | 2,019 | bigScreenPartOfThe | Aonini | JavaScript | Code | 654 | 3,191 | layui.use(['laydate', 'table', 'form', "layer"], function () {
var laydate = layui.laydate,
table = layui.table,
$ = layui.$,
layer = layui.layer,
form = layui.form;
var d = new Date();
var year = d.getFullYear();
var month = d.getMonth() + 1;
var date = d.getDate();
... | 51,254 |
https://github.com/DevOrc/wgpu-java/blob/master/native/jnrgen/src/main/java/com/noahcharlton/wgpuj/jnrgen/Item.java | Github Open Source | Open Source | MIT | 2,020 | wgpu-java | DevOrc | Java | Code | 20 | 73 | package com.noahcharlton.wgpuj.jnrgen;
import java.io.IOException;
public interface Item {
void save(OutputHandler outputHandler) throws IOException;
default void preSave(OutputHandler outputHandler){}
String getJavaTypeName();
}
| 32,639 |
https://github.com/FraMecca/Coccode/blob/master/src/Engine/blueprint/blueprint.cpp | Github Open Source | Open Source | BSD-3-Clause | null | Coccode | FraMecca | C++ | Code | 903 | 4,634 | /*
* ======================= blueprint.cpp =======================
* -- tpr --
* CREATE -- 2019.12.04
* MODIFY --
* ----------------------------------------------------------
*/
#include "blueprint.h"
#include ... | 18,740 |
https://github.com/bhathiya/andes/blob/master/modules/andes-core/common/src/test/java/org/wso2/andes/transport/network/TransportTest.java | Github Open Source | Open Source | Apache-2.0 | 2,018 | andes | bhathiya | Java | Code | 396 | 1,329 | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); y... | 29,038 |
https://github.com/SPhillips1979/expression/blob/master/system/ee/legacy/libraries/relationship_parser/Iterators.php | Github Open Source | Open Source | Apache-2.0 | 2,021 | expression | SPhillips1979 | PHP | Code | 325 | 810 | <?php
/**
* This source file is part of the open source project
* ExpressionEngine (https://expressionengine.com)
*
* @link https://expressionengine.com/
* @copyright Copyright (c) 2003-2020, Packet Tide, LLC (https://www.packettide.com)
* @license https://expressionengine.com/license Licensed under Apache... | 6,646 |
https://github.com/chenzeshenga/logistics-biu/blob/master/server/src/main/java/com/abc/dao/SysUserMapper.java | Github Open Source | Open Source | MIT | null | logistics-biu | chenzeshenga | Java | Code | 61 | 284 | package com.abc.dao;
import com.abc.entity.SysUser;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.plugins.pagination.Pagination;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
@Mapper
public interface SysUserMapper... | 34,715 |
https://github.com/EIDSS/EIDSS-Legacy/blob/master/EIDSS v6.1/Android/app/src/main/java/com/bv/eidss/web/RefSAXXMLHandler.java | Github Open Source | Open Source | BSD-2-Clause | 2,017 | EIDSS-Legacy | EIDSS | Java | Code | 646 | 3,519 | package com.bv.eidss.web;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteStatement;
import com.bv.eidss.DeploymentCountry;
import com.bv.eidss.data.EidssDatabase;
import com.bv.eidss.model.Options;
import com.bv.eidss.utils.DateHelpers;
import org.xml.sax.Attributes;
import org.x... | 8,104 |
https://github.com/wuchunfu/lakego-admin/blob/master/pkg/lakego-app/doak-admin/admin/repository/authrule/authrule.go | Github Open Source | Open Source | Apache-2.0 | null | lakego-admin | wuchunfu | Go | Code | 243 | 842 | package authrule
import (
"github.com/deatil/go-tree/tree"
"github.com/deatil/lakego-doak/lakego/collection"
"github.com/deatil/lakego-doak-admin/admin/model"
)
// 全部权限
func GetAllRule() []map[string]any {
list := make([]map[string]any, 0)
// 附件模型
err := model.NewAuthRule().
Select([... | 1,430 |
https://github.com/swc-project/swc/blob/master/crates/swc_ecma_codegen/tests/test262/17d63bb0b9482189.js | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, Apache-2.0 | 2,023 | swc | swc-project | JavaScript | Code | 5 | 10 | var a = "very cute";
| 41,502 |
https://github.com/OSADP/archive/blob/master/IDTO-master/IDTO Mobile Applicaion Xamarin/IDTO.iPhone/IDTO.iPhone/ViewControllers/HomeViewController.designer.cs | Github Open Source | Open Source | Apache-2.0 | 2,019 | archive | OSADP | C# | Code | 352 | 1,313 | // WARNING
//
// This file has been generated automatically by Xamarin Studio to store outlets and
// actions made in the UI designer. If it is removed, they will be lost.
// Manual changes to this file may not be handled correctly.
//
using MonoTouch.Foundation;
using System.CodeDom.Compiler;
namespace IDTO.iPhone
{
... | 24,417 |
https://github.com/lwh31415/WeChatTimeLineRobot/blob/master/OutPutHeaders/WCPayMoneyFromInnerPayLogic.h | Github Open Source | Open Source | MIT | 2,019 | WeChatTimeLineRobot | lwh31415 | Objective-C | Code | 90 | 498 | /**
* This header is generated by class-dump-z 0.2a.
* class-dump-z is Copyright (C) 2009 by KennyTM~, licensed under GPLv3.
*
* Source: (null)
*/
#import "WCPayPayMoneyLogicDelegate.h"
#import "WCBaseControlMgrExt.h"
#import "WCPayControlLogic.h"
@class NSString, WCPayPayMoneyLogic, WCPayInnerPayRequestStruct;
... | 25,508 |
https://github.com/tomasvosylius/southland/blob/master/gamemodes/modules/server/furniture/core.pwn | Github Open Source | Open Source | Apache-2.0 | 2,022 | southland | tomasvosylius | null | Spoken | 575 | 2,642 | #include <YSI_Coding\y_hooks>
#define MAX_FURNITURE_PER_PAGE 100
#define MAX_HOUSE_FURNITURE 500
#define MAX_BUSINESS_FURNITURE 500
#define MAX_GARAGE_FURNITURE 500
/* Furniture types */
enum E_FURNITURE_PLACE_TYPE
{
furniturePlace_Inside = 1,
furniturePlace_Outside,
};
/* Furniture dat... | 6,814 |
https://github.com/mrdranias/wyze-sdk/blob/master/wyze_sdk/service/base.py | Github Open Source | Open Source | Unlicense | null | wyze-sdk | mrdranias | Python | Code | 1,242 | 4,053 | from __future__ import annotations
import logging
import platform
import sys
import time
import uuid
from abc import ABCMeta
from contextlib import suppress
from json import dumps
from typing import Dict, Optional, Union
from urllib.parse import urljoin
import requests
from wyze_sdk import version
from wyze_sdk.erro... | 37,878 |
https://github.com/GsDevKit/gsApplicationTools/blob/master/repository/GsApplicationTools-Server.package/GemServer.class/class/serverClass.st | Github Open Source | Open Source | MIT | 2,020 | gsApplicationTools | GsDevKit | null | Spoken | 4 | 14 | accessing
serverClass
self subclassResponsibility | 25,892 |
https://github.com/FelixPe/shacl-js/blob/master/src/rdflib-graph.js | Github Open Source | Open Source | Apache-2.0 | null | shacl-js | FelixPe | JavaScript | Code | 477 | 1,487 | var $rdf = require("rdflib");
var RDFQuery = require("./rdfquery");
var T = RDFQuery.T;
var errorHandler = function(e){
require("debug")("rdflib-graph::error")(e);
throw(e);
};
// Monkey Patching rdflib, Literals, BlankNodes and NamedNodes
var exLiteral = $rdf.literal("a", "de");
Object.defineProperty(Object.... | 20,141 |
https://github.com/arangodb/kube-arangodb/blob/master/cmd/lifecycle_probes.go | Github Open Source | Open Source | Apache-2.0 | 2,023 | kube-arangodb | arangodb | Go | Code | 811 | 2,746 | //
// DISCLAIMER
//
// Copyright 2016-2022 ArangoDB GmbH, Cologne, Germany
//
// 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 re... | 25,218 |
https://github.com/MB512/EDI.Net/blob/master/src/indice.Edi/EdiStructureType.cs | Github Open Source | Open Source | MIT | null | EDI.Net | MB512 | C# | Code | 40 | 103 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace indice.Edi
{
public enum EdiStructureType
{
None = 0,
Interchange = 1,
Group = 2,
Message = 3,
SegmentGroup = 4,
Segment = 5,
El... | 5,537 |
https://github.com/yy-emgla/ui/blob/master/examples/views/switch.vue | Github Open Source | Open Source | MIT | null | ui | yy-emgla | Vue | Code | 56 | 278 | <template>
<ui-group>
<ui-cell @click.native="clickCell" :title="`基本使用${open1}`">
<ui-switch v-model="open1" @on-change="change"
:preventDefault=true :valueMap="valueMap"></ui-switch>
</ui-cell>
<ui-cell title="禁用">
<ui-switch v-model="open2" disabled></ui-switch>
</ui-cel... | 3,637 |
https://github.com/Loptt/java-space-invaders/blob/master/SpaceInvaders/src/spaceinvaders/NetworkManager.java | Github Open Source | Open Source | MIT | 2,019 | java-space-invaders | Loptt | Java | Code | 295 | 837 | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package spaceinvaders;
import java.net.DatagramPacket;
import java.net.DatagramSocket;
import java.net.InetAddress;
import java.net.So... | 7,825 |
https://github.com/jaeko44/nilavu/blob/master/app/assets/javascripts/nilavu/controllers/topic.js.es6 | Github Open Source | Open Source | MIT | 2,021 | nilavu | jaeko44 | JavaScript | Code | 581 | 2,767 | import BufferedContent from 'nilavu/mixins/buffered-content';
import {spinnerHTML} from 'nilavu/helpers/loading-spinner';
import Topic from 'nilavu/models/topic';
import {popupAjaxError} from 'nilavu/lib/ajax-error';
import computed from 'ember-addons/ember-computed-decorators';
import NilavuURL from 'nilavu/lib/url';
... | 18,154 |
https://github.com/alanwei43/pm2-auto-update/blob/master/scripts/publish.sh | Github Open Source | Open Source | MIT | null | pm2-auto-update | alanwei43 | Shell | Code | 20 | 124 | # docker login docker.pkg.github.com --username alanwei43
docker tag node-auto-update:$1 docker.pkg.github.com/alanwei43/node-auto-update/docker:$1
docker push docker.pkg.github.com/alanwei43/node-auto-update/docker:$1
docker tag node-auto-update:$1 alanway/node-auto-update:$1
docker push alanway/node-auto-update:$1 | 5,433 |
https://github.com/AvivShabtay/OffensiveWinAPI/blob/master/ScanMemory/MemoryInformationIterator.cpp | Github Open Source | Open Source | MIT, LicenseRef-scancode-warranty-disclaimer | 2,021 | OffensiveWinAPI | AvivShabtay | C++ | Code | 113 | 492 | #include "MemoryInformationIterator.h"
#include "../Common/Win32ErrorCodeException.h"
MemoryInformationIterator::MemoryInformationIterator(DWORD processPid)
: m_memoryBasicInformation{ 0 }, m_memoryAddress(nullptr), m_noMoreMemory(false)
{
this->m_process.reset(OpenProcess(PROCESS_QUERY_INFORMATION, FALSE, processPi... | 26,747 |
https://github.com/EARP0808/effective-robot/blob/master/Proyecto/FinanciaEstudiantes/Business/Implementation/GastoService.cs | Github Open Source | Open Source | MIT | 2,019 | effective-robot | EARP0808 | C# | Code | 67 | 200 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Entity;
namespace Business.Implementation
{
public class GastoService : IIGastoService
{
public bool Delete(int? id)
{
throw new NotImplementedException();
... | 5,287 |
https://github.com/isabella232/geode-native/blob/master/cppcache/src/Utils.hpp | Github Open Source | Open Source | Apache-2.0 | null | geode-native | isabella232 | C++ | Code | 728 | 1,924 | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | 10,216 |
https://github.com/ShogoGamesStudios/WizBot-Updated/blob/master/WizBot/Modules/Administration/Commands/VoiceNotificationCommand.cs | Github Open Source | Open Source | MIT | 2,016 | WizBot-Updated | ShogoGamesStudios | C# | Code | 113 | 426 | using Discord;
using Discord.Commands;
using WizBot.Classes;
using System;
using System.Collections.Concurrent;
using System.Linq;
using System.Threading.Tasks;
namespace WizBot.Modules.Administration.Commands
{
internal class VoiceNotificationCommand : DiscordCommand
{
//voicechannel/text channel
... | 51,211 |
https://github.com/shadowlansec/project-fantastic/blob/master/dev-test/fantastic-cli/updateempty.js | Github Open Source | Open Source | Apache-2.0 | 2,022 | project-fantastic | shadowlansec | JavaScript | Code | 24 | 76 | const update = require('fantastic-cli/update')
const FS = require('fs-extra')
const run = async () => {
await FS.emptyDir('test')
process.chdir('test')
await update('@next').catch(err => console.error(err))
}
run() | 47,503 |
https://github.com/wilkyit/EUCMonitoring/blob/master/PSGallery/Private/Test-SQL.ps1 | Github Open Source | Open Source | Apache-2.0 | null | EUCMonitoring | wilkyit | PowerShell | Code | 499 | 1,107 | function Test-SQL {
<#
.SYNOPSIS
Tests SQL Server Functionailty.
.DESCRIPTION
Tests SQL Servers Functionailty..
Currently Testing
SQL Server Availability
SQL Port Connectivity
All Services passed into the module
.PARAMETER SQLServers
Comma Delimited List of Domai... | 7,653 |
https://github.com/ThePhD/embed/blob/master/examples/wip/shader/parse.cpp | Github Open Source | Open Source | CC0-1.0 | 2,022 | embed | ThePhD | C++ | Code | 101 | 466 | #depend "assets/shaders/*"
#include <iostream>
int main() {
static constexpr std::string_view vx_shader_main_file = "assets/shaders/nymph.vxglsl";
static constexpr std::string_view px_shader_main_file = "assets/shaders/nymph.pxglsl";
static constexpr std::span<const char> vx_shader_main =
phd::embed<cha... | 28,830 |
https://github.com/Firewayer/Weibo_MaterialDesign-Recently/blob/master/weibo-android-sdk-demo/src/main/java/com/sina/weibo/sdk/demo/sample/activity/SendStatusActivity.java | Github Open Source | Open Source | Apache-2.0 | 2,016 | Weibo_MaterialDesign-Recently | Firewayer | Java | Code | 126 | 622 | package com.sina.weibo.sdk.demo.sample.activity;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.EditText;
import com.sina.weibo.sdk.auth.Oauth2AccessToken;
imp... | 34,729 |
https://github.com/Matthelonianxl/deltacloud-core/blob/master/client/tests/methods/blob_test.rb | Github Open Source | Open Source | Apache-2.0 | 2,018 | deltacloud-core | Matthelonianxl | Ruby | Code | 240 | 759 | # Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership. The
# ASF licenses this file to you under the Apache License, Version 2.0 (the
# "License"); you may not use... | 1,237 |
https://github.com/endor/kanso/blob/master/lib/repository.js | Github Open Source | Open Source | Apache-2.0 | 2,012 | kanso | endor | JavaScript | Code | 1,496 | 4,237 | var couchdb = require('./couchdb'),
settings = require('./settings'),
cache = require('./cache'),
utils = require('./utils'),
logger = require('./logger'),
semver = require('semver'),
mime = require('mime'),
async = require('async'),
http = require('http'),
https = require('https'),
... | 35,745 |
https://github.com/sivaraj-v/ReactJS_StarterKit/blob/master/routes/speakerRoutes.js | Github Open Source | Open Source | MIT | 2,017 | ReactJS_StarterKit | sivaraj-v | JavaScript | Code | 21 | 67 |
module.exports = app => {
app.get("/api/speakers", async (req, res) => {
const speakerList = {
Name:"XYZ",
Domain:"Web"
}
res.send(speakerList);
})
} | 2,146 |
https://github.com/zkip/rollup-plugin-resolve/blob/master/test/fixtures/combine/es6/find_with_base.js | Github Open Source | Open Source | MIT | 2,021 | rollup-plugin-resolve | zkip | JavaScript | Code | 8 | 16 | export { default as answer } from "@/lib_es6";
| 28,518 |
https://github.com/sibirrer/AstroObjectAnalyser/blob/master/test/test_data_manager.py | Github Open Source | Open Source | MIT | 2,020 | AstroObjectAnalyser | sibirrer | Python | Code | 138 | 671 |
"""
Tests for `lenstronomy` module.
"""
from __future__ import print_function, division, absolute_import
import os
import pytest
from astroObjectAnalyser.data_collection.data_manager import DataManager
class TestDataManager(object):
def setup(self):
# prepare unit test. Load data etc
print(... | 5,229 |
https://github.com/wjx600/mejs/blob/master/src/lib/temp.js | Github Open Source | Open Source | MIT | 2,020 | mejs | wjx600 | JavaScript | Code | 688 | 3,216 | var basicLibrary = (function(){
document.body.addEventListener('touchstart', function (){},false);
/*
验证用户名
*/
function checkUser(str,callback){
var re = /^[a-zA-z]\w{3,15}$/;
if(re.test(str)){
callback && callback(true);
}else{
callback && callback(false,'用户名输入错误,请重新输入');
}
}
... | 53,042 |
https://github.com/OLIMEX/DIY-LAPTOP/blob/master/SOFTWARE/A64-TERES/linux-a64/arch/arm/mach-s5p64x0/include/mach/debug-macro.S | Github Open Source | Open Source | Linux-syscall-note, GPL-2.0-only, GPL-1.0-or-later, LicenseRef-scancode-free-unknown, Apache-2.0 | 2,023 | DIY-LAPTOP | OLIMEX | Unix Assembly | Code | 122 | 404 | /* linux/arch/arm/mach-s5p64x0/include/mach/debug-macro.S
*
* Copyright (c) 2009-2010 Samsung Electronics Co., Ltd.
* http://www.samsung.com
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Softwa... | 46,256 |
https://github.com/auusi9/Unity3D.Amqp/blob/master/lib/rabbitmq-dotnet-client-rabbitmq_v3_4_4/Backup/projects/examples/wcf/Test/OneWayTest/OneWayTest.cs | Github Open Source | Open Source | MIT, LicenseRef-scancode-unknown-license-reference, Apache-2.0, LicenseRef-scancode-proprietary-license, MPL-1.1, MPL-1.0 | 2,020 | Unity3D.Amqp | auusi9 | C# | Code | 405 | 1,183 | // This source code is dual-licensed under the Apache License, version
// 2.0, and the Mozilla Public License, version 1.1.
//
// The APL v2.0:
//
//---------------------------------------------------------------------------
// Copyright (C) 2007-2014 GoPivotal, Inc.
//
// Licensed under the Apache License, Version... | 3,033 |
https://github.com/1ovve1/gar-address-verification-api/blob/master/web/Exceptions/Checked/ChainNotFoundException.php | Github Open Source | Open Source | MIT | 2,022 | gar-address-verification-api | 1ovve1 | PHP | Code | 26 | 80 | <?php declare(strict_types=1);
namespace GAR\Exceptions\Checked;
use Exception;
class ChainNotFoundException extends Exception
{
const MESSAGE = 'Chain was not found';
public function __construct()
{
parent::__construct(self::MESSAGE, 2);
}
} | 47,486 |
https://github.com/svalgaard/macports-ports/blob/master/editors/emacs22/files/patch-Makefile.in.diff | Github Open Source | Open Source | BSD-3-Clause | 2,019 | macports-ports | svalgaard | null | Spoken | 205 | 568 | --- Makefile.in.orig 2008-08-11 18:46:00.000000000 +0100
+++ Makefile.in 2008-08-11 18:48:32.000000000 +0100
@@ -438,7 +438,6 @@
(cd $${dir}; tar -chf - . ) \
| (cd $${dest}; umask 022; \
tar -xvf - && cat > /dev/null) || exit 1; \
- find $${dest} -exec chown $${LOGNAME:-$$USERNAME}... | 31,492 |
https://github.com/AVBelyy/concrete-java/blob/master/sql/src/test/java/edu/jhu/hlt/concrete/sql/SQLiteImplTest.xtend | Github Open Source | Open Source | FSFAP | 2,019 | concrete-java | AVBelyy | null | Spoken | 177 | 648 | package edu.jhu.hlt.concrete.sql
import edu.jhu.hlt.concrete.random.RandomConcreteFactory
import java.nio.file.Files
import java.nio.file.Path
import org.junit.After
import org.junit.Before
import org.junit.Rule
import org.junit.Test
import org.junit.rules.TemporaryFolder
import org.slf4j.Logger
import org.slf4j.Logge... | 19,721 |
https://github.com/BigTows/Hospital/blob/master/server/application/template/util/header.tpl | Github Open Source | Open Source | BSD-3-Clause | 2,017 | Hospital | BigTows | null | Spoken | 47 | 230 | <nav>
<div class="nav-wrapper green lighten-1">
<ul class="left ">
{foreach item=page key=key from=$data.header}
{if $key == $data.page}
<li class="active"><a href="{$page[1]}">{$page[0]}</a></li>
{else}
<li ><a href="{$page... | 12,038 |
https://github.com/colbyford/parEBEN/blob/master/man/parEBEN-package.Rd | Github Open Source | Open Source | Apache-2.0 | 2,022 | parEBEN | colbyford | R | Code | 336 | 758 | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/parEBEN.R
\docType{package}
\name{parEBEN-package}
\alias{parEBEN-package}
\alias{parEBEN}
\title{Parallel Implementations of the Empirical Bayesian Elastic Net Cross-Validation}
\description{
The parEBEN package provides parallelized cross-v... | 51,034 |
https://github.com/Magolves/sedona2cpp/blob/master/Sedona/src/main/java/sedonac/ast/IncludeDef.java | Github Open Source | Open Source | AFL-3.0 | 2,021 | sedona2cpp | Magolves | Java | Code | 125 | 262 | //
// Copyright (c) 2007 Tridium, Inc.
// Licensed under the Academic Free License version 3.0
//
// History:
// 15 Dec 08 Matthew Giannini Creation
//
package sedonac.ast;
import java.util.*;
import sedona.*;
import sedonac.*;
import sedonac.ir.*;
/**
* IncludeDef models a set of type includes from a particular ... | 6,354 |
https://github.com/erfun/newsysinfo/blob/master/go.mod | Github Open Source | Open Source | MIT | 2,021 | newsysinfo | erfun | Go Module | Code | 4 | 20 | module github.com/erfun/newsysinfo
go 1.13
| 34,150 |
https://github.com/ibm-bluemix-mobile-services/bms-clientsdk-android-core/blob/master/lib/src/main/java/com/ibm/mobilefirstplatform/clientsdk/android/security/mca/internal/challengehandlers/ChallengeHandler.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | bms-clientsdk-android-core | ibm-bluemix-mobile-services | Java | Code | 319 | 966 | /*
* Copyright 2015 IBM Corp.
* 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 a... | 24,315 |
https://github.com/Certica-StateSolutions/dataflow/blob/master/DataFlow.EdFi/Sdk/IdentitiesApi.cs | Github Open Source | Open Source | Apache-2.0 | 2,018 | dataflow | Certica-StateSolutions | C# | Code | 782 | 2,072 | using System;
using System.Collections.Generic;
using System.Linq;
using RestSharp;
namespace DataFlow.EdFi.Sdk
{
public class IdentitiesApi
{
private readonly IRestClient client;
public IdentitiesApi(IRestClient client)
{
this.client = client;
}
///... | 2,468 |
https://github.com/xxoolm/GM_script/blob/master/jslib/MVVM.js | Github Open Source | Open Source | MIT, GPL-3.0-only | 2,023 | GM_script | xxoolm | JavaScript | Code | 909 | 4,428 | // ==UserScript==
// @name ACModel
// @description 一个模拟Vue的简单MVVM库,使用的defineProperty实现
// @namespace acdiao.com
// @version 1.2
// @include *
// @copyright 2020, AC
// @note 2020.07.18-V1.2 用不来proxy,转回原来的defineProperty
// @note 2020.07.17-V1.1 修复v-bind语句,... | 14,429 |
https://github.com/tzhaojustdoit/Trajectory-Planning-for-Highway/blob/master/HighwayTrajectoryPlannerStatic/an_static_planner/src/OpenList.cpp | Github Open Source | Open Source | MIT | 2,022 | Trajectory-Planning-for-Highway | tzhaojustdoit | C++ | Code | 206 | 628 | #include "lib/OpenList.h"
OpenList::OpenList(int capacity)
{
vec_.reserve(capacity);
}
void OpenList::push(Node *n)
{
vec_.push_back(n);
perculate_up(vec_.size() - 1);
}
Node *OpenList::pop()
{
Node *res = vec_.front();
std::swap(vec_.front(), vec_.back());
vec_.pop_back();
perculate_down(0);
return res;
}
... | 9,894 |
https://github.com/DavidFune/TrabalhoPraticoWeb/blob/master/moderadorWeb/app/Http/Controllers/PacoteController.php | Github Open Source | Open Source | MIT | 2,020 | TrabalhoPraticoWeb | DavidFune | PHP | Code | 203 | 825 | <?php
namespace App\Http\Controllers;
use App\Services\PacoteService;
use Illuminate\Http\Request;
use Symfony\Component\HttpFoundation\Response;
class PacoteController extends Controller{
private $pacoteService;
public function __construct(){
$this->pacoteService = new PacoteService();
}
//###... | 52,699 |
https://github.com/unidevop/sjtu-project-pipe/blob/master/ sjtu-project-pipe/thirdparties/VTK.Net/src/GUISupport/CMakeLists.txt | Github Open Source | Open Source | BSD-3-Clause | 2,012 | sjtu-project-pipe | unidevop | CMake | Code | 57 | 302 |
# Determine Qt GUI.
IF(APPLE)
# must use Carbon on the Mac to interface with Qt
VTK_DEPENDENT_OPTION(VTK_USE_QVTK "Build QVTK widget and plugin for Qt" OFF
"VTK_USE_GUISUPPORT;VTK_USE_RENDERING;VTK_USE_CARBON" OFF)
ELSE(APPLE)
VTK_DEPENDENT_OPTION(VTK_USE_QVTK "Build QVTK widget and plug... | 10,355 |
https://github.com/way2016/CarJFramework/blob/master/CarJFramework/MainViewController.swift | Github Open Source | Open Source | MIT | null | CarJFramework | way2016 | Swift | Code | 129 | 334 | //
// MainViewController.swift
// CarJ
//
// Created by ChuanWei Lai on 2016/9/18.
// Copyright © 2016年 iii.org.tw. All rights reserved.
//
import UIKit
import GoogleMaps
//import BetterBaseClasses
class MainViewController: UIViewController {
@IBOutlet weak var mapView: GMSMapView!
override func viewDidL... | 16,016 |
https://github.com/EngrRezCab/freebsd-doc/blob/master/website/static/security/patches/SA-09:15/ssl.patch | Github Open Source | Open Source | BSD-2-Clause | 2,021 | freebsd-doc | EngrRezCab | null | Spoken | 204 | 815 | Index: crypto/openssl/ssl/s3_pkt.c
===================================================================
--- crypto/openssl/ssl/s3_pkt.c (revision 199950)
+++ crypto/openssl/ssl/s3_pkt.c (working copy)
@@ -983,9 +983,7 @@
if (s->msg_callback)
s->msg_callback(0, s->version, SSL3_RT_HANDSHAKE, s->s3->handshake_fragm... | 45,122 |
https://github.com/mchiasson/PhaserNative/blob/master/3rdparty/webkit/Source/WebCore/svg/SVGFETileElement.cpp | Github Open Source | Open Source | MIT | 2,020 | PhaserNative | mchiasson | C++ | Code | 267 | 812 | /*
* Copyright (C) 2004, 2005, 2007 Nikolas Zimmermann <zimmermann@kde.org>
* Copyright (C) 2004, 2005 Rob Buis <buis@kde.org>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; eit... | 22,396 |
https://github.com/Fappp/Gamejolt/blob/master/src/checkout/views/checkout/checkout-controller.ts | Github Open Source | Open Source | MIT | null | Gamejolt | Fappp | TypeScript | Code | 186 | 512 | import { Injectable, Inject } from 'ng-metadata/core';
import { App } from './../../app-service';
@Injectable()
export class CheckoutCtrl
{
cards: any[];
sellable: any;
order: any;
game: any;
constructor(
@Inject( '$window' ) private $window: ng.IWindowService,
@Inject( 'App' ) app: App,
@Inject( 'Environm... | 15,925 |
https://github.com/Maxcutex/pm_api/blob/master/factories/user_project_factory.py | Github Open Source | Open Source | MIT | null | pm_api | Maxcutex | Python | Code | 142 | 591 | import factory
from faker import Faker
from faker.providers import internet, company, job, date_time, lorem
from app.models import UserProject, UserProjectSkill
from app.utils import db
from factories.skill_category_factory import SkillFactory
from factories.user_factory import UserFactory
fake = Faker()
fake.add_pro... | 43,603 |
https://github.com/PlayYorkshire/play-yorkshire/blob/master/plugins/jakefeeley/playyorkshire/updates/builder_table_create_jakefeeley_playyorkshire_play_stay.php | Github Open Source | Open Source | MIT | null | play-yorkshire | PlayYorkshire | PHP | Code | 47 | 361 | <?php namespace JakeFeeley\PlayYorkshire\Updates;
use Schema;
use October\Rain\Database\Updates\Migration;
class BuilderTableCreateJakefeeleyPlayyorkshirePlayStay extends Migration
{
public function up()
{
Schema::create('jakefeeley_playyorkshire_play_stay', function($table)
{
$tab... | 13,911 |
https://github.com/MaggieNgWu/Governance-Key/blob/master/key-mgr/src/main/java/com/webank/keymgr/config/ecc/SM2RelatedBeans.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | Governance-Key | MaggieNgWu | Java | Code | 58 | 331 | package com.webank.keymgr.config.ecc;
import com.webank.keygen.face.PrivateKeyCreator;
import com.webank.keygen.key.KeyComputeAlgorithm;
import com.webank.keygen.key.impl.Sm2KeyAlgorithm;
import com.webank.keygen.service.PkeySM2ByRandomService;
import com.webank.keymgr.exception.KeyMgrException;
import com.webank.keys... | 35,154 |
https://github.com/eivinf/CarveSharp/blob/master/CarveLibWrapper/include/carve/face_decl.hpp | Github Open Source | Open Source | MIT | 2,021 | CarveSharp | eivinf | C++ | Code | 641 | 2,131 | // Begin License:
// Copyright (C) 2006-2014 Tobias Sargeant (tobias.sargeant@gmail.com).
// All rights reserved.
//
// This file is part of the Carve CSG Library (http://carve-csg.com/)
//
// This file may be used under the terms of either the GNU General
// Public License version 2 or 3 (at your option) as published ... | 41,348 |
https://github.com/bigkitttty/cstore/blob/master/template-parts/content-page.php | Github Open Source | Open Source | Apache-2.0 | 2,021 | cstore | bigkitttty | PHP | Code | 65 | 277 | <div id="post-<?php the_ID(); ?>" <?php post_class("col-md-12 bgs-page bgs-post-page"); ?>>
<?php if(has_post_thumbnail()): ?>
<div class="img-thumbnail">
<?php the_post_thumbnail('storeone-blog', array( 'class' => 'img-responsive' )); ?>
</div>
<?php endif; ?>
<div class="bgs-page-content">
<?php the_title( '... | 4,996 |
https://github.com/TobiasSchaffner/marten/blob/master/src/Marten/Internal/Linq/Includes/IIncludePlan.cs | Github Open Source | Open Source | MIT | null | marten | TobiasSchaffner | C# | Code | 39 | 93 | namespace Marten.Internal.Linq.Includes
{
public interface IIncludePlan
{
IIncludeReader BuildReader(IMartenSession session);
// TODO -- something to break up the Statements
string IdAlias { get; }
string TempSelector { get; }
int Index { set; }
Statement BuildSt... | 28,448 |
https://github.com/PacktPublishing/React-and-React-Native-Second-Edition/blob/master/Chapter15/route-parameters/App.js | Github Open Source | Open Source | MIT | 2,022 | React-and-React-Native-Second-Edition | PacktPublishing | JavaScript | Code | 55 | 138 | import {
createBottomTabNavigator,
createDrawerNavigator
} from 'react-navigation';
import { Platform } from 'react-native';
import Home from './Home';
import News from './News';
import Settings from './Settings';
const { createNavigator } = Platform.select({
ios: { createNavigator: createBottomTabNavigator },
android:... | 42,715 |
https://github.com/yazonnile/svelidation/blob/master/test/e2e/tests/type-base/type-base.svelte | Github Open Source | Open Source | MIT | 2,020 | svelidation | yazonnile | null | Spoken | 97 | 321 | <script>
import { getValidation, Form, Slide, Entry } from 'helpers/helpers';
const getConfig = (params) => {
return { entries: [{ type: 'string', ...params }] }
};
const {
entries: [optionalEntry],
createForm: optionalCreateForm
} = getValidation(getConfig({ min: 2 }));
const {
entries: ... | 8,448 |
https://github.com/mennowo/TLCGen/blob/master/TLCGen/Views/Tabs/PrioriteitsTab/DataTypes/PrioIngreepView.xaml.cs | Github Open Source | Open Source | MIT | 2,023 | TLCGen | mennowo | C# | Code | 28 | 89 | using System.Windows.Controls;
namespace TLCGen.Views
{
/// <summary>
/// Interaction logic for OVIngreepView.xaml
/// </summary>
public partial class PrioIngreepView : UserControl
{
public PrioIngreepView()
{
InitializeComponent();
}
}
}
| 39,303 |
https://github.com/fponticelli/thx.core/blob/master/test/thx/TestLocalMonthDay.hx | Github Open Source | Open Source | MIT | 2,023 | thx.core | fponticelli | Haxe | Code | 661 | 3,154 | package thx;
import haxe.PosInfos;
import utest.Assert;
import thx.Either;
import thx.Weekday;
using thx.Eithers;
using thx.Arrays;
class TestLocalMonthDay extends utest.Test {
var first = LocalMonthDay.create(1, 1);
var last = LocalMonthDay.create(12, 31);
var feb28th = LocalMonthDay.create(2, 28);
var feb29th ... | 20,543 |
https://github.com/nguyenkhanhgithub/qlns/blob/master/resources/views/Thuvien/Docsach/ajaxNoidung.blade.php | Github Open Source | Open Source | MIT | null | qlns | nguyenkhanhgithub | PHP | Code | 14 | 89 | @foreach ($doctruyen as $dc)
<center>
<h2>Chương {{$dc->Chuong}}: </h2>
</center>
{!!$dc->Noidung!!}
@endforeach
<center>
{!!$doctruyen->appends(Request::except('page'))->render()!!}
</center>
| 11,523 |
https://github.com/dangenendt/logcrawler-client/blob/master/src/spresnac/logcrawlerclient/Config/logcrawler.php | Github Open Source | Open Source | MIT | null | logcrawler-client | dangenendt | PHP | Code | 10 | 50 | <?php
return [
'key' => env('LOG_CRAWLER_KEY'),
'url' => 'https://logcrawler.techcrawler.de',
];
| 22,228 |
https://github.com/kingstonlabs/django-lanthanum/blob/master/lanthanum/tests/settings/default.py | Github Open Source | Open Source | BSD-3-Clause | null | django-lanthanum | kingstonlabs | Python | Code | 46 | 241 | import os
# Database
SECRET_KEY = 'SECRET'
DATABASES = {
"default": {
"ENGINE": "django.db.backends.postgresql",
"NAME": os.environ.get("DATABASE_NAME", "lanthanum-test"),
"USER": os.environ.get("DATABASE_USER"),
"PASSWORD": os.environ.get("DATABASE_PASSWORD", ""),
"HOST":... | 18,272 |
https://github.com/Vreyesm/Scheduler/blob/master/Client/src/app/modules/requests/requests-landing/requests-landing.component.scss | Github Open Source | Open Source | MIT | null | Scheduler | Vreyesm | SCSS | Code | 12 | 71 | .cdk-column-classroom,
.cdk-column-date,
.cdk-column-options,
.cdk-column-comment,
.cdk-column-available,
.mat-header-cell {
display: flex;
justify-content: center;
}
| 28,671 |
https://github.com/MapSurferNET/MapSurfer.NET-CartoCSS/blob/master/src/dotless/src/dotless.Core/Parser/Tokenizer.cs | Github Open Source | Open Source | Apache-2.0 | 2,021 | MapSurfer.NET-CartoCSS | MapSurferNET | C# | Code | 1,529 | 4,280 | using System.Diagnostics;
namespace dotless.Core.Parser
{
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using Exceptions;
using Infrastructure.Nodes;
using Utils;
using System;
[DebuggerDisplay("{Remaining}")]
public class Tokenizer... | 21,495 |
https://github.com/jtlai0921/idev365_learn_javascript/blob/master/JS-P02-Lesson1-30/Lesson21/demo09.js | Github Open Source | Open Source | MIT | 2,021 | idev365_learn_javascript | jtlai0921 | JavaScript | Code | 32 | 87 | var a = ['a', 'b', 'c', 'd', 'a', 'b'];
console.log(a.lastIndexOf('b')); // logs 5
// Now try again, starting from before the last match
console.log(a.lastIndexOf('b', 4)); // logs 1
console.log(a.lastIndexOf('z')); // logs -1
| 19,456 |
https://github.com/joymon/dotnet-demos/blob/master/web/http-caching/http-caching/HttpResponseCacheHeaderHandler.cs | Github Open Source | Open Source | Apache-2.0 | null | dotnet-demos | joymon | C# | Code | 153 | 696 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Threading.Tasks;
namespace CurrentUserTests
{
class HttpResponseCacheHeaderHandler
{
internal static async Task SetHttpCacheHeaders(HttpResponseMessag... | 39,044 |
https://github.com/hyandell/ion-c/blob/master/ionc/ion_internal.h | Github Open Source | Open Source | Apache-2.0 | null | ion-c | hyandell | C | Code | 1,776 | 5,115 | /*
* Copyright 2008-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at:
*
* http://aws.amazon.com/apache2.0/
*
* or in the ... | 38,408 |
https://github.com/cqframework/clinical_quality_language/blob/master/Documents/Scratch/Scratchpad2.cql | Github Open Source | Open Source | Apache-2.0, CC-BY-4.0 | 2,023 | clinical_quality_language | cqframework | SQL | Code | 236 | 508 | //* CQL Updates
// Difference Between/Duration Between
define DurationBetweenExpression: days between DateTime(2014, 1, 1) and DateTime(2014, 12, 31)
define DifferenceBetweenExpression: difference in days between DateTime(2014, 1, 1) and DateTime(2014, 12, 31)
// Translation of Timing Phrases
// Removed IfNull operat... | 52,968 |
https://github.com/kgorro/stackify-api-dotnet/blob/master/Src/StackifyLib/Web/RealUserMonitoring.cs | Github Open Source | Open Source | Apache-2.0 | 2,022 | stackify-api-dotnet | kgorro | C# | Code | 142 | 532 | using System;
using System.Collections.Generic;
using System.Text;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using StackifyLib.Utils;
namespace StackifyLib.Web
{
public static class RealUserMonitoring
{
public static string GetHeaderScript()
{
var rumScriptUrl = Config.Rum... | 49,603 |
https://github.com/kevin-wyx/ProxyFS/blob/master/pfs_middleware/pfs_middleware/bimodal_checker.py | Github Open Source | Open Source | Apache-2.0 | null | ProxyFS | kevin-wyx | Python | Code | 964 | 2,605 | # Copyright (c) 2017 SwiftStack, 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 or agreed to in w... | 22,293 |
https://github.com/finalspy/trello4j/blob/master/src/main/java/org/trello4j/model/Organization.java | Github Open Source | Open Source | Apache-2.0 | null | trello4j | finalspy | Java | Code | 277 | 684 | package org.trello4j.model;
/**
* <code>
* {
* "id":"4eb3f3f1e679eb839b4c594b",
* "name":"frostdigital",
* "displayName":"Frost Digital",
* "desc":"",
* "url":"https://trello.com/frostdigital",
* "website":"http://frostdigital.se"
* }
* </code>
*
* @author joel
*
*/
public class Organization exte... | 42,304 |
https://github.com/goproxyio/goproxy.io/blob/master/src/components/Sidebar/Sidebar.tsx | Github Open Source | Open Source | MIT | 2,023 | goproxy.io | goproxyio | TSX | Code | 479 | 1,423 | import { Link } from 'gatsby'
import classNames from 'classnames'
import styled from 'styled-components'
import React from 'react'
import _ from 'lodash'
import { useMediaQuery } from 'react-responsive'
import { DocsNavNode } from '../../utils/getSidebarData'
const Container = styled.div`
order: -1;
@media (min-wi... | 645 |
https://github.com/fossabot/home-2/blob/master/src/components/FireBaseLogin.vue | Github Open Source | Open Source | WTFPL | 2,019 | home-2 | fossabot | Vue | Code | 134 | 681 | <template>
<div>
<v-container fluid fill-height>
<v-layout justify-center align-center>
<v-flex text-xs-center>
<v-card flat max-width="360">
<v-btn @click="firebaselogin('twitter')" color="#55acee" dark block class="pl-1 pr-5 mb-3">
<v-img
contain... | 9,729 |
https://github.com/geekvikas/Momenta/blob/master/Momenta/AttributesCell.swift | Github Open Source | Open Source | MIT | 2,021 | Momenta | geekvikas | Swift | Code | 236 | 709 | //
// AttributesCell.swift
// humble
//
// Created by Jonathon Fishman on 2/18/18.
// Copyright © 2018 GoYoJo. All rights reserved.
//
import UIKit
class AttributesCell: UITableViewCell {
@IBOutlet weak var attributeLabel1: AttributesLabel!
@IBOutlet weak var attributeLabel2: AttributesLabel!
@IB... | 4,384 |
https://github.com/hpi-swa-teaching/SketchMorph2/blob/master/packages/SketchMorph2-Core.package/M2Pencil.class/class/actionSelector.st | Github Open Source | Open Source | MIT | 2,022 | SketchMorph2 | hpi-swa-teaching | null | Spoken | 4 | 14 | accessing
actionSelector
^ #drawPencil
| 37,893 |
https://github.com/jeorgeneftally/Webtres/blob/master/resources/views/layout/layout.blade.php | Github Open Source | Open Source | MIT | null | Webtres | jeorgeneftally | PHP | Code | 455 | 1,928 | <html>
<head>
<title>Webtres</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css" integrity="sha384-9aIt2nRpC12Uk9gS9baDl411NQApFmC26EwAOH8WgZl5MYYxFfc+NcPb1dKGj7Sk" crossorigin="anonymous">
<script src="https://kit.fontawesome.com/36bbb7515e.js" crossori... | 30,302 |
https://github.com/chikashimiyama/uPD/blob/master/Unity Project/Assets/StreamingAssets/Patches/Data.meta | Github Open Source | Open Source | MIT | 2,019 | uPD | chikashimiyama | Unity3D Asset | Code | 8 | 45 | fileFormatVersion: 2
guid: 0b6de7b1ec76bf74aa7c257ca5a62709
folderAsset: yes
DefaultImporter:
userData:
| 3,755 |
https://github.com/ricardorohde/pizza-api/blob/master/application/models/modelos/VerificaBairroPermitido.php | Github Open Source | Open Source | MIT | 2,021 | pizza-api | ricardorohde | PHP | Code | 265 | 1,340 | <?php
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
/**
* Description of VerificaBairroPermitido
*
* @author 033234581
*/
class VerificaBairroPermitido extends CI_Model{
... | 223 |
https://github.com/4yn/hnr21/blob/master/src/Components/TemperatureCamera.svelte | Github Open Source | Open Source | CC-BY-3.0, CC0-1.0 | 2,021 | hnr21 | 4yn | null | Spoken | 354 | 1,166 | <script>
import { TemperatureTypes, MaskTypes } from '../Engine/Enums.js'
import personFactory from './PersonFactory.js'
export const CameraHueTypes = {
HUE_GREYSCALE: 'HUE_GREYSCALE',
HUE_HUE: 'HUE_HUE',
HUE_BLUE_RED: 'HUE_BLUE_RED'
}
export let seed = 0;
export let traits = {}
export let hot = false;
... | 49,266 |
https://github.com/x-y-z/HugeCTR/blob/master/sparse_operation_kit/setup.py | Github Open Source | Open Source | Apache-2.0 | null | HugeCTR | x-y-z | Python | Code | 644 | 2,705 | """
Copyright (c) 2021, NVIDIA CORPORATION.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in ... | 7,326 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.