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/qhapaq-49/pokeai/blob/master/pokeai/ai/battle_status.py | Github Open Source | Open Source | MIT | 2,021 | pokeai | qhapaq-49 | Python | Code | 569 | 2,465 | """
バトルの状態を表すオブジェクト
あるプレイヤーから見た状態を管理する
"""
import json
import re
from typing import Dict, Set, Optional, Tuple
from pokeai.sim.party_generator import Party
def parse_hp_condition(hp_condition: str) -> Tuple[int, int, str]:
"""
HPと状態異常を表す文字列のパース
:param hp_condition: '50/200' (現在HP=50, 最大HP=200, 状態異常なし) or... | 32,512 |
https://github.com/Ilyoung-3pm/prepare-a-case/blob/master/tests/pact/case-service/update-case.test.pact.js | Github Open Source | Open Source | MIT | 2,021 | prepare-a-case | Ilyoung-3pm | JavaScript | Code | 160 | 484 | /* global describe, it, expect */
const { pactWith } = require('jest-pact')
const { Matchers } = require('@pact-foundation/pact')
const { update } = require('../../../server/services/utils/request')
const { validateSchema } = require('../../testUtils/schemaValidation')
const pactResponseMock = require('./update-case.t... | 26,926 |
https://github.com/pengbin8/endiciaApi/blob/master/TSI.Utils.Shipping.Endicia/TSI.Utils.Shipping.Endicia/LabelRequestResponse.cs | Github Open Source | Open Source | Apache-2.0 | 2,016 | endiciaApi | pengbin8 | C# | Code | 388 | 2,222 | using System;
using System.Collections.Generic;
using System.Runtime.CompilerServices;
using TSI.Utils.Shipping.Endicia.Enums;
using TSI.Utils.Shipping.Endicia.Interfaces;
namespace TSI.Utils.Shipping.Endicia
{
internal class LabelRequestResponse : ILabelRequestResponse
{
public int CostCenter
{
get
{
... | 45,087 |
https://github.com/SnipeDragon/darkspace/blob/master/DarkSpace/GadgetELF.cpp | Github Open Source | Open Source | MIT | 2,016 | darkspace | SnipeDragon | C++ | Code | 422 | 1,342 | /*
GadgetELF.cpp
(c)2000 Palestar Inc, Richard Lyle
*/
#include "Debug/Assert.h"
#include "GadgetELF.h"
#include "GameContext.h"
#include "resource.h"
//----------------------------------------------------------------------------
const int ELF_UPDATE_RATE = TICKS_PER_SECOND * 5;
//! what is the max energy that ca... | 44,310 |
https://github.com/KeepPositive/Tad-OS/blob/master/build_scripts/base/binutils.sh | Github Open Source | Open Source | MIT | null | Tad-OS | KeepPositive | Shell | Code | 93 | 292 | #! /bin/bash
PACKAGE="binutils"
VERSION=$1
FOLD_NAME="$PACKAGE-$VERSION"
BUILD_DIR="/$FOLD_NAME/build"
if [ -z "$CORES" ]; then
CORES='4'
fi
tar xvf "$PACKAGE_DIR/$FOLD_NAME.tar.bz2"
pushd "$FOLD_NAME"
# Verify some things using expect
expect -c "spawn ls"
# Apply this patch
patch -Np1 -i "$PACKAGE_DIR/binutils-2.... | 2,894 |
https://github.com/pnancke/intellij-git-tag-statusbar/blob/master/settings.gradle | Github Open Source | Open Source | MIT | 2,020 | intellij-git-tag-statusbar | pnancke | Gradle | Code | 3 | 23 | rootProject.name = 'git-tag-for-intellij-status-bar'
| 1,439 |
https://github.com/mattboschetti/kingdom-key/blob/master/src/test/java/com/github/mattboschetti/kingdom/scores/model/GameTest.java | Github Open Source | Open Source | Unlicense, LicenseRef-scancode-warranty-disclaimer | 2,020 | kingdom-key | mattboschetti | Java | Code | 69 | 283 | package com.github.mattboschetti.kingdom.scores.model;
import org.junit.Test;
import java.util.List;
import static org.junit.Assert.*;
public class GameTest {
@Test
public void testAddScore() {
Game game = new Game();
game.addScore(1, createScore(100, 10));
List<Score> highScores ... | 43,415 |
https://github.com/philsometimes/innerfish-3d/blob/master/src/views/Info.js | Github Open Source | Open Source | MIT | null | innerfish-3d | philsometimes | JavaScript | Code | 361 | 1,315 | import React, {useContext} from 'react';
import ReactHtmlParser from 'react-html-parser';
import {Box, Flex, Image, Text, Heading, Link} from 'rebass';
import Markdown from 'markdown-to-jsx'
import { useTheme } from 'emotion-theming'
import { DataContext, IdContext, SetIdContext, DarkContext, BackerContext} from '../Co... | 24,038 |
https://github.com/flushentitypacket/concepts/blob/master/problems/largest-rectangle.js | Github Open Source | Open Source | MIT | null | concepts | flushentitypacket | JavaScript | Code | 75 | 178 | // https://www.hackerrank.com/challenges/largest-rectangle/problem
const myRectangles = [1,2,3,4,5]
const largestRectangle = (h) => {
let largest = 0
h.forEach((height, index) => {
let i = index
let j = index
while (i > 0 && h[i - 1] >= height) { i-- }
while (j < h.length - 1 && h[j + 1] >= hei... | 9,201 |
https://github.com/SpacePassport/unity-algorand-sdk/blob/master/Runtime/CareBoo.AlgoSdk/Serialization/AlgoApiKeyAttribute.cs | Github Open Source | Open Source | MIT | 2,022 | unity-algorand-sdk | SpacePassport | C# | Code | 67 | 201 | using System;
using System.Diagnostics;
namespace AlgoSdk
{
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Property, Inherited = true, AllowMultiple = false)]
[Conditional("UNITY_EDITOR")]
public sealed class AlgoApiField : Attribute
{
readonly string jsonKeyName;
readonly st... | 25,519 |
https://github.com/Next-Gen-UI/Code-Dynamics/blob/master/Leetcode/0546. Remove Boxes/0546.cpp | Github Open Source | Open Source | MIT | null | Code-Dynamics | Next-Gen-UI | C++ | Code | 130 | 374 | class Solution {
public:
int removeBoxes(vector<int>& boxes) {
const int n = boxes.size();
// dp[i][j][k] := max score of boxes[i..j] if k boxes eqaul to boxes[j]
dp.resize(n, vector<vector<int>>(n, vector<int>(n)));
return removeBoxes(boxes, 0, n - 1, 0);
}
private:
vector<vector<vector<int>>>... | 3,362 |
https://github.com/wmyfelix/genshin-gacha-kit/blob/master/ggacha/throwable.py | Github Open Source | Open Source | MIT | 2,021 | genshin-gacha-kit | wmyfelix | Python | Code | 75 | 547 | class GenshinBaseException(Exception):
"""原神祈愿卡池抽取记录处理程序所抛出的异常的基类。"""
def __init__(self, *args):
super(GenshinBaseException, self).__init__(*args)
class CollectingError(GenshinBaseException):
"""获取祈愿卡池抽取记录时触发的错误。"""
def __init__(self, *args):
super(CollectingError, self).__init__(*ar... | 25,178 |
https://github.com/minrk/xeus-cling/blob/master/src/xholder_cling.cpp | Github Open Source | Open Source | BSD-3-Clause | 2,019 | xeus-cling | minrk | C++ | Code | 161 | 635 | /***************************************************************************
* Copyright (c) 2016, Johan Mabille, Loic Gouarin and Sylvain Corlay *
* *
* Distributed under the terms of the BSD 3-Clause License. *
* ... | 28,825 |
https://github.com/IvanJL/2021_python_selenium/blob/master/module_05/test_sauce_class_login.py | Github Open Source | Open Source | Unlicense | null | 2021_python_selenium | IvanJL | Python | Code | 91 | 319 | from module_05.sauce_fun_lib.TestBase import TestBase
import pytest
from selenium.common.exceptions import TimeoutException
from selenium.webdriver.remote.webdriver import WebDriver
from module_05.sauce_fun_lib.inventory import get_inventory
from module_05.sauce_fun_lib.login import login, get_login_error
class TestL... | 13,309 |
https://github.com/nasa/cumulus/blob/master/packages/integration-tests/bin/cli.js | Github Open Source | Open Source | LicenseRef-scancode-warranty-disclaimer, Apache-2.0, LicenseRef-scancode-unknown-license-reference | 2,023 | cumulus | nasa | JavaScript | Code | 203 | 550 | #!/usr/bin/env node
'use strict';
const program = require('commander');
const pckg = require('../package.json');
const testRunner = require('..');
program.version(pckg.version);
/**
* Verify that the given param is not null. Write out an error if null.
*
* @param {Object} paramConfig - param name and value {name... | 15,745 |
https://github.com/luchotess/nestjs-auth/blob/master/src/resources/users/users.controller.ts | Github Open Source | Open Source | MIT | null | nestjs-auth | luchotess | TypeScript | Code | 83 | 288 | import {
Controller, Request, Post,
UseGuards, Res, Get
} from '@nestjs/common';
import { JwtAuthGuard } from 'src/core/auth/guards/jwt-auth.guard';
import { UsersService } from 'src/resources/users/users.service';
import { Response } from 'express';
import { BaseController } f... | 24,898 |
https://github.com/zadr/WWDCDownloader/blob/master/WWDCDownloader/WWDCURLRequest.h | Github Open Source | Open Source | Apache-2.0 | 2,023 | WWDCDownloader | zadr | Objective-C | Code | 78 | 254 | //
// WWDCURLRequest.h
// WWDCDownloader
//
// Created by zach on 6/14/13.
//
@class WWDCURLRequest;
@class WWDCURLResponse;
typedef void (^WWDCRequestCompletionBlock)(WWDCURLRequest *request, WWDCURLResponse *response, NSError *error);
@interface WWDCURLRequest : NSOperation
+ (instancetype) requestWithRemoteAdd... | 5,042 |
https://github.com/Pandinosaurus/legate.pandas/blob/master/test.py | Github Open Source | Open Source | Apache-2.0 | 2,021 | legate.pandas | Pandinosaurus | Python | Code | 1,532 | 5,182 | #!/usr/bin/env python
# Copyright 2021 NVIDIA Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable... | 2,928 |
https://github.com/liuguangqiang/CookieBar/blob/master/app/src/main/java/com/liuguangqiang/cookie/sample/MainActivity.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | CookieBar | liuguangqiang | Java | Code | 167 | 916 | package com.liuguangqiang.cookie.sample;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.Gravity;
import android.view.View;
import android.widget.Button;
import android.widget.Toast;
import com.liuguangqiang.cookie.CookieBar;
import com.liuguangqiang.cookie.OnActionClick... | 46,847 |
https://github.com/karta0898098/iam/blob/master/pkg/db/connection.go | Github Open Source | Open Source | MIT | 2,023 | iam | karta0898098 | Go | Code | 164 | 485 | package db
import (
"gorm.io/gorm"
"github.com/karta0898098/iam/pkg/db/conn"
)
type RWConfig struct {
Read conn.Database `mapstructure:"read"`
Write conn.Database `mapstructure:"write"`
}
type Connection interface {
ReadDB() *gorm.DB
WriteDB() *gorm.DB
}
type RWConnection struct {
readDB *gorm.DB
writeDB... | 29,287 |
https://github.com/InstantBusinessNetwork/IBN/blob/master/Source/Server/Business/WidgetEngine/GoogleGadgetRequestHandler.cs | Github Open Source | Open Source | MIT | 2,021 | IBN | InstantBusinessNetwork | C# | Code | 145 | 498 | using System;
using System.Collections.Generic;
using System.Text;
using Mediachase.Ibn.Core.Business;
using Mediachase.Ibn.Data;
namespace Mediachase.IBN.Business.WidgetEngine
{
/// <summary>
/// Represents google gadget request handler.
/// </summary>
public class GoogleGadgetRequestHandler : BusinessObjectRequ... | 11,823 |
https://github.com/birkin/annex_receipts/blob/master/NameConverter.py | Github Open Source | Open Source | MIT | null | annex_receipts | birkin | Python | Code | 357 | 1,042 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
"""
Part of LAS-to-Josiah code.
Convert names.
"""
import datetime, logging, os, pprint, string, sys
log = logging.getLogger(__name__)
## add project parent-directory to sys.path
parent_working_dir = os.path.abspath( os.path.join(os.getcwd(), os.pardi... | 44,015 |
https://github.com/kancve/mr4c/blob/master/java/src/java/com/google/mr4c/nativec/jna/JnaDataFileSource.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | mr4c | kancve | Java | Code | 1,052 | 3,621 | /**
* Copyright 2014 Google 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 requir... | 15,440 |
https://github.com/ZhangLei012/Nachos/blob/master/nachos_dianti/nachos-3.4/code/machine/elevator.h | Github Open Source | Open Source | Apache-2.0 | 2,020 | Nachos | ZhangLei012 | C | Code | 728 | 1,515 | // elevator.h
// Data structures to emulate a bank of elevators.
//
// There are two interfaces -- one for the threads controlling
// the elevators, and one for threads representing elevator
// passengers. The only communication between these two
// groups is via the elevator device. The elevator device
// interface... | 1,095 |
https://github.com/aropixel/sylius-admin-media-plugin/blob/master/tests/Behat/Page/Admin/Product/CreateSimpleProductWithImagesPage.php | Github Open Source | Open Source | MIT | 2,021 | sylius-admin-media-plugin | aropixel | PHP | Code | 577 | 2,319 | <?php
declare( strict_types=1 );
namespace Tests\Aropixel\SyliusAdminMediaPlugin\Behat\Page\Admin\Product;
use Behat\Mink\Element\NodeElement;
use Behat\Mink\Session;
use Sylius\Behat\Page\Admin\Product\CreateSimpleProductPage;
use Symfony\Component\DependencyInjection\ParameterBag\ParameterBagInterface;
use Symfony... | 29,018 |
https://github.com/SomeAspy/SCP-079/blob/master/internals/APIs.js | Github Open Source | Open Source | MIT | null | SCP-079 | SomeAspy | JavaScript | Code | 38 | 106 | // Copyright (c) 2022 Aiden Baker
//
// This software is released under the MIT License.
// https://opensource.org/licenses/MIT
import { fetch } from 'undici';
export async function getNeko(type) {
return fetch(`https://nekos.life/api/v2/img/${type}`)
.then((res) => res.json())
.then((json) => json.... | 28,024 |
https://github.com/hikalkan/samples/blob/master/ddd-layers/2/test/Acme.Crm.EntityFrameworkCore.Tests/EntityFrameworkCore/CrmEntityFrameworkCoreTestBase.cs | Github Open Source | Open Source | MIT | 2,022 | samples | hikalkan | C# | Code | 14 | 59 | using Volo.Abp;
namespace Acme.Crm.EntityFrameworkCore
{
public abstract class CrmEntityFrameworkCoreTestBase : CrmTestBase<CrmEntityFrameworkCoreTestModule>
{
}
}
| 7,986 |
https://github.com/SCP766/ProjectConsus/blob/master/ProjectConsus/Monitoring/Monitoring_Main.xaml.vb | Github Open Source | Open Source | MIT | null | ProjectConsus | SCP766 | Visual Basic | Code | 154 | 487 | Imports System.ComponentModel
Imports System.Data
Imports ProjectConsus.CSQL
Public Class Monitoring_Main
Implements INotifyPropertyChanged
Private dtMonitoredEmployees As New DataTable
Private ParamName As New List(Of String)
Private ParamValue As New List(Of Object)
Public ReadOnly Property Dv... | 46,837 |
https://github.com/khandy21yo/aplus/blob/master/CMC030/gl/source/gl_spec_reversebatch.bas | Github Open Source | Open Source | MIT | 2,018 | aplus | khandy21yo | Visual Basic | Code | 562 | 1,594 | 1 %TITLE "Special Reversal Function"
%SBTTL "GL_SPEC_REVERSEBATCH"
%IDENT "V3.6a Calico"
!
! COPYRIGHT (C) 1989 BY
!
! Computer Management Center, Inc.
! Idaho Falls, Idaho.
!
! This software is furnished under a license and may be used and
! copied only in accordance with terms of such license and with
! t... | 28,443 |
https://github.com/CmdrMoozy/pwm/blob/master/src/tests/crypto/padding.rs | Github Open Source | Open Source | Apache-2.0 | 2,018 | pwm | CmdrMoozy | Rust | Code | 141 | 342 | // Copyright 2015 Axel Rasmussen
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in w... | 8,812 |
https://github.com/Panda-Programming-Language/Panda/blob/master/panda-framework/src/main/java/panda/interpreter/parser/expression/ExpressionSubparser.java | Github Open Source | Open Source | Apache-2.0 | 2,019 | Panda | Panda-Programming-Language | Java | Code | 290 | 622 | /*
* Copyright (c) 2021 dzikoysk
*
* 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... | 22,082 |
https://github.com/whampson/gta3-cargen-editor/blob/master/Gta3CarGenEditor/Models/SaveDataFileAndroid.cs | Github Open Source | Open Source | MIT | 2,021 | gta3-cargen-editor | whampson | C# | Code | 191 | 903 | using System.IO;
using System.Text;
namespace WHampson.Gta3CarGenEditor.Models
{
/// <summary>
/// Represents a Grand Theft Auto III save data file for the Android mobile platform.
/// </summary>
public class SaveDataFileAndroid : SaveDataFile
{
private const int SizeOfSimpleVars = 0xB0;
... | 12,843 |
https://github.com/wahoostik/chatroom/blob/master/src/components/Chatroom/styles.scss | Github Open Source | Open Source | MIT | null | chatroom | wahoostik | SCSS | Code | 24 | 88 | @use 'src/styles/vars' as v;
.chatroom {
width: 90%;
margin: 0 auto;
max-width: 600px;
height: 100vh;
background-color: v.$color-alt;
display: flex;
flex-direction: column;
justify-content: space-between;
}
| 10,166 |
https://github.com/WillBishop/Tweaks-for-Reddit/blob/master/shared/In-App Purchases/TFRProduct.swift | Github Open Source | Open Source | MIT | null | Tweaks-for-Reddit | WillBishop | Swift | Code | 37 | 89 | //
// TFRProduct.swift
// Tweaks for Reddit
//
// Created by Michael Rippe on 5/21/21.
// Copyright © 2021 Michael Rippe. All rights reserved.
//
import Foundation
enum TFRProduct: String, CaseIterable {
case liveCommentPreviews = "livecommentpreview"
}
| 14,476 |
https://github.com/yacon/koala-framework/blob/master/Kwf/Test/ResultLogger.php | Github Open Source | Open Source | BSD-2-Clause | 2,019 | koala-framework | yacon | PHP | Code | 40 | 126 | <?php
class Kwf_Test_ResultLogger extends PHPUnit_TextUI_ResultPrinter
{
protected $_log = '';
public function __construct($verbose = FALSE)
{
parent::__construct();
}
protected function writeProgress($progress)
{
//empty
}
public function write($buffer)
{
$... | 13,163 |
https://github.com/frauber84/mario64missingstars/blob/master/80405000-behav_cmd_12_flexible_collision.s | Github Open Source | Open Source | MIT | null | mario64missingstars | frauber84 | GAS | Code | 490 | 1,101 | ; the collision distance wasn't inplemented in the version used in this hack
;# Behavior command 12
;12 00 00 [00] [xx xx xx xx]
; | \-->segmented address for beggining of collision pointer list
; \--> 1 = process collision distance. 0 = specify it manually by '0e 43'
.ORG 0x80400100
ADDIU S... | 8,090 |
https://github.com/Gundlack-C-C/vdd-prio/blob/master/vdd-prio/src/app/prio/table/table.component.ts | Github Open Source | Open Source | MIT | null | vdd-prio | Gundlack-C-C | TypeScript | Code | 103 | 320 | import { Component, Input, OnInit } from '@angular/core';
import { Output, EventEmitter } from '@angular/core';
@Component({
selector: 'app-table-prio',
templateUrl: './table.component.html',
styleUrls: ['./table.component.css']
})
export class TableComponent implements OnInit {
@Input() data: {
heading: s... | 10,682 |
https://github.com/devhl-labs/CocApi/blob/master/src/CocApi/Model/ClanWarAttack.cs | Github Open Source | Open Source | MIT | 2,020 | CocApi | devhl-labs | C# | Code | 526 | 1,619 | /*
* Clash of Clans API
*
* Check out <a href=\"https://developer.clashofclans.com/#/getting-started\" target=\"_parent\">Getting Started</a> for instructions and links to other resources. Clash of Clans API uses <a href=\"https://jwt.io/\" target=\"_blank\">JSON Web Tokens</a> for authorizing the requests. Tokens a... | 612 |
https://github.com/kette-io/nft-asset-registry-backend/blob/master/test/cryptofunctions.test.js | Github Open Source | Open Source | MIT | 2,019 | nft-asset-registry-backend | kette-io | JavaScript | Code | 70 | 242 | const expect = require('chai').expect;
const cryptoFunctions = require('../modules/cryptoFunctions');
describe("cryptoFunctions", () => {
it('[sign] -> should sign a message', () => {
const key = cryptoFunctions.generateNewKey();
const messageToSign = {
action: "register",
... | 50,307 |
https://github.com/successmarket/oroinc-platform/blob/master/src/Oro/Bundle/EntityBundle/Form/EntityField/Handler/EntityApiBaseHandler.php | Github Open Source | Open Source | MIT | 2,020 | oroinc-platform | successmarket | PHP | Code | 222 | 777 | <?php
namespace Oro\Bundle\EntityBundle\Form\EntityField\Handler;
use Doctrine\Bundle\DoctrineBundle\Registry;
use Oro\Bundle\EntityBundle\Form\EntityField\Handler\Processor\EntityApiHandlerProcessor;
use Symfony\Component\Form\FormInterface;
use Symfony\Component\PropertyAccess\PropertyAccess;
/**
* Used to pre-pr... | 765 |
https://github.com/JasonWyx/ktwgEngine/blob/master/source/ktwgEngine/sat.cpp | Github Open Source | Open Source | MIT | null | ktwgEngine | JasonWyx | C++ | Code | 1,035 | 2,839 | #include "sat.h"
bool SAT::CheckFaceSeparation(FaceQuery& outA, FaceQuery& outB, const Transform& transformA, const Transform& transformB, const Vec3& extentsA, const Vec3& extentsB, const Matrix3& rotMatA, const Matrix3& rotMatB, const Matrix3& transform, const Matrix3& absoluteTransform)
{
Vec3 t = MultiplyT(rotMa... | 15,110 |
https://github.com/diogoalves/chat/blob/master/frontend/src/components/Input.js | Github Open Source | Open Source | MIT | null | chat | diogoalves | JavaScript | Code | 147 | 440 | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { withStyles } from '@material-ui/core/styles';
import Paper from '@material-ui/core/Paper';
import TextField from '@material-ui/core/TextField';
import actions from '../actions';
const styles = theme => ({
root: {
...theme.m... | 34,710 |
https://github.com/zgjslc/Film-Recovery-master1/blob/master/utils/tv_losses.py | Github Open Source | Open Source | Apache-2.0 | 2,022 | Film-Recovery-master1 | zgjslc | Python | Code | 47 | 285 | import torch
import torch.nn as nn
from torch.autograd import Variable
class TVLoss(nn.Module):
def __init__(self,TVLoss_weight=0.2):
super(TVLoss,self).__init__()
self.TVLoss_weight = TVLoss_weight
def forward(self,x):
batch_size = x.size()[0]
h_x = x.size()[2]
w_x = x... | 40,375 |
https://github.com/MuhammadArifMahendra/projek_uts/blob/master/system/app/Http/Controllers/HomeController.php | Github Open Source | Open Source | MIT | 2,020 | projek_uts | MuhammadArifMahendra | PHP | Code | 23 | 89 | <?php
namespace App\Http\Controllers;
class HomeController extends Controller{
function Showtemplate(){
return view('template.base');
}
function Showblog(){
return view('template.blog');
}
function Showadmin(){
return view('template.Admin.admin');
}
}
| 47,649 |
https://github.com/nkemjikaobi/capital-ticketing/blob/master/app/Http/Controllers/FootBallController.php | Github Open Source | Open Source | MIT | 2,021 | capital-ticketing | nkemjikaobi | PHP | Code | 432 | 1,683 | <?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Models\FootBallTicket;
use App\Models\FootBallPay;
use Illuminate\Support\Facades\DB;
class FootBallController extends Controller
{
/**
* Create a new controller instance.
*
* @return void
*/
public function __cons... | 2,892 |
https://github.com/thaodv/bank-wallet-ios/blob/master/BankWallet/BankWallet/Theme/TransactionsFilterTheme.swift | Github Open Source | Open Source | MIT | null | bank-wallet-ios | thaodv | Swift | Code | 77 | 199 | import UIKit
class TransactionsFilterTheme {
static let cornerRadius: CGFloat = 14
static let borderColor = UIColor.cryptoYellow
static let borderWidth:CGFloat = 1
static let nameFont = UIFont.cryptoCaption2
static let nameVerticalMargin: CGFloat = 8
static let nameHorizontalMargin: CGFloat = 2... | 46,335 |
https://github.com/CuBoulder/d8_composer_base/blob/master/web/modules/contrib/purge/tests/src/Unit/Logger/LoggerChannelPartTest.php | Github Open Source | Open Source | MIT, GPL-2.0-only | 2,019 | d8_composer_base | CuBoulder | PHP | Code | 618 | 2,274 | <?php
namespace Drupal\Tests\purge\Unit\Logger;
use Drupal\Core\Logger\RfcLogLevel;
use Drupal\purge\Logger\LoggerChannelPart;
use Drupal\Tests\UnitTestCase;
/**
* @coversDefaultClass \Drupal\purge\Logger\LoggerChannelPart
* @group purge
*/
class LoggerChannelPartTest extends UnitTestCase {
/**
* The mocked... | 41,803 |
https://github.com/AgustinJimenez/kingbull_web/blob/master/Modules/Reservas/Resources/views/admin/horarios/partials/index/modal-alert.blade.php | Github Open Source | Open Source | RSA-MD | null | kingbull_web | AgustinJimenez | PHP | Code | 71 | 380 | <div class="modal fade modal-danger" id="modal-alert" tabindex="-1" role="dialog" aria-labelledby="delete-confirmation-title" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="... | 20,863 |
https://github.com/Nfreewind/stromx/blob/master/stromx/runtime/impl/OutputNode.h | Github Open Source | Open Source | Apache-2.0 | 2,018 | stromx | Nfreewind | C++ | Code | 212 | 524 | /*
* Copyright 2011 Matthias Fuchs
*
* 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 ... | 41,040 |
https://github.com/laboratorybox/hither2/blob/master/examples/expensive_calculation.py | Github Open Source | Open Source | Apache-2.0 | 2,021 | hither2 | laboratorybox | Python | Code | 37 | 120 | # expensive_calculation.py
import hither2 as hi
import time as time
@hi.function(
'expensive_calculation', '0.1.0',
image=hi.RemoteDockerImage('docker://jsoules/simplescipy:latest'),
modules=['simplejson'],
)
def expensive_calculation(x):
# Simulate an expensive computation by just sleeping for
# ... | 2,924 |
https://github.com/zhuochu/mand-mobile-rn/blob/master/samples/src/screen/business/captcha/index.js | Github Open Source | Open Source | Apache-2.0 | 2,021 | mand-mobile-rn | zhuochu | JavaScript | Code | 36 | 104 | import React from 'react'
import Container from '../../../components/container'
import CaptchaDemo from '../../../../demo/captcha/base.demo'
export class CaptchaScreen extends React.Component {
static navigationOptions = {
title: 'Captcha',
}
render() {
return (
<Container>
<CaptchaDemo />
... | 9,901 |
https://github.com/code-refs/bach/blob/master/test.projects/test/java/test/projects/StreamingEventsTests.java | Github Open Source | Open Source | MIT | 2,021 | bach | code-refs | Java | Code | 90 | 353 | package test.projects;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertLinesMatch;
import com.github.sormuras.bach.Bach;
import com.github.sormuras.bach.Logbook;
import com.github.sormuras.bach.Options;
import java.nio.file.Path;
import org.junit.jupit... | 47,941 |
https://github.com/ttracx/OpenTuring/blob/master/turing/test/Examples/Introduction to Programming in Turing/Ch20/DrawParabola.t | Github Open Source | Open Source | MIT | 2,022 | OpenTuring | ttracx | Perl | Code | 383 | 726 | % The "DrawParabola" program
% Plots a graph of y = x ** 2
% for values of x from 0 to 14
% Number of points to be plotted is 100
setscreen ("graphics")
procedure minmax (list : array 1 .. * of real,
listlength : int, var listmin, listmax, listrange : real)
% Find the minimum, maximum and range of the list
li... | 6,514 |
https://github.com/610yilingliu/wheels/blob/master/py_wheels/visualization.py | Github Open Source | Open Source | MIT | null | wheels | 610yilingliu | Python | Code | 822 | 2,114 | import os
import time
import math
import sys
import time
import numpy as np
import matplotlib.pyplot as plt
import scipy.io
def de_project(np_arr):
"""
project numpy array from [-1, 1] to [0, 255] for visualization
"""
item = (np_arr +1)*255 / 2
return item.astype(np.int32, copy=True)
def time_h... | 48,238 |
https://github.com/xinwuyun/cattery/blob/master/node_modules/speech-rule-engine/js/rule_engine/speech_rule_engine.js | Github Open Source | Open Source | MIT | null | cattery | xinwuyun | JavaScript | Code | 1,404 | 5,010 | "use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.storeFactory = exports.SpeechRuleEngine = void 0;
const auditory_description_1 = require("../audio/auditory_description");
const debugger_1 = require("../common/debugger");
const DomUtil = require("../common/dom_util");
const engine_1 ... | 33,972 |
https://github.com/szhengye/Biz-SIP-Cloud/blob/master/common/src/main/java/com/bizmda/bizsip/message/fixedlength/FixedLengthConfig.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | Biz-SIP-Cloud | szhengye | Java | Code | 97 | 395 | package com.bizmda.bizsip.message.fixedlength;
import com.bizmda.bizsip.common.BizException;
import com.bizmda.bizsip.message.fieldfunction.FieldFunction;
import lombok.Data;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
/**
* @author 史正烨
*/
@Data
public class FixedLengthConfig {
pri... | 7,067 |
https://github.com/cornelinux/privacyIDEA-ADFSProvider/blob/master/privacyIDEAADFSProvider/config.cs | Github Open Source | Open Source | MIT | null | privacyIDEA-ADFSProvider | cornelinux | C# | Code | 345 | 1,325 | //------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//--... | 23,068 |
https://github.com/isabella232/lsp-client/blob/master/src/lsp-conversion.ts | Github Open Source | Open Source | MIT | 2,020 | lsp-client | isabella232 | TypeScript | Code | 410 | 1,244 | import * as sourcegraph from 'sourcegraph'
import { TextDocumentPositionParams, WorkspaceFolder } from 'vscode-languageserver-protocol'
import {
Diagnostic,
DiagnosticSeverity,
Hover,
Location,
MarkupContent,
Position,
Range,
} from 'vscode-languageserver-types'
export const convertProvider... | 43,269 |
https://github.com/raiyanla/compute-runtime/blob/master/opencl/source/helpers/memory_properties_flags_helpers.cpp | Github Open Source | Open Source | MIT | 2,020 | compute-runtime | raiyanla | C++ | Code | 31 | 112 | /*
* Copyright (C) 2019-2020 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "opencl/source/helpers/memory_properties_flags_helpers_base.inl"
namespace NEO {
void MemoryPropertiesFlagsParser::addExtraMemoryPropertiesFlags(MemoryPropertiesFlags &propertiesFlag, cl_mem_flags flags, cl_mem_flags_i... | 5,492 |
https://github.com/nschonni/spec-prod/blob/master/test/validate-links.test.ts | Github Open Source | Open Source | MIT | 2,022 | spec-prod | nschonni | TypeScript | Code | 57 | 131 | import main from "../src/validate-links.js";
import { Outputs } from "./index.test.js";
export default async function validateLinks(outputs: Outputs) {
const { links: shouldValidate = false } = outputs?.prepare?.validate || {};
if (shouldValidate === false) {
return;
}
const { dest = process.cwd() + ".common", ... | 23,552 |
https://github.com/pf92/x-chain-protocols/blob/master/contracts/Protocol1.sol | Github Open Source | Open Source | MIT | 2,021 | x-chain-protocols | pf92 | Solidity | Code | 828 | 1,991 | pragma solidity ^0.5.13;
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/token/ERC20/ERC20Detailed.sol";
import "solidity-rlp/contracts/RLPReader.sol";
import "./TxInclusionVerifier.sol";
contract Protocol1 is ERC20 {
using RLPReader for RLPReader.RLPItem;
using RLPReade... | 13,634 |
https://github.com/NeoTim/hiphop-php-docker/blob/master/src/hiphop-php/hphp/compiler/util/jump_table.cpp | Github Open Source | Open Source | PHP-3.01, Zend-2.0, LicenseRef-scancode-unknown-license-reference | 2,017 | hiphop-php-docker | NeoTim | C++ | Code | 277 | 883 | /*
+----------------------------------------------------------------------+
| HipHop for PHP |
+----------------------------------------------------------------------+
| Copyright (c) 2010- Facebook, Inc. (http://www.facebook.com) |
+---------... | 22,284 |
https://github.com/alialfredji/fia/blob/master/src/index.js | Github Open Source | Open Source | MIT | 2,020 | fia | alialfredji | JavaScript | Code | 241 | 553 | /**
* Browser Entry Point
* -------------------
*
* This code runs in the browser only and you can count on that.
*
*/
import React from 'react'
import ReactDOM from 'react-dom'
import { Provider } from 'react-redux'
import { Router } from 'react-router-dom'
import { LocaleProvider } from '@forrestjs/feature-loc... | 49,260 |
https://github.com/controversial/luk.ke/blob/master/src/styles/dimensions.sass | Github Open Source | Open Source | MIT | 2,021 | luk.ke | controversial | Sass | Code | 6 | 27 | $menu-width: 380px
$nav-height: 80px
$mobile-nav-height: 60px
| 14,779 |
https://github.com/CodeMySky/KDD99/blob/master/kdd.r | Github Open Source | Open Source | MIT | null | KDD99 | CodeMySky | R | Code | 29 | 663 | data = read.table("kddcup.data_10_percent",
sep="," ,
col.names=c("duration","protocol_type","service","flag","src_bytes","dst_bytes","land",
"wrong_fragment","urgent","hot","num_failed_logins","logged_in","num_compromised",
"root_shell","su_attempted","num_root","num_file_creations","num_shells","num_access_file... | 50,726 |
https://github.com/Yusuf007R/urlShortener/blob/master/frontend/src/services/getDataAPI/index.js | Github Open Source | Open Source | WTFPL | null | urlShortener | Yusuf007R | JavaScript | Code | 94 | 236 | import handleError from "../../utils/handleError";
import request from "../../utils/request";
const getShortLinks = async (params) => {
try {
const result = await request({
method: "get",
url: "/getshortlinks",
params: {
page: params.page || 1,
limit: params.limit || 10,
}... | 20,692 |
https://github.com/subanzafar/graphenee/blob/master/gx/gx-flow/src/main/java/io/graphenee/vaadin/flow/security/GxSecurityGroupListView.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | graphenee | subanzafar | Java | Code | 69 | 317 | package io.graphenee.vaadin.flow.security;
import com.vaadin.flow.component.HasComponents;
import com.vaadin.flow.router.AfterNavigationEvent;
import org.springframework.beans.factory.annotation.Autowired;
import io.graphenee.core.model.bean.GxNamespaceBean;
import io.graphenee.vaadin.flow.base.GxSecuredView;
import... | 16,398 |
https://github.com/Raiffeisen-DGTL/ViennaUI/blob/master/workspaces/deprecated-icons/src/IceCream/IceCream.tsx | Github Open Source | Open Source | MIT | 2,022 | ViennaUI | Raiffeisen-DGTL | TypeScript | Code | 155 | 536 | import React, { SVGAttributes } from 'react';
export interface IceCreamProps extends SVGAttributes<SVGElement> {
[key: string]: any;
size?: 'xs' | 's' | 'm' | 'l' | 'xl' | number;
color?: string;
}
const sizes = { xs: 12, s: 16, m: 20, l: 24, xl: 32 };
export const IceCream: React.FC<IceCreamProps> = (pro... | 29,664 |
https://github.com/japaric/syscall.rs/blob/master/src/lib.rs | Github Open Source | Open Source | Apache-2.0, MIT | 2,022 | syscall.rs | japaric | Rust | Code | 328 | 1,118 | // Copyright 2014 The syscall.rs Project Developers. See the
// COPYRIGHT file at the top-level directory of this distribution.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or http://opensource.org/licenses/MIT>... | 14,111 |
https://github.com/AstR0x/bonch-lab/blob/master/client/src/features/auth/constants.ts | Github Open Source | Open Source | MIT | 2,021 | bonch-lab | AstR0x | TypeScript | Code | 12 | 28 | /**
* Соль для шифрования пароля
*/
export const SALT = 'bonch-lab';
| 36,799 |
https://github.com/apache/incubator-taverna-server/blob/master/taverna-server-webapp/src/main/java/org/apache/taverna/server/master/worker/VelocityCompletionNotifier.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | incubator-taverna-server | apache | Java | Code | 379 | 1,079 | package org.apache.taverna.server.master.worker;
/*
* 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 ... | 45,094 |
https://github.com/itstack-naive-chat/itstack-naive-chat-server/blob/master/itstack-naive-chat-server-ddd/src/main/java/org/itstack/naive/chat/infrastructure/dao/IUserDao.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | itstack-naive-chat-server | itstack-naive-chat | Java | Code | 48 | 251 | package org.itstack.naive.chat.infrastructure.dao;
import org.apache.ibatis.annotations.Mapper;
import org.itstack.naive.chat.domain.inet.model.ChannelUserReq;
import org.itstack.naive.chat.infrastructure.po.User;
import java.util.List;
/**
* 博 客:http://bugstack.cn
* 公众号:bugstack虫洞栈 | 沉淀、分享、成长,让自己和他人都能有所收获!
* cr... | 11,430 |
https://github.com/Miky91/Herolve/blob/master/HeRolve/web/php/inc/modelo/edificios.php | Github Open Source | Open Source | MIT | null | Herolve | Miky91 | PHP | Code | 171 | 771 | <?php
class Edificio{
public $id;
public $clase_edificio;
public $clase_recurso;
public $valormadera;
public $valorpiedra;
public $valormetal;
public $valorcomida;
public $valorrubies;
public $descripcion;
public $nombre;
public $exponente;
public $cantidad;
public function __construct (/*$id, $clase_... | 16,424 |
https://github.com/Helmut-Ortmann/Enterprise-Architect-VBScript-Library/blob/master/Projects/Hotellio Scripts/Project Browser Group/Link to Domain Model.vbs | Github Open Source | Open Source | BSD-2-Clause | 2,016 | Enterprise-Architect-VBScript-Library | Helmut-Ortmann | VBScript | Code | 1,533 | 3,858 | option explicit
!INC Local Scripts.EAConstants-VBScript
'
' Script Name: Link to Domain Model
' Author: Geert Bellekens
' Purpose: Link elements with classes in the domain model based on their name.
' Date: 15/11/2015
'
sub main
'let the user select the domain model package
dim response
response = Msgbox ("Pleas... | 10,250 |
https://github.com/taiyakikatsuto/waniwani/blob/master/backend/resources/views/ranking.blade.php | Github Open Source | Open Source | MIT | null | waniwani | taiyakikatsuto | PHP | Code | 279 | 1,614 |
@extends('layouts.app')
@section('content')
@include('elements.navigation')
@include('elements.header')
<!-- Main Content -->
<div class="container">
<div class="row">
<div class="col-lg-8 col-md-10 mx-auto">
<div class="card-header">
<h2>本日のスゴウデ</h2>
</div>
<ta... | 3,997 |
https://github.com/London-Trading-Institute/gatsby-business-starter/blob/master/src/components/Services/Services.js | Github Open Source | Open Source | MIT | null | gatsby-business-starter | London-Trading-Institute | JavaScript | Code | 73 | 381 | import React from 'react'
import {ServicesContainer, ServicesLabel, ServicesCard, ServicesTitle, ServicesDescription, ServiceTypeContainer, ServiceTypeIndex, ServiceType} from './Services.elements';
const Services = () => {
return (
<ServicesContainer>
<ServicesLabel>
-- services... | 25,293 |
https://github.com/wuyafei/featherbed/blob/master/featherbed-core/src/main/scala/featherbed/support/package.scala | Github Open Source | Open Source | MIT, LicenseRef-scancode-warranty-disclaimer, Apache-2.0 | 2,016 | featherbed | wuyafei | Scala | Code | 136 | 332 | package featherbed
import shapeless.labelled.FieldType
import shapeless._, labelled.field
import scala.annotation.implicitNotFound
import scala.language.higherKinds
package object support {
@implicitNotFound("""In order to decode a request to ${A}, it must be known that a decoder exists to ${A} from all the conten... | 10,800 |
https://github.com/wezm/f0-discovery/blob/master/src/examples/timeit.rs | Github Open Source | Open Source | Apache-2.0, MIT | null | f0-discovery | wezm | Rust | Code | 117 | 315 | // Auto-generated. Do not modify this file! Instead modify examples/timeit.rs
//! Timing sections of code
//!
//! ``` rust,no_run
//! #![no_main]
//! #![no_std]
//!
//! #[macro_use]
//! extern crate f3;
//!
//! use f3::timeit::FREQUENCY;
//! use f3::{delay, timeit};
//!
//! macro_rules! timeit {
//! ($e:expr) => {
... | 41,755 |
https://github.com/jeffhammond/foMPI/blob/master/Makefile | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, BSD-3-Clause-Open-MPI | 2,015 | foMPI | jeffhammond | Makefile | Code | 319 | 1,762 | include Makefile.inc
FOMPIOPTS= -DXPMEM -DNA -DNDEBUG
LIBS=-Lmpitypes/install/lib -lmpitypes -ldmapp -Llibtopodisc -ltopodisc
INC=-Impitypes/install/include -Ilibtopodisc
CCFLAGS+=$(FOMPIOPTS) $(INC)
FCFLAGS+=$(FOMPIOPTS) $(INC)
CXXFLAGS+=$(FOMPIOPTS) $(INC)
OBJS = \
fompi_fortran.o \
fompi_helper.o \
fompi_op.... | 28,446 |
https://github.com/Wicklets/Paper.js-Toolbox/blob/master/app/assets/config/wickeditor_manifest.js | Github Open Source | Open Source | MIT | 2,018 | Paper.js-Toolbox | Wicklets | JavaScript | Code | 8 | 33 | //= link_directory ../javascripts/wickeditor .js
//= link_directory ../stylesheets/wickeditor .css
| 26,647 |
https://github.com/res-system/Boot-Camp/blob/master/src/mvc_skeleton/src/main/java/com/res_system/mvc_skeleton/model/top/TopForm.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | Boot-Camp | res-system | Java | Code | 57 | 154 | package com.res_system.mvc_skeleton.model.top;
import com.res_system.commons.mvc.model.form.Param;
public class TopForm {
//---------------------------------------------- properies [private].
@Param
private String code;
@Param
private String name;
//-- setter / getter. --//
public String... | 15,143 |
https://github.com/sleepyyyybear/thi-trac-nghiem/blob/master/ThiTracNghiem/frmSinhVien.cs | Github Open Source | Open Source | MIT | null | thi-trac-nghiem | sleepyyyybear | C# | Code | 934 | 3,592 | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using ThiTracNghiem.CMD;
using ThiTracNghiem.DTO;
namespace ThiTracNghiem
{
public partial class frm... | 6,454 |
https://github.com/dbones-labs/eventual/blob/master/src/Eventual/Infrastructure/BrokerStrategies/BrokerAttribute.cs | Github Open Source | Open Source | Apache-2.0 | null | eventual | dbones-labs | C# | Code | 34 | 83 | namespace Eventual.Infrastructure.BrokerStrategies
{
using System;
public class ConsumeAttribute : Attribute
{
public SourceType? From { get; set; }
}
public class PublishAttribute : Attribute
{
public DestinationType? To { get; set; }
}
} | 37,263 |
https://github.com/lazercorn/phoneVerifier/blob/master/app/src/main/java/net/devaction/phoneverifier/model/util/AllDataInTableDeleter.java | Github Open Source | Open Source | Apache-2.0 | 2,017 | phoneVerifier | lazercorn | Java | Code | 31 | 110 | package net.devaction.phoneverifier.model.util;
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
/**
* @author Víctor Gil
*/
public class AllDataInTableDeleter{
public static void delete(Context context, String tableName){
SQLiteDatabase database = DatabaseProvider.provideW... | 18,807 |
https://github.com/BernardoGrigiastro/IBE-Editor/blob/master/guapi/api/src/main/java/com/github/franckyi/guapi/api/node/builder/generic/GenericVBoxBuilder.java | Github Open Source | Open Source | MIT | 2,021 | IBE-Editor | BernardoGrigiastro | Java | Code | 15 | 81 | package com.github.franckyi.guapi.api.node.builder.generic;
import com.github.franckyi.guapi.api.node.VBox;
public interface GenericVBoxBuilder<N extends VBox> extends VBox, GenericBoxBuilder<N>, GenericVerticalParentBuilder<N> {
}
| 34,327 |
https://github.com/dnnsoftware/Dnn.Platform/blob/master/DNN Platform/Library/Entities/Modules/Prompt/AddModule.cs | Github Open Source | Open Source | LicenseRef-scancode-free-unknown, MIT | 2,023 | Dnn.Platform | dnnsoftware | C# | Code | 461 | 1,694 | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information
namespace DotNetNuke.Entities.Modules.Prompt
{
using System;
using System.Collections.Generic;
using Syst... | 40,166 |
https://github.com/HeadpatServices/Nucleus/blob/master/nucleus-core/src/main/java/io/github/nucleuspowered/nucleus/modules/teleport/commands/TeleportAskAllHereCommand.java | Github Open Source | Open Source | MIT | null | Nucleus | HeadpatServices | Java | Code | 181 | 941 | /*
* This file is part of Nucleus, licensed under the MIT License (MIT). See the LICENSE.txt file
* at the root of this project for more details.
*/
package io.github.nucleuspowered.nucleus.modules.teleport.commands;
import com.google.common.collect.Lists;
import io.github.nucleuspowered.nucleus.modules.teleport.Te... | 22,428 |
https://github.com/TrustedBSD/sebsd/blob/master/gnu/usr.bin/binutils/gdb/kvm-fbsd-i386.h | Github Open Source | Open Source | Naumen, Condor-1.1, MS-PL | 2,019 | sebsd | TrustedBSD | C | Code | 552 | 1,501 | /* Kernel core dump functions below target vector, for GDB on FreeBSD/i386.
Copyright 1986, 1987, 1989, 1991, 1992, 1993, 1994, 1995
Free Software Foundation, Inc.
This file is part of GDB.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License ... | 18,123 |
https://github.com/exced/AI-inference-engine/blob/master/public/inferEngine/ruleEngine.js | Github Open Source | Open Source | Apache-2.0 | 2,017 | AI-inference-engine | exced | JavaScript | Code | 242 | 611 | function RuleEngine(rules) {
this.rules = rules;
}
/**
* assert condition == triggerOn
* @param {Object} fact
* @param {Array} facts
*/
function condition(fact, facts) {
return fact.condition(facts) == fact.triggerOn;
}
/**
* do actions
* @param {Object} fact
* @param {Array} facts
*/
function action... | 49,940 |
https://github.com/athanclark/purescript-pure-css/blob/master/src/PureCSS/Grids.purs | Github Open Source | Open Source | BSD-3-Clause | null | purescript-pure-css | athanclark | PureScript | Code | 163 | 337 | -- | Follows the [Pure.css Grids](https://purecss.io/grids/) documentation.
module PureCSS.Grids where
import PureCSS.Types (ClassName)
import Prelude (class Show, show, (<>))
pureGrid :: ClassName
pureGrid = "pure-g"
-- | The `.pure-u` class
pureUnitAuto :: ClassName
pureUnitAuto = "pure-u"
-- | The `.pure-u-1` ... | 48,317 |
https://github.com/helen-v/momentum-ui/blob/master/web-components/src/components/modal/Modal.stories.ts | Github Open Source | Open Source | MIT | null | momentum-ui | helen-v | TypeScript | Code | 172 | 507 | import "@/components/modal/Modal";
import { withA11y } from "@storybook/addon-a11y";
import { boolean, text, withKnobs } from "@storybook/addon-knobs";
import { html } from "lit-element";
export default {
title: "Modal",
component: "md-modal",
decorators: [withKnobs, withA11y],
parameters: {
a11y: {
... | 17,972 |
https://github.com/iltempe/osmosi/blob/master/sumo/tools/sumolib/scenario/scenarios/basic_net.py | Github Open Source | Open Source | MIT | null | osmosi | iltempe | Python | Code | 306 | 932 | """
@file basic_net.py
@author Daniel Krajzewicz
@date 2014-09-01
@version $Id$
SUMO, Simulation of Urban MObility; see http://sumo.dlr.de/
Copyright (C) 2012-2017 DLR (http://www.dlr.de/) and contributors
This file is part of SUMO.
SUMO is free software; you can redistribute it and/or modify
it under the term... | 1,547 |
https://github.com/simrat39/brawlhalla_api.dart/blob/master/lib/models/ranking_model.freezed.dart | Github Open Source | Open Source | MIT | null | brawlhalla_api.dart | simrat39 | Dart | Code | 1,181 | 4,185 | // coverage:ignore-file
// GENERATED CODE - DO NOT MODIFY BY HAND
// ignore_for_file: unused_element, deprecated_member_use, deprecated_member_use_from_same_package, use_function_type_syntax_for_parameters, unnecessary_const, avoid_init_to_null, invalid_override_different_default_values_named, prefer_expression_functio... | 44,508 |
https://github.com/Masses/hoplite/blob/master/hoplite-core/src/main/kotlin/com/sksamuel/hoplite/KeyMapper.kt | Github Open Source | Open Source | Apache-2.0 | null | hoplite | Masses | Kotlin | Code | 194 | 421 | package com.sksamuel.hoplite
import kotlin.reflect.KParameter
/**
* A [ParameterMapper] that will transform any snake case field names
* into their camel case equivalent.
*
* For example, snake_case_pilsen will become camelCasePilsen.
*
* This key mapper won't affect other camel case fields, so by using
* this... | 44,725 |
https://github.com/annakristinkaufmann/nexus/blob/master/delta/service/src/test/scala/ch/epfl/bluebrain/nexus/delta/service/database/PostgresServiceDependencySpec.scala | Github Open Source | Open Source | Apache-2.0 | 2,022 | nexus | annakristinkaufmann | Scala | Code | 66 | 417 | package ch.epfl.bluebrain.nexus.delta.service.database
import ch.epfl.bluebrain.nexus.delta.kernel.Secret
import ch.epfl.bluebrain.nexus.delta.sdk.model.ComponentDescription.ServiceDescription
import ch.epfl.bluebrain.nexus.delta.sdk.model.Name
import ch.epfl.bluebrain.nexus.delta.sourcing.config.PostgresConfig
import... | 14,146 |
https://github.com/sunshl/incubator-weex/blob/master/weex_core/Source/include/JavaScriptCore/runtime/WeakGCMap.h | Github Open Source | Open Source | Apache-2.0 | 2,018 | incubator-weex | sunshl | C | Code | 304 | 755 | /**
* 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... | 22,298 |
https://github.com/mabuonomo/flysystem/blob/master/stub/FileOverwritingAdapterStub.php | Github Open Source | Open Source | MIT | 2,019 | flysystem | mabuonomo | PHP | Code | 181 | 581 | <?php
namespace League\Flysystem\Stub;
use League\Flysystem\Adapter\CanOverwriteFiles;
use League\Flysystem\AdapterInterface;
use League\Flysystem\Config;
/**
* @codeCoverageIgnore
*/
class FileOverwritingAdapterStub implements AdapterInterface, CanOverwriteFiles
{
public $writtenPath = '';
public $written... | 35,323 |
https://github.com/bbhunter/TLS-Attacker/blob/master/TLS-Core/src/test/java/de/rub/nds/tlsattacker/core/state/TlsContextTest.java | Github Open Source | Open Source | Apache-2.0 | 2,023 | TLS-Attacker | bbhunter | Java | Code | 465 | 3,000 | /*
* TLS-Attacker - A Modular Penetration Testing Framework for TLS
*
* Copyright 2014-2023 Ruhr University Bochum, Paderborn University, Technology Innovation Institute, and Hackmanit GmbH
*
* Licensed under Apache License, Version 2.0
* http://www.apache.org/licenses/LICENSE-2.0.txt
*/
package de.rub.nds.tlsat... | 602 |
https://github.com/jiujieblue/yuanResume/blob/master/src/App.vue | Github Open Source | Open Source | MIT | 2,017 | yuanResume | jiujieblue | Vue | Code | 335 | 1,381 | <template>
<div class="app">
<div class="app-right">
<div class="app-right-box">
<ul class="clearfix">
<li :class="{active : !route}">
<a href="#">
<i class="icon-user-tie"></i>
</a>
<span>关于个人</span>
</li>
<li :class="... | 21,275 |
https://github.com/pmd/pmd/blob/master/pmd-java/src/test/java/net/sourceforge/pmd/lang/java/rule/design/uselessoverridingmethod/BaseClass.java | Github Open Source | Open Source | BSD-3-Clause, Apache-2.0 | 2,023 | pmd | pmd | Java | Code | 42 | 133 | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.java.rule.design.uselessoverridingmethod;
public class BaseClass {
protected void doBase() {
}
protected void doBaseWithArg(String foo) {
}
protected void doBaseWithArgs(Strin... | 50,779 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.