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/MatheusMassula/mobile-test/blob/master/massula_test/lib/resources/app_theme_data.dart | Github Open Source | Open Source | MIT | null | mobile-test | MatheusMassula | Dart | Code | 209 | 887 | import 'package:flutter/material.dart';
class AppThemeData {
static const _lightFillColor = Color(0xFFB93C5D);
static final Color _lightFocusColor = Colors.black.withOpacity(0.12);
static ThemeData lightThemeData = themeData(lightColorScheme, _lightFocusColor);
static ThemeData themeData(ColorScheme colorSc... | 17,232 |
https://github.com/MaTriXy/recycleradapter-generator/blob/master/annotations/src/main/kotlin/io/github/pshegger/rag/ModelBinding.kt | Github Open Source | Open Source | MIT | 2,019 | recycleradapter-generator | MaTriXy | Kotlin | Code | 21 | 71 | package io.github.pshegger.rag
@Target(AnnotationTarget.CLASS)
@Retention(AnnotationRetention.SOURCE)
annotation class ModelBinding(
val layoutId: Int,
val clickListener: Boolean = false,
val namePrefix: String = ""
)
| 43,917 |
https://github.com/iloveyii/contiki_rpl/blob/master/contiki/obj_sky/rimeaddr.d | Github Open Source | Open Source | MIT | 2,014 | contiki_rpl | iloveyii | Makefile | Code | 20 | 174 | obj_sky/rimeaddr.o: ../../../core/net/rime/rimeaddr.c \
../../../core/net/rime/rimeaddr.h ../../../platform/sky/contiki-conf.h \
../../../platform/sky/platform-conf.h ../../../cpu/msp430/msp430def.h \
project-conf.h
../../../core/net/rime/rimeaddr.c :
../../../core/net/rime/rimeaddr.h ../../../platform/sky/cont... | 43,419 |
https://github.com/salisbury-robotics/jks-ros-pkg/blob/master/bosch_arm/bosch_arm_control/include/bosch_arm.h | Github Open Source | Open Source | BSD-3-Clause | 2,015 | jks-ros-pkg | salisbury-robotics | C++ | Code | 270 | 766 | /** Interface for Bosch Arm.
*
**/
#ifndef BOSCH_ARM_H
#define BOSCH_ARM_H
#include <stdint.h> //for unit16_t
class BoschArm
{
private:
double home_offsets[4];
double ql[4];
int filter_order;
double* x_his[4];
double* y_his[4];
uint16_t time_now;
uint16_t time_last; //for wait
uint16_t time_now2;... | 55,995 |
https://github.com/abdoncalderon/ecuLacWeb/blob/master/app/Http/Controllers/CiudadController.php | Github Open Source | Open Source | MIT | null | ecuLacWeb | abdoncalderon | PHP | Code | 93 | 536 | <?php
namespace App\Http\Controllers;
use App\Provincia;
use App\Ciudad;
use App\Sucursal;
use App\Http\Requests\StoreCiudadRequest;
use App\Http\Requests\UpdateCiudadRequest;
class CiudadController extends Controller
{
/*********************************************************************************************... | 295 |
https://github.com/alvarop/silta/blob/master/sw/examples/mma8452_i2c_example.py | Github Open Source | Open Source | BSD-2-Clause | 2,022 | silta | alvarop | Python | Code | 271 | 937 | #!/usr/bin/env python
#
# Test python-to-i2c bridge with STM32F407
#
import sys
import time
from silta import stm32f407
import matplotlib.pyplot as plt
def readRegs(bridge, reg, count):
rval = bridge.i2c(MMA_I2C_ADDR, count, [reg])
if isinstance(rval, list):
return rval
else:
print('readR... | 31,762 |
https://github.com/daverodal/wargaming/blob/master/Wargame/TMCW/Kiev1941/exclusiveRules.blade.php | Github Open Source | Open Source | MIT, GPL-2.0-or-later | 2,023 | wargaming | daverodal | Blade | Code | 360 | 659 | <?php
/**
*
* Copyright 2012-2015 David Rodal
* User: David Markarian Rodal
* Date: 3/8/15
* Time: 5:48 PM
*
* This program is free software; you can redistribute it
* and/or modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation;
* either version 2 of t... | 28,513 |
https://github.com/maintell/Chromely/blob/master/src_5.2/Demos/Chromely.AspNetCore.Mvc/Controllers/MoviesController.cs | Github Open Source | Open Source | MIT, BSD-3-Clause | null | Chromely | maintell | C# | Code | 427 | 1,384 |
namespace Chromely.AspNetCore.Mvc.Controllers;
public class MoviesController : Controller
{
private readonly IDbContextFactory<MovieContext> _contextFactory;
public MoviesController(IDbContextFactory<MovieContext> contextFactory)
{
_contextFactory = contextFactory;
}
// GET: Movies
p... | 28,530 |
https://github.com/carryxyh/soar/blob/master/soar-cluster/src/main/java/soar/cluster/LoadBalanceStrategy.java | Github Open Source | Open Source | Apache-2.0 | 2,018 | soar | carryxyh | Java | Code | 46 | 179 | package soar.cluster;
import soar.cluster.loadbalance.RandomLoadBalancer;
import soar.cluster.loadbalance.RoundRobinLoadBalancer;
/**
* LoadBalanceStrategy
*
* @author xiuyuhang [xiuyuhang]
* @since 2018-04-23
*/
public enum LoadBalanceStrategy {
/**
* random select
*/
RANDOM(RandomLoadBalance... | 13,662 |
https://github.com/pantez/logicall/blob/master/app/driver/components/HeaderNav.tsx | Github Open Source | Open Source | MIT | 2,021 | logicall | pantez | TSX | Code | 75 | 248 | import React from "react";
import {
Body,
Button,
Header,
Icon,
Left,
Right,
Subtitle,
Text,
Title,
} from "native-base";
import { Actions } from "react-native-router-flux";
function HeaderNav({
title,
subtitle = null,
right = null,
}: {
title: string;
subtitle: string | null;
right: any ... | 2,749 |
https://github.com/yajavendra/H2020/blob/master/verify-v2-quickstart-java-master/src/main/java/com/kavach/verify_quickstart/services/Example.java | Github Open Source | Open Source | LicenseRef-scancode-warranty-disclaimer, MIT | 2,020 | H2020 | yajavendra | Java | Code | 66 | 296 | package com.kavach.verify_quickstart.services;
// Install the Java helper library from twilio.com/docs/java/install
import com.twilio.Twilio;
import com.twilio.rest.verify.v2.service.VerificationCheck;
public class Example {
// Find your Account Sid and Token at twilio.com/console
// DANGER! This is insecure... | 45,651 |
https://github.com/horse-framework/horse-http/blob/master/src/Benchmarks/Http/Benchmark.Json/Program.cs | Github Open Source | Open Source | Apache-2.0 | 2,020 | horse-http | horse-framework | C# | Code | 51 | 187 | using System;
using System.Net;
using System.Threading.Tasks;
using Horse.Protocols.Http;
using Horse.Server;
namespace Benchmark.Json
{
class Program
{
static void Main(string[] args)
{
HorseServer server = new HorseServer(ServerOptions.CreateDefault());
server.UseHttp... | 17,635 |
https://github.com/MFrank2016/ergo/blob/master/version.go | Github Open Source | Open Source | MIT | 2,021 | ergo | MFrank2016 | Go | Code | 15 | 43 | package ergo
const (
versionOTP int = 22
versionERTSprefix = "ergo"
version = "1.2.6"
)
| 37,808 |
https://github.com/Kaciras/Resume2/blob/master/components/PageLayout.jsx | Github Open Source | Open Source | MIT | 2,020 | Resume2 | Kaciras | null | Spoken | 35 | 115 | import PageFooter from "./PageFooter";
import Head from "next/head";
export default function PageLayout(props) {
const { title, children } = props;
return (
<>
<Head>
<title>{title} | 简历</title>
<base target="_blank"/>
</Head>
{children}
<PageFooter/>
</>
);
}
| 44,754 |
https://github.com/osblinnikov/pytorch-binary-net/blob/master/src/andor.c | Github Open Source | Open Source | MIT | 2,018 | pytorch-binary-net | osblinnikov | C | Code | 24 | 110 | #include <TH/TH.h>
int andor_forward(THFloatTensor *input1, THFloatTensor *input2,
THFloatTensor *output)
{
if (!THFloatTensor_isSameSizeAs(input1, input2))
return 0;
THFloatTensor_resizeAs(output, input1);
THFloatTensor_cadd(output, input1, 1.0, input2);
return 1;
}
| 7,169 |
https://github.com/Rohit484/Distribution/blob/master/s/signalr/src/main/scala/typings/signalr/SignalR/Transports.scala | Github Open Source | Open Source | MIT | 2,020 | Distribution | Rohit484 | Scala | Code | 154 | 600 | package typings.signalr.SignalR
import scala.scalajs.js
import scala.scalajs.js.`|`
import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess}
@js.native
trait Transports extends js.Object {
var foreverFrame: Transport = js.native
var longPolling: Transport = js.native
... | 519 |
https://github.com/haitao52198/TrustyOS/blob/master/AndroidTrustyOS/external/openssl/crypto-sources.mk | Github Open Source | Open Source | Apache-2.0 | 2,021 | TrustyOS | haitao52198 | Makefile | Code | 56 | 317 | LOCAL_ADDITIONAL_DEPENDENCIES += $(LOCAL_PATH)/sources.mk
include $(LOCAL_PATH)/sources.mk
LOCAL_CFLAGS += -I$(LOCAL_PATH)/src/include -I$(LOCAL_PATH)/src/crypto -Wno-unused-parameter -DBORINGSSL_ANDROID_SYSTEM
LOCAL_ASFLAGS += -I$(LOCAL_PATH)/src/include -I$(LOCAL_PATH)/src/crypto -Wno-unused-parameter
# Do not add i... | 23,265 |
https://github.com/azuse/Gboard-Patched/blob/master/Gboard_renamed_miui/smali/ngn.smali | Github Open Source | Open Source | MIT | 2,022 | Gboard-Patched | azuse | Smali | Code | 178 | 899 | .class final Lngn;
.super Landroid/util/LruCache;
.source "PG"
# direct methods
.method public constructor <init>()V
.locals 1
const/4 v0, 0x5
.line 1
invoke-direct {p0, v0}, Landroid/util/LruCache;-><init>(I)V
return-void
.end method
# virtual methods
.method protected final bridge synthetic... | 35,887 |
https://github.com/mouseflow/elasticsearch-net/blob/master/src/Nest/DSL/Paths/IndexNamePathDescriptor.cs | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, Apache-2.0 | 2,022 | elasticsearch-net | mouseflow | C# | Code | 384 | 1,265 | using System;
using System.Collections.Generic;
using System.Linq;
using Elasticsearch.Net;
namespace Nest
{
public interface IIndexNamePath<TParameters> : IRequest<TParameters>
where TParameters : IRequestParameters, new()
{
IndexNameMarker Index { get; set; }
string Name { get; set; }
}
internal static c... | 7,765 |
https://github.com/GLDOpensource/MAIRecorder/blob/master/MAIRecorder/source/DSTargetForms/FormDSTargetTDMS.Designer.cs | Github Open Source | Open Source | MIT | null | MAIRecorder | GLDOpensource | C# | Code | 518 | 2,289 | namespace MAIRecorder {
partial class FormDSTargetTDMS {
/// <summary>
/// Erforderliche Designervariable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Verwendete Ressourcen bereinigen.
/// </summary>
/... | 24,734 |
https://github.com/RichardPilkington/SimpleIdServer/blob/master/src/UMA/SimpleIdServer.Uma/Domains/UMAResource.cs | Github Open Source | Open Source | Apache-2.0 | 2,020 | SimpleIdServer | RichardPilkington | C# | Code | 224 | 632 | // Copyright (c) SimpleIdServer. All rights reserved.
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
using SimpleIdServer.OAuth.Domains;
using System;
using System.Collections.Generic;
using System.Linq;
namespace SimpleIdServer.Uma.Domains
{
public cla... | 7,581 |
https://github.com/ashishtilara/sesshin/blob/master/src/Sesshin/Id/Storage/Cookie.php | Github Open Source | Open Source | MIT | null | sesshin | ashishtilara | PHP | Code | 186 | 495 | <?php
/*
* This file is part of Sesshin library.
*
* (c) Przemek Sobstel <http://sobstel.org>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
namespace Sesshin\Id\Storage;
class Cookie implements StorageInterface {
/** @var string */
priva... | 15,454 |
https://github.com/dineshkummarc/azure-sdk-tools/blob/master/WindowsAzurePowershell/src/Management.CloudService/Node/Cmdlet/AddAzureNodeWorkerRole.cs | Github Open Source | Open Source | Apache-2.0 | 2,019 | azure-sdk-tools | dineshkummarc | C# | Code | 213 | 574 | // ----------------------------------------------------------------------------------
//
// Copyright 2011 Microsoft 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://ww... | 44,479 |
https://github.com/rafikalid/typescript-model-compiler/blob/master/src/parser/parser.ts | Github Open Source | Open Source | MIT | null | typescript-model-compiler | rafikalid | TypeScript | Code | 3,709 | 12,140 | //** PARSE TYPESCRIPT DATA
import { E, errorFile, TError } from "@src/utils/error";
import { warn } from "@src/utils/log";
import ts, { isTypeNode } from "typescript";
import { AssertOptions, BasicScalar, Enum, EnumMember, InputField, Kind, List, MethodDescriptor, Node, ObjectLiteral, OutputField, Param, PlainObject, ... | 48,795 |
https://github.com/liangmeihuai/spring-framework/blob/master/spring-webflux/src/test/kotlin/org/springframework/web/reactive/function/BodyExtractorsExtensionsTests.kt | Github Open Source | Open Source | Apache-2.0 | null | spring-framework | liangmeihuai | Kotlin | Code | 50 | 192 | package org.springframework.web.reactive.function
import org.junit.Assert.assertNotNull
import org.junit.Test
import org.junit.runner.RunWith
import org.mockito.junit.MockitoJUnitRunner
/**
* Tests for [BodyExtractors] Kotlin extensions
*
* @author Sebastien Deleuze
*/
@RunWith(MockitoJUnitRunner::class)
class B... | 6,479 |
https://github.com/Diffblue-benchmarks/admin-plus/blob/master/admin-core/src/main/java/com/lrs/core/admin/service/impl/UserServiceImpl.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | admin-plus | Diffblue-benchmarks | Java | Code | 262 | 1,393 | package com.lrs.core.admin.service.impl;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.lrs.common.constant.ApiResultEnum;
import com.lrs.common.constant.ResponseModel;
import com.lrs.common.constant.Result;
import com.... | 33,957 |
https://github.com/smddzcy/fireorm/blob/master/src/Decorators/Collection.ts | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, MIT | 2,020 | fireorm | smddzcy | TypeScript | Code | 37 | 100 | import { getMetadataStorage } from '../MetadataStorage';
import { plural } from 'pluralize';
import { InstanstiableIEntity } from '../types';
export function Collection(entityName?: string): Function {
return function(entity: InstanstiableIEntity) {
getMetadataStorage().setCollection({
name: entityName || ... | 9,902 |
https://github.com/dduraipandian/scrapqd/blob/master/scrapqd/fetch/ua/__init__.py | Github Open Source | Open Source | MIT | null | scrapqd | dduraipandian | Python | Code | 18 | 59 | import random
from scrapqd.settings import config
def get_user_agent():
"""Gets random user-agent from settings"""
user_agent = random.choice(config.USER_AGENTS)
return user_agent
| 32,628 |
https://github.com/InspectorDidi/reTASEP/blob/master/src/inputRNA.cpp | Github Open Source | Open Source | MIT | 2,016 | reTASEP | InspectorDidi | C++ | Code | 293 | 1,421 | //####################
//file: inputRNA.cpp
//Marvin Böttcher (boettcher@evolbio.mpg.de)
//2016
//####################
#include "../include/inputRNA.h"
RNAprocessing::RNAprocessing(){
// std::cout <<"no filename given"<<std::endl;
}
RNAprocessing::RNAprocessing(std::string filename){
input_filename=filenam... | 16,911 |
https://github.com/EdwardIrby/speed-up-psds-build/blob/master/packages/dropdown/src/react/__stories__/advanced.story.tsx | Github Open Source | Open Source | Apache-2.0 | null | speed-up-psds-build | EdwardIrby | TypeScript | Code | 364 | 1,204 | import { layout } from '@pluralsight/ps-design-system-core'
import {
AnalyticsIcon,
AuthorKitIcon,
ChannelIcon,
LabsIcon,
PlaceholderIcon
} from '@pluralsight/ps-design-system-icon'
import { action } from '@storybook/addon-actions'
import { Meta, Story } from '@storybook/react/types-6-0'
import { DecoratorFn ... | 51,857 |
https://github.com/acarmon2/Robot-RF12B/blob/master/Receiver/lib/jeelib-master/examples/RF12/slowLogger/slowLogger.ino | Github Open Source | Open Source | MIT | 2,018 | Robot-RF12B | acarmon2 | null | Spoken | 143 | 386 | /// @dir slowLogger
/// Report 4 analog inputs once every minute over wireless.
// 2013-01-19 <jc@wippler.nl> http://opensource.org/licenses/mit-license.php
#include <JeeLib.h>
ISR(WDT_vect) { Sleepy::watchdogEvent(); }
word payload [4];
byte counter;
void setup () {
rf12_initialize(20, RF12_868MHZ, 5);
}
void l... | 885 |
https://github.com/github/codeql/blob/master/javascript/ql/test/query-tests/Security/CWE-079/DomBasedXss/react-use-state.js | Github Open Source | Open Source | MIT | 2,023 | codeql | github | JavaScript | Code | 100 | 301 | import { useState } from 'react';
function initialState() {
let [state, setState] = useState(window.name);
return <div dangerouslySetInnerHTML={{__html: state}}></div>; // NOT OK
}
function setStateValue() {
let [state, setState] = useState('foo');
setState(window.name);
return <div dangerouslySet... | 50,844 |
https://github.com/jtjeferreira/Kamon/blob/master/core/kamon-core/src/main/scala/kamon/metric/Instrument.scala | Github Open Source | Open Source | Apache-2.0 | 2,021 | Kamon | jtjeferreira | Scala | Code | 542 | 1,148 | /*
* Copyright 2013-2020 The Kamon Project <https://kamon.io>
*
* 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 b... | 47,679 |
https://github.com/SoarY/Cloud/blob/master/app/src/main/java/com/soar/cloud/vm/NaviViewModel.java | Github Open Source | Open Source | Apache-2.0 | 2,023 | Cloud | SoarY | Java | Code | 124 | 615 | package com.soar.cloud.vm;
import android.app.Application;
import android.support.annotation.NonNull;
import com.soar.cloud.adapter.NaviAdapter;
import com.soar.cloud.adapter.NaviContentAdapter;
import com.soar.cloud.base.BaseViewModel;
import com.soar.cloud.bean.NaviBean;
import com.soar.cloud.retrofit.APIException;... | 48,833 |
https://github.com/joshwatson/f-ing-around-with-binaryninja/blob/master/emulator/emulatorui/stack.py | Github Open Source | Open Source | MIT | 2,022 | f-ing-around-with-binaryninja | joshwatson | Python | Code | 291 | 1,170 | from binaryninja import (BinaryDataNotification, BinaryReader,
BinaryView, BinaryViewType, Settings)
from PySide2.QtCore import QAbstractTableModel, Qt
from PySide2.QtGui import QFont
from PySide2.QtWidgets import QHeaderView, QTableView
class EmulatorStackModel(QAbstractTableModel, BinaryDat... | 34,269 |
https://github.com/twolfson/Halo.extras/blob/master/src/utils/jsRender.js | Github Open Source | Open Source | MIT | 2,013 | Halo.extras | twolfson | JavaScript | Code | 274 | 762 | var baseDir = __dirname + '/../public/js/',
config = require(baseDir + 'all.json'),
outFile = __dirname + '/../dist/js/all.js';
var fs = require('fs'),
jsmin = require('jsmin').jsmin,
glob = require('glob');
module.exports = function () {
// TODO: Use 'include' and 'exclude'
var excludeFiles = (co... | 13,788 |
https://github.com/touya922/kh-demo-web/blob/master/source/_sass/modules/_video.scss | Github Open Source | Open Source | MIT | 2,014 | kh-demo-web | touya922 | SCSS | Code | 13 | 73 | $video-sprite-dimensions: true;
$video-spacing: 3px;
$video-layout:smart;
@import "sprite/video/*.png";
@include all-video-sprites;
@import "modules/video/ready";
@import "modules/video/chat";
| 15,019 |
https://github.com/electric-eloquence/vinyl-fs/blob/master/lib/src/sourcemap.js | Github Open Source | Open Source | MIT | null | vinyl-fs | electric-eloquence | JavaScript | Code | 57 | 205 | 'use strict';
var through = require('through2');
var sourcemap = require('vinyl-sourcemap');
function sourcemapStream(optResolver) {
function addSourcemap(file, enc, callback) {
var srcMap = optResolver.resolve('sourcemaps', file);
if (!srcMap) {
return callback(null, file);
}
sourcemap.add(... | 30,965 |
https://github.com/joaoamaral/ReduxSimpleStarterSection4/blob/master/src/reducers/books.js | Github Open Source | Open Source | MIT | null | ReduxSimpleStarterSection4 | joaoamaral | JavaScript | Code | 42 | 205 | export default function() {
return [
{ title: 'JavaScript: The Good Parts', pages: 43, cover: 'https://www.oreilly.co.jp/books/images/picture_large978-4-87311-391-3.jpeg' },
{ title: '入門 React', pages: 404, cover:'https://www.oreilly.co.jp/books/images/picture_large978-4-87311-719-5.jpeg'},
{ title: 'Futu... | 45,890 |
https://github.com/eerimoq/monolinux-example-project/blob/master/3pp/linux/arch/hexagon/include/asm/time.h | Github Open Source | Open Source | MIT, Linux-syscall-note, GPL-2.0-only | 2,020 | monolinux-example-project | eerimoq | C | Code | 34 | 130 | /* SPDX-License-Identifier: GPL-2.0-only */
/*
* Copyright (c) 2010-2011, The Linux Foundation. All rights reserved.
*/
#ifndef ASM_TIME_H
#define ASM_TIME_H
extern cycles_t pcycle_freq_mhz;
extern cycles_t thread_freq_mhz;
extern cycles_t sleep_clk_freq;
void setup_percpu_clockdev(void);
void... | 18,823 |
https://github.com/tomofumi-n1991/drive/blob/master/app/src/nxt/java/com/pileproject/drive/programming/visual/block/selection/IfNxtIsOutOfLineBlock.java | Github Open Source | Open Source | Apache-2.0 | 2,016 | drive | tomofumi-n1991 | Java | Code | 206 | 556 | /*
* Copyright (C) 2011-2015 PILE Project, Inc. <dev@pileproject.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 r... | 12,614 |
https://github.com/lpetre/hydrate/blob/master/test/integration/default-tests.js | Github Open Source | Open Source | Apache-2.0 | 2,020 | hydrate | lpetre | JavaScript | Code | 1,296 | 4,000 | let { dirname, join } = require('path')
let {
existsSync,
lstatSync,
mkdirSync,
readFileSync,
renameSync,
writeFileSync
} = require('fs')
let cp = require('cpr')
let test = require('tape')
let {
reset,
resetAndCopy,
arcHttp,
rubyFunctions,
nodeFunctions,
pythonDependencies,
rubyDependencies,
... | 45,517 |
https://github.com/yaoxuanw007/forfun/blob/master/leetcode/python/binaryTreePostorderTraversal.py | Github Open Source | Open Source | MIT | null | forfun | yaoxuanw007 | Python | Code | 200 | 572 | # https://oj.leetcode.com/problems/binary-tree-postorder-traversal/
# Definition for a binary tree node
class TreeNode:
def __init__(self, x):
self.val = x
self.left = None
self.right = None
class Solution:
# @param root, a tree node
# @return a list of integers
def postorderTraversal(self, root)... | 31,634 |
https://github.com/PhotoKevin/BlackRockCityMap/blob/master/src/main/java/com/blackholeofphotography/blackrockcitymap/AnnularStreet.java | Github Open Source | Open Source | BSD-2-Clause | 2,020 | BlackRockCityMap | PhotoKevin | Java | Code | 790 | 1,827 | /*
* Copyright (c) 2019, Kevin Nickerson (kevin@blackholeofphotography.com)
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyri... | 18,269 |
https://github.com/JavierMNieto/uiuc-scheduler/blob/master/components/filters/Autocompletes.js | Github Open Source | Open Source | MIT | 2,021 | uiuc-scheduler | JavierMNieto | JavaScript | Code | 69 | 260 | import { withStyles } from "@material-ui/styles";
import Autocomplete from "@material-ui/lab/Autocomplete";
import { FILTER_COLORS } from "../../lib/Theme";
const styles = (filter) => ({
root: {
"& label.Mui-focused": {
color: FILTER_COLORS[filter],
},
"& .MuiInput-underline:after": {
borderB... | 3,240 |
https://github.com/openeuler-mirror/pkgship/blob/master/packageship/application/query/depend.py | Github Open Source | Open Source | MulanPSL-1.0 | null | pkgship | openeuler-mirror | Python | Code | 1,821 | 6,217 | #!/usr/bin/python3
# ******************************************************************************
# Copyright (c) Huawei Technologies Co., Ltd. 2020-2020. All rights reserved.
# licensed under the Mulan PSL v2.
# You can use this software according to the terms and conditions of the Mulan PSL v2.
# You may obtain a c... | 183 |
https://github.com/justmiles/polymur/blob/master/Makefile | Github Open Source | Open Source | MIT | null | polymur | justmiles | Makefile | Code | 22 | 76 | build:
docker build -f cmd/polymur/Dockerfile . -t polymur
docker build -f cmd/polymur-gateway/Dockerfile . -t polymur-gateway
docker build -f cmd/polymur-proxy/Dockerfile . -t polymur-proxy | 16,650 |
https://github.com/pplab/openmpi-inc/blob/master/openmpi-4.0.5/orte/mca/schizo/moab/configure.m4 | Github Open Source | Open Source | BSD-3-Clause-Open-MPI | 2,021 | openmpi-inc | pplab | Shell | Code | 163 | 456 | # -*- shell-script -*-
#
# Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana
# University Research and Technology
# Corporation. All rights reserved.
# Copyright (c) 2004-2005 The University of Tennessee and The University
# o... | 54,588 |
https://github.com/yangyao/queue/blob/master/config/queue.php | Github Open Source | Open Source | MIT | null | queue | yangyao | PHP | Code | 97 | 552 | <?php
return array(
'adapter' => Yangyao\Queue\Adapter\AdapterMysql::class,
//可以为Task配置不同的queue 这个配置需要适当的修改,要提供一些demo task
'default_publish_queue' => 'normal',
//todo 这还能把一个人物丢到多个队列的,不怕多次执行产生脏数据??意味着worker必须是幂等性的,多次执行也不会带来意外的影响。
'bindings' => array(
'crontab:site_tasks_createsitemaps' => array('... | 9,692 |
https://github.com/weblid/massdbimport/blob/master/tests/integration/ImportLoggerTest.php | Github Open Source | Open Source | MIT | null | massdbimport | weblid | PHP | Code | 119 | 683 | <?php
namespace Weblid\Massdbimport;
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
use Tests\TestCase;
use Weblid\Massdbimport\Facades\Massdbimport;
use Weblid\Massdbimport\TestLocation;
use Weblid\Massdbimport\TestPerson;
use Weblid\Mass... | 32,108 |
https://github.com/drudesu/HVGfoundation/blob/master/footer.php | Github Open Source | Open Source | MIT | 2,014 | HVGfoundation | drudesu | PHP | Code | 133 | 747 | </div>
</section>
<footer class="footer row">
<div class="row">
<!--<div class="small-12 medium-12 large-12 columns">
<ul class="inline-list">
<li><a href="/wordpress/home/">Home</a></li>
<li><a href="/wordpress/updates/">Updates</a></li>
<li><a href="/wordpress/about/">About</a></li>
<li><a href="/wo... | 16,541 |
https://github.com/magma/magma/blob/master/.dockerignore | Github Open Source | Open Source | BSD-3-Clause | 2,023 | magma | magma | Ignore List | Code | 55 | 533 | *
!.cache/test_certs
!.devcontainer/
!third_party/
!cwf/cloud/
!cwf/gateway/
!cwf/k8s
!cwf/protos/
!cwf/swagger/
!feg/cloud/
!feg/gateway/
!feg/protos/
!feg/radius
!feg/swagger/
!lte/cloud/
!lte/gateway/configs/
!lte/gateway/docker/
!lte/gateway/deploy/roles/magma/files/
!lte/gateway/python/
!lte/gateway/release/
!... | 7,405 |
https://github.com/0Steve0/Kaggle/blob/master/Leaf Classfication/Leaf Classfication in DNN with keras/code/Leaf Classfication in DNN.py | Github Open Source | Open Source | Apache-2.0 | 2,017 | Kaggle | 0Steve0 | Python | Code | 125 | 552 | import numpy as np
#np.random.seed(100)
import pandas
from keras.models import Sequential
from keras.layers import Dense,Dropout,core
from keras.utils import np_utils
from sklearn.preprocessing import LabelEncoder
from sklearn.preprocessing import StandardScaler
from sklearn.cross_validation import train_test_split
#lo... | 56,147 |
https://github.com/BackupTheBerlios/paleohack/blob/master/PaleoHack/src/make_obj.c | Github Open Source | Open Source | BSD-3-Clause, MIT | 2,003 | paleohack | BackupTheBerlios | C | Code | 826 | 2,161 | /*********************************************************************
* paleohack - Hack 1.0.3 for PalmOS. *
* (C) 2001 Bridget Spitznagel and Stichting Mathematisch Centrum *
* Hack 1.0.3 is (C) 1985 Stichting Mathematisch Centrum, Amsterdam *
***********************************... | 32,519 |
https://github.com/decodedwealth/controlla/blob/master/src/components/Brand/Brand.tsx | Github Open Source | Open Source | MIT | null | controlla | decodedwealth | TypeScript | Code | 29 | 86 | import "./Brand.css";
import { FC } from "react";
const Brand: FC = () => {
return (
<div className='brand'>
<h1 id='name'>Controlla</h1>
<span id='version'>MPC001</span>
</div>
);
};
export default Brand;
| 52,172 |
https://github.com/cwtuan/ExtJSTutorial/blob/master/src/main/webapp/app/ux/chart/Highcharts/BarSerie.js | Github Open Source | Open Source | MIT | 2,017 | ExtJSTutorial | cwtuan | JavaScript | Code | 31 | 102 | /**
* Serie class for bar series type
*
* See {@link MyApp.ux.chart.Highcharts.Serie} class for more info
*/
Ext.define('MyApp.ux.chart.Highcharts.BarSerie', {
extend : 'MyApp.ux.chart.Highcharts.Serie',
alternateClassName: [ 'highcharts.bar' ],
type : 'bar'
});
| 42,766 |
https://github.com/vincent66666/five_sons_game/blob/master/server/app/Plugins/Contracts/LogFileViewInterface.php | Github Open Source | Open Source | MIT | 2,022 | five_sons_game | vincent66666 | PHP | Code | 56 | 188 | <?php
declare(strict_types=1);
/**
* @Created by PhpStorm
* @User : 清风醉
*/
namespace App\Plugins\Contracts;
use Hyperf\Paginator\Paginator;
use Hyperf\Utils\Collection;
interface LogFileViewInterface
{
/**
* @return Collection|Paginator|string
*/
public function getLogListForPage();
/**
... | 27,342 |
https://github.com/jaredsburrows/android-gradle-java-app-template/blob/master/gradle.properties | Github Open Source | Open Source | Apache-2.0 | 2,023 | android-gradle-java-app-template | jaredsburrows | null | Spoken | 76 | 198 | # Gradle
org.gradle.caching=true
org.gradle.configureondemand=true
# Kotlin Gradle Plugin
kotlin.incremental.usePreciseJavaTracking=true
# Android Gradle Plugin
# Use R8 instead of ProGuard for code shrinking.
android.enableR8=true
# Enable rudimentary R class namespacing where each library only contains
# references... | 39,552 |
https://github.com/pfritzgerald/nusassifi/blob/master/suites/rodinia2/gaussian/fritz-cfg.dot | Github Open Source | Open Source | BSD-3-Clause | 2,020 | nusassifi | pfritzgerald | Graphviz (DOT) | Code | 38 | 1,279 | 0,9,1,0xf88,0xa0,__cuda_sm3x_div_rn_noftz_f32_slowpath
1,2,0,0xf20,0xb0,__cuda_sm3x_div_rn_noftz_f32_slowpath
2,2,1,0xe98,0xc8,__cuda_sm3x_div_rn_noftz_f32_slowpath
3,2,1,0xde8,0xd8,__cuda_sm3x_div_rn_noftz_f32_slowpath
4,4,1,0xd38,0xf8,__cuda_sm3x_div_rn_noftz_f32_slowpath
5,4,1,0xc90,0x120,__cuda_sm3x_div_rn_noftz_f3... | 31,116 |
https://github.com/stan-dev/stanc3/blob/master/test/integration/bad/validate_allow_sample_bad2.stan | Github Open Source | Open Source | BSD-3-Clause | 2,023 | stanc3 | stan-dev | null | Spoken | 20 | 48 | parameters {
real y;
}
transformed parameters {
real z;
z ~ normal(0,1);
}
model {
y ~ normal(0,1);
}
| 4,439 |
https://github.com/ntnn/libargparse/blob/master/examples/echo.c | Github Open Source | Open Source | MIT | 2,016 | libargparse | ntnn | C | Code | 215 | 519 | #include <argparse.h>
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char **argv) {
args *args = args_new();
if (!args) {
fprintf(stderr, "argparse could not be initialized, aborting.\n");
return EXIT_FAILURE;
}
option *opt = option_new("n", "", "do not output a trailing new... | 30,296 |
https://github.com/suijingfeng/glean/blob/master/src/glean/dsurf.cpp | Github Open Source | Open Source | MIT | 2,019 | glean | suijingfeng | C++ | Code | 775 | 2,263 | // BEGIN_COPYRIGHT -*- glean -*-
//
// Copyright (C) 1999 Allen Akin All Rights Reserved.
//
// 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 ... | 30,640 |
https://github.com/kacperkasztelanic/leet-code/blob/master/src/solutions/scala/N504Base7.scala | Github Open Source | Open Source | MIT | null | leet-code | kacperkasztelanic | Scala | Code | 75 | 200 | package solutions.scala
import scala.annotation.tailrec
object N504Base7 {
def convertToBase7(num: Int): String = {
val radix = 7
@tailrec
def convert(n: Int, acc: List[Int]): String = n match {
case 0 =>
if (num < 0) '-' + acc.mkString
else acc.mkString
case n => convert(n... | 340 |
https://github.com/vicboma1/EdsCore/blob/master/src/main/java/org/endeavourhealth/core/database/rdbms/reference/models/RdbmsCTV3ToSnomedMap.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | EdsCore | vicboma1 | Java | Code | 289 | 1,107 | package org.endeavourhealth.core.database.rdbms.reference.models;
import org.endeavourhealth.core.database.dal.reference.models.CTV3ToSnomedMap;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.... | 25,354 |
https://github.com/praguna/KotlinDL/blob/master/onnx/src/main/kotlin/org/jetbrains/kotlinx/dl/api/inference/onnx/ONNXModels.kt | Github Open Source | Open Source | Apache-2.0 | 2,022 | KotlinDL | praguna | Kotlin | Code | 3,540 | 10,452 | /*
* Copyright 2020 JetBrains s.r.o. and Kotlin Deep Learning project contributors. All Rights Reserved.
* Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE.txt file.
*/
package org.jetbrains.kotlinx.dl.api.inference.onnx
import org.jetbrains.kotlinx.dl.api.inference.In... | 32,039 |
https://github.com/akhileshkumar7662/obbaa-polt-simulator/blob/master/netconf_server/modules/CMakeLists.txt | Github Open Source | Open Source | Apache-2.0 | 2,021 | obbaa-polt-simulator | akhileshkumar7662 | CMake | Code | 50 | 428 | # Netconf modules
if(NETCONF_SERVER)
bcm_module_name(netconf_modules)
bcm_module_dependencies(PUBLIC os dev_log sysrepo libnetconf2)
if(TR451_VOMCI_POLT)
bcm_module_dependencies(PUBLIC netconf_bbf-polt-vomci)
endif()
if (EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/bbf-xpon OR EXISTS ${CMAKE_CURRENT_S... | 42,548 |
https://github.com/FoxComm/highlander/blob/master/demo/firebrand/src/pages/checkout/cvc-help.jsx | Github Open Source | Open Source | MIT | 2,021 | highlander | FoxComm | null | Spoken | 132 | 396 | /* @flow */
import React, { Component } from 'react';
import { autobind } from 'core-decorators';
import styles from './cvc-help.css';
import Icon from 'ui/icon';
type State = {
popupVisible: boolean;
}
export default class CvcHelp extends Component {
state: State = {
popupVisible: false,
};
@autobin... | 52,330 |
https://github.com/liqb/go-bindata-assetfs/blob/master/Makefile | Github Open Source | Open Source | BSD-2-Clause | null | go-bindata-assetfs | liqb | Makefile | Code | 58 | 268 |
BINARY=go-bindata-assetfs
VERSION=1.0.1
DATE?=$(shell date -u '+%Y-%m-%d_%H:%M:%S')
#LDFLAGS=CGO_ENABLED=0 -X main.Version=${VERSION} -X main.BuildDate=${DATE}
LDFLAGS=-X main.Version=${VERSION} -X main.BuildDate=${DATE}
SRC=$(shell find . -name '*.go')
MAIN=$(shell find . -name 'main.go')
default: build
all: clea... | 42,985 |
https://github.com/Gao851021/TEMS/blob/master/UI/temsUI/src/app/shared/sidebar/sidebar.metadata.ts | Github Open Source | Open Source | MIT | 2,021 | TEMS | Gao851021 | TypeScript | Code | 22 | 66 | // Sidebar route Metadata
export interface RouteInfo{
path: string;
title: string;
icon: string;
isActive: boolean;
isShown: boolean;
showSubmenu: boolean;
submenu: RouteInfo[];
}
| 44,493 |
https://github.com/ConnectSDK/Connect-SDK-Windows/blob/master/Service/Capability/MediaLaunchObject.cs | Github Open Source | Open Source | Apache-2.0 | 2,021 | Connect-SDK-Windows | ConnectSDK | C# | Code | 194 | 426 | #region Copyright Notice
/*
* ConnectSdk.Windows
* medialaunchobject.cs
*
* Copyright (c) 2015, https://github.com/sdaemon
* Created by Sorin S. Serban on 22-4-2015,
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You m... | 24,698 |
https://github.com/Juliazlj/easy-oAuth/blob/master/lib/index.js | Github Open Source | Open Source | MIT | null | easy-oAuth | Juliazlj | JavaScript | Code | 9 | 18 | import * as oAuth from './oAuth.js';
export default oAuth | 25,589 |
https://github.com/AnastasiaAslanova/LaravelLessons/blob/master/config/weather.php | Github Open Source | Open Source | MIT | null | LaravelLessons | AnastasiaAslanova | PHP | Code | 8 | 31 | <?php
return [
'api_key' => env('OPEN_WEATHER_API_KEY', '')
];
| 26,823 |
https://github.com/landonmr/lcov_parser/blob/master/lib/src/models/line.dart | Github Open Source | Open Source | MIT | 2,021 | lcov_parser | landonmr | Dart | Code | 16 | 51 | import 'enum.dart';
class Line {
LineType type;
List<String> data;
Line({
required this.type,
required this.data,
});
}
| 53,363 |
https://github.com/linjoe2/verbindt.space/blob/master/node_modules/attractions/radio-button/radio-button.scss | Github Open Source | Open Source | MIT | 2,021 | verbindt.space | linjoe2 | SCSS | Code | 170 | 642 | @use 'sass:color';
@use 'node_modules/attractions/_variables' as vars;
@use '../_mixins';
.radio {
align-items: center;
cursor: pointer;
display: flex;
font-family: vars.$font;
position: relative;
> input[type='radio'] {
@include mixins.hide-accessible;
}
> .selector {
border: 0.125em solid v... | 21,123 |
https://github.com/hkarel/libneo4j-client/blob/master/lib/src/serialization.c | Github Open Source | Open Source | Apache-2.0 | null | libneo4j-client | hkarel | C | Code | 1,068 | 3,610 | /* vi:set ts=4 sw=4 expandtab:
*
* Copyright 2016, Chris Leishman (http://github.com/cleishm)
*
* 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/LI... | 32,716 |
https://github.com/fadiCoapp/hapi-fhir/blob/master/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/data/IObservationIndexedCodeCodeableConceptSearchParamDao.java | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-warranty-disclaimer | 2,020 | hapi-fhir | fadiCoapp | Java | Code | 40 | 238 | package ca.uhn.fhir.jpa.dao.data;
import ca.uhn.fhir.jpa.model.entity.ObservationIndexedCodeCodeableConceptEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.stere... | 20,127 |
https://github.com/ohio813/codeword/blob/master/CwHandler/CwFormHelper.cs | Github Open Source | Open Source | BSD-3-Clause | 2,017 | codeword | ohio813 | C# | Code | 2,517 | 6,196 | /*
+---------------------------------------------------------------------+
Copyright 2009, Aaron LeMasters and Michael Davis
This file is part of Codeword.
Codeword is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License... | 39,178 |
https://github.com/gitpan/ArangoDB/blob/master/lib/ArangoDB/Collection.pm | Github Open Source | Open Source | Artistic-2.0 | 2,014 | ArangoDB | gitpan | Perl | Code | 753 | 2,146 | package ArangoDB::Collection;
use strict;
use warnings;
use base qw(
ArangoDB::Base
);
use Data::Dumper;
use JSON::XS;
use ArangoDB::Document;
my $JSON = JSON::XS->new->utf8;
# checksum
#
# GET /_api/collection/{collection-name}/checksum
#
# Query Parameters
#
# withRevisions: Whether or not to include docu... | 14,810 |
https://github.com/Vaa3D/vaa3d_tools/blob/master/hackathon/LXF/soma_remove/fun.h | Github Open Source | Open Source | MIT | 2,023 | vaa3d_tools | Vaa3D | C++ | Code | 120 | 537 |
#ifndef FUN_H
#define FUN_H
#include <vector>
using namespace std;
template <class T>
void combine(vector<T> &v, int left, int m, int right, vector<int> &index)
{
vector<T> tempv(v.begin()+left,v.begin()+right+1);
vector<int> tempindex(index.begin()+left,index.begin()+right+1);
int left_size=m-left+1;
... | 10,825 |
https://github.com/pianruijie/amis/blob/master/examples/components/EventAction/ExcelEvent.jsx | Github Open Source | Open Source | Apache-2.0 | 2,022 | amis | pianruijie | null | Spoken | 123 | 435 | const changeEvent = {
actions: [
{
actionType: 'dialog',
args: {
val: '${event.data.value}'
},
dialog: {
title: `派发change事件`,
data: {
val: '${val}'
},
body: [
{
type: 'tpl',
tpl: '${val|json}'
}
... | 25,456 |
https://github.com/ccckblaze/AS3SVGRenderer/blob/master/SVGRenderer/src/org/assetloader/loaders/ImageLoader.as | Github Open Source | Open Source | MIT | 2,017 | AS3SVGRenderer | ccckblaze | null | Spoken | 237 | 819 | package org.assetloader.loaders
{
import org.assetloader.base.AssetType;
import org.assetloader.base.Param;
import org.assetloader.signals.LoaderSignal;
import flash.display.Bitmap;
import flash.display.BitmapData;
import flash.display.DisplayObject;
import flash.net.URLRequest;
/**
* @author Matan Uberstei... | 23,394 |
https://github.com/jonturkz/Competitive-Programming/blob/master/LeetCode/Easy/682.cpp | Github Open Source | Open Source | Apache-2.0 | 2,020 | Competitive-Programming | jonturkz | C++ | Code | 111 | 356 | /*
* @Author: zhaoyang.liang
* @Github: https://github.com/LzyRapx
* @Date: 2019-12-28 23:24:41
*/
class Solution {
public:
int calPoints(vector<string>& ops) {
stack<int>st;
int res = 0;
for(int i = 0; i < ops.size(); i++) {
if(ops[i] != "C" && ops[i] != "D" && ops[i] != "+"... | 25,235 |
https://github.com/SergeyZhernovoy/any_themes_big_data/blob/master/healthcare/src/main/java/com/boot/edu/healthcare/controllers/DoctorSearchController.java | Github Open Source | Open Source | MIT | null | any_themes_big_data | SergeyZhernovoy | Java | Code | 55 | 231 | package com.boot.edu.healthcare.controllers;/**
* @author Sergey Zhernovoy
* create on 31.12.2017.
*/
import com.boot.edu.healthcare.domain.DoctorList;
import com.boot.edu.healthcare.service.DoctorService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.... | 34,744 |
https://github.com/Lasser01/Femyou/blob/master/demos/BouncingBallGif/GIFDemo.cs | Github Open Source | Open Source | MIT | null | Femyou | Lasser01 | C# | Code | 214 | 730 | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Reflection;
using AnimatedGif;
using Femyou;
using SkiaSharp;
using SkiaSharp.Views.Desktop;
namespace BouncingBallGif {
internal static class GIFDemo {
private static readonly string FmuFolder =
Path.Combine(
T... | 49,297 |
https://github.com/thekitbag/todoodleoo-client/blob/master/node_modules/npm/node_modules/hosted-git-info/lib/index.js | Github Open Source | Open Source | Apache-2.0 | 2,020 | todoodleoo-client | thekitbag | JavaScript | Code | 939 | 2,449 | 'use strict'
const url = require('url')
const gitHosts = require('./git-host-info.js')
const GitHost = module.exports = require('./git-host.js')
const LRU = require('lru-cache')
const cache = new LRU({ max: 1000 })
const protocolToRepresentationMap = {
'git+ssh:': 'sshurl',
'git+https:': 'https',
'ssh:': 'sshurl... | 8,013 |
https://github.com/WSCKY/RDA5981_Develop/blob/master/tools/add_fib.py | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-unknown-license-reference | 2,020 | RDA5981_Develop | WSCKY | Python | Code | 822 | 2,297 | """
@copyright (c) 2012 ON Semiconductor. All rights reserved.
ON Semiconductor is supplying this software for use with ON Semiconductor
processor based microcontrollers only.
THIS SOFTWARE IS PROVIDED "AS IS". NO WARRANTIES, WHETHER EXPRESS, IMPLIED
OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF
M... | 8,308 |
https://github.com/scamantus/taisei/blob/master/src/util/pngcruft.c | Github Open Source | Open Source | CC-BY-4.0 | null | taisei | scamantus | C | Code | 164 | 740 | /*
* This software is licensed under the terms of the MIT-License
* See COPYING for further information.
* ---
* Copyright (c) 2011-2019, Lukas Weber <laochailan@web.de>.
* Copyright (c) 2012-2019, Andrei Alexeyev <akari@alienslab.net>.
*/
#include "taisei.h"
#include "pngcruft.h"
#include "log.h"
static void ... | 5,432 |
https://github.com/sunbird-cb/sunbird-cb-portal/blob/master/project/ws/app/src/lib/routes/person-profile/components/user-qna/user-qna.component.ts | Github Open Source | Open Source | MIT | 2,023 | sunbird-cb-portal | sunbird-cb | TypeScript | Code | 309 | 1,289 | import { Component, OnInit, Input, EventEmitter, Output } from '@angular/core'
import { NsDiscussionForum } from '@sunbird-cb/collection'
import { TFetchStatus, ConfigurationsService } from '@sunbird-cb/utils'
import { PersonProfileService } from '../../services/person-profile.service'
import { Subscription } from 'rxj... | 2,605 |
https://github.com/kschuetz/kraftwerk/blob/master/src/test/java/software/kes/kraftwerk/constraints/LongRangeTest.java | Github Open Source | Open Source | MIT | 2,022 | kraftwerk | kschuetz | Java | Code | 152 | 677 | package software.kes.kraftwerk.constraints;
import org.junit.jupiter.api.Test;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.collection.IsIterableContainingInOrder.contains;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.as... | 35,085 |
https://github.com/svn2github/matreshka/blob/master/source/amf/uml/amf-uml-link_actions.ads | Github Open Source | Open Source | BSD-3-Clause | 2,021 | matreshka | svn2github | Ada | Code | 496 | 1,035 | ------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... | 32,172 |
https://github.com/Divya-whiteworld16/LGMVIP-TASK3/blob/master/contactus.php | Github Open Source | Open Source | MIT | null | LGMVIP-TASK3 | Divya-whiteworld16 | PHP | Code | 49 | 247 | <?php include('topbar.php');?>
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="css/contactus.css">
<title></title>
</head>
<body style="background-color: skyblue;">
<br><br><br>
<div class="box" >
<center><u><h1>Contact Us</h1></u></center>
<ul style="font-size: 30px;"... | 37,564 |
https://github.com/lucca-cardial/adonis-acl-with-context/blob/master/src/Middlewares/Scope.js | Github Open Source | Open Source | MIT | 2,022 | adonis-acl-with-context | lucca-cardial | JavaScript | Code | 55 | 158 | 'use strict'
/**
* adonis-acl
* Copyright(c) 2017 Evgeny Razumov
* MIT Licensed
*/
const ForbiddenException = require('../Exceptions/ForbiddenException')
class Scope {
async handle ({ auth }, next, ...requiredScope) {
if (Array.isArray(requiredScope[0])) {
requiredScope = requiredScope[0]
}
c... | 3,273 |
https://github.com/alaincid/rielsaApp/blob/master/app/Clientes.php | Github Open Source | Open Source | MIT | 2,021 | rielsaApp | alaincid | PHP | Code | 20 | 78 | <?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Clientes extends Model
{
protected $fillable = ['id', 'nombre_cliente', 'rfc_cliente', 'direccion_cliente', 'telefono_cliente', 'email_cliente'];
}
| 45,879 |
https://github.com/NaosProject/Naos.Deployment/blob/master/Naos.FileJanitor.MessageBus.Hangfire.Console/.recipes/OBeautifulCode.Reflection/BindingFlagsFor.cs | Github Open Source | Open Source | MIT | 2,023 | Naos.Deployment | NaosProject | C# | Code | 756 | 1,696 | // --------------------------------------------------------------------------------------------------------------------
// <copyright file="BindingFlagsFor.cs" company="OBeautifulCode">
// Copyright (c) OBeautifulCode 2018. All rights reserved.
// </copyright>
// <auto-generated>
// Sourced from NuGet package. Wil... | 26,355 |
https://github.com/ray1888/argus_web_front/blob/master/app/src/routers/userManage_route.js | Github Open Source | Open Source | MIT | null | argus_web_front | ray1888 | JavaScript | Code | 24 | 86 | // const hello_view = resolve => require(['view/hello.vue'], resolve) //组件异步懒加载写法
import userManage_view from 'view/userManage'
export const userManage_route = { //用户管理
path: 'userManage',
component: userManage_view
} | 40,410 |
https://github.com/PacktPublishing/Mastering-SAS-Programming/blob/master/Chapter 4/Chap4_06_Proc Freq after Loop.sas | Github Open Source | Open Source | MIT | 2,021 | Mastering-SAS-Programming | PacktPublishing | null | Spoken | 10 | 40 | proc freq data=Chap4_1_RecodeMissing;
tables MARIJAN1;
tables USEMRJN2;
tables RSNMRJN1;
run; | 13,174 |
https://github.com/lcmjr/quartier-latin/blob/master/resources/views/includes/endereco.blade.php | Github Open Source | Open Source | MIT | null | quartier-latin | lcmjr | PHP | Code | 3 | 48 | {{$dados_contato->endereco_1}}<br/>
{{$dados_contato->endereco_2}}<br/>
{{$dados_contato->endereco_3}} | 18,601 |
https://github.com/lionralfs/tal-ts/blob/master/src/devices/anim/css3transform/transition.ts | Github Open Source | Open Source | Apache-2.0 | 2,018 | tal-ts | lionralfs | TypeScript | Code | 90 | 233 | import { IAnimOptions } from '../../device';
import { EasingLookup } from '../css3/easinglookup';
import { Helpers } from '../shared/helpers';
const getEasing = (options: IAnimOptions) => {
const easing = options.easing || 'easeFromTo';
return EasingLookup[easing];
};
const set = (el: HTMLElement, properties: str... | 26,161 |
https://github.com/Lichtbit/m3_log_file_parser/blob/master/lib/m3_log_file_parser/line_parser.rb | Github Open Source | Open Source | MIT | null | m3_log_file_parser | Lichtbit | Ruby | Code | 109 | 955 | M3LogFileParser::LineParser = Struct.new(:worker, :line) do
delegate :requests, to: :worker
def perform
return if line.strip == ''
# DEBUG < INFO < WARN < ERROR < FATAL < UNKNOWN
match = line.match(/\ASent\smail\sto/)
if match
worker.mail_sent
return
end
match = line.match(/\... | 43,630 |
https://github.com/FleekHQ/minio/blob/master/cmd/erasure-healing_test.go | Github Open Source | Open Source | AGPL-3.0-or-later, AGPL-3.0-only | 2,021 | minio | FleekHQ | Go | Code | 1,857 | 5,150 | // Copyright (c) 2015-2021 MinIO, Inc.
//
// This file is part of MinIO Object Storage stack
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (... | 12,984 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.