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/alan-turing-institute/CROP/blob/master/ingress_functions/warnings_func/__init__.py | Github Open Source | Open Source | MIT | 2,023 | CROP | alan-turing-institute | Python | Code | 51 | 180 | """
Create warnings in the database.
"""
from datetime import datetime, timedelta, timezone
import logging
import azure.functions as func
from core.warnings import create_and_upload_warnings
def create_warnings(mytimer: func.TimerRequest):
utc_timestamp = datetime.utcnow().replace(tzinfo=timezone.utc).isoformat... | 33,541 |
https://github.com/NightOfTwelve/iOS-Cracked-Apps/blob/master/DumpedClasses/Kugou/FAMobileLiveGiftMsgModel.h | Github Open Source | Open Source | MIT | 2,018 | iOS-Cracked-Apps | NightOfTwelve | Objective-C | Code | 56 | 258 | //
// Generated by class-dump 3.5 (64 bit).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard.
//
#import "NSObject.h"
@interface FAMobileLiveGiftMsgModel : NSObject
{
}
+ (long long)getGiftPrice:(id)arg1;
+ (id)getSenderImage:(id)arg1;
+ (id)getSenderName:(id)arg1;
+ (id)getG... | 26,148 |
https://github.com/karriz-dev/lsdn/blob/master/lsdn/src/main/java/me/kalriz/lsdn/dto/properties/impl/LoggerProperties.java | Github Open Source | Open Source | MIT | 2,021 | lsdn | karriz-dev | Java | Code | 32 | 100 | package me.kalriz.lsdn.dto.properties.impl;
import lombok.Builder;
import lombok.Data;
import me.kalriz.lsdn.dto.properties.IProperties;
@Data
@Builder
public class LoggerProperties implements IProperties {
private String path;
private String level;
private String db;
private String maxsize;
private String forma... | 25,920 |
https://github.com/jacqt/alasql/blob/master/test/test182.js | Github Open Source | Open Source | MIT | 2,022 | alasql | jacqt | JavaScript | Code | 135 | 484 | if (typeof exports === 'object') {
var assert = require('assert');
var alasql = require('..');
} else {
__dirname = '.';
}
//if(typeof exports != 'object') {
describe('Test 182 - ARRAY aggregator', function() {
it('1. ARRAY()', function(done) {
var data = [
{
userId: 1,
userName: 'bob',
category:... | 33,263 |
https://github.com/TeselaGen/jbei-edd/blob/master/docker_services/flower/healthcheck.sh | Github Open Source | Open Source | BSD-3-Clause-LBNL | null | jbei-edd | TeselaGen | Shell | Code | 23 | 83 | #!/bin/bash
set -eo pipefail
host="$(hostname --ip-address || echo '127.0.0.1')"
if curl --fail -LSsu "${FLOWER_BASIC_AUTH}" "http://${host}:5555/" > /dev/null; then
exit 0
fi
exit 1
| 5,919 |
https://github.com/adjoined-tb/gulimall/blob/master/gulimall-seckill/src/main/java/me/adjoined/gulimall/seckill/service/impl/SeckillServiceImpl.java | Github Open Source | Open Source | Apache-2.0 | null | gulimall | adjoined-tb | Java | Code | 134 | 616 | package me.adjoined.gulimall.seckill.service.impl;
import me.adjoined.gulimall.seckill.service.SeckillService;
import org.redisson.api.RSemaphore;
import org.redisson.api.RedissonClient;
import org.springframework.amqp.rabbit.core.RabbitTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import or... | 34,001 |
https://github.com/ramonbrugman/maui/blob/master/src/ControlGallery/src/Xamarin.Forms.Controls/GalleryPages/PlatformTestsGallery/PlatformTestsConsole.xaml.cs | Github Open Source | Open Source | MIT | 2,021 | maui | ramonbrugman | C# | Code | 841 | 3,163 | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.IO;
using System.Reflection;
using System.Threading.Tasks;
using Microsoft.Maui.Controls.ControlGallery.Tests;
using Microsoft.Maui.Controls.Internals;
using Microsoft.Maui.Controls.Xaml;
using NUnit.Framework.Interfaces;
using N... | 9,286 |
https://github.com/amon1991/java-core/blob/master/src/main/java/com/amon/javacore/functional/StreamTest.java | Github Open Source | Open Source | Apache-2.0 | null | java-core | amon1991 | Java | Code | 115 | 440 | package com.amon.javacore.functional;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.stream.Stream;
/**
* @author yaming.chen@siemens.com
* Created by chenyaming on 2019/10/21.
*/
public class StreamTest {
public static void main(String[] args) {
List<Str... | 32,777 |
https://github.com/dstarcev/stunning-octo-eureka/blob/master/src/Module3/Task5.hs | Github Open Source | Open Source | BSD-3-Clause | 2,022 | stunning-octo-eureka | dstarcev | Haskell | Code | 78 | 155 | module Module3.Task5 where
sum3 :: Num a => [a] -> [a] -> [a] -> [a]
sum3 = iter []
where
iter a [] [] [] = reverse a
iter a [] a2 a3 = iter a [0] a2 a3
iter a a1 [] a3 = iter a a1 [0] a3
iter a a1 a2 [] = iter a a1 a2 [0]
iter a (x1:xs1) (x2:xs2) (x3:xs3) =
iter (x1 + x2 + x3 : a) xs1 xs2 ... | 55,198 |
https://github.com/HcySunYang/vue-router-next/blob/master/__tests__/guards/onBeforeRouteLeave.spec.ts | Github Open Source | Open Source | MIT | 2,020 | vue-router-next | HcySunYang | TypeScript | Code | 267 | 744 | /**
* @jest-environment jsdom
*/
import {
createRouter,
createMemoryHistory,
onBeforeRouteLeave,
} from '../../src'
import { createApp, defineComponent } from 'vue'
const component = {
template: '<div>Generic</div>',
}
describe('onBeforeRouteLeave', () => {
it('invokes with the component context', async (... | 52,987 |
https://github.com/hwslabs/hws-instruments-ruby/blob/master/lib/hws-instruments/tasks/hypto.rake | Github Open Source | Open Source | MIT | null | hws-instruments-ruby | hwslabs | Ruby | Code | 112 | 588 | # frozen_string_literal: true
namespace :'hws-instruments' do # rubocop:disable Metrics/BlockLength
namespace :hypto do # rubocop:disable Metrics/BlockLength
desc 'Initializes a Hypto payouts instrument config in DB'
task :payouts, [:api_token] => :environment do |_t, args|
Hws::Instruments.create_inst... | 20,628 |
https://github.com/dearcode2018/auth-entire/blob/master/shiro/src/test/resources/template/code/TemplateTest.java | Github Open Source | Open Source | Apache-2.0 | null | auth-entire | dearcode2018 | Java | Code | 291 | 1,044 | /**
* 描述:
* TemplateTest.java
*
* @author qye.zheng
* version 1.0
*/
package template.code;
// 静态导入
import static org.junit.Assert.assertArrayEquals;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNotEquals;
import static org.junit... | 39,151 |
https://github.com/JetBrains/intellij-community/blob/master/java/java-tests/testSrc/com/intellij/java/refactoring/suggested/JavaSuggestedRefactoringChangeListenerTest.kt | Github Open Source | Open Source | Apache-2.0 | 2,023 | intellij-community | JetBrains | Kotlin | Code | 530 | 2,099 | // Copyright 2000-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.java.refactoring.suggested
import com.intellij.ide.highlighter.JavaFileType
import com.intellij.openapi.actionSystem.IdeActions
import com.intellij.openapi.a... | 15,552 |
https://github.com/pqnelson/yukawa-dark-matter/blob/master/Makefile | Github Open Source | Open Source | MIT | null | yukawa-dark-matter | pqnelson | Makefile | Code | 36 | 131 | CPLUSPLUS=g++
CFLAGS=-Wall -O3 --std=c++11
LIB=-lm
TEX=pdftex
FILE=yukawa
all: bin doc
images:
cd ./img; mpost *.mp
source:
ctangle $(FILE).w - $(FILE).cpp
bin: source
$(CPLUSPLUS) $(CFLAGS) $(FILE).cpp $(LIB) -o $(FILE)
tex: images
cweave $(FILE).w
doc: tex
$(TEX) $(FILE).tex
| 37,036 |
https://github.com/znseaman/find-apartment-react/blob/master/client/src/components/SimpleMap/SimpleMap.js | Github Open Source | Open Source | MIT | null | find-apartment-react | znseaman | JavaScript | Code | 295 | 1,076 | import React, { useState, useEffect } from 'react'
import { connect } from 'react-redux'
import PropTypes from 'prop-types'
import { Map, TileLayer, Marker, Popup, GeoJSON } from 'react-leaflet'
import Listing from '../Listings/Listing/Listing'
// import places from '../../data/local_area_boundary'
/* Boilerplate for ... | 29,179 |
https://github.com/doom/meta/blob/master/tests/tests-type_map.cpp | Github Open Source | Open Source | MIT | 2,022 | meta | doom | C++ | Code | 300 | 1,932 | /*
** Created by doom on 13/01/19.
*/
#include <type_traits>
#include <meta/sequence/sequence.hpp>
using signed_to_unsigned = doom::meta::unordered_map<
doom::meta::pair<signed char, unsigned char>,
doom::meta::pair<short, unsigned short>,
doom::meta::pair<int, unsigned int>,
doom::met... | 40,052 |
https://github.com/17701253801/firefly-proxy/blob/master/DEPRECATED_PYTHON_SRC/gsocks/msg.py | Github Open Source | Open Source | BSD-2-Clause | 2,022 | firefly-proxy | 17701253801 | Python | Code | 445 | 1,710 | # socks5 packet format
import os
import struct
from gevent import socket
import dpkt
if os.name == 'nt':
import win_inet_pton
socket.inet_pton = win_inet_pton.inet_pton
socket.inet_ntop = win_inet_pton.inet_ntop
# version
SOCKS5 = '\x05'
# reserve
RSV = '\x00'
# command
CONNECT = '\x01'
BIND ... | 30,885 |
https://github.com/reven86/dfg-gameplay/blob/master/client/source/base/services/service_manager.h | Github Open Source | Open Source | Apache-2.0 | 2,023 | dfg-gameplay | reven86 | C++ | Code | 334 | 770 | #ifndef __DFG_SERVICE_MANAGER__
#define __DFG_SERVICE_MANAGER__
#include "service.h"
#include "signals.h"
/** @class ServiceManager service_manager.h "services/service_manager.h"
* @brief All services state processing goes here.
*
* @author Andrew "RevEn" Karpushin
*/
class ServiceManager : public Singleton< ... | 44,435 |
https://github.com/Gernby/raspberry-pilot/blob/master/phonelibs/android_frameworks_native/include/media/openmax/OMX_AsString.h | Github Open Source | Open Source | MIT | 2,023 | raspberry-pilot | Gernby | C | Code | 3,521 | 14,994 | /*
* Copyright 2014 The Android Open Source Project
*
* 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 applica... | 40,211 |
https://github.com/Seavenly/paypal-messaging-components/blob/master/src/utils/index.js | Github Open Source | Open Source | Apache-2.0 | null | paypal-messaging-components | Seavenly | JavaScript | Code | 32 | 61 | export * from './elements';
export * from './global';
export * from './functional';
export * from './objects';
export * from './miscellaneous';
export * from './sdk';
export { default as loadPPFonts } from './fonts';
| 43,636 |
https://github.com/Phattharapha/e-cafe-project/blob/master/uploadpicture.php | Github Open Source | Open Source | CC-BY-3.0, CC-BY-4.0 | 2,021 | e-cafe-project | Phattharapha | PHP | Code | 17 | 106 | <?php
echo '<pre>';
print_r($_FILES);
$dir = "image1/";
$filename = $dir . basename($_FILES["filUpload"]["name"]);
if(move_uploaded_file($_FILES["filUpload"]["tmp_name"],$filename)){
echo 'อัพโหลดเสร็จ';
}
?> | 33,209 |
https://github.com/ghsecuritylab/tomato_egg/blob/master/release/src/linux/linux/fs/squashfs/Makefile | Github Open Source | Open Source | FSFAP | 2,022 | tomato_egg | ghsecuritylab | Makefile | Code | 30 | 123 | #
# Makefile for the linux squashfs routines.
#
O_TARGET := squashfs.o
obj-y := inode.o LzmaDecode.o
obj-m := $(O_TARGET)
LZMADIR = $(SRCBASE)/lzma/C/Compress/Lzma
EXTRA_CFLAGS += -I$(LZMADIR)
vpath %.c $(LZMADIR)
include $(TOPDIR)/Rules.make
| 38,845 |
https://github.com/lechium/tvOS10Headers/blob/master/System/Library/PrivateFrameworks/CorePDF.framework/UIPDFPageRenderOperation.h | Github Open Source | Open Source | MIT | 2,018 | tvOS10Headers | lechium | C | Code | 88 | 294 | /*
* This header is generated by classdump-dyld 1.0
* on Wednesday, March 22, 2017 at 9:04:31 AM Mountain Standard Time
* Operating System: Version 10.1 (Build 14U593)
* Image Source: /System/Library/PrivateFrameworks/CorePDF.framework/CorePDF
* classdump-dyld is licensed under GPLv3, Copyright © 2013-2016 by Elias Lim... | 56,091 |
https://github.com/NightDog/frontend/blob/master/src/components/ToggleMenu.js | Github Open Source | Open Source | MIT | 2,021 | frontend | NightDog | JavaScript | Code | 137 | 479 | import { useState } from 'react';
import { useObserver } from 'mobx-react-lite';
import Button from '@material-ui/core/Button';
import Menu from '@material-ui/core/Menu';
import MenuItem from '@material-ui/core/MenuItem';
import ExpandMoreIcon from '@material-ui/icons/ExpandMore';
import { Typography } from '@material-... | 32,180 |
https://github.com/AGNISH13/Deep-feature-extraction-from-CNNs-followed-by-optimization-with-GA/blob/master/main.py | Github Open Source | Open Source | MIT | null | Deep-feature-extraction-from-CNNs-followed-by-optimization-with-GA | AGNISH13 | Python | Code | 97 | 345 |
from Deep_feature_extractors import extractor
from Genetic_Algorithm import GA
import argparse
parser = argparse.ArgumentParser(description = 'Application of Genetic Algorithm')
# Paths
parser.add_argument('-data','--data_folder',type=str,
default = 'data',
help = 'Path to ... | 23,883 |
https://github.com/IcelyFramework/icely-activity-storming/blob/master/plugins/com.github.icelyframework.activitystorming.diagram/src/com/github/icelyframework/activitystorming/diagram/edit/helpers/ActivityPartitionEditHelper.java | Github Open Source | Open Source | MIT | 2,021 | icely-activity-storming | IcelyFramework | Java | Code | 16 | 55 | /*
*
*/
package com.github.icelyframework.activitystorming.diagram.edit.helpers;
/**
* @generated
*/
public class ActivityPartitionEditHelper extends ActivitystormingBaseEditHelper {
}
| 45,255 |
https://github.com/filipowm/spring-api/blob/master/spring-api-core/src/test/java/io/github/filipowm/api/ApiUtilsTest.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | spring-api | filipowm | Java | Code | 185 | 867 | package io.github.filipowm.api;
import lombok.Data;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.Arguments;
import org.junit.jupiter.params.provider.MethodSource;
import java.util.List;
import java.util.stream.Stream;
import static org... | 16,346 |
https://github.com/Matt-Webb/UOFGmobile/blob/master/build/bundle/programs/server/packages/reload.js | Github Open Source | Open Source | MIT | 2,022 | UOFGmobile | Matt-Webb | JavaScript | Code | 27 | 69 | (function () {
/* Imports */
var Meteor = Package.meteor.Meteor;
/* Exports */
if (typeof Package === 'undefined') Package = {};
Package.reload = {};
})();
//# sourceMappingURL=reload.js.map
| 46,165 |
https://github.com/xiaoqingyu0113/robocup-software/blob/master/soccer/src/soccer/ros2_temp/referee_sub.cpp | Github Open Source | Open Source | Apache-2.0 | 2,022 | robocup-software | xiaoqingyu0113 | C++ | Code | 116 | 705 | #include "referee_sub.hpp"
#include <rj_constants/topic_names.hpp>
#include <rj_utils/logging_macros.hpp>
namespace ros2_temp {
RefereeSub::RefereeSub(Context* context, rclcpp::Executor* executor) : context_(context) {
node_ = std::make_shared<rclcpp::Node>("_referee_receiver");
executor->add_node(node_, tru... | 44,671 |
https://github.com/Qazwar/ParabellumFramework/blob/master/ParabellumEngine/ParabellumFramework/Triangle.h | Github Open Source | Open Source | MIT | 2,019 | ParabellumFramework | Qazwar | C++ | Code | 119 | 423 | #ifndef _TRIANGLE_H_
#define _TRIANGLE_H_
//
// Predefs
//
#include "DLLIE.h"
#include "TypesC.h"
#include "Vector3D.h"
#include "Vector4D.h"
#include "MathHelper.h"
#include "MathHelperExtended.h"
#include "Plane.h"
namespace ParabellumFramework
{
//
// Triangle - point must be passed counterclocwork
//
class X... | 7,235 |
https://github.com/doppelkool/Udacity-Data-stores-and-Persistence/blob/master/starter/critter/src/main/java/com/udacity/jdnd/course3/critter/user/CustomerRepository.java | Github Open Source | Open Source | MIT | 2,021 | Udacity-Data-stores-and-Persistence | doppelkool | Java | Code | 26 | 135 | package com.udacity.jdnd.course3.critter.user;
import com.udacity.jdnd.course3.critter.pet.Pet;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;
import java.util.List;
import java.util.Optional;
@Repo... | 53,078 |
https://github.com/arobson/fount/blob/master/.npmignore | Github Open Source | Open Source | MIT | 2,021 | fount | arobson | Ignore List | Code | 5 | 19 | demo/
tmp/
node_modules/
coverage/
spec/
| 54,555 |
https://github.com/dodinhduongsmile/cv/blob/master/pducomputer/application/views/public/default/cart/mail_cart.php | Github Open Source | Open Source | MIT, LicenseRef-scancode-unknown-license-reference | 2,023 | cv | dodinhduongsmile | PHP | Code | 1,032 | 4,411 | <html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
<div style="margin: 0;font-family: arial;background: #e7e3e3;">
<table style="margin: auto;padding:0 15px;max-wi... | 41,497 |
https://github.com/JoffreyPoreeCoding/MongoDB-ODM/blob/master/tests/Tools/ClassMetadataTest.php | Github Open Source | Open Source | MIT | 2,022 | MongoDB-ODM | JoffreyPoreeCoding | PHP | Code | 352 | 1,439 | <?php
namespace JPC\Test\MongoDB\ODM\Tools;
use JPC\MongoDB\ODM\Tools\ClassMetadata\ClassMetadata;
use JPC\Test\MongoDB\ODM\Framework\TestCase;
class ClassMetadataTest extends TestCase
{
/**
* @var ClassMetadata
*/
private $classMetadata;
public function setUp()
{
$this->classMeta... | 43,704 |
https://github.com/commercialhaskell/haskelldocumentation/blob/master/exercises/UpdateRecords/UpdateRecordsSpec.hs | Github Open Source | Open Source | CC-BY-4.0 | 2,022 | haskelldocumentation | commercialhaskell | Haskell | Code | 68 | 212 | {-# LANGUAGE ScopedTypeVariables #-}
module UpdateRecords.UpdateRecordsSpec where
import qualified UpdateRecords as UR
import qualified Test.QuickCheck as QC
import Test.Hspec
spec = do
describe "UpdateRecords.backupDBWeekly" $ do
it "updates the record" $ do
UR.backupDBWeekly `shouldBe`... | 45,141 |
https://github.com/joubin/gitlabhq/blob/master/spec/requests/api/ci/runner/jobs_trace_spec.rb | Github Open Source | Open Source | MIT, LicenseRef-scancode-unknown-license-reference, CC-BY-SA-4.0 | 2,022 | gitlabhq | joubin | Ruby | Code | 837 | 2,939 | # frozen_string_literal: true
require 'spec_helper'
RSpec.describe API::Ci::Runner, :clean_gitlab_redis_trace_chunks do
include StubGitlabCalls
include RedisHelpers
include WorkhorseHelpers
let(:registration_token) { 'abcdefg123456' }
before do
stub_feature_flags(ci_enable_live_trace: true)
stub_g... | 54,804 |
https://github.com/sunkeding/NEGroupCall/blob/master/Miniapp/components/nertc-room/model/pusher.js | Github Open Source | Open Source | MIT | 2,022 | NEGroupCall | sunkeding | JavaScript | Code | 156 | 782 | import { DEFAULT_PUSHER_CONFIG } from '../common/constants.js'
import { logger } from '../utils/logger'
class Pusher {
constructor(options) {
Object.assign(this, DEFAULT_PUSHER_CONFIG, {
isVisible: true, // 手Q初始化时不能隐藏 puser和player 否则黑屏
isFullScreen: false, // 是否全屏
isListener: false, // 是否追随者
... | 46,964 |
https://github.com/alexandreroman/pcf-the-easy-way/blob/master/scripts/shared.sh | Github Open Source | Open Source | Apache-2.0 | 2,020 | pcf-the-easy-way | alexandreroman | Shell | Code | 176 | 639 | #!/bin/bash
set -u # explode if any env vars are not set
function printline() {
echo && printf '%*s\n' "${COLUMNS:-$(tput cols)}" '' | tr ' ' - && echo $1
}
SCRIPTDIR=$(cd $(dirname "$0") && pwd -P)
VARS=${HOME}/.env
if ! which om > /dev/null; then
echo "error: scripts require 'om' to be installed (https://gith... | 34,482 |
https://github.com/SoumyadeepJana/Esummit-18/blob/master/www/resources/views/Icamp18/parent_layouts/dashboard.main.blade.php | Github Open Source | Open Source | MIT | 2,019 | Esummit-18 | SoumyadeepJana | Blade | Code | 930 | 5,883 | <!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="utf-8" />
<title>
@yield('title')
</title>
<meta name="description" content="Latest updates and statistic charts">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-f... | 32,242 |
https://github.com/szchenghuang/meteor-browser-policy-issue/blob/master/imports/startup/server/accounts/on-create-user.js | Github Open Source | Open Source | MIT | 2,018 | meteor-browser-policy-issue | szchenghuang | JavaScript | Code | 99 | 291 | import { Meteor } from 'meteor/meteor';
import { Accounts } from 'meteor/accounts-base';
Accounts.onCreateUser((options, user) => {
const profile = options.profile;
const newUser = user;
const userType = Object.keys(newUser.services)[0];
switch (userType) {
case 'facebook':
newUser.type = 'facebook... | 22,918 |
https://github.com/envoyproxy/envoy/blob/master/source/extensions/network/dns_resolver/getaddrinfo/getaddrinfo.cc | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-unknown-license-reference | 2,023 | envoy | envoyproxy | C++ | Code | 740 | 2,815 | #include "source/extensions/network/dns_resolver/getaddrinfo/getaddrinfo.h"
#include "envoy/extensions/network/dns_resolver/getaddrinfo/v3/getaddrinfo_dns_resolver.pb.h"
#include "envoy/network/dns_resolver.h"
#include "source/common/api/os_sys_calls_impl.h"
#include "source/common/network/address_impl.h"
namespace ... | 6,790 |
https://github.com/qshuai/copernicus/blob/master/net/p2p/peerstate.go | Github Open Source | Open Source | BSD-2-Clause | null | copernicus | qshuai | Go | Code | 76 | 281 | package p2p
import "time"
type PeerState struct {
inboundPeers map[int32]*ServerPeer
outboundPeers map[int32]*ServerPeer
persistentPeers map[int32]*ServerPeer
banned map[string]time.Time
outboundGroups map[string]int
}
func (peerState *PeerState) Count() int {
return len(peerState.inboundPeers) ... | 20,376 |
https://github.com/openshift/origin-ci-tool/blob/master/oct/ansible/oct/playbooks/provision/files/partition.sh | Github Open Source | Open Source | Apache-2.0 | 2,022 | origin-ci-tool | openshift | Shell | Code | 115 | 212 | #!/bin/bash
# This script interacts with `fdisk` in order to add a partition that uses up
# all of the free space in the block device set aside for Docker storage.
fdisk_commands=(
# first, create a new partition
'n' # new partition
'p' # primary partition type
'' # default partition number
''... | 26,507 |
https://github.com/wolverton-research-group/qmpy/blob/master/qmpy/web/static/js/jsmol/j2s/java/io/InvalidObjectException.js | Github Open Source | Open Source | MIT | 2,022 | qmpy | wolverton-research-group | JavaScript | Code | 3 | 57 | Clazz.load(["java.io.ObjectStreamException"],"java.io.InvalidObjectException",null,function(){
c$=Clazz.declareType(java.io,"InvalidObjectException",java.io.ObjectStreamException);
});
| 15,776 |
https://github.com/dling61/cschedule_client/blob/master/public/app/js/views/ParticipantsListView.js | Github Open Source | Open Source | MIT | null | cschedule_client | dling61 | JavaScript | Code | 425 | 1,753 | define([
'js/collections/Participants',
'drop',
'backbone',
'js/views/ProfileView'
], function(Participants,Drop,ProfileView){
var ParticipantsListView = Backbone.View.extend({
el: '#parList',
initialize: function () {
gParticipants = new Participants();
this.render();
},
events: {
/*'dblcl... | 40,397 |
https://github.com/JacobVanGeffen/shuttle/blob/master/tests/asynch/countdown_timer.rs | Github Open Source | Open Source | Apache-2.0 | null | shuttle | JacobVanGeffen | Rust | Code | 333 | 1,035 | use futures::{future::FutureExt, join, pin_mut, select};
use shuttle::{asynch, check_dfs};
use std::{
cell::RefCell,
fmt::Debug,
future::Future,
pin::Pin,
task::{Context, Poll},
};
use test_env_log::test;
pub(crate) struct CountdownTimerState<T> {
remain: u32,
value: Option<T>,
}
pub(crate... | 56,490 |
https://github.com/pgurtry/Terraform-Real-World-Edition/blob/master/Governance/policy/assignments/policy-assignment.tf | Github Open Source | Open Source | MIT | 2,021 | Terraform-Real-World-Edition | pgurtry | HCL | Code | 41 | 219 | module "baselineAssignment" {
source = "./Baseline-Assignment"
MgmtGroupName = var.MgmtGroupName
SubscriptionID = var.SubscriptionID
PolicyDef_AllowedLocations_ID = var.PolicyDef_AllowedLocations_ID
PolicyDef_AllowedVMSKUs_ID = var.PolicyDef_AllowedVMSKUs_ID
PolicyDef_AuditResourceGroupLocks_ID = var.Polic... | 25,472 |
https://github.com/Rainyforest/amor/blob/master/src/main/java/com/wyc/amor/model/entity/BmsActivity.java | Github Open Source | Open Source | Apache-2.0 | null | amor | Rainyforest | Java | Code | 103 | 429 | package com.wyc.amor.model.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import java.io.Serializable;
import java.util.Date;... | 36,007 |
https://github.com/Jugendreisen/QinJianPu/blob/master/src/cap/upload/UploadProcessorBaiduServlet.java | Github Open Source | Open Source | MIT | 2,022 | QinJianPu | Jugendreisen | Java | Code | 437 | 2,072 | package cap.upload;
import java.io.File;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import javax.servlet.ServletConfig;
import javax.servlet.ServletContext;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet... | 19,684 |
https://github.com/peterhellberg/jsonstore/blob/master/new_secret_test.go | Github Open Source | Open Source | MIT | 2,018 | jsonstore | peterhellberg | Go | Code | 41 | 108 | package jsonstore
import "testing"
func TestNewSecret(t *testing.T) {
s, err := NewSecret()
if err != nil {
t.Fatalf("unexpected error: %v", err)
}
if got, want := len(s), 64; got != want {
t.Fatalf("len(s) = %d, want %d", got, want)
}
}
| 14,387 |
https://github.com/alexgraehl/TimeForScience/blob/master/Lab_Code/Perl/add_to_xml.pl | Github Open Source | Open Source | MIT | 2,023 | TimeForScience | alexgraehl | Perl | Code | 304 | 1,069 | #!/usr/bin/env perl
use lib "$ENV{MYPERLDIR}/lib"; use lib "$ENV{TIME_FOR_SCIENCE_DIR}/Lab_Code/Perl"; require "load_args.pl";
use lib "$ENV{MYPERLDIR}/lib"; use lib "$ENV{TIME_FOR_SCIENCE_DIR}/Lab_Code/Perl"; require "bio_system.pl";
my $atx_null_value = "ATX___NULL___ATX";
#----------------------------------------... | 36,951 |
https://github.com/rohatsu/rtdoom/blob/master/rtdoom/GameState.h | Github Open Source | Open Source | MIT | 2,021 | rtdoom | rohatsu | C | Code | 35 | 113 | #pragma once
#include "MapDef.h"
namespace rtdoom
{
class GameState
{
public:
std::unique_ptr<MapDef> m_mapDef;
float m_step;
Thing m_player;
void Move(int m, int r, float step);
void NewGame(const MapStore& mapStore);
GameState();
~GameState();
};
} /... | 22,110 |
https://github.com/mhwu95/HyoutaTools/blob/master/Other/PicrossDS/PuzzleEditorForm.cs | Github Open Source | Open Source | MIT | 2,018 | HyoutaTools | mhwu95 | C# | Code | 617 | 2,103 | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace HyoutaTools.Other.PicrossDS {
public partial class PuzzleEditorForm : Form {
private SaveFile Save;
private String Orig... | 1,942 |
https://github.com/tedlittledale/ted-gatsby-starter/blob/master/src/pages/index.js | Github Open Source | Open Source | MIT | null | ted-gatsby-starter | tedlittledale | JavaScript | Code | 76 | 219 | import React from "react"
import { Link } from "gatsby"
import { compose } from "ramda"
import { observer } from "mobx-react-lite"
import { withPaths } from "../utils/store"
import withLocation from "../utils/withLocation"
import Layout from "../components/layout"
import SEO from "../components/seo"
const IndexPage =... | 21,667 |
https://github.com/leideqin/actionview-fe/blob/master/app/components/document/List.jsx | Github Open Source | Open Source | Apache-2.0 | 2,020 | actionview-fe | leideqin | JavaScript | Code | 1,907 | 6,000 | import React, { PropTypes, Component } from 'react';
import { Link } from 'react-router';
import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table';
import { FormGroup, FormControl, ButtonGroup, Button, Breadcrumb, DropdownButton, MenuItem } from 'react-bootstrap';
import Select from 'react-select';
imp... | 56,434 |
https://github.com/noties/Adapt/blob/master/sample/src/main/java/io/noties/adapt/sample/util/View+Extensions.kt | Github Open Source | Open Source | Apache-2.0 | null | Adapt | noties | Kotlin | Code | 50 | 151 | package io.noties.adapt.sample.util
import android.view.View
import android.view.ViewGroup
fun View.activate(isActivated: Boolean) {
if (this is ViewGroup) {
this.children.forEach { it.activate(isActivated) }
} else {
this.isActivated = isActivated
}
}
val ViewGroup.children: List<View>
... | 48,852 |
https://github.com/devanshgajjar/mozguj/blob/master/src/components/layout.js | Github Open Source | Open Source | MIT | null | mozguj | devanshgajjar | JavaScript | Code | 124 | 395 | import React from "react"
import PropTypes from "prop-types"
import { StaticQuery, graphql } from "gatsby"
import { Container } from "@material-ui/core"
import { createMuiTheme } from "@material-ui/core/styles"
import { ThemeProvider } from "@material-ui/styles"
import Header from "./header"
import Footer from "./foo... | 2,577 |
https://github.com/jbripley/brazil/blob/master/vendor/gems/rio-0.4.2/lib/rio/rl/path.rb | Github Open Source | Open Source | MIT | 2,020 | brazil | jbripley | Ruby | Code | 363 | 983 | #--
# ===============================================================================
# Copyright (c) 2005,2006,2007,2008 Christopher Kleckner
# All rights reserved
#
# This file is part of the Rio library for ruby.
#
# Rio is free software; you can redistribute it and/or modify
# it under the terms of the GNU General... | 25,909 |
https://github.com/darcywong00/BloomDesktop/blob/master/src/BloomBrowserUI/bookEdit/js/bloomSourceBubbles.ts | Github Open Source | Open Source | MIT | 2,015 | BloomDesktop | darcywong00 | TypeScript | Code | 828 | 2,511 | /// <reference path="../../lib/jquery.d.ts" />
/// <reference path="../../lib/localizationManager/localizationManager.ts" />
/// <reference path="bloomQtipUtils.ts" />
/// <reference path="../StyleEditor/StyleEditor.ts" />
interface qtipInterface extends JQuery {
qtip(options: any): JQuery;
qtipSecondary(optio... | 44,371 |
https://github.com/har00ga/specs/blob/master/src/systems/filecoin_vm/message/message.go | Github Open Source | Open Source | Apache-2.0, MIT | null | specs | har00ga | Go | Code | 252 | 818 | package message
import (
filcrypto "github.com/filecoin-project/specs/algorithms/crypto"
util "github.com/filecoin-project/specs/util"
)
var IMPL_FINISH = util.IMPL_FINISH
type Serialization = util.Serialization
// The maximum serialized size of a SignedMessage.
const MessageMaxSize = 32 * 1024
func SignedMessag... | 5,233 |
https://github.com/AndersonAluiz12/GitC/blob/master/22-07-19_26-07-19/Calculadora/Calculadora.sln | Github Open Source | Open Source | MIT | 2,019 | GitC | AndersonAluiz12 | null | Spoken | 132 | 938 |
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 16.0.29020.237
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Calculadora", "Calculadora.csproj", "{216D8348-E385-48BB-BFA9-BF3C80BE6EFB}"
EndProject
Project("{F... | 18,280 |
https://github.com/Sowmya6597/StockExchange/blob/master/Final StockMarketCharting/src/app/update/user/user.component.ts | Github Open Source | Open Source | Apache-2.0 | 2,020 | StockExchange | Sowmya6597 | TypeScript | Code | 107 | 368 | import { Component, OnInit } from '@angular/core';
import { FormGroup, FormBuilder, Validators } from '@angular/forms';
import { UserService } from 'src/app/service/user.service';
import { Router } from '@angular/router';
@Component({
selector: 'app-user',
templateUrl: './user.component.html',
styleUrls: ['./user... | 38,699 |
https://github.com/kalomj/Interpolation/blob/master/kSplitDispersed.m | Github Open Source | Open Source | BSD-2-Clause | 2,016 | Interpolation | kalomj | MATLAB | Code | 67 | 111 | function [ output_args ] = kSplitDispersed( input_args )
%KSPLITDISPERSED Split the rows of I into K approximatly equal sized partitions
%using the k means++ algorithm to find k initial centers and then assigning
%an approximately equal number of points to each center using the Munkres
%linear assingment algorithm base... | 12,953 |
https://github.com/dotnet/aspnetcore/blob/master/src/Grpc/JsonTranscoding/test/Microsoft.AspNetCore.Grpc.JsonTranscoding.Tests/Infrastructure/JsonTranscodingGreeterService.cs | Github Open Source | Open Source | MIT | 2,023 | aspnetcore | dotnet | C# | Code | 49 | 132 | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using Grpc.Core;
using Transcoding;
namespace Microsoft.AspNetCore.Grpc.JsonTranscoding.Tests.Infrastructure;
public class JsonTranscodingGreeterService : JsonTranscodingGreeter.Js... | 10,734 |
https://github.com/crpe/SugoiOverflow/blob/master/server/routes/questionsRoutes.js | Github Open Source | Open Source | MIT | 2,015 | SugoiOverflow | crpe | JavaScript | Code | 682 | 2,777 | 'use strict';
var domain = require('../domain');
var logger = require('../logger');
var _ = require('lodash');
var express = require('express');
var router = express.Router();
/**
* Get all questions
*/
router.get('/', function(req, res){
domain.Question
.find()
.select('id t... | 6,866 |
https://github.com/Chinmay-KB/project-elaichi/blob/master/elaichi/android/app/src/main/kotlin/org/dscnitrourkela/elaichi/services/NotificationExt.kt | Github Open Source | Open Source | MIT | null | project-elaichi | Chinmay-KB | Kotlin | Code | 117 | 536 | package org.dscnitrourkela.elaichi.services
import android.annotation.SuppressLint
import android.app.NotificationChannel
import android.app.NotificationManager
import android.app.PendingIntent
import android.content.Context
import android.content.Intent
import android.graphics.Color
import android.os.Build
import and... | 54,918 |
https://github.com/pkasten/Chiral-molecule-detection/blob/master/Mask_RCNN/Faster_RCNN_New/vis_data.py | Github Open Source | Open Source | MIT | 2,021 | Chiral-molecule-detection | pkasten | Python | Code | 50 | 210 | import random
from detectron2.utils.visualizer import Visualizer
from detectron2.data.catalog import MetadataCatalog, DatasetCatalog
import mol_data
import cv2
mol_metadata = MetadataCatalog.get("mol")
print(mol_metadata)
dataset_dicts = DatasetCatalog.get("mol")
for d in random.sample(dataset_dicts, 6):
img =... | 39,150 |
https://github.com/lechium/iOS1351Headers/blob/master/System/Library/PrivateFrameworks/SpringBoard.framework/SBScreenEdgePanGestureRecognizer.h | Github Open Source | Open Source | MIT | 2,022 | iOS1351Headers | lechium | C | Code | 93 | 370 | /*
* This header is generated by classdump-dyld 1.5
* on Wednesday, October 27, 2021 at 3:23:47 PM Mountain Standard Time
* Operating System: Version 13.5.1 (Build 17F80)
* Image Source: /System/Library/PrivateFrameworks/SpringB... | 21,531 |
https://github.com/saurabhkuhikar/basic_application/blob/master/components/Helper.php | Github Open Source | Open Source | BSD-3-Clause | null | basic_application | saurabhkuhikar | PHP | Code | 41 | 143 | <?php
namespace app\components;
use Yii;
class Helper {
public static function SetSession($k,$v){
$session = yii::$app->session;
return $session->set($k,$v);
}
public static function GetSession($k){
$session = yii::$app->session;
return $session->get($k);
}
public static function dd($arg){... | 47,996 |
https://github.com/akshay253101/apollo-kotlin/blob/master/tests/filesystem-sensitivity/src/test/kotlin/MainTest.kt | Github Open Source | Open Source | MIT | 2,022 | apollo-kotlin | akshay253101 | Kotlin | Code | 61 | 409 | import kotlin.test.Test
class MainTest {
@Test
fun test() {
val os = System.getProperty("os.name").lowercase()
if (os.contains("mac")) {
/**
* Case insensitive filesystem
*/
listOf(
"com.example.kotlin.type.FOO",
"com.example.kotlin.type.Foo1",
"com.... | 112 |
https://github.com/anuraggoogler/python-samples/blob/master/gmail/snippet/settings snippets/create_filter.py | Github Open Source | Open Source | Apache-2.0 | 2,020 | python-samples | anuraggoogler | Python | Code | 199 | 506 | """Copyright 2018 Google 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.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
dist... | 25,978 |
https://github.com/numpy/numpy/blob/master/numpy/core/src/npysort/simd_qsort.dispatch.cpp | Github Open Source | Open Source | Zlib, BSD-3-Clause, MIT, Apache-2.0 | 2,023 | numpy | numpy | C++ | Code | 200 | 984 | /*@targets
* $maxopt $keep_baseline avx512_skx
*/
// policy $keep_baseline is used to avoid skip building avx512_skx
// when its part of baseline features (--cpu-baseline), since
// 'baseline' option isn't specified within targets.
#include "simd_qsort.hpp"
#if defined(NPY_HAVE_AVX512_SKX) && !defined(_MSC_VER)
... | 11,473 |
https://github.com/pplu/aws-sdk-perl/blob/master/auto-lib/Paws/FSX/SelfManagedActiveDirectoryAttributes.pm | Github Open Source | Open Source | Apache-2.0 | 2,023 | aws-sdk-perl | pplu | Perl | Code | 327 | 708 | # Generated by default/object.tt
package Paws::FSX::SelfManagedActiveDirectoryAttributes;
use Moose;
has DnsIps => (is => 'ro', isa => 'ArrayRef[Str|Undef]');
has DomainName => (is => 'ro', isa => 'Str');
has FileSystemAdministratorsGroup => (is => 'ro', isa => 'Str');
has OrganizationalUnitDistinguishedName ... | 49,443 |
https://github.com/ndvalkov/Android-Course-Project/blob/master/MediaMonitoringApp/app/src/main/java/com/academy/ndvalkov/mediamonitoringapp/common/ListUtils.java | Github Open Source | Open Source | MIT | null | Android-Course-Project | ndvalkov | Java | Code | 113 | 396 | package com.academy.ndvalkov.mediamonitoringapp.common;
import android.support.annotation.NonNull;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
public class ListUtils {
public interface Filter<T>{
boolean keepItem(T item);
}
public interface Map<T1, T2>{
... | 34,070 |
https://github.com/mcallisto/ScalablyTyped/blob/master/m/material__select/src/main/scala/typings/atMaterialSelectLib/atMaterialSelectMod/MDCSelect.scala | Github Open Source | Open Source | Apache-2.0 | 2,019 | ScalablyTyped | mcallisto | Scala | Code | 98 | 432 | package typings
package atMaterialSelectLib.atMaterialSelectMod
import scala.scalajs.js
import scala.scalajs.js.`|`
import scala.scalajs.js.annotation._
@JSImport("@material/select", "MDCSelect")
@js.native
class MDCSelect ()
extends atMaterialBaseLib.atMaterialBaseMod.MDCComponent[
atMaterialSelectLib.adapte... | 48,949 |
https://github.com/sunxfancy/whefs/blob/master/doc/Makefile | Github Open Source | Open Source | MIT | 2,021 | whefs | sunxfancy | Makefile | Code | 67 | 199 | #!/usr/bin/make -f
include ../config.make
OUT_PREFIX := libwhefs-API-
clean-doxy:
-rm -fr $(OUT_PREFIX)*
clean: clean-doxy
doc doxy:
@echo "Generating API docs..."
@doxygen || exit $$?
@test -e $(AMALGAMATION_H) || { \
echo "Amalgamation header [$(AMALGAMATION_H)] not found. Skipping internal docs generation.... | 14,730 |
https://github.com/yuto0139/Microposts/blob/master/app/Http/Controllers/HomeController.php | Github Open Source | Open Source | MIT | 2,018 | Microposts | yuto0139 | PHP | Code | 155 | 691 | <?php
namespace App\Http\Controllers;
use App\User;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\Storage;
class HomeController extends Controller
{
/**
* Create a new controller instance.
*
* @return void
*/
public function __construct(... | 25,084 |
https://github.com/zhayangtao/javaDesignModelTest/blob/master/src/main/java/com/template/PageBuilder.java | Github Open Source | Open Source | MIT | null | javaDesignModelTest | zhayangtao | Java | Code | 19 | 51 | package com.template;
/**
* Created by shliangyan on 2017/5/3.
* 模板方法模式
*/
public interface PageBuilder {
String buildHtml();
}
| 6,339 |
https://github.com/uxDaniel/homebrew-fonts/blob/master/Casks/font-overpass.rb | Github Open Source | Open Source | BSD-2-Clause | null | homebrew-fonts | uxDaniel | Ruby | Code | 33 | 355 | cask 'font-overpass' do
version '2.1'
sha256 '8eb3d835eb01bdafe4993f1b4fb68fdbd526559ffd933b2442a95ce7f0daa7cd'
url "https://github.com/RedHatBrand/overpass/releases/download/#{version}/overpass-fonts-ttf-#{version}.zip"
name 'Overpass'
homepage 'http://overpassfont.org/'
license :ofl
font "overpass-fon... | 27,543 |
https://github.com/Huawei-Ascend/parser/blob/master/build.sh | Github Open Source | Open Source | Apache-2.0 | 2,020 | parser | Huawei-Ascend | Shell | Code | 670 | 2,215 | #!/bin/bash
# Copyright 2019-2020 Huawei Technologies Co., Ltd
#
# 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... | 33,400 |
https://github.com/aiyellweb/App/blob/master/app/Http/Controllers/FondoPencionController.php | Github Open Source | Open Source | MIT | null | App | aiyellweb | PHP | Code | 239 | 843 | <?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Http\Requests;
use App\fondo_pensiones;
use Carbon\Carbon;
use Session;
use Redirect;
use Illuminate\Routing\Route;
use Maatwebsite\Excel\Facades\Excel;
use Illuminate\Support\Facades\Input;
use DB;
class FondoPencionController extends Contr... | 3,048 |
https://github.com/phollemans/cwutils/blob/master/src/noaa/coastwatch/util/MeanReduction.java | Github Open Source | Open Source | Unlicense | 2,019 | cwutils | phollemans | Java | Code | 283 | 606 | ////////////////////////////////////////////////////////////////////////
/*
File: MeanReduction.java
Author: Peter Hollemans
Date: 2019/04/12
CoastWatch Software Library and Utilities
Copyright (c) 2019 National Oceanic and Atmospheric Administration
All rights reserved.
Developed by: CoastWatch... | 48,626 |
https://github.com/rafikanh/minggu4/blob/master/resources/views/getAll.blade.php | Github Open Source | Open Source | MIT | null | minggu4 | rafikanh | PHP | Code | 14 | 43 | <html>
<body>
<h1 align = center>Ini adalah halaman Home</h1>
<p>{{ $article }}</p>
</body>
</html> | 49,148 |
https://github.com/sass/embedded-host-node/blob/master/lib/src/request-tracker.test.ts | Github Open Source | Open Source | MIT | 2,023 | embedded-host-node | sass | TypeScript | Code | 289 | 880 | // Copyright 2020 Google Inc. Use of this source code is governed by an
// MIT-style license that can be found in the LICENSE file or at
// https://opensource.org/licenses/MIT.
import {RequestTracker} from './request-tracker';
describe('request tracker', () => {
let tracker: RequestTracker;
beforeEach(() => {
... | 6,329 |
https://github.com/Jocs/reading-notes/blob/master/c-programming-a-modern-approach/cp8/interest.c | Github Open Source | Open Source | MIT | 2,022 | reading-notes | Jocs | C | Code | 87 | 276 | #include <stdio.h>
#define NUM_RATES ((int) sizeof(values) / sizeof(values[0]))
#define INITIAL_BALANCE 100.0
int main(void)
{
double values[5];
int years, low_rate, i, j;
printf("Enter years:\n");
scanf("%d", &years);
printf("Enter low rate:\n");
scanf("%d", &low_rate);
printf("Years: ");
for (i = ... | 17,858 |
https://github.com/JayjeetAtGithub/spack/blob/master/var/spack/repos/builtin/packages/r-data-table/package.py | Github Open Source | Open Source | Apache-2.0, MIT, LicenseRef-scancode-unknown-license-reference, BSD-3-Clause, LGPL-2.1-only | 2,022 | spack | JayjeetAtGithub | Python | Code | 119 | 1,158 | # Copyright 2013-2022 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack.package import *
class RDataTable(RPackage):
"""Extension of `data.frame`.
Fast aggregation of large... | 46,696 |
https://github.com/ktkaushik/beta_invite/blob/master/beta_invite.gemspec | Github Open Source | Open Source | MIT | 2,018 | beta_invite | ktkaushik | Ruby | Code | 77 | 294 | $:.push File.expand_path("../lib", __FILE__)
# Maintain your gem's version:
require "beta_invite/version"
# Describe your gem and declare its dependencies:
Gem::Specification.new do |s|
s.name = "beta_invite"
s.version = BetaInvite::VERSION
s.platform = Gem::Platform::RUBY
s.licenses = ["MIT"... | 54,411 |
https://github.com/masanori840816/SetMaterialsFromGallery/blob/master/Binaries/iOS/Classes/Native/UnityEngine_UnityEngine_HorizontalWrapMode.h | Github Open Source | Open Source | MIT | 2,015 | SetMaterialsFromGallery | masanori840816 | C | Code | 23 | 113 | #pragma once
#include <stdint.h>
// System.Enum
#include "mscorlib_System_Enum.h"
// UnityEngine.HorizontalWrapMode
#include "UnityEngine_UnityEngine_HorizontalWrapMode.h"
// UnityEngine.HorizontalWrapMode
struct HorizontalWrapMode_t327
{
// System.Int32 UnityEngine.HorizontalWrapMode::value__
int32_t ___value___1;... | 34,200 |
https://github.com/l3dlp-sandbox/mort/blob/master/etc/mort.service | Github Open Source | Open Source | MIT | 2,023 | mort | l3dlp-sandbox | null | Spoken | 14 | 55 | [Unit]
Description=mort - A storage and image processing server
[Service]
ExecStart=/usr/local/bin/mort
Restart=on-abort
[Install]
WantedBy=multi-user.target | 18,667 |
https://github.com/imoyer/gestalt/blob/master/nodes.py | Github Open Source | Open Source | MIT | 2,020 | gestalt | imoyer | Python | Code | 2,998 | 8,430 | #----IMPORTS------------
import imp #for importing files as modules
import random
import threading
import time
import os
import urllib
import math
from gestalt.utilities import notice as notice
from gestalt import interfaces
from gestalt import functions
from gestalt import packets
from gestalt import utilities
from ge... | 395 |
https://github.com/zengfanmao/mpds/blob/master/VideoServer/libs/sofia-sip/libsofia-sip-ua/soa/soa_tag.c | Github Open Source | Open Source | FSFUL, LGPL-2.0-or-later, LGPL-2.1-only, MIT | 2,020 | mpds | zengfanmao | C | Code | 2,556 | 7,115 | /*
* This file is part of the Sofia-SIP package
*
* Copyright (C) 2005 Nokia Corporation.
*
* Contact: Pekka Pessi <pekka.pessi@nokia.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* as published by the Free Software F... | 30,238 |
https://github.com/nondejus/iced/blob/master/src/csharp/Intel/Generator/Decoder/Rust/EnumHashTableGen.cs | Github Open Source | Open Source | MIT | 2,020 | iced | nondejus | C# | Code | 352 | 1,262 | /*
Copyright (C) 2018-2019 de4dot@gmail.com
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distr... | 6,789 |
https://github.com/Arctos6135/StdPlug/blob/master/src/main/java/com/arctos6135/stdplug/api/datatypes/package-info.java | Github Open Source | Open Source | MIT | 2,020 | StdPlug | Arctos6135 | Java | Code | 66 | 148 | /**
* This package contains helpful classes that make it easier to send StdPlug
* data types over NetworkTables and put them on Shuffleboard.
* <p>
* Every class in this package corresponds to a data type in
* {@link com.arctos6135.stdplug.api.StdPlugDataTypes StdPlugDataTypes}. All
* classes in this package impl... | 28,455 |
https://github.com/kessler/darkmagic/blob/master/test/lib/returnFunction.js | Github Open Source | Open Source | MIT | 2,016 | darkmagic | kessler | JavaScript | Code | 12 | 29 | module.exports = function(dummy) {
return function returnFunction() {
return 1
}
} | 28,936 |
https://github.com/dBucik/pam_oauth2_device/blob/master/src/include/ldapquery.h | Github Open Source | Open Source | Apache-2.0 | 2,021 | pam_oauth2_device | dBucik | C | Code | 38 | 147 | #ifndef PAM_OAUTH2_DEVICE_LDAPQUERY_H
#define PAM_OAUTH2_DEVICE_LDAPQUERY_H
#define LDAPQUERY_ERROR -1
#define LDAPQUERY_TRUE 1
#define LDAPQUERY_FALSE 0
int ldap_check_attr(const char *host, const char *basedn,
const char *user, const char *passwd,
const char *filter, const ... | 28,723 |
https://github.com/BinarySerializer/BinarySerializer.GBA/blob/master/src/GBA/Encoding/BaseEncoder.cs | Github Open Source | Open Source | MIT | null | BinarySerializer.GBA | BinarySerializer | C# | Code | 196 | 499 | using System;
using System.IO;
namespace BinarySerializer.Nintendo.GBA
{
public abstract class BaseEncoder : IStreamEncoder
{
protected virtual byte HeaderValue => 0;
public abstract int ID { get; }
public abstract string Name { get; }
protected abstract void DecodeStream(Rea... | 52,027 |
https://github.com/kas1e/Eldritch/blob/master/Code/Projects/Eldritch/src/SDPs/sdpeldworld.h | Github Open Source | Open Source | Zlib | null | Eldritch | kas1e | C | Code | 33 | 131 | #ifndef SDPELDWORLD_H
#define SDPELDWORLD_H
#include "SDPs/sdpbase.h"
class SDPEldWorld : public SDPBase {
public:
SDPEldWorld();
virtual ~SDPEldWorld();
DEFINE_SDP_FACTORY(EldWorld);
virtual void SetShaderParameters(IRenderer* const pRenderer,
Mesh* const pMesh, const Vi... | 24,205 |
https://github.com/caebwallace/caeb-providers/blob/master/dist/clients/binance/lib/utils/formatTickerInfo.js | Github Open Source | Open Source | MIT | null | caeb-providers | caebwallace | JavaScript | Code | 224 | 616 | 'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
exports.formatTickerInfo = void 0;
const numbers_1 = require('../../../../utils/numbers/numbers');
const formatTickerInfo = asset => {
var _a, _b, _c, _d;
const filterPrice = (_a = asset.filters) === null || _a === void 0 ? void 0 : _a... | 33,799 |
https://github.com/timpatric/united-front/blob/master/UFT-PARTY/app/Http/Controllers/SalaryController.php | Github Open Source | Open Source | MIT | null | united-front | timpatric | PHP | Code | 63 | 226 | <?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\DB;
class SalaryController extends Controller
{
/**
* Create a new controller instance.
*
* @return void
*/
public function __construct()
{
$this->middleware('auth');
}
/... | 17,912 |
https://github.com/ThiagoRodrigues18/Sistema-da-igreja-paraiso/blob/master/Igreja-paraiso/src/main/java/br/com/igrejaparaiso/Igrejaparaiso/enums/Perfil.java | Github Open Source | Open Source | MIT | 2,021 | Sistema-da-igreja-paraiso | ThiagoRodrigues18 | Java | Code | 9 | 40 | package br.com.igrejaparaiso.Igrejaparaiso.enums;
public enum Perfil {
ADMIN, USER;
}
| 20,573 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.