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/prateekbaheti/gauge_cross_browser/blob/master/src/test/java/driver/Driver.java | Github Open Source | Open Source | MIT | null | gauge_cross_browser | prateekbaheti | Java | Code | 70 | 162 | package driver;
import com.thoughtworks.gauge.*;
import org.openqa.selenium.WebDriver;
public class Driver {
// Holds the WebDriver instance
public static WebDriver webDriver;
// Initialize a webDriver instance of required browser
// Since this does not have a significance in the application's busin... | 30,164 |
https://github.com/kwonsungil/YOLO-tensorflow-/blob/master/yolo_v1_demo.py | Github Open Source | Open Source | Apache-2.0 | null | YOLO-tensorflow- | kwonsungil | Python | Code | 37 | 156 | from model.yolo_v1 import yolo_v1
import cv2
import os
if __name__ == '__main__':
yolo = yolo_v1(False)
sample_dir = 'D:\\yolo_keras\\sample'
images = os.listdir(sample_dir)
for image in images:
image = cv2.imread(os.path.join(sample_dir, image))
result = yolo.detect(image)
yol... | 33,644 |
https://github.com/manolo317/Site-ASPTT-Nantes-Handball/blob/master/src/PlanningBundle/PlanningBundle.php | Github Open Source | Open Source | MIT | null | Site-ASPTT-Nantes-Handball | manolo317 | PHP | Code | 11 | 39 | <?php
namespace PlanningBundle;
use Symfony\Component\HttpKernel\Bundle\Bundle;
class PlanningBundle extends Bundle
{
}
| 34,742 |
https://github.com/jogs78/acumedic/blob/master/app/Http/Controllers/AntecedentesController.php | Github Open Source | Open Source | MIT | 2,022 | acumedic | jogs78 | PHP | Code | 219 | 1,449 | <?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\ViewModel\PacienteViewModel;
use App\ViewModel\AntecedenteViewModel;
class AntecedentesController extends Controller
{
public function __construct()
{
$this->middleware('auth');
$this->middleware('permission:Antecedent... | 8,822 |
https://github.com/asomfai/unreal.lua/blob/master/Plugins/UnrealLua/LuaSource/ui/nzluasimpleview.lua | Github Open Source | Open Source | MIT | 2,022 | unreal.lua | asomfai | Lua | Code | 57 | 324 | require "ui.nzluabaseviewclass"
NZLuaSimpleViewClass = Inherit(NZLuaBaseViewClass)
function NZLuaSimpleViewClass:Ctor( )
if not self.m_DestroyDelegate then
self.m_DestroyDelegate = self.DestroyEvent
self.m_HasRelease = false
assert(self.m_DestroyDelegate)
self.m_DestroyDelegate:Add(InsCallBack(self.OnDestroyE... | 37,158 |
https://github.com/ubipo/opf/blob/master/templates/info.handlebars | Github Open Source | Open Source | MIT | 2,020 | opf | ubipo | null | Spoken | 208 | 544 | <div>
<div>
<h1 id="modal-info-title" class="tagline">OPF - OSM Phone Formatter</h1>
<p>
Easily fix the formatting of phone and fax numbers on OpenStreetMap<br>
Beta - version <span id="version">{{version}}</span>
</p>
<p>When you refresh the map (using the topright rotating arrows button... | 1,648 |
https://github.com/dmgerman/camel/blob/master/components/camel-zendesk/src/main/java/org/apache/camel/component/zendesk/ZendeskComponent.java | Github Open Source | Open Source | Apache-2.0 | null | camel | dmgerman | Java | Code | 641 | 2,455 | begin_unit|revision:0.9.5;language:Java;cregit-version:0.0.1
begin_comment
comment|/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses ... | 11,470 |
https://github.com/oppia/kotlitex/blob/master/kotlitex/src/main/java/io/github/karino2/kotlitex/functions/FunctionFont.kt | Github Open Source | Open Source | MIT | 2,022 | kotlitex | oppia | Kotlin | Code | 236 | 828 | package io.github.karino2.kotlitex.functions
import io.github.karino2.kotlitex.*
import java.lang.IllegalArgumentException
object FunctionFont {
fun renderNodeBuilder(group: ParseNode, options: Options) : RenderNode {
if (group !is PNodeFont) {
throw IllegalArgumentException("unexpected type i... | 14,641 |
https://github.com/uhop/perfjs/blob/master/static/js/stats.js | Github Open Source | Open Source | AFL-2.1 | 2,020 | perfjs | uhop | JavaScript | Code | 577 | 1,454 | dojo.provide("perfjs.stats");
perfjs.stats.resample = function(a, n){
// bootsrap resampling
var stats = a.stats, reps = a.reps, len = stats.length, t = new Array(n);
for(var i = 0; i < n; ++i){
var m = 0;
for(var j = 0; j < len; ++j){
m += stats[Math.floor(Math.random() * len)]... | 20,950 |
https://github.com/pt-arvind/moto/blob/master/tests/test_athena/test_athena.py | Github Open Source | Open Source | Apache-2.0 | 2,020 | moto | pt-arvind | Python | Code | 412 | 2,118 | from __future__ import unicode_literals
from botocore.exceptions import ClientError
from nose.tools import assert_raises
import boto3
import sure # noqa
from moto import mock_athena
@mock_athena
def test_create_work_group():
client = boto3.client("athena", region_name="us-east-1")
response = client.create... | 37,150 |
https://github.com/marartz/Gastromio/blob/master/src/Gastromio.App/Models/AddDeviatingOpeningPeriodToRestaurantModel.cs | Github Open Source | Open Source | MIT | 2,021 | Gastromio | marartz | C# | Code | 30 | 71 | namespace Gastromio.App.Models
{
public class AddDeviatingOpeningPeriodToRestaurantModel
{
public DateModel Date { get; set; }
public int Start { get; set; }
public int End { get; set; }
}
}
| 3,444 |
https://github.com/aliakseis/pdfium-fork/blob/master/xfa/fde/tto/fde_textout.cpp | Github Open Source | Open Source | BSD-3-Clause | 2,019 | pdfium-fork | aliakseis | C++ | Code | 2,724 | 11,954 | // Copyright 2014 PDFium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
#include "xfa/fde/tto/fde_textout.h"
#include <algorithm>
#include "core/fxc... | 44,328 |
https://github.com/EthanZhq/adminDemo/blob/master/src/views/index/index.vue | Github Open Source | Open Source | MIT | null | adminDemo | EthanZhq | Vue | Code | 444 | 2,179 | <template>
<div class="content">
<div style="padding:0 30px">
<div class="content-top">
<div class="content-top-head">
<el-row>
<el-col :span="3">
<el-avatar
style="width:100px;height:100px;"
:src="circleUrl"
/>
... | 46,780 |
https://github.com/eumario/wxruby/blob/master/swig/classes/include/wxSocketClient.h | Github Open Source | Open Source | MIT | 2,021 | wxruby | eumario | C | Code | 101 | 250 | // wxSocketClient.h
// This file was automatically generated
// by extractxml.rb, part of the wxRuby project
// Do not make changes directly to this file!
#if !defined(_wxSocketClient_h_)
#define _wxSocketClient_h_
class wxSocketClient : public wxSocketBase
{
public:
/**
* \brief Constructor.
* \param wxSocketFl... | 28,391 |
https://github.com/talent3310/quiikmeetings/blob/master/server/services/notification/index.js | Github Open Source | Open Source | MIT | null | quiikmeetings | talent3310 | JavaScript | Code | 560 | 1,599 | /**
* User: David
* Date: 1/23/17
*/
module.exports = function() {
var EventThread = require('../../models/eventThread')();
var User = require('../../models/user')();
var emailSender = require('../email/email.sender')();
var intervalTime = 1; // minutes
var cron = setInterval(function(str1, str... | 43,280 |
https://github.com/sc0ttkclark/geocoder-extra/blob/master/src/Geocoder/Provider/GeocodioProvider.php | Github Open Source | Open Source | MIT | 2,020 | geocoder-extra | sc0ttkclark | PHP | Code | 438 | 1,383 | <?php
/**
* This file is part of the Geocoder package.
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @license MIT License
*/
namespace Geocoder\Provider;
use Geocoder\Exception\InvalidCredentials;
use Geocoder\Exception\NoRes... | 8,399 |
https://github.com/ljodal/heim/blob/master/heim/cli.py | Github Open Source | Open Source | MIT | 2,022 | heim | ljodal | Python | Code | 99 | 343 | import asyncio
import inspect
from importlib import import_module
from pathlib import Path
import click
class AsyncAwareContext(click.Context):
"""
A click context that invokes async functions with asyncio.run.
"""
def invoke(self, *args, **kwargs):
r = super().invoke(*args, **kwargs)
... | 16,205 |
https://github.com/Talbatross/18xx/blob/master/assets/app/view/game/part/small_item.rb | Github Open Source | Open Source | MIT | null | 18xx | Talbatross | Ruby | Code | 166 | 854 | # frozen_string_literal: true
require 'view/game/part/base'
module View
module Game
module Part
module SmallItem
P_RIGHT_CORNER = {
region_weights: Base::RIGHT_CORNER,
x: 75,
y: 0,
}.freeze
P_LEFT_CORNER = {
region_weights: Base::LEFT_CORNER... | 30,876 |
https://github.com/kortov/gitstrap/blob/master/context/utils.go | Github Open Source | Open Source | MIT | 2,022 | gitstrap | kortov | Go | Code | 151 | 386 | package context
import "errors"
// ResolveOwner resolves GitHub repo owner.
// It's either current GitHub user login resolved from
// API token or organization login provided as `-org`
// option.
func (ctx *Context) ResolveOwner() error {
if org, hasOrg := ctx.Opt["org"]; hasOrg {
ctx.setOwner(org)
return nil
}... | 336 |
https://github.com/doodersrage/useless-java/blob/master/src/Calculator.java | Github Open Source | Open Source | MIT | 2,015 | useless-java | doodersrage | Java | Code | 40 | 84 | public class Calculator {
public static void main(String[] arguments) {
float sum = 0;
for (int i = 0; i < arguments.length; i++) {
sum = sum + Float.parseFloat(arguments[i]);
}
System.out.println("Those numbers add up to " + sum);
}
} | 26,514 |
https://github.com/muelli/scapi/blob/master/src/java/edu/biu/scapi/primitives/prf/PrpFromPrfFixed.java | Github Open Source | Open Source | MIT | 2,021 | scapi | muelli | Java | Code | 1,078 | 2,130 | /**
* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
*
* Copyright (c) 2012 - SCAPI (http://crypto.biu.ac.il/scapi)
* This file is part of the SCAPI project.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Permission is hereby granted, free of charge, to any person ob... | 44,851 |
https://github.com/siefkenj/tapp/blob/master/backend/spec/models/position_preference_spec.rb | Github Open Source | Open Source | MIT | 2,021 | tapp | siefkenj | Ruby | Code | 80 | 244 | # frozen_string_literal: true
require 'rails_helper'
RSpec.describe PositionPreference, type: :model do
describe 'associations' do
it { should belong_to(:position) }
it { should belong_to(:application) }
end
end
# == Schema Information
#
# Table name: position_preferences
#
# id ... | 14,987 |
https://github.com/szk21/Cease/blob/master/Framework/Test/Root/BaseClass.cs | Github Open Source | Open Source | Apache-2.0 | null | Cease | szk21 | C# | Code | 3,147 | 8,769 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml;
namespace Cease.Test.Root
{
/// <summary>
/// BaseClass
/// </summary>
public class BaseClass
{
public bool ChannelToFrequency(string sMode, string sBand, int ULChannel, ref dou... | 8,633 |
https://github.com/ivanseidel/ArdUI/blob/master/View.cpp | Github Open Source | Open Source | MIT | 2,021 | ArdUI | ivanseidel | C++ | Code | 293 | 808 | #include <Arduino.h>
#include "ArdUI.h"
#include "View.h"
#include "Graphics.h"
View::View(){
_onTouch = NULL;
_onRender = NULL;
_invalidate = true;
_rel = Point(0,0); // Relative position is 0
_requestTouch = true;
o = Point(0,0);
w = 0;
h = 0;
_left = 0;
_top = 0;
_right = 0;
_bottom = 0;
ViewID = (int... | 5,858 |
https://github.com/parxyHash/Blogging-Platform/blob/master/src/containers/blog-landing-nav/blog-landing-nav.js | Github Open Source | Open Source | MIT | 2,020 | Blogging-Platform | parxyHash | JavaScript | Code | 119 | 393 | import React, { useEffect, useRef, useState } from "react";
import { Link } from "react-router-dom";
import { Avatar } from "antd";
import "./blog-landing-nav.scss";
const BlogNav = () => {
const [scroll, setScroll] = useState(false);
const [user, setUser] = useState(false);
const navRef = useRef(null);
useEf... | 12,896 |
https://github.com/hanaboso/commons-bundle/blob/master/src/Exception/FileStorageException.php | Github Open Source | Open Source | Apache-2.0 | null | commons-bundle | hanaboso | PHP | Code | 55 | 174 | <?php declare(strict_types=1);
namespace Hanaboso\CommonsBundle\Exception;
use Hanaboso\Utils\Exception\PipesFrameworkExceptionAbstract;
/**
* Class FileStorageException
*
* @package Hanaboso\CommonsBundle\Exception
*/
final class FileStorageException extends PipesFrameworkExceptionAbstract
{
public const F... | 15,749 |
https://github.com/ronnasak-best/Vipawedding/blob/master/resources/views/frontend/user/myaccount.blade.php | Github Open Source | Open Source | MIT | null | Vipawedding | ronnasak-best | PHP | Code | 489 | 2,836 | @extends('frontend.user.user_layout.master')
@section('title', 'List Categories')
@section('user-manage')
<div class="card">
<div class="title-head">
<div class="account-icon">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24">
... | 13,843 |
https://github.com/hacorbin/hastings/blob/master/src/couch_epi/src/couch_epi_codegen.erl | Github Open Source | Open Source | Apache-2.0 | 2,021 | hastings | hacorbin | Erlang | Code | 274 | 841 | % Licensed under the Apache License, Version 2.0 (the "License"); you may not
% use this file except in compliance with the License. You may obtain a copy of
% the License at
%
% http://www.apache.org/licenses/LICENSE-2.0
%
% Unless required by applicable law or agreed to in writing, software
% distributed under the Li... | 13,096 |
https://github.com/MangoPlex/Minecraft-Projects/blob/master/GalaxyQuests/src/main/java/com/galaxy/galaxyquests/updaters/UserUpdater.java | Github Open Source | Open Source | MIT | null | Minecraft-Projects | MangoPlex | Java | Code | 66 | 415 | package com.galaxy.galaxyquests.updaters;
import com.galaxy.galaxyquests.QuestsPlugin;
import com.galaxy.galaxyquests.enums.UserOptionType;
import com.galaxy.galaxyquests.objects.user.User;
import me.hyfe.simplespigot.config.Config;
import java.util.Map;
public class UserUpdater {
private final Config options;
... | 20,355 |
https://github.com/wqybztt/vue-project-init/blob/master/src/router/index.js | Github Open Source | Open Source | MIT | null | vue-project-init | wqybztt | JavaScript | Code | 38 | 118 | import Vue from 'vue'
import Router from 'vue-router'
import Home from '@/pages/home'
import List from '@/pages/list'
Vue.use(Router)
export default new Router({
routes: [
{
path: '/',
name: 'Home',
component: Home
},
{
path:'/list/:id',
name:'List',
component:List
... | 24,132 |
https://github.com/jeschkies/lox-rs/blob/master/interpreter/src/parser.rs | Github Open Source | Open Source | Apache-2.0 | 2,022 | lox-rs | jeschkies | Rust | Code | 1,541 | 4,956 | use crate::error::{parser_error, Error};
use crate::syntax::{Expr, LiteralValue, Stmt};
use crate::token::{Token, TokenType};
pub struct Parser<'t> {
tokens: &'t Vec<Token>,
current: usize,
}
/// AKA match in Chapter 6.
macro_rules! matches {
( $sel:ident, $( $x:expr ),* ) => {
{
if $(... | 4,625 |
https://github.com/DarkCaster/TinySox/blob/master/Src/Main.cpp | Github Open Source | Open Source | MIT | null | TinySox | DarkCaster | C++ | Code | 1,077 | 5,270 | #include "ILogger.h"
#include "StdioLoggerFactory.h"
#include "IPAddress.h"
#include "MessageBroker.h"
#include "StartupHandler.h"
#include "ShutdownHandler.h"
#include "JobDispatcher.h"
#include "JobWorkerFactory.h"
#include "JobFactory.h"
#include "TCPServerListener.h"
#include "TCPCommService.h"
#include "User.h"
#i... | 16,986 |
https://github.com/RotanovPavel/Laravel/blob/master/app/Http/Controllers/ItemController.php | Github Open Source | Open Source | MIT | 2,019 | Laravel | RotanovPavel | PHP | Code | 423 | 1,765 | <?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Item;
use App\Brand;
use DB;
use File;
use Intervention\Image\ImageManagerStatic as Image;
class ItemController extends Controller
{
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/
... | 44,687 |
https://github.com/ScriptBox99/RestEase/blob/master/src/Common/Implementation/Analysis/TypeModel.cs | Github Open Source | Open Source | MIT | 2,022 | RestEase | ScriptBox99 | C# | Code | 94 | 286 | using System.Collections.Generic;
using System.Linq;
namespace RestEase.Implementation.Analysis
{
internal partial class TypeModel
{
public List<AttributeModel<HeaderAttribute>> HeaderAttributes { get; } = new List<AttributeModel<HeaderAttribute>>();
public List<AttributeModel<AllowAnyStatusCod... | 9,443 |
https://github.com/uga-rosa/neovim/blob/master/src/nvim/debugger.h | Github Open Source | Open Source | Vim | 2,022 | neovim | uga-rosa | C | Code | 17 | 97 | #ifndef NVIM_DEBUGGER_H
#define NVIM_DEBUGGER_H
#include <stdbool.h>
#include "nvim/ex_cmds_defs.h"
#ifdef INCLUDE_GENERATED_DECLARATIONS
# include "debugger.h.generated.h"
#endif
#endif // NVIM_DEBUGGER_H
| 43,301 |
https://github.com/Hexstream/cepl/blob/master/core/context/gl-context.lisp | Github Open Source | Open Source | BSD-2-Clause | 2,022 | cepl | Hexstream | Common Lisp | Code | 181 | 518 | (in-package :cepl.context)
;;------------------------------------------------------------
(defclass gl-context ()
((handle :initarg :handle :reader handle)
(version-major :initarg :version-major :reader major-version)
(version-minor :initarg :version-minor :reader minor-version)
(version-float :initarg :ve... | 27,465 |
https://github.com/joesheridan/income-tax-calculation/blob/master/app/utils/HeaderCarrierSyntax.scala | Github Open Source | Open Source | Apache-2.0 | null | income-tax-calculation | joesheridan | Scala | Code | 166 | 477 | /*
* Copyright 2022 HM Revenue & Customs
*
* 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 a... | 46,358 |
https://github.com/mydjangoprojects/countries-and-diplomats-app/blob/master/app/diplomat/tests/test_models.py | Github Open Source | Open Source | MIT | null | countries-and-diplomats-app | mydjangoprojects | Python | Code | 76 | 293 | from ..models import Diplomat
from django.test import TestCase
from ..choices import PATH_CHOICES
def get_display_val_of_choice_field(choices, val):
res = [pair[1] for pair in choices if pair[0] == val]
return res[0] if len(res) > 0 else None
class ModelTests(TestCase):
def test_diplomat_str(self):
... | 22,205 |
https://github.com/bmunoz89/nestjs-intro/blob/master/src/config/auth/auth.config.module.ts | Github Open Source | Open Source | MIT | 2,021 | nestjs-intro | bmunoz89 | TypeScript | Code | 64 | 214 | import { Module } from '@nestjs/common'
import { ConfigModule } from '@nestjs/config'
import { ConfigModuleOptions } from '@nestjs/config/dist/interfaces'
import authConfig from 'src/config/auth/auth.config'
import authConfigSchema from 'src/config/auth/auth.config.schema'
import { AuthConfigService } from 'src/config/... | 23,432 |
https://github.com/Ashutoshagal/The-RTM/blob/master/vendor/acacha/admin-lte-template-laravel/src/Exceptions/SpatieMenuAlreadyExists.php | Github Open Source | Open Source | MIT | 2,022 | The-RTM | Ashutoshagal | PHP | Code | 32 | 111 | <?php
namespace Acacha\AdminLTETemplateLaravel\Exceptions;
/**
* Class SpatieMenuAlreadyExists.
*
* @package Acacha\AdminLTETemplateLaravel\Exceptions
*/
class SpatieMenuAlreadyExists extends \Exception
{
/**
* SpatieMenuAlreadyExists constructor.
*/
public function __construct()
{
p... | 14,578 |
https://github.com/onomyprotocol/near-aurora-bridge/blob/master/module/x/nab/keeper/keeper_delegate_key.go | Github Open Source | Open Source | Apache-2.0 | null | near-aurora-bridge | onomyprotocol | Go | Code | 459 | 2,004 | package keeper
import (
"time"
codectypes "github.com/cosmos/cosmos-sdk/codec/types"
sdk "github.com/cosmos/cosmos-sdk/types"
stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types"
"github.com/onomyprotocol/near-aurora-bridge/module/x/nab/types"
)
/////////////////////////////
// ADDRESS DELEGATION /... | 46,705 |
https://github.com/TeaKatz/NLP_ModelTrainers/blob/master/src/nlp_modeltrainers/sentence_classification/MultilabelSentenceClassificationTrainerModule.py | Github Open Source | Open Source | MIT | null | NLP_ModelTrainers | TeaKatz | Python | Code | 100 | 414 | from nlp_losses import Losses
from nlp_metrics import Metrics
from ..BaseTrainerModule import BaseTrainerModule
class MultilabelSentenceClassificationTrainerModule(BaseTrainerModule):
def __init__(self, model, learning_rate=1e-3):
super().__init__(learning_rate)
self.model = model
def forward... | 41,368 |
https://github.com/tommydino93/tutorials/blob/master/3d_segmentation/torch/unet_inference_dict.py | Github Open Source | Open Source | Apache-2.0 | 2,022 | tutorials | tommydino93 | Python | Code | 482 | 1,415 | # Copyright 2020 MONAI Consortium
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agreed to in writing, s... | 42,954 |
https://github.com/iburinoc/gr-trace/blob/master/src/main.rs | Github Open Source | Open Source | MIT | 2,020 | gr-trace | iburinoc | Rust | Code | 721 | 2,633 | #[macro_use]
extern crate glium;
extern crate cgmath;
extern crate clap;
extern crate image;
extern crate time;
use glium::glutin::{EventsLoop, VirtualKeyCode, WindowBuilder};
use std::collections::HashSet;
use time::precise_time_ns;
use clap::{App, Arg, ArgMatches};
use cgmath::{vec3, Euler, Matrix3, Vector3};
u... | 36,175 |
https://github.com/Zadigo/ecommerce_marketplace_template/blob/master/mywebsite/mywebsite/settings.py | Github Open Source | Open Source | MIT | 2,021 | ecommerce_marketplace_template | Zadigo | Python | Code | 473 | 2,719 | from django.utils.translation import gettext_lazy as _
import logging
import os
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
# Quick-start development settings - unsuitable for production
# See https://docs.djangoprojec... | 25,955 |
https://github.com/emerginganalytics/ualr-cyber-gym/blob/master/container-applications/classified/xss/routes.py | Github Open Source | Open Source | MIT | 2,021 | ualr-cyber-gym | emerginganalytics | Python | Code | 144 | 674 | from flask import Blueprint, render_template, redirect, request
from globals import ds_client
from xss.config import *
# Blueprint Configuration
xss_bp = Blueprint(
'xss_bp', __name__,
url_prefix='/xss',
template_folder='templates',
static_folder='static'
)
@xss_bp.route("/xss_d/<workout_id>", method... | 32,652 |
https://github.com/vedmalex/SBTree/blob/master/dist/adapters/common/Emittable.js | Github Open Source | Open Source | MIT | null | SBTree | vedmalex | JavaScript | Code | 76 | 280 | "use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Emittable = void 0;
const events_1 = require("events");
class Emittable {
constructor() {
this.emitter = new events_1.EventEmitter();
this.listeners = [];
}
on(event, listener) {
this.emitter.on(even... | 30,577 |
https://github.com/kernel-community/signature-contract/blob/master/packages/dapp/src/components/SliderModal/AnimateSlideAndMint.js | Github Open Source | Open Source | MIT | 2,022 | signature-contract | kernel-community | JavaScript | Code | 67 | 202 | import SlideAndMint from './SlideAndMint';
import { motion, AnimatePresence } from 'framer-motion';
const AnimateModal = () => {
return (
<AnimatePresence>
<motion.div
initial={{ opacity: 0, y: -10 }}
animate={{ opacity: 1, y: 0 }}
exit={{ opacity: 0, y: -10 }}
transition={{... | 44,689 |
https://github.com/Nefertarii/CPP_Server/blob/master/.Old Version/Debug/Important/Httprocess/Accountconfirm.h | Github Open Source | Open Source | MIT | 2,021 | CPP_Server | Nefertarii | C | Code | 920 | 2,942 | #ifndef ACCOUNTCONFIRM_H_
#define ACCOUNTCONFIRM_H_
#include "../Gfilefunc.h"
#include "../Gjson.h"
#include "../Glog.h"
#include <algorithm>
//文字行 数据行在其下一行
struct Info_Line {
size_t password = 0;
size_t image = 0;
size_t alias = 0;
size_t id = 0;
};
//暂时用作数据库的替代
class Account_Parse {
private:
L... | 16,523 |
https://github.com/BlueDragonX/fm-dot/blob/master/vim/after/ftplugin/python.vim | Github Open Source | Open Source | BSD-3-Clause | null | fm-dot | BlueDragonX | null | Spoken | 14 | 40 | set expandtab
set textwidth=99
set tabstop=8
set softtabstop=4
set shiftwidth=4
set autoindent
:syntax on
| 26,525 |
https://github.com/z80oolong/Linuxbrew-for-Alpine/blob/master/lib/provision.rb | Github Open Source | Open Source | MIT | null | Linuxbrew-for-Alpine | z80oolong | Ruby | Code | 882 | 3,144 | # Provision Code.
Vagrant.configure("2") do |config|
# Setup /etc/resolv.conf.
config.vm.provision "shell", privileged: true, inline: %q[
(echo "nameserver 1.1.1.1" > /etc/resolv.conf && \
echo "nameserver 8.8.8.8" >> /etc/resolv.conf && \
echo "nameserver 8.8.4.4" >> /etc/resolv.conf && \
echo... | 16,501 |
https://github.com/redpencilio/app-mu-push-poc/blob/master/config/delta/rules.js | Github Open Source | Open Source | MIT | null | app-mu-push-poc | redpencilio | JavaScript | Code | 125 | 471 | export default [{
match: {
// form of element is {subject,predicate,object}
object: {
value: "http://mu.semte.ch/vocabularies/cache/CacheClear"
}
},
callback: {
url: "http://cache_clear/.mu/delta",
method: "POST"
},
options: {
resourceForma... | 35,296 |
https://github.com/ricban/blazor-server--recipes/blob/master/Recipes.Core/Request/RecipeSearchRequest.cs | Github Open Source | Open Source | MIT | null | blazor-server--recipes | ricban | C# | Code | 62 | 144 | using System.ComponentModel.DataAnnotations;
using Recipes.Core.Enumerations;
namespace Recipes.Core.Request
{
public class RecipeSearchRequest
{
[Required]
public SearchMode Type { get; set; }
[Required]
[StringLength(50, MinimumLength = 1)]
public string Text { get; ... | 41,516 |
https://github.com/fede-moya/atlas-guide/blob/master/app/buildcomponet.js | Github Open Source | Open Source | MIT | 2,020 | atlas-guide | fede-moya | JavaScript | Code | 201 | 561 | 'use strict';
let cachedContent = {};
const isContentChanged = (url, content) => {
if (url === undefined) {
return true;
}
if (content !== cachedContent[url]) {
cachedContent[url] = content;
return true;
} else {
return false;
}
};
module.exports = function(atlasCon... | 17,304 |
https://github.com/BloomTech-Labs/schematic-capture-fe/blob/master/src/shared/reducers/rootReducer.js | Github Open Source | Open Source | MIT | 2,020 | schematic-capture-fe | BloomTech-Labs | JavaScript | Code | 45 | 112 | import authReducer from "./authReducer";
import appReducer from "./appReducer";
import dashboardReducer from "./dashboardReducer";
import { combineReducers } from "redux";
const rootReducer = combineReducers({
app: appReducer,
auth: authReducer,
dashboard: dashboardReducer
});
export default rootReducer;
// th... | 1,552 |
https://github.com/wangsai/bigertech.com/blob/master/content/themes/bigertech/post-recommend.hbs | Github Open Source | Open Source | MIT | 2,015 | bigertech.com | wangsai | null | Spoken | 99 | 559 | {{!< default}}
{{#post}}
<div id="topScroll">
<div id="post-banner" class="pv-banner">
{{> "navbar"}}
<div class="bg-img-small">
<img class="lazy" data-original="{{image}}"/>
</div>
<div class="bg-img">
<img class="lazy" data-origin... | 28,243 |
https://github.com/teddywest32/intellij-community/blob/master/platform/external-system-impl/src/com/intellij/openapi/externalSystem/service/notification/NotificationCategory.java | Github Open Source | Open Source | Apache-2.0 | 2,018 | intellij-community | teddywest32 | Java | Code | 242 | 648 | /*
* Copyright 2000-2014 JetBrains s.r.o.
*
* 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... | 30,749 |
https://github.com/boogalistick/apiapp/blob/master/modules/dataendpoint/dataendpoint.tf | Github Open Source | Open Source | Apache-2.0 | null | apiapp | boogalistick | HCL | Code | 82 | 306 | module "data-endpoints" {
source = "terraform-aws-modules/vpc/aws//modules/vpc-endpoints"
vpc_id = module.datavpc.vpc_id
security_group_ids = ["sg-123456789"]
endpoints = {
s3 = {
# interface endpoint
service = "s3"
tags = { Name = "s3-vpc-endpoint"... | 8,211 |
https://github.com/teamcrux/EmploymentOptions/blob/master/client/src/Components/UserProfile/ClientEditForms/ClientPersonalForm.js | Github Open Source | Open Source | MIT | 2,017 | EmploymentOptions | teamcrux | JavaScript | Code | 332 | 1,708 | import React from 'react';
import { Field } from 'redux-form';
const renderErrField = ({ input, label, type, meta: { touched, error } }) => (
<div>
<div className="err-output">
<input {...input} placeholder={label} type={type}/>
{touched && error && <span>{error}</span>}
</div>
</div>
)
const ... | 24,898 |
https://github.com/HaseBaldrian/SEP/blob/master/test/functional/notifier_test.rb | Github Open Source | Open Source | MIT, Unlicense | null | SEP | HaseBaldrian | Ruby | Code | 29 | 113 | require 'test_helper'
class NotifierTest < ActionMailer::TestCase
test "registration_received" do
mail = Notifier.registration_received(users(:one))
assert_equal "Registration Confirmation", mail.subject
assert_equal ["to@example.org"], mail.to
assert_equal ["loginsystem@example.com"], mail.from
... | 6,666 |
https://github.com/WifiFly/JSBox/blob/master/HLJJSBox/HLJJSBox/HLJJSBox.js | Github Open Source | Open Source | Apache-2.0 | 2,022 | JSBox | WifiFly | JavaScript | Code | 96 | 332 | var gloabl = this
;(function() {
gloabl.$console = {
log: function(data) {
oc_log(data);
}
};
_customMethods = {
// 布局里的关系
__lp : function(prop) {
return oc_LayoutProperty(this,prop);
},
// 布局里的方法
__lr : function(methodName) {
... | 757 |
https://github.com/MarcusAndreasSvensson/Eurocode-SS-EN-1995/blob/master/create_data.py | Github Open Source | Open Source | BSD-3-Clause | 2,020 | Eurocode-SS-EN-1995 | MarcusAndreasSvensson | Python | Code | 197 | 750 | import pickle
import math
# Hela filen ska använda SI-enheter
# Skapar de olika punkterna för det kordinatisystem som stomlinjer baseras på
def skapa_koordinater():
koordinater = [[0, 0, 0]]
target_x = 81
target_y = 81
target_z = 51
#i = 0
for delta_x in range(1, target_x):
for delta_z in range(1, target_z)... | 37,927 |
https://github.com/Algy/fast-slic/blob/master/src/arch/arm/neon.h | Github Open Source | Open Source | MIT | 2,022 | fast-slic | Algy | C | Code | 1,000 | 4,978 | #include <arm_neon.h>
#include <cassert>
#include "../../context.h"
#include "../../lsc.h"
#include "../../parallel.h"
inline void get_assignment_value_vec(
const Cluster* cluster,
const uint8_t* img_quad_row, const uint16_t* spatial_dist_patch_row,
const uint16_t* min_dist_row, const uint16_t*... | 46,446 |
https://github.com/lhbzjd/spring-anyway/blob/master/anyway-web/anyway-web-thymeleaf/src/main/java/ink/anyway/component/web/filter/SiteMeshFilter.java | Github Open Source | Open Source | Apache-2.0 | null | spring-anyway | lhbzjd | Java | Code | 58 | 301 | package ink.anyway.component.web.filter;
import ink.anyway.component.web.function.SiteMeshBuilderFunction;
import org.sitemesh.builder.SiteMeshFilterBuilder;
import org.sitemesh.config.ConfigurableSiteMeshFilter;
/**
* [添加说明]
* <br>@author : 李海博(haibo_li@neusoft.com)
* <br>@date : 16-11-30 下午1:26
* <br>@version :... | 35,875 |
https://github.com/AndrewReitz/kotlin/blob/master/compiler/util/src/org/jetbrains/kotlin/utils/strings.kt | Github Open Source | Open Source | ECL-2.0, Apache-2.0 | 2,022 | kotlin | AndrewReitz | Kotlin | Code | 215 | 509 | /*
* Copyright 2010-2015 JetBrains s.r.o.
*
* 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... | 24,407 |
https://github.com/antonmedv/year/blob/master/packages/2026/04/19/index.js | Github Open Source | Open Source | MIT | 2,021 | year | antonmedv | JavaScript | Code | 6 | 15 | module.exports = new Date(2026, 3, 19)
| 12,520 |
https://github.com/Bedrocks/gomint/blob/master/gomint-api/src/main/java/io/gomint/world/Biome.java | Github Open Source | Open Source | BSD-3-Clause | null | gomint | Bedrocks | Java | Code | 1,710 | 5,152 | /*
* Copyright (c) 2018 Gomint team
*
* This code is licensed under the BSD license found in the
* LICENSE file in the root directory of this source tree.
*/
package io.gomint.world;
import io.gomint.GoMint;
import io.gomint.math.MathUtils;
import io.gomint.world.block.Block;
import io.gomint.world.block.BlockGr... | 4,903 |
https://github.com/yasamnoya/where-to-drink/blob/master/client/src/views/Bar.vue | Github Open Source | Open Source | MIT | null | where-to-drink | yasamnoya | Vue | Code | 332 | 1,545 | <template>
<div class="card">
<div v-if="isLoading" class="spinner-border text-light my-3 mx-auto" role="status">
<span class="visually-hidden">Loading...</span>
</div>
<div v-if="bar" class="card-body d-md-flex text-start p-4">
<div class="block-left">
<div id="carouselExampleIndicat... | 39,429 |
https://github.com/masgyw/individual-study/blob/master/platform/mbg-gradle-plugin/src/main/groovy/cn/gyw/platform/plugin/mbg/extension/MbgJdbcExtension.groovy | Github Open Source | Open Source | Apache-2.0 | null | individual-study | masgyw | Groovy | Code | 42 | 212 | package cn.gyw.platform.plugin.mbg.extension
class MbgJdbcExtension {
/**
* jdbc的驱动类<br>
* 默认为null,需要设置,否则执行报错
*/
String driver = null
/**
* jdbc的数据库url<br>
* 默认为null,需要设置,否则执行报错
*/
String url = null
/**
* jdbc的数据库用户名<br>
*/
String username
/**
* jdbc的数据库密码<br>
* 默认为null,需要设置,否则执行报错
*/... | 14,541 |
https://github.com/cwikla/cruitz/blob/master/db/migrate/20180117004214_change_upload_name.pyr_base_engine.rb | Github Open Source | Open Source | MIT | 2,020 | cruitz | cwikla | Ruby | Code | 25 | 92 | # This migration comes from pyr_base_engine (originally 20180117004115)
class ChangeUploadName < ActiveRecord::Migration[5.1]
def self.up
rename_table :uploads, :pyr_base_uploads
end
def self.down
rename_table :pyr_base_uploads, :uploads
end
end
| 7,017 |
https://github.com/gregdickason/consensuscircle/blob/master/currentPrototypes/luaTests/scriptExecuterExample.py | Github Open Source | Open Source | MIT | null | consensuscircle | gregdickason | Python | Code | 132 | 528 | # test python code to execute a LUA script - takes a Keys and an ARGS argument
# From https://redislabs.com/ebook/part-3-next-steps/chapter-11-scripting-redis-with-lua/11-1-adding-functionality-without-writing-c/11-1-1-loading-lua-scripts-into-redis/
import json
import redis
ENCODING = 'utf-8'
def scriptCall(scriptHas... | 26,656 |
https://github.com/dshanske/iw26/blob/master/inc/customizer.php | Github Open Source | Open Source | CC0-1.0 | 2,021 | iw26 | dshanske | PHP | Code | 431 | 1,228 | <?php
/**
* Twenty Sixteen Customizer functionality
*
* @package WordPress
* @subpackage Twenty_Sixteen
* @since Twenty Sixteen 1.0
*/
/**
* Sets up the WordPress core custom header and custom background features.
*
* @since Twenty Sixteen 1.0
*
* @see iw26_header_style()
*/
function iw26_custom_header_and... | 8,771 |
https://github.com/idrougge/ple/blob/master/erlang/printer.erl | Github Open Source | Open Source | MIT | 2,022 | ple | idrougge | Erlang | Code | 22 | 82 | -module(printer).
-export([print_server/1]).
print_server(Observer) ->
receive
N when is_integer(N) ->
io:format("~p ", [N]),
Observer ! true;
_ ->
Observer ! false
end,
print_server(Observer).
| 117 |
https://github.com/harishjangidlabs/lara-multi-auth/blob/master/resources/views/admin/dashboard.blade.php | Github Open Source | Open Source | MIT | null | lara-multi-auth | harishjangidlabs | PHP | Code | 16 | 61 | @extends('admin.layouts.app')
@section('main-content')
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
</div>
<!-- /.content-wrapper -->
@endsection | 43,425 |
https://github.com/yowcow/erl-webapp/blob/master/src/hello_actions.erl | Github Open Source | Open Source | Apache-2.0 | null | erl-webapp | yowcow | Erlang | Code | 84 | 279 | -module(hello_actions).
-export([
hello/2,
bye/2
]).
-define(COOKIE_KEY, <<"count">>).
hello(Req, #{ cookies := Cookies }) ->
RemoteAddr = list_to_binary(request:remote_addr(Req)),
#{ ?COOKIE_KEY := Count } = RespCookies = incr_count(Cookies),
{ContentType, Body} = response:render(Req, #{
... | 32,818 |
https://github.com/weidezhang/snabbswitch/blob/master/src/apps/vhost/vhost.lua | Github Open Source | Open Source | Apache-2.0 | 2,020 | snabbswitch | weidezhang | Lua | Code | 868 | 2,744 | module(...,package.seeall)
local ffi = require("ffi")
local C = ffi.C
local lib = require("core.lib")
local freelist = require("core.freelist")
local memory = require("core.memory")
local buffer = require("core.buffer")
local packet = require("core.packet")
require("lib.virtio.virtio_vring_h... | 21,115 |
https://github.com/cuveen/cuveen/blob/master/index.php | Github Open Source | Open Source | MIT | null | cuveen | cuveen | PHP | Code | 142 | 265 | <?php
/**
* Cuveen - A PHP Framework For Web Artisans
*
* @package Cuveen
* @author Tuyen Pham <tuyenlaptrinh@gmail.com>
*/
define('CUVEEN_FRAMEWORK_START', microtime(true));
/*
|--------------------------------------------------------------------------
| Register The Auto Loader
|------------------------------... | 45,470 |
https://github.com/mindspore-ai/models/blob/master/research/cv/mobilenetV3_small_x1_0/argparser.py | Github Open Source | Open Source | Apache-2.0 | 2,022 | models | mindspore-ai | Python | Code | 187 | 540 | # Copyright 2021 Huawei Technologies Co., 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 agreed to... | 15,737 |
https://github.com/aqidd/dreamywg_frontend/blob/master/src/stores/scheduleStore.js | Github Open Source | Open Source | MIT | null | dreamywg_frontend | aqidd | JavaScript | Code | 162 | 469 | import { action, observable, runInAction } from 'mobx'
import network from '../util/network'
class ScheduleStore {
@observable scheduleId
@observable schedule = {
timeslots : []
}
constructor() {
//this.scheduleId = id;
}
@action setScheduleId(id) {
this.scheduleId = id;
}
@action asyn... | 8,234 |
https://github.com/youngchou1997/department/blob/master/plugins/eeui/framework/android/src/main/java/app/eeui/framework/extend/provider/PictureFileProvider.java | Github Open Source | Open Source | MIT | 2,022 | department | youngchou1997 | Java | Code | 19 | 59 | package app.eeui.framework.extend.provider;
import androidx.core.content.FileProvider;
/**
* Created by Mankin on 2017/8/29.
*/
public class PictureFileProvider extends FileProvider {
}
| 18,045 |
https://github.com/martin-d-ball/portals-bridges/blob/master/src/applications/springmvc/src/java/org/apache/portals/applications/springmvc/DOMTreePrefsListController.java | Github Open Source | Open Source | Apache-2.0 | null | portals-bridges | martin-d-ball | Java | Code | 216 | 472 | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | 11,402 |
https://github.com/ErikDMCosta/CEV-Praticas_PHP_POO/blob/master/Aula08b/Lutador.php | Github Open Source | Open Source | MIT | null | CEV-Praticas_PHP_POO | ErikDMCosta | PHP | Code | 381 | 1,151 | <?php
class Lutador {
// Atributos
private $nome;
private $nacionalidade;
private $idade, $altura, $peso;
private $categoria, $vitorias, $derrotas, $empates;
// Métodos Especiais
function __construct ($no, $na, $id, $al, $pe, $vi, $de, $em) {
$this->nome = $no;
$this->na... | 23,972 |
https://github.com/hardik00079/Enterprise-Resource-Planing-for-IT-Company/blob/master/company/src/pojo/Online.java | Github Open Source | Open Source | Unlicense | 2,021 | Enterprise-Resource-Planing-for-IT-Company | hardik00079 | Java | Code | 101 | 295 | package pojo;
// Generated Nov 22, 2016 5:58:15 PM by Hibernate Tools 3.4.0.CR1
/**
* Online generated by hbm2java
*/
public class Online implements java.io.Serializable {
private Integer onid;
private Boolean olFlag;
private Integer olUmId;
public Online() {
}
public Online(Boolean olFlag, Integer olUmId)... | 23,218 |
https://github.com/jhonathanRR/Vistas_Reservas_Auditorios/blob/master/resources/views/layouts/super_admin/verEvento.blade.php | Github Open Source | Open Source | MIT | 2,018 | Vistas_Reservas_Auditorios | jhonathanRR | PHP | Code | 97 | 428 | @extends('layouts.app')
@section('content')
<!-- Equal width cols, same on all screen sizes -->
<div class="container">
<div class="row">
<div class="col">
</div>
<div class="col">
<h1>{{ $data->name }}</h1>
<p class="lead">{{ $data->organizator }... | 41,116 |
https://github.com/labra/Voting_2a/blob/master/VoteSystemCountingFinal_2a/src/main/java/es/uniovi/asw/model/VotoInfo.java | Github Open Source | Open Source | MIT | 2,016 | Voting_2a | labra | Java | Code | 162 | 541 | package es.uniovi.asw.model;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import org.springframework.data.jpa.domain.AbstractPersistable;
@Entity
@Table(name = "voto")
public class VotoInfo extends AbstractPersistable<Long> {
private static final long serialVers... | 18,147 |
https://github.com/nertpinx/reformation/blob/master/reformation/examples/enum_.rs | Github Open Source | Open Source | MIT | 2,022 | reformation | nertpinx | Rust | Code | 111 | 519 | use reformation::Reformation;
#[derive(Reformation, Debug)]
enum Color {
#[reformation("red")]
Red,
#[reformation("green")]
Green,
#[reformation(r"grey\({}\)")]
Grey(i32),
#[reformation("yellow")]
Yellow,
#[reformation(r"blue={}, {}")]
Blue(i32, i32),
}
#[derive(Reformation, De... | 22,189 |
https://github.com/sampsonyao/IceBlog/blob/master/resources/views/auth/passwords/email.blade.php | Github Open Source | Open Source | MIT | null | IceBlog | sampsonyao | PHP | Code | 141 | 538 | @extends('layouts.app')
@section('content')
<div class="app layout-fixed-header usersession bg-white">
<div class="full-height">
<div class="center-wrapper">
<div class="center-content">
<div class="row no-margin">
<div class="col-xs-10 col-xs-offset-1 col-sm-6 col-sm-o... | 27,853 |
https://github.com/gargrave/love-snake/blob/master/src/gg/core/input.lua | Github Open Source | Open Source | Unlicense | null | love-snake | gargrave | Lua | Code | 99 | 257 | local Input = {}
local keys = {}
local prevKeys = {}
function love.keypressed(key)
keys[key] = true
end
function love.keyreleased(key)
keys[key] = false
end
function Input.lateUpdate(dt)
for key, value in pairs(keys) do
prevKeys[key] = value
end
end
function Input.isHeld(key)
if type(ke... | 25,700 |
https://github.com/jeanettearteaga/web-homework/blob/master/webapp/src/components/transactions/TransactionFormModal.js | Github Open Source | Open Source | MIT | null | web-homework | jeanettearteaga | JavaScript | Code | 782 | 2,857 | import React, { useEffect, useState } from 'react'
import Modal from 'react-modal'
import { arrayOf, string, bool, func, shape, map, any } from 'prop-types'
import styled from 'styled-components'
import { useMutation, gql } from '@apollo/client'
const ExitButtonStyles = styled.button`
border-radius: 4px;
backgroun... | 10,899 |
https://github.com/kevinzhwl/ObjectARXMod/blob/master/2006/samples/reactors/SelectionFilter/SelectionfilterUi/SubEntSelFilter.cpp | Github Open Source | Open Source | MIT | 2,021 | ObjectARXMod | kevinzhwl | C++ | Code | 327 | 925 | //
//
// (C) Copyright 1990-2003 by Autodesk, Inc.
//
// Permission to use, copy, modify, and distribute this software in
// object code form for any purpose and without fee is hereby granted,
// provided that the above copyright notice appears in all copies and
// that both that copyright notice and the limited war... | 10,655 |
https://github.com/replikit/replikit/blob/master/src/extensions/Replikit.Extensions.Sessions/src/Internal/AccountSession.cs | Github Open Source | Open Source | MIT | 2,021 | replikit | replikit | C# | Code | 65 | 274 | using Replikit.Abstractions.Repositories.Events;
using Replikit.Core.Handlers;
using Replikit.Extensions.Common.Sessions;
using Replikit.Extensions.Sessions.Exceptions;
namespace Replikit.Extensions.Sessions.Internal;
internal class AccountSession<TValue> : Session<TValue>, IAccountSession<TValue> where TValue : cla... | 5,024 |
https://github.com/henry364/ProFosforera/blob/master/resources/views/admin/permissions/partials/form.blade.php | Github Open Source | Open Source | MIT | 2,021 | ProFosforera | henry364 | PHP | Code | 88 | 449 |
<div class="form-group">
{!! Form::label('name', 'Nombre') !!}
{!! Form::text('name', null, ['clase'=> 'form-control', 'placeholder'=>'Ingrese el nombre de permiso']) !!}
@error('name')
<small class="text-danger">
{{$message }}
</sm... | 26,165 |
https://github.com/magiclen/GuessNumber/blob/master/src/org/magiclen/guessnumber/Player.java | Github Open Source | Open Source | Apache-2.0 | 2,016 | GuessNumber | magiclen | Java | Code | 588 | 2,352 | /*
*
* Copyright 2015 magiclen.org
*
* 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 agr... | 7,960 |
https://github.com/Laterality/java-chess-view/blob/master/src/views/Game.vue | Github Open Source | Open Source | MIT | null | java-chess-view | Laterality | Vue | Code | 407 | 1,501 | <template>
<div>
<h1>{{ sessionTitle }}</h1>
<GameBoard
:states='states'
:currentMovable='currentMovable'
:disabled='!playable'
@select='handleSelect'
@move='handleMove'
/>
<b-alert variant='info' v-model='showResult' class='result-message'>{{ resultText }}</b-alert>
... | 3,536 |
https://github.com/iopipe/iopipe-python/blob/master/iopipe/constants.py | Github Open Source | Open Source | Apache-2.0 | 2,021 | iopipe-python | iopipe | Python | Code | 24 | 85 | import time
import uuid
COLDSTART = True
MODULE_LOAD_TIME = time.time() * 1000
PROCESS_ID = str(uuid.uuid4())
TIMESTAMP_FORMAT = "%Y-%m-%dT%H:%M:%S.%fZ"
METRIC_NAME_LIMIT = 128
VERSION = "1.10.2"
| 24,953 |
https://github.com/esafirm/link-router/blob/master/samples/cart/src/main/java/nolambda/linkrouter/cart/CartScreen.kt | Github Open Source | Open Source | MIT | 2,022 | link-router | esafirm | Kotlin | Code | 37 | 188 | package nolambda.linkrouter.cart
import android.os.Bundle
import android.view.View
import androidx.fragment.app.Fragment
import kotlinx.android.synthetic.main.fragment_cart.*
import nolambda.linkrouter.android.extra.caller.CallerAppRouter
import nolambda.linkrouter.approuter.AppRouter
import nolambda.linkrouter.approu... | 39,622 |
https://github.com/viacheslave/algo/blob/master/leetcode-challenge/c#/Problems/2021/03/Mar18.cs | Github Open Source | Open Source | MIT | null | algo | viacheslave | C# | Code | 150 | 440 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace LeetCode.Challenge.Y21
{
/// <summary>
/// https://leetcode.com/explore/challenge/card/march-leetcoding-challenge-2021/589/week-3-march-15th-march-21st/3676/
///
/// </summary>
internal class Mar18
{
pu... | 7,459 |
https://github.com/vimniky/rancher-ui-ml/blob/master/app/host/template.hbs | Github Open Source | Open Source | Apache-2.0 | null | rancher-ui-ml | vimniky | null | Spoken | 472 | 2,737 | <section class="header clearfix">
<div class="pull-left">
<h1 class="vertical-middle">
{{t 'hostsPage.hostPage.header.title' name=host.displayName}}
</h1>
<div class="vertical-middle" style="height: 30px;">
{{info-multi-stats model=host linkName="hostStats" largeTargetId="largeStats"}}
</d... | 6,530 |
https://github.com/aleksigron/graphics-toolkit/blob/master/engine/src/Graphics/TerrainInstance.cpp | Github Open Source | Open Source | MIT | 2,021 | graphics-toolkit | aleksigron | C++ | Code | 17 | 123 | #include "Graphics/TerrainInstance.hpp"
TerrainInstance::TerrainInstance() :
meshId(MeshId::Null),
terrainSize(128.0f),
terrainResolution(128),
textureScale(0.25f, 0.25f),
minHeight(-0.25f),
maxHeight(0.05f),
heightData(nullptr),
vertexArrayId(0),
uniformBufferId(0),
textureId(0)
{
}
| 46,797 |
https://github.com/gauravkumarpandey/python/blob/master/main.py | Github Open Source | Open Source | Apache-2.0 | null | python | gauravkumarpandey | Python | Code | 59 | 240 | #import the class
from cat import Cat
from inheritance import Feline, Lion, Tiger
def show():
c = Cat('Kitty',1,'Tebby')
b = Cat('Othelo', 6, 'Black')
print(c)
print(b)
c.description()
c.meow()
c.sleep()
b.description()
b.meow()
b.hungry()
if __name__ == '__main__':
x = C... | 18,301 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.