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/shakuzen/helidon/blob/master/config/config/src/main/java/io/helidon/config/internal/PrefixedConfigSource.java | Github Open Source | Open Source | Apache-2.0 | 2,019 | helidon | shakuzen | Java | Code | 233 | 581 | /*
* Copyright (c) 2017, 2018 Oracle and/or its 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
*
... | 43,521 |
https://github.com/miguelfoliveira/TeamUp/blob/master/Services/LocationManager/api_call.py | Github Open Source | Open Source | MIT | 2,018 | TeamUp | miguelfoliveira | Python | Code | 172 | 1,078 | import requests
# EventLocation
# get all locations
#r = requests.get('http://127.0.0.1:5005/locationManager/v1.1/voting/all_locations', json={'event_id': 3})
# get most voted
#r = requests.get('http://127.0.0.1:5005/locationManager/v1.1/voting/most_voted', json={'event_id': 3})
# get three most voted
r = requests.get... | 36,417 |
https://github.com/weavver/home/blob/master/api/src/echo/echo.test.ts | Github Open Source | Open Source | MIT | null | home | weavver | TypeScript | Code | 74 | 214 | import { config } from 'dotenv';
import { resolve } from "path";
config({ path: resolve(__dirname, "../../.env") });
var assert = require('chai').assert;
import { TestHelper } from '../common/test-helper';
describe('API', function() {
let helper : TestHelper = new TestHelper();
this.beforeAll(async () => ... | 46,533 |
https://github.com/heronsystems/AirSim/blob/master/Unreal/Plugins/AirSim/Source/UnrealSensors/UnrealLidarSensor.cpp | Github Open Source | Open Source | MIT | null | AirSim | heronsystems | C++ | Code | 983 | 3,190 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#include "UnrealLidarSensor.h"
#include "AirBlueprintLib.h"
#include "common/Common.hpp"
#include "NedTransform.h"
#include "DrawDebugHelpers.h"
// ctor
UnrealLidarSensor::UnrealLidarSensor(const AirSimSettings::LidarSetti... | 7,302 |
https://github.com/gtozeti/URI/blob/master/Iniciante/Python/1866 - Conta.py | Github Open Source | Open Source | MIT | 2,021 | URI | gtozeti | Python | Code | 24 | 68 | n = int(input())
num = []
for x in range(n):
num.append(int(input()))
for x in range(n):
if num[x] % 2 == 0:
print(0)
else:
print(1)
| 41,739 |
https://github.com/gscept/nebula/blob/master/fips-files/verbs/physx.py | Github Open Source | Open Source | BSD-2-Clause, LicenseRef-scancode-unknown-license-reference | 2,023 | nebula | gscept | Python | Code | 398 | 1,213 | """build physx binaries
build [vc17,vc16,vc15] [debug,checked,release]
"""
from mod import log, util, settings, config
import os
import sys
import shutil
import subprocess
import glob
def run(fips_dir, proj_dir, args) :
"""run the 'physx' verb"""
if len(args) > 0 :
noun = args[0]
if noun... | 37,709 |
https://github.com/h36yang/Cracking-The-Coding-Interview/blob/master/008_RecursionAndDynamicProgramming/8.13_StackOfBoxes.cs | Github Open Source | Open Source | MIT | null | Cracking-The-Coding-Interview | h36yang | C# | Code | 495 | 1,210 | using System;
using System.Collections.Generic;
namespace _008_RecursionAndDynamicProgramming
{
/// <summary>
/// 8.13) Stack of Boxes:
/// You have a stack of n boxes, with widths Wi, heights Hi, and depths Di.
/// The boxes cannot be rotated and can only be stacked on top of one another if each box ... | 40,392 |
https://github.com/ad3n/arisan/blob/master/resources/views/groups/members.blade.php | Github Open Source | Open Source | MIT | 2,022 | arisan | ad3n | PHP | Code | 163 | 704 | @extends('layouts.group')
@section('subtitle', __('group.members'))
@section('content-group')
<div class="panel panel-default">
<table class="table table-condensed">
<thead>
<tr>
<th class="text-center">{{ __('app.table_no') }}</th>
<th>{{ __('user.name') }}</th... | 21,197 |
https://github.com/jsahlen/todotxt/blob/master/spec/todolist_spec.rb | Github Open Source | Open Source | MIT | 2,019 | todotxt | jsahlen | Ruby | Code | 335 | 1,216 | require 'spec_helper'
require 'todotxt/todolist'
require 'todotxt/todofile'
describe Todotxt::TodoList do
describe 'with simple list' do
before :each do
@file = Todotxt::TodoFile.new File.join(File.dirname(__FILE__), 'fixtures', 'simple_todo.txt')
@list = Todotxt::TodoList.new @file
end
it '... | 11,496 |
https://github.com/zoomlacms/web002/blob/master/Source-Code-豫章小学全站源代码/Action/DetailCom.aspx | Github Open Source | Open Source | Apache-2.0 | 2,020 | web002 | zoomlacms | null | Spoken | 359 | 2,416 | <%@ page language="C#" autoeventwireup="true" inherits="Action_DetailCom, App_Web_vi5xsqn5" enableEventValidation="false" viewStateEncryptionMode="Never" %>
<!DOCTYPE HTML>
<html>
<head runat="server">
<title>竞拍详细页面</title>
<link href="auction.css" rel="Stylesheet" type="text/css" />
<script src="/JS/jquery.js"></scri... | 7,443 |
https://github.com/wuwx/oauth-server-lite/blob/master/controller/start.go | Github Open Source | Open Source | Apache-2.0 | 2,020 | oauth-server-lite | wuwx | Go | Code | 119 | 596 | package controller
import (
"fmt"
"net/http"
"oauth-server-lite/g"
"github.com/gin-gonic/gin"
)
func InitGin(listen string) (httpServer *http.Server) {
gin.DisableConsoleColor()
if g.Config().LogLevel == "debug" {
gin.SetMode(gin.DebugMode)
} else {
gin.SetMode(gin.ReleaseMode)
}
r := gin.New()
if g.... | 15,798 |
https://github.com/Rohit484/Distribution/blob/master/m/mfiles/src/main/scala/typings/mfiles/global/MFiles/ClassGroup.scala | Github Open Source | Open Source | MIT | 2,020 | Distribution | Rohit484 | Scala | Code | 29 | 149 | package typings.mfiles.global.MFiles
import org.scalablytyped.runtime.Instantiable0
import typings.mfiles.IClassGroup
import scala.scalajs.js
import scala.scalajs.js.`|`
import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess}
@JSGlobal("MFiles.ClassGroup")
@js.native
class Clas... | 27,064 |
https://github.com/ythecombinator/eventio/blob/master/src/modules/auth/pages/SignIn/index.tsx | Github Open Source | Open Source | MIT | 2,021 | eventio | ythecombinator | TypeScript | Code | 270 | 944 | import {ChangeEvent, Component, FormEvent} from 'react';
import {compose} from 'redux';
import Form from 'modules/auth/components/Form';
import FormField from 'modules/auth/components/FormField';
import Head from 'next/head';
import Link from 'next/link';
import Button, {ButtonColor, ButtonSize} from 'components/Butt... | 11,589 |
https://github.com/mimecast/dtail/blob/master/internal/user/name.go | Github Open Source | Open Source | Apache-2.0, BSD-3-Clause, BSD-2-Clause | 2,023 | dtail | mimecast | Go | Code | 87 | 187 | package user
import (
"os/user"
)
// NoRootCheck verifies that the DTail run user is not with UID or GID 0.
func NoRootCheck() {
user, err := user.Current()
if err != nil {
panic(err)
}
if user.Uid == "0" {
panic("Not allowed to run as UID 0")
}
if user.Gid == "0" {
panic("Not allowed to run as GID 0")
... | 14,144 |
https://github.com/mortbauer/Kanmail/blob/master/kanmail/client/components/emails/Filters.jsx | Github Open Source | Open Source | OpenSSL | 2,021 | Kanmail | mortbauer | null | Spoken | 669 | 2,739 | import _ from 'lodash';
import React from 'react';
import PropTypes from 'prop-types';
import { DropTarget } from 'react-dnd';
import { ALIAS_FOLDERS, ALIAS_TO_ICON } from 'constants.js';
import { openSettings, openContacts, openLicense, openLink } from 'window.js';
import filterStore from 'stores/filters.js';
import... | 25,052 |
https://github.com/ibrows/IbrowsLoggableBundle/blob/master/Command/ChangeCommand.php | Github Open Source | Open Source | MIT | 2,022 | IbrowsLoggableBundle | ibrows | PHP | Code | 88 | 425 | <?php
namespace Ibrows\LoggableBundle\Command;
use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand;
use Symfony\Bundle\FrameworkBundle\Tests\Functional\AppKernel;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\Outpu... | 25,159 |
https://github.com/Philippus/scala/blob/master/src/library/scala/collection/LinearSeq.scala | Github Open Source | Open Source | Apache-2.0 | null | scala | Philippus | Scala | Code | 165 | 403 | /*
* Scala (https://www.scala-lang.org)
*
* Copyright EPFL and Lightbend, Inc.
*
* Licensed under Apache License 2.0
* (http://www.apache.org/licenses/LICENSE-2.0).
*
* See the NOTICE file distributed with this work for
* additional information regarding copyright ownership.
*/
package scala
package collecti... | 50,864 |
https://github.com/jgaret/node-rfxcom/blob/master/test/lighting4.spec.js | Github Open Source | Open Source | MIT | null | node-rfxcom | jgaret | JavaScript | Code | 576 | 1,872 | /* global require: false, beforeEach: false, describe: false, it: false, expect: false,
spyOn: false, console: false
*/
const rfxcom = require('../lib'),
util = require('util'),
matchers = require('./matchers'),
FakeSerialPort = require('./helper');
describe('Lighting4 class', function () {
let lightin... | 11,303 |
https://github.com/froedevrolijk/twitter-streaming/blob/master/src/twitterdata/twitter_streaming.py | Github Open Source | Open Source | MIT | 2,019 | twitter-streaming | froedevrolijk | Python | Code | 387 | 1,379 | from requests import exceptions
from requests_oauthlib import OAuth1
from requests import Session
from requests.adapters import HTTPAdapter
from operator import itemgetter
import json
import urllib3
import time
import csv
from src.config.config import CONSUMER_KEY, CONSUMER_SECRET, ACCESS_TOKEN, ACCESS_SECRET
urllib3.... | 31,462 |
https://github.com/nfra-project/kickstart-container-kit/blob/master/kickstart/run/prepare.d/30-set-env.sh | Github Open Source | Open Source | MIT | null | kickstart-container-kit | nfra-project | Shell | Code | 46 | 113 | #!/bin/bash
##
# Load the environment from kick.yml and evaluate it
# So you can also extend like PATH or modify environment
# directly
#
envtoset=`/kickstart/bin/kick kick_to_env`
debug "kick_to_env raw: $envtoset"
## Evaluate and replace $PATH in envtoset
eval $envtoset
## Multiline needs to be evaled
| 40,543 |
https://github.com/rafaelaviles9515/proyectop/blob/master/resources/views/pelicula/create.blade.php | Github Open Source | Open Source | MIT | 2,021 | proyectop | rafaelaviles9515 | Blade | Code | 148 | 784 | @extends('base.base')
@section('title','Crear Pelicula')
@section('boostrap')
@endsection
@section('content')
<section class="page-section bg-dark text-white">
</section>
<div class="container-sm">
<br>
<h1 align="center">Crear Película</h1>
@include('base.session-status')
@inc... | 762 |
https://github.com/berniecpa/invoice-gateways/blob/master/.gitignore | Github Open Source | Open Source | MIT | 2,021 | invoice-gateways | berniecpa | Ignore List | Code | 9 | 33 | build
composer.lock
docs
vendor
coverage
.idea
.vscode
.history
.DS_Store
| 41,166 |
https://github.com/ScalablyTyped/Distribution/blob/master/s/storybook__addons/src/main/scala/typings/storybookAddons/anon.scala | Github Open Source | Open Source | MIT | 2,023 | Distribution | ScalablyTyped | Scala | Code | 143 | 449 | package typings.storybookAddons
import org.scalablytyped.runtime.StObject
import scala.scalajs.js
import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess}
object anon {
trait Base extends StObject {
var base: String
var brandTitle: js.UndefOr[String] = js.... | 23,015 |
https://github.com/LeeInJae/Portfolio/blob/master/GameProj/NNGameFramework/NNGameFramework/NNItem.cpp | Github Open Source | Open Source | MIT | 2,016 | Portfolio | LeeInJae | C++ | Code | 83 | 384 | #include "NNItem.h"
#include "NNAnimation.h"
#include "NNSprite.h"
#include "NNPlayerCharacter.h"
NNItem::NNItem(void)
{
}
NNItem::~NNItem(void)
{
}
void NNItem::SetItemPosition( NNPoint BirdPosition )
{
m_ItemSprite->SetPosition(BirdPosition);
}
void NNItem::SetProperty( ITEM_PROPERTY itemProp )
{
m_Type = item... | 22,243 |
https://github.com/Team-Wild-Growth/universal-time-planner-android/blob/master/app/src/main/java/com/wildgrowth/universaltimeplanner/ui/common/BaseActivity.kt | Github Open Source | Open Source | Apache-2.0 | 2,020 | universal-time-planner-android | Team-Wild-Growth | Kotlin | Code | 86 | 346 | package com.wildgrowth.universaltimeplanner.ui.common
import android.content.pm.PackageManager
import androidx.appcompat.app.AppCompatActivity
import androidx.core.app.ActivityCompat
open class BaseActivity : AppCompatActivity() {
var onPermissionRequestFailedListener: (()->Unit)? = null
companion object {
... | 23,796 |
https://github.com/rifkiystark/ayomangan/blob/master/routes/web.php | Github Open Source | Open Source | MIT | null | ayomangan | rifkiystark | PHP | Code | 97 | 609 | <?php
use App\Http\Controllers\AdminController;
use App\Http\Controllers\HomeController;
use Illuminate\Support\Facades\Route;
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you c... | 33,954 |
https://github.com/ankurshukla1993/IOT-test/blob/master/coeey/android/arch/persistence/room/RoomDatabase.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | IOT-test | ankurshukla1993 | Java | Code | 778 | 2,581 | package android.arch.persistence.room;
import android.arch.core.executor.AppToolkitTaskExecutor;
import android.arch.persistence.db.SimpleSQLiteQuery;
import android.arch.persistence.db.SupportSQLiteDatabase;
import android.arch.persistence.db.SupportSQLiteOpenHelper;
import android.arch.persistence.db.SupportSQLiteOp... | 14,937 |
https://github.com/jwnations/fuentes/blob/master/fonts/rubikone/METADATA.pb | Github Open Source | Open Source | MIT | 2,020 | fuentes | jwnations | null | Spoken | 53 | 196 | name: "Rubik One"
designer: "Hubert and Fischer"
license: "OFL"
category: "SANS_SERIF"
date_added: "2014-05-05"
fonts {
name: "Rubik One"
style: "normal"
weight: 400
filename: "RubikOne-Regular.ttf"
post_script_name: "RubikOne-Regular"
full_name: "Rubik One Regular"
copyright: "Copyright (c) 2013, 2014, H... | 54,388 |
https://github.com/NTUSTcs1091/Group5/blob/master/src/HttpSession.h | Github Open Source | Open Source | BSD-3-Clause | 2,021 | Group5 | NTUSTcs1091 | C++ | Code | 177 | 468 | // Copyright (c) 2021, Kung-Yao Hsieh, Shang-Chen LIN, Yi-Hang Xie. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef HTTPLIB_SRC_HTTPSESSION_H_
#define HTTPLIB_SRC_HTTPSESSION_H_
#include <boost/asio.hpp>
#include <string>
#include... | 49,377 |
https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/carbon__icons-react/lib/IbmCloudEventNotification.d.ts | Github Open Source | Open Source | MIT | 2,023 | DefinitelyTyped | DefinitelyTyped | TypeScript | Code | 8 | 15 | export { IbmCloudEventNotification as default } from "../";
| 55,429 |
https://github.com/aryairani/corla/blob/master/src/main/scala/corla/action/SMOption.scala | Github Open Source | Open Source | MIT | 2,017 | corla | aryairani | Scala | Code | 153 | 716 | package corla.action
import corla._
import corla.memory.Memory3.Next
import corla.memory.{EmptyMemory3, Memory3, SMOPrimitiveMemory}
import scalaz._, Scalaz._
trait AbstractSMOption[S,A,P[_]] {
type M
def M: EmptyMemory3[M,S,A]
def o: GenPolicy[S,Maybe[A],M,P]
def apply = o
def contramap[T](f: T => S): Ab... | 21,324 |
https://github.com/emrahdemirci/lemmatizer/blob/master/lib/lemmatizer.dart | Github Open Source | Open Source | MIT | 2,021 | lemmatizer | emrahdemirci | Dart | Code | 426 | 1,359 | library lemmatizer;
import 'package:flutter/services.dart';
enum POS { NOUN, VERB, ADJ, ADV, ABBR, UNKNOWN }
class Lemmatizer {
static const WN_FILES = {
POS.NOUN: ['index_noun.txt', 'noun_exc.txt'],
POS.VERB: ['index_verb.txt', 'verb_exc.txt'],
POS.ADJ: ['index_adj.txt', 'adj_exc.txt'],
POS.ADV: [... | 11,278 |
https://github.com/rviniciussouza/delivery_pooII/blob/master/deliveryPOO/src/br/edu/ifnmg/dao/AdministradorDao.java | Github Open Source | Open Source | MIT | null | delivery_pooII | rviniciussouza | Java | Code | 98 | 385 | package br.edu.ifnmg.dao;
import java.util.List;
//import javax.ejb.EJB;
import javax.ejb.Stateful;
import javax.persistence.EntityManager;
import javax.persistence.NoResultException;
import javax.persistence.PersistenceContext;
import javax.persistence.TypedQuery;
import br.edu.ifnmg.model.Administrador;
@Stateful... | 39,685 |
https://github.com/openilabs/crypto/blob/master/node_modules/js-nacl/subnacl/box_curve25519xsalsa20poly1305/keypair.c | Github Open Source | Open Source | MIT | 2,021 | crypto | openilabs | C | Code | 20 | 124 | #include "crypto_scalarmult_curve25519.h"
#include "crypto_box_curve25519xsalsa20poly1305.h"
#include "randombytes.h"
int crypto_box_curve25519xsalsa20poly1305_keypair(
unsigned char *pk,
unsigned char *sk
)
{
randombytes(sk,32);
return crypto_scalarmult_curve25519_base(pk,sk);
}
| 56,153 |
https://github.com/concourse/concourse/blob/master/fly/commands/pause_pipeline.go | Github Open Source | Open Source | Apache-2.0 | 2,023 | concourse | concourse | Go | Code | 247 | 754 | package commands
import (
"fmt"
"github.com/concourse/concourse/atc"
"github.com/concourse/concourse/fly/commands/internal/displayhelpers"
"github.com/concourse/concourse/fly/commands/internal/flaghelpers"
"github.com/concourse/concourse/fly/rc"
"github.com/concourse/concourse/go-concourse/concourse"
)
type Pa... | 37,164 |
https://github.com/ethelfajardo/BRSFMS/blob/master/database/migrations/2017_10_15_181443_add_foreign_keys_to_partrecipients_table.php | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, MIT, CC0-1.0, LicenseRef-scancode-warranty-disclaimer | 2,018 | BRSFMS | ethelfajardo | PHP | Code | 57 | 276 | <?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
class AddForeignKeysToPartrecipientsTable extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('partrecipients', function(Blueprint $table)
{
$table->forei... | 30,767 |
https://github.com/mjakobczyk/bullseye/blob/master/backend/internal/ec/product_service_test.go | Github Open Source | Open Source | Apache-2.0 | null | bullseye | mjakobczyk | Go | Code | 295 | 1,377 | package ec
import (
"io/ioutil"
"math"
"net/http"
"net/http/httptest"
"testing"
"fmt"
"github.com/stretchr/testify/assert"
)
func prepareConfig(URL string) *Config {
var config = Config{}
config.Host.API = URL
config.Products.Site = "electronics"
config.HTTP.Client.Timeout.Seconds = 10
return &config
}
... | 9,663 |
https://github.com/programmerr47/breverkruntkin-test-task/blob/master/app/src/main/java/com/github/programmerr47/cleverpumpkintesttask/flightsviewer/representation/FlightListFragment.java | Github Open Source | Open Source | MIT | null | breverkruntkin-test-task | programmerr47 | Java | Code | 476 | 2,285 | package com.github.programmerr47.cleverpumpkintesttask.flightsviewer.representation;
import android.app.AlertDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.widget.... | 31,102 |
https://github.com/agims/sherpa/blob/master/footer.php | Github Open Source | Open Source | MIT, LicenseRef-scancode-warranty-disclaimer | 2,018 | sherpa | agims | PHP | Code | 18 | 96 | <section id="footer">
<div class="container">
<div class="row">
<div class="<?=FULLWIDTH?>">
<?=__('Footer','sherpa')?>
</div>
</div>
</div>
</section>
<?php wp_footer(); ?>
</body>
</html> | 47,831 |
https://github.com/netxixi/exp/blob/master/event/metric.go | Github Open Source | Open Source | BSD-3-Clause | null | exp | netxixi | Go | Code | 628 | 1,349 | // Copyright 2021 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package event
import (
"context"
"time"
)
// A Unit is a unit of measurement for a metric.
type Unit string
const (
UnitDimensionless Unit = "1"
UnitByte... | 10,369 |
https://github.com/hmassad/mercadolibre-scrapper/blob/master/src/main/java/com/mercadolibre/model/ScrollResponse.java | Github Open Source | Open Source | Apache-2.0 | null | mercadolibre-scrapper | hmassad | Java | Code | 88 | 264 | package com.mercadolibre.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Objects;
public class ScrollResponse {
@JsonProperty("scroll_id")
private String scrollId;
public String getScrollId() {
return scrollId;
}
public ScrollResponse setScrollId(String scr... | 21,665 |
https://github.com/juliangut/server-handler-swoole/blob/master/src/Reloader/VoidReloader.php | Github Open Source | Open Source | BSD-3-Clause | 2,020 | server-handler-swoole | juliangut | PHP | Code | 59 | 238 | <?php
/*
* server-handler-swoole (https://github.com/juliangut/server-handler-swoole).
* Swoole with PSR-15.
*
* @license BSD-3-Clause
* @link https://github.com/juliangut/server-handler-swoole
* @author Julián Gutiérrez <juliangut@gmail.com>
*/
declare(strict_types=1);
namespace Jgut\ServerHandler\Swoole\Rel... | 56,057 |
https://github.com/sonos/tract/blob/master/core/src/ops/cnn/pools.rs | Github Open Source | Open Source | MIT, Apache-2.0, LicenseRef-scancode-unknown-license-reference | 2,023 | tract | sonos | Rust | Code | 415 | 1,889 | use crate::internal::*;
use crate::ops::cnn::{PaddingSpec, Patch, PatchSpec};
use crate::ops::nn::{BaseDataShape, DataFormat, DataShape, SymDataShape};
use super::padding::ComputedPaddedDim;
#[derive(Debug, Clone, new, Default, Hash, PartialEq, Eq)]
pub struct PoolSpec {
pub data_format: DataFormat,
pub kern... | 40,260 |
https://github.com/swalahamani/vendure/blob/master/packages/admin-ui/src/lib/order/src/components/order-payment-card/order-payment-card.component.scss | Github Open Source | Open Source | MIT | 2,020 | vendure | swalahamani | SCSS | Code | 18 | 71 | @import "variables";
.payment-header {
display: flex;
justify-content: space-between;
align-items: center;
}
.refund-icon {
margin-right: 6px;
color: $color-grey-400;
}
| 30,685 |
https://github.com/ravi-deepsource/axlsx/blob/master/examples/2010_comments.rb | Github Open Source | Open Source | MIT | null | axlsx | ravi-deepsource | Ruby | Code | 49 | 196 | #!/usr/bin/env ruby -w -s
$LOAD_PATH.unshift "#{File.dirname(__FILE__)}/../lib"
# ```ruby
require 'axlsx'
p = Axlsx::Package.new
p.workbook.add_worksheet(name: 'Excel 2010 comments') do |sheet|
sheet.add_row ['Cell with visible comment']
sheet.add_row
sheet.add_row
sheet.add_row ['Cell with hidden comment']
... | 14,174 |
https://github.com/ChristianChiste/EE-Enactables/blob/master/src/test/java/at/uibk/dps/ee/enactables/local/dataflow/AggregationTest.java | Github Open Source | Open Source | Apache-2.0 | null | EE-Enactables | ChristianChiste | Java | Code | 139 | 646 | package at.uibk.dps.ee.enactables.local.dataflow;
import static org.junit.Assert.*;
import org.junit.Test;
import com.google.gson.JsonArray;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import com.google.gson.JsonPrimitive;
import at.uibk.dps.ee.core.exception.StopException;
import at.uibk... | 28,372 |
https://github.com/MewX/contendo-viewer-v1.6.3/blob/master/org/apache/batik/css/engine/value/svg/ICCColor.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | contendo-viewer-v1.6.3 | MewX | Java | Code | 411 | 1,009 | /* */ package org.apache.batik.css.engine.value.svg;
/* */
/* */ import org.apache.batik.css.engine.value.AbstractValue;
/* */ import org.w3c.dom.DOMException;
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
... | 24,836 |
https://github.com/robin-raymond/ArcticTypescript/blob/master/lib/ArcticTestCase.py | Github Open Source | Open Source | MIT | 2,022 | ArcticTypescript | robin-raymond | Python | Code | 251 | 1,295 | # coding=utf8
from sublime_unittest import TestCase
import sublime
import os
class ArcticTestCase(TestCase):
def assert_no_typescript_project_settings(self):
# make sure no typescript settings are present
project_data = sublime.active_window().project_data()
if 'settings' in project_data... | 20,559 |
https://github.com/DPNT-Sourcecode/CHK-mxxq01/blob/master/test/solutions/test_checkout.py | Github Open Source | Open Source | Apache-2.0 | null | CHK-mxxq01 | DPNT-Sourcecode | Python | Code | 51 | 356 | import unittest
from lib.solutions.checkout import checkout
class TestSum(unittest.TestCase):
def test_checkout(self):
self.assertEqual(checkout("ABC"), 50+30+20)
self.assertEqual(checkout("ABCCCD"), 50+30+20*3+15)
self.assertEqual(checkout("AAA"), 130)
self.assertEqual(checkout("... | 33,431 |
https://github.com/xbromy/jira-subversion-plugin/blob/master/src/main/java/com/atlassian/jira/plugin/ext/subversion/projecttabpanels/SubversionProjectRevisionAction.java | Github Open Source | Open Source | Apache-2.0 | 2,019 | jira-subversion-plugin | xbromy | Java | Code | 102 | 395 | package com.atlassian.jira.plugin.ext.subversion.projecttabpanels;
import com.atlassian.jira.plugin.ext.subversion.MultipleSubversionRepositoryManager;
import com.atlassian.jira.plugin.ext.subversion.issuetabpanels.changes.SubversionRevisionAction;
import com.atlassian.jira.plugin.projectpanel.ProjectTabPanelModuleDes... | 20,510 |
https://github.com/JetBrains/intellij-community/blob/master/plugins/kotlin/gradle/code-insight-common/src/org/jetbrains/kotlin/idea/gradleCodeInsightCommon/KotlinWithGradleConfigurator.kt | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-unknown-license-reference | 2,023 | intellij-community | JetBrains | Kotlin | Code | 1,877 | 8,054 | // Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package org.jetbrains.kotlin.idea.gradleCodeInsightCommon
import com.intellij.codeInsight.CodeInsightUtilCore
import com.intellij.codeInsight.daemon.impl.quickfix.OrderEntryFix
import com.intellij.i... | 37,171 |
https://github.com/lidongbest5/outsourcing/blob/master/lifan/js/weixin_share.js | Github Open Source | Open Source | MIT | 2,017 | outsourcing | lidongbest5 | JavaScript | Code | 138 | 643 | function _getRandomString(len) {
len = len || 32;
var $chars = 'ABCDEFGHJKMNPQRSTWXYZabcdefhijkmnprstwxyz2345678'; // 默认去掉了容易混淆的字符oOLl,9gq,Vv,Uu,I1
var maxPos = $chars.length;
var pwd = '';
for (i = 0; i < len; i++) {
pwd += $chars.charAt(Math.floor(Math.random() * ma... | 30,890 |
https://github.com/matias-pierobon/informatica-unlp/blob/master/ruby/parcial1/bingo.rb | Github Open Source | Open Source | MIT | 2,020 | informatica-unlp | matias-pierobon | Ruby | Code | 97 | 309 | require_relative "my_random"
require_relative "moderator"
class Bingo
include Moderator
def initialize()
@numbers = MyRandom.new(99)
end
def jugar()
self.jugadas.each do |numero, linea, bingo|
puts "Salio el #{numero}"
if(linea) then
puts "H... | 17,062 |
https://github.com/gapple/drupalreleasedate/blob/master/src/DrupalReleaseDate/NumberGenerator/NumberGeneratorInterface.php | Github Open Source | Open Source | MIT | 2,016 | drupalreleasedate | gapple | PHP | Code | 99 | 202 | <?php
namespace DrupalReleaseDate\NumberGenerator;
interface NumberGeneratorInterface
{
const TYPE_INT = 1;
const TYPE_FLOAT = 2;
/**
* Set the data type to be returned by the generator.
*
* Available options are class constants with a TYPE_ prefix.
*
* @param int $type
*/
... | 46,153 |
https://github.com/MagmaRat-Studios/cindergames/blob/master/src/claim/main.styl | Github Open Source | Open Source | MIT | 2,021 | cindergames | MagmaRat-Studios | Stylus | Code | 37 | 220 | @require './styles/variables'
@require '../_styles/common'
@require '../_common/well/well'
@require '../_common/jolticons/jolticons'
@require '../_common/hidden-text-expander/hidden-text-expander'
@require '../_common/section/section'
@require '../_common/alert/alert'
@require '../_common/tag/tag'
@require '../_common/... | 13,089 |
https://github.com/efureev/cache/blob/master/Makefile | Github Open Source | Open Source | MIT | 2,022 | cache | efureev | Makefile | Code | 50 | 172 | PKG=./
cover: test
go tool cover -html=./coverage.out
test:
go test -race -coverprofile=./coverage.out
check: check-go check-lint
check-go:
for P in ${PKG}; do \
go test -coverprofile=coverage.out `$$P`; \
done
check-lint:
for P in ${PKG}; do \
golint -set_exit_status `$$P`; \
done
download-tools:
go... | 49,582 |
https://github.com/LIYANJU2015/kotlin-life/blob/master/app/src/main/java/org/cuieney/videolife/entity/VimeoItemListBean.java | Github Open Source | Open Source | MIT | 2,018 | kotlin-life | LIYANJU2015 | Java | Code | 165 | 501 | package org.cuieney.videolife.entity;
import org.cuieney.videolife.common.utils.DateUtil;
import org.cuieney.videolife.common.utils.LogUtil;
import java.util.ArrayList;
/**
* Created by liyanju on 2018/1/4.
*/
public class VimeoItemListBean extends VideoListItemBean {
private String name;
private int du... | 45,545 |
https://github.com/DeedleFake/sips/blob/master/handler.go | Github Open Source | Open Source | MIT | 2,022 | sips | DeedleFake | Go | Code | 1,204 | 3,495 | package sips
import (
"context"
"encoding/json"
"errors"
"fmt"
"io"
"net/http"
"strconv"
"strings"
"time"
"github.com/gorilla/mux"
)
var (
errNoToken = errors.New("no bearer token provided")
errInvalidStatusQuery = errors.New("status list must be non-empty and have at most 4 elements")
errNoR... | 18,141 |
https://github.com/moonlightwatch/sysres/blob/master/httpservice/service.go | Github Open Source | Open Source | MIT | 2,021 | sysres | moonlightwatch | Go | Code | 172 | 661 | package httpservice
import (
"encoding/json"
"net/http"
"reflect"
"strings"
"sysres/systeminfo"
"time"
)
var sysinfo *systeminfo.SystemInformation
var key string
func Run(bind string, token string) {
key = token
mux := http.NewServeMux()
mux.HandleFunc("/", rpcHandler)
svr := &http.Server{
Handler: ... | 27,977 |
https://github.com/haomodiachat/videosourcecode1/blob/master/authen/resources/views/admin/content/shop/statistic/index.blade.php | Github Open Source | Open Source | MIT | 2,019 | videosourcecode1 | haomodiachat | Blade | Code | 9 | 56 | @extends('admin.layouts.glance')
@section('title')
Thống kê
@endsection
@section('review')
<h1>Thống kê</h1>
@endsection
| 17,120 |
https://github.com/mrmaandi/clubhouse/blob/master/frontend/src/components/section/Analytics.tsx | Github Open Source | Open Source | MIT | 2,020 | clubhouse | mrmaandi | TypeScript | Code | 203 | 675 | import React, { FC } from 'react';
import { observer } from 'mobx-react';
import { useRootStore } from './Wrapper';
import { Box, Button, Container, Typography } from '@material-ui/core';
import { Bar } from 'react-chartjs-2';
import { IEntriesByChallenge } from '../../store/EntriesStore';
import AlbumIcon from '@mater... | 3,384 |
https://github.com/NHERI-SimCenter/WE-UQ/blob/master/Solver/openfoam6/src/generalizedSolvers/Newmark/Newmark.H | Github Open Source | Open Source | BSD-3-Clause, BSD-2-Clause | 2,023 | WE-UQ | NHERI-SimCenter | C++ | Code | 425 | 848 | /*---------------------------------------------------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2015-2018 OpenFOAM Foundation
\\... | 43,380 |
https://github.com/grassrootza/grassroot-android-v2/blob/master/app/src/main/java/za/org/grassroot2/model/exception/LifecycleOutOfSyncException.java | Github Open Source | Open Source | BSD-3-Clause | null | grassroot-android-v2 | grassrootza | Java | Code | 9 | 32 | package za.org.grassroot2.model.exception;
public class LifecycleOutOfSyncException extends RuntimeException {
}
| 11,348 |
https://github.com/sherintg/daos/blob/master/src/client/java/daos-java/src/main/java/io/daos/dfs/uns/PropertiesOrBuilder.java | Github Open Source | Open Source | BSD-2-Clause-Patent | 2,021 | daos | sherintg | Java | Code | 92 | 364 | /*
* (C) Copyright 2018-2021 Intel Corporation.
*
* SPDX-License-Identifier: BSD-2-Clause-Patent
*/
package io.daos.dfs.uns;
public interface PropertiesOrBuilder extends
// @@protoc_insertion_point(interface_extends:uns.Properties)
com.google.protobuf.MessageOrBuilder {
/**
* <code>uint32 reserved =... | 47,676 |
https://github.com/jonjonrankin/coronavirus-response/blob/master/src/views/Home.js | Github Open Source | Open Source | MIT | null | coronavirus-response | jonjonrankin | JavaScript | Code | 767 | 2,607 | import React, {useState, useRef} from 'react'
import Slider from '../components/Slider'
import { stringToColor } from '../styles/graph-styles'
import { getData, getCountries } from '../requests/data'
import CasesTimeSeries from '../components/Charts/CasesTimeSeries'
import NewCasesDaily from '../components/Charts/NewCa... | 4,724 |
https://github.com/weihualiu/SDBC/blob/master/include/SRM.h | Github Open Source | Open Source | Apache-2.0 | 2,021 | SDBC | weihualiu | C | Code | 198 | 1,141 |
#ifndef SRMDEF
#define SRMDEF
#include <pack.h>
typedef struct {
T_PkgType *tp; //模板
char *result; //结果集
char *rp; //结果集解析指针
void *rec; //数据记录
const char *hint; //select之后的提示,如,distinct,/*+rule*/
int Aflg; //列数,+tp,rec为存储分配
const char *pks; //主键
const char *tabname;
char *colidx;
const ... | 46,828 |
https://github.com/ericsahit/SMSpark/blob/master/core/src/main/java/org/apache/spark/smstorage/sharedmemory/SMemoryManager.java | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, CDDL-1.1, LGPL-2.1-only, LGPL-2.0-or-later, BSD-3-Clause, MPL-1.1, CDDL-1.0, LicenseRef-scancode-other-permissive, EPL-1.0, GPL-2.0-only, LicenseRef-scancode-generic-cla, Apache-2.0, LicenseRef-scancode-public-domain, GPL-1.0-or-later, LicenseRef-scancode-free-unknown, MPL... | 2,015 | SMSpark | ericsahit | Java | Code | 44 | 179 | /**
*
*/
package org.apache.spark.smstorage.sharedmemory;
/**
* @author hwang
* 共享存储的管理组件,可以实现Shmget和mmap两种方式。
*/
public class SMemoryManager {
ShmgetAccesser accesser;
/**
*
*/
public SMemoryManager() {
accesser = ShmgetAccesser.getInstance("worker");
}
public int applySpace(int size... | 2,134 |
https://github.com/fingerskier/egoid/blob/master/app/src/Task/List.js | Github Open Source | Open Source | MIT | null | egoid | fingerskier | JavaScript | Code | 74 | 302 | import React,{useEffect,useState} from 'react'
import {get} from '../utilities'
import AddTask from "../Task/Add";
import Task from "../Task/Task";
function Tasks({quest_id=0}) {
const [quest, setQuest] = useState({name:'Top Level'})
const [tasks, setTasks] = useState([])
useEffect(() => {
console.log(quest... | 33,536 |
https://github.com/apache/tvm/blob/master/src/support/ffi_testing.cc | Github Open Source | Open Source | Apache-2.0, BSD-3-Clause, MIT, LicenseRef-scancode-unknown-license-reference, Unlicense, Zlib, LLVM-exception, BSD-2-Clause | 2,023 | tvm | apache | C++ | Code | 555 | 1,924 | /*
* 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 ... | 40,509 |
https://github.com/sosozhuang/rgw-client/blob/master/core/src/test/java/io/ceph/rgw/client/core/bucket/GetBucketTest.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | rgw-client | sosozhuang | Java | Code | 68 | 321 | package io.ceph.rgw.client.core.bucket;
import io.ceph.rgw.client.model.GetBucketResponse;
import org.junit.Assert;
import org.junit.Test;
import org.junit.experimental.categories.Category;
/**
* @author zhuangshuo
* Created by zhuangshuo on 2020/7/9.
*/
@Category(BucketTests.class)
public class GetBucketTest exte... | 55,298 |
https://github.com/hatimalmutairi/LGAAP/blob/master/workflow/rules/get_fastq.smk | Github Open Source | Open Source | MIT | 2,021 | LGAAP | hatimalmutairi | Python | Code | 699 | 10,163 | ###
rule LSCM1_Download_Short_Read:
output:
"data/LSCM1/SRR13558784_1.fastq",
"data/LSCM1/SRR13558784_2.fastq",
"data/LSCM1/SRR13558785_1.fastq",
"data/LSCM1/SRR13558785_2.fastq",
"data/LSCM1/SRR13558792_1.fastq",
"data/LSCM1/SRR13558792_2.fastq",
threads: workflow.cores
benchmark:
"results/benchmarks/... | 13,865 |
https://github.com/forge-lab/one-punch-synthesis/blob/master/Z3 Programs/BasicSynthesizer0705.cpp | Github Open Source | Open Source | BSD-3-Clause | null | one-punch-synthesis | forge-lab | C++ | Code | 1,631 | 5,163 | #include<vector>
#include"C:\Users\user1\Desktop\z3-4.8.8-x64-win\include\z3++.h"
#include <unordered_map>
#include <queue>
#include <set>
#include "Methods.h"
using namespace z3;
enum class Type
{
EMPTY, //0
LIST, //1
INTEGER, //2
LAMBDA_INT, //3, for Map, a type of function that returns ints
LA... | 24,528 |
https://github.com/nih-fo/plugin-utilities/blob/master/View/Elements/email_html_details.ctp | Github Open Source | Open Source | MIT | 2,017 | plugin-utilities | nih-fo | PHP | Code | 131 | 586 | <?php
/**
* File: /app/View/Elements/details.ctp
*
* Use: provides a standard for displaying a list of details.
*
* Usage: echo $this->element('details', array([details]));
*/
$title = (isset($title)?$title:__('Details'));
$details = (isset($details)?$details:array());
$class = (isset($options['class'])?$options... | 49,107 |
https://github.com/Hibariying/hrsaas/blob/master/src/store/modules/1.js | Github Open Source | Open Source | MIT | 2,022 | hrsaas | Hibariying | JavaScript | Code | 781 | 1,795 | // class Axios {
// static create() {
// var request_ok = null // 请求拦截器成功的回调
// var request_no = null // 请求拦截器失败的回调
// var response_ok = null // 响应拦截器成功的回调
// var response_no = null // 响应拦截器失败的回调
// const { Message } = require('element-ui')
// const { reject } = require('core-js/fn/promise')
// con... | 15,763 |
https://github.com/alipay/antchain-openapi-prod-sdk/blob/master/arec/composer/src/Models/ConfirmRcpMgRequest.php | Github Open Source | Open Source | Apache-2.0, MIT | 2,023 | antchain-openapi-prod-sdk | alipay | PHP | Code | 269 | 1,030 | <?php
// This file is auto-generated, don't edit it. Thanks.
namespace AntChain\AREC\Models;
use AlibabaCloud\Tea\Model;
class ConfirmRcpMgRequest extends Model
{
// OAuth模式下的授权token
/**
* @var string
*/
public $authToken;
// 集群ID
/**
* @var string
*/
public $productInst... | 39,057 |
https://github.com/campezzi/haskell-playground/blob/master/src/TraversableExercises.hs | Github Open Source | Open Source | BSD-3-Clause | null | haskell-playground | campezzi | Haskell | Code | 1,138 | 2,151 | module TraversableExercises where
import Control.Applicative (liftA2, liftA3)
import Data.Monoid ((<>))
import Test.QuickCheck
import Test.QuickCheck.Checkers
import Test.QuickCheck.Classes
-- something to use as the function for traverse
maybeNum :: Int -> Maybe Int
maybeNum x =
if odd x
then Just x
else N... | 18,442 |
https://github.com/alibabacloud-sdk-php/dms-enterprise-20181101/blob/master/src/Models/CreateDataCronClearOrderRequest/param/cronClearItemList.php | Github Open Source | Open Source | Apache-2.0 | null | dms-enterprise-20181101 | alibabacloud-sdk-php | PHP | Code | 194 | 662 | <?php
// This file is auto-generated, don't edit it. Thanks.
namespace AlibabaCloud\SDK\Dmsenterprise\V20181101\Models\CreateDataCronClearOrderRequest\param;
use AlibabaCloud\Tea\Model;
class cronClearItemList extends Model
{
/**
* @var string
*/
public $columnName;
/**
* @var string
... | 53,259 |
https://github.com/Reasat/eece-8395/blob/master/Projects/Project_6/Augment.m | Github Open Source | Open Source | MIT | 2,018 | eece-8395 | Reasat | MATLAB | Code | 53 | 305 | function Augment(P)
global Parent Orphans Orphan_cnt Tree PLengths
% find bottleneck capacity
bot_cap=1e6;
for i_node=2:length(P)
p=P(i_node-1);
q=P(i_node);
cap=EdgeFunc(p,q);
if bot_cap>cap
bot_cap=cap;
end
end
%% push flow
for i_node=2:length(P)
p=P(i_node-1);
q=P(i_... | 49,337 |
https://github.com/natbro/MoltenVK/blob/master/MoltenVK/MoltenVK/Utility/CAMetalLayer+MoltenVK.h | Github Open Source | Open Source | Apache-2.0 | null | MoltenVK | natbro | C | Code | 194 | 352 | /*
* CAMetalLayer+MoltenVK.h
*
* Copyright (c) 2014-2018 The Brenwill Workshop Ltd. (http://www.brenwill.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.apach... | 33,345 |
https://github.com/funkey/sopnet/blob/master/binaries/tests/CMakeLists.txt | Github Open Source | Open Source | MIT | 2,015 | sopnet | funkey | CMake | Code | 6 | 29 | define_module(linear_solver BINARY SOURCES linear_solver.cpp LINKS allsopnet)
| 38,084 |
https://github.com/gitter-badger/Metro-UI-CSS/blob/master/js/utils/i18n.js | Github Open Source | Open Source | MIT | null | Metro-UI-CSS | gitter-badger | JavaScript | Code | 663 | 2,773 | var Locales = {
'en-US': {
"calendar": {
"months": [
"January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December",
"Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"
... | 6 |
https://github.com/SaschaZeGerman/loginbuddy/blob/master/net.loginbuddy.common/src/main/java/net/loginbuddy/common/storage/StorageProvider.java | Github Open Source | Open Source | Apache-2.0 | 2,023 | loginbuddy | SaschaZeGerman | Java | Code | 15 | 43 | package net.loginbuddy.common.storage;
public interface StorageProvider {
Object put(String key, Object value);
Object get(String key);
}
| 35,482 |
https://github.com/gusals9355/WATCHACHA/blob/master/src/main/webapp/WEB-INF/views/pay/index.jsp | Github Open Source | Open Source | MIT | 2,021 | WATCHACHA | gusals9355 | null | Spoken | 119 | 651 | <%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html lang="ko">
<head>
<title>구매하기</title>
<meta charset="utf-8"/>
<meta http-equiv="x-ua-compatible" content="ie=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"/>
<link rel="stylesheet" href="/cs... | 32,352 |
https://github.com/ikerib/symfony2-control-bobinas/blob/master/src/Gitek/BackendBundle/Entity/AuxDiodos.php | Github Open Source | Open Source | MIT | null | symfony2-control-bobinas | ikerib | PHP | Code | 102 | 344 | <?php
namespace Gitek\BackendBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* AuxDiodos
*
* @ORM\Table()
* @ORM\Entity(repositoryClass="Gitek\BackendBundle\Entity\AuxDiodosRepository")
*/
class AuxDiodos
{
/**
* @var integer
*
* @ORM\Column(name="id", type="integer")
* @ORM\Id
... | 17,336 |
https://github.com/house4hack/PCBFactory/blob/master/Hardware/3dPrintedParts/x-endstop-bracket.scad | Github Open Source | Open Source | MIT | 2,021 | PCBFactory | house4hack | null | Spoken | 40 | 261 | l=37;
w=30;
h=3;
stepper_hole_dist=31;
limit_hole_dist=9.5;
fn=16;
difference(){
translate([-w/2, -l/2, 0]) cube([w,l,h]);
#translate([w/2-4, -stepper_hole_dist/2, 0]) cylinder(h=8,r=1.5, center=true, $fn=fn);
#translate([w/2-4, stepper_hole_dist/2, 0]) cylinder(h=8,r=1.5, center=true, $fn=fn);
translate([-w/2+4, -l/... | 32,392 |
https://github.com/navikt/frisinn/blob/master/src/app/soknad/selvstendig-step/__tests__/selvstendigAvslag.test.ts | Github Open Source | Open Source | MIT | null | frisinn | navikt | TypeScript | Code | 496 | 2,673 | import { YesOrNo } from '@navikt/sif-common-formik/lib';
import { apiStringDateToDate, DateRange } from '../../../utils/dateUtils';
import { kontrollerSelvstendigSvar, SelvstendigNæringsdrivendeAvslagStatus } from '../selvstendigAvslag';
import { SelvstendigFormData } from '../../../types/SoknadFormData';
const period... | 4,788 |
https://github.com/Rodriguez111/job4j/blob/master/chapter_008/src/main/java/ru/job4j/menu/FakeInput.java | Github Open Source | Open Source | Apache-2.0 | null | job4j | Rodriguez111 | Java | Code | 35 | 102 | package ru.job4j.menu;
import java.util.List;
public class FakeInput implements Input {
private final List<String> answers;
private int count;
public FakeInput(List<String> answers) {
this.answers = answers;
}
@Override
public String askUser(String question) {
return answers.g... | 51,279 |
https://github.com/iscasaban/hangman-game/blob/master/src/components/Dummy.js | Github Open Source | Open Source | MIT | null | hangman-game | iscasaban | JavaScript | Code | 76 | 282 | import "../styles/components/Dummy.scss";
import PropTypes from "prop-types";
const Dummy = ({ numberOfErrors }) => {
return (
<section className={`dummy error-${numberOfErrors}`}>
<span className="error-13 eye"></span>
<span className="error-12 eye"></span>
<span className="error-11 line"></sp... | 41,797 |
https://github.com/fasterthanlime/liquid-rust/blob/master/crates/lib/src/stdlib/tags/include_tag.rs | Github Open Source | Open Source | MIT | null | liquid-rust | fasterthanlime | Rust | Code | 493 | 1,837 | use std::io::Write;
use liquid_core::error::ResultLiquidExt;
use liquid_core::Expression;
use liquid_core::Language;
use liquid_core::Renderable;
use liquid_core::Runtime;
use liquid_core::ValueView;
use liquid_core::{Error, Result};
use liquid_core::{ParseTag, TagReflection, TagTokenIter};
#[derive(Debug)]
struct In... | 45,360 |
https://github.com/pgrigoro/keycloak-kibana/blob/master/scripts/lint.js | Github Open Source | Open Source | Apache-2.0 | 2,020 | keycloak-kibana | pgrigoro | JavaScript | Code | 59 | 209 | const fs = require('fs');
const path = require('path');
const { execSync } = require('child_process');
const KIBANA_PLUGINS_CATALOG = 'kibana/plugins';
const args = process.argv.slice(2);
fs.readdirSync(KIBANA_PLUGINS_CATALOG, { withFileTypes: true })
.filter(dirent => dirent.isDirectory())
.forEach(dirent => {
... | 6,816 |
https://github.com/GerdHirsch/HALLib/blob/master/HALLibTest/MMRTests/MMRTestRegister.h | Github Open Source | Open Source | MIT | 2,018 | HALLib | GerdHirsch | C++ | Code | 89 | 290 | #ifndef __MMR_TESTMOCKREGISTER_H_
#define __MMR_TESTMOCKREGISTER_H_
#include "../HALLibTestApp.h"
//===================================================================
// Test für das TestMockRegister
//===================================================================
namespace Mock {
extern unsigned long testMockR... | 14,009 |
https://github.com/MewX/contendo-viewer-v1.6.3/blob/master/org/apache/pdfbox/pdmodel/graphics/color/PDSpecialColorSpace.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | contendo-viewer-v1.6.3 | MewX | Java | Code | 100 | 293 | /* */ package org.apache.pdfbox.pdmodel.graphics.color;
/* */
/* */ import org.apache.pdfbox.cos.COSBase;
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* ... | 16,159 |
https://github.com/patchlog/ttf2web/blob/master/Makefile | Github Open Source | Open Source | MIT | 2,021 | ttf2web | patchlog | Makefile | Code | 22 | 84 | all:
python setup.py check --restructuredtext
python setup.py sdist bdist_wheel >/dev/null
testpypi:
twine upload --repository-url https://test.pypi.org/legacy/ dist/*
pypi:
twine upload dist/*
.PHONY: all
| 53,246 |
https://github.com/snoopy-cat/ng-aquila/blob/master/projects/ngx-docs-cli/src/examples/example-module/types.ts | Github Open Source | Open Source | MIT | null | ng-aquila | snoopy-cat | TypeScript | Code | 36 | 77 | // Interfaces for the data to extract from the ts example files
export interface ExampleMetadata {
component: string;
sourcePath: string;
id: string;
title: string;
}
export interface ParsedMetadata {
component: string;
title: string;
sourcePath: string;
}
| 55,761 |
https://github.com/kundajelab/libBigWig/blob/master/docs/html/search/variables_5.js | Github Open Source | Open Source | MIT | 2,016 | libBigWig | kundajelab | JavaScript | Code | 5 | 73 | var searchData=
[
['global_5fdefaultbuffersize',['GLOBAL_DEFAULTBUFFERSIZE',['../io_8h.html#a2f4038b5ef0a0e7dc45a20fc0bb83925',1,'io.h']]]
];
| 23,046 |
https://github.com/mariocoski/rest-api-node-typescript/blob/master/src/service/comments/createComment/index.ts | Github Open Source | Open Source | MIT | 2,021 | rest-api-node-typescript | mariocoski | TypeScript | Code | 74 | 220 |
import Config from '../../Config';
import Signature from './Signature';
import {Options} from './Signature';
import {ModelNotFoundError} from '../../../utils/errors';
import {PostAttributes} from '../../../models/interfaces/post';
import {UserAttributes} from '../../../models/interfaces/user';
export default (config:... | 19,721 |
https://github.com/syropian/gamereel/blob/master/resources/assets/js/components/Dashboard/Index.vue | Github Open Source | Open Source | BSD-3-Clause | 2,018 | gamereel | syropian | Vue | Code | 194 | 718 | <template>
<div class="dashboard w-screen h-screen overflow-hidden">
<header class="bg-brand flex items-center px-8">
<img class="block self-center h-12" src="/images/logo-new.svg">
</header>
<div class="sidebar bg-grey-darkest py-8 overflow-y-scroll">
<Sidebar></Sidebar>
</div>
<div c... | 4,529 |
https://github.com/wernerholzapfel/supereleven2019/blob/master/src/app/headlines/headline.service.ts | Github Open Source | Open Source | MIT | null | supereleven2019 | wernerholzapfel | TypeScript | Code | 91 | 359 | import {HttpException, HttpStatus, Injectable, Logger} from '@nestjs/common';
import {InjectRepository} from '@nestjs/typeorm';
import {Connection, Repository} from 'typeorm';
import {Headline} from './headline.entity';
import {CreateHeadlineDto} from './create-headline.dto';
@Injectable()
export class HeadlineService... | 18,637 |
https://github.com/Joshalexjacobs/fantastic-guacamole/blob/master/player.lua | Github Open Source | Open Source | MIT | null | fantastic-guacamole | Joshalexjacobs | Lua | Code | 2,031 | 5,908 | -- player.lua --
-- Player Class: --
local player = {
type = "player", -- or "invincible" -- or "invincibleProne"
lives = 3,
x = 0,
y = 130,
w = 10,
h = 42,
dx = 0,
dy = 0,
speed = 80, --80
initVel = 3,
termVel = -3,
isJumping = false,
jumpLock = false,
shootLock = false,
isGrounded = fal... | 23,923 |
https://github.com/yutiansut/aresdb/blob/master/query/expr/ast.go | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-unknown-license-reference, LicenseRef-scancode-proprietary-license, LicenseRef-scancode-public-domain, MIT, BSD-3-Clause | 2,019 | aresdb | yutiansut | Go | Code | 2,371 | 5,672 | // Modifications Copyright (c) 2017-2018 Uber Technologies, Inc.
// Copyright (c) 2013-2016 Errplane Inc.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of
// this software and associated documentation files (the "Software"), to deal in
// the Software without restriction, including ... | 39,539 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.