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/Logdawg/KE2/blob/master/src/main/java/mod/ke2/lib/neuron/InputNeuron.java | Github Open Source | Open Source | MIT | 2,019 | KE2 | Logdawg | Java | Code | 32 | 105 | package mod.ke2.lib.neuron;
import mod.ke2.lib.Neuron;
public class InputNeuron extends Neuron {
public void input(float output) {
this.output = output;
}
public InputNeuron(int i) {
super(i, true);
}
public InputNeuron() {
super();
}
} | 6,123 |
https://github.com/windystrife/UnrealEngine_NVIDIAGameWorks/blob/master/Engine/Source/Runtime/Landscape/Private/LandscapeInfoMap.cpp | Github Open Source | Open Source | MIT, LicenseRef-scancode-proprietary-license | 2,022 | UnrealEngine_NVIDIAGameWorks | windystrife | C++ | Code | 99 | 450 | // Copyright 1998-2017 Epic Games, Inc. All Rights Reserved.
#include "LandscapeInfoMap.h"
#include "Engine/World.h"
#include "LandscapeInfo.h"
ULandscapeInfoMap::ULandscapeInfoMap(const FObjectInitializer& ObjectInitializer)
: Super(ObjectInitializer)
, World(nullptr)
{
}
void ULandscapeInfoMap::PostDuplicate(boo... | 15,461 |
https://github.com/C-Din/Benss/blob/master/resources/views/pages/infm/lists/list_patient.blade.php | Github Open Source | Open Source | MIT | null | Benss | C-Din | PHP | Code | 301 | 1,253 | @extends('base')
@section('title', 'Test app | Home')
@section('content')
<div class="container-scroller">
<!-- /partials/_navbar -->
@include('pages/partials/infm/_navbarInfm')
<!-- partial -->
<div class="container-fluid page-body-wrapper">
<!-- /partials/_sidebar -->
@inclu... | 9,313 |
https://github.com/yang035/PMadmin/blob/master/app/admin/model/ScoreDeal.php | Github Open Source | Open Source | Apache-2.0 | 2,021 | PMadmin | yang035 | PHP | Code | 185 | 617 | <?php
/**
* Created by PhpStorm.
* User: Administrator
* Date: 2018/12/18
* Time: 18:12
*/
namespace app\admin\model;
use think\Model;
class ScoreDeal extends Model
{
// 自动写入时间戳
protected $autoWriteTimestamp = true;
public static function index($cid = 1)
{
$where = ['cid' => $cid];
... | 29,195 |
https://github.com/anzook/yappe-app/blob/master/client/src/components/DogSettingsModal/index.js | Github Open Source | Open Source | MIT | 2,020 | yappe-app | anzook | JavaScript | Code | 68 | 227 | import React, { useState } from 'react';
import { Modal, Button } from 'react-bootstrap';
import './style.css';
import DogSettingsForm from '../DogSettingsForm';
function DogSettingsModal(props) {
const [show, setShow] = useState(false);
const handleClose = () => setShow(false);
const handleShow = () => ... | 40,572 |
https://github.com/TomasEkeli/AspNetCore/blob/master/Legacy/doLittle.JavaScript.Specs/markup/for_namespaces/when_resolving_for_element_with_namespace_definition_set_in_a_parent.js | Github Open Source | Open Source | MIT | null | AspNetCore | TomasEkeli | JavaScript | Code | 96 | 254 | describe("when resolving for element with namespace definition set in a parent", given("a namespaces instance", function () {
var context = this;
var prefix = "controls";
var name = "mycontrol";
var namespace = "some.namespace";
var result = null;
var parent = null;
beforeEach(function ()... | 47,127 |
https://github.com/hilmyha/haidarstudio/blob/master/functions.php | Github Open Source | Open Source | MIT | null | haidarstudio | hilmyha | PHP | Code | 44 | 156 | <?php
// webstyle
// including from external dir to functions
function webstyle()
{
// CSS
wp_enqueue_style( 'bootstrap', get_theme_file_uri( '/css/bootstrap.css' ) );
wp_enqueue_style( 'style', get_theme_file_uri( '/style.css' ) );
// Js
wp_enqueue_script( 'boot... | 7,847 |
https://github.com/LubyRuffy/pnmap/blob/master/intel.go | Github Open Source | Open Source | MIT | 2,021 | pnmap | LubyRuffy | Go | Code | 1,044 | 4,373 | package main
import (
"bufio"
"bytes"
"encoding/binary"
"encoding/json"
"fmt"
"net"
"net/http"
"strings"
"unicode/utf8"
"github.com/golang/protobuf/proto"
"github.com/google/gopacket"
"github.com/google/gopacket/layers"
"github.com/miekg/dns"
)
type intel struct {
NICCollection map[string]*NIC
hostCha... | 14,284 |
https://github.com/00mjk/maro/blob/master/tests/vm_scheduling/test_vm_scheduling_scenario.py | Github Open Source | Open Source | MIT, LicenseRef-scancode-generic-cla | 2,021 | maro | 00mjk | Python | Code | 171 | 978 | # Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
import unittest
from maro.data_lib import BinaryConverter
from maro.simulator.scenarios.vm_scheduling import CpuReader
class CpuReaderTest(unittest.TestCase):
for i in range(1, 4):
meta_file = "tests/data/vm_scheduling/cpu_reading... | 50,033 |
https://github.com/ggj2010/javabase/blob/master/dailycode/src/main/java/com/ggj/java/teach/ReferenceTest.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | javabase | ggj2010 | Java | Code | 101 | 347 | package com.ggj.java.teach;
import lombok.Data;
import lombok.Setter;
import java.util.ArrayList;
import java.util.List;
/**
* @author gaoguangjin
*/
public class ReferenceTest {
public static void main(String[] args) {
List<Student> studentList=new ArrayList<>();
Student student=new Student()... | 21,476 |
https://github.com/paullewallencom/node-978-1-7839-8840-2/blob/master/_/section 3/bombticking.js | Github Open Source | Open Source | Apache-2.0 | null | node-978-1-7839-8840-2 | paullewallencom | JavaScript | Code | 75 | 242 | var prompt = require("prompt"),
util = require("util");
var BombTicking = function() {}
var EventEmitter = require('events').EventEmitter;
util.inherits(AnimalGuess, EventEmitter);
BombTicking.start = function() {
var total_sec = 5;
var self = this;
var showTime = setInterval(function() {
tot... | 13,753 |
https://github.com/HomeBrewCrewX/tinnr/blob/master/client/lib/angular-hammer/gruntfile.js | Github Open Source | Open Source | MIT | 2,016 | tinnr | HomeBrewCrewX | JavaScript | Code | 197 | 1,037 | module.exports = function (grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
browserify: {
demo: {
files: {
'./examples/browserify/example.js': ['./examples/browserify/index.js']
},
options: {
browserifyOptions: {
debug: true
... | 42,629 |
https://github.com/politeist/p8s_telegram_bot/blob/master/src/main.py | Github Open Source | Open Source | Apache-2.0 | 2,021 | p8s_telegram_bot | politeist | Python | Code | 279 | 1,128 | import os
import sys
import random
from importlib import import_module
from telegram.ext import Updater, CommandHandler, MessageHandler, Filters
from flask import Flask, request
from loader import LoaderApps
from settings import TOKEN, APPS
from utils import logger
STICKERS = [
"CAACAgEAAxkBAAECStJgmoWxfRZbQlNG... | 18,012 |
https://github.com/Vineet2121/Frapper/blob/master/Frapper.Web/Frapper.Web/Extensions/ServiceCollectionExtensions.cs | Github Open Source | Open Source | MIT | 2,022 | Frapper | Vineet2121 | C# | Code | 123 | 805 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Frapper.Repository;
using Frapper.Repository.Audit.Command;
using Frapper.Repository.CacheService;
using Frapper.Repository.Customers.Queries;
using Frapper.Repository.Documents.Queries;
using Frapper.Repository.Emai... | 43,529 |
https://github.com/DmitriySemenov/SDCE_CapstoneProject/blob/master/ros/src/tl_detector/tl_detector.py | Github Open Source | Open Source | MIT | null | SDCE_CapstoneProject | DmitriySemenov | Python | Code | 1,003 | 3,153 | #!/usr/bin/env python
import rospy
from std_msgs.msg import Int32
from geometry_msgs.msg import PoseStamped, Pose
from styx_msgs.msg import TrafficLightArray, TrafficLight
from styx_msgs.msg import Lane
from sensor_msgs.msg import Image
from cv_bridge import CvBridge
from light_classification.tl_classifier import TLCla... | 9,766 |
https://github.com/dacoursey/skeleton/blob/master/router.go | Github Open Source | Open Source | BSD-3-Clause | null | skeleton | dacoursey | Go | Code | 136 | 483 | package main
import (
"database/sql"
"log"
"net/http"
rice "github.com/GeertJohan/go.rice"
"github.com/gorilla/mux"
"github.com/gorilla/sessions"
)
// App for stuff.
type App struct {
Router *mux.Router
DB *sql.DB
}
// Initialize for stuff.
func (a *App) Initialize(user, password, dbname string) {
//co... | 15,913 |
https://github.com/nirzaf/azure-sdk-for-net/blob/master/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/tests/ManagedInstanceKeysScenarioTests.cs | Github Open Source | Open Source | MIT, LicenseRef-scancode-generic-cla, LGPL-2.1-or-later, Apache-2.0 | 2,021 | azure-sdk-for-net | nirzaf | C# | Code | 215 | 756 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
using System;
using Microsoft.Azure.Management.ResourceManager;
using Microsoft.Azure.Management.ResourceManager.Models;
using Microsoft.Azure.Management.Sql;
us... | 19,234 |
https://github.com/Google-Autofuzz/clusterfuzz/blob/master/src/go/fuzzers/fuzzers.go | Github Open Source | Open Source | Apache-2.0 | 2,020 | clusterfuzz | Google-Autofuzz | Go | Code | 350 | 847 | // Copyright 2019 Google LLC
//
// 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 ... | 37,289 |
https://github.com/RogelioASR/C/blob/master/Ch4/Exercise4-11.c | Github Open Source | Open Source | Apache-2.0 | null | C | RogelioASR | C | Code | 222 | 661 | #include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
#define MAX 100
#define NUMBER '0'
void push(double);
double pop(void);
int getop(char []);
int sp = 0;
double val[MAX];
main() {
int type;
double op2;
char s[MAX];
while ((type = getop(s)) != EOF) {
switch (type) {
case NUMBER:
push(at... | 17,090 |
https://github.com/jkb016/objectify/blob/master/src/test/java/com/googlecode/objectify/util/KeyFormatTest.java | Github Open Source | Open Source | MIT | 2,020 | objectify | jkb016 | Java | Code | 36 | 232 | package com.googlecode.objectify.util;
import com.google.cloud.datastore.Key;
import org.junit.jupiter.api.Test;
import static com.google.common.truth.Truth.assertThat;
class KeyFormatTest {
@Test
void parsesAndFormatsOldStyleGAEKey() throws Exception {
final String urlsafeKey = "agxzfm1haWxmb29nYWVyKAsSDE9yZ2Fu... | 7,763 |
https://github.com/livoras/wesign/blob/master/index.js | Github Open Source | Open Source | MIT | null | wesign | livoras | JavaScript | Code | 225 | 800 | var crypto = require('crypto')
var _ = require("lodash")
var request = require("superagent")
var initialized = false
var config = {
appid: null,
appsecret: null,
noncestr: null,
access_token: null,
jsapi_ticket: null
}
/*
* 生成随机的noncestr
**/
crypto.randomBytes(48, function(ex, buf) {
config.noncestr = ... | 35,288 |
https://github.com/AlejandraZamora/clientePaciente/blob/master/src/main/resources/static/app/PatientAutorization/PatientAutorization.js | Github Open Source | Open Source | MIT | 2,017 | clientePaciente | AlejandraZamora | JavaScript | Code | 27 | 140 | 'use strict';
angular.module('myApp.PatientAutorization', ['ngRoute'])
.config(['$routeProvider', function($routeProvider) {
$routeProvider.when('/PatientAutorization', {
templateUrl: 'PatientAutorization/PatientAutorization.html',
controller: 'PatientAutorizationCtrl'
});
}])
.controller('PatientAutoriz... | 51,712 |
https://github.com/andrewlsa/OpenWrt/blob/master/target/linux/bcm53xx/patches-5.10/035-v5.18-0003-ARM-dts-NSP-MX6X-correct-LED-function-types.patch | Github Open Source | Open Source | MIT | null | OpenWrt | andrewlsa | null | Spoken | 231 | 856 | From 482c85c7fc95c572d368b2214b9e9d2c4a2e5789 Mon Sep 17 00:00:00 2001
From: Matthew Hagan <mnhagan88@gmail.com>
Date: Wed, 23 Feb 2022 23:50:40 +0000
Subject: [PATCH] ARM: dts: NSP: MX6X: correct LED function types
Currently, the amber LED will remain always on. This is due to a
misinterpretation of the LED sub-node ... | 38,171 |
https://github.com/indigobyte/jsonld-metadata/blob/master/src/generated/java/org/schema/Order.java | Github Open Source | Open Source | Apache-2.0 | null | jsonld-metadata | indigobyte | Java | Code | 8,622 | 19,146 | /*
* Copyright 2015-2017 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | 5,174 |
https://github.com/denBot/VisIBoT/blob/master/src/processing/worker/config.py | Github Open Source | Open Source | MIT | null | VisIBoT | denBot | Python | Code | 3 | 10 | worker_redirect_stdouts = False
| 36,082 |
https://github.com/AyushiPanth/NeoAlgo/blob/master/rain_water_trapping.cpp | Github Open Source | Open Source | MIT | 2,021 | NeoAlgo | AyushiPanth | C++ | Code | 137 | 439 | #include<bits/stdc++.h>
using namespace std;
#define li long int
#define lli long long int
void solve(){
// Question: 3 1 4 3 1 5 2
// left_arr: 3 3 4 4 4 5 5
// right_arr: 5 5 5 5 5 5 2
// water_left: 0 2 0 1 3 0 0
li n;
cin>>n;
li v[n];
for(li i=0;i<n;i++)cin>>v[i];
// Maki... | 18,751 |
https://github.com/ahmedabdessamad/TechEvent_Symfony_indiv/blob/master/src/techeventBundle/Repository/ReservationRepository.php | Github Open Source | Open Source | MIT | null | TechEvent_Symfony_indiv | ahmedabdessamad | PHP | Code | 30 | 115 | <?php
namespace techeventBundle\Repository;
use Doctrine\ORM\EntityRepository;
class ReservationRepository extends EntityRepository
{
public function findAllReservationByPanier($idpanier)
{
return $this->getEntityManager()
->createQuery(
'SELECT r FROM techeventBundle:reservation r WHERE r.idpanier = :idpanier'
)->s... | 30,264 |
https://github.com/apache/hadoop/blob/master/hadoop-hdfs-project/hadoop-hdfs-native-client/src/main/native/libhdfspp/lib/fs/namenode_operations.cc | Github Open Source | Open Source | CC-PDDC, CC0-1.0, CC-BY-3.0, LicenseRef-scancode-unknown-license-reference, LGPL-2.1-only, LicenseRef-scancode-other-permissive, CDDL-1.0, GCC-exception-3.1, MIT, EPL-1.0, Classpath-exception-2.0, BSD-3-Clause, GPL-2.0-only, Apache-2.0, LicenseRef-scancode-public-domain, LicenseRef-scancode-jdom, CDDL-1.1, BSD-2-Clause... | 2,023 | hadoop | apache | C++ | Code | 2,103 | 7,417 | /**
* 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... | 24,156 |
https://github.com/CorgiTaco/TinyTweaks/blob/master/src/main/java/dev/hephaestus/tweaks/mixin/entity/SetSoulFireType.java | Github Open Source | Open Source | MIT | null | TinyTweaks | CorgiTaco | Java | Code | 188 | 778 | package dev.hephaestus.tweaks.mixin.entity;
import dev.hephaestus.tweaks.Tweaks;
import dev.hephaestus.tweaks.util.SoulFire;
import net.fabricmc.api.EnvType;
import net.fabricmc.api.Environment;
import net.minecraft.block.Block;
import net.minecraft.block.Blocks;
import net.minecraft.entity.Entity;
import net.minecraf... | 10,933 |
https://github.com/syglee7/zenacoin-ver2/blob/master/src/test/fuzz/key.cpp | Github Open Source | Open Source | MIT | null | zenacoin-ver2 | syglee7 | C++ | Code | 658 | 3,648 | // Copyright (c) 2020 The Zenacoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <chainparams.h>
#include <chainparamsbase.h>
#include <key.h>
#include <key_io.h>
#include <outputtype.h>
#include <poli... | 24,233 |
https://github.com/ZaneCQ/wan-bridge-frontend-for-vercel/blob/master/src/components/NetworkModal/index.js | Github Open Source | Open Source | MIT | null | wan-bridge-frontend-for-vercel | ZaneCQ | JavaScript | Code | 185 | 582 | import { useState, useEffect, useMemo } from 'react';
import { Modal, message, Input, Empty } from 'antd';
import { CheckOutlined } from '@ant-design/icons';
import useCrossChainModel from '@/models/useCrossChain';
import useFormDataModel from '@/models/useFormData';
import styles from './index.less';
const NetworkMod... | 31,075 |
https://github.com/ajerschow/shapes_optimization/blob/master/programs/suppression pulse/display_grape_results.m | Github Open Source | Open Source | MIT | 2,020 | shapes_optimization | ajerschow | MATLAB | Code | 248 | 1,029 | % This function has been written to lighten the main file performing the
% grape pulse optimization
%
% It allows to monitor :
%
% (*) The shape of the waveform
% (**) The relative population of the Ix, Iy and Iz states
% This function can also, if requested, returns as an OUTPUT
% these... | 27,990 |
https://github.com/octoblu/file-downloader-service/blob/master/src/controllers/file-download-controller.coffee | Github Open Source | Open Source | MIT | null | file-downloader-service | octoblu | CoffeeScript | Code | 66 | 161 | request = require 'request'
class FileDownloadController
constructor: ->
download: (req, res) =>
{uri, url, fileName} = req.query
url ?= uri if uri?
unless url?
error = new Error 'Missing url in query string'
error.code = 422
return res.sendError error
disposition = "attachment; ... | 5,533 |
https://github.com/eschanet/pyhf_inference_tools/blob/master/helpers/contourPlotter.py | Github Open Source | Open Source | MIT | 2,021 | pyhf_inference_tools | eschanet | Python | Code | 475 | 2,575 | #!/usr/bin/env python
# contourPlotter.py #################
#
# Tools for making final contour plots. See contourPlotterExample.py
#
# By: Larry Lee - Dec 2017
import ROOT
ROOT.gROOT.SetBatch()
class contourPlotter:
def __init__(self, plotName="test", xSize=800, ySize=600):
self.plotName = plotName
... | 19,296 |
https://github.com/subrata6630/RRF-OOP-IN-PHP/blob/master/User.class.php | Github Open Source | Open Source | MIT | null | RRF-OOP-IN-PHP | subrata6630 | PHP | Code | 16 | 34 | <?php
class User2 {
public function __construct()
{
echo 'I am another User class';
}
}
| 24,176 |
https://github.com/cyy111/metaheuristics/blob/master/run_CSO.py | Github Open Source | Open Source | Apache-2.0 | 2,022 | metaheuristics | cyy111 | Python | Code | 123 | 347 | from models.multiple_solution.swarm_based.CSO import BaseCSO
from utils.FunctionUtil import *
## Setting parameters
root_paras = {
"problem_size": 100,
"domain_range": [-100, 100],
"print_train": True,
"objective_func": C30
}
cso_paras = {
"epoch": 500,
"pop_size": 100,
"mixture_ratio": 0.... | 45,326 |
https://github.com/emmettpeters/reddit.dev/blob/master/resources/views/layouts/master.blade.php | Github Open Source | Open Source | MIT | null | reddit.dev | emmettpeters | PHP | Code | 112 | 726 | <!DOCTYPE html>
<html>
<head>
@yield('title')
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- <link rel="stylesheet" type="text/css" src="/css/bootstrap.min.css"> -->
<link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.... | 46,872 |
https://github.com/Novactive/NovaeZSEOBundle/blob/master/bundle/Resources/views/platform_admin/create_url_wildcard.html.twig | Github Open Source | Open Source | MIT | 2,023 | NovaeZSEOBundle | Novactive | Twig | Code | 220 | 789 | {% trans_default_domain 'redirect' %}
<section class="container mt-4 px-5">
{# display errors #}
{% if errors is defined and errors is not empty %}
<div class="alert alert-danger" role="alert">
<ul>
{% for error in errors %}
<l... | 45,100 |
https://github.com/sharjeelahmed/JsVouch/blob/master/JsVouch/JsVouch/Controllers/CreatePinViewController.swift | Github Open Source | Open Source | MIT | null | JsVouch | sharjeelahmed | Swift | Code | 250 | 866 | //
// CreatePinViewController.swift
// Vouch365
//
// Created by Veer Suthar on 3/15/17.
// Copyright © 2017 Veer Suthar. All rights reserved.
//
import UIKit
import IQKeyboardManagerSwift
class CreatPinViewController: UIViewController, APPinViewDelegate {
@IBOutlet weak var pinView: APPinView!
overrid... | 32,745 |
https://github.com/mmllr/MMFlowView/blob/master/Example/Pods/Headers/MMFlowView/NSValue+MMAdditions.h | Github Open Source | Open Source | MIT | 2,022 | MMFlowView | mmllr | C | Code | 1 | 16 | ../../../../Classes/osx/NSValue+MMAdditions.h | 13,175 |
https://github.com/wwt2008/films_catalog_laravel/blob/master/resources/sass/app.scss | Github Open Source | Open Source | MIT | null | films_catalog_laravel | wwt2008 | SCSS | Code | 43 | 184 |
// Fonts
@import url('https://fonts.googleapis.com/css?family=Nunito');
//FontAwesome
@import 'fontawesome4_7/font-awesome';
// Variables
@import 'variables';
// Bootstrap
@import 'bootstrap4/bootstrap';
.navbar-laravel {
background-color: #fff;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}
.film-card>.card-img-... | 12,757 |
https://github.com/dtulpa16/Movie_eCommerce_Backend/blob/master/eCommerceStarterCode/Controllers/ProductController.cs | Github Open Source | Open Source | MIT | null | Movie_eCommerce_Backend | dtulpa16 | C# | Code | 297 | 1,141 | using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using eCommerceStarterCode.Models;
using eCommerceStarterCode.Data;
using RouteAttribute = Microsoft.AspNetCore.Mvc.RouteAttribute;
using Microsoft.AspNetCore.Authorization;
using System.Sec... | 6,554 |
https://github.com/mrGarvin90/MGU/blob/master/MGU/MGU.Core/Interfaces/Conditions/Struct/IComparableStructCondition.cs | Github Open Source | Open Source | MIT | null | MGU | mrGarvin90 | C# | Code | 55 | 206 | namespace MGU.Core.Interfaces.Conditions.Struct
{
using System;
using Base;
using Not;
/// <inheritdoc cref="IComparableStructNotCondition{TSource}" />
/// <inheritdoc cref="IComparableConditionBase{TSource,TComparableNotCondition}" />
/// <summary>
/// Defines conditions for all structs t... | 8,758 |
https://github.com/codemoo/moonsomoon.net/blob/master/assets/js/game.js | Github Open Source | Open Source | MIT | 2,020 | moonsomoon.net | codemoo | JavaScript | Code | 977 | 3,338 | /*
Functions for the game play.
*/
// Global Variables
var end_flag = false;
var current_zoom = undefined
var zoomed = false;
// Item variables
var items = [];
// Play the bgm when game started
function gameStart() {
if (node("#moonsomoon").paused) {
playSound("#bgm");
}
}
// Change the room
function... | 22,493 |
https://github.com/lorinyc72/SeriesGuide/blob/master/SeriesGuide/src/main/java/com/battlelancer/seriesguide/loaders/TraktRecentMovieHistoryLoader.java | Github Open Source | Open Source | Unlicense | null | SeriesGuide | lorinyc72 | Java | Code | 213 | 751 | package com.battlelancer.seriesguide.loaders;
import android.app.Activity;
import android.content.Context;
import android.support.annotation.NonNull;
import android.text.format.DateUtils;
import com.battlelancer.seriesguide.SgApp;
import com.battlelancer.seriesguide.adapters.NowAdapter;
import com.battlelancer.seriesg... | 2,192 |
https://github.com/Devops-george2/BuildServerApp/blob/master/scripts/config_sample.js | Github Open Source | Open Source | MIT | null | BuildServerApp | Devops-george2 | JavaScript | Code | 13 | 36 | module.exports.email = "Your Email ID";
module.exports.password = "Your Password";
module.exports.user = "Your Name"
| 16,309 |
https://github.com/javadhojabri/laravel-test/blob/master/resources/views/admin/index.blade.php | Github Open Source | Open Source | MIT | null | laravel-test | javadhojabri | PHP | Code | 72 | 362 | @extends('layout.admin')
@section('content')
<div class="row">
<div class="col-md-4">
<div class="card text-white bg-primary mb-3" style="max-width: 18rem;">
<div class="card-header text-center">تعداد کاربران</div>
<div class="card-body">
<h5 c... | 45,461 |
https://github.com/simonfong6/micro-projects/blob/master/pysheets/sheets.py | Github Open Source | Open Source | MIT | 2,021 | micro-projects | simonfong6 | Python | Code | 272 | 931 | """
Shows basic usage of the Sheets API. Prints values from a Google Spreadsheet.
"""
from __future__ import print_function
from apiclient.discovery import build
from httplib2 import Http
from oauth2client import file, client, tools
class GoogleSheets:
def __init__(self,spreadsheet_id,
creden... | 10,203 |
https://github.com/huiqiangyang/jeesite_hibernate/blob/master/src/main/webapp/static/ckeditor/plugins/ajax/plugin.js | Github Open Source | Open Source | Apache-2.0 | 2,016 | jeesite_hibernate | huiqiangyang | JavaScript | Code | 206 | 516 | /*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
(function () {
CKEDITOR.plugins.add('ajax', {requires: ['xml']});
CKEDITOR.ajax = (function () {
var a = function () {
if (!CKEDITOR.env.ie ||... | 12,151 |
https://github.com/aswansyahputra/sensolution/blob/master/man/do_pca.Rd | Github Open Source | Open Source | MIT | 2,019 | sensolution | aswansyahputra | R | Code | 90 | 234 | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/do_pca.R
\name{do_pca}
\alias{do_pca}
\title{Perform PCA on dataframe}
\usage{
do_pca(.data, product, liking = NULL, scale = TRUE)
}
\arguments{
\item{.data}{a dataframe or tibble.}
\item{product}{name of column containing product informatio... | 2,981 |
https://github.com/fireb1001/neonest/blob/master/src/notes/notes.controller.ts | Github Open Source | Open Source | MIT | 2,020 | neonest | fireb1001 | TypeScript | Code | 96 | 293 | import { Controller, Get, Param, Body, Post } from '@nestjs/common';
import { NotesService } from './notes.service';
import { v4 as uuidv4 } from 'uuid';
import { NoteDto } from 'src/types/note.type';
@Controller('notes')
export class NotesController {
constructor(private readonly notesServ: NotesService) {}
@Get(... | 34,577 |
https://github.com/retogerber/diffcyt/blob/master/tests/testthat/test-simulate_DM.R | Github Open Source | Open Source | MIT | 2,020 | diffcyt | retogerber | R | Code | 251 | 1,377 | nr_samples <- 10
nr_cluster <- 10
nr_diff <- 4
sizes <- runif(nr_samples,1e5,1e6)
theta <- 0.001
# simulate non DA data
alphas_theo <- runif(nr_cluster,0,1)*(1-theta)/theta
probs <- alphas_theo/sum(alphas_theo)
counts <- t(dirmult::simPop(J=nr_samples,n=sizes,pi=probs,theta=theta)$data)
test_that("dimension... | 3,707 |
https://github.com/jyx11011/main/blob/master/src/main/java/seedu/sugarmummy/ui/calendar/MonthlyCalendar.java | Github Open Source | Open Source | MIT | null | main | jyx11011 | Java | Code | 289 | 962 | package seedu.sugarmummy.ui.calendar;
import java.text.DateFormatSymbols;
import java.time.LocalDate;
import java.util.logging.Logger;
import javafx.collections.ObservableList;
import javafx.fxml.FXML;
import javafx.scene.control.Label;
import javafx.scene.layout.ColumnConstraints;
import javafx.scene.layout.GridPane... | 47,429 |
https://github.com/schevalier/chronology/blob/master/jia/scheduler/decorators.py | Github Open Source | Open Source | MIT | 2,014 | chronology | schevalier | Python | Code | 175 | 470 | from __future__ import absolute_import
import json
import random
import gevent
from functools import wraps
from flask import current_app
from flask import request
from scheduler.auth import create_token
try:
# compare_digest is new as of Python 2.7.7, which is too new to depend on
from hmac import compare_digest... | 11,452 |
https://github.com/sharmahemu1994/express_boilerplate/blob/master/src/services/mongodb.js | Github Open Source | Open Source | MIT | 2,020 | express_boilerplate | sharmahemu1994 | JavaScript | Code | 121 | 364 | 'use strict';
const Models = require('../models');
module.exports = (model) => {
const module = {};
module.create = async (objToSave) => {
const data = await new Models[model.toString()](objToSave).save();
return data.toObject();
};
module.findById = async (id, projection, options) => {
return await Model... | 6,168 |
https://github.com/shoaib0906/INVENTORY/blob/master/outlets/uae/app/Http/Controllers/JobController.php | Github Open Source | Open Source | MIT | 2,020 | INVENTORY | shoaib0906 | PHP | Code | 500 | 3,130 | <?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Http\Requests\JobRequest;
use App\Http\Requests\ApplicationRequest;
use Entrust;
use Auth;
use App\Classes\Helper;
use App\Job;
use App\Designation;
use App\Application;
use Activity;
use Config;
use File;
use DB;
Class JobController extends Co... | 24,723 |
https://github.com/GreenShadeZhang/MjpegStreamer/blob/master/WinForms/MjpegStreamer.WinForms/MjpegStreamer.cs | Github Open Source | Open Source | MIT | 2,022 | MjpegStreamer | GreenShadeZhang | C# | Code | 493 | 1,398 | //Project: MjpegStreamer.WinForms
//Filename: MjpegStreamer.cs
//Version: 20170913
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Net;
using System.Net.Sockets;
using System.Threading;
namespace Chantzaras.Media.Streaming.Mjpeg
{
/// <summary>
/// Provides a streaming ser... | 28,454 |
https://github.com/dattatrayak/spritosoft/blob/master/application/views/admin/login.php | Github Open Source | Open Source | MIT, LicenseRef-scancode-unknown-license-reference | 2,019 | spritosoft | dattatrayak | PHP | Code | 87 | 391 | <div class="login-box">
<div class="login-logo">
<a href="../../index2.html"><b>Sprito</b>soft</a>
</div>
<div class="login-box-body">
<p class="login-box-msg">Sign in to start your dashboard</p>
<?php echo (isset($message)) ? $message : "" ?>
<?php echo form_open('admin/log... | 48,275 |
https://github.com/i-gaven/Just_a_dumper/blob/master/all_headers/58同城-招聘找工作求职租房二手房-8.2.1(越狱应用)_headers/ISDVerifyCodeClickView.h | Github Open Source | Open Source | MIT | 2,018 | Just_a_dumper | i-gaven | Objective-C | Code | 188 | 835 | //
// Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 17 2017 16:24:48).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by Steve Nygard.
//
#import "ISDCaptchaBaseView.h"
@class ISDVerifyClickModel, NSArray, NSMutableString, UIButton, UIImageView, UILabel, UIView;
@protocol... | 26,676 |
https://github.com/souhirzribi96/application-web-d-indexation-des-documents-GED-en-r-f-rence-la-plateforme-Alfresco/blob/master/node_modules/@alfresco/adf-core/form/components/widgets/dynamic-table/editors/row.editor.d.ts | Github Open Source | Open Source | MIT, Apache-2.0 | 2,021 | application-web-d-indexation-des-documents-GED-en-r-f-rence-la-plateforme-Alfresco | souhirzribi96 | TypeScript | Code | 157 | 334 | /*!
* @license
* Copyright 2016 Alfresco Software, Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 43,267 |
https://github.com/Dmiri/Xamarin.google-apis/blob/master/src/Android/Google.Apis.Android.Generated/Google.Apis.Adsensehost.v4.1.cs | Github Open Source | Open Source | Apache-2.0 | 2,021 | Xamarin.google-apis | Dmiri | C# | Code | 13,293 | 46,440 | //------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:2.0.50727.4984
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//----... | 14,972 |
https://github.com/dondonondon/skia4delphi/blob/master/samples/Basic/FMX/src/View.Preview.PDF.pas | Github Open Source | Open Source | MIT, BSD-3-Clause | 2,021 | skia4delphi | dondonondon | Pascal | Code | 149 | 637 | unit View.Preview.PDF;
interface
uses
{ Delphi }
{$IFDEF MSWINDOWS}
Winapi.Windows,
Winapi.ShellAPI,
{$ENDIF}
System.SysUtils,
System.Types,
System.Classes,
System.Variants,
FMX.StdCtrls,
FMX.Controls,
FMX.Objects,
FMX.Types,
FMX.WebBrowser,
FMX.Forms,
FMX.Layouts,
FMX.ListBox,
{$I... | 14,862 |
https://github.com/Andreas237/AndroidPolicyAutomation/blob/master/ExtractedJars/RT_News_com.rt.mobile.english/smali_classes2/com/mopub/nativeads/MoPubCustomEventVideoNative$MoPubVideoNativeAd$3.smali | Github Open Source | Open Source | MIT | 2,019 | AndroidPolicyAutomation | Andreas237 | Smali | Code | 394 | 4,060 | .class Lcom/mopub/nativeads/MoPubCustomEventVideoNative$MoPubVideoNativeAd$3;
.super Ljava/lang/Object;
.source "MoPubCustomEventVideoNative.java"
# interfaces
.implements Landroid/view/TextureView$SurfaceTextureListener;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/mopub/nat... | 52,325 |
https://github.com/quchen/generative-art/blob/master/src/Draw/Text.hs | Github Open Source | Open Source | 2,023 | generative-art | quchen | Haskell | Code | 565 | 1,330 | module Draw.Text (
showTextAligned
, plotText
, PlotTextOptions(..)
, HAlign(..)
, VAlign(..)
, module Data.Default.Class
) where
import Data.Default.Class
import Geometry
import qualified Graphics.PlotFont as PF
import qualified Graphics.Rendering.Cairo as C
... | 2,234 | |
https://github.com/suvadip172308/api-excel/blob/master/validation/transaction.validation.js | Github Open Source | Open Source | MIT | 2,020 | api-excel | suvadip172308 | JavaScript | Code | 60 | 489 | const Joi = require('joi');
exports.transactionCreateSchema = Joi.object().keys({
retailerId: Joi.string().min(2).max(20).required(),
retailerName: Joi.string().min(3).max(200).required(),
companyName: Joi.string().min(3).max(200).required(),
routeCode: Joi.string().min(3).max(20).required(),
routeName: Joi.... | 4,238 |
https://github.com/kciter/NNGameFramework/blob/master/NNGameFramework/NNGameFramework/NNLogger.cpp | Github Open Source | Open Source | MIT | 2,014 | NNGameFramework | kciter | C++ | Code | 108 | 395 |
#include "NNLogger.h"
#include <windows.h>
#include <iostream>
void NNLogger::InfoLog( std::string string )
{
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), ConsoleColor::_GRAY);
std::cout << "INFO:: " << string << std::endl;
}
void NNLogger::WarningLog( std::string string )
{
SetConsoleTextAttribute(Get... | 30,554 |
https://github.com/hbthlw/leetcode-practice/blob/master/131. Palindrome Partitioning.py | Github Open Source | Open Source | MIT | null | leetcode-practice | hbthlw | Python | Code | 56 | 205 | class Solution(object):
def partition(self, s):
"""
:type s: str
:rtype: List[List[str]]
"""
ret = []
def is_palindrome(s):
return s == s[::-1]
def do_partition(string, path):
if not string:
ret.append(path[:])
... | 45,448 |
https://github.com/daiwei1999/AwayCPP/blob/master/Source/Engine/Lights/ShadowMaps/CubeMapShadowMapper.h | Github Open Source | Open Source | MIT | 2,023 | AwayCPP | daiwei1999 | C++ | Code | 50 | 205 | #pragma once
#include "Common.h"
#include "ShadowMapperBase.h"
#include "Camera3D.h"
AWAY_NAMESPACE_BEGIN
class CubeMapShadowMapper : public ShadowMapperBase
{
public:
CubeMapShadowMapper();
protected:
TextureProxyBase* createDepthTexture() override;
void updateDepthProjection(Camera3D* viewCamera) override;
vo... | 8,431 |
https://github.com/trollweb/PayEx.Ecommerce.Php/blob/master/src/PayEx/Api/Service/Payment/Transaction/Resource/Response/Data/SalesInterface.php | Github Open Source | Open Source | MIT | null | PayEx.Ecommerce.Php | trollweb | PHP | Code | 35 | 134 | <?php
namespace PayEx\Api\Service\Payment\Transaction\Resource\Response\Data;
use PayEx\Api\Service\Payment\Transaction\Resource\Response\Collection\TransactionListCollection;
interface SalesInterface extends TransactionResourceInterface
{
const SALE_LIST = 'sale_list';
/**
* @return TransactionListColl... | 9,482 |
https://github.com/shambo001/peat/blob/master/PEATDB/DNAtool/primer_design_GUI.py | Github Open Source | Open Source | MIT | 2,021 | peat | shambo001 | Python | Code | 1,599 | 8,237 | #!/usr/bin/env python
#
# Protein Engineering Analysis Tool DataBase (PEATDB)
# Copyright (C) 2010 Damien Farrell & Jens Erik Nielsen
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either ver... | 23,282 |
https://github.com/displague/manager/blob/master/src/features/linodes/LinodesDetail/LinodeSettings/LinodeDiskSpace.test.tsx | Github Open Source | Open Source | BSD-3-Clause | 2,019 | manager | displague | TSX | Code | 235 | 687 | import { shallow } from 'enzyme';
import * as React from 'react';
import { disks } from 'src/__data__/disks';
import { addUsedDiskSpace, LinodeDiskSpace } from './LinodeDiskSpace';
const component = shallow(
<LinodeDiskSpace
classes={{
root: '',
header: '',
bar: '',
text: '',
divid... | 50,478 |
https://github.com/3i-hust-tts/WaveGrad/blob/master/runs/inference.sh | Github Open Source | Open Source | BSD-3-Clause | 2,020 | WaveGrad | 3i-hust-tts | Shell | Code | 22 | 138 | CONFIG_PATH=$1 #configs/default.json
CHECKPOINT_PATH=$2 #logs/pretrained_ljspeech.pt
NOISE_SCHEDULE_PATH=$3 #schedules/default/6iters.pt
MEL_FILELIST_PATH=$4 #tmp/mel_filelist.txt
VERBOSE=$5 #'yes'
python inference.py -c $CONFIG_PATH -ch $CHECKPOINT_PATH -ns $NOISE_SCHEDULE_PATH -m $MEL_FILELIST_PATH -v $VERBOSE... | 31,590 |
https://github.com/yls871435707/CateMenu/blob/master/CateMenu/app/src/main/java/com/example/administrator/catemenu/activity/MyFoodOrderActivity.java | Github Open Source | Open Source | Apache-2.0 | null | CateMenu | yls871435707 | Java | Code | 84 | 401 | package com.example.administrator.catemenu.activity;
import android.app.Activity;
import android.os.Bundle;
import android.widget.ListView;
import com.example.administrator.catemenu.R;
import com.example.administrator.catemenu.adapter.OrderAdapter;
import com.example.administrator.catemenu.modle.Order;
import java.u... | 40,457 |
https://github.com/UlisesVelazquez208/hadoop-hdfs-trunk/blob/master/src/java/org/apache/hadoop/hdfs/protocol/datatransfer/DataTransferProtocol.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | hadoop-hdfs-trunk | UlisesVelazquez208 | Java | Code | 215 | 418 | /**
* 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... | 47,340 |
https://github.com/BlueshiftSoftware/EntityFrameworkCore/blob/master/src/Blueshift.EntityFrameworkCore.MongoDB/Adapter/Update/ReplaceOneModelFactory.cs | Github Open Source | Open Source | Apache-2.0 | 2,019 | EntityFrameworkCore | BlueshiftSoftware | C# | Code | 169 | 608 | using JetBrains.Annotations;
using Microsoft.EntityFrameworkCore.ChangeTracking.Internal;
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Update;
using Microsoft.EntityFrameworkCore.Utilities;
using Microsoft.EntityFrameworkCore.ValueGeneration;
using MongoDB.Driver;
namespace Bluesh... | 29,875 |
https://github.com/ismailj27/ruby-objects-has-many-through-readme-online-web-sp-000/blob/master/lib/waiter.rb | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, LicenseRef-scancode-public-domain | 2,019 | ruby-objects-has-many-through-readme-online-web-sp-000 | ismailj27 | Ruby | Code | 92 | 328 | require "pry"
class Waiter
attr_accessor :name, :yrs_experience
@@all = []
def initialize(name, yrs_experience)
@name = name
@yrs_experience = yrs_experience
@@all << self
end
def self.all
@@all
end
def new_meal(a_customer, a_total, a_tip)
Meal.new(self, a_customer, a_total,... | 39,630 |
https://github.com/sunqinbo/ec-saas/blob/master/server/erp-web/src/main/webapp/resources/plugin/ajax.util.message.js | Github Open Source | Open Source | MIT | 2,017 | ec-saas | sunqinbo | JavaScript | Code | 14 | 78 | var ajaxUtilMessage = {
// "bill.check.checkresult" : "对账结果:成功{1}条单据,失败 {2}条单据。",
// "settlement.null.detail" : "结算单详情为空,无法提交结算"
}; | 4,316 |
https://github.com/brunogabriel/mobile-rest-web/blob/master/mrestweb/webapp/util.py | Github Open Source | Open Source | Apache-2.0 | 2,016 | mobile-rest-web | brunogabriel | Python | Code | 67 | 219 | # -*- coding: utf-8 -*-
from django.contrib.auth.models import User
import requests
def base_response(success=False, message='Data empty'):
return {'success': success, 'message': message}
def obtain_token(username, password):
if not username or not password:
return None
try:
post_data = {'username': usernam... | 36,101 |
https://github.com/King-BR/Dev-Manager/blob/master/events/guildMemberAdd.js | Github Open Source | Open Source | MIT | null | Dev-Manager | King-BR | JavaScript | Code | 104 | 472 | let Database = require("../database");
const Discord = require('discord.js');
module.exports = (client, member,) => {
if(member.guild.id != "666447067970928650") return;
let server = client.guilds.get("666447067970928650")
member.addRole("667724698548830250")
let log = server.channels.get("66644706797... | 2,754 |
https://github.com/Guo-lab/CGAN_Face/blob/master/ciyun.py | Github Open Source | Open Source | MIT | 2,022 | CGAN_Face | Guo-lab | Python | Code | 70 | 360 | import jieba
import wordcloud
import pandas as pd
import csv
with open('/Users/gsq/Desktop/DatabasePractice/Final/csv/danmu.csv','r',encoding='utf-8') as csvfile:
reader = csv.reader(csvfile)
column = [row[7] for row in reader]
txt_list = jieba.cut(str(column)) # 处理 分词数据(返回数据类型列表)
string = ' '.join(txt_list... | 8,438 |
https://github.com/octopusengine/simple3dscanner/blob/master/oeGPIO.py | Github Open Source | Open Source | MIT | 2,016 | simple3dscanner | octopusengine | Python | Code | 97 | 382 | #!/usr/bin/python
# Filename : oeGPIO.py
#-----------------------------------
## simple 3d scanner
##----------------------------------
import time
from time import sleep
import RPi.GPIO as GPIO # for step motor
EN2 = 22
DIR2 = 27
STEP2 = 17
dStep=0.00001
#---------------------------------
def oeSetupGPIO():
glo... | 29,547 |
https://github.com/arturalkaim/PCS-HeatDissipation/blob/master/src/runOut.c | Github Open Source | Open Source | Apache-2.0 | null | PCS-HeatDissipation | arturalkaim | C | Code | 486 | 1,669 | //
// main.c
// Test1
//
// Created by Artur Alkaim on 30/10/14.
// Copyright (c) 2014 Artur Alkaim. All rights reserved.
//
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>
#include <time.h>
#include "run.h"
#include "input.h"
#define DIRECT_N_CONST(condutivity) (sqrt(2)/(sqrt(2)+1))*... | 32,518 |
https://github.com/Inggo/RimWorld.ElectricBraziers/blob/master/Source/RoomRequirement_ThingCountAnyOf.cs | Github Open Source | Open Source | MIT | null | RimWorld.ElectricBraziers | Inggo | C# | Code | 370 | 1,115 | using System;
using System.Collections.Generic;
using RimWorld;
using Verse;
namespace RimWorld
{
/// <summary>Class <c>RoomRequirement_ThingCountAnyOf</c> extends <c>RoomRequirement_ThingAnyOf</c>
/// functionality by allowing multiple <c>ThingDef</c>s to satisfy the Room Requirement condition.
/// </summary>
pu... | 10,277 |
https://github.com/symphonyoss/vote-bot/blob/master/after-success.sh | Github Open Source | Open Source | EPL-1.0, Classpath-exception-2.0, GPL-2.0-only, CDDL-1.1, CDDL-1.0, Apache-2.0 | 2,018 | vote-bot | symphonyoss | Shell | Code | 92 | 526 | #!/bin/bash
BRANCH_NAME=$1
TRAVIS_PULL_REQUEST=$2
# NodePorts must be within 30000-32767 range - read more on https://docs.openshift.com/container-platform/latest/dev_guide/expose_service/expose_internal_ip_nodeport.html
if [[ $BRANCH_NAME =~ master ]]; then
export SYMPHONY_POD_HOST="foundation.symphony.com"
expor... | 2,820 |
https://github.com/richardnv/Core/blob/master/Core/Attributes/RequestMethods.cs | Github Open Source | Open Source | MIT | 2,021 | Core | richardnv | C# | Code | 42 | 86 | using System;
namespace Datasilk.Core.Web
{
[AttributeUsage(AttributeTargets.Method)]
public class GETAttribute : Attribute { }
public class POSTAttribute : Attribute { }
public class PUTAttribute : Attribute { }
public class HEADAttribute : Attribute { }
public class DELETEAttribute : Attribu... | 21,545 |
https://github.com/mrc75/django-easy-reports/blob/master/demo/demoproject/demoapp/urls.py | Github Open Source | Open Source | BSD-1-Clause | 2,016 | django-easy-reports | mrc75 | Python | Code | 15 | 59 | from django.conf.urls import patterns, url
from views import ReportIndex
urlpatterns = patterns('',
url(r'^reports/$',
ReportIndex.as_view(),
name='reports.list_reports'),)
| 41,261 |
https://github.com/chipsalliance/aib-phy-hardware/blob/master/v1.0/rev2/rtl/v1_slave/soc_std_macro/rtl/block_function/i14socnd/altr_hps_gray2bin.v | Github Open Source | Open Source | Apache-2.0 | 2,023 | aib-phy-hardware | chipsalliance | Verilog | Code | 71 | 256 | // SPDX-License-Identifier: Apache-2.0
// Copyright (C) 2019 Intel Corporation.
module altr_hps_gray2bin (
gray_in,
bin_out
);
input [2:0] gray_in;
output [2:0] bin_out;
reg [2:0] bin_out;
always @(*)
begin // gray to binary converting
case(gray_in)
3'b000: bin_out = 3'b000;
3'b001: bin_out = 3'b00... | 34,917 |
https://github.com/OpusCapita/filemanager/blob/master/spring-boot/filemanager-spring-boot-autoconfigure/src/test/java/com/opuscapita/filemanager/FileManagerIntegrationTest.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | filemanager | OpusCapita | Java | Code | 175 | 981 | package com.opuscapita.filemanager;
import org.json.JSONObject;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringBootConfiguration;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.bo... | 21,650 |
https://github.com/mattange/macronomics/blob/master/macronomics/fetchers/eurostat_fetcher/download.py | Github Open Source | Open Source | MIT | 2,018 | macronomics | mattange | Python | Code | 242 | 1,163 | #! /usr/bin/env python3
# Fetcher for Eurostat data
"""
Fetch series from Eurostat, the statistical office of the European Union, using bulk download.
Database:
- http://ec.europa.eu/eurostat/data/database
BUlk download instructions:
- http://ec.europa.eu/eurostat/data/bulkdownload
Bulk download facility:
- http://e... | 23,434 |
https://github.com/deawx/POS-Order-2.0-UX-1/blob/master/application/third_party/mpdf/ttfontdata/thsaraban.cw127.php | Github Open Source | Open Source | GPL-2.0-only, Apache-2.0 | 2,019 | POS-Order-2.0-UX-1 | deawx | PHP | Code | 367 | 779 | <?php
$rangeid=114;
$prevcid=126;
$prevwidth=416;
$interval=false;
$range=array (
32 =>
array (
0 => 216,
1 => 147,
2 => 208,
3 => 403,
4 => 361,
5 => 585,
6 => 423,
7 => 120,
),
40 =>
array (
0 => 190,
1 => 190,
'interval' => true,
),
42 =>
array (
0 =... | 15,058 |
https://github.com/basmilius/latte-ui/blob/master/packages/latte-ui/src/scss/ui/_overlay.scss | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, MIT | 2,022 | latte-ui | basmilius | SCSS | Code | 179 | 672 | /*!
* Copyright (c) 2018-2019 - Bas Milius <bas@mili.us>
*
* This file is part of the Latte UI package.
*
* For the full copyright and license information, please view the
* LICENSE file that was distributed with this source code.
*/
:root
{
--overlayBackground: var(--colorDark);
--overlayOpacity: .65;
}
div... | 4,022 |
https://github.com/akhilgupta01/tool.codoogle/blob/master/codoogle-common-utils/src/main/java/gupta/akhil/tools/common/utils/Cipher.java | Github Open Source | Open Source | Apache-2.0 | null | tool.codoogle | akhilgupta01 | Java | Code | 100 | 322 | package gupta.akhil.tools.common.utils;
import org.apache.commons.codec.binary.Base64;
public class Cipher {
private static final String KEY = "some-secret-key-of-your-choice";
public String encrypt(final String text) {
return Base64.encodeBase64String(this.xor(text.getBytes()));
}
public String decrypt(fina... | 47,261 |
https://github.com/blitzmax-itspeedway-net/sandbox/blob/master/json/test-boolean.bmx | Github Open Source | Open Source | MIT | null | sandbox | blitzmax-itspeedway-net | null | Spoken | 29 | 91 | SuperStrict
Import bmx.json
Local JText:String = "{'workspace':{'test':true}}"
'Local J:JSON = JSON.Parse( JText )
'Local JJ:JSON = J.find( "workspace|configuration" )
DebugStop
'If JJ
' Print JJ.Stringify()
'End If
Print "OK" | 21,391 |
https://github.com/fbertran/library/blob/master/src/cosy/server/conf.lua | Github Open Source | Open Source | MIT | 2,017 | library | fbertran | Lua | Code | 57 | 171 | return function (loader)
local Default = loader.load "cosy.configuration.layers".default
Default.server = {
interface = "127.0.0.1",
port = 0, -- random port
retry = 5,
name = nil,
locale = (os.getenv "LANG" or "en"):match "[^%.]+":gsub ("_", "-"),
log = loader.home ... | 6,972 |
https://github.com/sil-student-projects/2017-web-languageforge/blob/master/src/angular-app/languageforge/lexicon/directive/dc-sense.js | Github Open Source | Open Source | MIT | null | 2017-web-languageforge | sil-student-projects | JavaScript | Code | 113 | 439 | 'use strict';
angular.module('palaso.ui.dc.sense', ['palaso.ui.dc.fieldrepeat', 'palaso.ui.dc.example',
'ngAnimate', 'bellows.services', 'lexicon.services'])
// Palaso UI Dictionary Control: Sense
.directive('dcSense', ['lexUtils', 'modalService', function (utils, modal) {
return {
restrict: 'E',
template... | 33,482 |
https://github.com/imba97/laravel-u-editor/blob/master/src/Uploader/UploadFile.php | Github Open Source | Open Source | MIT | null | laravel-u-editor | imba97 | PHP | Code | 195 | 1,008 | <?php namespace Stevenyangecho\UEditor\Uploader;
use Stevenyangecho\UEditor\Uploader\Upload;
/**
*
*
* Class UploadFile
*
* 文件/图像普通上传
*
* @package Stevenyangecho\UEditor\Uploader
*/
class UploadFile extends Upload{
use UploadQiniu;
use UploadAliOss;
public function doUpload()
{
$fil... | 47,188 |
https://github.com/thealjey/awesome-cookie/blob/master/awesome-cookie.js | Github Open Source | Open Source | MIT | 2,014 | awesome-cookie | thealjey | JavaScript | Code | 100 | 256 | /**
* @author Eugene Kuzmenko
* @description A tiny script that takes care of all the cookie related problems in JavaScript
* @license MIT
*/
var Cookie = (function (d) {
var r = /=|;/, p = ';path=/' + (/\d+\.\d+\.\d+\.\d+/.test(d.domain) ? '' : ';domain=.' + location.host);
function set(n, v, t) {
var e = ... | 4,958 |
https://github.com/apache/incubator-plc4x/blob/master/plc4go/protocols/s7/readwrite/model/COTPPacketTpduError.go | Github Open Source | Open Source | Apache-2.0 | 2,019 | incubator-plc4x | apache | Go | Code | 690 | 2,199 | /*
* 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 ... | 22,352 |
https://github.com/csellis/grocery/blob/master/web/src/pages/NewCategoryPage/NewCategoryPage.js | Github Open Source | Open Source | MIT | 2,021 | grocery | csellis | JavaScript | Code | 25 | 76 | import CategoriesLayout from 'src/layouts/CategoriesLayout'
import NewCategory from 'src/components/NewCategory'
const NewCategoryPage = () => {
return (
<CategoriesLayout>
<NewCategory />
</CategoriesLayout>
)
}
export default NewCategoryPage
| 9,761 |
https://github.com/CVEProject/cve-services/blob/master/test/unit-tests/middleware/cnaMustOwnIdTestMiddlewareTest.js | Github Open Source | Open Source | CC0-1.0 | 2,023 | cve-services | CVEProject | JavaScript | Code | 431 | 1,609 | const express = require('express')
const app = express()
const chai = require('chai')
const expect = chai.expect
chai.use(require('chai-http'))
// Body Parser Middleware
app.use(express.json()) // Allows us to handle raw JSON data
app.use(express.urlencoded({ extended: false })) // Allows us to handle url encoded data... | 164 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.