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/humeafo/config-files/blob/master/emacsd/init.el | Github Open Source | Open Source | BSD-3-Clause | 2,017 | config-files | humeafo | null | Spoken | 1,099 | 5,009 | (add-to-list 'load-path "~/.emacs.d")
(add-to-list 'load-path "~/.emacs.d/color-theme")
;; set up package repository
(require 'package)
(setq package-archives '(("gnu" . "http://elpa.gnu.org/packages/")
("marmalade" . "http://marmalade-repo.org/packages/")
("melpa" . ... | 32,782 |
https://github.com/ISO-TC211/excel-adapter/blob/master/src/iso-tc211-xml/src/generated/java/org/isotc211/iso19139/gco/impl/CharacterStringPropertyTypeImpl.java | Github Open Source | Open Source | BSD-2-Clause, BSD-3-Clause | 2,020 | excel-adapter | ISO-TC211 | Java | Code | 643 | 2,629 | /**
*/
package org.isotc211.iso19139.gco.impl;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.common.notify.NotificationChain;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.InternalEObject;
import org.eclipse.emf.ecore.impl.ENotificationImpl;
import org.eclipse.emf.eco... | 26,934 |
https://github.com/shervinchen/typescript-learning/blob/master/ts-examples/4-1/demo.js | Github Open Source | Open Source | MIT | 2,021 | typescript-learning | shervinchen | JavaScript | Code | 9 | 31 | "use strict";
{
var name_1 = 'csd';
console.log(name_1);
}
| 29,953 |
https://github.com/pavanbellamkonda/Java/blob/master/Chapter 6/BoxDemo5.java | Github Open Source | Open Source | MIT | 2,018 | Java | pavanbellamkonda | Java | Code | 89 | 237 | class Box5 {
double width;
double length;
double depth;
double volume() {
return width * length * depth;
}
void setDim(double w, double l, double d) {
width = w;
length = l;
depth = d;
}
}
class BoxDemo5 {
public static void main(String args[])
{
Box5 mybox1 = new Box5();
Box5 mybox2 = new Box... | 30,248 |
https://github.com/ebuttiero/php-ulid/blob/master/tests/UlidTest.php | Github Open Source | Open Source | MIT | 2,017 | php-ulid | ebuttiero | PHP | Code | 92 | 317 | <?php
/*
* This file is part of the ULID package.
*
* (c) Robin van der Vleuten <robin@webstronauts.co>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Ulid\Tests;
use Ulid\Ulid;
class UlidTest extends \PHPUnit_Framew... | 38,553 |
https://github.com/mbarclay95/home-dashboard-api/blob/master/database/migrations/2021_10_29_195141_move_image_from_site_to_site_images.php | Github Open Source | Open Source | MIT | null | home-dashboard-api | mbarclay95 | PHP | Code | 100 | 357 | <?php
use App\Models\Site;
use App\Models\SiteImage;
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class MoveImageFromSiteToSiteImages extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public f... | 24,187 |
https://github.com/mck89/peast/blob/master/test/Peast/Syntax/ES2015/files/JSX/Element/Element2.js | Github Open Source | Open Source | BSD-2-Clause | 2,023 | peast | mck89 | JavaScript | Code | 7 | 28 | a = <main>
test
<sub>test2</sub>
test3
</main>; | 45,234 |
https://github.com/Azure/node-red-contrib-azure/blob/master/iot-hub/node_modules/amqp10/test/benchmarks/simple.js | Github Open Source | Open Source | LicenseRef-scancode-generic-cla, MIT, Apache-2.0 | 2,023 | node-red-contrib-azure | Azure | JavaScript | Code | 96 | 301 | 'use strict';
var AMQPClient = require('../../lib').Client;
var client = new AMQPClient(),
messageCount = parseInt(process.argv[2]) || 10,
server = process.env.SERVER || 'localhost',
receivedCount = 0,
start, finish;
client.connect('amqp://' + server)
.then(function() {
return Promise.all([
... | 48,338 |
https://github.com/zherar7ordoya/AP3/blob/master/(CSharp)/1) Mark Price/Code/PracticalApps/NorthwindMobile/NorthwindMobile/Models/Customer.cs | Github Open Source | Open Source | MIT | null | AP3 | zherar7ordoya | C# | Code | 288 | 764 | using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.ComponentModel;
using System.Runtime.CompilerServices;
namespace NorthwindMobile.Models
{
public class Customer : INotifyPropertyChanged
{
public static IList<Customer> Customers;
static Customer()
{
Customers ... | 2,321 |
https://github.com/hjxhzml/ImTheCat/blob/master/src/router/index.ts | Github Open Source | Open Source | MIT | 2,019 | ImTheCat | hjxhzml | TypeScript | Code | 44 | 116 | import Vue from 'vue';
import Router from 'vue-router';
import { initRouterRules } from './handle';
// console.dir(Router);
Vue.use(Router);
export default initRouterRules();
// export default new Router({
// mode: 'history',
// base: process.env.BASE_URL,
// routes: [{
// path: '/',
// name: 'home',... | 7,384 |
https://github.com/SebastienFCT/daily-coding-problem/blob/master/swift/Problem 124/Problem 124Tests/Problem_124Tests.swift | Github Open Source | Open Source | MIT | 2,022 | daily-coding-problem | SebastienFCT | Swift | Code | 108 | 271 | //
// Problem_124Tests.swift
// Problem 124Tests
//
// Created by sebastien FOCK CHOW THO on 2019-09-26.
// Copyright © 2019 sebastien FOCK CHOW THO. All rights reserved.
//
import XCTest
@testable import Problem_124
class Problem_124Tests: XCTestCase {
func test_approximation_of_iteration_before_reaching_on... | 49,033 |
https://github.com/ed611592/SeniorProject/blob/master/application/views/pages/teacherPractice.php | Github Open Source | Open Source | MIT | null | SeniorProject | ed611592 | PHP | Code | 163 | 806 |
<!-- Student Custom Styles -->
<link href="<?php echo base_url();?>/assets/css/teacherP.css" rel="stylesheet">
<body id="teacher">
<div class = "container">
<!--Animations-->
<div id="chipPic">
</div>
<div id="chip2">
</div>
<!---->
<div class="home">
<center>
<h1>Hello Teacher!</h1>
... | 42,590 |
https://github.com/jonsterling/hs-monad-open/blob/master/src/Control/Monad/Trans/Open/Example.hs | Github Open Source | Open Source | MIT | 2,015 | hs-monad-open | jonsterling | Haskell | Code | 782 | 1,518 | {-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE NoMonomorphismRestriction #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE StandaloneDeriving #-}
{-# LANGUAGE UnicodeSyntax #-}
-- | This is a demonstration of using open recursion to imple... | 8,762 |
https://github.com/open-minds/Hacktober-2019/blob/master/JavaFX apps/XOpenDev/src/Main/c1.java | Github Open Source | Open Source | MIT | 2,020 | Hacktober-2019 | open-minds | Java | Code | 39 | 153 | package Main;
import javafx.fxml.FXML;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.scene.control.Button;
import java.io.IOException;
public class c1 {
@FXML
Button b1 = new Button();
@FXML
private void bFun() throws IOException {
Pare... | 8,823 |
https://github.com/dilbrent/bazel-0.14.1/blob/master/src/main/java/com/google/devtools/build/lib/query2/engine/VariableContext.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | bazel-0.14.1 | dilbrent | Java | Code | 301 | 710 | // Copyright 2016 The Bazel Authors. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by appl... | 5,044 |
https://github.com/nblogist/api/blob/master/packages/types/src/metadata/v13/toV14.ts | Github Open Source | Open Source | Apache-2.0 | 2,021 | api | nblogist | TypeScript | Code | 1,076 | 3,305 | // Copyright 2017-2021 @polkadot/types authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { ErrorMetadataV13, EventMetadataV13, ExtrinsicMetadataV13, ExtrinsicMetadataV14, FunctionMetadataV13, MetadataV13, MetadataV14, ModuleConstantMetadataV13, ModuleMetadataV13, PalletCallMetadataV14, PalletCo... | 13,465 |
https://github.com/madiantech/tkcore/blob/master/CoreWeb/YJC.Toolkit.Razor.Web/Data/_Object/ObjectContainerDetailModelCreator.cs | Github Open Source | Open Source | BSD-3-Clause | 2,021 | tkcore | madiantech | C# | Code | 50 | 186 | using YJC.Toolkit.Sys;
namespace YJC.Toolkit.Data
{
[InstancePlugIn]
[ModelCreator(Author = "YJC", CreateDate = "2017-04-16",
Description = "为Detail模板提供包装ObjectContainer的数据模型")]
internal class ObjectContainerDetailModelCreator : IModelCreator
{
public static readonly IModelCreator Inst... | 5,637 |
https://github.com/mariusj/contests/blob/master/srm499/src/SimpleGuess.java | Github Open Source | Open Source | Unlicense | 2,013 | contests | mariusj | Java | Code | 444 | 1,417 | public class SimpleGuess {
public int getMaximum(int[] hints) {
int max = 0;
for (int i=0; i<hints.length; i++) {
for (int j=0; j<hints.length; j++) {
if (i == j)
continue;
int sum = hints[i];
int sub = hints[j];
int y = (sum - sub);
if (y <= 0 || y % 2 != 0)
continue;
y = y ... | 24,935 |
https://github.com/RipperJ/FADO/blob/master/benchmarks/cnn_cov/all_ab/top_base/solution/impl/verilog/top_PE_wrapper_6_0_x0.v | Github Open Source | Open Source | Apache-2.0 | 2,023 | FADO | RipperJ | Verilog | Code | 3,470 | 17,491 | // ==============================================================
// RTL generated by Vitis HLS - High-Level Synthesis from C, C++ and OpenCL v2020.2 (64-bit)
// Version: 2020.2
// Copyright (C) Copyright 1986-2020 Xilinx, Inc. All Rights Reserved.
//
// ===========================================================
`ti... | 49,651 |
https://github.com/DevotedMC/CivModCore/blob/master/src/main/java/vg/civcraft/mc/civmodcore/locations/chunkmeta/block/table/TableBasedBlockChunkMeta.java | Github Open Source | Open Source | BSD-3-Clause | 2,021 | CivModCore | DevotedMC | Java | Code | 221 | 843 | package vg.civcraft.mc.civmodcore.locations.chunkmeta.block.table;
import java.util.ArrayList;
import java.util.List;
import org.bukkit.Location;
import vg.civcraft.mc.civmodcore.locations.chunkmeta.CacheState;
import vg.civcraft.mc.civmodcore.locations.chunkmeta.block.BlockBasedChunkMeta;
public abstract class Table... | 21,395 |
https://github.com/cping/LGame/blob/master/Java/Loon-Neo-GWT/src/loon/html5/gwt/preloader/ResourcesWrapper.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | LGame | cping | Java | Code | 1,910 | 4,993 | /**
* Copyright 2008 - 2015 The Loon Game Engine Authors
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appl... | 13,513 |
https://github.com/jlbeard84/unity-roll-a-ball-demo/blob/master/Assets/Scripts/Rotator.cs | Github Open Source | Open Source | MIT | null | unity-roll-a-ball-demo | jlbeard84 | C# | Code | 30 | 86 | using UnityEngine;
namespace Assets.Scripts
{
public class Rotator : MonoBehaviour
{
private readonly Vector3 _defaultRotation = new Vector3(15, 30, 45);
public void Update()
{
transform.Rotate(_defaultRotation * Time.deltaTime);
}
}
}
| 22,097 |
https://github.com/z88dk/z88dk/blob/master/libsrc/_DEVELOPMENT/stdio/c/sdcc_ix/open_memstream_callee.asm | Github Open Source | Open Source | ClArtistic | 2,023 | z88dk | z88dk | Assembly | Code | 30 | 140 |
; FILE *open_memstream_callee(char **bufp, size_t *sizep)
SECTION code_clib
SECTION code_stdio
PUBLIC _open_memstream_callee, l0_open_memstream_callee
EXTERN asm_open_memstream
_open_memstream_callee:
pop hl
pop de
ex (sp),hl
l0_open_memstream_callee:
push ix
call asm_open_memstream
po... | 21,185 |
https://github.com/kowith337/MusicMemories/blob/master/Graphics/ScreenMapControllers action.lua | Github Open Source | Open Source | MIT | 2,021 | MusicMemories | kowith337 | Lua | Code | 44 | 246 | return Def.BitmapText{
Font="Common Normal",
InitCommand= cmd(x, SCREEN_CENTER_X; zoom, .75, 0; diffuse, color("#808080")),
OnCommand= function(self)
self:diffusealpha(0)
self:decelerate(0.5)
self:diffusealpha(1)
-- fancy effect: Look at the name (which is set by the screen) to set text
self:settext(
T... | 41,887 |
https://github.com/birdayz/streamz/blob/master/internal/node.go | Github Open Source | Open Source | MIT | 2,022 | streamz | birdayz | Go | Code | 122 | 389 | package internal
import (
"context"
"github.com/birdayz/kstreams/sdk"
"go.uber.org/multierr"
)
type Nexter[K, V any] interface {
AddNext(GenericProcessor[K, V])
}
var _ = GenericProcessor[any, any](&ProcessorNode[any, any, any, any]{})
type ProcessorNode[Kin any, Vin any, Kout any, Vout any] struct {
userProc... | 19,462 |
https://github.com/503612012/springboot_demo/blob/master/springboot_dynamic_datasource/src/main/java/com/oven/config/MySQLDataSourceConfig.java | Github Open Source | Open Source | Apache-2.0 | null | springboot_demo | 503612012 | Java | Code | 72 | 317 | package com.oven.config;
import org.apache.ibatis.session.SqlSessionFactory;
import org.mybatis.spring.SqlSessionFactoryBean;
import org.mybatis.spring.SqlSessionTemplate;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.context.... | 49,182 |
https://github.com/jschmidlapp/luci/blob/master/po/ru/upnp.po | Github Open Source | Open Source | Apache-2.0 | 2,012 | luci | jschmidlapp | Gettext Catalog | Code | 426 | 1,370 | msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2009-05-19 19:36+0200\n"
"PO-Revision-Date: 2012-06-28 09:39+0200\n"
"Last-Translator: Roman <x12ozmouse@ya.ru>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"Language: ru\n"
"MIME-Version: 1.0\n"
"Content-Type: text/... | 38,142 |
https://github.com/rstudio/gt/blob/master/data-raw/03-gtcars.R | Github Open Source | Open Source | MIT | 2,023 | gt | rstudio | R | Code | 6 | 34 | library(tidyverse)
gtcars <- readr::read_csv(file = "data-raw/gtcars.csv")
| 51,564 |
https://github.com/githtvietnam/cms/blob/master/app/Views/backend/menu/menu/index.php | Github Open Source | Open Source | MIT | null | cms | githtvietnam | PHP | Code | 309 | 1,231 | <?php
helper('form');
helper('nestedset');
$baseController = new App\Controllers\BaseController();
$language = $baseController->currentLanguage();
$AutoloadModel = new App\Models\AutoloadModel();
$languageList = get_full_language(['currentLanguage' => $language]);
?>
<div class="row wrapper bo... | 28,496 |
https://github.com/binocarlos/fleetstreet/blob/master/bridge.go | Github Open Source | Open Source | MIT | 2,019 | fleetstreet | binocarlos | Go | Code | 267 | 833 | package main
import (
"log"
"os"
"strings"
"sync"
dockerapi "github.com/fsouza/go-dockerclient"
)
type Job struct {
ID string // the hostname:containerid combo or FLEETSTREET_NAME env
IP string // the IP of the docker host
Container *dockerapi.Container /... | 11,053 |
https://github.com/isimplyexcel/text-based-game/blob/master/Game.cpp | Github Open Source | Open Source | MIT | 2,020 | text-based-game | isimplyexcel | C++ | Code | 1,050 | 2,492 | /*******************************************************************************************************************
** Program Name: train
** Author: Paul Min
** Date: 08/09/18
** Description: Game.cpp is the Game class implementation file.
******************************************************************************... | 22,686 |
https://github.com/Gabbyton/CavLab/blob/master/index.php | Github Open Source | Open Source | MIT | null | CavLab | Gabbyton | PHP | Code | 561 | 2,793 | <?php
session_start();
if (!isset($_SESSION['userEmail'])) {
header("Location: logout.php?error=mysql");
}
?>
<!doctype HTML>
<html>
<title>Physics Lab App</title>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="styl... | 37,255 |
https://github.com/LiuChangFreeman/TencentVideoEnhanced/blob/master/TencentVideoEnhanced/View/Search.xaml.cs | Github Open Source | Open Source | MIT | 2,021 | TencentVideoEnhanced | LiuChangFreeman | C# | Code | 274 | 1,147 | using System;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Media;
using Windows.UI.Xaml.Navigation;
using TencentVideoEnhanced.Model;
using Windows.Foundation.Metadata;
using Windows.UI;
using Windows.UI.Core;
// https://go.microsoft.com/fwlink/?LinkId=234238 上介绍了“空白页”项模板
namespace Te... | 11,822 |
https://github.com/turenar/microprocessor-experiment/blob/master/cpu.srcs/sim_1/new/test_ic.v | Github Open Source | Open Source | MIT | 2,017 | microprocessor-experiment | turenar | Verilog | Code | 153 | 563 | `timescale 1ns / 1ps
//////////////////////////////////////////////////////////////////////////////////
// Company:
// Engineer:
//
// Create Date: 2017/11/21 15:05:57
// Design Name:
// Module Name: test
// Project Name:
// Target Devices:
// Tool Versions:
// Description:
//
// Dependencies:
//
// Revision:
// Revisi... | 34,889 |
https://github.com/mahugnon/SmaCC/blob/master/SmaCC-Runtime.package/SmaCCParseNode.class/instance/filename.st | Github Open Source | Open Source | MIT | 2,018 | SmaCC | mahugnon | null | Spoken | 6 | 14 | accessing
filename
^ self attributeNamed: #filename | 8,323 |
https://github.com/riadafridishibly/go-epi-judge/blob/master/epi/road_network/highway_section.go | Github Open Source | Open Source | MIT | 2,022 | go-epi-judge | riadafridishibly | Go | Code | 13 | 29 | package road_network
type HighwaySection struct {
X int
Y int
Distance int
}
| 15,837 |
https://github.com/december183/excavator/blob/master/Application/Home/Controller/RegisterController.class.php | Github Open Source | Open Source | BSD-2-Clause | null | excavator | december183 | PHP | Code | 58 | 344 | <?php
namespace Home\Controller;
use Think\Controller;
class RegisterController extends ComController{
private $user=null;
public function __construct(){
parent::__construct();
$this->user=D('User');
}
public function index(){
if(IS_POST){
$data=I('param.');
... | 5,806 |
https://github.com/iotoasis/SO/blob/master/so-virtualobject/src/main/java/com/pineone/icbms/so/virtualobject/profile/DefaultProfile.java | Github Open Source | Open Source | BSD-2-Clause | 2,021 | SO | iotoasis | Java | Code | 73 | 187 | package com.pineone.icbms.so.virtualobject.profile;
/**
* Profile default class.<BR/>
* Created by uni4love on 2016. 11. 17..
*/
public class DefaultProfile extends AGenericProfile {
/**
* constructor
*/
public DefaultProfile() {
}
/**
* constructor.<BR/>
*
* @param id ID
... | 15,822 |
https://github.com/ruippeixotog/botarena/blob/master/client/js/components/GameInfo.jsx | Github Open Source | Open Source | MIT | 2,015 | botarena | ruippeixotog | null | Spoken | 527 | 2,158 | import React from "react";
import PropTypes from "prop-types";
import { Row, Col, Button, Table } from "react-bootstrap";
import { FormGroup, InputGroup, ControlLabel, Radio, FormControl } from "react-bootstrap";
import GamesActions from "../actions/GamesActions";
import GamesEvents from "../events/GamesEvents";
impor... | 3,488 |
https://github.com/mull-project/mull/blob/master/tests-lit/tests/tutorials/hello-world/step-1-version/sample.cpp | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, Apache-2.0 | 2,023 | mull | mull-project | C++ | Code | 36 | 208 | // clang-format off
/**
RUN: %mull_runner -version 2>&1 | %filecheck %s --dump-input=fail --strict-whitespace --match-full-lines
CHECK:Mull: Practical mutation testing for C and C++
CHECK:Home: https://github.com/mull-project/mull
CHECK:Docs: https://mull.readthedocs.io
CHECK:{{^Version: \d+\.\d+.\d+(-pr[0-9]+|-trunk[0... | 34,618 |
https://github.com/gkossakowski/vernier/blob/master/ibeacon-server/build.sbt | Github Open Source | Open Source | MIT | 2,016 | vernier | gkossakowski | Scala | Code | 46 | 219 | name := "ibeacon-server"
version := "1.0-SNAPSHOT"
libraryDependencies ++= Seq(
jdbc,
anorm,
cache,
"com.typesafe.akka" %% "akka-actor" % "2.2.1",
"com.typesafe.akka" %% "akka-slf4j" % "2.2.1",
"org.webjars" %% "webjars-play" % "2.2.1",
"org.webjars" % "bootstrap" % "2.3.1",
"org.webjars" % "flot" % "... | 33,519 |
https://github.com/luishowell/LH-IIRPy/blob/master/Demo/demo.py | Github Open Source | Open Source | MIT | null | LH-IIRPy | luishowell | Python | Code | 180 | 753 | #!/usr/bin/env python3
import numpy as np
import matplotlib.pyplot as plt
import lh_iirpy
unfiltered_ecg_dat = np.loadtxt('ecg.dat') # loading ecg from dat file
fs = 1000
unfiltered_ecg = unfiltered_ecg_dat[:, 1] # select only the data, ignoring the time column
#converting data to mV
input_start = 0
input_end = ... | 43,218 |
https://github.com/doxing/pandaOS/blob/master/src/scripts/build/xbacklight | Github Open Source | Open Source | MIT | 2,015 | pandaOS | doxing | Shell | Code | 18 | 88 | #!/bin/bash
FOLDERNAME="xbacklight-1.2.1"
FILENAME="xbacklight-1.2.1.tar.bz2"
# Xorg Application
# Change directory
cd /src/pkg/standard/${FOLDERNAME}
# Install
./configure $XORG_CONFIG
make
make install | 52,436 |
https://github.com/stevenorum/wiglaf/blob/master/src/wiglaf/cloudformation/templates.py | Github Open Source | Open Source | Beerware | 2,018 | wiglaf | stevenorum | Python | Code | 316 | 2,194 | from calvin import json
WIGLAF_TEMPLATE = {
"Parameters":{
"ClusterName":{
"Type":"String",
"Default":"Wiglaf"
},
"ImageId":{
"Type":"String",
"Default":"ami-aab1e9d0"
},
"InstanceType":{
"Type":"String",
... | 34,126 |
https://github.com/liverbool/dos-oauth-server-bundle/blob/master/Checker/RestrictionChecker.php | Github Open Source | Open Source | MIT | null | dos-oauth-server-bundle | liverbool | PHP | Code | 271 | 898 | <?php
/*
* This file is part of the Doss package.
*
* (c) Ishmael Doss <nukboon@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Dos\OAuthServerBundle\Checker;
use Dos\OAuthServerBun... | 49,411 |
https://github.com/ejno/brlcad/blob/master/src/libged/orient/orient.c | Github Open Source | Open Source | BSD-4-Clause, BSD-3-Clause | null | brlcad | ejno | C | Code | 393 | 1,068 | /* O R I E N T . C
* BRL-CAD
*
* Copyright (c) 2008-2021 United States Government as represented by
* the U.S. Army Research Laboratory.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* version 2.1 as... | 16,417 |
https://github.com/Cherno-SuS/SunderingShadows/blob/master/d/islands/common/obj/ragnarok2.c | Github Open Source | Open Source | MIT, LicenseRef-scancode-unknown-license-reference | 2,021 | SunderingShadows | Cherno-SuS | C | Code | 857 | 3,482 | //Coded by Bane//
//Revamped by Ares
#include <std.h>
inherit "/d/common/obj/weapon/longsword";
int COUNTER;
string owner;
void create()
{
::create();
set_id(({"sword","long sword","ragnarok","Ragnarok"}));
set_name("%^RED%^Ragnarok");
set_obvious_short("%^BOLD%^%^BLACK%^an %^RED%^ominous%^BLACK%... | 36,383 |
https://github.com/ahmedmostafaouf/Psychological-sessions/blob/master/app/Http/Controllers/Patient/DoctorController.php | Github Open Source | Open Source | MIT | null | Psychological-sessions | ahmedmostafaouf | PHP | Code | 376 | 2,152 | <?php
namespace App\Http\Controllers\Patient;
use App\Http\Controllers\Controller;
use App\Http\Traits\ZoomJWT;
use App\Models\Appointment;
use App\Models\Doctor;
use App\Models\DoctorSchedule;
use App\Models\Field;
use App\Models\Metting;
use Carbon\Carbon;
use Illuminate\Console\Scheduling\Schedule;
use Illuminate\... | 41,108 |
https://github.com/miguelemosreverte/IoT-Akka-best-practices-explained/blob/master/build.sbt | Github Open Source | Open Source | MIT | 2,021 | IoT-Akka-best-practices-explained | miguelemosreverte | Scala | Code | 58 | 182 | lazy val root = project
.in(file("."))
.settings(
name := "best-practices",
version := "0.1.0",
scalaVersion := "2.13.6"
)
.aggregate(domain, application, infrastructure)
lazy val `infrastructure` = project
lazy val `application` = project
.dependsOn(domain)
.dependsOn(infrastructure % "compil... | 3,999 |
https://github.com/kubasikora/MI-Projekt/blob/master/report/.gitignore | Github Open Source | Open Source | MIT | 2,020 | MI-Projekt | kubasikora | Ignore List | Code | 14 | 69 | *.aux
*.bbl
*.blg
*.fdb_latex
*.fdb_latexmk
*.fls
*.log
*.out
*.synctex.gz
*.synctex(busy)
*.nav
*.toc
*.snm
PrezentacjaMI.pdf
| 16,342 |
https://github.com/jpsachse/mensa-griebnitzsee/blob/master/MensaKit/Menu.swift | Github Open Source | Open Source | MIT | null | mensa-griebnitzsee | jpsachse | Swift | Code | 421 | 1,358 | //
// Menu.swift
// Mensa Griebnitzsee
//
// Copyright © 2017 Jan Philipp Sachse. All rights reserved.
//
import Foundation
public struct MenuDish {
public let name: String
public let category: String
public let notes: [String]
public var description: String {
get {
return category + ": " + na... | 40,809 |
https://github.com/jultra/CMSC-198-IAPPSAM-System/blob/master/src/main/com/iappsam/servlet/stocks/itemcategory/SaveItemCatAction.java | Github Open Source | Open Source | MIT | 2,011 | CMSC-198-IAPPSAM-System | jultra | Java | Code | 94 | 419 | package com.iappsam.servlet.stocks.itemcategory;
import java.io.IOException;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.iappsam.ItemCategory;
import com.iappsam.logging.Logger;
... | 36,833 |
https://github.com/buidhui/magento2-practice/blob/master/src/vendor/magento/module-sales/Test/Unit/Controller/Adminhtml/Order/ReviewPaymentTest.php | Github Open Source | Open Source | MIT | 2,018 | magento2-practice | buidhui | PHP | Code | 232 | 1,661 | <?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
namespace Magento\Sales\Test\Unit\Controller\Adminhtml\Order;
/**
* Class PaymentTest
*
* @package Magento\Sales\Controller\Adminhtml\Order
*/
class ReviewPaymentTest extends \PHPUnit\Framework\TestCase
{
/*... | 20,521 |
https://github.com/TijmenUU/smarttalesii/blob/master/smart_tales_ii/util/alignmenthelp.cpp | Github Open Source | Open Source | CC-BY-3.0, CC-BY-4.0 | null | smarttalesii | TijmenUU | C++ | Code | 77 | 256 | #include "alignmenthelp.hpp"
namespace Util
{
sf::Vector2i GetRectangleCenter(const sf::IntRect & rect)
{
return sf::Vector2i(rect.left + (rect.width / 2), rect.top + (rect.height / 2));
}
sf::Vector2f GetRectangleCenter(const sf::FloatRect & rect)
{
return sf::Vector2f(rect.left + (rect.width / 2.f), rect.t... | 44,748 |
https://github.com/abhishekpradeepmishra/amazon-neptune-tools/blob/master/neptune-export/src/main/java/com/amazonaws/services/neptune/propertygraph/GremlinFilters.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | amazon-neptune-tools | abhishekpradeepmishra | Java | Code | 364 | 1,276 | /*
Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License").
You may not use this file except in compliance with the License.
A copy of the License is located at
http://www.apache.org/licenses/LICENSE-2.0
or in the "license" file accompan... | 34,834 |
https://github.com/UniversityRadioYork/webcast.js/blob/master/src/components/resample.coffee | Github Open Source | Open Source | MIT | null | webcast.js | UniversityRadioYork | CoffeeScript | Code | 129 | 470 | class Webcast.Encoder.Resample
constructor: ({@encoder, @samplerate, @type}) ->
@mime = @encoder.mime
@info = @encoder.info
@channels = @encoder.channels
@ratio = parseFloat(@encoder.samplerate) / parseFloat(@samplerate)
@type = @type || Samplerate.FASTEST
@resamplers ... | 7,660 |
https://github.com/missinginaction/petmatcher/blob/master/static/drag_drop_files_1.js | Github Open Source | Open Source | BSD-3-Clause | 2,019 | petmatcher | missinginaction | JavaScript | Code | 52 | 183 | var dragHandler = function(evt){
evt.preventDefault();
};
var dropHandler = function(evt){
evt.preventDefault();
var files = evt.originalEvent.dataTransfer.files;
var formData = new FormData();
formData.append("file", files[0]);
var req = {
... | 18,794 |
https://github.com/aquach/volt/blob/master/GameData/Scripts/pygame.py | Github Open Source | Open Source | MIT | 2,017 | volt | aquach | Python | Code | 8,401 | 42,456 | # This file was automatically generated by SWIG (http://www.swig.org).
# Version 1.3.40
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
# This file is compatible with both classic and new-style classes.
from sys import version_info
if version_info >= (... | 6,690 |
https://github.com/lmc/ruby-wasm/blob/master/lib/wasm/version.rb | Github Open Source | Open Source | MIT | 2,018 | ruby-wasm | lmc | Ruby | Code | 8 | 27 | # version.rb
module WASM
VERSION = '0.0.2'
end
| 28,486 |
https://github.com/MeRajat/FiloDB/blob/master/stress/src/main/scala/filodb.stress/IngestionStress.scala | Github Open Source | Open Source | Apache-2.0 | null | FiloDB | MeRajat | Scala | Code | 515 | 1,589 | package filodb.stress
import org.apache.spark.{SparkContext, SparkConf}
import org.apache.spark.sql.{DataFrame, SaveMode, SQLContext}
import scala.util.Random
import scala.concurrent.duration._
import scala.concurrent.{Await, Future}
import filodb.core.DatasetRef
import filodb.spark._
/**
* Ingests into two differe... | 5,467 |
https://github.com/anasrar/orbit-jump/blob/master/src/core/Math.js | Github Open Source | Open Source | MIT | null | orbit-jump | anasrar | JavaScript | Code | 120 | 261 |
/**
* math pi.
*
* @name _mathPi
*
* @type {Number} math pi.
*/
export let _mathPi = Math.PI;
/**
* math sin.
*
* @name _mathSin
*
* @type {Function} math sin.
*/
export let _mathSin = Math.sin;
/**
* math cos.
*
* @name _mathCos
*
* @type {Function} math cos.
*/
export let _mathCos = Math.cos;
... | 26,877 |
https://github.com/aliyun/alibabacloud-java-sdk/blob/master/ecs-workbench-20220220/src/main/java/com/aliyun/ecs_workbench20220220/Client.java | Github Open Source | Open Source | Apache-2.0 | 2,023 | alibabacloud-java-sdk | aliyun | Java | Code | 181 | 874 | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.ecs_workbench20220220;
import com.aliyun.tea.*;
import com.aliyun.ecs_workbench20220220.models.*;
public class Client extends com.aliyun.teaopenapi.Client {
public Client(com.aliyun.teaopenapi.models.Config config) throws Exception {
... | 48,125 |
https://github.com/Lab-Work/gpsresilience/blob/master/misc_code/kl_divergence.py | Github Open Source | Open Source | NCSA, Unlicense | 2,021 | gpsresilience | Lab-Work | Python | Code | 733 | 2,762 | # -*- coding: utf-8 -*-
"""
Created on Wed May 21 17:37:25 2014
@author: brian
"""
import numpy
from numpy import matrix, transpose, mean, shape
from numpy.linalg import inv, det
from math import log
import os, csv
from collections import defaultdict
from cov_matrix import *
from tools import *
class MyException(Exc... | 14,202 |
https://github.com/samstoia/WordCounter.Solution-1/blob/master/WordCounter/Views/Shared/_Layout.cshtml | Github Open Source | Open Source | MIT | null | WordCounter.Solution-1 | samstoia | C# | Code | 33 | 195 | <html lang="en">
<head>
<meta charset="utf-8">
<link rel='stylesheet' href='https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css'>
<link rel="stylesheet" href="../../assets/css/bootstrap.css" type="text/css" media="all">
<link rel="stylesheet" href="../../assets/css/styles.css" type="... | 11,660 |
https://github.com/aquarhead/protect-the-rabbit/blob/master/src/limit-consumers.rs | Github Open Source | Open Source | MIT | 2,021 | protect-the-rabbit | aquarhead | Rust | Code | 296 | 888 | #![no_std]
#![no_main]
use core::mem::size_of;
use memoffset::offset_of;
use redbpf_macros::map;
use redbpf_probes::tc::prelude::*;
program!(0xFFFFFFFE, "GPL");
#[derive(Clone, Debug)]
#[repr(C)]
struct Source {
addr: u32,
port: u32, // should be u16, but need padding (?)
}
#[map("counts")]
static mut counts: Ha... | 51,060 |
https://github.com/xingwen93/LovePlay/blob/master/LovePlay-Swift3/LovePlay/Class/Recommend/Model/RecommendImageInfoModel.swift | Github Open Source | Open Source | MIT | 2,018 | LovePlay | xingwen93 | Swift | Code | 45 | 110 | //
// RecommendImageInfoModel.swift
// LovePlay
//
// Created by Yuns on 2017/5/30.
import UIKit
import HandyJSON
class RecommendImageInfoModel: HandyJSON {
var address : String?
var docid : String?
var imgUrl : String?
var priority : String?
var title : String?
required init() {
... | 37,346 |
https://github.com/element-plus/element-plus/blob/master/packages/components/select/style/css.ts | Github Open Source | Open Source | MIT | 2,023 | element-plus | element-plus | TypeScript | Code | 16 | 128 | import '@element-plus/components/base/style/css'
import '@element-plus/components/input/style/css'
import '@element-plus/components/tag/style/css'
import '@element-plus/components/option/style/css'
import '@element-plus/components/option-group/style/css'
import '@element-plus/components/scrollbar/style/css'
import '@el... | 45,795 |
https://github.com/cabinetoffice/gender-pay-gap/blob/master/GenderPayGap.WebUI/Classes/Presentation/SubmissionService.cs | Github Open Source | Open Source | MIT | 2,021 | gender-pay-gap | cabinetoffice | C# | Code | 1,333 | 5,742 | using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Security.Authentication;
using System.Threading.Tasks;
using GenderPayGap.Core;
using GenderPayGap.Core.Classes;
using GenderPayGap.Core.Helpers;
using GenderPayGap.Core.Interfaces;
using Gender... | 9,625 |
https://github.com/xelinte/XHuiCloud/blob/master/XHuiCloud-upms/XHuiCloud-upms-service/src/main/java/com/xhuicloud/upms/controller/SysRoleController.java | Github Open Source | Open Source | MIT | 2,022 | XHuiCloud | xelinte | Java | Code | 458 | 1,540 | /*
* MIT License
* Copyright <2021-2022>
*
* 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 use, copy, modify, merge, p... | 51,764 |
https://github.com/ayd0122344/ws/blob/master/more/others/host/shell/cccrenew.sh | Github Open Source | Open Source | MIT | 2,019 | ws | ayd0122344 | Shell | Code | 7 | 54 | #!/bin/sh
/root/deploy/cccstop.sh
/usr/local/sbin/certbot-auto renew >> /var/log/le-renew.log
/root/deploy/cccstart.sh
| 17,065 |
https://github.com/aemreunal/bibtex-refs-to-latex/blob/master/bibtex-to-latex.sh | Github Open Source | Open Source | MIT | 2,021 | bibtex-refs-to-latex | aemreunal | Shell | Code | 199 | 480 | #!/bin/sh
####################################################
# #
# BibTeX to LaTeX \bibitem converter #
# #
####################################################
# ... | 43,233 |
https://github.com/northleafup/spring-2.0-sourcecode/blob/master/test/org/springframework/mock/easymock/AbstractScalarMockTemplate.java | Github Open Source | Open Source | Apache-2.0 | 2,019 | spring-2.0-sourcecode | northleafup | Java | Code | 532 | 1,114 | /*
* Copyright 2002-2006 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | 12,633 |
https://github.com/ubisoft/datadog-api-client-java/blob/master/examples/v2/incident-services/ListIncidentServices.java | Github Open Source | Open Source | Apache-2.0 | null | datadog-api-client-java | ubisoft | Java | Code | 97 | 422 | // Get a list of all incident services returns "OK" response
import com.datadog.api.v2.client.ApiClient;
import com.datadog.api.v2.client.ApiException;
import com.datadog.api.v2.client.Configuration;
import com.datadog.api.v2.client.api.IncidentServicesApi;
import com.datadog.api.v2.client.api.IncidentServicesApi.List... | 43,842 |
https://github.com/1005833756/FEBS-Security/blob/master/febs-security/src/main/java/cc/mrbird/security/code/img/ImageCodeFilter.java | Github Open Source | Open Source | MIT | 2,020 | FEBS-Security | 1005833756 | Java | Code | 218 | 1,039 | package cc.mrbird.security.code.img;
import cc.mrbird.common.domain.FebsConstant;
import cc.mrbird.security.exception.ValidateCodeException;
import cc.mrbird.security.properties.FebsSecurityProperties;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.InitializingBean;
import org.sp... | 21,490 |
https://github.com/malariagen/filterbank/blob/master/filterbank/logger.py | Github Open Source | Open Source | MIT | 2,012 | filterbank | malariagen | Python | Code | 21 | 100 | import logging
log = logging.getLogger("filterbank")
ch = logging.StreamHandler()
#formatter = logging.Formatter('%(levelname)s - %(message)s')
#ch.setFormatter(formatter)
log.addHandler(ch)
def set_verbosity(verbosity):
ch.setLevel(verbosity)
log.set_verbosity = set_verbosity | 12,115 |
https://github.com/connectthefuture/arcade-mode/blob/master/client/scripts/challenges/projecteuler/preformatted/401_to_500/Problem 411: Uphill paths.raw | Github Open Source | Open Source | BSD-3-Clause | 2,017 | arcade-mode | connectthefuture | Raw token data | Code | 249 | 595 |
/* eslint spaced-comment: 0 */
/* eslint no-redeclare: 0 */
/* eslint no-unused-vars: 0 */
const assert = require('chai').assert;
/// title: Problem 411: Uphill paths
/// type: project-euler
/// categories:
/// math
/// difficulty: ?
/// benchmark:
//replaceWithActualFunctionHere;
/// description:
/// <div class... | 36,854 |
https://github.com/calmsacibis995/minix/blob/master/external/bsd/kyua-cli/dist/store/transaction_test.cpp | Github Open Source | Open Source | Unlicense | null | minix | calmsacibis995 | C++ | Code | 2,152 | 11,757 | // Copyright 2011 Google Inc.
// 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, this list of conditions and... | 27,036 |
https://github.com/sundflux/webvaloa-imagemagick/blob/master/src/Webvaloa/Imagemagick.php | Github Open Source | Open Source | MIT | null | webvaloa-imagemagick | sundflux | PHP | Code | 795 | 2,287 | <?php
/**
* The Initial Developer of the Original Code is
* Tarmo Alexander Sundström <ta@sundstrom.io>.
*
* Portions created by the Initial Developer are
* Copyright (C) 2014 Tarmo Alexander Sundström <ta@sundstrom.io>
*
* All Rights Reserved.
*
* Contributor(s):
*
* Permission is hereby granted, free of c... | 49,393 |
https://github.com/payshares-labs/stellar-anchor-tests/blob/master/@stellar/anchor-tests/src/tests/sep12/putCustomer.ts | Github Open Source | Open Source | Apache-2.0 | null | stellar-anchor-tests | payshares-labs | TypeScript | Code | 1,007 | 3,710 | import fetch from "node-fetch";
import { Request } from "node-fetch";
import { Keypair, Memo } from "stellar-sdk";
import { randomBytes } from "crypto";
import { Test, Config, Result, NetworkCall } from "../../types";
import { returnsValidJwt } from "../sep10/tests";
import { hasKycServerUrl } from "./toml";
import { ... | 3,115 |
https://github.com/p-org/P/blob/master/Tst/RegressionTests/Integration/DynamicError/Actions_5/Actions_5.p | Github Open Source | Open Source | MIT | 2,023 | P | p-org | OpenEdge ABL | Code | 219 | 506 | // This sample XYZs the semantics of push transitions: not deferral-by-default
// (as for push statements) and inheritance of actions
// compare to Actions_2.p (push statement case)
event E1 assert 1;
event E2 assert 1;
event E3 assert 1;
event E4 assert 1;
event unit assert 1;
machine Main {
var ghost_machine: m... | 1,673 |
https://github.com/stdbilly/CS_Note/blob/master/code30/linux/project/pan三期第4版/pan/ftp_server/main.c | Github Open Source | Open Source | MIT | 2,021 | CS_Note | stdbilly | C | Code | 268 | 2,739 | #include "factory.h"
int exitFds[2];
void sigfunc(int signum)//信号捕捉函数
{
write(exitFds[1],&signum,1);//写什么不重要,只是为了通知
}
void* threadfunc(void* p)
{
pFactory pf=(pFactory)p;
pQue_t pq=&pf->que;
pNode_t pcur;
int ret;
time_t logtime;
char timebuf[50]={0};
while(1)
{
pthread_mutex_lock(&pq->queMutex);
if(!pq->q... | 32,613 |
https://github.com/kbfl0912/nogotofail/blob/master/nogotofail/clients/android/app/src/main/java/net/nogotofail/Utils.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | nogotofail | kbfl0912 | Java | Code | 344 | 899 | /*
* Copyright 2014 Google Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 3,114 |
https://github.com/dareagle/Strategy-Card-Game-AI-Competition/blob/master/referee1.2-java/src/main/java/com/codingame/game/engine/Constants.java | Github Open Source | Open Source | MIT | 2,023 | Strategy-Card-Game-AI-Competition | dareagle | Java | Code | 454 | 1,405 | package com.codingame.game.engine;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
import java.io.Writer;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.u... | 8,461 |
https://github.com/jcampbell05/Polly/blob/master/Polly.podspec | Github Open Source | Open Source | MIT | 2,016 | Polly | jcampbell05 | Ruby | Code | 121 | 381 | #
# Be sure to run `pod lib lint Polly.podspec' to ensure this is a
# valid spec before submitting.
#
# Any lines starting with a # are optional, but their use is encouraged
# To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html
#
Pod::Spec.new do |s|
s.name = "Polly"
s.ver... | 28,147 |
https://github.com/txk1452/Synapse-Repository-Services/blob/master/lib/jdomodels/src/main/resources/schema/evaluation/Evaluation-ddl.sql | Github Open Source | Open Source | Apache-2.0 | null | Synapse-Repository-Services | txk1452 | SQL | Code | 72 | 230 | CREATE TABLE IF NOT EXISTS JDOEVALUATION (
ID bigint(20) NOT NULL,
ETAG char(36) NOT NULL,
NAME varchar(256)CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
DESCRIPTION mediumblob DEFAULT NULL,
OWNER_ID bigint(20) NOT NULL,
CREATED_ON bigint(20) NOT NULL,
CONTENT_SOURCE bigint(20) NOT NULL,... | 5,469 |
https://github.com/cmarshall108/panda3d-python3/blob/master/pandatool/src/lwoprogs/lwoToEgg.cxx | Github Open Source | Open Source | PHP-3.0, PHP-3.01 | null | panda3d-python3 | cmarshall108 | C++ | Code | 255 | 713 | /**
* PANDA 3D SOFTWARE
* Copyright (c) Carnegie Mellon University. All rights reserved.
*
* All use of this software is subject to the terms of the revised BSD
* license. You should have received a copy of this license along
* with this source code in a file named "LICENSE."
*
* @file lwoToEgg.cxx
* @author... | 2,487 |
https://github.com/catboost/catboost/blob/master/contrib/python/pythran/pythran/pythonic/include/operator_/gt.hpp | Github Open Source | Open Source | BSD-3-Clause, LicenseRef-scancode-unknown-license-reference, Apache-2.0 | 2,023 | catboost | catboost | C++ | Code | 36 | 165 | #ifndef PYTHONIC_INCLUDE_OPERATOR_GT_HPP
#define PYTHONIC_INCLUDE_OPERATOR_GT_HPP
#include "pythonic/include/utils/functor.hpp"
PYTHONIC_NS_BEGIN
namespace operator_
{
template <class A, class B>
auto gt(A &&a, B &&b) -> decltype(std::forward<A>(a) > std::forward<B>(b));
bool gt(char const *, char const *);
... | 44,345 |
https://github.com/GabrieleFerrario/AIQuestionAnswering/blob/master/knowledgeGraph/evaluate/eval.py | Github Open Source | Open Source | MIT | 2,021 | AIQuestionAnswering | GabrieleFerrario | Python | Code | 1,446 | 5,166 | #!/usr/bin/env python
import click
import json
import pandas as pd
import numpy as np
import networkx as nx
import sys
import statistics
def graph2nx(graphdict):
if graphdict is None:
return None
if type(graphdict) == str:
graphdict = json.loads(graphdict)
G = nx.from_dict_of_dicts(graphdic... | 18,933 |
https://github.com/BYUCamachoLab/gists/blob/master/remove_gc.py | Github Open Source | Open Source | MIT | null | gists | BYUCamachoLab | Python | Code | 97 | 302 | # Author: Sequoia Ploeg
import numpy as np
import matplotlib.pyplot as plt
def removeGC(amp_raw, wl):
POLY_ORDER = 4
p = np.polyfit((wl - np.mean(wl)), amp_raw, POLY_ORDER)
amplitude_baseline = np.polyval(p, wl - np.mean(wl))
amplitude_corrected = amp_raw - amplitude_baseline
amplitude_correc... | 32,787 |
https://github.com/Ajw317/ipp-crypto/blob/master/sources/ippcp/ifma_rsa_mb/src/ifma_arith52x_mb8.c | Github Open Source | Open Source | Apache-2.0 | null | ipp-crypto | Ajw317 | C | Code | 10,015 | 44,024 | /*******************************************************************************
* Copyright 2019-2020 Intel Corporation
*
* 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.apa... | 13,196 |
https://github.com/Sylius/Sylius/blob/master/src/Sylius/Bundle/CoreBundle/Resources/views/Collector/cart.html.twig | Github Open Source | Open Source | MIT | 2,023 | Sylius | Sylius | Twig | Code | 257 | 1,108 | {% extends '@WebProfiler/Profiler/layout.html.twig' %}
{% block toolbar %}
{% if collector.hasCart %}
{% import "@SyliusCore/Common/Macro/money.html.twig" as money %}
{% set icon %}
{{ include('@SyliusCore/Collector/Icon/cart.svg') }}
<span class="sf-toolbar-value">{{ colle... | 24,523 |
https://github.com/setvik/codsen/blob/master/packages/emlint/src/rules/attribute-validate/attribute-validate-color.ts | Github Open Source | Open Source | MIT | 2,021 | codsen | setvik | TypeScript | Code | 158 | 582 | import { Linter, RuleObjType } from "../../linter";
// rule: attribute-validate-color
// -----------------------------------------------------------------------------
import validateColor from "../../util/validateColor";
function attributeValidateColor(context: Linter): RuleObjType {
return {
attribute(node) {... | 14,751 |
https://github.com/taojy123/PokemonCard/blob/master/game/migrations/0005_auto_20190903_1508.py | Github Open Source | Open Source | MIT | null | PokemonCard | taojy123 | Python | Code | 40 | 199 | # Generated by Django 2.1.4 on 2019-09-03 07:08
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('game', '0004_auto_20190902_2100'),
]
operations = [
migrations.AlterField(
model_name='battle',
name='winner',
... | 27,133 |
https://github.com/ghuntley/ReactGraph/blob/master/src/ReactGraph.Tests/TestInstrumentation.cs | Github Open Source | Open Source | Apache-2.0 | 2,022 | ReactGraph | ghuntley | C# | Code | 165 | 450 | using System.Collections.Generic;
using System.Linq;
using ReactGraph.Instrumentation;
using ReactGraph.NodeInfo;
using Shouldly;
namespace ReactGraph.Tests
{
class TestInstrumentation : IEngineInstrumentation
{
public TestInstrumentation()
{
NodeEvaluations = new List<NodeEval>();
... | 9,580 |
https://github.com/piyushka17/azure-intelligent-edge-patterns/blob/master/staged-data-analytics/TDADataGenerator/Program.cs | Github Open Source | Open Source | MIT | 2,022 | azure-intelligent-edge-patterns | piyushka17 | C# | Code | 79 | 334 | using System;
using System.Configuration;
using TDADataGenerator.Model;
using TDADataGenerator.Storage;
namespace TDADataGenerator
{
class Program
{
static Random random = new Random((int)DateTime.Now.Ticks);
static void Main(string[] args)
{
AzureStackStorageHelper stora... | 36,787 |
https://github.com/ChristopherButtars/aws-sdk-net/blob/master/sdk/src/Services/Finspace/Generated/Model/Environment.cs | Github Open Source | Open Source | Apache-2.0 | 2,022 | aws-sdk-net | ChristopherButtars | C# | Code | 912 | 2,110 | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" fi... | 36,741 |
https://github.com/cunnane/xloil/blob/master/libs/xlOil_Utils/xloPad.cpp | Github Open Source | Open Source | Apache-2.0 | null | xloil | cunnane | C++ | Code | 111 | 370 | #include <xloil/ExcelObj.h>
#include <xloil/ArrayBuilder.h>
#include <xloil/ExcelArray.h>
#include <xloil/StaticRegister.h>
#include <xloil/ExcelObjCache.h>
namespace xloil
{
XLO_FUNC_START(
xloPad(const ExcelObj* arrayOrRef)
)
{
const auto& array = cacheCheck(*arrayOrRef);
ExcelArray arr(array);
... | 35,307 |
https://github.com/vision-consensus/vision-ledger/blob/master/examples/signVRC10WithName.py | Github Open Source | Open Source | MIT | 2,021 | vision-ledger | vision-consensus | Python | Code | 144 | 849 | #!/usr/bin/env python
from ledgerblue.comm import getDongle
import argparse
from base import parse_bip32_path
import binascii
parser = argparse.ArgumentParser()
parser.add_argument('--path', help="BIP32 path to retrieve. e.g. \"44'/195'/0'/0/0\".")
args = parser.parse_args()
if args.path == None:
args.path = "44'/1... | 50,246 |
https://github.com/mekk1t/Oasis/blob/master/OasisWebApp/OasisWebApp/Migrations/20200623133724_Cart_Changes.cs | Github Open Source | Open Source | MIT | null | Oasis | mekk1t | C# | Code | 68 | 272 | using Microsoft.EntityFrameworkCore.Migrations;
namespace OasisWebApp.Migrations
{
public partial class Cart_Changes : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<bool>(
name: "IsCheckedOut",
... | 50,356 |
https://github.com/afoarce/grading/blob/master/cornellGrading/cornellGrading.py | Github Open Source | Open Source | MIT | null | grading | afoarce | Python | Code | 5,828 | 17,403 | import pandas
import numpy as np
import getpass
import keyring
import time
from datetime import datetime, timedelta
import pytz
from canvasapi import Canvas
from canvasapi.exceptions import InvalidAccessToken
import tempfile
import os
import re
import warnings
from cornellGrading.cornellQualtrics import cornellQualtric... | 3,738 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.