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/tparviainen/clashofclans/blob/master/src/ClashOfClans.Models/ClanCapitalRaidSeasonDistrictList.cs | Github Open Source | Open Source | MIT | 2,023 | clashofclans | tparviainen | C# | Code | 13 | 57 | using System.Collections.Generic;
namespace ClashOfClans.Models
{
public class ClanCapitalRaidSeasonDistrictList : List<ClanCapitalRaidSeasonDistrict>
{
}
}
| 30,764 |
https://github.com/fullstackreact/redux-module-builder-example/blob/master/src/redux/modules/currentEvent.js | Github Open Source | Open Source | MIT | 2,016 | redux-module-builder-example | fullstackreact | JavaScript | Code | 250 | 813 | import {createConstants, createReducer} from 'redux-module-builder'
import {createApiHandler, createApiAction} from 'redux-module-builder/api'
import '../../utils/array'
import * as events from './events';
import * as images from './images'
export const types = createConstants('currentEvent')(
'TWEET_ARRIVED',
'... | 8,065 |
https://github.com/ldl-php/ldl-env-util/blob/master/src/Env/Util/File/Parser/EnvFileParser.php | Github Open Source | Open Source | MIT | null | ldl-env-util | ldl-php | PHP | Code | 297 | 1,038 | <?php
declare(strict_types=1);
/**
* The file parser takes in a collection of readable files, reads lines from each one of them
* and parses the obtained lines from said files.
*/
namespace LDL\Env\Util\File\Parser;
use LDL\Env\Util\File\Exception\ReadEnvFileException;
use LDL\Env\Util\File\Parser\Exception\EnvF... | 26,055 |
https://github.com/thundernet8/spectre/blob/master/components/button/__tests__/__snapshots__/index.test.js.snap | Github Open Source | Open Source | MIT | 2,017 | spectre | thundernet8 | null | Spoken | 35 | 127 | // Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`Button Group button group renders correctly 1`] = `
<div
className="spt-btn-group spt-btn-group-lg"
/>
`;
exports[`Button button renders correctly 1`] = `
<button
className="spt-btn spt-btn-primary spt-btn-lg"
onClick={[Function]}
onMouseUp={[Function]}
ty... | 361 |
https://github.com/JetBrains-Research/CoFRA/blob/master/src/ReSharperPlugin/src/ILCompiler/ElementCompilers/BaseExpressionCompiler.cs | Github Open Source | Open Source | Apache-2.0 | 2,019 | CoFRA | JetBrains-Research | C# | Code | 53 | 215 | using Cofra.AbstractIL.Common.ControlStructures;
using Cofra.AbstractIL.Common.Types.AnalysisSpecific;
using Cofra.ReSharperPlugin.ILCompiler.CompilationResults;
using JetBrains.ReSharper.Psi.CSharp.Tree;
namespace Cofra.ReSharperPlugin.ILCompiler.ElementCompilers
{
internal class BaseExpressionCompiler : Expressi... | 9,968 |
https://github.com/phpyandong/opentaobao/blob/master/api/tmallhk/TmallTraceplatformAwdcInfoUpload.go | Github Open Source | Open Source | Apache-2.0 | 2,021 | opentaobao | phpyandong | Go | Code | 43 | 217 | package tmallhk
import (
"github.com/bububa/opentaobao/core"
"github.com/bububa/opentaobao/model/tmallhk"
)
/*
AWDC提交溯源信息
tmall.traceplatform.awdc.info.upload
天猫溯源-AWDC-上传溯源信息
*/
func TmallTraceplatformAwdcInfoUpload(clt *core.SDKClient, req *tmallhk.TmallTraceplatformAwdcInfoUploadRequest, session string)... | 34,773 |
https://github.com/muyiwaolurin/spreadsheet-functions/blob/master/math/lcm_test.go | Github Open Source | Open Source | MIT | 2,018 | spreadsheet-functions | muyiwaolurin | Go | Code | 127 | 320 | package mathlib
import "testing"
func TestLCM(t *testing.T) {
a := []int{1, 5}
b := []int{15, 10, 25}
c := []int{1, 8, 12}
x := []int{7, 2}
result, err := LCM(a...)
if err != nil {
t.Errorf("LCM Function returned an error")
}
if result != 5 {
t.Errorf("LCM Function Failed ")
}
result, err = LCM(b..... | 2,804 |
https://github.com/ebrahimree/snmppp/blob/master/code/src/CMakeLists.txt | Github Open Source | Open Source | MIT | 2,020 | snmppp | ebrahimree | CMake | Code | 96 | 302 | # SNMPpp: https://sourceforge.net/p/snmppp/
# SNMPpp project uses the MIT license. See LICENSE for details.
# Copyright (C) 2013 Stephane Charette <stephanecharette@gmail.com>
FILE ( GLOB SNMPPP_SOURCE *.cpp )
LIST ( SORT SNMPPP_SOURCE )
ADD_LIBRARY ( snmppp STATIC ${SNMPPP_SOURCE} )
TARGET_LINK_LIBRARIES ( snmppp ${... | 51,098 |
https://github.com/lvxejay/MaterialX/blob/master/source/MaterialXCore/Types.cpp | Github Open Source | Open Source | BSL-1.0 | null | MaterialX | lvxejay | C++ | Code | 66 | 171 | //
// TM & (c) 2017 Lucasfilm Entertainment Company Ltd. and Lucasfilm Ltd.
// All rights reserved. See LICENSE.txt for license.
//
#include <MaterialXCore/Types.h>
namespace MaterialX
{
const string DEFAULT_TYPE_STRING = "color3";
const string FILENAME_TYPE_STRING = "filename";
const string SURFACE_SHADER_TYPE_STR... | 25,696 |
https://github.com/OxCom/zf3-twig/blob/master/src/Service/TwigRendererFactory.php | Github Open Source | Open Source | MIT | 2,020 | zf3-twig | OxCom | PHP | Code | 103 | 422 | <?php
namespace ZendTwig\Service;
use Twig\Environment;
use ZendTwig\Module;
use ZendTwig\Renderer\TwigRenderer;
use ZendTwig\Resolver\TwigResolver;
use ZendTwig\View\HelperPluginManager as TwigHelperPluginManager;
use Interop\Container\ContainerInterface;
use Laminas\View\View;
use Laminas\ServiceManager\Factory\Fac... | 33,406 |
https://github.com/phumpal/sensu-plugins-aws/blob/master/bin/metrics-waf.rb | Github Open Source | Open Source | MIT | 2,022 | sensu-plugins-aws | phumpal | Ruby | Code | 275 | 889 | #! /usr/bin/env ruby
#
# metrics-waf
#
# DESCRIPTION:
# Gets latency metrics from CloudWatch and puts them in Graphite for longer term storage
#
# OUTPUT:
# metric-data
#
# PLATFORMS:
# Linux
#
# DEPENDENCIES:
# gem: aws-sdk
# gem: sensu-plugin
# gem: sensu-plugin-aws
# gem: time
#
# USAGE:
#
#
# NOTES:
#... | 12,009 |
https://github.com/hfming/core-java/blob/master/bio/src/com/hfm/otherstream/InputStreamReaderTest.java | Github Open Source | Open Source | MIT | null | core-java | hfming | Java | Code | 98 | 364 | package com.hfm.otherstream;
import org.junit.jupiter.api.Test;
import java.io.*;
/**
* 转换流 InputStreamReader 字节向字符转换
*
* @author hfm
*/
public class InputStreamReaderTest {
/**
* 输入字节流转化位输入字符流
*/
@Test
public void inputByteToChar() {
File file = new File("D:\\Code\\core-java-simpl... | 42,840 |
https://github.com/sinus86/module-distribution/blob/master/Ui/Component/Listing/Distribution/Export.php | Github Open Source | Open Source | MIT | null | module-distribution | sinus86 | PHP | Code | 235 | 709 | <?php
/**
* NOTICE OF LICENSE
*
* This source file is subject to the license that is available in LICENSE file.
*
* DISCLAIMER
*
* Do not edit this file if you wish to upgrade this extension to newer version in the future.
*/
namespace FjodorMaller\Distribution\Ui\Component\Listing\Distribution;
use FjodorMal... | 30,657 |
https://github.com/evankravitz/ECE-3400-Team-1/blob/master/code dump/lab2/test3/test3.ino | Github Open Source | Open Source | MIT | 2,017 | ECE-3400-Team-1 | evankravitz | C++ | Code | 319 | 965 | #include <Servo.h>
int leftPin = A0; //connected to analog 0
int midPin = A1; //connected to analog 0
int rightPin = A2; //connected to analog 0
Servo servoL;
Servo servoR;
int line[2];
int count = 0;
static int straightL = 180;
static int straightR = 83;
static int leftL = 180;
static int leftR = 86; //correction... | 16,826 |
https://github.com/MonsieurTweek/TestRoomUnity/blob/master/Assets/_External/Spells Pack/Particles/Prefabs/Variations/Spells/Dark/Spell_Dark_5_Purple Variant.prefab | Github Open Source | Open Source | MIT | 2,021 | TestRoomUnity | MonsieurTweek | Unity3D Asset | Code | 448 | 2,433 | %YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1001 &4681864678387240179
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
m_TransformParent: {fileID: 0}
m_Modifications:
- target: {fileID: 266732879274192462, guid: 30d1bb02d9b71f144a78914f8ef1cce8,
type: 3}
prop... | 5,456 |
https://github.com/egyware/fp4g/blob/master/fp4g/src/fp4g/classes/MessageMethod.java | Github Open Source | Open Source | Apache-2.0, BSD-3-Clause | null | fp4g | egyware | Java | Code | 114 | 277 | package fp4g.classes;
/**
* Esta clase sirve de apoyo para guardar los metodos de los mensajes.
*
* @author Edgardo
*
*/
public final class MessageMethod
{
private String valueReplace;
private boolean attachInputProcesor;
private boolean multiple = false;
//para ser usado dentro del set
public MessageMe... | 32,251 |
https://github.com/myoukaku/bksge/blob/master/libs/fnd/tmp/include/bksge/fnd/tmp/max.hpp | Github Open Source | Open Source | MIT | 2,021 | bksge | myoukaku | C++ | Code | 58 | 167 | /**
* @file max.hpp
*
* @brief max クラスの定義
*
* @author myoukaku
*/
#ifndef BKSGE_FND_TMP_MAX_HPP
#define BKSGE_FND_TMP_MAX_HPP
namespace bksge
{
namespace tmp
{
template <typename T, T lhs, T rhs>
struct max
{
static T const value = (lhs < rhs) ? rhs : lhs;
};
} // namespace tmp
} // namespace bksge
#endi... | 20,989 |
https://github.com/choria-legacy/prometheus-streams/blob/master/.gitignore | Github Open Source | Open Source | Apache-2.0 | 2,018 | prometheus-streams | choria-legacy | Ignore List | Code | 7 | 45 | vendor
*.swp
prometheus-streams
.DS_Store
prometheus-streams-*
scrape.yaml
choria-prometheus_streams* | 34,330 |
https://github.com/OskarGroth/DTLocationManager/blob/master/DTLocationManager/DTMomentaryLocationManager.m | Github Open Source | Open Source | MIT | 2,016 | DTLocationManager | OskarGroth | Objective-C | Code | 298 | 710 | // DTLocationManager
//
// Created by Denys Telezhkin on 16.05.14.
// Copyright (c) 2014 MLSDev. 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 restrict... | 15,648 |
https://github.com/koen-serneels/knooppuntnet/blob/master/client/src/app/components/ol/domain/node-map-style.ts | Github Open Source | Open Source | MIT | 2,019 | knooppuntnet | koen-serneels | TypeScript | Code | 83 | 260 | import Map from "ol/Map";
import {MainStyleColors} from "./main-style-colors";
import {NodeStyle} from "./node-style";
import {RouteStyle} from "./route-style";
export class NodeMapStyle {
private readonly smallNodeStyle = NodeStyle.smallNodeStyle();
private readonly largeNodeStyle = NodeStyle.largeNodeStyle();
... | 26,822 |
https://github.com/utifmd/android-meine-mensa/blob/master/app/src/main/java/com/heinrichreimer/meinemensa/model/UnlinkedPrice.java | Github Open Source | Open Source | LicenseRef-scancode-generic-cla, MIT | 2,020 | android-meine-mensa | utifmd | Java | Code | 404 | 1,155 | /*
* MIT License
*
* Copyright (c) 2017 Jan Heinrich Reimer
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, co... | 18,211 |
https://github.com/rafimo/2_power_5/blob/master/2021/haskell/concurrency.hs | Github Open Source | Open Source | Apache-2.0 | null | 2_power_5 | rafimo | Haskell | Code | 72 | 165 | -- concurrency in haskell
-- cerner_2tothe5th_2021
import Control.Concurrent (forkIO, threadDelay)
import Data.Foldable (for_)
main = do
let a = [1, 3, 5]
forkIO (print_ a "group1")
let a = [2, 4, 6]
forkIO (print_ a "group2")
-- Wait for threads to finish.
threadDelay 13000
-- print mes... | 53,817 |
https://github.com/pertgame/battleframe/blob/master/battle_server/src/common/api.go | Github Open Source | Open Source | MIT | 2,022 | battleframe | pertgame | Go | Code | 213 | 615 | package common
import (
"crypto/md5"
"encoding/hex"
"fmt"
"reflect"
"unsafe"
)
func GetMd5String(s string) string {
h := md5.New()
h.Write([]byte(s))
return hex.EncodeToString(h.Sum(nil))
}
func SizeVal(data interface{}) int {
return sizeof(reflect.ValueOf(data))
}
func sizeof(v... | 28,316 |
https://github.com/gusbemacbe/beautiful-menu/blob/master/Applications by Categories/GTK/Original/gnome-sharing-panel.desktop | Github Open Source | Open Source | MIT | 2,019 | beautiful-menu | gusbemacbe | null | Spoken | 702 | 7,475 | [Desktop Entry]
Name[af]=Deling
Name[an]=Compartir
Name[ar]=المشاركة
Name[as]=অংশীদাৰী কৰা
Name[be]=Супольны доступ
Name[bg]=Споделяне
Name[bn_IN]=যৌথরূপে ব্যবহার
Name[bs]=Dijeljenje
Name[ca]=Compartició
Name[ca@valencia]=Compartició
Name[crh]=Üleşim
Name[cs]=Sdílení
Name[da]=Deling
Name[de]=Freigabe
Name[el]=Κοινή χρή... | 30,137 |
https://github.com/jay-hershkowitz/hpe-application-automation-tools-plugin/blob/master/src/test/java/com/microfocus/application/automation/tools/octane/actions/project/CustomProject.java | Github Open Source | Open Source | MIT | 2,018 | hpe-application-automation-tools-plugin | jay-hershkowitz | Java | Code | 288 | 581 | /*
*
* Certain versions of software and/or documents (“Material”) accessible here may contain branding from
* Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017,
* the Material is now offered by Micro Focus, a separately owned and operated company. Any referen... | 10,166 |
https://github.com/tefra/xsdata-w3c-tests/blob/master/output/instances/msData/complexType/ctN001.py | Github Open Source | Open Source | MIT | 2,023 | xsdata-w3c-tests | tefra | Python | Code | 12 | 58 | from output.models.ms_data.complex_type.ct_n001_xsd.ct_n001 import Root
obj = Root(
my_ele1="string data",
my_ele4="string data"
)
| 19,125 |
https://github.com/dormrod/hard_disk_monte_carlo/blob/master/src/voronoi3d.cpp | Github Open Source | Open Source | MIT | null | hard_disk_monte_carlo | dormrod | C++ | Code | 848 | 3,806 | #include "voronoi3d.h"
Voronoi3D::Voronoi3D(VecF<double> &x, VecF<double> &y, VecF<double> &z, VecF<double> &r, double cellLen_2, double zCut, int numA, bool radical, int maxV) {
//Initialise with x,y,z coordinates and radii
//Make periodic container in xy
n=x.n;
nA=numA;
nB=n-nA;
maxVertices... | 35,638 |
https://github.com/maainul/Paython/blob/master/far_to_cel_using_try_except.py | Github Open Source | Open Source | DOC | null | Paython | maainul | Python | Code | 11 | 58 | inp=input('Enter farenheit Temperatur')
try:
far=float(inp)
cel=(far-32.0)*5.0/9.0
print(cel)
except:
print('Enter a number')
| 30,949 |
https://github.com/cruzmanuelar/chat-nuevo/blob/master/routes/web.php | Github Open Source | Open Source | MIT | null | chat-nuevo | cruzmanuelar | PHP | Code | 6 | 48 | <?php
use Illuminate\Support\Facades\Route;
use App\Http\Controllers\HomeController;
Route::get('/','App\Http\Controllers\HomeController@index');
| 6,076 |
https://github.com/zyth0s/bench_density_gradient_wfn/blob/master/fortran/Makefile | Github Open Source | Open Source | MIT | 2,021 | bench_density_gradient_wfn | zyth0s | Makefile | Code | 13 | 75 |
FFLAGS=-O3 -march=native -funroll-loops
libeval_gradrho.so: eval_gradrho.f90
gfortran -Wall -shared -fPIC ${FFLAGS} -o libeval_gradrho.so eval_gradrho.f90
| 54,099 |
https://github.com/nanepifanio/logica-de-progamacao-com-portugol/blob/master/Portugol/Fundamentos Programação/Módulo03/M03EX41.por | Github Open Source | Open Source | MIT | 2,021 | logica-de-progamacao-com-portugol | nanepifanio | null | Spoken | 251 | 770 | programa
{
inclua biblioteca Tipos --> t
inclua biblioteca Matematica --> m
funcao inicio()
{
escreva("{ EXERCÍCIO 041 - Cadastro de amigos }\n")
cadeia nome, mais_velho = "", mais_novo = ""
inteiro idade, tot_amigos = 0, mais_idade = 0, menos_idade = 0, c = 1, soma_idade = 0
enquanto (verdadeiro) {
es... | 27,143 |
https://github.com/SoulLyoko/egg-admin-front/blob/master/src/components/file-upload/index.vue | Github Open Source | Open Source | 2,020 | egg-admin-front | SoulLyoko | Vue | Code | 278 | 1,169 | <template>
<el-upload
:accept="accept"
:action="action"
:disabled="disabled"
:drag="drag"
:file-list="fileList"
:headers="headers"
:limit="limit"
:list-type="listType"
:multiple="multiple"
:show-file-list="showFileList"
:before-remove="handleBeforeRemove"
:on-exceed="ha... | 3,013 | |
https://github.com/imheretw/imhere-isomophic/blob/master/server/models/user.js | Github Open Source | Open Source | MIT | 2,017 | imhere-isomophic | imheretw | JavaScript | Code | 63 | 196 | import bcrypt from 'bcrypt';
import { bookshelf } from '../db';
import config from '../config/appConfig';
const User = bookshelf.Model.extend({
tableName: 'users',
hasTimestamps: true,
serialize: function toFilteredJSON() {
const user = this.pick(['id', 'name', 'gender', 'email']);
return user;
},
... | 31,334 |
https://github.com/helpdotcom/couchbase-exporter/blob/master/lib/exporters/cluster.js | Github Open Source | Open Source | MIT | 2,018 | couchbase-exporter | helpdotcom | JavaScript | Code | 399 | 1,291 | 'use strict'
const cb = require('../couchbase')
const {createGauge} = require('../prom')
function has(obj, prop) {
return Object.prototype.hasOwnProperty.call(obj, prop)
}
module.exports = class ClusterCollector {
constructor({registry, buckets}) {
this.registry = registry
this.buckets = buckets
this... | 11,170 |
https://github.com/SonyOyarzun/Cadena-suministros/blob/master/app/Http/Controllers/ProductController.php | Github Open Source | Open Source | MIT | null | Cadena-suministros | SonyOyarzun | PHP | Code | 268 | 753 | <?php
namespace App\Http\Controllers;
use App\Product;
use Illuminate\Http\Request;
use PhpParser\Node\Stmt\Return_;
class ProductController extends Controller
{
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/
public function index()
{
$produ... | 29,519 |
https://github.com/getupcloud/origin-server/blob/master/console/lib/console/configuration.rb | Github Open Source | Open Source | Apache-2.0 | 2,015 | origin-server | getupcloud | Ruby | Code | 629 | 2,340 | require 'active_support/configurable'
require 'active_support/core_ext/hash'
require 'console/config_file'
module Console
# Configures global settings for Console
# Console.configure do |config|
# config.disable_assets = 10
# end
def self.configure(file=nil,&block)
config.send(:load, file) if file
yield co... | 39,499 |
https://github.com/herbncrypto/lambda-jwt-auth-demo/blob/master/src/lambda/utils/ServerError.js | Github Open Source | Open Source | MIT | 2,020 | lambda-jwt-auth-demo | herbncrypto | JavaScript | Code | 66 | 138 | module.exports = class ServerError extends Error {
constructor(statusCode, message, config = {}) {
// Calling parent constructor of base Error class.
super(message);
// save class name in the property of our custom error as a shortcut
this.name = this.constructor.name;
// capturing stack trace, ... | 19,719 |
https://github.com/uninth/UNItools/blob/master/src/GaIA/pkgs/lshw/lshw-B.02.16/src/gui/stock.c | Github Open Source | Open Source | BSD-3-Clause | null | UNItools | uninth | C | Code | 503 | 2,145 | #include "stock.h"
#include <stdlib.h>
#include <string.h>
#include <gtk/gtk.h>
static char *id = "@(#) $Id$";
#define UIFILE "gtk-lshw.ui"
GtkWidget *mainwindow = NULL;
GtkWidget *about = NULL;
GtkWidget *list1 = NULL;
GtkWidget *list2 = NULL;
GtkWidget *list3 = NULL;
GtkWidget *description = NULL;
GtkWidget *go_up... | 3,926 |
https://github.com/willbchang-fork/DefaultBrowser/blob/master/Sources/DefaultBrowser/main.swift | Github Open Source | Open Source | MIT | 2,020 | DefaultBrowser | willbchang-fork | Swift | Code | 242 | 638 | import Foundation
import ArgumentParser
import DefaultBrowserCore
struct CommandLineTool: ParsableCommand {
static let configuration = CommandConfiguration(
commandName: "default-browser",
abstract: "Manages the system's default web browser.",
subcommands: [Set.self, List.self, Current.self... | 50,974 |
https://github.com/SAP/spartacus/blob/master/projects/storefrontlib/cms-components/misc/message/message.component.spec.ts | Github Open Source | Open Source | Apache-2.0 | 2,023 | spartacus | SAP | TypeScript | Code | 263 | 954 | import { Component, DebugElement, Input } from '@angular/core';
import { waitForAsync, ComponentFixture, TestBed } from '@angular/core/testing';
import { By } from '@angular/platform-browser';
import { GlobalMessageType, I18nTestingModule } from '@spartacus/core';
import { ICON_TYPE } from '@spartacus/storefront';
impo... | 28,956 |
https://github.com/blackhatbrigade/gomessagestore/blob/master/worker_getposition.go | Github Open Source | Open Source | Apache-2.0 | 2,020 | gomessagestore | blackhatbrigade | Go | Code | 333 | 1,052 | package gomessagestore
import (
"context"
"encoding/json"
"fmt"
"strings"
"github.com/blackhatbrigade/gomessagestore/repository"
"github.com/blackhatbrigade/gomessagestore/uuid"
"github.com/sirupsen/logrus"
)
// GetPosition retrieves the current position that messages should be retrieved from; first process o... | 24,819 |
https://github.com/George221b/SoftUni-Taks/blob/master/JSFundamentals/05.ArraysAndMatrices-Lab/08.BiggestElement.js | Github Open Source | Open Source | MIT | null | SoftUni-Taks | George221b | JavaScript | Code | 59 | 167 | function biggestElement(arr) {
let biggest = Number.NEGATIVE_INFINITY;
for (let rows = 0; rows < arr.length; rows++) {
for (let cols = 0; cols < arr[rows].length; cols++) {
if (arr[rows][cols] > biggest) {
biggest = arr[rows][cols];
}
}
}
return co... | 41,396 |
https://github.com/teamsimplepay/ooxml_crypt/blob/master/vendor/cybozulib/sample/mecab_smpl.cpp | Github Open Source | Open Source | MIT | 2,021 | ooxml_crypt | teamsimplepay | C++ | Code | 107 | 384 | #include <vector>
#include <stdio.h>
#include <cybozu/nlp/mecab.hpp>
#include <cybozu/mmap.hpp>
int main(int argc, char *argv[])
{
argc--, argv++;
if (argc == 0) {
fprintf(stderr, "mecab_smpl filename\n");
return 1;
}
try {
const std::string fileName = argv[0];
cybozu::Mmap mmap(fileName);
if (mmap.size(... | 8,488 |
https://github.com/rizerzero/speech-to-text-php/blob/master/tests/Unit/Jobs/ProcessTranscribedTextTest.php | Github Open Source | Open Source | MIT | 2,020 | speech-to-text-php | rizerzero | PHP | Code | 83 | 382 | <?php
namespace Tests\Unit\Jobs;
use App\Events\AudioTranscribed;
use App\Jobs\ProcessTranscribedText;
use Illuminate\Events\Dispatcher;
use PHPUnit_Framework_MockObject_MockObject;
use Tests\TestCase;
class ProcessTranscribedTextTest extends TestCase
{
/**
* @var array
*/
private $transcribedText ... | 47,866 |
https://github.com/nickerso/libOmexMeta/blob/master/src/redland/RedlandWrapper/src/LibrdfNode.cpp | Github Open Source | Open Source | Apache-2.0 | null | libOmexMeta | nickerso | C++ | Code | 1,159 | 4,388 | //
// Created by Ciaran on 5/17/2020.
//
#include "redland/LibrdfNode.h"
/*
* todo put name of exception in all error messages.
*/
#include "redland/World.h"
namespace redland {
LibrdfNode::~LibrdfNode() {
if (node_) {
freeNode();
}
}
LibrdfNode::LibrdfNode(const LibrdfNo... | 29,924 |
https://github.com/tuanictu97/DrawBoard/blob/master/drawboard/src/main/java/com/king/drawboard/draw/DrawText.java | Github Open Source | Open Source | MIT | 2,022 | DrawBoard | tuanictu97 | Java | Code | 141 | 446 | package com.king.drawboard.draw;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.PointF;
import android.text.TextUtils;
/**
* @author <a href="mailto:jenly1314@gmail.com">Jenly</a>
*/
public class DrawText extends Draw {
Paint textPaint;
private String text;
pri... | 12,212 |
https://github.com/cc-rf/cc-fw/blob/master/fw/lib/kio/include/kio/uid.h | Github Open Source | Open Source | Apache-2.0 | null | cc-fw | cc-rf | C | Code | 86 | 346 | #pragma once
#include <usr/type.h>
#include <fsl_sim.h>
static inline u64 uid(void)
{
sim_uid_t sim_uid;
SIM_GetUniqueId(&sim_uid);
//TODO: Determine whether H is useful
//sim_uid.L ^= sim_uid.H;
sim_uid.ML ^= ~sim_uid.MH;
return sim_uid.L | ((u64)sim_uid.ML << 32);
}
static inline void u... | 55,663 |
https://github.com/xuziqii/my-ts-axios/blob/master/examples/load/app.ts | Github Open Source | Open Source | MIT | 2,020 | my-ts-axios | xuziqii | TypeScript | Code | 137 | 484 | import axios from '../../src'
import NProgress from 'nprogress'
import 'nprogress/nprogress.css';
import { create } from 'domain';
const instance = axios.create()
function calcLoadPercentage (loaded: number, total:number): number {
return Math.floor(loaded * 1.0 / total)
}
function handleNProgress () {
const s... | 30,861 |
https://github.com/formacionmf/crossdata-connector-oracle/blob/master/src/main/java/com/stratio/connector/oracle/statements/InsertIntoStatement.java | Github Open Source | Open Source | MIT | null | crossdata-connector-oracle | formacionmf | Java | Code | 222 | 726 | package com.stratio.connector.oracle.statements;
import com.stratio.connector.oracle.utils.ColumnInsertOracle;
import com.stratio.crossdata.common.metadata.ColumnType;
import com.stratio.crossdata.common.metadata.TableMetadata;
import com.stratio.crossdata.common.utils.StringUtils;
import java.util.ArrayList;
import ... | 11,075 |
https://github.com/atomixnmc/AtomBaseSDK/blob/master/CoreSuite/SceneViewer/src/main/java/sg/atom/sdk/core/viewer/ViewerSceneApplication.java | Github Open Source | Open Source | BSD-2-Clause | 2,015 | AtomBaseSDK | atomixnmc | Java | Code | 23 | 71 | package sg.atom.sdk.core.viewer;
import com.jme3.app.SimpleApplication;
/**
*
* @author FPS
*/
public class ViewerSceneApplication extends SimpleApplication {
@Override
public void simpleInitApp() {
}
}
| 8,478 |
https://github.com/jasnow/rdl/blob/master/lib/rdl/types/vararg.rb | Github Open Source | Open Source | BSD-3-Clause | 2,022 | rdl | jasnow | Ruby | Code | 187 | 549 | module RDL::Type
class VarargType < Type
attr_reader :type
@@cache = {}
class << self
alias :__new__ :new
end
def self.new(type)
t = @@cache[type]
return t if t
raise RuntimeError, "Attempt to create vararg type with non-type" unless type.is_a? Type
t = VarargType.... | 42,806 |
https://github.com/AlexeyPostika/Sklad/blob/master/Sklad_v1_001/HelperGlobal/Helper/Barcode/OneD/UPCADecoder.cs | Github Open Source | Open Source | BSD-2-Clause | 2,023 | Sklad | AlexeyPostika | C# | Code | 156 | 677 | // Decompiled with JetBrains decompiler
// Type: MessagingToolkit.Barcode.OneD.UPCADecoder
// Assembly: MessagingToolkit.Barcode, Version=1.7.0.1, Culture=neutral, PublicKeyToken=4d44dd7196d3c1ac
// MVID: DC7D3202-F545-437B-A4D5-5D45033281E1
// Assembly location: C:\Project\BarcodeTest\BarcodeTest\WpfApp1\DLL\Messagin... | 13,178 |
https://github.com/pamidur/q-rest/blob/master/samples/ODataSamples/Contexts/DBContext.cs | Github Open Source | Open Source | MIT | 2,023 | q-rest | pamidur | C# | Code | 167 | 497 | using Microsoft.EntityFrameworkCore;
using ODataSamples.Entities;
using System;
namespace ODataSamples.Contexts
{
public class DataContext : DbContext
{
public DataContext(DbContextOptions<DataContext> options) : base(options) { }
public DbSet<Customer> Customers { get; set; }
public ... | 38,004 |
https://github.com/ConnectBox/connectbox-pi/blob/master/ansible/plugins/mitogen-0.2.2/ansible_mitogen/plugins/connection/mitogen_local.py | Github Open Source | Open Source | MIT | 2,023 | connectbox-pi | ConnectBox | Python | Code | 405 | 854 | # Copyright 2017, David Wilson
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# 1. Redistributions of source code must retain the above copyright notice,
# this list of conditions and the following disclaimer.
#
# 2.... | 6,316 |
https://github.com/uber-web/probe.gl/blob/master/modules/test-utils/src/browser-automation/browser-driver.ts | Github Open Source | Open Source | MIT | 2,023 | probe.gl | uber-web | TypeScript | Code | 552 | 1,659 | // probe.gl, MIT license
import puppeteer, {Browser, Page} from 'puppeteer';
import ChildProcess from 'child_process';
import {COLOR, Log} from '@probe.gl/log';
import {getAvailablePort} from '../utils/process-utils';
export type BrowserDriverProps = {
id?: string;
};
type ServerInstance = {
url: string;
stop... | 17,153 |
https://github.com/zdimension/tdcompil/blob/master/TD7/tests/Makefile | Github Open Source | Open Source | MIT | null | tdcompil | zdimension | Makefile | Code | 203 | 694 | #
# Makefile -- Makefile for testing the Toy programming language
#
# Copyright © 2015-2018 Erick Gallesio - Polytech Nice-Sophia <eg@unice.fr>
#
# Author: Erick Gallesio [eg@unice.fr]
# Creation date: 24-Jun-2015 19:39 (eg)
# Last file update: 23-Nov-2018 12:51 (eg)
#
IGNORE = $(shell sed -e '/\#... | 25,958 |
https://github.com/scascketta/capmetricsd/blob/master/main.go | Github Open Source | Open Source | MIT | 2,016 | capmetricsd | scascketta | Go | Code | 310 | 1,046 | package main
import (
"fmt"
"github.com/urfave/cli"
"github.com/scascketta/capmetricsd/daemon"
"github.com/scascketta/capmetricsd/tools"
"log"
"os"
)
const (
DB_ENV = "CAPMETRICSDB"
GET_USAGE = "USAGE: capmetricsd get db dest min max"
START_USAGE = "USAGE: capmetricsd start -t target-url --db db-pa... | 5,829 |
https://github.com/BradipoCoder/OroPlatform/blob/master/src/Oro/Bundle/SecurityBundle/Request/ParamConverter/DoctrineParamConverter.php | Github Open Source | Open Source | MIT | 2,017 | OroPlatform | BradipoCoder | PHP | Code | 165 | 570 | <?php
namespace Oro\Bundle\SecurityBundle\Request\ParamConverter;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\Security\Core\Exception\AccessDeniedException;
use Doctrine\Common\Persistence\ManagerRegistry;
use Sensio\Bundle\FrameworkExtraBundle\Request\ParamConverter\DoctrineParamConverter a... | 36,954 |
https://github.com/garyttierney/secsp/blob/master/packages/libsecsp-syntax/src/lib.rs | Github Open Source | Open Source | MIT | 2,019 | secsp | garyttierney | Rust | Code | 64 | 190 | #![allow(unused)]
#![deny(unused_imports)]
extern crate itertools;
extern crate logos;
extern crate rowan;
extern crate secsp_parser;
extern crate secsp_syntax_derive;
extern crate smol_str;
extern crate text_unit;
pub use ast::SourceFile;
pub use parsing::Parse;
pub mod ast;
mod parsing;
mod token;
impl SourceFile... | 7,402 |
https://github.com/gonter/hyx-tools/blob/master/lib/ds/hyxdb/Makefile | Github Open Source | Open Source | BSD-3-Clause, BSD-2-Clause | 2,020 | hyx-tools | gonter | Makefile | Code | 64 | 230 | #
# FILE %ds/hyxdb/make-ux
#
# written: 1997-11-09
# latest update: 1999-05-08 9:39:15
#
# ----------------------------------------------------------------------------
CC=cc
OPTS=-I. -I/usr/local/include
# OPTS=-I. -O -pedantic -Wall -Wuninitialized -Wunused -Wshadow
LIB=../../libgg.a
all: lib
# --------------... | 44,213 |
https://github.com/TeamSPoon/CYC_JRTL_with_CommonLisp_OLD/blob/master/ansi-tests/fill-strings.lsp | Github Open Source | Open Source | Apache-2.0 | 2,020 | CYC_JRTL_with_CommonLisp_OLD | TeamSPoon | Common Lisp | Code | 72 | 278 | ;-*- Mode: Lisp -*-
;;;; Author: Paul Dietz
;;;; Created: Sat Aug 17 08:04:27 2002
;;;; Contains: Test cases for FILL on strings
(in-package :cl-test)
(deftest array-string-fill.1
(array-string-fill-test-fn "abcde" #\Z)
t "ZZZZZ")
(deftest array-string-fill.2
(array-string-fill-test-fn "abcde" #\Z :star... | 46,169 |
https://github.com/Wifsimster/discord-d-d/blob/master/src/commands/group.js | Github Open Source | Open Source | MIT | null | discord-d-d | Wifsimster | JavaScript | Code | 366 | 1,079 | const User = require('../models/user')
const Group = require('../models/group')
const { random } = require('../utils')
function getRandomGroupName() {
let list = [
'Nonsense',
'Knights in Shining Armor',
'Strong Bong',
'Clever Cats',
'Connected Souls',
'God\'s Favorites',
'Smoking ... | 28,230 |
https://github.com/jlmucb/cloudproxy/blob/master/go/apps/mixnet/directory.go | Github Open Source | Open Source | Apache-2.0 | 2,021 | cloudproxy | jlmucb | Go | Code | 812 | 2,407 | // Copyright (c) 2015, Google Inc. All rights reserved.
//
// 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 appli... | 2,648 |
https://github.com/Pagomio/pagomio-sdk-php/blob/master/beans/AuthorizePayment.php | Github Open Source | Open Source | MIT | 2,017 | pagomio-sdk-php | Pagomio | PHP | Code | 28 | 83 | <?php
namespace Pagomio;
class AuthorizePayment {
/**
* @var UserData
*/
public $userData;
/**
* @var PaymentData
*/
public $paymentData;
/**
* @var EnterpriseData
*/
public $enterpriseData;
} | 37,683 |
https://github.com/LightAPIs/free-export-bookmarks/blob/master/src/commons/tools.js | Github Open Source | Open Source | MIT | 2,022 | free-export-bookmarks | LightAPIs | JavaScript | Code | 701 | 2,285 | 'use strict';
/**
* Custom tools
*/
const tools = {
/**
* 防抖延时器值
*/
debounceTimer: null,
/**
* 防抖方法
* 1. 参考:https://github.com/mqyqingfeng/Blog/issues/22
* 2. 参考:https://blog.csdn.net/qq_32678401/article/details/81779274
* @param {Function} func 函数方法
* @param {Number} delay 延迟时间
* @par... | 23,598 |
https://github.com/zhouyong64/academiccoder/blob/master/oss/eblearn_1.2_r2631/tools/mobile/android/eblearn/jni/eblearntools/Android.mk | Github Open Source | Open Source | LicenseRef-scancode-warranty-disclaimer, BSD-2-Clause | 2,017 | academiccoder | zhouyong64 | Makefile | Code | 55 | 292 | include $(call all-subdir-makefiles)
LOCAL_PATH := $(call my-dir)
# libeblearn
include $(CLEAR_VARS)
LOCAL_LDLIBS := -lm -llog -ljnigraphics
LOCAL_MODULE := libeblearntools
SRC := ../../libeblearntools/src
LOCAL_C_INCLUDES := $(EBLEARNTOOLS)/include/ \
$(CORE)/libeblearn/include/ \
... | 326 |
https://github.com/alvin3721/oracle2mysql-1/blob/master/bin/oracle2mysql.js | Github Open Source | Open Source | Apache-2.0 | 2,018 | oracle2mysql-1 | alvin3721 | JavaScript | Code | 2,084 | 6,098 | //
// Conversion batch from Oracle to MySQL
//
var strSQLOracleListTables = 'SELECT * FROM dba_tables ORDER BY OWNER,TABLE_NAME'
var strSQLOracleInitRequest = 'ALTER SESSION SET NLS_DATE_FORMAT=\'YYYY-MM-DD HH24:MI:SS\''
var strSQLOracleSelectWhereClause = null
var objSQLSchemaMap = {in: '*', out: '*'}
var arrTables =... | 22,569 |
https://github.com/heydona/chatscript-tmlanguage/blob/master/.gitignore | Github Open Source | Open Source | MIT | 2,017 | chatscript-tmlanguage | heydona | Ignore List | Code | 7 | 30 | .DS_Store
Package Control.*
Preferences.*
*.swp
*.top
oscrypto-ca-bundle.crt | 15,348 |
https://github.com/jsoftware/j-playground/blob/master/jsrc/cp.c | Github Open Source | Open Source | MIT | 2,022 | j-playground | jsoftware | C | Code | 2,351 | 7,442 | /* Copyright 1990-2008, Jsoftware Inc. All rights reserved. */
/* Licensed use only. Any other use is in violation of copyright. */
/* */
/* Conjunctions: Power Operator ^: and Associates */
#includ... | 42,537 |
https://github.com/dimagi/logistics/blob/master/ex-submodules/rapidsms/lib/rapidsms/contrib/locations/settings.py | Github Open Source | Open Source | BSD-3-Clause | 2,023 | logistics | dimagi | Python | Code | 19 | 67 | #!/usr/bin/env python
# vim: ai ts=4 sts=4 et sw=4
from __future__ import unicode_literals
MAP_DEFAULT_LATITUDE = 40.726111
MAP_DEFAULT_LONGITUDE = -73.981389
| 15,346 |
https://github.com/emateu/react-typescript-monorepo/blob/master/packages/common/src/index.tsx | Github Open Source | Open Source | MIT | 2,018 | react-typescript-monorepo | emateu | TSX | Code | 16 | 29 | export { default as Example } from "./components/Example";
export { default as GlobalStyle } from "./components/GlobalStyle";
| 26,579 |
https://github.com/google-ar/chromium/blob/master/third_party/WebKit/LayoutTests/http/tests/xmlhttprequest/resources/access-control-response-with-expose-headers.php | Github Open Source | Open Source | Apache-2.0, BSD-3-Clause-No-Nuclear-License-2014, BSD-3-Clause | 2,022 | chromium | google-ar | PHP | Code | 16 | 91 | <?php
header("Access-control-max-age: 0");
header("Access-control-allow-origin: *");
header("X-foo: BAR");
header("X-TEST: TEST");
header("Access-Control-Expose-Headers: x-Foo");
header("Content-Type: text/html");
print "echo"
?>
| 33,889 |
https://github.com/huangqundl/af_stream/blob/master/src/net/epoll.hpp | Github Open Source | Open Source | Apache-2.0 | 2,022 | af_stream | huangqundl | C++ | Code | 275 | 700 | /*
Copyright (c) 2007-2013 Contributors as noted in the AUTHORS file
This file is part of 0MQ.
0MQ is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by
the Free Software Foundation; either version 3 of the License, or
... | 48,358 |
https://github.com/Meso-Health/meso-enrollment/blob/master/app/src/main/java/org/watsi/enrollment/flowstates/HouseholdFlowState.kt | Github Open Source | Open Source | Apache-2.0 | 2,021 | meso-enrollment | Meso-Health | Kotlin | Code | 108 | 507 | package org.watsi.enrollment.flowstates
import org.watsi.enrollment.domain.entities.AdministrativeDivision
import org.watsi.enrollment.domain.entities.EnrollmentPeriod
import org.watsi.enrollment.domain.entities.Household
import org.watsi.enrollment.domain.entities.HouseholdEnrollmentRecord
import org.watsi.enrollment... | 29,934 |
https://github.com/SwarmCorp/Swarmops/blob/master/Logic/Communications/CommunicationTurnarounds.cs | Github Open Source | Open Source | CC0-1.0, LicenseRef-scancode-public-domain | 2,014 | Swarmops | SwarmCorp | C# | Code | 57 | 251 | using System;
using System.Collections.Generic;
using System.Text;
using Swarmops.Basic.Types;
using Swarmops.Database;
using Swarmops.Logic.Structure;
using Swarmops.Logic.Support;
namespace Swarmops.Logic.Communications
{
public class CommunicationTurnarounds: PluralBase<CommunicationTurnarounds,CommunicationTur... | 41,779 |
https://github.com/Tmamasay/VTARenWuBao/blob/master/src/permission.ts | Github Open Source | Open Source | MIT | 2,019 | VTARenWuBao | Tmamasay | TypeScript | Code | 225 | 848 | import router from './router'
import NProgress from 'nprogress'
import 'nprogress/nprogress.css'
import { Message } from 'element-ui'
import { Route } from 'vue-router'
import { UserModule } from '@/store/modules/user'
import { PermissionModule } from '@/store/modules/permission'
import i18n from '@/lang' // Internatio... | 26,942 |
https://github.com/Cjen1/Hack-Cambridge-Ternary/blob/master/app/src/main/java/com/example/app/allergic/Event.java | Github Open Source | Open Source | Apache-2.0 | null | Hack-Cambridge-Ternary | Cjen1 | Java | Code | 24 | 62 | package com.example.app.allergic;
import java.time.Instant;
public abstract class Event {
public EventType type;
public Long time;
// public String serialise();
// public void deserialise();
}
| 55,770 |
https://github.com/Asiern/OpenMP/blob/master/Source/Makefile | Github Open Source | Open Source | MIT | null | OpenMP | Asiern | Makefile | Code | 64 | 208 | #Source files
SRC_s = gengroups_s.c fungg_s.c
SRC_p = gengroups_p.c fungg_p.c
#Compiler
CC = gcc
RM = rm -f
#Flags
FLAGS = -fopenmp -O2 -Wall -Wextra -Werror
NAME = genetics
all: $(NAME)_p $(NAME)_s
#Serial
$(NAME)_s : $(NAME)_s
$(CC) $(FLAGS) -o $(NAME)_s $(SRC_s) -lm
#Parallel
$(NAME)_p : $(NAME)_p
$(CC) $(FL... | 44,844 |
https://github.com/MassTransit/Machete/blob/master/src/Machete.HL7.Tests/TestSchema/XCNComponentMap.cs | Github Open Source | Open Source | Apache-2.0 | 2,018 | Machete | MassTransit | C# | Code | 118 | 431 | namespace Machete.HL7.Tests.TestSchema
{
public class XCNComponentMap :
HL7ComponentMap<XCNComponent, HL7Component>
{
public XCNComponentMap()
{
Value(x => x.IdNumber, 0);
Entity(x => x.FamilyName, 1);
Value(x => x.GivenName, 2);
Value(x =... | 18,975 |
https://github.com/Roman-Moiseenko/shop_yii/blob/master/frontend/controllers/auth/ResetController.php | Github Open Source | Open Source | BSD-3-Clause | null | shop_yii | Roman-Moiseenko | PHP | Code | 307 | 1,208 | <?php
namespace frontend\controllers\auth;
use shop\forms\auth\PasswordResetRequestForm;
use shop\forms\auth\ResendVerificationEmailForm;
use shop\forms\auth\ResetPasswordForm;
use shop\services\auth\PasswordResetService;
use Yii;
use yii\web\BadRequestHttpException;
use yii\web\Controller;
class ResetController e... | 54,341 |
https://github.com/uwitec/vue-gl/blob/master/src/materials/vgl-mesh-physical-material.js | Github Open Source | Open Source | MIT | 2,019 | vue-gl | uwitec | JavaScript | Code | 150 | 459 | import { MeshPhysicalMaterial } from 'three';
import VglMeshStandardMaterial from './vgl-mesh-standard-material';
import { number } from '../validators';
/**
* An extension of the mesh standard material that allows for greater control over reflectivity,
* corresponding [THREE.MeshPhysicalMaterial](https://threejs.or... | 37,572 |
https://github.com/fangcanqin/yigouv2/blob/master/blog/app/Http/Controllers/Admin/LoginController.php | Github Open Source | Open Source | MIT | 2,019 | yigouv2 | fangcanqin | PHP | Code | 100 | 495 | <?php
namespace App\Http\Controllers\Admin;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use App\Models\admin_users;
use Hash;
class LoginController extends Controller
{
/**
* 加载后台登录页面
* @return [type] [description]
*/
public function index()
{
return view('admi... | 45,395 |
https://github.com/hintmedia/rigse/blob/master/spec/libs/rspec_extensions_spec.rb | Github Open Source | Open Source | MIT | 2,018 | rigse | hintmedia | Ruby | Code | 296 | 832 | require File.expand_path('../../spec_helper', __FILE__)
describe "fails_in_themes" do
before (:all) do
@orig_theme = ApplicationController.get_theme
end
after (:all) do
ApplicationController.set_theme(@orig_theme)
end
it "should fail when there's no body" do
lambda {
fails_in_themes
}... | 17,862 |
https://github.com/kilmajster/ngrok-spring-boot-starter/blob/master/src/main/java/ngrok/os/NgrokSystemCommandExecutor.java | Github Open Source | Open Source | MIT, LicenseRef-scancode-warranty-disclaimer | 2,023 | ngrok-spring-boot-starter | kilmajster | Java | Code | 81 | 275 | package ngrok.os;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import ngrok.NgrokComponent;
import ngrok.configuration.NgrokConfiguration;
import ngrok.exception.NgrokCommandExecuteException;
import java.io.IOException;
@Slf4j
@NgrokComponent
@RequiredArgsConstructor
public class NgrokSys... | 45 |
https://github.com/bdxos/bdxui/blob/master/src/mixins/tag.js | Github Open Source | Open Source | Apache-2.0 | null | bdxui | bdxos | JavaScript | Code | 16 | 42 | export default {
props: {
tag: {
type: String,
default: 'div'
},
tagProps: Object
}
}
| 11,776 |
https://github.com/bnyf/Haiway/blob/master/framework/tests/test_signal_emitter.js | Github Open Source | Open Source | MPL-2.0, ISC, Apache-2.0, LicenseRef-scancode-public-domain, LicenseRef-scancode-warranty-disclaimer, BSD-3-Clause | 2,020 | Haiway | bnyf | JavaScript | Code | 51 | 115 | // Test Signal Emit
var val = 1;
var result = false;
function Lala() {
}
var foo = new Lala();
foo.on('up', function() { val+=99; });
foo.on('down', function(x) { val-=x; });
foo.emit('up');
foo.emit('down', 58);
// set result after a timeout - to allow the events time to execute
setTimeout("result = val==42;",1); | 42,409 |
https://github.com/fauziridwan1709/ristek_material_component/blob/master/lib/src/bases/_base.dart | Github Open Source | Open Source | MIT | 2,021 | ristek_material_component | fauziridwan1709 | Dart | Code | 36 | 234 | // Created by Muhamad Fauzi Ridwan on 07/11/21.
import 'dart:async';
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:ristek_material_component/ristek_material_component.dart';
import 'package:ristek_material_component/src/decorators/_decorators.dart';
import 'package:... | 20,050 |
https://github.com/zhanglong11/cim6d-three-app/blob/master/src/pages/board/videoMonitor/index.vue | Github Open Source | Open Source | MIT | 2,021 | cim6d-three-app | zhanglong11 | Vue | Code | 490 | 1,728 | <template>
<view class="wrap">
<video :src="videoUrl" :autoplay="true" controls></video>
<section class="container">
<ul class="collapse-wrap">
<li v-for="item in list" class="section">
<div class="title" @click="getChild(item, false)">
<span>{{ item.name }}</span>
... | 25,843 |
https://github.com/Konstantin8105/c2go-rating/blob/master/testdata/K-and-R-exercises-and-examples/06.05-self_referential_structures/e-6.3-cross.c | Github Open Source | Open Source | MIT | null | c2go-rating | Konstantin8105 | C | Code | 1,163 | 2,888 | /*Write a cross-referencer that prints a list of all words in a document, and, for
each word, a list of the line numbers on which it occurs. Remove noise words like
"the", "and," and so on.*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
/* no such thing as strdup, so let's write on... | 28,816 |
https://github.com/yuridmd26/trabalho-calculadora/blob/master/src/telas/Menu.java | Github Open Source | Open Source | Apache-2.0 | null | trabalho-calculadora | yuridmd26 | Java | Code | 190 | 1,061 | package telas;
import java.awt.EventQueue;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.WindowConstants;
import javax.swing.border.EmptyBorder;
import javax.swing.JButton;
import java.awt.Color;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
import java.awt.Font;
... | 55,352 |
https://github.com/Tbaut/tutorial-private-tx/blob/master/contracts/SSPermissionsComplex.sol | Github Open Source | Open Source | MIT | null | tutorial-private-tx | Tbaut | Solidity | Code | 104 | 258 | pragma solidity ^0.4.21;
contract SSPermissionsComplex {
mapping(bytes32 => address[]) public permissions;
event NewPermission(bytes32 documentID);
function SSPermissionsComplex(bytes32 docID, address[] users) public {
permissions[docID] = users;
emit NewPermission(docID);
}
fun... | 51,126 |
https://github.com/abdullahmehboob20s/Budz-web/blob/master/src/pages/TermsAndConditions/TermsAndConditions.js | Github Open Source | Open Source | MIT | null | Budz-web | abdullahmehboob20s | JavaScript | Code | 1,431 | 2,618 | import Footer from "layouts/Footer/Footer";
import Navbar from "layouts/Navbar/Navbar";
import React from "react";
import { Link, Wrapper } from "styles/globalStyles";
function TermsAndConditions() {
return (
<div>
<Navbar />
<Wrapper padding="50px 0">
<h1 className="fs-42px black weight-7 mb... | 42,324 |
https://github.com/jpnurmi/communi-desktop/blob/master/src/app/tree/treewidget.h | Github Open Source | Open Source | BSD-3-Clause | null | communi-desktop | jpnurmi | C | Code | 523 | 1,484 | /*
Copyright (C) 2008-2016 The Communi Project
You may use this file under the terms of BSD license as follows:
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 ab... | 48,318 |
https://github.com/doldecomp/pikmin/blob/master/src/plugPikiNakata/tekievent.cpp | Github Open Source | Open Source | Unlicense | 2,021 | pikmin | doldecomp | C++ | Code | 160 | 653 | #include "types.h"
#include "teki.h"
/*
* --INFO--
* Address: 8014A398
* Size: 000034
*/
TekiEvent::TekiEvent(int int_arg, Teki* teki_arg)
{
init(int_arg, teki_arg, nullptr);
/*
.loc_0x0:
mflr r0
li r6, 0
stw r0, 0x4(r1)
stwu r1, -0x20(r1)
stw r31, 0x1C(r1)
addi ... | 27,539 |
https://github.com/quietboil/sibyl/blob/master/src/session.rs | Github Open Source | Open Source | MIT | 2,021 | sibyl | quietboil | Rust | Code | 2,847 | 8,735 | //! User Session
#[cfg(feature="blocking")]
#[cfg_attr(docsrs, doc(cfg(feature="blocking")))]
mod blocking;
#[cfg(feature="nonblocking")]
#[cfg_attr(docsrs, doc(cfg(feature="nonblocking")))]
mod nonblocking;
use std::{sync::Arc, marker::PhantomData};
use crate::{Result, Environment, oci::*, types::Ctx};
#[cfg(featur... | 1,831 |
https://github.com/Olivier-Malige/project-RPG/blob/master/js/class/Player.js | Github Open Source | Open Source | MIT | 2,018 | project-RPG | Olivier-Malige | JavaScript | Code | 40 | 98 | /**
* Projet-RPG
* Created by Olivier Malige (Arknoid)
* Licensed under the MIT License.
*
* @class Player
*/
class Player extends Character {
constructor (obj) {
super(obj);
this.id = obj.id;
this.cardSize = 'tiny';
this.sectionId = '#playerSection';
}
}
| 30,385 |
https://github.com/ijasuja/RevIPQSW/blob/master/qca/src/qca-cnss-daemon/debug.h | Github Open Source | Open Source | BSD-3-Clause | 2,021 | RevIPQSW | ijasuja | C | Code | 270 | 1,045 | /*
* Copyright (c) 2014, 2017, 2019-2020 Qualcomm Technologies, Inc.
* All Rights Reserved.
* Confidential and Proprietary - Qualcomm Technologies, Inc.
*/
#ifndef __DEBUG_H
#define __DEBUG_H
#include <stdint.h>
#include <errno.h>
#include <string.h>
#include <pthread.h>
enum {
MSG_ERROR,
MSG_INFO,
MSG_DEBUG,... | 18,077 |
https://github.com/Rjected/cuda-timelock/blob/master/src/cudasquare.h | Github Open Source | Open Source | MIT | 2,019 | cuda-timelock | Rjected | C++ | Code | 27 | 88 | #pragma once
#include <gmp.h>
template<class params>
__host__ void launch_repeat_square(mpz_t* result, const uint64_t* a, const uint64_t* t, const mpz_t* N, const uint64_t len);
template<class params>
__global__ void kernel_repeat_square();
| 31,381 |
https://github.com/skolkaf/testing/blob/master/vendor/slevomat/csob-gateway/tests/unit/Call/Masterpass/StandardExtractRequestTest.php | Github Open Source | Open Source | MIT | 2,020 | testing | skolkaf | PHP | Code | 183 | 1,051 | <?php declare(strict_types = 1);
namespace SlevomatCsobGateway\Call\Masterpass;
use DateTimeImmutable;
use PHPUnit\Framework\TestCase;
use SlevomatCsobGateway\Api\ApiClient;
use SlevomatCsobGateway\Api\Response;
use SlevomatCsobGateway\Api\ResponseCode;
use SlevomatCsobGateway\Call\PaymentStatus;
use SlevomatCsobGate... | 23,267 |
https://github.com/SzymonGajdzica/courier-system/blob/master/src/main/java/pl/polsl/courier/system/models/Package.java | Github Open Source | Open Source | Apache-2.0 | null | courier-system | SzymonGajdzica | Java | Code | 92 | 321 | package pl.polsl.courier.system.models;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;
import java.u... | 1,795 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.