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/MysteriousCode/cloudformation-examples/blob/master/src/vpc_with_ec2/magicdict.py | Github Open Source | Open Source | MIT | 2,020 | cloudformation-examples | MysteriousCode | Python | Code | 27 | 115 | class MagicDict(object):
def __init__(self):
super(MagicDict, self).__setattr__('internal', {})
def __setattr__(self, key, value):
self.internal[key] = value
def __getattr__(self, key):
return self.internal[key]
def __iter__(self):
return iter(self.internal)
def v... | 39,474 |
https://github.com/pliegl/we2016/blob/master/arithmetic-webservice/run-artihmetic-service.sh | Github Open Source | Open Source | MIT | 2,017 | we2016 | pliegl | Shell | Code | 4 | 26 | #!/bin/bash
java -jar target/arithmetic-service-jar-with-dependencies.jar
| 15,736 |
https://github.com/redshoga/gatsby-blog-template/blob/master/src/components/LayoutBlog/index.tsx | Github Open Source | Open Source | MIT | null | gatsby-blog-template | redshoga | TypeScript | Code | 49 | 136 | import React, { ReactNode } from "react"
import styles from "./index.module.scss"
import { StaticFooter } from "../Footer/index.static"
import { StaticHeader } from "../Header/index.static"
export type Props = {
children: ReactNode
}
export const LayoutBlog: React.FC<Props> = (props: Props) => (
<>
<StaticHea... | 20,286 |
https://github.com/xforcecloud/iam-service/blob/master/src/main/java/io/choerodon/iam/api/eventhandler/NotifyListener.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | iam-service | xforcecloud | Java | Code | 162 | 742 | package io.choerodon.iam.api.eventhandler;
import com.fasterxml.jackson.databind.JavaType;
import com.fasterxml.jackson.databind.ObjectMapper;
import io.choerodon.asgard.saga.annotation.SagaTask;
import io.choerodon.core.exception.CommonException;
import io.choerodon.iam.api.dto.payload.UserEventPayload;
import io.cho... | 49,978 |
https://github.com/marco-c/gecko-dev-wordified/blob/master/third_party/libwebrtc/modules/desktop_capture/desktop_capture_options.cc | Github Open Source | Open Source | BSD-3-Clause, LicenseRef-scancode-unknown-license-reference | 2,023 | gecko-dev-wordified | marco-c | C++ | Code | 386 | 1,051 | /
*
*
Copyright
(
c
)
2013
The
WebRTC
project
authors
.
All
Rights
Reserved
.
*
*
Use
of
this
source
code
is
governed
by
a
BSD
-
style
license
*
that
can
be
found
in
the
LICENSE
file
in
the
root
of
the
source
*
tree
.
An
additional
intellectual
property
rights
grant
can
be
found
*
in
the
file
PATENTS
.
All
contributing... | 39,416 |
https://github.com/OpenImporter/openimporter/blob/master/importer/OpenImporter/Form.php | Github Open Source | Open Source | 2,022 | openimporter | OpenImporter | PHP | Code | 307 | 1,056 | <?php
/**
* @name OpenImporter
* @copyright OpenImporter contributors
* @license BSD https://opensource.org/licenses/BSD-3-Clause
*
* @version 1.0
*/
namespace OpenImporter;
/**
* Just a way to collect a bunch of stuff to be used to build a form.
*
* @class Form
*/
class Form
{
/** @var string (via ... | 40,575 | |
https://github.com/benishor/delayed-queue/blob/master/Message.cpp | Github Open Source | Open Source | MIT | null | delayed-queue | benishor | C++ | Code | 10 | 27 | //
// Created by benny on 10/9/19.
//
#include "Message.h"
| 25,483 |
https://github.com/wpilibsuite/allwpilib/blob/master/apriltag/src/test/native/cpp/LoadConfigTest.cpp | Github Open Source | Open Source | BSD-3-Clause | 2,023 | allwpilib | wpilibsuite | C++ | Code | 167 | 669 | // Copyright (c) FIRST and other WPILib contributors.
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
#include "frc/apriltag/AprilTagFields.h"
#include "gtest/gtest.h"
namespace frc {
std::vector<AprilTagField> GetAllFie... | 43,562 |
https://github.com/igaponov/retrofit-php/blob/master/src/Generation/Handler/AsyncHandler.php | Github Open Source | Open Source | MIT | 2,016 | retrofit-php | igaponov | PHP | Code | 121 | 421 | <?php
/*
* Copyright (c) 2015 Nate Brunette.
* Distributed under the MIT License (http://opensource.org/licenses/MIT)
*/
namespace Tebru\Retrofit\Generation\Handler;
use Tebru\Dynamo\Model\ParameterModel;
use Tebru\Retrofit\Exception\RetrofitException;
/**
* Class AsyncHandler
*
* @author Edward Pfremmer <epfr... | 53,184 |
https://github.com/Eroar/Ludum-Dare-46/blob/master/Assets/Scenes/TEMPLATE.unity | Github Open Source | Open Source | MIT | 2,020 | Ludum-Dare-46 | Eroar | Unity3D Asset | Code | 14,989 | 61,167 | %YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!29 &1
OcclusionCullingSettings:
m_ObjectHideFlags: 0
serializedVersion: 2
m_OcclusionBakeSettings:
smallestOccluder: 5
smallestHole: 0.25
backfaceThreshold: 100
m_SceneGUID: 00000000000000000000000000000000
m_OcclusionCullingData: {fileID: 0}
--- !u!... | 52,610 |
https://github.com/elasticpath/html5-reference-storefront/blob/master/public/modules/_templates/tmpl.controller.js | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-unknown-license-reference | 2,020 | html5-reference-storefront | elasticpath | JavaScript | Code | 314 | 596 | /**
* Copyright © 2014 Elastic Path Software 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 r... | 16,390 |
https://github.com/photowey/the-way-to-java/blob/master/spring-cloud-in-action/paradise-cloud-parent/oauth2-authentication-crypto/src/main/java/com/photowey/oauth2/authentication/crypto/util/AlgorithmCombine.java | Github Open Source | Open Source | Apache-2.0 | null | the-way-to-java | photowey | Java | Code | 469 | 1,292 | /*
* Copyright © 2021 the original author or authors (photowey@gmail.com)
*
* 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
*
* Unles... | 12,961 |
https://github.com/bencoman/pharo-vm/blob/master/mc/VMMaker.oscogSPP.package/Cogit.class/instance/initialOpenPICUsageCount.st | Github Open Source | Open Source | MIT | 2,021 | pharo-vm | bencoman | null | Spoken | 16 | 35 | generate machine code
initialOpenPICUsageCount
"Answer a usage count that reflects likely long-term usage."
^CMMaxUsageCount - 1 | 45,188 |
https://github.com/takuizum/irtfun2/blob/master/man/stat_pv.Rd | Github Open Source | Open Source | MIT | 2,020 | irtfun2 | takuizum | R | Code | 45 | 133 | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/estheta.R
\name{stat_pv}
\alias{stat_pv}
\title{Calculate the imputation mean and variance}
\usage{
stat_pv(PVs_only)
}
\arguments{
\item{PVs_only}{a df given by the result of \code{estheta(est="PVs")}. See\code{\link{estheta}}.}
}
\descripti... | 10,545 |
https://github.com/enzomazocorodrigues/task-list-backend/blob/master/dist/core/domain/task/usecase/UpdateTaskUseCase.d.ts | Github Open Source | Open Source | MIT | null | task-list-backend | enzomazocorodrigues | TypeScript | Code | 31 | 92 | import { UseCase } from 'src/core/common/usecase/UseCase';
import { TaskUseCaseDto } from './dto/TaskUseCaseDto';
export interface UpdateTaskPort {
id: string;
title?: string;
due_date?: Date;
}
export interface UpdateTaskUseCase extends UseCase<UpdateTaskPort, TaskUseCaseDto> {
}
| 7,910 |
https://github.com/gieyazka/training/blob/master/forgot-password.control.php | Github Open Source | Open Source | MIT | null | training | gieyazka | PHP | Code | 164 | 834 | <?php
require_once "connect.php";
require_once "PHPMailer/PHPMailerAutoload.php";
class forgot extends Dbh
{
public function checkEmail($Email)
{
$sql = "select * from user where Email = ?";
$stmt = $this->connect()->prepare($sql);
$stmt->execute([$Email]);
$data = $stmt->fetch()... | 6,436 |
https://github.com/SubrataSarkar32/college3rdsem3035/blob/master/heapsort.c | Github Open Source | Open Source | Apache-2.0 | null | college3rdsem3035 | SubrataSarkar32 | C | Code | 152 | 470 | #include<stdio.h>
#include<stdlib.h>
void swap(int* a,int* b)
{
int temp;
temp=(*a);
(*a)=(*b);
(*b)=temp;
}
void heapify(int arr[], int n, int i)
{
int largest = i; // Initialize largest as root
int l = 2*i + 1; // left = 2*i + 1
int r = 2*i + 2; // right = 2*i + 2
if (l < n && arr[... | 48,651 |
https://github.com/SologubVS/php-mvc-example/blob/master/core/Exception/Handler.php | Github Open Source | Open Source | MIT | null | php-mvc-example | SologubVS | PHP | Code | 508 | 1,269 | <?php
namespace Core\Exception;
use Core\Entities\ModelNotFoundException;
use Core\Exception\Debug\DebugTrait;
use ErrorException;
use Psr\Log\LoggerAwareTrait;
use Psr\Log\LoggerInterface;
use Throwable;
class Handler
{
use DebugTrait;
use LoggerAwareTrait;
/**
* A list of exceptions that are not ... | 12,601 |
https://github.com/maxchernin/google-map-react/blob/master/src/index_umd.js | Github Open Source | Open Source | MIT | 2,018 | google-map-react | maxchernin | JavaScript | Code | 7 | 20 | import GoogleMap from './google_map';
module.exports = GoogleMap;
| 13,544 |
https://github.com/eugeneford/dsm-mapper/blob/master/demo/js/scripts.js | Github Open Source | Open Source | MIT | null | dsm-mapper | eugeneford | JavaScript | Code | 515 | 2,226 |
window.mr = window.mr || {};
mr = (function (mr, $, window, document){
"use strict";
mr = mr || {};
var components = {documentReady: [],documentReadyDeferred: [], windowLoad: [], windowLoadDeferred: []};
mr.status = {documentReadyRan: false, windowLoadPending: false};
$(document).ready(documen... | 32,925 |
https://github.com/ue4plugins/CommandletPlugin/blob/master/Source/CommandletPlugin/Private/CommandletPluginPrivate.h | Github Open Source | Open Source | BSD-3-Clause | 2,022 | CommandletPlugin | ue4plugins | C | Code | 25 | 73 | // Copyright 1998-2017 Epic Games, Inc. All Rights Reserved.
#pragma once
#include "Logging/LogMacros.h"
/** Declares a log category for this module. */
DECLARE_LOG_CATEGORY_EXTERN(LogCommandletPlugin, Log, All);
| 36,848 |
https://github.com/carlykube/VirtualScada/blob/master/html/search/files_f.js | Github Open Source | Open Source | MIT | 2,015 | VirtualScada | carlykube | JavaScript | Code | 214 | 8,497 | var searchData=
[
['ics_5fclients_2epy',['ics_clients.py',['../ics__clients_8py.html',1,'']]],
['ics_5fservers_2epy',['ics_servers.py',['../ics__servers_8py.html',1,'']]],
['icudatfileloader_2ephp',['IcuDatFileLoader.php',['../_icu_dat_file_loader_8php.html',1,'']]],
['icudatfileloadertest_2ephp',['IcuDatFileLo... | 5,713 |
https://github.com/SergioSim/openchain/blob/master/test/Openchain.Abstractions.Tests/TransactionTests.cs | Github Open Source | Open Source | Apache-2.0 | 2,019 | openchain | SergioSim | C# | Code | 197 | 506 | // Copyright 2015 Coinprism, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agree... | 1,854 |
https://github.com/Ibrahimk-eng/grabIt/blob/master/app/Http/Controllers/ContactController.php | Github Open Source | Open Source | MIT | null | grabIt | Ibrahimk-eng | PHP | Code | 77 | 264 | <?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\DB;
class ContactController extends Controller
{
public function viewContact()
{
// $db = DB::select('select * from contact_us');
return view('MainTheme/contact');
}
public function addC... | 7,004 |
https://github.com/prop-cc/prop-cc/blob/master/tests/qa5.cc | Github Open Source | Open Source | BSD-2-Clause | 2,011 | prop-cc | prop-cc | C++ | Code | 439 | 1,577 | // Test tree stuff
#include <cassert>
#include <cstdio>
#include <AD/trees/avl.h>
#include <AD/trees/splay.h>
#include <AD/trees/leftist.h>
#include <AD/trees/pagoda.h>
typedef const char * string;
void print_tree (BinaryTree<string,string>& tree, Ix i)
{ if (i == 0) { printf("."); return; }
printf("%s(",tree.k... | 12,206 |
https://github.com/rbkmoney/control-center/blob/master/src/app/sections/party-claim/changeset/timeline-items/party-modification-timeline-item/index.ts | Github Open Source | Open Source | Apache-2.0 | 2,021 | control-center | rbkmoney | TypeScript | Code | 4 | 16 | export * from './party-modification-timeline-item.component';
| 33,730 |
https://github.com/Sholtee/proxygen/blob/master/SRC/Private/SyntaxFactories/MemberSyntaxFactory.cs | Github Open Source | Open Source | MIT | 2,021 | proxygen | Sholtee | C# | Code | 49 | 149 | /********************************************************************************
* MemberSyntaxFactory.cs *
* *
* Author: Denes Solti ... | 29,392 |
https://github.com/kcotrinam/RPG_game_capstone/blob/master/src/__test__/enemy.test.js | Github Open Source | Open Source | MIT | 2,021 | RPG_game_capstone | kcotrinam | JavaScript | Code | 21 | 61 | import Phaser from 'phaser';
import Enemy from '../entities/enemy';
test('Enemy is a subclass of Sprite', () => {
expect(Enemy.prototype instanceof Phaser.GameObjects.Sprite).toBe(true);
}); | 518 |
https://github.com/alexlai97/suckless_stuff/blob/master/blind-1.1/src/blind-cut.c | Github Open Source | Open Source | ISC | 2,019 | suckless_stuff | alexlai97 | C | Code | 229 | 700 | /* See LICENSE file for copyright and license details. */
#include "stream.h"
#include "util.h"
#include <limits.h>
#include <stdint.h>
#include <string.h>
#include <unistd.h>
USAGE("start-point (end-point | 'end') file")
int
main(int argc, char *argv[])
{
struct stream stream;
size_t frame_size, start = 0, end = ... | 25,220 |
https://github.com/afaqueti/projdjango/blob/master/venvpdj/bin/render | Github Open Source | Open Source | Apache-2.0 | 2,020 | projdjango | afaqueti | Python | Code | 17 | 67 | #!/home/faqueti/Documentos/projdjango/venvpdj/bin/python
# PBR Generated from 'console_scripts'
import sys
from render import run
if __name__ == "__main__":
sys.exit(run())
| 51,333 |
https://github.com/didi/Tips/blob/master/tips-sdk/src/common/initTagAndCss.js | Github Open Source | Open Source | Apache-2.0 | 2,022 | Tips | didi | JavaScript | Code | 871 | 4,008 | import Config from '../config';
class InitTagAndCss {
initTipsTag() {
const body = document.body;
// 提示
const tipsElem = document.createElement('div');
const toolTipTag = `
<div class="dd-tooltip">
<div class="dd-tooltip-content">
<div class="dd-tooltip-arrow dd-tooltip-arrow-... | 15,445 |
https://github.com/irtyamine/dummy4j/blob/master/src/test/java/dev/codesoapbox/dummy4j/definitions/UniqueValuesTest.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | dummy4j | irtyamine | Java | Code | 120 | 489 | package dev.codesoapbox.dummy4j.definitions;
import dev.codesoapbox.dummy4j.exceptions.UniqueValueRetryLimitExceededException;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import java.util.ArrayDeque;
import java.util.Deque;
import static org.junit.jupiter.api.Assertions.assertEquals;
... | 17,003 |
https://github.com/SpiritWolf2015/UnityHello/blob/master/UnityHello/Assets/Game/Scripts/ResourceManager/LoaderDebugers/kResourceLoaderDebugger.cs | Github Open Source | Open Source | MIT | 2,022 | UnityHello | SpiritWolf2015 | C# | Code | 129 | 464 | using UnityEngine;
using System.Collections;
using System;
namespace KEngine
{
/// <summary>
/// 只在编辑器下出现,分别对应一个Loader~生成一个GameObject对象,为了方便调试!
/// </summary>
public class KResourceLoaderDebugger : MonoBehaviour
{
public AbstractResourceLoader TheLoader;
public int RefCount;
... | 52,823 |
https://github.com/mklinga/learnalabra/blob/master/src/app/interfaces.ts | Github Open Source | Open Source | MIT | null | learnalabra | mklinga | TypeScript | Code | 82 | 214 | export interface User {
id: number;
name: string;
guesses: Array<any>;
};
export interface Word {
id: number;
value: string;
translations: Array<number>;
sentences: Array<number>;
}
export interface QuestionWord {
word: Word;
translations: Array<Word>;
}
export interface QuestionMap {
[questionWo... | 4,767 |
https://github.com/aliyun/alibabacloud-microservice-demo/blob/master/src/frontend/src/main/java/com/alibabacloud/hipstershop/Application.java | Github Open Source | Open Source | Apache-2.0 | 2,023 | alibabacloud-microservice-demo | aliyun | Java | Code | 138 | 482 | package com.alibabacloud.hipstershop;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import java.util.Properties;
import com.alibabacloud.hipstershop.common.MyRule;
import com.netflix.loadbalancer.IRule;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.au... | 202 |
https://github.com/jorgelrj/extensions_pack/blob/master/lib/src/widget_extension.dart | Github Open Source | Open Source | MIT | 2,021 | extensions_pack | jorgelrj | Dart | Code | 313 | 854 | import 'package:flutter/material.dart';
import 'package:flutter/widgets.dart';
import 'list_extension.dart';
extension WidgetEPExtension on Widget {
Widget padded([EdgeInsets padding = const EdgeInsets.all(16.0)]) {
return Padding(
padding: padding,
child: this,
);
}
Widget sized({double? h... | 43,879 |
https://github.com/REBELinBLUE/pomo/blob/master/src/views/Timer.vue | Github Open Source | Open Source | FTL | 2,020 | pomo | REBELinBLUE | Vue | Code | 186 | 520 | <template>
<div>
<Display @timerskip="skipped" @timerinterrupt="interrupted" @timerreset="reset" />
<TaskList :tasks="tasks" title="Today's Activity" empty-message="You have not started any tasks today." />
</div>
</template>
<script>
// FIXME: Should have a prop on this which is the current date which cau... | 44,660 |
https://github.com/cindy1764/pouch/blob/master/daemon/mgr/container_test.go | Github Open Source | Open Source | Apache-2.0 | 2,021 | pouch | cindy1764 | Go | Code | 145 | 517 | package mgr
import (
"fmt"
"testing"
"github.com/stretchr/testify/assert"
)
func TestCheckBind(t *testing.T) {
assert := assert.New(t)
type parsed struct {
bind string
len int
err bool
expectErr error
}
parseds := []parsed{
{bind: "volume-test:/mnt", len: 2, err: false, expectErr:... | 49,521 |
https://github.com/IHAB-RL/IHAB_Annotator/blob/master/app/src/main/java/com/tdg/android/annotator/SectionsPagerAdapter.java | Github Open Source | Open Source | Apache-2.0 | 2,018 | IHAB_Annotator | IHAB-RL | Java | Code | 246 | 880 | package com.tdg.android.annotator;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;
import android.util.Log;
import android.util.SparseArray;
import android.view.ViewGroup;
import andro... | 9,711 |
https://github.com/samc-improbable/WizardsTutorial/blob/master/workers/unity/Assets/Editor/SnapshotMenu.cs | Github Open Source | Open Source | MIT | 2,018 | WizardsTutorial | samc-improbable | C# | Code | 86 | 344 | using System;
using UnityEditor;
using UnityEngine;
namespace Assets.Editor
{
[InitializeOnLoad]
public static class SnapshotMenu
{
private static Action improbableBuild;
static SnapshotMenu()
{
improbableBuild = Improbable.Unity.EditorTools.Build.SimpleBuildSystem.Buil... | 11,352 |
https://github.com/ryanp543/toslinkpcb/blob/master/TOSLink Tool V2/Toslink_Tool_V2.pro | Github Open Source | Open Source | MIT | 2,021 | toslinkpcb | ryanp543 | null | Spoken | 128 | 349 | EAGLE AutoRouter Statistics:
Job : C:/Users/rpooo/OneDrive - Massachusetts Institute of Technology/Documents/EAGLE/projects/TOSLink Tool V2/Toslink_Tool_V2.brd
Start at : 16:00:20 (7/16/2020)
End at : 16:00:26 (7/16/2020)
Elapsed time : 00:00:01
Signals : 8 RoutingGrid: 8 mil Laye... | 3,976 |
https://github.com/romoaldodoliz/faturacao_system/blob/master/app/NotaCompra.php | Github Open Source | Open Source | MIT | 2,021 | faturacao_system | romoaldodoliz | PHP | Code | 51 | 223 | <?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class NotaCompra extends Model
{
protected $table = "nota_compras";
protected $fillable = [
'id_fornecedor',
'id_usuario',
'valor_total',
'data_emissao',
'data_vencimento',
'desconto',
'statu... | 53,503 |
https://github.com/pattonj/CampusInsightConnectDemo/blob/master/example_functions.js | Github Open Source | Open Source | MIT | null | CampusInsightConnectDemo | pattonj | JavaScript | Code | 784 | 2,702 |
//----------------------------------------------
//Used as an exmaple for CampusInsight to demonstrate Connect extension
//Created by Jacob Patton 2017,2018,2019.
//----------------------------------------------
function setExampleListeners(){
//checks to make sure all of the fields we are using in the script exist... | 42,928 |
https://github.com/24santoshr/abm/blob/master/bnd-workspace/de.fraunhofer.abm.collection.dao/src/de/fraunhofer/abm/collection/dao/CommitDao.java | Github Open Source | Open Source | Apache-2.0 | null | abm | 24santoshr | Java | Code | 35 | 118 | package de.fraunhofer.abm.collection.dao;
import de.fraunhofer.abm.domain.CommitDTO;
public interface CommitDao {
// public List<CollectionDTO> select();
// public List<CollectionDTO> findByUser(String user);
public CommitDTO findById(String id);
// public void save(CollectionDTO collect... | 1,619 |
https://github.com/ScalablyTyped/Distribution/blob/master/s/stellar-base/src/main/scala/typings/stellarBase/anon/Ed25519.scala | Github Open Source | Open Source | MIT | 2,023 | Distribution | ScalablyTyped | Scala | Code | 90 | 349 | package typings.stellarBase.anon
import typings.node.Buffer
import typings.stellarBase.xdrMod.xdr.Uint64
import org.scalablytyped.runtime.StObject
import scala.scalajs.js
import scala.scalajs.js.`|`
import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess}
@js.native
trait Ed2551... | 3,825 |
https://github.com/sbarinov/zeno/blob/master/zeno-core/zeno-persistence/src/main/java/domain/zeno/core/persistence/schema/model/ColumnConstraint.java | Github Open Source | Open Source | Apache-2.0 | null | zeno | sbarinov | Java | Code | 133 | 368 | package domain.zeno.core.persistence.schema.model;
/*
* COPYRIGHT_PLACEHOLDER
*/
import java.util.Objects;
public class ColumnConstraint {
private Boolean nullable;
private ColumnConstraint() {
}
private ColumnConstraint(Builder builder) {
nullable = builder.nullable;
}
public Bo... | 23,438 |
https://github.com/elear-solutions/kibana/blob/master/x-pack/legacy/plugins/canvas/public/components/sidebar/sidebar.scss | Github Open Source | Open Source | LicenseRef-scancode-proprietary-license, LicenseRef-scancode-other-permissive, Apache-2.0, BSD-3-Clause, MIT, OFL-1.1, Elastic-2.0, LicenseRef-scancode-elastic-license-2018 | 2,023 | kibana | elear-solutions | SCSS | Code | 68 | 265 | .canvasSidebar {
@include euiScrollBar;
width: 100%;
padding: $euiSizeM;
max-height: 100vh;
overflow-y: auto;
overflow-x: hidden;
position: absolute;
top: 0;
bottom: 0;
}
.canvasSidebar__pop {
animation: sidebarPop $euiAnimSpeedFast $euiAnimSlightResistance;
}
.canvasSidebarFlyout {
width: 350p... | 8,782 |
https://github.com/JoeQiao666/medical_waste_server/blob/master/wk-app/wk-web/src/main/java/cn/wizzer/app/hospital/modules/models/Percent.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | medical_waste_server | JoeQiao666 | Java | Code | 35 | 209 | package cn.wizzer.app.hospital.modules.models;
import org.nutz.dao.entity.annotation.*;
@Comment("近30天个类型占比:饼状图(感染性、损伤性、病理性等所占比例)")
@Table("last_month_percent")
public class Percent {
@Column
@Comment("百分比")
@ColDefine(type = ColType.FLOAT)
private float percent;
@Column
@Comment("类别名称")
@... | 38,871 |
https://github.com/timothy-b/IOT-SEC/blob/master/packages/service/tests/test-basic-auth.js | Github Open Source | Open Source | MIT | 2,022 | IOT-SEC | timothy-b | JavaScript | Code | 126 | 407 | // ripped from https://stackoverflow.com/a/5957629/9179349
const http = require('http');
console.log('setting up server');
http.createServer(function(req, res) {
var header = req.headers['authorization'] || '', // get the header
token = header.split(/\s+/).pop() || '', // and the encoded auth token
auth = new Bu... | 31,577 |
https://github.com/Descended/PolyBot/blob/master/src/commands.py | Github Open Source | Open Source | MIT | 2,021 | PolyBot | Descended | Python | Code | 2,112 | 6,990 | import random
from decimal import Decimal
from datetime import datetime
from dateutil import tz
import discord
from discord.ext import commands
from translate import Translator
from forex_python.converter import CurrencyRates, CurrencyCodes
import units
import yaml_parser
import struct
class Commands(commands.Cog, ... | 49,406 |
https://github.com/haelkemary/xy_net/blob/master/src/metrics/stats_utils.py | Github Open Source | Open Source | MIT | 2,019 | xy_net | haelkemary | Python | Code | 1,237 | 3,675 | import warnings
import numpy as np
#####--------------------------Optimized for Speed
def get_fast_aji(true, pred, mode='plus'):
"""
Fast AJI, has built-in call to `remap_label` to re-name
instance ID. If 'plus' mode is on, reordering by size is done,
else the ID is shifted but the ordering of instance... | 49,800 |
https://github.com/blocknroll/gatsby-tutorial-part-three/blob/master/src/pages/image-graphql.js | Github Open Source | Open Source | 0BSD | null | gatsby-tutorial-part-three | blocknroll | JavaScript | Code | 209 | 610 | import React from "react"
import { graphql } from "gatsby"
import Img from "gatsby-image"
import Layout from "../components/layout"
// FLUID IMAGE
const Images = ({ data }) => {
return (
<Layout>
<Img
className="pic"
fluid={data.img01.childImageSharp.fluid}
alt="paragliding"
/... | 52,900 |
https://github.com/reaferon/1796919-task-force-1/blob/master/src/models/actions/DataConverter.php | Github Open Source | Open Source | BSD-3-Clause | null | 1796919-task-force-1 | reaferon | PHP | Code | 200 | 756 | <?php
declare(strict_types=1);
namespace taskforce\models\actions;
use \SplFileObject;
use \RuntimeException;
use taskforce\models\exceptions\CSVFileException;
class DataConverter
{
public function __construct($directory)
{
if (!file_exists($directory)) {
throw new CSVFileException("Папка ... | 33,278 |
https://github.com/ropensci/arkdb/blob/master/man/process_chunks.Rd | Github Open Source | Open Source | MIT | 2,022 | arkdb | ropensci | R | Code | 104 | 314 | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/process_chunks.R
\name{process_chunks}
\alias{process_chunks}
\title{process a table in chunks}
\usage{
process_chunks(
file,
process_fn,
streamable_table = NULL,
lines = 50000L,
encoding = Sys.getenv("encoding", "UTF-8"),
...
)
}... | 1,010 |
https://github.com/michael2221807/Diggy/blob/master/Assets/Low Poly Trees Pack/Tree Assets/Prefabs/Trees/LOD/No_Bottoms/Palm Trees/OneSided/Palm_Tree_Coconut_OneSided_m_04_LOD.prefab | Github Open Source | Open Source | MIT | 2,021 | Diggy | michael2221807 | Unity3D Asset | Code | 1,664 | 7,016 | %YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1 &100114
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 489198}
- component: {fileID: 3350598}
- component: {file... | 46,763 |
https://github.com/vitahlin/kennen/blob/master/javar/jdk8-analysis/src/com/sun/tools/corba/se/idl/toJavaPortable/MethodGenClone24.java | Github Open Source | Open Source | MIT | 2,021 | kennen | vitahlin | Java | Code | 462 | 1,053 | /*
* Copyright (c) 1999, 2001, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free ... | 16,783 |
https://github.com/ant-nihil/routen-qgroundcontrol/blob/master/libs/qmlglsink/gst-plugins-good/gst/rtp/gstrtpilbcpay.c | Github Open Source | Open Source | Apache-2.0 | 2,021 | routen-qgroundcontrol | ant-nihil | C | Code | 715 | 2,634 | /* GStreamer
* Copyright (C) <2006> Philippe Khalaf <burger@speedy.org>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any... | 8,094 |
https://github.com/kaflu/Top-Down-Go-Kart-Game/blob/master/Go Kart Game/bin/assets/tileset.tsx | Github Open Source | Open Source | MIT | null | Top-Down-Go-Kart-Game | kaflu | TypeScript | Code | 171 | 769 | <?xml version="1.0" encoding="UTF-8"?>
<tileset name="Tiles" firstgid="1" tilewidth="36" tileheight="36">
<image source="tiles.png"/>
<tile id="0">
<properties>
<property name="friction" value="1"/>
</properties>
</tile>
<tile id="1">
<properties>
<property name="friction" value="0.0007"/>
</propertie... | 33,556 |
https://github.com/skurmedel/pyserialps/blob/master/pyserialps.py | Github Open Source | Open Source | MIT | 2,014 | pyserialps | skurmedel | Python | Code | 66 | 300 | import sys
import drivers
import serial
import time
import psutil
COM_PORT_NAME = "COM3"
BAUD_RATE = 9600
driver = drivers.Parallax27977Driver
def _run(portname, baudrate, driver_factory):
with serial.Serial(portname, baudrate) as s:
d = driver_factory(s)
try:
d.startup()
while True:
d.goto(0, 0)
... | 28,563 |
https://github.com/stronnag/xtc68/blob/master/src/as68/proto.h | Github Open Source | Open Source | MIT | 2,023 | xtc68 | stronnag | C | Code | 327 | 869 | #ifndef JAS_PROTOS_LOADED
#define JAS_PROTOS_LOADED
#define VOID void
extern char *swapw(char *, long);
extern char *swapl(char *, long);
extern void warn(int, char *);
extern void error(int, char *);
extern char *allocate(unsigned long);
extern char *myreallocate(char *, unsigned long);
extern void setflags(int, char... | 36,363 |
https://github.com/DaniilStepanov/bbfgradle/blob/master/tmp/arrays/youTrackTests/7045.kt | Github Open Source | Open Source | Apache-2.0 | 2,023 | bbfgradle | DaniilStepanov | Kotlin | Code | 90 | 252 | // Original bug: KT-29081
import kotlin.contracts.ExperimentalContracts
import kotlin.contracts.contract
fun executeOnceWithoutContracts(functionToRun: () -> Unit) {
functionToRun()
}
//does not compile
/*
fun startGameV1(): Int {
val lives: Int
executeOnceWithoutContracts {
lives = 5
}
/... | 37,196 |
https://github.com/ilhammeidi/luxi-starter/blob/master/components/Footer/Footer.js | Github Open Source | Open Source | MIT | 2,023 | luxi-starter | ilhammeidi | JavaScript | Code | 399 | 1,519 | import React from 'react';
import PropTypes from 'prop-types';
import Container from '@mui/material/Container';
import Grid from '@mui/material/Grid';
import Box from '@mui/material/Box';
import { useTheme } from '@mui/material/styles';
import Accordion from '@mui/material/Accordion';
import AccordionSummary from '@mui... | 16,134 |
https://github.com/paloukari/iot-edge-compose/blob/master/Examples/AnomalyDetection/Thermostat.Shared/ML/ITrainer.cs | Github Open Source | Open Source | MIT | 2,020 | iot-edge-compose | paloukari | C# | Code | 14 | 45 | namespace ThermostatApplication.ML
{
public interface ITrainer
{
string SerializeModel();
void TrainModel(double[][] rawData);
}
} | 22,213 |
https://github.com/mcfrank/simple_language_games/blob/master/listener_helper.R | Github Open Source | Open Source | MIT | 2,016 | simple_language_games | mcfrank | R | Code | 237 | 881 | ## ----------------------------------------------------------------------
## sort predictions and bets according to trial type and prediction order
return.sorted.bets <- function(data) {
v1 = array(dim=3)
v2 = array(dim=3)
sdata <- data.frame(WorkerId=data$WorkerId,
pred1=NA,pred2=NA,pr... | 33,551 |
https://github.com/fahimfarhan/legendary-coding-odyssey/blob/master/Codes/GoogleCodeJam/1.cpp | Github Open Source | Open Source | MIT | 2,020 | legendary-coding-odyssey | fahimfarhan | C++ | Code | 130 | 477 | #include <bits/stdc++.h>
using namespace std;
#define PI 2*acos(0)
#define ll long long int
bool myAssert(bool b);
void testDrivenDevelopment();
int start(int argc=0, char const *argv[] = NULL);
int n,m;
vector<int> *g;
bool *isvisited;
int main(int argc, char const *argv[])
{
/* code */
/* Soln soln */
// f... | 12,696 |
https://github.com/blish-hud/Blish-HUD/blob/master/Blish HUD/GameServices/Settings/UI/Views/EnumSettingView[T].cs | Github Open Source | Open Source | MIT, LicenseRef-scancode-free-unknown, LicenseRef-scancode-unknown-license-reference | 2,023 | Blish-HUD | blish-hud | C# | Code | 274 | 1,017 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Blish_HUD.Controls;
using Humanizer;
using Microsoft.Scripting.Utils;
using Microsoft.Xna.Framework;
namespace Blish_HUD.Settings.UI.Views {
public class EnumSettingView<TEnum> : SettingView<TEnum> where TEnum ... | 16,596 |
https://github.com/konrad-jamrozik/dotnet-lib/blob/master/oxce-tests/StatCaps.cs | Github Open Source | Open Source | MIT | 2,021 | dotnet-lib | konrad-jamrozik | C# | Code | 164 | 446 | using System.Collections.Generic;
namespace OxceTests
{
public record StatCaps(
int TU,
int Stamina,
int Health,
int Bravery,
int Reactions,
int Firing,
int Throwing,
int Strength,
int PsiStrength,
int PsiSkill,
int Melee,
... | 39,540 |
https://github.com/mikeio/portfolio-2014/blob/master/demo/lacher/partials/_variables.scss | Github Open Source | Open Source | MIT | 2,023 | portfolio-2014 | mikeio | SCSS | Code | 26 | 88 | // colors
$color-1: #34495e; // blue dark
$color-2: #e74c3c; // salmon
$color-3: #ffffff; // white
// fonts
$primary-font: 'Open Sans', sans-serif;
// bounce-in duration
$bounce-in-duration: .7s; | 36,236 |
https://github.com/seandenigris/iceberg/blob/master/Iceberg-TipUI.package/IceTipCommitBrowser.class/instance/title.st | Github Open Source | Open Source | MIT | 2,020 | iceberg | seandenigris | null | Spoken | 17 | 37 | accessing
title
^ 'Commit on {1} branch {2}' format: {
self model name.
self model branchName } | 30,210 |
https://github.com/igbopie/restliparams/blob/master/jest.config.js | Github Open Source | Open Source | MIT | null | restliparams | igbopie | JavaScript | Code | 17 | 91 | module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
collectCoverage: true,
collectCoverageFrom: ['src/**/*.{js,jsx,ts}', '!src/examples/**', '!**/node_modules/**', '!**/vendor/**'],
coverageReporters: ['text-summary'],
};
| 17,700 |
https://github.com/minminzi18/ss-precursors/blob/master/observations/ekstrom/GDM52_program/sample1.s | Github Open Source | Open Source | MIT | 2,018 | ss-precursors | minminzi18 | null | Spoken | 8 | 30 | #!/bin/csh
GDM52_dispersion <<!
2
33.00 44.00
99
!
| 49,143 |
https://github.com/hownowstephen/go-liquid/blob/master/variable_test.go | Github Open Source | Open Source | MIT | 2,022 | go-liquid | hownowstephen | Go | Code | 1,208 | 3,938 | package liquid
import (
"reflect"
"testing"
)
// Unit tests (unit/variable_unit_test.rb)
func checkVariable(t *testing.T, markup, wantName string, wantFilters []Filter, checkLookup bool) *Variable {
v, err := CreateVariable(markup)
if err != nil {
t.Error(err)
return v
}
if checkLookup {
vl := ParseVari... | 40,612 |
https://github.com/OrangeTide/everything/blob/master/retro/retro.c | Github Open Source | Open Source | CC0-1.0 | null | everything | OrangeTide | C | Code | 339 | 1,273 | #define NDEBUG 1
#include <stdlib.h>
#include <stdbool.h>
#include <stdio.h>
#include <math.h>
#include <SDL.h>
#include "jdm_glload.h"
#include "jdm_utilgl.h"
static SDL_Window *window;
static SDL_GLContext context;
static int width, height;
static bool running;
static void
set_size(int min_w, int min_h, int max_w... | 16,617 |
https://github.com/uasmna/demo/blob/master/app/Http/Controllers/Admin/DummyCrudController.php | Github Open Source | Open Source | FTL, RSA-MD, Apache-1.1 | 2,021 | demo | uasmna | PHP | Code | 594 | 1,977 | <?php
namespace App\Http\Controllers\Admin;
use App\Http\Requests\DummyRequest;
use Backpack\CRUD\app\Http\Controllers\CrudController;
use Backpack\CRUD\app\Library\CrudPanel\CrudPanelFacade as CRUD;
use Illuminate\Support\Arr;
use Illuminate\Support\Str;
/**
* Class DummyCrudController.
*
* @property-read \Backp... | 7,517 |
https://github.com/dHonerkamp/ActiveClassifier/blob/master/activeClassifier/modules/planner/basePlanner.py | Github Open Source | Open Source | Apache-2.0 | null | ActiveClassifier | dHonerkamp | Python | Code | 276 | 1,219 | import tensorflow as tf
from activeClassifier.tools.tf_tools import repeat_axis
class BasePlanner:
def __init__(self, FLAGS, submodules, batch_sz, patch_shape_flat, stateTransition):
self.B = batch_sz
self.num_classes = FLAGS.num_classes
self.num_classes_kn = FLAGS.num_classes_kn
... | 38,825 |
https://github.com/Andrei15193/Laboratoare-Facultate/blob/master/Semestrul4/AOP/L4/aop4/validator/ValidatorException.java | Github Open Source | Open Source | MIT | 2,014 | Laboratoare-Facultate | Andrei15193 | Java | Code | 62 | 160 | package aop4.validator;
public class ValidatorException extends Exception
{
public ValidatorException(final String[] errors)
{
this.errors = errors;
}
@Override
public String getMessage()
{
final StringBuilder builder = new StringBuilder();
for (final String error: this... | 31,454 |
https://github.com/moadqassem/dashboard/blob/master/src/app/shared/components/add-external-cluster-dialog/steps/credentials/provider/aks/component.ts | Github Open Source | Open Source | Apache-2.0 | null | dashboard | moadqassem | TypeScript | Code | 346 | 1,183 | // Copyright 2020 The Kubermatic Kubernetes Platform contributors.
//
// 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... | 5,682 |
https://github.com/mikachan/sekaicouk/blob/master/src/components/Main.js | Github Open Source | Open Source | MIT | null | sekaicouk | mikachan | JavaScript | Code | 80 | 263 | import About from './About';
import Contact from './Contact';
import PropTypes from 'prop-types';
import React from 'react';
function Main(props) {
let close = (
<button
className="close"
onClick={() => {
props.onCloseArticle();
}}
aria-label="Close"
/>
);
return (
<div
ref={props.setWrapp... | 12,090 |
https://github.com/amateja/django-bitoptions/blob/master/bitoptions/widgets.py | Github Open Source | Open Source | Unlicense | 2,016 | django-bitoptions | amateja | Python | Code | 95 | 284 | from django import forms
from .utils import number2powers, BitOptions
class BitOptionsWidget(forms.CheckboxSelectMultiple):
"""
Default BitOptionsField widget to present every option (bit) as checkbox.
"""
def value_from_datadict(self, data, files, name):
"""
Given a dictionary of da... | 3,397 |
https://github.com/Jofre-Problem/JofreHUD-Base/blob/master/_jofrehud/resource/ui/base/build-more/cancellabel/font/spec.res | Github Open Source | Open Source | MIT | 2,022 | JofreHUD-Base | Jofre-Problem | null | Spoken | 8 | 46 | "resource/ui/hudplayerclass.res"
{
"CancelLabel"
{
"font" "SpectatorKeyHints"
}
} | 47,780 |
https://github.com/nongfadai/front_demo/blob/master/web/m_nfd/user/js/charge.js | Github Open Source | Open Source | MIT | null | front_demo | nongfadai | JavaScript | Code | 211 | 935 | $(function() {
$("input[name='amount']").focusout(function() {
if($(this).val() == ''){
$("#poundage").text("0.00");
$("#paySum").text("0.00");
return;
}
var amount = $(this).val() * 1;
amount = amount.toFixed(2) * 1;
$(this).val(amount);
/*
* 测试
* if(!checkAmount(amount)){ return ; }
*/
... | 38,851 |
https://github.com/anandhakrishnanh/Fruit-Classifier-Perceptron/blob/master/fruit.c | Github Open Source | Open Source | Apache-2.0 | 2,021 | Fruit-Classifier-Perceptron | anandhakrishnanh | C | Code | 241 | 775 | #include<stdio.h>
int main()
{
int x[99][3],m;
float w[5]={0};
float y=0,yl,y2;
float dw[3];
float l=0.25;
printf("The following convention needs to be used:\nTaste: Sweet=1 Not sweet=0\nSeeds: Edible=1 Not edible=0\nSkin Edible=1 Not edible=0");
printf("\nThis is the training session:\n");
printf("The question sessio... | 3,296 |
https://github.com/BolotnyaBoss/CourseWork/blob/master/couplet.cpp | Github Open Source | Open Source | MIT | null | CourseWork | BolotnyaBoss | C++ | Code | 2 | 11 | #include "couplet.h"
| 16,238 |
https://github.com/mstop4/FMODGMS/blob/master/src/linux/build32.sh | Github Open Source | Open Source | BSD-2-Clause | 2,022 | FMODGMS | mstop4 | Shell | Code | 24 | 119 | echo "Building libfmodgms..."
clang++ -std=c++14 -stdlib=libstdc++ -m32 -Wall -Wno-unknown-pragmas -fPIC -c fmodgms.cpp
clang++ -m32 -shared -Wl,-soname,libfmodgms.so.0 -Wl,-rpath,"\$ORIGIN" -o libfmodgms.so fmodgms.o -L. -lfmod
echo "Finished"
| 12,138 |
https://github.com/IgniteUI/igniteui/blob/master/src/js/modules/infragistics.ui.dialog.js | Github Open Source | Open Source | Apache-2.0 | 2,021 | igniteui | IgniteUI | JavaScript | Code | 10,669 | 30,118 | /*!@license
* Infragistics.Web.ClientUI Dialog <build_number>
*
* Copyright (c) 2011-<year> Infragistics Inc.
*
* http://www.infragistics.com/
*
* Depends on:
* jquery.js
* jqueryui/1.8.11/jquery-ui.js
* jquery.ui.core.js
* jquery.ui.widget.js
* jquery.ui.mouse.js
* jquery.ui.draggable.js
* jquery.ui.resizable.js
* in... | 37,921 |
https://github.com/Nalyanne/TCC-Codigo/blob/master/pataamiga/database/migrations/2016_07_30_192338_create_tb_servicos_table.php | Github Open Source | Open Source | MIT | 2,016 | TCC-Codigo | Nalyanne | PHP | Code | 57 | 233 | <?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
class CreateTbServicosTable extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('tb_servicos', function(Blueprint $table)
{
$table->increments('cod_servi... | 5,401 |
https://github.com/RIVER1016/DirectX-11-Play/blob/master/DX11-vulkan/app/src/main/utils/util.cpp | Github Open Source | Open Source | MIT | 2,021 | DirectX-11-Play | RIVER1016 | C++ | Code | 10 | 28 | //
// Created by 12445 on 2020/2/11.
//
#include "util.hpp"
| 45,119 |
https://github.com/DaviesGit/translator/blob/master/Translator_windows/test/test.js | Github Open Source | Open Source | MIT | 2,022 | translator | DaviesGit | JavaScript | Code | 15 | 179 | var a=document.createElement('audio');
a.onended=function(){console.log('ended')};
a.onpause=function(){console.log('pause')};
// a.src='http://111.9.117.35/mp3.9ku.com/m4a2/468785.m4a';
a.src='https://fanyi.baidu.com/gettts?lan=en&text=free&spd=3&source=web';
a.play();
setTimeout(function(){
a.pause();
},1000);
... | 37,432 |
https://github.com/yunionio/dashboard/blob/master/src/components/JsonSchemaForm/radio/index.js | Github Open Source | Open Source | Apache-2.0 | 2,023 | dashboard | yunionio | JavaScript | Code | 33 | 105 | import { Radio } from 'ant-design-vue'
import RadioRule from '../core/rules/radio'
import JRadio from './Radio'
/* istanbul ignore next */
JRadio.install = function (Vue) {
Vue.prototype.$generator.addRule('a-radio', RadioRule)
Vue.use(Radio)
Vue.component(JRadio.name, JRadio)
}
export default JRadio
| 6,799 |
https://github.com/dvolgyes/keops/blob/master/keops/core/formulas/maths/Subtract.h | Github Open Source | Open Source | MIT | 2,020 | keops | dvolgyes | C++ | Code | 772 | 1,724 | #pragma once
#include <assert.h>
#include "core/pack/CondType.h"
#include "core/autodiff/BinaryOp.h"
#include "core/formulas/constants/Zero.h"
#include "core/formulas/constants/IntConst.h"
#include "core/formulas/maths/Add.h"
#include "core/formulas/maths/Sum.h"
#include "core/formulas/maths/Scal.h"
#include "core/fo... | 37,508 |
https://github.com/erikoijwall/OpenRiaServices/blob/master/src/Test/Desktop/OpenRiaServices.Common.DomainServices.Test/Cities/CityDomainServiceHost.cs | Github Open Source | Open Source | Apache-2.0 | 2,020 | OpenRiaServices | erikoijwall | C# | Code | 32 | 102 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using OpenRiaServices.Hosting;
namespace Cities
{
public class CityDomainServiceHost : DomainServiceHost
{
public CityDomainServiceHost(Type domainServiceType, params Uri[] baseAddresses)
: base(domainServ... | 38,854 |
https://github.com/dukagjinramosaj1/blockstarter4/blob/master/express/views/createProject.handlebars | Github Open Source | Open Source | MIT | 2,017 | blockstarter4 | dukagjinramosaj1 | null | Spoken | 111 | 539 | <nav class="breadcrumb">
<a class="breadcrumb-item" href="/">Home</a>
<a class="breadcrumb-item" href="/myprojects">My Projects</a>
<span class="breadcrumb-item active">Create Projects</span>
</nav>
{{#if success}}
<div style="margin-top:50px;" class="row justify-content-center mt-50">
<div cl... | 23,709 |
https://github.com/zackariahshone/zackariahshone.github.io/blob/master/app/components/BackGround/index.js | Github Open Source | Open Source | MIT | null | zackariahshone.github.io | zackariahshone | JavaScript | Code | 245 | 878 | /**
*
* BackGround
*
*/
import React from 'react';
import './style.css';
import Row from 'react-bootstrap/Row';
import Col from 'react-bootstrap/Col';
import Container from 'react-bootstrap/Container';
import Carousel from 'react-bootstrap/Carousel';
import Card from 'react-bootstrap/Card';
import img from '../../... | 7,064 |
https://github.com/codemonkey76/ait_helpdesk/blob/master/app/Rules/CompanyAssigned.php | Github Open Source | Open Source | MIT | 2,021 | ait_helpdesk | codemonkey76 | PHP | Code | 85 | 280 | <?php
namespace App\Rules;
use App\Models\Company;
use App\Models\User;
use Illuminate\Contracts\Validation\Rule;
use Illuminate\Support\Facades\DB;
class CompanyAssigned implements Rule
{
private User $user;
public function __construct(User $user)
{
$this->user = $user;
}
public functio... | 11,745 |
https://github.com/conwid/GistManager/blob/master/GistManager/GistService/Model/GistFileModel.cs | Github Open Source | Open Source | CC-BY-3.0 | 2,021 | GistManager | conwid | C# | Code | 64 | 197 | using Octokit;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace GistManager.GistService.Model
{
public class GistFileModel
{
private readonly GistFile gistFile;
public GistFileModel(GistFile gistFile)
{
... | 3,831 |
https://github.com/raneemabujamous/data-structures-and-algorithms-1/blob/master/401-challenges/tree-breadth-first/tree-breadth-first.js | Github Open Source | Open Source | MIT | 2,021 | data-structures-and-algorithms-1 | raneemabujamous | JavaScript | Code | 35 | 142 | "use strict";
let breadthFirst = (tree) => {
let breadthFirstArr = [];
breadthFirstArr.push(tree.root.value);
let traverse = (node) => {
breadthFirstArr.push(node.left.value);
breadthFirstArr.push(node.right.value);
if (node.left.left) traverse(node.left);
if (node.right.right) traverse(nod... | 50,637 |
https://github.com/groboclown/p4ic4idea/blob/master/p4java/r18-1/src/test/java/com/perforce/p4java/tests/dev/unit/features141/TriggersTest.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | p4ic4idea | groboclown | Java | Code | 471 | 1,469 | /**
* Copyright (c) 2014 Perforce Software. All rights reserved.
*/
package com.perforce.p4java.tests.dev.unit.features141;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;
import java.net.URIS... | 15,639 |
https://github.com/chowdarym001/College/blob/master/Rasmussen/Assets/dev/prime/gulpfile.js | Github Open Source | Open Source | MIT | 2,017 | College | chowdarym001 | JavaScript | Code | 1,765 | 8,606 | 'use strict';
// modules
var assemble = require('fabricator-assemble'),
autoprefixer = require('gulp-autoprefixer'),
browserSync = require('browser-sync'),
combineMq = require('gulp-combine-mq'),
concat = require('gulp-concat'),
criticalCss = require('gulp-critical-css'),
cssmin = require('gulp... | 7,751 |
https://github.com/iqbalfn/admin/blob/master/application/libraries/ObjectMeta.php | Github Open Source | Open Source | MIT | 2,017 | admin | iqbalfn | PHP | Code | 1,042 | 4,658 | <?php
if(!defined('BASEPATH'))
die;
class ObjectMeta
{
private $CI;
private $object;
private $name;
private $meta_value = array();
private $attr_value = array();
private $rules;
private $afterJQFiles = array();
private $meta_to_attr = array(
'article:author' ... | 43,313 |
https://github.com/arksu/origin_erlang/blob/master/src/ports/types.c | Github Open Source | Open Source | MIT | 2,021 | origin_erlang | arksu | C | Code | 567 | 2,576 | /*
* types.c
*
* Created on: 31.12.2011
* Author: arksu
*/
#include "defines.h"
#include <string.h>
#include "erl_nif.h"
#include "nif_utils.h"
#define CHECK_TYPE(CTYPE) if (strcmp(type, CTYPE) == 0) return 1
#define CHECK_TYPEID(CTYPE) if (typeid == CTYPE) return 1
#define GET_TYPEID(CTYPE, TYPEID) ... | 31,092 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.