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/brendandburns/c/blob/master/kubernetes/model/v1beta1_priority_level_configuration_reference.h | Github Open Source | Open Source | Apache-2.0, curl | 2,022 | c | brendandburns | C | Code | 62 | 431 | /*
* v1beta1_priority_level_configuration_reference.h
*
* PriorityLevelConfigurationReference contains information that points to the \"request-priority\" being used.
*/
#ifndef _v1beta1_priority_level_configuration_reference_H_
#define _v1beta1_priority_level_configuration_reference_H_
#include <string... | 26,186 |
https://github.com/parrot-mirror/parrot/blob/master/include/parrot/dod.h | Github Open Source | Open Source | Artistic-2.0 | 2,008 | parrot | parrot-mirror | C | Code | 714 | 3,157 | /* dod.h
* Copyright (C) 2001-2007, The Perl Foundation.
* SVN Info
* $Id$
* Overview:
* Handles dead object destruction of the various headers
* History:
* Initial version by Mike Lambert on 2002.05.27
*/
#ifndef PARROT_DOD_H_GUARD
#define PARROT_DOD_H_GUARD
#include "parrot/parrot.h"
/* Mac... | 12,093 |
https://github.com/394771176/WCPlugin/blob/master/WCPlugin/Classes/WCDebug/WCDebug.h | Github Open Source | Open Source | MIT | null | WCPlugin | 394771176 | C | Code | 35 | 146 | //
// WCDebug.h
// Pods
//
// Created by cheng on 2021/2/20.
//
#ifndef WCDebug_h
#define WCDebug_h
#import "DTDebugManager.h"
#import "DTDebugLogInfoView.h"
#import "DTDebugViewController.h"
#import "DTDebugFileController.h"
#import "DTDebugPlistController.h"
#import "DTDebugTextController.h"
#import "JPFPSStatu... | 20,540 |
https://github.com/Servoy/svySearch/blob/master/svySearch/svySearch.js | Github Open Source | Open Source | MIT | 2,016 | svySearch | Servoy | JavaScript | Code | 5,170 | 14,542 | /**
* Constants used for string matching behavior on individual SearchProviders
*
* @public
* @enum
* @see SearchProvider.setStringMatching
* @see SearchProvider.getStringMatching
*
* @properties={typeid:35,uuid:"5732D489-8FD9-4F08-9A18-9F55181B820D",variableType:-4}
*/
var STRING_MATCHING = {
CONTAINS :... | 49,343 |
https://github.com/aruninfrrd/jetter/blob/master/pom.xml | Github Open Source | Open Source | MIT | 2,016 | jetter | aruninfrrd | null | Spoken | 161 | 1,483 | <?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.c... | 25,297 |
https://github.com/bayurahmadazhari/campus-locations-in-bandung-ci/blob/master/application/views/form_edit_server.php | Github Open Source | Open Source | MIT | null | campus-locations-in-bandung-ci | bayurahmadazhari | PHP | Code | 156 | 690 | <?php
$id = $server->id;
if($this->input->post('is_submitted')){
$site = set_value('site');
$port = set_value('port');
}else{
$site = $server->site;
$port = $server->port;
}
?>
<?php $this->load->view('header') ?>
<div class="page-header container-fluid">
<div class="col-lg-12">
<h2>Ubah Server</... | 38,029 |
https://github.com/ejsmith/InstructorIQ/blob/master/client/src/main.ts | Github Open Source | Open Source | Apache-2.0 | 2,022 | InstructorIQ | ejsmith | TypeScript | Code | 92 | 387 | /// <reference types="aurelia-loader-webpack/src/webpack-hot-interface"/>
import '@fortawesome/fontawesome-free/scss/fontawesome.scss'
import '@fortawesome/fontawesome-free/scss/solid.scss'
import '@fortawesome/fontawesome-free/scss/brands.scss'
import './scss/site.scss';
import 'isomorphic-fetch';
import { Aurelia ... | 32,730 |
https://github.com/EVATool/evatool-backend/blob/master/src/main/java/com/evatool/application/service/impl/LoginAttemptServiceImpl.java | Github Open Source | Open Source | MIT | null | evatool-backend | EVATool | Java | Code | 129 | 442 | package com.evatool.application.service.impl;
import com.evatool.application.service.api.LoginAttemptService;
import com.google.common.cache.CacheBuilder;
import com.google.common.cache.CacheLoader;
import com.google.common.cache.LoadingCache;
import org.springframework.stereotype.Service;
import java.util.concurrent... | 33,197 |
https://github.com/riidefi/ogws/blob/master/src/nw4r/snd/snd_FxDelay.cpp | Github Open Source | Open Source | MIT | 2,022 | ogws | riidefi | C++ | Code | 226 | 1,060 | #pragma ipa file
#include "snd_FxDelay.h"
#include "ut_algorithm.h"
namespace nw4r
{
using namespace ut;
namespace snd
{
using namespace detail;
FxDelay::FxDelay()
{
DelayParam delayParam = { 160.0f, 0.4f, 1.0f }; // at 0x10
SetParam(delayParam);
}
u32 FxDelay::GetRequiredMemSize()
{
re... | 3,950 |
https://github.com/lemonce3/pmc/blob/master/src/index.js | Github Open Source | Open Source | MIT | null | pmc | lemonce3 | JavaScript | Code | 265 | 799 | const utils = require('./utils');
const DEFAULT_REQUEST_TIMEOUT = 30000;
const established = {};
const channelRegistry = exports.channelRegistry = {};
function resolveEstablished(id, response, statusCode) {
const connection = established[id];
if (connection) {
const { resolve, reject, timeout, datagram } = conne... | 17,563 |
https://github.com/farivarfarsiann/MafiaToolkit/blob/master/Mafia2Libs/ResourceTypes/FileTypes/Prefab/CrashObject/S_InitJointSet.cs | Github Open Source | Open Source | MIT | 2,018 | MafiaToolkit | farivarfarsiann | C# | Code | 1,601 | 5,150 | using BitStreams;
using System;
using System.ComponentModel;
using System.Diagnostics;
using Utils.Extensions;
using Vortice.Mathematics;
namespace ResourceTypes.Prefab.CrashObject
{
[Flags]
public enum S_InitJointSet_Flags : uint
{
ANGULAR_FREE_X = 0x1,
ANGULAR_FREE_Y = 0x2,
ANGUL... | 35,314 |
https://github.com/rajanutanix/sails/blob/master/node_modules/waterline/node_modules/anchor/node_modules/geojsonhint/bin/geojsonhint | Github Open Source | Open Source | MIT, BSD-3-Clause | 2,018 | sails | rajanutanix | JavaScript | Code | 93 | 352 | #!/usr/bin/env node
var fs = require('fs'),
path = require('path'),
geojsonhint = require('../'),
colors = require('colors'),
concat = require('concat-stream'),
argv = require('minimist')(process.argv.slice(2), { boolean: 'json' });
if (process.stdin.isTTY && !argv._[0]) {
process.stdout.writ... | 14,249 |
https://github.com/debugview/openrasp/blob/master/agent/php7/openrasp_log.h | Github Open Source | Open Source | Apache-2.0 | 2,019 | openrasp | debugview | C | Code | 485 | 1,780 | /*
* Copyright 2017-2019 Baidu 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... | 8,140 |
https://github.com/qmsheng/game_bi/blob/master/script/node_modules/rctui/themes/mixins/arrow.less | Github Open Source | Open Source | MIT | 2,019 | game_bi | qmsheng | Less | Code | 217 | 700 | .arrow(@size; @width: 1px;) {
&:before, &:after {
content: ' ';
position: absolute;
width: 0;
height: 0;
border: solid transparent;
}
&:after {
border-width: @size - 1px;
}
&:before {
border-width: @size;
}
}
.arrow-up(@size; @color; @background-color; @inner: false; @width: 1... | 45,663 |
https://github.com/venomShakib/wantsbro_admin/blob/master/lib/Pages/Drawer menu pages/users/view_user.dart | Github Open Source | Open Source | MIT | null | wantsbro_admin | venomShakib | Dart | Code | 122 | 482 | import 'package:flutter/material.dart';
class ViewUser extends StatelessWidget {
final Map userDetails;
const ViewUser({Key key, @required this.userDetails}) : super(key: key);
@override
Widget build(BuildContext context) {
String dateOfBirth = "${userDetails["dateOfBirth"]?.toDate() ?? "Not Set"}";
r... | 20,098 |
https://github.com/google/conscrypt/blob/master/common/src/main/java/org/conscrypt/ct/CTLogInfo.java | Github Open Source | Open Source | Apache-2.0 | 2,023 | conscrypt | google | Java | Code | 458 | 1,132 | /*
* Copyright (C) 2015 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 app... | 53,140 |
https://github.com/Mozilla-GitHub-Standards/72ea2fa03f1d2cc0c69db021797b9a0e4860045d6262f9d78d369319aec78f9b/blob/master/mozetl/engagement/churn/schema.py | Github Open Source | Open Source | MIT | null | 72ea2fa03f1d2cc0c69db021797b9a0e4860045d6262f9d78d369319aec78f9b | Mozilla-GitHub-Standards | Python | Code | 309 | 991 | from pyspark.sql.types import DoubleType, LongType, StringType, StructField, StructType
churn_schema = StructType(
[
StructField(
"channel",
StringType(),
True,
metadata={"description": "The application update channel."},
),
StructField(
... | 35,580 |
https://github.com/Bf05nua/dosenet-analysis/blob/master/Programming Lesson Modules/Module 1- Import Local CSVs.py | Github Open Source | Open Source | MIT | 2,020 | dosenet-analysis | Bf05nua | Python | Code | 362 | 623 | """
@author: Radley Rigonan
This is an example of reading and importing .CSV files stored in your device onto Python. Comma separated values (.CSV) is a filetype that stores tabular data in plaintext. It is a widely standard format used in spreadsheets, data storage, and data exchange.
In this module, I will be usin... | 23,974 |
https://github.com/Casimir-DJKO/enketo-xslt/blob/master/test/xslt.spec.js | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-unknown-license-reference | 2,019 | enketo-xslt | Casimir-DJKO | JavaScript | Code | 67 | 153 | /* eslint-env mocha */
const sheets = require( '../index' );
const assert = require( 'assert' );
describe( 'sheets', () => {
it( 'should return an xslForm sheet', () => {
assert.equal( typeof sheets.xslForm, 'string' );
assert.equal( sheets.xslForm.length > 0, true );
} );
it( 'should re... | 5,545 |
https://github.com/chamow97/Algorithm-DS-Library/blob/master/C++/Graph Algorithms/Flyod Warshall.cpp | Github Open Source | Open Source | MIT | 2,020 | Algorithm-DS-Library | chamow97 | C++ | Code | 148 | 590 | #include <iostream>
using namespace std;
void floydWarshall(int graph[100][100], int n, int e)
{
int i,j,k;
for(k=0; k<=n; k++)
{
for(i=0; i<=n; i++)
{
for(j=0; j<=n; j++)
{
if(graph[i][k] + graph[k][j] < graph[i][j])
{
graph[i][j] = graph[i][k] + graph[k][j];
}
}
}
}
bool isNegati... | 46,590 |
https://github.com/cerberuz/OAC/blob/master/vendor/slim/slim/tests/MiddlewareTest.php | Github Open Source | Open Source | MIT | 2,018 | OAC | cerberuz | PHP | Code | 312 | 730 | <?php
/**
* Slim - a micro PHP 5 framework
*
* @author Josh Lockhart <info@slimframework.com>
* @copyright 2011 Josh Lockhart
* @link http://www.slimframework.com
* @license http://www.slimframework.com/license
* @version 2.4.2
*
* MIT LICENSE
*
* Permission is hereby granted, free of c... | 5,575 |
https://github.com/mgarridon/carro33/blob/master/db/migrate/20181125224912_fk_products.rb | Github Open Source | Open Source | MIT | null | carro33 | mgarridon | Ruby | Code | 15 | 53 | class FkProducts < ActiveRecord::Migration[5.2]
def change
add_foreign_key :products, :types, column: :id_tipo, primary_key: :id
end
end
| 31,951 |
https://github.com/Cornutum/tcases/blob/master/tcases-moco/src/main/java/org/cornutum/tcases/openapi/moco/CertConfigFile.java | Github Open Source | Open Source | MIT | 2,023 | tcases | Cornutum | Java | Code | 204 | 598 | //////////////////////////////////////////////////////////////////////////////
//
// Copyright 2020, Cornutum Project
// www.cornutum.org
//
//////////////////////////////////////////////////////////////////////////////
package org.cornutum.tcases.openapi.moco;
import o... | 52,813 |
https://github.com/niconi21/Frontend-Portana/blob/master/src/app/services/auth.service.ts | Github Open Source | Open Source | MIT | null | Frontend-Portana | niconi21 | TypeScript | Code | 225 | 871 | import { HttpClient } from "@angular/common/http";
import { Injectable, NgZone } from "@angular/core";
import { tap } from "rxjs/operators";
import { environment } from "../../environments/environment";
import { UsuarioModel } from "../intefaces/usuario.interface";
import { Router } from "@angular/router";
import { Dat... | 16,340 |
https://github.com/hiltonbruce/Igreja/blob/master/adm/cad_ecles.php | Github Open Source | Open Source | MIT | 2,023 | Igreja | hiltonbruce | PHP | Code | 203 | 1,588 | <?php
if (empty($_SESSION['valid_user']))
header("Location: ../");
?>
<script type="text/JavaScript">
<!--
function MM_jumpMenu(targ,selObj,restore){ //v3.0
eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
if (restore) selObj.selectedIndex=0;
}
//-->
</script>
<fieldset>
<legend>Dados Ecle... | 1,247 |
https://github.com/AjayTester1/webpack-helloworld/blob/master/src/main.js | Github Open Source | Open Source | Apache-2.0 | 2,021 | webpack-helloworld | AjayTester1 | JavaScript | Code | 22 | 61 | // Styles
import './scss/styles.scss';
// Main app
import App from './App';
document.addEventListener('DOMContentLoaded', () => {
const app = new App('app');
app.init();
})
| 54,199 |
https://github.com/pdxjohnny/tpm2-pytss/blob/master/tests/test_esys_get_random.py | Github Open Source | Open Source | BSD-2-Clause | null | tpm2-pytss | pdxjohnny | Python | Code | 81 | 476 | import random
from contextlib import ExitStack
from tpm2_pytss.binding import *
from tpm2_pytss.esys import InvalidArgumentError
from .base_esys import BaseTestESYS
class TestGetRandom(BaseTestESYS):
def test_random_length(self):
length = random.randint(8, 32)
array = self.esys_ctx.get_random(l... | 51,789 |
https://github.com/MrMamen/traktNRK/blob/master/tests/popup/components/info-test.js | Github Open Source | Open Source | MIT | 2,020 | traktNRK | MrMamen | JavaScript | Code | 95 | 431 | var React = require('react/addons');
var Info = require('../../../app/scripts/src/popup/components/info');
var TestUtils = React.addons.TestUtils;
var messages = ['Info Message', 'About Message'];
var info = TestUtils.renderIntoDocument(<Info messages={messages} />);
describe('Info', function() {
beforeEach(function... | 28,314 |
https://github.com/rpeshkov/alfred-checkvist/blob/master/Makefile | Github Open Source | Open Source | MIT | 2,021 | alfred-checkvist | rpeshkov | Makefile | Code | 35 | 147 | .PHONY: all
all: dist/alfred-checkvist.alfredworkflow
.PHONY: build
build: target/release/alfred-checkvist
.PHONY: clean
clean:
@rm -rf dist
@rm -rf target/release
target/release/alfred-checkvist: src/main.rs
cargo build --release
strip $@
dist/alfred-checkvist.alfredworkflow: target/release/alfred-checkvist wo... | 5,472 |
https://github.com/Pulsant/vmware-vcloud-sdk-php-patched/blob/master/library/VMware/VCloud/SDK/Factory.php | Github Open Source | Open Source | CC-BY-3.0 | 2,020 | vmware-vcloud-sdk-php-patched | Pulsant | PHP | Code | 923 | 4,299 | <?php
class VMware_VCloud_SDK_Factory extends VMware_VCloud_SDK_Abstract
{
protected static $typeMap = array (
VMware_VCloud_SDK_Constants::ORG_REFERENCE_CONTENT_TYPE => 'Org',
VMware_VCloud_SDK_Constants::VDC_CONTENT_TYPE => 'Vdc',
VMware_VCloud_SDK_Constants::VAPP_CONTENT_TYPE => 'VApp',
... | 4,908 |
https://github.com/isabella232/OmniXAML/blob/master/TestApplications/XamlViewer/InstanceNodeViewModel.cs | Github Open Source | Open Source | MIT | 2,022 | OmniXAML | isabella232 | C# | Code | 112 | 329 | namespace XamlViewer
{
using System.Collections;
using System.Collections.ObjectModel;
using System.Reflection;
using OmniXaml.Services.Mvvm;
public class InstanceNodeViewModel : ViewModel
{
private bool isExpanded;
public InstanceNodeViewModel(object data)
{
... | 28,668 |
https://github.com/jiangyuang/ModelPruningLibrary/blob/master/mpl/models/squeezenet.py | Github Open Source | Open Source | MIT | 2,021 | ModelPruningLibrary | jiangyuang | Python | Code | 76 | 319 | import torch
import torchvision.models
from typing import Any
from .base_model import BaseModel
class SqueezeNet(BaseModel):
def __init__(self, model: torchvision.models.SqueezeNet):
super(SqueezeNet, self).__init__()
self.clone_from_model(model)
self.process_layers()
def process_lay... | 1,595 |
https://github.com/treblereel/gwt-widgets/blob/master/gwt-widgets/src/main/java/org/gwtproject/user/client/ui/NativeHorizontalScrollbar_ResourcesImpl.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | gwt-widgets | treblereel | Java | Code | 136 | 507 | package org.gwtproject.user.client.ui;
import org.gwtproject.resources.client.ResourcePrototype;
public class NativeHorizontalScrollbar_ResourcesImpl implements NativeHorizontalScrollbar.Resources {
private static NativeHorizontalScrollbar_ResourcesImpl _instance0 = new NativeHorizontalScrollbar_ResourcesImpl();
... | 27,545 |
https://github.com/Pandinosaurus/ign-rendering/blob/master/include/ignition/rendering/Camera.hh | Github Open Source | Open Source | Apache-2.0 | 2,021 | ign-rendering | Pandinosaurus | C++ | Code | 1,942 | 3,510 | /*
* Copyright (C) 2015 Open Source Robotics Foundation
*
* 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 appl... | 46,810 |
https://github.com/charliewilco/downwrite/blob/master/src/editor/index.ts | Github Open Source | Open Source | MIT | 2,022 | downwrite | charliewilco | TypeScript | Code | 40 | 84 | export * from "./checklist";
export * from "./constants";
export * from "./create-editor-props";
export * from "./decorators";
export * from "./editor";
export * from "./hooks";
export * from "./modifiers";
export * from "./multidecorator";
export * from "./prism";
export * from "./raw";
| 5,960 |
https://github.com/gd1m3y/Learning_Platform/blob/master/frontend/src/components/PopUp.jsx | Github Open Source | Open Source | Apache-2.0 | null | Learning_Platform | gd1m3y | null | Spoken | 45 | 160 | import { useNavigate } from 'react-router-dom';
import './PopUp.css';
function PopUp(props) {
const navigate=useNavigate();
const LoginNav = () => {
props.setTrigger(false);
navigate('/login');
}
return (props.trigger) ? (
<div className="popup">
<div className="pop... | 50,033 |
https://github.com/okfn/datafortaxjustice/blob/master/source/css/_home.scss | Github Open Source | Open Source | MIT | 2,022 | datafortaxjustice | okfn | SCSS | Code | 401 | 1,424 | html {
overflow-x: hidden;
}
body {
& > header {
background-color: $red;
color: #fff;
padding-top: $base-spacing;
padding-bottom: $base-spacing;
a {
color: inherit;
}
$hastagheight: 140px;
& > section {
@include outer-conta... | 39,187 |
https://github.com/aaarsene/o3de/blob/master/Gems/GraphCanvas/Code/StaticLib/GraphCanvas/Components/NodePropertyDisplay/AssetIdDataInterface.h | Github Open Source | Open Source | Apache-2.0, MIT | 2,021 | o3de | aaarsene | C | Code | 76 | 188 | /*
* Copyright (c) Contributors to the Open 3D Engine Project. For complete copyright and license terms please see the LICENSE at the root of this distribution.
*
* SPDX-License-Identifier: Apache-2.0 OR MIT
*
*/
#pragma once
#include <GraphCanvas/Components/NodePropertyDisplay/DataInterface.h>
namespace GraphC... | 12,499 |
https://github.com/github/codeql-action/blob/master/node_modules/@azure/logger/dist-esm/src/log.browser.js | Github Open Source | Open Source | MIT, LicenseRef-scancode-unknown-license-reference | 2,023 | codeql-action | github | JavaScript | Code | 55 | 188 | // Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
export function log(...args) {
if (args.length > 0) {
const firstArg = String(args[0]);
if (firstArg.includes(":error")) {
console.error(...args);
}
else if (firstArg.includes(":warning")) {
... | 54,293 |
https://github.com/Bloodl1neZ/vk-analytics-client/blob/master/src/components/results/ResultUserListView.jsx | Github Open Source | Open Source | MIT | null | vk-analytics-client | Bloodl1neZ | null | Spoken | 54 | 189 | import React from 'react';
import PropTypes from 'prop-types';
export const ResultUserListView = ({users, id}) => {
return users.map(({user, likedPhotos, likedPosts}) => {
const total = likedPosts.length + likedPhotos.length;
const extendLink = `/extendedResult/${id}/${user.id}`;
return (
<div ke... | 40,428 |
https://github.com/arynas/sinthesis/blob/master/resources/views/conselings/index.blade.php | Github Open Source | Open Source | MIT | 2,016 | sinthesis | arynas | Blade | Code | 690 | 3,723 | @extends('main.index')
@section('content')
<div class="row">
<div class="col-lg-12">
@if(Auth::user()->role == 'student')
<h1 class="page-header">Bimbingan</h1>
@elseif(Auth::user()->role == 'lecturer')
<h1 class="page-header">Daftar Bimbingan</h1>
... | 19,208 |
https://github.com/flyingImer/disco/blob/master/disco-java-agent-example/src/main/java/software/amazon/disco/agent/example/Agent.java | Github Open Source | Open Source | Apache-2.0, BSD-3-Clause | 2,019 | disco | flyingImer | Java | Code | 280 | 596 | /*
* Copyright 2019 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://www.apache.org/licenses/LICENSE-2.0
*
... | 34,969 |
https://github.com/DBX12/password-manager-connection/blob/master/tests/TestCase.php | Github Open Source | Open Source | MIT | 2,020 | password-manager-connection | DBX12 | PHP | Code | 364 | 922 | <?php
namespace particleflux\PMConnection\tests;
abstract class TestCase extends \PHPUnit\Framework\TestCase
{
protected $oldPath;
public function setUp() : void
{
$this->oldPath = getenv('PATH');
$supportDir = __DIR__ . '/_support';
putenv("PATH=$supportDir:{$this->oldPath}");
... | 37,414 |
https://github.com/aadi30thakur/mern-website/blob/master/routes/auth.js | Github Open Source | Open Source | MIT | 2,021 | mern-website | aadi30thakur | JavaScript | Code | 125 | 327 | var express = require("express");
var router = express.Router();
const { check } = require("express-validator");
const { signout, signup, signin, isSigneddIn } = require("../controllers/auth");
//__________________________to send a messsage as a string ___________________
// const signout = (req, res) => {
// re... | 7,996 |
https://github.com/henryZe/toynix/blob/master/kernel/Makefile | Github Open Source | Open Source | MIT | 2,019 | toynix | henryZe | Makefile | Code | 291 | 1,327 | KERN_LDFLAGS := $(LDFLAGS) -T $(KERNDIR)/kernel.ld -nostdlib
# entry.S must be first, so that it's the first code in the text segment!
#
# We also snatch the use of a couple handy source files
# from the lib directory, to avoid gratuitous code duplication.
KERN_SRCFILES := \
$(KERNDIR)/entry.S \
$(KERNDIR)/entry_p... | 31,273 |
https://github.com/warmchang/zke-lite/blob/master/Makefile | Github Open Source | Open Source | Apache-2.0 | 2,022 | zke-lite | warmchang | Makefile | Code | 63 | 362 | export GO111MODULE=on
BIN_NAME=zkelite
OUTPUT_DIR=_output
OPENAPI_GEN=openapi-gen
all: build
openapi:
mkdir ${OUTPUT_DIR}
go build -mod vendor -x -o ${OUTPUT_DIR}/${OPENAPI_GEN} ./vendor/k8s.io/kube-openapi/cmd/openapi-gen/
mkdir -p ./k8s.io/kube-openapi/boilerplate/
cp ./boilerplate.go.txt ./k8s.io/kube-openapi/... | 37,970 |
https://github.com/dhtech/fboss/blob/master/fboss/agent/hw/bcm/BcmStatUpdater.h | Github Open Source | Open Source | BSD-3-Clause | 2,018 | fboss | dhtech | C | Code | 281 | 714 | /*
* Copyright (c) 2004-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*/
#pra... | 54,562 |
https://github.com/xxoolm/Thanox-1/blob/master/android/third_party/apkbuilder/src/main/java/pxb/android/axml/Util.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | Thanox-1 | xxoolm | Java | Code | 297 | 720 | /*
* Copyright (c) 2009-2013 Panxiaobo
*
* 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 ag... | 27,916 |
https://github.com/pravgupt/aws-sdk-js-v3/blob/master/clients/node/client-cognito-identity-provider-node/types/_CompromisedCredentialsActionsType.ts | Github Open Source | Open Source | Apache-2.0 | null | aws-sdk-js-v3 | pravgupt | TypeScript | Code | 30 | 93 | /**
* <p>The compromised credentials actions type</p>
*/
export interface _CompromisedCredentialsActionsType {
/**
* <p>The event action.</p>
*/
EventAction: "BLOCK" | "NO_ACTION" | string;
}
export type _UnmarshalledCompromisedCredentialsActionsType = _CompromisedCredentialsActionsType;
| 17,840 |
https://github.com/A12134/Hope/blob/master/Hope/sprite.cpp | Github Open Source | Open Source | Apache-2.0 | null | Hope | A12134 | C++ | Code | 157 | 753 | #include "sprite.h"
const float sprite::quadPlane[] =
{
// pos // Tex
0.0f, 1.0f, 0.0f, 1.0f,
1.0f, 0.0f, 1.0f, 0.0f,
0.0f, 0.0f, 0.0f, 0.0f,
0.0f, 1.0f, 0.0f, 1.0f,
1.0f, 1.0f, 1.0f, 1.0f,
1.0f, 0.0f, 1.0f, 0.0f
};
sprite::sprite()
{
glGenVertexArrays(1, &VAO);
glGenBuffers(1, &VBO);
glBindBuffer(GL_AR... | 4,257 |
https://github.com/ScientiaNova/Palm/blob/master/src/main/kotlin/com/palmlang/palm/parser/Parser.kt | Github Open Source | Open Source | Apache-2.0 | 2,020 | Palm | ScientiaNova | Kotlin | Code | 622 | 1,709 | package com.palmlang.palm.parser
import com.palmlang.palm.lexer.Token
import com.palmlang.palm.parser.ast.*
import com.palmlang.palm.util.*
fun List<Token>.nextIndex(index: Int) = nextIndexRec(index + 1)
fun List<Token>.nextActual(after: Int) = this[nextIndexRec(after + 1)]
private tailrec fun List<Token>.nextIndex... | 43,588 |
https://github.com/andrecarrenholopes/retwis-TEBD/blob/master/timeline.php | Github Open Source | Open Source | BSD-3-Clause | null | retwis-TEBD | andrecarrenholopes | PHP | Code | 27 | 108 | <?
include("retwis.php");
include("header.php");
?>
<h2>Timeline</h2>
<i>Últimos usuários registrados (exemplo de sorted sets)</i><br>
<?
showLastUsers();
?>
<i>Últimas 50 mensagens dos usuários do mundo todo!</i><br>
<?
showUserPosts(-1,0,50);
include("footer.php")
?>
| 39,927 |
https://github.com/scalatest/scalatestplus-junit/blob/master/src/main/scala-3/org/scalatestplus/junit/VersionSpecificAssertionsForJUnit.scala | Github Open Source | Open Source | Apache-2.0 | 2,023 | scalatestplus-junit | scalatest | Scala | Code | 101 | 388 | package org.scalatestplus.junit
import org.scalactic.{Prettifier, source}
import org.scalatest.{Assertions, AssertionsMacro}
import org.scalatest.compatible.Assertion
trait VersionSpecificAssertionsForJUnit extends Assertions {
// https://github.com/lampepfl/dotty/pull/8601#pullrequestreview-380646858
implicit ob... | 21,509 |
https://github.com/HelloCodeMing/ToySTL/blob/master/algorithm/partition/partition_point.cc | Github Open Source | Open Source | MIT | 2,015 | ToySTL | HelloCodeMing | C++ | Code | 75 | 205 | #include <predef.hpp>
template <class Iter, class Pred>
Iter partition_point(Iter first, Iter last, Pred pred) {
while (first != last && pred(*first))
++first;
return first;
}
int main() {
std::vector<int> vec = {4, 6, 8, 1, 2, 5, 7, 3 };
std::partition(vec.begin(), vec.end(), [](int x) { ... | 14,464 |
https://github.com/gnat42/data-import/blob/master/tests/Reader/DoctrineReaderTest.php | Github Open Source | Open Source | MIT | 2,022 | data-import | gnat42 | PHP | Code | 124 | 555 | <?php
namespace Ddeboer\DataImport\Tests\Reader;
use Ddeboer\DataImport\Reader\DoctrineReader;
use Doctrine\ORM\EntityManager;
use Doctrine\ORM\Tools\Setup;
use Ddeboer\DataImport\Tests\Fixtures\Entity\User;
class DoctrineReaderTest extends \PHPUnit_Framework_TestCase
{
public function testGetFields()
{
... | 28,855 |
https://github.com/omaralbeik/omaralbeik.com-client/blob/master/components/snippet-cell/_styled.js | Github Open Source | Open Source | MIT | 2,019 | omaralbeik.com-client | omaralbeik | JavaScript | Code | 167 | 568 | import styled from "styled-components";
import { Container, Col, Badge } from "reactstrap";
import { sm } from "styles/breakpoints";
export const _Col = styled(Col)`
padding: 12px;
@media (${sm}) {
padding: 12px 15px;
}
`;
export const _Container = styled(Container)`
position: relative;
background-color... | 23,898 |
https://github.com/Trismegiste/little-wikitext/blob/master/.phan/stubs/SyntaxError.php | Github Open Source | Open Source | MIT | 2,021 | little-wikitext | Trismegiste | PHP | Code | 11 | 28 | <?php
namespace WikiPEG;
class SyntaxError extends \Exception implements \JsonSerializable {
}
| 22,920 |
https://github.com/AlexanderPrendota/kotlin-samples-verifier/blob/master/kotlin-samples-verifier/src/main/kotlin/com/samples/verifier/internal/utils/UserFilterHelper.kt | Github Open Source | Open Source | Apache-2.0 | 2,021 | kotlin-samples-verifier | AlexanderPrendota | Kotlin | Code | 459 | 1,326 | package com.samples.verifier.internal.utils
import com.github.h0tk3y.betterParse.combinators.*
import com.github.h0tk3y.betterParse.grammar.Grammar
import com.github.h0tk3y.betterParse.grammar.parseToEnd
import com.github.h0tk3y.betterParse.grammar.parser
import com.github.h0tk3y.betterParse.lexer.literalToken
import ... | 18,123 |
https://github.com/aditya-manit/Antlia-Explorer/blob/master/imports/ui/components/SearchBar.jsx | Github Open Source | Open Source | Apache-2.0 | 2,019 | Antlia-Explorer | aditya-manit | JavaScript | Code | 181 | 675 | import React, { Component } from "react";
import { Input, InputGroup, InputGroupAddon, Button } from "reactstrap";
export default class SearchBar extends Component {
constructor(props) {
super(props);
this.state = {
queryString: ""
};
}
redirectSearchResult = query => {
let hashRegEx = new... | 49,064 |
https://github.com/iBobbyTS/VSR/blob/master/SRers/__init__.py | Github Open Source | Open Source | Apache-2.0 | null | VSR | iBobbyTS | Python | Code | 12 | 32 | from .EDVR import SRer
from .ESRGAN import SRer
__all__ = ('EDVR', 'ESRGAN')
| 38,231 |
https://github.com/jeremyBanks/zig_with_cargo/blob/master/crates/zig_build_bin_windows_x86_64/zig-windows-x86_64-0.5.0+80ff549e2/lib/zig/libc/musl/src/passwd/pwf.h | Github Open Source | Open Source | LicenseRef-scancode-other-permissive, LicenseRef-scancode-public-domain, BSD-2-Clause, BSD-3-Clause, LicenseRef-scancode-musl-exception, MIT | 2,020 | zig_with_cargo | jeremyBanks | C | Code | 95 | 273 | #include <pwd.h>
#include <grp.h>
#include <shadow.h>
#include <stdio.h>
#include <errno.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <limits.h>
hidden int __getpwent_a(FILE *f, struct passwd *pw, char **line, size_t *size, struct passwd **res);
hidden int __getpw_a(const char *name, uid_t u... | 38,222 |
https://github.com/Geek2017/mybk/blob/master/js-spot-the-difference-master/public/js/utils/between.js | Github Open Source | Open Source | Apache-2.0 | 2,017 | mybk | Geek2017 | JavaScript | Code | 27 | 56 | define(function () {
'use strict';
return function between(value, min, max) {
return value < min
? min
: (value > max
? max : value)
}
});
| 13,296 |
https://github.com/liuwenfeng67/zerg/blob/master/application/api/validate/AddressNew.php | Github Open Source | Open Source | Apache-2.0 | null | zerg | liuwenfeng67 | PHP | Code | 62 | 232 | <?php
namespace app\api\validate;
use app\api\validate\BaseValidate;
/**
*
*/
class AddressNew extends BaseValidate
{
protected $rule = [
'name' => 'require|isNotEmpty',
// 'mobile' => 'require|isMobile',
'mobile' => 'require',
'province' => 'require|isNotEmpty',
'city' => 'require|isNotEmpty',
'country... | 39,528 |
https://github.com/zhujiang73/pytorch_mingw/blob/master/torch/csrc/api/include/torch/nn/options/upsampling.h | Github Open Source | Open Source | BSD-2-Clause | 2,020 | pytorch_mingw | zhujiang73 | C++ | Code | 434 | 1,228 | #pragma once
#include <c10/util/variant.h>
#include <torch/arg.h>
#include <torch/enum.h>
#include <torch/csrc/WindowsTorchApiMacro.h>
#include <torch/expanding_array.h>
#include <torch/types.h>
#include <vector>
namespace torch {
namespace nn {
/// Options for the `Upsample` module.
///
/// Example:
/// ```
/// Up... | 42,692 |
https://github.com/enobayram/OrxAnimationEditor/blob/master/src/main/java/orxanimeditor/ui/mainwindow/TimeInfoProxy.java | Github Open Source | Open Source | WTFPL | 2,015 | OrxAnimationEditor | enobayram | Java | Code | 54 | 157 | package orxanimeditor.ui.mainwindow;
import java.util.Timer;
import java.util.TimerTask;
// FIXME: Apparently, this class is not fully implemented
public class TimeInfoProxy extends TimerTask{
InfoBar infoBar;
Timer timer;
public TimeInfoProxy(InfoBar infoBar) {
this.infoBar = infoBar;
}
public void sendInfo... | 27,422 |
https://github.com/jjaymeyer/phosphor-power/blob/master/services/phosphor-regulators-monitor-disable.service | Github Open Source | Open Source | Apache-2.0 | 2,021 | phosphor-power | jjaymeyer | null | Spoken | 16 | 109 | [Unit]
Description=Phosphor Power Regulators Disable Monitoring
Wants=obmc-host-stop-pre@0.target
Before=obmc-host-stop-pre@0.target
Conflicts=phosphor-regulators-monitor-enable.service
[Service]
RemainAfterExit=yes
ExecStart=/usr/bin/regsctl monitor --disable
[Install]
WantedBy=obmc-host-stop@0.target
| 37,469 |
https://github.com/HSCNI-GITHUB/stopcovid-ni-app/blob/master/e2e/init.ts | Github Open Source | Open Source | MIT | 2,020 | stopcovid-ni-app | HSCNI-GITHUB | TypeScript | Code | 38 | 101 | import {cleanup, init} from 'detox';
import * as adapter from 'detox/runners/jest/adapter';
beforeAll(async () => {
// @ts-ignore
await init({}, {initGlobals: false});
}, 300000);
afterAll(async () => {
try {
await adapter.afterAll();
} catch (err) {}
await cleanup();
});
| 51,373 |
https://github.com/iamshreeram/graphql-playground/blob/master/packages/graphql-playground-react/src/state/docs/reducers.ts | Github Open Source | Open Source | MIT | 2,022 | graphql-playground | iamshreeram | TypeScript | Code | 365 | 980 | import { GraphQLField } from 'graphql'
import { Map, List, Record, set } from 'immutable'
import { handleActions } from 'redux-actions'
import { columnWidth } from '../../constants'
export type DocsState = Map<string, DocsSessionState>
export interface NavItem {
x: number
y: number
field: GraphQLField<any, any>... | 34,506 |
https://github.com/mattrunyon/deephaven-core/blob/master/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/WritableByteAsBooleanColumnSource.java | Github Open Source | Open Source | MIT | 2,022 | deephaven-core | mattrunyon | Java | Code | 225 | 912 | /*
* Copyright (c) 2016-2021 Deephaven Data Labs and Patent Pending
*/
package io.deephaven.engine.table.impl.sources;
import io.deephaven.chunk.*;
import io.deephaven.chunk.attributes.Values;
import io.deephaven.engine.rowset.RowSequence;
import io.deephaven.engine.rowset.chunkattributes.RowKeys;
import io.deephav... | 2,501 |
https://github.com/angelfor3v3r/RE2-Mod-Framework/blob/master/src/sdk/REString.hpp | Github Open Source | Open Source | MIT | 2,021 | RE2-Mod-Framework | angelfor3v3r | C++ | Code | 161 | 515 | #pragma once
#include <string_view>
#include <locale>
#include "utility/String.hpp"
#include "ReClass.hpp"
namespace utility::re_string {
static std::wstring_view get_view(const ::REString& str) {
auto length = str.length;
if (length <= 0) {
return L"";
}
std::wstrin... | 1,475 |
https://github.com/vindarbot/RNA_Seq_Pipeline/blob/master/scripts/BBMap/current/jgi/MakeChimeras.java | Github Open Source | Open Source | BSD-3-Clause-LBNL | 2,021 | RNA_Seq_Pipeline | vindarbot | Java | Code | 922 | 4,539 | package jgi;
import java.io.File;
import java.io.PrintStream;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Random;
import stream.ConcurrentGenericReadInputStream;
import stream.ConcurrentReadInputStream;
import stream.FASTQ;
import stream.FastaReadInputStream;
import stream.Read;
import struc... | 34,445 |
https://github.com/kalnynsh/dshop_demo/blob/master/api/serializers/CartSerializer.php | Github Open Source | Open Source | BSD-3-Clause | 2,019 | dshop_demo | kalnynsh | PHP | Code | 212 | 696 | <?php
namespace api\serializers;
use yii\helpers\Url;
use shop\cart\cost\Discount;
use shop\cart\cost\Cost;
use shop\cart\CartItem;
use shop\cart\Cart;
/**
* CartSerializer class makes serialization Cart object data
*/
class CartSerializer
{
public function serializeCartItem(Cart $cart): array
{
re... | 2,283 |
https://github.com/dev-abir/ChitChat/blob/master/chitchat-client/src/components/MessageTypingIndicator.jsx | Github Open Source | Open Source | MIT | null | ChitChat | dev-abir | null | Spoken | 59 | 188 | import React from "react";
// import PropTypes from 'prop-types'
import MessageContainer from "./MessageContainer";
const dot = () => <div className="w-5 h-5 rounded-full bg-gray-500 animate-pulse" />;
function MessageTypingIndicator(props) {
return (
<MessageContainer flexJustify="end">
<div... | 18,537 |
https://github.com/zeuxisoo/web-simple-album/blob/master/bin/build_asset.pl | Github Open Source | Open Source | BSD-2-Clause | 2,013 | web-simple-album | zeuxisoo | Perl | Code | 184 | 800 | #!/usr/bin/perl
use Cwd;
use Digest::SHA 'sha1_hex';
use JavaScript::Minifier::XS;
use CSS::Minifier::XS;
use LWP::UserAgent;
my $user_agent = LWP::UserAgent->new();
my $current_root = getcwd;
my $assets_root = $current_root."/public/assets";
my $js_root = $current_root."/public/javascripts";
my $css_root ... | 36,767 |
https://github.com/jalakoo/sendbird-uikit-android/blob/master/uikit/src/main/java/com/sendbird/uikit/fragments/PromoteOperatorsFragment.java | Github Open Source | Open Source | MIT | 2,021 | sendbird-uikit-android | jalakoo | Java | Code | 1,177 | 3,306 | package com.sendbird.uikit.fragments;
import android.content.res.ColorStateList;
import android.os.Bundle;
import android.view.View;
import androidx.annotation.DrawableRes;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.annotation.StringRes;
import androidx.annotation.StyleRe... | 15,303 |
https://github.com/wmdietl/checker-framework-reformat/blob/master/checker/src/org/checkerframework/checker/nullness/NullnessAnnotatedTypeFactory.java | Github Open Source | Open Source | MIT | null | checker-framework-reformat | wmdietl | Java | Code | 1,511 | 6,183 | package org.checkerframework.checker.nullness;
import org.checkerframework.checker.initialization.InitializationAnnotatedTypeFactory;
import org.checkerframework.checker.initialization.qual.FBCBottom;
import org.checkerframework.checker.initialization.qual.Initialized;
import org.checkerframework.checker.initializatio... | 31,904 |
https://github.com/skyworkflows/swm-cloud-gate/blob/master/Makefile | Github Open Source | Open Source | BSD-3-Clause | 2,021 | swm-cloud-gate | skyworkflows | Makefile | Code | 94 | 357 | .PHONY: prepare-venv
.ONESHELL:
prepare-venv: .SHELLFLAGS := -euo pipefail -c
prepare-venv: SHELL := bash
prepare-venv:
python3 -m pip install 'virtualenv>=16.4.3'
virtualenv --system-site-packages .venv
VENV_BIN=.venv/bin
$${VENV_BIN}/pip install --ignore-installed --no-deps -r requirements.txt
.PHONY: check
chec... | 13,003 |
https://github.com/baoyujing/multi_gras/blob/master/data_management/utils.py | Github Open Source | Open Source | MIT | null | multi_gras | baoyujing | Python | Code | 54 | 234 | import numpy as np
import scipy.sparse as sp
def pad_adj(adj, n, max_len):
diag = np.concatenate([np.ones([1, n]), np.zeros([1, max_len - n])], axis=1)
adj = diag * adj * diag.T
return adj
def normalize_adj(adj):
"""Symmetrically normalize adjacency matrix."""
adj = sp.coo_matrix(adj)
rowsum... | 53,150 |
https://github.com/flapjs/FLAPJS-WebApp/blob/master/src/app/util/file/export/SVGImageDownloader.js | Github Open Source | Open Source | MIT | 2,021 | FLAPJS-WebApp | flapjs | JavaScript | Code | 191 | 537 | import { getFileExtFromName } from '../FileHelper.js';
import Downloader, { downloadURL } from './Downloader.js';
function getBlobFromSVG(svg)
{
const serializer = new XMLSerializer();
const svgString = serializer.serializeToString(svg);
const blob = new Blob([svgString], { type: 'image/svg+xml' });
re... | 8,820 |
https://github.com/khushboojadon/vimeo_video_app/blob/master/lib/models/network.dart | Github Open Source | Open Source | MIT | 2,020 | vimeo_video_app | khushboojadon | Dart | Code | 137 | 485 | import 'dart:convert';
import 'dart:io';
import 'package:food_delivery_app/models/Folders.dart';
import 'package:food_delivery_app/models/Videos.dart';
import 'package:http/http.dart' as http;
class Network {
// var token = 'Bearer e9ee97f4a5e9c14c4012b168120f675a';
// var token = 'Bearer 02824d78b02704fe55bf12177... | 6,234 |
https://github.com/reactDev037/reactjs-jointjs-demo/blob/master/app/tabsReducer.js | Github Open Source | Open Source | MIT | 2,021 | reactjs-jointjs-demo | reactDev037 | JavaScript | Code | 30 | 96 | import { Map, fromJS } from 'immutable';
export default function(state, action) {
switch(action.type) {
case 'ON_TAB_CLICKED':
return state.map((tab) => {
return tab.set('active', tab.get('id') === action.tabId);
});
}
return state;
}
| 28,243 |
https://github.com/NaruzaL/Band_tracker/blob/master/Modules/HomeModule.cs | Github Open Source | Open Source | MIT | 2,017 | Band_tracker | NaruzaL | C# | Code | 244 | 986 | using System;
using System.Collections.Generic;
using BandTracker.Objects;
using System.Data;
using System.Data.SqlClient;
using Nancy;
namespace BandTracker
{
public class HomeModule : NancyModule
{
public HomeModule()
{
Get["/"] = _ => {
Dictionary<string, object> model = new Dictionary<str... | 12,421 |
https://github.com/brunnovicente/SIAP/blob/master/src/persistencia/entidades/Empresa.java | Github Open Source | Open Source | Apache-2.0 | null | SIAP | brunnovicente | Java | Code | 156 | 410 | /*
* 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 persistencia.entidades;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedV... | 32,904 |
https://github.com/victorcroisfelt/aau-cs224w-ml-with-graphs/blob/master/Colab 3/CS224W - Colab 3_josefine.py | Github Open Source | Open Source | Unlicense, MIT | null | aau-cs224w-ml-with-graphs | victorcroisfelt | Python | Code | 1,201 | 3,668 | # -*- coding: utf-8 -*-
"""
Created on Thu Jan 6 13:52:33 2022
@author: jho
"""
# -*- coding: utf-8 -*-
"""
Created on Wed Jan 5 09:15:32 2022
@author: Tobias Kallehauge
"""
import torch_geometric
import os
print(torch_geometric.__version__)
import torch
import torch_scatter
import torch.nn as nn
import torch.nn... | 9,377 |
https://github.com/dendisuhubdy/beast_http_server/blob/master/include/ssl.hpp | Github Open Source | Open Source | BSD-2-Clause | 2,018 | beast_http_server | dendisuhubdy | C++ | Code | 2,160 | 8,903 | #ifndef SSL_HPP
#define SSL_HPP
#include <boost/asio/ssl/stream.hpp>
#include <server.hpp>
namespace http{
namespace ssl{
namespace base{
/// \brief The ssl connection class
class connection : public http::base::connection_base<connection> {
using base_t = http::base::connection_base<connection>;
boost::... | 42,884 |
https://github.com/NOAA-EMC/ufo/blob/master/src/ufo/filters/ModelBestFitPressure.h | Github Open Source | Open Source | Apache-2.0 | null | ufo | NOAA-EMC | C | Code | 588 | 1,368 | /*
* (C) Copyright 2021 Met Office
*
* This software is licensed under the terms of the Apache Licence Version 2.0
* which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
*/
#ifndef UFO_FILTERS_MODELBESTFITPRESSURE_H_
#define UFO_FILTERS_MODELBESTFITPRESSURE_H_
#include <memory>
#include <ostream>... | 12,514 |
https://github.com/angsuman/transfer.sh/blob/master/Dockerfile | Github Open Source | Open Source | MIT | 2,018 | transfer.sh | angsuman | Dockerfile | Code | 39 | 140 | FROM golang:1.7-alpine
LABEL maintainer="Remco Verhoef <remco@dutchcoders.io>"
# Copy the local package files to the container's workspace.
ADD . /go/src/github.com/dutchcoders/transfer.sh
# build & install server
RUN go build -o /go/bin/transfersh github.com/dutchcoders/transfer.sh
ENTRYPOINT ["/go/bin/transfersh",... | 9,771 |
https://github.com/Be5NzZ/Bot_DotNet/blob/master/Bot.Messenger/Models/Messaging/Postback.cs | Github Open Source | Open Source | MIT | 2,020 | Bot_DotNet | Be5NzZ | C# | Code | 39 | 112 | using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Bot.Messenger.Models
{
public class Postback
{
[JsonProperty("payload")]
public virtual string Payload { get; set; }
[JsonProperty("refe... | 48,092 |
https://github.com/xmhafiz/RTDBCodableExample/blob/master/RTDBCodable/AddTaskView.swift | Github Open Source | Open Source | MIT | 2,021 | RTDBCodableExample | xmhafiz | Swift | Code | 66 | 187 | //
// AddTaskView.swift
// RTDBCodable
//
// Created by Hafiz on 03/10/2021.
//
import SwiftUI
struct AddTaskView: View {
@State private var taskTitle: String = ""
@EnvironmentObject private var viewModel: TaskViewModel
var body: some View {
HStack(spacing: 12) {
TextField("Ent... | 332 |
https://github.com/jokereven/cloud-music/blob/master/music/src/content/recently-played/store/actionTypes.js | Github Open Source | Open Source | MIT | 2,021 | cloud-music | jokereven | JavaScript | Code | 10 | 53 | export const GET_PLAY_HISTORY = 'recently/GET_PLAY_HISTORY';
export const SHOW_HISTORICAL_PlAY = 'recently/SHOW_HISTORICAL_PlAY';
| 2,322 |
https://github.com/anggara-kaskus/CI-Aauth-Boilerplate/blob/master/application/controllers/Aauthlogin.php | Github Open Source | Open Source | MIT | null | CI-Aauth-Boilerplate | anggara-kaskus | PHP | Code | 59 | 283 | <?php
defined('BASEPATH') or exit('No direct script access allowed');
class Aauthlogin extends CI_Controller
{
public function __construct()
{
parent::__construct();
$this->load->library('form_validation');
}
public function index(): void
{
if ($this->input->post()) {
$this->form_validation->set_rules(... | 11,224 |
https://github.com/bkurnia13/apam-barabai/blob/master/application/views/auth/login.php | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, MIT | 2,020 | apam-barabai | bkurnia13 | PHP | Code | 188 | 901 | </head>
<body>
<!--[if lt IE 8]>
<p class="browserupgrade">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.</p>
<![endif]-->
<div class="auth-wrapper">
<div class="container-fluid h-100">
<div class="row f... | 6,353 |
https://github.com/wistbean/learn_python3_spider/blob/master/dangdang_top_500.py | Github Open Source | Open Source | MIT | 2,023 | learn_python3_spider | wistbean | Python | Code | 106 | 533 | import requests
import re
import json
def request_dandan(url):
try:
response = requests.get(url)
if response.status_code == 200:
return response.text
except requests.RequestException as e:
print(e)
return None
def parse_result(html):
pattern = re.compile(
... | 41,314 |
https://github.com/TheLocust3/FRC-Field-Vision-System/blob/master/main.py | Github Open Source | Open Source | MIT | 2,017 | FRC-Field-Vision-System | TheLocust3 | Python | Code | 70 | 267 | import signal
import sys
from vision import *
from detectors.fuel_detector import *
from detectors.robot_detector import *
from preprocessors.field_preprocessor import *
from preprocessors.robot_preprocessor import *
from flatteners.field_flattener import *
from flatteners.robot_flattener import *
from senders.socket_... | 49,359 |
https://github.com/EBRD-Bulb/bulb-project-api/blob/master/src/do/do.controller.ts | Github Open Source | Open Source | MIT | 2,020 | bulb-project-api | EBRD-Bulb | TypeScript | Code | 225 | 822 | import { Body, Controller, HttpCode, Param, Post, Query, UseFilters, UseGuards, UseInterceptors } from '@nestjs/common';
import {
ApiBody,
ApiOkResponse,
ApiInternalServerErrorResponse,
ApiQuery,
ApiTags,
ApiExtraModels,
ApiBadRequestResponse,
ApiNotFoundResponse,
ApiCreatedResponse,
} from '@nestjs/s... | 29,279 |
https://github.com/dotnet/project-system/blob/master/src/Microsoft.VisualStudio.ProjectSystem.Managed.VS/ProjectSystem/VS/UnconfiguredProjectVsServices.cs | Github Open Source | Open Source | MIT | 2,023 | project-system | dotnet | C# | Code | 174 | 587 | // Licensed to the .NET Foundation under one or more agreements. The .NET Foundation licenses this file to you under the MIT license. See the LICENSE.md file in the project root for more information.
using Microsoft.VisualStudio.Shell.Interop;
namespace Microsoft.VisualStudio.ProjectSystem.VS
{
/// <summary>
... | 49,807 |
https://github.com/gradle/gradle/blob/master/subprojects/tooling-api/src/crossVersionTest/groovy/org/gradle/plugins/ide/tooling/r31/ToolingApiIdeaModelCrossVersionSpec.groovy | Github Open Source | Open Source | BSD-3-Clause, LGPL-2.1-or-later, LicenseRef-scancode-mit-old-style, EPL-2.0, CDDL-1.0, MIT, LGPL-2.1-only, Apache-2.0, MPL-2.0, EPL-1.0 | 2,023 | gradle | gradle | Groovy | Code | 334 | 1,150 | /*
* Copyright 2016 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 10,878 |
https://github.com/InsertAReallyCreativeNameHere/Minesweeper-2--Electric-Boogaloo/blob/master/MinesweeperAdvance/MinesweeperAdvance/Minesweeper.Designer.vb | Github Open Source | Open Source | MIT | 2,021 | Minesweeper-2--Electric-Boogaloo | InsertAReallyCreativeNameHere | Visual Basic | Code | 595 | 2,856 | <Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
Partial Class Minesweeper
Inherits System.Windows.Forms.Form
'Form overrides dispose to clean up the component list.
<System.Diagnostics.DebuggerNonUserCode()> _
Protected Overrides Sub Dispose(ByVal disposing As Boolean)
Tr... | 25,802 |
https://github.com/feblr/webui/blob/master/feblr-model/src/pagination.js | Github Open Source | Open Source | MIT | null | webui | feblr | JavaScript | Code | 249 | 741 | "use strict";
exports.defaultPagesCount = 5;
var Pagination = (function () {
function Pagination(currPage, itemsPerPage, totalItems, pagesCount) {
if (pagesCount === void 0) { pagesCount = exports.defaultPagesCount; }
this.currPage = currPage;
this.itemsPerPage = itemsPerPage;
this.t... | 8,971 |
https://github.com/xlyric/Melanie2-InstallationAuto/blob/master/installation_composer.sh | Github Open Source | Open Source | Apache-2.0 | 2,020 | Melanie2-InstallationAuto | xlyric | Shell | Code | 40 | 146 | #!/bin/bash
###pas encore fait
###
apt-get install -y apache2 php5-fpm php5-mcrypt php5-memcached memcached php5 apache2-mpm-event
#conf php avec Nginx
cp test.php /var/www/html/
a2dismod mpm_prefork
a2enmod mpm_event
a2enmod proxy_fcgi
service apache2 restart
# conf memcache
cp memcached.conf /etc/memcached.conf... | 26,635 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.