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/D1le/jenkins-pipes/blob/master/test/groovy/com/github/d1le/pipeline/jenkins/LocalJenkinsTest.groovy | Github Open Source | Open Source | MIT | null | jenkins-pipes | D1le | Groovy | Code | 244 | 1,419 | package com.github.d1le.pipeline.jenkins
import hudson.AbortException
import hudson.model.Result
import org.jenkinsci.plugins.workflow.support.steps.build.RunWrapper
import org.junit.Before
import org.junit.Test
import org.mockito.ArgumentCaptor
import org.mockito.Captor
import static org.assertj.core.api.Assertions... | 29,020 |
https://github.com/las6731/IntelliJ-POC-Testing/blob/master/src/main/java/org/scanl/plugins/poc/actions/HelloWorld.java | Github Open Source | Open Source | MIT | null | IntelliJ-POC-Testing | las6731 | Java | Code | 174 | 763 | package org.scanl.plugins.poc.actions;
import com.intellij.openapi.actionSystem.AnAction;
import com.intellij.openapi.actionSystem.AnActionEvent;
import com.intellij.openapi.project.Project;
import com.intellij.openapi.roots.ProjectRootManager;
import com.intellij.openapi.vfs.VirtualFile;
import com.intellij.psi.PsiCl... | 46,402 |
https://github.com/vladcorneci/golden-gate/blob/master/platform/apple/bindings/GoldenGate/UI/BlastingPlaygroundViewController.swift | Github Open Source | Open Source | Apache-2.0 | 2,022 | golden-gate | vladcorneci | Swift | Code | 499 | 1,705 | // Copyright 2017-2020 Fitbit, Inc
// SPDX-License-Identifier: Apache-2.0
//
// BlastingPlaygroundViewController.swift
// GoldenGate
//
// Created by Emanuel Jarnea on 27/07/2020.
//
#if os(iOS)
import BluetoothConnection
import RxCocoa
import RxSwift
import UIKit
public protocol BlastingPlaygroundViewControlle... | 32,155 |
https://github.com/sk-scd91/advent-of-code-2016/blob/master/advents/AdventDay6Part1.java | Github Open Source | Open Source | MIT | 2,016 | advent-of-code-2016 | sk-scd91 | Java | Code | 98 | 390 | package com.skscd91.advent2016.advents;
import java.io.BufferedReader;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
import java.util.stream.IntStream;
import java.util.stream.Stream;
/**
* Created by Sean Deneen on 12/6/16.
* Find the message using a repetition code.
*/
public c... | 29,685 |
https://github.com/janniclas/phasar/blob/master/test/llvm_test_code/uninitialized_variables/uninit.c | Github Open Source | Open Source | MIT | 2,022 | phasar | janniclas | C | Code | 24 | 46 | int main() {
int a;
int b;
int c = 10;
int d = 20;
int e = a * b;
return 0;
}
| 388 |
https://github.com/amwitx/Amw.Core/blob/master/Common/Webi.Wechat.Web.Core/Controllers/mp_testController.cs | Github Open Source | Open Source | MIT | null | Amw.Core | amwitx | C# | Code | 72 | 347 | using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Options;
using System;
using System.Threading.Tasks;
using Webi.Core.SDK;
using Webi.Core.SDK.BaseClass;
using Webi.Wechat.Web.Core.Models.AppSettings;
using Webi.Wechat.Web.Core.Models.WxMP;
namespace Webi.Wechat.Web.Core.Con... | 32,377 |
https://github.com/folio-org/erm-stripes-containers/blob/master/lib/EditCard/index.js | Github Open Source | Open Source | Apache-2.0 | 2,021 | erm-stripes-containers | folio-org | JavaScript | Code | 6 | 11 | export { default } from './EditCard';
| 10,334 |
https://github.com/Superomeg4/pyleecan/blob/master/Methods/Output/Output/plot/Magnetic/plot_mesh_field.py | Github Open Source | Open Source | Apache-2.0 | null | pyleecan | Superomeg4 | Python | Code | 204 | 642 | # -*- coding: utf-8 -*-
import matplotlib.pyplot as plt
import matplotlib.collections
import numpy as np
def plot_mesh_field(
self,
meshsolution=None,
j_t0=0,
mesh=None,
solution=None,
field=None,
title="No title",
group=None,
elem_type="Triangle3",
):
""" Display 2D field ampl... | 36,892 |
https://github.com/Aryaak/lks_wilker1/blob/master/routes/web.php | Github Open Source | Open Source | MIT | null | lks_wilker1 | Aryaak | PHP | Code | 50 | 398 | <?php
use Illuminate\Support\Facades\Route;
use App\Http\Controllers\BackendController;
use App\Http\Controllers\FrontendController;
use App\Http\Controllers\NewsController;
use App\Http\Controllers\ResponseController;
Route::middleware('auth')->group(function(){
Route::get('admin', [BackendController::class, 'in... | 15,033 |
https://github.com/Irockus/wdl-fab/blob/master/WDL/IPlug/IPlugAU.h | Github Open Source | Open Source | Zlib | 2,014 | wdl-fab | Irockus | C++ | Code | 533 | 1,889 | #ifndef _IPLUGAPI_
#define _IPLUGAPI_
// Only load one API class!
#include "IPlugBase.h"
#include <CoreServices/CoreServices.h>
#include <AudioUnit/AUComponent.h>
#include <AudioUnit/AudioUnitProperties.h>
#include <AudioToolbox/AudioUnitUtilities.h>
#include <AudioUnit/AudioUnitCarbonView.h>
// Argh!
#if MAC_OS_X_VE... | 23,020 |
https://github.com/floofcode/hireme/blob/master/src/user/ui/loginbutton/LoginButtonActions.js | Github Open Source | Open Source | MIT | null | hireme | floofcode | JavaScript | Code | 144 | 441 | import { uport } from './../../../util/connectors.js'
import { BrowserRouter } from 'react-router-dom'
export const USER_LOGGED_IN = 'USER_LOGGED_IN'
function userLoggedIn(user) {
return {
type: USER_LOGGED_IN,
payload: user
}
}
export function loginUser() {
return async function(dispatch) {
// UPo... | 43,070 |
https://github.com/VamsiVempati/tractor/blob/master/e2e-tests/step-definitions/Given/Given GET _file-structure is a pass-through.step.js | Github Open Source | Open Source | MIT | 2,015 | tractor | VamsiVempati | JavaScript | Code | 30 | 97 | /*{
"name": "Given GET /file-structure is a pass-through",
"components": [],
"mockData": []
}*/
module.exports = function () {
this.Given(/^GET \/file\-structure is a pass\-through$/, function (done) {
httpBackend.whenGET(/\/file-structure/).passThrough();
done();
});
}; | 39,797 |
https://github.com/tkawachi/sbt-less/blob/master/build.sbt | Github Open Source | Open Source | Apache-2.0 | 2,015 | sbt-less | tkawachi | Scala | Code | 79 | 317 | sbtPlugin := true
organization := "com.typesafe.sbt"
name := "sbt-less"
description := "sbt-web less plugin"
scalaVersion := "2.10.4"
sbtPlugin := true
libraryDependencies ++= Seq(
"org.webjars" % "less-node" % "2.5.0",
"org.webjars" % "source-map" % "0.1.40-1",
"org.webjars" % "mkdirp" % "0.5.0",
"org.webja... | 3,832 |
https://github.com/Sachpat/signalfx-java/blob/master/signalfx-java/src/main/java/com/signalfx/metrics/connection/HttpDataPointProtobufReceiverConnection.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | signalfx-java | Sachpat | Java | Code | 302 | 1,244 | package com.signalfx.metrics.connection;
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.apache.commons.io.IOUtils;
import org.apache.http.HttpEntity;
import org.apache.http.HttpStatus;
import org.apache.http.client.methods.Clos... | 51,434 |
https://github.com/rfong/shittynlp/blob/master/metamarkovmashup/preprocess.py | Github Open Source | Open Source | MIT | 2,019 | shittynlp | rfong | Python | Code | 54 | 172 | from nltk import tokenize
import os
import sys
import unicodedata
file_name = sys.argv[1]
file = open(file_name, 'r')
out_name = os.path.splitext(file_name)[0] + '.sentences'
out = open(out_name, 'w')
# Let's lazily assume everything fits in memory with no problems
text = unicodedata.normalize('NFKD', file.read().dec... | 40,155 |
https://github.com/simvip/isliusar/blob/master/chapter_008_Spring_IoC/src/test/springtest/db/UserStorageTest.java | Github Open Source | Open Source | Apache-2.0 | null | isliusar | simvip | Java | Code | 120 | 474 | package springtest.db;
import springtest.models.User;
import org.junit.Before;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import static org.hamcrest.core.Is.is;
import static org.junit.Assert.assertNull;
impo... | 31,757 |
https://github.com/Milchschlumpf/CircularProgressIndicator/blob/master/circularprogressindicator/src/main/java/milchschlumpf/circularprogressindicator/DefaultAnimatorListener.java | Github Open Source | Open Source | Apache-2.0 | null | CircularProgressIndicator | Milchschlumpf | Java | Code | 64 | 202 | package milchschlumpf.circularprogressindicator;
import android.animation.Animator;
/**
* Created by Anton on 17.03.2018.
*/
class DefaultAnimatorListener implements Animator.AnimatorListener {
@Override
public void onAnimationStart(Animator animation, boolean isReverse) {
}
@Override
public ... | 28,689 |
https://github.com/Jeswang/Distribution/blob/master/r/react-phone-number-input/src/main/scala/typings/reactPhoneNumberInput/reactPhoneNumberInputProps.scala | Github Open Source | Open Source | MIT | 2,020 | Distribution | Jeswang | Scala | Code | 24 | 118 | package typings.reactPhoneNumberInput
import typings.reactPhoneNumberInput.mod.PhoneInputProps
import scala.scalajs.js
import scala.scalajs.js.`|`
import scala.scalajs.js.annotation._
trait reactPhoneNumberInputProps {
@scala.inline
def ReactPhoneNumberInputProps: PhoneInputProps.type = typings.reactPhoneNumberIn... | 2,182 |
https://github.com/JohnNooney/HadoopAutoProvisioner/blob/master/helm/HadoopAutoProvisioner/templates/_helpers.tpl | Github Open Source | Open Source | Apache-2.0 | null | HadoopAutoProvisioner | JohnNooney | null | Spoken | 272 | 681 | {{/*
Expand the name of the chart.
*/}}
{{- define "HadoopAutoProvisioner.flask.name" -}}
{{- default .Chart.Name .Values.flask.nameOverride | trunc 63 | trimSuffix "-" }}
{{- end }}
{{/*
Create a default fully qualified app name.
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the ... | 46,890 |
https://github.com/AtahanEkici/Book/blob/master/Admin.java | Github Open Source | Open Source | Apache-2.0 | null | Book | AtahanEkici | Java | Code | 103 | 289 | import javax.swing.JOptionPane;
public class Admin extends Account
{
public Admin(String username,String pass)
{
super(username,pass);
super.type = true; // Admin Account //
}
public Admin()
{
super();
super.type = true;
}
public static Admin Setup... | 45,838 |
https://github.com/rouke/sava/blob/master/docker/Dockerfile | Github Open Source | Open Source | Apache-2.0 | 2,015 | sava | rouke | Dockerfile | Code | 22 | 80 | FROM busybox:latest
MAINTAINER tim@magnetic.io
# Vamp Sava showcase service _SERVICE_
# https://github.com/magneticio/sava
EXPOSE 8080
COPY public /public
COPY _SERVICE_ /
ENTRYPOINT ["/_SERVICE_"]
| 31,703 |
https://github.com/Spydarlee/Plantasia/blob/master/UnityProjects/Plantasia/Packages/Source/Scripts/ActionGraph/Actions/LeanTween/LeanTweenScale.cs | Github Open Source | Open Source | CC0-1.0 | null | Plantasia | Spydarlee | C# | Code | 52 | 140 | using ActionGraph;
using UnityEngine;
public class LeanTweenScale : LeanTweenBaseAction
{
// -------------------------------------------------------------------------------
public Variable<GameObject> Target;
public Vector3 Scale;
// -----------------------------------------------------... | 12,206 |
https://github.com/2c0/haikonguyen.eu/blob/master/src/pages/404.style.js | Github Open Source | Open Source | MIT | 2,020 | haikonguyen.eu | 2c0 | JavaScript | Code | 432 | 1,527 | import styled from 'styled-components';
import { DarkTheme } from '../themes/themes';
import starsOverlay from '../img/overlay_stars.svg';
const FourOFourWrap = styled.div`
background: linear-gradient(
177deg,
rgba(2, 26, 54, 1) 0%,
rgba(3, 24, 53, 1) 73%
);
height: 85vh;
@keyframes rocket-moveme... | 24,500 |
https://github.com/jl-fb/quasar/blob/master/teste-tcc/src/pages/AuthPage.vue | Github Open Source | Open Source | MIT | null | quasar | jl-fb | Vue | Code | 78 | 380 | <template>
<q-page padding>
<q-card class="auth-page">
<q-tabs
v-model="tab"
dense
class="text-grey"
active-color="primary"
indicator-color="primary"
align="justify"
narrow-indicator
>
<q-tab name="login" label="Login" />
<q-tab n... | 49,377 |
https://github.com/marvintejada19/deeco-online-portal/blob/master/app/Models/Questions/Types/QuestionSelectFromTheWordboxChoice.php | Github Open Source | Open Source | MIT | null | deeco-online-portal | marvintejada19 | PHP | Code | 36 | 162 | <?php
namespace App\Models\Questions\Types;
use Illuminate\Database\Eloquent\Model;
class QuestionSelectFromTheWordboxChoice extends Model
{
protected $fillable = ['text'];
protected $table = 'question_select_from_the_wordbox_choices';
public $timestamps = false;
public function question(){
return $this... | 29,028 |
https://github.com/CharlesYerts/meta/blob/master/.eslintrc.js | Github Open Source | Open Source | MIT | 2,021 | meta | CharlesYerts | JavaScript | Code | 75 | 310 | module.exports = {
root: true,
env: {
node: true,
},
extends: [
'standard',
],
rules: {
'no-undef': 'off',
'no-unused-vars': 'off',
indent: [
'error', 4,
],
'comma-dangle': [
'error', {
arrays: 'alway... | 44,703 |
https://github.com/Tomdango/nhsuk-react-components/blob/master/src/index.js | Github Open Source | Open Source | MIT | 2,019 | nhsuk-react-components | Tomdango | JavaScript | Code | 287 | 626 | export { default as ActionLink } from './components/action-link';
export { default as BackLink } from './components/back-link';
export { default as Breadcrumbs } from './components/breadcrumbs';
export { default as Button } from './components/button';
export { default as CareCard } from './components/care-card';
export... | 42,238 |
https://github.com/acrogenesis-lab/crime-in-chicago/blob/master/public/javascripts/ward.js | Github Open Source | Open Source | MIT | 2,021 | crime-in-chicago | acrogenesis-lab | JavaScript | Code | 1,237 | 4,492 | // Fix until we move code to new open-city-crime.js library
var OpenCity = OpenCity || {};
OpenCity.CrimeInChicago = OpenCity.CrimeInChicago || {};
OpenCity.CrimeInChicago.fusion_table_id = 2954091;
OpenCity.CrimeInChicago.chicago_centroid = function() {
return new google.maps.LatLng(41.8781136, -87.66677856445312);
... | 41,974 |
https://github.com/devopstoday11/gocd/blob/master/server/src/main/webapp/WEB-INF/rails/webpack/views/pages/materials/models/material_view_model.ts | Github Open Source | Open Source | Apache-2.0, MIT | 2,020 | gocd | devopstoday11 | TypeScript | Code | 337 | 1,047 | /*
* Copyright 2020 ThoughtWorks, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... | 17,030 |
https://github.com/rockstardev/OAuth2Login/blob/master/Oauth2Login/Configuration/OAuthConfigurationSection.cs | Github Open Source | Open Source | Apache-2.0 | 2,017 | OAuth2Login | rockstardev | C# | Code | 53 | 170 | using System.Configuration;
namespace Oauth2Login.Configuration
{
public class OAuthConfigurationSection : ConfigurationSection
{
[ConfigurationProperty("web", IsRequired = false)]
public OAuthWebConfigurationElement WebConfiguration
{
get { return base["web"] as OAuthWebCo... | 52,894 |
https://github.com/blueror815/Eduting/blob/master/admin/application/views/user/index.php | Github Open Source | Open Source | Unlicense | null | Eduting | blueror815 | PHP | Code | 153 | 623 | <?php
$this->load->view("partials/top_menus");
?>
<script>
$(function() {
$("#search_now").click(function() {
alert($("#search_key").val());
window.location.href = "<?php echo base_url()?>user/search/" + $("#search_key").val();
});
})
</script>
<div class="c... | 46,407 |
https://github.com/Meloncher/Meloncher/blob/master/src/MeloncherCore/Launcher/ExtMinecraftPath.cs | Github Open Source | Open Source | RSA-MD | 2,022 | Meloncher | Meloncher | C# | Code | 275 | 918 | using System;
using CmlLib.Core;
namespace MeloncherCore.Launcher
{
public class ExtMinecraftPath : MinecraftPath
{
public new static readonly string
MacDefaultPath = Environment.GetEnvironmentVariable("HOME") + "/Library/Application Support/meloncher",
LinuxDefaultPath = Environment.GetEnvironmentVariable(... | 31,094 |
https://github.com/Kelloggs/depclipse/blob/master/srcTest/de/plugins/eclipse/depclipse/model/TreeObjectTest.java | Github Open Source | Open Source | Apache-2.0, BSD-3-Clause, BSD-2-Clause | 2,013 | depclipse | Kelloggs | Java | Code | 433 | 1,731 | /*******************************************************************************
* Copyright (c) 2010 Jens Cornelis.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the BSD License
* which accompanies this distribution, and is available at
* http://www.ope... | 29,537 |
https://github.com/chillman21/NIUstudy/blob/master/src/main/java/niu/study/Leetcode/Solution347.java | Github Open Source | Open Source | MIT | null | NIUstudy | chillman21 | Java | Code | 108 | 352 | package niu.study.Leetcode;
import java.util.*;
public class Solution347 {
public int[] topKFrequent(int[] nums, int k) {
HashMap<Integer, Integer> map = new HashMap<Integer, Integer>();
for (int n: nums) {
map.put(n, map.getOrDefault(n, 0) + 1);
}
// init heap 'the le... | 41,076 |
https://github.com/Excuta/Search-Client/blob/master/app/src/main/java/com/excuta/searchclient/domain/SearchUseCase.kt | Github Open Source | Open Source | Apache-2.0 | 2,019 | Search-Client | Excuta | Kotlin | Code | 48 | 210 | package com.excuta.searchclient.domain
import com.excuta.searchclient.domain.entity.query.categorizer.QueryCategorizer
import com.excuta.searchclient.domain.entity.query.processor.QueryProcessor
import com.excuta.searchclient.presentation.model.SearchResult
import io.reactivex.Observable
class SearchUseCase construc... | 8,600 |
https://github.com/silvijama/video_project/blob/master/resources/views/layouts/app.blade.php | Github Open Source | Open Source | MIT | 2,021 | video_project | silvijama | Blade | Code | 477 | 2,006 | <!doctype html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- CSRF Token -->
<meta name="csrf-token" content="{{ csrf_token() }}">
<title>{{ config('app.name', 'Laravel') }}</tit... | 13,080 |
https://github.com/cycy1999/wxshop/blob/master/resources/views/safeset.blade.php | Github Open Source | Open Source | MIT | null | wxshop | cycy1999 | PHP | Code | 69 | 460 | @extends('include')
@section('content')
<link href="{{url('css/mywallet.css')}}" rel="stylesheet" type="text/css" />
<link href="{{url('css/safeset.css')}}" rel="stylesheet" type="text/css" />
<script src="http://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script>
<!--触屏版内页头部-->
<div class="m-block-he... | 1,730 |
https://github.com/henily/GPortfolio/blob/master/utils/parse/profile.js | Github Open Source | Open Source | MIT | 2,019 | GPortfolio | henily | JavaScript | Code | 106 | 310 | 'use strict'
const Github = require('../classes/Github')
const variables = require('../variables')
const Cache = require('../classes/Cache')
/** @type {string} */
const LOG_SECTION = 'Profile'
/**
* @return {Promise<?object>}
* @throws
*/
module.exports = async () => {
const cache = new Cache(variables.FILE_PR... | 11,340 |
https://github.com/hjerezmsft/azure-intelligent-edge-patterns/blob/master/factory-ai-vision/EdgeSolution/modules/WebModule/ui/src/components/LabelDisplayImage.tsx | Github Open Source | Open Source | MIT | null | azure-intelligent-edge-patterns | hjerezmsft | TypeScript | Code | 214 | 674 | import React, { useState, useRef, useEffect, FC, useMemo, useCallback } from 'react';
import { Stage, FastLayer, Image as KonvaImage } from 'react-konva';
import { Flex, Text } from '@fluentui/react-northstar';
import useImage from './LabelingPage/util/useImage';
import { Size2D, AnnotationState, Annotation } from '..... | 21,318 |
https://github.com/kgardas/Spec/blob/master/src/Spec2-Adapters-Morphic/SpMorphicButtonAdapter.class.st | Github Open Source | Open Source | MIT | null | Spec | kgardas | null | Spoken | 671 | 1,762 | "
SpecInterpreter
interpretASpec: MorphicButtonAdapter defaultSpec
model: (MorphicButtonAdapter model: ButtonPresenter new)
"
Class {
#name : #SpMorphicButtonAdapter,
#superclass : #SpAbstractMorphicAdapter,
#instVars : [
'subMenuWidget',
'styleName'
],
#category : #'Spec2-Adapters-Morphic-Base'
}
{ #cate... | 21,705 |
https://github.com/vhn0912/python-snippets/blob/master/notebook/pandas_reindex.py | Github Open Source | Open Source | MIT | 2,022 | python-snippets | vhn0912 | Python | Code | 755 | 2,149 | import pandas as pd
df = pd.DataFrame({'A': [1, 2, 3], 'B': [10, 20, 30], 'C': [100, 200, 300]},
index=['One', 'Two', 'Three'])
print(df)
# A B C
# One 1 10 100
# Two 2 20 200
# Three 3 30 300
print(df.reindex(index=['Two', 'Three', 'One']))
# A B C
# Two 2 2... | 35,644 |
https://github.com/DaZOr93/project/blob/master/resources/views/dashboard/layouts/blocks/footer/index.blade.php | Github Open Source | Open Source | MIT | null | project | DaZOr93 | PHP | Code | 6 | 26 | <footer class="container">
<p>© Company 2017-2020</p>
</footer>
| 18,837 |
https://github.com/martinmaillard/rdfine/blob/master/vocabularies/prov/lib/KeyEntityPair.ts | Github Open Source | Open Source | MIT | 2,021 | rdfine | martinmaillard | TypeScript | Code | 150 | 473 | import RdfResourceImpl, { Constructor, namespace, RdfResource, property } from '@tpluscode/rdfine';
import { createFactory } from '@tpluscode/rdfine/factory';
import * as $rdf from '@rdf-esm/data-model';
import type * as RDF from '@rdfjs/types';
import { prov } from './namespace';
import type { Initializer, ResourceNod... | 37,373 |
https://github.com/rohitdm97/bugfree-chainsaw/blob/master/src/model/Mesh.h | Github Open Source | Open Source | Apache-2.0 | null | bugfree-chainsaw | rohitdm97 | C | Code | 100 | 401 | #pragma once
#ifndef __MESH_CLASS_H
#define __MESH_CLASS_H
#include <memory>
#include <glad/glad.h>
#include <glm/glm.hpp>
#include <render/Shader.h>
#include <texture/Texture.h>
#include <model/VAO.h>
#include <model/VBO.h>
#include <model/EBO.h>
#include <model/Material.h>
class Camera;
class Light;
typedef std... | 17,242 |
https://github.com/xiyuoh/rmf_ros2/blob/master/rmf_fleet_adapter/src/rmf_fleet_adapter/events/ResponsiveWait.cpp | Github Open Source | Open Source | Apache-2.0 | null | rmf_ros2 | xiyuoh | C++ | Code | 646 | 2,523 | /*
* Copyright (C) 2021 Open Source Robotics Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appl... | 29,461 |
https://github.com/hdmillerdr/stackdio/blob/master/stackdio/ui/static/stackdio/app/models/label.js | Github Open Source | Open Source | Apache-2.0 | 2,022 | stackdio | hdmillerdr | JavaScript | Code | 283 | 679 |
/*!
* Copyright 2017, Digital Reasoning
*
* 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 applicabl... | 37,296 |
https://github.com/wez/max32630/blob/master/max32630_svd/src/pt0/mod.rs | Github Open Source | Open Source | Apache-2.0, MIT | 2,021 | max32630 | wez | Rust | Code | 107 | 256 | #[doc = r" Register block"]
#[repr(C)]
pub struct RegisterBlock {
#[doc = "0x00 - Pulse Train Configuration"]
pub rate_length: RATE_LENGTH,
#[doc = "0x04 - Pulse Train Output Pattern"]
pub train: TRAIN,
#[doc = "0x08 - Pulse Train Loop Count"]
pub loop_: LOOP,
}
#[doc = "Pulse Train Configuratio... | 10,508 |
https://github.com/IriSCaryle/lesson/blob/master/chap7/j8wvp8c.py | Github Open Source | Open Source | Apache-2.0 | null | lesson | IriSCaryle | Python | Code | 25 | 56 | tv = ["GOT", "Narcos", "Vice"]
i = 0
for show in tv:
new = tv[i]
new = new.upper()
ty[i] = new
i += 1
print(tv)
| 47,850 |
https://github.com/anotheria/moskito-control/blob/master/plugins/src/main/java/org/moskito/control/plugins/mattermost/StatusChangeMattermostNotifier.java | Github Open Source | Open Source | MIT | 2,019 | moskito-control | anotheria | Java | Code | 244 | 771 | package org.moskito.control.plugins.mattermost;
import com.fasterxml.jackson.core.JsonProcessingException;
import org.moskito.control.core.status.StatusChangeEvent;
import org.moskito.control.plugins.mattermost.api.MattermostApi;
import org.moskito.control.plugins.mattermost.api.exceptions.MattermostAPIException;
impo... | 40,998 |
https://github.com/creationix/candor.js/blob/master/lib/candor.js | Github Open Source | Open Source | MIT | 2,012 | candor.js | creationix | JavaScript | Code | 28 | 116 | var candor = exports;
// Export lexer/parser
candor.lexer = require('./candor/lexer').Lexer;
candor.parser = require('./candor/parser').Parser;
// Export compiler
candor.compiler = require('./candor/compiler').Compiler;
// Export API
candor.translate = require('./candor/api').translate;
candor.run = require('./cando... | 14,385 |
https://github.com/vitamin193/ember.js/blob/master/packages/ember-metal/tests/tracked/set_test.js | Github Open Source | Open Source | MIT | 2,018 | ember.js | vitamin193 | JavaScript | Code | 123 | 358 | import { get, set, setHasViews } from '../..';
import { moduleFor, AbstractTestCase } from 'internal-test-helpers';
import { createTracked } from './support';
import { EMBER_METAL_TRACKED_PROPERTIES } from '@ember/canary-features';
if (EMBER_METAL_TRACKED_PROPERTIES) {
moduleFor(
'tracked set',
class exten... | 33,137 |
https://github.com/spratt/inter_disks/blob/master/bst.js | Github Open Source | Open Source | MIT | null | inter_disks | spratt | JavaScript | Code | 545 | 1,539 | "use strict";
var AVL = function(cmp) {
this.root = null;
if(this.cmp === undefined) {
this.cmp = function(a,b) {
return a - b;
}
} else {
this.cmp = cmp;
}
};
AVL.prototype.print = function() { console.log(this.nodeToString()); };
AVL.prototype.nodeToString = functio... | 34,935 |
https://github.com/theaspect/aggregator/blob/master/src/main/kotlin/me/blzr/aggregator/task/SuppliersTask.kt | Github Open Source | Open Source | Apache-2.0 | null | aggregator | theaspect | Kotlin | Code | 152 | 503 | package me.blzr.aggregator.task
import com.google.gson.Gson
import me.blzr.aggregator.Config
import me.blzr.aggregator.exception.SuppliersJsonException
import me.blzr.aggregator.exception.SuppliersResponseException
import org.slf4j.LoggerFactory
/**
* This task receive params either from request or from recursive it... | 6,425 |
https://github.com/vladutmargineanu/Airplane-Engine-Graphics/blob/master/Source/Core/GPU/Shader.cpp | Github Open Source | Open Source | MIT | 2,022 | Airplane-Engine-Graphics | vladutmargineanu | C++ | Code | 557 | 2,131 | #include "Shader.h"
#include <fstream>
#include <iostream>
#include <include/gl.h>
using namespace std;
Shader::Shader(const char * name)
{
program = 0;
shaderName = string(name);
shaderFiles.reserve(5);
}
Shader::~Shader()
{
glDeleteProgram(program);
}
const char * Shader::GetName() const
{
return shaderName... | 24,380 |
https://github.com/Jween/OnlyDownload/blob/master/lib/src/main/java/io/jween/onlydownload/dao/DownloadFileInfoDao.java | Github Open Source | Open Source | Apache-2.0 | 2,019 | OnlyDownload | Jween | Java | Code | 101 | 388 | package io.jween.onlydownload.dao;
import io.jween.onlydownload.entity.DownloadFileInfo;
import androidx.room.Dao;
import androidx.room.Delete;
import androidx.room.Insert;
import androidx.room.OnConflictStrategy;
import androidx.room.Query;
import androidx.room.Update;
import io.reactivex.Flowable;
import io.reactiv... | 8,831 |
https://github.com/IserlohnZhou/pet/blob/master/application/views/create.php | Github Open Source | Open Source | MIT | 2,016 | pet | IserlohnZhou | PHP | Code | 255 | 1,316 | <!DOCTYPE html>
<script src="/vue.js"></script>
<script src="/vue-resource.js"></script>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Home</title>
<!-- Bootstrap Sty... | 45,400 |
https://github.com/pandeNatayasa/project_pura_klp_1/blob/master/resources/views/admin/layouts/layout_utama.blade.php | Github Open Source | Open Source | MIT | 2,019 | project_pura_klp_1 | pandeNatayasa | Blade | Code | 468 | 2,281 | <!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<!-- Meta, title, CSS, favicons, etc. -->
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
... | 14,380 |
https://github.com/anteater-alex/external-TCN-coalition-website/blob/master/themes/tcn-coalition-theme/assets/scss/3-plugins/_people.sass | Github Open Source | Open Source | MIT | 2,020 | external-TCN-coalition-website | anteater-alex | Sass | Code | 109 | 396 | section.people
@extend %border-bottom
margin-bottom: 0.75em
+clearfix
h2.title
text-align: center
margin-bottom: 2em
div.people
display: flex
flex-wrap: wrap
width: 100%
.person
flex: 100%
max-width: 100%
margin: 0 15px 2em 15px
padding: 0.3em
min-height: 1px
width: 1... | 43,702 |
https://github.com/chivinh1512/shopflower/blob/master/resources/views/admin/usermanager.blade.php | Github Open Source | Open Source | MIT | 2,019 | shopflower | chivinh1512 | Blade | Code | 55 | 364 | @extends('admin.admin')
@section('content')
<div class="row">
<div class="col-sm-1"></div>
<div class="col-sm-10">
<div class="table-responsive">
<table class="table table-bordered">
<tr>
<th>Tên</th>
<th... | 38,592 |
https://github.com/ties/rpki-commons/blob/master/src/test/java/net/ripe/rpki/commons/provisioning/cms/ProvisioningCmsObjectTest.java | Github Open Source | Open Source | BSD-3-Clause | 2,022 | rpki-commons | ties | Java | Code | 401 | 1,023 | /**
* The BSD License
*
* Copyright (c) 2010-2020 RIPE NCC
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* - Redistributions of source code must retain the above copyright notice,
* ... | 11,879 |
https://github.com/Walrusv/cucumber-tags-issue/blob/master/node_modules/pactum/src/models/expect.js | Github Open Source | Open Source | MIT | 2,021 | cucumber-tags-issue | Walrusv | JavaScript | Code | 1,484 | 4,954 | const assert = require('assert');
const jqy = require('json-query');
const lc = require('lightcookie');
const config = require('../config');
const utils = require('../helpers/utils');
const file = require('../helpers/file.utils');
const log = require('../plugins/logger');
const processor = require('../helpers/dataProc... | 6,359 |
https://github.com/dhausk/SSanta/blob/master/src/views/SSList.vue | Github Open Source | Open Source | MIT | 2,020 | SSanta | dhausk | Vue | Code | 190 | 772 | <template>
<div class="mb-4">
<div class="progress mb-4">
<div class="progress-bar"
role="progressbar"
style="width: 50%;"
aria-valuenow="25"
aria-valuemin="0"
aria-valuemax="100">
</div>
</div>
<section>
<form @submit.prevent="checkFormEmailsAnd... | 21,401 |
https://github.com/Codebytes/DevOpsMetrics/blob/master/DevOpsMetrics/DevOpsMetrics.Service/DataAccess/DeploymentFrequencyDA.cs | Github Open Source | Open Source | MIT | null | DevOpsMetrics | Codebytes | C# | Code | 1,130 | 3,856 | using DevOpsMetrics.Core;
using DevOpsMetrics.Service.Models.AzureDevOps;
using DevOpsMetrics.Service.Models.Common;
using DevOpsMetrics.Service.Models.GitHub;
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
namespace DevOpsMetrics.Service.DataAccess
{
public class DeploymentFrequenc... | 48,228 |
https://github.com/grokloc/grokloc-server/blob/master/pkg/app/admin/user/testing/user_test.go | Github Open Source | Open Source | MIT | null | grokloc-server | grokloc | Go | Code | 403 | 2,124 | // Package testing provides tests for the user package
// (broken out to break import cycles)
package testing
import (
"context"
"database/sql"
"testing"
"github.com/google/uuid"
"github.com/grokloc/grokloc-server/pkg/app"
"github.com/grokloc/grokloc-server/pkg/app/admin/org"
"github.com/grokloc/grokloc-server... | 26,071 |
https://github.com/Xkeeper0/stream-game/blob/master/.gitignore | Github Open Source | Open Source | MIT | 2,017 | stream-game | Xkeeper0 | Ignore List | Code | 4 | 17 | settings.lua
*.lnk
desktop.ini
*.db
| 1,111 |
https://github.com/souravdey091/sunbird-content-player/blob/master/js-libs/telemetry/TelemetryService.js | Github Open Source | Open Source | MIT | null | sunbird-content-player | souravdey091 | JavaScript | Code | 773 | 2,979 | TelemetryService = {
_version: "3.0",
_baseDir: 'EkStep Content App',
isActive: false,
_config: undefined,
instance: undefined,
instanceV2: undefined,
gameOutputFile: undefined,
_gameErrorFile: undefined,
_gameData: undefined,
_correlationData: undefined,
_producerData: undef... | 37,225 |
https://github.com/Tradepos/sms/blob/master/src/Gateways/SmsapiGateway.php | Github Open Source | Open Source | MIT | 2,021 | sms | Tradepos | PHP | Code | 105 | 417 | <?php
namespace Tecdiary\Sms\Gateways;
class SmsapiGateway implements SmsGatewayInterface
{
public $config;
public $response = '';
protected $params = [];
protected $url = 'https://api.smsapi.com/sms.do?';
public function __construct($config)
{
$this->config = $config;
$this-... | 1,910 |
https://github.com/lulyon/poj-archive/blob/master/lulyon/1042/8618954_AC_63MS_164K.cpp | Github Open Source | Open Source | BSD-3-Clause | 2,013 | poj-archive | lulyon | C++ | Code | 229 | 612 | #include <iostream>
#include <queue>
#define MAXN 26
using namespace std;
int main()
{
int n, h, tmp, sum, max;
int i, j, k, p;
int F[MAXN], f[MAXN], d[MAXN], t[MAXN] = {0}, ans[MAXN], ANS[MAXN];
while (scanf("%d", &n) != EOF && n)
{
scanf("%d", &h);
h *= 12;
for (i = 0... | 48,688 |
https://github.com/saltyrtc/saltyrtc-server-python/blob/master/examples/restartable.py | Github Open Source | Open Source | MIT | 2,022 | saltyrtc-server-python | saltyrtc | Python | Code | 276 | 1,021 | from typing import Any # noqa
from typing import Coroutine # noqa
from typing import List # noqa
from typing import Optional
import asyncio
import logbook.more
import os
import signal
import ssl # noqa
import sys
import saltyrtc.server
from saltyrtc.server.typing import ServerSecretPermanentKey # noqa
def env(... | 32,771 |
https://github.com/consulo/consulo/blob/master/modules/web/web-flow-ide/src/main/java/consulo/web/internal/ui/WebStyleImpl.java | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-jgraph | 2,023 | consulo | consulo | Java | Code | 201 | 574 | /*
* Copyright 2013-2017 consulo.io
*
* 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 ... | 21,551 |
https://github.com/FalFlower/LightRain/blob/master/app/src/main/java/com/lightrain/android/widget/UserRelationshipView.kt | Github Open Source | Open Source | Apache-2.0 | null | LightRain | FalFlower | Kotlin | Code | 205 | 1,031 | package com.lightrain.android.widget
import android.content.Context
import android.util.AttributeSet
import android.view.View
import android.widget.RelativeLayout
import androidx.recyclerview.widget.DefaultItemAnimator
import androidx.recyclerview.widget.LinearLayoutManager
import com.lightrain.android.LightRainApplic... | 29,805 |
https://github.com/mcu-tools/mcuboot/blob/master/boot/bootutil/include/bootutil/crypto/hmac_sha256.h | Github Open Source | Open Source | Apache-2.0, BSD-3-Clause | 2,023 | mcuboot | mcu-tools | C | Code | 365 | 1,415 | /*
* This module provides a thin abstraction over some of the crypto
* primitives to make it easier to swap out the used crypto library.
*
* At this point, there are two choices: MCUBOOT_USE_MBED_TLS, or
* MCUBOOT_USE_TINYCRYPT. It is a compile error there is not exactly
* one of these defined.
*/
#ifndef __BO... | 24,218 |
https://github.com/mcombell/tuscany-sca/blob/master/modules/launcher/src/main/java/org/apache/tuscany/sca/launcher/LauncherMain.java | Github Open Source | Open Source | Apache-2.0 | 2,016 | tuscany-sca | mcombell | Java | Code | 1,099 | 3,387 | /*
* 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 ... | 37,466 |
https://github.com/chinawang/Drainage/blob/master/drainage/app/Http/Logic/Maintenance/MaintenanceLogic.php | Github Open Source | Open Source | MIT | 2,020 | Drainage | chinawang | PHP | Code | 332 | 1,251 | <?php
/**
* Created by PhpStorm.
* User: wangyx
* Date: 2017/3/30
* Time: 20:16
*/
namespace App\Http\Logic\Maintenance;
use App\Repositories\Maintenance\FailureRepository;
use App\Repositories\Maintenance\MaintenanceRepository;
use Support\Logic\Logic;
class MaintenanceLogic extends Logic
{
/**
* @va... | 11,130 |
https://github.com/CarlosTeixeira615/plataforma_web/blob/master/src/views/Pages/Home/Home.js | Github Open Source | Open Source | MIT | null | plataforma_web | CarlosTeixeira615 | JavaScript | Code | 45 | 130 | import React from "react";
import IndexNavbar from "./components/Navbars";
import IndexHeader from "./components/Headers";
import IndexFooter from "./components/Footers";
import SectionInfo from "./components/SectionInfo";
export default function Main() {
return (
<>
<IndexNavbar />
<div className="... | 1,108 |
https://github.com/Delunado/Keeping-IT-Alive-LudumDare46/blob/master/Source/Assets/Scripts/StateMovement.cs | Github Open Source | Open Source | MIT | null | Keeping-IT-Alive-LudumDare46 | Delunado | C# | Code | 159 | 738 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class StateMovement : StateBase
{
public StateMovement(Player player) : base(player)
{
}
public override void FixedTick()
{
if (player.Input.vertical > 0)
{
player.Anim.SetBool("walkV... | 42,565 |
https://github.com/GenericUserbame/cx/blob/master/cx/asm.cpp | Github Open Source | Open Source | MIT | 2,017 | cx | GenericUserbame | C++ | Code | 1,061 | 6,261 | /*
The MIT License (MIT)
Copyright (c) 2015 Aaron Hebert <aaron.hebert@gmail.com>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to u... | 5,601 |
https://github.com/jeason0813/cs-script.npp/blob/master/src/Updater/WebHelper.cs | Github Open Source | Open Source | MIT | 2,017 | cs-script.npp | jeason0813 | C# | Code | 281 | 914 | using System;
using System.IO;
using System.Linq;
using System.Net;
using System.Runtime.InteropServices;
using System.Text;
namespace CSScriptNpp.Deployment
{
class WebHelper
{
static public string GetLatestAvailableDistro(string version, string distroExtension, Action<long, long> onProgress)
... | 16,906 |
https://github.com/markanthonyuy/jobs/blob/master/src/components/MainContent.js | Github Open Source | Open Source | MIT | null | jobs | markanthonyuy | JavaScript | Code | 322 | 1,311 | import React, { useState } from 'react'
import TimeAgo from 'react-timeago'
import Avatar from '@material-ui/core/Avatar'
import Chip from '@material-ui/core/Chip'
import Skeleton from '@material-ui/lab/Skeleton'
import PublicIcon from '@material-ui/icons/Public'
import AccessTimeIcon from '@material-ui/icons/AccessTim... | 2,795 |
https://github.com/emilyjablonski/bloom/blob/master/backend/core/src/listings/entities/listing-event.entity.ts | Github Open Source | Open Source | Apache-2.0 | 2,022 | bloom | emilyjablonski | TypeScript | Code | 233 | 757 | import { Expose, Type } from "class-transformer"
import { IsDate, IsDefined, IsEnum, IsOptional, IsString, ValidateNested } from "class-validator"
import { ValidationsGroupsEnum } from "../../shared/types/validations-groups-enum"
import { ListingEventType } from "../types/listing-event-type-enum"
import { ApiProperty }... | 1,386 |
https://github.com/lnapoliHX/HexactaLabs-NetCore_React-Final/blob/master/Stock.Web/client-app/src/components/Layout.js | Github Open Source | Open Source | Apache-2.0 | 2,021 | HexactaLabs-NetCore_React-Final | lnapoliHX | JavaScript | Code | 68 | 186 | import React from "react";
import { connect } from "react-redux";
import { Container, Row } from "reactstrap";
import Sidebar from "./page/Sidebar";
import NavMenu from "./page/NavMenu";
// import Footer from './page/Footer';
import BodyContainer from "./page/BodyContainer";
const Layout = props => (
<React.Fragmen... | 19,772 |
https://github.com/ProgrammingLife2016/PL2-2016/blob/master/PL2/PL2-gui/src/main/java/nl/tudelft/pl2016gr2/gui/view/graph/heatmap/IHeatmapColorer.java | Github Open Source | Open Source | Apache-2.0 | 2,017 | PL2-2016 | ProgrammingLife2016 | Java | Code | 79 | 226 | package nl.tudelft.pl2016gr2.gui.view.graph.heatmap;
import javafx.scene.paint.Color;
import nl.tudelft.pl2016gr2.model.graph.nodes.GraphNode;
/**
* This interface must be implemented by all graph heatmaps.
*
* @author Faris
*/
public interface IHeatmapColorer {
Color MUTATION_COLOR = Color.RED;
Color TRANSP... | 15,113 |
https://github.com/youhusky/Leetcode/blob/master/383-Ransom-Note/solution.java | Github Open Source | Open Source | MIT | 2,016 | Leetcode | youhusky | Java | Code | 49 | 120 | public class Solution {
public boolean canConstruct(String ransomNote, String magazine) {
int[] cnt = new int[26];
for (int i = 0; i < magazine.length(); i++) cnt[magazine.charAt(i) - 97]++;
for (int i = 0; i < ransomNote.length(); i++) if (--cnt[ransomNote.charAt(i) - 97] < 0) return false;
ret... | 36,603 |
https://github.com/yangzhengkun/goleetcode/blob/master/algorithm/0003.longest_substring_without_repeating_characters/longest_substring_without_repeating_characters_test.go | Github Open Source | Open Source | MIT | null | goleetcode | yangzhengkun | Go | Code | 16 | 79 | package _003_longest_substring_without_repeating_characters
import (
"fmt"
"testing"
)
func TestLengthOfLongestSubstring(t *testing.T) {
s := "abcabcbb"
fmt.Println(lengthOfLongestSubstring(s))
}
| 14,071 |
https://github.com/CorentinTh/doctor-who/blob/master/src/Generator.js | Github Open Source | Open Source | MIT | 2,020 | doctor-who | CorentinTh | JavaScript | Code | 379 | 878 | import path from 'path';
import fs from 'fs';
const dataPath = path.join('..', 'data');
const extension = '.json';
/**
* @class Generator - Generate values
*/
export default class Generator {
/**
* Generator constructor
* @param {String|Array} [doctors=all] - The list of doctor number to get companio... | 49,018 |
https://github.com/procesing/Encuestador-con-fotografia-y-toma-de-gps-offline/blob/master/frontend/app/src/main/java/cfe/cfeencuesta/Fragments/QuestrionFragment.java | Github Open Source | Open Source | MIT | null | Encuestador-con-fotografia-y-toma-de-gps-offline | procesing | Java | Code | 72 | 274 | package cfe.cfeencuesta.Fragments;
import android.content.Context;
import android.os.Bundle;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.fragment.... | 30,968 |
https://github.com/hon1nbo/BCTt/blob/master/src/signingParameter.cpp | Github Open Source | Open Source | MIT | 2,017 | BCTt | hon1nbo | C++ | Code | 158 | 401 | /************************************************************
* File: signingParameter.cpp
*
* Provides the implementation of the signingParameter objects
*
* Author: Hon1nbo
*************************************************************/
#include "signingParameter.h"
using namespace std;
/* constructors for various... | 46,634 |
https://github.com/bearsunday/BEAR.Resource/blob/master/tests/Fake/AppInjector.php | Github Open Source | Open Source | MIT | 2,023 | BEAR.Resource | bearsunday | PHP | Code | 53 | 190 | <?php
declare(strict_types=1);
namespace BEAR\Package;
use FakeVendor\Sandbox\Module\AppModule;
use Ray\Di\Injector;
use Ray\Di\InjectorInterface;
use Ray\Di\Name;
/**
* Fake AppInjector for unit test
*/
class AppInjector implements InjectorInterface
{
public function __construct($appName, $context)
{
... | 5,598 |
https://github.com/BGCX261/zoto-server-svn-to-git/blob/master/trunk/aztk/plugins/Paypal.py | Github Open Source | Open Source | BSD-3-Clause | 2,015 | zoto-server-svn-to-git | BGCX261 | Python | Code | 537 | 2,928 | """
plugins/Paypal.py
Author: Trey Stout
Date Added: Mon Jul 24 15:29:48 CDT 2006
New interface to the same old shit...
"""
## STD LIBS
from md5 import md5
from datetime import date, datetime
from xml.dom import minidom
from pprint import pprint, pformat
from math import floor
import time
## OUR LIBS
from AZTKAPI i... | 46,400 |
https://github.com/cqx666/ToceanCRM/blob/master/src/main/java/com/thinkgem/jeesite/modules/student/service/StudentDiscussService.java | Github Open Source | Open Source | Apache-2.0 | 2,017 | ToceanCRM | cqx666 | Java | Code | 96 | 434 | /**
* Copyright © 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
*/
package com.thinkgem.jeesite.modules.student.service;
import java.util.List;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.... | 26,334 |
https://github.com/ealionel/supertokens-node/blob/master/lib/ts/utils.ts | Github Open Source | Open Source | Apache-2.0 | 2,022 | supertokens-node | ealionel | TypeScript | Code | 484 | 1,453 | import type { AppInfo, NormalisedAppinfo, HTTPMethod } from "./types";
import { HEADER_RID } from "./constants";
import NormalisedURLDomain from "./normalisedURLDomain";
import NormalisedURLPath from "./normalisedURLPath";
import { validate } from "jsonschema";
import type { BaseRequest, BaseResponse } from "./framewor... | 14,419 |
https://github.com/sajjucode/Pss.ProgrammerMate/blob/master/Pss.ProgrammerMate/CommonClasses/SQL/GlobalActions.cs | Github Open Source | Open Source | BSL-1.0 | null | Pss.ProgrammerMate | sajjucode | C# | Code | 198 | 628 | using Pss.ProgrammerMate.DAL;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Pss.ProgrammerMate.CommonClasses.SQL
{
public class GlobalActions
{
public static string Author = "Sajjucode";
public static string ToolNa... | 32,983 |
https://github.com/boffinHouse/rawblock/blob/master/sources/templates/partials/assets/head/meta_data.hbs | Github Open Source | Open Source | MIT | 2,019 | rawblock | boffinHouse | null | Spoken | 33 | 136 | <meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=IE7" />
<title>{{ title }}</title>
<meta name="description" content="{{ description }}" />
<meta name="keywords" content="" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="format-detection" content="telephon... | 30,566 |
https://github.com/osamhack2021/web_Guntor-Guntee_EarlyFried/blob/master/frontend/army_mentoring/src/components/Routes/Profile/Profile.js | Github Open Source | Open Source | MIT | 2,022 | web_Guntor-Guntee_EarlyFried | osamhack2021 | JavaScript | Code | 52 | 204 | import React from "react";
import { Route, Switch } from "react-router-dom";
import EditProfile from './EditProfile';
import ProfileDetail from './ProfileDetail';
import Chat from "../Chat/Chat";
import Portfolio from './Portfolio/Portfolio';
function Profile({match}) {
return(
<>
<Switch>
<Route p... | 9,753 |
https://github.com/tedslittlerobot/vi/blob/master/tests/unit/Core/Users/Helpers/OptionFilterTest.php | Github Open Source | Open Source | MIT | null | vi | tedslittlerobot | PHP | Code | 305 | 1,229 | <?php namespace Helpers;
use Mockery as m;
class OptionFilterTest extends \PHPUnit_Framework_TestCase {
/**
* Initialise the tests
*/
public function setUp()
{
parent::setUp();
}
public function tearDown()
{
m::close();
}
public function testItemFiltersByOptions()
{
$this->assertFalse(
item_f... | 40,544 |
https://github.com/harshilsharma63/plugin-update/blob/master/server/plugin.go | Github Open Source | Open Source | Apache-2.0 | 2,019 | plugin-update | harshilsharma63 | Go | Code | 408 | 1,338 | package main
import (
"context"
"errors"
"fmt"
"strings"
"sync"
"time"
"github.com/blang/semver"
"github.com/google/go-github/github"
"github.com/mattermost/mattermost-server/model"
"github.com/mattermost/mattermost-server/plugin"
)
type Plugin struct {
plugin.MattermostPlugin
// configurationLock synch... | 32,097 |
https://github.com/pietro2356/MaDe-website/blob/master/src/app/specie/specie.module.ts | Github Open Source | Open Source | MIT | null | MaDe-website | pietro2356 | TypeScript | Code | 93 | 287 | import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { SpecieComponent } from './specie.component';
import { SpecieListComponent } from './specie-list/specie-list.component';
import { SpecieItemComponent } from './specie-list/specie-item/specie-item.component';
import { Mater... | 31,556 |
https://github.com/roznet/connectstats/blob/master/ConnectStats/src/GCAppActionDelegate.h | Github Open Source | Open Source | MIT | 2,022 | connectstats | roznet | C | Code | 239 | 582 | // MIT Licence
//
// Created on 20/09/2015.
//
// Copyright (c) 2015 Brice Rosenzweig.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limit... | 37,307 |
https://github.com/linares82/crm36/blob/master/resources/lang/es/notes.php | Github Open Source | Open Source | MIT | 2,022 | crm36 | linares82 | PHP | Code | 139 | 500 | <?php
return [
'id' => 'Id',
'id__placeholder' => 'Capturar id ...',
'oportunity_id' => 'Oportunity',
'oportunity_id__placeholder' => 'Seleccionar oportunity',
'short_name' => 'Nombre Corto',
'short_name__placeholder' => 'Capturar nombre Corto ...',
'note' => 'Nota',
'usu_alta_id' => 'A... | 19,135 |
https://github.com/ncats/gsrs-play/blob/master/app/ix/core/controllers/PublicationFactory.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | gsrs-play | ncats | Java | Code | 525 | 1,464 | package ix.core.controllers;
import java.io.*;
import java.security.*;
import java.util.*;
import ix.core.util.Java8Util;
import play.*;
import play.db.ebean.*;
import play.data.*;
import play.mvc.*;
import com.avaje.ebean.Query;
import com.avaje.ebean.annotation.Transactional;
import com.avaje.ebean.Expr;
import co... | 1,576 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.