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/Charlie-Zheng/gcsim.app/blob/master/src/Pages/Sim/Simple/CharacterEdit/CharacterEditWeaponAndArtifacts.tsx | Github Open Source | Open Source | MIT | null | gcsim.app | Charlie-Zheng | TypeScript | Code | 248 | 930 | import { Button, Checkbox } from "@blueprintjs/core";
import { simActions } from "~src/Pages/Sim";
import { useAppSelector, RootState, useAppDispatch } from "~src/store";
import { ascLvlMax, ascLvlMin, ascToMaxLvl, maxLvlToAsc } from "~src/util";
import { NumberInput } from "~src/Components/NumberInput";
import { Chara... | 29,042 |
https://github.com/marshallpierce/postgresql-embedded/blob/master/src/main/java/ru/yandex/qatools/embed/postgresql/config/PostgresDownloadConfigBuilder.java | Github Open Source | Open Source | Apache-2.0 | null | postgresql-embedded | marshallpierce | Java | Code | 422 | 1,976 | package ru.yandex.qatools.embed.postgresql.config;
import de.flapdoodle.embed.process.builder.IProperty;
import de.flapdoodle.embed.process.builder.TypedProperty;
import de.flapdoodle.embed.process.config.store.DownloadConfigBuilder;
import de.flapdoodle.embed.process.config.store.DownloadPath;
import de.flapdoodle.em... | 9,007 |
https://github.com/BuildJet/sharkbite/blob/master/include/interconnect/accumulo/AccumuloStreams.h | Github Open Source | Open Source | Apache-2.0 | 2,022 | sharkbite | BuildJet | C | Code | 132 | 361 | /*
* 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
* distribut... | 28,119 |
https://github.com/Mryan2005/Basic-Command-for-Microsoft/blob/master/SystemToolBox.py | Github Open Source | Open Source | Apache-2.0 | null | Basic-Command-for-Microsoft | Mryan2005 | Python | Code | 108 | 366 | import subprocess
import os
import time
# ================language variable begin========================
Tips_at_the_beginning = 'Type "help" or command for more information.'
# ================language variable finish========================
print(Tips_at_the_beginning)
while True:
command = input('>> ')
if c... | 35,394 |
https://github.com/lauram15a/Programacion/blob/master/Laboratorio/NetBeansProjects/LabSesion4/src/taller/Vehiculo.java | Github Open Source | Open Source | MIT | null | Programacion | lauram15a | Java | Code | 175 | 449 | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package taller;
import java.util.ArrayList;
/**
*
* @author laura
*/
public class Vehiculo {
private String matricula;
... | 231 |
https://github.com/daniel-r-lewis/ngl-clone/blob/master/src/shader/Mesh.vert | Github Open Source | Open Source | BSD-3-Clause | 2,022 | ngl-clone | daniel-r-lewis | GLSL | Code | 150 | 425 | #define STANDARD
uniform float nearClip;
uniform vec3 clipCenter;
#if defined( NEAR_CLIP ) || defined( RADIUS_CLIP ) || ( !defined( PICKING ) && !defined( NOLIGHT ) )
varying vec3 vViewPosition;
#endif
#if defined( RADIUS_CLIP )
varying vec3 vClipCenter;
#endif
#if defined( PICKING )
attribute vec3 pick... | 28,334 |
https://github.com/crowdint/spree_brightpearl/blob/master/app/models/spree/brightpearl/hook.rb | Github Open Source | Open Source | BSD-3-Clause | 2,014 | spree_brightpearl | crowdint | Ruby | Code | 20 | 99 | module Spree
module Brightpearl
class Hook < BaseConnection
include Rails.application.routes.url_helpers
def set_products
Nacre::API::Hooks.product_resource(Spree.railtie_routes_url_helpers.brightpearl_products_url( host: Spree::Config.site_url ))
end
end
end
end
| 19,993 |
https://github.com/Fernthedev/BeatSaber-Quest-Codegen/blob/master/include/UnityEngine/Avatar.hpp | Github Open Source | Open Source | Unlicense | null | BeatSaber-Quest-Codegen | Fernthedev | C++ | Code | 1,389 | 7,366 | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "extern/beatsaber-hook/shared/utils/typedefs.h"
#include "extern/beatsaber-hook/shared/utils/byref.hpp"
// Including type: UnityEngine.Object
#i... | 9,014 |
https://github.com/emilyschwartau/Task-Matrix/blob/master/src/redux/sagas/deleteTask.saga.js | Github Open Source | Open Source | PostgreSQL | null | Task-Matrix | emilyschwartau | JavaScript | Code | 43 | 152 | import { put, takeEvery } from 'redux-saga/effects';
import axios from 'axios';
function* deleteTask (action) {
try {
yield axios.delete(`/api/listItems/${action.payload}`);
yield put({type: 'FETCH_LIST_ITEMS'});
} catch (err) {
console.log(err);
yield put({type: 'DELETE_ERROR... | 11,540 |
https://github.com/khaled-farouk/My_problem_solving_solutions/blob/master/codeforce1/69C. Game.cpp | Github Open Source | Open Source | MIT | null | My_problem_solving_solutions | khaled-farouk | C++ | Code | 263 | 907 | #include <bits/stdc++.h>
using namespace std;
int k, n, m, q, cnt;
char s[100001];
string tmp, name;
map<string, map<string, int> > comp;
map<int, map<string, int> > friends, fin;
int main() {
#ifndef ONLINE_JUDGE
freopen("in", "r", stdin);
#endif
scanf("%d %d %d %d", &k, &n, &m, &q);
for(int i = 1; i <= k; ++i... | 45,444 |
https://github.com/Bachi007/Dynamic-Programming-test-for-placements/blob/master/Backend/temp.txt | Github Open Source | Open Source | MIT | 2,022 | Dynamic-Programming-test-for-placements | Bachi007 | Java | Code | 108 | 260 | public class ComplexNumber{
//for real and imaginary parts of complex numbers
double real, img;
//constructor to initialize the complex number
ComplexNumber(double r, double i){
this.real = r;
this.img = i;
}
public static ComplexNumber sum(ComplexNumber c1, ComplexNumber c2)
{
//creating a ... | 3,155 |
https://github.com/susannalandstrom/lyyti-design-system/blob/master/src/components/MenuItem.tsx | Github Open Source | Open Source | MIT | null | lyyti-design-system | susannalandstrom | TypeScript | Code | 74 | 196 | import { MenuItem as MuiMenuItem, MenuItemProps as MuiMenuItemProps } from '@mui/material';
// Workaround for fixing the unassignable type {button: boolean | undefined} to {button: true | undefined}
export interface MenuItemProps extends MuiMenuItemProps {
button?: true | undefined;
}
const MenuItem = (props: MenuI... | 5,578 |
https://github.com/abloemert/ruby-feedstock/blob/master/recipe/build.sh | Github Open Source | Open Source | BSD-3-Clause | null | ruby-feedstock | abloemert | Shell | Code | 233 | 909 | #!/bin/bash
# Get an updated config.sub and config.guess
cp $BUILD_PREFIX/share/gnuconfig/config.* ./ext/fiddle/libffi-3.2.1
cp $BUILD_PREFIX/share/gnuconfig/config.* ./tool
set -e
set -x
export CC=$(basename $CC)
export CPP=$(basename $CPP)
export CXX=$(basename $CXX)
export STRIP=$(basename $STRIP)
export NM=$(basen... | 46,067 |
https://github.com/laserhenry/circlecamel/blob/master/cricle-camel-web/src/main/java/com/qunar/qtalk/cricle/camel/common/dto/CamelManageSystemSerchDto.java | Github Open Source | Open Source | MIT | 2,019 | circlecamel | laserhenry | Java | Code | 26 | 98 | package com.qunar.qtalk.cricle.camel.common.dto;
import lombok.Data;
@Data
public class CamelManageSystemSerchDto {
private String userID; //用户ID
private String userName; //用户名字
private String content; //帖子内容
private String postDate; //发帖时
}
| 24,178 |
https://github.com/steveruizok/state-designer/blob/master/archive/tutorials/src/tutorials/6_stopwatch/tests/index.js | Github Open Source | Open Source | MIT | 2,022 | state-designer | steveruizok | JavaScript | Code | 394 | 1,076 | import * as React from "react"
import { act, render, fireEvent } from "@testing-library/react"
import { ThemeProvider } from "@chakra-ui/core"
export default function (Component) {
const setup = () => {
const utils = render(
<ThemeProvider>
<Component />
</ThemeProvider>
)
const comp... | 35,576 |
https://github.com/pyensemble/wildwood/blob/master/wildwood/forest.py | Github Open Source | Open Source | BSD-3-Clause | 2,022 | wildwood | pyensemble | Python | Code | 5,997 | 16,841 | """
"""
# License: BSD 3 clause
from typing import Union
from warnings import warn
import threading
import numpy as np
from joblib import Parallel, effective_n_jobs
from tqdm import tqdm
from scipy.sparse import issparse
from sklearn.ensemble._base import _partition_estimators
from sklearn.utils import check_rando... | 28,208 |
https://github.com/natasha-jeppu/PredicateSynth/blob/master/minepump/gen_event_turn_on_2.sl | Github Open Source | Open Source | BSD-3-Clause | 2,021 | PredicateSynth | natasha-jeppu | null | Spoken | 221 | 425 | (set-logic LIA)
(synth-fun next ((water Int) (methane Int) (pump Bool) ) Int
((Start Int) (Var Int) (StartBool Bool))
((Start Int (
3
6
(ite StartBool Start Start)))
(Var Int (
1
2
6
14
43
594
water
methane
(+ Var Var)
(- Var Var)
(* Var Var)))
... | 37,490 |
https://github.com/ats1999/j-Chat/blob/master/server/middleware/required-login.js | Github Open Source | Open Source | MIT | 2,020 | j-Chat | ats1999 | JavaScript | Code | 38 | 198 | const jwt = require('jsonwebtoken');
const TOKEN_SEPERATOR = process.env.TOKEN_SEPERATOR;
const JWT_KEY_AUTH = process.env.JWT_KEY_AUTH;
var requireLogin=(req,res,next)=>{
console.log("JWT",JWT_KEY_AUTH);
const token = req.headers['authorization'];
console.log("token ",token)
if(!token){
return... | 39,873 |
https://github.com/jreina/stuff-with-promises/blob/master/usingCallback.js | Github Open Source | Open Source | MIT | 2,018 | stuff-with-promises | jreina | JavaScript | Code | 52 | 213 | const api = require('./api-callback');
const $ = require('./ui');
const peopleList = $('<ul class="no-fur-owners"></ul>');
api.getAnimal(
animal => !animal.fur,
furlessAnimals => {
const furLessAnimalNames = furlessAnimals.map(animal => animal.type);
api.getPerson(
person =>
person.pets.some... | 55,481 |
https://github.com/chunshen1987/hadronic_afterburner_toolkit/blob/master/unit_tests/Analysis_unittest.cc | Github Open Source | Open Source | MIT | 2,022 | hadronic_afterburner_toolkit | chunshen1987 | C++ | Code | 65 | 288 |
#include "Analysis.h"
#include "gtest/gtest.h"
#include <string>
namespace {
TEST(Analysis, Constructor) {
std::string path = "results";
Analysis test_analysis(path);
EXPECT_EQ(0, 0);
}
TEST(Analysis, ReadInParameters) {
std::string path = "results";
Analysis test_analysis(path);
test_anal... | 26,824 |
https://github.com/znsio/qontract/blob/master/core/src/test/kotlin/in/specmatic/core/ContractFilePathTest.kt | Github Open Source | Open Source | MIT | 2,020 | qontract | znsio | Kotlin | Code | 79 | 328 | package `in`.specmatic.core
import `in`.specmatic.Utils.readTextResource
import org.assertj.core.api.Assertions.assertThat
import org.assertj.core.api.Assertions.assertThatThrownBy
import org.junit.jupiter.api.Test
import `in`.specmatic.core.pattern.ContractException
internal class ContractFilePathTest {
@Test
... | 33,530 |
https://github.com/SlawomirR/kodilla-course/blob/master/kodilla-patterns2/src/main/java/com/kodilla/patterns2/adapter/bookclasifier/libraryb/BookStatistics.java | Github Open Source | Open Source | MIT | 2,018 | kodilla-course | SlawomirR | Java | Code | 17 | 71 | package com.kodilla.patterns2.adapter.bookclasifier.libraryb;
import java.util.Map;
public interface BookStatistics {
int averagePublicationYear(Map<BookSignature, Book> books);
int medianPublicationYear(Map<BookSignature, Book> books);
}
| 33,008 |
https://github.com/denglusheng/wx-pay-profits-sharing/blob/master/src/main/java/top/gabin/tools/response/ecommerce/profitsharing/ProfitSharingApplyResponse.java | Github Open Source | Open Source | Apache-2.0 | null | wx-pay-profits-sharing | denglusheng | Java | Code | 243 | 1,427 | package top.gabin.tools.response.ecommerce.profitsharing;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import top.gabin.tools.response.AbstractResponse;
/**
* <pre>
* 微信订单支付成功后,由电商平台发起分账请求,将结算后的资金分给分账接收方。
* 文档地址:https://pay.weixin.qq.com/wiki... | 54,296 |
https://github.com/Edznux/wonderxss/blob/master/api/local/executions.go | Github Open Source | Open Source | MIT | null | wonderxss | Edznux | Go | Code | 171 | 548 | package local
import (
"fmt"
"time"
"github.com/edznux/wonderxss/api"
"github.com/edznux/wonderxss/storage/models"
"github.com/google/uuid"
log "github.com/sirupsen/logrus"
)
// GetExecutions return all the triggered payload stored in the database.
func (local *Local) GetExecutions() ([]api.Execution, error) {... | 41,654 |
https://github.com/civo/redis_prometheus/blob/master/lib/redis_prometheus/collector.rb | Github Open Source | Open Source | MIT | 2,020 | redis_prometheus | civo | Ruby | Code | 55 | 189 | module RedisPrometheus
class Collector
def self.current
@current ||= self.new
@current
end
def initialize
@collectors = []
end
def stats
out = ""
@collectors.each do |collector|
ret = collector.call
out << "# TYPE #{ret[:label]} #{ret[:type]}\n"
... | 38,510 |
https://github.com/zilahir/varaamo/blob/master/app/shared/resource-card/info-cell/ResourceCardInfoCell.js | Github Open Source | Open Source | MIT | null | varaamo | zilahir | JavaScript | Code | 57 | 201 | import React from 'react';
import Button from 'react-bootstrap/lib/Button';
import PropTypes from 'prop-types';
import classNames from 'classnames';
function ResourceCardInfoCell({
className, alt, icon, onClick, children
}) {
return (
<Button className={classNames('app-ResourceCard__info-cell', className)} onC... | 54,729 |
https://github.com/hyunmu/spb-cli/blob/master/spb/orm/type.py | Github Open Source | Open Source | MIT | 2,021 | spb-cli | hyunmu | Python | Code | 369 | 1,176 | import abc
import json
from uuid import UUID
from spb.exceptions.exceptions import ImmutableValueChangeException, AttribureTypeException
from .model import ListAttribute, AttributeModel
from .type_base import Type
class Number(Type):
def _validation(self, value):
if self._immutable:
raise Immut... | 38,862 |
https://github.com/gwdg/puppet-rally/blob/master/spec/classes/rally_settings_swift_spec.rb | Github Open Source | Open Source | Apache-2.0 | 2,017 | puppet-rally | gwdg | Ruby | Code | 105 | 413 | require 'spec_helper'
describe 'rally::settings::swift' do
let :params do
{
}
end
let :rally_swift_params do
{
:operator_role => 'Member',
:reseller_admin_role => 'ResellerAdmin',
}
end
shared_examples_for 'with default parameters' do
it 'configures rally swift settin... | 44,840 |
https://github.com/2219675559sun/project/blob/master/resources/views/App/admin/log/index.blade.php | Github Open Source | Open Source | MIT | null | project | 2219675559sun | PHP | Code | 88 | 536 | <!DOCTYPE html>
<html lang="zh-CN">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<title>登录</title>
<link rel="stylesheet" href="/log/css/style.css">
<body>
<div class="login-container">
<h1>NB CLASS</h1>
<div class="connect">
<p> 123 </p>
</div>
<... | 40,972 |
https://github.com/smallersoup/strimzi-kafka-operator/blob/master/documentation/modules/ref-prometheus-metrics.adoc | Github Open Source | Open Source | Apache-2.0 | 2,020 | strimzi-kafka-operator | smallersoup | AsciiDoc | Code | 174 | 496 | // Module included in the following assemblies:
//
// assembly-prometheus-metrics.adoc
[id='ref-metrics-{context}']
= Metrics configuration
Prometheus metrics are enabled by configuring the `metricsConfig` property in following resources:
* `Kafka.spec.kafka`
* `Kafka.spec.zookeeper`
* `KafkaConnect.spec`
* `KafkaCo... | 11,283 |
https://github.com/dotnet/runtime/blob/master/src/coreclr/tools/dotnet-pgo/Microsoft.Diagnostics.JitTrace/JitTraceRuntime.cs | Github Open Source | Open Source | MIT | 2,023 | runtime | dotnet | C# | Code | 854 | 2,350 | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System;
using System.Collections.Generic;
using System.IO;
using System.Reflection;
using System.Runtime.CompilerServices;
namespace Microsoft.Diagnostics.JitTrace
{
publi... | 32,896 |
https://github.com/andrasmaroy/dotfiles/blob/master/roles/git/files/gitignore_global | Github Open Source | Open Source | MIT | 2,023 | dotfiles | andrasmaroy | Ignore List | Code | 3 | 14 | .project_env
.DS_Store
TODO
| 40,749 |
https://github.com/belforte/gocurl/blob/master/Makefile | Github Open Source | Open Source | MIT | null | gocurl | belforte | Makefile | Code | 125 | 434 | VERSION=`git rev-parse --short HEAD`
OS := $(shell uname)
ifeq ($(OS),Darwin)
flags=-ldflags="-s -w -X main.version=${VERSION}"
else
flags=-ldflags="-s -w -X main.version=${VERSION} -extldflags -static"
endif
all: build
vet:
go vet .
build:
go clean; CGO_ENABLED=0 go build -o gocurl ${flags}
build_debug:
go clea... | 24,012 |
https://github.com/joseguamanp/SISTEMA_EDUCATIVO/blob/master/app/Http/Controllers/OpcionController.php | Github Open Source | Open Source | MIT | 2,019 | SISTEMA_EDUCATIVO | joseguamanp | PHP | Code | 243 | 1,015 | <?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Http\Requests\OpcionRequest;
use App\Rol;
use App\opcione;
use Illuminate\Support\Facades\DB;
class OpcionController extends Controller
{
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/... | 21 |
https://github.com/dotam99/structured-products/blob/master/scripts/deployOToken.js | Github Open Source | Open Source | MIT | null | structured-products | dotam99 | JavaScript | Code | 197 | 755 | require("dotenv").config();
const getWeb3 = require("./helpers/web3");
const { Command } = require("commander");
const { ethers } = require("ethers");
const { parseEther } = ethers.utils;
const program = new Command();
const externalAddresses = require("../constants/externalAddresses");
const accountAddresses = requir... | 29,174 |
https://github.com/PaulaBarszcz/gallerimage/blob/master/src/js/components/geolocation.jsx | Github Open Source | Open Source | MIT | null | gallerimage | PaulaBarszcz | null | Spoken | 35 | 110 | import React from 'react';
import ReactDOM from 'react-dom';
class Geolocation extends React.Component {
constructor(props) {
super(props);
this.state = {
activeSection: ""
};
}
componentDidMount() {
}
render() {
return <div>
</div>
... | 4,286 |
https://github.com/Tyrone-Zhao/saolei/blob/master/minesweeper.py | Github Open Source | Open Source | MIT | null | saolei | Tyrone-Zhao | Python | Code | 675 | 2,862 | import sys
import time
import pygame
from pygame.locals import *
from mineblock import *
import os
def resource_path(relative_path):
"""
定义一个读取相对路径的函数
"""
if hasattr(sys, "_MEIPASS"):
base_path = sys._MEIPASS
else:
base_path = os.path.abspath(os.path.dirname(__file__))
return... | 21,180 |
https://github.com/swans-one/django-kittens/blob/master/django_kittens/models.py | Github Open Source | Open Source | MIT | 2,017 | django-kittens | swans-one | Python | Code | 148 | 588 | import random
from django.db import models
import praw
from . import constants
class KittenManager(models.Manager):
def get_random(self):
"""Get a kitten, either from the db, or a new one.
"""
num_kittens = self.count()
new_cutoff = (num_kittens / (num_kittens + constants.KITTEN_... | 55,833 |
https://github.com/telekons/42nd-at-threadmill/blob/master/Code/x86-64/VOPs/cas-bytes.lisp | Github Open Source | Open Source | BSD-2-Clause | 2,022 | 42nd-at-threadmill | telekons | Common Lisp | Code | 135 | 497 | (in-package :sb-vm)
(sb-c:defknown threadmill::%cas-byte
((simple-array (unsigned-byte 8) 1) (unsigned-byte 62) (unsigned-byte 8) (unsigned-byte 8))
(unsigned-byte 8)
()
:overwrite-fndb-silently t)
(define-vop (threadmill::%cas-byte)
(:translate threadmill::%cas-byte)
(:policy :fast-safe)
(:args (... | 18,484 |
https://github.com/ShiningZhang/Paddle/blob/master/paddle/pten/kernels/gpu/norm_kernel.cu | Github Open Source | Open Source | Apache-2.0 | 2,022 | Paddle | ShiningZhang | null | Spoken | 472 | 1,397 | // Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required... | 40,033 |
https://github.com/dkurata38/liblio/blob/master/infrastructure/src/main/kotlin/com/github/dkurata38/liblio/infrastructure/librarian/LibrarianRecord.kt | Github Open Source | Open Source | MIT | null | liblio | dkurata38 | Kotlin | Code | 47 | 121 | /*
* Auto-generated file. Created by MyBatis Generator
*/
package com.github.dkurata38.liblio.infrastructure.librarian
import java.time.LocalDateTime
data class LibrarianRecord(
var librarianId: String? = null,
var libraryId: String? = null,
var username: String? = null,
var password: String? = null... | 22,184 |
https://github.com/tomaszt762/MyProvisions/blob/master/AWS/terraform/later/terraform-aws-openshift-master/modules/network/public_network.tf | Github Open Source | Open Source | MIT | 2,021 | MyProvisions | tomaszt762 | HCL | Code | 128 | 598 | # Public subnet: for router LB
locals {
public_subnet_count = "${length(local.availability_zones)}"
}
resource "aws_subnet" "public" {
count = "${local.public_subnet_count}"
availability_zone = "${element(local.availability_zones, count.index)}"
vpc_id = "${aws_vpc.pla... | 37,521 |
https://github.com/NourEddineX/k8-java-api-code-samples/blob/master/library/src/main/java/org/glasswall/solutions/exceptions/RebuildApiConfigurationException.java | Github Open Source | Open Source | Apache-2.0 | null | k8-java-api-code-samples | NourEddineX | Java | Code | 14 | 53 | package org.glasswall.solutions.exceptions;
public class RebuildApiConfigurationException extends RuntimeException {
public RebuildApiConfigurationException(String message){
super(message);
}
}
| 22,441 |
https://github.com/qaisersayyed/departmentApp/blob/master/views/workshop-attended/_search.php | Github Open Source | Open Source | BSD-3-Clause | 2,019 | departmentApp | qaisersayyed | PHP | Code | 136 | 491 | <?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;
/* @var $this yii\web\View */
/* @var $model app\models\SearchWorkshopAttended */
/* @var $form yii\widgets\ActiveForm */
?>
<div class="workshop-attended-search">
<?php $form = ActiveForm::begin([
'action' => ['index'],
'method' => 'get',
... | 11,883 |
https://github.com/ajaxorg/ace/blob/master/src/lib/useragent.js | Github Open Source | Open Source | BSD-3-Clause | 2,023 | ace | ajaxorg | JavaScript | Code | 337 | 865 | "use strict";
/*
* I hate doing this, but we need some way to determine if the user is on a Mac
* The reason is that users have different expectations of their key combinations.
*
* Take copy as an example, Mac people expect to use CMD or APPLE + C
* Windows folks expect to use CTRL + C
*/
exports.OS = {
LIN... | 46,158 |
https://github.com/nitescuc/robocar-donkey/blob/master/donkeycar/parts/mqtt_config_client.py | Github Open Source | Open Source | MIT | 2,022 | robocar-donkey | nitescuc | Python | Code | 171 | 599 | import json
import paho.mqtt.subscribe as subscribe
import re
class MqttConfigClient():
def __init__(self, host="localhost", port=1883):
self.host = host
self.port = port
self.mode = 'user'
self.recording = False
self.config = None
self.on = True
def on_messag... | 16,410 |
https://github.com/csexton/representable/blob/master/test/example.rb | Github Open Source | Open Source | MIT | 2,012 | representable | csexton | Ruby | Code | 320 | 1,054 | require 'bundler'
Bundler.setup
require 'representable/yaml'
require 'ostruct'
class Song < OpenStruct
end
song = Song.new(:title => "Fallout", :track => 1)
require 'representable/json'
module SongRepresenter
include Representable::JSON
property :title
property :track
end
puts song.extend(SongRepresenter).t... | 34,844 |
https://github.com/Kentama7/micronaut-samples/blob/master/bearer/src/main/kotlin/com/example/fetcher/CustomCredentials.kt | Github Open Source | Open Source | MIT | null | micronaut-samples | Kentama7 | Kotlin | Code | 34 | 105 | package com.example.fetcher
import io.micronaut.core.annotation.Introspected
import io.micronaut.security.authentication.AuthenticationRequest
import java.io.Serializable
@Introspected
class CustomCredentials(
private val secret: String
) : Serializable, AuthenticationRequest<String, String> {
override fun g... | 32,121 |
https://github.com/preeti98/sleap/blob/master/tests/gui/test_delete.py | Github Open Source | Open Source | BSD-3-Clause-Clear | 2,022 | sleap | preeti98 | Python | Code | 197 | 802 | from sleap.gui.commands import CommandContext
from sleap.gui.dialogs.delete import DeleteDialog
def test_delete_user_dialog(centered_pair_labels, qtbot):
context = CommandContext.from_labels(centered_pair_labels)
context.state["frame_idx"] = 123
context.state["video"] = centered_pair_labels.videos[0]
... | 34,630 |
https://github.com/contrivancecompanychicago/mygi/blob/master/dataTool/src/components/Header/index.js | Github Open Source | Open Source | MIT | 2,017 | mygi | contrivancecompanychicago | JavaScript | Code | 36 | 99 | import React from 'react'
import { Row, Col } from '../common/Grid'
import { Container, Heading } from './styled-components'
const Header = () =>
<Container>
<Row>
<Col xs={12}>
<Heading>MyGi Data Tool</Heading>
</Col>
</Row>
</Container>
export default Header
| 16,903 |
https://github.com/turris-cz/os-updater-lists/blob/master/tests/tests.mk | Github Open Source | Open Source | MIT | 2,021 | os-updater-lists | turris-cz | Makefile | Code | 182 | 792 | TEST_VARIANTS := latest 68.0.0 63.1.2 63.0.3
.PHONY: check
check: lint test
.PHONY: lint
lint: $(LISTS_LUA)
@echo " LUACHECK"
$(Q)$(LUACHECK) --config tests/luacheck.config $^
.PHONY: test
test:
# We can't test bootstrap as it has to run with full privilege and we simulate
# only secure environment.
TEST_LUA :... | 15,053 |
https://github.com/pythonchelle/opencomparison/blob/master/settings/development.py | Github Open Source | Open Source | MIT | 2,015 | opencomparison | pythonchelle | Python | Code | 53 | 152 | from .base import *
INSTALLED_APPS += [
'debug_toolbar',
]
DEBUG_TOOLBAR_CONFIG = {
"INTERCEPT_REDIRECTS": False,
}
INTERNAL_IPS = [
"127.0.0.1",
]
MIDDLEWARE_CLASSES += [
'debug_toolbar.middleware.DebugToolbarMiddleware',
]
# local_settings.py can be used to override environment-specific settings
... | 37,076 |
https://github.com/spawnfest/fire-fork/blob/master/apps/firefork_stepper/.gitignore | Github Open Source | Open Source | Apache-2.0 | 2,017 | fire-fork | spawnfest | Ignore List | Code | 19 | 80 | .rebar3
_*
.eunit
*.o
*.beam
*.plt
*.swp
*.swo
*.kate-swp
.erlang.cookie
ebin
log
erl_crash.dump
.rebar
logs
_build
.idea
*.iml
rebar3.crashdump
| 13,859 |
https://github.com/Sneftel/btrkbd/blob/master/firmware/portdefs.h | Github Open Source | Open Source | MIT | null | btrkbd | Sneftel | C | Code | 97 | 352 | /*
* portdefs.c
*
* Created: 11/12/2013 23:20:21
* Author: Ben
*/
#ifndef PORTDEFS_H
#define PORTDEFS_H
#include <avr/io.h>
#define COL0_IO B,7
#define COL1_IO D,0
#define COL2_IO D,1
#define COL3_IO D,2
#define COL4_IO D,3
#define COL5_IO B,2
#define COL6_IO B,3
#define COL7_IO B,4
#define COL8_IO B,5
#defin... | 19,229 |
https://github.com/rohitkhilnani/Java-holic/blob/master/design_patterns/factory_design_pattern/Faculty.java | Github Open Source | Open Source | MIT | 2,016 | Java-holic | rohitkhilnani | Java | Code | 34 | 99 | package design_patterns.factory_design_pattern;
import design_patterns.factory_design_pattern.Person;
/*
Class Faculty - Encapsulates data about a Faculty Memeber
Extends abstract class Person
*/
class Faculty extends Person{
// Constructor
Faculty(){
name = "Faculty";
access = "Enhanced";
}
}
| 26,105 |
https://github.com/dcamere/yawarfighters/blob/master/source/js/ajax-query.js | Github Open Source | Open Source | Apache-2.0 | null | yawarfighters | dcamere | JavaScript | Code | 69 | 214 | (function($) {
$(document).on( 'click', '#ajax-button', function( event ) {
event.preventDefault();
// ajaxquery is the printed object we defined in functions.php in set_ajax_vars
var post_type = JSON.parse(ajaxquery.wp_query).post_type; // data we get from our embedded data
$.ajax({
url: ajaxquery.aja... | 7,122 |
https://github.com/slevomat/coding-standard/blob/master/tests/Sniffs/Classes/data/forbiddenPublicPropertyPromotedNoErrors.php | Github Open Source | Open Source | MIT | 2,023 | coding-standard | slevomat | PHP | Code | 20 | 46 | <?php // lint >= 8.1
class Test
{
public function __construct(protected int $promoted1, readonly private string $promoted2)
{
}
}
| 33,944 |
https://github.com/ScalablyTyped/ScalajsReactTyped/blob/master/k/kafkajs/src/main/scala/typingsJapgolly/kafkajs/mod/SaslAuthenticationRequest.scala | Github Open Source | Open Source | MIT | 2,022 | ScalajsReactTyped | ScalablyTyped | Scala | Code | 66 | 267 | package typingsJapgolly.kafkajs.mod
import japgolly.scalajs.react.CallbackTo
import typingsJapgolly.node.bufferMod.global.Buffer
import org.scalablytyped.runtime.StObject
import scala.scalajs.js
import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess}
trait SaslAuthenticationReq... | 5,788 |
https://github.com/ES-DOC/esdoc-questionnaire/blob/master/Q/questionnaire/static/questionnaire/less/q_bootstrap.less | Github Open Source | Open Source | MIT | null | esdoc-questionnaire | ES-DOC | Less | Code | 161 | 560 | /* redefining bootstrap stuff */
.label-sm {
.h3;
}
/* allow for colored wells */
.well.well-primary {
background: @panel-primary-heading-bg;
color: @panel-primary-text;
}
.well.well-success {
background: @panel-success-heading-bg;
color: @panel-success-text;
}
.well.well-info {
background: @panel-info... | 21,011 |
https://github.com/eug/apriori/blob/master/src/main/java/com/github/eug/apriori/Transaction.java | Github Open Source | Open Source | MIT | null | apriori | eug | Java | Code | 11 | 37 |
package com.github.eug.apriori;
import java.util.ArrayList;
public class Transaction extends ArrayList<Integer> {
}
| 2,621 |
https://github.com/Guchencc/TreeHole/blob/master/src/main/java/treehole/entity/User.java | Github Open Source | Open Source | Apache-2.0 | null | TreeHole | Guchencc | Java | Code | 218 | 544 | package treehole.entity;
import java.util.Date;
public class User {
private int userId;
private String username;
private String password;
private String nickname;
private int gender;
private Date birthday;
private String email;
private Date createDate;
public int getUserId()... | 14,991 |
https://github.com/niloy888/ProjectsManagement/blob/master/app/Http/Controllers/AutoCompleteController.php | Github Open Source | Open Source | MIT | null | ProjectsManagement | niloy888 | PHP | Code | 75 | 310 | <?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use DB;
class AutoCompleteController extends Controller
{
public function projectName(Request $request)
{
if ($request->get('query')) {
$query = $request->get('query');
/*$data = DB::table('bookings')
... | 40,485 |
https://github.com/aboutbits/react-material-icons/blob/master/src/IconDirectionsBusFilledOutlined.tsx | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, MIT | 2,023 | react-material-icons | aboutbits | TSX | Code | 74 | 514 | import React from 'react'
import { IconProps } from './types'
const IconDirectionsBusFilledOutlined: React.FC<IconProps> = ({ ...props }) => (
<svg
xmlns="http://www.w3.org/2000/svg"
enableBackground="new 0 0 24 24"
viewBox="0 0 24 24"
{...props}
>
{props.title && <title>{props.title}</title>}
... | 42,354 |
https://github.com/leftCoast/LC_neoPixel/blob/master/examples/wreath_lites/wreath_lites.ino | Github Open Source | Open Source | MIT | 2,021 | LC_neoPixel | leftCoast | null | Spoken | 153 | 768 | #include <mapper.h>
#include <lists.h>
#include <colorObj.h>
#include <neoPixel.h>
#include <timeObj.h>
//
// Decoration I setup for "Franklin" My 1942 Dodge Carryall WC53.
// See : https://youtu.be/JWgQ5aM2B5M
// Or for the blog : https://www.eskimo.com/~jimlee/Home/Carryall_Blog/Carryall_Blog.html
//
//
#define NU... | 33,072 |
https://github.com/himalayanDev/Template/blob/master/app/src/main/java/code_setup/app_core/mvp_core/BasePresenter.kt | Github Open Source | Open Source | Apache-2.0 | 2,020 | Template | himalayanDev | Kotlin | Code | 80 | 254 | package com.base.mvp
import com.base.util.SchedulerProvider
import io.reactivex.disposables.CompositeDisposable
import java.lang.ref.WeakReference
/**
* Created by arischoice
*/
open class BasePresenter<V : BaseView> constructor(
var disposable: CompositeDisposable,
var scheduler: SchedulerProvider
) : Pre... | 2,317 |
https://github.com/cviecco/tricorder/blob/master/Makefile | Github Open Source | Open Source | Apache-2.0 | 2,019 | tricorder | cviecco | Makefile | Code | 19 | 72 | all:
go-test:
@find * -name '*_test.go' |\
sed -e 's@^@github.com/Symantec/tricorder/@' -e 's@/[^/]*$$@@' |\
sort -u | xargs go test
| 7,594 |
https://github.com/gnosis/pm-trading-ui/blob/master/src/store/middlewares/Storage/actions.js | Github Open Source | Open Source | MIT | 2,019 | pm-trading-ui | gnosis | JavaScript | Code | 11 | 31 | import { createAction } from 'redux-actions'
export const loadStorage = createAction('LOAD_STORAGE')
| 9,586 |
https://github.com/upmendoza-us/portal_osos_us/blob/master/resources/views/FinancePanel/home/index.blade.php | Github Open Source | Open Source | Apache-2.0 | null | portal_osos_us | upmendoza-us | PHP | Code | 9 | 36 | @extends('layout')
@section('content')
<h1>Este es el panel de finanzas</h1>
@stop
| 53,349 |
https://github.com/jinsoo-youn/console/blob/master/frontend/node_modules/@patternfly/react-table/dist/umd/components/Table/EditableTextCell.js | Github Open Source | Open Source | MIT, Apache-2.0 | 2,021 | console | jinsoo-youn | JavaScript | Code | 318 | 1,248 | (function (global, factory) {
if (typeof define === "function" && define.amd) {
define(["exports", "prop-types", "react", "@patternfly/react-core", "@patternfly/react-styles/css/components/InlineEdit/inline-edit", "@patternfly/react-styles/css/components/Form/form", "classnames"], factory);
} else if (typeof ex... | 11,228 |
https://github.com/LongTengDao-fork-B/rollup/blob/master/test/chunking-form/samples/deconflict-system-default-export-variable/_expected/cjs/main.js | Github Open Source | Open Source | MIT, ISC | 2,021 | rollup | LongTengDao-fork-B | JavaScript | Code | 15 | 36 | 'use strict';
var other = require('./other.js');
var main = other + "extended";
module.exports = main;
| 36,126 |
https://github.com/mbbaraka/cargo_tracker/blob/master/app/Http/Controllers/ShippingController.php | Github Open Source | Open Source | MIT | null | cargo_tracker | mbbaraka | PHP | Code | 688 | 2,145 | <?php
namespace App\Http\Controllers;
use App\Models\Shipping;
use Illuminate\Http\Request;
use AfricasTalking\SDK\AfricasTalking;
use Alert;
class ShippingController extends Controller
{
/**
* Create a new controller instance.
*
* @return void
*/
public function __construct()
{
... | 24,555 |
https://github.com/borodust/cl-badge/blob/master/appkit/appkit.lisp | Github Open Source | Open Source | MIT | 2,022 | cl-badge | borodust | Common Lisp | Code | 1,044 | 4,393 | (cl:in-package :cl-bodge.appkit)
(declaim (special *font*))
(define-constant +default-frame-rate+ 60)
(defvar +origin+ (vec2 0.0 0.0))
(defvar +black+ (vec4 0 0 0 1))
(defvar *appkit-instance-class* nil)
(defvar *appkit-instance* nil)
(define-constant +double-float-drift-time-correction+ 0.0000001d0
:test #'=)
... | 49,808 |
https://github.com/vithu30/carbon-apimgt-1/blob/master/features/apimgt/org.wso2.carbon.apimgt.publisher.feature/src/main/resources/publisher-new/source/src/app/components/Endpoints/index.jsx | Github Open Source | Open Source | Apache-2.0 | null | carbon-apimgt-1 | vithu30 | null | Spoken | 196 | 449 | /*
* Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. licenses this file to you 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/li... | 16,279 |
https://github.com/akhilbhujle/IOT-C2/blob/master/Modules/Module_7_Installing_the_NDK/app/build.gradle | Github Open Source | Open Source | Apache-2.0 | 2,017 | IOT-C2 | akhilbhujle | Gradle | Code | 42 | 224 | apply plugin: 'com.android.model.application'
model{
android {
compileSdkVersion=23
buildToolsVersion="23.0.0"
defaultConfig.with {
applicationId="net.calit2.mooc.iot_db410c.myndk"
minSdkVersion.apiLevel=21
targetSdkVersion.apiLevel= 23
vers... | 20,383 |
https://github.com/Eun/go-hit/blob/master/debug_request_test.go | Github Open Source | Open Source | MIT | 2,022 | go-hit | Eun | Go | Code | 508 | 2,854 | package hit_test
import (
"bytes"
"encoding/json"
"testing"
. "github.com/Eun/go-hit"
"io/ioutil"
"strings"
"net/url"
"github.com/lunixbochs/vtclean"
"github.com/stretchr/testify/require"
)
func TestDebugRequest_Method(t *testing.T) {
s := EchoServer()
defer s.Close()
buf := bytes.NewBuffer(nil)
T... | 15,830 |
https://github.com/trentpolack/hifi/blob/master/libraries/gl/src/gl/OffscreenQmlSurface.h | Github Open Source | Open Source | Apache-2.0 | 2,019 | hifi | trentpolack | C | Code | 524 | 1,580 | //
// Created by Bradley Austin Davis on 2015-04-04
// Copyright 2015 High Fidelity, Inc.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
//
#pragma once
#ifndef hifi_OffscreenQmlSurface_h
#define hifi_OffscreenQmlSurfa... | 16,329 |
https://github.com/ErwinKomen/RU-passim/blob/master/passim/passim/stemma/fitch.py | Github Open Source | Open Source | Apache-2.0 | 2,023 | RU-passim | ErwinKomen | Python | Code | 245 | 718 | """
This is the Python equivalent of FITCH
"""
from passim.utils import ErrHandle
class MyFitch(Object):
lower = True
def __init__(self, *args, **kwargs):
self.minev = False
self.global_ = False
self.jumble = False
self.njumble = 1
self.lengths = False
self.lo... | 29,539 |
https://github.com/svsintel/wasmtime/blob/master/crates/wasi-common/tests/wasm_tests/runtime.rs | Github Open Source | Open Source | Apache-2.0 | null | wasmtime | svsintel | Rust | Code | 338 | 1,137 | use anyhow::{bail, Context};
use cranelift_codegen::settings::{self, Configurable};
use std::fs::File;
use std::{collections::HashMap, path::Path};
use wasmtime_api::{Config, Engine, HostRef, Instance, Module, Store};
pub fn instantiate(data: &[u8], bin_name: &str, workspace: Option<&Path>) -> anyhow::Result<()> {
... | 51,438 |
https://github.com/tc-ca/tcforms/blob/master/KEEN.Domain/Entities/SubmissionSectionEntity.cs | Github Open Source | Open Source | MIT | 2,019 | tcforms | tc-ca | C# | Code | 143 | 505 | using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace KEEN.Domain.Entities
{
[Table("FAST.YY015_SUBMISSION_SECTION")]
public class SubmissionSectionEntity
{
[System.Diagnostics.CodeAnalysis.Suppress... | 44,305 |
https://github.com/SoapCanFly/tinyPornhubManager/blob/master/src/main/java/org/tinymediamanager/ui/tvshows/panels/season/TvShowSeasonInformationPanel.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | tinyPornhubManager | SoapCanFly | Java | Code | 840 | 3,964 | /*
* Copyright 2012 - 2020 Manuel Laggner
*
* 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 ... | 37,766 |
https://github.com/aliyun/alibabacloud-java-sdk/blob/master/mhub-20170825/src/main/java/com/aliyun/mhub20170825/models/ListProductsRequest.java | Github Open Source | Open Source | Apache-2.0 | 2,023 | alibabacloud-java-sdk | aliyun | Java | Code | 126 | 380 | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.mhub20170825.models;
import com.aliyun.tea.*;
public class ListProductsRequest extends TeaModel {
@NameInMap("Offset")
public Integer offset;
@NameInMap("Size")
public Integer size;
@NameInMap("Simple")
public Boolean ... | 16,859 |
https://github.com/Romantic-LiXuefeng/ScreenShare/blob/master/screenShareKit/src/main/java/org/loka/screensharekit/EncodeConfig.kt | Github Open Source | Open Source | Apache-2.0 | 2,021 | ScreenShare | Romantic-LiXuefeng | Kotlin | Code | 17 | 53 | package org.loka.screensharekit
data class EncodeConfig(var width:Int = 1080,var height:Int = 1920,var frameRate:Int = 15,var bitrate:Int = 2000000)
| 52,987 |
https://github.com/diabetes-page/diabetes.page/blob/master/frontend/src/redux/user/actions.ts | Github Open Source | Open Source | MIT | 2,021 | diabetes.page | diabetes-page | TypeScript | Code | 21 | 52 | import { FilledUserState } from './state';
export const SET_USER = 'SET_USER';
export interface SetUser {
type: typeof SET_USER;
user: FilledUserState;
}
| 44,181 |
https://github.com/treefort/mulletrun/blob/master/node_modules/grunt-ender/node_modules/ender/node_modules/ender-package/lib/index.js | Github Open Source | Open Source | MIT, MITNFA | 2,014 | mulletrun | treefort | JavaScript | Code | 842 | 2,034 | /*!
* ENDER - The open module JavaScript framework
*
* Copyright (c) 2011-2012 @ded, @fat, @rvagg and other contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restr... | 52,412 |
https://github.com/shebin-thazheleth/intelligent-traffic-intersection/blob/master/src/library/IntelligentTraffic/TrafficLight.cpp | Github Open Source | Open Source | MIT | 2,017 | intelligent-traffic-intersection | shebin-thazheleth | C++ | Code | 269 | 1,015 | #include "TrafficLight.h"
#include "Arduino.h"
TrafficLight::TrafficLight(int trafficLightPins[], trafficColor initialState, String name, unsigned long interval) {
// Make all traffic light pins output
for (int thisTrafficLight = 0; thisTrafficLight < 3; thisTrafficLight++) {
pinMode(trafficLightPins[thisTrafficL... | 27,452 |
https://github.com/lulzzz/jcIDS/blob/master/legacy/jcIDS.library.core/Managers/NetworkDeviceManager.cs | Github Open Source | Open Source | MIT | 2,019 | jcIDS | lulzzz | C# | Code | 65 | 309 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using jcIDS.library.core.Common;
using jcIDS.library.core.DAL.Objects;
using jcIDS.library.core.Interfaces;
namespace jcIDS.library.core.Managers
{
public class NetworkDeviceManager : IListManager<NetworkDeviceObjec... | 37,724 |
https://github.com/frandallfarmer/Elko/blob/master/ServerCore/java/org/elkoserver/server/presence/Domain.java | Github Open Source | Open Source | MIT | 2,021 | Elko | frandallfarmer | Java | Code | 127 | 412 | package org.elkoserver.server.presence;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
class Domain {
static private int theNextIndex = 0;
static private ArrayList<Domain> theDomains = new ArrayList<Domain>();
private int myIndex;
private String... | 4,342 |
https://github.com/timmahrt/pyAcoustics/blob/master/matlabScripts/nucleus_detection_matlab/fu_trim_vec.m | Github Open Source | Open Source | MIT | 2,023 | pyAcoustics | timmahrt | MATLAB | Code | 41 | 132 | function vt = fu_trim_vec(v,w,a);
% vt=fu_trim_vec(v,w,e);
% pops vector V or pushes scalar/vector A to V until size of V is equal to
% size of W
vt=column2rowvec(v);
while length(vt)<length(w)
vt=[vt a];
end
vt=vt(1:length(w));
if size(vt,1) ~= size(w,1)
vt=vt';
end
return
| 16,425 |
https://github.com/cpreh/spacegameengine/blob/master/libs/input/include/sge/input/cursor/event/base.hpp | Github Open Source | Open Source | BSL-1.0 | 2,018 | spacegameengine | cpreh | C++ | Code | 74 | 391 | // Copyright Carl Philipp Reh 2006 - 2019.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#ifndef SGE_INPUT_CURSOR_EVENT_BASE_HPP_INCLUDED
#define SGE_INPUT_CURSOR_EVENT_BASE_HPP_INCLUDED
... | 30,222 |
https://github.com/mattn/picomap/blob/master/Makefile | Github Open Source | Open Source | Intel | 2,021 | picomap | mattn | Makefile | Code | 49 | 203 | prefix=/usr/local
includedir=$(prefix)/include
check: test
test: test-core
./test-core
test-core: picohashmap.h test.c picotest/picotest.c picotest/picotest.h
$(CC) -Wall test.c picotest/picotest.c -o $@
clean:
rm -f test-core
benchmark:
$(CC) -Wall benchmark.c -o benchmark
./benchmark
install:
install -d $... | 52,634 |
https://github.com/alaasalman/moneytracker/blob/master/walletweb/migrations/0017_auto_20180115_0633.py | Github Open Source | Open Source | MIT | null | moneytracker | alaasalman | Python | Code | 63 | 377 | # Generated by Django 2.0.1 on 2018-01-15 06:33
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('walletweb', '0016_auto_20180115_0152'),
]
operations = [
migrations.AlterF... | 34,506 |
https://github.com/nymanjens/quizmaster/blob/master/app/shared/src/main/scala/app/AppVersion.scala | Github Open Source | Open Source | Apache-2.0 | 2,023 | quizmaster | nymanjens | Scala | Code | 21 | 38 | package app
/** Version string that gets incremented on every deploy. */
object AppVersion {
val versionString: String = "1.157"
}
| 20,897 |
https://github.com/sdspikes/client/blob/master/app/src/androidTest/java/org/projectbuendia/client/filter/matchers/FilteredCursorWrapperTest.java | Github Open Source | Open Source | Apache-2.0 | null | client | sdspikes | Java | Code | 253 | 710 | // Copyright 2015 The Project Buendia Authors
//
// Licensed under the Apache License, Version 2.0 (the "License"); you may not
// use this file except in compliance with the License. You may obtain a copy
// of the License at: http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agree... | 54,205 |
https://github.com/rmallols/portfolio/blob/master/cypress/integration/navigation_spec.js | Github Open Source | Open Source | MIT | 2,021 | portfolio | rmallols | JavaScript | Code | 284 | 847 | import { get } from '../utils/selectors';
context('Navigation', () => {
before(() => {
cy.visit(Cypress.config().baseUrl);
});
beforeEach(() => {
//We delay each test to ensure all the animations are complete
//before running any further operations. Thanks to that,
//the t... | 3,709 |
https://github.com/mayconbordin/ubipri-server/blob/master/app/dao/ebean/UserProfileEnvironmentEbeanDAO.java | Github Open Source | Open Source | Apache-2.0 | null | ubipri-server | mayconbordin | Java | Code | 16 | 67 | package dao.ebean;
import dao.UserProfileEnvironmentDAO;
import models.UserProfileEnvironment;
public class UserProfileEnvironmentEbeanDAO extends BaseEbeanDAO<UserProfileEnvironment, Integer>
implements UserProfileEnvironmentDAO {
}
| 5,482 |
https://github.com/yingogobot/YXSpritesLoadingView/blob/master/YXSpritesLoadingViewExample/YXSpritesLoadingViewExample/YXAppDelegate.h | Github Open Source | Open Source | MIT | 2,021 | YXSpritesLoadingView | yingogobot | C | Code | 35 | 112 | //
// YXAppDelegate.h
// YXSpritesLoadingViewExample
//
// Created by Yin Xu on 5/14/14.
// Copyright (c) 2014 YinXuApp. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface YXAppDelegate : UIResponder <UIApplicationDelegate>
@property (strong, nonatomic) UIWindow *window;
@end
| 1,829 |
https://github.com/gmullerb/react-reducer-provider/blob/master/src/useAnyDispatcher.js | Github Open Source | Open Source | MIT | 2,021 | react-reducer-provider | gmullerb | JavaScript | Code | 59 | 133 | // Copyright (c) 2020 Gonzalo Müller Bravo.
// Licensed under the MIT License (MIT), see LICENSE.txt
import * as React from 'react'
import { captureProvider } from './Providers'
export function useAnyDispatcher(id) {
// Must `useContext` since it provides React triggering mechanism, using `captureProvider(name).dis... | 53,533 |
https://github.com/afdev5/web-tutor-unima/blob/master/resources/views/kelas/index.blade.php | Github Open Source | Open Source | MIT | 2,021 | web-tutor-unima | afdev5 | Blade | Code | 2,027 | 9,154 | @extends('layouts.admin')
@section('content')
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<section class="content-header">
<div class="container-fluid">
<div class="row mb-2">
<div class="col-sm-6">
<h1>Kelas Tutor</h1>
... | 53,364 |
https://github.com/CHANCHAL-singhal/Tution-Management-System/blob/master/TMS Project/WebContent/js/formvalidation/formvalidationinquiry.js | Github Open Source | Open Source | MIT | 2,018 | Tution-Management-System | CHANCHAL-singhal | JavaScript | Code | 147 | 618 | $().ready(function() {
$("#inquiry").validate({
onfocusout: function(element) {
this.element(element);
},
rules : {
isname : {
required : true,
OnlyText:true
},
isemail : {
required : true,
email_add:true
},
ismobile:{
required:true,
mobile_no:tr... | 43,827 |
https://github.com/vittominacori/buidler/blob/master/test/internal/core/project-structure.ts | Github Open Source | Open Source | MIT | 2,019 | buidler | vittominacori | TypeScript | Code | 227 | 667 | import { assert } from "chai";
import * as fsExtra from "fs-extra";
import { ERRORS } from "../../../src/internal/core/errors";
import {
getRecommendedGitIgnore,
getUserConfigPath,
isCwdInsideProject
} from "../../../src/internal/core/project-structure";
import { expectBuidlerError } from "../../helpers/errors";... | 24,967 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.