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/abraaolevi/LayoutItKit/blob/master/Example/ExamplesViewController.swift | Github Open Source | Open Source | MIT | null | LayoutItKit | abraaolevi | Swift | Code | 173 | 566 | //
// ExemplesViewController.swift
// Example
//
// Created by Abraao Levi on 20/03/22.
// Copyright © 2022 LayoutItKit. All rights reserved.
//
import LayoutItKit
import UIKit
struct ListItem {
let title: String
let buildViewController: () -> UIViewController
}
class ExamplesViewController: UIViewContro... | 40,277 |
https://github.com/yhuihu/shop_api/blob/master/business/profile-service/src/main/java/com/study/shop/business/configure/RedisChannel.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | shop_api | yhuihu | Java | Code | 66 | 338 | package com.study.shop.business.configure;
import com.study.shop.business.websocket.RedisConsumer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.redis.core.R... | 29,012 |
https://github.com/glensand/hope/blob/master/test/commontests/utility_test.cpp | Github Open Source | Open Source | MIT | 2,021 | hope | glensand | C++ | Code | 183 | 749 | /* Copyright (C) 2021 Gleb Bezborodov - All Rights Reserved
* You may use, distribute and modify this code under the
* terms of the MIT license.
*
* You should have received a copy of the MIT license with
* this file. If not, please write to: bezborodoff.gleb@gmail.com, or visit : https://github.com/glensand/hope
... | 52,494 |
https://github.com/agerasev/hypertrace/blob/master/kernel/ocl/material/transparent.cc | Github Open Source | Open Source | Apache-2.0, MIT | 2,023 | hypertrace | agerasev | C++ | Code | 110 | 360 | #include "transparent.hh"
__allow_unused_params__
bool transparent_interact(__global const Transparent *self, Context *context, real3 normal, LightLocal *light, float3 *emission) {
return true;
}
#ifdef UNITTEST
#include <gtest/gtest.h>
// Monte Carlo confidence interval
static const real CONF = (real)3/sqrt(re... | 3,032 |
https://github.com/NelsonGomesNeto/ProgramC/blob/master/Competitive Programming/Seletiva UnB 2019/F.cpp | Github Open Source | Open Source | MIT | 2,021 | ProgramC | NelsonGomesNeto | C++ | Code | 104 | 294 | #include <bits/stdc++.h>
using namespace std;
const int maxSeconds = 24*60*60;
int in[maxSeconds + 1], out[maxSeconds + 1];
int main()
{
int n; scanf("%d", &n);
for (int i = 0; i < n; i ++)
{
int h1, m1, s1, h2, m2, s2, seconds1, seconds2;
scanf("%d:%d:%d %d:%d:%d", &h1, &m1, &s1, &h2, &m2, &s2);
se... | 43,890 |
https://github.com/minyuanriji/wwwbackend/blob/master/plugins/group_buy/forms/mall/GoodsEditForm.php | Github Open Source | Open Source | BSD-3-Clause | null | wwwbackend | minyuanriji | PHP | Code | 163 | 613 | <?php
/**
* 保存普通商品 goods表
* xuyaoxiang
* 2020/09/02
*/
namespace app\plugins\group_buy\forms\mall;
use app\models\BaseModel;
use app\models\Goods;
class GoodsEditForm extends BaseModel
{
public $goods_id;
public $mall_id;
//验证规则
public function rules()
{
return [
[['goods_... | 19,359 |
https://github.com/berrutti/friday-pics-bot/blob/master/utils/reddit.js | Github Open Source | Open Source | MIT | 2,021 | friday-pics-bot | berrutti | JavaScript | Code | 111 | 482 | const Snoowrap = require('snoowrap');
const r = new Snoowrap({
userAgent: 'user-agent',
clientId: process.env.CLIENT_ID,
clientSecret: process.env.CLIENT_SECRET,
username: process.env.REDDIT_USER,
password: process.env.REDDIT_PASS
});
const options = {
time: 'week',
limit: 8
}
function isImagePost(url)... | 29,613 |
https://github.com/hhucn/ansWEARs/blob/master/constants/src/main/java/de/opptain/constants/Keys.java | Github Open Source | Open Source | Apache-2.0 | null | ansWEARs | hhucn | Java | Code | 252 | 610 | /*
* Copyright 2018 Bashkim Berzati
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | 42,512 |
https://github.com/muak/AiForms.Effects/blob/master/AiForms.Effects.Droid/FeedbackPlatformEffect.cs | Github Open Source | Open Source | MIT | 2,022 | AiForms.Effects | muak | C# | Code | 566 | 2,156 | using System;
using System.Linq;
using AiForms.Effects;
using AiForms.Effects.Droid;
using Android.Content;
using Android.Content.Res;
using Android.Graphics.Drawables;
using Android.Media;
using Android.Views;
using Android.Widget;
using Xamarin.Forms;
using Xamarin.Forms.Platform.Android;
[assembly: ExportEffect(ty... | 29,729 |
https://github.com/ntabernero/react/blob/master/node_modules/coverify/test/fail-delete.js | Github Open Source | Open Source | CC-BY-4.0, BSD-3-Clause | null | react | ntabernero | JavaScript | Code | 18 | 39 | var o = { p : 1 };
delete o.p;
if (o.hasOwnProperty('p')) {
throw new Error('delete broke');
}
| 21,549 |
https://github.com/comauguste/guslists-web/blob/master/tg/oc-content/themes/patricia/inc.search.php | Github Open Source | Open Source | Apache-2.0 | null | guslists-web | comauguste | PHP | Code | 753 | 3,346 | <?php
//$sQuery = osc_get_preference('keyword_placeholder', 'patricia_theme');
$sQuery = __('Search in', 'patricia') . ' ' . osc_total_active_items() . ' ' . __('listings', 'patricia');
if(osc_count_countries() > 1) { $show_country = true; } else { $show_country = false; }
?>
<div class="scroller">
<form act... | 19,343 |
https://github.com/0xf1sh/CyanoPSP/blob/master/game.h | Github Open Source | Open Source | BSD-3-Clause, MIT | 2,015 | CyanoPSP | 0xf1sh | C | Code | 2 | 7 | int gamemenu();
| 53,687 |
https://github.com/jbrneto/pwa-broadcast/blob/master/api/controllers/UserController.js | Github Open Source | Open Source | MIT | null | pwa-broadcast | jbrneto | JavaScript | Code | 251 | 905 | 'use strict';
var mongoose = require('mongoose');
var crypto = require('crypto');
require('../models/UserSchema');
var User = mongoose.model('User');
exports._getAll = _getAll; // Get all users without manipulate response
exports.getAll = getAll;
exports.getUser = getUser;
exports.getUserLogin = getUserLogin;
exports... | 36,840 |
https://github.com/husainattar/tools/blob/master/Test/org/spdx/rdfparser/model/TestSpdxSnippet.java | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-unknown-license-reference, BSD-3-Clause, EPL-1.0, LGPL-2.1-or-later, EPL-2.0, MIT, JSON, LGPL-2.1-only, X11, Apache-1.1, MPL-1.0 | 2,020 | tools | husainattar | Java | Code | 1,399 | 7,412 | /**
* Copyright (c) 2016 Source Auditor 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 appli... | 28,109 |
https://github.com/DaybetLee/mbn-api/blob/master/routes/userAuth.js | Github Open Source | Open Source | MIT | null | mbn-api | DaybetLee | JavaScript | Code | 107 | 333 | const express = require("express");
const router = express.Router();
const { User } = require("../models/user");
const Joi = require("joi");
const bcrypt = require("bcrypt");
const validate = (body) => {
const schema = Joi.object({
email: Joi.string()
.email({ minDomainSegments: 2, tlds: { allow: ["com", ... | 46,857 |
https://github.com/subapp/sql/blob/master/src/Syntax/ProcessorSetupInterface.php | Github Open Source | Open Source | MIT | null | sql | subapp | PHP | Code | 25 | 75 | <?php
namespace Subapp\Sql\Syntax;
/**
* Interface ParserSetupInterface
* @package Subapp\Sql\Syntax
*/
interface ProcessorSetupInterface
{
/**
* @param ProcessorInterface $processor
*/
public function setup(ProcessorInterface $processor);
} | 8,461 |
https://github.com/adorsys/cryptoutils/blob/master/encobject/src/test/java/org/adorsys/encobject/service/ByteRangeTest.java | Github Open Source | Open Source | Apache-2.0 | 2,019 | cryptoutils | adorsys | Java | Code | 72 | 228 | package org.adorsys.encobject.service;
import org.junit.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* Created by peter on 06.03.18 at 15:25.
*/
public class ByteRangeTest {
private final static Logger LOGGER = LoggerFactory.getLogger(ByteRangeTest.class);
@Test
public void byteRa... | 22,681 |
https://github.com/acinader/roku-delete-registry/blob/master/source/main.brs | Github Open Source | Open Source | MIT | null | roku-delete-registry | acinader | null | Spoken | 891 | 1,986 | Sub Main ()
displayMainUI ()
End Sub
'
' UI component for the top-level menu
'
Function displayMainUI () As Void
contentList = [
{ShortDescriptionLine1: "Dump the whole registry"},
{ShortDescriptionLine1: "Wipe the whole registry"},
{ShortDescriptionLine1: "Delete an individual section"... | 27,078 |
https://github.com/rambocai/BaiSi-Emon/blob/master/ZYBS/ZYBS/Classes/Essence/View/ZYRecommendTagCell.h | Github Open Source | Open Source | MIT | null | BaiSi-Emon | rambocai | C | Code | 38 | 128 | //
// ZYRecommendTagCell.h
// ZYBS
//
// Created by 竹雨 on 2017/7/13.
// Copyright © 2017年 竹雨. All rights reserved.
//
#import <UIKit/UIKit.h>
@class ZYRecommendTag;
@interface ZYRecommendTagCell : UITableViewCell
/** 标签 */
@property (nonatomic, strong) ZYRecommendTag *recommendTag;
@end
| 23,303 |
https://github.com/jeremyciak/xRemoteDesktopSessionHost/blob/master/tests/Unit/xRemoteDesktopSessionHost.tests.ps1 | Github Open Source | Open Source | MIT | 2,020 | xRemoteDesktopSessionHost | jeremyciak | PowerShell | Code | 143 | 488 | function Invoke-TestSetup
{
try
{
Import-Module -Name DscResource.Test -Force
}
catch [System.IO.FileNotFoundException]
{
throw 'DscResource.Test module dependency not found. Please run ".\build.ps1 -Tasks build" first.'
}
}
function Invoke-TestCleanup
{
}
Invoke-TestSetup
tr... | 51,420 |
https://github.com/shoutem/extensions/blob/master/shoutem.web-view/app/redux/actions.js | Github Open Source | Open Source | BSD-3-Clause | 2,023 | extensions | shoutem | JavaScript | Code | 91 | 290 | import { openInModal } from 'shoutem.navigation';
import { ext } from '../const';
export const OPEN_EXTERNAL_BROWSER = 'OPEN_EXTERNAL_BROWSER';
function openExternalBrowserActionCreator(url) {
return {
type: OPEN_EXTERNAL_BROWSER,
url,
};
}
// Shoutem specified actions
export function openURL(
url,
t... | 31,942 |
https://github.com/tspike/outlander-osx/blob/master/src/Outlander/Alias.h | Github Open Source | Open Source | MIT | 2,020 | outlander-osx | tspike | C | Code | 38 | 93 | //
// Alias.h
// Outlander
//
// Created by Joseph McBride on 5/22/14.
// Copyright (c) 2014 Joe McBride. All rights reserved.
//
@interface Alias : NSObject
@property (nonatomic, copy) NSString *pattern;
@property (nonatomic, copy) NSString *replace;
@end
| 11,613 |
https://github.com/SieGeL2k16/db_oci8/blob/master/tests/ddl_test.php | Github Open Source | Open Source | BSD-3-Clause | null | db_oci8 | SieGeL2k16 | PHP | Code | 85 | 311 | <?php
/*
* TEst case for DDL commands
*/
$sql = array();
$sql[0]=<<<SQL
CREATE TABLE DDL_TEST
(
ID NUMBER(38) NOT NULL
)
SQL;
$sql[1]=<<<SQL
create sequence seq_ddl_test start with 10000 increment by 1 nomaxvalue
SQL;
$sql[2]=<<<SQL
CREATE OR REPLACE TRIGGER TR_DDL_TEST
BEFORE INSERT ON DDL_TEST
FOR EA... | 23,983 |
https://github.com/i-gaven/Just_a_dumper/blob/master/all_headers/QQ邮箱-5.4.2(越狱应用)_headers/FMWeiyunTransferViewController.h | Github Open Source | Open Source | MIT | 2,018 | Just_a_dumper | i-gaven | Objective-C | Code | 202 | 820 | //
// Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 17 2017 16:24:48).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by Steve Nygard.
//
#import "FMCommonViewController.h"
#import "FMWeiyunFileViewDelegate-Protocol.h"
@class FMAttachInfo, FMCommonFile, FMFtnFile, FMWeiY... | 11,570 |
https://github.com/Shisunlel/mlm/blob/master/Modules/Ecommerce/Resources/views/templates/basic/cart.blade.php | Github Open Source | Open Source | MIT | null | mlm | Shisunlel | PHP | Code | 569 | 3,015 | @extends('ecommerce::'.activeTemplate() .'layouts.master')
@section('content')
<!-- cart-section start -->
<div class="cart-section padding-bottom padding-top">
<div class="container">
@if($data->count()>0)
<table class="order-list-table table cart-table m-0">
<th... | 40,241 |
https://github.com/wvuRc2/rc2rest/blob/master/src/main/java/edu/wvu/stat/rc2/ws/request/ExecuteRequest.java | Github Open Source | Open Source | ISC | 2,016 | rc2rest | wvuRc2 | Java | Code | 87 | 272 | package edu.wvu.stat.rc2.ws.request;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
public class ExecuteRequest extends BaseRequest {
private final String _code;
private final String _type;
private final int _fileId;
@JsonCreator
public ExecuteRequest... | 6,127 |
https://github.com/ethanjli/linear-position-control/blob/master/src/Control/AbsoluteLinearPosition.h | Github Open Source | Open Source | BSD-3-Clause | null | linear-position-control | ethanjli | C | Code | 23 | 105 | #ifndef LPC_Control_AbsoluteLinearPosition_h
#define LPC_Control_AbsoluteLinearPosition_h
#include "Components/Motors.h"
#include "Components/AnalogSensor.h"
#include "LinearPosition.h"
namespace LinearPositionControl { namespace Control {
using AbsoluteLinearActuator = LinearActuator<Components::AnalogSensor>;
} }... | 50,268 |
https://github.com/einarsn/px4_firmware/blob/master/build_px4fmu-v2_default/src/modules/land_detector/CMakeFiles/modules__land_detector.dir/cmake_clean.cmake | Github Open Source | Open Source | BSD-3-Clause | null | px4_firmware | einarsn | CMake | Code | 20 | 197 | file(REMOVE_RECURSE
"CMakeFiles/modules__land_detector.dir/land_detector_main.cpp.obj"
"CMakeFiles/modules__land_detector.dir/LandDetector.cpp.obj"
"CMakeFiles/modules__land_detector.dir/MulticopterLandDetector.cpp.obj"
"CMakeFiles/modules__land_detector.dir/FixedwingLandDetector.cpp.obj"
"libmodules__land_de... | 13,312 |
https://github.com/htcondor/htcondor/blob/master/src/condor_utils/submit_utils.cpp | Github Open Source | Open Source | Apache-2.0 | 2,023 | htcondor | htcondor | C++ | Code | 20,000 | 58,924 | /*************************************************************** * * Copyright (C) 1990-2016, Condor Team, Computer Sciences Department, * University of Wisconsin-Madison, WI. * * Licensed under the Apache License, Version 2.0 (the "License"); you * may not use this file except in compliance with the License. You may *... | 10,136 |
https://github.com/ScalablyTyped/SlinkyTyped/blob/master/d/dom-mediacapture-record/src/main/scala/typingsSlinky/domMediacaptureRecord/global.scala | Github Open Source | Open Source | MIT | 2,021 | SlinkyTyped | ScalablyTyped | Scala | Code | 92 | 379 | package typingsSlinky.domMediacaptureRecord
import org.scalajs.dom.experimental.mediastream.MediaStream
import org.scalablytyped.runtime.StObject
import scala.scalajs.js
import scala.scalajs.js.`|`
import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess}
object global {
@JS... | 46,562 |
https://github.com/metadatacenter/cedar-admin-tool/blob/master/src/main/java/org/metadatacenter/admin/CedarAdmin.java | Github Open Source | Open Source | BSD-2-Clause | 2,023 | cedar-admin-tool | metadatacenter | Java | Code | 258 | 1,055 | package org.metadatacenter.admin;
import org.metadatacenter.admin.task.ICedarAdminTask;
import org.metadatacenter.admin.util.AdminOutput;
import org.metadatacenter.admin.util.Color;
import org.metadatacenter.admin.util.TaskExecutor;
import org.metadatacenter.admin.util.TaskRegistry;
import org.metadatacenter.bridge.Ce... | 53,055 |
https://github.com/koendeschacht/bow-distributed/blob/master/src/main/java/be/bagofwords/distributed/computingClient/LoadedClassResource.java | Github Open Source | Open Source | MIT | null | bow-distributed | koendeschacht | Java | Code | 73 | 217 | package be.bagofwords.distributed.computingClient;
import org.springframework.core.io.AbstractResource;
import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.io.InputStream;
public class LoadedClassResource extends AbstractResource {
private String name;
private byte[] data;
publ... | 14,436 |
https://github.com/rakib119/welkinmoon/blob/master/resources/views/auth/login.blade.php | Github Open Source | Open Source | MIT | null | welkinmoon | rakib119 | PHP | Code | 205 | 904 | @extends('layouts.fontend')
@section('main_content')
<section style="margin-top: 100px">
<div class="w-100 pt-130 pb-70 position-relative">
<div class="fixed-bg back-size-cont bg-norepeate"
style="background-image: url(assets/images/bg-shp-10.png);"></div>
<div class="particles-wrap ... | 9,376 |
https://github.com/Difegue/shaftboy/blob/master/src/Animation/Frame.cpp | Github Open Source | Open Source | WTFPL | 2,014 | shaftboy | Difegue | C++ | Code | 89 | 338 | #include "Frame.hpp"
// Par défaut
Frame::Frame(const sf::Color& NewColor)
{
Texture.create(0,0);
Color = NewColor;
}
// Par copie
Frame::Frame(const Frame& Cpy)
{
Texture = Cpy.Texture;
Rect = Cpy.Rect;
Color = Cpy.Color;
}
// Image et Rect
Frame::Frame(sf::Image* NewImage, const sf::Rect<int... | 42,988 |
https://github.com/Mr0grog/covid-vaccine-spotter/blob/master/website/components/News.vue | Github Open Source | Open Source | MIT | 2,021 | covid-vaccine-spotter | Mr0grog | Vue | Code | 173 | 668 | <template>
<div>
<div
v-show="newsVisible"
class="alert alert-info alert-dismissible"
role="alert"
>
<p class="mb-0">
<strong>{{ formattedDate }}:</strong>
<!-- eslint-disable vue/no-v-html -->
<span
v-html="
$t(
'Thanks to th... | 41,486 |
https://github.com/gradyblue/War-Worlds-/blob/master/server/src/main/java/au/com/codeka/warworlds/server/world/AccountManager.java | Github Open Source | Open Source | MIT | null | War-Worlds- | gradyblue | Java | Code | 279 | 1,181 | package au.com.codeka.warworlds.server.world;
import com.google.common.collect.ImmutableMap;
import org.simplejavamail.email.Email;
import java.io.File;
import java.util.HashMap;
import java.util.Map;
import javax.annotation.Nullable;
import javax.mail.Message;
import au.com.codeka.carrot.CarrotEngine;
import au.c... | 54,217 |
https://github.com/truongns/node-alertnotification/blob/master/test/index.test.js | Github Open Source | Open Source | MIT | 2,019 | node-alertnotification | truongns | JavaScript | Code | 262 | 952 | const dotenv = require('dotenv').config();
const MsTeamsMessageCard = require('../lib/ms_teams');
const fs = require('fs')
const path = require('path')
jest.mock('../lib/ms_teams');
const EmailMessage = require('../lib/email');
jest.mock('../lib/email')
const Notify = require('../index')
beforeEach(() => {
MsTea... | 45,138 |
https://github.com/Suyono-Sutiman/ostar/blob/master/src/components/layout.js | Github Open Source | Open Source | RSA-MD | null | ostar | Suyono-Sutiman | JavaScript | Code | 105 | 327 | import React from "react"
import PropTypes from "prop-types"
import { useStaticQuery, graphql } from "gatsby"
import 'bootstrap/dist/css/bootstrap.min.css';
import Header from "./header"
import "./layout.css"
import Footer from "./footer";
import Contact from './contact'
import ostar from '../images/Ostar.svg'
const L... | 17,521 |
https://github.com/jiadong-deng/UChart/blob/master/UChart/Assets/UChart/Resources/Shaders/VertexLit.shader | Github Open Source | Open Source | MIT | 2,019 | UChart | jiadong-deng | null | Spoken | 70 | 234 |
Shader "UChart/Vertex/VertexLit(Basic)"
{
Properties
{
}
SubShader
{
Tags{"RenderType"="Opaque"}
Pass
{
CGPROGRAM
#pragma vertex vert
#pragma fragment frag
struct a2v
{
float4 vertex : POSITION;... | 35,276 |
https://github.com/tshion/mklog/blob/master/Viewer/src/app/pages/top-pc/top-pc.page.scss | Github Open Source | Open Source | MIT | null | mklog | tshion | SCSS | Code | 36 | 105 | * {
cursor: inherit;
}
.launcher {
height: 80px;
margin: 8px;
width: 80px;
}
.loading {
cursor: progress !important;
}
.modal {
overflow: auto;
position: absolute;
resize: both;
}
#toppc {
height: 100%;
width: 100%;
}
| 20,299 |
https://github.com/3rdvision/ripe-sdk/blob/master/src/js/api/index.js | Github Open Source | Open Source | Apache-2.0 | null | ripe-sdk | 3rdvision | JavaScript | Code | 132 | 491 | const account = require("./account");
const attachment = require("./attachment");
const availabilityRule = require("./availability-rule");
const brand = require("./brand");
const build = require("./build");
const bulkOrder = require("./bulk-order");
const config = require("./config");
const countryGroup = require("./co... | 15,782 |
https://github.com/Spoony1337/OrbitHCF/blob/master/src/main/java/rip/orbit/hcteams/ability/items/Thorns.java | Github Open Source | Open Source | CC0-1.0 | 2,022 | OrbitHCF | Spoony1337 | Java | Code | 418 | 1,511 | package rip.orbit.hcteams.ability.items;
import org.bukkit.Bukkit;
import org.bukkit.Location;
import org.bukkit.Material;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.entity.EntityDamageByEntityEvent;
import org.bukkit.event.player.PlayerInteractEvent;
import org.bukk... | 23,281 |
https://github.com/Talamantez/canopy-node-client/blob/master/test/test.js | Github Open Source | Open Source | Apache-2.0 | 2,015 | canopy-node-client | Talamantez | JavaScript | Code | 48 | 158 | var assert = require('chai').assert;
var expect = require('chai').expect;
var chai = require('chai');
var http = require('http');
var canopy = require('../canopy');
// Test initClient
suite("init", function(){
var humanClient = {
"auth-username": 'banana',
"auth-password": 'tacos'
}
test("Initialize Cli... | 5,871 |
https://github.com/vobizzz/framework/blob/master/shared/Auth/Console/ClearRemindersCommand.php | Github Open Source | Open Source | MIT | 2,021 | framework | vobizzz | PHP | Code | 100 | 299 | <?php
namespace Shared\Auth\Console;
use Nova\Console\Command;
use Symfony\Component\Console\Input\InputArgument;
class ClearRemindersCommand extends Command
{
/**
* The console command name.
*
* @var string
*/
protected $name = 'auth:clear-reminders';
/**
* The console comman... | 9,055 |
https://github.com/jattenberg/parallax/blob/master/src/main/java/com/dsi/parallax/ml/classifier/bayes/NaiveBayesBuilder.java | Github Open Source | Open Source | FSFAP | null | parallax | jattenberg | Java | Code | 660 | 2,444 | package com.dsi.parallax.ml.classifier.bayes;
import com.dsi.parallax.ml.classifier.Classifiers;
import com.dsi.parallax.ml.classifier.UpdateableClassifierBuilder;
import com.dsi.parallax.ml.distributions.DistributionConfigurableBuilder;
import com.dsi.parallax.ml.util.bounds.GreaterThanValueBound;
import com.dsi.para... | 29,840 |
https://github.com/ihmcrobotics/euclid/blob/master/src/main/java/us/ihmc/euclid/yawPitchRoll/interfaces/YawPitchRollBasics.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | euclid | ihmcrobotics | Java | Code | 1,414 | 4,232 | package us.ihmc.euclid.yawPitchRoll.interfaces;
import us.ihmc.euclid.orientation.interfaces.Orientation3DBasics;
import us.ihmc.euclid.orientation.interfaces.Orientation3DReadOnly;
import us.ihmc.euclid.rotationConversion.YawPitchRollConversion;
import us.ihmc.euclid.tools.EuclidCoreTools;
import us.ihmc.euclid.tools... | 34,924 |
https://github.com/mixi9527/bdxdoctor/blob/master/application/admin/model/OutpatientOrder.php | Github Open Source | Open Source | Apache-2.0 | 2,018 | bdxdoctor | mixi9527 | PHP | Code | 26 | 68 | <?php
/**
* Created by PhpStorm.
* User: momo
* Date: 2018/5/2
* Time: 17:08
*/
namespace app\admin\model;
use think\Model;
class OutpatientOrder extends Model
{
} | 32,508 |
https://github.com/gfis/joeis-lite/blob/master/internal/fischer/mangf/A152038.java | Github Open Source | Open Source | Apache-2.0 | 2,023 | joeis-lite | gfis | Java | Code | 53 | 159 | package irvine.oeis.a152;
// Generated by gen_seq4.pl rootet at 2023-02-21 22:24
import irvine.oeis.SkipSequence;
import irvine.oeis.a039.A039599;
import irvine.oeis.transform.RootSequence;
/**
* A152038 Convolution of A039599 with itself .
* @author Georg Fischer
*/
public class A152038 extends RootSequence {
... | 10,281 |
https://github.com/mattdailis/aerie/blob/master/merlin-framework/src/main/java/gov/nasa/jpl/aerie/merlin/framework/RootModel.java | Github Open Source | Open Source | MIT | null | aerie | mattdailis | Java | Code | 119 | 279 | package gov.nasa.jpl.aerie.merlin.framework;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
/**
* The top-level mission model managed by the Merlin framework.
*/
public record RootModel<Model>(Model model, ExecutorService executor) implements AutoCloseable {
public RootModel {... | 27,256 |
https://github.com/javier-nogales/nodeAPIBaseTS/blob/master/src/endpoint/login/ApiRestLoginRouter.ts | Github Open Source | Open Source | MIT | null | nodeAPIBaseTS | javier-nogales | TypeScript | Code | 116 | 382 | import ApiRestRouterBase from "../../router/ApiRestRouterBase";
import { NextFunction, Request, Response } from 'express';
import { ApiRestRouterConfig } from "../../router/ApiRestRouterConfig";
import Login from "./Login";
import ApiRestLoginController from "./ApiRestLoginController";
import ErrorHandler from "../../c... | 7,734 |
https://github.com/visual-cortex/imgstry/blob/master/source/platform/browser/spline/spline.theme.ts | Github Open Source | Open Source | MIT | 2,023 | imgstry | visual-cortex | TypeScript | Code | 51 | 171 | import { Theme } from '~/platform/browser/theme';
export const splineTheme = (theme: Theme) => {
switch (theme) {
case Theme.Dark:
return {
gridLine: '#485460',
anchor: {
idle: '#05c46b',
hovered: '#4bcffa',
... | 32,860 |
https://github.com/osvaldosneto/Engenharia-Telecom/blob/master/PSD/Codigos/AE4/parametros.m | Github Open Source | Open Source | MIT | 2,020 | Engenharia-Telecom | osvaldosneto | MATLAB | Code | 34 | 80 | %parametros
fa = 8000 %frequencia de amostragem
Ta = 1/fa %tempo de amostragem
spf = 1 %amostras por frame
v1 = 0.2 %amplitude seno
f1 = 500 %frequencia seno
G = 0.05 %ganho
fonte=1 | 31,905 |
https://github.com/django/django/blob/master/django/contrib/gis/geos/io.py | Github Open Source | Open Source | LicenseRef-scancode-other-copyleft, LicenseRef-scancode-unknown-license-reference, BSD-3-Clause, GPL-1.0-or-later, Python-2.0.1, LicenseRef-scancode-free-unknown, LicenseRef-scancode-other-permissive, Python-2.0 | 2,023 | django | django | Python | Code | 82 | 252 | """
Module that holds classes for performing I/O operations on GEOS geometry
objects. Specifically, this has Python implementations of WKB/WKT
reader and writer classes.
"""
from django.contrib.gis.geos.geometry import GEOSGeometry
from django.contrib.gis.geos.prototypes.io import (
WKBWriter,
WKTWriter,
_... | 44,055 |
https://github.com/shadowmoose/Soundboard/blob/master/src/org/ui/ControlPanel.java | Github Open Source | Open Source | MIT | 2,020 | Soundboard | shadowmoose | Java | Code | 509 | 2,106 | package org.ui;
import java.awt.Color;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import java.awt.event.MouseWheelEvent;
import java.awt.event.MouseWheelListener;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
im... | 32,328 |
https://github.com/hiaux0/coding-3/blob/master/client/src/components/features/jumpable/jumpable.less | Github Open Source | Open Source | MIT | null | coding-3 | hiaux0 | Less | Code | 46 | 185 | @import (reference) '~styles/colors.less';
@jumpMarkBackground: #3C434A;
@jumpMarkColor: #775a5a;
.jumpable {
&:before {
.jump-mark();
}
}
.jump-mark() {
content: attr(data-jump-mark-value);
background: @jumpMarkBackground;
border-radius: 3px;
color: @jumpMarkColor;
font: 18px Arial;
padding: 0... | 16,190 |
https://github.com/scala-steward/stakenet-orderbook/blob/master/server/src/test/scala/io/stakenet/orderbook/models/clients/ClientVersionSpec.scala | Github Open Source | Open Source | Apache-2.0 | null | stakenet-orderbook | scala-steward | Scala | Code | 383 | 1,022 | package io.stakenet.orderbook.models.clients
import org.scalatest.matchers.must.Matchers
import org.scalatest.wordspec.AnyWordSpec
import org.scalatest.OptionValues._
class ClientVersionSpec extends AnyWordSpec with Matchers {
"apply" should {
"return a valid ClientVersion" in {
val version = "0.4.0.4"
... | 54,282 |
https://github.com/tcgdex/cards-database/blob/master/data/Diamond & Pearl/Great Encounters/25.ts | Github Open Source | Open Source | MIT | 2,023 | cards-database | tcgdex | TypeScript | Code | 189 | 542 | import { Card } from '../../../interfaces'
import Set from '../Great Encounters'
const card: Card = {
name: {
en: "Milotic",
fr: "Milobellus",
},
illustrator: "Suwama Chiaki",
rarity: "Rare",
category: "Pokemon",
set: Set,
dexId: [
350,
],
hp: 90,
types: [
"Water",
],
evolveFrom: {
en: "Feebas",... | 40,970 |
https://github.com/Sotera/genie-ui/blob/master/client/app/js/modules/common/directives/animate-marker-directive.js | Github Open Source | Open Source | MIT | 2,016 | genie-ui | Sotera | JavaScript | Code | 110 | 320 | 'use strict';
angular.module('genie.common')
// click element to show info window. optionally animate related marker.
.directive('animateMarker', ['MarkersService', '$timeout',
function(MarkersService, $timeout) {
return {
link: link
};
function link(scope, elem, attrs) {
elem.click(function() {
... | 37,961 |
https://github.com/tatuco/api-control-de-acceso/blob/master/app/Acl/src/Models/PermissionRole.php | Github Open Source | Open Source | MIT | null | api-control-de-acceso | tatuco | PHP | Code | 30 | 94 | <?php
namespace App\Acl\Src\Models;
use Illuminate\Database\Eloquent\Model;
class PermissionRole extends Model
{
protected $table ="permission_role";
protected $fillable = [
//mapeo de columnas de la base de datos
'id', 'permission_id', 'role_id'
];
}
| 35,261 |
https://github.com/sergeygutovskiy/meriyan.ru/blob/master/resources/views/pages/search.blade.php | Github Open Source | Open Source | MIT | 2,021 | meriyan.ru | sergeygutovskiy | Blade | Code | 386 | 2,016 | @extends('layouts.app')
@section('title', 'Поиск - МериЯн')
@section('head')
<link rel="stylesheet" href="css/pages/search.css">
@endsection
@section('content')
<div class="u-page-background u-page-background-top offset_3">
<picture class="u-page-background__image">
<source
... | 49,435 |
https://github.com/ismailezzaki96/ismailezzaki96.github.io/blob/master/work/scripts/py.py | Github Open Source | Open Source | 2,023 | ismailezzaki96.github.io | ismailezzaki96 | Python | Code | 30 | 97 | import numpy as np
import matplotlib as plt
vector = (1,3,4,5,6)
results = ()
for n in range(0,len(vector)):
somme = 0
for m in range(0,len(vector)):
somme += pow((vector(n)-vector(n+m))/2,2)
results.append(-somme)
plt.plot(results) | 1,905 | |
https://github.com/SAP/fundamental-vue/blob/master/ci-scripts/publish.sh | Github Open Source | Open Source | Apache-2.0 | 2,022 | fundamental-vue | SAP | Shell | Code | 93 | 293 | #! /bin/bash
set -e
git config --global user.email "fundamental@sap.com"
git config --global user.name "fundamental-bot"
# delete temp branch
git push "https://$GH_TOKEN@github.com/$TRAVIS_REPO_SLUG" ":$TRAVIS_BRANCH" > /dev/null 2>&1;
std_ver=$(yarn std-version)
release_tag=$(echo "$std_ver" | grep "tagging relea... | 34,419 |
https://github.com/Fernuko/SGM/blob/master/resources/views/mediaciones/show.blade.php | Github Open Source | Open Source | MIT | 2,021 | SGM | Fernuko | PHP | Code | 6 | 35 | @extends('layouts.app')
@section('content')
{{ $mediacion['tipoCierre'] }}
@endsection
| 39,114 |
https://github.com/dilipptdr/iOSMaterealDesign/blob/master/MaterialDesigniOS/MaterialDesigniOS/ViewController.h | Github Open Source | Open Source | Apache-2.0 | null | iOSMaterealDesign | dilipptdr | C | Code | 49 | 153 | //
// ViewController.h
//
//
// Created by Dilip Patidar on 26/07/16.
// Copyright © 2016 Dilip Patidar. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "CustomView.h"
@interface ViewController : UIViewController<CustomViewDelegate>
@property (weak, nonatomic) IBOutlet CustomView *lowerView;
@property (... | 9,207 |
https://github.com/zkdtc/employee_managment/blob/master/lib/Employee.js | Github Open Source | Open Source | Unlicense | null | employee_managment | zkdtc | JavaScript | Code | 57 | 187 | class Employee {
constructor(...args) {
console.log(args);
this.name = args[0];
if (args.length>1) {
this.id = args[1];
}
else {
this.id = -999;
}
if (args.length>2) {
this.email = args[2];
}
else {
this.email = "";
}
... | 2,934 |
https://github.com/lengstrom/CaptionTime/blob/master/get_song_info.py | Github Open Source | Open Source | MIT | 2,018 | CaptionTime | lengstrom | Python | Code | 44 | 294 | import sys,json,requests,pdb, xml2json
_, SONG_ID,SONG_TITLE,SONG_ARTIST,SONG_IMG,GOOGLE_API_KEY = sys.argv
caption_candidates = json.loads(requests.get("https://www.googleapis.com/youtube/v3/captions/?part=snippet&videoId=%s&key=%s"%(SONG_ID,GOOGLE_API_KEY)).text)['items']
song_info = {
'title':SONG_TITLE,
'... | 12,317 |
https://github.com/dgolden1/qil-parp/blob/master/parp/old/register_image_cp.m | Github Open Source | Open Source | MIT | 2,015 | qil-parp | dgolden1 | MATLAB | Code | 310 | 826 | function [moving_registered, cp, tform] = register_image_cp(moving, fixed, varargin)
% Register one image with respect to a second image using manually-selected
% control points
%
% INPUTS
% moving: the image to transform
% fixed: the reference image
%
% PARAMETERS
% cp: control point struct with fields 'xyinput_out'... | 29,545 |
https://github.com/ponsfrilus/jahia2wp/blob/master/build/mgmt/Dockerfile | Github Open Source | Open Source | MIT | 2,018 | jahia2wp | ponsfrilus | Dockerfile | Code | 262 | 1,009 | FROM debian:stretch
RUN apt-get update && apt-get install -y --no-install-recommends \
bash-completion \
curl \
git \
htop \
less \
make \
mysql-client \
openssh-server \
tree \
php7.0 \
php7.0-gd \
php7.0-cli \
php7.0-curl \
php7.0-mysql \
php7.0-zip \
p... | 7,698 |
https://github.com/annaign/Test/blob/master/webpack.config.js | Github Open Source | Open Source | MIT | null | Test | annaign | JavaScript | Code | 243 | 932 | 'use strict';
const path = require('path');
const webpack = require('webpack');
const CleanWebpackPlugin = require('clean-webpack-plugin');
const HtmlWebPackPlugin = require('html-webpack-plugin');
const ExtractTextPlugin = require('extract-text-webpack-plugin');
const autoprefixer = require('autoprefixer');
const sty... | 27,757 |
https://github.com/LeonidLyalin/vova/blob/master/common/humhub/protected/humhub/modules/tour/messages/zh_cn/widgets_views_guide_administration.php | Github Open Source | Open Source | BSD-3-Clause | null | vova | LeonidLyalin | PHP | Code | 271 | 694 | <?php
/**
* Message translations.
*
* This file is automatically generated by 'yiic message' command.
* It contains the localizable messages extracted from source code.
* You may modify this file by translating the extracted messages.
*
* Each array element represents the translation (value) of a message (key).
... | 15,366 |
https://github.com/onigetoc/bootapps/blob/master/js/utile.js | Github Open Source | Open Source | Apache-2.0, MIT | 2,014 | bootapps | onigetoc | JavaScript | Code | 35 | 159 | $( "#changeStyle a" ).bind('click', function(e) {
e.preventDefault();
//$(this).toggleClass("active");
var styleurl = $(this).data("url");
//alert(styleurl);
//$('link[href="'+styleurl+'"]').attr('href',styleurl);
$("link:first").attr("href", styleurl);
// find a way to set carousel item color
setTimeout(func... | 41,682 |
https://github.com/YuriyOreshkin/MailSender/blob/master/MailSender.UI.Web/Views/Settings/Index.cshtml | Github Open Source | Open Source | Apache-2.0 | null | MailSender | YuriyOreshkin | C# | Code | 21 | 151 |
@{
ViewBag.Title = "Настройки";
}
@(Html.Kendo().TabStrip()
.Name("settingsTabStrip")
.TabPosition(TabStripTabPosition.Top)
.Items(items =>
{
items.Add().Text("Настройка почты").Selected... | 23,791 |
https://github.com/prusov/umi.framework-dev/blob/master/library/rss/IRssItem.php | Github Open Source | Open Source | BSD-3-Clause | 2,016 | umi.framework-dev | prusov | PHP | Code | 159 | 480 | <?php
/**
* UMI.Framework (http://umi-framework.ru/)
*
* @link http://github.com/Umisoft/framework for the canonical source repository
* @copyright Copyright (c) 2007-2013 Umisoft ltd. (http://umisoft.ru/)
* @license http://umi-framework.ru/license/bsd-3 BSD-3 License
*/
namespace umi\rss;
use DateTime;
... | 43,041 |
https://github.com/ServiceGovernance/ServiceGovernance.Registry.EntityFramework/blob/master/ServiceGovernance.Registry.EntityFramework.sln | Github Open Source | Open Source | Apache-2.0 | 2,018 | ServiceGovernance.Registry.EntityFramework | ServiceGovernance | null | Spoken | 173 | 1,441 |
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.28107.0
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ServiceGovernance.Registry.EntityFramework", "src\ServiceGovernance.Registry.EntityFramework\ServiceGovernanc... | 17,807 |
https://github.com/andrasigneczi/TravelOptimizer/blob/master/DataCollector/mozilla/xulrunner-sdk/include/mozilla/dom/MediaStreamBinding.h | Github Open Source | Open Source | Apache-2.0 | 2,018 | TravelOptimizer | andrasigneczi | C++ | Code | 800 | 2,981 | /* THIS FILE IS AUTOGENERATED FROM MediaStream.webidl BY Codegen.py - DO NOT EDIT */
#ifndef mozilla_dom_MediaStreamBinding_h
#define mozilla_dom_MediaStreamBinding_h
#include "MediaStreamTrackBinding.h"
#include "js/RootingAPI.h"
#include "jspubtd.h"
#include "mozilla/ErrorResult.h"
#include "mozilla/dom/BindingDecl... | 29,093 |
https://github.com/Acidburn0zzz/travis-web/blob/master/assets/scripts/app/templates/repos/list/tabs.hbs | Github Open Source | Open Source | MIT | null | travis-web | Acidburn0zzz | null | Spoken | 45 | 252 | <ul class="tabs">
<li id="tab_owned" {{bind-attr class="view.classOwned"}}>
<h5><a {{action "activate" "owned" target="view"}}>My Repositories</a></h5>
</li>
<li id="tab_recent" {{bind-attr class="view.classRecent"}}>
<h5><a {{action "activate" "recent" target="view"}}>Recent</a></h5>
</li>
<li id="... | 31,468 |
https://github.com/Mgazul/ForestryMC-mc-1.12/blob/master/src/main/java/forestry/api/arboriculture/ICharcoalPileWall.java | Github Open Source | Open Source | MIT | 2,018 | ForestryMC-mc-1.12 | Mgazul | Java | Code | 49 | 173 | /*******************************************************************************
* Copyright 2011-2014 SirSengir
*
* This work (the API) is licensed under the "MIT" License, see LICENSE.txt for details.
******************************************************************************/
package forestry.api.arboricultur... | 11,789 |
https://github.com/Danack/FirstClassForms/blob/master/src/FCForms/FormElement/Text.php | Github Open Source | Open Source | MIT | null | FirstClassForms | Danack | PHP | Code | 38 | 112 | <?php
namespace FCForms\FormElement;
use FCForms\Form\Form;
class Text extends ElementPrototype
{
/**
* @param array $info
* @return mixed|void
*/
public function init(array $info)
{
}
/**
* @return string
*/
public function getPrototypeCSSClass()
{
retu... | 32,308 |
https://github.com/abneptis/alarm/blob/master/examples/in_shell.sh | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, BSD-2-Clause | 2,011 | alarm | abneptis | Shell | Code | 101 | 192 | #!/bin/bash
# For those who have used dd, you have probably been annoyed by its tendencies
# to output. Notice the lack of redirectors.
#
# NOTE: Only the second example should produce output
alarm -squelch dd if=/dev/urandom of=/dev/zero bs=1024 count=1
# And if we're doing something that sometimes (or always) fa... | 6,034 |
https://github.com/andrenth/ocaml-stdint/blob/master/lib/int8.h | Github Open Source | Open Source | MIT | 2,022 | ocaml-stdint | andrenth | C | Code | 33 | 142 | #ifndef OCAML_INT8_H
#define OCAML_INT8_H
#ifdef ARCH_SIXTYFOUR
#define Int8_val(x) ((int8_t)(((intnat)(x)) >> 56))
#define Val_int8(x) (((intnat)(x) << 56) + 1)
#else
#define Int8_val(x) ((int8_t)(((intnat)(x)) >> 24))
#define Val_int8(x) (((intnat)(x) << 24) + 1)
#endif
#endif
| 22,121 |
https://github.com/OpenNetworkingFoundation/gmap-ran/blob/master/cmd/honeycomb/honeycomb.go | Github Open Source | Open Source | Apache-2.0 | null | gmap-ran | OpenNetworkingFoundation | Go | Code | 495 | 1,887 | // SPDX-FileCopyrightText: 2020-present Open Networking Foundation <info@opennetworking.org>
//
// SPDX-License-Identifier: Apache-2.0
//
package main
import (
"fmt"
"io/ioutil"
"os"
"strconv"
"github.com/onosproject/onos-api/go/onos/ransim/types"
"github.com/onosproject/ran-simulator/pkg/model"
"github.com/o... | 19,241 |
https://github.com/rhodosaur/jerrycurl-merge1/blob/master/test/unit/src/Extensions/Jerrycurl.Extensions.EntityFrameworkCore.Test/Entities/OrderLine.cs | Github Open Source | Open Source | MIT | 2,021 | jerrycurl-merge1 | rhodosaur | C# | Code | 34 | 74 | namespace Jerrycurl.Extensions.EntityFrameworkCore.Test.Entities
{
public partial class OrderLine : BaseEntity
{
public int OrderId { get; set; }
public string Product { get; set; }
public virtual Order Order { get; set; }
}
}
| 5,091 |
https://github.com/mouchtaris/jleon/blob/master/src/main/scala-2.12/gv/jleon4/package.scala | Github Open Source | Open Source | MIT | 2,017 | jleon | mouchtaris | Scala | Code | 17 | 68 | package gv
package object jleon4 extends AnyRef
with isi.convertible.ConvertiblePackage
with isi.StdAliasesPackage
with isi.std.conversions.ImplicitResolutionOrder.Conversions
with Util
with Imports
| 23,572 |
https://github.com/Udaar/schooltoshare/blob/master/modules/bimmunity/invoice/resources/views/customers/show_fields.blade.php | Github Open Source | Open Source | Apache-2.0 | null | schooltoshare | Udaar | PHP | Code | 28 | 99 | <!-- Name Field -->
<div class="form-group">
{!! Form::label('name', 'Name:') !!}
<p>{!! $customer->name !!}</p>
</div>
<!-- Address Field -->
<div class="form-group">
{!! Form::label('address', 'Address:') !!}
<p>{!! $customer->address !!}</p>
</div>
| 48,475 |
https://github.com/sumy1/SocilaSportz/blob/master/app/src/main/java/com/socialsportz/Activities/Facility/Fragments/ProfileTimingFragment.java | Github Open Source | Open Source | MIT | null | SocilaSportz | sumy1 | Java | Code | 343 | 1,693 | package com.socialsportz.Activities.Facility.Fragments;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.LinearLayout;
import com.socialsp... | 46,875 |
https://github.com/Spirent/openperf/blob/master/src/modules/packetio/drivers/dpdk/secondary/eal_process.cpp | Github Open Source | Open Source | Apache-2.0 | 2,023 | openperf | Spirent | C++ | Code | 49 | 249 | #include "core/op_log.h"
#include "packetio/drivers/dpdk/secondary/eal_process.hpp"
#include "packetio/drivers/dpdk/secondary/physical_port.hpp"
namespace openperf::packetio::dpdk::secondary {
std::optional<port::generic_port> eal_process::get_port(uint16_t port_idx,
... | 15,117 |
https://github.com/kboom/expenses-tracker/blob/master/expenses-tracker-client/src/app/components/ConfirmationDialog/index.ts | Github Open Source | Open Source | MIT | 2,017 | expenses-tracker | kboom | TypeScript | Code | 6 | 17 | export { ConfirmationDialogComponent } from './ConfirmationDialog.component';
| 38,877 |
https://github.com/wmeskens/poly_music_pattern_recognizer/blob/master/src/poly_recognition/Occurrence.java | Github Open Source | Open Source | MIT | null | poly_music_pattern_recognizer | wmeskens | Java | Code | 159 | 562 | package poly_recognition;
import java.util.ArrayList;
import poly_recognition.patterns.Pattern;
public class Occurrence {
private ArrayList<PatternValue> values;
private int staff;
public Occurrence(int staff) {
values = new ArrayList<PatternValue>();
this.staff = staff;
}
public Occurrence(ArrayList<P... | 32,621 |
https://github.com/mellium/xmlstream/blob/master/fmt.go | Github Open Source | Open Source | BSD-2-Clause, BSD-3-Clause | 2,021 | xmlstream | mellium | Go | Code | 444 | 1,065 | // Copyright 2016 The Mellium Contributors.
// Use of this source code is governed by the BSD 2-clause
// license that can be found in the LICENSE file.
package xmlstream
import (
"bytes"
"encoding/xml"
)
// Fmt returns a transformer that indents the given XML stream.
// The default indentation style is to remove ... | 8,065 |
https://github.com/eclipxe13/sat-estado-retenciones-archived/blob/master/src/Exceptions/HttpClientException.php | Github Open Source | Open Source | MIT, LicenseRef-scancode-unknown-license-reference | 2,021 | sat-estado-retenciones-archived | eclipxe13 | PHP | Code | 85 | 261 | <?php
declare(strict_types=1);
namespace PhpCfdi\SatEstadoRetenciones\Exceptions;
use RuntimeException;
use Throwable;
final class HttpClientException extends RuntimeException implements SatEstadoRetencionesException
{
private string $url;
private int $statusCode;
private string $body;
public fun... | 22,903 |
https://github.com/procyon-lotor/design-pattern/blob/master/src/main/java/com/javapatterns/liskov/version2/SmartTest.java | Github Open Source | Open Source | Apache-2.0 | null | design-pattern | procyon-lotor | Java | Code | 28 | 95 | package com.javapatterns.liskov.version2;
public class SmartTest {
public void resize(Rectangle r) {
while (r.getHeight() <= r.getWidth()) {
r.setWidth(r.getWidth() + 1);
}
}
/** @link dependency */
/*#Rectangle lnkRectangle;*/
}
| 7,757 |
https://github.com/satishv/OG-Platform/blob/master/projects/OG-MasterDB/install/db/postgres/patch_33/upgrade-db.sql | Github Open Source | Open Source | Apache-2.0 | 2,012 | OG-Platform | satishv | PLpgSQL | Code | 196 | 633 | ALTER TABLE sec_swap ADD COLUMN receive_floating_rate_type VARCHAR(32);
ALTER TABLE sec_swap ADD COLUMN pay_floating_rate_type VARCHAR(32);
ALTER TABLE sec_swap ADD COLUMN pay_settlement_days INTEGER;
ALTER TABLE sec_swap ADD COLUMN pay_gearing DOUBLE precision;
ALTER TABLE sec_swap ADD COLUMN pay_offset_fixing_id bigi... | 24,998 |
https://github.com/neoneye/loda/blob/master/programs/oeis/077/A077588.asm | Github Open Source | Open Source | Apache-2.0 | 2,022 | loda | neoneye | Assembly | Code | 36 | 206 | ; A077588: Maximum number of regions into which the plane is divided by n triangles.
; 1,2,8,20,38,62,92,128,170,218,272,332,398,470,548,632,722,818,920,1028,1142,1262,1388,1520,1658,1802,1952,2108,2270,2438,2612,2792,2978,3170,3368,3572,3782,3998,4220,4448,4682,4922,5168,5420,5678,5942,6212,6488
sub $3,$0
bin $0,2
mu... | 26,222 |
https://github.com/romascript/breakout26/blob/master/Assets/Script/getUser.cs | Github Open Source | Open Source | Unlicense, MIT | null | breakout26 | romascript | C# | Code | 50 | 166 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class getUser : MonoBehaviour {
string userName = null;
public InputField txtUserName;
public void getUserName()
{
userName = txtUserName.text;
if (userName.Length > 0)
... | 44,750 |
https://github.com/RailsEventStore/rails_event_store/blob/master/contrib/ruby_event_store-protobuf/spec/protobuf_integration_spec.rb | Github Open Source | Open Source | MIT | 2,023 | rails_event_store | RailsEventStore | Ruby | Code | 135 | 690 | require "spec_helper"
require "rails_event_store"
class AsyncProtoHandler < ActiveJob::Base
self.queue_adapter = :inline
cattr_accessor :event_store
def perform(payload)
@@event = self.class.event_store.deserialize(serializer: RubyEventStore::NULL, **payload.transform_keys(&:to_sym))
end
def self.even... | 47,042 |
https://github.com/parzival3/Surelog/blob/master/tests/ImplicitPort/dut.sv | Github Open Source | Open Source | Apache-2.0 | 2,022 | Surelog | parzival3 | null | Spoken | 20 | 42 | module add(
input [31:0] a,b,
output signed [31:0] sum
);
assign sum = a + b ;
endmodule // add
| 52,337 |
https://github.com/luchunn10/kefu/blob/master/application/manager/controller/Index.php | Github Open Source | Open Source | Apache-2.0 | 2,020 | kefu | luchunn10 | PHP | Code | 362 | 2,380 | <?php
namespace app\manager\controller;
use app\admin\model\Admins;
use app\platform\model\Business;
use app\platform\model\Service;
use think\File;
use think\Paginator;
Class Index extends Base
{
Public function index(){
$ftime =date('Y-m-d',time());
$frtime =strtotime($ftime);
$time =time()... | 44,493 |
https://github.com/betiol/typeorm-seeding/blob/master/src/cli.ts | Github Open Source | Open Source | MIT | 2,020 | typeorm-seeding | betiol | TypeScript | Code | 39 | 142 | #!/usr/bin/env nod
import 'reflect-metadata'
import * as yargs from 'yargs'
import { SeedCommand } from './commands/seed.command'
import { ConfigCommand } from './commands/config.command'
// tslint:disable-next-line
yargs
.usage('Usage: $0 <command> [options]')
.command(new ConfigCommand())
.command(new SeedComm... | 43,844 |
https://github.com/kenxmh/docker-laravel-nuxt/blob/master/www/api-server/database/migrations/2020_03_10_143343_create_article_system_table.php | Github Open Source | Open Source | MIT | null | docker-laravel-nuxt | kenxmh | PHP | Code | 104 | 621 | <?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateArticleSystemTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('article',... | 11,807 |
https://github.com/pcardenasITEC-SOFTDEV/ChemQuizGen/blob/master/src/app/models/answer-key.model.ts | Github Open Source | Open Source | MIT | 2,019 | ChemQuizGen | pcardenasITEC-SOFTDEV | TypeScript | Code | 4,493 | 13,025 | import { tick } from "@angular/core/testing";
// Answer key to be used to hold the data inputed by the professors
// and the answers calculated by the application
export class AnswerKey {
// Whether or not the output is displayed
public displayKey: boolean;
// Whether or not to get the solubility data
// T... | 6,312 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.