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/Elwalle/openshift-ansible-release-3.11/blob/master/roles/openshift_logging/library/logging_patch.py | Github Open Source | Open Source | Apache-2.0 | 2,021 | openshift-ansible-release-3.11 | Elwalle | Python | Code | 289 | 1,025 | #!/usr/bin/python
""" Ansible module to help with creating context patch file with whitelisting for logging """
import difflib
import re
from ansible.module_utils.basic import AnsibleModule
DOCUMENTATION = '''
---
module: logging_patch
short_description: This will create a context patch file while giving ability
... | 16,786 |
https://github.com/hanyuxing5588/tableGZL/blob/master/XGMvc/Views/ysfp/ysfpSearch.cshtml | Github Open Source | Open Source | MIT | 2,017 | tableGZL | hanyuxing5588 | C# | Code | 1,080 | 5,912 | <script type="text/javascript">
$(document).ready(function () {
$('#ysfp-hselect').bind('click', function () {
GetData();
})
$('#ysfp-haffirm').bind('click', function () {
SelectData();
})
$('#ysfp-Reset').bind('click', function () {
Clear... | 41,934 |
https://github.com/ArthurBottcher/teste_goclin/blob/master/src/services/api.js | Github Open Source | Open Source | MIT | null | teste_goclin | ArthurBottcher | JavaScript | Code | 65 | 261 | import axios from 'axios'
const http = axios.create({
baseURL:'https:/stage-api.goclin.com/v1/',
headers: {
'api-key': '9q3llb2umtpoyqdpmwvfx0daxnl0ctv4i7oldawk7693k84yapik0vatw6i2d81j',
'content-type': 'application/json'
}
})
http.interceptors.response.use((response) => {
return respo... | 35,043 |
https://github.com/AmurKhoyetsyan/TUTORIAL-HTML-CSS-JS-SASS/blob/master/Loaders/How to create a loader using pure HTML and CSS Heart Spinner CSS Effects Version seven/css/style.sass | Github Open Source | Open Source | MIT | 2,022 | TUTORIAL-HTML-CSS-JS-SASS | AmurKhoyetsyan | Sass | Code | 131 | 452 | *
padding: 0
margin: 0
box-sizing: border-box
.parent
width: 100vw
height: 100vh
background-color: #B12C2C
display: flex
flex-wrap: nowrap
flex-direction: row
justify-content: center
align-items: center
.loader
width: 100px
.loader-title
width... | 49,474 |
https://github.com/awais000/eboves-api/blob/master/src/api/apiBanners.ts | Github Open Source | Open Source | MIT | 2,021 | eboves-api | awais000 | TypeScript | Code | 41 | 150 | import express from "express";
import {
getAll,
toggleActiveStatus,
bulkDelete,
create,
update,
getBanners,
} from "../controllers/controllerBanners";
const app = express();
app.get("/", getAll);
app.delete("/", bulkDelete);
app.post("/", create);
app.put("/:Aid", update);
app.put("/toggle-active/:Aid", t... | 105 |
https://github.com/jsdelivrbot/challenge_word_classifier/blob/master/submissions/5748487163905b3a11d97c60/src/make-dist.js | Github Open Source | Open Source | MIT | 2,018 | challenge_word_classifier | jsdelivrbot | JavaScript | Code | 459 | 1,708 | var fs = require('fs');
var zlib = require('zlib');
var filesize = require('filesize');
var ClosureCompiler = require('closurecompiler');
var BloomFilter = require('bloom-filter');
var es6Minify = require('./es6-minify');
var processors = require('./processors');
var words = fs.readFileSync('./words.txt', 'utf8').split... | 14,387 |
https://github.com/PaulTrampert/PTrampert.ApiProxy/blob/master/PTrampert.ApiProxy/ApiProxyConfig.cs | Github Open Source | Open Source | MIT | null | PTrampert.ApiProxy | PaulTrampert | C# | Code | 51 | 143 | using System;
using System.Collections.Generic;
namespace PTrampert.ApiProxy
{
/// <summary>
/// Dictionary of configured API's that the proxy can handle. Keys are compared with <see cref="StringComparer.OrdinalIgnoreCase"/>.
/// </summary>
public class ApiProxyConfig : Dictionary<string, ApiConfig>
... | 42,737 |
https://github.com/cato976/Ecobee/blob/master/src/I8Beef.Ecobee/Protocol/Objects/RuntimeSensorMetadata.cs | Github Open Source | Open Source | MIT | 2,018 | Ecobee | cato976 | C# | Code | 145 | 346 | using Newtonsoft.Json;
namespace I8Beef.Ecobee.Protocol.Objects
{
/// <summary>
/// Ecobee API runtime sensor metadata.
/// </summary>
[JsonObject(MemberSerialization.OptIn)]
public class RuntimeSensorMetadata
{
/// <summary>
/// The unique sensor identifier. It is composed of ... | 16,789 |
https://github.com/zzti/DotNetCore.SKIT.FlurlHttpClient.Wechat/blob/master/src/SKIT.FlurlHttpClient.Wechat.Work/Models/CgibinSchool/User/Parent/CgibinSchoolUserCreateParentRequest.cs | Github Open Source | Open Source | MIT | 2,023 | DotNetCore.SKIT.FlurlHttpClient.Wechat | zzti | C# | Code | 134 | 612 | using System.Collections.Generic;
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
{
/// <summary>
/// <para>表示 [POST] /cgi-bin/school/user/create_parent 接口的请求。</para>
/// </summary>
public class CgibinSchoolUserCreateParentRequest : WechatWorkRequest
{
public static class Types
{... | 23,468 |
https://github.com/ricardoferreirasilva/jsweaver/blob/master/jsweaver/src/pt/up/fe/specs/jackdaw/abstracts/joinpoints/ABlockStatement.java | Github Open Source | Open Source | Apache-2.0 | 2,019 | jsweaver | ricardoferreirasilva | Java | Code | 483 | 1,505 | package pt.up.fe.specs.jackdaw.abstracts.joinpoints;
import java.util.List;
import org.lara.interpreter.weaver.interf.SelectOp;
import org.lara.interpreter.weaver.interf.JoinPoint;
import java.util.Optional;
import java.util.stream.Collectors;
import java.util.Arrays;
/**
* Auto-Generated class for join point ABlock... | 45,447 |
https://github.com/vivekkanoje1989/edynamics_Laravel/blob/master/app/Modules/Projects/Controllers/ProjectsController.php | Github Open Source | Open Source | MIT | null | edynamics_Laravel | vivekkanoje1989 | PHP | Code | 1,845 | 7,519 | <?php
namespace App\Modules\Projects\Controllers;
use App\Http\Requests;
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
use App\Modules\Projects\Models\MlstBmsbProjectStatus;
use App\Modules\Projects\Models\MlstBmsbProjectType;
use App\Modules\Projects\Models\Project;
use App\Modules\Projects\Model... | 20,319 |
https://github.com/velteren/basic-js/blob/master/src/extended-repeater.js | Github Open Source | Open Source | MIT | null | basic-js | velteren | JavaScript | Code | 109 | 338 | const CustomError = require("../extensions/custom-error");
module.exports = function repeater(str, options) {
str = str + '';
let result = [];
result[0] = str;
if (options.repeatTimes === undefined) options.repeatTimes = 1;
if (options.separator === undefined) options.separator = '+';
if (options.add... | 24,191 |
https://github.com/cypherdotXd/o3de/blob/master/Gems/LyShine/Code/Source/UiTooltipDisplayComponent.cpp | Github Open Source | Open Source | Apache-2.0, MIT | 2,021 | o3de | cypherdotXd | C++ | Code | 2,218 | 8,996 | /*
* Copyright (c) Contributors to the Open 3D Engine Project.
* For complete copyright and license terms please see the LICENSE at the root of this distribution.
*
* SPDX-License-Identifier: Apache-2.0 OR MIT
*
*/
#include "UiTooltipDisplayComponent.h"
#include <AzCore/Serialization/SerializeContext.h>
#include... | 48,184 |
https://github.com/cnojima/vscode-extension-readable-indent/blob/master/src/test/1_alpha-sort.test.ts | Github Open Source | Open Source | MIT | 2,020 | vscode-extension-readable-indent | cnojima | TypeScript | Code | 92 | 237 | import * as assert from 'assert';
import customAlphaSort from '../util/alpha-sort';
suite("Custom Sort Tests", () => {
test('normal alphabeticals', () => {
const expected = ['a','b','c'];
const foo = ['b','c','a'];
assert.deepEqual(customAlphaSort(foo), expected);
});
test('normal alphabeticals... | 36,960 |
https://github.com/aldianwillia/minishop/blob/master/application/views/layout/v_nav_frontend.php | Github Open Source | Open Source | MIT | 2,021 | minishop | aldianwillia | PHP | Code | 569 | 2,343 | <!-- Navbar -->
<nav class="main-header navbar navbar-expand-md navbar-light navbar-white">
<div class="container">
<a href="<?= base_url() ?>" class="navbar-brand">
<i class="fas fa-store text-primary"></i>
<span class="brand-text font-weight-light"><b>Minihop Online</b></span>
... | 46,082 |
https://github.com/Chokitus/mq-tests/blob/master/src/main/java/br/edu/ufabc/chokitus/mq/instances/rabbitmq/RabbitMQWrapperFactory.java | Github Open Source | Open Source | MIT | null | mq-tests | Chokitus | Java | Code | 195 | 857 | package br.edu.ufabc.chokitus.mq.instances.rabbitmq;
import java.util.Map;
import java.io.IOException;
import com.rabbitmq.client.ConnectionFactory;
import br.edu.ufabc.chokitus.mq.exception.MessagingException;
import br.edu.ufabc.chokitus.mq.factory.AbstractWrapperFactory;
import lombok.EqualsAndHashCode;
import l... | 7,876 |
https://github.com/CivicDataLab/twitter-scraper/blob/master/scraper/listener.py | Github Open Source | Open Source | MIT | null | twitter-scraper | CivicDataLab | Python | Code | 436 | 1,618 | import sys
import time
import csv as csv_lib
import datetime
import tweepy
import simplejson as json
import message_recognizers
import utils
from load_tweets import save_tweets
MISSING_FIELD_VALUE = ''
def dump_with_timestamp(text, category="Unknown"):
print("(%s)--%s--%s" % (category, datetime.datetime.now(), ... | 40,774 |
https://github.com/tqt97/Laravel8MultiAuth/blob/master/routes/web.php | Github Open Source | Open Source | MIT | 2,021 | Laravel8MultiAuth | tqt97 | PHP | Code | 200 | 920 | <?php
use App\Http\Controllers\Backend\AdminController;
use App\Http\Controllers\Backend\DashboardController;
use App\Http\Controllers\Backend\FileUploadController;
use App\Http\Controllers\Backend\Products\ProductCategoryController;
use App\Http\Controllers\Backend\Products\ProductController;
use App\Http\Controllers... | 8,798 |
https://github.com/darknech97/grupo_satelite/blob/master/app/Http/Controllers/AlumnoController.php | Github Open Source | Open Source | MIT | null | grupo_satelite | darknech97 | PHP | Code | 299 | 999 | <?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Models\Alumno;
use App\Models\Grado;
use DB;
class AlumnoController extends Controller
{
public $timestamps = false;
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/
public... | 1,702 |
https://github.com/davelooi/interapp/blob/master/app/services/interapp/receive_message_service.rb | Github Open Source | Open Source | MIT | 2,021 | interapp | davelooi | Ruby | Code | 56 | 221 | module Interapp
class ReceiveMessageService
attr :message, :peer, :data, :return_value
def initialize(payload:, peer_identifier:, signature:)
find_peer(peer_identifier)
@message = Message.new(payload: payload, peer: @peer, signature: signature)
@data = JSON.load(@message.payload)
end
... | 4,188 |
https://github.com/VenomBigBozz/Esercizi/blob/master/Uni/c++/programamzione-1/Esempi/laboratorio/varie/distruttori.cpp | Github Open Source | Open Source | Unlicense | null | Esercizi | VenomBigBozz | C++ | Code | 63 | 180 | #include<iostream>
using namespace std;
class Classe {
int *x;
int n;
public:
Classe(int _n) : n(_n) {
x = new int[n];
for(int i=0; i<n; i++)
x[i] = i+1;
}
int getNum(int i) {return x[i];}
~Classe() {
delete[] x;
... | 10,098 |
https://github.com/James4Deutschland/lazer/blob/master/GeneralUsageLister/MainIndex/zero/ff | Github Open Source | Open Source | WTFPL, GPL-1.0-or-later | 2,020 | lazer | James4Deutschland | Shell | Code | 4 | 20 | #!/bin/bash
ff &> ../zero-log/ff.log
| 27,911 |
https://github.com/Zonotora/adventofcode/blob/master/2021/python/17.py | Github Open Source | Open Source | MIT | null | adventofcode | Zonotora | Python | Code | 133 | 361 | # flake8: noqa
from python import *
aoc = AdventOfCode("2021", "17", "", new)
def trajectory(items, p1):
s = items[0].split("=")
[xmin, xmax] = [int(v) for v in s[1].split(",")[0].split("..")]
[ymin, ymax] = [int(v) for v in s[2].split("..")]
d = 300
answer = 0
for i in range(0, d):
f... | 10,424 |
https://github.com/sntsabode/tkngen-api/blob/master/lib/server.ts | Github Open Source | Open Source | MIT | null | tkngen-api | sntsabode | TypeScript | Code | 27 | 65 | import { app as server } from './app'
const PORT = process.env.PORT || 9000
server.listen(<number>PORT, '0.0.0.0', async () => {
console.log('Server listening on PORT: %s', PORT)
}) | 24,865 |
https://github.com/npezza93/eighty/blob/master/test/controllers/images_controller_test.rb | Github Open Source | Open Source | MIT | null | eighty | npezza93 | Ruby | Code | 40 | 136 | # frozen_string_literal: true
require "test_helper"
class ImagesControllerTest < ActionDispatch::IntegrationTest
include ActionDispatch::TestProcess
include Devise::Test::IntegrationHelpers
test "should create image" do
sign_in users(:one)
file = fixture_file_upload("files/logo.png", "image/png")
... | 29,796 |
https://github.com/jeffmckelvey/KittyHawkMQ/blob/master/KittyHawk.MqttLib/Messages/MqttSubscribeAckMessage.cs | Github Open Source | Open Source | MIT | null | KittyHawkMQ | jeffmckelvey | C# | Code | 274 | 833 |
using KittyHawk.MqttLib.Collections;
using KittyHawk.MqttLib.Interfaces;
using KittyHawk.MqttLib.Utilities;
namespace KittyHawk.MqttLib.Messages
{
public sealed class MqttSubscribeAckMessage : IMqttIdMessage
{
private readonly MqttMessageBase _msg;
internal static MqttSubscribeAckMessage Int... | 11,497 |
https://github.com/marcosocon/pokemon-ui/blob/master/src/config/index.js | Github Open Source | Open Source | MIT | null | pokemon-ui | marcosocon | JavaScript | Code | 10 | 35 | const CONFIG = {
API_URL: 'https://pokeapi.co/api/v2'
}
export default CONFIG; | 25,669 |
https://github.com/getpro/mygenius/blob/master/Yeung/Classes/game/CCRadioMenu.h | Github Open Source | Open Source | MIT | 2,012 | mygenius | getpro | Objective-C | Code | 38 | 141 | //
// CCRadioMenu.h
// DrawSomeThing
//
// Created by Peteo on 12-4-3.
// Copyright 2012 The9. All rights reserved.
//
#import "cocos2d.h"
@interface CCRadioMenu : CCMenu
{
CCMenuItem *_curHighlighted;
}
-(void)setSelectedRadioItem:(CCMenuItem*)item;
+ (id) radioMenuWithItems:(CCMenuItem*) item, ... NS_REQUIR... | 3,061 |
https://github.com/syam-s/IBAMR/blob/master/ibtk/include/ibtk/NodeSynchCopyFillPattern.h | Github Open Source | Open Source | BSD-3-Clause | 2,021 | IBAMR | syam-s | C | Code | 544 | 1,247 | // ---------------------------------------------------------------------
//
// Copyright (c) 2011 - 2019 by the IBAMR developers
// All rights reserved.
//
// This file is part of IBAMR.
//
// IBAMR is free software and is distributed under the 3-clause BSD
// license. The full text of the license can be found in the f... | 36,991 |
https://github.com/gotogame/Game2D/blob/master/Game2D/Core/GameBase_EventPartial.cs | Github Open Source | Open Source | MIT | null | Game2D | gotogame | C# | Code | 348 | 1,932 | using System;
using System.Collections.Generic;
using System.Text;
using SDL2;
namespace Game2D
{
//游戏基类_SDL事件部分
public partial class GameBase
{
#region 平台相关事件
/// <summary>
/// 关闭事件,游戏窗口的关闭按钮被点击时引发一次
/// (默认未包含代码)
/// (Windows平台可用)
/// </summary>
p... | 22,387 |
https://github.com/faddiv/Misc/blob/master/SlowlyChangingDimensions/SlowlyChangingDimensions/ScdExampleTable2.cs | Github Open Source | Open Source | MIT | 2,023 | Misc | faddiv | C# | Code | 116 | 289 | using System.ComponentModel.DataAnnotations;
namespace SlowlyChangingDimensions
{
public class ScdExampleTable2
{
public int Id { get; set; }
public int CorrelationId { get; set; }
public DateTime CreatedTimestamp { get; set; }
public DateTime EndTimestamp { get; set; } = DateTi... | 21,718 |
https://github.com/TonyReet/lottie-flutter/blob/master/lib/src/model/animatable/animatable_double_value.dart | Github Open Source | Open Source | MIT | 2,022 | lottie-flutter | TonyReet | Dart | Code | 27 | 140 | import '../../animation/keyframe/double_keyframe_animation.dart';
import '../../value/keyframe.dart';
import 'base_animatable_value.dart';
class AnimatableDoubleValue extends BaseAnimatableValue<double, double> {
AnimatableDoubleValue() : super.fromValue(0.0);
AnimatableDoubleValue.fromKeyframes(List<Keyframe<dou... | 9,374 |
https://github.com/ijp/GyojiBot/blob/master/game/moves/tachiai.py | Github Open Source | Open Source | MIT | 2,020 | GyojiBot | ijp | Python | Code | 110 | 391 | from game.transitions import Transition
from game.moves.move import Move
from game.stats import Stat
class Tachiai(Move):
allowed_transitions = []
def __init__(self, technique_name: str, primary: Stat, secondary: Stat):
super(self, technique_name, primary, secondary)
class Powerful(Tachiai):
d... | 32,822 |
https://github.com/yarnpkg/berry/blob/master/packages/yarnpkg-libzip/artifacts/.gitignore | Github Open Source | Open Source | BSD-2-Clause | 2,023 | berry | yarnpkg | Ignore List | Code | 5 | 28 | /*
!/lib/
!/exported.json
!/build.sh
!/.gitignore
| 42,002 |
https://github.com/doc22940/Editor/blob/master/electron/routes/photoshop.ts | Github Open Source | Open Source | Apache-2.0 | null | Editor | doc22940 | TypeScript | Code | 246 | 756 | import * as KoaRouter from 'koa-router';
import * as path from 'path';
import Settings from '../settings/settings';
import WebServer from '../web-server';
import * as GeneratorCore from 'generator-core/lib/generator';
import * as GeneratorLogging from 'generator-core/lib/logging';
import * as GeneratorConfig from 'ge... | 46,561 |
https://github.com/eisgroup/kraken-rules/blob/master/kraken-expression-language/src/main/java/kraken/el/ast/visitor/AstVisitor.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | kraken-rules | eisgroup | Java | Code | 296 | 736 | /*
* Copyright 2019 EIS Ltd and/or one of its affiliates.
*
* 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 ... | 32,939 |
https://github.com/sj26/christen/blob/master/app/assets/stylesheets/application.css.sass | Github Open Source | Open Source | MIT | 2,021 | christen | sj26 | Sass | Code | 43 | 154 | @import bootstrap
@import bootstrap-responsive
body
padding-top: 60px
.footer
padding: 20px 0
margin-top: 20px
border-top: 1px solid #e5e5e5
background-color: #f5f5f5
ul
margin: 10px 0
color: #777
li
display: inline
&:before
display: inline-block
content: "\B7"
... | 46,345 |
https://github.com/Invectys/Sites/blob/master/YourSpaceMDB_4.2_Optimization/YourSpace/Services/ISUsers.cs | Github Open Source | Open Source | MIT | null | Sites | Invectys | C# | Code | 34 | 118 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Claims;
using System.Threading.Tasks;
using YourSpace.Areas.Identity;
using YourSpace.Modules.Moderation.Models;
namespace YourSpace.Services
{
public interface ISUsers
{
public Task<List<MIdentityUser>> GetUsers(... | 2,993 |
https://github.com/akuleshov7/diKTat/blob/master/diktat-rules/src/main/kotlin/generated/WarningNames.kt | Github Open Source | Open Source | MIT | 2,021 | diKTat | akuleshov7 | Kotlin | Code | 807 | 3,593 | // This document was auto generated, please don't modify it.
// This document contains all enum properties from Warnings.kt as Strings.
package generated
import kotlin.String
public object WarningNames {
public const val PACKAGE_NAME_MISSING: String = "PACKAGE_NAME_MISSING"
public const val PACKAGE_NAME_IN... | 50,820 |
https://github.com/Scenx/scen-springcloud-store/blob/master/scen-web-parent/scen-admin-web/src/main/java/com/scen/admin/controller/ContentController.java | Github Open Source | Open Source | Apache-2.0 | 2,019 | scen-springcloud-store | Scenx | Java | Code | 163 | 613 | package com.scen.admin.controller;
import com.scen.content.service.ContentService;
import com.scen.pojo.Content;
import com.scen.vo.EUDdataGridResult;
import com.scen.vo.ScenResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.... | 43,748 |
https://github.com/aillieo/lua-structs/blob/master/lua-structs/LuaHeap.lua | Github Open Source | Open Source | MIT | 2,022 | lua-structs | aillieo | Lua | Code | 211 | 714 | local LuaHeap = {}
LuaHeap.__index = LuaHeap
local defaultComparer = function(x,y)
return x < y
end
function LuaHeap:Clear()
self._data = {}
end
function LuaHeap:Pop()
local node = self._data[1]
if node then
local count = #self._data
self._data[1] = self._data[count]
self._dat... | 37,398 |
https://github.com/senagbe/stroke/blob/master/src/com/isode/stroke/base/SafeString.java | Github Open Source | Open Source | BSD-3-Clause | 2,021 | stroke | senagbe | Java | Code | 77 | 199 | /*
* Copyright (c) 2011-2015 Isode Limited.
* All rights reserved.
* See the COPYING file for more information.
*/
/*
* Copyright (c) 2015 Tarun Gupta.
* Licensed under the simplified BSD license.
* See Documentation/Licenses/BSD-simplified.txt for more information.
*/
package com.isode.stroke.base;
import co... | 41,205 |
https://github.com/adellape/openshift-docs/blob/master/modules/templates-create-from-existing-object.adoc | Github Open Source | Open Source | Apache-2.0 | 2,020 | openshift-docs | adellape | AsciiDoc | Code | 127 | 232 | // Module included in the following assemblies:
//
// * openshift_images/using-templates.adoc
[id="templates-create-from-existing-object_{context}"]
= Creating a template from existing objects
Rather than writing an entire template from scratch, you can export existing
objects from your project in YAML form, and then... | 22,229 |
https://github.com/jorgenunezsiri/accusyn/blob/master/src/variables/blockViewStateDictionary.js | Github Open Source | Open Source | MIT | 2,021 | accusyn | jorgenunezsiri | JavaScript | Code | 74 | 145 | import merge from 'lodash/merge';
let _blockViewStateDictionary = {}; // To save the current state for each block
/**
* Getter function for block view state dictionary
*
* @return {Object} Block view state dictionary
*/
export function getBlockViewStateDictionary() {
return _blockViewStateDictionary;
};
/**
*... | 28,256 |
https://github.com/gestaltjs/ruby/blob/master/src/bin/daily.ts | Github Open Source | Open Source | MIT | null | ruby | gestaltjs | TypeScript | Code | 176 | 560 | import { message } from "../lib/slack";
import { Message, Blocks, Md } from "slack-block-builder";
import npm from "npm-stat-api";
const multilingualGoodMorning = [
"Bon matin",
"Buenos días",
"Bon dia",
"Egun on",
"Bos días",
"Buongiorno",
"Suprabhat",
"Sabah al-khair",
"Ohayō",
"Sawubona",
"Bon... | 28,624 |
https://github.com/dedihartono/projek1/blob/master/application/views/lokasi_unit/v_test.php | Github Open Source | Open Source | MIT | null | projek1 | dedihartono | PHP | Code | 168 | 855 |
<a class="btn btn-primary" href="<?php echo base_url();?>index.php/kelola_unit/tambah_lokasi_unit">Tambah</a>
<table class="table datatable">
<tr>
<th>No</th>
<th>Kode Lokasi</th>
<th>Lokasi</th>
<th>Aksi</th>
</tr>
<?php
$n = 1;
foreach ($lokasi_unit as $row) { ?>
<tr>
<td><?php ec... | 27,168 |
https://github.com/rosenfeld/rails-web-console/blob/master/lib/rails_web_console/engine.rb | Github Open Source | Open Source | MIT | 2,022 | rails-web-console | rosenfeld | Ruby | Code | 10 | 31 | module RailsWebConsole
class Engine < ::Rails::Engine
isolate_namespace RailsWebConsole
end
end
| 15,582 |
https://github.com/La0917-team/nucbaComercio/blob/master/frontend/src/Components/FormLogin/FormLogin.js | Github Open Source | Open Source | MIT | null | nucbaComercio | La0917-team | JavaScript | Code | 55 | 208 | import React from 'react'
import {ButtonLogIn, ContainerForm, FormSignIn, H1Form, InputLogin, LabelLogIn, Structure} from './FormLoginStyles'
function FormLogin() {
return (
<ContainerForm>
<Structure>
<H1Form>
Sign In
</H1Form>
... | 19,540 |
https://github.com/DataCanvasIO/HyperNLP/blob/master/hypernlp/optimize/trainer.py | Github Open Source | Open Source | Apache-2.0 | 2,022 | HyperNLP | DataCanvasIO | Python | Code | 444 | 1,842 | import abc
from hypernlp.framework_config import Config
if Config.framework == 'tensorflow':
import tensorflow as tf
from utils.logger import logger
from utils.string_utils import home_path
class Trainer(object):
def __init__(self, model, optimzier, train_processers, epochs, epoch_length, evaluator, save_m... | 12,859 |
https://github.com/RoperoIvan/NarrativaEnTempsReal/blob/master/RoperoIvan/Introduction to Scripting Part 2 Starter/Assets/RW/Scripts/SheepSpawner.cs | Github Open Source | Open Source | MIT | null | NarrativaEnTempsReal | RoperoIvan | C# | Code | 144 | 440 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class SheepSpawner : MonoBehaviour
{
public bool canSpawn = true; // 1
public GameObject sheepPrefab; // 2
public List<Transform> sheepSpawnPositions = new List<Transform>(); // 3
public float timeBetweenSpawns; // ... | 38,347 |
https://github.com/epapasidero/horizontal-resequencing-fmod/blob/master/Assets/Scenes/SampleScene.unity | Github Open Source | Open Source | Apache-2.0 | 2,020 | horizontal-resequencing-fmod | epapasidero | Unity3D Asset | Code | 4,090 | 17,116 | %YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!29 &1
OcclusionCullingSettings:
m_ObjectHideFlags: 0
serializedVersion: 2
m_OcclusionBakeSettings:
smallestOccluder: 5
smallestHole: 0.25
backfaceThreshold: 100
m_SceneGUID: 00000000000000000000000000000000
m_OcclusionCullingData: {fileID: 0}
--- !u!... | 28,775 |
https://github.com/gluesys/p5-Mouse/blob/master/Moose-t-failing/050_metaclasses/012_moose_exporter.t | Github Open Source | Open Source | Artistic-1.0 | 2,019 | p5-Mouse | gluesys | Perl | Code | 1,005 | 3,194 | #!/usr/bin/perl
# This is automatically generated by author/import-moose-test.pl.
# DO NOT EDIT THIS FILE. ANY CHANGES WILL BE LOST!!!
use t::lib::MooseCompat;
use strict;
use warnings;
use Test::More;
$TODO = q{Mouse is not yet completed};
use Test::Exception;
use Test::Requires {
'Test::Output' => '0.01', # sk... | 39,995 |
https://github.com/tendrie/datalift/blob/master/s4ac/shi3ld-policy-manager/shi3ld-policy-manager/public/javascripts/views/wizard.js | Github Open Source | Open Source | CECILL-B | 2,021 | datalift | tendrie | JavaScript | Code | 165 | 543 | /**
* Abstract view to collect method to be inherithed by all wizard views
*/
define([
'jquery',
'underscore',
'backbone',
'bootstrap'
], function($, _, Backbone){
var WizardView = Backbone.View.extend({
closeOnEsc: function (e) {
//esc pressed
if (e.keyCode == 27) {
this.model.trigger('sa... | 32,553 |
https://github.com/Baoxiaohe/rabbit-tasker/blob/master/index.js | Github Open Source | Open Source | MIT | 2,020 | rabbit-tasker | Baoxiaohe | JavaScript | Code | 7 | 19 | const master = require('./lib/master')
module.exports = master;
| 49,082 |
https://github.com/cha-yh/react-boilerplate-by-cha/blob/master/src/containers/ExampleContainer/ExampleContainer.js | Github Open Source | Open Source | MIT | 2,019 | react-boilerplate-by-cha | cha-yh | JavaScript | Code | 223 | 806 | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { setSomethingAsync, getExample } from 'store/modules/example';
import image from 'images/exampleImg/window.png';
import classnames from 'classnames/bind';
import styles from './ExampleContainer.module.scss';
import './ExampleConta... | 46,677 |
https://github.com/dbeerten/iesi-ui/blob/master/src/views/routes.ts | Github Open Source | Open Source | MIT | 2,020 | iesi-ui | dbeerten | TypeScript | Code | 17 | 53 | export enum ROUTES {
CURRENT_INDEX_PAGE = './',
DASHBOARD = 'dashboard',
ABOUT = 'about',
ABOUT_TEAM = 'team',
}
| 2,907 |
https://github.com/darken1/dhis2darken/blob/master/dhis-2/dhis-web/dhis-web-tracker-capture/src/main/webapp/dhis-web-tracker-capture/components/notes/notes-controller.js | Github Open Source | Open Source | BSD-3-Clause | 2,014 | dhis2darken | darken1 | JavaScript | Code | 10 | 55 | trackerCapture.controller('NotesController',
function($scope,
storage,
TranslationService) {
TranslationService.translate();
$scope.attributes = storage.get('ATTRIBUTES');
}); | 40,817 |
https://github.com/konchunas/bash-to-fish/blob/master/test/comment/test.sh | Github Open Source | Open Source | MIT | 2,022 | bash-to-fish | konchunas | Shell | Code | 8 | 12 | # this is a comment ; echo foo
| 43,809 |
https://github.com/meomancer/inasafe-fba/blob/master/fixtures/schema/02_fbf/04_routines/00_functions/17_calculate_impact.sql | Github Open Source | Open Source | MIT | 2,020 | inasafe-fba | meomancer | SQL | Code | 125 | 402 | create or replace function kartoza_calculate_impact() returns character varying
language plpgsql
as
$$
BEGIN
refresh materialized view mv_flood_event_buildings with data;
refresh materialized view mv_flooded_building_summary with data;
refresh materialized view mv_flood_event_village_summary with data;
refresh mate... | 46,550 |
https://github.com/duyleomessi/java_datastruct_advance/blob/master/run.sh | Github Open Source | Open Source | Apache-2.0 | null | java_datastruct_advance | duyleomessi | Shell | Code | 13 | 73 | #!/bin/sh
echo "Build"
javac -cp src:libs/javax.json-1.0.4.jar src/application/MapApp.java
echo "Run"
java -cp src:libs/javax.json-1.0.4.jar application.MapApp
| 9,307 |
https://github.com/Proglab/csf/blob/master/templates/security/login.html.twig | Github Open Source | Open Source | MIT | 2,020 | csf | Proglab | Twig | Code | 112 | 440 | {% extends 'base.html.twig' %}
{% block title %}Log in!{% endblock %}
{% block body %}
<form method="post">
<div class="row">
<div class="col-lg-8 mb-4">
<h3>Login</h3>
<form name="sentMessage" id="contactForm" novalidate>
<div class="control... | 49,703 |
https://github.com/icevelyov/roslyn/blob/master/src/EditorFeatures/VisualBasicTest/Completion/CompletionProviderOrderTests.vb | Github Open Source | Open Source | MIT | 2,022 | roslyn | icevelyov | Visual Basic | Code | 326 | 1,565 | ' Licensed to the .NET Foundation under one or more agreements.
' The .NET Foundation licenses this file to you under the MIT license.
' See the LICENSE file in the project root for more information.
Imports Microsoft.CodeAnalysis.Completion
Imports Microsoft.CodeAnalysis.Completion.Providers
Imports Microsoft.CodeAn... | 8,074 |
https://github.com/yashashrirane/interlok/blob/master/interlok-core/src/main/java/com/adaptris/jdbc/CallableStatementExecutorImpl.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | interlok | yashashrirane | Java | Code | 171 | 409 | /*
* Copyright 2017 Adaptris Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... | 41,894 |
https://github.com/sivasundar-ks/omci-lib-go/blob/master/generated/pwatmconfigurationdata.go | Github Open Source | Open Source | Apache-2.0 | null | omci-lib-go | sivasundar-ks | Go | Code | 776 | 1,857 | /*
* Copyright (c) 2018 - present. Boling Consulting Solutions (bcsw.net)
* Copyright 2020-present Open Networking Foundation
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://w... | 39,362 |
https://github.com/rickqi/datart/blob/master/frontend/src/app/pages/DashBoardPage/pages/BoardEditor/components/ControllerWidgetPanel/ControllerConfig/OtherSet.tsx/RadioStyle/RadioStyleSet.tsx | Github Open Source | Open Source | Apache-2.0 | null | datart | rickqi | TypeScript | Code | 153 | 326 | /**
* Datart
*
* Copyright 2021
*
* 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 t... | 22,168 |
https://github.com/ExLuzZziVo/AspNetCore.CustomValidation/blob/master/src/TanvirArjel.CustomValidation.AspNetCore/Adapters/RequiredIfAttributeAdapter.cs | Github Open Source | Open Source | MIT | null | AspNetCore.CustomValidation | ExLuzZziVo | C# | Code | 193 | 830 | // <copyright file="RequiredIfAttributeAdapter.cs" company="TanvirArjel">
// Copyright (c) TanvirArjel. All rights reserved.
// </copyright>
using System;
using System.Collections.Generic;
using Microsoft.AspNetCore.Mvc.DataAnnotations;
using Microsoft.AspNetCore.Mvc.ModelBinding.Validation;
using Microsoft.Extension... | 43,672 |
https://github.com/AgriculturalModelExchangeInitiative/SQ_Wheat_Phenology/blob/master/src/stics/SQ_Wheat_Phenology/PhenologyComponent.f90 | Github Open Source | Open Source | MIT | 2,022 | SQ_Wheat_Phenology | AgriculturalModelExchangeInitiative | Fortran Free Form | Code | 6,352 | 14,840 | MODULE Phenologymod
USE list_sub
USE Phyllochronmod
USE Phylsowingdatecorrectionmod
USE Shootnumbermod
USE Updateleafflagmod
USE Updatephasemod
USE Leafnumbermod
USE Vernalizationprogressmod
USE Ismomentregistredzc_39mod
USE Cumulttfrommod
USE Updatecalendarmod
USE Regist... | 16,495 |
https://github.com/ikrutik/finance_bot/blob/master/src/rest/applications/aiogram/endpoints/callbacks.py | Github Open Source | Open Source | MIT | null | finance_bot | ikrutik | Python | Code | 125 | 639 | """
Callback handlers
"""
from aiogram import types
from src.domains.types import PurchaseStates
from src.interfaces.finance_interface import FinanceBotInterface
from src.libs import keyboard
from src.rest.applications.aiogram.bootstrap import get_dispatcher
dispatcher = get_dispatcher()
@dispatcher.callback_query_... | 7,469 |
https://github.com/carlosdevletian/matex/blob/master/resources/assets/js/components/orders/Show.vue | Github Open Source | Open Source | MIT | 2,019 | matex | carlosdevletian | Vue | Code | 144 | 668 | <template>
<order-template>
<p slot="items-title">Ordered items</p>
<div slot="table-header" class="borderless">
<table class="table borderless mg-0">
<tbody>
<tr>
<td class="col-xs-7">
<p class="text... | 4,526 |
https://github.com/r5r3/fpluslib/blob/master/src/scidata/fplus_cdi_async_writer.cpp | Github Open Source | Open Source | BSD-3-Clause | 2,019 | fpluslib | r5r3 | C++ | Code | 481 | 1,350 | #include "fplus_cdi_async_writer.h"
// all writer objects are stored in a map. The fortran routines get only the index returned
map<int,cdi_async_writer*> writers;
// in case of multiple writers, only one is allowed to execute CDI commands. Is CDI thread save?
mutex cdimtx;
// constructor for the writer
cdi_async_w... | 10,981 |
https://github.com/abhinav-v058/BillingApp/blob/master/BillingApp/BillingApp/BillingApp.Program/CodingTestTax.cs | Github Open Source | Open Source | MIT | null | BillingApp | abhinav-v058 | C# | Code | 33 | 103 | using System;
using System.Collections.Generic;
using System.Text;
namespace BillingApp.BillingApp.Program
{
public class CodingTestTax:ITax
{
float ITax.Percentage { get; set; }
string ITax.Name { get; set; }
HashSet<ItemTypeEnum> ITax.ExemptedItemTypes { get; set; } ... | 210 |
https://github.com/Artoria-Huang/home1Module/blob/master/Example/Pods/Target Support Files/home1Module/home1Module-dummy.m | Github Open Source | Open Source | MIT | 2,018 | home1Module | Artoria-Huang | Objective-C | Code | 10 | 44 | #import <Foundation/Foundation.h>
@interface PodsDummy_home1Module : NSObject
@end
@implementation PodsDummy_home1Module
@end
| 7,105 |
https://github.com/JamiuJimoh/react-portfolio/blob/master/src/components/screen/About/About.js | Github Open Source | Open Source | 2,020 | react-portfolio | JamiuJimoh | JavaScript | Code | 182 | 558 | import React from 'react';
import './About.css';
const About = (props) => {
return (
<div id="about" data-aos={props.data} className="about__me">
<div className="about">
<h1>LET ME INTRODUCE MYSELF</h1>
<p>
They say do what you love and you will enjoy every second of work. Learning new things and so... | 20,418 | |
https://github.com/mblarsen/laravel-dynamic-factories/blob/master/tests/ExampleTest.php | Github Open Source | Open Source | MIT | null | laravel-dynamic-factories | mblarsen | PHP | Code | 29 | 128 | <?php
namespace Mblarsen\LaravelDynamicFactories\Tests;
use Orchestra\Testbench\TestCase;
use Mblarsen\LaravelDynamicFactories\LaravelDynamicFactoriesServiceProvider;
class ExampleTest extends TestCase
{
protected function getPackageProviders($app)
{
return [LaravelDynamicFactoriesServiceProvider::c... | 11,916 |
https://github.com/misaka9981/SimpleBlog/blob/master/src/main/java/com/cxy/blog/mapper/CommentMapper.java | Github Open Source | Open Source | MIT | null | SimpleBlog | misaka9981 | Java | Code | 13 | 66 | package com.cxy.blog.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cxy.blog.model.Comment;
public interface CommentMapper extends BaseMapper<Comment> {
}
| 37,078 |
https://github.com/hogsy/xtread/blob/master/src/Tread/TextureBar.cpp | Github Open Source | Open Source | MIT | 2,019 | xtread | hogsy | C++ | Code | 184 | 621 | // TextureBar.cpp : implementation file
//
#include "stdafx.h"
#include "tread3d.h"
#include "TextureBar.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CTextureBar dialog
CTextureBar... | 19,681 |
https://github.com/De7vID/flingon-assister/blob/master/lib/klingontext.dart | Github Open Source | Open Source | Apache-2.0 | null | flingon-assister | De7vID | Dart | Code | 397 | 1,022 | import 'package:flutter/material.dart';
import 'package:flutter/gestures.dart';
class KlingonText extends RichText {
final TextStyle style;
// Constructs a new KlingonText widget
//
// fromString: The source string, possibly containing {tlhIngan Hol mu'mey}
// onTap: A callback to be run when links are tapp... | 15,241 |
https://github.com/ericmutta/samples/blob/master/snippets/visualbasic/VS_Snippets_Remoting/Dns_Begin_EndResolve/VB/dns_begin_endresolve.vb | Github Open Source | Open Source | CC-BY-4.0, MIT | 2,019 | samples | ericmutta | Visual Basic | Code | 282 | 738 | '
' This program demonstrates 'BeginResolve' and 'EndResolve' methods of Dns class.
' It obtains the 'IPHostEntry' object by calling 'BeginResolve' and 'EndResolve' method
' of 'Dns' class by passing a URL, a callback function and an instance of 'RequestState'
' class.Then prints host name, IP address list a... | 45,421 |
https://github.com/gries/OktolabMediaBundle/blob/master/Command/DeleteEpisodeCommand.php | Github Open Source | Open Source | MIT | null | OktolabMediaBundle | gries | PHP | Code | 97 | 414 | <?php
namespace Oktolab\MediaBundle\Command;
use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;
... | 16,102 |
https://github.com/fanjieqi/LeetCodeRuby/blob/master/1201-1300/1275. Find Winner on a Tic Tac Toe Game.rb | Github Open Source | Open Source | MIT | 2,020 | LeetCodeRuby | fanjieqi | Ruby | Code | 104 | 294 | # @param {Integer[][]} moves
# @return {String}
def tictactoe(moves)
row, col, diag1, diag2 = {}, {}, {}, {}
moves.each_with_index do |(x, y), i|
row[x] = row[x].to_i + (i.even? ? 1 : -1)
col[y] = col[y].to_i + (i.even? ? 1 : -1)
diag1[x+y] = diag1[x+y].to_i + (i.even? ? 1 : -1)
diag2[x-y] = diag2[x... | 6,149 |
https://github.com/JMMackenzie/Variable-BMW/blob/master/bm25.hpp | Github Open Source | Open Source | Apache-2.0 | 2,021 | Variable-BMW | JMMackenzie | C++ | Code | 99 | 273 | #pragma once
#include <cmath>
namespace ds2i {
struct bm25 {
static constexpr float b = 0.4;
static constexpr float k1 = 0.9;
static float doc_term_weight(uint64_t freq, float norm_len)
{
float f = (float)freq;
return f / (f + k1 * (1.0f - b + b * norm_le... | 35,706 |
https://github.com/Epi-Info/Entomology-App/blob/master/src/main/java/goldengine/java/SymbolTypeConstants.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | Entomology-App | Epi-Info | Java | Code | 175 | 397 | package goldengine.java;
/*
* Licensed Material - Property of Matthew Hawkins (hawkini@barclays.net)
*
* GOLDParser - code ported from VB - Author Devin Cook. All rights reserved.
*
* No modifications to this code are allowed without the permission of the author.
*/
/**-------------------------------------------... | 19,124 |
https://github.com/tomsnail/snail-dev/blob/master/snail-third-extends/snail-e3-tx/snail-e3-tx-weixin/src/main/java/cn/tomsnail/snail/e3/tx/weixin/util/sucai/MediaOper.java | Github Open Source | Open Source | Apache-2.0 | 2,019 | snail-dev | tomsnail | Java | Code | 91 | 484 | package cn.tomsnail.snail.e3.tx.weixin.util.sucai;
import java.io.File;
public interface MediaOper {
// 上传多媒体
String upload_media = "/media/upload?access_token=%s&type=%s";
// 下载多媒体
String get_media = "/media/get?access_token=%s&media_id=%s";
/**
* 上传多媒体文件
*
* <pre/>
* 上传... | 23,117 |
https://github.com/samuelhehe/Property/blob/master/app/src/main/java/xj/property/beans/NeighborDetailsV3Bean.java | Github Open Source | Open Source | Apache-2.0 | 2,018 | Property | samuelhehe | Java | Code | 490 | 1,507 | package xj.property.beans;
import java.util.List;
/**
* 作者:che on 2016/3/9 11:39
* ********************************************
* 公司:北京小间科技发展有限公司
* ********************************************
* 界面功能:
*/
public class NeighborDetailsV3Bean {
private int cooperationId;
private String title;
private S... | 44,426 |
https://github.com/cecimol/Plantillas/blob/master/Routes/chat.js | Github Open Source | Open Source | MIT | null | Plantillas | cecimol | JavaScript | Code | 59 | 177 | const express = require("express");
const { Router } = express;
const router = new Router();
const { readFileAsync, writeFileAsync } = require("../helpers");
router.post("/", async (req, res) => {
const chat = await readFileAsync("chat");
const obj = {
email: req.body.email,
mensaje: req.body.mensaje,
};... | 10,429 |
https://github.com/AzureMentor/yo/blob/master/lib/routes/help.js | Github Open Source | Open Source | BSD-2-Clause | 2,019 | yo | AzureMentor | JavaScript | Code | 110 | 332 | 'use strict';
const inquirer = require('inquirer');
const opn = require('opn');
module.exports = app => {
app.insight.track('yoyo', 'help');
return inquirer.prompt([{
name: 'whereTo',
type: 'list',
message: 'Here are a few helpful resources.\n\nI will open the link you select in your browser for you',... | 17,560 |
https://github.com/phoddie/kinomajs/blob/master/kinoma/kpr/extensions/coap/kprCoAPMessage.c | Github Open Source | Open Source | LicenseRef-scancode-pcre, NICTA-1.0, BSD-3-Clause, WTFPL, IJG, Zlib, dtoa, FTL, MIT, Apache-2.0, LicenseRef-scancode-public-domain, LicenseRef-scancode-unknown-license-reference | 2,016 | kinomajs | phoddie | C | Code | 2,423 | 9,416 | /*
* Copyright (C) 2010-2015 Marvell International Ltd.
* Copyright (C) 2002-2010 Kinoma, Inc.
*
* 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.... | 27,571 |
https://github.com/futurum-dev/dotnet.futurum.webapiendpoint/blob/master/test/Futurum.WebApiEndpoint.Tests/OpenApi/WebApiEndpointDotnetTypeToOpenApiMapperTests.IsRequired.cs | Github Open Source | Open Source | MIT | null | dotnet.futurum.webapiendpoint | futurum-dev | C# | Code | 57 | 323 | using FluentAssertions;
using Futurum.Core.Option;
using Futurum.WebApiEndpoint.OpenApi;
using Microsoft.AspNetCore.Http;
using Xunit;
namespace Futurum.WebApiEndpoint.Tests.OpenApi;
public class WebApiEndpointDotnetTypeToOpenApiIsRequiredMapperTests
{
[Theory]
[InlineData(typeof(string), true)]
[Inlin... | 4,078 |
https://github.com/reevoo/reevoomark-java-api/blob/master/taglib/src/test/java/com.reevoo.taglib/ReevooConversationsTest.java | Github Open Source | Open Source | MIT | 2,016 | reevoomark-java-api | reevoo | Java | Code | 132 | 764 | package com.reevoo.taglib;
import com.reevoo.client.ReevooMarkClient;
import com.reevoo.utils.TaglibConfig;
import org.junit.Before;
import org.junit.Test;
import static org.mockito.Mockito.*;
import com.mockrunner.tag.*;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.jsp.PageContext;
import java... | 31,496 |
https://github.com/AlexanderSemenyak/Fusee/blob/master/src/Engine/Core/SceneRayCaster.cs | Github Open Source | Open Source | Zlib | null | Fusee | AlexanderSemenyak | C# | Code | 778 | 1,986 | using Fusee.Engine.Common;
using Fusee.Engine.Core.Scene;
using Fusee.Math.Core;
using Fusee.Xene;
using System;
using System.Collections.Generic;
namespace Fusee.Engine.Core
{
/// <summary>
/// This class contains information about the scene of the picked point.
/// </summary>
public class RayCastRes... | 42,993 |
https://github.com/Saumitra07/Android-Applications/blob/master/ForumsApp/InClass08/app/src/main/java/com/example/inclass08/Utils.java | Github Open Source | Open Source | MIT | null | Android-Applications | Saumitra07 | Java | Code | 43 | 148 | package com.example.inclass08;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.text.ParseException;
import java.util.Calendar;
public class Utils {
public static class HelperFunctions
{
public static String getDate()
{
DateFormat ... | 27,808 |
https://github.com/securenative/react-awesome-query-builder/blob/master/build/npm/lib/components/containers/RuleContainer.js | Github Open Source | Open Source | MIT | null | react-awesome-query-builder | securenative | JavaScript | Code | 639 | 2,211 | 'use strict';
exports.__esModule = true;
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writabl... | 5,242 |
https://github.com/lawyu89/movie-recommender/blob/master/README.rdoc | Github Open Source | Open Source | MIT | null | movie-recommender | lawyu89 | RDoc | Code | 8 | 15 | Great Lyfe Coding Challenge for Flight Movie Recommendation
| 31,717 |
https://github.com/dirend/SoupBinTCP.NET/blob/master/SoupBinTCP.NET/Messages/SequencedData.cs | Github Open Source | Open Source | Apache-2.0 | 2,021 | SoupBinTCP.NET | dirend | C# | Code | 68 | 201 | using System;
using System.Linq;
namespace SoupBinTCP.NET.Messages
{
public class SequencedData : Message
{
public byte[] Message => Bytes.Skip(1).Take(Length - 1).ToArray();
public SequencedData(byte[] message)
{
const char type = 'S';
var messageLength = mess... | 29,671 |
https://github.com/nassan/Newbidder/blob/master/src/portable/MyPortableFactory.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | Newbidder | nassan | Java | Code | 74 | 191 | package portable;
import com.hazelcast.nio.serialization.Portable;
import com.hazelcast.nio.serialization.PortableFactory;
/**
* Create instances of the Portable classes.
*
* @author ingemar.svensson
*
*/
public class MyPortableFactory implements PortableFactory {
/**
* Create an instance of a Portabl... | 34,340 |
https://github.com/ventanium/ventanium/blob/master/src/vtm/net/socket_stream_server.c | Github Open Source | Open Source | BSD-2-Clause | 2,020 | ventanium | ventanium | C | Code | 2,488 | 13,813 | /*
* Copyright (C) 2018-2020 Matthias Benkendorf
*/
#include "socket_stream_server.h"
#include <string.h> /* memset() */
#include <vtm/core/error.h>
#include <vtm/core/lang.h>
#include <vtm/core/list.h>
#include <vtm/core/map.h>
#include <vtm/core/squeue.h>
#include <vtm/net/socket_intl.h>
#include <vtm/net/socket... | 29,519 |
https://github.com/panoramicdata/Errigal.Api/blob/master/Errigal.Api/Data/Ticketer/Port.cs | Github Open Source | Open Source | MIT | null | Errigal.Api | panoramicdata | C# | Code | 50 | 145 | using System.Collections.Generic;
using System.Runtime.Serialization;
namespace Errigal.Api.Data.Ticketer
{
[DataContract]
public class Port : NamedIdentifiedItem
{
[DataMember(Name = "index")]
public int Index { get; set; }
[DataMember(Name = "status")]
public string Status { get; set; } = string.Empty;
... | 7,819 |
https://github.com/PillWatcher/pillwatcher-dpb-patient-service/blob/master/src/main/java/br/com/pillwatcher/dpb/repositories/MedicineRepository.java | Github Open Source | Open Source | MIT | 2,020 | pillwatcher-dpb-patient-service | PillWatcher | Java | Code | 28 | 137 | package br.com.pillwatcher.dpb.repositories;
import br.com.pillwatcher.dpb.entities.Medicine;
import io.swagger.model.DosageTypeEnum;
import org.springframework.data.jpa.repository.JpaRepository;
import java.util.Optional;
public interface MedicineRepository extends JpaRepository<Medicine, Long> {
Optional<Medi... | 33,885 |
https://github.com/ERNICommunity/at11/blob/master/parsers/sevcenkova/klubovna.ts | Github Open Source | Open Source | Unlicense | 2,020 | at11 | ERNICommunity | TypeScript | Code | 92 | 255 | import { IMenuItem } from "../IMenuItem";
import { IParser } from "../IParser";
import { Sme } from "../sme";
import { parsePrice } from "../parserUtil";
export class Klubovna extends Sme implements IParser {
public parse(html: string, date: Date, doneCallback: (menu: IMenuItem[]) => void): void {
const me... | 2,667 |
https://github.com/mvysny/karibu-tools/blob/master/testsuite/src/main/kotlin/RouterUtilsTest.kt | Github Open Source | Open Source | Apache-2.0 | 2,021 | karibu-tools | mvysny | Kotlin | Code | 539 | 2,249 | package com.github.mvysny.kaributools
import com.github.mvysny.dynatest.DynaNodeGroup
import com.github.mvysny.dynatest.DynaTest
import com.github.mvysny.dynatest.expectList
import com.github.mvysny.dynatest.expectThrows
import com.github.mvysny.kaributesting.v10.*
import com.vaadin.flow.component.UI
import com.vaadin... | 9,975 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.