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/sbd3/bigdata-examples/blob/master/bigdata-java/src/main/java/geeksforgeeks/medium/MoneyDistributions.java | Github Open Source | Open Source | Apache-2.0 | 2,018 | bigdata-examples | sbd3 | Java | Code | 73 | 188 | package geeksforgeeks.medium;
import java.util.Scanner;
public class MoneyDistributions {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int noOfTests = scan.nextInt();
for (int i = 0; i < noOfTests; i++) {
long n = scan.nextInt();
long ... | 50,366 |
https://github.com/Joyesong/mobstac-awesome-qr/blob/master/src/tests/QR-frame.test.ts | Github Open Source | Open Source | Apache-2.0 | 2,022 | mobstac-awesome-qr | Joyesong | TypeScript | Code | 616 | 2,482 | import 'mocha';
import { CanvasType, DataPattern, EyeBallShape, EyeFrameShape, GradientType, QRCodeFrame, QRErrorCorrectLevel } from '../Enums';
import { QRCodeBuilder } from '../index';
import { QRCode } from '../Models';
// tslint:disable-next-line:no-var-requires
const fs = require('fs');
const frameStyle = QRCode... | 36,316 |
https://github.com/ZaqueuCavalcante/Data-Structures/blob/master/Graph/sketch.js | Github Open Source | Open Source | MIT | null | Data-Structures | ZaqueuCavalcante | JavaScript | Code | 63 | 264 | function setup() {
createCanvas(700, 500);
ug = new UndirectedGraph();
ug.addNode("A");
ug.addNode("B");
ug.addNode("C");
ug.addNode("D");
ug.addNode("E");
ug.connectNodes(0, 1, 12);
ug.connectNodes(0, 2, 11);
ug.connectNodes(0, 3, 5);
ug.connectNodes(1, 2, 22);
ug.con... | 8,565 |
https://github.com/fishergj/louyi_ry/blob/master/src/main/java/com/ruoyi/project/venue/order/mapper/OrderMapper.java | Github Open Source | Open Source | MIT | null | louyi_ry | fishergj | Java | Code | 188 | 810 | package com.ruoyi.project.venue.order.mapper;
import java.util.HashMap;
import java.util.List;
import com.ruoyi.project.system.wechat.domain.Comment;
import com.ruoyi.project.venue.order.bo.OrderResultBo;
import com.ruoyi.project.venue.order.domain.Order;
import com.ruoyi.project.venue.order.domain.OrderStastics;
imp... | 34,967 |
https://github.com/ai-ba/tesler-ui/blob/master/src/reducers/data.ts | Github Open Source | Open Source | Apache-2.0 | null | tesler-ui | ai-ba | TypeScript | Code | 235 | 734 | import {AnyAction, types} from '../actions/actions'
import {DataState, DataItem} from '../interfaces/data'
const initialState: DataState = {}
const emptyData: DataItem[] = []
export function view(state = initialState, action: AnyAction) {
switch (action.type) {
case types.bcFetchDataSuccess: {
... | 21,754 |
https://github.com/CodingNav/Easy-Eats-Angular/blob/master/client/src/app/features/recipe-page/recipe-page.component.spec.ts | Github Open Source | Open Source | MIT | null | Easy-Eats-Angular | CodingNav | TypeScript | Code | 55 | 186 | import { ComponentFixture, TestBed } from '@angular/core/testing';
import { RecipePageComponent } from './recipe-page.component';
describe('RecipePageComponent', () => {
let component: RecipePageComponent;
let fixture: ComponentFixture<RecipePageComponent>;
beforeEach(async () => {
await TestBed.configureT... | 20,469 |
https://github.com/magma/magma/blob/master/lte/gateway/release/pydep | Github Open Source | Open Source | BSD-3-Clause | 2,023 | magma | magma | Python | Code | 3,997 | 11,304 | #!/usr/bin/python3
# Copyright 2020 The Magma Authors.
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" B... | 7,569 |
https://github.com/PearsonEducation/apigee-ios-sdk/blob/master/source/Classes/Services/ApigeeSessionMetricsCompiler.h | Github Open Source | Open Source | Apache-2.0 | null | apigee-ios-sdk | PearsonEducation | C | Code | 34 | 121 | //
// ApigeeSessionMetricsCompiler.h
// ApigeeAppMonitor
//
// Copyright (c) 2012 Apigee. All rights reserved.
//
#import "ApigeeSessionMetrics.h"
#import "ApigeeActiveSettings.h"
@interface ApigeeSessionMetricsCompiler : NSObject
+ (ApigeeSessionMetricsCompiler *) systemCompiler;
- (ApigeeSessionMetrics *) comp... | 16,207 |
https://github.com/neverever1533/EvolutionVector/blob/master/src/javaev/io/FileUtils.java | Github Open Source | Open Source | Apache-2.0 | null | EvolutionVector | neverever1533 | Java | Code | 1,018 | 3,060 | package javaev.io;
import java.io.File;
import java.io.FileFilter;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.FilenameFilter;
import java.io.IOException;
import java.nio.charset.Charset;
import java.util.InvalidPropertiesFormatException;
impo... | 35,592 |
https://github.com/zspitz/Periscope.Debuggee/blob/master/VisualizerObjectSourceBase.cs | Github Open Source | Open Source | MIT | null | Periscope.Debuggee | zspitz | C# | Code | 181 | 521 | using Microsoft.VisualStudio.DebuggerVisualizers;
using System;
using System.IO;
namespace Periscope.Debuggee {
public abstract class VisualizerObjectSourceBase<TTarget, TConfig> : VisualizerObjectSource where TConfig : ConfigBase<TConfig> {
private object? value;
public override void GetData(ob... | 18,414 |
https://github.com/yurivish/plot/blob/master/test/marks/link-test.js | Github Open Source | Open Source | 0BSD | 2,021 | plot | yurivish | JavaScript | Code | 211 | 764 | import * as Plot from "@observablehq/plot";
import tape from "tape-await";
tape("link(data, options) has the expected defaults", test => {
const link = Plot.link(undefined, {x1: "0", y1: "1", x2: "2", y2: "3"});
test.strictEqual(link.data, undefined);
test.strictEqual(link.transform, undefined);
test.deepEqual... | 40,708 |
https://github.com/louib/panbuild/blob/master/panbuild/modules.rs | Github Open Source | Open Source | BSD-3-Clause | 2,021 | panbuild | louib | Rust | Code | 523 | 1,507 | use serde::{Deserialize, Serialize};
pub enum OS {
Bsd,
Mac,
Ios,
Linux,
Android,
Symbian,
// Add RT Oses??
// Add misc Oses like calculators and PAs???
}
// TODO Should we allow those systems to be available
// when the generated manifest will be used? We could
// consider optionally ... | 40,971 |
https://github.com/mukasaj/Ex-assemblyline-client/blob/master/test/test_file.py | Github Open Source | Open Source | MIT | 2,022 | Ex-assemblyline-client | mukasaj | Python | Code | 266 | 1,181 | import hashlib
import os
try:
import cart
from utils import random_id_from_collection
except ImportError:
import pytest
import sys
if sys.version_info < (3, 0):
pytestmark = pytest.mark.skip
else:
raise
def test_children(datastore, client):
submission_id = random_id_from_c... | 21,658 |
https://github.com/JGeraldoLima/pos-facisa-nativescript/blob/master/NASAImageryNSSample/app/app-routing.module.ts | Github Open Source | Open Source | MIT | null | pos-facisa-nativescript | JGeraldoLima | TypeScript | Code | 138 | 448 | import { NgModule, OnInit } from "@angular/core";
import { Routes } from "@angular/router";
import { RouterExtensions } from "nativescript-angular";
import { NativeScriptRouterModule } from "nativescript-angular/router";
import firebase = require("nativescript-plugin-firebase");
const routes: Routes = [
// see how... | 10,801 |
https://github.com/alex-titarenko/testcheck/blob/master/Testcheck.Tester/Behaviours/BrowserBehavior.cs | Github Open Source | Open Source | MIT | 2,021 | testcheck | alex-titarenko | C# | Code | 77 | 283 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
namespace TAlex.Testcheck.Tester.Behaviours
{
public class BrowserBehavior
{
public static readonly DependencyProperty HtmlProperty ... | 27,585 |
https://github.com/skynixukraine/Clodify-Business-CRM/blob/master/modules/api/view-models/ContractCreate.php | Github Open Source | Open Source | BSD-3-Clause | null | Clodify-Business-CRM | skynixukraine | PHP | Code | 86 | 352 | <?php
/**
* Created by Skynix Team
* Date: 20.04.17
* Time: 14:09
*/
namespace viewModel;
use Yii;
use app\components\DateUtil;
use app\models\User;
use app\modules\api\components\Api\Processor;
class ContractCreate extends ViewModelAbstract
{
/** @deprecated */
public function define()
{
tri... | 30,869 |
https://github.com/jpverkamp/schempy/blob/master/globals/__init__.py | Github Open Source | Open Source | BSD-3-Clause | 2,015 | schempy | jpverkamp | Python | Code | 20 | 93 | import os
files = [
'environment.py',
'lambda.py',
'mathematical.py',
'logical.py',
'lists.py',
'predicates.py',
'control.py',
'values.py',
]
for file in files:
execfile(os.path.join('globals', file)) | 31,051 |
https://github.com/armutcom/iyzipay-dotnet-client/blob/master/src/Iyzipay/Model/CrossBookingToSubMerchant.cs | Github Open Source | Open Source | MIT | 2,020 | iyzipay-dotnet-client | armutcom | C# | Code | 55 | 235 | using System.Threading.Tasks;
using Armut.Iyzipay.Request;
namespace Armut.Iyzipay.Model
{
public class CrossBookingToSubMerchant : IyzipayResource
{
private const string CrossBookingToSubMerchantUrl = "/crossbooking/send";
public static CrossBookingToSubMerchant Create(CreateCrossBookingRequ... | 29,447 |
https://github.com/shaan1337/EventStore/blob/master/src/EventStore.Projections.Core.Tests/Services/core_projection/projection_checkpoint/when_handling_stream_awaiting_message.cs | Github Open Source | Open Source | MIT, BSD-3-Clause, Apache-2.0 | 2,017 | EventStore | shaan1337 | C# | Code | 89 | 602 | using EventStore.Core.Tests.Services.Replication;
using EventStore.Projections.Core.Messages;
using EventStore.Projections.Core.Services.Processing;
using NUnit.Framework;
namespace EventStore.Projections.Core.Tests.Services.core_projection.projection_checkpoint
{
[TestFixture]
public class when_handling_strea... | 47,762 |
https://github.com/Cheesebaron/MavenRepoBrowser/blob/master/MavenRepoBrowser/ArtifactProjectPage.xaml.cs | Github Open Source | Open Source | MIT | null | MavenRepoBrowser | Cheesebaron | C# | Code | 62 | 205 | using System;
using System.Collections.Generic;
using MavenNet.Models;
using Xamarin.Forms;
namespace MavenRepoBrowser
{
public partial class ArtifactProjectPage : ContentPage
{
public ArtifactProjectPage(Project project, string version)
{
InitializeComponent();
Title ... | 34,456 |
https://github.com/JuGoo/android-library/blob/master/urbanairship-core/src/test/java/com/urbanairship/remotedata/RemoteDataPayloadTest.java | Github Open Source | Open Source | Apache-2.0 | null | android-library | JuGoo | Java | Code | 160 | 575 | /* Copyright Airship and Contributors */
package com.urbanairship.remotedata;
import com.urbanairship.BaseTestCase;
import com.urbanairship.json.JsonList;
import com.urbanairship.json.JsonMap;
import com.urbanairship.json.JsonValue;
import com.urbanairship.util.DateUtils;
import org.junit.Assert;
import org.junit.Be... | 9,349 |
https://github.com/BinarySerializer/BinarySerializer.PS2/blob/master/src/GS/Registers/GSReg_TEX0_1.cs | Github Open Source | Open Source | MIT | null | BinarySerializer.PS2 | BinarySerializer | C# | Code | 184 | 584 | namespace BinarySerializer.PS2
{
public class GSReg_TEX0_1 : GSRegister
{
public override GSRegisters RegisterByte => GSRegisters.TEX0_1;
public ushort TPB0 { get; set; }
public byte TBW { get; set; }
public GS.PixelStorageMode PSM { get; set; }
public byte TW { get; set... | 20,969 |
https://github.com/stevewgh/Topshelf.Leader/blob/master/src/Topshelf.Leader/LeaderConfigurationBuilder.cs | Github Open Source | Open Source | MIT | 2,020 | Topshelf.Leader | stevewgh | C# | Code | 210 | 778 | using System;
using System.Threading;
using System.Threading.Tasks;
using Topshelf.Leader.InMemory;
namespace Topshelf.Leader
{
public class LeaderConfigurationBuilder<T>
{
private Func<T, CancellationToken, Task> whenStarted;
private string nodeId;
private CancellationTokenSource serv... | 35,848 |
https://github.com/nstone101/lararepair/blob/master/app/Helpers/Helper.php | Github Open Source | Open Source | MIT | null | lararepair | nstone101 | PHP | Code | 1,782 | 5,153 | <?php
if (!function_exists('dataTable')) {
function dataTable()
{
return app('dataTable');
}
}
/*
* Used to write in .env file
* @param
* $data as array of .env key & value
* @return nothing
*/
function envu($data = array())
{
foreach ($data as $key => $value) {
if (env($key) ... | 16,857 |
https://github.com/hugoleeney/leetcode_problems/blob/master/p820_short_encoding_of_words.py | Github Open Source | Open Source | MIT | null | leetcode_problems | hugoleeney | Python | Code | 202 | 426 | '''
820. Short Encoding of Words
Difficulty - medium
Given a list of words, we may encode it by writing a reference string S and a list of indexes A.
For example, if the list of words is ["time", "me", "bell"], we can write it as S = "time#bell#" and indexes = [0, 2, 5].
Then for each index, we will recover the wor... | 22,435 |
https://github.com/BeMyEye/angularjs-webpack/blob/master/src/app/contacts/containers/contacts/contacts.container.spec.ts | Github Open Source | Open Source | MIT | 2,018 | angularjs-webpack | BeMyEye | TypeScript | Code | 116 | 477 | import * as angular from 'angular';
import { IQService } from 'angular';
import 'angular-mocks';
import { ContactsContainer } from './contacts.container';
describe('Contacts container', () => {
const _contactsService = {
remove: jasmine.createSpy('remove'),
getAll: jasmine.createSpy('getAll')
}... | 30,319 |
https://github.com/SeptianFauzi/innosoft/blob/master/application/views/backend/struktur/form_input.php | Github Open Source | Open Source | MIT | 2,019 | innosoft | SeptianFauzi | PHP | Code | 210 | 1,184 | <div class="box box-info">
<div class="box-header with-border">
<h3 class="box-title">Tambah Artikel Struktur</h3>
</div>
<div class="box-body">
<?php
echo form_open_multipart('struktur/post','class="form-horizontal"');
?>
<div class="box-body">
<div class="form-group">
<label for="artikel_judul" cl... | 28,346 |
https://github.com/NLightning/NLightning/blob/master/NLightning.Test/Transport/Messaging/SetupMessages/InitMessageTests.cs | Github Open Source | Open Source | MIT | 2,021 | NLightning | NLightning | C# | Code | 71 | 270 | using NLightning.Transport.Messaging.SetupMessages;
using NLightning.Utils;
using NLightning.Utils.Extensions;
using Xunit;
namespace NLightning.Test.Transport.Messaging.SetupMessages
{
public class InitMessageTests
{
[Fact]
public void GetBytesTest()
{
byte[] globalFeatures... | 21,720 |
https://github.com/BeastNeedsMoreTorque/Distribution/blob/master/s/std/src/main/scala/typings/std/MSStream.scala | Github Open Source | Open Source | MIT | 2,020 | Distribution | BeastNeedsMoreTorque | Scala | Code | 54 | 216 | package typings.std
import scala.scalajs.js
import scala.scalajs.js.`|`
import scala.scalajs.js.annotation._
trait MSStream extends js.Object {
val `type`: java.lang.String
def msClose(): Unit
def msDetachStream(): js.Any
}
object MSStream {
@scala.inline
def apply(msClose: () => Unit, msDetachStream: () =... | 44,321 |
https://github.com/ga-explorer/NumericalGeometryLib/blob/master/DataStructuresLib/DataStructuresLib/Collections/PeriodicLists2D/ProListConstantValues2D.cs | Github Open Source | Open Source | MIT | 2,021 | NumericalGeometryLib | ga-explorer | C# | Code | 123 | 373 | using System.Collections;
using System.Collections.Generic;
using System.Linq;
namespace DataStructuresLib.Collections.PeriodicLists2D
{
public class ProListConstantValues2D<TValue> :
IPeriodicReadOnlyList2D<TValue>
{
public TValue Value { get; }
public int Count
=> Count... | 17,586 |
https://github.com/XiaotaoChen/model-quantization/blob/master/start_on_terminate.sh | Github Open Source | Open Source | BSD-2-Clause | 2,021 | model-quantization | XiaotaoChen | Shell | Code | 57 | 115 |
# check current task, the script would run the next round experiment when current pid is finished
pid=$1
script=train.sh
config=$2
if [ "$pid" != "" ]
then
while true
do
nvidia-smi | grep $pid
if [ $? -eq 0 ]; then sleep 1m; continue; else break; fi
done
#sleep 10
echo "starting script"
bash $scri... | 10,374 |
https://github.com/Liz303/wunderwerkz-react/blob/master/src/components/pages/ContactPage.js | Github Open Source | Open Source | MIT | 2,020 | wunderwerkz-react | Liz303 | JavaScript | Code | 171 | 633 | import React from "react";
import { browserHistory } from "react-router";
import HalfText from "../HalfText.jsx";
import ScrollText from "../ScrollText.jsx";
import Navigation from "../Navigation.jsx";
class ContactPage extends React.Component {
render() {
return (
<Navigation one="contact" two="root" thre... | 1,363 |
https://github.com/josephbeuysmum/Cirk/blob/master/Cirk/Dertisch/Salle/Sommelier.swift | Github Open Source | Open Source | MIT | null | Cirk | josephbeuysmum | Swift | Code | 271 | 674 | //
// Sommelier.swift
// Dertisch
//
// Created by Richard Willis on 08/10/2018.
// Copyright © 2018 Rich Text Format Ltd. All rights reserved.
//
public enum Regions: String {
case
england = "en",
france = "fr"
}
public protocol SommelierProtocol {
// var region: Regions { get set }
// init(larder: Larder)
//... | 15,545 |
https://github.com/GuardTime/ksi-net-sdk/blob/master/ksi-net-api/Service/AggregatorConfigChangedEventArgs.cs | Github Open Source | Open Source | Apache-2.0 | 2,018 | ksi-net-sdk | GuardTime | C# | Code | 300 | 631 | /*
* Copyright 2013-2018 Guardtime, Inc.
*
* This file is part of the Guardtime client SDK.
*
* 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/LICEN... | 35,134 |
https://github.com/openshift/openshift-tools/blob/master/scripts/monitoring/cron-send-pcp-sampled-metrics.py | Github Open Source | Open Source | LicenseRef-scancode-warranty-disclaimer, Apache-2.0 | 2,022 | openshift-tools | openshift | Python | Code | 290 | 934 | #!/usr/bin/python
'''
Sample pcp for cpu statistics over an interval
Example:
./cron-send-pcp-sample.py -m kernel.all.cpu.idle -m kernel.all.cpu.nice -m kernel.all.cpu.steal \
-m kernel.all.cpu.sys -m kernel.all.cpu.user -m kernel.all.cpu.wait.total -i 2 -v
'''
# Disabling invalid-name because pylint doesn't l... | 3,792 |
https://github.com/cmgladding/aslam-project/blob/master/src/quat2taitbryan.cpp | Github Open Source | Open Source | MIT | null | aslam-project | cmgladding | C++ | Code | 317 | 1,057 | #include <cmath>
#include "ros/ros.h"
#include "gazebo_msgs/ModelStates.h"
#include "geometry_msgs/Pose.h"
#include "geometry_msgs/Twist.h"
#include "geometry_msgs/Quaternion.h"
#include "geometry_msgs/Vector3.h"
#include <std_msgs/Float64.h>
#include <vector>
class Rotation{
public:
// Quaternion parameters
// O... | 42,340 |
https://github.com/Sandermoen/portfolio/blob/master/src/components/Button/Button.js | Github Open Source | Open Source | MIT | null | portfolio | Sandermoen | JavaScript | Code | 71 | 232 | import React, { useContext, Fragment } from "react"
import { ThemeManagerContext } from "gatsby-styled-components-dark-mode"
import { StyledButton } from "./Button.styles"
const Button = ({ inverted, className, children, link }) => {
const { isDark } = useContext(ThemeManagerContext)
return (
<Fragment>
... | 2,759 |
https://github.com/aseerishraque/puc-cgpa/blob/master/resources/views/cgpa.blade.php | Github Open Source | Open Source | MIT | null | puc-cgpa | aseerishraque | PHP | Code | 276 | 1,720 | <!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Bootstrap CSS -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="s... | 35,517 |
https://github.com/XurrencyFX/EhPanda/blob/master/EhPanda/View/Support/Components/Cells/GalleryRankingCell.swift | Github Open Source | Open Source | Apache-2.0 | null | EhPanda | XurrencyFX | Swift | Code | 109 | 415 | //
// GalleryRankingCell.swift
// EhPanda
//
// Created by 荒木辰造 on R 3/12/14.
//
import SwiftUI
import Kingfisher
struct GalleryRankingCell: View {
private let gallery: Gallery
private let ranking: Int
init(gallery: Gallery, ranking: Int) {
self.gallery = gallery
self.ranking = ranking... | 24,175 |
https://github.com/ep1804/others/blob/master/practice/hackerrank/functional_programming/src/euler/E003.scala | Github Open Source | Open Source | MIT | 2,020 | others | ep1804 | Scala | Code | 164 | 389 | package euler
object LargestPrimeFactor {
lazy val from3by2: Stream[Long] = 3L #:: from3by2.map(_ + 2)
lazy val primes: Stream[Long] =
2L #:: from3by2.filter(i => primes.takeWhile(j => j * j <= i).forall(i % _ > 0))
// c.f.
//def isPrime(n: Long): Boolean = primes.takeWhile(_ <= math.sqrt(n)).filter(... | 48,827 |
https://github.com/KamilKarpus/home-budget/blob/master/src/modules/hb.core/hb.core.domain/money.ts | Github Open Source | Open Source | MIT | null | home-budget | KamilKarpus | TypeScript | Code | 112 | 290 | export class Money{
private _value: number;
private _currency: string;
constructor(value : number, currency: string) {
this._value = value;
this._currency = currency;
}
public static of(value : number, currency : string) : Money{
return new Money(value, currency);
}
... | 13,055 |
https://github.com/AbacusPowers/zentheme/blob/master/sass/forms/_fields.scss | Github Open Source | Open Source | MIT | null | zentheme | AbacusPowers | SCSS | Code | 39 | 169 | input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
textarea {
max-width: 100%;
color: $text-black-tertiary;
border: 1px solid ;
border-radius: 3px;
&:focus {
color: $text-black-secondary;
}
}
input[type="text"],
input[type="email"],
input[type="url"],
inp... | 28,702 |
https://github.com/jeenlee/Aoite/blob/master/src/core/Aoite.Tests/Aoite/Reflection/SampleModel/Generics/AbstractGenericBase.cs | Github Open Source | Open Source | Apache-2.0 | 2,022 | Aoite | jeenlee | C# | Code | 20 | 51 |
namespace Aoite.ReflectionTest.SampleModel.Generics
{
internal abstract class AbstractGenericBase<T>
{
public virtual T Value { get; protected set; }
}
}
| 30,166 |
https://github.com/splunk/syntheticsclient/blob/master/syntheticsclient/create_browsercheck.go | Github Open Source | Open Source | Apache-2.0 | null | syntheticsclient | splunk | Go | Code | 190 | 430 | // Copyright 2021 Splunk, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in... | 25,775 |
https://github.com/bkonk/dicom2roi/blob/master/Frameworks/OsiriXAPI.framework/Versions/A/Headers/OSIVoxel.h | Github Open Source | Open Source | BSL-1.0 | 2,021 | dicom2roi | bkonk | Objective-C | Code | 209 | 578 |
/*=========================================================================
Program: OsiriX
Copyright (c) 2010 - 2019 Pixmeo SARL
266 rue de Bernex
CH-1233 Bernex
Switzerland
All rights reserved.
=========================================================================*/
#import <Cocoa/Cocoa.h>
@class Po... | 15,069 |
https://github.com/getlantern/lantern-archive/blob/master/install.bash | Github Open Source | Open Source | Apache-2.0 | 2,017 | lantern-archive | getlantern | Shell | Code | 47 | 125 | #!/usr/bin/env bash
function die() {
echo $*
exit 1
}
./copypt.bash || die "Could not copy pluggable transports?"
mvn --version || die "Please install maven from http://maven.apache.org"
rm -f target/lantern*-small.jar || die "Could not remove old jar?"
mvn -U package -Dmaven.artifact.threads=1 -Dmaven.test.skip... | 45,527 |
https://github.com/Irvingsoft/sodo-platform/blob/master/sodo-common/sodo-log-starter/src/main/java/cool/sodo/log/starter/handler/AsyncExceptionHandler.java | Github Open Source | Open Source | MulanPSL-1.0 | 2,022 | sodo-platform | Irvingsoft | Java | Code | 77 | 306 | package cool.sodo.log.starter.handler;
import cool.sodo.common.base.util.JsonUtil;
import cool.sodo.log.starter.publisher.ErrorLogPublisher;
import lombok.extern.slf4j.Slf4j;
import org.springframework.aop.interceptor.AsyncUncaughtExceptionHandler;
import org.springframework.stereotype.Component;
import javax.annotat... | 37,450 |
https://github.com/logicmoo/old_logicmoo_workspace/blob/master/pack/logicmoo_experimental/prolog/logicmoo/dra/swi_toplevel.pl | Github Open Source | Open Source | MIT | 2,018 | old_logicmoo_workspace | logicmoo | Perl | Code | 826 | 5,539 | #! swipl -L8G -G8G -T8G -f
/** <module> MUD server startup script in SWI-Prolog
*/
end_of_file.
:-module(swi_toplevel,[]).
% :- shell(cls).
:- dynamic user:file_search_path/2.
:- multifile user:file_search_path/2.
:- prolog_load_context(directory,H),absolute_file_name('../../../..',A,[file_type(directory),relative... | 13,139 |
https://github.com/nikolajw/localizationnet/blob/master/Localization.Net/Parsing/IPatternTransformer.cs | Github Open Source | Open Source | MIT | null | localizationnet | nikolajw | C# | Code | 43 | 96 | namespace Localization.Net.Parsing
{
/// <summary>
/// Implement this interface to change the default grammar's syntax.
/// </summary>
public interface IPatternTransformer
{
//TODO: Make a mechanism to update positions in error messages based on unencoded pattern
string Encode(strin... | 28,381 |
https://github.com/naoto/rinne/blob/master/spec/spec_helper.rb | Github Open Source | Open Source | MIT | 2,013 | rinne | naoto | Ruby | Code | 7 | 28 | require 'rubygems'
require 'coveralls'
Coveralls.wear!
require 'rinne'
| 48,653 |
https://github.com/ClaudePlos/nap_cash_registers/blob/master/src/main/java/kskowronski/lib/excel/Exporter.java | Github Open Source | Open Source | Unlicense | null | nap_cash_registers | ClaudePlos | Java | Code | 43 | 181 | package kskowronski.lib.excel;
import com.vaadin.flow.component.grid.Grid;
import com.vaadin.flow.server.InputStreamFactory;
import java.util.Map;
public class Exporter {
private Exporter(){}
public static <T> InputStreamFactory exportAsExcel(Grid<T> grid, Map<Grid.Column<T>, String> columnHeaders){
... | 33,047 |
https://github.com/abueide/mage/blob/master/Mage.Tests/src/test/java/org/mage/test/cards/abilities/keywords/DecayedTest.java | Github Open Source | Open Source | MIT | 2,022 | mage | abueide | Java | Code | 152 | 667 | package org.mage.test.cards.abilities.keywords;
import mage.constants.PhaseStep;
import mage.constants.Zone;
import org.junit.Test;
import org.mage.test.serverside.base.CardTestPlayerBase;
public class DecayedTest extends CardTestPlayerBase {
@Test
public void decayedToken() {
addCard(Zone.HAND, play... | 14,761 |
https://github.com/Koknov/ProgrammingLabAutumn2018/blob/master/src/main/java/Field.java | Github Open Source | Open Source | MIT | null | ProgrammingLabAutumn2018 | Koknov | Java | Code | 132 | 338 | import java.util.ArrayList;
class Field {
private static Coord size;
private static ArrayList<Coord> allCoords;
static void setSize(Coord size) {
Field.size = size;
allCoords = new ArrayList<>();
for (int y = 0; y < size.y; y++)
for (int x = 0; x < size.x; x++)
... | 22,230 |
https://github.com/jsdelivrbot/dockerfiles-1/blob/master/data/d/dingmingk/java-jdk6-oracle/Dockerfile | Github Open Source | Open Source | MIT | 2,018 | dockerfiles-1 | jsdelivrbot | Dockerfile | Code | 85 | 301 | FROM ubuntu:trusty
MAINTAINER dingmingk <dingmingk@gmail.com>
RUN cp -f /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
RUN apt-get update -y \
&& apt-get remove -y openjdk* \
&& apt-get install -y software-properties-common curl bzip2 unzip xz-utils \
&& add-apt-repository ppa:webupd8team/java -y \ ... | 48,981 |
https://github.com/slkrk/calendar/blob/master/tests/Aeon/Collection/Tests/Unit/DayValueSetTest.php | Github Open Source | Open Source | MIT | null | calendar | slkrk | PHP | Code | 860 | 4,279 | <?php
declare(strict_types=1);
namespace Aeon\Collection\Tests\Unit;
use Aeon\Calendar\Exception\InvalidArgumentException;
use Aeon\Calendar\Gregorian\Day;
use Aeon\Collection\DayValue;
use Aeon\Collection\DayValueSet;
use PHPUnit\Framework\TestCase;
final class DayValueSetTest extends TestCase
{
public functio... | 36,336 |
https://github.com/satishchor/angular10/blob/master/angulapp/src/app/adventure/land/land.module.ts | Github Open Source | Open Source | Apache-2.0 | null | angular10 | satishchor | TypeScript | Code | 151 | 484 | import { NgModule } from "@angular/core";
import { CommonModule } from "@angular/common";
import { FormsModule, ReactiveFormsModule } from "@angular/forms";
import { SnotifyModule, SnotifyService, ToastDefaults } from "ng-snotify";
import { UiModule } from "../../shared/ui/ui.module";
import { LandRouterModule } from... | 39,796 |
https://github.com/mrjoes/flask-admin/blob/master/flask_admin/translations/cs/LC_MESSAGES/admin.po | Github Open Source | Open Source | Apache-2.0, MIT | 2,022 | flask-admin | mrjoes | Gettext Catalog | Code | 827 | 3,689 | # Translations template for Flask-Admin.
# Copyright (C) 2013 Dominik Janků
# This file is distributed under the same license as the Flask-Admin
# project.
# Dominik Janků <djanku@email.cz>, 2013.
#
msgid ""
msgstr ""
"Project-Id-Version: Flask-Admin\n"
"Report-Msgid-Bugs-To: djanku@email.cz\n"
"POT-Creation-Date: 2012... | 13,475 |
https://github.com/lizardmedia/sample-magento2/blob/master/view/frontend/web/js/model/sample.js | Github Open Source | Open Source | MIT | 2,019 | sample-magento2 | lizardmedia | JavaScript | Code | 21 | 78 | /**
* @author Maciej Sławik <maciej.slawik@lizardmedia.pl>
*/
define(
[
'ko',
],
function(ko) {
'use strict';
return{
formFields: ko.observable(null)
}
}
); | 20,216 |
https://github.com/zqmillet/Anti.DNS.Fucker/blob/master/Anti-DNSFucker/Controls/CheckBoxAdvanced.vb | Github Open Source | Open Source | MIT | null | Anti.DNS.Fucker | zqmillet | Visual Basic | Code | 319 | 606 | ''' <summary>
''' This class inherits CheckBox, and it is an advanced CheckBox.
''' Comparing with the CheckBox, CheckBoxAdvanced has a public property: Broken, which is a Boolean.
''' If the property Broken is True, the properties Enabled and Checked cannot be operated.
''' </summary>
Public Class CheckBoxAdvanced
... | 31,365 |
https://github.com/amicha24/veins-documentation/blob/master/doxy/search/enums_7.js | Github Open Source | Open Source | BSD-3-Clause | null | veins-documentation | amicha24 | JavaScript | Code | 7 | 263 | var searchData=
[
['packet_5fok_5fresult',['PACKET_OK_RESULT',['../classveins_1_1_decider80211p.html#a19b797f1554f813ef971d42f51539eeb',1,'veins::Decider80211p']]],
['powertype',['PowerType',['../classveins_1_1_draw_amount.html#a72eb786928939c15bd91da699cd2bb8e',1,'veins::DrawAmount']]],
['protocolids',['Protocol... | 13,737 |
https://github.com/weblfe/goloader/blob/master/dymcode.go | Github Open Source | Open Source | Apache-2.0 | 2,020 | goloader | weblfe | Go | Code | 1,917 | 7,321 | package goloader
import (
"cmd/objfile/goobj"
"encoding/binary"
"errors"
"fmt"
"os"
"runtime"
"strings"
"sync"
"unsafe"
)
// copy from $GOROOT/src/cmd/internal/objabi/reloctype.go
const (
R_ADDR = 1
// R_ADDRARM64 relocates an adrp, add pair to compute the address of the
// referenced symbol.
R_ADDRARM64... | 43,466 |
https://github.com/saffire/saffire/blob/master/src/components/modules/saffire.c | Github Open Source | Open Source | BSD-3-Clause | 2,022 | saffire | saffire | C | Code | 722 | 2,915 | /*
Copyright (c) 2012-2015, The Saffire Group
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditi... | 7,684 |
https://github.com/Ahmedkr5/Mini-Miracles/blob/master/src/PlanBundle/Resources/views/enfant/edit2.html.twig | Github Open Source | Open Source | MIT | null | Mini-Miracles | Ahmedkr5 | Twig | Code | 53 | 196 | {% extends 'base.html.twig' %}
{% block body %}
<h1>Selectioner un groupe</h1>
<table class="table table-striped">
<thead>
<tr>
<th>Nom du group</th>
<th>Ajouter</th>
</tr>
</thead>
<tbody>
{% for groupe in groupes %}
<tr>
... | 32,633 |
https://github.com/openstates/openstates-core/blob/master/openstates/data/admin/event.py | Github Open Source | Open Source | MIT | 2,023 | openstates-core | openstates | Python | Code | 149 | 710 | from django.contrib import admin
from django.template import defaultfilters
from . import base
from .. import models
@admin.register(models.EventLocation)
class EventLocationAdmin(admin.ModelAdmin):
pass
class EventParticipantInline(base.RelatedEntityInline):
model = models.EventParticipant
readonly_fie... | 26,019 |
https://github.com/essensoft/paymen/blob/master/src/Essensoft.Paylink.Alipay/Domain/KoubeiMarketingDataCustomreportSaveModel.cs | Github Open Source | Open Source | MIT | 2,021 | paymen | essensoft | C# | Code | 35 | 142 | using System.Text.Json.Serialization;
namespace Essensoft.Paylink.Alipay.Domain
{
/// <summary>
/// KoubeiMarketingDataCustomreportSaveModel Data Structure.
/// </summary>
public class KoubeiMarketingDataCustomreportSaveModel : AlipayObject
{
/// <summary>
/// 自定义报表规则条件信息
/... | 48,385 |
https://github.com/BrandEmbassy/php-file-type-detector/blob/master/src/FileInfoTest.php | Github Open Source | Open Source | MIT | 2,023 | php-file-type-detector | BrandEmbassy | PHP | Code | 61 | 248 | <?php declare(strict_types = 1);
namespace BrandEmbassy\FileTypeDetector;
use PHPUnit\Framework\TestCase;
class FileInfoTest extends TestCase
{
/**
* @dataProvider extensionDataProvider()
*/
public function testFileInfoAlwaysHasAllAttributes(Extension $extension, bool $isCreatedFromFileName): void
... | 2,051 |
https://github.com/igiu1988/iOS13.4.1-Runtime-Headers/blob/master/PrivateFrameworks/UIKitCore.framework/_UIDebugLogReport.h | Github Open Source | Open Source | MIT | 2,020 | iOS13.4.1-Runtime-Headers | igiu1988 | Objective-C | Code | 127 | 505 | /* Generated by EzioChiu
Image: /System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore
*/
@interface _UIDebugLogReport : NSObject {
unsigned long long _currentIndentLevel;
id /* block */ _fallbackMessagePrefixHandler;
NSMutableArray * _prefixStack;
NSMutableArray * _statements;
}
@prope... | 43,446 |
https://github.com/nohros/must/blob/master/src/base/common/configuration/builders/ThrowableConfigurationBuilder.cs | Github Open Source | Open Source | MIT | 2,016 | must | nohros | C# | Code | 86 | 222 | using System;
namespace Nohros.Configuration.Builders
{
/// <summary>
/// A implementation of the <see cref="IConfigurationBuilder{T}"/> that
/// throws an <see cref="NotImplementedException"/> when <see cref="Build"/>
/// is called.
/// </summary>
/// <remarks>
/// This main purpose of this class is to... | 48,038 |
https://github.com/pvjones/boilerplate-ts-react-redux-auth/blob/master/src/app/store/reducers/security.reducer.ts | Github Open Source | Open Source | MIT | 2,018 | boilerplate-ts-react-redux-auth | pvjones | TypeScript | Code | 84 | 267 | import { fromJS, Map } from 'immutable'
import { serializeStateToLocalStorage, deserializeStateFromLocalStorage } from '../../../utils/storage.utils'
import actionDefs from '../actions/actionDefs'
import { SecurityState, Reducer, PayloadFunc } from '../store.models'
const setSession: PayloadFunc<SecurityState, any> = ... | 11,294 |
https://github.com/Spessi/Thor/blob/master/include/Thor/Resources/Detail/ResourceHolder.inl | Github Open Source | Open Source | Zlib | 2,022 | Thor | Spessi | C++ | Code | 604 | 1,325 | /////////////////////////////////////////////////////////////////////////////////
//
// Thor C++ Library
// Copyright (c) 2011-2021 Jan Haller
//
// This software is provided 'as-is', without any express or implied
// warranty. In no event will the authors be held liable for any damages
// arising from the use of this ... | 17,619 |
https://github.com/david-szabo97/cpvault.com/blob/master/src/style/pages/default/default.sass | Github Open Source | Open Source | Apache-2.0 | 2,017 | cpvault.com | david-szabo97 | Sass | Code | 153 | 526 | main.default
section
height: 100%
display: flex
flex-direction: column
padding: $gutter
flex: 1 0 auto
.logo-container
display: flex
flex-direction: row
flex: 1 0 auto
align-items: center
justify-content: center
h1
flex:... | 37,399 |
https://github.com/zathras777/core/blob/master/tests/components/ambee/test_sensor.py | Github Open Source | Open Source | Apache-2.0 | 2,022 | core | zathras777 | Python | Code | 984 | 4,688 | """Tests for the sensors provided by the Ambee integration."""
from unittest.mock import AsyncMock
import pytest
from homeassistant.components.ambee.const import DEVICE_CLASS_AMBEE_RISK, DOMAIN
from homeassistant.components.sensor import (
ATTR_STATE_CLASS,
DOMAIN as SENSOR_DOMAIN,
STATE_CLASS_MEASUREMENT... | 9,129 |
https://github.com/RuleLau/nacos-spring-cloud-demo/blob/master/springcloud-auth/src/main/java/com/rule/config/DomainUserDetailsService.java | Github Open Source | Open Source | Apache-2.0 | null | nacos-spring-cloud-demo | RuleLau | Java | Code | 77 | 375 | package com.rule.config;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.rule.common.entity.UserInfo;
import com.rule.common.mapper.UserMapper;
import lombok.extern.slf4j.Slf4j;
import org.springframework.security.core.authority.AuthorityUtils;
import org.springframework.security.core.us... | 592 |
https://github.com/la-mar/prodstats/blob/master/src/prodstats/db/models/providers.py | Github Open Source | Open Source | MIT | null | prodstats | la-mar | Python | Code | 26 | 61 | # from __future__ import annotations
# from const import HoleDirection, Provider
# from db.models.bases import Base, db
# __all__ = ["IDMaster"]
# class IDMaster(Base):
# pass
| 40,386 |
https://github.com/castronu/quickat/blob/master/src/main/java/org/quickat/telnet/ClientConnection.java | Github Open Source | Open Source | Apache-2.0 | null | quickat | castronu | Java | Code | 230 | 832 | package org.quickat.telnet;
import org.apache.velocity.app.VelocityEngine;
import org.quickat.telnet.commands.Command;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.config.ConfigurableBeanFactory;
import ... | 4,260 |
https://github.com/SawyerSven/element-ts-admin/blob/master/src/views/Diary/Diary.vue | Github Open Source | Open Source | MIT | null | element-ts-admin | SawyerSven | Vue | Code | 439 | 1,495 | <template>
<div class="diary">
<TableFilter @search="search" :filter-list="searchList" v-model="searchResult"></TableFilter>
<TableMain :data="tableData" :tableObject="tableObject" style="margin-top:20px">
<template #control>
<TableControl :select-all="true"></TableControl>
</template>
... | 7,514 |
https://github.com/couchbase/gocb/blob/master/search/facets.go | Github Open Source | Open Source | Apache-2.0 | 2,023 | gocb | couchbase | Go | Code | 346 | 951 | package search
import (
"encoding/json"
)
// Facet represents a facet for a search query.
type Facet interface {
}
type termFacetData struct {
Field string `json:"field,omitempty"`
Size uint64 `json:"size,omitempty"`
}
// TermFacet is an search term facet.
type TermFacet struct {
data termFacetData
}
// Marsh... | 6,301 |
https://github.com/tskisner/sotodlib/blob/master/sotodlib/toast/pipeline_tools/demodulation.py | Github Open Source | Open Source | MIT | 2,022 | sotodlib | tskisner | Python | Code | 226 | 861 | # Copyright (c) 2020 Simons Observatory.
# Full license can be found in the top level "LICENSE" file.
import numpy as np
from toast.timing import function_timer, Timer
from toast.utils import Logger
from ..demodulation import OpDemod
def add_demodulation_args(parser):
parser.add_argument(
"--demodulat... | 46,056 |
https://github.com/netlify/build/blob/master/packages/build/tests/telemetry/tests.js | Github Open Source | Open Source | MIT | 2,023 | build | netlify | JavaScript | Code | 954 | 2,694 | import { versions } from 'process'
import { Fixture, normalizeOutput, startServer } from '@netlify/testing'
import test from 'ava'
const TELEMETRY_PATH = '/track'
const BUGSNAG_TEST_KEY = '00000000000000000000000000000000'
// Normalize telemetry request so it can be snapshot
const normalizeSnapshot = function ({ bod... | 16,275 |
https://github.com/menhuan/notes/blob/master/code/codebase-master/onirigi-front/build.gradle | Github Open Source | Open Source | Apache-2.0 | 2,023 | notes | menhuan | Gradle | Code | 90 | 419 |
apply from: JAVA_GRADLE
buildscript {
ext {
springBootVersion = '1.5.10.RELEASE'
}
repositories {
maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' }
maven { url 'http://repos.infervision.com' }
mavenCentral()
}
}
group 'com.infervision'
version '1.0'
... | 22,693 |
https://github.com/mohit-40/E-commerce-site/blob/master/Routes/verifyToken.js | Github Open Source | Open Source | MIT | null | E-commerce-site | mohit-40 | JavaScript | Code | 84 | 469 | const jwt=require('jsonwebtoken');
const verifyToken=(req,res,next)=>{
const authHeader= req.headers.authorization;
if(authHeader){
const token=authHeader.split(' ')[1];
jwt.verify(token,process.env.ACCESS_TOKEN_SECRET,(err,user)=>{
if(err) {res.status(404).json("jwt token not valid")}
req.user=use... | 18,147 |
https://github.com/Sub2n/JavaScript-Exercise/blob/master/route-exam/src/app/community/community.module.ts | Github Open Source | Open Source | MIT | 2,021 | JavaScript-Exercise | Sub2n | TypeScript | Code | 56 | 149 | import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { SharedModule } from '../shared/shared.module';
import { CommunityRoutingModule } from './community-routing.module';
import { CommunityComponent } from './components/community.component';
import { PhotoComponent } from '... | 21,524 |
https://github.com/LousiesModPorts/Custom-Main-Menu/blob/master/src/main/java/lumien/custommainmenu/lib/textures/TextureResourceLocation.java | Github Open Source | Open Source | MIT | 2,022 | Custom-Main-Menu | LousiesModPorts | Java | Code | 28 | 119 | package lumien.custommainmenu.lib.textures;
import net.minecraft.client.Minecraft;
import net.minecraft.util.ResourceLocation;
public class TextureResourceLocation extends ResourceLocation implements ITexture
{
public TextureResourceLocation(String resourceString)
{
super(resourceString);
}
@Override
public v... | 5,592 |
https://github.com/MartinDrab/netpipe/blob/master/aes.h | Github Open Source | Open Source | MIT | 2,022 | netpipe | MartinDrab | C | Code | 186 | 543 | #ifndef __AES_H__
#define __AES_H__
int rijndaelSetupEncrypt(unsigned long *rk, const unsigned char *key, int keybits);
int rijndaelSetupDecrypt(unsigned long *rk, const unsigned char *key, int keybits);
void rijndaelEncrypt(const unsigned long *rk, int nrounds, const unsigned char plaintext[16], unsigned char ciphe... | 46,694 |
https://github.com/fabriziobertoglio1987/surf-rails/blob/master/db/seeds/posts.rb | Github Open Source | Open Source | MIT | 2,021 | surf-rails | fabriziobertoglio1987 | Ruby | Code | 279 | 1,512 | bondi_all = ['bondi_0466.JPG','bondi_0467.JPG','bondi_0468.JPG','bondi_0471.JPG','bondi_0472.JPG','bondi_0473.JPG','bondi_0484.JPG','bondi_0494.JPG','bondi_0503.JPG','bondi_0504.JPG','bondi_0505.JPG','bondi_0506.JPG','bondi_0507.JPG','bondi_0511.JPG','bondi_0512.JPG','bondi_0513.JPG','bondi_0523.JPG','bondi_0554.JPG','... | 48,403 |
https://github.com/taintp21/littleandlittle_pj/blob/master/Modules/Translation/Resources/lang/core/en/core.php | Github Open Source | Open Source | MIT | 2,022 | littleandlittle_pj | taintp21 | PHP | Code | 408 | 1,008 | <?php
return [
'modal' => [
'title' => 'Confirmation',
'confirmation-message' => 'Are you sure you want to delete this record?',
],
'table' => [
'created at' => 'Created at',
'updated at' => 'Updated at',
'deleted at' => 'Deleted at',
'actions' => 'Actions',
... | 21,714 |
https://github.com/crab-cr/php-strtotime/blob/master/spec/strtotime_spec.cr | Github Open Source | Open Source | MIT | 2,021 | php-strtotime | crab-cr | Crystal | Code | 161 | 628 | require "./spec_helper"
# private NOW = Time.unix(1129633200)
private NOW = Time.parse_rfc3339("2005-10-18T11:00:00Z")
# php artisan tinker: \Carbon\Carbon::createFromTimestampUTC(strtotime('yesterday', 1129633200))->toRfc3339String()
describe "Iom::PHP::Strtotime" do
it "should allow now as Int64" do
Iom::PHP... | 39,235 |
https://github.com/dalemartyn/daleimg/blob/master/config/deploy.rb | Github Open Source | Open Source | MIT | null | daleimg | dalemartyn | Ruby | Code | 392 | 1,093 | require_relative 'nginx'
require_relative 'setup'
set :application, 'daleimg'
set :repo_url, 'git@github.com:dalemartyn/daleimg.git'
set :ssh_options, {
#keys: %w(~/.ssh/id_rsa),
forward_agent: true
#auth_methods: %w(password)
}
# Use :debug for more verbose output when troubleshooting
set :log_level, :info
... | 6,756 |
https://github.com/zhangweijin/laravel_shop_cart/blob/master/database/seeds/CatalogsTableSeeder.php | Github Open Source | Open Source | MIT | 2,020 | laravel_shop_cart | zhangweijin | PHP | Code | 491 | 2,055 | <?php
use Illuminate\Database\Seeder;
use Carbon\Carbon;
use App\Catalog;
class CatalogsTableSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
DB::table('catalogs')->truncate();
DB::table('catalogs')->insert([
... | 5,487 |
https://github.com/hlzz/dotfiles/blob/master/graphics/VTK-7.0.0/Common/ExecutionModel/vtkExecutive.cxx | Github Open Source | Open Source | BSD-3-Clause | 2,016 | dotfiles | hlzz | C++ | Code | 1,967 | 6,703 | /*=========================================================================
Program: Visualization Toolkit
Module: vtkExecutive.cxx
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This software is ... | 7,084 |
https://github.com/zeno-api/zeno-console/blob/master/resources/js/Pages/Service/ServiceStats.vue | Github Open Source | Open Source | MIT | null | zeno-console | zeno-api | Vue | Code | 339 | 1,361 | <template>
<div>
<div class="grid grid-cols-1 sm:rounded-lg bg-white overflow-hidden shadow md:grid-cols-3">
<div>
<div class="px-4 py-5 sm:p-6">
<dl>
<dt class="text-base leading-6 font-normal text-gray-900">
... | 38,107 |
https://github.com/gabrigcl/firestore-ref/blob/master/rollup.config.js | Github Open Source | Open Source | MIT | 2,020 | firestore-ref | gabrigcl | JavaScript | Code | 34 | 128 | import banner from 'rollup-plugin-banner';
export default {
input: './src/index.js',
output: [
{
file: './build/firestore-ref.umd.js',
format: 'umd',
name: 'firestoreRef'
}
],
plugins: [
banner('firestore-ref v<%= pkg.version %> by <%= pkg.author %>'),
],
external: ['fir... | 25,813 |
https://github.com/RaymondGrumney/FayeAndGrumpy/blob/master/assets/assets/scripts/Meta Objects/Heart.cs | Github Open Source | Open Source | CC-BY-3.0 | null | FayeAndGrumpy | RaymondGrumney | C# | Code | 400 | 994 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Heart : MonoBehaviour {
[Tooltip("The full heart sprite.")]
public Sprite fullHeart;
[Tooltip("The empty heart sprite.")]
public Sprite emptyHeart;
[Tooltip("How big the heart gets on a pulse.")]
public float pulseSca... | 48,784 |
https://github.com/woyaowoyao/jhipster-operator/blob/master/example-app/invoice/src/main/java/com/salaboy/invoice/service/mapper/ShipmentMapper.java | Github Open Source | Open Source | Apache-2.0 | null | jhipster-operator | woyaowoyao | Java | Code | 82 | 271 | package com.salaboy.invoice.service.mapper;
import com.salaboy.invoice.domain.*;
import com.salaboy.invoice.service.dto.ShipmentDTO;
import org.mapstruct.*;
/**
* Mapper for the entity {@link Shipment} and its DTO {@link ShipmentDTO}.
*/
@Mapper(componentModel = "spring", uses = {InvoiceMapper.class})
public inter... | 9,366 |
https://github.com/sengeiou/group_purchase/blob/master/src/main/java/com/mds/group/purchase/order/dao/ReceiptBillDetailMapper.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | group_purchase | sengeiou | Java | Code | 228 | 513 | /*
* Copyright Ningbo Qishan Technology Co., Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable ... | 1,896 |
https://github.com/garora/PortalCMS/blob/master/Portal.CMS.Web/Areas/PageBuilder/ViewModels/Section/MarkupViewModel.cs | Github Open Source | Open Source | MIT | 2,017 | PortalCMS | garora | C# | Code | 23 | 65 | namespace Portal.CMS.Web.Areas.PageBuilder.ViewModels.Section
{
public class MarkupViewModel
{
public int PageSectionId { get; set; }
public string PageSectionBody { get; set; }
}
} | 38,404 |
https://github.com/SkyFoundation/PanguEngine/blob/master/graphics/src/main/java/engine/graphics/graph/ColorOutputInfo.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | PanguEngine | SkyFoundation | Java | Code | 110 | 320 | package engine.graphics.graph;
import engine.graphics.util.BlendMode;
import engine.util.Color;
public class ColorOutputInfo {
private String colorBuffer;
private boolean clear = false;
private Color clearColor = Color.BLACK;
private BlendMode blendMode = BlendMode.DISABLED;
public static ColorOu... | 29,003 |
https://github.com/Stitchous/VisualRust/blob/master/VisualRust/Forms/DebuggingOptionsPage.cs | Github Open Source | Open Source | MIT | 2,016 | VisualRust | Stitchous | C# | Code | 103 | 326 | using System;
using System.Runtime.InteropServices;
using System.Windows.Forms;
using Microsoft.VisualStudio.Shell;
namespace VisualRust.Options
{
[ComVisible(true)]
[Guid("93F42A39-0AF6-40EE-AE2C-1C44AB5F8B15")]
public partial class DebuggingOptionsPage : DialogPage
{
public bool UseCustomGdb... | 50,494 |
https://github.com/AthenaEPI/mipy/blob/master/dmipy/distributions/distributions.py | Github Open Source | Open Source | MIT | 2,022 | mipy | AthenaEPI | Python | Code | 2,029 | 6,175 | # -*- coding: utf-8 -*-
'''
Document Module
'''
from __future__ import division
import pkg_resources
from os.path import join
import numpy as np
from scipy import stats
from scipy import special
from dipy.reconst.shm import real_sym_sh_mrtrix
from dmipy.utils import utils
from scipy import interpolate
from dmipy.core... | 37,287 |
https://github.com/peterhoeg/ros-cli/blob/master/lib/ros/main/project/files/avp | Github Open Source | Open Source | MIT | 2,020 | ros-cli | peterhoeg | Shell | Code | 7 | 38 | #!/bin/bash
# workaround for https://github.com/ansible/ansible/issues/45214
echo ${ROS_MASTER_KEY}
| 45,279 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.