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/MarceloSantosCorrea/laravel-create-database/blob/master/src/Console/Commands/Database.php | Github Open Source | Open Source | MIT | 2,019 | laravel-create-database | MarceloSantosCorrea | PHP | Code | 282 | 868 | <?php
namespace CreateDatabase\Console\Commands;
use Illuminate\Console\Command;
class Database extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'make:database {database?} {user?} {pass?} {host?} {driver?}';
/**
* T... | 27,126 |
https://github.com/mfkiwl/Kilsyth-fpga-usb3-ft601/blob/master/3rdparty/D3XXPython_Release1.0/ftd3xx/demo/datastreaming.py | Github Open Source | Open Source | 0BSD | 2,020 | Kilsyth-fpga-usb3-ft601 | mfkiwl | Python | Code | 2,002 | 6,853 | import ftd3xx
import sys
if sys.platform == 'win32':
import ftd3xx._ftd3xx_win32 as _ft
elif sys.platform == 'linux':
import ftd3xx._ftd3xx_linux as _ft
if sys.version_info.major == 3:
import queue
elif sys.version_info.major == 2:
import Queue as queue
import datetime
import time
import timeit
import b... | 174 |
https://github.com/ryanrdetzel/CodeCache/blob/master/app/views/snippets/search.json.jbuilder | Github Open Source | Open Source | MIT | 2,014 | CodeCache | ryanrdetzel | Ruby | Code | 15 | 64 | json.snippets do
json.array!(@snippets) do |snippet|
json.uuid snippet.uuid
json.title snippet.title
json.content snippet.content
json.language snippet.language
end
end
| 46,657 |
https://github.com/umich-dbgroup/Zombie/blob/master/src/java/src/edu/umich/eecs/featext/harness/Test.java | Github Open Source | Open Source | MIT | 2,021 | Zombie | umich-dbgroup | Java | Code | 166 | 836 | package edu.umich.eecs.featext.harness;
import java.io.FileNotFoundException;
import java.util.ArrayList;
import org.apache.hadoop.fs.Path;
import edu.umich.eecs.featext.DataSources.DataSource;
import edu.umich.eecs.featext.DataSources.WikipediaDataSource;
import edu.umich.eecs.featext.Policies.ClassifierPolicy;
imp... | 22,690 |
https://github.com/efganmesediyev456/commersiya/blob/master/app/Http/Controllers/Frontend/OrderController.php | Github Open Source | Open Source | MIT | 2,020 | commersiya | efganmesediyev456 | PHP | Code | 654 | 2,612 | <?php
namespace App\Http\Controllers\Frontend;
use App\Components\GoldenpayUtils;
use App\Http\Controllers\Controller;
use App\License;
use App\MinistraClient;
use App\Package;
use App\Payment;
use App\Period;
use App\Service;
use App\Subscription;
use App\Tariff;
use Carbon\Carbon;
use GuzzleHttp\Client;
use Illumina... | 12,667 |
https://github.com/olegtarasov/GrammarEngine/blob/master/src/dictionary.src/fr_pronouns2.sol | Github Open Source | Open Source | MIT | 2,021 | GrammarEngine | olegtarasov | Gerber Image | Code | 49 | 122 | automat sg
{
entry qui : FR_PRONOUN2
{
{ "qui" }
{ "qu'" }
}
entry que : FR_PRONOUN2
{
{ "que" }
{ "qu'" }
}
entry ce : FR_PRONOUN
{
{ "ce" }
{ "c'" }
}
entry cette : FR_PRONOUN
{
{ "cette" }
}
}
| 5,729 |
https://github.com/davi-barboza/nestjs-graphql-typeorm/blob/master/src/produtos/entities/produto.entity.ts | Github Open Source | Open Source | MIT | null | nestjs-graphql-typeorm | davi-barboza | TypeScript | Code | 33 | 95 | import { Field, Float, ObjectType } from '@nestjs/graphql';
import { Column, Entity, PrimaryColumn } from 'typeorm';
@ObjectType()
@Entity('produto')
export class Produto {
@Field()
@PrimaryColumn()
produtoId: string;
@Field(() => Float)
@Column()
valorUnitario: number;
}
| 50,148 |
https://github.com/showstop/gtb-client/blob/master/Assets/Scene/SampleTrack/SampleTrack_04_1.unity | Github Open Source | Open Source | MIT | 2,019 | gtb-client | showstop | Unity3D Asset | Code | 5,734 | 23,590 | %YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!29 &1
OcclusionCullingSettings:
m_ObjectHideFlags: 0
serializedVersion: 2
m_OcclusionBakeSettings:
smallestOccluder: 5
smallestHole: 0.25
backfaceThreshold: 100
m_SceneGUID: 00000000000000000000000000000000
m_OcclusionCullingData: {fileID: 0}
--- !u!... | 49,054 |
https://github.com/laraxot/module_food/blob/master/Models/ProfilePrivacy.php | Github Open Source | Open Source | MIT | 2,023 | module_food | laraxot | PHP | Code | 146 | 601 | <?php
declare(strict_types=1);
namespace Modules\Food\Models;
/**
* Modules\Food\Models\ProfilePrivacy.
*
* @property int $id
* @property int|null $user_id
* @property int|null $flag_id
* @property string|null $flag_v... | 28,800 |
https://github.com/Guardwu2015/three-boilerplate/blob/master/src/modules/template.js | Github Open Source | Open Source | WTFPL | 2,016 | three-boilerplate | Guardwu2015 | JavaScript | Code | 14 | 35 | import THREE from '../../lib/three';
export function init(scene) {
}
export function update(timestamp) {
}
| 27,898 |
https://github.com/ssn1992/impact/blob/master/app/Http/Controllers/Lead/MapsController.php | Github Open Source | Open Source | MIT | null | impact | ssn1992 | PHP | Code | 352 | 1,352 | <?php
namespace App\Http\Controllers\Lead;
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
use App\Models\Lead_request;
use Auth;
class MapsController extends Controller
{
public function __construct()
{
$this->middleware('auth');
}
/**
* Gets All countries contabliza... | 17,806 |
https://github.com/chrish-2017/dashboard_demo/blob/master/src/utils/iview_i18n.js | Github Open Source | Open Source | MIT | null | dashboard_demo | chrish-2017 | JavaScript | Code | 94 | 623 | import iview_zhCN from 'iview/src/locale/lang/zh-CN';//简体中文
import iview_enUS from 'iview/src/locale/lang/en-US';//英文
import iview_zhTW from 'iview/src/locale/lang/zh-TW';//繁体中文
import iview_trTR from 'iview/src/locale/lang/tr-TR';//土耳其语
import iview_esES from 'iview/src/locale/lang/es-ES';//西班牙语
import iview_jaJP from... | 39,684 |
https://github.com/lucidd/rpm4s/blob/master/repo-utils/shared/src/main/scala/rpm4s/repo/data/Repomd.scala | Github Open Source | Open Source | MIT | 2,021 | rpm4s | lucidd | Scala | Code | 50 | 188 | package rpm4s.repo.data
import rpm4s.repo.data.Data.{Primary, UpdateInfo}
case class Repomd(
revision: Option[Long],
primary: Option[Primary],
updateinfo: Option[UpdateInfo]
)
object Repomd {
case class RepoMdBuilder(
revision: Option[Long],
primary: Option[Primary],
updateinfo: Option[Upd... | 37,988 |
https://github.com/akkirilov/SoftUniProject/blob/master/10_JS_Applications/JS_Apps/WebContent/12_ExamPrep/templates/posts/postAuthorsControlls.hbs | Github Open Source | Open Source | MIT | 2,018 | SoftUniProject | akkirilov | null | Spoken | 8 | 58 | <li class="action"><a class="editLink" href="#/edit/{{_id}}">edit</a></li>
<li class="action"><a class="deleteLink" href="#/delete/{{_id}}">delete</a></li> | 6,537 |
https://github.com/ContainerSolutions/jkube-operator-sdk/blob/master/operator-framework-core/src/main/java/io/javaoperatorsdk/operator/api/config/DefaultResourceConfiguration.java | Github Open Source | Open Source | Apache-2.0 | 2,019 | jkube-operator-sdk | ContainerSolutions | Java | Code | 110 | 390 | package io.javaoperatorsdk.operator.api.config;
import java.util.Set;
import io.fabric8.kubernetes.api.model.HasMetadata;
import static io.javaoperatorsdk.operator.api.reconciler.Constants.DEFAULT_NAMESPACES_SET;
public class DefaultResourceConfiguration<R extends HasMetadata>
implements ResourceConfiguration<R... | 7,111 |
https://github.com/ramesh-kc/Spring-boot-jersey/blob/master/src/main/java/com/tutorial/jerseydemo/UserResource.java | Github Open Source | Open Source | Apache-2.0 | null | Spring-boot-jersey | ramesh-kc | Java | Code | 205 | 961 | package com.tutorial.jerseydemo;
import javax.ws.rs.*;
import javax.ws.rs.core.Response;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;
import java.net.URI;
import java.net.URISyntaxException;
import java.util.ArrayList... | 20,063 |
https://github.com/Uberi/AHK-Scripts/blob/master/@Saved/Scintilla/AHKdist/ListAHKFunctions4SciTE.lua | Github Open Source | Open Source | MIT | 2,022 | AHK-Scripts | Uberi | Lua | Code | 1,170 | 3,008 | #!Lua50.exe
--[[
List the functions, labels and hotstuff (hotkeys, hotstrings, key remapping)
in an AutoHotkey script.
by Philippe Lhoste <PhiLho(a)GMX.net> http://Phi.Lho.free.fr
File/Project history:
1.03.000 -- 2006/11/30 (toralf & PL) -- Better detection of hotstuff,
splitted between hotkeys (and key... | 42,600 |
https://github.com/oppia/oppia-android/blob/master/scripts/src/javatests/org/oppia/android/scripts/testfile/TestFileCheckTest.kt | Github Open Source | Open Source | Apache-2.0 | 2,023 | oppia-android | oppia | Kotlin | Code | 282 | 1,479 | package org.oppia.android.scripts.testfile
import com.google.common.truth.Truth.assertThat
import org.junit.After
import org.junit.Before
import org.junit.Rule
import org.junit.Test
import org.junit.rules.TemporaryFolder
import org.oppia.android.testing.assertThrows
import java.io.ByteArrayOutputStream
import java.io.... | 27,973 |
https://github.com/rgobbo/gext/blob/master/master.go | Github Open Source | Open Source | BSD-3-Clause | null | gext | rgobbo | Go | Code | 101 | 260 | package gext
import "log"
func newMaster(args map[string]interface{}) *page {
// file, err := os.Open("./" + PathTemplates + "/" + filename)
// if err != nil {
// log.Println("Master error:=", err)
// return nil
// }
// defer file.Close()
// parser := newParser(file)
// p, err := parser.Parse("")
// if e... | 29,678 |
https://github.com/arifkhan-silicornya/Class-and-Food-project-using-php/blob/master/social/requests/search/followers.php | Github Open Source | Open Source | MIT | 2,022 | Class-and-Food-project-using-php | arifkhan-silicornya | PHP | Code | 94 | 459 | <?php
userOnly();
$searchQuery = $escapeObj->stringEscape($_GET['q']);
$html = '';
foreach ($userObj->getFollowers($searchQuery) as $k => $v) {
$followerObj = new \miuan\User();
$followerObj->setId($v);
$follower = $followerObj->getRows();
$themeData['list_user_id'] = $follower['id'];
$themeData[... | 7,625 |
https://github.com/drussilla/ConsoleX/blob/master/Project/Assets/ConsoleCommand.cs | Github Open Source | Open Source | MIT | null | ConsoleX | drussilla | C# | Code | 121 | 311 | using System;
namespace ConsoleX
{
public class ConsoleCommand : IConsoleCommand
{
public ConsoleCommand(string name, Action<string[]> action, Func<bool> isFinished, Func<string, string[]> autoComplete)
{
Name = name;
Action = action;
IsFinished = isFinished... | 40,774 |
https://github.com/mohamedabuassi99/Stepper/blob/master/resources/views/homepage/slides/6.blade.php | Github Open Source | Open Source | MIT | null | Stepper | mohamedabuassi99 | PHP | Code | 139 | 769 | @extends('homepage.layouts.master')
@section('title', '6')
@push('after-styles')
<style>
</style>
@endpush
@section('section')
<section class="slide slide--gender">
<section class="slide__section">
<div class="container">
<div class="row">
<div class="col-12 text-center">
... | 2,166 |
https://github.com/Sonicadvance1/FEX/blob/master/External/FEXCore/Source/Interface/IR/Passes/IRValidation.cpp | Github Open Source | Open Source | MIT | 2,020 | FEX | Sonicadvance1 | C++ | Code | 781 | 2,427 | #include "Interface/IR/PassManager.h"
#include "Interface/Core/OpcodeDispatcher.h"
#include <iostream>
namespace {
struct BlockInfo {
bool HasExit;
std::vector<FEXCore::IR::OrderedNode const*> Predecessors;
std::vector<FEXCore::IR::OrderedNode const*> Successors;
};
}
namespace FEXCore::IR::Validati... | 33,383 |
https://github.com/Sanardi/bored/blob/master/assembly/EasyCode20200033Eng/EasyCode/EasyCode/Include/Fasm/Visual/dinput.inc | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, MIT | 2,021 | bored | Sanardi | Assembly | Code | 880 | 3,863 | ; ====================================================;
; ;
; dinput.inc for EC v2 Fasm visual projects ;
; (version 1.0.0) ;
; ;
; Copyright © Ramon Sala - 20... | 52,590 |
https://github.com/Omontor/dindong/blob/master/app/Http/Controllers/Admin/InvoiceController.php | Github Open Source | Open Source | MIT | null | dindong | Omontor | PHP | Code | 316 | 1,656 | <?php
namespace App\Http\Controllers\Admin;
use App\Http\Controllers\Controller;
use App\Http\Requests\MassDestroyInvoiceRequest;
use App\Http\Requests\StoreInvoiceRequest;
use App\Http\Requests\UpdateInvoiceRequest;
use App\Models\Client;
use App\Models\Currency;
use App\Models\Invoice;
use App\Models\PaymentForm;
u... | 20,144 |
https://github.com/alechh/coursework.front/blob/master/node_modules/@skbkontur/react-ui/components/Toast/ToastStatic.d.ts | Github Open Source | Open Source | Apache-2.0 | null | coursework.front | alechh | TypeScript | Code | 45 | 87 | import { Action } from './Toast';
declare class ToastStatic {
static push: (notification: string, action?: Action | undefined) => void;
static _push: (notification: string, action?: Action | undefined) => void;
static close: () => void;
private static node;
private static instance;
}
export default ... | 27,872 |
https://github.com/engpesce/Spring_Boot/blob/master/carrito-de-compras/src/main/java/edu/uces/ar/service/business/exception/ProductInvalidException.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | Spring_Boot | engpesce | Java | Code | 22 | 73 | package edu.uces.ar.service.business.exception;
public class ProductInvalidException extends RuntimeException {
private static final long serialVersionUID = -4961625479507744127L;
public ProductInvalidException(String message) {
super(message);
}
}
| 30,040 |
https://github.com/nalexn/ViewInspector/blob/master/Sources/ViewInspector/SwiftUI/Button.swift | Github Open Source | Open Source | MIT | 2,023 | ViewInspector | nalexn | Swift | Code | 594 | 1,660 | import SwiftUI
@available(iOS 13.0, macOS 10.15, tvOS 13.0, *)
public extension ViewType {
struct Button: KnownViewType {
public static var typePrefix: String = "Button"
}
}
// MARK: - Extraction from SingleViewContent parent
@available(iOS 13.0, macOS 10.15, tvOS 13.0, *)
public extension Inspe... | 31,688 |
https://github.com/markryall/flickr_sync/blob/master/bin/flickr_sync_upload | Github Open Source | Open Source | MIT | 2,013 | flickr_sync | markryall | Ruby | Code | 8 | 45 | #!/usr/bin/env ruby
$LOAD_PATH << File.dirname(__FILE__)+'/../lib'
require 'flickr_sync/upload'
FlickrSync::Upload.run | 11,358 |
https://github.com/bench-os/bench-os/blob/master/devices-framework/riot-app/riot/tests/gnrc_ipv6_ext/Makefile | Github Open Source | Open Source | MIT | 2,020 | bench-os | bench-os | Makefile | Code | 103 | 363 | # name of your application
include ../Makefile.tests_common
BOARD_INSUFFICIENT_MEMORY := arduino-duemilanove arduino-mega2560 arduino-uno \
chronos msb-430 msb-430h nucleo-f030r8 \
nucleo-f031k6 nucleo-f042k6 nucleo-f303k8 \
nucleo-... | 23,727 |
https://github.com/Spitschka/DS2020/blob/master/htdocs/framework/lib/system/errorhandler.php | Github Open Source | Open Source | Apache-2.0 | null | DS2020 | Spitschka | PHP | Code | 105 | 485 | <?php
function myErrorHandlerImpl ($code, $msg, $file, $line, $context) {
if(isFatalError($code)) {
// Fehler anzeigen
?>
<html>
<head>
<title>DS2020 Fatal Error</title>
</head>
<body>
<center>
<h1>FatalError Executing DS2020</h1>
<table border="1" width="50%">
<tr>
<td w... | 19,877 |
https://github.com/17600200818/adxAdmin/blob/master/Application/Admin/Model/UserModel.class.php | Github Open Source | Open Source | BSD-2-Clause | null | adxAdmin | 17600200818 | PHP | Code | 413 | 1,541 | <?php
namespace Admin\Model;
use Think\Model;
class UserModel extends Model {
protected $connection = 'DB_MAIN';
public function getList($sort,$where,$page,$rows) {
$res = array();
$join = 'left join role on v_user.idRole = role.id';
$field = 'v_user.*, role.name as rolename';
... | 30,964 |
https://github.com/hipboi/berryboot/blob/master/buildroot-2012.05/package/libevent/libevent.mk | Github Open Source | Open Source | BSD-3-Clause | 2,018 | berryboot | hipboi | Makefile | Code | 53 | 206 | #############################################################
#
# libevent
#
#############################################################
LIBEVENT_VERSION = 2.0.14
LIBEVENT_SOURCE = libevent-$(LIBEVENT_VERSION)-stable.tar.gz
LIBEVENT_SITE = https://github.com/downloads/libevent/libevent
LIBEVENT_INSTALL_STAGING = YES
... | 19,234 |
https://github.com/bing-zhub/eQin/blob/master/server/node_modules/spex/lib/ext/stream/index.js | Github Open Source | Open Source | MIT, Apache-2.0 | 2,023 | eQin | bing-zhub | JavaScript | Code | 199 | 489 | 'use strict';
var npm = {
read: require('./read')
};
/**
* @namespace stream
* @description
* Namespace with methods that implement stream operations, and {@link stream.read read} is the only method currently supported.
*
* **Synchronous Stream Processing**
*
* ```js
* var stream = require('spex')(Promise... | 53,568 |
https://github.com/raviqlahadi/siintan/blob/master/application/views/admin/status/create.php | Github Open Source | Open Source | MIT | 2,021 | siintan | raviqlahadi | PHP | Code | 3 | 24 | <?php
$this->load->view('templates/_admin_parts/create');
?> | 27,771 |
https://github.com/k8scommerce/k8scommerce/blob/master/services/rpc/store/pb/store/store.pb.go | Github Open Source | Open Source | BSD-3-Clause | null | k8scommerce | k8scommerce | Go | Code | 6,833 | 27,189 | // Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.28.0
// protoc v3.19.4
// source: store.proto
package store
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
c... | 55,274 |
https://github.com/carbocation/genomisc/blob/master/cmd/cardiaccyclev2/sample.go | Github Open Source | Open Source | BSD-3-Clause | 2,022 | genomisc | carbocation | Go | Code | 77 | 108 | package main
// SeriesSample represents a sample-instance-series pair. Most samples have just
// one series (set of images) occurring at once instance (imaging visit).
// However, thousands of samples will have at least a second instance.
// Additionally, many samples have multiple series within one instance. This
// ... | 4,298 |
https://github.com/vsouto/toolbar-poc/blob/master/back/api/controllers/toolbarController.js | Github Open Source | Open Source | Apache-2.0 | null | toolbar-poc | vsouto | JavaScript | Code | 195 | 776 | 'use strict';
const mongoose = require('mongoose');
exports.getSchematics = function(req, res) {
// TODO:
// get all items and the elements
// format the queries into schematics for the views
/*
Item.find({}, function(err, item) {
if (err)
res.send(err);
res.json(item);
... | 35,144 |
https://github.com/omarshah0/tailwind-styled-component/blob/master/src/components/header.js | Github Open Source | Open Source | RSA-MD | null | tailwind-styled-component | omarshah0 | JavaScript | Code | 50 | 174 | import React from "react"
import styled from "styled-components"
import tw from "tailwind.macro"
const Header = () => (
<HeaderContainer>
<H1>Ali</H1>
<H1>Hussain</H1>
</HeaderContainer>
)
export default Header
export const HeaderContainer = styled.header`
${tw`flex justify-between p-4 lg:px-10 lg:py-5... | 53,791 |
https://github.com/bjorncarlsson94/collectors-skeleton/blob/master/src/components/CollectorsAuction.vue | Github Open Source | Open Source | Unlicense | 2,020 | collectors-skeleton | bjorncarlsson94 | Vue | Code | 1,093 | 4,530 | <template>
<div>
<div class="auctionCardPayment" v-show="auctionCardPaymentActive">
Cards to pay with:
<button
class="handPaymentButton"
v-if="players[playerId]"
@click="payWithHand()"
>
x
</button>
<div class="handPayment">
<CollectorsCard
... | 26,171 |
https://github.com/sjarbs/python-package-boilerplate/blob/master/.editorconfig | Github Open Source | Open Source | MIT | 2,021 | python-package-boilerplate | sjarbs | null | Spoken | 55 | 218 | # https://EditorConfig.org
root = true
[*]
max_line_length = 79
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
# https://www.python.org/dev/peps/pep-0008/#indentation
[*.{py, pyi}]
indent_style = space
indent_size = 4
# https://github... | 28,646 |
https://github.com/mingliangfu/MTF/blob/master/Examples/src/SimpleTrackingDemo.cc | Github Open Source | Open Source | BSD-3-Clause | 2,017 | MTF | mingliangfu | C++ | Code | 44 | 262 | #include <mtf/SM/ESM.h>
#include<mtf/AM/MCNCC.h>
#include <mtf/SSM/Homography.h>
#include <mtf/Tools/pipeline.h>
#include <mtf/Tools/cvUtils.h>
#include <mtf/Utilities/miscUtils.h>
using namespace mtf;
int main(){
ESM<MCNCC, Homography> tracker;
InputCV input('u');
input.initialize();
CVUtils cv_utils;
cv_utils.s... | 25,965 |
https://github.com/KAL-ATM-Software/KAL_XFS4IoT_SP-Dev/blob/master/Utilities/EndToEndSecurity/EndToEndSecurity/tokens.h | Github Open Source | Open Source | MIT | 2,022 | KAL_XFS4IoT_SP-Dev | KAL-ATM-Software | C | Code | 43 | 73 | /***********************************************************************************************\
* (C) KAL ATM Software GmbH, 2021
* KAL ATM Software GmbH licenses this file to you under the MIT license.
* See the LICENSE file in the project root for more information.
\**********************************************... | 56,303 |
https://github.com/Jimdo/jimphle-messaging/blob/master/tests/Jimphle/Test/Messaging/MessageHandlerMetadataProviderTest.php | Github Open Source | Open Source | MIT | 2,016 | jimphle-messaging | Jimdo | PHP | Code | 297 | 1,533 | <?php
namespace Jimphle\Test\Messaging;
use Jimphle\Messaging\GenericMessage;
use Jimphle\Messaging\Message;
use Jimphle\Messaging\MessageHandlerMetadataProvider;
use PHPUnit\Framework\MockObject\MockObject;
use PHPUnit\Framework\TestCase;
class MessageHandlerMetadataProviderTest extends TestCase
{
const SOME_ANN... | 14,980 |
https://github.com/magnus-ISU/arch-packages/blob/master/installed/diary/Makefile | Github Open Source | Open Source | MIT | 2,021 | arch-packages | magnus-ISU | Makefile | Code | 82 | 306 | TARGET = diary
SRC = diary.c
PREFIX ?= /usr/local
BINDIR ?= $(DESTDIR)$(PREFIX)/bin
MANDIR := $(DESTDIR)$(PREFIX)/share/man
MAN1 = diary.1
CC = gcc
CFLAGS = -Wall
UNAME = ${shell uname}
ifeq ($(UNAME),FreeBSD)
LIBS = -lncurses
endif
ifeq ($(UNAME),Linux)
LIBS = -lncursesw
endif
ifeq ($(UNAME),Darwin)
LIBS = -ln... | 52,583 |
https://github.com/tokio-rs/tracing/blob/master/tracing/tests/filters_are_not_reevaluated_for_the_same_span.rs | Github Open Source | Open Source | MIT | 2,023 | tracing | tokio-rs | Rust | Code | 277 | 815 | // Tests that depend on a count of the number of times their filter is evaluated
// cant exist in the same file with other tests that add subscribers to the
// registry. The registry was changed so that each time a new dispatcher is
// added all filters are re-evaluated. The tests being run only in separate
// threads ... | 49,805 |
https://github.com/sinapazoki/panel/blob/master/app/Http/Livewire/PackageForm.php | Github Open Source | Open Source | MIT | null | panel | sinapazoki | PHP | Code | 27 | 94 | <?php
namespace App\Http\Livewire;
use App\Models\Package;
use Livewire\Component;
class PackageForm extends Component
{
public function render()
{
return view('livewire.contracts.package-form' , [
'packages' => Package::orderBy('id', 'ASC')->paginate(2),
]); }
}
| 46,302 |
https://github.com/YalimD/augmentation_of_pedestrians_over_videos/blob/master/Assets/ImportedModels/ARCS/Services/AgentServices/Prefabs/Agents/Male03.prefab.meta | Github Open Source | Open Source | BSD-3-Clause | 2,023 | augmentation_of_pedestrians_over_videos | YalimD | Unity3D Asset | Code | 6 | 40 | fileFormatVersion: 2
guid: 50f66566c94eae5439f5b017cd37acb2
NativeFormatImporter:
userData:
| 38,269 |
https://github.com/Xanonymous-GitHub/OOP-2020/blob/master/test/ut_main.cpp | Github Open Source | Open Source | MIT | 2,020 | OOP-2020 | Xanonymous-GitHub | C++ | Code | 25 | 115 | #include <gtest/gtest.h>
#include "ut_text.h"
#include "ut_html.h"
#include "ut_style.h"
#include "ut_image.h"
#include "ut_table.h"
#include "ut_util.h"
int main(int argc, char **argv)
{
testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
}
| 35,091 |
https://github.com/bigbluebutton/bbb-messaging/blob/master/src/senders/chat_sender.ts | Github Open Source | Open Source | MIT | 2,021 | bbb-messaging | bigbluebutton | TypeScript | Code | 235 | 756 | import { Sender } from '../sender';
export class ChatSender {
private sender: Sender;
constructor(sender: Sender) {
this.sender = sender;
}
public getGroupChats(meetingId: string, userId: string): void {
const message = {
header: {
name: 'GetGroupChatsReqMsg',
meetingId,
... | 56,559 |
https://github.com/arosspope/seinbot-rs/blob/master/src/text_generation/elaine.rs | Github Open Source | Open Source | MIT | 2,022 | seinbot-rs | arosspope | Rust | Code | 20,000 | 33,843 | use super::actor::Actor; pub const ELAINE: Actor = Actor { name: "elaine", lines: &ELAINE_LINES, markov_order: 2, }; const ELAINE_LINES: [&str; 13613] = [ "Hey, good news.", "My dog problem has been solved.", "Hello", "(thinking) I can't believe I'm going out with this guy.", "Wow!", "He's so cool.", "Maybe he'll write... | 28,474 |
https://github.com/cj2c/hosting/blob/master/ncase/Nothing To Hide/code/refactor/game/mechanics/realobjects/StaticBlock.js | Github Open Source | Open Source | CC0-1.0, LicenseRef-scancode-public-domain, Unlicense | 2,018 | hosting | cj2c | JavaScript | Code | 91 | 366 | /***********************
***********************/
function StaticBlock(level){
var self = this;
self.level = level;
level.setTag(self,"block");
self.init = function(){
self.IS_PLACEHOLDER = (!self.image);
self.image = Asset.image[self.image || "placeholder"];
self.gray = Grayscale.convertImage(self.ima... | 2,836 |
https://github.com/ybtsdst/Simba/blob/master/src/main/scala/org/apache/spark/sql/simba/expression/InCircleRange.scala | Github Open Source | Open Source | Apache-2.0 | 2,018 | Simba | ybtsdst | Scala | Code | 213 | 591 | /*
* Copyright 2017 by Simba 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 applicable law or agree... | 30,248 |
https://github.com/1337GameDev/WordPressPluginExample/blob/master/js/lib/jsdom/node_modules/jsonbird/test/Wait.js | Github Open Source | Open Source | MIT | null | WordPressPluginExample | 1337GameDev | JavaScript | Code | 52 | 164 | 'use strict';
class Wait {
constructor() {
this.count = 0;
this.waits = new Set();
}
advance() {
++this.count;
// eslint-disable-next-line prefer-const
for (let wait of this.waits) {
if (wait[0] <= this.count) {
wait[1]();
... | 49,138 |
https://github.com/bgoonz/UsefulResourceRepo2.0/blob/master/GIT-USERS/ashishdotme/react-todo/src/components/Header.js | Github Open Source | Open Source | MIT | 2,022 | UsefulResourceRepo2.0 | bgoonz | JavaScript | Code | 43 | 118 | import React from 'react';
import PropTypes from 'prop-types';
import TodoInput from './TodoInput';
const Header = ({ addTodo }) => (
<div>
<TodoInput
newTodo={true}
onSave={text => {
if (text.length !== 0) {
addTodo(text);
}
}}
placeholder="Enter a task"
/>
... | 18,316 |
https://github.com/varunvjha/android-fhir/blob/master/datacapturegallery/src/main/java/com/google/android/fhir/datacapture/gallery/MainActivity.kt | Github Open Source | Open Source | Apache-2.0 | 2,021 | android-fhir | varunvjha | Kotlin | Code | 242 | 836 | /*
* Copyright 2020 Google LLC
*
* 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... | 48,002 |
https://github.com/iantal/AndroidPermissions/blob/master/apks/playstore_apps/com_spotify_music/app/smali_classes3/xkp$1.smali | Github Open Source | Open Source | Apache-2.0 | 2,019 | AndroidPermissions | iantal | Smali | Code | 122 | 559 | .class public final Lxkp$1;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Ljava/util/concurrent/Callable;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lxkp;
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang... | 34,360 |
https://github.com/ciarancourtney/pond/blob/master/packages/pond/src/base.ts | Github Open Source | Open Source | BSD-3-Clause | 2,018 | pond | ciarancourtney | TypeScript | Code | 174 | 293 | /*
* Copyright (c) 2017, The Regents of the University of California,
* through Lawrence Berkeley National Laboratory (subject to receipt
* of any required approvals from the U.S. Dept. of Energy).
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE fi... | 21,704 |
https://github.com/vitduck/oneAPI/blob/master/2021-2nd-DPCT/oneMKL/omp/Makefile | Github Open Source | Open Source | BSD-3-Clause | null | oneAPI | vitduck | Makefile | Code | 55 | 247 | CXX = icx
CXXFLAGS = -fiopenmp -fopenmp-targets=spir64 -mllvm -vpo-paropt-use-raw-dev-ptr -fsycl -DMKL_ILP64 -m64
LDFLAGS = -L${MKLROOT}/lib/intel64 -lmkl_intel_ilp64 -lmkl_sequential -lmkl_core -lOpenCL -lpthread -ldl -lm
.PHONY: all
all: sgemm
getopt.o: ../utils/getopt.cpp
$(CXX) $(CXXFLAGS) -c $< -o $@
onemk... | 37,422 |
https://github.com/RetronixTechInc/android-retronix/blob/master/system/bt/audio_a2dp_hw/Android.mk | Github Open Source | Open Source | Apache-2.0 | 2,021 | android-retronix | RetronixTechInc | Makefile | Code | 37 | 177 | LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_SRC_FILES := \
audio_a2dp_hw.c
LOCAL_C_INCLUDES += \
. \
$(LOCAL_PATH)/../ \
$(LOCAL_PATH)/../utils/include
LOCAL_CFLAGS += -std=c99 $(bdroid_CFLAGS)
LOCAL_MODULE := audio.a2dp.default
LOCAL_MODULE_RELATIVE_PATH := hw
LOCAL_SHARED_LIBRARIES := libcutils... | 12,209 |
https://github.com/tenoritaiga/unfetter-ui/blob/master/src/app/global/components/master-list-dialog/master-list-dialog.component.ts | Github Open Source | Open Source | MIT | 2,020 | unfetter-ui | tenoritaiga | TypeScript | Code | 1,022 | 2,578 |
import { fromEvent as observableFromEvent, Observable } from 'rxjs';
import { distinctUntilChanged, debounceTime } from 'rxjs/operators';
import { Component, Inject, Input, Output, EventEmitter, OnDestroy } from '@angular/core';
import { ElementRef, ViewChildren, QueryList, AfterViewInit, Pipe, PipeTransform } from... | 42,875 |
https://github.com/unclead/symbolic/blob/master/demangle/tests/test_objcpp.rs | Github Open Source | Open Source | MIT | null | symbolic | unclead | Rust | Code | 132 | 556 | //! Objective C++ Demangling Tests
//! Objective C++ code can contain both C++ and Objective C symbols. If the
//! language is passed explicitly, the correct demangler must be chosen.
#[macro_use]
mod utils;
use symbolic_common::{Language, Name};
use symbolic_demangle::Demangle;
#[test]
fn test_demangle_objcpp() {
... | 52,749 |
https://github.com/jsicu/koa-server/blob/master/middleware/validate/index.js | Github Open Source | Open Source | MIT | 2,022 | koa-server | jsicu | JavaScript | Code | 48 | 158 | /*
* @Author: linzq
* @Date: 2021-03-25 16:51:35
* @LastEditors: linzq
* @LastEditTime: 2021-03-30 10:16:51
* @Description:
*/
const { joiReplace, joiRequired, joiReplaceSpace } = require('./validate');
module.exports = async (ctx, next) => {
ctx.joiReplace = joiReplace.bind(null, ctx);
ctx.joiRequired = joi... | 9,990 |
https://github.com/PNNL-Comp-Mass-Spec/DBSchema_PgSQL_DMS/blob/master/dms/v_analysis_job_request_entry.sql | Github Open Source | Open Source | Apache-2.0 | 2,023 | DBSchema_PgSQL_DMS | PNNL-Comp-Mass-Spec | SQL | Code | 112 | 488 | --
-- Name: v_analysis_job_request_entry; Type: VIEW; Schema: public; Owner: d3l243
--
CREATE VIEW public.v_analysis_job_request_entry AS
SELECT ajr.request_id,
ajr.request_name,
ajr.created,
ajr.analysis_tool,
ajr.param_file_name,
ajr.settings_file_name,
ajr.organism_db_name,
org.organism... | 40,143 |
https://github.com/Luckyss/aiweather/blob/master/weather/src/main/java/ru/androidpiraters/aiweather/data/model/weather/Sys.kt | Github Open Source | Open Source | Apache-2.0 | null | aiweather | Luckyss | Kotlin | Code | 36 | 87 | package ru.androidpiraters.aiweather.data.model.weather
data class Sys(
val country: String? = null,
val sunrise: Int? = null,
val sunset: Int? = null,
val id: Int? = null,
val type: Int? = null,
val message: Double? = null
)
| 40,532 |
https://github.com/walidcafe/scala/blob/master/src/library/scala/collection/immutable/Iterable.scala | Github Open Source | Open Source | DOC | 2,018 | scala | walidcafe | Scala | Code | 182 | 374 | package scala.collection.immutable
import scala.collection.IterableFactory
/** A trait for collections that are guaranteed immutable.
*
* @tparam A the element type of the collection
*
* @define usesMutableState
*
* Note: Despite being an immutable collection, the implementation uses mutable state inter... | 20,319 |
https://github.com/zscomehuyue/squirrel/blob/master/squirrel-foundation/src/main/java/org/squirrelframework/foundation/fsm/StateMachineImporter.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | squirrel | zscomehuyue | Java | Code | 48 | 172 | package org.squirrelframework.foundation.fsm;
import java.io.File;
import java.io.InputStream;
public interface StateMachineImporter<T extends StateMachine<T, S, E, C>, S, E, C> {
StateMachineBuilder<T, S, E, C> importFromString(String content);
StateMachineBuilder<T, S, E, C> importFromFile(File co... | 2,219 |
https://github.com/Kneelawk/MagicalMahou/blob/master/src/main/kotlin/com/kneelawk/magicalmahou/client/render/ObjModelPart.kt | Github Open Source | Open Source | MIT | null | MagicalMahou | Kneelawk | Kotlin | Code | 164 | 576 | package com.kneelawk.magicalmahou.client.render
import com.kneelawk.magicalmahou.mixin.api.MatrixStackUtils
import dev.monarkhes.myron.api.Myron
import net.minecraft.client.model.ModelPart
import net.minecraft.client.render.VertexConsumer
import net.minecraft.client.util.math.MatrixStack
import net.minecraft.util.Iden... | 39,153 |
https://github.com/jackocnr/intl-tel-input/blob/master/src/spec/tests/core/closecountrydropdownEvent.js | Github Open Source | Open Source | MIT | 2,023 | intl-tel-input | jackocnr | JavaScript | Code | 82 | 321 | "use strict";
describe("close:countrydropdown event:", function() {
var spy;
beforeEach(function() {
intlSetup();
input = $("<input>").appendTo("body");
spy = spyOnEvent(input, 'close:countrydropdown');
});
afterEach(function() {
intlTeardown();
});
describe("init plugin", function() {
... | 23,306 |
https://github.com/Cazra/TentaGL/blob/master/src/event/AppResizeEvent.js | Github Open Source | Open Source | Unlicense | 2,020 | TentaGL | Cazra | JavaScript | Code | 329 | 666 | /*
@preserve Copyright (c) 2014 Stephen "Cazra" Lindberg
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, me... | 40,096 |
https://github.com/lkxiluo/QHUtil/blob/master/QHUtil/QHCategory/UIColor+QHConvert.h | Github Open Source | Open Source | MIT | null | QHUtil | lkxiluo | C | Code | 101 | 531 | //
// UIColor+QHConvert.h
// QHUtil
//
// Created by QianHan on 2017/3/3.
// Copyright © 2017年 karl.luo. All rights reserved.
//
#import <UIKit/UIKit.h>
/**
颜色值之间的转换,RBG、十进制、16进制
*/
@interface UIColor (QHConvert)
/**
16进制颜色转换成UIColor
@param hexValue 16进制颜色 例如0xfafafa
@return UIColor
*/
+ (UIColo... | 36,221 |
https://github.com/SHyx0rmZ/aptly-web/blob/master/src/LocalRepositoryPage.elm | Github Open Source | Open Source | MIT | null | aptly-web | SHyx0rmZ | null | Spoken | 116 | 345 | module LocalRepositoryPage exposing (..)
import Aptly.Config
import Aptly.Local.RepositoryList
import Html
type alias Model =
{ config : Aptly.Config.Config
, repositoryList : Aptly.Local.RepositoryList.RepositoryList
}
type Msg
= RepositoryListMsg Aptly.Local.RepositoryList.Msg
init : Aptly.Config.... | 40,139 |
https://github.com/duanyytop/ckb_sdk_dart/blob/master/lib/src/core/utils/epoch_parser.dart | Github Open Source | Open Source | MIT | 2,019 | ckb_sdk_dart | duanyytop | Dart | Code | 106 | 291 | import 'package:ckb_sdk_dart/src/utils/utils.dart';
EpochInfo parseEpoch(String hexEpoch) {
var epochLong = hexToBigInt(hexEpoch).toInt();
var length = (epochLong >> 40) & 0xFFFF;
var index = (epochLong >> 24) & 0xFFFF;
var number = epochLong & 0xFFFFFF;
return EpochInfo(length, index, number);
}
String com... | 40,968 |
https://github.com/Pallavi024/Upay/blob/master/components/buybutton.js | Github Open Source | Open Source | MIT | null | Upay | Pallavi024 | JavaScript | Code | 73 | 245 | import React from 'react';
/**
*
*
* @export
* @class BuyNow
* @augments {React.PureComponent<BuyNowProps>}
*/
export default class BuyNow extends React.PureComponent {
/**
* @typedef {object} BuyNowProps
* @property {function} onClick
*
* @static
* @memberof BuyNow
*/
render() {
ret... | 18,412 |
https://github.com/concretecms/concretecms/blob/master/concrete/mail/user_register_approval_required_to_user.php | Github Open Source | Open Source | MIT | 2,023 | concretecms | concretecms | PHP | Code | 125 | 312 | <?php
defined('C5_EXECUTE') or die("Access Denied.");
$subject = $siteName.' '.t("Registration - Approval Required");
/*
* HTML BODY START
*/
ob_start()
?>
<h2><?= t('Registration Approval Required') ?></h2>
<?= t("You have registered on %s. Your account will be approved by the administrator.", $siteName) ?><br />... | 49,801 |
https://github.com/Milozms/feedforward-RE/blob/master/DataProcessor/brown-cluster/Makefile | Github Open Source | Open Source | MIT | 2,022 | feedforward-RE | Milozms | Makefile | Code | 82 | 226 | # 1.2: need to make sure opt.o goes in the right order to get the right scope on the command-line arguments
# Use this for Linux
ifeq ($(shell uname),Linux)
files=$(subst .cc,.o,basic/logging.cc $(shell /bin/ls *.cc) $(shell /bin/ls basic/*.cc | grep -v logging.cc))
else
files=$(subst .cc,.o,basic/opt.cc $(shell /bin... | 43,458 |
https://github.com/elsudano/Facultad/blob/master/01Primero/Metodologia_de_Programacion_MP/Practica3-entregar/mensaje/Makefile | Github Open Source | Open Source | MIT | 2,021 | Facultad | elsudano | Makefile | Code | 141 | 619 | # ********** Variables de MakeFiles **********
SRC = src
INC = include
OBJ = obj
BIN = bin
LIB = lib
CXX = g++
CPPFLAGS = -Wall -g -L$(LIB) -I$(INC) -c
BINFLAGS = -Wall -g -L$(LIB) -I$(INC) -o
# ************ Generación de documentación ******************
documentacion:
doxygen doc/doxys/Doxyfile
# ********** Compi... | 45,211 |
https://github.com/ferambot/Cogito/blob/master/Cogito.Composition/Scoping/IEveryScope.cs | Github Open Source | Open Source | MIT | 2,016 | Cogito | ferambot | C# | Code | 49 | 98 | namespace Cogito.Composition.Scoping
{
/// <summary>
/// Special scope type that indicates a part is available to all available scopes. Used in conjunction with <see
/// cref="Visibility.Local"/> to create a part available to each scope with exports only available to that scope.
/// </summary>
pu... | 40,595 |
https://github.com/hrvbid/snh/blob/master/Zotlabs/Widget/Collections.php | Github Open Source | Open Source | MIT | 2,019 | snh | hrvbid | PHP | Code | 120 | 437 | <?php
namespace Zotlabs\Widget;
require_once('include/group.php');
class Collections {
function widget($args) {
if(argc() < 2)
return;
$mode = ((array_key_exists('mode',$args)) ? $args['mode'] : 'conversation');
switch($mode) {
case 'conversation':
$every = argv(0);
$each = argv(0);
$... | 2,297 |
https://github.com/alexabird/malamine/blob/master/server/app/models/CollectionMapping.scala | Github Open Source | Open Source | Apache-2.0 | 2,017 | malamine | alexabird | Scala | Code | 65 | 280 | package models.inventory
import scala.concurrent.ExecutionContext.Implicits.global
import slick.driver.H2Driver.api._
import scala.concurrent.{Future, ExecutionContext}
import play.api.Play
import play.api.db.slick.{DatabaseConfigProvider, HasDatabaseConfig}
import slick.driver.JdbcProfile
class CollectionMapping(tag... | 51,541 |
https://github.com/factset/ofm-python-sdk/blob/master/ofm_client/v2/query_builder/sort/__init__.py | Github Open Source | Open Source | Apache-2.0 | 2,020 | ofm-python-sdk | factset | Python | Code | 24 | 128 | from __future__ import absolute_import
from ofm_client.v2.query_builder.sort.interfaces.i_sort import ISort
from ofm_client.v2.query_builder.sort.interfaces.i_sort_field import ISortField
from ofm_client.v2.query_builder.sort.sort_term import SortTerm
from ofm_client.v2.query_builder.sort.sort_operators import SortOp... | 29,280 |
https://github.com/kafkafield/Blockfft/blob/master/cufft/cufft_stream.cu | Github Open Source | Open Source | MIT | null | Blockfft | kafkafield | null | Spoken | 381 | 1,300 | #include <cuda_runtime.h>
#include "device_launch_parameters.h"
//#include <helper_functions.h>
#include <helper_cuda.h>
#include <ctime>
#include <time.h>
#include <stdio.h>
#include <iostream>
#include <math.h>
#include <cufft.h>
#include <fstream>
using namespace std;
typedef float2 Complex;
int main()
{
int tes... | 19,488 |
https://github.com/pokepetter/brython/blob/master/setup/data/tools/make_bundle.py | Github Open Source | Open Source | BSD-3-Clause | 2,019 | brython | pokepetter | Python | Code | 255 | 924 | """Make a bundle for a Brython page
Packs all modules and packages in the page folder and in site-packages
"""
import os
import json
import fnmatch
from . import python_minifier
def bundle(folder, ignore=None):
if ignore is None:
# check if there is an ".bundle-ignore" file
ignore = []
ig... | 49,111 |
https://github.com/Palmik/wai-sockjs/blob/master/src/Control/Concurrent/MVar/Extra/Lifted.hs | Github Open Source | Open Source | BSD-3-Clause | 2,016 | wai-sockjs | Palmik | Haskell | Code | 134 | 251 | {-# LANGUAGE FlexibleContexts #-}
module Control.Concurrent.MVar.Extra.Lifted
( mvar
) where
------------------------------------------------------------------------------
import Control.Concurrent.MVar.Lifted
import Control.Monad.Base
--------------------------------------------------------------... | 46,998 |
https://github.com/izmailoff/Spray_Mongo_REST_service/blob/master/rest/src/test/scala/com/example/service/GetTweetSpec.scala | Github Open Source | Open Source | Apache-2.0 | 2,015 | Spray_Mongo_REST_service | izmailoff | Scala | Code | 127 | 479 | package com.example.service
import com.example.test.utils.db.ServiceTestContext
import net.liftweb.json.JsonAST.JValue
import spray.http.HttpHeaders.`Content-Type`
import spray.http.MediaTypes._
import net.liftweb.util.StringHelpers._
import spray.http.HttpEncodings._
import spray.httpx.encoding.Gzip
import spray.rout... | 12,070 |
https://github.com/feelpp/simput/blob/master/src/components/properties/ListProperty/index.vue | Github Open Source | Open Source | BSD-3-Clause, LicenseRef-scancode-unknown-license-reference | 2,018 | simput | feelpp | Vue | Code | 10 | 68 | <template src="simput/src/components/properties/ListProperty/template.html" />
<style module src="simput/src/components/properties/ListProperty/style.css" />
<script src="simput/src/components/properties/ListProperty/script.js" />
| 47,393 |
https://github.com/hegemone/kore-poc/blob/master/koredata-goa/vendor/github.com/goadesign/goa/goagen/gen_app/test_generator_test.go | Github Open Source | Open Source | MIT | 2,018 | kore-poc | hegemone | Go | Code | 632 | 3,185 | package genapp_test
import (
"io/ioutil"
"os"
"path/filepath"
"strings"
"github.com/goadesign/goa/design"
"github.com/goadesign/goa/dslengine"
"github.com/goadesign/goa/goagen/codegen"
"github.com/goadesign/goa/goagen/gen_app"
"github.com/goadesign/goa/version"
. "github.com/onsi/ginkgo"
. "github.com/onsi... | 6,813 |
https://github.com/mndvns/saucer/blob/master/Makefile | Github Open Source | Open Source | MIT | null | saucer | mndvns | Makefile | Code | 36 | 153 | TEST_FILES=$(shell find test -type f -name '*spec.js')
test: bin/vendor/Sauce-Connect.jar
@NODE_ENV=test istanbul cover _mocha $(TEST_FILES)
node_modules:
@npm install
bin/vendor/Sauce-Connect.jar: node_modules
@saucer install
watch:
@NODE_ENV=test \
./node_modules/.bin/mocha \
--watch
clean:
@rm -rf bi... | 41,344 |
https://github.com/Nyrheim/RPKit/blob/master/bukkit/rpk-stats-bukkit/src/test/kotlin/com/rpkit/stats/bukkit/stat/test/RPKStatImplTests.kt | Github Open Source | Open Source | Apache-2.0 | 2,020 | RPKit | Nyrheim | Kotlin | Code | 172 | 418 | /*
* Copyright 2016 Ross Binden
*
* 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 ... | 46,253 |
https://github.com/Cashmaney/big-dipper/blob/master/imports/ui/validators/TimeDistubtionChart.jsx | Github Open Source | Open Source | Apache-2.0 | 2,021 | big-dipper | Cashmaney | null | Spoken | 519 | 1,668 | import React, { Component } from 'react';
import { Card, CardBody, CardHeader } from 'reactstrap';
import moment from 'moment';
import PChart from '../components/Chart.jsx';
const BATCHSIZE = 15;
const daysOfWeek = ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'];
const displayTimeRange = (time) => {
const startTim... | 50,584 |
https://github.com/MayaPosch/WildFox/blob/master/chrome/chromejsinterface.cpp | Github Open Source | Open Source | BSD-2-Clause | 2,022 | WildFox | MayaPosch | C++ | Code | 52 | 176 | /*
chromejsinterface.cpp - Network access manager implementation file of WildFox-Mimic.
Revision 0
Features:
-
Notes:
-
2012/03/20, Maya Posch
(c) Nyanko.ws
*/
#include "chromejsinterface.h"
// --- CONSTRUCTOR ---
ChromeJSInterface::ChromeJSInterface(MainWindow ... | 36,021 |
https://github.com/tschaefer/perl-gib/blob/master/lib/Perl/Gib/Exception/PackageIsIgnoredByComment.pm | Github Open Source | Open Source | Artistic-2.0 | 2,021 | perl-gib | tschaefer | Perl | Code | 26 | 115 | package Perl::Gib::Exception::PackageIsIgnoredByComment;
##! #[ignore(item)]
use strict;
use warnings;
use Moose;
extends 'Perl::Gib::Exception';
with 'Perl::Gib::Exception::ItemIsIgnoredByComment';
sub _build_item {
my $self = shift;
return 'Attribute';
}
__PACKAGE__->meta->make_immutable;
1;
| 43,251 |
https://github.com/SwiftEngineer/material-components-web-elm/blob/master/demo/src/Demo/TextFields.elm | Github Open Source | Open Source | MIT | 2,020 | material-components-web-elm | SwiftEngineer | null | Spoken | 1,080 | 2,795 | module Demo.TextFields exposing (Model, Msg(..), defaultModel, update, view)
import Demo.CatalogPage exposing (CatalogPage)
import Demo.Helper.ResourceLink as ResourceLink
import Dict exposing (Dict)
import Html exposing (Html, text)
import Html.Attributes
import Html.Events
import Material.HelperText exposing (charac... | 34,566 |
https://github.com/isabella232/ember-cli-aptible-shared/blob/master/app/components/dashboard-dropdown-user-menu/component.js | Github Open Source | Open Source | MIT | 2,019 | ember-cli-aptible-shared | isabella232 | JavaScript | Code | 50 | 117 | import Ember from 'ember';
export default Ember.Component.extend({
actions: {
showIntercom() {
if (window.Intercom) {
window.Intercom('show');
} else {
alert("We currently use Intercom for in-app announcements, but it looks like your ad blocker prevented Intercom from loading.\n\nCons... | 23,731 |
https://github.com/chriskirknielsen/Monorepo/blob/master/results/src/core/charts/tools/ToolExperienceGraphChart/NodeTooltip.js | Github Open Source | Open Source | MIT | 2,022 | Monorepo | chriskirknielsen | JavaScript | Code | 43 | 142 | import React from 'react'
import { useI18n } from 'core/i18n/i18nContext'
const NodeTooltip = (node) => {
const { translate } = useI18n()
return (
<div>
{translate('toolExperienceGraph.node.tooltip', {
values: {
count: node.value,
yea... | 12,060 |
https://github.com/XIAODINGPA/Kenshin/blob/master/Kenshin/GYBase/LocMapVC.m | Github Open Source | Open Source | MIT | 2,017 | Kenshin | XIAODINGPA | Objective-C | Code | 148 | 729 | //
// LocMapVC.m
// GYBase
//
// Created by doit on 16/5/9.
// Copyright © 2016年 kenshin. All rights reserved.
//
#import "LocMapVC.h"
#import "Tools.h"
@interface LocMapVC ()<BMKLocationServiceDelegate>
@end
@implementation LocMapVC
- (void)viewDidLoad
{
[super viewDidLoad];
[self initLocService];
... | 8,303 |
https://github.com/mhilker/roadrunner/blob/master/service/service.go | Github Open Source | Open Source | MIT | null | roadrunner | mhilker | Go | Code | 207 | 417 | package service
import "sync"
// Service provides high level functionality for road runner modules.
type Service interface {
// Init must return configure service and return true if service hasStatus enabled. Must return error in case of
// misconfiguration. Services must not be used without proper configuration pu... | 51,244 |
https://github.com/OSADP/SEMI-ODE/blob/master/ode/Development/emulatedClientApps/SituationalDataApp/tests/test_ODE_Upload_Data.py | Github Open Source | Open Source | Apache-2.0 | null | SEMI-ODE | OSADP | Python | Code | 474 | 2,089 | # coding=utf-8
import unittest
import sys
import os
import json
import logging
import time
import datetime
import thread
import deposit_TestClient
from __init__ import LogThisTestCase
import testRunnerHelper
try:
import odeClient
except:
current_file_path = os.path.dirname(os.path.abspath(__file__))
sys.... | 54,060 |
https://github.com/raulmontano/asn1/blob/master/test/tests/type/constructed/sequence/DecodeTest.php | Github Open Source | Open Source | MIT | 2,022 | asn1 | raulmontano | PHP | Code | 76 | 317 | <?php
declare(strict_types = 1);
use PHPUnit\Framework\TestCase;
use Sop\ASN1\Element;
use Sop\ASN1\Type\Constructed\Sequence;
/**
* @group decode
* @group structure
* @group sequence
*
* @internal
*/
class SequenceDecodeTest extends TestCase
{
public function testType()
{
$el = Sequence::fromD... | 44,098 |
https://github.com/isaki/easymock/blob/master/core/src/test/java/org/easymock/tests/UsageExpectAndReturnTest.java | Github Open Source | Open Source | Xnet, X11 | 2,022 | easymock | isaki | Java | Code | 387 | 1,797 | /*
* Copyright 2001-2021 the original author or authors.
*
* 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 app... | 17,672 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.