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/keiouok/naturalcc/blob/master/ncc/utils/pooling1d.py | Github Open Source | Open Source | MIT | 2,021 | naturalcc | keiouok | Python | Code | 238 | 845 | # -*- coding: utf-8 -*-
import torch
import torch.nn.functional as F
from ncc.data.constants import (
EPS,
INF,
)
def pooling1d(pooling1d):
"""
Args:
pooling1d: mean/max/weighted_mean
References:
https://github.com/github/CodeSearchNet/blob/47636ea72e9d7ea1ad3a5c977076cb54797bfa2... | 40,104 |
https://github.com/pixotech/pixo-patternlab/blob/master/src/Styleguide/Lineage/LineagePattern.php | Github Open Source | Open Source | NCSA | null | pixo-patternlab | pixotech | PHP | Code | 56 | 199 | <?php
namespace Labcoat\Styleguide\Lineage;
use Labcoat\Styleguide\Patterns\PatternInterface;
class LineagePattern implements LineagePatternInterface, \JsonSerializable {
/**
* @var PatternInterface
*/
protected $pattern;
public function __construct(PatternInterface $pattern) {
$this->pattern = $pa... | 5,595 |
https://github.com/erikrz/kafka-message-tool/blob/master/src/main/java/application/constants/GuiStrings.java | Github Open Source | Open Source | MIT | null | kafka-message-tool | erikrz | Java | Code | 379 | 1,082 | package application.constants;
public class GuiStrings {
public static final String BROKER_TAB_NAME = "Brokers";
public static final String TOPIC_CONFIGS_TAB_NAME = "Topic configs";
public static final String SENDER_MSG_TAB_NAME = "Send msg";
public static final String LISTENER_MSG_TAB_NAME = "Receive ... | 44,644 |
https://github.com/martijnvandijk/th06/blob/master/Software/swirli/WashingMachine/WaterValve.cpp | Github Open Source | Open Source | MIT | null | th06 | martijnvandijk | C++ | Code | 95 | 416 | #include <stdint.h>
#include "WaterValve.h"
#include "UARTHandler.h"
#include "UARTUser.h"
namespace WashingMachine{
WaterValve::WaterValve(UARTHandler &uart):
uart(uart){
}
WaterValveState WaterValve::getState(UARTUser *referenceUser){
UARTMessage command;
command.sender = referenceUs... | 54,899 |
https://github.com/izqui/ohe/blob/master/static/js/ohe.js | Github Open Source | Open Source | BSD-2-Clause | 2,012 | ohe | izqui | JavaScript | Code | 50 | 218 | /*globals angular */
(function () {
angular.module('ohe', ['messages', 'channels']).config(function ($routeProvider, $locationProvider, $httpProvider) {
$locationProvider.html5Mode(true);
$locationProvider.hashPrefix = '!';
$routeProvider.otherwise({ redirectTo: '/' });
$httpProvide... | 30,443 |
https://github.com/nicelife90/ClosedXML/blob/master/ClosedXML/Excel/DataValidation/XLWholeNumberCriteria.cs | Github Open Source | Open Source | MIT | 2,019 | ClosedXML | nicelife90 | C# | Code | 125 | 465 | using System;
namespace ClosedXML.Excel
{
public class XLWholeNumberCriteria : XLValidationCriteria
{
public XLWholeNumberCriteria(IXLDataValidation dataValidation): base(dataValidation)
{
}
public void EqualTo(Int32 value)
{
dataValidation.Valu... | 36,190 |
https://github.com/pytube/pytube/blob/master/tests/test_request.py | Github Open Source | Open Source | Unlicense | 2,023 | pytube | pytube | Python | Code | 138 | 597 | import socket
import os
import pytest
from unittest import mock
from urllib.error import URLError
from pytube import request
from pytube.exceptions import MaxRetriesExceeded
@mock.patch("pytube.request.urlopen")
def test_streaming(mock_urlopen):
# Given
fake_stream_binary = [
os.urandom(8 * 1024),
... | 40,561 |
https://github.com/async-aws/aws/blob/master/src/Service/CloudFront/src/Exception/InvalidArgumentException.php | Github Open Source | Open Source | MIT | 2,023 | aws | async-aws | PHP | Code | 19 | 58 | <?php
namespace AsyncAws\CloudFront\Exception;
use AsyncAws\Core\Exception\Http\ClientException;
/**
* An argument is invalid.
*/
final class InvalidArgumentException extends ClientException
{
}
| 17,863 |
https://github.com/FrontSpot-Community/code-battle/blob/master/src/client/components/SampleTests/index.js | Github Open Source | Open Source | MIT | 2,019 | code-battle | FrontSpot-Community | JavaScript | Code | 7 | 17 | import SampleTests from './SampleTests';
export default SampleTests;
| 3,081 |
https://github.com/alecmce/asunit/blob/master/as3/src/asunit4/runners/BaseRunner.as | Github Open Source | Open Source | MIT | 2,010 | asunit | alecmce | null | Spoken | 59 | 255 | package asunit4.runners {
import asunit4.framework.IResult;
import asunit4.framework.IRunner;
import flash.events.Event;
import flash.events.EventDispatcher;
public class BaseRunner extends EventDispatcher implements IRunner {
protected var suiteRunner:SuiteRunner;
protected var result:IResult;
public f... | 7,185 |
https://github.com/anhntk54/m5/blob/master/frontend/modules/M5/components/HomeTableWidgets.php | Github Open Source | Open Source | BSD-3-Clause | null | m5 | anhntk54 | PHP | Code | 130 | 542 | <?php
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
namespace frontend\modules\M5\components;
use yii\base\Widget;
use common\models\Member;
use common\models\M5;
use common\model... | 47,644 |
https://github.com/johnopana/Q-App/blob/master/src/app/app.module.ts | Github Open Source | Open Source | MIT | 2,019 | Q-App | johnopana | TypeScript | Code | 90 | 275 | import { BrowserModule } from "@angular/platform-browser";
import { NgModule } from "@angular/core";
import { FormsModule } from "@angular/forms";
import { AppRoutingModule } from "./app-routing.module";
import { AppComponent } from "./app.component";
import { QuoteDetailsComponent } from "./quote-details/quote-detail... | 5,922 |
https://github.com/mirakis97/OnlineCosmeticSalon/blob/master/OnlineCosmeticSalon.Web/Data/AspNetCoreTemplate.Data/Seeding/MyCustomSeeds/SalonsSeeder.cs | Github Open Source | Open Source | MIT | null | OnlineCosmeticSalon | mirakis97 | C# | Code | 502 | 1,444 | using AspNetCoreTemplate.Common;
using AspNetCoreTemplate.Data.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AspNetCoreTemplate.Data.Seeding.MyCustomSeeds
{
public class SalonsSeeder : ISeeder
{
public async Task S... | 55,698 |
https://github.com/rdhafidh/skdeps/blob/master/skia/third_party/externals/egl-registry/sdk/docs/man/Makefile | Github Open Source | Open Source | MIT | 2,021 | skdeps | rdhafidh | Makefile | Code | 309 | 581 | #!gmake
#
# License Applicability. Except to the extent portions of this file are
# made subject to an alternative license as permitted in the SGI Free
# Software License B, Version 1.1 (the "License"), the contents of this
# file are subject only to the provisions of the License. You may not use
# this file except in ... | 32,285 |
https://github.com/BinaryCaptain/admin/blob/master/node_modules/recharts/lib/util/DataUtils.js | Github Open Source | Open Source | MIT | 2,018 | admin | BinaryCaptain | JavaScript | Code | 396 | 1,035 | 'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.hasDuplicate = exports.getAnyElementOfObject = exports.getPercentValue = exports.uniqueId = exports.isNumOrStr = exports.isNumber = exports.isPercent = exports.mathSign = undefined;
var _isArray2 = require('lodash/isArray');
var _... | 7,051 |
https://github.com/joey2017/jsyfb/blob/master/app/Admin/Controllers/LaywerController.php | Github Open Source | Open Source | MIT | null | jsyfb | joey2017 | PHP | Code | 354 | 1,854 | <?php
namespace App\Admin\Controllers;
use function App\Helpers\getAllBusinessCategoryIdAndTitle;
use App\Models\Region\Province;
use App\Models\BusinessCategory;
use App\Models\Laywer;
use Encore\Admin\Controllers\AdminController;
use Encore\Admin\Facades\Admin;
use Encore\Admin\Form;
use Encore\Admin\Grid;
use Enco... | 52,692 |
https://github.com/workofart/bit-trader/blob/master/algo/investment/investmentUtils.js | Github Open Source | Open Source | MIT | 2,020 | bit-trader | workofart | JavaScript | Code | 362 | 1,331 | const _ = require('underscore'),
executor = require('../executorBinance'),
customUtil = require('../custom_util'),
mapping = require('../../websockets/mapping_binance'),
MIN_AMOUNT = require('../minOrderBinance');
class InvestmentUtils {
// calculate the weighted average price of all positions
... | 26,254 |
https://github.com/jing5877/feeyo-hlsserver/blob/master/src/main/java/com/feeyo/net/udp/packet/V5PacketEncoder.java | Github Open Source | Open Source | Apache-2.0 | null | feeyo-hlsserver | jing5877 | Java | Code | 399 | 1,477 | package com.feeyo.net.udp.packet;
import java.util.ArrayList;
import java.util.List;
import java.util.zip.CRC32;
/**
*
* @author zhuam
*
*/
public class V5PacketEncoder {
public List<V5Packet> encode(int mtu, int packetSender, byte packetType, byte[] packetReserved, int packetId, byte[] data) {
//
if ( ... | 51,912 |
https://github.com/elm-street-technology/elevate-editor/blob/master/src/Components/Common/Cancel.js | Github Open Source | Open Source | MIT | 2,022 | elevate-editor | elm-street-technology | JavaScript | Code | 48 | 147 | // @flow
import React from "react";
import Button from "elevate-ui/Button";
import CancelIcon from "elevate-ui-icons/Cancel";
type Props = {
cancelEdit: Function,
className: Object,
};
const Cancel = ({ cancelEdit, className }: Props) => (
<Button
onClick={cancelEdit}
icon={<CancelIcon />}
type="but... | 11,571 |
https://github.com/john2912/google-cloud-eclipse/blob/master/eclipse/.gitignore | Github Open Source | Open Source | Apache-2.0 | 2,019 | google-cloud-eclipse | john2912 | Ignore List | Code | 6 | 37 | oxygen/.project
oxygen/.settings
photon/.project
photon/.settings
eclipse-2018-*/.project
eclipse-2018-*/.settings
| 35,390 |
https://github.com/naecoo/linkedom/blob/master/types/html/slot-element.d.ts | Github Open Source | Open Source | ISC | 2,021 | linkedom | naecoo | TypeScript | Code | 20 | 49 | /**
* @implements globalThis.HTMLSlotElement
*/
export class HTMLSlotElement extends HTMLElement implements globalThis.HTMLSlotElement {
}
import { HTMLElement } from "./element.js";
| 27,607 |
https://github.com/Atomm94/golf/blob/master/gdls-backend/src/week/services/import-week.ts | Github Open Source | Open Source | Apache-2.0 | 2,021 | golf | Atomm94 | TypeScript | Code | 166 | 491 | import fs from "fs";
import path from "path";
import csv from "csvtojson";
import {Week} from "../models/Week";
import {User} from "../../user/models/User";
import {Round} from "../../round/models/Round";
import {EntityManager} from "typeorm";
import {Year} from "../../year/models/Year";
interface IImportRoundData {
... | 36,765 |
https://github.com/wuchen-huawei/huaweicloud-sdk-java/blob/master/examples/bss/v1/PeriodOrder.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | huaweicloud-sdk-java | wuchen-huawei | Java | Code | 670 | 2,666 | /*******************************************************************************
* Copyright 2019 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
*
* ... | 16,843 |
https://github.com/debuging/treeleaf/blob/master/treeleaf-common/src/main/java/org/treeleaf/common/exception/BaseException.java | Github Open Source | Open Source | Apache-2.0 | 2,016 | treeleaf | debuging | Java | Code | 17 | 68 | package org.treeleaf.common.exception;
/**
* 逻辑异常,做为各种自定义异常的父类
* Created by yaoshuhong on 2015/7/13.
*/
public interface BaseException {
}
| 42,393 |
https://github.com/MikeSivak/Asp_Labs_2021/blob/master/labs/Lab4/Lab4/Simlex.asmx | Github Open Source | Open Source | MIT | 2,021 | Asp_Labs_2021 | MikeSivak | null | Spoken | 6 | 35 | <%@ WebService Language="C#" CodeBehind="Simlex.asmx.cs" Class="Lab4.Simlex" %>
| 22,649 |
https://github.com/poojasngh432/all-dog-breeds/blob/master/app/src/main/java/com/rifqimfahmi/alldogbreeds/ui/favorite/photos/FavoritePresenter.kt | Github Open Source | Open Source | Apache-2.0 | 2,019 | all-dog-breeds | poojasngh432 | Kotlin | Code | 40 | 230 | package com.rifqimfahmi.alldogbreeds.ui.favorite.photos
import com.rifqimfahmi.alldogbreeds.data.DataManager
import com.rifqimfahmi.alldogbreeds.ui.base.BasePresenter
import com.rifqimfahmi.alldogbreeds.util.rx.SchedulerProvider
import io.reactivex.disposables.CompositeDisposable
import javax.inject.Inject
/*
* Crea... | 16,650 |
https://github.com/hiepnv90/deribit-api/blob/master/models/get_settlement_history_by_instrument_params.go | Github Open Source | Open Source | MIT | 2,021 | deribit-api | hiepnv90 | Go | Code | 22 | 85 | package models
type GetSettlementHistoryByInstrumentParams struct {
InstrumentName string `json:"instrument_name"`
Type string `json:"type,omitempty"`
Count int `json:"count,omitempty"`
Continuation string `json:"continuation"`
SearchStartTimestamp uint64 `json:"sea... | 27,757 |
https://github.com/Dmedina88/T.D.M.S/blob/master/settings.gradle | Github Open Source | Open Source | Apache-2.0 | 2,019 | T.D.M.S | Dmedina88 | Gradle | Code | 7 | 26 | include ':app', ':repositories', ':repositories', ':core', ':network', ':persistence'
| 13,006 |
https://github.com/isabella232/dubbo-php-framework/blob/master/provider/core/protocol/BufferedProtocol.php | Github Open Source | Open Source | Apache-2.0 | 2,020 | dubbo-php-framework | isabella232 | PHP | Code | 226 | 619 | <?php
/**
* 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"); y... | 4,591 |
https://github.com/beck0527/MYTableViewManager/blob/master/Pods/Headers/Private/AsyncDisplayKit/ASWeakSet.h | Github Open Source | Open Source | MIT | 2,018 | MYTableViewManager | beck0527 | C | Code | 1 | 19 | ../../../AsyncDisplayKit/AsyncDisplayKit/Private/ASWeakSet.h | 54,099 |
https://github.com/InstaloxStudio/BGC_Tools/blob/master/Study/ProtocolManager.cs | Github Open Source | Open Source | MS-PL, MIT | 2,019 | BGC_Tools | InstaloxStudio | C# | Code | 1,164 | 3,986 | using System;
using System.Collections.Generic;
using System.IO;
using UnityEngine;
using LightJson;
using BGC.IO;
using BGC.Users;
namespace BGC.Study
{
public enum ProtocolStatus
{
Uninitialized = 0,
InvalidProtocol,
SessionReady,
SessionLimitExceeded,
SessionElementL... | 8,138 |
https://github.com/kcc/fuzzing-with-sanitizers/blob/master/llvm/llvm-as/C1/2010-06-24-g-constraint-crash.ll | Github Open Source | Open Source | MIT | 2,021 | fuzzing-with-sanitizers | kcc | LLVM | Code | 51 | 230 |
target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64"
%0 = type { i64, i64, i64, i64, i64 }
@utcbs.1559 = internal global [3 x i64] zeroinitializer
define void @bar() nounwind ssp {
entry:
%asmtmp.i.i =... | 14,726 |
https://github.com/julia-rom/chatty-app/blob/master/src/Message.jsx | Github Open Source | Open Source | MIT | null | chatty-app | julia-rom | null | Spoken | 94 | 308 | import React, { Component } from 'react';
//individual messages that are sent out to message list
class Message extends Component {
render() {
return (
<div className="message" id={this.props.id}>
<span className="message-username" style={{ color: this.props.userColor }}>{this.... | 21,696 |
https://github.com/ExampleCodeProj/easi-app/blob/master/pkg/handlers/system_intake_test.go | Github Open Source | Open Source | Apache-2.0 | 2,021 | easi-app | ExampleCodeProj | Go | Code | 1,164 | 5,714 | package handlers
import (
"bytes"
"encoding/json"
"errors"
"fmt"
"net/http"
"net/http/httptest"
"github.com/google/uuid"
"github.com/gorilla/mux"
"github.com/guregu/null"
"golang.org/x/net/context"
"github.com/cmsgov/easi-app/pkg/appcontext"
"github.com/cmsgov/easi-app/pkg/apperrors"
"github.com/cmsgov/... | 11,613 |
https://github.com/ddcat666/decadez.icu-main/blob/master/website-main/src/components/Layout/Sidebar/index.tsx | Github Open Source | Open Source | MIT | 2,022 | decadez.icu-main | ddcat666 | TypeScript | Code | 24 | 53 | export { Sidebar } from './Sidebar';
export { SidebarButton } from './SidebarButton';
export { SidebarLink } from './SidebarLink';
export { SidebarRouteTree } from './SidebarRouteTree';
| 11,015 |
https://github.com/Sidheartx/index-coop-analytics/blob/master/product/btc2x/btc2x-product-dash/BTC2x-FLI-COMP-Earnings-over-time.sql | Github Open Source | Open Source | MIT | 2,021 | index-coop-analytics | Sidheartx | SQL | Code | 126 | 425 | --https://dune.xyz/queries/144832--
with borrow_comp as (
select sum("compDelta"/1e18) as total, date_trunc('day', evt_block_time) as comp_date from compound_v2."Unitroller_evt_DistributedBorrowerComp"
where borrower = '\x0B498ff89709d3838a063f1dFA463091F9801c2b'
group by comp_date),
supply_comp as (select sum("compDel... | 26,290 |
https://github.com/chase2981/couchbase-elasticsearch-connector/blob/master/docs/modules/ROOT/pages/compatibility.adoc | Github Open Source | Open Source | Apache-2.0 | 2,020 | couchbase-elasticsearch-connector | chase2981 | AsciiDoc | Code | 261 | 625 | = Compatibility
✔ *Supported*: This combination is tested and supported.
✖ *Unsupported*: This combination is not supported.
Versions not listed on this page may work but are untested and unsupported.
== Elasticsearch
[%autowidth,cols="^,4*^"]
|===
| 4+h| Connector
h| Elasticsearch↓ | 4.0.0 - 4.0.1 |... | 25,455 |
https://github.com/mdmirabal/Parcial2-Prog3/blob/master/main.py | Github Open Source | Open Source | MIT | 2,015 | Parcial2-Prog3 | mdmirabal | Python | Code | 105 | 332 | #!/usr/bin/python
# -*- coding: utf-8 -*-
from kivy.app import App
from kivy.properties import ObjectProperty
from kivy.uix.screenmanager import Screen
from precios import Precio
class Ventana(Screen):
precio = ObjectProperty
origen=""
destino=""
def Origen(self, origen):
self.origen = origen
print (origen)... | 16,469 |
https://github.com/Alex1304/jdash/blob/master/client/src/main/java/jdash/client/response/TimelyInfoResponseDeserializer.java | Github Open Source | Open Source | MIT | 2,021 | jdash | Alex1304 | Java | Code | 53 | 238 | package jdash.client.response;
import jdash.client.exception.ActionFailedException;
import jdash.common.entity.GDTimelyInfo;
import jdash.common.entity.ImmutableGDTimelyInfo;
import java.time.Duration;
import java.util.function.Function;
class TimelyInfoResponseDeserializer implements Function<String, GDTimelyInfo> ... | 3,211 |
https://github.com/MeMeLeevv/customizable_blog/blob/master/src/api/blog.js | Github Open Source | Open Source | MIT | 2,020 | customizable_blog | MeMeLeevv | JavaScript | Code | 66 | 189 | import request from '@/utils/request'
export function getBlogSetting (blogId) {
return request({
url: '/getBlogSetting',
method: 'get',
params: { blogId }
})
}
export function getInfoByBlogId (blogId) {
return request({
url: '/getInfoByBlogId',
method: 'get',
params: { blogId }
})
}
e... | 44,779 |
https://github.com/solnic/rodakase/blob/master/skeletons/simple/core/simple/import.rb | Github Open Source | Open Source | MIT, LicenseRef-scancode-unknown-license-reference | 2,019 | rodakase | solnic | Ruby | Code | 12 | 43 | require_relative 'container'
module Simple
Import = Container.import_module
def self.Import(*args)
Import[*args]
end
end
| 23,478 |
https://github.com/cxcxy/Demmmm/blob/master/RX-Learn/LearnRxSwift-master/LearnRxSwift/RxTableView/Advance/AdvanceTableViewCell.swift | Github Open Source | Open Source | MIT | 2,017 | Demmmm | cxcxy | Swift | Code | 38 | 114 | //
// AdvanceTableViewCell.swift
// StudyRxSwift
//
// Created by DianQK on 16/2/20.
// Copyright © 2016年 DianQK. All rights reserved.
//
import UIKit
class AdvanceTableViewCell: UITableViewCell {
@IBOutlet weak var nameLabel: UILabel!
@IBOutlet weak var ageLabel: UILabel!
}
| 46,248 |
https://github.com/viveky259259/divide_game/blob/master/lib/model/dragNumbers.dart | Github Open Source | Open Source | Unlicense | 2,021 | divide_game | viveky259259 | Dart | Code | 15 | 55 | class DragNumbers {
int currentNum;
int next;
int nextToNext;
DragNumbers({this.currentNum = 0, this.next=0, this.nextToNext=0});
}
| 32,638 |
https://github.com/samithaj/EverestCamp/blob/master/client/modules/nodes/containers/TreeView.js | Github Open Source | Open Source | MIT | 2,016 | EverestCamp | samithaj | JavaScript | Code | 95 | 299 | import TreeView from '../components/TreeView.jsx';
import {useDeps, composeWithTracker, composeAll} from 'mantra-core';
import { nodes_search } from '/lib/nodes_publications';
export const composer = ({context, activeNodeId, filterText}, onData) => {
const {Meteor, Collections, LocalState} = context();
if (Meteor.... | 26,457 |
https://github.com/cschaefer/pac-vote/blob/master/pac-vote-service/pac-vote-service-api/src/main/java/com/prodyna/pac/vote/annotations/AuthenticatedUser.java | Github Open Source | Open Source | MIT | null | pac-vote | cschaefer | Java | Code | 39 | 151 | package com.prodyna.pac.vote.annotations;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import javax.inject.Qualifier;
/**
*
* Authenticated users may perform secured operations.
*
* @author cscha... | 15,334 |
https://github.com/brentvb/react-day-picker/blob/master/website/docs/guides/custom-components-disable-row.tsx | Github Open Source | Open Source | MIT | 2,022 | react-day-picker | brentvb | TypeScript | Code | 68 | 207 | import * as React from 'react';
import { differenceInCalendarDays } from 'date-fns';
import { DayPicker, Row, RowProps } from 'react-day-picker';
import 'react-day-picker/style.css';
function isPastDate(date) {
return differenceInCalendarDays(date, new Date()) < 0;
}
function OnlyFutureRow(props: RowProps) {
co... | 21,263 |
https://github.com/mazzystr/kubevirt/blob/master/vendor/github.com/subgraph/libmacouflage/libmacouflage.go | Github Open Source | Open Source | Apache-2.0 | 2,022 | kubevirt | mazzystr | Go | Code | 1,409 | 4,122 | package libmacouflage
import "C"
import (
"syscall"
"fmt"
"net"
"unsafe"
rand "crypto/rand"
"os/user"
"encoding/json"
"strings"
mathrand "math/rand"
"time"
"regexp"
)
const SIOCSIFHWADDR = 0x8924
const SIOCETHTOOL = 0x8946
const ETHTOOL_GPERMADDR = 0x00000020
const IFHWADDRLEN = 6
var OuiDb []Oui
const (
... | 49,915 |
https://github.com/Peckmore/ceenhttpd/blob/master/Ceen.Database/DatabaseHelper.cs | Github Open Source | Open Source | MIT | 2,022 | ceenhttpd | Peckmore | C# | Code | 4,240 | 11,643 | using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Linq.Expressions;
using System.Reflection;
namespace Ceen.Database
{
/// <summary>
/// Class for accessing a database, with simple table create/delete commands.
/// Approaching a mini ORM, but omits the quer... | 56,421 |
https://github.com/JacksonHowe/instructure-ui/blob/master/packages/ui-theme-tokens/src/canvas/__tests__/colors.test.js | Github Open Source | Open Source | MIT | null | instructure-ui | JacksonHowe | JavaScript | Code | 1,074 | 3,039 | /*
* The MIT License (MIT)
*
* Copyright (c) 2015 - present Instructure, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the ri... | 40,645 |
https://github.com/keldenar/Blorg/blob/master/app/Http/Controllers/HomeController.php | Github Open Source | Open Source | MIT | null | Blorg | keldenar | PHP | Code | 112 | 385 | <?php
namespace App\Http\Controllers;
use App\Blog;
use Illuminate\Auth\Access\Response;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;
Use Parsedown;
class HomeController extends Controller
{
/**
* Create a new controller instance.
*
* @return void
*/
public function _... | 16,906 |
https://github.com/i-lolfly/VkStroll/blob/master/public/src/less/components/chat.less | Github Open Source | Open Source | MIT | 2,022 | VkStroll | i-lolfly | Less | Code | 207 | 773 | // Name: Chat
//
// Component: `chat`
//
// ========================================================================
// Variables
// ========================================================================
@chat-content-bg: @brand-primary;
@chat-content-color: @color-white;
@chat-content... | 19,408 |
https://github.com/msternow/stripe-android/blob/master/stripe/src/main/java/com/stripe/android/paymentsheet/PaymentSheetAddCardFragment.kt | Github Open Source | Open Source | MIT | null | stripe-android | msternow | Kotlin | Code | 90 | 378 | package com.stripe.android.paymentsheet
import androidx.fragment.app.activityViewModels
import com.stripe.android.R
import com.stripe.android.paymentsheet.analytics.EventReporter
import com.stripe.android.paymentsheet.model.FragmentConfig
import java.util.Currency
import java.util.Locale
internal class PaymentSheetAd... | 27,589 |
https://github.com/FleyX/nas_backup/blob/master/backService/dao/HistoryDao.ts | Github Open Source | Open Source | MIT | null | nas_backup | FleyX | TypeScript | Code | 117 | 396 | import { MysqlUtil } from '../util/MysqlHelper';
import History from '../entity/History';
import { OkPacket } from 'mysql2';
import Plan from 'entity/Plan';
export default class HistoryDao {
/**
* 增加一个
* @param history history
*/
static async addOne(history: History): Promise<number> {
l... | 34,660 |
https://github.com/rhagenson/sembio-go/blob/master/bio/sequence/immutable/rna.go | Github Open Source | Open Source | BSD-3-Clause | null | sembio-go | rhagenson | Go | Code | 281 | 803 | package immutable
import (
"strings"
"github.com/sembio/go/bio/alphabet"
"github.com/sembio/go/bio/alphabet/hashmap"
"github.com/sembio/go/bio/sequence"
)
var _ sequence.Interface = new(Rna)
var _ sequence.Reverser = new(Rna)
var _ sequence.RevComper = new(Rna)
var _ sequence.Complementer = new(Rna)
var _ sequen... | 30,506 |
https://github.com/dturner/ground-android/blob/master/gnd/src/androidTest/java/com/google/android/gnd/AddFeatureTest.java | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-generic-cla | 2,020 | ground-android | dturner | Java | Code | 565 | 1,603 | /*
* Copyright 2020 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | 14,182 |
https://github.com/geeksesi/guess_emoji_telegram_bot/blob/master/app/Controller/Keyboard/HintKeyboardController.php | Github Open Source | Open Source | MIT | 2,022 | guess_emoji_telegram_bot | geeksesi | PHP | Code | 129 | 487 | <?php
namespace App\Controller\Keyboard;
use App\Controller\Controller;
use App\Enums\GameLogActionEnum;
use App\Enums\OutputMessageEnum;
use App\Enums\TransactionTypeEnum;
use App\Helper\OutputHelper;
use App\Helper\TelegramHelper;
use App\Model\GameLog;
use App\Model\Transaction;
class HintKeyboardController exten... | 4,238 |
https://github.com/PPatBoyd/react-native/blob/master/android-patches/patches/JniUtils/ReactCommon/react/renderer/textlayoutmanager/Android.mk | Github Open Source | Open Source | CC-BY-4.0, MIT | 2,022 | react-native | PPatBoyd | Makefile | Code | 29 | 187 | --- /home/mganandraj/code/rnm-66-fresh/ReactCommon/react/renderer/textlayoutmanager/Android.mk 2022-02-13 19:54:48.631687103 -0800
+++ /home/mganandraj/code/react-native-macos/ReactCommon/react/renderer/textlayoutmanager/Android.mk 2022-02-13 19:53:28.338857418 -0800
@@ -30,7 +30,7 @@
libreact_render_telemetry \
... | 31,183 |
https://github.com/c960657/punic-data/blob/master/docs/1/33.1/fr-DZ/calendar.php | Github Open Source | Open Source | LicenseRef-scancode-unicode, MIT | 2,021 | punic-data | c960657 | PHP | Code | 1 | 17 | ../../32.0.1/fr-DJ/calendar.php | 26,685 |
https://github.com/jelszo-co/novel/blob/master/frontend/src/pages/PrivacyPolicy.jsx | Github Open Source | Open Source | MIT | null | novel | jelszo-co | null | Spoken | 332 | 888 | import React from 'react';
import { useTranslation } from 'react-i18next';
import { Link } from 'react-router-dom';
import '../css/all/privacyPolicy.scss';
const PrivacyPolicy = () => {
const { t } = useTranslation();
return (
<div id='privacy-policy'>
<Link to='/' className='privpol-back'>
{t('... | 46,651 |
https://github.com/danang-id/myCashier/blob/master/backend/src/config/memory.config.ts | Github Open Source | Open Source | Apache-2.0 | 2,020 | myCashier | danang-id | TypeScript | Code | 134 | 263 | /**
* Copyright 2019, Danang Galuh Tegar Prasetyo.
* 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 la... | 22,951 |
https://github.com/Emmanuel-Melon/Neno/blob/master/src/machines/game/index.ts | Github Open Source | Open Source | MIT | null | Neno | Emmanuel-Melon | TypeScript | Code | 343 | 1,072 | import { createMachine, assign } from "xstate";
export const gameMachineFactory = () => {
return createMachine(
{
id: "game",
initial: "home",
context: {
on: false,
active: false,
playerEmail: "",
playerName: "",
playerId: "",
letter: {
... | 38,125 |
https://github.com/cdli-gh/mtaac_cdli_ur3_corpus/blob/master/ur3_corpus_data/annotated/comm_conll/P319/P319567.conll | Github Open Source | Open Source | CC0-1.0, LicenseRef-scancode-public-domain | 2,022 | mtaac_cdli_ur3_corpus | cdli-gh | null | Spoken | 353 | 1,043 | #new_text=P319567
FORM SEGM XPOSTAG XPOSTAG POS ? ? ? ? ? ?
1(u) 1(u)[ten] NU NU D B-COUNT _ 10 cardinal _ 10
kasz kasz[beer] N N D B-COM _ _ _ _ _
sila3 sila[unit] N N D _ _ _ _ _ _
a-ra2 ara[times] N N D _ _ _ _ _ _
1(disz)-kam 1(disz)[one]-ak-am NU NU.GEN.COP-3-SG D B-COUNT _ 1 cardinal _ 1
5(disz) 5(disz)[one]... | 17,693 |
https://github.com/ScalablyTyped/Distribution/blob/master/v/vscode-jsonrpc/src/main/scala/typings/vscodeJsonrpc/mod/package.scala | Github Open Source | Open Source | MIT | 2,023 | Distribution | ScalablyTyped | Scala | Code | 87 | 651 | package typings.vscodeJsonrpc.mod
import typings.vscodeJsonrpc.libCommonConnectionMod.Logger
import typings.vscodeJsonrpc.libCommonConnectionMod.MessageConnection
import typings.vscodeJsonrpc.mod.^
import org.scalablytyped.runtime.StObject
import scala.scalajs.js
import scala.scalajs.js.annotation.{JSGlobalScope, JSGl... | 10,649 |
https://github.com/webturing/CPlusPlus/blob/master/NOIP/oj.noi.cn/1072ClambStairs.cpp | Github Open Source | Open Source | AFL-2.0 | 2,021 | CPlusPlus | webturing | C++ | Code | 48 | 114 | #include<bits/stdc++.h>
using namespace std;
long long f(int n) {
if (n == 1)
return 1LL;
if (n == 2)return 2LL;
return f(n - 1) + f(n - 2);
}
int main(void) {
for (int n; cin >> n;) {
cout << f(n) << endl;
}
return 0;
} | 25,860 |
https://github.com/jewzaam/managed-velero-operator/blob/master/pkg/storage/constants/constants.go | Github Open Source | Open Source | Apache-2.0 | 2,022 | managed-velero-operator | jewzaam | Go | Code | 17 | 81 | package constants
const (
StorageBucketPrefix = "managed-velero-backups-"
DefaultVeleroBackupStorageLocation = "default"
BucketTagBackupStorageLocation = "velero.io/backup-location"
BucketTagInfrastructureName = "velero.io/infrastructureName"
)
| 36,921 |
https://github.com/18641315209/ovirt-engine/blob/master/backend/manager/modules/utils/src/test/java/org/ovirt/engine/core/utils/servlet/CachingFilterTest.java | Github Open Source | Open Source | Apache-2.0 | 2,018 | ovirt-engine | 18641315209 | Java | Code | 457 | 3,016 | package org.ovirt.engine.core.utils.servlet;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertTrue;
import static org.mockito.ArgumentMatchers.any;
import static org.mockito.ArgumentMatchers.eq;
import static org.mockito.Mockito.never;
impor... | 10,957 |
https://github.com/Asgaroth/ember-json-api/blob/master/tests/helpers/setup-models.js | Github Open Source | Open Source | MIT | 2,015 | ember-json-api | Asgaroth | JavaScript | Code | 80 | 271 | var Post, Comment, Author;
function setModels(params) {
var options;
if (!params) {
params = {};
}
options = {
authorAsync: params.authorAsync || false,
commentAsync: params.commentAsync || false
};
Post = DS.Model.extend({
title: DS.attr('string'),
postSummary: DS.attr('string'),... | 4,815 |
https://github.com/Ambal/mangos/blob/master/sql/updates/0.13/7251_02_characters_character_spell.sql | Github Open Source | Open Source | OpenSSL | 2,019 | mangos | Ambal | SQL | Code | 15 | 65 | ALTER TABLE character_db_version CHANGE COLUMN required_7207_03_characters_corpse required_7251_02_characters_character_spell bit;
DELETE FROM `character_spell` WHERE `spell` IN (52375,47541);
| 16,146 |
https://github.com/ss22219/Snap.Genshin/blob/master/DGP.Genshin/Control/Converter/PercentageToWidthConverter.cs | Github Open Source | Open Source | MIT | null | Snap.Genshin | ss22219 | C# | Code | 119 | 401 | using DGP.Genshin.Helper;
using Microsoft;
using System;
using System.Globalization;
using System.Windows;
using System.Windows.Data;
namespace DGP.Genshin.Control.Converter
{
/// <summary>
/// 百分比转宽度
/// </summary>
public sealed class PercentageToWidthConverter : DependencyObject, IValueConverter
... | 19,000 |
https://github.com/fossabot/zippy/blob/master/src/parser/node/Variable.hx | Github Open Source | Open Source | Apache-2.0 | 2,021 | zippy | fossabot | Haxe | Code | 37 | 105 | package parser.node;
class Variable extends Node {
public final name:String;
public final value:Expression;
public final mutable:Bool;
public function new(line:Int, name:String, value:Expression, mutable:Bool) {
this.name = name;
this.value = value;
this.mutable = mutable;
... | 37,997 |
https://github.com/glorifiedKing/virtual-wallet/blob/master/src/Services/ExchangeService.php | Github Open Source | Open Source | MIT | null | virtual-wallet | glorifiedKing | PHP | Code | 38 | 145 | <?php
namespace GlorifiedKing\Wallet\Services;
use GlorifiedKing\Wallet\Interfaces\Rateable;
use GlorifiedKing\Wallet\Interfaces\Wallet;
class ExchangeService
{
/**
* @param Wallet $from
* @param Wallet $to
* @return float
*/
public function rate(Wallet $from, Wallet $to): float
{
... | 41,783 |
https://github.com/projectceladon/celadon-applications/blob/master/camera/MultiCameraApplication/java/com/intel/multicamera/SurfaceUtil.java | Github Open Source | Open Source | Apache-2.0 | 2,023 | celadon-applications | projectceladon | Java | Code | 202 | 667 | /*
* Copyright (c) 2019 Intel Corporation.
*
* 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 ... | 21,210 |
https://github.com/H0tCh0colat3/Codex-Fanfiction/blob/master/app/src/main/java/com/qan/fiction/util/web/FormattedNumber.java | Github Open Source | Open Source | MIT | 2,021 | Codex-Fanfiction | H0tCh0colat3 | Java | Code | 29 | 97 | package com.qan.fiction.util.web;
public class FormattedNumber {
public static int parseInt(String number) {
if (number.contains("K") || number.contains("k"))
return (int) (Double.parseDouble(number.substring(0, number.length() - 1)) * 1000);
else
return Integer.parseInt(num... | 53,513 |
https://github.com/KaiDz09/UIForia/blob/master/Packages/UIForia/Src/Compilers/Terminal.cs | Github Open Source | Open Source | MIT | 2,021 | UIForia | KaiDz09 | C# | Code | 17 | 26 | namespace UIForia {
public sealed class Terminal { } // represents a void type in generics
} | 1,689 |
https://github.com/jansure/redis-rb/blob/master/test/commands_on_sql_test.rb | Github Open Source | Open Source | MIT | 2,010 | redis-rb | jansure | Ruby | Code | 581 | 2,434 | # encoding: UTF-8
require File.expand_path("./helper", File.dirname(__FILE__))
setup do
init Redis.new(OPTIONS)
end
test "101 CREATE TABLE" do |r|
r.changedb 12
if "table" == r.type("new_table")
r.drop_table("new_table");
end
r.create_table("new_table", "(id INT, val TEXT)")
assert ["id | INT | INDE... | 38,973 |
https://github.com/VennMaker/vennmaker-source/blob/master/src/main/java/gui/configdialog/elements/CDialogLegend.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | vennmaker-source | VennMaker | Java | Code | 602 | 2,741 | package gui.configdialog.elements;
import gui.Messages;
import gui.VennMaker;
import gui.VennMakerView;
import gui.configdialog.ConfigDialogElement;
import gui.configdialog.ConfigDialogTempCache;
import gui.configdialog.save.LegendSaveElement;
import gui.configdialog.save.SaveElement;
import gui.configdialog.settings.... | 51,613 |
https://github.com/oshdev/ncdc/blob/master/src/commands/test/test.spec.ts | Github Open Source | Open Source | MIT | 2,021 | ncdc | oshdev | TypeScript | Code | 763 | 2,617 | import { runTests, GetTypeValidator } from './test'
import { randomString, mockFn, mockObj, randomNumber } from '~test-helpers'
import stripAnsi from 'strip-ansi'
import { FetchResource } from './http-client'
import { TypeValidator } from '~validation'
import { ResourceBuilder } from '~config'
import { Logger } from 'w... | 6,439 |
https://github.com/pdifranc/fresh-tracks/blob/master/src/components/SkeletonTable.vue | Github Open Source | Open Source | MIT-0 | 2,022 | fresh-tracks | pdifranc | Vue | Code | 177 | 624 | <script>
import VueContentLoading from 'vue-content-loading';
export default {
components: {
VueContentLoading,
},
};
</script>
<template>
<vue-content-loading :width="700" :height="100">
<rect x="0" y="0" rx="4" ry="4" width="200" height="10" />
<rect x="220... | 39,637 |
https://github.com/PlumpMath/PhotoExplore/blob/master/NSHack/Archive.sh | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, MIT | 2,013 | PhotoExplore | PlumpMath | Shell | Code | 5 | 14 | make
ar rcs libNSHack.a main
| 5,977 |
https://github.com/jonathanroehm/bootstrap4_rails/blob/master/config/spring.rb | Github Open Source | Open Source | MIT | 2,021 | bootstrap4_rails | jonathanroehm | Ruby | Code | 3 | 15 | Spring.application_root = './spec/test_app'
| 27,861 |
https://github.com/Yoann-Vie/esgi-hearthstone/blob/master/tests/middleware_exceptions/views.py | Github Open Source | Open Source | PSF-2.0, BSD-3-Clause | null | esgi-hearthstone | Yoann-Vie | Python | Code | 79 | 289 | from django.core.exceptions import PermissionDenied
from django.http import Http404, HttpResponse
from django.template import engines
from django.template.response import TemplateResponse
def normal_view(request):
return HttpResponse('OK')
def template_response(request):
template = engines['django'].from_st... | 54,508 |
https://github.com/xielovedu/fd-monitor-api/blob/master/utils/index.js | Github Open Source | Open Source | MIT | 2,022 | fd-monitor-api | xielovedu | JavaScript | Code | 19 | 58 | module.exports = {
/**
* 对象是否为空
* @param {*} obj
*/
objectIsNull(obj) {
return JSON.stringify(obj) === '{}'
},
} | 44,068 |
https://github.com/jaggiK/cv_visual_assistance/blob/master/src/perception/sensors/oakd/depthai/depthai-api/shared/3rdparty/dldt/ngraph/src/ngraph/op/broadcast.hpp | Github Open Source | Open Source | Apache-2.0, MIT | 2,021 | cv_visual_assistance | jaggiK | C++ | Code | 791 | 1,969 | //*****************************************************************************
// Copyright 2017-2019 Intel Corporation
//
// 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://w... | 44,703 |
https://github.com/balaSpyrus/wave11/blob/master/onlineBot/datagenerator/src/main/java/com/wipro/chatbot/logic/ConverstaionToRecord.java | Github Open Source | Open Source | MIT | 2,017 | wave11 | balaSpyrus | Java | Code | 85 | 315 | package com.wipro.chatbot.logic;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import org.joda.time.DateTime;
import org.joda.time.format.DateTimeFormat;
import org.joda.time.format.DateTimeFormatter;
public class ConverstaionToRecord {
public static List<Payload> convert(String input, ... | 35,226 |
https://github.com/uk-gov-mirror/ministryofjustice.opg-file-service/blob/master/session/session.go | Github Open Source | Open Source | MIT | 2,020 | ministryofjustice.opg-file-service | uk-gov-mirror | Go | Code | 71 | 284 | package session
import (
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/credentials/stscreds"
"github.com/aws/aws-sdk-go/aws/session"
"opg-file-service/internal"
"os"
)
type Session struct {
AwsSession *session.Session
}
func NewSession() (*Session, error) {
awsRegion := internal.GetEnvVar("AW... | 17,318 |
https://github.com/mmcloughlin/avo/blob/master/examples/args/stub.go | Github Open Source | Open Source | BSD-3-Clause | 2,023 | avo | mmcloughlin | Go | Code | 95 | 269 | // Code generated by command: go run asm.go -out args.s -stubs stub.go. DO NOT EDIT.
package args
func Second(x int32, y int32) int32
func StringLen(s string) int
func SliceLen(s []int) int
func SliceCap(s []int) int
func ArrayThree(a [7]uint64) uint64
func FieldByte(s Struct) byte
func FieldInt8(s Struct) int8... | 45,470 |
https://github.com/WarlonZeng/CS-UY-3393-UNIX-Systems-Programming/blob/master/hw4/Makefile | Github Open Source | Open Source | MIT | null | CS-UY-3393-UNIX-Systems-Programming | WarlonZeng | Makefile | Code | 18 | 49 | FLAGS = -std=c99 -Wall -O1
all: sh
sh: sh.c
gcc ${FLAGS} -o sh sh.c
clean:
rm -f sh | 14,625 |
https://github.com/code81192/yeju/blob/master/yeju-service-interfaces/yeju-customer-service-interfaces/src/main/java/pers/lbf/yeju/service/interfaces/customer/pojo/CustomerRegisteringArgs.java | Github Open Source | Open Source | Apache-2.0 | null | yeju | code81192 | Java | Code | 233 | 661 | /*
* Copyright 2020 赖柄沣 bingfengdev@aliyun.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 applicable law ... | 36,449 |
https://github.com/gilex1x/React-Shop/blob/master/src/Pages/About.jsx | Github Open Source | Open Source | MIT | null | React-Shop | gilex1x | null | Spoken | 18 | 41 | import React from 'react'
const About = () => {
return (
<h1>Nosotros</h1>
);
}
export default About; | 34,371 |
https://github.com/iCivic/docker-jupyter-spark/blob/master/Makefile | Github Open Source | Open Source | Apache-2.0 | 2,020 | docker-jupyter-spark | iCivic | Makefile | Code | 58 | 242 | PROJECT = jupyter-spark
DOCKER_REGISTRY = docker.io
# Including ci Makefile
CI_REPOSITORY ?= https://github.com/src-d/ci.git
CI_PATH ?= $(shell pwd)/.ci
CI_VERSION = v1
MAKEFILE := $(CI_PATH)/Makefile.main
$(MAKEFILE):
git clone --quiet --depth 1 --branch $(CI_VERSION) $(CI_REPOSITORY) $(CI_PATH);
-include $(MAKEFIL... | 14,282 |
https://github.com/enzoh/uplink/blob/master/src/Config.hs | Github Open Source | Open Source | Apache-2.0 | 2,021 | uplink | enzoh | Haskell | Code | 1,453 | 3,217 | {-|
There are three different configurations that are avaiable on a node.
* Account settings ( private key, public key, metadata )
- key.pem
- key.pub
* Chain settings ( genesis block, concensus mechanism )
- chain.config
* Node settings ( port, rpc settings, data directory, network settings )
- node.config
... | 35,650 |
https://github.com/profoswaldo/Java-Web_04-02_18-02/blob/master/2022-02-18/exemplo15/react-frontend/src/components/ComponenteCabacalho.js | Github Open Source | Open Source | MIT | 2,022 | Java-Web_04-02_18-02 | profoswaldo | JavaScript | Code | 46 | 166 | import React, { Component } from 'react'
import'bootstrap/dist/css/bootstrap.min.css';
class ComponenteCabacalho extends Component {
constructor(props) {
super(props)
this.state = {
}
}
render() {
return (
<div>
<header>
... | 11,270 |
https://github.com/xMikux/DynaTech/blob/master/src/main/java/me/profelements/dynatech/items/electric/transfer/WirelessItemInput.java | Github Open Source | Open Source | MIT | null | DynaTech | xMikux | Java | Code | 327 | 1,742 | package me.profelements.dynatech.items.electric.transfer;
import io.github.thebusybiscuit.slimefun4.api.items.ItemGroup;
import io.github.thebusybiscuit.slimefun4.api.items.ItemHandler;
import io.github.thebusybiscuit.slimefun4.api.items.SlimefunItem;
import io.github.thebusybiscuit.slimefun4.api.items.SlimefunItemSta... | 48,871 |
https://github.com/silvereye/background_changer/blob/master/background_changer.php | Github Open Source | Open Source | MIT | 2,018 | background_changer | silvereye | PHP | Code | 208 | 809 | <?php
/*
* Background Changer
*
* Plugin to change roundcube background.
* from the selection of different avilable background
*
* @author: pawnesh.k.rai@gmail.com, pkr@silvereye.co
* @company: www.silvereye.co
* @version: 1.0
* License: MIT License
*/
class background_changer extends rcube_plugin {
... | 4,942 |
https://github.com/mansimathpal/java/blob/master/Java/MethodLocalInner/src/genericclassdemo/GenericClassDemo.java | Github Open Source | Open Source | Apache-2.0 | null | java | mansimathpal | Java | Code | 48 | 179 | package genericclassdemo;
public class GenericClassDemo <T>
{
private T t;
public void setValue(T t)
{
this.t = t;
}
public T getValue()
{
return t;
}
public static void main(String[] args) {
GenericClassDemo<Integer> iobj = new GenericClassDemo<In... | 14,619 |
https://github.com/hemmerling/jsp-aufgabe08b_el_test/blob/master/web/index.jsp | Github Open Source | Open Source | Apache-2.0 | 2,017 | jsp-aufgabe08b_el_test | hemmerling | null | Spoken | 72 | 365 | <%--
Document : index
Created on : 17.08.2017, 12:19:11
Author : rhemmerling
--%>
<%@page import="java.util.Map"%>
<%@page import="com.hemmerling.aufgabe8b_el_test.view.AttributeSetter"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib prefix="p" tagdir="/WEB-INF/tags/hemmerling/" %... | 32,642 |
https://github.com/Pelesyno/Ponteon/blob/master/app/Controllers/Enquetes.php | Github Open Source | Open Source | MIT | null | Ponteon | Pelesyno | PHP | Code | 542 | 2,332 | <?php
namespace App\Controllers;
use App\Models\Enquetes as mEnquetes;
use App\Models\RespostasEnquetes;
class Enquetes extends BaseController
{
protected $session;
function __construct()
{
$this->session = \Config\Services::session();
$this->session->start();
}
public function ... | 4,133 |
https://github.com/mongodb-js/mongosh/blob/master/packages/cli-repl/src/update-notification-manager.spec.ts | Github Open Source | Open Source | Apache-2.0 | 2,023 | mongosh | mongodb-js | TypeScript | Code | 357 | 1,285 | import { expect } from 'chai';
import { once } from 'events';
import { promises as fs } from 'fs';
import type { Server as HTTPServer, RequestListener } from 'http';
import { createServer as createHTTPServer } from 'http';
import type { AddressInfo } from 'net';
import os from 'os';
import path from 'path';
import { Up... | 10,354 |
https://github.com/mrpelancong/spidol/blob/master/ClientApp/src/containers/_nav.js | Github Open Source | Open Source | MIT | 2,020 | spidol | mrpelancong | JavaScript | Code | 248 | 983 | export const admin = {
items :[
{
_tag: 'CSidebarNavItem',
name: 'Halaman Utama',
to: '/dashboard',
icon: 'cil-home',
},
{
_tag: 'CSidebarNavTitle',
_children: ['Master Data']
},
{
_tag: 'CSidebarNavItem',
name: 'Master Data',
to: '/master_data... | 21,409 |
https://github.com/foolite/panda/blob/master/panda-gear/src/main/java/panda/mvc/view/tag/ui/theme/xhtml/XFormWrapper.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | panda | foolite | Java | Code | 60 | 269 | package panda.mvc.view.tag.ui.theme.xhtml;
import panda.mvc.view.tag.ui.Form;
import panda.mvc.view.tag.ui.theme.Attributes;
import panda.mvc.view.tag.ui.theme.RendererWrapper;
import panda.mvc.view.tag.ui.theme.RenderingContext;
public class XFormWrapper extends RendererWrapper<Form> {
/**
* @param context contex... | 51,757 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.