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/tuures/babel/blob/master/packages/babel-plugin-transform-es2015-modules-amd/test/fixtures/amd/exports-from/expected.js | Github Open Source | Open Source | MIT | 2,015 | babel | tuures | JavaScript | Code | 136 | 421 | "use strict";
define(["exports", "foo"], function (exports, _foo) {
Object.defineProperty(exports, "__esModule", {
value: true
});
for (var _key in _foo) {
if (_key === "default") continue;
Object.defineProperty(exports, _key, {
enumerable: true,
get: (function (k) {
return funct... | 51,828 |
https://github.com/fariqM/sipkk/blob/master/resources/views/finance/create.blade.php | Github Open Source | Open Source | MIT | null | sipkk | fariqM | PHP | Code | 659 | 2,804 | @extends('layouts.app')
@section('css')
<link type="text/css" rel="stylesheet" href="{{ asset('assets/vendor/flatpickr/flatpickr.min.css') }}">
<link rel="stylesheet" href="{{ asset('assets/vendor/sweet-alert/sweetalert2.min.css') }}">
@endsection
@section('content')
<x-header-content>
<a href="/finance/index">Ca... | 35,519 |
https://github.com/StyvenSoft/Quick-posts/blob/master/api/issues.js | Github Open Source | Open Source | MIT | null | Quick-posts | StyvenSoft | JavaScript | Code | 422 | 1,195 | const express = require('express');
const issuesRouter = express.Router({ mergeParams: true });
const sqlite3 = require('sqlite3');
const db = new sqlite3.Database(process.env.TEST_DATABASE || './database.sqlite');
issuesRouter.param('issueId', (req, res, next, issueId) => {
const sql = 'SELECT * FROM Issue WHERE... | 25,201 |
https://github.com/SergAtGitHub/PipelinesGenerator/blob/master/src/project/ts/TypescriptYeomanPipeline/TypescriptYeomanPipelineArguments.ts | Github Open Source | Open Source | Apache-2.0 | null | PipelinesGenerator | SergAtGitHub | TypeScript | Code | 31 | 91 | import { PipelineContext } from "solid-pipelines";
import { YeomanContext } from "../../../foundation/PipelinesExtensions";
import Generator = require("yeoman-generator");
export class TypescriptYeomanPipelineArguments extends YeomanContext {
constructor(
public yeomanGenerator: Generator
) {
... | 37,205 |
https://github.com/hishamump/UBung/blob/master/orders/viewDespatcher.php | Github Open Source | Open Source | MIT | 2,020 | UBung | hishamump | PHP | Code | 109 | 459 | <?php include '../header.php'; ?>
<title>Despatcher List</title>
<div align="center">[<a href="orderMain.php">Previous Page</a>]
<h1 align="center">Despatcher List</h1>
<table border="1" align="center">
<tr>
<th>UserId</th>
<th>Name</th>
<th>Address</th>
<th>Phone</th>
<th>Email</th>
</tr>
<tr>
<?php
//$link = ... | 28,313 |
https://github.com/aghasyedbilal/intellij-community/blob/master/platform/diff-impl/src/com/intellij/diff/util/DiffEmptyHighlighterRenderer.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | intellij-community | aghasyedbilal | Java | Code | 85 | 327 | // Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.diff.util;
import com.intellij.openapi.editor.Editor;
import com.intellij.openapi.editor.markup.CustomHighlighterRenderer;
import com.intellij.openapi.editor... | 32,155 |
https://github.com/lushen124/Universal-FE-Randomizer/blob/master/Universal FE Randomizer/src/random/gba/loader/ClassDataLoader.java | Github Open Source | Open Source | MIT | 2,023 | Universal-FE-Randomizer | lushen124 | Java | Code | 1,432 | 5,601 | package random.gba.loader;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.Comparator;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.stream.Collectors;
import fedata.gba.GBAFEClassData;
import fedata.gb... | 50,828 |
https://github.com/stelukutla/pipeline/blob/master/myapps/codegen/build.sbt | Github Open Source | Open Source | Apache-2.0 | 2,016 | pipeline | stelukutla | Scala | Code | 53 | 222 | val globalSettings = Seq(
version := "1.0",
scalaVersion := sys.env("SCALA_VERSION")
)
//addSbtPlugin("com.eed3si9n" % "sbt-assembly" % sys.env("SBT_ASSEMBLY_PLUGIN_VERSION"))
lazy val codegen = (project in file("."))
.settings(name := "codegen")
.settings(globalSettings:_... | 26,803 |
https://github.com/YananLyu/system-design/blob/master/OOD/parkingLot/accounts/Admin.java | Github Open Source | Open Source | MIT | 2,021 | system-design | YananLyu | Java | Code | 9 | 25 | package OOD.parkingLot.accounts;
public class Admin extends Account {
}
| 18,023 |
https://github.com/mcalestino/ambassador/blob/master/pkg/api/envoy/config/cluster/v4alpha/outlier_detection.pb.go | Github Open Source | Open Source | Apache-2.0 | 2,021 | ambassador | mcalestino | Go | Code | 6,196 | 19,490 | // Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: envoy/config/cluster/v4alpha/outlier_detection.proto
package envoy_config_cluster_v4alpha
import (
fmt "fmt"
_ "github.com/cncf/udpa/go/udpa/annotations"
_ "github.com/envoyproxy/protoc-gen-validate/validate"
proto "github.com/gogo/protobuf/proto"
typ... | 6,997 |
https://github.com/shutupandhack-club/hypervisor/blob/master/kernel/integration/bf_vm_op_create_vm.cpp | Github Open Source | Open Source | MIT | 2,021 | hypervisor | shutupandhack-club | C++ | Code | 548 | 1,402 | /// @copyright
/// Copyright (C) 2020 Assured Information Security, Inc.
///
/// @copyright
/// 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 limita... | 41,692 |
https://github.com/csshugs/genesis/blob/master/src/templates/parts/_page-head.hbs | Github Open Source | Open Source | LicenseRef-scancode-warranty-disclaimer, Apache-2.0 | 2,017 | genesis | csshugs | null | Spoken | 29 | 158 | <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>genesis</title>
<meta name="viewport" content="width=device-width, minimum-scale=1.0">
<link rel="stylesheet" href="assets/css/style.css">
</head>
<body>
<!-- page-head -->
<head... | 48,477 |
https://github.com/LunarCoffee/Blazelight/blob/master/src/dev/lunarcoffee/blazelight/model/api/forums/ForumExtensions.kt | Github Open Source | Open Source | MIT | 2,019 | Blazelight | LunarCoffee | Kotlin | Code | 11 | 46 | package dev.lunarcoffee.blazelight.model.api.forums
fun Long.getForum() = ForumCache.forums.find { this == it.id }
| 22,670 |
https://github.com/joo0oo/kosta187/blob/master/Project_MyBlog/WebContent/include/sidebar.jsp | Github Open Source | Open Source | MIT | 2,018 | kosta187 | joo0oo | null | Spoken | 170 | 986 | <%@ page language="java" contentType="text/html; charset=utf-8" %>
<%
String userID=null;
Cookie[] cookies = request.getCookies();
if (cookies != null) {
for (Cookie cookie : cookies) {
if (cookie.getName().equals("id")) {
cookie.setPath("/");
userID= cookie.getValue();
break;
... | 42,422 |
https://github.com/PHuhn/net-incident/blob/master/WebSrv/Views/CompanyEmailTemplate/CompanyEmailTemplateDetailsPartial.cshtml | Github Open Source | Open Source | Apache-2.0 | 2,019 | net-incident | PHuhn | C# | Code | 93 | 415 | @using WebSrv.Models;
@model EmailTemplateData
<div>
<hr />
<dl class="dl-horizontal">
<dt>
Company Short Name
</dt>
<dd>
@Html.DisplayFor(model => model.CompanyShortName)
</dd>
<dt>
Incident Type
</dt>
<dd>
... | 24,322 |
https://github.com/imeckler/Idris-Elba/blob/master/js/Signal/Touch.js | Github Open Source | Open Source | WTFPL | 2,013 | Idris-Elba | imeckler | JavaScript | Code | 426 | 1,476 |
Elm.Native.Touch = function(elm) {
'use strict';
elm.Native = elm.Native || {};
if (elm.Native.Touch) return elm.Native.Touch;
var Signal = Elm.Signal(elm);
var JS = Elm.JavaScript(elm);
var _ = Elm.Native.Utils(elm);
function Dict() {
this.keys = [];
this.values = [];
this.insert = funct... | 830 |
https://github.com/malliina/util-base/blob/master/okclient-io/src/main/scala/com/malliina/http/io/package.scala | Github Open Source | Open Source | BSD-3-Clause | null | util-base | malliina | Scala | Code | 29 | 100 | package com.malliina.http
import cats.effect.IO
import fs2.concurrent.Topic
import cats.effect.unsafe.implicits.global
package object io {
implicit class TopicOps[T](val t: Topic[IO, T]) extends AnyVal {
def push(message: T): Unit = t.publish1(message).unsafeRunAndForget()
}
}
| 27,165 |
https://github.com/FaustineLi/FaustineLi.github.io/blob/master/styles/index.js | Github Open Source | Open Source | MIT | 2,018 | FaustineLi.github.io | FaustineLi | JavaScript | Code | 399 | 1,524 | var hide_lists=function(cb){
var last=function(){
if($('#cv').is(':visible')) {
return {div: "#cv", btn: "#cv-btn"}
} else if ($('#about').is(':visible')) {
return {div: "#about", btn: "#about-btn"}
} else if ($('#contact').is(':visible')) {
return {div: "#contact", btn: "#contact-btn"}
} else if ($('... | 34,972 |
https://github.com/trskop/snippets/blob/master/javascript/Makefile | Github Open Source | Open Source | BSD-3-Clause | 2,020 | snippets | trskop | Makefile | Code | 83 | 310 | SRC = \
controler.js \
generics.js \
user-message.js
MINIFY = uglifyjs
MINIFY_FLAGS = --no-copyright
TARGET = $(SRC:.js=.min.js) all.min.js
YEARS := 2013
CONTROLER_YEARS := 2012, 2013
ALL_YEARS := $(CONTROLER_YEARS)
COPYRIGHT = \
// Copyright(c) $(YEARS), Peter Trsko <peter.trsko@gmail.com>. \
Licensed u... | 43,097 |
https://github.com/Calinou/dotfiles/blob/master/bootstrap/muffet.sh | Github Open Source | Open Source | CC0-1.0 | 2,019 | dotfiles | Calinou | Shell | Code | 24 | 143 | #!/usr/bin/env bash
set -euo pipefail
IFS=$'\n\t'
# Install Muffet
VERSION="2.3.0"
tmp="$(mktemp)"
curl -fsSL "https://github.com/raviqqe/muffet/releases/download/v$VERSION/muffet_${VERSION}_Linux_x86_64.tar.gz" \
-o "$tmp"
tar xf "$tmp" "muffet" --one-top-level="$HOME/.local/bin/"
rm "$tmp"
| 18,910 |
https://github.com/worksome/ceevee/blob/master/src/Contracts/ContentProvider.php | Github Open Source | Open Source | MIT | null | ceevee | worksome | PHP | Code | 12 | 45 | <?php
declare(strict_types=1);
namespace Worksome\Ceevee\Contracts;
interface ContentProvider
{
public function getContent(): string;
}
| 24,247 |
https://github.com/barnoy1/ray-tracing/blob/master/ray_tracer.core/core/include/structs.h | Github Open Source | Open Source | MIT | 2,019 | ray-tracing | barnoy1 | C | Code | 104 | 312 | #ifndef __STRUCTS__
#define __STRUCTS__
// standard headers
#include <string>
#define _USE_MATH_DEFINES
#include <math.h>
// local headers
#include "core_EXPORT.h"
#include "vec.h"
// enable C / C++ linkage
#ifdef __cplusplus
extern "C" {
#endif
namespace core
{
struct CORE_EXPORT light {
light (const Vec3... | 49,680 |
https://github.com/nsilve/cloud-sdk-go/blob/master/pkg/client/platform_configuration_security/get_enrollment_tokens_responses.go | Github Open Source | Open Source | Apache-2.0 | null | cloud-sdk-go | nsilve | Go | Code | 478 | 1,244 | // Licensed to Elasticsearch B.V. under one or more contributor
// license agreements. See the NOTICE file distributed with
// this work for additional information regarding copyright
// ownership. Elasticsearch B.V. licenses this file to you under
// the Apache License, Version 2.0 (the "License"); you may
// not use ... | 51,936 |
https://github.com/hxften/microweber_v1.0.7_laravel5.1.9/blob/master/userfiles/templates/unitile-master/unitile-master/modules/shop/cart_add/templates/sidebar.php | Github Open Source | Open Source | Apache-2.0 | 2,017 | microweber_v1.0.7_laravel5.1.9 | hxften | PHP | Code | 155 | 673 | <?php
/*
type: layout
name: One price
description: Add to cart default
*/
?>
<?php
if(!isset($params['content-id'])){
$params['content-id'] = CONTENT_ID;
}
if(isset($params['content-id'])){
$product = get_content_by_id($params["content-id"]);
$title = $product['title'];
}
else{
$title = _e("Product", t... | 23,472 |
https://github.com/dagothar/labyrinth/blob/master/scripts/main.js | Github Open Source | Open Source | MIT | 2,017 | labyrinth | dagothar | JavaScript | Code | 11 | 35 | "use strict";
$(document).ready(function() {
var app = new App();
app.run();
});
| 31,804 |
https://github.com/sumesh-aot/namex/blob/master/api/tests/python/end_points/auto_analyse/protected_names/test_designation_mismatch_one_word_request.py | Github Open Source | Open Source | Apache-2.0 | 2,019 | namex | sumesh-aot | Python | Code | 339 | 1,341 | import pytest
import jsonpickle
from urllib.parse import quote_plus
from namex.services.name_request.auto_analyse import AnalysisIssueCodes
from ..common import assert_issues_count_is_gt, assert_has_word_upper, assert_has_designations_upper, \
save_words_list_classification, save_words_list_virtual_word_conditio... | 10,527 |
https://github.com/linfang-canway/bk-bcs/blob/master/bcs-services/bcs-upgrader/upgrader/helper.go | Github Open Source | Open Source | Apache-2.0 | null | bk-bcs | linfang-canway | Go | Code | 569 | 1,712 | /*
* Tencent is pleased to support the open source community by making Blueking Container Service available.
* Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved.
* Licensed under the MIT License (the "License"); you may not use this file except
* in compliance with the License. You may obta... | 6,079 |
https://github.com/aparo/zio-elasticsearch/blob/master/elasticsearch-core/src/main/scala/zio/elasticsearch/common/update_by_query_rethrottle/UpdateByQueryRethrottleResponse.scala | Github Open Source | Open Source | Apache-2.0 | 2,023 | zio-elasticsearch | aparo | Scala | Code | 154 | 351 | /*
* Copyright 2019-2023 Alberto Paro
*
* 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 agre... | 20,192 |
https://github.com/SciML/RecursiveArrayTools.jl/blob/master/test/tabletraits.jl | Github Open Source | Open Source | MIT | 2,023 | RecursiveArrayTools.jl | SciML | Julia | Code | 43 | 152 | using RecursiveArrayTools, Random, Test
include("testutils.jl")
Random.seed!(1234)
n = 20
t = sort(randn(n))
u = randn(n)
A = DiffEqArray(u, t)
test_tables_interface(A, [:timestamp, :value], hcat(t, u))
u = [randn(3) for _ in 1:n]
A = DiffEqArray(u, t)
test_tables_interface(A, [:timestamp, :value1, :value2, :value3... | 42,950 |
https://github.com/idkjs/analyzer/blob/master/src/solvers/td3.ml | Github Open Source | Open Source | MIT | 2,021 | analyzer | idkjs | OCaml | Code | 3,377 | 7,383 | (** Incremental terminating top down solver that optionally only keeps values at widening points and restores other values afterwards. *)
(* Incremental: see paper 'Incremental Abstract Interpretation' https://link.springer.com/chapter/10.1007/978-3-030-41103-9_5 *)
(* TD3: see paper 'Three Improvements to the Top-Down... | 31,502 |
https://github.com/JonathanWilbur/x500-ts/blob/master/source/modules/SchemaAdministration/ContextInformation.ta.ts | Github Open Source | Open Source | MIT | 2,019 | x500-ts | JonathanWilbur | TypeScript | Code | 669 | 2,168 | /* eslint-disable */
import { ASN1Element as _Element, OPTIONAL } from "asn1-ts";
import * as $ from "asn1-ts/dist/node/functional";
import {
UnboundedDirectoryString,
_decode_UnboundedDirectoryString,
_encode_UnboundedDirectoryString,
} from "../SelectedAttributeTypes/UnboundedDirectoryString.ta";
export {... | 6,520 |
https://github.com/kdes70/tender-pro/blob/master/modules/blog/models/BlogCategory.php | Github Open Source | Open Source | BSD-3-Clause | null | tender-pro | kdes70 | PHP | Code | 204 | 624 | <?php
namespace app\modules\blog\models;
use Yii;
use yii\behaviors\TimestampBehavior;
/**
* This is the model class for table "{{%blog_category}}".
*
* @property integer $id
* @property integer $parent_id
* @property string $name
* @property string $slug
* @property string $prev_img
* @property integer $cre... | 24,906 |
https://github.com/wowton/material-demo/blob/master/src/views/Login/index.jsx | Github Open Source | Open Source | MIT | null | material-demo | wowton | null | Spoken | 368 | 1,719 | import React, { PureComponent, createRef } from 'react'
import loginImg from "assets/img/login-pic.png";
import 'assets/sass/login.scss';
import { Button } from '@material-ui/core';
import { withRouter } from 'react-router-dom';
import Axios from 'axios';
import {connect} from 'react-redux';
import action from "store/... | 40,224 |
https://github.com/shangshanruoshui77/fula/blob/master/server/conf/1.sql | Github Open Source | Open Source | MIT | 2,021 | fula | shangshanruoshui77 | SQL | Code | 456 | 1,759 | DROP TABLE IF EXISTS `customer_info`;
CREATE TABLE customer_info
(
id BIGINT(20) UNSIGNED AUTO_INCREMENT NOT NULL COMMENT '自增主键ID',
name VARCHAR(20) NOT NULL COMMENT '用户名',
role_id VARCHAR(200) NOT NULL COMMENT 'roles,可以是多种 role',
la... | 14,555 |
https://github.com/samyyang/flask/blob/master/gde/start.sh | Github Open Source | Open Source | BSD-3-Clause | null | flask | samyyang | Shell | Code | 12 | 44 | #! /bin/bash
cd /data/flask_demo/gde/
flask run &
tail -f /dev/null # 防止容器退出
| 47,932 |
https://github.com/sparsick/conditus/blob/master/.gitignore | Github Open Source | Open Source | Apache-2.0 | 2,017 | conditus | sparsick | Ignore List | Code | 8 | 43 | .idea
conditus.iml
target/
pom.xml.tag
pom.xml.releaseBackup
pom.xml.next
release.properties
.vagrant/
| 20,066 |
https://github.com/Scottx86-64/dotfiles-1/blob/master/source/pkgsrc/devel/py-zc.lockfile/Makefile | Github Open Source | Open Source | Unlicense | 2,021 | dotfiles-1 | Scottx86-64 | Makefile | Code | 37 | 238 | # $NetBSD: Makefile,v 1.1 2018/08/20 12:58:06 adam Exp $
DISTNAME= zc.lockfile-1.3.0
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
CATEGORIES= devel python
MASTER_SITES= ${MASTER_SITE_PYPI:=z/zc.lockfile/}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://github.com/zopefoundation/zc.lockfile
COMMENT= Basic inter-process l... | 31,285 |
https://github.com/lechium/tvOS124Headers/blob/master/System/Library/PrivateFrameworks/CoreUI.framework/_CSIRenditionBlockData.h | Github Open Source | Open Source | MIT | 2,020 | tvOS124Headers | lechium | Objective-C | Code | 130 | 483 | /*
* This header is generated by classdump-dyld 1.0
* on Saturday, August 24, 2019 at 9:43:21 PM Mountain Standard Time
* Operating System: Version 12.4 (Build 16M568)
* Image Source: /System/Library/PrivateFrameworks/CoreUI.framework/CoreUI
* classdump-dyld is licensed under GPLv3, Copyright © 2013-2016 by Elias Limne... | 56,410 |
https://github.com/MrDev-Lara/Inventory-Management-System-in-Laravel/blob/master/app/Http/Controllers/AttendanceController.php | Github Open Source | Open Source | MIT | 2,020 | Inventory-Management-System-in-Laravel | MrDev-Lara | PHP | Code | 212 | 1,206 | <?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use DB;
use App\Attendance;
class AttendanceController extends Controller
{
/**
* Create a new controller instance.
*
* @return void
*/
public function __construct()
{
$this->middleware('auth');
}
publ... | 46,129 |
https://github.com/TomBosmans/form_object/blob/master/test/dummy/app/models/book.rb | Github Open Source | Open Source | MIT | null | form_object | TomBosmans | Ruby | Code | 14 | 31 | class Book < ApplicationRecord
belongs_to :author
validates :title, length: { maximum: 5 }
end
| 15,346 |
https://github.com/zeroc0d3/mha_manager_consul/blob/master/bin/masterha_manager_consul | Github Open Source | Open Source | MIT, BSD-3-Clause | 2,019 | mha_manager_consul | zeroc0d3 | Perl | Code | 949 | 2,747 | #!/usr/bin/env perl
# Copyright (C) 2011 DeNA Co.,Ltd.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This... | 49,366 |
https://github.com/gftabor/KrisLibrary/blob/master/planning/RigidBodyCSpace.cpp | Github Open Source | Open Source | BSD-3-Clause | null | KrisLibrary | gftabor | C++ | Code | 472 | 2,651 | #include "RigidBodyCSpace.h"
#include <KrisLibrary/math3d/rotation.h>
#include <KrisLibrary/math3d/random.h>
#include <KrisLibrary/math3d/interpolate.h>
#include <KrisLibrary/math/angle.h>
using namespace Math3D;
using namespace std;
R2CSpace::R2CSpace(const Vector2& bmin,const Vector2& bmax)
:BoxCSpace(Vector(2,bmin... | 14,231 |
https://github.com/ninox-iot/EquinoxDataServer/blob/master/src/equinox/dataServer/task/DeleteMultiplicationTable.java | Github Open Source | Open Source | Apache-2.0 | 2,019 | EquinoxDataServer | ninox-iot | Java | Code | 360 | 1,007 | /*
* Copyright 2018 Murat Artim (muratartim@gmail.com).
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 40,963 |
https://github.com/rameshkithsiri/react-beautiful-dnd/blob/master/src/state/get-displacement.js | Github Open Source | Open Source | Apache-2.0 | 2,019 | react-beautiful-dnd | rameshkithsiri | JavaScript | Code | 214 | 512 | // @flow
import { type Rect } from 'css-box-model';
import getDisplacementMap, {
type DisplacementMap,
} from './get-displacement-map';
import { isPartiallyVisible } from './visibility/is-visible';
import type {
DraggableId,
Displacement,
DraggableDimension,
DroppableDimension,
DragImpact,
} from '../types'... | 54,589 |
https://github.com/Flancy/waterfree/blob/master/app/Http/Controllers/User/Firm/OrdersController.php | Github Open Source | Open Source | MIT | null | waterfree | Flancy | PHP | Code | 85 | 392 | <?php
namespace App\Http\Controllers\User\Firm;
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
use Auth;
use App\Models\Order;
use App\Models\User\FirmConnect;
class OrdersController extends Controller
{
public function index()
{
$user = Auth::user();
$orders = Array();
... | 8,587 |
https://github.com/mscam/http_requestor/blob/master/http_requestor/core/signals.py | Github Open Source | Open Source | MIT | null | http_requestor | mscam | Python | Code | 38 | 146 | from django.db.models.signals import post_save
from django.dispatch import receiver
from http_requestor.core.models import HttpRequest
from http_requestor.core.tasks import schedule_http_request_for_instance
@receiver(post_save, sender=HttpRequest)
def schedule_http_request(sender, instance, created, **kwargs):
i... | 33,028 |
https://github.com/eatalynet/creditmemo-workflow/blob/master/src/app/code/community/Eataly/CreditmemoWorkflow/Block/Order/Creditmemo/Totals.php | Github Open Source | Open Source | Apache-2.0 | 2,017 | creditmemo-workflow | eatalynet | PHP | Code | 46 | 256 | <?php
class Eataly_CreditmemoWorkflow_Block_Order_Creditmemo_Totals extends Mage_Adminhtml_Block_Sales_Order_Creditmemo_Totals
{
/**
* Initialize creditmemo totals array
*
* @return Mage_Sales_Block_Order_Totals
*/
protected function _initTotals()
{
$returnValue = parent::_initT... | 17,289 |
https://github.com/hsallabas/angular-node-example-app/blob/master/frontend/src/app/auth/auth.component.scss | Github Open Source | Open Source | MIT | 2,021 | angular-node-example-app | hsallabas | SCSS | Code | 22 | 87 | @import "~styles/main.scss";
.page-wrap {
@include media-breakpoint-up(md) {
display: flex;
align-items: center;
justify-content: center;
height: 100%;
padding: 40px 1rem;
background-color: #222a45;
}
}
| 3,296 |
https://github.com/zeitport/strapi-provider-upload-local-pro/blob/master/tests/units/encodePathTest.js | Github Open Source | Open Source | MIT | 2,022 | strapi-provider-upload-local-pro | zeitport | JavaScript | Code | 89 | 312 | const {expect} = require('../sandbox.js');
const {encodePath} = require('../../lib/encodePath.js');
describe('encodePath()', function () {
it('returns an URL encoded string for a filename', function () {
const path = 'file&bad=true.png';
const encodedPath = encodePath(path);
const expect... | 4,914 |
https://github.com/yowie/arachni/blob/master/modules/audit/xss_tag.rb | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-unknown-license-reference | 2,014 | arachni | yowie | Ruby | Code | 386 | 996 | =begin
Copyright 2010-2013 Tasos Laskos <tasos.laskos@gmail.com>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless requi... | 25,841 |
https://github.com/nathanielifink/Swiftlet/blob/master/Swiftlet/src/HelloWorld/Models/Feed.php | Github Open Source | Open Source | MIT | 2,016 | Swiftlet | nathanielifink | PHP | Code | 98 | 432 | <?php
namespace HelloWorld\Models;
use \Swiftlet\Abstracts\Model as ModelAbstract;
use \HelloWorld\Libraries\FeedLib as Lib;
define('URL', 'http://www.reddit.com/r/pics.xml');
class Feed extends ModelAbstract
{
public function getLastImage()
{
$res = "http://www.51allout.co.uk/wp-content/uploads/2012/02/Image-no... | 53,232 |
https://github.com/chaun-nguyen/Personal-Graphics-Framework/blob/master/src/WindowManager.cpp | Github Open Source | Open Source | MIT | 2,022 | Personal-Graphics-Framework | chaun-nguyen | C++ | Code | 404 | 1,499 | #include <cstdlib>
#include "WindowManager.h"
#include <iostream>
#include "ImGuiUIManager.h"
#include "Engine.h"
WindowManager::~WindowManager()
{
glfwTerminate();
}
void WindowManager::SetSize(int width, int height)
{
w_ = width;
h_ = height;
}
void WindowManager::SetTitle(const char* title)
{
title_ = con... | 15,872 |
https://github.com/emotional-engineering/cloud-castle/blob/master/transactions_controller/modules/database.js | Github Open Source | Open Source | MIT | 2,019 | cloud-castle | emotional-engineering | JavaScript | Code | 196 | 622 | var Promise = require("bluebird");
var auth_config = require('../auth_config');
var config = require('../config');
var AWS = require('aws-sdk');
var bitcore = require('bitcore');
var dynamodb = new AWS.DynamoDB(auth_config[config['username_prefix'] + "dynamodb"]);
module.exports = function() {
... | 41,924 |
https://github.com/NAWEB-USP/ListaExercicio/blob/master/src/br/usp/ime/academicdevoir/Migration.java | Github Open Source | Open Source | Apache-2.0 | 2,012 | ListaExercicio | NAWEB-USP | Java | Code | 97 | 381 | package br.usp.ime.academicdevoir;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
public class Migration {
public static void main(String[] args) throws IOException {
BufferedRea... | 8,466 |
https://github.com/oliver4888/OliBot/blob/master/OliBot.API/Attributes/DependencyInjectedAttribute.cs | Github Open Source | Open Source | MIT | null | OliBot | oliver4888 | C# | Code | 41 | 113 | using System;
namespace OliBot.API.Attributes
{
[AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = false)]
public class DependencyInjectedAttribute : Attribute
{
public readonly DIType Type;
public readonly Type Implements;
public DependencyInjectedAttribut... | 51,512 |
https://github.com/tayyabalizaheer/rideshare/blob/master/core/app/Http/Controllers/WithdrawController.php | Github Open Source | Open Source | MIT | 2,020 | rideshare | tayyabalizaheer | PHP | Code | 462 | 1,774 | <?php
namespace App\Http\Controllers;
use App\Agent;
use App\Trx;
use App\Wallet;
use Illuminate\Http\Request;
use App\WithdrawMethod;
use App\WithdrawLog;
use App\User;
use App\GeneralSettings;
use Illuminate\Support\Facades\Input;
class WithdrawController extends Controller
{
public function __construct()
... | 14,121 |
https://github.com/ThStock/logbooks/blob/master/build.sbt | Github Open Source | Open Source | Apache-2.0 | null | logbooks | ThStock | Scala | Code | 30 | 124 | name := "logbooks"
version := "1.0"
scalaVersion := "2.12.2"
libraryDependencies += "com.typesafe" % "config" % "1.3.1"
libraryDependencies += "org.scalatra.scalate" % "scalate-wikitext_2.12" % "1.8.0"
libraryDependencies += "org.scalatra.scalate" % "scalate-page_2.12" % "1.8.0"
| 11,888 |
https://github.com/sylviaswoboda/objectz-2-perfect/blob/master/src/main/java/at/ac/tuwien/oz/datatypes/axioms/AxiomReference.java | Github Open Source | Open Source | MIT | 2,017 | objectz-2-perfect | sylviaswoboda | Java | Code | 247 | 974 | package at.ac.tuwien.oz.datatypes.axioms;
import org.antlr.v4.runtime.tree.ParseTree;
import org.antlr.v4.runtime.tree.ParseTreeProperty;
import org.stringtemplate.v4.ST;
import at.ac.tuwien.oz.datatypes.Declarations;
import at.ac.tuwien.oz.datatypes.Ident;
import at.ac.tuwien.oz.datatypes.Idents;
import at.ac.tuwien... | 21,323 |
https://github.com/alaaDragneel/advanced-mvc/blob/master/vendor/System/Validator.php | Github Open Source | Open Source | MIT | null | advanced-mvc | alaaDragneel | PHP | Code | 863 | 2,341 | <?php
namespace System;
class Validator
{
/**
* Application
*
* @var \System\Application
*/
private $app;
/**
* Errors Container
*
* @var array $errors
*/
private $errors = [];
/**
* Constructor
* @param \System\Application $app
*/
publi... | 29,809 |
https://github.com/9cute/neochan/blob/master/install.php | Github Open Source | Open Source | LicenseRef-scancode-warranty-disclaimer, MIT | 2,019 | neochan | 9cute | PHP | Code | 267 | 1,138 | <?php
if (php_sapi_name() !== 'cli') {
exit;
}
if (count($argv) != 5) {
echo 'Wrong arguments';
exit;
}
$www_dir = $argv[1];
$db_name = $argv[2];
$db_user = $argv[3];
$db_pass = $argv[4];
$secrets_template = 'inc/secrets.example.php';
$secrets_file = 'inc/secrets.php';
chdir($www_dir);
message("... | 52,557 |
https://github.com/enfoTek/tomato.linksys.e2000.nvram-mod/blob/master/tools-src/gnu/glibc/argp/argp-namefrob.h | Github Open Source | Open Source | FSFAP | 2,022 | tomato.linksys.e2000.nvram-mod | enfoTek | C | Code | 355 | 1,132 | /* Name frobnication for compiling argp outside of glibc
Copyright (C) 1997 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Written by Miles Bader <miles@gnu.ai.mit.edu>.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser... | 4,409 |
https://github.com/charmquark/contingency-www/blob/master/app/assets/stylesheets/news_posts.scss | Github Open Source | Open Source | MIT | 2,015 | contingency-www | charmquark | SCSS | Code | 6 | 32 | @import 'news_posts/embed';
@import 'news_posts/index';
@import 'news_posts/show';
| 1,684 |
https://github.com/alirayaneh/amozacms/blob/master/src/services/database/sql/models/cmpmediaimage.js | Github Open Source | Open Source | MIT | 2,022 | amozacms | alirayaneh | JavaScript | Code | 63 | 208 | module.exports = (sequelize, DataTypes) => {
const CmpMediaImage = sequelize.define('CmpMediaImage', {
id: {
type: DataTypes.STRING(45),
allowNull: false,
primaryKey: true,
},
url: {
type: DataTypes.STRING(1000),
allowNull: false,
},
caption: {
type: DataTypes.S... | 9,941 |
https://github.com/rilwanfit/trengo-api/blob/master/app/Containers/Article/UI/API/Tests/Functional/RateArticleTest.php | Github Open Source | Open Source | MIT | null | trengo-api | rilwanfit | PHP | Code | 141 | 432 | <?php
namespace App\Containers\Article\UI\API\Tests\Functional;
use App\Containers\Article\Models\ArticleRating;
use App\Containers\Article\Tests\ApiTestCase;
/**
* @group article
* @group api
*/
class RateArticleTest extends ApiTestCase
{
protected $endpoint = 'post@v1/rate-articles';
protected $access ... | 30,694 |
https://github.com/marcosDLCS/reactive-programming-with-java/blob/master/examples/01-basic-comparison/spring-mvc-api/src/main/java/es/codeurjc/arpj/mvcapi/application/remove/UserRemoverCommand.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | reactive-programming-with-java | marcosDLCS | Java | Code | 8 | 35 | package es.codeurjc.arpj.mvcapi.application.remove;
public record UserRemoverCommand(String id) {
}
| 9,671 |
https://github.com/DonaldMcC/gdms/blob/master/views/review/newindex.js | Github Open Source | Open Source | LicenseRef-scancode-public-domain | 2,021 | gdms | DonaldMcC | JavaScript | Code | 325 | 2,801 |
function showcountryValue(newValue)
{
document.getElementById("viewscope_country").value=newValue;
$('#subdivopt').empty();
ajax('{{=URL('submit','subdivn')}}', ['country'], 'subdivopt');
document.getElementById("viewscope_subdivision").value="Unspecified";
}
function showsubdivValue(newValue)
{
documen... | 32,365 |
https://github.com/aliselcuk/superv-platform/blob/master/src/Domains/Resource/Field/FieldRules.php | Github Open Source | Open Source | MIT | 2,019 | superv-platform | aliselcuk | PHP | Code | 141 | 589 | <?php
namespace SuperV\Platform\Domains\Resource\Field;
use Exception;
use SuperV\Platform\Domains\Database\Model\Contracts\EntryContract;
use SuperV\Platform\Domains\Resource\Field\Contracts\FieldInterface;
use SuperV\Platform\Domains\Resource\ResourceConfig;
class FieldRules
{
/**
* @var \SuperV\Platform\... | 17,919 |
https://github.com/NiSE-Virginia-Tech/Yuerr14-RepeatedFixes/blob/master/RepeatedFixes/suite/org/eclipse/cdt/core/testplugin/CModelMock.java | Github Open Source | Open Source | MIT | 2,021 | Yuerr14-RepeatedFixes | NiSE-Virginia-Tech | Java | Code | 978 | 3,397 | /*******************************************************************************
* Copyright (c) 2010, 2012 Andrew Gvozdev and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and... | 25,129 |
https://github.com/isaacos/badges-and-schedules-prework/blob/master/conference_badges.rb | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, LicenseRef-scancode-public-domain | 2,018 | badges-and-schedules-prework | isaacos | Ruby | Code | 71 | 263 | def badge_maker (name)
"Hello, my name is #{name}."
end
def batch_badge_creator (name_list)
badge_list = []
name_list.each do |name|
badge_list.push(badge_maker(name))
end
badge_list
end
def assign_rooms(name_list)
i = 0
name_and_room_list = []
while i < name_list.length
name_and_room_list.push... | 34,055 |
https://github.com/rfinochi/confsamples/blob/master/HoloLens/HoloCourse/Tools/HoloToolkit-Unity/Assets/HoloToolkit/Sharing/Tests/RemoteHeadManager.cs | Github Open Source | Open Source | MIT | 2,020 | confsamples | rfinochi | C# | Code | 412 | 1,177 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.
using HoloToolkit.Sharing;
using HoloToolkit.Unity;
using System.Collections.Generic;
using UnityEngine;
/// <summary>
/// Broadcasts the head transform of the loca... | 2,939 |
https://github.com/atongen/rpa/blob/master/lib/rpa/photos.rb | Github Open Source | Open Source | MIT | 2,014 | rpa | atongen | Ruby | Code | 259 | 1,054 | require 'RMagick'
require 'fileutils'
class Photos
include Magick
PREVIEW_SIZE = 500
THUMB_SIZE = 75
attr_reader :photo_map
def initialize(photos = [], options = {})
@dir = options[:out_dir]
@photo_map = photos.inject({}) do |photo_map,p|
file_name = File.basename(p)
while photo_map.ha... | 12,788 |
https://github.com/getsaurabh02/OpenSearch-backup/blob/master/modules/rank-eval/src/test/java/org/opensearch/index/rankeval/TransportRankEvalActionTests.java | Github Open Source | Open Source | Apache-2.0 | null | OpenSearch-backup | getsaurabh02 | Java | Code | 295 | 969 | /*
* Licensed to Elasticsearch under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not use this fi... | 4,568 |
https://github.com/KatanaGraph/katana/blob/master/tools/graph-convert/graph-properties-convert-mysql.h | Github Open Source | Open Source | BSD-3-Clause, LicenseRef-scancode-warranty-disclaimer | 2,022 | katana | KatanaGraph | C++ | Code | 46 | 194 | #ifndef KATANA_TOOLS_GRAPH_CONVERT_GRAPH_PROPERTIES_CONVERT_MYSQL_H_
#define KATANA_TOOLS_GRAPH_CONVERT_GRAPH_PROPERTIES_CONVERT_MYSQL_H_
#include "katana/BuildGraph.h"
namespace katana {
GraphComponents ConvertMysql(
const std::string& db_name, const std::string& mapping,
const size_t chunk_size, const std:... | 15,443 |
https://github.com/repos-css-compilers/absurdjs.com/blob/master/tasks/builds.js | Github Open Source | Open Source | MIT | 2,014 | absurdjs.com | repos-css-compilers | JavaScript | Code | 159 | 577 | var through2 = require('through2');
var gutil = require('gulp-util');
var PluginError = gutil.PluginError;
var path = require('path');
var fs = require("fs");
var request = require('request');
module.exports = function () {
function transform (file, enc, next) {
var self = this;
var url = "https:... | 17,728 |
https://github.com/battmeech/bag-of-holding/blob/master/src/count/index.ts | Github Open Source | Open Source | MIT | 2,021 | bag-of-holding | battmeech | TypeScript | Code | 18 | 35 | export { campaignCount } from './campaignCount';
export { itemCount } from './itemCount';
export { userCount } from './userCount';
| 1,595 |
https://github.com/devesh-shetty/arrow/blob/master/modules/fx/arrow-fx/src/main/kotlin/arrow/fx/typeclasses/ConcurrentEffect.kt | Github Open Source | Open Source | Apache-2.0 | 2,019 | arrow | devesh-shetty | Kotlin | Code | 27 | 114 | package arrow.fx.typeclasses
import arrow.Kind
import arrow.core.Either
/**
* ank_macro_hierarchy(arrow.fx.typeclasses.ConcurrentEffect)
*/
interface ConcurrentEffect<F> : Effect<F> {
fun <A> Kind<F, A>.runAsyncCancellable(cb: (Either<Throwable, A>) -> Kind<F, Unit>): Kind<F, Disposable>
}
| 50,117 |
https://github.com/ArrogantWombatics/openbsd-src/blob/master/lib/libtls/tls_conninfo.c | Github Open Source | Open Source | BSD-3-Clause | 2,019 | openbsd-src | ArrogantWombatics | C | Code | 654 | 2,081 | /* $OpenBSD: tls_conninfo.c,v 1.5 2015/10/07 23:33:38 beck Exp $ */
/*
* Copyright (c) 2015 Joel Sing <jsing@openbsd.org>
* Copyright (c) 2015 Bob Beck <beck@openbsd.org>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the abo... | 19,631 |
https://github.com/Raku/doc/blob/master/doc/Type/X/Attribute/Package.rakudoc | Github Open Source | Open Source | Artistic-2.0, MIT, LicenseRef-scancode-free-unknown, Artistic-1.0-Perl | 2,023 | doc | Raku | null | Spoken | 111 | 231 | =begin pod :kind("Type") :subkind("class") :category("exception")
=TITLE class X::Attribute::Package
=SUBTITLE Compilation error due to declaring an attribute in an ineligible package
class X::Attribute::Package does X::Comp { }
Compile time error, thrown when the compiler encounters an attribute
declaration in... | 55,502 |
https://github.com/Dedederek/samples/blob/master/cplusplus/level2_simple_inference/2_object_detection/YOLOV3_VOC_detection_picture/src/dvpp_process.cpp | Github Open Source | Open Source | Apache-2.0 | 2,022 | samples | Dedederek | C++ | Code | 248 | 751 | /**
* Copyright 2020 Huawei Technologies Co., Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed ... | 6,836 |
https://github.com/teeg82/name_generator3/blob/master/tests/test_phoneme_model.py | Github Open Source | Open Source | BSD-3-Clause | null | name_generator3 | teeg82 | Python | Code | 183 | 927 | import unittest
import os
from xml.etree import ElementTree
from models.phoneme import (
Phoneme,
PhonemeLists,
)
from math import ceil
class TestPhonemeModel(unittest.TestCase):
def test_xml_load(self):
dirname = os.path.dirname(__file__)
filename = os.path.join(dirname, '../resources... | 31,915 |
https://github.com/Heracles-Brigade/rotbd/blob/master/src/improved/RBDnew01/rbdnew01.lua | Github Open Source | Open Source | Apache-2.0 | 2,018 | rotbd | Heracles-Brigade | Lua | Code | 1,693 | 7,732 | --Combination of Grab The Scientists and Preparations
local minit = require("minit")
local misc = require("misc");
local mission = require('cmisnlib');
local globals = {};
local tracker = mission.UnitTracker:new();
local areAllDead = mission.areAllDead;
local audio = {
intro = "rbd0101.wav",
inspect = "... | 42,926 |
https://github.com/piotrmurach/tty-spinner/blob/master/spec/unit/hide_cursor_spec.rb | Github Open Source | Open Source | MIT, LicenseRef-scancode-unknown-license-reference | 2,023 | tty-spinner | piotrmurach | Ruby | Code | 97 | 506 | RSpec.describe TTY::Spinner, ":hide_cursor" do
let(:output) { StringIO.new("", "w+") }
it "hides cursor" do
spinner = TTY::Spinner.new(output: output, hide_cursor: true)
4.times { spinner.spin }
spinner.stop
output.rewind
expect(output.read).to eq([
"\e[?25l\e[1G|",
"\e[1G/",
... | 56,680 |
https://github.com/yyuu/chef-fork/blob/master/bin/fork | Github Open Source | Open Source | Apache-2.0 | 2,016 | chef-fork | yyuu | Ruby | Code | 7 | 57 | #!/usr/bin/env ruby
$LOAD_PATH.unshift(File.expand_path("../../lib", __FILE__))
require "chef/fork"
Chef::Fork.new.main(ARGV.dup)
| 29,526 |
https://github.com/tdc-yamada-ya/w4s-desktop-overlay/blob/master/src/renderer/main/components/ShowCommonSettingsWindowButton.tsx | Github Open Source | Open Source | MIT | 2,022 | w4s-desktop-overlay | tdc-yamada-ya | TypeScript | Code | 62 | 211 | import SettingsIcon from "@mui/icons-material/Settings";
import {Button, Tooltip} from "@mui/material";
import {Fragment, useState} from "react";
import {CommonSettingsDialog} from "./CommonSettingsDialog";
export const ShowCommonSettingsWindowButton = ({id}: {id?: string}) => {
const [open, setOpen] = useState(fal... | 11,528 |
https://github.com/lordshravan/The-Mars-Bot/blob/master/src/common/ScienceLocations.java | Github Open Source | Open Source | Apache-2.0 | null | The-Mars-Bot | lordshravan | Java | Code | 212 | 809 | package common;
import java.util.HashMap;
import java.util.Map.Entry;
import enums.RoverName;
import enums.Science;
public class ScienceLocations {
// can only have one science at any single location
private HashMap<Coord, Science> scienceHash;
public ScienceLocations(){
scienceHash = new HashMap<Coord, ... | 12,416 |
https://github.com/sdediego/quantitative-finance/blob/master/simulation/Ito process/Ito_Vasicek_Stochastic.m | Github Open Source | Open Source | BSD-3-Clause | 2,017 | quantitative-finance | sdediego | MATLAB | Code | 17 | 64 | function b = Ito_Vasicek_Stochastic(r,t,alpha,r_inf,sigma)
% Ito_Vasicek_Stochastic: Stochastic component for the Vasicek model.
%
b = sigma;
end | 9,918 |
https://github.com/arkon/ColourNTP/blob/master/src/scripts/components/colour/Panels.js | Github Open Source | Open Source | MIT | 2,020 | ColourNTP | arkon | JavaScript | Code | 552 | 2,214 | import React from 'react';
import classNames from 'classnames';
import Tabs from '../layout/Tabs';
import Tab from '../layout/Tab';
import Browser from '../../modules/browser';
export default class Panels extends React.Component {
constructor(props) {
super(props);
this.state = {
open : -1... | 7,513 |
https://github.com/gbuddappagari/webpa-common/blob/master/middleware/fanout/mocks_test.go | Github Open Source | Open Source | Apache-2.0 | null | webpa-common | gbuddappagari | Go | Code | 19 | 63 | package fanout
import "github.com/stretchr/testify/mock"
type mockRequest struct {
mock.Mock
}
func (m *mockRequest) Entity() interface{} {
return m.Called().Get(0)
}
| 34,017 |
https://github.com/gigigoapps/gigigo-ios-lib/blob/master/Source/GIGUtils/Style/Styles/ViewStyle.swift | Github Open Source | Open Source | MIT | 2,020 | gigigo-ios-lib | gigigoapps | Swift | Code | 124 | 359 | import UIKit
public struct ViewStyle {
var borderColor: UIColor
var borderWidth: CGFloat
var someBorders: [Border]
var dottedBorders: Bool
var cornerRadius: CGFloat?
var shadowColor: UIColor
var shadowOffset: CGSize
var shadowOpacity: Float
var shadowRadius: CGFloat
var backgrou... | 17,749 |
https://github.com/tensorflow/tensorflow/blob/master/tensorflow/core/api_def/base_api/api_def_UncompressElement.pbtxt | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-generic-cla, BSD-2-Clause | 2,023 | tensorflow | tensorflow | Protocol Buffer Text Format | Code | 13 | 41 | op {
graph_op_name: "UncompressElement"
visibility: HIDDEN
summary: "Uncompresses a compressed dataset element."
}
| 29,209 |
https://github.com/AK391/SciCo/blob/master/eval/hypernym.py | Github Open Source | Open Source | Apache-2.0 | 2,022 | SciCo | AK391 | Python | Code | 398 | 1,420 | import collections
from itertools import chain, product
import networkx as nx
import jsonlines
import sys
class HypernymScore:
def __init__(self, gold, system):
self.gold = {x['id']: x for x in gold}
self.system = {x['id']: x for x in system}
self.recall_num, self.recall_denominator = [], ... | 14,632 |
https://github.com/apache/forrest/blob/master/plugins/org.apache.forrest.plugin.input.OpenOffice.org/resources/stylesheets/aggregates/openoffice-writer.xsl | Github Open Source | Open Source | Apache-2.0 | 2,021 | forrest | apache | null | Spoken | 204 | 805 | <?xml version="1.0" encoding="UTF-8"?>
<!--
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, Ver... | 15,581 |
https://github.com/mtodd/halcyon/blob/master/lib/halcyon/logging/logger.rb | Github Open Source | Open Source | MIT | 2,021 | halcyon | mtodd | Ruby | Code | 51 | 178 | require 'logger'
module Halcyon
module Logging
class Logger < ::Logger
class << self
def setup(config)
logger = config[:logger] || self.new(config[:file] || STDOUT)
logger.formatter = proc{|s,t,p,m|"%5s [%s] (%s) %s :: %s\n" % [s, t.strftime("%Y-%m-%d %H:%M:%S"), ... | 27,906 |
https://github.com/g-stefan/quantum-script-extension-application/blob/master/source/quantum-script-extension-application-copyright.hpp | Github Open Source | Open Source | MIT, Unlicense | null | quantum-script-extension-application | g-stefan | C++ | Code | 103 | 538 | //
// Quantum Script Extension Application
//
// Copyright (c) 2020-2021 Grigore Stefan <g_stefan@yahoo.com>
// Created by Grigore Stefan <g_stefan@yahoo.com>
//
// MIT License (MIT) <http://opensource.org/licenses/MIT>
//
#ifndef QUANTUM_SCRIPT_EXTENSION_APPLICATION_COPYRIGHT_HPP
#define QUANTUM_SCRIPT_EXTENSION_APPL... | 31,026 |
https://github.com/pangkeji/warp3d/blob/master/linux_packages/source/hypre-2.9.0b/src/test/TEST_ams/aFEM.x.1 | Github Open Source | Open Source | NCSA | 2,022 | warp3d | pangkeji | null | Spoken | 214 | 1,609 | 213
5.000000e-01
2.500000e-01
5.000000e-01
3.750000e-01
0.000000e+00
2.500000e-01
0.000000e+00
0.000000e+00
7.500000e-01
7.500000e-01
2.500000e-01
0.000000e+00
0.000000e+00
0.000000e+00
2.500000e-01
0.000000e+00
1.250000e-01
0.000000e+00
0.000000e+00
1.250000e-01
0.000000e+00
5.000000e-01
3.750000e-01
5.000000e-01
2.50... | 23,151 |
https://github.com/obs145628/cle/blob/master/middle-end-optis/unssa/src/lib/dom-tree.hh | Github Open Source | Open Source | MIT | null | cle | obs145628 | C++ | Code | 149 | 339 | #pragma once
#include <vector>
#include "dom.hh"
#include "module.hh"
#include "vertex-adapter.hh"
// Build a dominance tree
// Compute the Immediate dominator of every bb
// u = IDom(b) iff:
// - u strictly dominates b
// - {v dominates u: v in Dom(b)}
// Every bb has one unique IDom, except the entry block which... | 10,206 |
https://github.com/mjgerdes/cg/blob/master/serverapp/data/cards/basic_metal_platee.pb | Github Open Source | Open Source | MIT | null | cg | mjgerdes | null | Spoken | 41 | 83 |
id: basic_metal_plate
name: "Metal Plate"
set: general
type: support
category: tech
support_cost: 3
attack: 0
health: 6
description: "Repair 6 damage to a system."
fluff: "Look, I know it's not fancy, but it gets the job done and the hull sealed!"
| 22,675 |
https://github.com/alldatacenter/alldata/blob/master/shuffle/uniffle.1/coordinator/src/main/java/org/apache/uniffle/coordinator/ClusterManager.java | Github Open Source | Open Source | Apache-2.0, BSD-3-Clause, MIT | 2,023 | alldata | alldatacenter | Java | Code | 230 | 450 | /*
* 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 may ... | 14,772 |
https://github.com/hideyuk1/css-loaders/blob/master/src/loaders/three-dots/index.js | Github Open Source | Open Source | MIT | 2,020 | css-loaders | hideyuk1 | JavaScript | Code | 9 | 32 | import threeDots from "./three-dots.html";
import "./three-dots.css";
export default threeDots; | 27,159 |
https://github.com/cardbox/frontend/blob/master/src/shared/ui/molecules/index.ts | Github Open Source | Open Source | MIT | 2,022 | frontend | cardbox | TypeScript | Code | 14 | 26 | export { Tabs, Tab, TabTitle } from './tabs';
export { Chip } from './chip';
| 37,557 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.