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/andriimurashkin/xs2a-adapter/blob/master/xs2a-adapter-test/src/main/java/de/adorsys/xs2a/adapter/test/ServiceWireMockTestExtension.java | Github Open Source | Open Source | Apache-2.0 | 2,019 | xs2a-adapter | andriimurashkin | Java | Code | 245 | 1,330 | package de.adorsys.xs2a.adapter.test;
import com.github.tomakehurst.wiremock.WireMockServer;
import com.github.tomakehurst.wiremock.extension.responsetemplating.ResponseTemplateTransformer;
import de.adorsys.xs2a.adapter.api.*;
import de.adorsys.xs2a.adapter.api.http.HttpClient;
import de.adorsys.xs2a.adapter.api.http... | 2,460 |
https://github.com/balena-io/balena-cli/blob/master/lib/commands/deploy.ts | Github Open Source | Open Source | Apache-2.0 | 2,023 | balena-cli | balena-io | TypeScript | Code | 1,350 | 3,999 | /**
* @license
* Copyright 2016-2021 Balena 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 ... | 12,563 |
https://github.com/fulicat/vue-env-config/blob/master/env.config.js | Github Open Source | Open Source | MIT | 2,019 | vue-env-config | fulicat | JavaScript | Code | 66 | 298 | /*
* env.config.js
* @Author: Jack.Chan (971546@qq.com)
* @Date: 2019-05-31 11:41:33
* @Last Modified by: Jack.Chan
* @Last Modified time: 2019-05-31 13:46:23
* @version v1.0.2
*/
module.exports = {
development: {
publicPath: '/',
variables: {
api_baseURL: '//daily.fulicat.com/api',
api_timeout: 5000
... | 52,292 |
https://github.com/AutomateThePlanet/BELLATRIX/blob/master/tests/Bellatrix.Web.Tests/Controls/Grid/GridControlTestsChrome.cs | Github Open Source | Open Source | Apache-2.0 | 2,022 | BELLATRIX | AutomateThePlanet | C# | Code | 543 | 3,037 | using System.Collections.Generic;
using System.Linq;
using Bellatrix.Web.Assertions;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace Bellatrix.Web.Tests.Controls;
[TestClass]
[Browser(BrowserType.Chrome, Lifecycle.ReuseIfStarted)]
[AllureSuite("Grid Control")]
public class GridControlTestsChrome : MSTe... | 26,955 |
https://github.com/TheLooseCannon/ember-elements/blob/master/packages/core/addon/components/html-table/index.ts | Github Open Source | Open Source | Apache-2.0 | 2,022 | ember-elements | TheLooseCannon | TypeScript | Code | 245 | 662 | import Component from '@glimmer/component';
import * as Classes from '../../_private/common/classes';
import type { IProps } from '../../_private/common';
interface IHTMLTableProps extends IProps {
/** Enables borders between rows and cells. */
bordered?: boolean;
/** Use small, condensed appearance. */
con... | 26,733 |
https://github.com/azuse/Gboard-Patched/blob/master/Gboard_renamed_miui/smali/pex.smali | Github Open Source | Open Source | MIT | 2,022 | Gboard-Patched | azuse | Smali | Code | 95 | 358 | .class abstract Lpex;
.super Ljava/lang/Object;
.source "PG"
# interfaces
.implements Lpfd;
# instance fields
.field final a:Ljava/lang/Object;
.field final b:I
.field final c:Lpfd;
# direct methods
.method public constructor <init>(Ljava/lang/Object;ILpfd;)V
.locals 0
invoke-direct {p0}, Ljava/lang/Obj... | 25,578 |
https://github.com/eranation/Play-ReactiveMongo/blob/master/src/main/scala/play/modules/reactivemongo/PlayBson.scala | Github Open Source | Open Source | Apache-2.0 | 2,013 | Play-ReactiveMongo | eranation | Scala | Code | 674 | 2,315 | /*
* Copyright 2012 Pascal Voitot
*
* 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 ... | 53,656 |
https://github.com/ecsv/wlan-ap/blob/master/patches/ipq807x/0007-uboot-envtools-add-ipq807x-support.patch | Github Open Source | Open Source | BSD-3-Clause | null | wlan-ap | ecsv | null | Spoken | 179 | 699 | From 3e58efc4643555c1fe6df69174e972c9e071e382 Mon Sep 17 00:00:00 2001
From: John Crispin <john@phrozen.org>
Date: Tue, 28 Jul 2020 10:50:21 +0200
Subject: [PATCH 7/7] uboot-envtools: add ipq807x support
Signed-off-by: John Crispin <john@phrozen.org>
---
package/boot/uboot-envtools/files/ipq807x | 37 ++++++++++++++++... | 15,656 |
https://github.com/SummaSolutions/cart-magento/blob/master/1.6.x-1.9.x/dev/MercadoPago/tests/functional/features/MercadoEnvios/ShippingMethodsPerCountry.feature | Github Open Source | Open Source | Apache-2.0 | 2,017 | cart-magento | SummaSolutions | Gherkin | Code | 464 | 1,021 | @MercadoEnvios @MethodsPerCountry
Feature: I want to see the Shipping Methods available depending on my country.
Background:
Given I create mp attributes
And I map attributes "mp_width" "mp_height" "mp_length" "mp_weight"
And I set product "hde006" attributes:
| mp_width | mp_height | mp_length | m... | 10,913 |
https://github.com/cgtexmex/vic/blob/master/cmd/tether/main_test.go | Github Open Source | Open Source | Apache-2.0 | 2,016 | vic | cgtexmex | Go | Code | 381 | 980 | // Copyright 2016 VMware, Inc. 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.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable... | 25,622 |
https://github.com/jhz-duanmeng/alibabacloud-java-sdk/blob/master/vpc-20160428/src/main/java/com/aliyun/vpc20160428/models/DeleteForwardEntryRequest.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | alibabacloud-java-sdk | jhz-duanmeng | Java | Code | 135 | 447 | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.vpc20160428.models;
import com.aliyun.tea.*;
public class DeleteForwardEntryRequest extends TeaModel {
@NameInMap("RegionId")
@Validation(required = true)
public String regionId;
@NameInMap("ForwardTableId")
@Validation(req... | 21,181 |
https://github.com/puppetlabs/phabricator/blob/master/src/applications/daemon/controller/logview/__init__.php | Github Open Source | Open Source | Apache-2.0 | 2,015 | phabricator | puppetlabs | PHP | Code | 40 | 289 | <?php
/**
* This file is automatically generated. Lint this module to rebuild it.
* @generated
*/
phutil_require_module('phabricator', 'aphront/response/404');
phutil_require_module('phabricator', 'applications/daemon/controller/base');
phutil_require_module('phabricator', 'applications/daemon/view/daemonlogevent... | 33,567 |
https://github.com/justinfx/openimageigo/blob/master/util.go | Github Open Source | Open Source | MIT | 2,023 | openimageigo | justinfx | Go | Code | 288 | 866 | package oiio
import (
"errors"
"fmt"
"reflect"
"unsafe"
)
// Given an ImageSpec, a slice is allocated to the size that
// is able to contain the pixels of the ImageSpec dimensions.
// The TypeDesc determines what format the pixels will be stored in.
// Returns the slice, casted to an interface.
func allocatePixel... | 34,110 |
https://github.com/Sabrave/ShipBuilder/blob/master/Source/Nova/UI/NovaScalingRule.h | Github Open Source | Open Source | BSD-3-Clause | 2,022 | ShipBuilder | Sabrave | C | Code | 28 | 106 | // Nova project - Gwennaël Arbona
#pragma once
#include "Engine/DPICustomScalingRule.h"
#include "NovaScalingRule.generated.h"
UCLASS()
class UNovaScalingRule : public UDPICustomScalingRule
{
GENERATED_BODY()
public:
virtual float GetDPIScaleBasedOnSize(FIntPoint Size) const override;
};
| 41,823 |
https://github.com/gslotelastic/BacklogMigration-Redmine/blob/master/src/main/scala/com/nulabinc/backlog/r2b/exporter/convert/UserWrites.scala | Github Open Source | Open Source | MIT | 2,020 | BacklogMigration-Redmine | gslotelastic | Scala | Code | 124 | 565 | package com.nulabinc.backlog.r2b.exporter.convert
import javax.inject.Inject
import com.nulabinc.backlog.migration.common.conf.BacklogConstantValue
import com.nulabinc.backlog.migration.common.convert.Writes
import com.nulabinc.backlog.migration.common.domain.BacklogUser
import com.nulabinc.backlog.migration.common.u... | 15,842 |
https://github.com/flacoman91/ccdb5-ui/blob/master/src/DateInput/DateInput.less | Github Open Source | Open Source | CC0-1.0 | 2,019 | ccdb5-ui | flacoman91 | Less | Code | 11 | 51 | @import (less) "../base.less";
.m-btn-inside-input {
.a-text-input {
padding-right: @grid_gutter-width;
}
} | 28,425 |
https://github.com/markyangchangliang/framework/blob/master/spring-cloud-framework/gateway/src/main/java/com/markyang/framework/gateway/config/SwaggerDocResourceProvider.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | framework | markyangchangliang | Java | Code | 108 | 514 | package com.markyang.framework.gateway.config;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.cloud.netflix.zuul.filters.Route;
import org.springframework.cloud.netflix.zuul.filters.RouteLocator;
import org.springframework.context.annotation.Primary;
import org.springfra... | 39,858 |
https://github.com/dmytroxshevchuk/sonic-mgmt/blob/master/tests/scripts/dual_tor_sniffer.py | Github Open Source | Open Source | Apache-2.0 | 2,022 | sonic-mgmt | dmytroxshevchuk | Python | Code | 152 | 657 | import argparse
import logging
import scapy.all as scapyall
class Sniffer(object):
def __init__(self, filter=None, timeout=60):
self.filter = filter
self.timeout = timeout
self.packets = []
self.socket = None
def sniff(self):
logging.debug("scapy sniffer started: filt... | 15,504 |
https://github.com/seerdaryilmazz/ACC_frontend/blob/master/src/app/shared/components/calendar-event/calendar-event.component.scss | Github Open Source | Open Source | MIT | 2,020 | ACC_frontend | seerdaryilmazz | SCSS | Code | 80 | 319 |
::ng-deep .igx-date-picker .igx-calendar__header {
background: #00a7e6;
}
::ng-deep .igx-calendar__date--selected .igx-calendar__date-content {
background: #00a7e6;
}
::ng-deep .igx-calendar__date--selected.igx-calendar__date--current .igx-calendar__date-content {
background: #00a7e6;
}
::ng-deep nb-che... | 15,443 |
https://github.com/Baqend/js-sdk/blob/master/lib/util/websocket.ts | Github Open Source | Open Source | MIT | 2,019 | js-sdk | Baqend | TypeScript | Code | 8 | 18 | export { w3cwebsocket as WebSocket } from 'websocket';
| 38,586 |
https://github.com/iyilm4z/PhoneBook/blob/master/Libraries/PhoneBook.Services/Authentication/FormsAuthenticationService.cs | Github Open Source | Open Source | Apache-2.0 | null | PhoneBook | iyilm4z | C# | Code | 210 | 783 | #region Usings
using System;
using System.Web;
using System.Web.Security;
using PhoneBook.Core.Domain;
using PhoneBook.Services.Users;
#endregion
namespace PhoneBook.Services.Authentication
{
public class FormsAuthenticationService : IAuthenticationService
{
#region Fields
private readonly ... | 50,681 |
https://github.com/ntrampe/FanFactory/blob/master/fan/LevelEditingTutorial.mm | Github Open Source | Open Source | MIT | null | FanFactory | ntrampe | Objective-C++ | Code | 793 | 2,456 | /*
* Copyright (c) 2014 Nicholas Trampe
*
* 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, pub... | 49,130 |
https://github.com/Sighillrob/CloudEngine/blob/master/cloudengine/files/forms.py | Github Open Source | Open Source | MIT, Linux-OpenIB | 2,014 | CloudEngine | Sighillrob | Python | Code | 16 | 66 | from django import forms
attrs_dict = {'class': 'required'}
class FileUploadForm(forms.Form):
file = forms.FileField()
app = forms.CharField(widget=forms.TextInput(attrs=attrs_dict))
| 46,920 |
https://github.com/backwardn/bao/blob/master/bao_bin/tests/test.rs | Github Open Source | Open Source | CC0-1.0, Apache-2.0, LicenseRef-scancode-public-domain | 2,020 | bao | backwardn | Rust | Code | 603 | 2,538 | use duct::cmd;
use rand::prelude::*;
use std::env::consts::EXE_EXTENSION;
use std::fs;
use std::path::{Path, PathBuf};
use std::sync::Once;
use tempfile::tempdir;
pub fn bao_exe() -> PathBuf {
// `cargo test` doesn't automatically run `cargo build`, so we do that ourselves.
static CARGO_BUILD_ONCE: Once = Once... | 51,891 |
https://github.com/GlobalDataverseCommunityConsortium/dataverse/blob/master/src/test/java/edu/harvard/iq/dataverse/EditDataFilesPageHelperTest.java | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, Apache-2.0 | 2,023 | dataverse | GlobalDataverseCommunityConsortium | Java | Code | 210 | 1,612 | package edu.harvard.iq.dataverse;
import edu.harvard.iq.dataverse.util.file.CreateDataFileResult;
import org.hamcrest.MatcherAssert;
import org.hamcrest.Matchers;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.InjectMocks;
import org.mockito.Mock;
import org.mockito.Mockito;
import org.mock... | 48,133 |
https://github.com/kataras/iris/blob/master/context/configuration.go | Github Open Source | Open Source | BSD-3-Clause | 2,023 | iris | kataras | Go | Code | 377 | 1,105 | package context
import (
"time"
"github.com/kataras/iris/v12/core/netutil"
)
// ConfigurationReadOnly can be implemented
// by Configuration, it's being used inside the Context.
// All methods that it contains should be "safe" to be called by the context
// at "serve time". A configuration field may be missing whe... | 22,024 |
https://github.com/Alex-Golub/various-books-exercise-solutions/blob/master/Back to Basics Approach 3rd Edition/cse_142/cs1_exams/finals/matchIndex.java | Github Open Source | Open Source | MIT | 2,023 | various-books-exercise-solutions | Alex-Golub | Java | Code | 181 | 482 | package cse_142.cs1_exams.finals;
import java.util.Scanner;
/**
* https://practiceit.cs.washington.edu/problem/view/cs1/exams/finals/final9/matchIndex
*
* @author Alex Golub
* @since 15-Apr-21 2:24 PM
*/
class matchIndex {
public static void main(String[] args) {
String data = "The quick brown fox\n" +
... | 21,024 |
https://github.com/rscheiwe/ghost-theme/blob/master/partials/post-tags.hbs | Github Open Source | Open Source | MIT | null | ghost-theme | rscheiwe | null | Spoken | 18 | 85 | <div class="after-post-tags">
{{#if tags}}
<ul class="tags">
{{#foreach tags}}
<li><a href="{{url}}" title="{{name}}" class="tag tag-{{comment_id}} {{slug}}">{{name}}</a></li>
{{/foreach}}
</ul>
{{/if}}
</div> | 29,192 |
https://github.com/minhtran2401/MiTiCMS/blob/master/resources/views/FE/emails/reply-support.blade.php | Github Open Source | Open Source | MIT | null | MiTiCMS | minhtran2401 | PHP | Code | 154 | 1,006 | <html>
<body style="background-color:#e2e1e0;font-family: Open Sans, sans-serif;font-size:100%;font-weight:400;line-height:1.4;color:#000;">
<table style="max-width:670px;margin:50px auto 10px;background-color:#fff;padding:50px;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;-webkit-box-shadow:0 1... | 27,073 |
https://github.com/Dracai/rarity_connect/blob/master/app/Views/forum/createPost.php | Github Open Source | Open Source | MIT | null | rarity_connect | Dracai | PHP | Code | 61 | 286 | <div class="container" style="margin-top: 1em;">
<h1>Create new Post</h1>
<?php if (isset($validation)): ?>
<div class="col-12">
<div class="alert alert-danger" role="alert">
<?= $validation->listErrors()?>
</div>
</div>
<?php endif; ?>
<form class... | 37,190 |
https://github.com/aspose-slides/Aspose.Slides-for-.NET/blob/master/Demos/Demo.sln | Github Open Source | Open Source | MIT | 2,023 | Aspose.Slides-for-.NET | aspose-slides | null | Spoken | 298 | 2,694 |
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 16.6.30114.105
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Aspose.Slides.Web.UI", "Aspose.Slides.Web\Aspose.Slides.Web.csproj", "{2FF98491-7A37-4AEB-B0A5-ACAE... | 8,206 |
https://github.com/tjgolubi/emane/blob/master/models/ieee80211abg/maclayer/macconfig.cc | Github Open Source | Open Source | FSFUL | 2,013 | emane | tjgolubi | C++ | Code | 2,157 | 6,691 | /*
* Copyright (c) 2008 - DRS CenGen, LLC, Columbia, Maryland
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* * Redistributions of source code must retain the above copyright
* no... | 10,746 |
https://github.com/AntoineJT/ppe-parking/blob/master/src/app/Utils/SessionManager.php | Github Open Source | Open Source | MIT | 2,020 | ppe-parking | AntoineJT | PHP | Code | 76 | 248 | <?php
namespace App\Utils;
use App\Enums\AuthEnum;
use Illuminate\Support\Facades\Session;
trait SessionManager
{
private static function sessionEquals(string $key, $value): bool
{
return Session::has($key) && Session::get($key) === $value;
}
public static function isLogged(): bool
{
... | 4,046 |
https://github.com/remotelyliving/php-dns/blob/master/src/Resolvers/CloudFlare.php | Github Open Source | Open Source | MIT | 2,022 | php-dns | remotelyliving | PHP | Code | 313 | 1,137 | <?php
namespace RemotelyLiving\PHPDNS\Resolvers;
use Generator;
use GuzzleHttp\Client;
use GuzzleHttp\ClientInterface;
use GuzzleHttp\Promise\EachPromise;
use Psr\Http\Message\ResponseInterface;
use RemotelyLiving\PHPDNS\Entities\DNSRecordCollection;
use RemotelyLiving\PHPDNS\Entities\DNSRecordType;
use RemotelyLivin... | 8,312 |
https://github.com/Yoghurt4C/Crop-of-Wonderworking/blob/master/src/main/java/mods/coww/registry/cowwEvents.java | Github Open Source | Open Source | WTFPL | null | Crop-of-Wonderworking | Yoghurt4C | Java | Code | 205 | 1,197 | package mods.coww.registry;
import mods.coww.api.callbacks.AddCollectorCallback;
import mods.coww.api.callbacks.AddTankCallback;
import mods.coww.api.callbacks.RemoveCollectorCallback;
import mods.coww.api.callbacks.RemoveTankCallback;
import mods.coww.api.power.PowerNetworkEvent;
import mods.coww.power.internal.Power... | 42,898 |
https://github.com/samuelebischof-ch/lora-net-manager/blob/master/source/frontend/src/app/@sidebar/sidebar-button/sidebar-button.component.ts | Github Open Source | Open Source | MIT | 2,020 | lora-net-manager | samuelebischof-ch | TypeScript | Code | 37 | 122 | import { Component, OnInit, Input } from '@angular/core';
@Component({
selector: 'app-sidebar-button',
templateUrl: './sidebar-button.component.html',
styleUrls: ['./sidebar-button.component.scss']
})
export class SidebarButtonComponent implements OnInit {
constructor() { }
@Input() iconName = 'home';
@I... | 5,210 |
https://github.com/teruuuuuu/CryptoTruffleZombies/blob/master/contracts/zombieattack.sol | Github Open Source | Open Source | MIT | null | CryptoTruffleZombies | teruuuuuu | Solidity | Code | 83 | 369 | pragma solidity ^0.5.4;
import "./zombiehelper.sol";
contract ZombieAttack is ZombieHelper {
uint256 randNonce = 0;
uint256 attackVictoryProbability = 70;
function randMod(uint256 _modulus) internal returns (uint256) {
randNonce = randNonce.add(1);
return
uint256(keccak256(abi.... | 24,688 |
https://github.com/Krzyciu/A3CS/blob/master/addons/modules/modules/createTask/functions/fnc_type_insertValues.sqf | Github Open Source | Open Source | MIT | 2,020 | A3CS | Krzyciu | SQF | Code | 81 | 210 | #include "script_component.hpp"
/*
* Author: SzwedzikPL
* Insert values function for createTask type attribute
*/
params ["_module"];
private _typeValues = [];
{
private _types = "true" configClasses _x;
{
private _name = getText (_x >> "displayName");
if (_name isNotEqualTo "") then {
private _c... | 32,171 |
https://github.com/rusty3699/cowin/blob/master/cowin_api/api.py | Github Open Source | Open Source | MIT | 2,021 | cowin | rusty3699 | Python | Code | 56 | 267 | from cowin_api.base_api import BaseApi
from cowin_api.constants import Constants
from cowin_api.utils import today
class CoWinAPI(BaseApi):
def get_states(self):
url = Constants.states_list_url
return self._call_api(url)
def get_districts(self, state_id: str):
url = f"{Constants.dist... | 5,222 |
https://github.com/magreiner/MMLP/blob/master/backend/mmlp/endpoint/dataset/DatasetCollection.py | Github Open Source | Open Source | Apache-2.0 | null | MMLP | magreiner | Python | Code | 164 | 570 | import falcon
import json
from dataclasses import asdict
from falcon import Request, Response
from toolz import map
from mmlp.data import Dataset
from mmlp.data.utils import DataclassJSONEncoder
from mmlp.manager.DatasetManager import DatasetManager
from mmlp.utils import get_params_to_query
# TODO: Limit maximum ite... | 40,464 |
https://github.com/TamuGeoInnovation/Tamu.GeoInnovation.js.monorepo/blob/master/libs/maps/feature/trip-planner/src/lib/components/trip-planner-directions-actions/containers/base/base.component.ts | Github Open Source | Open Source | MIT | 2,023 | Tamu.GeoInnovation.js.monorepo | TamuGeoInnovation | TypeScript | Code | 412 | 1,179 | import { ChangeDetectionStrategy, ChangeDetectorRef, Component, OnDestroy, OnInit } from '@angular/core';
import { ActivatedRoute, Router } from '@angular/router';
import { Observable, Subject } from 'rxjs';
import { switchMap, takeUntil, pluck } from 'rxjs/operators';
import { Angulartics2 } from 'angulartics2';
impo... | 7,303 |
https://github.com/kankuro12/k360p/blob/master/resources/views/admin/product/extracharge.blade.php | Github Open Source | Open Source | MIT | 2,020 | k360p | kankuro12 | Blade | Code | 157 | 664 | <div>
<form action="{{ route('admin.product-extracharge') }}" method="post">
@csrf
<input type="hidden" name="product_id" value="{{ $productdetail->product_id }}">
<div class="row">
<div class="col-md-4">
<label>Name</label>
<input required type="t... | 47,339 |
https://github.com/SkillGG/lnreader-sources/blob/master/src/en/vipnovel/VipNovel.js | Github Open Source | Open Source | MIT | 2,021 | lnreader-sources | SkillGG | JavaScript | Code | 23 | 154 | const express = require("express");
const vipNovelScraper = require("./VipNovelScraper");
const router = express.Router();
router.get("/novels/", vipNovelScraper.novelsScraper);
router.get("/novel/:novelUrl", vipNovelScraper.novelScraper);
router.get("/novel/:novelUrl/:chapterUrl", vipNovelScraper.chapterScraper);
... | 22,397 |
https://github.com/Genuifx/wxa-compiler-sass/blob/master/index.js | Github Open Source | Open Source | MIT | null | wxa-compiler-sass | Genuifx | JavaScript | Code | 96 | 315 | import sass from 'node-sass';
import path from 'path';
class SassCompiler {
constructor(cwd, compilers) {
if (SassCompiler.prototype.instance) return SassCompiler.prototype.instance;
SassCompiler.prototype.instance = this;
this.current = cwd;
this.configs = null;
try {
... | 26,788 |
https://github.com/bobsmith947/recsforme/blob/master/src/java/me/recsfor/engine/search/sql/ArtistQuerySQL.java | Github Open Source | Open Source | Apache-2.0 | 2,018 | recsforme | bobsmith947 | Java | Code | 541 | 1,495 | /*
* Copyright 2019 Lucas Kitaev.
*
* 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 ... | 32,830 |
https://github.com/copslock/broadcom_cpri/blob/master/sdk-6.5.20/include/shared/swstate/access/sw_state_dpp_soc_arad_pp_vtt_mask_access.h | Github Open Source | Open Source | Spencer-94 | null | broadcom_cpri | copslock | C | Code | 587 | 3,560 | /*
*
* This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file.
*
* Copyright 2007-2020 Broadcom Inc. All rights reserved.
*
* DO NOT EDIT THIS FILE!
* This file is auto-generated.
* Edits to this file will be lost when it is regener... | 10,202 |
https://github.com/kskkido/hlog/blob/master/src/src/components/title/events/index.ts | Github Open Source | Open Source | BSD-3-Clause | null | hlog | kskkido | TypeScript | Code | 155 | 581 | import { pipe } from 'fp-ts/function';
import * as ReadonlyArray from 'fp-ts/ReadonlyArray';
import * as rxjs from 'rxjs';
import * as lib from 'lib';
import * as elements from 'elements';
import * as states from 'states';
export const observe = (e: lib.element.types.HTMLElement) => {
return rxjs.merge(mount(e));
};... | 13,235 |
https://github.com/daxmc99/advent_code/blob/master/2020/template/puzzle.go | Github Open Source | Open Source | MIT | null | advent_code | daxmc99 | Go | Code | 6 | 10 | package main
var input = ``
| 15,031 |
https://github.com/mehdibenamorr/label-studio/blob/master/label_studio/io_storages/gcs/api.py | Github Open Source | Open Source | Apache-2.0 | 2,022 | label-studio | mehdibenamorr | Python | Code | 393 | 1,586 | """This file and its contents are licensed under the Apache License 2.0. Please see the included NOTICE for copyright information and LICENSE for a copy of the license.
"""
from django.utils.decorators import method_decorator
from drf_yasg.utils import swagger_auto_schema
from drf_yasg import openapi as openapi
from io... | 12,178 |
https://github.com/omerlevran46/sdk/blob/master/tests/language_2/private/private2_lib.dart | Github Open Source | Open Source | BSD-3-Clause | 2,022 | sdk | omerlevran46 | Dart | Code | 68 | 114 | // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
// Dart test for testing access to private fields across class hierarchies.
// @dart = 2.9
library Pri... | 48,849 |
https://github.com/chromium/chromium/blob/master/third_party/blink/web_tests/http/tests/websocket/invalid-encode-length_wsh.py | Github Open Source | Open Source | LGPL-2.0-or-later, LicenseRef-scancode-warranty-disclaimer, LGPL-2.1-only, GPL-1.0-or-later, GPL-2.0-only, LGPL-2.0-only, BSD-2-Clause, LicenseRef-scancode-other-copyleft, BSD-3-Clause, MIT, Apache-2.0 | 2,023 | chromium | chromium | Python | Code | 122 | 374 | import re
import struct
from mod_pywebsocket import common
from mod_pywebsocket import msgutil
from mod_pywebsocket import util
def web_socket_do_extra_handshake(request):
pass
def web_socket_transfer_data(request):
match = re.search(r'\?case=(\d+_\d+)$', request.ws_resource)
if match is None:
m... | 20,361 |
https://github.com/Gabriel543/PHP/blob/master/aula04/edit_disciplina.php | Github Open Source | Open Source | MIT | null | PHP | Gabriel543 | PHP | Code | 52 | 295 | <?php
require_once './disciplinaCRUD.php';
IF(isset($_SERVER['HTTP_REFERER'])){
if ($_SERVER['REQUEST_METHOD'] === 'POST' && $_SERVER['HTTP_REFERER'] == "http://localhost/php/aula04/listar_disciplina.php"){
$id = filter_input(INPUT_POST,'txtId');
$nome = filter_input(INPUT_POS... | 6,731 |
https://github.com/Saulis/enumerables/blob/master/src/test/java/com/github/saulis/enumerables/LimitTest.java | Github Open Source | Open Source | Apache-2.0 | null | enumerables | Saulis | Java | Code | 222 | 1,032 | package com.github.saulis.enumerables;
import com.google.inject.Inject;
import org.jukito.JukitoRunner;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.Optional;
import static org.hamcrest.CoreMatchers.is;
import... | 13,899 |
https://github.com/GF-Huang/HandyControls/blob/master/src/Shared/HandyControl_Shared/HandyControls/Controls/Persian/PersianCalendar/PersianCalendarHelper.cs | Github Open Source | Open Source | MIT | 2,022 | HandyControls | GF-Huang | C# | Code | 449 | 1,677 | using System;
using System.Globalization;
namespace Microsoft.Windows.Controls
{
internal static class PersianCalendarHelper
{
public static System.Globalization.Calendar GetCurrentCalendar()
{
return new System.Globalization.PersianCalendar();
}
// TODO: Need more... | 25,336 |
https://github.com/extnet/docs5.ext.net/blob/master/d6/d0a/class_ext_1_1_net_1_1_crosshair_axis_1_1_config.js | Github Open Source | Open Source | Apache-2.0 | null | docs5.ext.net | extnet | JavaScript | Code | 15 | 156 | var class_ext_1_1_net_1_1_crosshair_axis_1_1_config =
[
[ "Label", "d6/d0a/class_ext_1_1_net_1_1_crosshair_axis_1_1_config.html#ab411ed5e5f803789a448ef43d68f759d", null ],
[ "Rect", "d6/d0a/class_ext_1_1_net_1_1_crosshair_axis_1_1_config.html#a0a364e5cdabaca258764eec48375fd9b", null ]
]; | 46,897 |
https://github.com/MattPark/sentry-plugins/blob/master/src/sentry_plugins/hipchat_ac/testutils.py | Github Open Source | Open Source | Apache-2.0 | null | sentry-plugins | MattPark | Python | Code | 261 | 957 | from __future__ import absolute_import
import six
from random import randint
from uuid import uuid4
from sentry_plugins.hipchat_ac.models import Tenant
CAPDOC_EXAMPLE = {
'vendor': {
'url': 'http://atlassian.com',
'name': 'Atlassian',
},
'name': 'HipChat',
'links': {
'self': ... | 53,259 |
https://github.com/mouckatron/neuralnet/blob/master/cmd/digitclassifiergenerator/main.go | Github Open Source | Open Source | MIT | null | neuralnet | mouckatron | Go | Code | 13 | 37 |
package main
import (
"neunetlib"
)
func main() {
nn := neunetlib.New()
} | 17,182 |
https://github.com/heralex/OTB/blob/master/Modules/Remote/S1TilingSupportApplications.remote.cmake | Github Open Source | Open Source | Apache-2.0 | 2,022 | OTB | heralex | CMake | Code | 155 | 355 | #
# Copyright (C) 2005-2020 Centre National d'Etudes Spatiales (CNES)
#
# This file is part of Orfeo Toolbox
#
# https://www.orfeo-toolbox.org/
#
# 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 Licens... | 46,487 |
https://github.com/robertjwvaughan/OOP_UI/blob/master/OOP_UI.pde | Github Open Source | Open Source | MIT | 2,016 | OOP_UI | robertjwvaughan | null | Spoken | 937 | 2,609 | //Library Imports
import processing.sound.*;
import java.util.Date;
import java.text.SimpleDateFormat;
//Arraylist to host the sound files
ArrayList<SoundFile> playlist = new ArrayList<SoundFile>();
//Arraylist to store the data from file
ArrayList<DataFile> data = new ArrayList<DataFile>();
//String array that hosts ... | 13,729 |
https://github.com/LukasSimon/projekt/blob/master/application/controllers/Sluzba.php | Github Open Source | Open Source | MIT | null | projekt | LukasSimon | PHP | Code | 290 | 1,473 | <?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Sluzba extends CI_Controller
{
public function __construct()
{
parent:: __construct();
$this->load->model('Sluzba_m', 'sluzbam');
}
public function index(){
$this->load->library('pagination');
$... | 43,332 |
https://github.com/HKevin1993/HNNetWorkMonitor/blob/master/UNetAnalysisSDK/UNetAnalysisSDK/utracert/control/UCTraceRoute.mm | Github Open Source | Open Source | MIT | 2,020 | HNNetWorkMonitor | HKevin1993 | Objective-C++ | Code | 897 | 4,071 | //
// UTraceRoute.m
// PingDemo
//
// Created by ethan on 08/08/2018.
// Copyright © 2018 ucloud. All rights reserved.
//
#import "UCTraceRoute.h"
#import "UNetAnalysisConst.h"
#include "log4cplus.h"
#import "UNetQueue.h"
#import "UCDateTool.h"
/**
@brief 枚举定义,定义icmp包的状态
- UCTracertIcmpType_None: 无状态
- UCTra... | 28,362 |
https://github.com/Kitware/py-web-vue/blob/master/python/src/pywebvue/modules/SizeObserver/__init__.py | Github Open Source | Open Source | BSD-3-Clause | 2,022 | py-web-vue | Kitware | Python | Code | 16 | 81 | import os
serve_path = os.path.abspath(os.path.join(os.path.dirname(__file__), "serve"))
serve = {"__vue_size": serve_path}
scripts = ["/__vue_size/vue-size.umd.min.js"]
vue_use = ["VueSize"] | 43,462 |
https://github.com/jimstack/super-csv-annotation/blob/master/src/main/java/com/github/mygreen/supercsv/builder/joda/MonthDayProcessorBuilder.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | super-csv-annotation | jimstack | Java | Code | 36 | 134 | package com.github.mygreen.supercsv.builder.joda;
import org.joda.time.MonthDay;
/**
* {@link MonthDay}に対するAutoBuilder。
* @since 2.1
* @author T.TSUCHIE
*
*/
public class MonthDayProcessorBuilder extends AbstractJodaProcessorBuilder<MonthDay> {
/**
* {@literal MM-dd}を返す。
*/
@Override
p... | 10,312 |
https://github.com/dlam28/proyectoVTV/blob/master/views/usuario_lista.hbs | Github Open Source | Open Source | ISC | 2,022 | proyectoVTV | dlam28 | null | Spoken | 342 | 1,513 | <!DOCTYPE html>
<html lang="en">
{{> head}}
<body>
{{> adminHeader}}
{{> section}}
<main id="main">
<br>
<hr>
{{!-- Tabla de usuarios --}}
<div class=" scroll tabla">
<table class="table">
<thead class="thead-dark">
<tr>
<th scope="col">Nombre</th>
... | 53,202 |
https://github.com/superfly-css/superfly-css-task-test/blob/master/src/main/js/index.js | Github Open Source | Open Source | MIT | 2,017 | superfly-css-task-test | superfly-css | JavaScript | Code | 135 | 482 | //==================================================
// Task
// test:css
// For the description see
// [SupeflyCSS Test Task](https://github.com/superfly-css/superfly-css-task-test/)
// IMPLEMENTATION
// 0: Support nunjucks template rendering within test markup
// 1: Cheerio copies content from `Test-markup`
// ... | 53,968 |
https://github.com/Diddylcp/Proyecto-II/blob/master/Assets/Projecte/Scripts/TextChanger.cs | Github Open Source | Open Source | Unlicense | null | Proyecto-II | Diddylcp | C# | Code | 68 | 279 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.EventSystems;
using UnityEngine.UI;
using TMPro;
public class TextChanger : MonoBehaviour, IPointerEnterHandler, IPointerExitHandler
{
[SerializeField] Color defaultColor;
[SerializeField] Color highlightedColor;
... | 11,418 |
https://github.com/SapphireSuite/Sapphire/blob/master/Engine/Include/Sapphire/Rendering/Framework/Primitives/Pipeline/CullingMode.hpp | Github Open Source | Open Source | MIT | 2,020 | Sapphire | SapphireSuite | C++ | Code | 50 | 201 | // Copyright 2020 Sapphire development team. All Rights Reserved.
#pragma once
#ifndef SAPPHIRE_RENDERING_CULLING_MODE_GUARD
#define SAPPHIRE_RENDERING_CULLING_MODE_GUARD
#include <Rendering/APIConfig.hpp>
namespace Sa
{
enum class CullingMode
{
// No culling.
None,
// Front-face culling.
Front,
// Ba... | 1,679 |
https://github.com/exponentxqq/php-chunker/blob/master/src/CollectionChunker.php | Github Open Source | Open Source | Apache-2.0 | null | php-chunker | exponentxqq | PHP | Code | 119 | 384 | <?php
namespace Exp\Chunker;
use Illuminate\Support\Collection;
class CollectionChunker extends BaseChunker
{
public function __construct(Collection $collection, $total)
{
$this->source = collect();
foreach ($collection as $item) {
if (!is_object($item)) {
$this->s... | 13,710 |
https://github.com/canada-ca/tracker/blob/master/frontend/src/domains/SubdomainWarning.js | Github Open Source | Open Source | MIT | 2,023 | tracker | canada-ca | JavaScript | Code | 105 | 264 | import React from 'react'
import { Flex, Text } from '@chakra-ui/react'
import { WarningTwoIcon } from '@chakra-ui/icons'
import { Trans } from '@lingui/macro'
export function SubdomainWarning({ ...props }) {
return (
<Flex
direction="row"
border="1px solid black"
rounded="lg"
p="1rem"
... | 24,317 |
https://github.com/ridget/saasu/blob/master/lib/saasu/invoice_payment_item.rb | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, MIT | 2,014 | saasu | ridget | Ruby | Code | 15 | 49 | module Saasu
class InvoicePaymentItem < Base
elements "invoiceUid" => :integer,
"amount" => :decimal
end
end
| 35,832 |
https://github.com/wimgithub/coin_price_service/blob/master/ether_contract/cross_ether.sol | Github Open Source | Open Source | MIT | null | coin_price_service | wimgithub | Solidity | Code | 529 | 1,352 | pragma solidity ^0.6.0;
// SPDX-License-Identifier: UNLICENSED
/**
* @title ERC20 interface
* @dev see https://eips.ethereum.org/EIPS/eip-20
*/
interface InterfaceERC20 {
function totalSupply() external view returns (uint256);
function transfer(address to, uint256 value) external returns (bool);
functio... | 17,783 |
https://github.com/rydockman/YouPick/blob/master/node_modules/@iconify/icons-mdi/src/grid-on.js | Github Open Source | Open Source | Apache-2.0 | 2,021 | YouPick | rydockman | JavaScript | Code | 41 | 210 | let data = {
"body": "<path d=\"M10 4v4h4V4h-4m6 0v4h4V4h-4m0 6v4h4v-4h-4m0 6v4h4v-4h-4m-2 4v-4h-4v4h4m-6 0v-4H4v4h4m0-6v-4H4v4h4m0-6V4H4v4h4m2 6h4v-4h-4v4M4 2h16a2 2 0 0 1 2 2v16a2 2 0 0 1-2 2H4c-1.08 0-2-.9-2-2V4a2 2 0 0 1 2-2z\" fill=\"currentColor\"/>",
"width": 24,
"height": 24
};
export default data;
| 52,901 |
https://github.com/yngbldjr/vertigo-ui/blob/master/web/bower_components/the-graph/the-graph/the-graph-menu.js | Github Open Source | Open Source | Apache-2.0, MIT | 2,014 | vertigo-ui | yngbldjr | JavaScript | Code | 522 | 2,013 | (function (context) {
"use strict";
var TheGraph = context.TheGraph;
var positions = {
n4IconX: 0,
n4IconY: -52,
n4LabelX: 0,
n4LabelY: -35,
s4IconX: 0,
s4IconY: 52,
s4LabelX: 0,
s4LabelY: 35,
e4IconX: 45,
e4IconY: -5,
e4LabelX: 45,
e4LabelY: 15,
w4IconX: -45,... | 33,176 |
https://github.com/InNoHurryToCode/xray-162/blob/master/code/engine/xrGame/ui/UIKeyBinding.cpp | Github Open Source | Open Source | Apache-2.0 | 2,021 | xray-162 | InNoHurryToCode | C++ | Code | 426 | 2,013 | #include "StdAfx.h"
#include "UIKeyBinding.h"
#include "UIXmlInit.h"
#include "xrUIXmlParser.h"
#include "UIEditKeyBind.h"
#include "UIScrollView.h"
#include "../xr_level_controller.h"
#include "../string_table.h"
CUIKeyBinding::CUIKeyBinding() {
for (int i = 0; i < 3; i++)
AttachChild(&m_header[i]);
... | 48,968 |
https://github.com/icywaffle/marketboardproject/blob/master/public/js/userinfo.js | Github Open Source | Open Source | MIT | null | marketboardproject | icywaffle | JavaScript | Code | 103 | 431 | function userlogin() {
var discorduniqueid = $("#id").attr("value")
var avatarhash = $("#avatar").attr("value")
var path = "https://cdn.discordapp.com/avatars/" + discorduniqueid + "/" + avatarhash
var discordname = $("#username").attr("value")
var discordtag = "#" + $("#discriminator").attr("value... | 3,732 |
https://github.com/raymondtay/sangria-akka-http-cassandra/blob/master/src/main/scala/csv/Model.scala | Github Open Source | Open Source | Apache-2.0 | 2,020 | sangria-akka-http-cassandra | raymondtay | Scala | Code | 8 | 20 | case class Data(date: String, currency: String, costType: String)
| 47,593 |
https://github.com/Small-Bodies-Node/ntl_archive_db_demo/blob/master/import_and_persistence/test_files/official_data_sets/ihw-c-irspec-3-edr-gz-v1.0/software/compress/fortran/packer.for | Github Open Source | Open Source | BSD-3-Clause | null | ntl_archive_db_demo | Small-Bodies-Node | null | Spoken | 1,314 | 5,049 | PROGRAM PACKER
C *** "PACKER" PRODUCES "PREVPIXEL" COMPRESSED IMAGES
C FROM "FITS/LSPN" IMAGE FILES
C
C ... | 2,669 |
https://github.com/nishadi1995/iGoviya/blob/master/node_modules/tslint/lib/rules/completed-docs/tagExclusion.d.ts | Github Open Source | Open Source | MIT | 2,022 | iGoviya | nishadi1995 | TypeScript | Code | 153 | 291 | /**
* @license
* Copyright 2013 Palantir Technologies, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by... | 9,545 |
https://github.com/GRBaset/yt-dlp/blob/master/devscripts/pyinst.py | Github Open Source | Open Source | Unlicense, LicenseRef-scancode-public-domain | 2,021 | yt-dlp | GRBaset | Python | Code | 169 | 806 | from __future__ import unicode_literals
import sys
from PyInstaller.utils.win32.versioninfo import (
VarStruct, VarFileInfo, StringStruct, StringTable,
StringFileInfo, FixedFileInfo, VSVersionInfo, SetVersion,
)
import PyInstaller.__main__
assert len(sys.argv) > 1 and sys.argv[1] in ("32", "64")
_x86 = "_x86... | 864 |
https://github.com/erwan/play/blob/master/framework/src/play/libs/WS.java | Github Open Source | Open Source | Apache-2.0 | 2,010 | play | erwan | Java | Code | 1,517 | 3,640 | package play.libs;
import java.io.File;
import java.io.InputStream;
import java.net.URLEncoder;
import java.util.Arrays;
import java.util.Collection;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.concurrent.Future;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.pa... | 29,080 |
https://github.com/mfkiwl/marnav/blob/master/include/marnav/nmea/angle.hpp | Github Open Source | Open Source | BSD-4-Clause | 2,022 | marnav | mfkiwl | C++ | Code | 37 | 143 | #ifndef MARNAV_NMEA_ANGLE_HPP
#define MARNAV_NMEA_ANGLE_HPP
#include <marnav/geo/angle.hpp>
#include <string>
namespace marnav
{
namespace nmea
{
geo::latitude parse_latitude(const std::string & s);
std::string to_string(const geo::latitude & v);
geo::longitude parse_longitude(const std::string & s);
std::string to_... | 37,280 |
https://github.com/Noel-bk/nifi/blob/master/nifi-nar-bundles/nifi-standard-services/nifi-lookup-services-bundle/nifi-lookup-services/src/test/groovy/org/apache/nifi/lookup/db/TestSimpleDatabaseLookupService.groovy | Github Open Source | Open Source | Apache-2.0 | 2,022 | nifi | Noel-bk | Groovy | Code | 587 | 2,105 | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | 12,498 |
https://github.com/apache/activemq-artemis/blob/master/artemis-server/src/test/java/org/apache/activemq/artemis/core/config/impl/FileConfigurationTest.java | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-public-domain, MIT, OFL-1.1 | 2,023 | activemq-artemis | apache | Java | Code | 2,386 | 14,483 | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may n... | 24,672 |
https://github.com/lvpengyue/zjy/blob/master/src/views/contract-tender/index.js | Github Open Source | Open Source | MIT | null | zjy | lvpengyue | JavaScript | Code | 762 | 3,081 | import {
mapActions,
mapGetters
} from 'vuex';
import Cookies from 'js-cookie';
import tableExpand from '../widgets/table-expand/index.vue';
import alCascader from '../my-components/area-linkage/components/al-cascader.vue';
import Util from '../../libs/util';
import tenderComparison from '../widgets/tender-comparis... | 39,238 |
https://github.com/infinispan/infinispan/blob/master/documentation/src/main/asciidoc/topics/code_examples/ExtrinsicGroup.java | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-dco-1.1 | 2,023 | infinispan | infinispan | Java | Code | 12 | 35 | public interface Grouper<T> {
String computeGroup(T key, String group);
Class<T> getKeyType();
}
| 24,119 |
https://github.com/antonplakhotnyk/IpcPortable/blob/master/Transports/Qt/IpcClientNet.h | Github Open Source | Open Source | Unlicense | 2,021 | IpcPortable | antonplakhotnyk | C | Code | 59 | 305 | #pragma once
#include "MAssIpcCall.h"
#include "IpcClientTcpTransport.h"
#include "PostInterThread.h"
#include "IpcThreadTransportQt.h"
#include <mutex>
class IpcClientNet: public QObject
{
public:
IpcClientNet();
~IpcClientNet();
MAssIpcCall& Ipc();
void Init(const char* remote_address, uint16_t target_port);... | 5,462 |
https://github.com/ddmgy/tachiyomi/blob/master/app/src/main/java/eu/kanade/tachiyomi/ui/base/delegate/SecureActivityDelegate.kt | Github Open Source | Open Source | Apache-2.0 | 2,022 | tachiyomi | ddmgy | Kotlin | Code | 331 | 1,251 | package eu.kanade.tachiyomi.ui.base.delegate
import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import androidx.lifecycle.DefaultLifecycleObserver
import androidx.lifecycle.LifecycleOwner
import androidx.lifecycle.lifecycleScope
import eu.kanade.domain.base.BasePreferences
import eu.kanade.t... | 31,965 |
https://github.com/enonic/app-vwo/blob/master/src/main/java/com/enonic/app/vwo/rest/json/resource/GetCampaignDetailsRequestJson.java | Github Open Source | Open Source | Apache-2.0 | null | app-vwo | enonic | Java | Code | 49 | 184 | package com.enonic.app.vwo.rest.json.resource;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
public class GetCampaignDetailsRequestJson extends VWOServiceGeneralRequestJson
{
private Integer campaignId;
@JsonCreator
public GetCampaignDetailsRe... | 29,785 |
https://github.com/hyruuk/task_stimuli/blob/master/src/shared/meg.py | Github Open Source | Open Source | MIT | null | task_stimuli | hyruuk | Python | Code | 72 | 277 | from psychopy import parallel
from . import config
import time
# general triggers, common to every MEG protocoles
MEG_settings = {
"TASK_START_CODE": int("00000010", 2),
"TASK_START_STOP": int("00000100", 2),
}
# triggers for the eye-movements task
MEG_eyemvt = {
'sacc_left': int('10000000', 2),
'sacc... | 45,691 |
https://github.com/timgates42/BNRPersistence/blob/master/TokyoCabinet/tcbmttest.c | Github Open Source | Open Source | MIT | 2,021 | BNRPersistence | timgates42 | C | Code | 6,554 | 21,815 | /*************************************************************************************************
* The test cases of the B+ tree database API
* Copyright (C) 2006-2010 Mikio Hirabayashi
* This file is part of Tokyo Cabinet.
* Tokyo Cabinet is free software; you... | 19,257 |
https://github.com/SteamDragon/sleepy-discord/blob/master/include/sleepy_discord/websocketpp_common.h | Github Open Source | Open Source | MIT | null | sleepy-discord | SteamDragon | C | Code | 23 | 139 | #pragma once
#ifndef BOOST_VERSION
#ifndef EXISTENT_BOOST_ASIO
#define ASIO_STANDALONE
#endif
#define _WEBSOCKETPP_CPP11_STL_
#define _WEBSOCKETPP_CPP11_RANDOM_DEVICE_
#define _WEBSOCKETPP_CPP11_TYPE_TRAITS_
#endif // !BOOST_VERSION
#ifndef NONEXISTENT_WEBSOCKETPP
#include <websocketpp/config/asio_client.hpp>
#endif
| 4,998 |
https://github.com/amva40/amva40.github.io/blob/master/web/src/index.scss | Github Open Source | Open Source | MIT | 2,020 | amva40.github.io | amva40 | SCSS | Code | 85 | 406 | @font-face {
font-family: MajorMonoDisplay;
font-weight: 200;
src: url("./assets/fonts/MajorMonoDisplay-Regular.ttf");
}
@font-face {
font-family: Roboto;
font-weight: 200;
src: url("./assets/fonts/Roboto-Light.ttf");
}
@font-face {
font-family: Roboto;
font-weight: normal;
src: ur... | 29,865 |
https://github.com/jmulcahey-twilio/serverless-toolkit/blob/master/packages/twilio-run/src/runtime/internal/route-cache.ts | Github Open Source | Open Source | MIT | 2,022 | serverless-toolkit | jmulcahey-twilio | TypeScript | Code | 188 | 639 | import { ServerlessResourceConfigWithFilePath } from '@twilio-labs/serverless-api';
import { SearchConfig } from '@twilio-labs/serverless-api/dist/utils';
import { Merge } from 'type-fest';
import { StartCliConfig } from '../../config/start';
import { RouteInfo, getFunctionsAndAssets } from './runtime-paths';
type Ext... | 22,157 |
https://github.com/ay1741/ay1741.github.io/blob/master/owncloud/apps/files_sharing/tests/migrationtest.php | Github Open Source | Open Source | Apache-2.0 | null | ay1741.github.io | ay1741 | PHP | Code | 257 | 721 | <?php
/**
* ownCloud
*
* @author Bjoern Schiessle
* @copyright 2014 Bjoern Schiessle <schiessle@owncloud.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE
* License as published by the Free Software Foundation; either
* v... | 21,543 |
https://github.com/rossabaker/iteratee/blob/master/tests/jvm/src/it/scala/io/iteratee/files/XorFileModuleTests.scala | Github Open Source | Open Source | LicenseRef-scancode-warranty-disclaimer, Apache-2.0, BSD-3-Clause | 2,016 | iteratee | rossabaker | Scala | Code | 25 | 101 | package io.iteratee.files
import cats.Eval
import cats.data.XorT
import io.iteratee.tests.XorSuite
import io.iteratee.tests.files.FileModuleSuite
class XorFileModuleTests extends FileModuleSuite[({ type L[x] = XorT[Eval, Throwable, x] })#L]
with XorSuite with XorFileModule
| 48,495 |
https://github.com/zealoussnow/chromium/blob/master/third_party/zxcvbn-cpp/native-src/zxcvbn/frequency_lists.hpp | Github Open Source | Open Source | BSD-3-Clause-No-Nuclear-License-2014, BSD-3-Clause | 2,022 | chromium | zealoussnow | C++ | Code | 213 | 532 | #ifndef __ZXCVBN__FREQUENCY_LISTS_HPP
#define __ZXCVBN__FREQUENCY_LISTS_HPP
#include <cstdint>
#include <memory>
#include <vector>
#include "third_party/abseil-cpp/absl/types/optional.h"
#include "base/strings/string_piece.h"
namespace zxcvbn {
using rank_t = std::size_t;
// Stores words from a set of dictionaries... | 34,301 |
https://github.com/mwbrown/circa/blob/master/libs/zmq/zmq.cpp | Github Open Source | Open Source | MIT | 2,021 | circa | mwbrown | C++ | Code | 1,170 | 4,635 | // Copyright (c) Andrew Fischer. See LICENSE file for license terms.
#include <pthread.h>
#include "zmq.h"
#include "stdio.h"
#include "stdlib.h"
#include "unistd.h"
#include "string.h"
#include "circa/circa.h"
void *g_context = zmq_init(1);
struct Responder
{
void* socket;
bool expectingReply;
Respo... | 30,516 |
https://github.com/gunnit/spob/blob/master/protected/modules/user/views/profile/profile.php | Github Open Source | Open Source | MIT | 2,013 | spob | gunnit | PHP | Code | 495 | 1,985 | <?php
$this->pageTitle = Yii::app()->name . ' - ' . __("Profile");
$this->breadcrumbs = array(
__("Profile"),
);
$this->menu = array(
((UserModule::isAdmin()) ? array(
'label' => __('View Users'),
'icon' => 'icon-cogs',
'url' => array('/user/admin')) : array()),
array(
'label... | 40,941 |
https://github.com/redhawkIT/typescript-eslint/blob/master/packages/shared-fixtures/fixtures/typescript/basics/class-with-type-parameter.src.ts | Github Open Source | Open Source | BSD-2-Clause | 2,022 | typescript-eslint | redhawkIT | TypeScript | Code | 4 | 12 | class Foo<T> {
}
| 17,784 |
https://github.com/kisorbiswal/accounter/blob/master/src/com/vimukti/accounter/servlets/EncryptCompaniesServlet.java | Github Open Source | Open Source | Apache-2.0 | 2,015 | accounter | kisorbiswal | Java | Code | 340 | 1,518 | package com.vimukti.accounter.servlets;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import org.hibernate.Sessio... | 15,208 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.