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/orcunsaltik/bro-jq/blob/master/src/method/public/dom/copyHtml.js | Github Open Source | Open Source | MIT | 2,020 | bro-jq | orcunsaltik | JavaScript | Code | 23 | 76 | export default (src, dst) => {
const clone = dst.ownerDocument !== src.ownerDocument
? dst.ownerDocument.importNode(src, true) : src.cloneNode(true);
while (clone.firstChild) {
dst.appendChild(clone.firstChild);
}
};
| 20,609 |
https://github.com/kai1313matchad/wkl/blob/master/application/modules3/vendor/views/create.php | Github Open Source | Open Source | MIT | null | wkl | kai1313matchad | PHP | Code | 1,008 | 5,051 |
<div class="m-portlet m-portlet--tab">
<div class="m-portlet__head">
<div class="m-portlet__head-caption">
<div class="m-portlet__head-title">
<span class="m-portlet__head-icon m--hide">
<i class="la la-gear"></i>
</span>
<h3 class="m-portlet__head-text">
<?= $headline ?> <span id="venCat">... | 43,814 |
https://github.com/dantleech/phptui/blob/master/src/Color/AnsiCodes.php | Github Open Source | Open Source | MIT | 2,021 | phptui | dantleech | PHP | Code | 90 | 306 | <?php
namespace DTL\ConsoleCanvas\Color;
use DTL\ConsoleCanvas\Color;
use DTL\ConsoleCanvas\ColorCodes;
use RuntimeException;
final class AnsiCodes implements ColorCodes
{
private array $color = [
Color::BLACK => '30',
Color::RED => '31',
Color::GREEN => '32',
Color::YELLOW => '33... | 42,251 |
https://github.com/wanghl314/spring-boot-admin-demo/blob/master/spring-boot-admin-server/src/main/java/com/whl/spring/admin/config/SecurityPermitAllConfig.java | Github Open Source | Open Source | MIT | 2,023 | spring-boot-admin-demo | wanghl314 | Java | Code | 67 | 403 | package com.whl.spring.admin.config;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Profile;
import org.springframework.http.HttpMethod;
import org.springframework.security.config.annotation.web.builders.Htt... | 28,477 |
https://github.com/DmitryStrakhov/Data-Structures-and-Algorithms/blob/master/Base.cs | Github Open Source | Open Source | MIT | 2,022 | Data-Structures-and-Algorithms | DmitryStrakhov | C# | Code | 527 | 1,526 | using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Data_Structures_and_Algorithms {
public abstract class EnumerableBase<T> : IEnumerable<T> {
public EnumerableBase() {
}
... | 1,345 |
https://github.com/patil215/v8/blob/master/fuzzer_output/interesting/sample_1554190709870.js | Github Open Source | Open Source | BSD-3-Clause | null | v8 | patil215 | JavaScript | Code | 90 | 296 | function main() {
const v4 = [13.37];
const v5 = {};
const v10 = [1337];
const v11 = [v10];
function v13(v14,v15,v16,v17) {
'use strict'
const v19 = [13.37];
v19[-2147483648] = v14;
for (let v23 = 0; v23 < 100; v23++) {
const v25 = Symbol.iterator;
const v26 = v19[v25];
v19[28563... | 26,911 |
https://github.com/andrey-buligin/quickNotes/blob/master/Resources/alloy/controllers/index.js | Github Open Source | Open Source | Apache-2.0 | 2,012 | quickNotes | andrey-buligin | JavaScript | Code | 143 | 590 | function Controller() {
function doClick(e) {
alert($.label.text);
}
require("alloy/controllers/BaseController").apply(this, Array.prototype.slice.call(arguments));
$model = arguments[0] ? arguments[0].$model : null;
var $ = this, exports = {};
$.__views.index = A$(Ti.UI.createWindow({
... | 54,637 |
https://github.com/NoFear23m/nUpdate/blob/master/nUpdate.UpdateInstaller/Core/InstallerServiceProvider.cs | Github Open Source | Open Source | MIT | 2,018 | nUpdate | NoFear23m | C# | Code | 73 | 244 | // Copyright © Dominic Beger 2018
using System;
using System.Collections.Generic;
using nUpdate.UpdateInstaller.Client.GuiInterface;
using nUpdate.UpdateInstaller.Core;
[assembly: ServiceProvider(typeof(InstallerServiceProvider))]
namespace nUpdate.UpdateInstaller.Core
{
public class InstallerServiceProvider : ... | 28,237 |
https://github.com/SmelovNick/java_education/blob/master/java-web-testing/src/test/java/ru/stqa/pft/javawebtesting/tests/Contact/DeleteContactTest.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | java_education | SmelovNick | Java | Code | 21 | 123 | package ru.stqa.pft.javawebtesting.tests.Contact;
import org.testng.annotations.Test;
import ru.stqa.pft.javawebtesting.tests.TestBase;
public class DeleteContactTest extends TestBase {
@Test
public void deleteContact(){
app.getNavigationHelper().goToFollowPage("Главная");
app.getContactHelpe... | 29,554 |
https://github.com/bubdm/King.Data.Sql.Reflection/blob/master/King.Data.Sql.Reflection.sln | Github Open Source | Open Source | MIT | 2,019 | King.Data.Sql.Reflection | bubdm | null | Spoken | 204 | 1,758 |
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.27130.2036
MinimumVisualStudioVersion = 10.0.40219.1
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Test", "Test", "{7973CBE9-AF7B-44DB-94A3-ECD21D569AC4}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04... | 726 |
https://github.com/fuse-open/uno/blob/master/lib/UnoCore/src/Uno/CharPunctuationChecker.uno | Github Open Source | Open Source | MIT | 2,023 | uno | fuse-open | null | Spoken | 219 | 1,409 | using Uno.Collections;
namespace Uno
{
//https://msdn.microsoft.com/en-us/library/system.char.ispunctuation(v=vs.110).aspx 2015-03-13
class CharPunctuationChecker
{
class PunctuationRange
{
internal char Start { get; set; }
internal char End { get; set; }
... | 30,762 |
https://github.com/swc-project/swc/blob/master/crates/swc/tests/tsc-references/symbolDeclarationEmit1.1.normal.js | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, Apache-2.0 | 2,023 | swc | swc-project | JavaScript | Code | 13 | 39 | //// [symbolDeclarationEmit1.ts]
let prop;
class C {
}
(()=>{
prop = Symbol.toPrimitive;
})();
| 30,535 |
https://github.com/perfsonar/perl-shared/blob/master/libperfsonar/libperfsonar/lib/SimpleLookupService/Client/Registration.pm | Github Open Source | Open Source | Apache-2.0 | 2,023 | perl-shared | perfsonar | Perl | Code | 314 | 1,021 | package SimpleLookupService::Client::Registration;
=head1 NAME
SimpleLookupService::Client::Registration - The Lookup Service Registration class
=head1 DESCRIPTION
A base class for Lookup Service registrations. It defines the fields used by all
registrations. Specific types of service records may become subclasses... | 31,610 |
https://github.com/champseo2017/Brother-Pong/blob/master/HomTea/HomTea/resources/views/frontend/newOrders.blade.php | Github Open Source | Open Source | MIT | 2,017 | Brother-Pong | champseo2017 | Blade | Code | 151 | 701 | @extends('frontend.layouts.master')
@section('title', 'New orders')
@section('content')
<!-- Content Header (Page header) -->
<section class="content-header">
<h1>
New orders
<small>Preview page</small>
</h1>
<ol class="breadcrumb">
<li><a href="/frontend/dashboard" data-pjax><i class="fa fa-dashboa... | 50,297 |
https://github.com/guicamest/bsoneer/blob/master/compiler/compiler/src/test/java/com/sleepcamel/bsoneer/tests/integration/BsoneeCodecRegistryGenerationTest.java | Github Open Source | Open Source | Apache-2.0 | 2,019 | bsoneer | guicamest | Java | Code | 160 | 495 | /*
* Copyright (C) 2015 Sleepcamel.
*
* 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 ... | 21,208 |
https://github.com/knxyzkn/react-message-router/blob/master/src/WhatsappMessage.js | Github Open Source | Open Source | MIT | 2,019 | react-message-router | knxyzkn | JavaScript | Code | 44 | 155 | import React from 'react';
import encodeUrl from 'encodeurl';
class WhatsappMessage extends React.Component {
render() {
let body = this.props.textBody ? encodeUrl(this.props.textBody) : '';
let number = this.props.number ? this.props.number : '';
return (
<div>
<a href={`https://api.whatsa... | 22,979 |
https://github.com/xdariel/plusmobile-api/blob/master/src/shared/modules/user/modules/user-position/cqrs/queries/impl/get-paginated-user-position.query.ts | Github Open Source | Open Source | MIT | null | plusmobile-api | xdariel | TypeScript | Code | 30 | 125 | import { GetPaginatedQuery } from 'src/shared/modules/app-cqrs/queries/impl/get-paginated.query';
import { UserPositionEntity } from '../../../entities/user-position.entity';
import { GetPaginatedDto } from 'src/shared/dto/get-paginated.dto';
export class GetPaginatedUserPositionQuery extends GetPaginatedQuery<UserPos... | 33,048 |
https://github.com/Chris-Johnston/ledcap/blob/master/simulatorcontroller.py | Github Open Source | Open Source | MIT | 2,021 | ledcap | Chris-Johnston | Python | Code | 65 | 227 | """
Simulator Controller
Listens to the key press events and calls the methods of the pattern manager
"""
from controller import Controller
from tkinter import Canvas
class SimulatorController(Controller):
def __init__(self, patternmanager):
super().__init__(patternmanager)
self.canvas = None
... | 56,762 |
https://github.com/openforcefield/openff-evaluator/blob/master/integration-tests/paprika/submit.sh | Github Open Source | Open Source | MIT, LicenseRef-scancode-unknown-license-reference | 2,023 | openff-evaluator | openforcefield | Shell | Code | 66 | 179 | #!/bin/bash
#
# Set the job name and wall time limit
#BSUB -J paprika
#BSUB -W 24:00
#
# Set the output and error output paths.
#BSUB -o %J.o
#BSUB -e %J.e
#
# Set any gpu options.
#BSUB -q gpuqueue
#BSUB -gpu num=1:j_exclusive=yes:mode=shared:mps=no:
# Enable conda
. /home/boothros/.bashrc
conda activate openff-eva... | 37,409 |
https://github.com/onmyway133/Runtime-Headers/blob/master/macOS/10.12/Foundation.framework/NSAbstractLayoutGuide.h | Github Open Source | Open Source | MIT | 2,022 | Runtime-Headers | onmyway133 | C | Code | 323 | 1,205 | /* Generated by RuntimeBrowser
Image: /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
*/
@interface NSAbstractLayoutGuide : NSObject <NSCoding, NSISVariableDelegate, NSLayoutItem> {
<NSLayoutItem> * _concreteLayoutGuide;
NSISVariable * _heightVariable;
NSString * _identifier;
... | 54,365 |
https://github.com/johnandrade18/tasks_nodejs_vue/blob/master/backend/routes/index.routes.js | Github Open Source | Open Source | MIT | null | tasks_nodejs_vue | johnandrade18 | JavaScript | Code | 25 | 130 | import express from "express";
const router = express.Router();
import {listar_task,crear_task,actualizar_task,eliminar_task,task_by_id} from '../controllers/traskController.js'
router.get("/", listar_task);
router.get("/:id", task_by_id);
router.post('/', crear_task);
router.put('/:id', actualizar_task);
router.... | 14,104 |
https://github.com/fengjixuchui/lhrc/blob/master/android/app/src/main/cpp/serverAgent/proxyClient.h | Github Open Source | Open Source | Apache-2.0 | 2,020 | lhrc | fengjixuchui | C++ | Code | 117 | 490 | #pragma once
#include "stdafx.h"
#include <atomic>
#include "clientAgent.h"
class proxyClient
{
public:
proxyClient();
~proxyClient();
bool init(const char* host, const char* ip, const char* mark, bool connect, int lport);
bool unInit();
bool setConnect(bool connect);
private:
bool workThread();
bool connectT... | 42,741 |
https://github.com/jai2033shankar/Pact.Fhir/blob/master/Pact.Fhir.Api/Presenters/ReadResourcePresenter.cs | Github Open Source | Open Source | MIT | 2,019 | Pact.Fhir | jai2033shankar | C# | Code | 53 | 218 | namespace Pact.Fhir.Api.Presenters
{
using System.Net;
using Hl7.Fhir.Rest;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Pact.Fhir.Api.Response;
using Pact.Fhir.Core.Usecase;
public static class ReadResourcePresenter
{
public static IActionResult Present(ResourceRespon... | 39,268 |
https://github.com/nedsalk/react-formik-mui/blob/master/src/FormikRadio.tsx | Github Open Source | Open Source | MIT | 2,022 | react-formik-mui | nedsalk | TypeScript | Code | 151 | 563 | import * as React from "react";
import { FastFieldProps } from "formik";
import { FormControlLabel, Radio } from "@material-ui/core";
import { RadioProps } from "@material-ui/core/Radio";
import { FormHelperTextProps } from "@material-ui/core/FormHelperText";
import { FormControlLabelProps } from "@material-ui/core/For... | 5,900 |
https://github.com/adamskor/tensor/blob/master/data_handler.py | Github Open Source | Open Source | BSD-2-Clause | null | tensor | adamskor | Python | Code | 1,159 | 4,220 | import openpyxl as xl
from pathlib import Path
import json
import datetime as dt
import pandas_datareader as web
import random as rd
dicts = []
number_of_tickers = 10
def extract_tickers():
data = {}
data['Data'] = []
path_to_tickerdata = Path('data', 'ticker.xlsx')
wb = xl.load_workbook(path_to_tickerd... | 51,376 |
https://github.com/felixxm/django-htmx/blob/master/example/example/settings.py | Github Open Source | Open Source | MIT | 2,022 | django-htmx | felixxm | Python | Code | 84 | 379 | import os
from pathlib import Path
from typing import Any, Dict
BASE_DIR = Path(__file__).parent
DEBUG = os.environ.get("DEBUG", "") == "1"
SECRET_KEY = ")w%-67b9lurhzs*o2ow(e=n_^(n2!0_f*2+g+1*9tcn6_k58(f"
# Dangerous: disable host header validation
ALLOWED_HOSTS = ["*"]
INSTALLED_APPS = [
"example.core",
... | 25,569 |
https://github.com/ManageIQ/manageiq-smartstate/blob/master/lib/metadata/linux/MiqConaryPackages.rb | Github Open Source | Open Source | Apache-2.0 | 2,023 | manageiq-smartstate | ManageIQ | Ruby | Code | 92 | 366 | require 'binary_struct'
require 'util/miq-hash_struct'
require 'db/MiqSqlite/MiqSqlite3'
class MiqConaryPackages
def initialize(fs, dbFile)
@pkgDb = MiqSqlite3DB::MiqSqlite3.new(dbFile, fs)
tVersions = @pkgDb.getTable("Versions")
tInstances = @pkgDb.getTable("Instances")
@versions = {}
tVersio... | 35,469 |
https://github.com/PippoRaimondi/rekt-prevent/blob/master/src/infrastructure/config/EnvironmentConfig.ts | Github Open Source | Open Source | MIT | null | rekt-prevent | PippoRaimondi | TypeScript | Code | 151 | 543 | import { Config } from '../../application/config/Config';
export const parseConfigFromEnvironment = (): Config => {
let environment: 'local' | 'staging' | 'production' | 'test';
switch (process.env.ENVIRONMENT) {
case 'staging':
environment = 'staging';
break;
case 'production':
environme... | 43,721 |
https://github.com/svn2github/matreshka/blob/master/testsuite/amf/TN-225/test_225.adb | Github Open Source | Open Source | BSD-3-Clause | 2,021 | matreshka | svn2github | Ada | Code | 456 | 1,306 | ------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... | 10,732 |
https://github.com/jeremymcrae/publishedDeNovos/blob/master/man/find_most_severe_transcript.Rd | Github Open Source | Open Source | MIT | 2,018 | publishedDeNovos | jeremymcrae | R | Code | 149 | 301 | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ensembl_rest.R
\name{find_most_severe_transcript}
\alias{find_most_severe_transcript}
\title{find the most severe transcript from Ensembl data}
\usage{
find_most_severe_transcript(ensembl_json, include_hgvs = FALSE,
exclude_bad = TRUE)
}
\a... | 33,326 |
https://github.com/ksyx/bill_statistics/blob/master/opencv-4.0.1-mingw/build/modules/imgcodecs/Makefile | Github Open Source | Open Source | MIT | 2,021 | bill_statistics | ksyx | Makefile | Code | 3,331 | 18,194 | # CMAKE generated file: DO NOT EDIT!
# Generated by "MinGW Makefiles" Generator, CMake Version 3.13
# Default target executed when no arguments are given to make.
default_target: all
.PHONY : default_target
# Allow only one "make -f Makefile2" at a time, but pass parallelism.
.NOTPARALLEL:
#=======================... | 18,671 |
https://github.com/zahidtdx61/CSES-Problem-Set/blob/master/Introductory-Problems/01-Weird_Algorithm.cpp | Github Open Source | Open Source | MIT | null | CSES-Problem-Set | zahidtdx61 | C++ | Code | 49 | 145 | //my solution link : https://cses.fi/paste/58f0c16f83525b0617976d/
#include <bits/stdc++.h>
using namespace std;
int main()
{
long long n;
cin >> n;
while(n!=1){
cout << n << " ";
if(n%2 == 0){
n = n/2;
}
else{
n = (3*n) +1 ;
}
}
cou... | 24,918 |
https://github.com/SCECcode/CFM/blob/master/CFM5.3_4/ts/native/WTRA-SFFS-SMMT-Malibu_Coast_fault_east_steep_alt2-CFM5.ts | Github Open Source | Open Source | BSD-3-Clause | null | CFM | SCECcode | TypeScript | Code | 3,029 | 8,399 | GOCAD TSurf 1
HEADER {
name:WTRA-SFFS-SMMT-Malibu_Coast_fault_east_steep_alt2-CFM5
*visible:true
*solid*color:0.776720 0.572956 0.520580 1
}
GOCAD_ORIGINAL_COORDINATE_SYSTEM
NAME Default
AXIS_NAME "X" "Y" "Z"
AXIS_UNIT "m" "m" "m"
ZPOSITIVE Elevation
END_ORIGINAL_COORDINATE_SYSTEM
TFACE
VRTX 1 358379.03125 3766422.8125... | 38,458 |
https://github.com/jronallo/northwest-digital-archives/blob/master/vendor/plugins/blacklight/lib/tasks/solr_marc.rake | Github Open Source | Open Source | Apache-2.0 | 2,009 | northwest-digital-archives | jronallo | Ruby | Code | 223 | 889 | # Rake tasks for the SolrMarc Java indexer.
# Marc Record defaults to indexing lc_records.utf8.mrc
# config.properties defaults to config/demo_config.properties (in the plugin, not the rails app)
require 'fileutils'
namespace :solr do
namespace :marc do
desc "Index marc data using SolrMarc. Available environme... | 21,628 |
https://github.com/diennea/herddb/blob/master/herddb-core/src/main/java/herddb/sql/expressions/AccessFieldExpression.java | Github Open Source | Open Source | Apache-2.0 | 2,023 | herddb | diennea | Java | Code | 199 | 438 | /*
Licensed to Diennea S.r.l. under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. Diennea S.r.l. licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except ... | 12,328 |
https://github.com/ashnasbot/ashnasbot/blob/master/ashnasbot/twitch/db.py | Github Open Source | Open Source | MIT | null | ashnasbot | ashnasbot | Python | Code | 249 | 884 | import dataset
import time
import logging
db = dataset.connect('sqlite:///twitchdata.db')
tables = {}
logger = logging.getLogger(__name__)
def exists(tbl_name):
table = tables.get(tbl_name, None)
if not table:
table = db[tbl_name]
tables[tbl_name] = table
try:
return table.exists
... | 50,274 |
https://github.com/spiral-learning/learnjava/blob/master/src/main/java/com/learnwithted/episode3/nim/after/HumanPlayer.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | learnjava | spiral-learning | Java | Code | 83 | 267 | package com.learnwithted.episode3.nim.after;
import java.util.Scanner;
public class HumanPlayer extends Player {
private final Scanner sc;
public HumanPlayer(String name, Scanner scanner) {
super(name);
sc = scanner;
}
@Override
public Pile choosePile(Piles piles) {
String pileChoice;
do {... | 1,017 |
https://github.com/nguyer/aws-sdk-js-v3/blob/master/clients/node/client-kinesis-node/types/DescribeStreamSummaryOutput.ts | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-unknown-license-reference | 2,020 | aws-sdk-js-v3 | nguyer | TypeScript | Code | 61 | 170 | import { _UnmarshalledStreamDescriptionSummary } from "./_StreamDescriptionSummary";
import * as __aws_sdk_types from "@aws-sdk/types";
/**
* DescribeStreamSummaryOutput shape
*/
export interface DescribeStreamSummaryOutput
extends __aws_sdk_types.MetadataBearer {
/**
* <p>A <a>StreamDescriptionSummary</a> co... | 27,389 |
https://github.com/azadoks/aiida-core/blob/master/aiida/backends/sqlalchemy/migrations/versions/140c971ae0a3_migrate_builtin_calculations.py | Github Open Source | Open Source | MIT, BSD-3-Clause | 2,022 | aiida-core | azadoks | Python | Code | 341 | 1,197 | # -*- coding: utf-8 -*-
###########################################################################
# Copyright (c), The AiiDA team. All rights reserved. #
# This file is part of the AiiDA code. #
# ... | 34,878 |
https://github.com/almerindopaixao/big-game-survey-backend/blob/master/src/database/GameSchema.ts | Github Open Source | Open Source | MIT | null | big-game-survey-backend | almerindopaixao | TypeScript | Code | 46 | 137 | import mongoose from 'mongoose';
import autoIncrement from 'mongoose-auto-increment';
const GameSchema = new mongoose.Schema({
title: { type: String, required: true },
platform: { type: Number, required: true },
genre_id: { type: Number, required: true },
});
autoIncrement.initialize(mongoose.connection);
GameS... | 51,867 |
https://github.com/sumanahmed/Blood/blob/master/resources/views/blood/admin/symptom/symptom.blade.php | Github Open Source | Open Source | MIT | null | Blood | sumanahmed | PHP | Code | 394 | 1,849 | @extends('blood.admin.layout.admin')
@section('title','symptom')
@section('content')
<!-- Content Header (Page header) -->
<div class="content-header">
<div class="container-fluid">
<div class="row mb-2">
<div class="col-sm-6">
<h1 class="m-0 text-dark">All Symptom</h1>
... | 25,984 |
https://github.com/Guetrick/theme-gmd/blob/master/pages/Product/components/Header/components/Rating/mock.js | Github Open Source | Open Source | Apache-2.0 | null | theme-gmd | Guetrick | JavaScript | Code | 39 | 88 | /**
* Mock for getElementById
* @param {function} scrollSpy Element.scroll spy function.
* @returns {function}
*/
const getElementById = scrollSpy => () => ({
offsetTop: 100,
closest() {
return {
scroll: scrollSpy,
};
},
});
export { getElementById };
| 34,928 |
https://github.com/alldatacenter/alldata/blob/master/dts/datax/tdenginereader/src/test/java/com/alibaba/datax/plugin/reader/TDengineReaderTest.java | Github Open Source | Open Source | LGPL-2.0-or-later, LicenseRef-scancode-unknown-license-reference, Apache-2.0, BSD-3-Clause, MIT | 2,023 | alldata | alldatacenter | Java | Code | 357 | 1,859 | package com.alibaba.datax.plugin.reader;
import com.alibaba.datax.common.util.Configuration;
import com.alibaba.datax.plugin.writer.tdenginewriter.Key;
import org.junit.Assert;
import org.junit.Test;
import java.util.List;
public class TDengineReaderTest {
@Test
public void jobInit_case01() {
// giv... | 53,989 |
https://github.com/Yikun/reposcore/blob/master/reposcore/cli.py | Github Open Source | Open Source | Apache-2.0 | 2,021 | reposcore | Yikun | Python | Code | 598 | 2,111 | # Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under t... | 52,347 |
https://github.com/vagrant200192/euro-task/blob/master/views/product/_item.php | Github Open Source | Open Source | BSD-3-Clause | null | euro-task | vagrant200192 | PHP | Code | 100 | 393 | <?php
/**
* @var $model app\models\Product
*/
use yii\helpers\Html;
$infoUser = $model->infoUser;
?>
<h3>Product's name: <?= Html::a($model->title, ['view', 'id' => $model->id])?></h3>
<div class="row">
<?= Html::beginForm(['info/add-info', 'product_id' => $model->id, 'info_id' => $infoUser->id], 'post') ?>
... | 40,122 |
https://github.com/quantvhq99/android-music-app/blob/master/app/src/main/java/com/vpaliy/mediaplayer/domain/interactor/ClearInteractor.kt | Github Open Source | Open Source | Apache-2.0 | 2,018 | android-music-app | quantvhq99 | Kotlin | Code | 34 | 132 | package com.vpaliy.mediaplayer.domain.interactor
import com.vpaliy.mediaplayer.domain.interactor.params.ModifyRequest
import com.vpaliy.mediaplayer.domain.model.RequestError
import com.vpaliy.mediaplayer.domain.model.TrackType
interface ClearInteractor {
fun clearAll(success: () -> Unit, error: (RequestError) -> Un... | 52,204 |
https://github.com/saoun/Catsosphere/blob/master/db/migrate/20161012194523_remove_columns.rb | Github Open Source | Open Source | MIT | 2,017 | Catsosphere | saoun | Ruby | Code | 26 | 83 | class RemoveColumns < ActiveRecord::Migration[5.0]
def change
remove_column :users, :provider, :string
remove_column :users, :uid, :string
add_reference :posts, :user, foreign_key: true
add_reference :comments, :user, foreign_key: true
end
end
| 37,135 |
https://github.com/steelbrain/intentions/blob/master/spec/element-list-spec.js | Github Open Source | Open Source | MIT | 2,021 | intentions | steelbrain | JavaScript | Code | 216 | 903 | /* @flow */
import "module-alias/register"
import { ListElement } from "../dist/elements/list"
import type { Refs as ListElementRefs } from "../lib/elements/list"
import { createSuggestion } from "./helpers"
import { render } from "solid-js/web"
/* eslint-disable-next-line no-shadow */
function getOlElement(suggestio... | 32,118 |
https://github.com/pi-engine/pi/blob/master/lib/Pi/Form/Element/Captcha.php | Github Open Source | Open Source | BSD-3-Clause | 2,022 | pi | pi-engine | PHP | Code | 96 | 310 | <?php
/**
* Pi Engine (http://piengine.org)
*
* @link http://code.piengine.org for the Pi Engine source repository
* @copyright Copyright (c) Pi Engine http://piengine.org
* @license http://piengine.org/license.txt BSD 3-Clause License
* @package Form
*/
namespace Pi\Form\Elemen... | 12,156 |
https://github.com/Bhuvanesh1208/ruby2.6.1/blob/master/msys64/mingw64/x86_64-w64-mingw32/include/profinfo.h | Github Open Source | Open Source | Ruby | 2,022 | ruby2.6.1 | Bhuvanesh1208 | C | Code | 94 | 311 | /**
* This file has no copyright assigned and is placed in the Public Domain.
* This file is part of the mingw-w64 runtime package.
* No warranty is given; refer to the file DISCLAIMER.PD within this package.
*/
#ifndef _INC_PROFINFO
#define _INC_PROFINFO
#include <_mingw_unicode.h>
typedef struct _PROFILEINFOA {... | 43,170 |
https://github.com/repohoarder/the-mesh-for-data/blob/master/manager/controllers/utils/utils.go | Github Open Source | Open Source | Apache-2.0 | 2,020 | the-mesh-for-data | repohoarder | Go | Code | 796 | 2,000 | // Copyright 2020 IBM Corp.
// SPDX-License-Identifier: Apache-2.0
package utils
import (
"crypto/sha256"
"encoding/hex"
"encoding/json"
"errors"
"fmt"
"runtime"
"sort"
app "github.com/ibm/the-mesh-for-data/manager/apis/app/v1alpha1"
dc "github.com/ibm/the-mesh-for-data/pkg/connectors/protobuf"
"google.gol... | 14,192 |
https://github.com/jonsequitur/Alluvial/blob/master/Alluvial/Stream.cs | Github Open Source | Open Source | MIT | 2,016 | Alluvial | jonsequitur | C# | Code | 2,219 | 6,824 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Alluvial.Fluent;
using trace = System.Diagnostics.Trace;
namespace Alluvial
{
/// <summary>
/// Methods for working with streams.
/// </summary>
public static class Stream
{
/// <summary>
... | 45,339 |
https://github.com/bbxyard/bbxyard/blob/master/yard/skills/66-go/microservice-demo/src/Makefile | Github Open Source | Open Source | Apache-2.0 | 2,020 | bbxyard | bbxyard | Makefile | Code | 97 | 438 |
# 引入依赖
include abc/yvhai/mk/deps.mk
# ####################################
# Configure AREA
# ####################################
BIN_DIR := $(CURDIR)/../bin
# ####################################
# Dashboard AREA
# ####################################
# ####################################
# Build AREA
# ####... | 12,881 |
https://github.com/Kava-Labs/kava/blob/master/tests/e2e/testutil/init_evm.go | Github Open Source | Open Source | Apache-2.0 | 2,023 | kava | Kava-Labs | Go | Code | 276 | 996 | package testutil
import (
"context"
"fmt"
"math/big"
"github.com/ethereum/go-ethereum/common"
"github.com/kava-labs/kava/tests/e2e/contracts/greeter"
"github.com/kava-labs/kava/x/cdp/types"
evmutiltypes "github.com/kava-labs/kava/x/evmutil/types"
)
// InitKavaEvmData is run after the chain is running, but be... | 35,701 |
https://github.com/allen2022/yii2.0blog/blob/master/vendor/swiftmailer/swiftmailer/lib/classes/Swift/CharacterStream.php | Github Open Source | Open Source | BSD-3-Clause | null | yii2.0blog | allen2022 | PHP | Code | 298 | 577 | <?php
/*
* This file is part of SwiftMailer.
* (c) 2004-2009 Chris Corbyn
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source coder.
*/
/**
* An abstract means of reading and writing data in terms of characters as opposed
* to bytes.
*
* C... | 56,903 |
https://github.com/jariz/Mutify/blob/master/SpotifyAdblockRevo/Main.Designer.cs | Github Open Source | Open Source | WTFPL | 2,013 | Mutify | jariz | C# | Code | 700 | 3,681 | namespace Mutify
{
partial class Main
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="... | 31,733 |
https://github.com/yroffin/optimus/blob/master/optimus-core/optimus-business/src/main/java/org/optimus/nosql/NoSqlConn.java | Github Open Source | Open Source | Apache-2.0 | 2,014 | optimus | yroffin | Java | Code | 84 | 235 | package org.optimus.nosql;
import java.util.List;
import java.util.Set;
import org.optimus.exception.TechnicalException;
import org.optimus.model.event.GenericEvent;
public interface NoSqlConn {
/**
* get all collection in database
*
* @return
*/
Set<String> getCollectionNames();
/**
* find all eleme... | 8,035 |
https://github.com/heartbender/exevo-pan/blob/master/apps/exevo-pan/src/modules/LibertabraWar/components/GuildSummary/index.tsx | Github Open Source | Open Source | Unlicense | 2,022 | exevo-pan | heartbender | TypeScript | Code | 79 | 312 | import { useTranslations } from 'contexts/useTranslation'
import * as S from './styles'
import { GuildSummaryProps } from './types'
const GuildSummary = ({
guildName,
href,
displayValue,
diffText,
label,
winning,
...props
}: GuildSummaryProps): JSX.Element => {
const {
translations: { war },
} = ... | 46,234 |
https://github.com/bjsmith/reversallearning/blob/master/nate_files/Final_Models/double_update_rp_repeated_runsv2.stan | Github Open Source | Open Source | Apache-2.0 | null | reversallearning | bjsmith | null | Spoken | 1,225 | 4,739 | data {
int<lower=1> N;#number of subjects
int<lower=1> T; #number of trials (max)
int<lower=1> R; #number of runs (max)
int<lower=1,upper=T> Tsubj[N]; #count of trials for each subject.
int<lower=1,upper=100> N_cues[N];
int<lower=0,upper=2> choice[N,T];
int<lower=0,upper=100> cue[N,T];
int trial[N,T];
... | 16,497 |
https://github.com/zurazurataicho/go-learn/blob/master/go_embedded_structure_receiver/main.go | Github Open Source | Open Source | MIT | null | go-learn | zurazurataicho | Go | Code | 78 | 183 | package main
import "fmt"
type Turn int
const (
Left Turn = iota
Right
)
type Engine struct {
Type string
Rpm int
}
type Wheel struct {
Degree int
}
type Car struct {
Maker string
Wheel
Engine
}
func (c *Car) Turn(d Turn) {
if d == Right {
c.Degree += 90
return
}
if d == Left {
c.Degree -= 90
... | 43,399 |
https://github.com/SSSDNSY/go/blob/master/src/io/fs/example_test.go | Github Open Source | Open Source | BSD-3-Clause | 2,022 | go | SSSDNSY | Go | Code | 70 | 180 | // Copyright 2021 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package fs_test
import (
"fmt"
"io/fs"
"log"
"os"
)
func ExampleWalkDir() {
root := "/usr/local/go/bin"
fileSystem := os.DirFS(root)
fs.WalkDir(fileSy... | 1,105 |
https://github.com/thebridsk/bridgescorer/blob/master/shared/shared/src/main/scala/com/github/thebridsk/bridge/data/rest/JsonSupport.scala | Github Open Source | Open Source | MIT | 2,018 | bridgescorer | thebridsk | Scala | Code | 762 | 3,519 | package com.github.thebridsk.bridge.data.rest
import play.api.libs.json._
import com.github.thebridsk.bridge.data._
import com.github.thebridsk.bridge.data.websocket.DuplexProtocol.LogEntryV2
import com.github.thebridsk.bridge.data.duplicate.suggestion.Suggestion
import com.github.thebridsk.bridge.data.duplicate.sugge... | 38,936 |
https://github.com/soolx/plugins/blob/master/packages/plugin-qiankun/examples/master/layouts/index.js | Github Open Source | Open Source | MIT | 2,022 | plugins | soolx | JavaScript | Code | 189 | 626 | import { Breadcrumb, Layout, Menu } from 'antd';
import { connect } from 'dva';
import React from 'react';
import { Link } from 'umi';
import style from './style.less';
const { Header, Content, Footer } = Layout;
const renderBreadCrumb = (pathname) => {
let arr = pathname.split('/').slice(1);
if (arr[0] === '') {... | 35,091 |
https://github.com/bitslab/chroniclerj/blob/master/Code/Nondeterminism Detector/src/edu/columbia/cs/psl/nddetector/NDMutateMV.java | Github Open Source | Open Source | Unlicense, Apache-2.0, MIT | 2,017 | chroniclerj | bitslab | Java | Code | 76 | 329 | package edu.columbia.cs.psl.nddetector;
import java.util.HashSet;
import java.util.LinkedList;
import org.objectweb.asm.MethodVisitor;
import org.objectweb.asm.commons.GeneratorAdapter;
import com.sun.xml.internal.ws.org.objectweb.asm.Opcodes;
public class NDMutateMV extends MethodVisitor {
public NDMutateMV(int ... | 50,078 |
https://github.com/volkit/volkit/blob/master/src/vkt/HierarchicalVolume.cpp | Github Open Source | Open Source | MIT | 2,023 | volkit | volkit | C++ | Code | 437 | 1,726 | // This file is distributed under the MIT license.
// See the LICENSE file for details.
#include <cassert>
#include <cstdlib>
#include <vkt/ExecutionPolicy.hpp>
#include <vkt/HierarchicalVolume.hpp>
#include <vkt/Memory.hpp>
#include <vkt/HierarchicalVolume.h>
#include "DataFormatInfo.hpp"
#include "linalg.hpp"
#in... | 17,496 |
https://github.com/wei120698598/AndroidCode/blob/master/app/src/test/java/com/wei/sample/ExampleUnitTest.kt | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-unknown-license-reference | 2,019 | AndroidCode | wei120698598 | Kotlin | Code | 62 | 204 | package com.wei.sample
import io.reactivex.MaybeObserver
import io.reactivex.MaybeSource
import io.reactivex.Observable
import io.reactivex.functions.Consumer
import org.junit.Assert.assertEquals
import org.junit.Test
/**
* Example local unit test, which will execute on the development machine (host).
*
* See [tes... | 49,125 |
https://github.com/xinix-technology/xin/blob/master/index.js | Github Open Source | Open Source | MIT | 2,021 | xin | xinix-technology | JavaScript | Code | 29 | 73 | import './scss/xin.scss';
import './scss/xin-components.scss';
import * as components from './components';
import * as middlewares from './middlewares';
export * from './core';
export * from './component';
export { components, middlewares };
| 35,878 |
https://github.com/ecix/alice-lg/blob/master/client/components/lookup/results.jsx | Github Open Source | Open Source | BSD-3-Clause | 2,021 | alice-lg | ecix | null | Spoken | 344 | 1,390 |
import _ from 'underscore'
import React from 'react'
import {connect} from 'react-redux'
import {Link} from 'react-router'
import FilterReason
from 'components/routeservers/large-communities/filter-reason'
import NoexportReason
from 'components/routeservers/large-communities/noexport-reason'
import {showBgpAtt... | 33,740 |
https://github.com/yifanrepo/virtual-construction/blob/master/Construction Simulation/Assets/Container_Shipping_House/Container shipping House double floor 2011.FBX.meta | Github Open Source | Open Source | MIT | 2,022 | virtual-construction | yifanrepo | Unity3D Asset | Code | 4,267 | 18,722 | fileFormatVersion: 2
guid: 88dadc211d009d844ba5b314d3c789dc
ModelImporter:
serializedVersion: 23
fileIDToRecycleName:
100000: Box19983
100002: Box20013
100004: Box20041
100006: Box20042
100008: Box20045
100010: Box20046
100012: Box20047
100014: Box20048
100016: Box20049
10001... | 4,092 |
https://github.com/openvinotoolkit/openvino/blob/master/src/tests/functional/shared_test_classes/src/single_layer/psroi_pooling.cpp | Github Open Source | Open Source | Apache-2.0 | 2,023 | openvino | openvinotoolkit | C++ | Code | 445 | 1,576 | // Copyright (C) 2018-2023 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include "shared_test_classes/single_layer/psroi_pooling.hpp"
namespace LayerTestsDefinitions {
std::string PSROIPoolingLayerTest::getTestCaseName(const testing::TestParamInfo<psroiParams>& obj) {
std::vector<size_t> inputShap... | 22,289 |
https://github.com/real-slim-chadi/Python-Object-Oriented-Programming---4th-edition/blob/master/ch_12/src/card_games.py | Github Open Source | Open Source | MIT | 2,022 | Python-Object-Oriented-Programming---4th-edition | real-slim-chadi | Python | Code | 810 | 2,687 | """
Python 3 Object-Oriented Programming
Chapter 12. Advanced Python Design Patterns
"""
from __future__ import annotations
import abc
import collections
import random
from enum import Enum, auto
from typing import (
Any,
Counter,
Iterator,
Iterable,
List,
NamedTuple,
TypeVar,
cast,
)
... | 2,581 |
https://github.com/AFeng8987/pangucode/blob/master/csmall-dev/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/OrderGoodsMapper.java | Github Open Source | Open Source | MIT | 2,021 | pangucode | AFeng8987 | Java | Code | 44 | 268 | package org.linlinjava.litemall.db.dao;
import org.apache.ibatis.annotations.Param;
import org.linlinjava.litemall.db.domain.LitemallOrder;
import org.linlinjava.litemall.db.domain.LitemallOrderGoods;
import java.time.LocalDateTime;
import java.util.List;
import java.util.Map;
public interface OrderGoodsMapper {
... | 3,274 |
https://github.com/SvaLit/lit-async-ssr/blob/master/packages/labs/ssr/src/lib/dom-shim.ts | Github Open Source | Open Source | BSD-3-Clause | 2,018 | lit-async-ssr | SvaLit | TypeScript | Code | 594 | 1,494 | /**
* @license
* Copyright 2019 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/
/**
* This module *minimally* implements the DOM interfaces needed for lit-html and
* LitElement to boot. Since most of the implementation of lit-html and
* LitElement are not actually used, we mostly just need to defining bas... | 37,984 |
https://github.com/KIM1SOL/CP2_07_201401316/blob/master/src/blackJack/Player.java | Github Open Source | Open Source | Apache-2.0 | 2,018 | CP2_07_201401316 | KIM1SOL | Java | Code | 330 | 1,077 | package blackJack;
import java.util.ArrayList;
public class Player {
/*
* Dealer는 Player를 extends할 것, 즉 player는 Dealer의 부모 클래스
* player는 카드 여러장을 arrayList타입의 hand필드에 저장
* Dealer는 Player와 같이 hand필드와 CardDeck하나를 가짐
* 점수를 계산하는 방법은 player안에 메소드만 구현, Dealer는 Player의 계산 메소드를 사용
* hand의 상태를 출력하는 방법도 Dealer는 Playe... | 26,113 |
https://github.com/kennyup/Wilcommerce.Catalog/blob/master/src/Wilcommerce.Catalog/Models/ProductCategory.cs | Github Open Source | Open Source | MIT | 2,017 | Wilcommerce.Catalog | kennyup | C# | Code | 56 | 120 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace Wilcommerce.Catalog.Models
{
public class ProductCategory
{
public Guid ProductId { get; set; }
public Guid CategoryId { get; set; }
public bool IsMain { get; set; }
pu... | 24,504 |
https://github.com/mzj-xk/test/blob/master/lib/routes/tabbarview/notify/interaction_page.dart | Github Open Source | Open Source | Apache-2.0 | null | test | mzj-xk | Dart | Code | 27 | 87 | import 'package:flutter/material.dart';
class InteractionPage extends StatefulWidget {
@override
_InteractionPageState createState() => _InteractionPageState();
}
class _InteractionPageState extends State<InteractionPage> {
@override
Widget build(BuildContext context) {
return Container();
}
}
| 2,538 |
https://github.com/Rezakoulivand/omim/blob/master/map/transit/transit_reader.hpp | Github Open Source | Open Source | Apache-2.0 | 2,017 | omim | Rezakoulivand | C++ | Code | 409 | 1,661 | #pragma once
#include "routing_common/transit_serdes.hpp"
#include "indexer/feature_decl.hpp"
#include "indexer/index.hpp"
#include "base/thread.hpp"
#include "base/thread_pool.hpp"
#include <condition_variable>
#include <functional>
#include <map>
#include <memory>
#include <mutex>
#include <string>
#include <vect... | 27,775 |
https://github.com/facingmonday/jumpstart-gatsby-boilerplate/blob/master/src/components/SectionHeading/index.js | Github Open Source | Open Source | RSA-MD | null | jumpstart-gatsby-boilerplate | facingmonday | JavaScript | Code | 14 | 27 | export { default as SectionHeading } from './SectionHeading';
export { default } from './SectionHeading';
| 56,786 |
https://github.com/BiEchi/chipyard/blob/master/gemmini/src/main/scala/gemmini/Transposer.scala | Github Open Source | Open Source | Apache-2.0 | 2,022 | chipyard | BiEchi | Scala | Code | 699 | 2,043 | package gemmini
import chisel3._
import chisel3.util._
import Util._
trait Transposer[T <: Data] extends Module {
def dim: Int
def dataType: T
val io = IO(new Bundle {
val inRow = Flipped(Decoupled(Vec(dim, dataType)))
val outCol = Decoupled(Vec(dim, dataType))
})
}
class PipelinedTransposer[T <: Dat... | 39,480 |
https://github.com/aml360/accesoDatos/blob/master/segundaev/practica3/src/main/java/modelo/Centro.java | Github Open Source | Open Source | MIT | 2,021 | accesoDatos | aml360 | Java | Code | 246 | 805 | package modelo;
import java.util.List;
public class Centro {
private Integer codigo;
private String nombre;
private String direccion;
private String localidad;
private String provincia;
private Profesor director;
private List<Profesor> profesoresDelCentro;
public Centro() {}
... | 50,690 |
https://github.com/mahbub095/VideoStore/blob/master/app/Http/Controllers/VideoController.php | Github Open Source | Open Source | MIT | null | VideoStore | mahbub095 | PHP | Code | 270 | 898 | <?php
namespace App\Http\Controllers;
use App\Category;
use App\Video;
use Brian2694\Toastr\Facades\Toastr;
use Carbon\Carbon;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Storage;
use Illuminate\Support\Facades\Validator;
use Illuminate\Support\Str;
use Intervention\Image\Facades\Image;
class VideoCo... | 283 |
https://github.com/stackhawk/zap-extensions/blob/master/addOns/sse/src/main/resources/org/zaproxy/zap/extension/sse/resources/Messages_ar_SA.properties | Github Open Source | Open Source | Apache-2.0 | 2,021 | zap-extensions | stackhawk | null | Spoken | 89 | 555 | #X-Generator: crowdin.com
sse.desc=Capture communication from Server-Sent Event streams.
sse.filter.button.break_add=Add custom breakpoint
sse.filter.button.filter=\u062a\u0635\u0641\u064a\u0629
sse.filter.button.handshake=Show opening handshake in Request/Response tab
sse.filter.label.desc=<html><p>Select the required... | 13,313 |
https://github.com/papillonads/papillonads/blob/master/packages/styleguide/src/pattern/template/ComponentsTemplate/ComponentsTemplate/ComponentsTemplate.MainContent.jsx | Github Open Source | Open Source | MIT | 2,021 | papillonads | papillonads | null | Spoken | 194 | 523 | export function MainContent() {
return (
<main className="flex-row flex-lg-column main-content mt-4 mt-lg-6 pb-6 mx-auto px-3" id="js-pjax-container" data-pjax-container="">
<div className="clearfix">
<nav aria-label="Breadcrumb" data-pjax="">
<ol>
<li className="breadcrumb-ite... | 6,255 |
https://github.com/jhcruvinel/time16/blob/master/time16web/src/app/visual1/visual1.component.ts | Github Open Source | Open Source | Apache-2.0 | 2,020 | time16 | jhcruvinel | TypeScript | Code | 355 | 1,245 | import { Component, OnInit } from '@angular/core';
import {
hierarchy,
HierarchyNode,
HierarchyPointNode,
HierarchyLink,
HierarchyPointLink,
StratifyOperator,
TreeLayout,
tree,
ClusterLayout,
cluster
} from 'd3-hierarchy'
import * as d3 from 'd3';
//import { forEach } from '@angular/router/src/utils... | 38,678 |
https://github.com/abeldevelop/blog-category-service/blob/master/src/test/java/com/abeldevelop/blog/blogcategoryapi/mapper/StackTraceMapperTest.java | Github Open Source | Open Source | Apache-2.0 | 2,019 | blog-category-service | abeldevelop | Java | Code | 75 | 305 | package com.abeldevelop.blog.blogcategoryapi.mapper;
import static org.assertj.core.api.Assertions.*;
import java.util.Arrays;
import java.util.List;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
public class StackTraceMapperTest {
public StackTraceMapper stackTraceMapper;
@Before... | 20,218 |
https://github.com/muzammal-ikram/B-Links/blob/master/app/Http/Controllers/UserController.php | Github Open Source | Open Source | MIT | null | B-Links | muzammal-ikram | PHP | Code | 21 | 80 | <?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\DataTables\UsersDataTable;
class UserController extends Controller
{
public function allUsers(UsersDataTable $dataTable)
{
return $dataTable->render('users.all_users');
}
}
| 53,632 |
https://github.com/Sobhan-Eskandari/Mehr/blob/master/resources/views/adminDashboard/setting/editAdmin.blade.php | Github Open Source | Open Source | MIT | 2,017 | Mehr | Sobhan-Eskandari | Blade | Code | 863 | 4,439 | @extends('layouts.zhenicAdmin')
@section('title')
مهرکارت | تنظیمات
@endsection
@section('js2')
{{--<script src="../../js/managementAddShop.js"></script>--}}
{{--<script src="../../js/jquery-2.1.4.min.js"></script>--}}
{{--<script src="../../js/bootstrap-select.min.js"></script>--}}
{{--<script sr... | 16,975 |
https://github.com/jnoll/peos/blob/master/process-eng/James/checkout.pml | Github Open Source | Open Source | MIT, LicenseRef-scancode-unknown-license-reference | 2,019 | peos | jnoll | null | Spoken | 52 | 156 | process checkout
{
action checkoutAction executable
{
agent {"developer"}
tool {"cd /home/$USER;rm -r peos;cvs -d /home/tools/peosrep checkout peos"}
requires {"/home/tools/peosrep"}
provides {"/home/$USER/peos"}
script {"Checkout an instance of project repository \
... | 26,484 |
https://github.com/NecatiMeral/joomla-ninox/blob/master/src/packages/ninox_vmshopper/script.php | Github Open Source | Open Source | MIT | null | joomla-ninox | NecatiMeral | PHP | Code | 162 | 726 | <?php
/*
* @license MIT License (https://github.com/NecatiMeral/joomla-ninox/blob/main/LICENSE)
* @author Necati Meral (necati_meral@yahoo.de)
* @url https://github.com/NecatiMeral/joomla-ninox
*/
// No direct access
defined('_JEXEC') or die('Restricted access');
class plgVmShopperNinox_vmshopperInstallerScr... | 3,793 |
https://github.com/ariefbara/bara-mcp/blob/master/src/Query/Domain/Model/Firm/FirmClientTranscriptWorkbookGroupByFeedbackForm.php | Github Open Source | Open Source | MIT | null | bara-mcp | ariefbara | PHP | Code | 121 | 609 | <?php
namespace Query\Domain\Model\Firm;
use Query\Domain\Model\Firm\Program\Participant\DedicatedMentor\EvaluationReport;
use Query\Domain\Model\Firm\Team\Member\InspectedClientList;
use Query\Domain\SharedModel\IReportSpreadsheet;
use Query\Domain\SharedModel\IWorkbook;
use Query\Domain\SharedModel\ReportSpreadshee... | 8,482 |
https://github.com/shaojiankui/iOS10-Runtime-Headers/blob/master/PrivateFrameworks/NewsCore.framework/FCModifyHistoryCommand.h | Github Open Source | Open Source | MIT | 2,018 | iOS10-Runtime-Headers | shaojiankui | C | Code | 48 | 193 | /* Generated by RuntimeBrowser
Image: /System/Library/PrivateFrameworks/NewsCore.framework/NewsCore
*/
@interface FCModifyHistoryCommand : FCModifyRecordsCommand {
NSArray * _historyItems;
NSArray * _recordItems;
}
@property (nonatomic, readonly, copy) NSArray *historyItems;
@property (nonatomic, readonly... | 46,096 |
https://github.com/igoraguiar/es-na-palma-da-mao-mobile/blob/master/src/app/security/shared/authentication.service.ts | Github Open Source | Open Source | MIT | 2,017 | es-na-palma-da-mao-mobile | igoraguiar | TypeScript | Code | 775 | 2,307 | import { Identity } from './models/identities/identity';
import { GooglePlus, Facebook, FacebookLoginResponse } from 'ionic-native';
import { AuthenticationStorageService } from './authentication-storage.service';
import { AcessoCidadaoService } from './acesso-cidadao.service';
import { DigitsService } from './digits.s... | 22,950 |
https://github.com/gitCuties/therainsdowninafrica/blob/master/common/source/io/timer.c | Github Open Source | Open Source | BSD-3-Clause, LicenseRef-scancode-unknown-license-reference | 2,018 | therainsdowninafrica | gitCuties | C | Code | 53 | 156 | /*
* Copyright (c) 2015-2018, SALT.
* This file is part of therainsdowninafrica and is distributed under the 3-clause BSD license.
* See LICENSE.md for terms of use.
*/
#include "timer.h"
#include "types.h"
u64 timer_get_tick(void)
{
return TIMERUS_CNTR_1US_0;
}
void timer_wait(u64 us)
{
u64 end = TIMERU... | 3,616 |
https://github.com/jmp1617/resume/blob/master/Makefile | Github Open Source | Open Source | MIT | 2,018 | resume | jmp1617 | Makefile | Code | 23 | 142 | default: pdf
all:
pdflatex jpotter_resume_2017s2.tex
pdflatex jpotter_cl_2017s2.tex
pdflatex jpotter_resume_2017s2_print.tex
pdf:
pdflatex jpotter_resume_2017s2.tex
cl:
pdflatex jpotter_cl_2017s2.tex
print:
pdflatex jpotter_resume_2018s1_print.tex
clean:
rm -f *.log *.aux
| 49,086 |
https://github.com/leMaur/laravel-image-sitemap/blob/master/tests/TestCase.php | Github Open Source | Open Source | MIT | 2,022 | laravel-image-sitemap | leMaur | PHP | Code | 51 | 219 | <?php
namespace Lemaur\Sitemap\Tests;
use Carbon\Carbon;
use Lemaur\Sitemap\SitemapServiceProvider;
use Orchestra\Testbench\TestCase as Orchestra;
use Spatie\Snapshots\MatchesSnapshots;
class TestCase extends Orchestra
{
use MatchesSnapshots;
protected Carbon $now;
public function setUp(): void
{
... | 42,184 |
https://github.com/i-love-flamingo/flamingo-commerce/blob/master/product/interfaces/graphql/dto.go | Github Open Source | Open Source | MIT | 2,023 | flamingo-commerce | i-love-flamingo | Go | Code | 265 | 965 | package graphql
import (
"sort"
"flamingo.me/flamingo/v3/framework/flamingo"
"flamingo.me/flamingo-commerce/v3/product/application"
graphqlProductDto "flamingo.me/flamingo-commerce/v3/product/interfaces/graphql/product/dto"
searchdomain "flamingo.me/flamingo-commerce/v3/search/domain"
"flamingo.me/flamingo-com... | 14,351 |
https://github.com/brunolmfg/resteasy/blob/master/resteasy-client-reactor-netty/src/main/java/org/jboss/resteasy/client/jaxrs/internal/TrackingMap.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | resteasy | brunolmfg | Java | Code | 662 | 2,372 | package org.jboss.resteasy.client.jaxrs.internal;
import org.jboss.resteasy.util.CaseInsensitiveMap;
import jakarta.ws.rs.core.MultivaluedMap;
import java.util.Collection;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Set;
import java.util.function.B... | 841 |
https://github.com/abc5213091/project/blob/master/jinqu/js/plugin/jQueryPager/Dialog.js | Github Open Source | Open Source | MIT | 2,016 | project | abc5213091 | JavaScript | Code | 24 | 135 |
(function($) {
$.Dialogs=function(obj){
var that=this;
var defaults={
paream:'click',
add_callback:null,
delete_callback:null,
clear_callback:null
};
that.Mth={
add:function(){
console.log('add function');
},
delete:function(){
console.log('delete function');
}
}
}
})... | 12,960 |
https://github.com/ravitejasc/compose-icons/blob/master/line-awesome/src/commonMain/kotlin/compose/icons/lineawesomeicons/RulerHorizontalSolid.kt | Github Open Source | Open Source | MIT | 2,022 | compose-icons | ravitejasc | Kotlin | Code | 154 | 891 | package compose.icons.lineawesomeicons
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt
import androidx.compose.ui.graphics.StrokeJoin.Companion.Miter
... | 44,443 |
https://github.com/jaceklaskowski/spark-delta-lake-workshop/blob/master/notebooks/02_Intermediate_Spark_SQL.sql | Github Open Source | Open Source | Apache-2.0 | 2,022 | spark-delta-lake-workshop | jaceklaskowski | SQL | Code | 3,026 | 8,801 | -- Databricks notebook source
-- MAGIC %md
-- MAGIC
-- MAGIC # Intermediate Spark SQL
-- MAGIC
-- MAGIC by Jacek Laskowski (jacek@japila.pl)
-- COMMAND ----------
-- MAGIC %md
-- MAGIC
-- MAGIC ## Welcome
-- MAGIC
-- MAGIC This is the second module to teach you how to use and think like a Spark SQL and Delta Lake... | 50,240 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.