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/oleg-derevenetz/bwping/blob/master/src/cygwin.h
Github Open Source
Open Source
BSD-2-Clause
2,021
bwping
oleg-derevenetz
C
Code
325
1,443
#ifndef CYGWIN_H #define CYGWIN_H #ifndef ICMP_MINLEN #define ICMP_MINLEN 8 #endif #ifndef ICMP_ECHO #define ICMP_ECHO 8 #endif #ifndef ICMP_ECHOREPLY #define ICMP_ECHOREPLY 0 #endif struct icmp_ra_addr { u_int32_t ira_addr; u_int32_t ira_preference; } __attribute__((packed)); struct icmp { u_int8_t icm...
26,615
https://github.com/shlroland/rol-ui-vue3/blob/master/packages/style/components/select/_index.scss
Github Open Source
Open Source
MIT
2,021
rol-ui-vue3
shlroland
SCSS
Code
96
457
$select-border-color-hover: $border-hover !default; $select-disabled-border: $border-light !default; //fontSize||Font|1 $select-font-size: $font-size-base !default; $select-close-hover-color: $grey !default; $select-input-color: $grey-light !default; $select-multiple-input-color: #666 !default; // color||Color|0 $selec...
33,843
https://github.com/harshmittal2210/ELL/blob/master/tools/utilities/pythonlibs/add_sink.py
Github Open Source
Open Source
MIT
2,018
ELL
harshmittal2210
Python
Code
322
911
#!/usr/bin/env python3 ################################################################################################### ## ## Project: Embedded Learning Library (ELL) ## File: add_sink.py ## Authors: Chris Lovett ## ## Requires: Python 3.x ## ###############################################################...
42,118
https://github.com/keboola/db-extractor-informix/blob/master/tests/phpunit/Traits/InsertRowsTrait.php
Github Open Source
Open Source
MIT
null
db-extractor-informix
keboola
PHP
Code
173
526
<?php declare(strict_types=1); namespace Keboola\DbExtractor\Tests\Traits; use Throwable; use Keboola\DbExtractor\Adapter\Exception\OdbcException; use Keboola\DbExtractor\Extractor\QuoteIdentifierTrait; use Keboola\DbExtractor\Extractor\QuoteTrait; trait InsertRowsTrait { use QuoteTrait; use QuoteIdentifier...
17,349
https://github.com/Kailiangdong/hgail/blob/master/hgail/algos/hgail_impl.py
Github Open Source
Open Source
MIT
2,021
hgail
Kailiangdong
Python
Code
567
1,952
import numpy as np import os from rllab.misc.overrides import overrides from sandbox.rocky.tf.algos.batch_polopt import BatchPolopt import hgail.misc.utils class Level(object): def __init__( self, depth, algo, reward_handler, recognition_model=None, ...
32,029
https://github.com/DipshiGoyal/AngularXTAssignment/blob/master/src/styles.scss
Github Open Source
Open Source
MIT
null
AngularXTAssignment
DipshiGoyal
SCSS
Code
515
1,371
/* You can add global styles to this file, and also import other style files */ html { font-family: sans-serif; /* 1 */ -ms-text-size-adjust: 100%; /* 2 */ -webkit-text-size-adjust: 100%; /* 2 */ } /** * Remove default margin. */ body { margin: 0; } /* HTML5 display definitions ...
1,494
https://github.com/HansonZhu-bd/flink-remote-shuffle/blob/master/shuffle-transfer/src/main/java/com/alibaba/flink/shuffle/transfer/NettyConfig.java
Github Open Source
Open Source
Apache-2.0
2,022
flink-remote-shuffle
HansonZhu-bd
Java
Code
563
1,724
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
43,318
https://github.com/chanpan/Siriraj/blob/master/backend/modules/sections/views/file-management/_image-upload.php
Github Open Source
Open Source
BSD-3-Clause
null
Siriraj
chanpan
PHP
Code
241
1,035
<?php use yii\helpers\Html; use yii\helpers\Url; janpan\jn\assets\croppie\JCroppieAssets::register($this); $image = ''; ?> <div class="row"> <div class="col-md-4"> <div class="upload-msg"> <?= Html::img($model->file_thumbnail, ['id' => 'preview_icon', 'class' => 'img-rounded']) ?> ...
40,059
https://github.com/xiaoxiangfu/php_sample/blob/master/material/white/m150605_094805_demo_data.php
Github Open Source
Open Source
BSD-2-Clause
2,020
php_sample
xiaoxiangfu
PHP
Code
727
3,023
<?php use app\modules\image\models\Image; use app\modules\shop\models\Category; use app\modules\shop\models\Product; use app\models\PropertyGroup; use app\models\Property; use app\models\PropertyStaticValues; use app\models\Object; use app\models\ObjectStaticValues; use app\models\ObjectPropertyGroup; use app\models\P...
23,110
https://github.com/uchida/yamlfred/blob/master/tests/test_workflow.py
Github Open Source
Open Source
CC0-1.0
null
yamlfred
uchida
Python
Code
123
675
# -*- coding: utf-8 -*- import os.path from testfixtures import TempDirectory from yamlfred.utils import TemporaryDirectory from yamlfred.alfred_workflow import AlfredWorkflow def test_dump_empty_plist(): wf = AlfredWorkflow() with TempDirectory() as d: path = os.path.join(d.path, 'info.plist') ...
11,937
https://github.com/QuixomTech/WeatherStream/blob/master/app/src/main/java/com/quixom/apps/weatherstream/activity/SplashActivity.kt
Github Open Source
Open Source
Apache-2.0
2,021
WeatherStream
QuixomTech
Kotlin
Code
501
2,136
package com.quixom.apps.weatherstream.activity import android.annotation.SuppressLint import android.app.Activity import android.content.Context import android.content.Intent import android.content.pm.PackageManager import android.location.Location import android.location.LocationListener import android.location.Locat...
6,246
https://github.com/npezza93/actionerror/blob/master/lib/action_error/version.rb
Github Open Source
Open Source
MIT
null
actionerror
npezza93
Ruby
Code
9
35
# frozen_string_literal: true module ActionError VERSION = Gem::Version.new("0.1.0") end
15,326
https://github.com/thelong0705/nyauth/blob/master/spec/support/models/nyauth/confirmable.rb
Github Open Source
Open Source
MIT
null
nyauth
thelong0705
Ruby
Code
53
200
RSpec.shared_examples 'Nyauth::Confirmable' do |klass| let!(:instance) { create(klass.name.downcase.to_sym, :requested_confirmation) } describe '#confirm' do subject { instance.confirm } before { Timecop.freeze } after { Timecop.return } it do expect { subject }.to change(insta...
2,093
https://github.com/YYT23333/syncer/blob/master/syncer-core/src/main/java/com/github/zzt93/syncer/consumer/filter/impl/If.java
Github Open Source
Open Source
BSD-3-Clause
null
syncer
YYT23333
Java
Code
96
394
package com.github.zzt93.syncer.consumer.filter.impl; import com.github.zzt93.syncer.common.data.SyncData; import com.github.zzt93.syncer.config.consumer.filter.IfConfig; import com.github.zzt93.syncer.consumer.filter.ConditionalStatement; import com.github.zzt93.syncer.data.util.SyncFilter; import org.springframework...
11,462
https://github.com/Kava-Labs/_/blob/master/x/cdp/keeper/draw_test.go
Github Open Source
Open Source
Apache-2.0
2,019
_
Kava-Labs
Go
Code
476
2,631
package keeper_test import ( "errors" "testing" "time" "github.com/stretchr/testify/suite" sdk "github.com/cosmos/cosmos-sdk/types" tmproto "github.com/tendermint/tendermint/proto/tendermint/types" tmtime "github.com/tendermint/tendermint/types/time" "github.com/kava-labs/kava/app" "github.com/kava-labs/k...
32,879
https://github.com/Ju99ernaut/grapesjs-netlify/blob/master/src/styles.scss
Github Open Source
Open Source
MIT
2,021
grapesjs-netlify
Ju99ernaut
SCSS
Code
1,083
3,764
/* Class names prefixes */ $prefix: 'gjs-' !default; /* Netlify color */ $colorNetlify: #00ad9f; :root { --border-color: rgba(0, 0, 0, 0.15); --background-color: #3c4a49; --background-box-title: #263332; } .#{$prefix}mdl-dialog.#{$prefix}mdl-dialog-ntl { max-width: 1300px; margin-top: 45px; } .a...
39,813
https://github.com/kaihaan/therapyforhealth/blob/master/src/components/Nav/footer/footer.js
Github Open Source
Open Source
MIT
null
therapyforhealth
kaihaan
JavaScript
Code
36
93
import React from 'react' import { StyledFooter } from './footer.styled' import { Section, Contact } from '../..' const Footer = () => { return ( <StyledFooter> <Section background="dark"> <Contact></Contact> </Section> </StyledFooter> ) } export default...
23,999
https://github.com/teba-home/SmartThingsEdgeDrivers/blob/master/drivers/SmartThings/zwave-sensor/src/test/test_fibaro_door_window_sensor_1.lua
Github Open Source
Open Source
Apache-2.0
null
SmartThingsEdgeDrivers
teba-home
Lua
Code
876
3,823
-- Copyright 2022 SmartThings -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.apache.org/licenses/LICENSE-2.0 -- -- Unless required by applicable law or agreed to in ...
36,483
https://github.com/juancarax/portfolio/blob/master/src/components/contact-me/contact-me.component.js
Github Open Source
Open Source
RSA-MD
null
portfolio
juancarax
JavaScript
Code
167
712
import React, { useState } from "react" import "./contact-me.styles.scss" import ContactMeIllustration from "../../assets/contactme.svg" import axios from "axios" const ContactMeForm = () => { const [formState, setFormState] = useState({ email: "", name: "", message: "", }) const handleChange = e =>...
37,767
https://github.com/kdt3rd/gecko/blob/master/libs/image/plane_util.h
Github Open Source
Open Source
MIT
2,022
gecko
kdt3rd
C
Code
654
1,668
// SPDX-License-Identifier: MIT // Copyright contributors to the gecko project. #pragma once #include "plane.h" #include <algorithm> #include <base/compiler_support.h> #include <base/math_functions.h> //////////////////////////////////////// namespace image { template <typename P> GK_FORCE_INLINE typename P::value...
9,412
https://github.com/AJAskey/markettools/blob/master/src/net/ajaskey/market/tools/PercentInTD.java
Github Open Source
Open Source
Apache-2.0
null
markettools
AJAskey
Java
Code
313
1,196
package net.ajaskey.market.tools; import java.io.File; import java.io.FileWriter; import java.io.IOException; import java.io.PrintWriter; import java.text.NumberFormat; import java.text.SimpleDateFormat; import java.util.List; import net.ajaskey.common.DateTime; import net.ajaskey.market.optuma.PriceData; import net...
29,676
https://github.com/yoyostile/ruby-emoji-regex/blob/master/src/emoji_regex.rb
Github Open Source
Open Source
MIT
null
ruby-emoji-regex
yoyostile
Ruby
Code
77
187
module EmojiRegex # Matches emoji which present as emoji by default, and those which present as emoji when combined with `U+FE0F VARIATION SELECTOR-16`. # # "↔️" (U+2194,U+FE0F) is matched, but not "↔" (U+2194). Regex = /% emojiRegex %/ # Matches emoji which present as text by default (regardless of variatio...
134
https://github.com/computer-sec/ecome/blob/master/system/application/models/m_blog.php
Github Open Source
Open Source
MIT
null
ecome
computer-sec
PHP
Code
27
80
<?php defined('BASEPATH') or exit('No direct script access allowed'); class m_blog extends CI_Model { public function blog($limit, $start) { $query = $this->db->get('tbl_blog', $limit, $start); return $query; } }
19,341
https://github.com/JustinLove/sqrl_test/blob/master/lib/sqrl/test/account.rb
Github Open Source
Open Source
MIT
null
sqrl_test
JustinLove
Ruby
Code
120
412
require 'ostruct' require 'sqrl/base64' require 'sqrl/key/verify_unlock' module SQRL module Test class Account < OpenStruct def found?; true; end def locked? self[:suk] && self[:vuk] end def enabled? self[:status] != :disabled end def disabled? self[...
45,553
https://github.com/grialion/Modern-Utility/blob/master/src/main/java/net/minecraft/world/gen/feature/jigsaw/JigsawPiece.java
Github Open Source
Open Source
MIT
null
Modern-Utility
grialion
Java
Code
360
1,831
package net.minecraft.world.gen.feature.jigsaw; import com.mojang.datafixers.util.Either; import com.mojang.serialization.Codec; import com.mojang.serialization.codecs.RecordCodecBuilder; import java.util.List; import java.util.Random; import java.util.function.Function; import java.util.stream.Collectors; import java...
21,430
https://github.com/youmi/nativead/blob/master/YMNativeAdS-android/library/src/main/java/net/youmi/ads/base/download/model/IFileDownloadTask.java
Github Open Source
Open Source
MIT
2,021
nativead
youmi
Java
Code
23
113
package net.youmi.ads.base.download.model; import java.io.Serializable; /** * 下载任务的扩展对象,这样子就可以让让每个下载任务对象绑定一个自定义的对象 * * @author zhitao * @since 2017-04-14 15:33 */ public interface IFileDownloadTask extends Serializable { }
24,516
https://github.com/yagiz-efe/streetmerchant/blob/master/build/src/store/model/materiel.d.ts
Github Open Source
Open Source
MIT
2,022
streetmerchant
yagiz-efe
TypeScript
Code
11
19
import { Store } from './store'; export declare const Materiel: Store;
19,857
https://github.com/wodor/Opserver/blob/master/Opserver/Views/Shared/IssuesButton.cshtml
Github Open Source
Open Source
MIT
2,022
Opserver
wodor
C#
Code
25
125
@{ Layout = null; var issues = Issue.GetAll(); } @if (issues.Any()) { <ul class="nav navbar-nav"> <li> <a href="#/issues" class="js-issues-botton" data-count="@issues.Count.ToString()"><span class="badge alert-@issues.GetWorstStatus().RawClass()">@issues.Count.ToComma()</span></a> ...
151
https://github.com/katrotz/hackernews.katrotz.space/blob/master/api/services/SyncService.js
Github Open Source
Open Source
MIT
null
hackernews.katrotz.space
katrotz
JavaScript
Code
370
1,161
/* global sails, HackerNewsApi, Item */ const Rx = require('rxjs/Rx'); const _ = require('lodash'); /** * SyncService polls for hacker news updates and persists the delta into the database */ class SyncService { constructor() { /** * The Observable * @type {null} */ this.sync$ = null; /...
10,699
https://github.com/ljcservice/autumn/blob/master/src/main/java/com/ts/service/pdss/pdss/manager/IAntiDrugSecurityChecker.java
Github Open Source
Open Source
Apache-2.0
2,020
autumn
ljcservice
Java
Code
32
154
package com.ts.service.pdss.pdss.manager; import com.hitzd.his.Beans.TPatientOrder; import com.ts.entity.pdss.pdss.RSBeans.TDrugSecurityRslt; /** * 抗菌药物审核 * @author autumn * */ public interface IAntiDrugSecurityChecker { /** * 抗菌药物审核 * @param po * @return */ public TDrugSecurityRslt ...
10,219
https://github.com/x-ercise/.dotfiles/blob/master/homedir/.vscode/extensions/ms-vsliveshare.vsliveshare-0.3.790/out/src/debugger/adapterExecutableProvider.js
Github Open Source
Open Source
Vim, Ruby
2,018
.dotfiles
x-ercise
JavaScript
Code
221
586
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const vscode = require("vscode"); const path = require("path"); const util = require("../util"); const os = require("os"); const launcher_1 = require("../launcher"); /* Class helper to implement a custom DebugAdapterExecutable instance that wo...
5,869
https://github.com/PotatoParser/vinyl/blob/master/src/sass/404.scss
Github Open Source
Open Source
MIT
2,021
vinyl
PotatoParser
SCSS
Code
53
182
@import "utils/defaults"; body { width: 100vw; height: 100vh; overflow: hidden; @include background; margin: 0; } div { @include font(400, 60px); text-align: center; position: absolute; left: 50%; transform: translateX(-50%); overflow: hidden; padding: 25px 83px; border-radius: 10px; top: 25px; backgro...
35,918
https://github.com/howardking/rpcx/blob/master/server/jsonrpc2.go
Github Open Source
Open Source
Apache-2.0
null
rpcx
howardking
Go
Code
214
800
package server import ( "context" "encoding/json" "io/ioutil" "net" "net/http" "strings" "github.com/smallnest/rpcx/protocol" ) func (s *Server) jsonrpcHandler(w http.ResponseWriter, r *http.Request) { data, err := ioutil.ReadAll(r.Body) if err != nil { http.Error(w, err.Error(), http.StatusInternalServer...
24,891
https://github.com/captainko/vim-matchup/blob/master/test/issues/15/gc.vim
Github Open Source
Open Source
MIT
2,022
vim-matchup
captainko
null
Spoken
16
48
function! s:test() let l:str = "hello" return l:str endfunction if condition █call one() call two() endif
28,370
https://github.com/catmug/TARA-Server/blob/master/src/main/java/ee/ria/sso/service/smartid/SessionEndResult.java
Github Open Source
Open Source
Apache-2.0
2,021
TARA-Server
catmug
Java
Code
11
54
package ee.ria.sso.service.smartid; enum SessionEndResult { OK, USER_REFUSED, TIMEOUT, DOCUMENT_UNUSABLE, ; }
24,560
https://github.com/X547/xlibe/blob/master/xlib/GC.cpp
Github Open Source
Open Source
MIT
2,022
xlibe
X547
C++
Code
1,242
4,501
/* * Copyright 2003, Shibukawa Yoshiki. All rights reserved. * Copyright 2021, Haiku, Inc. All rights reserved. * Distributed under the terms of the MIT license. */ #include <interface/Region.h> #include <interface/Bitmap.h> #include <stdio.h> #include "Drawables.h" #include "Color.h" #include "Font.h" extern "C...
17,609
https://github.com/leftcoding/GankLy/blob/master/app/src/main/java/com/gank/gankly/ui/collect/CollectPresenter.java
Github Open Source
Open Source
Apache-2.0, Unlicense
2,021
GankLy
leftcoding
Java
Code
304
1,103
package com.gank.gankly.ui.collect; import android.support.annotation.NonNull; import com.gank.gankly.data.entity.UrlCollect; import com.gank.gankly.mvp.BasePresenter; import com.gank.gankly.mvp.source.LocalDataSource; import com.gank.gankly.utils.ListUtils; import com.socks.library.KLog; import java.util.List; imp...
12,972
https://github.com/justinphamnz/Metaverse-Network/blob/master/runtime/metaverse/src/benchmarking/utils.rs
Github Open Source
Open Source
Apache-2.0
null
Metaverse-Network
justinphamnz
Rust
Code
304
915
// This file is part of Acala. // Copyright (C) 2020-2022 Acala Foundation. // SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0 // 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 Fou...
35,876
https://github.com/Sonar-Studios/sonar-brushtool/blob/master/src/Core/Actions/SetStampOrientationCustom.lua
Github Open Source
Open Source
MIT
null
sonar-brushtool
Sonar-Studios
Lua
Code
14
43
local Action = require(script.Parent.Action) return Action("StampOrientationSet", function(custom) return { custom = custom } end)
42,307
https://github.com/Shubham707/cafetetarea/blob/master/application/views/manager/restaurant/index.php
Github Open Source
Open Source
MIT
null
cafetetarea
Shubham707
PHP
Code
262
1,299
<?php $this->load->view('include/admin_header');?> <?php $this->load->view('include/sidebar');?> <div class="content-wrapper"> <!-- Content Header (Page header) --> <!-- Main content --> <section class="content"> <div class="row"> <div class="col-xs-12"> <div cla...
21,620
https://github.com/mariofertc/Password-Manager/blob/master/app/Domains/User/Action/AuthCertificate.php
Github Open Source
Open Source
MIT
null
Password-Manager
mariofertc
PHP
Code
174
641
<?php declare(strict_types=1); namespace App\Domains\User\Action; use Illuminate\Support\Facades\Auth; use App\Exceptions\AuthenticationException; use App\Domains\User\Model\User as Model; use App\Domains\User\Service\Certificate\Check as CertificateCheck; class AuthCertificate extends ActionAbstract { /** ...
3,675
https://github.com/jordanlev/phorms/blob/master/Phorm/Type/File.class.php
Github Open Source
Open Source
MIT
2,015
phorms
jordanlev
PHP
Code
193
508
<?php if(!defined('PHORMS_ROOT')) { die('Phorms not loaded properly'); } /** * @package Phorms * @subpackage Types */ /** * Phorm_Type_File * * Record class for Phorm_Field_File data. * * @author Jeff Ober <jeffober@gmail.com> * @package Phorms * @subpackage Types * @see Phorm_Field_File */ class Phorm_Type...
41,764
https://github.com/rbramley/neo4j-graphql-java/blob/master/core/src/main/resources/lib_directives.graphql
Github Open Source
Open Source
Apache-2.0
2,022
neo4j-graphql-java
rbramley
null
Spoken
112
214
directive @relation(name:String, direction: RelationDirection = OUT, from: String = "from", to: String = "to") on FIELD_DEFINITION | OBJECT directive @cypher( # a cypher statement fields or top level queries and mutations. The current node is passed to the statement as `this` statement:String, # if true, passe...
41,315
https://github.com/haraphat01/restaurant/blob/master/src/contact.js
Github Open Source
Open Source
MIT
2,021
restaurant
haraphat01
JavaScript
Code
42
127
const contact = () => { const contact = document.createElement('div'); contact.classList.add('contact'); const hOne = document.createElement('h1'); hOne.innerHTML = 'You can reach us here on the line displayed below'; const pOne = document.createElement('p'); pOne.innerHTML = 2347037192459; contact.appen...
10,104
https://github.com/abramso/cloudify-plugins-common/blob/master/packaging/provision.sh
Github Open Source
Open Source
Apache-2.0
2,020
cloudify-plugins-common
abramso
Shell
Code
266
1,090
#!/bin/bash -e SUDO="" function print_plugins_params() { echo "## print common parameters" declare -A params=( ["PLUGIN_NAME"]=$PLUGIN_NAME ["PLUGIN_TAG_NAME"]=$PLUGIN_TAG_NAME \ ["PLUGIN_S3_FOLDER"]=$PLUGIN_S3_FOLDER ) for param in "${!params[@]}" do echo "$para...
23,381
https://github.com/GianlucaCandiotti/web-accessibility.eg/blob/master/app/routes.php
Github Open Source
Open Source
MIT
null
web-accessibility.eg
GianlucaCandiotti
PHP
Code
94
231
<?php /* |-------------------------------------------------------------------------- | Application Routes |-------------------------------------------------------------------------- | | Here is where you can register all of the routes for an application. | It's a breeze. Simply tell Laravel the URIs it should respond ...
2,531
https://github.com/kedevked/quickdraw/blob/master/client/index.ts
Github Open Source
Open Source
MIT
null
quickdraw
kedevked
TypeScript
Code
72
217
import { Prediction } from "./prediction"; import { Drawing } from "./drawing"; import { Doughnut } from "./doughnut"; const URL = 'ws://localhost:4000/test' const canvas: HTMLCanvasElement = document.getElementById('draw-canvas') as HTMLCanvasElement; const draw = new Drawing(canvas) const button = document.getElem...
43,533
https://github.com/KelvinDeveloper/protego/blob/master/resources/views/website/templates/creevee/services.blade.php
Github Open Source
Open Source
MIT
null
protego
KelvinDeveloper
PHP
Code
48
220
<section id="services"> <div class="container"> <div class="row"> <div class="col-lg-12 text-center"> <h2 class="section-heading">Serviços</h2> <hr class="primary"> </div> </div> </div> <div class="container"> <div class="row"> ...
7,153
https://github.com/laiwj/slxy/blob/master/server.js
Github Open Source
Open Source
MIT
null
slxy
laiwj
JavaScript
Code
78
326
var webpack = require('webpack'); var WebpackDevServer = require('webpack-dev-server'); var config = require('./webpack.config'); config.entry.unshift('webpack-dev-server/client?http://localhost:8090', "webpack/hot/dev-server"); config.plugins.push(new webpack.HotModuleReplacementPlugin()); //启动服务 var app = new Webpac...
7,285
https://github.com/sunivers/stupid-week/blob/master/2020/10/week4/minhyungPark/algorithm/Leetcode1625.kt
Github Open Source
Open Source
MIT
2,020
stupid-week
sunivers
Kotlin
Code
107
339
/** * Leetcode 1625. Lexicographically Smallest String After Applying Operations * https://leetcode.com/contest/weekly-contest-211/problems/lexicographically-smallest-string-after-applying-operations/ */ class Leetcode1625 { private val set = mutableSetOf<String>() fun findLexSmallestString(s: String, a: ...
46,319
https://github.com/thermatk/gh4a/blob/master/app/src/main/java/com/gh4a/widget/IntentSpan.java
Github Open Source
Open Source
Apache-2.0
2,018
gh4a
thermatk
Java
Code
69
248
package com.gh4a.widget; import android.content.Context; import android.content.Intent; import android.support.annotation.NonNull; import android.text.TextPaint; import android.text.style.ClickableSpan; import android.view.View; import com.gh4a.utils.UiUtils; public abstract class IntentSpan extends ClickableSpan { ...
21,839
https://github.com/HarvsG/rightmove_floorscraper/blob/master/package/rightmove_webscraper/__init__.py
Github Open Source
Open Source
MIT
null
rightmove_floorscraper
HarvsG
Python
Code
984
2,927
#!/usr/bin/env python3 # Dependencies from lxml import html, etree import requests import pandas as pd import datetime as dt class _GetDataFromURL(object): """This "private" class does all the heavy lifting of fetching data from the URL provided, and then returns data to the main `rightmove_data` class in...
37,853
https://github.com/sokolov11/resolve/blob/master/packages/core/resolve-query/src/view-model.js
Github Open Source
Open Source
MIT
null
resolve
sokolov11
JavaScript
Code
425
1,097
const createViewModel = ({ projection, eventStore, snapshotAdapter = null, invariantHash = null, serializeState }) => { const getKey = aggregateIds => Array.isArray(aggregateIds) ? aggregateIds.sort().join(',') : aggregateIds const viewMap = new Map() if ( (invariantHash == null || invariantHas...
46,143
https://github.com/Ctznkane525/KaneKidsBanking/blob/master/KaneKidsBanking.Web/Pages/Shared/_LoginPartial.cshtml
Github Open Source
Open Source
MIT
null
KaneKidsBanking
Ctznkane525
C#
Code
3
17
<ul class="navbar-nav"> </ul>
43,058
https://github.com/davjohns68/scratch/blob/master/src/scratch/D.java
Github Open Source
Open Source
MIT
null
scratch
davjohns68
Java
Code
54
94
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package scratch; /** * * @author davjohns */ public class D extends C { public void method2() { System.out.println("D 2...
2,598
https://github.com/Tiththa/hhvm/blob/master/hphp/test/slow/unserialize-invalid-dynamic-prop-name/slow-malformed.php
Github Open Source
Open Source
PHP-3.01, Zend-2.0
2,019
hhvm
Tiththa
PHP
Code
16
63
<?hh class A { public $a = 1; } // slow path: malformed private/protected name var_dump(unserialize('O:1:"A":1:{s:4:"'."\0".'bad";i:1;}'));
9,399
https://github.com/UbuntuEvangelist/contrail-controller/blob/master/src/discovery/disc_cassdb.py
Github Open Source
Open Source
Apache-2.0
null
contrail-controller
UbuntuEvangelist
Python
Code
1,248
4,547
# # Copyright (c) 2013 Juniper Networks, Inc. All rights reserved. # import re from cfgm_common import jsonutils as json import time import gevent import disc_consts import disc_exceptions from datetime import datetime from gevent.coros import BoundedSemaphore import pycassa import pycassa.util from pycassa.system_ma...
26,875
https://github.com/ari4325/logichain-backend/blob/master/app.js
Github Open Source
Open Source
Apache-2.0
null
logichain-backend
ari4325
JavaScript
Code
55
178
const express = require('express') const signIn = require('./routes/user_route'); const userContracts = require('./routes/userContracts'); const deployContract = require('./deploy_contract'); const port = process.env.PORT || 8080; const app = express(); app.use(express.urlencoded({ extended: true })); app.use(express...
44,687
https://github.com/molurin1/foam3/blob/master/src/foam/dao/FreezingDAO.js
Github Open Source
Open Source
ECL-2.0, Apache-2.0
2,022
foam3
molurin1
JavaScript
Code
98
364
/** * @license * Copyright 2019 The FOAM Authors. All Rights Reserved. * http://www.apache.org/licenses/LICENSE-2.0 */ foam.CLASS({ package: 'foam.dao', name: 'FreezingDAO', extends: 'foam.dao.ProxyDAO', javaImports: [ 'foam.core.Detachable', 'foam.core.FObject', 'foam.core.X', 'foam.mlang...
26,915
https://github.com/nhoxbypass/MyTwitter/blob/master/app/src/main/java/com/example/nhoxb/mysimpletwitter/data/remote/AppApiHelper.java
Github Open Source
Open Source
MIT
2,016
MyTwitter
nhoxbypass
Java
Code
164
643
package com.example.nhoxb.mysimpletwitter.data.remote; import android.content.Context; import com.loopj.android.http.AsyncHttpResponseHandler; /** * Created by tom on 7/2/18. */ public class AppApiHelper implements ApiHelper { private TwitterClient twitterClient; public AppApiHelper(Context context) { ...
13,671
https://github.com/austincarpenter/filament/blob/master/packages/tables/resources/views/components/empty-state/description.blade.php
Github Open Source
Open Source
MIT
2,022
filament
austincarpenter
PHP
Code
16
68
<p {{ $attributes->class([ 'text-sm font-medium text-gray-500 filament-tables-empty-state-description', 'dark:text-gray-400' => config('tables.dark_mode'), ]) }}> {{ $slot }} </p>
25,522
https://github.com/unclepis/iviewAdminDynamicRouter/blob/master/src/main.js
Github Open Source
Open Source
MIT
2,019
iviewAdminDynamicRouter
unclepis
JavaScript
Code
89
350
import Vue from 'vue'; import iView from 'iview'; import i18n from '@/locale' import { router } from './router/index'; import store from './store'; import App from './app.vue'; import util from '@/libs/util.js'; import BaiduMap from 'vue-baidu-map'; import hasPermission from '@/libs/hasPermission.js'; import 'iview/dis...
39,735
https://github.com/CospanDesign/nysa/blob/master/nysa/ibuilder/sim/gen_sim_makefile.py
Github Open Source
Open Source
MIT
2,022
nysa
CospanDesign
Python
Code
120
337
import sys import os import string import copy from string import Template sys.path.append(os.path.join(os.path.dirname(__file__), os.pardir)) import utils import xilinx_utils import cocotb_utils from gen import Gen class GenSimMakefile(Gen): def __init__(self): return def get_name (self): ...
23,410
https://github.com/Romamok/jspoon/blob/master/jspoon/src/test/java/pl/droidsonroids/jspoon/rule/CustomLocaleRule.java
Github Open Source
Open Source
MIT
2,022
jspoon
Romamok
Java
Code
46
170
package pl.droidsonroids.jspoon.rule; import java.util.Locale; import org.junit.rules.ExternalResource; public class CustomLocaleRule extends ExternalResource { private Locale customLocale; private Locale defaultLocale; public CustomLocaleRule(Locale customLocale) { this.customLocale = customLoca...
5,590
https://github.com/next1945/smw.github.io/blob/master/AppDemo/Pods/Headers/Public/NYSTK/NYSTK/UIViewController+NTK.h
Github Open Source
Open Source
MIT
2,019
smw.github.io
next1945
C
Code
61
168
// // UIViewController+NTK.h // NYSToolKit // // Created by 倪刚 on 2018/10/22. // Copyright © 2018 NiYongsheng. All rights reserved. // #import <UIKit/UIKit.h> NS_ASSUME_NONNULL_BEGIN @interface UIViewController (NTK) /** If YES, then when this view controller is pushed into a controller hierarchy with a naviga...
27,671
https://github.com/savannahcamp/RNN-PYNQ-1/blob/master/rnn/input_handling.py
Github Open Source
Open Source
BSD-3-Clause
2,021
RNN-PYNQ-1
savannahcamp
Python
Code
409
1,125
# Copyright (c) 2020, TU Kaiserslautern # Copyright (c) 2020, Xilinx, Inc. # All rights reserved. # # 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 abov...
5,998
https://github.com/wayele/express-handlebars/blob/master/views/layouts/main.handlebars
Github Open Source
Open Source
FTL, Info-ZIP
null
express-handlebars
wayele
null
Spoken
39
254
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Eat-da-burger!</title> <script src="https://code.jquery.com/jquery.js"></script> <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css" integrity="sha384-9aIt2nRpC12Uk9gS9baDl41...
20,708
https://github.com/nathan-andosen/verifyjs/blob/master/spec/in-browser/dist/spec.js
Github Open Source
Open Source
MIT
2,018
verifyjs
nathan-andosen
JavaScript
Code
6,035
20,335
/******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) { /******/ re...
13,061
https://github.com/codhab/support2/blob/master/app/models/support/attendance/ticket_category_step.rb
Github Open Source
Open Source
MIT
null
support2
codhab
Ruby
Code
20
84
require_dependency 'support/application_record' module Support module Attendance class TicketCategoryStep < ApplicationRecord self.table_name = 'sihab.attendance_ticket_category_steps' has_many :step_documents, foreign_key: :category_step_id end end end
25,167
https://github.com/ruganda/Population-Management-System/blob/master/server.js
Github Open Source
Open Source
MIT
null
Population-Management-System
ruganda
JavaScript
Code
58
178
import express from 'express' import chalk from 'chalk'; import models from './models/index'; import { bodyParser } from 'json-server'; import Routes from './routers' const port = process.env.PORT || 5000; const app = express(); app.use(bodyParser); app.use(Routes); app.get('/', (req, res)=>{ res.send("welcome to...
1,925
https://github.com/TheRakeshPurohit/CodingSpectator/blob/master/plug-ins/helios/org.eclipse.jdt.ui.tests.refactoring/resources/MoveInnerToTopLevel/test33/out/MoreInner.java
Github Open Source
Open Source
NCSA
2,021
CodingSpectator
TheRakeshPurohit
Java
Code
9
29
package p2; class MoreInner { { A.Inner.a++; } }
21,221
https://github.com/cucibaju123/aiu/blob/master/resources/views/matkul/add.blade.php
Github Open Source
Open Source
MIT
null
aiu
cucibaju123
PHP
Code
109
573
@extends('layouts.app') @section('content') <div class="main"> <div class="main-content"> <div class="container-fluid"> <div class="row"> <div class="col-md-12"> <!-- INPUTS --> <div class="panel"> <div class="panel-heading"> <h3...
24,689
https://github.com/trocco-io/embulk-filter-lambda/blob/master/lib/embulk/filter/lambda.rb
Github Open Source
Open Source
MIT
2,019
embulk-filter-lambda
trocco-io
Ruby
Code
197
808
require 'aws-sdk' require 'json' require 'jsonpath' module Embulk module Filter class Lambda < FilterPlugin Plugin.register_filter("lambda", self) MODE_APPEND = "append".freeze def self.transaction(config, in_schema, &control) # configuration code: task = { "aws_ac...
34,146
https://github.com/djungowski/jasmine-webinar/blob/master/spec/normale-asserts-spec.js
Github Open Source
Open Source
MIT
null
jasmine-webinar
djungowski
JavaScript
Code
180
782
describe('Test normaler asserts', function() { beforeEach(function() { this.library = new Library(); }); describe('Vergleich von Zahlenwerten', function() { beforeEach(function() { this.expected = this.library.returnNumberTwo(); }); it('has two equal values', f...
30,975
https://github.com/silentsignal/DirBustErl/blob/master/src/worker.erl
Github Open Source
Open Source
MIT
2,019
DirBustErl
silentsignal
Erlang
Code
187
706
-module(worker). -export([try_url/5, try_url_sync/3]). -include_lib("eunit/include/eunit.hrl"). -define(TRIES, 8). try_url(URL, Waiter, Headers, Params, FailCase) -> Response = try_url_sync(URL, Headers, Params), case lists:member(Response, FailCase) of true -> waiter:worker_finished(Waiter); false -> {Resu...
12,691
https://github.com/newtornmoses/Nva-kampala-online-shop-Back_End/blob/master/app/Blog.php
Github Open Source
Open Source
MIT
null
Nva-kampala-online-shop-Back_End
newtornmoses
PHP
Code
56
200
<?php namespace App; use Illuminate\Database\Eloquent\Model; class Post extends Model { protected $fillable= [ 'file', 'body', 'user_id', 'mime_type', 'slug']; public $with = ['user', 'comments', 'likes']; public function user() { return $this->belongsTo('App\User'); } public func...
32,028
https://github.com/ticketmaster/cloud-custodian/blob/master/tests/test_actions.py
Github Open Source
Open Source
Apache-2.0
null
cloud-custodian
ticketmaster
Python
Code
217
552
# Copyright 2016 Capital One Services, LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
3,761
https://github.com/tbm/pydoc-markdown/blob/master/src/pydoc_markdown/contrib/processors/filter.py
Github Open Source
Open Source
MIT
null
pydoc-markdown
tbm
Python
Code
345
745
# -*- coding: utf8 -*- # Copyright (c) 2019 Niklas Rosenstein # # 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, copy, mo...
45,835
https://github.com/TrampaAleksa/Space-Board-Game/blob/master/Assets/Board Game Assets/Scripts/Board Game/Tooltip/TextTooltip.cs
Github Open Source
Open Source
MIT
null
Space-Board-Game
TrampaAleksa
C#
Code
55
208
using UnityEngine; using UnityEngine.UI; [RequireComponent(typeof(Text))] public class TextTooltip : MonoBehaviour, ITooltipAction { protected Text tooltipTextComponent; protected Animator tooltipAnimator; public TooltipAnimationType defaultAnimationType; private void Start() { tooltipTex...
29,117
https://github.com/mashvp/mashvp-forms/blob/master/mashvp_forms.php
Github Open Source
Open Source
MIT
null
mashvp-forms
mashvp
PHP
Code
62
241
<?php /** * Plugin Name: Mashvp — Forms * Plugin URI: http://mashvp.com * Description: No-bullsh!t form plugin * Version: 0.2.1-beta.1 * Author: Mashvp * Author URI: http://mashvp.com * Text Domain: mashvp-forms * Domain Path: /languages */ defined('ABSPATH') or die(); if (defined('MASHVP_FORMS')) { err...
269
https://github.com/Scandinaf/TicTacToe/blob/master/src/test/scala/com/tictactoe/app/server/RoutesBaseScope.scala
Github Open Source
Open Source
Apache-2.0
null
TicTacToe
Scandinaf
Scala
Code
89
305
package com.tictactoe.app.server import cats.effect.IO import org.http4s._ import org.http4s.syntax.kleisli._ private[server] trait RoutesBaseScope { protected def sendRequest( uri: Uri, method: Method, headers: Headers = Headers.empty, routes: HttpRoutes[IO], ): IO[Response[IO]] = executeReq...
8,934
https://github.com/soloway2010/octoshell-v2/blob/master/engines/core/app/models/core/employment.rb
Github Open Source
Open Source
MIT
null
octoshell-v2
soloway2010
Ruby
Code
213
826
# encoding: utf-8 # == Schema Information # # Table name: core_employments # # id :integer not null, primary key # user_id :integer # organization_id :integer # primary :boolean # state :string(255) # created_a...
19,056
https://github.com/DefinityLabs/flue2ent/blob/master/core/src/test/java/org/definitylabs/flue2ent/element/list/ListItemElementTest.java
Github Open Source
Open Source
Apache-2.0
2,020
flue2ent
DefinityLabs
Java
Code
61
294
package org.definitylabs.flue2ent.element.list; import org.definitylabs.flue2ent.element.WebElementWrapper; import org.junit.Test; import org.junit.runner.RunWith; import org.mockito.runners.MockitoJUnitRunner; import org.openqa.selenium.WebElement; import static org.assertj.core.api.Assertions.assertThat; import sta...
31,752
https://github.com/ilanschnell/ndindex/blob/master/ndindex/tests/helpers.py
Github Open Source
Open Source
MIT
2,022
ndindex
ilanschnell
Python
Code
867
2,259
import sys from itertools import chain from functools import reduce from operator import mul from numpy import intp, bool_, array import numpy.testing from pytest import fail from hypothesis.strategies import (integers, none, one_of, lists, just, builds, shared, composite) from hyp...
14,994
https://github.com/raventid/coursera_learning/blob/master/haskell/will_kurt/15_rot.hs
Github Open Source
Open Source
MIT
2,019
coursera_learning
raventid
Haskell
Code
458
848
module ROT where data FourLettersAlphabet = L1 | L2 | L3 | L4 deriving (Show, Enum, Bounded) -- A couple of notes: -- `div` - one more time, 4 `div` 2 = 2 and 5 `div` 2 = 2 too. -- `mod` has a superpower btw, it allows you to rotate values -- inside some bounds like this: -- λ> 28 `mod` 4 -- 0 -- λ> 29 `mod` 4 -- 1 -...
4,579
https://github.com/yfung/tink/blob/master/testing/cross_language/json_test.py
Github Open Source
Open Source
Apache-2.0
2,022
tink
yfung
Python
Code
224
680
# Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
39,556
https://github.com/ladike/912_project/blob/master/6 复试/2 笔试/8 计算机系统结构/系统结构/hw/实验/Tomasulo/Tomasulo提交1/js/memory.js
Github Open Source
Open Source
MIT
2,021
912_project
ladike
JavaScript
Code
89
268
(function() { 'use strict'; function Memory(size) { this.data = new Array(size); this.size = size; for (var i = 0; i < this.data.length; ++i) { this.data[i] = i; } } Memory.prototype._check_addr = function(addr) { if (addr >= this.size || addr < 0) { throw new Error('[MEMORY] Invalid address "' + ...
5,159
https://github.com/shoveling-pig/Dynamize/blob/master/__tests__/findOne.test.js
Github Open Source
Open Source
MIT
2,021
Dynamize
shoveling-pig
JavaScript
Code
54
169
const { dynamize } = require('./dynamize'); const schema = require('../jest-dynamodb-config').tables[0]; test('findOne', async () => { dynamize.model('files', schema); const { Files: DB } = dynamize.models; await DB.put({ name: 'hello', date: '2019-10-01' }); expect(await DB.findOne({ name: 'hello', date: '2...
24,175
https://github.com/dev-gmmahs/block-vote-service/blob/master/src/app/client/src/views/Join.vue
Github Open Source
Open Source
MIT
2,020
block-vote-service
dev-gmmahs
Vue
Code
1,566
6,744
<template> <div id="join"> <div class="gradient-header"></div> <div class="panel"> <h2>회원가입</h2> <transition name="fade" mode="out-in"> <div v-if="view === 0" :key="1"> <p>이용약관</p> <div class="terms-area"> <h2>제 1 장 총칙 (임의 약관입니다)</h2> <br> ...
40,890
https://github.com/smartmeio/s4t-iotronic-webinterface/blob/master/application/views/management_files/network_management.php
Github Open Source
Open Source
Apache-2.0, MIT
null
s4t-iotronic-webinterface
smartmeio
PHP
Code
403
2,005
<!-- Copyright 2017-2019 Carmelo Romeo (carmelo.romeo85@gmail.com) Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law ...
32,284
https://github.com/XuQibin/STDPickerView/blob/master/STDPickerView/Classes/STDPickerView/STDAddressPickerView/STDAddress.h
Github Open Source
Open Source
MIT
2,021
STDPickerView
XuQibin
C
Code
63
198
// // STDAddress.h // STDPickerView // // Created by XuQibin on 2017/10/27. // Copyright © 2017年 Standards. All rights reserved. // #import <UIKit/UIKit.h> @interface STDAddressNode : NSObject @property (copy, nonatomic) NSString *ID; //区位码 @property (copy, nonatomic) NSString *name; @property (copy, nonatomic) ...
22,015
https://github.com/sanils2002/PYTHON-CODES/blob/master/Codes-B/method-override.py
Github Open Source
Open Source
MIT
null
PYTHON-CODES
sanils2002
Python
Code
22
65
class Parent: def ovr_method(self): print('This is in Parent Class') class Child(Parent): def ovr_method(self): print('This is in Child Class') c = Child() c.ovr_method()
34,469
https://github.com/E01D/Base/blob/master/src/E01D.Base.Clr.DotNet.Reflection.Methods.Api/Coding/Code/Exts/E01D/Base/Clr/DoNet/Reflection/MethodExts.cs
Github Open Source
Open Source
Apache-2.0
null
Base
E01D
C#
Code
73
275
using Root.Coding.Code.Domains.E01D; using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using System.Text; using System.Threading.Tasks; namespace Root.Coding.Code.Exts.E01D.Base.Clr.DoNet.Reflection { public static class MethodExts { public static MethodInfo G...
6,289
https://github.com/leibatt/ssb-tools/blob/master/setup/sqlite/load-ssb-data.py
Github Open Source
Open Source
BSD-3-Clause
null
ssb-tools
leibatt
Python
Code
790
2,775
import os import sys import sqlite3 import pandas import json def loadData(tableName,conn,csvfile,attributeNames): #print("loading",tableName) df = pandas.read_csv(csvfile,delimiter="|",header=None,usecols=list(range(len(attributeNames)))) #print(df.loc[[0]]) df.columns = attributeNames #print(df.loc[[0]]) ...
18,014
https://github.com/WhiteDeathFIN/hetekivi.com_php/blob/master/libs/xajax/tests/suite/server_events.php
Github Open Source
Open Source
Apache-2.0
null
hetekivi.com_php
WhiteDeathFIN
PHP
Code
204
777
<?php /* File: server_events.php Test script that uses <xajax->register> to register an event and some event handlers to process requests from the client. */ require_once("./options.inc.php"); require_once('./testScriptPlugin.inc.php'); function eventHandlerOne() { $objResponse = new xajaxResponse()...
45,988
https://github.com/TheWayToJunior/Offeror.TelegramBot/blob/master/src/Offeror.TelegramBot/Offeror.TelegramBot/Extensions/Extensions.cs
Github Open Source
Open Source
MIT
null
Offeror.TelegramBot
TheWayToJunior
C#
Code
90
257
using Telegram.Bot.Types; using Telegram.Bot.Types.Enums; namespace Offeror.TelegramBot.Extensions { public static class Extensions { public static long GetChatId(this Update update) => update?.Message?.Chat.Id ?? throw new ArgumentNullException(nameof(update.Message)); public sta...
5,804
https://github.com/pranshu28/recommendation_sys/blob/master/src/main/java/com/arango/spark/instacart/Test.java
Github Open Source
Open Source
Apache-2.0
null
recommendation_sys
pranshu28
Java
Code
731
2,961
package com.arango.spark.instacart; import java.util.ArrayList; import java.util.Collections; import java.util.Comparator; import java.util.HashMap; import java.util.List; import java.util.Map; import org.apache.spark.api.java.JavaPairRDD; import org.apache.spark.api.java.JavaSparkContext; import org.apache.spark.mll...
26,544
https://github.com/hexaflex/svm/blob/master/devices/errors.go
Github Open Source
Open Source
BSD-3-Clause
null
svm
hexaflex
Go
Code
83
165
package devices import "strings" // ErrorSet defines a list of one or more errors and is itself an error. type ErrorSet []error // Len returns the number of errors in the error set. func (e ErrorSet) Len() int { return len(e) } // Append adds errors to the set. func (e *ErrorSet) Append(args ...error) { *e = appe...
39,606
https://github.com/khongi/novus/blob/master/app/src/main/java/com/thiosin/novus/screens/web/WebViewState.kt
Github Open Source
Open Source
Apache-2.0
null
novus
khongi
Kotlin
Code
4
22
package com.thiosin.novus.screens.web object WebViewState
27,389
https://github.com/mewchu/react-starter-k/blob/master/src/features/user/components/UserCreate/index.tsx
Github Open Source
Open Source
MIT
null
react-starter-k
mewchu
TypeScript
Code
66
162
import React, { FC } from 'react'; import { openDialog } from 'app/store'; import Button from '@material-ui/core/Button'; import { noop } from 'lodash'; import { UserForm } from './UserForm'; export const UserCreate: FC = () => { return ( <Button variant="outlined" onClick={(): void => { open...
2,992