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/baller784/saltedge-ios-swift/blob/master/Example/saltedge-ios/AppDelegate.swift | Github Open Source | Open Source | MIT | null | saltedge-ios-swift | baller784 | Swift | Code | 295 | 874 | //
// AppDelegate.swift
// saltedge-ios_Example
//
// Created by Vlad Somov.
// Copyright (c) 2019 Salt Edge. All rights reserved.
//
import UIKit
import PKHUD
import SaltEdge
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
static let applicationURLString: String = "saltedge-api-swi... | 28,794 |
https://github.com/avestuk/api-manager/blob/master/controllers/node-label/predicate.go | Github Open Source | Open Source | MIT | null | api-manager | avestuk | Go | Code | 200 | 501 | package nodelabel
import (
"reflect"
"github.com/go-logr/logr"
"sigs.k8s.io/controller-runtime/pkg/event"
"github.com/storageos/api-manager/internal/pkg/annotation"
"github.com/storageos/api-manager/internal/pkg/predicate"
)
// Predicate filters events before enqueuing the keys. Ignore all but Update
// event... | 24,450 |
https://github.com/justinwwhuang/incubator-inlong/blob/master/inlong-sort-standalone/sort-standalone-source/src/main/java/org/apache/inlong/sort/standalone/sink/kafka/KafkaProducerCluster.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | incubator-inlong | justinwwhuang | Java | Code | 609 | 2,002 | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may... | 27,862 |
https://github.com/khooversoft/Khooversoft/blob/master/Src/Common/Khooversoft.Toolbox/Khooversoft.Services/TokenManagers/IClientTokenManagerConfiguration.cs | Github Open Source | Open Source | MIT | null | Khooversoft | khooversoft | C# | Code | 45 | 131 | using Khooversoft.Security;
using System;
using System.Collections.Generic;
namespace Khooversoft.Services
{
public interface IClientTokenManagerConfiguration
{
LocalCertificateKey RequestSigningCertificateKey { get; }
string RequestingIssuer { get; }
Uri AuthorizationUri { get; }
... | 8,199 |
https://github.com/graycoreio/daffodil/blob/master/libs/customer-payment/state/src/facades/payment/interface.ts | Github Open Source | Open Source | LicenseRef-scancode-free-unknown, MIT | 2,023 | daffodil | graycoreio | TypeScript | Code | 67 | 196 | import { Observable } from 'rxjs';
import { DaffOperationStateFacadeInterface } from '@daffodil/core/state';
import { DaffCustomerPaymentEntity } from '../../models/public_api';
import { DaffCustomerPaymentReducerState } from '../../reducers/public_api';
/**
* Exposes the customer state selectors.
*/
export interfa... | 32,106 |
https://github.com/NOOXY-research/NoXerve/blob/master/src/noxerve_agent/nodejs/protocol/protocols/service/service_of_activity.js | Github Open Source | Open Source | Apache-2.0 | 2,019 | NoXerve | NOOXY-research | JavaScript | Code | 709 | 3,196 | /**
* @file NoXerveAgent service protocol service_of_activity_handler file. [service_of_activity_handler.js]
* @author nooxy <thenooxy@gmail.com>
* @author noowyee <magneticchen@gmail.com>
* @copyright 2019-2020 nooxy. All Rights Reserved.
*/
'use strict';
/**
* @module ServiceOfActivityProtocol
* @description... | 44,192 |
https://github.com/Sophia-Okito/codewars-handbook/blob/master/kata/7-kyu/simple-fibonacci-strings/test/SolutionTest.java | Github Open Source | Open Source | MIT | 2,022 | codewars-handbook | Sophia-Okito | Java | Code | 24 | 122 | import static org.junit.jupiter.api.Assertions.assertEquals;
import org.junit.jupiter.api.Test;
class SolutionTest {
@Test
void sample() {
assertEquals("0", Solution.solve(0));
assertEquals("01", Solution.solve(1));
assertEquals("010", Solution.solve(2));
assertEquals("01001", Solution.solve(3));
... | 38,324 |
https://github.com/markkimsal/cognifty/blob/master/src/cognifty/modules/install/templates/main_askTemplate.html.php | Github Open Source | Open Source | BSD-3-Clause | 2,012 | cognifty | markkimsal | PHP | Code | 138 | 610 | <!--
<h2>Customize your site's template</h2>
-->
<?php echo $t['form']->toHtml(); ?>
<!--
<form method="POST" action="<?= cgn_appurl('install','main','writeTemplate');?>">
<fieldset><legend>Template</legend>
Enter information to customize your site's template behavior
<table border="0" cellspacing="3">
<tr><td>
Site... | 8,377 |
https://github.com/quantmind/agile-toolkit/blob/master/agiletoolkit/github/remote.py | Github Open Source | Open Source | BSD-3-Clause | null | agile-toolkit | quantmind | Python | Code | 25 | 87 | import click
from ..repo import RepoManager
from ..utils import command
@click.command()
@click.pass_context
def remote(ctx):
"""Display repo github path
"""
with command():
m = RepoManager(ctx.obj["agile"])
click.echo(m.github_repo().repo_path)
| 42,426 |
https://github.com/ntyukaev/training_extensions/blob/master/ote_sdk/ote_sdk/tests/entities/test_metadata.py | Github Open Source | Open Source | Apache-2.0 | 2,019 | training_extensions | ntyukaev | Python | Code | 777 | 2,391 | """This module tests classes related to metadata"""
# Copyright (C) 2020-2021 Intel 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... | 44,356 |
https://github.com/dbt/rundeck/blob/master/rundeckapp/grails-app/assets/scss/custom/expand.scss | Github Open Source | Open Source | Apache-2.0 | null | rundeck | dbt | SCSS | Code | 113 | 418 | .expandComponentHolder{
.expandComponentControl{
> .more-indicator-verbiage{
display: inline-block;
}
> .less-indicator-verbiage{
display: none;
}
}
&.expanded{
> .more-indicator-verbiage{
display: none;
}
> .less-indicator-verbiage{
display: inline-block;
}... | 48,801 |
https://github.com/daniel-brenot/blockly/blob/master/src/core/interfaces/i_autohideable.ts | Github Open Source | Open Source | Apache-2.0 | null | blockly | daniel-brenot | TypeScript | Code | 112 | 263 | /**
* @license
* Copyright 2021 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
/**
* @fileoverview The interface for a component that is automatically hidden
* when WorkspaceSvg.hideChaff is called.
*/
/**
* The interface for a component that is automatically hidden
* when WorkspaceSvg.hideChaff is ca... | 44,587 |
https://github.com/fga-eps-mds/2018.1-Reabilitacao-Motora/blob/master/Reabilitacao-Motora/Assets/Tests/Editor/TestTableMusculo.cs | Github Open Source | Open Source | MIT | 2,018 | 2018.1-Reabilitacao-Motora | fga-eps-mds | C# | Code | 667 | 2,589 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using System.IO;
using System;
using UnityEngine.TestTools;
using NUnit.Framework;
using System.Text.RegularExpressions;
using musculo;
using DataBaseAttributes;
using Mono.Data.Sqlite;
using System.Data;
/**
* Cria u... | 4,503 |
https://github.com/skepickle/pocketmine-mp-docker/blob/master/src/wrapper.pl | Github Open Source | Open Source | MIT | null | pocketmine-mp-docker | skepickle | Perl | Code | 686 | 2,222 | #!/usr/bin/perl -w
use strict;
use warnings;
use POSIX ":sys_wait_h";
use IPC::SysV qw(IPC_STAT IPC_PRIVATE IPC_CREAT IPC_EXCL S_IRUSR S_IWUSR IPC_RMID);
use Term::ReadLine;
use Term::ReadKey;
use IPC::Open3;
use Time::HiRes qw(sleep);
my $DEBUG = 0;
$SIG{TSTP} = sub { };
#TODO: Add clean shutdown for $SIG{TERM} and ... | 48,494 |
https://github.com/mikyprog/LocationBundle/blob/master/DataFixtures/ORM/LoadLocationData.php | Github Open Source | Open Source | MIT | null | LocationBundle | mikyprog | PHP | Code | 85 | 374 | <?php
/**
* Created by PhpStorm.
* User: miky
* Date: 22/08/16
* Time: 00:06
*/
namespace Miky\Bundle\LocationBundle\DataFixtures\ORM;
use Doctrine\Common\DataFixtures\AbstractFixture;
use Doctrine\Common\DataFixtures\OrderedFixtureInterface;
use Doctrine\Common\Persistence\ObjectManager;
use Symfony\Component... | 28,305 |
https://github.com/lhagemann/jenkins-oci-plugin/blob/master/src/main/java/org/jenkinsci/plugins/oci/cloud/OCICloud.java | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, UPL-1.0 | 2,017 | jenkins-oci-plugin | lhagemann | Java | Code | 869 | 2,677 | /**
* Jenkins OCI Plugin
*
* Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.
* Licensed under the Universal Permissive License v 1.0 as shown at http://oss.oracle.com/licenses/upl.
*/
package org.jenkinsci.plugins.oci.cloud;
import static com.cloudbees.plugins.credentials.CredentialsMatcher... | 10,024 |
https://github.com/Ix0rK/demy/blob/master/twitter/build.sbt | Github Open Source | Open Source | BSD-3-Clause | 2,018 | demy | Ix0rK | Scala | Code | 48 | 175 | lazy val root = (project in file(".")).
settings(
name := "Scala twitter extract",
scalaVersion := "2.11.8",
version := "1.0",
libraryDependencies += "org.twitter4j" % "twitter4j-core" % "4.0.4",
libraryDependencies += "org.twitter4j" % "twitter4j-stream" % "4.0.4",
libraryDependencies += "org... | 24,478 |
https://github.com/intelsdi-x/intelRSD/blob/master/PSME/nvme-wheel/src/nvme-initiator-wheel/source/nvme_framework/configuration/config_manager.py | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, BSD-3-Clause, MIT, JSON, BSL-1.0, Apache-2.0, LicenseRef-scancode-public-domain, LicenseRef-scancode-other-permissive | 2,022 | intelRSD | intelsdi-x | Python | Code | 229 | 672 | """
* @section LICENSE
*
* @copyright
* Copyright (c) 2018 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... | 11,139 |
https://github.com/errantlinguist/tangrams-analysis/blob/master/setup.py | Github Open Source | Open Source | Apache-2.0 | null | tangrams-analysis | errantlinguist | Python | Code | 23 | 117 | from setuptools import setup
setup(name='tangrams_analysis',
version='0.1',
description='ML and analysis tools for the game \"tangrams-restricted\"',
url='https://github.com/errantlinguist/tangrams-analysis',
author='Todd Shore',
author_email='errantlinguist+github@gmail.com',
licen... | 46,850 |
https://github.com/maku77/dotfiles/blob/master/vim/vimrc_vundle.vim | Github Open Source | Open Source | MIT | 2,023 | dotfiles | maku77 | Vim Script | Code | 38 | 144 | """ Enable vundle commands
set nocompatible
"filetype off
set rtp+=~/.vim/bundle/vundle
call vundle#rc()
" let Vundle manage Vundle
Bundle 'gmarik/vundle'
Bundle 'Lokaltog/vim-powerline'
" JavaScript syntax highlight
Bundle 'JavaScript-syntax'
" JavaScript Indent
Bundle 'pangloss/vim-javascript'
""" NERDTree
Bundle... | 17,660 |
https://github.com/cmnbroad/htsjdk/blob/master/src/main/java/htsjdk/samtools/filter/MappingQualityFilter.java | Github Open Source | Open Source | MIT | 2,022 | htsjdk | cmnbroad | Java | Code | 61 | 178 | package htsjdk.samtools.filter;
import htsjdk.samtools.SAMRecord;
/**
* Filter things with low mapping quality.
*/
public class MappingQualityFilter implements SamRecordFilter {
private int minimumMappingQuality = Integer.MIN_VALUE;
public MappingQualityFilter(final int minimumMappingQuality) {
th... | 9,360 |
https://github.com/vergilyn/dubbo/blob/master/vergilyn-dubbo-examples/vergilyn-consumer-examples/src/test/java/org/apache/dubbo/common/bytecode/Wrapper6.java | Github Open Source | Open Source | Apache-2.0 | null | dubbo | vergilyn | Java | Code | 362 | 1,109 | //
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//
package org.apache.dubbo.common.bytecode;
import java.lang.reflect.InvocationTargetException;
import java.util.Map;
import com.vergilyn.examples.api.ProviderFirstApi;
import org.apache.dubbo.common.bytecode.Clas... | 17,904 |
https://github.com/qieq/DeezerJsonApiWrapperNet/blob/master/DeezerJsonApiWrapperNet/SerializationHelper.cs | Github Open Source | Open Source | MIT | null | DeezerJsonApiWrapperNet | qieq | C# | Code | 381 | 1,510 | using log4net;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
namespace DeezerJsonApiWrapperNet
{
public class SerializationHelper
{
private readonly IRuntime _currentRuntime;
private static readonly ILog Logger = LogManager.GetLo... | 12,107 |
https://github.com/sjorek/runtime-capability/blob/master/tests/Unit/Detection/ShellEscapeDetectorTest.php | Github Open Source | Open Source | BSD-3-Clause | 2,018 | runtime-capability | sjorek | PHP | Code | 327 | 1,388 | <?php
declare(strict_types=1);
/*
* This file is part of the Runtime Capability project.
*
* (c) Stephan Jorek <stephan.jorek@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Sjorek\RuntimeCapability\Tests\Un... | 48,687 |
https://github.com/oberasoftware/jasdb/blob/master/jasdb-service/src/main/java/com/oberasoftware/jasdb/service/local/LocalUserAdministration.java | Github Open Source | Open Source | MIT, X11, Unlicense | 2,021 | jasdb | oberasoftware | Java | Code | 157 | 574 | package com.oberasoftware.jasdb.service.local;
import com.oberasoftware.jasdb.api.session.UserAdministration;
import com.oberasoftware.jasdb.api.security.AccessMode;
import com.oberasoftware.jasdb.api.security.SessionManager;
import com.oberasoftware.jasdb.api.security.UserManager;
import com.oberasoftware.jasdb.api.s... | 29,550 |
https://github.com/OrcaWorkflows/orca/blob/master/operators/configs/config_checker.py | Github Open Source | Open Source | Apache-2.0 | null | orca | OrcaWorkflows | Python | Code | 14 | 51 | from configs.constants import Constants
class ConfigChecker:
@staticmethod
def is_key_valid(key):
return key not in Constants.get_api_check_keys()
| 12,369 |
https://github.com/OhmGnome/svm-hr-survey-front/blob/master/src/app/core/model/userSessionCard.ts | Github Open Source | Open Source | MIT | 2,018 | svm-hr-survey-front | OhmGnome | TypeScript | Code | 18 | 53 | export class UserSessionCard{
id: number
userSessionId: number
cardId: number
isTop15: boolean
isGreen: boolean
isRed: boolean
isMoreCritical: boolean
} | 48,384 |
https://github.com/aszecsei/Crimson/blob/master/Crimson/VirtualMap3.cs | Github Open Source | Open Source | MIT | null | Crimson | aszecsei | C# | Code | 566 | 1,341 | namespace Crimson
{
public class VirtualMap3<T>
{
public const int SEGMENT_SIZE = 50;
public readonly T EmptyValue;
public readonly int Columns;
public readonly int Rows;
public readonly int Slices;
public readonly int SegmentColumns;
public readonly int ... | 24,787 |
https://github.com/rizeNurseportal/nurseportal/blob/master/js/input.js | Github Open Source | Open Source | MIT | 2,017 | nurseportal | rizeNurseportal | JavaScript | Code | 73 | 197 | function checkTextAreaMaxLength(textBox, e, length) {
var mLen = textBox["MaxLength"];
if (null == mLen)
mLen = length;
var maxLength = parseInt(mLen);
if (!checkSpecialKeys(e)) {
if (textBox.value.length > maxLength - 1) {
if (window.event)//IE
e.returnVal... | 43,185 |
https://github.com/Daenges/kotlin-coding-challenges/blob/master/src/test/kotlin/com/igorwojda/string/vowels/solution.kt | Github Open Source | Open Source | MIT | 2,021 | kotlin-coding-challenges | Daenges | Kotlin | Code | 117 | 318 | package com.igorwojda.string.vowels
// Kotlin collection processing
private object Solution1 {
private fun vowels(str: String): Int {
val vowels = listOf('a', 'e', 'i', 'o', 'u', 'y')
return str.count { it.toLowerCase() in vowels }
}
}
// Iterative
private object Solution2 {
private fun vo... | 38,618 |
https://github.com/igorsilva3/calculator-python/blob/master/app/program.py | Github Open Source | Open Source | MIT | 2,021 | calculator-python | igorsilva3 | Python | Code | 123 | 822 | from PySide2 import QtGui, QtCore, QtWidgets
from app.interface import Ui_MainWindow
class Calculator(QtWidgets.QMainWindow, Ui_MainWindow):
def __init__(self):
super(Calculator, self).__init__()
self.setupUi(self)
self.numbers = ""
self.btn0.clicked.connect(lambda: self.set_text_... | 21,544 |
https://github.com/ewenhoki/mathunpad/blob/master/resources/views/auth/login.blade.php | Github Open Source | Open Source | MIT | null | mathunpad | ewenhoki | PHP | Code | 422 | 1,753 | <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Math Unpad - Login</title>
<link rel="icon" type="image/png" sizes="16x16" href="{{asset('admin/img/logo-unpad.png... | 33,575 |
https://github.com/udoprog/OxidizeBot/blob/master/crates/oxidize-common/src/models/spotify.rs | Github Open Source | Open Source | MIT, Apache-2.0, LicenseRef-scancode-unknown-license-reference | 2,023 | OxidizeBot | udoprog | Rust | Code | 67 | 130 | //! All Spotify API endpoint response object
//!
//! Copied under the MIT license from: <https://github.com/ramsayleung/rspotify>.
pub mod album;
pub mod artist;
pub mod audio;
pub mod category;
pub mod context;
pub mod cud_result;
pub mod device;
pub mod image;
pub mod offset;
pub mod page;
pub mod playing;
pub mod p... | 23,294 |
https://github.com/Pascu999/RecolectaESP/blob/master/RecolectaFront/src/app/pages/vehiculoRegistrar/vehiculoRegistrar.component.ts | Github Open Source | Open Source | MIT | 2,021 | RecolectaESP | Pascu999 | TypeScript | Code | 1,035 | 3,773 | import { HttpErrorResponse } from '@angular/common/http';
import { Component, NgModule, OnInit } from '@angular/core';
import { NgForm } from '@angular/forms';
import { ActivatedRoute, Router } from '@angular/router';
import { Municipio } from 'src/app/models/municipio';
import { Ruta } from 'src/app/models/ruta';
impo... | 28,144 |
https://github.com/phillipsacademyandover/andover-cm-templates/blob/master/kit/partials/module--callout--content.kit | Github Open Source | Open Source | OLDAP-2.3, OLDAP-2.7 | 2,015 | andover-cm-templates | phillipsacademyandover | Kit | Code | 54 | 302 | <layout label="Callout Content">
<table id="callout--content" class="responsive" width="610" cellpadding="0" cellspacing="0" border="0" bgcolor="<!--$blue--bg-->">
<tbody>
<tr style="border-collapse:collapse;">
<td class="responsive" width="610" height="20" colspan="3" style="font-size:20px;line-hei... | 48,185 |
https://github.com/FMInference/FlexGen/blob/master/benchmark/third_party/DeepSpeed/deepspeed/accelerator/__init__.py | Github Open Source | Open Source | MIT, LicenseRef-scancode-generic-cla, Apache-2.0 | 2,023 | FlexGen | FMInference | Python | Code | 9 | 35 | from .abstract_accelerator import DeepSpeedAccelerator
from .real_accelerator import get_accelerator, set_accelerator
| 31,654 |
https://github.com/xjc90s/docker-selenium/blob/master/Video/video.sh | Github Open Source | Open Source | RSA-MD, Apache-1.1 | null | docker-selenium | xjc90s | Shell | Code | 90 | 378 | #!/bin/sh
VIDEO_SIZE="${SE_SCREEN_WIDTH}""x""${SE_SCREEN_HEIGHT}"
DISPLAY_CONTAINER_NAME=${DISPLAY_CONTAINER_NAME}
DISPLAY_NUM=${DISPLAY_NUM}
FILE_NAME=${FILE_NAME}
FRAME_RATE=${FRAME_RATE:-$SE_FRAME_RATE}
CODEC=${CODEC:-$SE_CODEC}
PRESET=${PRESET:-$SE_PRESET}
return_code=1
max_attempts=50
attempts=0
echo 'Checking i... | 9,271 |
https://github.com/oyusec/oyusec.github.io/blob/master/mouse/store/user.js | Github Open Source | Open Source | MIT | 2,021 | oyusec.github.io | oyusec | JavaScript | Code | 200 | 620 | export const state = () => ({
profile: {
progress: 0,
},
});
export const getters = {
getProfile: (s) => s.profile,
};
export const mutations = {
SET_PROFILE: (s, p) => (s.profile = p),
SET_PROFILE_SOCIAL: (s, p) => (s.profile.socials = p),
SET_PROFILE_FULLNAME: (s, p) => (s.profile.fullname = p),
};
... | 47,151 |
https://github.com/notronwest/pickem/blob/master/index.cfm | Github Open Source | Open Source | Apache-2.0 | 2,020 | pickem | notronwest | ColdFusion | Code | 9 | 12 | <!--- // silent action handler by framework one ---> | 17,418 |
https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/KubernetesClusterBackupDataSourceSettings.Serialization.cs | Github Open Source | Open Source | LicenseRef-scancode-generic-cla, LGPL-2.1-or-later, Apache-2.0, MIT | 2,023 | azure-sdk-for-net | Azure | C# | Code | 352 | 1,532 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System.Collections.Generic;
using System.Text.Json;
using Azure.Core;
namespace Azure.ResourceManager.DataProtectionBackup.Models
{
public partial class KubernetesClusterB... | 33,244 |
https://github.com/skattyadz/codebar-planner/blob/master/db/migrate/20150409145541_create_group_announcements.rb | Github Open Source | Open Source | MIT | 2,022 | codebar-planner | skattyadz | Ruby | Code | 22 | 74 | class CreateGroupAnnouncements < ActiveRecord::Migration
def change
create_table :group_announcements do |t|
t.references :announcement, index: true
t.references :group, index: true
t.timestamps
end
end
end
| 1,845 |
https://github.com/Yojoe-Zhu/EwokOS/blob/master/rootfs/bin/uname/build.mk | Github Open Source | Open Source | Apache-2.0 | 2,019 | EwokOS | Yojoe-Zhu | Makefile | Code | 30 | 172 | UNAME_DIR = bin/uname
UNAME_PROGRAM = build/bin/uname
PROGRAM += $(UNAME_PROGRAM)
EXTRA_CLEAN += $(UNAME_PROGRAM) $(UNAME_DIR)/*.o
$(UNAME_PROGRAM): $(UNAME_DIR)/*.c $(COMMON_OBJ) lib/libewoklibc.a
$(CC) $(CFLAGS) -c -o $(UNAME_DIR)/uname.o $(UNAME_DIR)/uname.c
$(LD) -Ttext=100 $(UNAME_DIR)/*.o lib/libewoklibc.a $... | 13,745 |
https://github.com/neosin/FairyDust/blob/master/2D/Scripts/quit_button.gd | Github Open Source | Open Source | MIT | 2,019 | FairyDust | neosin | GDScript | Code | 15 | 57 | extends Button
func _on_quit_button_gui_input(event):
if event is InputEventMouseButton and event.button_index == BUTTON_LEFT and event.is_pressed():
Application.quit()
| 21,973 |
https://github.com/yeliucn/pexels-ruby/blob/master/lib/pexels/collection.rb | Github Open Source | Open Source | MIT | 2,021 | pexels-ruby | yeliucn | Ruby | Code | 44 | 198 | module Pexels
class Collection
attr_reader :id,
:title,
:description,
:private,
:media_count,
:photos_count,
:videos_count
def initialize(attrs)
@id = attrs.fetch('id')
@title = attrs.fetch('title')
... | 50,295 |
https://github.com/mlewand/ckeditor5-merge/blob/master/packages/ckeditor5-ui/tests/toolbar/balloon/balloontoolbar.js | Github Open Source | Open Source | MIT | null | ckeditor5-merge | mlewand | JavaScript | Code | 2,068 | 7,044 | /**
* @license Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
import ClassicTestEditor from '@ckeditor/ckeditor5-core/tests/_utils/classictesteditor';
import BalloonToolbar from '../../../src/toolbar/b... | 10,683 |
https://github.com/JemWritesCode/EasySpawner/blob/master/EasySpawnerUnityProject/Assets/EasySpawnerMenu.prefab | Github Open Source | Open Source | MIT | 2,021 | EasySpawner | JemWritesCode | Unity3D Asset | Code | 13,724 | 61,885 | %YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1001 &100100000
Prefab:
m_ObjectHideFlags: 1
serializedVersion: 2
m_Modification:
m_TransformParent: {fileID: 0}
m_Modifications: []
m_RemovedComponents: []
m_ParentPrefab: {fileID: 0}
m_RootGameObject: {fileID: 1539357928003196}
m_IsPrefabParent: ... | 91 |
https://github.com/smondet/taquito/blob/master/packages/taquito-local-forging/src/taquito-local-forging.ts | Github Open Source | Open Source | MIT | null | taquito | smondet | TypeScript | Code | 300 | 865 | /**
* @packageDocumentation
* @module @taquito/local-forging
*/
import { ForgeParams, Forger } from './interface';
import { CODEC, ProtocolsHash } from './constants';
import { decoders } from './decoder';
import { encoders } from './encoder';
import { Uint8ArrayConsumer } from './uint8array-consumer';
import { deco... | 46,935 |
https://github.com/visakii-work/dgp/blob/master/dgp/utils/datasets.py | Github Open Source | Open Source | MIT | 2,022 | dgp | visakii-work | Python | Code | 98 | 354 | # Copyright 2021 Toyota Research Institute. All rights reserved.
import os
from collections import OrderedDict
from dgp.proto import dataset_pb2
def get_split_to_scenes(dataset):
"""
Retrieve a dictionary of split to scenes of a DGP-compliant scene dataset.
Parameters
----------
dataset: dgp.pr... | 24,714 |
https://github.com/1050669722/LeetCode-Answers/blob/master/Python/problem0022.py | Github Open Source | Open Source | MIT | null | LeetCode-Answers | 1050669722 | Python | Code | 167 | 448 | # class Solution(object):
# def generateParenthesis(self, N):
# ans = []
# def backtrack(S = '', left = 0, right = 0):
# if len(S) == 2 * N:
# ans.append(S)
# # print(ans)
# return
# # print(left, right)
# # 下面这两个if有... | 39,947 |
https://github.com/DavidWilliamHunter/LDJam48/blob/master/Assets/Src/Game/BallSpawner.cs | Github Open Source | Open Source | MIT | null | LDJam48 | DavidWilliamHunter | C# | Code | 196 | 593 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace LDJam48
{
public class BallSpawner : MonoBehaviour
{
public static BallSpawner _BallSpawner;
public static BallSpawner GetBallSpawner()
{
if(!_BallSpawner)
{
... | 4,676 |
https://github.com/syhleo/spring-source/blob/master/spring-tuling-quickstart/src/main/java/com/tuling/testapplicationlistener/MainClass.java | Github Open Source | Open Source | Apache-2.0 | null | spring-source | syhleo | Java | Code | 48 | 209 | package com.tuling.testapplicationlistener;
import com.tuling.testapplicationlistener.config.MainConfig;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
public class MainClass{
private static final long serialVersionUID = 1L;
public static void main(String[] args) {
AnnotationC... | 26,607 |
https://github.com/triclambert/dcos-commons/blob/master/sdk/scheduler/src/test/java/com/mesosphere/sdk/offer/MesosResourcePoolTest.java | Github Open Source | Open Source | Apache-2.0 | null | dcos-commons | triclambert | Java | Code | 409 | 2,160 | package com.mesosphere.sdk.offer;
import com.mesosphere.sdk.testutils.OfferTestUtils;
import com.mesosphere.sdk.testutils.ResourceTestUtils;
import org.apache.mesos.Protos;
import org.apache.mesos.Protos.Offer;
import org.apache.mesos.Protos.Resource;
import com.mesosphere.sdk.testutils.TestConstants;
import org.junit... | 44,508 |
https://github.com/njohanley/bcfishpass/blob/master/01_prep/04_channel_width/sql/map.sql | Github Open Source | Open Source | Apache-2.0 | 2,021 | bcfishpass | njohanley | SQL | Code | 144 | 454 | -- Load mean annual precipitation for each stream segment.
-- Insert the precip on the stream, and the area of the fundamental watershed(s) associated with the stream
WITH streams_with_areas AS
(
SELECT
b.wscode_ltree,
b.localcode_ltree,
b.watershed_group_code,
round(sum(ST_Area(b.geom)))::bigint as ... | 40,837 |
https://github.com/whasselbring/kieker/blob/master/kieker-common/test/kieker/test/common/junit/record/io/TextValueDeserializerTest.java | Github Open Source | Open Source | Apache-2.0 | null | kieker | whasselbring | Java | Code | 440 | 1,532 | /***************************************************************************
* Copyright 2020 Kieker Project (http://kieker-monitoring.net)
*
* 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 a... | 38,934 |
https://github.com/hparadiz/better_jwt/blob/master/test/unit/Validation/Constraint/SignedWithTest.php | Github Open Source | Open Source | BSD-3-Clause | 2,021 | better_jwt | hparadiz | PHP | Code | 193 | 919 | <?php
namespace Lcobucci\JWT\Validation\Constraint;
use Lcobucci\JWT\Signer;
use Lcobucci\JWT\Signature;
use Lcobucci\JWT\Validation\ConstraintViolation;
use PHPUnit_Framework_MockObject_MockObject;
/**
* @coversDefaultClass \Lcobucci\JWT\Validation\Constraint\SignedWith
*
* @uses \Lcobucci\JWT\Signer\Key\InMemor... | 31,856 |
https://github.com/liuyanjun528/changshnegshu/blob/master/annaru-upms-web/src/main/java/com/annaru/upms/controller/UserWalletController.java | Github Open Source | Open Source | Apache-2.0 | null | changshnegshu | liuyanjun528 | Java | Code | 246 | 1,211 | package com.annaru.upms.controller;
import java.util.*;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import com.alibaba.dubbo.config.annotation.Reference;
import org.springframework.web.bind.annotation.*;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger... | 35,250 |
https://github.com/leiflm/cwa-app-android/blob/master/Corona-Warn-App/src/main/java/de/rki/coronawarnapp/ui/onboarding/OnboardingPrivacyFragment.kt | Github Open Source | Open Source | Apache-2.0 | 2,021 | cwa-app-android | leiflm | Kotlin | Code | 77 | 414 | package de.rki.coronawarnapp.ui.onboarding
import android.os.Bundle
import android.view.View
import android.view.accessibility.AccessibilityEvent
import androidx.fragment.app.Fragment
import androidx.navigation.fragment.findNavController
import de.rki.coronawarnapp.R
import de.rki.coronawarnapp.databinding.FragmentOnb... | 14,212 |
https://github.com/rilexus/personal-site/blob/master/src/components/page-components/start/tech-list/components/tech-scroll-view/tech-scroll-view.tsx | Github Open Source | Open Source | MIT | null | personal-site | rilexus | TypeScript | Code | 786 | 2,134 | import * as React from "react"
import posed from "react-pose"
import ScrollView from "../../scroll-view/scroll-view"
import { TechIconAnimated } from "../tech-icon/tech-icon"
import { useRef } from "react"
import { useIsInView } from "../../../../../../hooks/useIsinView"
import { useState } from "react"
export const t... | 4,584 |
https://github.com/donny741/spree_paysera/blob/master/app/models/spree/gateway/paysera.rb | Github Open Source | Open Source | MIT | 2,021 | spree_paysera | donny741 | Ruby | Code | 63 | 254 | # frozen_string_literal: true
class Spree::Gateway::Paysera < Spree::Gateway
preference :project_id, :integer
preference :sign_key, :string
preference :api_version, :string, default: '1.6'
preference :domain_name, :string
preference :message_text, :string
preference :service_url, :string, default: 'https:/... | 25,498 |
https://github.com/stestagg/dojo-santa/blob/master/hat.py | Github Open Source | Open Source | MIT | null | dojo-santa | stestagg | Python | Code | 175 | 601 | import os
import json
import random
def get_users():
current_directory = os.path.dirname(__file__)
users_db = os.path.join(current_directory, 'users.json')
with open(users_db) as fh:
return json.load(fh)
def update_users(data):
current_directory = os.path.dirname(__file__)
users_db = os.pa... | 44,485 |
https://github.com/Dridus/atsam-pac/blob/master/pac/atsam4ls8c/src/hflashc/fgpfrlo.rs | Github Open Source | Open Source | Apache-2.0, MIT | null | atsam-pac | Dridus | Rust | Code | 2,327 | 7,212 | #[doc = "Register `FGPFRLO` reader"]
pub struct R(crate::R<FGPFRLO_SPEC>);
impl core::ops::Deref for R {
type Target = crate::R<FGPFRLO_SPEC>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
impl From<crate::R<FGPFRLO_SPEC>> for R {
#[inline(always)]
fn from(reader: crat... | 31,452 |
https://github.com/nonibobox/arsip-ui/blob/master/resources/plugins/custom/gmaps/gmaps.js | Github Open Source | Open Source | MIT | null | arsip-ui | nonibobox | JavaScript | Code | 29 | 59 | // Gmaps.js - allows you to use the potential of Google Maps in a simple way. No more extensive documentation or large amount of code: https://hpneo.dev/gmaps/
window.GMaps = require('gmaps/gmaps.js');
| 27,644 |
https://github.com/jamais/directus-laravel/blob/master/src/DirectusLaravel.php | Github Open Source | Open Source | MIT | 2,017 | directus-laravel | jamais | PHP | Code | 418 | 1,097 | <?php
namespace thePLAN\DirectusLaravel;
use thePLAN\DirectusLaravel\Http\ApiWrapper;
use thePLAN\DirectusLaravel\Data\ResponseParser;
use thePLAN\DirectusLaravel\Resources\FileDownloader;
use Illuminate\Support\Facades\Cache;
use Illuminate\Support\Facades\Log;
/**
*
* Laravel wrapper for Directus API
*
* @cate... | 27,492 |
https://github.com/wjase/theme-tree/blob/master/src/main/java/au/com/cybernostics/themetree/theme/resolvers/ConditionalELCandidateTheme.java | Github Open Source | Open Source | Apache-2.0 | null | theme-tree | wjase | Java | Code | 311 | 725 | package au.com.cybernostics.themetree.theme.resolvers;
/*
* #%L
* theme-tree
* %%
* Copyright (C) 1992 - 2017 Cybernostics Pty Ltd
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
... | 6,887 |
https://github.com/Yahsimedya/yaylacikDemo/blob/master/storage/framework/views/e29a507a74dd1ce00de7ea5ef13c44ea95138cfc.php | Github Open Source | Open Source | MIT | null | yaylacikDemo | Yahsimedya | PHP | Code | 488 | 2,403 | <div
class="col-md-12 col-sm-12 col-xs-12 col-lg-4 d-none d-md-block text-center position-relative yanslider padding-left">
<ul class="nav nav-tabs yan__kategori">
<li class="active yan__kategori-li"><a class="yan__kategori-li-link"
data-toggle="tab" href=... | 13,166 |
https://github.com/OliverF/boxy/blob/master/relay/status.py | Github Open Source | Open Source | MIT | 2,021 | boxy | OliverF | Python | Code | 130 | 414 | import sys
import time
import os
import threading
bytestoremote = 0
bytesfromremote = 0
_relayport = 0
_remoteaddress = ""
_remoteport = 0
def reportbandwidth():
global bytestoremote
global bytesfromremote
step = 0
while True:
time.sleep(1)
if (sys.platform == "win32"):
os.system('cls')
else:
os.syst... | 10,539 |
https://github.com/shatodj/bolt-shato-theme/blob/master/page.twig | Github Open Source | Open Source | MIT | null | bolt-shato-theme | shatodj | Twig | Code | 64 | 182 | {% extends "record.twig" %}
{% import "twig/partials/_macros.twig" as m %}
{% block stylesheet %}
{# Defer loading of non-critical styles #}
{{ m.stylesheet('dist/css/page-bundle.css') }}
{% endblock %}
{% block scripts %}
{{ m.script('dist/js/page-bundle.js') }}
{% endblock %}
{% block record_footer %}
... | 3,690 |
https://github.com/TimBouwman/CyberSanta/blob/master/Project/Assets/XR/XRGeneralSettings.asset | Github Open Source | Open Source | MIT | 2,020 | CyberSanta | TimBouwman | Unity3D Asset | Code | 292 | 1,446 | %YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &-3266305674586297131
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: d... | 39,584 |
https://github.com/SimonLogan/QuestOfRealms-desktop/blob/master/assets/QuestOfRealms-plugins/default/objectives.js | Github Open Source | Open Source | 0BSD | 2,019 | QuestOfRealms-desktop | SimonLogan | JavaScript | Code | 678 | 1,719 | /**
* Created by Simon on 17/04/2017.
* (c) Simon Logan
*/
module.exports = {
category: "objective",
attributes: {
"Start at": {
description: "Where you start the game.",
mandatory: true,
parameters: [
{ name: "x", type: "int" },
{... | 48,670 |
https://github.com/mrkimbo/AlintaCustomerSearch/blob/master/src/view/CustomerView.tsx | Github Open Source | Open Source | MIT | 2,019 | AlintaCustomerSearch | mrkimbo | TSX | Code | 95 | 244 | import * as React from 'react';
import styled from 'styled-components';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { searchFilter } from '../shared/utils';
import CustomerSearch from './CustomerSearch';
import CustomerList from './CustomerList';
import NewCustomerButton from './Ne... | 36,730 |
https://github.com/leezb101/LYQEmotionDemo/blob/master/LYQEmotionDemo/LYQEmotionTabBarButton.h | Github Open Source | Open Source | MIT | null | LYQEmotionDemo | leezb101 | C | Code | 28 | 92 | //
// LYQEmotionTabBarButton.h
// LYQEmotionDemo
//
// Created by leezb101 on 16/9/6.
// Copyright © 2016年 leezb101. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface LYQEmotionTabBarButton : UIButton
@end
| 12,447 |
https://github.com/ftauth/sdk-dar/blob/master/example/angulardart/third_party/aws_common/lib/src/util/equatable.dart | Github Open Source | Open Source | Apache-2.0 | null | sdk-dar | ftauth | Dart | Code | 36 | 118 | import 'package:collection/collection.dart';
mixin AWSEquatable<T extends AWSEquatable<T>> on Object {
List<Object?> get props;
@override
bool operator ==(Object other) =>
identical(this, other) ||
other is T &&
const DeepCollectionEquality.unordered().equals(props, other.props);
@overr... | 43,845 |
https://github.com/PeterNashaat/gitea/blob/master/modules/markup/mdstripper/mdstripper.go | Github Open Source | Open Source | MIT | 2,019 | gitea | PeterNashaat | Go | Code | 979 | 2,532 | // Copyright 2019 The Gitea Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
package mdstripper
import (
"bytes"
"github.com/russross/blackfriday"
)
// MarkdownStripper extends blackfriday.Renderer
type MarkdownStripper struct {
... | 4,715 |
https://github.com/KalimeroMK/geoprom/blob/master/app/wp-content/plugins/mailpoet/vendor-prefixed/symfony/dependency-injection/Argument/TaggedIteratorArgument.php | Github Open Source | Open Source | MIT | null | geoprom | KalimeroMK | PHP | Code | 154 | 492 | <?php
namespace MailPoetVendor\Symfony\Component\DependencyInjection\Argument;
if (!defined('ABSPATH')) exit;
class TaggedIteratorArgument extends IteratorArgument
{
private $tag;
private $indexAttribute;
private $defaultIndexMethod;
private $defaultPriorityMethod;
private $needsIndexes = \false;
public function ... | 44,736 |
https://github.com/weix/FxBus/blob/master/src/main/java/com/wantfast/fxbus/thread/ThreadEnforcer.java | Github Open Source | Open Source | Apache-2.0 | null | FxBus | weix | Java | Code | 87 | 184 | package com.wantfast.fxbus.thread;
import com.wantfast.fxbus.Bus;
/**
* Enforces a thread confinement policy for methods on a particular event bus.
*/
public interface ThreadEnforcer {
/**
* Enforce a valid thread for the given {@code bus}. Implementations may throw any runtime exception.
*
* @... | 48,347 |
https://github.com/xuyanjun999/fandationtest/blob/master/Foundatio.Redis-6.0.0/test/Foundatio.Redis.Tests/Metrics/RedisMetricsTests.cs | Github Open Source | Open Source | Apache-2.0 | 2,018 | fandationtest | xuyanjun999 | C# | Code | 126 | 462 | using System;
using System.Threading.Tasks;
using Foundatio.Metrics;
using Foundatio.Redis.Tests.Extensions;
using Foundatio.Tests.Metrics;
using Xunit;
using Xunit.Abstractions;
namespace Foundatio.Redis.Tests.Metrics {
public class RedisMetricsTests : MetricsClientTestBase, IDisposable {
public RedisMet... | 25,315 |
https://github.com/HaroldDeasis/rotary/blob/master/rotarianInfo.php | Github Open Source | Open Source | MIT | null | rotary | HaroldDeasis | PHP | Code | 735 | 3,364 | <!doctype html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" lang=""> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8" lang=""> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9" lang=""> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang=""> <!--<![endif]--... | 21,777 |
https://github.com/phisn/DigitalDetectivesCore/blob/master/DigitalDetectivesCore.Game/Models/Match/MatchSettings.cs | Github Open Source | Open Source | MIT | 2,022 | DigitalDetectivesCore | phisn | C# | Code | 203 | 668 | using DigitalDetectivesCore.Game.SeedWork;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace DigitalDetectivesCore.Game.Models.Match
{
public class MatchSettings : ValueObject
{
public static MatchSettings Default =>
new MatchSetting... | 43,472 |
https://github.com/jamaspy/mufflr/blob/master/src/styles/allproducts.module.scss | Github Open Source | Open Source | MIT | null | mufflr | jamaspy | SCSS | Code | 14 | 56 | @import "../styles/variables/colors";
.div{
border-radius: 10px;
overflow: hidden;
display: inline-block;
margin: 10px;
margin-top: 40px;
} | 40,089 |
https://github.com/nizhnichenkov/Distributed-System/blob/master/RIPAPI/src/main/java/com/RESTInPeace/RIPAPI/constants/RipConstants.java | Github Open Source | Open Source | MIT | null | Distributed-System | nizhnichenkov | Java | Code | 35 | 109 | package com.RESTInPeace.RIPAPI.constants;
public class RipConstants {
public final static String USER_HOST = "http://userAPI:8083";
public final static String COFFIN_HOST = "http://coffinAPI:8084";
public final static String IMAGE_HOST = "http://imageAPI:8085";
public final static String CLEAN_HOST = ... | 42,366 |
https://github.com/TheWishWithin/kamp-api/blob/master/kamp-core/src/test/kotlin/ch/leadrian/samp/kamp/core/runtime/entity/property/MapObjectRotationPropertyTest.kt | Github Open Source | Open Source | Apache-2.0 | 2,020 | kamp-api | TheWishWithin | Kotlin | Code | 156 | 628 | package ch.leadrian.samp.kamp.core.runtime.entity.property
import ch.leadrian.samp.kamp.core.api.data.Vector3D
import ch.leadrian.samp.kamp.core.api.data.vector3DOf
import ch.leadrian.samp.kamp.core.api.entity.MapObject
import ch.leadrian.samp.kamp.core.api.entity.id.MapObjectId
import ch.leadrian.samp.kamp.core.runti... | 40,803 |
https://github.com/Prostovic/avvita/blob/master/views/user/update.php | Github Open Source | Open Source | BSD-3-Clause | null | avvita | Prostovic | PHP | Code | 131 | 452 | <?php
use yii\helpers\Html;
/* @var $this yii\web\View */
/* @var $model app\models\User */
$data = [
'backCreateUser' => [
'title' => $model->isNewRecord ? 'Добавление оператора' : 'Изменение оператора',
'form' => '_formoperator',
],
'register' => [
'title' => $model->isNewRecord ... | 45,188 |
https://github.com/navikt/teams-action/blob/master/tests/Runner/ResultTest.php | Github Open Source | Open Source | MIT | null | teams-action | navikt | PHP | Code | 94 | 359 | <?php declare(strict_types=1);
namespace NAVIT\Teams\Runner;
use PHPUnit\Framework\TestCase;
/**
* @coversDefaultClass NAVIT\Teams\Runner\Result
*/
class ResultTest extends TestCase
{
/**
* @return array<string,array{0:ResultEntry[],1:string}>
*/
public function getEntries(): array
{
$... | 34,500 |
https://github.com/mahrud/memtailor/blob/master/CMakeLists.txt | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, BSD-3-Clause | 2,020 | memtailor | mahrud | CMake | Code | 115 | 888 | cmake_minimum_required(VERSION 3.12)
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
project(memtailor VERSION 1.0 LANGUAGES CXX)
find_package(Threads 2.1 REQUIRED QUIET)
add_compile_options(
-DPACKAGE_NAME="${PROJECT_NAME}"
-DPACKAGE_TARNAME="${PROJECT_NAME}"
-DPACKAGE_VERSION="${PROJECT_VERSI... | 50,661 |
https://github.com/SemperPeritus/foosball-rating/blob/master/src/modules/player/player.entity.ts | Github Open Source | Open Source | MIT | 2,021 | foosball-rating | SemperPeritus | TypeScript | Code | 121 | 416 | import {
Column,
CreateDateColumn,
Entity,
ManyToMany,
ManyToOne,
OneToMany,
OneToOne,
PrimaryGeneratedColumn,
} from 'typeorm';
import { GameEntity } from '../game/game.entity';
import { UserEntity } from '../user/user.entity';
import { Rating } from '../../constants/rating';
@Entity('player')
export... | 22,746 |
https://github.com/cs0x7f/BitArray/blob/master/dev/bit_array_generate.c | Github Open Source | Open Source | BSD-3-Clause | 2,013 | BitArray | cs0x7f | C | Code | 655 | 1,516 | /*
bit_generate.c
project: bit array C library
url: https://github.com/noporpoise/BitArray/
Adapted from: http://stackoverflow.com/a/2633584/431087
author: Isaac Turner <turner.isaac@gmail.com>
Copyright (c) 2012, Isaac Turner
All rights reserved.
Redistribution and use in source and binary forms, with or wit... | 38,388 |
https://github.com/rodydavis/json-to-html-form/blob/master/build/node_modules/@material/ripple/mdc-ripple.scss | Github Open Source | Open Source | MIT | 2,020 | json-to-html-form | rodydavis | SCSS | Code | 1 | 42 | /Users/rodydavis/Documents/ideas/json-form-json/web/node_modules/@material/ripple/mdc-ripple.scss | 16,073 |
https://github.com/snada/snada/blob/master/app/controllers/contacts_controller.rb | Github Open Source | Open Source | MIT | null | snada | snada | Ruby | Code | 54 | 186 | class ContactsController < ApplicationController
def new
@page_title = "Contact"
@page_description = "Stefano Nada contact"
@page_keyords = "contact, email"
@contact = Contact.new
end
def create
@contact = Contact.new(contact_params)
if @contact.valid? && verify_recaptcha(model: @contact... | 23,606 |
https://github.com/zyhzhangyuhua/WeChatExtension-ForMac/blob/master/WeChatExtension/WeChatExtension/Sources/Models/YMAutoReplyModel.h | Github Open Source | Open Source | MIT | 2,021 | WeChatExtension-ForMac | zyhzhangyuhua | C | Code | 110 | 409 | //
// YMAutoReplyModel.h
// WeChatExtension
//
// Created by WeChatExtension on 2017/8/18.
// Copyright © 2017年 WeChatExtension. All rights reserved.
//
#import "TKBaseModel.h"
@interface YMAutoReplyModel : TKBaseModel
@property (nonatomic, assign) BOOL enable; /**< 是否开启自动回复 */
@property ... | 42,249 |
https://github.com/Kawaii-Maou-Sama/cso2-master-server/blob/master/master-server/src/services/userservice.ts | Github Open Source | Open Source | MIT | null | cso2-master-server | Kawaii-Maou-Sama | TypeScript | Code | 723 | 1,965 | import LRUCache from 'lru-cache'
import superagent from 'superagent'
import { UserSvcPing } from 'authorities'
import { User } from 'user/user'
export class UserService {
private baseUrl: string
private userCache: LRUCache<number, User>
constructor(baseUrl: string) {
this.baseUrl = baseUrl
... | 3,489 |
https://github.com/AlSpinks/deephaven-core/blob/master/application-mode/src/main/java/io/deephaven/appmode/Application.java | Github Open Source | Open Source | MIT | 2,022 | deephaven-core | AlSpinks | Java | Code | 115 | 298 | package io.deephaven.appmode;
import io.deephaven.annotations.BuildableStyle;
import org.immutables.value.Value.Immutable;
@Immutable
@BuildableStyle
public abstract class Application {
public interface Builder {
Builder id(String id);
Builder name(String name);
Builder fields(Fields f... | 16,007 |
https://github.com/PiGames/PlatformGame/blob/master/source/map/MapManager.hpp | Github Open Source | Open Source | MIT | null | PlatformGame | PiGames | C++ | Code | 114 | 312 | #pragma once
#include <vector>
#include "Cell.hpp"
#include "logger/Logger.hpp"
#include "WorldConstructor.hpp"
namespace pi
{
class MapManager
{
public:
//Returns world size in units
sf::Vector2i GetUnitWorldSize() const;
void createWorld( int mapNumber );
//Checks that object with given position is in... | 11,564 |
https://github.com/Owen-ycao/cloud-governance-client/blob/master/csharp-netstandard/src/Cloud.Governance.Client/Model/DueDateType.cs | Github Open Source | Open Source | Apache-2.0 | 2,020 | cloud-governance-client | Owen-ycao | C# | Code | 164 | 588 | /*
* Cloud Governance Api
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0
*
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
using System;
using System.Linq;
using System.IO;
u... | 34,086 |
https://github.com/ropemar/sakai/blob/master/conversations/api/src/main/java/org/sakaiproject/conversations/api/ConversationsReferenceReckoner.java | Github Open Source | Open Source | ECL-2.0 | null | sakai | ropemar | Java | Code | 392 | 979 | /**
* Copyright (c) 2003-2017 The Apereo Foundation
*
* Licensed under the Educational Community 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://opensource.org/licenses/ecl2
*
* Unless requ... | 33,702 |
https://github.com/modstart/ModStartCMS_Laravel9/blob/master/module/Cms/View/admin/model/field/mode.blade.php | Github Open Source | Open Source | Apache-2.0 | 2,022 | ModStartCMS_Laravel9 | modstart | PHP | Code | 18 | 205 | <div>
@if($item->mode==\Module\Cms\Type\CmsMode::LIST_DETAIL)
<div>
默认列表模板:{{$item->listTemplate}}
</div>
<div>
默认详情模板:{{$item->detailTemplate}}
</div>
@elseif($item->mode==\Module\Cms\Type\CmsMode::PAGE)
<div>
默认单页模板:{{$item->pageTempl... | 4,626 |
https://github.com/NVIDIA/DALI/blob/master/dali/util/mmaped_file.cc | Github Open Source | Open Source | Apache-2.0 | 2,023 | DALI | NVIDIA | C++ | Code | 871 | 2,450 | // Copyright (c) 2017-2022, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
/... | 35,725 |
https://github.com/ReeceGordon/Online-Booking-Reservation-.Net/blob/master/Lotus/Lotus/Client/Pages/PostLoginPage.razor | Github Open Source | Open Source | MIT | 2,021 | Online-Booking-Reservation-.Net | ReeceGordon | HTML+Razor | Code | 856 | 3,227 | @page "/RoleManagement"
@inject IJSRuntime JSRuntime
@inject NavigationManager NavigationManager
@inherits LayoutComponentBase
@inject AuthService AuthService
@inject HttpClient Http
@using Lotus.Shared.Identity
@attribute [Authorize(Roles = "Admin")]
<div class="container-fluid">
<div class="row no-gutters">
... | 4,677 |
https://github.com/psilospore/rules_scala-rebloopy/blob/master/scala/private/phases/phase_scala_provider.bzl | Github Open Source | Open Source | Apache-2.0 | 2,019 | rules_scala-rebloopy | psilospore | Starlark | Code | 119 | 512 | #
# PHASE: scala provider
#
# DOCUMENT THIS
#
load(
"@io_bazel_rules_scala//scala:providers.bzl",
"create_scala_provider",
)
def phase_library_scala_provider(ctx, p):
args = struct(
rjars = depset(
transitive = [p.compile.rjars, p.collect_exports_jars.transitive_runtime_jars],
)... | 12,827 |
https://github.com/namrathaurs/hilt-scripts/blob/master/correlation.py | Github Open Source | Open Source | MIT | 2,019 | hilt-scripts | namrathaurs | Python | Code | 359 | 1,139 | import numpy as np
def average(values):
return sum(values) / len(list(values))
def squared_difference(value, average):
return ( value - average )**2
def variance(values):
try:
return average(
[
squared_difference(
value,
average(... | 23,194 |
https://github.com/hitsujiwool/uima-zipper/blob/master/src/test/java/net/hitsujiwool/uima/zipper/Source.java | Github Open Source | Open Source | MIT | 2,013 | uima-zipper | hitsujiwool | Java | Code | 279 | 1,062 |
/* First created by JCasGen Fri Nov 08 18:04:34 CET 2013 */
package net.hitsujiwool.uima.zipper;
import org.apache.uima.jcas.JCas;
import org.apache.uima.jcas.JCasRegistry;
import org.apache.uima.jcas.cas.TOP_Type;
import org.apache.uima.jcas.tcas.Annotation;
/**
* Updated by JCasGen Fri Nov 08 18:04:34 CET 20... | 11,239 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.