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/aspectran/aspectran/blob/master/with-undertow/src/main/java/com/aspectran/undertow/server/HttpListenerConfig.java | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-free-unknown | 2,023 | aspectran | aspectran | Java | Code | 165 | 377 | /*
* Copyright (c) 2008-2023 The Aspectran Project
*
* 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 applicabl... | 4,534 |
https://github.com/getconversio/simple-storage/blob/master/storage/local.test.js | Github Open Source | Open Source | MIT | null | simple-storage | getconversio | JavaScript | Code | 116 | 311 | 'use strict';
const fs = require('fs'),
Local = require('./local');
const local = new Local({ localDirectory: __dirname + '/../test' });
describe('storage/local', () => {
beforeAll(() => fs.writeFileSync(__dirname + '/../test/foo', Buffer.from('foo')));
afterAll(() => fs.unlinkSync(__dirname + '/../test/foo'))... | 33,191 |
https://github.com/Albeoris/MMXLegacy/blob/master/Legacy.Framework/AssetBundles/Core/AssetKey.cs | Github Open Source | Open Source | MIT | 2,021 | MMXLegacy | Albeoris | C# | Code | 103 | 321 | using System;
namespace AssetBundles.Core
{
internal struct AssetKey : IEquatable<AssetKey>
{
public String Name;
public Type Type;
public AssetKey(String name, Type type)
{
Name = name;
Type = type;
}
public override Boolean Equals(Object obj)
{
if (obj != null && obj is AssetKey)
{
... | 48,824 |
https://github.com/Jovilam77/vonce-sqlbean/blob/master/vonce-sqlbean-core/src/main/java/cn/vonce/sql/helper/Wrapper.java | Github Open Source | Open Source | MIT | 2,021 | vonce-sqlbean | Jovilam77 | Java | Code | 249 | 762 | package cn.vonce.sql.helper;
import cn.vonce.sql.enumerate.SqlLogic;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
/**
* 条件包装器
*
* @author Jovi
* @version 1.0
* @email 766255988@qq.com
* @date 2021年4月28日下午5:49:00
*/
public class Wrapper implements Serializable {
private ... | 14,536 |
https://github.com/Logicalis/eugenio-devices/blob/master/AzureMXChip/MXCHIPAZ3166/core/lib/netxduo/addons/azure_iot/azure_iot_security_module/iot-security-module-core/inc/asc_security_core/model/schema/system_information_json_printer.h | Github Open Source | Open Source | MIT | null | eugenio-devices | Logicalis | C | Code | 77 | 400 | #ifndef SYSTEM_INFORMATION_JSON_PRINTER_H
#define SYSTEM_INFORMATION_JSON_PRINTER_H
/* Generated by flatcc 0.6.1-dev FlatBuffers schema compiler for C by dvide.com */
#include "flatcc/flatcc_json_printer.h"
#include "flatcc/flatcc_prologue.h"
static void AzureIoTSecurity_SystemInformation_print_json_table(flatcc_jso... | 46,994 |
https://github.com/SebastianCarroll/AlgorithmsForJava/blob/master/src/Misc/stacksAndQueues/QueueTest.java | Github Open Source | Open Source | MIT | 2,014 | AlgorithmsForJava | SebastianCarroll | Java | Code | 204 | 901 | package Misc.stacksAndQueues;
import static org.junit.Assert.*;
import org.junit.Test;
public class QueueTest {
@Test
public void testIsEmpty() {
Queue<String> q = new Queue<String>(3);
Boolean isEmpty = q.isEmpty();
assertTrue(isEmpty);
}
@Test
public void testIsFull() {
Queue<String> q = new Queue<S... | 23,334 |
https://github.com/braveh4rt/ErlangPokerGame/blob/master/apps/poker/src/poker.erl | Github Open Source | Open Source | BSD-3-Clause | 2,016 | ErlangPokerGame | braveh4rt | Erlang | Code | 53 | 219 | %%%-------------------------------------------------------------------
%% @doc poker public API
%% @end
%%%-------------------------------------------------------------------
-module(poker).
-behaviour(application).
%% Application callbacks
-export([start/2, stop/1]).
-export([new_game/0, player_join/3]).
%%=======... | 33,889 |
https://github.com/killbilling/recurly-java-library/blob/master/src/main/java/com/ning/billing/recurly/model/Plan.java | Github Open Source | Open Source | Apache-2.0 | 2,023 | recurly-java-library | killbilling | Java | Code | 1,515 | 5,552 | /*
* Copyright 2010-2014 Ning, Inc.
* Copyright 2014-2015 The Billing Project, LLC
*
* The Billing Project licenses this file to you 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:/... | 45,563 |
https://github.com/Narshe1412/Code-Institute-Data-Centric-Project/blob/master/src/app/model/ITimeRecord.ts | Github Open Source | Open Source | Apache-2.0 | null | Code-Institute-Data-Centric-Project | Narshe1412 | TypeScript | Code | 9 | 21 | export interface TimeRecord {
timestamp: number;
amount: number;
}
| 50,165 |
https://github.com/paulbuechner/chakra-ui/blob/master/packages/transition/src/scale-fade.tsx | Github Open Source | Open Source | MIT | 2,022 | chakra-ui | paulbuechner | TypeScript | Code | 238 | 700 | import { cx, __DEV__ } from "@chakra-ui/utils"
import {
AnimatePresence,
HTMLMotionProps,
motion,
Variants as _Variants,
} from "framer-motion"
import * as React from "react"
import {
TransitionDefaults,
Variants,
withDelay,
WithTransitionConfig,
} from "./transition-utils"
interface ScaleFadeOptions {... | 28,511 |
https://github.com/Ron423c/chromium/blob/master/components/arc/enterprise/snapshot_session_controller.cc | Github Open Source | Open Source | BSD-3-Clause-No-Nuclear-License-2014, BSD-3-Clause | 2,022 | chromium | Ron423c | C++ | Code | 422 | 1,712 | // Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "components/arc/enterprise/snapshot_session_controller.h"
#include "base/logging.h"
#include "base/macros.h"
#include "base/memory/ptr_util.h"
#... | 2,803 |
https://github.com/Shashi-rk/azure-sdk-for-java/blob/master/sdk/resourcemanager/azure-resourcemanager-authorization/src/main/java/com/azure/resourcemanager/authorization/fluent/models/MicrosoftGraphWorkbookIcon.java | Github Open Source | Open Source | MIT | 2,022 | azure-sdk-for-java | Shashi-rk | Java | Code | 435 | 1,201 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.authorization.fluent.models;
import com.azure.core.annotation.Fluent;
import com.azure.core.util.logging.ClientLogger;
import co... | 3,843 |
https://github.com/Bekmurod3388/shuaro/blob/master/resources/views/admin/facultets/edit.blade.php | Github Open Source | Open Source | MIT | null | shuaro | Bekmurod3388 | PHP | Code | 149 | 627 | @extends('admin.master')
@section('content')
<div class="col-md-12">
<div class="card">
<div class="card-header">
<div class="row">
<div class="col-10"><h1 class="card-title">Fakultetni yangilash</h1></div>
</div>
<hr>
... | 49,817 |
https://github.com/deepakkus/jijigram/blob/master/vendor/wokster/yii2-owl-carousel-widget/OwlWidget.php | Github Open Source | Open Source | BSD-3-Clause | null | jijigram | deepakkus | PHP | Code | 62 | 291 | <?php
/**
* Created by internetsite.com.ua
* User: Tymofeiev Maksym
* Date: 12.05.2017
* Time: 18:39
*/
namespace wokster\owlcarousel;
use yii\base\Widget;
use yii\bootstrap\Html;
use yii\helpers\Json;
class OwlWidget extends Widget
{
public $plaginOptions = [];
public $theme = false;
public function in... | 33,065 |
https://github.com/NetsoftHoldings/growl/blob/master/Plugins/Displays/Brushed/GrowlBrushedDisplay.h | Github Open Source | Open Source | BSD-3-Clause | 2,021 | growl | NetsoftHoldings | Objective-C | Code | 37 | 121 | //
// GrowlBrushedDisplay.h
// Display Plugins
//
// Created by Ingmar Stein on 12/01/2004.
// Copyright 2004–2011 The Growl Project. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <GrowlPlugins/GrowlDisplayPlugin.h>
@class NSPreferencePane;
@interface GrowlBrushedDisplay : GrowlDisplayPlugin ... | 36,606 |
https://github.com/extralucide/qams/blob/master/atomik/app/includes/Project.class.php | Github Open Source | Open Source | MIT | 2,013 | qams | extralucide | PHP | Code | 2,133 | 9,815 | <?php
/**
* QAMS Framework
* Copyright (c) 2009-2010 Olivier Appere
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR ... | 35,803 |
https://github.com/gabrielhubner/situacaoDeEmergencia/blob/master/src/formulario.js | Github Open Source | Open Source | Apache-2.0 | null | situacaoDeEmergencia | gabrielhubner | JavaScript | Code | 97 | 372 | import React from 'react';
import { View, Button, Text } from 'react-native';
const Formulario = ({ navigation }) => (
<View>
<Text>Incêndio</Text>
<CheckBox value={true} />
</View>
<View >
<Text>Deslizamento de Terra</Text>
<CheckBox value={false} />
</View>
<Vie... | 13,164 |
https://github.com/Vonage/vonage-node-sdk/blob/master/packages/applications/lib/types/ApplicationClassParameters.ts | Github Open Source | Open Source | Apache-2.0 | 2,023 | vonage-node-sdk | Vonage | TypeScript | Code | 34 | 82 | import { AuthOpts } from '@vonage/auth';
import { AuthInterface } from '@vonage/auth';
import { VetchOptions } from '@vonage/vetch';
/**
* @deprecated
*/
export type ApplicationClassParameters = AuthOpts &
VetchOptions & {
auth?: AuthInterface;
};
| 39,692 |
https://github.com/Gradientz/assets-builder/blob/master/src/example.scss | Github Open Source | Open Source | MIT | 2,017 | assets-builder | Gradientz | SCSS | Code | 7 | 21 | $example: "test";
.test {
content: $example;
} | 50,956 |
https://github.com/syhunt/community-scx/blob/master/src/PenTools/Scripts/encode/url.full.lua | Github Open Source | Open Source | BSD-3-Clause | 2,021 | community-scx | syhunt | Lua | Code | 5 | 23 | function Encode(s)
return ctk.url.encodefull(s)
end | 10,335 |
https://github.com/gaoht/house/blob/master/java/classes/cn/testin/analysis/am.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | house | gaoht | Java | Code | 2,335 | 7,385 | package cn.testin.analysis;
import android.content.Context;
import android.os.Environment;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.InputStream;
public class am
{
public static String a(Context paramContext)
{
Object localObject3 = null;
Object localObject2;
if ((a()) ... | 47,522 |
https://github.com/udoprog/condo/blob/master/examples/src/test/java/eu/toolchain/condo/CondoTest.java | Github Open Source | Open Source | Apache-2.0 | null | condo | udoprog | Java | Code | 151 | 571 | package eu.toolchain.condo;
import com.google.common.base.Throwables;
import org.junit.Before;
import org.junit.Test;
import org.mockito.Mockito;
import java.util.concurrent.ForkJoinPool;
import java.util.function.Predicate;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNull;
impo... | 38,868 |
https://github.com/NovaLabsNovaPass/hardware/blob/master/firmware/NovaPass/Disp.cpp | Github Open Source | Open Source | MIT | null | hardware | NovaLabsNovaPass | C++ | Code | 148 | 657 | #include "Disp.h"
extern U8G2_SH1106_128X64_NONAME_1_SW_I2C u8g2;
void Disp::Setup(void) {
uint8_t ypos;
u8g2.begin(); // display
}
void Disp::Writeln(uint8_t line_no, String str) {
char cbuf[32];
str.toCharArray(cbuf,32);
if (line_no < DISP_MAXL) {
strncpy(lines[line_no],cbuf,DISP_MAXCH);
}
}
voi... | 11,558 |
https://github.com/OndernemerspleinLab/PatternLibrary/blob/master/source/css/scss/atoms/typography/_text.scss | Github Open Source | Open Source | MIT | 2,015 | PatternLibrary | OndernemerspleinLab | SCSS | Code | 224 | 802 | html {
font-size: 100%;
@include mqGreaterThan(small) {
font-size: 100%/16*17;
}
@include mqGreaterThan(large) {
font-size: 100%/16*18;
}
}
/* Text-Related Elements */
p {
margin-bottom: 1em;
}
/* Blockquote (is gelijk aan _tip.scss) */
blockquote {
font-style: italic;
border-left: 4px solid getCo... | 18,889 |
https://github.com/jingcao80/Elastos/blob/master/Sources/Elastos/LibCore/tests/bak/ICU/ICUTest/test.cpp | Github Open Source | Open Source | Apache-2.0 | 2,021 | Elastos | jingcao80 | C++ | Code | 365 | 1,694 | #include "test.h"
#include <stdio.h>
#include <Elastos.CoreLibrary.h>
#include <elautoptr.h>
using namespace Elastos;
using namespace Elastos::Core;
CTest::CTest()
{
CICUUtil::AcquireSingleton((IICUUtil**)&icuhep);
}
void assertNotNull(String str)
{
if (!str.IsNull())
{
PFL_EX("expected~~~~")
... | 1,772 |
https://github.com/apache/netbeans/blob/master/enterprise/maven.jaxws/src/org/netbeans/modules/maven/jaxws/wizards/JaxWsClientCreator.java | Github Open Source | Open Source | Apache-2.0 | 2,023 | netbeans | apache | Java | Code | 594 | 2,375 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | 11,151 |
https://github.com/homberghp/toyexam/blob/master/trunk/40_exam/questions/multiset/settoquest.pl | Github Open Source | Open Source | Artistic-2.0 | 2,020 | toyexam | homberghp | Perl | Code | 122 | 493 | #!/usr/bin/perl -w
my ($base,$dir,$correctchoice,$num,$source,%hash,$realcount);
$source="multiset2.txt";
$dir='multi';
$num=1;
$base='provinciesteden';
my @choices;
open(SRC,"$source") or die qq(cannot open file $source\n);
while (<SRC>){
chomp;
next if m/^#/;
if (m/^choices:/){
s/^choices://;
(@choices)... | 9,072 |
https://github.com/HappyPiggy/ECS_Charles/blob/master/Assets/Entitas/Editor/Plugins.meta | Github Open Source | Open Source | MIT | 2,018 | ECS_Charles | HappyPiggy | Unity3D Asset | Code | 16 | 77 | fileFormatVersion: 2
guid: 95d5777ce9d837b4e9d57843c38ff97f
folderAsset: yes
timeCreated: 1533636356
licenseType: Free
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
| 8,716 |
https://github.com/jfitz/BASIC-1973/blob/master/test/statement/print_using_ns/data/print_using_ns.bas | Github Open Source | Open Source | MIT | 2,021 | BASIC-1973 | jfitz | Visual Basic | Code | 39 | 82 | 10 REM TEST PRINT USING
20 LET A = 3.14159
21 LET B = 2.7184
30 PRINT "PRINT USING WITH COMMA"
31 PRINT USING "###.##", A
40 PRINT "PRINT USING WITH SEMICOLON"
41 PRINT USING "###.##"; A
99 END
| 37,843 |
https://github.com/boost-entropy-golang/buildbuddy/blob/master/app/footer/footer.tsx | Github Open Source | Open Source | MIT | 2,022 | buildbuddy | boost-entropy-golang | TypeScript | Code | 62 | 292 | import React from "react";
export default class FooterComponent extends React.Component {
render() {
return (
<div className="footer">
<span>© {new Date().getFullYear()} Iteration, Inc.</span>
<a href="https://buildbuddy.io/terms" target="_blank">
Terms
</a>
<... | 21,510 |
https://github.com/xavierherron/inaturalist/blob/master/app/webpack/observations/show/ducks/quality_metrics.js | Github Open Source | Open Source | MIT | 2,019 | inaturalist | xavierherron | JavaScript | Code | 110 | 263 | import inatjs from "inaturalistjs";
const SET_QUALITY_METRICS = "obs-show/quality_metrics/SET_QUALITY_METRICS";
export default function reducer( state = [], action ) {
switch ( action.type ) {
case SET_QUALITY_METRICS:
return action.metrics;
default:
// nothing to see here
}
return state;
}
... | 6,312 |
https://github.com/MjingGithub/concurrency-practice-demo/blob/master/src/main/java/com/mjing/concurrency/cacheDemo/Computable.java | Github Open Source | Open Source | Apache-2.0 | null | concurrency-practice-demo | MjingGithub | Java | Code | 13 | 43 | package com.mjing.concurrency.cacheDemo;
public interface Computable<A,V> {
V compute(A arg) throws InterruptedException ;
}
| 2,481 |
https://github.com/longkun234/cloudpaas/blob/master/cloudpaas-admin-ui/src/test/java/com/cloudpaas/admin/ui/system/biz/MenuBizTest.java | Github Open Source | Open Source | MIT | 2,021 | cloudpaas | longkun234 | Java | Code | 182 | 1,013 | /**
*
*/
package com.cloudpaas.admin.ui.system.biz;
import java.util.List;
import java.util.Map;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.autoconfigure... | 30,874 |
https://github.com/scalalab/scalalab/blob/master/source/src/main/java/scalaExec/gui/MathDialogs/MinInDerDialog.java | Github Open Source | Open Source | MIT | 2,015 | scalalab | scalalab | Java | Code | 459 | 1,512 | package scalaExec.gui.MathDialogs;
import scalaExec.Interpreter.GlobalValues;
import java.awt.BorderLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import javax.swing.JButton;
import javax.swing.JDialog;
import ja... | 9,274 |
https://github.com/justlep/bitwig/blob/master/bitwigApiStubs/OscInvalidArgumentTypeException.js | Github Open Source | Open Source | MIT | 2,022 | bitwig | justlep | JavaScript | Code | 9 | 22 | /* API Version - 2.3.1 */
function OscInvalidArgumentTypeException() {}
| 44,476 |
https://github.com/diaksizz/Adisatya/blob/master/accounts/models.py | Github Open Source | Open Source | MIT | null | Adisatya | diaksizz | Python | Code | 86 | 390 | from django.db import models
from django.contrib.auth.models import User
# Create your models here.
class Admin(models.Model):
user = models.OneToOneField(User, null=True, blank=True, on_delete=models.CASCADE)
nama = models.CharField(max_length=200, null=True)
alamat = models.CharField(max_length=200, null... | 36,827 |
https://github.com/ranand-twilio/Authy-API-Samples/blob/master/generateQRCode.sh | Github Open Source | Open Source | Apache-2.0 | 2,022 | Authy-API-Samples | ranand-twilio | Shell | Code | 49 | 189 | clear
echo Generate a QR Code for 3rd party authenticator app
echo
echo Request
echo curl -X POST "https://api.authy.com/protected/json/users/\$AUTHY_ID/secret"
echo -H "X-Authy-API-Key: \$AUTHY_API_KEY"
echo -d label="LabelHere"
echo -d qr_size="300"
echo
echo
echo Response
curl -X POST "https://api.authy.com/protec... | 39,459 |
https://github.com/firefly1250/Cassie_CFROST/blob/master/Cassie_Example/+cassie/+constraints/average_pitch.m | Github Open Source | Open Source | BSD-3-Clause | 2,020 | Cassie_CFROST | firefly1250 | MATLAB | Code | 68 | 228 | function [ average_pitch_fun ] = average_pitch( nlp )
%average_pitch constraint for average_pitch
% Creates SymFunction for a average_pitch constraint
%
% Author: Ross Hartley
% Date: 2018-03-19
% Compute function for average_pitch constraint
X = cell(1,nlp.NumNode);
for i = 1:nlp.NumNode
X{i} = SymVariab... | 47,239 |
https://github.com/DEFRA/water-abstraction-service/blob/master/migrations/sqls/20191101101124-billing-tables-down.sql | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, OGL-UK-3.0 | 2,023 | water-abstraction-service | DEFRA | SQL | Code | 174 | 494 | drop table if exists water.billing_transactions;
drop table if exists water.billing_invoice_licences;
drop table if exists water.billing_batch_invoices;
drop table if exists water.billing_invoices;
drop table if exists water.billing_batch_charge_versions;
drop table if exists water.billing_batches;
drop type if exists... | 20,317 |
https://github.com/reels-research/iOS-Private-Frameworks/blob/master/ProactiveSupport.framework/_PASZoneSupport.h | Github Open Source | Open Source | MIT | 2,022 | iOS-Private-Frameworks | reels-research | C | Code | 202 | 744 | /* Generated by RuntimeBrowser
Image: /System/Library/PrivateFrameworks/ProactiveSupport.framework/ProactiveSupport
*/
@interface _PASZoneSupport : NSObject
+ (id)copyArray:(id)arg1 toZone:(struct _NSZone { }*)arg2;
+ (id)copyData:(id)arg1 toZone:(struct _NSZone { }*)arg2;
+ (id)copyDate:(id)arg1 toZone:(struct _... | 25,774 |
https://github.com/William-Owen/KISO/blob/master/src/components/app/DisplayCurrency/index.js | Github Open Source | Open Source | MIT | null | KISO | William-Owen | JavaScript | Code | 7 | 16 | import DisplayCurrency from "./DisplayCurrency"
export default DisplayCurrency
| 49,094 |
https://github.com/lemastero/lotos/blob/master/examples/src/main/scala/lotos/examples/LFStackTest.scala | Github Open Source | Open Source | MIT | 2,020 | lotos | lemastero | Scala | Code | 148 | 481 | package lotos.examples
import java.util.concurrent.atomic.AtomicReference
import cats.effect.{ExitCode, IO, IOApp}
import lotos.model.{Consistency, Gen, TestConfig}
import lotos.testing.LotosTest
import lotos.testing.syntax._
import scala.concurrent.duration._
case class Node[T](value: T, next: Node[T] = null)
cla... | 4,585 |
https://github.com/pedromdev/mongoose-jest-setup/blob/master/src/configurations/mongodb.js | Github Open Source | Open Source | MIT | 2,019 | mongoose-jest-setup | pedromdev | JavaScript | Code | 56 | 192 | const MongoMemoryServer = require('mongodb-memory-server').default;
let mongod;
if (process.env.NODE_ENV === 'test') {
mongod = new MongoMemoryServer({
autoStart: false
});
}
module.exports = {
getMongoD() {
return mongod;
},
async getConnectionUri() {
if (process.env.NODE_ENV === 'test') {
... | 38,995 |
https://github.com/upbeatNow/CAD_Printer/blob/master/printFormsApp1/printFormsApp1/Plot/JoinStyle.cs | Github Open Source | Open Source | MIT | 2,020 | CAD_Printer | upbeatNow | C# | Code | 50 | 122 | //
// Copyright © 2014 Parrish Husband (parrish.husband@gmail.com)
// The MIT License (MIT) - See LICENSE.txt for further details.
//
namespace PiaNO
{
/// <summary>
/// 连接样式
/// </summary>
public enum JoinStyle
{
Miter = 0,
Bevel = 1,
Round = 2,
Diamond = 3,
... | 23,395 |
https://github.com/Joze01/caprisMinsal/blob/master/NextLevelSeven-master/NextLevelSeven-master/NextLevelSeven-master/NextLevelSeven/Parsing/Elements/EncodingFieldParser.cs | Github Open Source | Open Source | ISC, BSD-2-Clause | 2,018 | caprisMinsal | Joze01 | C# | Code | 99 | 286 | using System.Collections.Generic;
using System.Linq;
using NextLevelSeven.Core;
using NextLevelSeven.Diagnostics;
namespace NextLevelSeven.Parsing.Elements
{
/// <summary>Represents the special field at MSH-2, which contains encoding characters for a message.</summary>
internal sealed class EncodingFieldParse... | 24,314 |
https://github.com/JarLob/EventStore/blob/master/src/EventStore.Core/Index/AddResult.cs | Github Open Source | Open Source | Apache-2.0, CC0-1.0 | 2,022 | EventStore | JarLob | C# | Code | 32 | 94 | using System.Collections.Generic;
namespace EventStore.Core.Index {
public class AddResult {
public readonly IndexMap NewMap;
public readonly bool CanMergeAny;
public AddResult(IndexMap newMap, bool canMergeAny) {
NewMap = newMap;
CanMergeAny = canMergeAny;
}
}
}
| 40,878 |
https://github.com/AustinKladke/6.00.1x-MIT-CS-Python/blob/master/Week1/problem3.py | Github Open Source | Open Source | MIT | null | 6.00.1x-MIT-CS-Python | AustinKladke | Python | Code | 107 | 304 | # -*- coding: utf-8 -*-
"""
Created on Fri Jan 29 15:09:52 2021
@author: akladke
"""
overall_lst = []
s = 'azcbobobegghakl'
for i in range(len(s)):
sub_str = s[i:]
sub_str_lst = [] # List gets reset after inner loop is broken out of
current_sub_str = "" # String gets reset after inner loop is broken out... | 1,075 |
https://github.com/CS151-Group-12/Smart-Group-Financial/blob/master/server/database/createTable.sql | Github Open Source | Open Source | MIT | 2,019 | Smart-Group-Financial | CS151-Group-12 | SQL | Code | 242 | 627 | CREATE TABLE `User` (
`userID` INT NOT NULL,
`email` VARCHAR(45) NOT NULL,
`password` VARCHAR(60) NOT NULL
);
CREATE TABLE `Event` (
`eventID` INT NOT NULL,
`name` VARCHAR(45) NOT NULL,
`location` VARCHAR(45) NOT NULL,
`startDate` VARCHAR(45) NOT NULL,
`endDate` VARCHAR(45) NOT NULL
);
CREATE TABLE `Use... | 15,381 |
https://github.com/aclements/perflock/blob/master/cmd/perflock/lock.go | Github Open Source | Open Source | BSD-3-Clause | 2,022 | perflock | aclements | Go | Code | 232 | 659 | // Copyright 2017 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package main
import "sync"
type PerfLock struct {
l sync.Mutex
q []*Locker
}
type Locker struct {
C <-chan bool
c chan<- bool
shared bool
wok... | 7,118 |
https://github.com/RamziGaagai/RobustMP/blob/master/Optimizer/Geodesic_Opt/setup_geodesic_MPC.m | Github Open Source | Open Source | MIT | 2,019 | RobustMP | RamziGaagai | MATLAB | Code | 225 | 1,048 | function setup_geodesic_MPC(n,N,W,dW,n_W)
%%%%% Inputs %%%%%
%n: state-space dimension
%N: Chebyshev polynomial order
%W, dW: W and dW matrix functions
%n_W: states that W is a function of
%%%%% Outputs %%%%%
%geo_Prob: Tomlab problem structure
%T_e: evaluation matrix for geodesic curve
%T_dot_e: evaluation matrix f... | 10,630 |
https://github.com/zzzzzzzs/ApacheSpark-Self-Study/blob/master/SparkCore/src/main/java/spark/core/rdd/Spark19_RDD_Case.scala | Github Open Source | Open Source | MIT | null | ApacheSpark-Self-Study | zzzzzzzs | Scala | Code | 58 | 239 | package spark.core.rdd
import org.apache.spark.{SparkConf, SparkContext}
object Spark19_RDD_Case {
def main(args: Array[String]): Unit = {
val sparkConf = new SparkConf().setMaster("local[*]").setAppName("RDD")
val sc = new SparkContext(sparkConf)
// TODO 小练习:将List(List(1,2),3,List(4,5))... | 16,953 |
https://github.com/limanmana/python-/blob/master/函数/位置参数默认参数键值对参数.py | Github Open Source | Open Source | Apache-2.0 | 2,019 | python- | limanmana | Python | Code | 92 | 566 | # 参数的几种类型
# 位置参数。 一个标识符做形参。位置参数普通和常用。
# def get_max(q,w,e): #这是形参
# max_num = q
# if w > max_num:
# max_num = w
# if e > max_num:
# max_num = e
#
# return max_num
# get_max(3, 8, 7) #这是实参
# # 默认参数。带默认值的参数。step=1
# for i in range(1,10):
# print(i)
# def n(e,w,step=1):
# i =... | 49,034 |
https://github.com/ErnestoVivas/X-HD/blob/master/ADoCSM/Modelica_Library/AixLib/Fluid/FMI/Conversion/Validation/AirToOutletFlowReversal.mo | Github Open Source | Open Source | BSD-3-Clause | 2,019 | X-HD | ErnestoVivas | Modelica | Code | 269 | 1,411 | within AixLib.Fluid.FMI.Conversion.Validation;
model AirToOutletFlowReversal
"Validation model for air to outlet converter with flow reversal enabled"
extends AixLib.Fluid.FMI.Conversion.Validation.AirToOutlet(
allowFlowReversal = true);
BoundaryCondition bouAirNoC(
redeclare package Medium = AixLib.Media... | 43,294 |
https://github.com/gurugio/paip-lisp/blob/master/lisp/mycin-r.lisp | Github Open Source | Open Source | MIT | 2,019 | paip-lisp | gurugio | Common Lisp | Code | 314 | 720 | ;;;; -*- Mode: Lisp; Syntax: Common-Lisp -*-
;;;; Code from Paradigms of AI Programming
;;;; Copyright (c) 1991 Peter Norvig
;;;; File mycin-r.lisp: Sample parameter list and rulebase for mycin.
(requires "mycin")
;;; Parameters for patient:
(defparm name patient t "Patient's name: " t read-line)
(defparm sex patien... | 47,114 |
https://github.com/lucee/lucee-dockerfiles/blob/master/supporting/prewarm.sh | Github Open Source | Open Source | MIT | 2,023 | lucee-dockerfiles | lucee | Shell | Code | 95 | 337 | #!/bin/sh
set -e
LUCEE_MINOR=$1
if [ "$LUCEE_MINOR" = "5.2" ]; then
# legacy warmup support for Lucee 5.2 only
/usr/local/tomcat/bin/catalina.sh start
while [ ! -f "/opt/lucee/web/logs/application.log" ] ; do sleep 2; done
while [ ! -d "/opt/lucee/server/lucee-server/deploy" ] ; do sleep 2; done
... | 1,353 |
https://github.com/nobuyo/stone/blob/master/src/chap14/JavaLoader.java | Github Open Source | Open Source | MIT | 2,022 | stone | nobuyo | Java | Code | 67 | 230 | package chap14;
import stone.StoneException;
import javassist.CannotCompileException;
import javassist.ClassPool;
import javassist.CtClass;
import javassist.CtMethod;
public class JavaLoader {
protected ClassLoader loader;
protected ClassPool cpool;
public JavaLoader() {
cpool = new ClassPool(null)... | 35,385 |
https://github.com/J-Pster/unit-tests/blob/master/tests/getCharacter.spec.js | Github Open Source | Open Source | MIT | null | unit-tests | J-Pster | JavaScript | Code | 388 | 939 | /* eslint-disable max-len */
/* eslint-disable no-unused-vars */
const getCharacter = require('../src/getCharacter');
/*
Essa função recebe como parâmetro o nome de um personagem e retorna um objeto com seu nome, classe e frases.
O retorno será de acordo com a seguinte relação:
Parâmetro | Nome | Cl... | 48,118 |
https://github.com/mukhtarbayerouniversity/fairensics/blob/master/fairensics/methods/disparate_impact.py | Github Open Source | Open Source | MIT | 2,020 | fairensics | mukhtarbayerouniversity | Python | Code | 1,590 | 5,011 | """Wrapper and functions for DisparateImpact remover from fair-classification.
The base class _DisparateImpact implements predict function for both methods.
The classes AccurateDisparateImpact and FairDisparateImpact inherit from
_DisparateImpact and implement fit() functions with different input signatures
and algor... | 14,386 |
https://github.com/philip1337/ecorp-matrix-viewer/blob/master/src/node/src/main/java/net/MasterPackets.java | Github Open Source | Open Source | MIT | 2,019 | ecorp-matrix-viewer | philip1337 | Java | Code | 61 | 163 | package net;
import message.HeloMessage;
public class MasterPackets {
public static HeloMessage CreateHelo(int version, String magic, int width,
int height, long time, String vmVersion, String vmName, String hostname) {
HeloMessage msg = new HeloMessage();
... | 3,732 |
https://github.com/KPGY/frontend16/blob/master/node_modules/html2canvas/dist/types/css/ITypeDescriptor.d.ts | Github Open Source | Open Source | MIT | 2,021 | frontend16 | KPGY | TypeScript | Code | 26 | 60 | import { CSSValue } from './syntax/parser';
import { Context } from '../core/context';
export interface ITypeDescriptor<T> {
name: string;
parse: (context: Context, value: CSSValue) => T;
}
| 37,518 |
https://github.com/aqfaridi/Competitve-Programming-Codes/blob/master/SPOJ/SPOJ/PQUEUE.cpp | Github Open Source | Open Source | MIT | null | Competitve-Programming-Codes | aqfaridi | C++ | Code | 91 | 417 | #include <iostream>
#include <cstdio>
#include <cstring>
#include <cmath>
#include <algorithm>
#include <deque>
#include <utility>
using namespace std;
deque<pair<int,int> > q;
int main()
{
int t,n,pos,count,priority,num,posnum;
bool b;
scanf("%d",&t);
while(t--)
{
count = 0;
q.clear... | 39,957 |
https://github.com/xliangwu/com.caveup.machine_learn/blob/master/yinbaojian/crawl_content_chrome2.py | Github Open Source | Open Source | Apache-2.0 | 2,018 | com.caveup.machine_learn | xliangwu | Python | Code | 167 | 854 | import csv
import re
import time
from bs4 import BeautifulSoup
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
from selenium.webdriver.common.by import By
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.support.ui import WebDriverWait
def ... | 50,046 |
https://github.com/FireTS/rbxts-visualize/blob/master/src/index.ts | Github Open Source | Open Source | Apache-2.0 | 2,021 | rbxts-visualize | FireTS | TypeScript | Code | 499 | 1,706 | import Object from "@rbxts/object-utils";
import { RunService, Workspace } from "@rbxts/services";
import { ConfigureSettings, HandleAdornments, Swappable } from "types";
export class Visualizer {
private config: ConfigureSettings = {
enabled: true,
color: new Color3(1, 1, 1),
alwaysOnTop: true,
vectorRadius:... | 28,388 |
https://github.com/andrewosh/hypercontainer/blob/master/lib/docker.js | Github Open Source | Open Source | MIT | 2,016 | hypercontainer | andrewosh | JavaScript | Code | 699 | 2,001 | var path = require('path')
var from = require('from2')
var cuid = require('cuid')
var proc = require('child_process')
var pump = require('pumpify')
var tar = require('tar-stream')
var sub = require('subleveldown')
var Swarm = require('discovery-swarm')
var Docker = require('dockerode')
var mkdirp = require('mkdirp')
va... | 32,362 |
https://github.com/digideskio/geoportal-server-harvester/blob/master/geoportal-connectors/geoportal-harvester-ags/src/main/java/com/esri/geoportal/harvester/ags/AgsApplication.java | Github Open Source | Open Source | Apache-2.0 | 2,016 | geoportal-server-harvester | digideskio | Java | Code | 196 | 625 | /*
* Copyright 2016 Esri, 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 ... | 42,644 |
https://github.com/kuantingchen04/google-test-template/blob/master/run.sh | Github Open Source | Open Source | RSA-MD | null | google-test-template | kuantingchen04 | Shell | Code | 1 | 11 | ./build/test/unittest_all
| 17,317 |
https://github.com/mariamelfeky/Ottica-Store/blob/master/resources/views/lenseBrand/edit.blade.php | Github Open Source | Open Source | MIT | 2,020 | Ottica-Store | mariamelfeky | Blade | Code | 88 | 496 | @extends('layouts.admin')
@section('content')
<div class="container">
<div class="d-sm-flex align-items-center justify-content-between mb-4">
<h1 class="h2 mb-0 text-black-800">Edit Brand</h1>
<a href="{{route('lenseBrand.index')}}" class="btn btn-icons btn-rounded btn-outline-info"><i class="fas fa-list fa-sm ... | 20,687 |
https://github.com/ischubert/gym-physx/blob/master/tests/test_box_env.py | Github Open Source | Open Source | MIT | 2,021 | gym-physx | ischubert | Python | Code | 2,340 | 9,151 | # %%
"""
Tests for the PhysxPushingEnv
"""
import os
import glob
import json
import pickle
import time
import numpy as np
import matplotlib.pyplot as plt
import pytest
import gym
from stable_baselines3 import HER, DDPG, SAC, TD3
from gym_physx.envs.shaping import PlanBasedShaping
from gym_physx.generators.plan_generat... | 9,868 |
https://github.com/archeranimesh/HeadFirstPython/blob/master/SRC/Chapter_02-List-Data/04_panic.py | Github Open Source | Open Source | MIT | 2,020 | HeadFirstPython | archeranimesh | Python | Code | 66 | 178 | phrase = "Don't panic!"
plist = list(phrase)
print(phrase)
print(plist)
# remove the last 4 char "nic!"
for i in range(4):
plist.pop()
# Remove the first char, D
plist.pop(0)
# Remove the ', list is ont pa
plist.remove("'")
# Swap last 2 character, list is ont ap
plist.extend([plist.pop(), plist.pop()])
# Shifts... | 31,067 |
https://github.com/mpsitech/wdbe-WhizniumDBE/blob/master/japiwdbe/DpchEngWdbeAck.java | Github Open Source | Open Source | MIT | 2,021 | wdbe-WhizniumDBE | mpsitech | Java | Code | 51 | 152 | /**
* \file DpchEngWdbeAck.java
* Wdbe Java API package ack engine dispatch block
* \copyright (C) 2018-2020 MPSI Technologies GmbH
* \author Alexander Wirthmueller (auto-generation)
* \date created: 5 Dec 2020
*/
// IP header --- ABOVE
package apiwdbe;
public class DpchEngWdbeAck extends DpchEngWdbe {
publ... | 46,623 |
https://github.com/AnnaFilinova/project1/blob/master/venv/Lib/site-packages/bokeh/server/static/js/types/models/widgets/spinner.d.ts | Github Open Source | Open Source | MIT | null | project1 | AnnaFilinova | TypeScript | Code | 132 | 472 | import { NumericInputView, NumericInput } from "./numeric_input";
import * as p from "../../core/properties";
export declare class SpinnerView extends NumericInputView {
model: Spinner;
protected wrapper_el: HTMLDivElement;
protected btn_up_el: HTMLButtonElement;
protected btn_down_el: HTMLButtonElement... | 16,026 |
https://github.com/SnitavetsIV/MysteryShopper/blob/master/ui/app/mock.js | Github Open Source | Open Source | MIT | 2,016 | MysteryShopper | SnitavetsIV | JavaScript | Code | 227 | 747 | (function (appModule) {
angular.module('app-mock', ['ngMockE2E'])
.run(function ($httpBackend) {
//LOCAL STORAGE
var userData = [
{
id: 1,
username: 'Admin',
password: 'Admin',
userType: 'Admin'
},
{
id: 2,
username:... | 20,737 |
https://github.com/lyh-ADT/Shoots/blob/master/Shoots/test/shooter.py | Github Open Source | Open Source | MIT | 2,022 | Shoots | lyh-ADT | Python | Code | 86 | 370 | import unittest
from Shoots.bin.map import Map
from Shoots.bin.shooter import Shooter
from Shoots.bin.info import Info
class TestCanSeeMethod(unittest.TestCase):
def test_vertical(self):
m = Map(2)
m.map = [
[Map.ROAD, Map.ROAD],
[Map.ROAD, Map.ROAD]
]
s1 = ... | 40,476 |
https://github.com/W-YXN/MyNOIPProjects/blob/master/cut.cpp | Github Open Source | Open Source | Apache-2.0 | null | MyNOIPProjects | W-YXN | C++ | Code | 86 | 224 | #include <iostream>
#include <cstdlib>
#include <cmath>
#include <algorithm>
#include <queue>
using namespace std;
long long ans = 0;
int main()
{
priority_queue<int, vector<int>, greater<int> > q;
int n;
cin >> n;
for (int i = 0; i < n; i++)
{
int tmp;
cin >> tmp;
q.push(t... | 13,995 |
https://github.com/ESSICS/openxal-fx/blob/master/xaos.tools.module/src/test/java/se/europeanspallationsource/xaos/tools/lang/PublicOuterSubClass2.java | Github Open Source | Open Source | Apache-2.0 | 2,019 | openxal-fx | ESSICS | Java | Code | 12 | 51 | package se.europeanspallationsource.xaos.tools.lang;
@SuppressWarnings( "ClassWithoutLogger" )
public class PublicOuterSubClass2 extends PackageOuterClass {
}
| 17,732 |
https://github.com/ichisadashioko/EPiServer.Forms.Samples/blob/master/Implementation/Elements/DateTimeElementBlock.cs | Github Open Source | Open Source | Apache-2.0 | null | EPiServer.Forms.Samples | ichisadashioko | C# | Code | 455 | 1,669 | using EPiServer.Core;
using EPiServer.DataAbstraction;
using EPiServer.DataAnnotations;
using EPiServer.Forms.Core;
using EPiServer.Forms.Core.Internal;
using EPiServer.Forms.Core.Models.Internal;
using EPiServer.Forms.EditView;
using EPiServer.Forms.EditView.DataAnnotations;
using EPiServer.Forms.EditView.Models.Inte... | 36,247 |
https://github.com/khangaikhuu-mstars/mstars-exercises/blob/master/anar/react/my-react-delivery-menu/src/App.js | Github Open Source | Open Source | Apache-2.0 | null | mstars-exercises | khangaikhuu-mstars | JavaScript | Code | 62 | 176 | import './App.css';
import { BrowserRouter, Route } from 'react-router-dom';
import { Container } from 'react-bootstrap';
import Header from './Header'
import Home from './Home'
import Orders from './Orders'
import Delivery from './Delivery'
function App() {
return (
<BrowserRouter>
<Contai... | 9,551 |
https://github.com/felix-seifert/network-programming-project/blob/master/frontend/src/screens/PlaceCreateScreen.js | Github Open Source | Open Source | MIT | 2,021 | network-programming-project | felix-seifert | JavaScript | Code | 206 | 787 | import React, { PureComponent } from "react";
import TextField from "@material-ui/core/TextField/TextField";
import Button from "@material-ui/core/Button";
import { withStyles } from "@material-ui/styles";
import { toast } from "react-toastify";
import "react-toastify/dist/ReactToastify.css";
import { Redirect } from "... | 20,992 |
https://github.com/Cindia-blue/openair-cn-lixh/blob/master/build/git_submodules/freeDiameter/build/extensions/rt_busypeers/CMakeFiles/rt_busypeers.dir/build.make | Github Open Source | Open Source | BSD-3-Clause, LicenseRef-scancode-unknown-license-reference, Apache-2.0, BSD-2-Clause, BSD-2-Clause-Views | 2,019 | openair-cn-lixh | Cindia-blue | Makefile | Code | 614 | 6,218 | # CMAKE generated file: DO NOT EDIT!
# Generated by "Unix Makefiles" Generator, CMake Version 3.10
# Delete rule output on recipe failure.
.DELETE_ON_ERROR:
#=============================================================================
# Special targets provided by cmake.
# Disable implicit rules so canonical targe... | 720 |
https://github.com/phad92/cac-v1/blob/master/resources/views/livewire/member/create-index.blade.php | Github Open Source | Open Source | MIT | null | cac-v1 | phad92 | PHP | Code | 361 | 1,656 | <form wire:submit.prevent="processForm" class="needs-validation">
@include('layouts.partials.utils')
@yield('success')
@yield('errors')
@csrf
<div class="form-row">
<div class="col-md-6 mb-3">
<label for="first_name">First name<sub class="text-danger">*</sub><... | 16,164 |
https://github.com/Bvdldf/ABP/blob/master/modules/PurchaseOrder/actions/PaxHeader/GetTaxes.php | Github Open Source | Open Source | PHP-3.0, Apache-2.0, ECL-2.0 | null | ABP | Bvdldf | PHP | Code | 4 | 26 | 30 mtime=1556800944.261386113
24 SCHILY.fflags=extent
| 26,885 |
https://github.com/majweb/xml/blob/master/database/factories/OrderFactory.php | Github Open Source | Open Source | MIT | null | xml | majweb | PHP | Code | 113 | 422 | <?php
namespace Database\Factories;
use Illuminate\Support\Str;
use Illuminate\Database\Eloquent\Factories\Factory;
/**
* @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\Order>
*/
class OrderFactory extends Factory
{
/**
* Define the model's default state.
*
* @return array<... | 17,733 |
https://github.com/arangodb/arangodb/blob/master/arangod/Agency/AsyncAgencyComm.h | Github Open Source | Open Source | Apache-2.0, BSD-3-Clause, ICU, Zlib, GPL-1.0-or-later, OpenSSL, ISC, LicenseRef-scancode-gutenberg-2020, MIT, GPL-2.0-only, CC0-1.0, BSL-1.0, LicenseRef-scancode-autoconf-simple-exception, LicenseRef-scancode-pcre, Bison-exception-2.2, LicenseRef-scancode-public-domain, JSON, BSD-2-Clause, LicenseRef-scancode-unknown-l... | 2,023 | arangodb | arangodb | C++ | Code | 905 | 2,997 | ////////////////////////////////////////////////////////////////////////////////
/// DISCLAIMER
///
/// Copyright 2014-2023 ArangoDB GmbH, Cologne, Germany
/// Copyright 2004-2014 triAGENS GmbH, Cologne, Germany
///
/// Licensed under the Apache License, Version 2.0 (the "License");
/// you may not use this file except... | 19,549 |
https://github.com/toilatester/sample-automation-frameworks-across-languages/blob/master/java/ta-cucumber-test/src/test/java/com/mh/ta/test/SearchStoryTestPassed.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | sample-automation-frameworks-across-languages | toilatester | Java | Code | 29 | 173 |
package com.mh.ta.test;
import com.mh.ta.core.base.BaseCucumberTestNG;
import cucumber.api.CucumberOptions;
@CucumberOptions(features = "src/test/resources/features/SearchWithPassed.feature", glue = { "com.mh.ta.test.stepdefs",
"com.mh.ta.core.base" }, plugin = { "com.mh.ta.core.report.CucumberReportListener",
... | 45,227 |
https://github.com/goofmint/OnsenUI-Tab-Nav/blob/master/src/NewsDetail.vue | Github Open Source | Open Source | MIT | 2,018 | OnsenUI-Tab-Nav | goofmint | Vue | Code | 40 | 209 | <template>
<v-ons-page>
<h2>ニュース詳細</h2>
<p style="text-align: center">
<v-ons-button @click="popPage" style="margin: 6px 0">戻る</v-ons-button>
<v-ons-button @click="toHomeDetail" style="margin: 6px 0">ホーム詳細へ</v-ons-button>
</p>
</v-ons-page>
</template>
<script>
export default {
key: 'N... | 10,116 |
https://github.com/joseortizd/event-handler-corporate/blob/master/lib/index.d.ts | Github Open Source | Open Source | Apache-2.0 | null | event-handler-corporate | joseortizd | TypeScript | Code | 24 | 65 | import { EventModel } from "./business/models/event.model";
import { eventHandler } from "./business/event-subscriber/eventHandler";
export declare function publishEvent(event: EventModel): Promise<boolean>;
export declare function subscribeEvent(handler: eventHandler): void;
| 33,910 |
https://github.com/keitakurita/slack_tools/blob/master/tests/test_notify.py | Github Open Source | Open Source | MIT | 2,022 | slack_tools | keitakurita | Python | Code | 86 | 424 | import pytest
import jupyter_slack
def test_notify():
jupyter_slack.notify_self("hello world")
def test_context_manager_no_exception():
with jupyter_slack.Monitor("test no exception", time=False):
pass
def test_context_manager_no_exception_time():
with jupyter_slack.Monitor("test no exception tim... | 34,402 |
https://github.com/deg/batik/blob/master/batik-ext/src/main/java/org/w3c/dom/events/KeyboardEvent.java | Github Open Source | Open Source | Apache-2.0 | 2,018 | batik | deg | Java | Code | 952 | 2,311 | /*
* Copyright (c) 2006 World Wide Web Consortium,
*
* (Massachusetts Institute of Technology, European Research Consortium for
* Informatics and Mathematics, Keio University). All Rights Reserved. This
* work is distributed under the W3C(r) Software License [1] in the hope that
* it will be useful, but WITHOUT A... | 23,343 |
https://github.com/Valentine1996/FamilyTime/blob/master/src/main/java/com/familytime/notification/model/service/NotificationService.java | Github Open Source | Open Source | MIT | 2,017 | FamilyTime | Valentine1996 | Java | Code | 106 | 256 | /** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *
* *
* @copyright 2016 (c), by Valentine
*
* @author <a href="mailto:valentunnamisnuk@gmail.com">Valentyn Namisnyk</a>
*
* @date 2016-09-05 10:43 :: 2016-09-05 10:46
*
* @address... | 26,264 |
https://github.com/david-driscoll/Swashbuckle.AspNetCore/blob/master/test/Swashbuckle.AspNetCore.SwaggerGen.Test/Annotations/XmlCommentsSchemaFilterTests.cs | Github Open Source | Open Source | MIT | 2,019 | Swashbuckle.AspNetCore | david-driscoll | C# | Code | 152 | 623 | using System;
using System.Collections.Generic;
using System.Xml.XPath;
using System.Reflection;
using Newtonsoft.Json.Serialization;
using Xunit;
using Swashbuckle.AspNetCore.Swagger;
namespace Swashbuckle.AspNetCore.SwaggerGen.Test
{
public class XmlCommentsSchemaFilterTests
{
[Theory]
[Inli... | 40,500 |
https://github.com/Matthew-Lancaster/matthew-lancaster/blob/master/SCRIPTER CODE -- VB6/VB6/VB-NT/00_Best_VB_01/#0 GRAPHIC PATTERN ANIMATION/PolyGons Roy Jenner/Sample_Display.frm | Github Open Source | Open Source | Unlicense | null | matthew-lancaster | Matthew-Lancaster | Visual Basic | Code | 54 | 153 | VERSION 5.00
Begin VB.Form Display2
Caption = "Form1"
ClientHeight = 5010
ClientLeft = 11175
ClientTop = 315
ClientWidth = 6615
LinkTopic = "Form1"
ScaleHeight = 5010
ScaleWidth = 6615
Visible = 0 'False
End
Attribute VB_Na... | 13,516 |
https://github.com/MatthiasSchilder/DotSpatial/blob/master/Source/Core/DotSpatial.Controls/LayoutMap.cs | Github Open Source | Open Source | MIT, LGPL-2.0-or-later | 2,023 | DotSpatial | MatthiasSchilder | C# | Code | 981 | 2,802 | // Copyright (c) DotSpatial Team. All rights reserved.
// Licensed under the MIT license. See License.txt file in the project root for full license information.
using System;
using System.ComponentModel;
using System.Drawing;
using System.Drawing.Imaging;
using DotSpatial.Data;
using NetTopologySuite.Geometries;
nam... | 3,996 |
https://github.com/klemenm81/reflection/blob/master/libjobject/exceptions/MethodWithNArgumentsNotFound.h | Github Open Source | Open Source | Apache-2.0 | null | reflection | klemenm81 | C | Code | 50 | 163 | #pragma once
#include "Exception.h"
#include <string>
class MethodWithNArgumentsNotFound : public Exception {
private:
std::string m_errorMsg;
public:
MethodWithNArgumentsNotFound(const char *methodName, size_t nArguments) : m_errorMsg(
std::string("Method ") +
std::string(methodName) +
std::string(" with ") ... | 31,481 |
https://github.com/se-kiss/api-gateway/blob/master/src/search/search.dto.ts | Github Open Source | Open Source | MIT | null | api-gateway | se-kiss | TypeScript | Code | 101 | 275 | import { InputType, Field } from '@nestjs/graphql';
@InputType()
export class SearchArgs {
@Field(() => String)
text: string;
@Field(() => Number)
from: number;
@Field(() => Number)
size: number;
@Field(() => [String], { nullable: true, defaultValue: [] })
tags?: string[];
@Field(() => [String], ... | 18,348 |
https://github.com/HODEIM/ListaTareas/blob/master/resources/views/verbusquedatarea.blade.php | Github Open Source | Open Source | MIT | null | ListaTareas | HODEIM | PHP | Code | 33 | 170 | @extends('buscarTarea')
@section('verbusqueda')
<div>
<table class="table table-hover table-striped m-auto fondoTabla">
<thead>
<tr>
<th><h2>Tarea:</h2></th>
</tr>
</thead>
<tbody>
@foreach ( $tarea as $resultado)
{{csrf... | 25,422 |
https://github.com/Ivan-Zaitsau/java-extensions/blob/master/Collections/src/zjava/collection/HugeListSupport.java | Github Open Source | Open Source | MIT | null | java-extensions | Ivan-Zaitsau | Java | Code | 76 | 173 | package zjava.collection;
/**
* Marker interface which indicates that list can handle more than
* <tt>Integer.MAX_VALUE</tt> elements and provides means of accessing
* elements beyond this limit.
*
* @since Zjava 1.0
*
* @author Ivan Zaitsau
*
* @see HugeList
*/
public interface HugeListSupport<E> extend... | 17,016 |
https://github.com/nh-live/dgraph-sql/blob/master/src/main/java/com/ke/search/parser/GraphqlBuilder.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | dgraph-sql | nh-live | Java | Code | 1,607 | 6,023 | package com.ke.search.parser;
import com.ke.search.antlr.GraphSQLBaseVisitor;
import com.ke.search.antlr.GraphSQLParser;
import com.ke.search.exception.ParseException;
import java.util.*;
/**
* @author zhaoxiang
*/
public class GraphqlBuilder extends GraphSQLBaseVisitor<Void> {
private ParseState parseState;
... | 15,299 |
https://github.com/qbox/drone/blob/master/vendor/github.com/drone/mq/stomp/option_test.go | Github Open Source | Open Source | Apache-2.0 | 2,021 | drone | qbox | Go | Code | 261 | 849 | package stomp
import (
"bytes"
"testing"
)
func TestOptions(t *testing.T) {
opt := WithAck("auto")
msg := NewMessage()
msg.Apply(opt)
if !bytes.Equal(msg.Ack, AckAuto) {
t.Errorf("Want WiathAck to apply ack header")
}
opt = WithCredentials("janedoe", "password")
msg = NewMessage()
msg.Apply(opt)
if stri... | 28,068 |
https://github.com/enterstudio/plivo-salesforce/blob/master/src/classes/PlivoTransferResponse.cls | Github Open Source | Open Source | MIT | 2,017 | plivo-salesforce | enterstudio | Apex | Code | 66 | 148 | public class PlivoTransferResponse {
public Integer server_code ;
public String message ;
public List<String> call_uuids ;
public String error ;
public String api_id ;
public PlivoTransferResponse() {
// empty
}
public override String toString() {
re... | 9,533 |
https://github.com/calvinm298/Slogo/blob/master/src/commands/AskWith.java | Github Open Source | Open Source | MIT | 2,018 | Slogo | calvinm298 | Java | Code | 55 | 187 | package commands;
import java.util.ArrayList;
import java.util.List;
import Turtle.Turtle;
public class AskWith extends Command{
private final static int numParams = 2;
@Override
double execute(List<CommandNode> children, Turtle t) {
double retVal = 0;
CommandNode bracketNode1 = children.get(0);
CommandNo... | 13,738 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.