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/lukasherman/hazelcast-jet/blob/master/hazelcast-jet-core/src/test/java/com/hazelcast/jet/stream/FlatMapTest.java | Github Open Source | Open Source | Apache-2.0 | null | hazelcast-jet | lukasherman | Java | Code | 230 | 659 | /*
* Copyright (c) 2008-2018, Hazelcast, 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 ... | 3,765 |
https://github.com/hi-noikiy/wecha/blob/master/public/tp5/di 1 yue/yiyue2/3 14 22.php | Github Open Source | Open Source | MIT | 2,019 | wecha | hi-noikiy | PHP | Code | 19 | 122 | <?php
header('content-type:text/html;charset=utf-8');
$ming=$_POST['ming'];
$dan=$_POST['dan'];
$xing=$_POST['xing'];
$ren=$_POST['ren'];
?>
名称:<?php echo $ming?><br>
单价:<?php echo $dan?><br>
型号:<?php echo $xing?><br>
添加人:<?php echo $ren?>
| 8,462 |
https://github.com/reinerBa/rollup-plugin-sri/blob/master/test/script.test.ts | Github Open Source | Open Source | MIT | 2,022 | rollup-plugin-sri | reinerBa | TypeScript | Code | 402 | 1,476 | import { getHtml, emitAsset } from './util'
import { rollup } from 'rollup'
import { join } from 'path'
import sri from '../index'
process.chdir(join(__dirname, 'fixtures'));
describe('script', () => {
test('basic', async () => {
const bundle = await rollup({
input: '1.js',
plugins: [
emitAs... | 15,614 |
https://github.com/xavok/sccds-test/blob/master/assets/javascript/frontend-ajax.js | Github Open Source | Open Source | MIT | null | sccds-test | xavok | JavaScript | Code | 199 | 946 | jQuery(document).ready(function($) {
var $content = $('.ajax_posts');
var $loader = $('#more_posts button');
// var cat = $loader.data('category');
var $ppp = 10;
var $offset = $('.ajax_posts').find('article').length;
// console.log($offset);
$loader.on( 'click', bs_load_ajax_posts );
function bs_load_ajax_p... | 50,389 |
https://github.com/dogukanc760/HopTaksi-Mobile/blob/master/taksi/lib/kayit_ol.dart | Github Open Source | Open Source | MIT | null | HopTaksi-Mobile | dogukanc760 | Dart | Code | 1,411 | 5,224 | import 'dart:convert';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:shared_preferences/shared_preferences.dart';
import 'package:taksi/components/driver/profile.dart';
import 'package:taksi/driver/anasayfa_driver.dart';
import 'package:taksi/giris_yap.dart';
import '... | 12 |
https://github.com/Sapphirine/Object_Detection_With_Deep_Neural_Networks/blob/master/Visual_Search_Engine/cnnlibs/src/main/java/com/tzutalin/vision/visionrecognition/VisionClassifierCreator.java | Github Open Source | Open Source | Apache-2.0 | 2,017 | Object_Detection_With_Deep_Neural_Networks | Sapphirine | Java | Code | 331 | 1,005 | /*
* Copyright (C) 2015 TzuTaLin
*
* 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 wri... | 14,623 |
https://github.com/neeveresearch/nvx-training/blob/master/nvx-app-ccauth/nvx-app-ccauth-system/bin/perf4/killp | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-generic-cla, LicenseRef-scancode-unknown-license-reference | 2,019 | nvx-training | neeveresearch | Shell | Code | 32 | 167 | #!/bin/bash
names='customerservice-1a customerservice-2a customerservice-3a customerservice-4a customerservice-5a customerservice-6a customerservice-7a customerservice-8a customerservice-9a customerservice-10a'
for name in $names
do
pushd $name/nvx-app-ccauth-*
$JAVA_HOME_ORACLE_1_8_0/bin/java -Xms4g -Xmx4g -c... | 35,766 |
https://github.com/SandyUndefined/Zap-Tracker/blob/master/lib/dbhelper/dao/RunningDao.dart | Github Open Source | Open Source | MIT | null | Zap-Tracker | SandyUndefined | Dart | Code | 149 | 655 | import 'package:floor/floor.dart';
import 'package:run_tracker/dbhelper/datamodel/RunningData.dart';
@dao
abstract class RunningDao {
@Query('SELECT * FROM RunningData')
Future<List<RunningData>> getAllHistory();
@Query('SELECT * FROM RunningData ORDER BY id DESC LIMIT 3')
Future<List<RunningData>> findRecent... | 29,610 |
https://github.com/dasys-lab/cnc-turtlebots/blob/master/wumpus_simulator/include/model/GroundTile.h | Github Open Source | Open Source | MIT | null | cnc-turtlebots | dasys-lab | C | Code | 105 | 403 | /**
* Basic element of the field
*/
#ifndef INCLUDE_MODEL_GROUNDTILE_H_
#define INCLUDE_MODEL_GROUNDTILE_H_
#include <memory>
using namespace std;
namespace wumpus_simulator
{
class Movable;
class GroundTile
{
public:
GroundTile(int x, int y);
virtual ~GroundTile();
int getX();
int getY();
void setS... | 6,698 |
https://github.com/Dmitry-Eremeev/contrail-controller/blob/master/src/config/fabric-ansible/ansible-playbooks/filter_plugins/update_physical_router.py | Github Open Source | Open Source | Apache-2.0 | null | contrail-controller | Dmitry-Eremeev | Python | Code | 415 | 1,818 | #!/usr/bin/python
import json
import sys
import traceback
from filter_utils import _task_done, _task_error_log, _task_log, \
FilterLog
from vnc_api.exceptions import NoIdError
from job_manager.job_utils import JobVncApi
sys.path.append("/opt/contrail/fabric_ansible_playbooks/module_utils")
class FilterModule(... | 43,444 |
https://github.com/JRF-2018/jrf_semaphore/blob/master/jrf_semaphore.pl | Github Open Source | Open Source | ClArtistic | null | jrf_semaphore | JRF-2018 | Perl | Code | 775 | 2,526 | #!/usr/bin/perl
#require 5.008_003;
{ package main;
my $TS = 'Time-stamp: <2021-12-24T08:06:16Z>';
$TS =~ s/Time-stamp\:\s+<(.*)>/$1/;
my $AUTHOR = "JRF (http://jrf.cocolog-nifty.com/)";
our $VERSION = "0.18; jrf_semaphore.pl; last modified at $TS; by $AUTHOR";
our $DEBUG = 1;
}
## License:
##
## The autho... | 11,910 |
https://github.com/elirex/currency-demo-android/blob/master/app/src/main/java/com/elirex/currencydemo/ui/util/DebounceViewClickListener.kt | Github Open Source | Open Source | Apache-2.0 | null | currency-demo-android | elirex | Kotlin | Code | 63 | 191 | package com.elirex.currencydemo.ui.util
import android.os.SystemClock
import android.view.View
class DebounceViewClickListener(
private val timeMillis: Long = DEFAULT_TIME_MILLIS,
private val onDebounceClick: (View) -> Unit
) : View.OnClickListener {
companion object {
private const val DEFAULT_T... | 6,600 |
https://github.com/Pietervanhalem/Personal-Code-Examples/blob/master/Python/SQLAlchemy practise/multiple parents and childs.ipynb | Github Open Source | Open Source | MIT | 2,020 | Personal-Code-Examples | Pietervanhalem | Jupyter Notebook | Code | 2,940 | 14,439 | {
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"metadata": {},
"outputs": [],
"source": [
"import os\n",
" \n",
"from sqlalchemy import Column, DateTime, String, Integer, ForeignKey, func, create_engine, Sequence\n",
"from sqlalchemy.orm import relationship, backref, session... | 17,116 |
https://github.com/chin2km/halla/blob/master/halla-app/src/components/TextBox/style.less | Github Open Source | Open Source | MIT | 2,019 | halla | chin2km | Less | Code | 34 | 119 | .login-form {
width: 100%;
min-height: 400px;
background: #333;
border-radius: 3px;
overflow: hidden;
box-shadow: 2px 3px 7px 0px #111;
.content {
display: flex;
justify-content: space-around;
flex-direction: column;
align-items: center;
height: 240px;
padding-top: 40px;
}
}
| 32,220 |
https://github.com/tredfern/moonpie/blob/master/moonpie/logger_spec.lua | Github Open Source | Open Source | MIT | 2,021 | moonpie | tredfern | Lua | Code | 240 | 955 | -- Copyright (c) 2019 Redfern, Trevor <trevorredfern@gmail.com>
--
-- This software is released under the MIT License.
-- https://opensource.org/licenses/MIT
describe("Logger", function()
local logger = require "moonpie.logger"
before_each(function()
logger.clear()
end)
describe("basic log methods", func... | 43,570 |
https://github.com/chi-rei-den/Silverfish/blob/master/cards/TROLL/TRLA/Sim_TRLA_806e2.cs | Github Open Source | Open Source | MIT | 2,020 | Silverfish | chi-rei-den | C# | Code | 49 | 230 | /* _BEGIN_TEMPLATE_
{
"id": "TRLA_806e2",
"name": [
"神灵之怒",
"Wrath of the Loas"
],
"text": [
"<b>亡语</b>:消灭所有敌方<b>神龛</b>。",
"<b>Deathrattle</b>: Destroy all enemy <b>Shrines</b>."
],
"cardClass": "NEUTRAL",
"type": "ENCHANTMENT",
"cost": null,
"rarity": null,
"set": "TROLL",
"collec... | 28,762 |
https://github.com/marat-gainullin/platypus-js/blob/master/opc-da/src/main/java/com/eas/opc/da/DataType.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | platypus-js | marat-gainullin | Java | Code | 119 | 349 | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.eas.opc.da;
/**
*
* @author pk
*/
public enum DataType
{
DEFAULT((short) 0), NULL((short) 1), INT16((short) 2), INT32((short) 3),
FLOAT((short) 4), DOUBLE((short) 5), CY((short) 6), DATE((short) 7... | 46,003 |
https://github.com/NightOfTwelve/iOS-Cracked-Apps/blob/master/DumpedClasses/Taobao/TBLiveNetworkTrafficModelOut.h | Github Open Source | Open Source | MIT | 2,018 | iOS-Cracked-Apps | NightOfTwelve | Objective-C | Code | 79 | 283 | //
// Generated by class-dump 3.5 (64 bit).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard.
//
#import "TBJSONModel.h"
@class NSString;
@interface TBLiveNetworkTrafficModelOut : TBJSONModel
{
NSString *_isShowIcon;
NSString *_consumeBytes;
NSString *_showText;
... | 34,983 |
https://github.com/topfreegames/podium/blob/master/worker/expiration_worker.go | Github Open Source | Open Source | MIT | 2,023 | podium | topfreegames | Go | Code | 566 | 1,977 | // podium
// https://github.com/topfreegames/podium
// Licensed under the MIT license:
// http://www.opensource.org/licenses/mit-license
// Copyright © 2016 Top Free Games <backend@tfgco.com>
// Forked from
// https://github.com/dayvson/go-leaderboard
// Copyright © 2013 Maxwell Dayvson da Silva
package worker
import... | 14,685 |
https://github.com/kranzky/punk/blob/master/lib/punk/helpers/swagger.rb | Github Open Source | Open Source | Unlicense | null | punk | kranzky | Ruby | Code | 44 | 181 | # frozen_string_literal: true
class SwaggerRouteHandler < YARD::Handlers::Ruby::Base
handles method_call(:route)
namespace_only
process do
name = statement.parameters.first.jump(:tstring_content, :ident).source
object = YARD::CodeObjects::ClassObject.new(namespace, name)
register(object)
parse_bl... | 14,563 |
https://github.com/BramBrouwer/BattleShip-alweer/blob/master/js/Controllers/shipController.js | Github Open Source | Open Source | MIT | 2,016 | BattleShip-alweer | BramBrouwer | JavaScript | Code | 666 | 1,850 | function ShipController(input) {
var self = this;
var selectedShip;
var alpha = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j'];
var orientation = "horizontal";
var placedShips = [];
var currentGameID;
/*
Update list to show ships for setting up game
*/
self.updateShipList... | 32,469 |
https://github.com/nathan242/php-rtsp-client/blob/master/rtsp-test.php | Github Open Source | Open Source | MIT | 2,023 | php-rtsp-client | nathan242 | PHP | Code | 104 | 487 | <?php
require 'RtspClient.php';
require 'SdpData.php';
$url = "rtsp://127.0.0.1:8554/";
$test = new RtspClient("127.0.0.1", 8554);
echo "connect()\n";
$test->connect();
echo "OPTIONS\n";
print_r($test->request("OPTIONS", $url));
echo "RAW: \n";
echo $test->getRawResponse();
echo "DESCRIBE\n";
$desc = $test->request... | 54,847 |
https://github.com/lezzles11/OOP-Java-Pt-2/blob/master/week8-week8_11.BoxesAndThings/src/Main.java | Github Open Source | Open Source | MIT | null | OOP-Java-Pt-2 | lezzles11 | Java | Code | 61 | 115 | /*
* 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.
*/
/**
*
* @author lesleycheung
*/
public class Main {
public static void main(String[] args) {
Box box = new Box(5);
... | 45,227 |
https://github.com/RiccardoRiggi/dashboard-covid-italia/blob/master/frontend/src/app/giorno-specifico-nazione/giorno-specifico-nazione.component.spec.ts | Github Open Source | Open Source | MIT, CC-BY-4.0 | 2,021 | dashboard-covid-italia | RiccardoRiggi | TypeScript | Code | 55 | 211 | import { ComponentFixture, TestBed } from '@angular/core/testing';
import { GiornoSpecificoNazioneComponent } from './giorno-specifico-nazione.component';
describe('GiornoSpecificoNazioneComponent', () => {
let component: GiornoSpecificoNazioneComponent;
let fixture: ComponentFixture<GiornoSpecificoNazioneCompone... | 12,600 |
https://github.com/stropheum/D_Square_Engine/blob/master/D-Squared-Engine/source/Test.Library.Shared/EnqueueSubscriber.cpp | Github Open Source | Open Source | MIT | null | D_Square_Engine | stropheum | C++ | Code | 49 | 283 | #include "pch.h"
#include "EnqueueSubscriber.h"
#include "Event.h"
#include "EventQueue.h"
#include "GameTime.h"
using namespace Library;
EnqueueSubscriber::EnqueueSubscriber(Library::EventQueue& eventQueue, Library::GameTime& gametime, std::chrono::milliseconds delay) :
m_eventQueue(&eventQueue), m_gameTime(gam... | 41,100 |
https://github.com/DilvanLab/Decisioner/blob/master/grails-app/conf/logback.groovy | Github Open Source | Open Source | Apache-2.0 | 2,019 | Decisioner | DilvanLab | Groovy | Code | 164 | 376 | /*
* Copyright (c) 2015-2016 Dilvan Moreira.
* Copyright (c) 2015-2016 John Garavito.
*
* 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... | 4,955 |
https://github.com/terrygmk/coding/blob/master/misc/evansnetwork/data.raw | Github Open Source | Open Source | MIT | 2,021 | coding | terrygmk | Raw token data | Code | 99 | 3,054 | id|name|type|knownBy
tsinghua|清华|R||<h2>清华校友<em>tsinghua schoolmate</em></h2>
beihang|北航|R||<h2>北航师生<em>beihang</em></h2>
IT高管会|IT高管会|R||<h2>IT高管会<em></em></h2>
alibaba|阿里|R||<h2>阿里同事<em>alibaba colleague</em></h2>
zly|朱李叶|R||<h2>朱李叶同事<em>zly colleague</em></h2>
ericsson|Ericsson|R||<h2>Ericsson同事<em>Ericsson colleague... | 7,909 |
https://github.com/kad-simonm/dotwebstack-framework/blob/master/service/openapi/src/main/java/org/dotwebstack/framework/service/openapi/handler/OpenApiRequestHandler.java | Github Open Source | Open Source | MIT | 2,021 | dotwebstack-framework | kad-simonm | Java | Code | 93 | 449 | package org.dotwebstack.framework.service.openapi.handler;
import static org.dotwebstack.framework.core.helpers.ExceptionHelper.invalidConfigurationException;
import static org.springframework.web.reactive.function.BodyInserters.fromPublisher;
import com.fasterxml.jackson.databind.node.ObjectNode;
import com.fasterxm... | 54,673 |
https://github.com/JTOne123/CommonFoundation/blob/master/development/Beyova.Scheduling.Contract/Model/TimeBlockSize.cs | Github Open Source | Open Source | Apache-2.0 | 2,019 | CommonFoundation | JTOne123 | C# | Code | 445 | 1,198 | using System;
using System.Collections.Generic;
using Beyova.Diagnostic;
namespace Beyova.Scheduling
{
/// <summary>
/// Class TimeBlockSize
/// </summary>
public class TimeBlockSize
{
/// <summary>
/// The day minutes
/// </summary>
private const int dayMinutes = 2... | 22,816 |
https://github.com/ly-android/android-buddy/blob/master/android-buddy-plugin/src/main/java/com/likethesalad/android/buddy/modules/libraries/exceptions/DuplicateLibraryIdException.kt | Github Open Source | Open Source | MIT | 2,021 | android-buddy | ly-android | Kotlin | Code | 27 | 129 | package com.likethesalad.android.buddy.modules.libraries.exceptions
import com.likethesalad.android.common.base.AndroidBuddyException
import com.likethesalad.android.common.models.libinfo.AndroidBuddyLibraryInfo
class DuplicateLibraryIdException(
val id: String,
val librariesWithSameId: List<AndroidBuddyLibra... | 20,020 |
https://github.com/CKGrafico/hint/blob/master/packages/extension-browser/src/devtools/panel/views/pages/configuration.html.ts | Github Open Source | Open Source | Apache-2.0 | null | hint | CKGrafico | TypeScript | Code | 221 | 957 | import html from '../../../../shared/html-literal';
import headerView from '../partials/header';
import * as styles from './configuration.css';
type Props = {
categories: string[];
onAnalyzeClick: () => void;
onBrowsersListChange: () => void;
onResourcesChange: () => void;
onRestoreClick: () => v... | 3,905 |
https://github.com/mattb20/augur-ui/blob/master/src/modules/app/components/gas-price-edit/gas-price-edit.jsx | Github Open Source | Open Source | MIT | 2,018 | augur-ui | mattb20 | JavaScript | Code | 114 | 485 | import React, { Component } from "react";
import PropTypes from "prop-types";
import classNames from "classnames";
import { MODAL_GAS_PRICE } from "modules/modal/constants/modal-types";
import Styles from "modules/app/components/gas-price-edit/gas-price-edit.styles";
const STANDARD = "Standard";
export default class... | 38,812 |
https://github.com/experteer/grantprix/blob/master/spec/grantprix_spec.rb | Github Open Source | Open Source | MIT, LicenseRef-scancode-unknown-license-reference | 2,010 | grantprix | experteer | Ruby | Code | 343 | 955 | require File.expand_path( File.dirname(__FILE__) + '/spec_helper' )
describe 'Grantprix' do
describe 'Builder' do
before { @builder = Grantprix::Builder.new }
it 'should initialize with given :privileges' do
builder = Grantprix::Builder.new( 'select' )
builder.to_s.should == 'GRANT SELE... | 3,102 |
https://github.com/arturopala/akka-io-sctp/blob/master/src/main/scala/akka/io/SctpConnection.scala | Github Open Source | Open Source | Apache-2.0 | 2,020 | akka-io-sctp | arturopala | Scala | Code | 1,378 | 4,254 | package akka.io
import java.net.{ SocketException, InetSocketAddress }
import java.nio.channels.SelectionKey._
import java.io.{ FileInputStream, IOException }
import java.nio.channels.{ FileChannel }
import com.sun.nio.sctp.{ SctpChannel, HandlerResult, MessageInfo, SctpStandardSocketOptions, AbstractNotificationHandl... | 40,043 |
https://github.com/aquatir/code-samples/blob/master/code-sample-kotlin/code-sample-kotlin-basics/src/main/kotlin/codesample/kotlin/sandbox/classes/Generics.kt | Github Open Source | Open Source | MIT | 2,021 | code-samples | aquatir | Kotlin | Code | 226 | 621 | package codesample.kotlin.sandbox.classes
/**
* Basic generic example
*/
class GenericExample<T> (private val value: T) {
fun printT() {
println("Generic value is: $value")
}
}
/**
* "In" and "Out" examples
*/
open class TheTopClass (val value: String) {
override fun toString(): String {
... | 21,671 |
https://github.com/prikhi/smos/blob/master/smos-sync-client/.gitignore | Github Open Source | Open Source | MIT | 2,020 | smos | prikhi | Ignore List | Code | 3 | 17 | .stack-work/
smos-server.cabal
*~ | 13,105 |
https://github.com/DerivcoHK/setImmediate/blob/master/src/polifill/image.js | Github Open Source | Open Source | MIT | 2,016 | setImmediate | DerivcoHK | JavaScript | Code | 55 | 152 | var context = require('../context');
var Timer = require('../timer');
exports.init = function() {
var polifill = function() {
var handleId = Timer.create(arguments);
var img = new context.Image();
img.onload = img.onerror = Timer.wrap( Timer.run, handleId );
img.src = '';
r... | 9,997 |
https://github.com/pureartisan/mqtt-alarm-panel-ui/blob/master/src/app/components/Dashboard/ArmScreen/index.tsx | Github Open Source | Open Source | MIT | null | mqtt-alarm-panel-ui | pureartisan | TypeScript | Code | 117 | 328 | import React from 'react';
import { connect } from 'react-redux';
import { ReduxState } from '@app/redux/reducers';
import { ConfigService } from '@app/services/config';
import { ActionBar } from '../ActionBar';
import { VideoButton } from '../VideoButton';
import { SettingsButton } from '../SettingsButton';
import {... | 10,397 |
https://github.com/Minasamy823/DjangoReact-e-commerce/blob/master/frontend/node_modules/@stardust-ui/react/dist/commonjs/themes/teams/components/Icon/svg/ProcessedIcons/icons-website.js | Github Open Source | Open Source | MIT | 2,020 | DjangoReact-e-commerce | Minasamy823 | JavaScript | Code | 118 | 754 | "use strict";
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var React = _interopRequireWildcard(require("react"));
var _default = {
icon: function icon(_ref) {
var classes = _re... | 37,823 |
https://github.com/urlocaluwu/RocketPlugin/blob/master/source/RocketPlugin/GameModes/Tag.cpp | Github Open Source | Open Source | MIT | 2,022 | RocketPlugin | urlocaluwu | C++ | Code | 557 | 2,029 | // GameModes/Tag.cpp
// Tag others by bumping other and try to survive until the very end.
//
// Author: Stanbroek
// Version: 0.1.4 12/09/21
// BMSDK version: 95
#include "Tag.h"
/// <summary>Renders the available options for the game mode.</summary>
void Tag::RenderOptions()
{
ImGui::Checkbox("Ena... | 13,158 |
https://github.com/m4eba/hcloud-example/blob/master/etcd-patroni/make.inventory.sh | Github Open Source | Open Source | MIT | null | hcloud-example | m4eba | Shell | Code | 92 | 183 | echo "[server]" > inventory
cat vps.inventory >> inventory
echo "" >> inventory
echo "[etcd]" >> inventory
echo "vps1" >> inventory
echo "vps2" >> inventory
echo "vps3" >> inventory
echo "" >> inventory
echo "[patroni]" >> inventory
echo "vps1" >> inventory
echo "vps2" >> inventory
echo "vps3" >> inventory
echo "" >> i... | 3,437 |
https://github.com/snwagbata/Parabeac-Core/blob/master/lib/input/figma/entities/style/figma_border_options.dart | Github Open Source | Open Source | BSD-3-Clause | null | Parabeac-Core | snwagbata | Dart | Code | 44 | 248 | import 'package:parabeac_core/design_logic/pb_border_options.dart';
import 'package:json_annotation/json_annotation.dart';
import 'package:parabeac_core/input/figma/entities/style/figma_border.dart';
part 'figma_border_options.g.dart';
@JsonSerializable()
class FigmaBorderOptions implements PBBorderOptions {
@over... | 54,417 |
https://github.com/INOS-soft/pbi/blob/master/modules/net/heybuddy/pbi.conf | Github Open Source | Open Source | MIT | 2,021 | pbi | INOS-soft | Shell | Code | 55 | 299 | #!/bin/sh
# PBI Build Configuration
# -- Program Information --
PBI_PROGNAME="Heybuddy"
PBI_PROGWEB="http://www.jezra.net/projects/heybuddy"
PBI_PROGAUTHOR="navigium@grindcore.ch"
PBI_PROGICON="heybuddy.png"
# -- Port Information --
PBI_MAKEPORT="net/heybuddy"
PBI_MKPORTBEFORE=""
PBI_MKPORTAFTER=""
PBI_MAKEOPTS=""
#... | 44,716 |
https://github.com/mkovacek/cypress-for-everything/blob/master/examples/gmail/cypress/plugins/index.ts | Github Open Source | Open Source | MIT | 2,021 | cypress-for-everything | mkovacek | TypeScript | Code | 36 | 112 | import { gmailCheck, GmailCheckParam } from "./gmailCheck";
require("ts-node").register({
transpileOnly: true,
});
/**
* @type {Cypress.PluginConfig}
*/
module.exports = (on, config) => {
on("task", {
async gmailCheck(args: GmailCheckParam) {
return await gmailCheck(args);
},
});
return config... | 26,409 |
https://github.com/DonalJamesConneely/EE5115-Masters-Project_HLS-Terrain-Mapping/blob/master/Vivado-HLS-Demo/AXI-Lite-Example/Vivado-HLS-Files/mult.h | Github Open Source | Open Source | CNRI-Python | null | EE5115-Masters-Project_HLS-Terrain-Mapping | DonalJamesConneely | C | Code | 14 | 48 | #ifndef __MULT_H__
#define __MULT_H__
#include <stdio.h>
void mult(int A, int B, int *C);
#endif
| 42,428 |
https://github.com/capeanalytics/pythonflow/blob/master/tests/test_pfmq.py | Github Open Source | Open Source | Apache-2.0 | null | pythonflow | capeanalytics | Python | Code | 358 | 1,273 | from __future__ import division
import time
import random
import uuid
import pytest
import six
import pythonflow as pf
from pythonflow import pfmq
@pytest.fixture
def backend_address():
return 'inproc://{}'.format(uuid.uuid4().hex)
@pytest.fixture
def broker(backend_address):
b = pfmq.Broker(backend_address... | 29,928 |
https://github.com/Constructor-io/constructorio-client-swift/blob/master/AutocompleteClientTests/FW/API/Error/ErrorTests.swift | Github Open Source | Open Source | MIT | 2,023 | constructorio-client-swift | Constructor-io | Swift | Code | 57 | 250 | //
// ErrorTests.swift
// AutocompleteClientTests
//
// Copyright © Constructor.io. All rights reserved.
// http://constructor.io/
//
@testable import ConstructorAutocomplete
import XCTest
class ErrorTests: XCTestCase {
func testUnknownErrorHasCorrectCode() {
XCTAssertEqual(NSError.unknownError().cod... | 18,088 |
https://github.com/q513718201/eyaekuangji/blob/master/app/src/main/java/com/hazz/kuangji/ui/activity/SignRecordActivity.kt | Github Open Source | Open Source | Apache-2.0 | 2,020 | eyaekuangji | q513718201 | Kotlin | Code | 132 | 776 | package com.hazz.kuangji.ui.activity
import androidx.appcompat.widget.Toolbar
import androidx.recyclerview.widget.LinearLayoutManager
import com.hazz.kuangji.R
import com.hazz.kuangji.base.BaseActivity
import com.hazz.kuangji.mvp.contract.LoginContract
import com.hazz.kuangji.mvp.model.Xieyi
import com.hazz.kuangji.mv... | 37,590 |
https://github.com/romaintailhurat/Trevas/blob/master/vtl-model/src/main/java/fr/insee/vtl/model/ListExpression.java | Github Open Source | Open Source | MIT | 2,022 | Trevas | romaintailhurat | Java | Code | 139 | 325 | package fr.insee.vtl.model;
import java.util.Collection;
import java.util.List;
import java.util.Map;
/**
* The <code>ListExpression</code> class is an abstract representation of an expression of type <code>List</code>.
*/
public abstract class ListExpression implements ResolvableExpression, TypedContainerExpressio... | 7,523 |
https://github.com/zealoussnow/chromium/blob/master/ui/events/ozone/evdev/explain_proc_bus_input_devices.py | Github Open Source | Open Source | BSD-3-Clause-No-Nuclear-License-2014, BSD-3-Clause | 2,022 | chromium | zealoussnow | Python | Code | 334 | 1,350 | #!/usr/bin/env python
# Copyright 2015 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Explain device capabilities from /proc/bus/input/devices.
This tool processes the contents of /proc/bus/input/devices, expanding bi... | 51,951 |
https://github.com/espen/action_access/blob/master/test/controllers/articles_controller_test.rb | Github Open Source | Open Source | MIT | 2,021 | action_access | espen | Ruby | Code | 229 | 549 | require 'test_helper'
class ArticlesControllerTest < ActionController::TestCase
test "accesses with no clearance level get redirected" do
# Undefined role
get :new
assert_redirected_to root_url
post :create
assert_redirected_to root_url
end
test "accesses with undefined clearance level get ... | 2,474 |
https://github.com/sonagi784/type-challenges-answer/blob/master/questions/3057-easy-push/template.ts | Github Open Source | Open Source | MIT | null | type-challenges-answer | sonagi784 | TypeScript | Code | 8 | 20 | type Push<T extends any[], U> = [...T, U]
| 18,425 |
https://github.com/nobuyuki83/delfem2/blob/master/include/delfem2/vec2.h | Github Open Source | Open Source | MIT | 2,022 | delfem2 | nobuyuki83 | C++ | Code | 1,112 | 3,282 | /*
* Copyright (c) 2019 Nobuyuki Umetani
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
/**
* @detail The order of dependency in delfem2 is "vec2 -> mat2 -> vec3 -> quaternion -> mat3 -> mat4",
*/
#ifndef DFM2_VEC2_H
#define DFM2... | 7,102 |
https://github.com/zhuzhenping/go_ctp/blob/master/callback.go | Github Open Source | Open Source | MIT | 2,022 | go_ctp | zhuzhenping | Go | Code | 73 | 323 | package goctp
// 公共-连接
type OnFrontConnectedType func()
// 公共-断开
type OnFrontDisConnectedType func(reason int)
// 公共-登录
type OnRspUserLoginType func(loginField *RspUserLoginField, info *RspInfoField)
// 行情
type OnTickType func(tick *TickField)
// 交易-委托响应
type OnRtnOrderType func(field *OrderField)
// 交易-错误委托
type... | 16,145 |
https://github.com/gumutianqi/helloworld/blob/master/pom.xml | Github Open Source | Open Source | Apache-2.0 | 2,019 | helloworld | gumutianqi | null | Spoken | 126 | 1,499 | <?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.larry</groupId>
<artifa... | 22,837 |
https://github.com/cdli-gh/mtaac_cdli_ur3_corpus/blob/master/ur3_corpus_data/annotated/comm_conll/P330/P330587.conll | Github Open Source | Open Source | CC0-1.0, LicenseRef-scancode-public-domain | 2,022 | mtaac_cdli_ur3_corpus | cdli-gh | null | Spoken | 177 | 549 | #new_text=P330587
FORM SEGM XPOSTAG XPOSTAG POS ? ? ? ? ? ?
1(gesz2) 1(gesz)[sixty] NU NU D B-COUNT _ 108 cardinal _ 108
5(u) 5(u)[ten] NU NU D I-COUNT * * * * *
la2 la[hang][-ø] V NF.V.ABS D I-COUNT * * * * *
2(disz) 2(disz)[one] NU NU D I-COUNT * * * * *
gu4 gud[ox] N N D B-COM _ _ _ _ _
ab2 ab[cow][-ø] N N D _ ... | 45,083 |
https://github.com/Azure/azure-powershell/blob/master/src/ResourceGraph/ResourceGraph.Autorest/test/New-AzResourceGraphQuery.Tests.ps1 | Github Open Source | Open Source | LicenseRef-scancode-warranty-disclaimer, MIT, Apache-2.0 | 2,023 | azure-powershell | Azure | PowerShell | Code | 115 | 380 | $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1'
if (-Not (Test-Path -Path $loadEnvPath)) {
$loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1'
}
. ($loadEnvPath)
$TestRecordingFile = Join-Path $PSScriptRoot 'New-AzResourceGraphQuery.Recording.json'
$currentPath = $PSScriptRoot
while(-not $mockingPath) {
... | 25,269 |
https://github.com/fralonra/quakka-quakka/blob/master/components/AddKit.js | Github Open Source | Open Source | MIT | null | quakka-quakka | fralonra | JavaScript | Code | 92 | 309 | import React, { Component } from 'react'
import PropTypes from 'prop-types'
class AddKit extends Component {
handleAdd () {
}
render () {
const { size, color, style } = this.props
return (
<div style={style} className="button-wrapper" onClick={e => this.handleAdd()}>
<svg
xm... | 16,196 |
https://github.com/BugSwarm/bugswarm/blob/master/github-reproducer/reproducer/resources/evaluate_expressions.py | Github Open Source | Open Source | BSD-3-Clause | 2,023 | bugswarm | BugSwarm | Python | Code | 639 | 2,093 | #!/usr/bin/python3
import hashlib
import json
import math
import operator
import os
import re
import sys
from pathlib import Path
class Token:
"""Small helper class to help with typing."""
def __init__(self, kind, val):
self.kind = kind
self.val = val
def __repr__(self):
return ... | 35,886 |
https://github.com/palmin/GitHawk/blob/master/Pods/Tabman/Sources/Tabman/TabmanBar/Components/Separator/SeparatorHeight.swift | Github Open Source | Open Source | MIT | 2,018 | GitHawk | palmin | Swift | Code | 109 | 243 | //
// SeparatorHeight.swift
// Tabman
//
// Created by Merrick Sapsford on 02/04/2018.
// Copyright © 2018 UI At Six. All rights reserved.
//
import UIKit
/// Height for separator view.
///
/// - thin: 0.5 pt
/// - medium: 1.5 pt
/// - thick: 3.0 pt
/// - custom: Custom specified height.
public enum SeparatorHeig... | 38,114 |
https://github.com/zeon-soft/suivie-des-placements-publicitaire2/blob/master/resources/views/commerce/components/cafe_restaurant_fast_food.blade.php | Github Open Source | Open Source | MIT | null | suivie-des-placements-publicitaire2 | zeon-soft | PHP | Code | 258 | 1,380 | <div class="form-layout">
<div class="row mg-b-25">
<div class="col-lg-3">
<div class="form-group">
<label class="form-control-label">Nombre de places assises : <span
class="tx-danger">*</span></label>
<input class="form-control" type="tex... | 5,283 |
https://github.com/S-117-John/zebone/blob/master/modules/quality/src/main/java/com/zebone/quality/modules/avr/entity/QualityAvr.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | zebone | S-117-John | Java | Code | 5,324 | 36,281 | /**
* Copyright (c) 2013-Now http://jeesite.com All rights reserved.
*/
package com.zebone.quality.modules.avr.entity;
import org.hibernate.validator.constraints.Length;
import java.util.Date;
import com.jeesite.common.mybatis.annotation.JoinTable;
import com.jeesite.common.mybatis.annotation.JoinTable.Type;
import ... | 29,279 |
https://github.com/nagyistoce/whitenoise-mac-app/blob/master/.gitignore | Github Open Source | Open Source | MIT | 2,011 | whitenoise-mac-app | nagyistoce | Ignore List | Code | 5 | 24 | build
*.pbxuser
*.mode1v3
.DS_Store
**/tmp/*
| 12,194 |
https://github.com/DimitarGaydardzhiev/TelerikAcademy/blob/master/01. C# Part 1/05. Conditional-Statements/09.PlayWithIntDoubleAndString/PlayWithIntDoubleAndString.cs | Github Open Source | Open Source | MIT | null | TelerikAcademy | DimitarGaydardzhiev | C# | Code | 188 | 485 |
//Problem 9. Play with Int, Double and String
//Write a program that, depending on the user’s choice, inputs an int , double or string variable.
//◦ If the variable is int or double , the program increases it by one.
//◦ If the variable is a string , the program appends * at the end.
//• Print the result ... | 8,051 |
https://github.com/insighted4/siconv/blob/master/debian/etc/systemd/system/siconv.service | Github Open Source | Open Source | MIT | 2,018 | siconv | insighted4 | null | Spoken | 44 | 277 | [Unit]
Description=SICONV API
After=docker.service
[Service]
Restart=always
EnvironmentFile=/etc/siconv/siconv.cfg
# ExecStartPre=/usr/bin/docker kill siconv-service
# ExecStartPre=/usr/bin/docker rm siconv-service
ExecStartPre=/usr/bin/docker pull insighted4/siconv
# ExecStartPre=/usr/bin/docker rm siconv-service
Exe... | 22,320 |
https://github.com/mahula/tdme2/blob/master/src/tdme/gui/renderer/GUIShader.h | Github Open Source | Open Source | BSD-3-Clause | null | tdme2 | mahula | C | Code | 160 | 454 | #pragma once
#include <tdme/tdme.h>
#include <tdme/engine/subsystems/renderer/fwd-tdme.h>
#include <tdme/gui/renderer/fwd-tdme.h>
using tdme::engine::subsystems::renderer::Renderer;
/**
* GUI shader
* @author Andreas Drewke
* @version $Id$
*/
class tdme::gui::renderer::GUIShader final
{
private:
Renderer* ren... | 25,160 |
https://github.com/cythilya/Code_Snippets/blob/master/ui/accordion_201308121733/js/script.js | Github Open Source | Open Source | MIT | null | Code_Snippets | cythilya | JavaScript | Code | 121 | 560 | (function($) {
$.fn.dropdown = function(opts) {
// default configuration
var config = $.extend({}, {
'type': null //showType:slide,easeOutBounce,不填則為預設值show/hide
}, opts);
// main function
function init(obj) {
var dAccordion = obj;
var dHeader = dAccordion.find('.j... | 53,112 |
https://github.com/can-z/pickup/blob/master/client/src/components/AppointmentTable.js | Github Open Source | Open Source | MIT | null | pickup | can-z | JavaScript | Code | 129 | 481 | import FETCH_APPOINTMENTS from "./fetchAppointments";
import React from "react";
import moment from "moment";
import { useHistory } from "react-router-dom";
import { useQuery } from "@apollo/client";
const AppointmentTable = () => {
const history = useHistory();
const goToEditAppointmentPage = (id) => {
histor... | 27,516 |
https://github.com/emuhedo/diztl/blob/master/diztl/diztl.proto | Github Open Source | Open Source | CC-BY-3.0, MIT | 2,019 | diztl | emuhedo | null | Spoken | 126 | 262 | syntax = "proto3";
service DiztlService {
rpc Search (SearchRequest) returns (SearchResponse) {
}
rpc Upload (DownloadRequest) returns (stream FileChunk) {
}
}
service TrackerService {
rpc Register (Node) returns (Node) {
}
rpc Search (SearchRequest) returns (stream SearchResponse) {
}... | 38,133 |
https://github.com/Noeda/m-actors/blob/master/package.lisp | Github Open Source | Open Source | 0BSD | null | m-actors | Noeda | Common Lisp | Code | 48 | 313 | ;;;; package.lisp
(defpackage #:m-actors
(:use #:cl #:m-util #:bordeaux-threads #:priority-queue)
(:export
#:make-actor #:list-all-actors
#:actor-send #:actor-receive
#:actorp
#:actor-p
#:actor-dead-p
#:actor-name
#:actor-by-name
#:die
#:too-many-messages
#:not-in-actor
... | 32,789 |
https://github.com/thibelini/json-advpl/blob/master/test/JSONTest.prw | Github Open Source | Open Source | MIT | 2,016 | json-advpl | thibelini | null | Spoken | 187 | 593 | #include 'json.ch'
User Function RunTest
//TestMinify()
//TestParse()
TestFile()
TestStringify()
//TestImpParse()
Return
/**
* BEGIN SECTION TEST
*/
Static Function TestMinify
Local cJSON := '{ "some": true, [ "big", 1 ] }'
Local cMinified := JSON():New( cJSON )
cMinified := cMinified... | 3,078 |
https://github.com/dtrelogan/react-formstate-fp-demo/blob/master/ui/forms/Dependent.jsx | Github Open Source | Open Source | MIT | null | react-formstate-fp-demo | dtrelogan | null | Spoken | 193 | 572 | import React from 'react';
import { FormScope, FormField, rff } from 'react-formstate-fp';
import { InputAndFeedback } from '../components/rffBootstrap.jsx';
import { Card, Button } from 'react-bootstrap';
// import Card from 'react-bootstrap/Card';
// import Button from 'react-bootstrap/Button';
export const initial... | 24,878 |
https://github.com/chantera/blstm-cws/blob/master/app/libs/__init__.py | Github Open Source | Open Source | MIT | 2,021 | blstm-cws | chantera | Python | Code | 252 | 479 | """
===================================================
_ ____ ____ ___ __
/ | / / / / __ \/ (_) /_ _____ ____ __ __
/ |/ / / / /_/ / / / __ \/ ___/ / __ \/ / / /
/ /| / /___/ ____/ / / /_/ (__ ) / /_/ / /_/ /
/_/ |_/_____/_/ /_/_/_.___/____(_) .___/\__, /
... | 35,322 |
https://github.com/AhmedMostafaElbasha/Crypto_Currency_App/blob/master/crypto_currency_app/lib/presentation/widgets/app_error_state.dart | Github Open Source | Open Source | Apache-2.0 | null | Crypto_Currency_App | AhmedMostafaElbasha | Dart | Code | 74 | 315 | import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:crypto_currency_app/constants/constants.dart';
import 'package:crypto_currency_app/presentation/presentation.dart';
class AppErrorState extends StatelessWidget {
final String errorMessage;
AppError... | 15,503 |
https://github.com/germinateplatform/germinate-vue/blob/master/src/components/export/DatasetOverview.vue | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-unknown-license-reference | 2,023 | germinate-vue | germinateplatform | Vue | Code | 66 | 267 | <template>
<div class="mb-3">
<b-button v-b-toggle.collapse-datasets>{{ $t('widgetSelectedDatasetsTitle') }}</b-button>
<b-collapse id="collapse-datasets" class="mt-3">
<b-row v-if="datasets && datasets.length > 0">
<!-- For each dataset -->
<b-col cols=12 sm=4 xl=2 v-for="(dataset, inde... | 9,830 |
https://github.com/jphacks/KB_1702/blob/master/client/src/lib/SpeechRecognition.js | Github Open Source | Open Source | MIT | 2,017 | KB_1702 | jphacks | JavaScript | Code | 135 | 426 | export default class SpeechRecognition
{
constructor() {
window.SpeechRecognition = window.SpeechRecognition || webkitSpeechRecognition
this.boot = false
this.onResult = () => {}
this.setup()
}
setup() {
console.log('setup')
let recognition = new webkitSpeechRecognition()
recognition... | 32,729 |
https://github.com/bububa/opentaobao/blob/master/model/btrip/MultiCabinClassInfo.go | Github Open Source | Open Source | Apache-2.0 | 2,023 | opentaobao | bububa | Go | Code | 150 | 940 | package btrip
// MultiCabinClassInfo 结构体
type MultiCabinClassInfo struct {
// 退改签规则列表
FlightRuleList []FlightRule `json:"flight_rule_list,omitempty" xml:"flight_rule_list>flight_rule,omitempty"`
// 必填项,剩余座位数
RemainedSeatCount string `json:"remained_seat_count,omitempty" xml:"remained_seat_count,omitempty"`
// 必填项... | 33,346 |
https://github.com/KaptenJon/ComponentOne-WinForms-Samples/blob/master/NetFramework/Sparkline/CS/SparklineSamples/MainForm.Designer.cs | Github Open Source | Open Source | MIT | 2,021 | ComponentOne-WinForms-Samples | KaptenJon | C# | Code | 2,116 | 12,508 | namespace SparklineSamples
{
partial class MainForm
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
///... | 47,935 |
https://github.com/rigarash/monolish-debian-package/blob/master/test/test_cpu.mk | Github Open Source | Open Source | Apache-2.0 | null | monolish-debian-package | rigarash | Makefile | Code | 20 | 135 | MONOLISH_DIR?=$(HOME)/lib/monolish
CXX=g++
CXXFLAGS=-O3 -lm -std=c++14
LIBS=-I $(MONOLISH_DIR)/include/ -L$(MONOLISH_DIR)/lib/ -lmonolish_cpu
OBJS=$(FUNC)_$(ARCH).out
all:$(OBJS)
$(FUNC)_$(ARCH).out: $(FUNC).cpp
$(CXX) $(CXXFLAGS) $(LIBS) $^ -o $@ $(LIBS)
| 6,403 |
https://github.com/amir-ardalanuk/Taxi/blob/master/MapView/Entity/BoundCoordinate.swift | Github Open Source | Open Source | MIT | 2,020 | Taxi | amir-ardalanuk | Swift | Code | 57 | 155 | //
// BoundCoordinate.swift
// MapView
//
// Created by Amir on 10/24/20.
// Copyright © 2020 Amir . All rights reserved.
//
import Foundation
import CoreLocation
struct CoordinateBounds {
let firstPosition: Coordinate
let secondPosition: Coordinate
}
extension Coordinate {
var locationCoordinate2D: ... | 20,336 |
https://github.com/Voxter256/Overwatch-Team-Companion/blob/master/run.py | Github Open Source | Open Source | Apache-2.0 | 2,020 | Overwatch-Team-Companion | Voxter256 | Python | Code | 960 | 4,139 | from PIL import Image
import numpy as np
from os import listdir
from os.path import isfile
import subprocess as sp
import asyncio
from autobahn.asyncio.wamp import ApplicationSession, ApplicationRunner
import configparser
from shutil import copyfile
import logging
from AppUI import AppUI
from Game import Game
class ... | 19,303 |
https://github.com/CCXNC/blainegroup/blob/master/resources/views/pages/bmc/foodtechnicalproduct.blade.php | Github Open Source | Open Source | MIT | 2,020 | blainegroup | CCXNC | Blade | Code | 94 | 323 | @extends('layouts.bmcfoodapp')
@section('content')
<div class="history" style="background-image: url('{{ asset('/images/bmcfood/History.jpg')}}'); height:100%; padding:50px;">
<div class="container">
<h3>Technical Services</h3>
<hr class="hr">
<br>
<div class... | 3,998 |
https://github.com/isopov/kubernetes-client-java/blob/master/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleIOVolumeSourceFluentImpl.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | kubernetes-client-java | isopov | Java | Code | 749 | 3,181 | package io.kubernetes.client.openapi.models;
import io.kubernetes.client.fluent.Nested;
import java.lang.String;
import java.lang.Deprecated;
import io.kubernetes.client.fluent.BaseFluent;
import java.lang.Object;
import java.lang.Boolean;
public class V1ScaleIOVolumeSourceFluentImpl<A extends io.kubernetes.client.op... | 45,588 |
https://github.com/MaxHlystov/otus-java-prof/blob/master/hw28-spring-jdbc/src/main/java/ru/fmtk/khlystov/otus_java/repostory/ClientRepository.java | Github Open Source | Open Source | MIT | null | otus-java-prof | MaxHlystov | Java | Code | 127 | 428 | package ru.fmtk.khlystov.otus_java.repostory;
import java.util.List;
import java.util.Optional;
import org.springframework.data.jdbc.repository.query.Query;
import org.springframework.data.repository.CrudRepository;
import org.springframework.data.repository.query.Param;
import ru.fmtk.khlystov.otus_java.domain.Clien... | 53,389 |
https://github.com/ailabitmo/DAAFSE/blob/master/alert-service/src/main/java/ru/ifmo/ailab/daafse/alertservice/rest/QueryAPI.java | Github Open Source | Open Source | MIT | 2,016 | DAAFSE | ailabitmo | Java | Code | 138 | 553 | package ru.ifmo.ailab.daafse.alertservice.rest;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import javax.inject.Inject;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.QueryParam;
import javax.ws.rs.WebApplic... | 29,253 |
https://github.com/cfallin/rsix/blob/master/tests/io/eventfd.rs | Github Open Source | Open Source | ECL-2.0, Apache-2.0, MIT-0, MIT | null | rsix | cfallin | Rust | Code | 70 | 260 | #[cfg(any(target_os = "android", target_os = "linux"))]
#[test]
fn test_eventfd() {
use rsix::io::{eventfd, read, write, EventfdFlags};
use std::mem::size_of;
use std::thread;
let efd = eventfd(0, EventfdFlags::CLOEXEC).unwrap();
let child = thread::spawn(move || {
for u in [1_u64, 3, 6, 1... | 27,542 |
https://github.com/dfe-analytical-services/explore-education-statistics/blob/master/src/GovUk.Education.ExploreEducationStatistics.Common.Tests/Utils/PolicyCheckBuilder.cs | Github Open Source | Open Source | MIT | 2,023 | explore-education-statistics | dfe-analytical-services | C# | Code | 191 | 819 | using System;
using System.Linq.Expressions;
using System.Threading.Tasks;
using GovUk.Education.ExploreEducationStatistics.Common.Model;
using GovUk.Education.ExploreEducationStatistics.Common.Services.Interfaces.Security;
using Microsoft.AspNetCore.Mvc;
using Moq;
using Xunit;
namespace GovUk.Education.ExploreEducat... | 2,528 |
https://github.com/Jey-Cee/iobroker-drones/blob/master/lib/tools.js | Github Open Source | Open Source | MIT | 2,020 | iobroker-drones | Jey-Cee | JavaScript | Code | 691 | 1,791 | const readline = require('readline');
const fs = require('fs');
/**
* Checks a given state value, and returns the corrected value and the associated type
* @param {string} state - for logging only
* @param {*} value - state value to check
* @return {object} - {val:<state value>, type:<type or null in case of error... | 31,722 |
https://github.com/joho/letour/blob/master/letour.go | Github Open Source | Open Source | MIT | 2,022 | letour | joho | Go | Code | 136 | 546 | package main
import (
"flag"
"fmt"
"html/template"
"log"
"net/http"
"os"
"github.com/bugsnag/bugsnag-go"
"github.com/joho/letour/sbs"
"github.com/joho/prohttphandler"
)
func main() {
debug := flag.Bool("debug", false, "spit out debugging info on what SBS serves")
flag.Parse()
if *debug {
debugAPI()
} ... | 10,674 |
https://github.com/prahlad-dev/DocScan/blob/master/liveedgedetection/src/main/java/info/hannes/liveedgedetection/activity/uploadData.kt | Github Open Source | Open Source | Apache-2.0 | null | DocScan | prahlad-dev | Kotlin | Code | 258 | 1,254 | package info.hannes.liveedgedetection.activity
import android.graphics.Bitmap
import android.os.Bundle
import android.os.StrictMode
import android.util.Log
import android.view.View
import androidx.appcompat.app.AppCompatActivity
import info.hannes.liveedgedetection.R
import info.hannes.liveedgedetection.ScanConstants
... | 25,398 |
https://github.com/UnleashGroupIT/NewHope/blob/master/resources/assets/src/Components/MainContent/HeaderSlider/HighLightThree/HighLightThree.js | Github Open Source | Open Source | MIT | 2,018 | NewHope | UnleashGroupIT | JavaScript | Code | 58 | 171 | import React, {Component} from 'react'
import { Link } from 'react-router-dom'
class HighlightThree extends Component {
constructor(props) {
super(props);
}
render(){
return(
<div className={this.props.active ? "Highlight Three talk Active" : "Highlight Three talk" } onClick={this.props.slideThre... | 9,366 |
https://github.com/jbt00000/RevolutionaryStuff/blob/master/src/RevolutionaryStuff.AspNetCore/AssemblyInfo.cs | Github Open Source | Open Source | MIT | 2,021 | RevolutionaryStuff | jbt00000 | C# | Code | 12 | 34 | global using System;
global using System.Collections.Generic;
global using System.Linq;
global using RevolutionaryStuff.Core;
| 33,800 |
https://github.com/globus/globus-publish-dspace/blob/master/src/globus-client-java/src/main/java/org/globus/groups/GlobusGroupSummary.java | Github Open Source | Open Source | Apache-2.0 | null | globus-publish-dspace | globus | Java | Code | 435 | 1,114 | /*
* Copyright 2014 University of Chicago
*
* 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 agre... | 23,529 |
https://github.com/themost-framework/themost-web/blob/master/index.d.ts | Github Open Source | Open Source | BSD-3-Clause | null | themost-web | themost-framework | TypeScript | Code | 201 | 626 | // MOST Web Framework 2.0 Codename Blueshift Copyright (c) 2017-2020, THEMOST LP All rights reserved
export * from './mvc';
export * from './app';
export * from './types';
export * from './config';
export * from './context';
export {default as HttpBaseController} from './controllers/base';
export {default as HttpDataCo... | 11,936 |
https://github.com/yangfang710/GoHttp/blob/master/Makefile | Github Open Source | Open Source | Apache-2.0 | null | GoHttp | yangfang710 | Makefile | Code | 48 | 152 | run:
go run cmd/main.go
test:
CGO_ENABLED=1 APP_ENV=test GO111MODULE=on go test -count=1 -race -v -cover ./...
build:
mkdir -p bin
rm -fr bin/server
CGO_ENABLED=0 GO111MODULE=on go build -o bin/server cmd/main.go
generate:
APP_ENV=test go generate ./...
doc:
apidoc -i handler/ -o apidoc/
.PHONY: test build ... | 22,238 |
https://github.com/spring-cloud/spring-cloud-config/blob/master/spring-cloud-config-server/src/main/java/org/springframework/cloud/config/server/environment/AwsClientBuilderConfigurer.java | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-generic-cla | 2,023 | spring-cloud-config | spring-cloud | Java | Code | 140 | 344 | /*
* Copyright 2018-2020 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | 47,281 |
https://github.com/VinaLx-zz/epsol/blob/master/src/epsol/time/extract.h | Github Open Source | Open Source | MIT | 2,018 | epsol | VinaLx-zz | C++ | Code | 174 | 586 | #ifndef EPSOL_TIME_TIMER_EXTRACT_
#define EPSOL_TIME_TIMER_EXTRACT_
#include <chrono>
#include <tuple>
#include "epsol/time/time-zone.h"
namespace epsol {
namespace time {
/**
* tags passing as the parameter of `extract`
*/
namespace tags {
class year {};
class month {};
class day {};
class hour {};
class minute ... | 12,116 |
https://github.com/guypod/best-practices-badge/blob/master/app/mailers/user_mailer.rb | Github Open Source | Open Source | MIT | 2,020 | best-practices-badge | guypod | Ruby | Code | 123 | 431 | # frozen_string_literal: true
# Copyright 2015-2017, the Linux Foundation, IDA, and the
# CII Best Practices badge contributors
# SPDX-License-Identifier: MIT
class UserMailer < ApplicationMailer
def account_activation(user)
@user = user
I18n.with_locale(user.preferred_locale.to_sym) do
mail(
... | 45,509 |
https://github.com/TipatatJ/vuetiful-online-store-webapp/blob/master/src/shared/CountableIcon.vue | Github Open Source | Open Source | MIT | 2,019 | vuetiful-online-store-webapp | TipatatJ | Vue | Code | 32 | 126 | <template>
<v-badge
color="purple"
overlap>
<div
v-if="count > 0"
slot="badge"
dark
small>{{ count }}</div>
<v-icon large>{{ icon }}</v-icon>
</v-badge>
</template>
<script>
export default {
name: 'countable-icon',
props: ['count', 'icon']
}
</script>
<style>
</style>
| 15,208 |
https://github.com/CyberSharky94/laravel_6_student_system/blob/master/app/Http/Controllers/LevelController.php | Github Open Source | Open Source | MIT | null | laravel_6_student_system | CyberSharky94 | PHP | Code | 324 | 986 | <?php
namespace App\Http\Controllers;
use App\Level;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Validator;
class LevelController extends Controller
{
private function rules()
{
// Rules
$rules = [
'level_name' => 'required',
'level_number' => 'required... | 47,579 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.