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/FreeNightKnight/ogre-next/blob/master/OgreMain/src/OgrePose.cpp | Github Open Source | Open Source | MIT | null | ogre-next | FreeNightKnight | C++ | Code | 718 | 2,011 | /*
-----------------------------------------------------------------------------
This source file is part of OGRE-Next
(Object-oriented Graphics Rendering Engine)
For the latest info, see http://www.ogre3d.org/
Copyright (c) 2000-2014 Torus Knot Software Ltd
Permission is hereby granted, free of charge, to any p... | 16,779 |
https://github.com/SCell555/hl2-asw-port/blob/master/src/materialsystem/stdshaders/fxctmp9_tmp/portal_vs30.inc | Github Open Source | Open Source | MIT | 2,016 | hl2-asw-port | SCell555 | C++ | Code | 513 | 1,562 | // ALL SKIP STATEMENTS THAT AFFECT THIS SHADER!!!
// defined $LIGHTING_PREVIEW && defined $FASTPATH && $LIGHTING_PREVIEW && $FASTPATH
#include "shaderlib/cshader.h"
class portal_vs30_Static_Index
{
private:
int m_nHASALPHAMASK;
#ifdef _DEBUG
bool m_bHASALPHAMASK;
#endif
public:
void SetHASALPHAMASK( int i )
{
Ass... | 25,162 |
https://github.com/lskakaxi/acrn-hypervisor/blob/master/include/arch/x86/cpuid.h | Github Open Source | Open Source | BSD-3-Clause | 2,021 | acrn-hypervisor | lskakaxi | C | Code | 604 | 2,108 | /*
* Copyright (C) 2018 Intel Corporation. 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
* notice, this list of... | 11,964 |
https://github.com/bettercodepaul/swt2-bsa-frontend/blob/master/bogenliga/src/app/modules/shared/components/selectionlists/quicksearch-list/quicksearch-list.component.ts | Github Open Source | Open Source | MIT | null | swt2-bsa-frontend | bettercodepaul | TypeScript | Code | 321 | 1,018 | import {Component, EventEmitter, Input, OnChanges, OnInit, Output, SimpleChanges} from '@angular/core';
import {faSearch} from '@fortawesome/free-solid-svg-icons';
import {TranslatePipe} from '@ngx-translate/core';
import {isNullOrUndefined} from '@shared/functions';
import {VersionedDataObject} from '../../../data-pro... | 6,969 |
https://github.com/evias/eviasphp/blob/master/Service/Catalogue.php | Github Open Source | Open Source | BSD-3-Clause | 2,010 | eviasphp | evias | PHP | Code | 191 | 575 | <?php
class eVias_Service_Catalogue
extends eVias_Service_Abstract
{
static private $_catalogueList = array();
public static function initServiceCatalogue() {
// will init if needed
parent::_initDb();
}
/*
*
* PUBLIC API
*
*
*/
public function __construct() {
... | 5,693 |
https://github.com/tomgagnier/dhs-comp-sci/blob/master/src/main/java/term2/assignment3/Student_Runner_Ultimate.java | Github Open Source | Open Source | MIT | 2,018 | dhs-comp-sci | tomgagnier | Java | Code | 145 | 536 | package term2.assignment3;
import java.util.ArrayList;
public class Student_Runner_Ultimate {
public static void main(String[] args) {
Person person = new Person("John", "Doe");
System.out.println("Printing person:\n" + person + "\n");
UltimatePlayer player = new UltimatePlayer("Mary", "... | 3,129 |
https://github.com/GTYutingLiu/CSSFramework/blob/master/sass/_variables.scss | Github Open Source | Open Source | MIT | 2,017 | CSSFramework | GTYutingLiu | SCSS | Code | 80 | 384 | /* ==================================================================== */
/* == Variables ======================================================= */
/* ==================================================================== */
$col-width: 8.33333333%;
/* Breakpoints */
$media-breakpoint-xs: 0;
$media-breakpoint-sm: 576... | 12,505 |
https://github.com/whatevergeek/DialToolsForVS/blob/master/src/Providers/Navigate/NavigateController.cs | Github Open Source | Open Source | Apache-2.0 | 2,017 | DialToolsForVS | whatevergeek | C# | Code | 43 | 143 | namespace DialToolsForVS
{
internal class NavigateController : BaseController
{
public override string Moniker => NavigateControllerProvider.Moniker;
public override bool CanHandleRotate => true;
public override bool OnRotate(RotationDirection direction)
{
if (direc... | 49,494 |
https://github.com/wadejong/NWChem-Json/blob/master/src/ddscf/vectors.F | Github Open Source | Open Source | ECL-2.0 | 2,017 | NWChem-Json | wadejong | null | Spoken | 4,927 | 16,831 | logical function movecs_read_header(filename, title, basis_name,
$ scftype, nbf, nsets, nmo, ldnmo)
C$Id: vectors.F 26288 2014-09-24 19:14:28Z edo $
implicit none
#include "errquit.fh"
#include "global.fh"
#include "tcgmsg.fh"
#include "msgtypesf.h"
#include "msgids.fh"
#include "cscfps.fh"
#inclu... | 12,073 |
https://github.com/quanxinglong/chromium/blob/master/chrome/android/java/src/org/chromium/chrome/browser/net/qualityprovider/NetworkQualityProvider.java | Github Open Source | Open Source | BSD-3-Clause | 2,015 | chromium | quanxinglong | Java | Code | 330 | 855 | // Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.chrome.browser.net.qualityprovider;
import android.content.Context;
import org.chromium.base.annotations.CalledByNative;
import org... | 9,634 |
https://github.com/ritesh9835/EmailServices/blob/master/SendingEmailsWithWebMailInMVC/SendingEmailsWithWebMailInMVC/Views/Account/SignUp.cshtml | Github Open Source | Open Source | MIT | 2,021 | EmailServices | ritesh9835 | C# | Code | 302 | 1,007 | @model SendingEmailsWithWebMailInMVC.Models.User
@{
ViewBag.Title = "SignUp";
Layout = "~/Views/Shared/_Login.cshtml";
}
<h2 style="margin-top:7%" class="text-center">Create New Account</h2>
@using (Html.BeginForm())
{
@Html.AntiForgeryToken()
<hr />
<div class="form-horizontal" style="margin-le... | 20,167 |
https://github.com/TrevorDArcyEvans/Diving-Magpie-Software/blob/master/Borland/CBuilder5/Source/RTL/source/mbcs/mbsncpy.c | Github Open Source | Open Source | MIT | 2,020 | Diving-Magpie-Software | TrevorDArcyEvans | C | Code | 211 | 517 | /*-----------------------------------------------------------------------*
* filename - mbsncpy.c
*
* function(s)
* _mbsncpy - Copies a given number of bytes from one string
* into another.
*-----------------------------------------------------------------------*/
/*
* C/C++ Run Ti... | 31,660 |
https://github.com/AaronLuk/main/blob/master/src/test/java/mams/logic/commands/ListCommandTest.java | Github Open Source | Open Source | MIT | null | main | AaronLuk | Java | Code | 656 | 2,575 | package mams.logic.commands;
import static mams.logic.commands.CommandTestUtil.assertCommandSuccess;
import static mams.logic.commands.CommandTestUtil.showAppealAtIndex;
import static mams.logic.commands.CommandTestUtil.showModuleAtIndex;
import static mams.logic.commands.CommandTestUtil.showStudentAtIndex;
import sta... | 1,209 |
https://github.com/wgevaert/AOC/blob/master/2022/15.cpp | Github Open Source | Open Source | WTFPL | 2,022 | AOC | wgevaert | C++ | Code | 376 | 1,507 | #include <iostream>
#include <fstream>
#include <chrono>
#include <string>
#include <vector>/*
#include <unordered_map>*/
// Because I'm too lazy to type
typedef uint64_t ull_t;
typedef uint32_t u_t;
typedef int64_t ll_t;
unsigned verb_lvl = 0;
void read_or_die(std::string pattern, std::istream& input) {
for (au... | 6,893 |
https://github.com/shingchuang/intelRSD/blob/master/PSME/common/agent-framework/include/agent-framework/module-ref/requests/storage.hpp | Github Open Source | Open Source | BSD-3-Clause, MIT, LicenseRef-scancode-other-permissive, Apache-2.0, LicenseRef-scancode-public-domain | 2,017 | intelRSD | shingchuang | C++ | Code | 144 | 493 | /*!
* @copyright
* Copyright (c) 2015-2016 Intel Corporation
*
* @copyright
* 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
*
* @copyright
* http://www.apache.org/licenses/LICENSE-... | 14,757 |
https://github.com/viper3400/serenity-js/blob/master/packages/webdriverio/src/screenplay/questions/Value.ts | Github Open Source | Open Source | Apache-2.0 | 2,020 | serenity-js | viper3400 | TypeScript | Code | 271 | 958 | import { Answerable, AnswersQuestions, MetaQuestion, Question, UsesAbilities } from '@serenity-js/core';
import { formatted } from '@serenity-js/core/lib/io';
import { Element } from 'webdriverio';
import { TargetNestedElement } from './targets';
/**
* @desc
* Returns the `value` attribute of a given {@link WebEle... | 25,392 |
https://github.com/NijaCN/Takin/blob/master/takin-webapp/tro-cloud/tro-cloud-open/tro-cloud-open-client-starter/src/main/java/io/shulie/tro/cloud/open/api/impl/statistics/CloudPressureStatisticsApiImpl.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | Takin | NijaCN | Java | Code | 218 | 965 | /*
* Copyright 2021 Shulie Technology, Co.Ltd
* Email: shulie@shulie.io
* 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 r... | 51,905 |
https://github.com/Styren/river/blob/master/river/optim/ftrl.py | Github Open Source | Open Source | BSD-3-Clause | 2,021 | river | Styren | Python | Code | 260 | 783 | import collections
import numpy as np
from . import base
__all__ = ["FTRLProximal"]
class FTRLProximal(base.Optimizer):
"""FTRL-Proximal optimizer.
Parameters
----------
alpha
beta
l1
l2
Attributes
----------
z : collections.defaultdict
n : collections.defaultdict
... | 24,243 |
https://github.com/cristiandev19/djangoEcomerce/blob/master/comments/views.py | Github Open Source | Open Source | MIT | null | djangoEcomerce | cristiandev19 | Python | Code | 36 | 118 | from django.shortcuts import render, redirect
from comments.forms import CommentForm
from django.http import HttpResponseBadRequest
# Create your views here.
def create_comment(request):
form = CommentForm(request.POST)
if form.is_valid():
comment = form.save(commit=False)
comment.author = requ... | 8,181 |
https://github.com/kevleyski/math-atlas/blob/master/include/atlas_reflevel1.h | Github Open Source | Open Source | BSD-3-Clause-Clear | 2,020 | math-atlas | kevleyski | C | Code | 1,059 | 2,359 | /* ---------------------------------------------------------------------
*
* -- Automatically Tuned Linear Algebra Software (ATLAS)
* (C) Copyright 2000 All Rights Reserved
*
* -- ATLAS routine -- Version 3.9.24 -- December 25, 2000
*
* Author : Antoine P. Petitet
* Originally developed at the Univer... | 28,491 |
https://github.com/EnProLivingDoc/livingdoc/blob/master/livingdoc-repository-git/src/main/kotlin/org/livingdoc/repositories/git/GitDocumentIdentifier.kt | Github Open Source | Open Source | Apache-2.0 | 2,020 | livingdoc | EnProLivingDoc | Kotlin | Code | 107 | 273 | package org.livingdoc.repositories.git
import org.eclipse.jgit.lib.Constants
import java.io.File
/**
* A GitDocumentIdentifier identifies a document stored in a git repository by path and version
*/
internal class GitDocumentIdentifier(val path: String, private val version: String? = null) {
val format: String
... | 52,596 |
https://github.com/gfmio/csam/blob/master/lib/components/application.js | Github Open Source | Open Source | MIT | 2,017 | csam | gfmio | JavaScript | Code | 133 | 472 | "use strict";
exports.__esModule = true;
var component_1 = require("../component");
var html_1 = require("./html");
function Application(props, children) {
props = props || {};
children = children || [];
return (component_1.component(html_1.Html, null,
component_1.component(html_1.Head, null,
... | 13,567 |
https://github.com/youngdaLee/Baekjoon/blob/master/src/11/11131.py | Github Open Source | Open Source | MIT | 2,022 | Baekjoon | youngdaLee | Python | Code | 52 | 147 | """
11131. Balancing Weights
작성자: xCrypt0r
언어: Python 3
사용 메모리: 29,380 KB
소요 시간: 80 ms
해결 날짜: 2020년 9월 19일
"""
def main():
for _ in range(int(input())):
input()
res = sum(map(int, input().split()))
print('Right' if res > 0 else ('Left' if res < 0 else 'Equilibrium'))
if __name__... | 39,301 |
https://github.com/song2kim/console/blob/master/src/services/billing/cost-management/budget/type.ts | Github Open Source | Open Source | Apache-2.0 | 2,022 | console | song2kim | TypeScript | Code | 258 | 938 | import { Tags, TimeStamp } from '@/models';
import { RouteQueryString } from '@/lib/router-query-string';
import { QueryStoreFilter } from '@spaceone/console-core-lib/query/type';
import { Query } from '@spaceone/console-core-lib/space-connector/type';
interface BudgetPlannedLimit {
date: string;
limit: number;
}
i... | 30,833 |
https://github.com/PrincetonUSG/ReCal/blob/master/course_selection/static/js/Application.ts | Github Open Source | Open Source | MIT | 2,022 | ReCal | PrincetonUSG | TypeScript | Code | 67 | 330 | import Module = require('./Module');
var nice = new Module('nice', [
'ngResource',
'angular-loading-bar',
'ngAnimate',
//'ui.calendar',
'ui.bootstrap',
'ngAria',
'ngMaterial',
'cfp.hotkeys',
'LocalStorageModule',
'niceServices',
'n... | 24,593 |
https://github.com/fulinmao/leetcode/blob/master/src/com/fulin/LinkedList/IntersectionofTwoLinkedLists.java | Github Open Source | Open Source | Apache-2.0 | null | leetcode | fulinmao | Java | Code | 96 | 321 | package com.fulin.LinkedList;
import com.fulin.Utils.ListNode;
import java.util.Stack;
/**
* Created by fulin on 18-2-8.
*/
public class IntersectionofTwoLinkedLists {
public ListNode getIntersectionNode(ListNode headA, ListNode headB) {
if(headA == null || headB == null){
return null;
... | 18,605 |
https://github.com/tktcorporation/ObonHackathonBackend/blob/master/apiapp/views.py | Github Open Source | Open Source | MIT | null | ObonHackathonBackend | tktcorporation | Python | Code | 152 | 544 | import json
import random
from datetime import datetime
from apiapp.models import Message
from django.core import serializers
from django.http import HttpResponse, HttpResponseBadRequest, JsonResponse
from django.utils.decorators import method_decorator
from django.views.decorators.csrf import csrf_exempt
# from djan... | 25,430 |
https://github.com/jonnypjohnston/Xarial-xtoolkit/blob/master/src/Utils/Reflection/EnumExtension.cs | Github Open Source | Open Source | MIT | 2,021 | Xarial-xtoolkit | jonnypjohnston | C# | Code | 80 | 268 | //*********************************************************************
//xToolkit
//Copyright(C) 2020 Xarial Pty Limited
//Product URL: https://xtoolkit.xarial.com
//License: https://xtoolkit.xarial.com/license/
//*********************************************************************
using System;
using System.Collec... | 34,556 |
https://github.com/Krshivam/CSES-Problems-solution/blob/master/cses_1651.cpp | Github Open Source | Open Source | MIT | null | CSES-Problems-solution | Krshivam | C++ | Code | 231 | 1,102 |
#include<bits/stdc++.h>
using namespace std;
#define f first
#define s second
#define ll long long
#define pb push_back
#define mp make_pair
#define inp(x) cin>>x
#define print(x) cout<<x
#define pii pair<int,int>
#define pll pair<ll,ll>
#define gcd(a,b) __gcd(a,b)
#define reset(d,val) memset(d,val,sizeof(d))
#define... | 53,258 |
https://github.com/doctorpangloss/modulus-cli/blob/master/test/test-projects/roadrunner/app.js | Github Open Source | Open Source | MIT | null | modulus-cli | doctorpangloss | JavaScript | Code | 51 | 236 | var express = require('express');
var app = express.createServer();
console.log(process.env);
app.configure(function(){
app.use(express.static(__dirname + '/public'));
app.set('view engine', 'ejs');
});
app.get('/', function(req, res){
res.render('index', {});
});
app.get('/location/cincy', function(req, res)... | 42,367 |
https://github.com/Breno-Goya/orange-talents-07-template-ecommerce/blob/master/src/main/java/br/com/zupacademy/breno/mercadolivre/categories/CategoryController.java | Github Open Source | Open Source | Apache-2.0 | null | orange-talents-07-template-ecommerce | Breno-Goya | Java | Code | 59 | 271 | package br.com.zupacademy.breno.mercadolivre.categories;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.... | 44,401 |
https://github.com/tbenst/beaker-webppl/blob/master/core/src/main/web/plugin/init/embeddedBeakerConfig.js | Github Open Source | Open Source | Apache-2.0 | null | beaker-webppl | tbenst | JavaScript | Code | 679 | 2,255 | /*
* Copyright 2014 TWO SIGMA OPEN SOURCE, LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appl... | 28,862 |
https://github.com/marcinbudny/protoactor-dotnet/blob/master/src/Proto.Actor/FunctionActor.cs | Github Open Source | Open Source | Apache-2.0 | 2,022 | protoactor-dotnet | marcinbudny | C# | Code | 56 | 137 | // -----------------------------------------------------------------------
// <copyright file="FunctionActor.cs" company="Asynkron AB">
// Copyright (C) 2015-2022 Asynkron AB All rights reserved
// </copyright>
// -----------------------------------------------------------------------
using System.Threading.Tasks... | 15,507 |
https://github.com/Narotoconan/One-stop_Education/blob/master/src/components/searchPage/hotCard.vue | Github Open Source | Open Source | Apache-2.0 | 2,022 | One-stop_Education | Narotoconan | Vue | Code | 41 | 228 | <template>
<div class="hotCard mt-4">
<img src="../../assets/img/test/test1.webp" alt="">
<div class="d-inline-block ml-2 h-100 position-relative" style="vertical-align: top">
<div class="title">改稿修炼手册!一个能抢钱的Banner到底怎么排?</div>
<div class="hotCate">
<el-tag siz... | 30,327 |
https://github.com/yixiangli/breeze/blob/master/src/main/java/com/le/ag/breeze/component/StandardComponent.java | Github Open Source | Open Source | Apache-2.0 | 2,017 | breeze | yixiangli | Java | Code | 88 | 250 | package com.le.ag.breeze.component;
import com.le.ag.breeze.LifecycleBase;
import com.le.ag.breeze.exception.LifecycleException;
/**
*
* @author liyixiang
* @Info
* * * @Company leEco
* * * @Email <liyixiang@le.com>
* * * @Team SmartConnected
* @date 2016年9月1日
* @since JDK 1.7
* @Function 标准组件实现
*/
public ... | 51,098 |
https://github.com/georgettica/openshift-docs/blob/master/modules/op-installing-pipelines-operator-using-the-cli.adoc | Github Open Source | Open Source | Apache-2.0 | null | openshift-docs | georgettica | AsciiDoc | Code | 151 | 399 | // Module included in the following assemblies:
//
// * openshift_pipelines/installing-pipelines.adoc
:_content-type: PROCEDURE
[id="op-installing-pipelines-operator-using-the-cli_{context}"]
= Installing the OpenShift Pipelines Operator using the CLI
You can install {pipelines-title} Operator from the OperatorHub us... | 47,991 |
https://github.com/hongfuli/sharding-py/blob/master/shardingpy/util/reflectionutil.py | Github Open Source | Open Source | Apache-2.0 | 2,021 | sharding-py | hongfuli | Python | Code | 15 | 64 | import importlib
def load_class_for_name(name):
module_path, cls_name = name.rsplit('.', 1)
module = importlib.import_module(module_path)
return getattr(module, cls_name)
| 45,195 |
https://github.com/UniversalLogin/UniversalLoginSDK/blob/master/universal-login-relayer/src/config/config.ganache.ts | Github Open Source | Open Source | MIT | 2,020 | UniversalLoginSDK | UniversalLogin | TypeScript | Code | 171 | 906 | import dotenv from 'dotenv';
dotenv.config();
import {getEnv, UNIVERSAL_LOGIN_LOGO_URL, ETHER_NATIVE_TOKEN, NodeEnv, asNodeEnv, DEV_DAI_ADDRESS} from '@unilogin/commons';
import path from 'path';
import {baseConfig} from './baseConfig';
import {cast} from '@restless/sanitizers';
const getDatabaseForGanacheConfig = (en... | 33,061 |
https://github.com/googleapis/google-cloud-dotnet/blob/master/apis/Google.Cloud.DataCatalog.V1/Google.Cloud.DataCatalog.V1/PolicyTagManagerSerializationClient.g.cs | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-unknown-license-reference | 2,023 | google-cloud-dotnet | googleapis | C# | Code | 3,084 | 8,252 | // Copyright 2023 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | 32,311 |
https://github.com/muasim/PacmanServer/blob/master/src/main/java/edu/akdeniz/pacmanserver/match/Match.java | Github Open Source | Open Source | MIT | null | PacmanServer | muasim | Java | Code | 484 | 1,815 | package edu.akdeniz.pacmanserver.match;
import java.net.InetSocketAddress;
import java.nio.ByteBuffer;
import java.util.LinkedList;
import edu.akdeniz.pacmanserver.DataType;
import edu.akdeniz.pacmanserver.PlayerInfo;
import edu.akdeniz.pacmanserver.SocketSend;
import edu.akdeniz.pacmanserver.network.Packet;
import e... | 5,450 |
https://github.com/nirvanarsc/CompetitiveProgramming/blob/master/Java/leetcode/weekly_contests/weekly_246/P_4.java | Github Open Source | Open Source | MIT | 2,021 | CompetitiveProgramming | nirvanarsc | Java | Code | 220 | 509 | package leetcode.weekly_contests.weekly_246;
import java.util.ArrayList;
import java.util.List;
public class P_4 {
public int[] minDifference(int[] nums, int[][] queries) {
final List<List<Integer>> g = new ArrayList<>();
for (int i = 0; i < 100; i++) {
g.add(new ArrayList<>());
... | 32,200 |
https://github.com/Prajakta-Ashwini/YardSale/blob/master/app/src/main/java/com/android/yardsale/listeners/ReplaceListener.java | Github Open Source | Open Source | Apache-2.0 | 2,015 | YardSale | Prajakta-Ashwini | Java | Code | 12 | 41 | package com.android.yardsale.listeners;
import android.os.Bundle;
public interface ReplaceListener {
void onReplace(Bundle args);
}
| 13,292 |
https://github.com/vinhowe/nerf-proxy/blob/master/.gitignore | Github Open Source | Open Source | MIT | 2,020 | nerf-proxy | vinhowe | Ignore List | Code | 3 | 12 | .idea/
blacklist.txt
main
| 5,848 |
https://github.com/mathias/StarterBot-Crystal/blob/master/hlt/player.cr | Github Open Source | Open Source | MIT | 2,017 | StarterBot-Crystal | mathias | Crystal | Code | 161 | 382 | require "./ship"
class Player
getter :id
@id : Int32
@ships : Hash(Int32, Ship)
def initialize(player_id, ships)
@ships = ships
@id = player_id
end
def ships
@ships.values
end
def ship(ship_id)
@ships[ship_id]
end
# Parse an entire user input string from the Halite engine for a... | 50,536 |
https://github.com/SvetozarMateev/Organizer/blob/master/Organizer/TODO/Commands/NotebookCommands/SwitchNotebookCommand.cs | Github Open Source | Open Source | MIT | 2,017 | Organizer | SvetozarMateev | C# | Code | 68 | 265 | using System.Collections.Generic;
using System.Linq;
using TODO.Engine;
using TODO.Utils.GlobalConstants;
namespace TODO.Commands
{
public class SwitchNotebookCommand : Command, ICommand
{
public SwitchNotebookCommand()
: base()
{
}
public override string Execute()... | 23,254 |
https://github.com/Lavoaster/architect/blob/master/src/modules/discord/chat/state-machine/machine.ts | Github Open Source | Open Source | MIT | null | architect | Lavoaster | TypeScript | Code | 405 | 1,072 | import { Message } from 'discord.js';
import { SessionDocument } from '../../../../models';
import { SessionRepository } from '../../../../repositories';
export interface BaseContext {
state: string;
}
export interface MachineMessage {
type: 'message';
text: string;
}
export interface MachineStep {
type: 'st... | 48,658 |
https://github.com/Palmabit-IT/catalog/blob/master/tests/Decorators/ProductLanguageDecoratorTest.php | Github Open Source | Open Source | MIT | 2,015 | catalog | Palmabit-IT | PHP | Code | 530 | 2,586 | <?php namespace Palmabit\Catalog\Tests;
use Mockery as m;
use L;
use Palmabit\Catalog\ModelMultilanguage\Decorators\ProductLanguageDecorator;
use Palmabit\Catalog\Models\Product;
class ProductLanguageDecoratorTest extends DbTestCase
{
private $product;
private $current_lang;
private $default_lang;
p... | 32,743 |
https://github.com/marcosfede/ec-archlinux/blob/master/board/daisy/board.c | Github Open Source | Open Source | BSD-3-Clause | null | ec-archlinux | marcosfede | C | Code | 864 | 2,980 | /* Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
/* Daisy board-specific configuration */
#include "board.h"
#include "common.h"
#include "dma.h"
#include "i2c.h"
#include "gpio.h"
#include "r... | 48,585 |
https://github.com/senseibaka/AdoNetCore.AseClient/blob/master/test/AdoNetCore.AseClient.Tests/Integration/AliasTests.cs | Github Open Source | Open Source | Apache-2.0 | 2,019 | AdoNetCore.AseClient | senseibaka | C# | Code | 235 | 951 | using System;
using System.Data;
using System.Linq;
using AdoNetCore.AseClient.Internal;
using Dapper;
using NUnit.Framework;
namespace AdoNetCore.AseClient.Tests.Integration
{
[TestFixture]
[Category("quick")]
public class AliasTests
{
private IDbConnection GetConnection()
{
... | 10,338 |
https://github.com/hedou/wego/blob/master/wego/helpers/official.py | Github Open Source | Open Source | Apache-2.0 | 2,021 | wego | hedou | Python | Code | 113 | 455 | # -*- coding: utf-8 -*-
from .base_helper import BaseHelper
class DjangoHelper(BaseHelper):
def __init__(self, request):
self.request = request
def get_current_path(self):
return self.request.get_full_path()
def get_params(self):
return self.request.GET.dict()
def get_body(... | 52,707 |
https://github.com/keheliyax/kmerind/blob/master/src/iterators/container_concatenating_iterator.hpp | Github Open Source | Open Source | Apache-2.0 | 2,019 | kmerind | keheliyax | C++ | Code | 1,507 | 4,339 | /*
* Copyright 2015 Georgia Institute of Technology
*
* 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 applicab... | 18,335 |
https://github.com/zhmu/ananas/blob/master/external/gcc-12.1.0/gcc/testsuite/g++.dg/template/friend69.C | Github Open Source | Open Source | LGPL-2.1-only, FSFAP, LGPL-3.0-only, GPL-3.0-only, GPL-2.0-only, GCC-exception-3.1, LGPL-2.0-or-later, Zlib, LicenseRef-scancode-public-domain | 2,022 | ananas | zhmu | C | Code | 43 | 97 | // { dg-do compile }
struct A;
struct B {
friend struct A;
private:
static void f();
protected:
static void g();
};
struct A {
friend void g(A) {
B::f(); // { dg-error "private" }
B::g(); // { dg-error "protected" }
}
};
| 33,729 |
https://github.com/dankrusi/CodersDrawpad/blob/master/controlpoint.cpp | Github Open Source | Open Source | MIT | null | CodersDrawpad | dankrusi | C++ | Code | 141 | 801 | #include "controlpoint.h"
#include <QDebug>
#include <QGraphicsItem>
#include <QGraphicsScene>
#include <QGraphicsSceneMouseEvent>
#include "point.h"
#include "path.h"
ControlPoint::ControlPoint(Point *parent) :
QGraphicsItem(parent)
{
setVisible(false);
setFlag(QGraphicsItem::ItemIsMovable, true);
s... | 3,981 |
https://github.com/arangodb/arangodb/blob/master/3rdParty/V8/v7.9.317/third_party/icu/source/i18n/olsontz.h | Github Open Source | Open Source | LicenseRef-scancode-unicode, ICU, LicenseRef-scancode-unknown-license-reference, BSD-3-Clause, LicenseRef-scancode-public-domain, BSD-2-Clause, NAIST-2003, MIT, bzip2-1.0.6, Apache-2.0, SunPro, Zlib, GPL-1.0-or-later, OpenSSL, ISC, LicenseRef-scancode-gutenberg-2020, GPL-2.0-only, CC0-1.0, BSL-1.0, LicenseRef-scancode-... | 2,023 | arangodb | arangodb | C++ | Code | 1,996 | 4,360 | // © 2016 and later: Unicode, Inc. and others.
// License & terms of use: http://www.unicode.org/copyright.html
/*
**********************************************************************
* Copyright (c) 2003-2013, International Business Machines
* Corporation and others. All Rights Reserved.
***************************... | 22,270 |
https://github.com/evgenymatveev/Task/blob/master/chapter_001/src/main/java/ru/ematveev/arraydublicate/ArrayDublicate.java | Github Open Source | Open Source | Apache-2.0 | 2,017 | Task | evgenymatveev | Java | Code | 75 | 245 | package ru.ematveev.arraydublicate;
public class ArrayDublicate{
public String [] arrayDublicate(String [] array){
int x = array.length;
int p = array.length;
int a = 0;
for(int i = 0; i < x; i++){
for(int j = 1; j < x; j++){
if(array[i] == null) break;
if(array[i].equals(array[j+i])){
a... | 36,474 |
https://github.com/ChaseVoid/hello-next/blob/master/pages/post.js | Github Open Source | Open Source | MIT | null | hello-next | ChaseVoid | JavaScript | Code | 43 | 105 | import withLayout from '../components/Layout';
import { useRouter } from 'next/router';
const Content = () => {
const router = useRouter();
return (
<>
<h1>{router.query.title}</h1>
<p>This is the blog post content.</p>
</>
);
};
const Page = () => <Content />;
export default withLayout(... | 12,655 |
https://github.com/msftgits/botchat/blob/master/packages/api/src/hooks/useTimeoutForSend.ts | Github Open Source | Open Source | MIT | null | botchat | msftgits | TypeScript | Code | 31 | 78 | import type { WebChatActivity } from 'botframework-webchat-core';
import useStyleOptions from './useStyleOptions';
export default function useTimeoutForSend(): [number | ((activity: WebChatActivity) => number)] {
const [{ sendTimeout }] = useStyleOptions();
return [sendTimeout];
}
| 41,802 |
https://github.com/FR98/dynamic-rendering/blob/master/utils/glmath.py | Github Open Source | Open Source | MIT | null | dynamic-rendering | FR98 | Python | Code | 575 | 1,799 | """
---------------------------------------------------------------------------------------------------
Author:
Francisco Rosal 18676
---------------------------------------------------------------------------------------------------
"""
from numpy import pi
def relative(user_input, input_low, input_high, output_h... | 2,845 |
https://github.com/cnasikas/data-processing/blob/master/dapp/src/actions/notifications.js | Github Open Source | Open Source | MIT | 2,018 | data-processing | cnasikas | JavaScript | Code | 22 | 60 | import types from './ActionTypes'
import { buildActions } from '../utils/actions'
const actions = buildActions({
addNotification: types.ADD_NOTIFICATION,
removeNotification: types.REMOVE_NOTIFICATION
})
export default actions
| 14,714 |
https://github.com/adsaws12/elearningapp/blob/master/resources/views/admin/quiz/editquestion.blade.php | Github Open Source | Open Source | MIT | null | elearningapp | adsaws12 | PHP | Code | 122 | 524 | @extends('layouts.app')
@section('content')
<div class="container">
<div class="col-12 mx-auto">
<div class="card p-3" style="box-shadow:0 0.5rem 1rem rgb(0 0 0 / 15%)">
<div class="card-title">
<h3>Edit a Question</h3>
<hr>
</div>
<form c... | 9,795 |
https://github.com/Lolita-Lolita/BUAA-Software-Engineer-2020/blob/master/backend/credit/src/main/java/com/example/credit/configuration/RabbitMQConfiguration.java | Github Open Source | Open Source | MIT | 2,021 | BUAA-Software-Engineer-2020 | Lolita-Lolita | Java | Code | 18 | 92 | package com.example.credit.configuration;
import org.springframework.cloud.stream.annotation.Input;
import org.springframework.messaging.SubscribableChannel;
public interface RabbitMQConfiguration {
String USER_INPUT = "user";
@Input(RabbitMQConfiguration.USER_INPUT)
SubscribableChannel userMessage();
}... | 22,020 |
https://github.com/keep3r-network/keep3r-network-v2/blob/master/test/unit/Keep3rHelper.spec.ts | Github Open Source | Open Source | MIT | 2,022 | keep3r-network-v2 | keep3r-network | TypeScript | Code | 1,220 | 4,673 | import IUniswapV3PoolArtifact from '@artifacts/@uniswap/v3-core/contracts/interfaces/IUniswapV3Pool.sol/IUniswapV3Pool.json';
import { FakeContract, MockContract, MockContractFactory, smock } from '@defi-wonderland/smock';
import { KP3R_V1_ADDRESS, KP3R_WETH_V3_POOL_ADDRESS } from '@e2e/common';
import { BigNumber } fr... | 45,140 |
https://github.com/bcgit/bc-java/blob/master/core/src/main/java/org/bouncycastle/crypto/modes/gcm/Tables8kGCMMultiplier.java | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, MIT, Apache-2.0 | 2,023 | bc-java | bcgit | Java | Code | 275 | 834 | package org.bouncycastle.crypto.modes.gcm;
import org.bouncycastle.util.Pack;
public class Tables8kGCMMultiplier
implements GCMMultiplier
{
private byte[] H;
private long[][][] T;
public void init(byte[] H)
{
if (T == null)
{
T = new long[2][256][2];
}
... | 50,841 |
https://github.com/PacktPublishing/Modular-Programming-with-PHP7/blob/master/Chapter05/vendor/symfony/symfony/src/Symfony/Bridge/ProxyManager/Tests/LazyProxy/PhpDumper/ProxyDumperTest.php | Github Open Source | Open Source | MIT | 2,023 | Modular-Programming-with-PHP7 | PacktPublishing | PHP | Code | 196 | 856 | <?php
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Symfony\Bridge\ProxyManager\Tests\LazyProxy\PhpDumper;
use Symfony\Brid... | 1,134 |
https://github.com/nhamilakis/pyannote-audio/blob/master/pyannote/audio/features/spec_augmentor.py | Github Open Source | Open Source | MIT | null | pyannote-audio | nhamilakis | Python | Code | 279 | 1,052 | import numpy as np
from pyannote.core import SlidingWindowFeature
import random
import torch
class SpecAugmentor(object):
"""2 way spectrogram augmentation :
1) Frequency masking
2) Time masking
"""
def _spec_augment(mel_spectrogram, frequency_masking_para=27,
time_ma... | 15,206 |
https://github.com/unseen-code/tianqi_src/blob/master/src/BattleUIButtonID.cs | Github Open Source | Open Source | MIT | 2,017 | tianqi_src | unseen-code | C# | Code | 37 | 85 | using System;
public class BattleUIButtonID
{
public const int BtnAttack = 1;
public const int BtnRoll = 8;
public const int BtnSkill1 = 11;
public const int BtnSkill2 = 12;
public const int BtnSkill3 = 13;
}
| 45,673 |
https://github.com/livestalker-archive/json-rpc-db/blob/master/setup.py | Github Open Source | Open Source | MIT | 2,017 | json-rpc-db | livestalker-archive | Python | Code | 104 | 375 | from setuptools import setup, find_packages
from jsonrpcdb import version, PROJECT
from codecs import open
from os import path
root_project = path.abspath(path.dirname(__file__))
with open(path.join(root_project, 'README.rst'), encoding='utf-8') as f:
long_description = f.read()
setup(
name=PROJECT,
vers... | 13,161 |
https://github.com/CUBRID/cubrid-testcases/blob/master/sql/_26_features_920/issue_10161_partition_collate/cases/list_015.sql | Github Open Source | Open Source | BSD-3-Clause | 2,023 | cubrid-testcases | CUBRID | SQL | Code | 134 | 326 | set names utf8;
CREATE TABLE t1 (a VARCHAR(10), b int) collate utf8_en_ci
PARTITION BY LIST (a) (
PARTITION a1 VALUES IN ('a'),
PARTITION a2 VALUES IN ('b')
);
insert into t1 select if(rownum%2=0, 'a', 'b'), rownum from db_class x1, db_class x2, db_class x3 limit 20000;
ALTER TABLE t1
REORGANIZE PARTITION a1 ... | 49,701 |
https://github.com/FreezyAG/user-hobbies/blob/master/src/utils/routeNotFound.ts | Github Open Source | Open Source | MIT | null | user-hobbies | FreezyAG | TypeScript | Code | 18 | 41 | const routeNotFound = (_req, res) => res
.status(404).json({ error: true, message: 'Route not found.' });
export default routeNotFound;
| 48,171 |
https://github.com/ajax27/denoify/blob/master/src/test/moduleAddress/test8.ts | Github Open Source | Open Source | MIT | null | denoify | ajax27 | TypeScript | Code | 86 | 396 | import { ModuleAddress } from "../../lib/ModuleAddress";
import * as inDepth from "evt/tools/inDepth";
import { assert } from "evt/tools/typeSafety";
(async () => {
const moduleAddress: ModuleAddress.DenoLandUrl = {
"type": "DENO.LAND URL",
"isStd": false,
"pathToIndex": "js-yaml.js",
... | 41,543 |
https://github.com/omarijoel2/havengrc/blob/master/havenapi/vendor/github.com/deis/helm/action/create.go | Github Open Source | Open Source | Apache-2.0 | 2,018 | havengrc | omarijoel2 | Go | Code | 336 | 945 | package action
import (
"io/ioutil"
"os"
"path/filepath"
"text/template"
"github.com/helm/helm-classic/chart"
"github.com/helm/helm-classic/log"
helm "github.com/helm/helm-classic/util"
)
// readmeSkel is the template for the README.md
const readmeSkel = `# {{.Name}}
Describe your chart here. Link to upstrea... | 42,130 |
https://github.com/khaleds961/3atari2ak-app/blob/master/BackEnd/app/Http/Controllers/ReviewsController.php | Github Open Source | Open Source | MIT | 2,021 | 3atari2ak-app | khaleds961 | PHP | Code | 124 | 414 | <?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Models\Reviews;
class ReviewsController extends Controller
{
public function addreview(request $request)
{
$review = new Reviews;
try {
$review->fill($request->all());
$review->save();
... | 3,886 |
https://github.com/cdli-gh/mtaac_cdli_ur3_corpus/blob/master/ur3_corpus_data/annotated/morph/P145/P145404.conll | Github Open Source | Open Source | CC0-1.0, LicenseRef-scancode-public-domain | 2,022 | mtaac_cdli_ur3_corpus | cdli-gh | null | Spoken | 81 | 309 | #new_text=P145404
FORM SEGM XPOSTAG XPOSTAG POS
3(u) 3(u)[ten] NU NU D
8(disz) 8(disz)[one] NU NU D
ma-na mana[unit] N N D
siki-gi sikigi[wool_type] N N D
siki siki[wool][-'a] N N D
ezem-ma _ N N POS
u4 ud[day] N N D
dingir-ra Dingira[1] PN PN D
en-na en[priest]-ak[-e] PN N.GEN.ERG D
nu-ti-la _ V NF.V.PT.TERM Iabcdefgh... | 53,000 |
https://github.com/mattpjohnson/drb/blob/master/dist/translators/index.d.ts | Github Open Source | Open Source | MIT | 2,020 | drb | mattpjohnson | TypeScript | Code | 8 | 22 | export interface DrbTranslator {
(tokens: string[]): string[];
}
| 39,648 |
https://github.com/ddonabedian/medikit/blob/master/src/Medikit/Medikit.Website/angularApp/app/message/message.component.js | Github Open Source | Open Source | Apache-2.0 | null | medikit | ddonabedian | JavaScript | Code | 826 | 2,955 | var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(d... | 8,480 |
https://github.com/Andersonlima1/allflix0/blob/master/.vscode/extensions/knisterpeter.vscode-github-0.30.3/out/src/git.js | Github Open Source | Open Source | MIT | null | allflix0 | Andersonlima1 | JavaScript | Code | 1,141 | 3,389 | "use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Refl... | 37,611 |
https://github.com/saucaca/Register/blob/master/app/src/main/java/com/nytimes/android/external/register/BuyActivity.kt | Github Open Source | Open Source | LicenseRef-scancode-warranty-disclaimer, Apache-2.0 | 2,019 | Register | saucaca | Kotlin | Code | 864 | 3,888 | package com.nytimes.android.external.register
import android.app.Activity
import android.content.Intent
import android.os.Bundle
import android.util.Log
import android.view.View
import android.widget.*
import androidx.annotation.VisibleForTesting
import androidx.appcompat.app.AppCompatActivity
import com.google.common... | 25,439 |
https://github.com/yuweijun/shufabeitie/blob/master/views/error.jade | Github Open Source | Open Source | MIT | 2,019 | shufabeitie | yuweijun | null | Spoken | 12 | 48 | extends layout
block content
#beities.container-fluid
.alert.alert-danger
h1= message
h2= error.status
pre #{error.stack}
| 3,117 |
https://github.com/SummerSad/Crack-C-Interview/blob/master/swapNibble/main.cpp | Github Open Source | Open Source | MIT | null | Crack-C-Interview | SummerSad | C++ | Code | 55 | 151 | #include <stdio.h>
// 100 is (0110)(0100)
// (0110) is a nibble
// swap (0100)(0110) is 70
//nibble 4 bit
char swapNibble(char c)
{
char result;
//c: XXXXYYYY
//c>>4: 0000XXXX
//c<<4: YYYY0000
result = c >> 4 | c << 4;
return result;
}
int main()
{
char c = 100;
printf("%d\n", swapNibble(c));
return 0;
}
| 10,182 |
https://github.com/fr33mang/vas3k.club/blob/master/auth/models.py | Github Open Source | Open Source | MIT | null | vas3k.club | fr33mang | Python | Code | 245 | 1,125 | from datetime import datetime, timedelta
from uuid import uuid4
from django.conf import settings
from django.db import models
from club.exceptions import RateLimitException, InvalidCode
from users.models.user import User
from utils.strings import random_string, random_number
class Apps(models.Model):
id = model... | 36,557 |
https://github.com/rrsaikat/DonorKothai/blob/master/app/src/main/java/com/rrsaikat/donorkothai/constants/FireBaseConstants.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | DonorKothai | rrsaikat | Java | Code | 35 | 87 | package com.rrsaikat.donorkothai.constants;
public class FireBaseConstants {
private FireBaseConstants() {
throw new AssertionError();
}
public final static String USERS = "users";
public final static String DONOR = "donor";
public static final String RECEIVER = "receiver";
}
| 6,297 |
https://github.com/robamler/demo-ml-blockchain-ui/blob/master/packages/page-staking/src/Payouts/useStakerPayouts.ts | Github Open Source | Open Source | Apache-2.0 | 2,021 | demo-ml-blockchain-ui | robamler | TypeScript | Code | 110 | 316 | // Copyright 2017-2020 @polkadot/app-staking authors & contributors
// This software may be modified and distributed under the terms
// of the Apache-2.0 license. See the LICENSE file for details.
import { EraIndex } from '@polkadot/types/interfaces';
import BN from 'bn.js';
import { useEffect, useState } from 'react... | 10,119 |
https://github.com/gurjeet/svelte-ts-clone/blob/master/packages/type-checker/src/svelte-type-checker.ts | Github Open Source | Open Source | MIT | 2,019 | svelte-ts-clone | gurjeet | TypeScript | Code | 1,082 | 3,632 | import { CompilerHost, log } from '@bazel/typescript';
import * as tsSimple from 'ts-simple-type';
import * as ts from 'typescript';
import * as svelte from '@svelte-ts/common';
import {
createNonExistentPropertyDiagnostic,
createComponentTypesNotAssignableDiagnostic,
createDeclarationNotFoundDiagnostic,
} from ... | 23,181 |
https://github.com/juliansarza/08-30-21-adv-java/blob/master/week-8/rest-demo/src/main/java/com/tts/restdemo/service/SimpleServiceImpl.java | Github Open Source | Open Source | MIT | 2,021 | 08-30-21-adv-java | juliansarza | Java | Code | 52 | 162 | package com.tts.restdemo.service;
import org.springframework.stereotype.Service;
import java.time.LocalDate;
import java.util.Date;
@Service
public class SimpleServiceImpl implements SimpleService{
// private Date dt = new Date();
LocalDate currentDate = LocalDate.now();
int currentYear = currentDate.get... | 42,332 |
https://github.com/acrylplatform/Acryl/blob/master/node/src/test/scala/com/acrylplatform/transaction/smart/script/ScriptReaderTest.scala | Github Open Source | Open Source | MIT | 2,021 | Acryl | acrylplatform | Scala | Code | 138 | 541 | package com.acrylplatform.transaction.smart.script
import com.acrylplatform.common.utils._
import com.acrylplatform.lang.directives.DirectiveDictionary
import com.acrylplatform.lang.directives.values._
import com.acrylplatform.lang.script.{ContractScript, ScriptReader}
import com.acrylplatform.lang.v1.Serde
import com... | 14,642 |
https://github.com/psoc-rs/psoc6-pac/blob/master/src/srss/srss_intr_cfg.rs | Github Open Source | Open Source | BSD-3-Clause, 0BSD, Apache-2.0 | 2,022 | psoc6-pac | psoc-rs | Rust | Code | 597 | 2,041 | #[doc = "Register `SRSS_INTR_CFG` reader"]
pub struct R(crate::R<SRSS_INTR_CFG_SPEC>);
impl core::ops::Deref for R {
type Target = crate::R<SRSS_INTR_CFG_SPEC>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
impl From<crate::R<SRSS_INTR_CFG_SPEC>> for R {
#[inline(always)]
... | 34,499 |
https://github.com/372623460jh/sand-editor/blob/master/packages/sand-editor/src/plugins/heading/handlers/index.ts | Github Open Source | Open Source | MIT | 2,021 | sand-editor | 372623460jh | TypeScript | Code | 51 | 143 | import onEnter from './onEnter';
import onSpace from './onSpace';
const KEY_ENTER = 'Enter';
const KEY_SPACE = ' ';
export function onKeyDown(options, event, editor, next) {
const args = [options, event, editor, next];
switch (event.key) {
case KEY_ENTER:
// @ts-ignore
return onEnter(...args);
... | 13,023 |
https://github.com/rsikka99/work/blob/master/application/modules/dealerapi/Bootstrap.php | Github Open Source | Open Source | Apache-2.0 | 2,017 | work | rsikka99 | PHP | Code | 36 | 125 | <?php
/**
* Class Api_Bootstrap
*/
class Dealerapi_Bootstrap extends Zend_Application_Module_Bootstrap
{
// protected function _initAddToAcl ()
// {
// $acl = Zend_Registry::get('Zend_Acl');
// if ($acl instanceof MPSToolbox\Legacy\Models\Acl\AppAclModel)
// {
// Api_Model_Acl::... | 43,762 |
https://github.com/maxwelldemaio/langlab/blob/master/conjugate/views.py | Github Open Source | Open Source | MIT | 2,021 | langlab | maxwelldemaio | Python | Code | 635 | 2,030 | from random import choice, randint
from django.contrib import messages
from django import forms
from django.forms import formset_factory, modelformset_factory
from django.shortcuts import redirect, render, reverse
from django.http import HttpResponse, HttpResponseRedirect
from .models import Conjugation, Language, Su... | 10,573 |
https://github.com/kdaniel21/api.reservatio/blob/master/src/modules/mailer/templates/confirm-email/confirm-email.template.ts | Github Open Source | Open Source | MIT | null | api.reservatio | kdaniel21 | TypeScript | Code | 44 | 117 | import { User } from '@prisma/client'
import { BaseTemplate } from '../../base.template'
export interface ConfirmEmailTemplateData {
user: User
}
export class ConfirmEmailTemplate extends BaseTemplate<ConfirmEmailTemplateData> {
constructor(readonly templateData: ConfirmEmailTemplateData) {
super()
}
rea... | 1,246 |
https://github.com/ajpy08/Anexo24Front/blob/master/src/app/pages/agentes-aduanales/agente-aduanal.service.ts | Github Open Source | Open Source | MIT | null | Anexo24Front | ajpy08 | TypeScript | Code | 275 | 1,064 | import { AgenteAduanal } from './agente-aduanal.model';
import { Injectable } from '@angular/core';
import { GeneralService } from './../../shared/services/general.service';
import { NotificationsService } from './../notifications/notifications.service';
import { HttpClient } from '@angular/common/http';
import { URL_S... | 33,197 |
https://github.com/AaronFriel/pulumi-google-native/blob/master/sdk/go/google/cloudbuild/v1/pulumiEnums.go | Github Open Source | Open Source | Apache-2.0 | 2,022 | pulumi-google-native | AaronFriel | Go | Code | 6,128 | 27,582 | // *** WARNING: this file was generated by the Pulumi SDK Generator. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package v1
import (
"context"
"reflect"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
// Option to define build log streaming behavior to Google Cloud Storage... | 30,476 |
https://github.com/lschuetze/dblp.yaml/blob/master/journals/ijet.bib | Github Open Source | Open Source | ODC-By-1.0 | 2,016 | dblp.yaml | lschuetze | null | Spoken | 20,000 | 50,605 | @article{journals/ijet/GiouvanakisFK11, title = {Three Application Scenarios for Use in the myCourse Educational Environment}, pages = {58-64}, year = {2011}, volume = {6}, journal = {iJET}, number = {1}, url = {http://online-journals.org/i-jet/article/view/1531}, author = {Thanasis Giouvanakis and Garyfallos Fragidis ... | 28,194 |
https://github.com/pagieco/focus-ui/blob/master/src/components/text-style/index.js | Github Open Source | Open Source | MIT | null | focus-ui | pagieco | JavaScript | Code | 13 | 35 | import TextStyle from './components/TextStyle.vue';
export { Variation } from './components/TextStyle.vue';
export default TextStyle;
| 42,478 |
https://github.com/xujing1994/open_spiel/blob/master/open_spiel/games/negotiation.cc | Github Open Source | Open Source | Apache-2.0 | null | open_spiel | xujing1994 | C++ | Code | 2,118 | 6,890 | // Copyright 2019 DeepMind Technologies Ltd. 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 require... | 47,265 |
https://github.com/icicaf/globalestetica/blob/master/application/controllers/Clogin.php | Github Open Source | Open Source | MIT | null | globalestetica | icicaf | PHP | Code | 206 | 1,460 | <?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Clogin extends CI_Controller
{
function __construct()
{
parent::__construct();
$this->load->helper('url');
$this->load->library('tank_auth');
}
/**
* Vista para Login
*
*/
public function index()
{
$this->load->view('login... | 47,925 |
https://github.com/hoangnhonline/kkaffee-2017/blob/master/resources/views/frontend/cart/address-info.blade.php | Github Open Source | Open Source | MIT | null | kkaffee-2017 | hoangnhonline | PHP | Code | 1,011 | 4,527 | @extends('frontend.layout')
@include('frontend.partials.meta')
@section('content')
<?php $total = 0; ?>
<article class="mar-top40">
<div class="container">
<div class="breadcrumbs">
<ul>
<li><a class="home" href="{{ route('home') }}" title="Trở về trang chủ">Trang chủ</a></li> ... | 13,099 |
https://github.com/EndangeredF1sh/containerproxy/blob/master/src/main/java/hk/edu/polyu/comp/vlabcontroller/controllers/AdminController.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | containerproxy | EndangeredF1sh | Java | Code | 205 | 851 | package hk.edu.polyu.comp.vlabcontroller.controllers;
import hk.edu.polyu.comp.vlabcontroller.auth.IAuthenticationBackend;
import hk.edu.polyu.comp.vlabcontroller.model.runtime.HeartbeatStatus;
import hk.edu.polyu.comp.vlabcontroller.model.runtime.Proxy;
import hk.edu.polyu.comp.vlabcontroller.service.HeartbeatService... | 27,312 |
https://github.com/stanfy/helium/blob/master/helium/src/main/groovy/com/stanfy/helium/internal/handler/ScriptExtender.groovy | Github Open Source | Open Source | Apache-2.0 | 2,020 | helium | stanfy | Groovy | Code | 229 | 699 | package com.stanfy.helium.internal.handler
import com.stanfy.helium.handler.Handler
import com.stanfy.helium.internal.dsl.HeliumScript
import com.stanfy.helium.internal.dsl.ProjectDsl
import com.stanfy.helium.model.Project
import org.codehaus.groovy.control.CompilerConfiguration
import java.nio.charset.Charset
/**
... | 31,560 |
https://github.com/MicrosoftDocs/mslearn-aspnet-core/blob/master/modules/microservices-configuration-aspnet-core/src/Services/Catalog/Catalog.API/IntegrationEvents/ICatalogIntegrationEventService.cs | Github Open Source | Open Source | MIT | 2,023 | mslearn-aspnet-core | MicrosoftDocs | C# | Code | 19 | 96 | using Microsoft.eShopOnContainers.BuildingBlocks.EventBus.Events;
using System.Threading.Tasks;
namespace Catalog.API.IntegrationEvents
{
public interface ICatalogIntegrationEventService
{
Task SaveEventAndCatalogContextChangesAsync(IntegrationEvent evt);
Task PublishThroughEventBusAsync(Integ... | 12,937 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.