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/joshb/EagleFramework/blob/master/Sources/Database/Model.swift | Github Open Source | Open Source | BSD-2-Clause, BSD-3-Clause | 2,022 | EagleFramework | joshb | Swift | Code | 730 | 1,506 | /*
* Copyright (C) 2015 Josh A. Beam
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of con... | 47,307 |
https://github.com/RikkaW/androidx/blob/master/camera/camera-extensions/src/androidTest/java/androidx/camera/extensions/internal/PreviewConfigProviderTest.kt | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-unknown-license-reference | 2,021 | androidx | RikkaW | Kotlin | Code | 892 | 3,715 | /*
* Copyright 2021 The Android Open Source Project
*
* 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... | 24,273 |
https://github.com/Beck-Sisyphus/EE472/blob/master/lab1_happenny/secondDebug.c | Github Open Source | Open Source | MIT | null | EE472 | Beck-Sisyphus | C | Code | 466 | 1,051 | //*****************************************************************************
//
// Built from hello.c - Simple hello world example.
//
// Copyright (c) 2006-2011 Texas Instruments Incorporated. All rights reserved.
// Software License Agreement
//
// Texas Instruments (TI) is supplying this software for use solely... | 4,853 |
https://github.com/jooink/BoofCV/blob/master/main/sfm/src/boofcv/factory/sfm/FactoryVisualOdometry.java | Github Open Source | Open Source | Apache-2.0 | 2,019 | BoofCV | jooink | Java | Code | 1,779 | 6,213 | /*
* Copyright (c) 2011-2013, Peter Abeles. All Rights Reserved.
*
* This file is part of BoofCV (http://boofcv.org).
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www... | 5,690 |
https://github.com/timurgaleev/terraform/blob/master/azure/modules/dns/variables.tf | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-unknown-license-reference, GPL-3.0-only | 2,023 | terraform | timurgaleev | HCL | Code | 1,515 | 3,302 | #-----------------------------------------------------------
# Global or/and default variables
#-----------------------------------------------------------
variable "name" {
description = "Name to be used on all resources as prefix"
default = "this"
}
variable "environment" {
description = "Environment for s... | 35,546 |
https://github.com/dfurkat/imgproxy/blob/master/processing/apply_filters.go | Github Open Source | Open Source | MIT, GPL-3.0-or-later, IJG, Zlib, LGPL-3.0-only, LicenseRef-scancode-warranty-disclaimer, FTL, MIT-open-group, LGPL-2.0-or-later, BSD-3-Clause, LicenseRef-scancode-x11-x11r5, HPND-sell-variant, LicenseRef-scancode-mit-old-style, GPL-2.0-or-later, Beerware, HPND, GPL-3.0-only, ImageMagick, LGPL-2.1-or-later, MPL-1.1, GF... | 2,022 | imgproxy | dfurkat | Go | Code | 166 | 473 | package processing
import (
"github.com/imgproxy/imgproxy/v3/imagedata"
"github.com/imgproxy/imgproxy/v3/imath"
"github.com/imgproxy/imgproxy/v3/options"
"github.com/imgproxy/imgproxy/v3/vips"
)
func applyFilters(pctx *pipelineContext, img *vips.Image, po *options.ProcessingOptions, imgdata *imagedata.ImageData) ... | 50,801 |
https://github.com/rzrepo/U-CIMAN/blob/master/rbusage3.m | Github Open Source | Open Source | MIT | 2,020 | U-CIMAN | rzrepo | MATLAB | Code | 236 | 784 | % get the rb usage from new DCI decoding, and record it in the way ready
% for added details from data decoding
% add one column in final result to show the actual time, for sync purpose
% since file name contains actual time, keeping as original should be fine
% so no big changes are done
clc;clear;
rawDataDir = 'zip... | 5,245 |
https://github.com/akobr/texo.ui/blob/master/BeaverSoft.Texo.Fallback.PowerShell/Transforming/GitInput.cs | Github Open Source | Open Source | MIT | 2,020 | texo.ui | akobr | C# | Code | 151 | 661 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using BeaverSoft.Texo.Core.Transforming;
namespace BeaverSoft.Texo.Fallback.PowerShell.Transforming
{
public class GitInput : ITransformation<InputModel>
{
private readonly HashSet<string... | 43,006 |
https://github.com/ekrich/scala-js-java-time/blob/master/testSuite/shared/src/test/scala/org/scalajs/testsuite/javalib/time/LocalDateTest.scala | Github Open Source | Open Source | BSD-3-Clause | null | scala-js-java-time | ekrich | Scala | Code | 2,287 | 14,488 | package org.scalajs.testsuite.javalib.time
import java.time._
import java.time.chrono.{IsoEra, IsoChronology}
import java.time.format.DateTimeParseException
import java.time.temporal._
import org.junit.Test
import org.junit.Assert.assertEquals
import org.scalajs.testsuite.utils.AssertThrows.assertThrows
class LocalD... | 52,764 |
https://github.com/AlexKole113/netlify-gatsby-wp-test/blob/master/src/components/PostCollection/index.js | Github Open Source | Open Source | 0BSD | 2,021 | netlify-gatsby-wp-test | AlexKole113 | JavaScript | Code | 89 | 366 | import React from "react"
import {graphql , StaticQuery, Link} from "gatsby";
import './index.css'
export default class PostCollection extends React.Component {
constructor(props) {
super(props);
}
render() {
return (<StaticQuery query={graphql`{
allWordpress... | 21,579 |
https://github.com/Bionus/imgbrd-grabber/blob/master/src/lib/tests/src/mixed-settings-test.cpp | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-warranty-disclaimer | 2,023 | imgbrd-grabber | Bionus | C++ | Code | 250 | 1,245 | #include <QSettings>
#include "mixed-settings.h"
#include "catch.h"
TEST_CASE("MixedSettings")
{
auto child = new QSettings("tests/resources/tmp/child.ini", QSettings::IniFormat);
auto parent = new QSettings("tests/resources/tmp/parent.ini", QSettings::IniFormat);
child->clear();
parent->clear();
SECTION("Empt... | 29,493 |
https://github.com/M-Alzanati/BookStore/blob/master/src/BookStore.WebApp/src/app/shared/services/index.ts | Github Open Source | Open Source | MIT | null | BookStore | M-Alzanati | TypeScript | Code | 4 | 9 | export * from './shared.service'; | 4,101 |
https://github.com/syniavskyi/intranet_sap/blob/master/node_modules/vue-awesome/icons/caret-up.js | Github Open Source | Open Source | MIT | 2,020 | intranet_sap | syniavskyi | JavaScript | Code | 23 | 116 | import Icon from '../components/Icon.vue'
Icon.register({"caret-up":{"width":320,"height":512,"paths":[{"d":"M288.7 352H31.3C13.5 352 4.6 330.5 17.2 317.9L145.9 189.2C153.7 181.4 166.3 181.4 174.1 189.2L302.8 317.9C315.4 330.5 306.5 352 288.7 352z"}]}})
| 956 |
https://github.com/JaimeSalas/Master/blob/master/Ejercicio2/SRC/content/sass/ejercicio2/form.scss | Github Open Source | Open Source | MIT | 2,018 | Master | JaimeSalas | SCSS | Code | 96 | 334 |
@import "Tema1.scss";
div {
display: block;
line-height: 40px;
width: 120px;
margin: 2px;
padding: 10px;
padding-left: 20px;
height: 60px;
}
p {
padding-left: 2px;
}
.default_font_1 {
@include fDefault(1);
}
.default_font_2 {
@include fDefault(2);
}
.pFont_1 {
@include ... | 24,191 |
https://github.com/elitenomad/FairfaxCRM/blob/master/engines/contacts/app/models/samurai/contacts/contact.rb | Github Open Source | Open Source | MIT | 2,017 | FairfaxCRM | elitenomad | Ruby | Code | 14 | 57 | module Samurai::Contacts
class Contact < ApplicationRecord
belongs_to :samurai_user, class_name: 'Samurai::User', foreign_key: 'samurai_user_id'
end
end
| 7,010 |
https://github.com/rpcolom/forceps/blob/master/lib/forceps/client.rb | Github Open Source | Open Source | MIT | 2,016 | forceps | rpcolom | Ruby | Code | 361 | 1,771 | module Forceps
class Client
attr_reader :options
cattr_accessor :options_class
def configure(options={})
@options = options.merge(default_options)
Forceps::Client.options_class=@options
@model_classes=nil
@remote_classes_defined = nil
declare_remote_model_classes
mak... | 27,779 |
https://github.com/cppchriscpp/nerdy-nights-mirror/blob/master/scraper/pages/3/30.php | Github Open Source | Open Source | Unlicense | 2,021 | nerdy-nights-mirror | cppchriscpp | PHP | Code | 70 | 310 | <div class="mdl-card__title"><strong>ddribin</strong> posted on
Oct 21, 2009 at 12:23:07 AM
</div><div class="mdl-card__supporting-text">
This is definitely a difference between FCEUXDSP and Nestopia.  I compiled FCEUX on OS X, and it did not need the palette in... | 49,608 |
https://github.com/skychen1900/jsf-ddd/blob/master/src/main/java/ee/jsf/exceptionhandler/throwablehandler/DefaultThrowableHandler.java | Github Open Source | Open Source | Apache-2.0 | null | jsf-ddd | skychen1900 | Java | Code | 172 | 426 | /*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distr... | 26,914 |
https://github.com/Kiransukumaran/Mashup/blob/master/application/controllers/PeopleController.php | Github Open Source | Open Source | MIT, LicenseRef-scancode-unknown-license-reference | 2,018 | Mashup | Kiransukumaran | PHP | Code | 875 | 3,708 | <?php
defined('BASEPATH') OR exit('No direct script access allowed');
include(APPPATH.'libraries/wiky.inc.php');
include(APPPATH.'libraries/ContentExtractor.php');
class PeopleController extends CI_Controller {
/**
* Index Page for this controller.
*
* Maps to the following URL
* http://example.com/index.... | 17,234 |
https://github.com/psi-project/server/blob/master/app/models/data/TextFileDataReader.java | Github Open Source | Open Source | MIT | 2,013 | server | psi-project | Java | Code | 402 | 1,034 | /**
*
*/
package models.data;
import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import com.google.gson.JsonArray;
import com.google.gson.JsonElement;
import com.google.gson.JsonNull;
import com.google.gson.JsonPrimitive;
import models.data.... | 47,353 |
https://github.com/fancidev/YieldCurve/blob/master/WebDemo/extern/numericjs.d.ts | Github Open Source | Open Source | Apache-2.0 | null | YieldCurve | fancidev | TypeScript | Code | 198 | 587 | declare type vector = number[];
declare type matrix = number[][];
declare type int = number;
interface Numeric {
add(x: vector, y: vector): vector;
addeq(x: vector, y: number): vector;
addeq(x: vector, y: vector): vector;
clone(x: number): number;
clone(x: vector): vector;
clone(x: matrix):... | 14,548 |
https://github.com/P1erreGaultier/ProjetPOL3-HEARTHSTONE/blob/master/doc/html/search/classes_64.js | Github Open Source | Open Source | Unlicense | null | ProjetPOL3-HEARTHSTONE | P1erreGaultier | JavaScript | Code | 6 | 61 | var searchData=
[
['deck',['Deck',['../class_deck.html',1,'']]],
['demoniste',['Demoniste',['../class_demoniste.html',1,'']]]
];
| 29,129 |
https://github.com/VHAINNOVATIONS/Telepathology/blob/master/Source/M/KIDS_Components/RPC_MAGTP_CHANGE_CONS_STATUS.KID | Github Open Source | Open Source | Apache-2.0 | 2,015 | Telepathology | VHAINNOVATIONS | null | Spoken | 321 | 2,466 | KIDS Distribution saved on Aug 29, 2012@16:09:22
Telepathology MAG*3.0*0*TP
**KIDS**:MAG*3.0*0*TP_RPC*3201^
**INSTALL NAME**
MAG*3.0*0*TP_RPC*3201
"BLD",7717,0)
MAG*3.0*0*TP_RPC*3201^IMAGING^0^3120829^y
"BLD",7717,6.3)
1
"BLD",7717,"KRN",0)
^9.67PA^779.2^20
"BLD",7717,"KRN",.4,0)
.4
"BLD",7717,"KRN",.401,0)
.401
"BLD"... | 45,609 |
https://github.com/rails/rails/blob/master/activesupport/lib/active_support/deprecation/disallowed.rb | Github Open Source | Open Source | MIT, Ruby | 2,023 | rails | rails | Ruby | Code | 179 | 427 | # frozen_string_literal: true
module ActiveSupport
class Deprecation
module Disallowed
# Sets the criteria used to identify deprecation messages which should be
# disallowed. Can be an array containing strings, symbols, or regular
# expressions. (Symbols are treated as strings.) These are compa... | 38,312 |
https://github.com/robertvazan/pushmode/blob/master/src/main/java/com/machinezoo/pushmode/internal/diffing/RegisterIdPatch.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | pushmode | robertvazan | Java | Code | 33 | 124 | // Part of PushMode: https://pushmode.machinezoo.com
package com.machinezoo.pushmode.internal.diffing;
import com.machinezoo.pushmode.dom.*;
class RegisterIdPatch extends IdPatch {
private final DomElement element;
RegisterIdPatch(DomElement element) {
this.element = element;
}
@Override
void updateIdMap(Eleme... | 33,973 |
https://github.com/wongma7/eksctl/blob/master/pkg/cfn/builder/nodegroup_test.go | Github Open Source | Open Source | Apache-2.0 | 2,021 | eksctl | wongma7 | Go | Code | 2,612 | 15,266 | package builder_test
import (
"encoding/json"
"errors"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/service/ec2"
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
api "github.com/weaveworks/eksctl/pkg/apis/eksctl.io/v1alpha5"
"github.com/weaveworks/eksctl/pkg/cfn/builder"
"github.com/weavew... | 29,280 |
https://github.com/sujipo/console/blob/master/src/components/Clusters/ClusterWrapper/index.scss | Github Open Source | Open Source | AGPL-3.0-only | 2,023 | console | sujipo | SCSS | Code | 22 | 82 | @import '~scss/variables';
@import '~scss/mixins';
.tags {
:global {
.tag {
margin-right: 4px;
.icon {
margin-top: -2px;
margin-right: 2px;
}
}
}
}
| 20,842 |
https://github.com/Deepspeed/bodhibuildscripts/blob/master/oldscripts/buildscripts/packages/azybuild.sh | Github Open Source | Open Source | BSD-3-Clause | null | bodhibuildscripts | Deepspeed | Shell | Code | 34 | 232 | #!/bin/sh
cd /home/jeff/e17_src/azy && make distclean
./autogen.sh
cp -R /home/jeff/e17_src/azy /media/sda5/Bodhi/e17_debs/$1/azy-$1
cd /media/sda5/Bodhi/e17_debs/$1
tar czvf /media/sda5/Bodhi/e17_debs/$1/azy-$1.tar.gz azy-$1/
cd /media/sda5/Bodhi/e17_debs/$1/azy-$1
make distclean
dh_make -e jeffhoogland@linux.com -f... | 10,788 |
https://github.com/bicheng2008/batch/blob/master/spring-boot-log/src/main/java/com/leone/boot/log/app/entity/AppStartupLog.java | Github Open Source | Open Source | Apache-2.0 | 2,019 | batch | bicheng2008 | Java | Code | 209 | 622 | package com.leone.boot.log.app.entity;
/**
* <p>启动日志
*
* @author leone
* @since 2019-03-20
**/
public class AppStartupLog extends AppBaseLog {
// 国家,终端不用上报,服务器自动填充该属性
private String country;
// 省份,终端不用上报,服务器自动填充该属性
private String province;
// ip地址
private String ipAddress;
// 网络
... | 19,904 |
https://github.com/pointhi/sulong/blob/master/tests/com.oracle.truffle.llvm.tests.sulong/c/truffle-c/arrayTest/arrayTest14.c | Github Open Source | Open Source | BSD-3-Clause | 2,021 | sulong | pointhi | C | Code | 11 | 28 | int a[3];
int main() {
*a = 123;
return *a;
}
| 15,800 |
https://github.com/Zplutor/zaf/blob/master/src/zaf/graphic/brush/bitmap_brush.h | Github Open Source | Open Source | MIT | 2,023 | zaf | Zplutor | C++ | Code | 74 | 347 | #pragma once
#include <zaf/graphic/brush/brush.h>
#include <zaf/graphic/interpolation_mode.h>
#include <zaf/graphic/render_bitmap.h>
namespace zaf {
class BitmapBrush : public Brush {
public:
BitmapBrush() = default;
explicit BitmapBrush(COMPtr<ID2D1BitmapBrush> inner) :
Brush(inner),
inner_... | 1,407 |
https://github.com/rstarritt/robotics/blob/master/include/astra/capi/streams/colorized_body_capi.h | Github Open Source | Open Source | Apache-2.0 | null | robotics | rstarritt | C | Code | 186 | 801 | // This file is part of the Orbbec Astra SDK [https://orbbec3d.com]
// Copyright (c) 2015-2017 Orbbec 3D
//
// 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/licens... | 13,706 |
https://github.com/RubbaBoy/RITDriveFiller/blob/master/src/main/java/is/yarr/rdf/filler/strategies/FillStrategy.java | Github Open Source | Open Source | MIT | 2,021 | RITDriveFiller | RubbaBoy | Java | Code | 104 | 429 | package is.yarr.rdf.filler.strategies;
import is.yarr.rdf.RollingAverageManager;
import is.yarr.rdf.auth.GoogleServices;
import is.yarr.rdf.config.json.Config;
import is.yarr.rdf.config.json.UserData;
import is.yarr.rdf.filler.FileFiller;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.io.IOExcep... | 4,235 |
https://github.com/StevenTCramer/eShopOnWeb/blob/master/src/eShopOnBlazorWasm/Tests/Server.Integration.Tests/Features/CatalogItem/GetCatalogItem/GetCatalogItemEndpoint_Tests.cs | Github Open Source | Open Source | MIT, LicenseRef-scancode-unknown-license-reference, Unlicense | 2,020 | eShopOnWeb | StevenTCramer | C# | Code | 107 | 515 | namespace GetCatalogItemEndpoint
{
using FluentAssertions;
using Microsoft.AspNetCore.Mvc.Testing;
using System.Net;
using System.Net.Http;
using System.Text.Json;
using System.Threading.Tasks;
using eShopOnBlazorWasm.Features.CatalogItems;
using eShopOnBlazorWasm.Server.Integration.Tests.Infrastructur... | 55,105 |
https://github.com/tdurieux/smartbugs-wild/blob/master/contracts/0xa2e6461e7a109ae070b9b064ca9448b301404784.sol | Github Open Source | Open Source | Apache-2.0 | 2,022 | smartbugs-wild | tdurieux | Solidity | Code | 372 | 1,112 | pragma solidity ^0.4.25;
/*
* CryptoMiningWar - Build your own empire on Blockchain
* Author: InspiGames
* Website: https://cryptominingwar.github.io/
*/
interface MiniGameInterface {
function isContractMiniGame() external pure returns( bool _isContractMiniGame );
}
contract MemoryFactory {
address public admini... | 14,812 |
https://github.com/apache/sis/blob/master/endorsed/src/org.apache.sis.feature/main/org/apache/sis/coverage/grid/GridCoverageProcessor.java | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-unknown-license-reference, BSD-3-Clause, MIT, EPL-1.0, Classpath-exception-2.0, GPL-2.0-only, LicenseRef-scancode-public-domain | 2,023 | sis | apache | Java | Code | 5,057 | 11,256 | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | 18,385 |
https://github.com/alner/qdt-components/blob/master/src/components/QdtPicasso/QdtPicasso.jsx | Github Open Source | Open Source | MIT | 2,022 | qdt-components | alner | null | Spoken | 545 | 1,786 | import React, {
useCallback, useEffect, useRef, useState,
} from 'react';
import PropTypes from 'prop-types';
import picasso from 'picasso.js';
import picassoHammer from 'picasso-plugin-hammer';
import picassoQ from 'picasso-plugin-q';
import * as d3Ease from 'd3-ease';
import { timer } from 'd3-timer';
import { inte... | 3,317 |
https://github.com/CnCFPS/TF2Bot/blob/master/Atlantis/Atlantis/Linq/StringExtensions.cs | Github Open Source | Open Source | MIT | 2,014 | TF2Bot | CnCFPS | C# | Code | 165 | 501 | // -----------------------------------------------------------------------------
// <copyright file="StringExtensions.cs" company="Zack Loveless">
// Copyright (c) Zack Loveless. All rights reserved.
// </copyright>
// -----------------------------------------------------------------------------
namespace Atl... | 30,681 |
https://github.com/Po-Yu-Chang/Timesheet/blob/master/test/shopcart_orderSuccess.php | Github Open Source | Open Source | MIT | 2,020 | Timesheet | Po-Yu-Chang | PHP | Code | 278 | 1,771 | <?
session_start();
//將session變數cart,取消登記,網頁左方的觀看購物車按鈕會取消顯示
session_unregister("cart");
//將session變數order_group,取消登記,下次商品新加入購物車時會再登記,訂單才不會產生錯誤
session_unregister("order_group");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="htt... | 27,145 |
https://github.com/adarcy/MyMusic/blob/master/app/src/main/java/com/ixuea/courses/mymusic/util/MusicUtil.java | Github Open Source | Open Source | Apache-2.0 | null | MyMusic | adarcy | Java | Code | 93 | 300 | package com.ixuea.courses.mymusic.util;
import android.content.Context;
import android.database.Cursor;
import android.net.Uri;
import android.provider.MediaStore;
/**
* Created by smile on 2018/6/6.
*/
public class MusicUtil {
public static String getAlbumBanner(Context context,String album_id) {
Curs... | 39,684 |
https://github.com/marlontamo/webpos/blob/master/database/migrations/2017_06_17_144100_create_order_header.php | Github Open Source | Open Source | MIT | null | webpos | marlontamo | PHP | Code | 72 | 293 | <?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateOrderHeader extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('order_header', f... | 20,661 |
https://github.com/derUli/ulicms-klogger/blob/master/src/content/modules/klogger/katzgrau/klogger/src/Logger.php | Github Open Source | Open Source | MIT | 2,021 | ulicms-klogger | derUli | PHP | Code | 1,058 | 2,869 | <?php
namespace Katzgrau\KLogger;
use DateTime;
use RuntimeException;
use Psr\Log\AbstractLogger;
use Psr\Log\LogLevel;
/**
* Finally, a light, permissions-checking logging class.
*
* Originally written for use with wpSearch
*
* Usage:
* $log = new Katzgrau\KLogger\Logger('/var/log/', Psr\Log\LogLevel::INFO);
... | 43,481 |
https://github.com/x3193/ubt1404/blob/master/shell/cloud/x3193/shellinbox.sh | Github Open Source | Open Source | Apache-2.0 | 2,019 | ubt1404 | x3193 | Shell | Code | 12 | 54 | #!/bin/bash
echo "--------------------X3193 update------------------------"
sudo add-apt-repository ppa:malcscott/shellinabox
sudo apt-get update
echo "--------------------------------------------------------"
| 5,680 |
https://github.com/vazco/EthereumBridgeBackend/blob/master/src/controllers/cashback_stats.ts | Github Open Source | Open Source | MIT | 2,021 | EthereumBridgeBackend | vazco | TypeScript | Code | 222 | 667 | import { Request, Response } from "express";
import logger from "../util/logger";
import {
CashbackStat,
StatType,
CashbackStatDocument,
} from "../models/CashbackStats";
const MAX_RETRIES = 5;
export const getCashbackRate = async (req: Request, res: Response) => {
try {
const result = await CashbackStat.... | 3,793 |
https://github.com/efratro/ZAC_GM/blob/master/demo_vgg.m | Github Open Source | Open Source | MIT | 2,020 | ZAC_GM | efratro | MATLAB | Code | 208 | 893 | %% example of VGG dataset
datalist = {'graf';'bark';'bikes';'boat';'leuven';'trees';'ubc';'wall'};
graph_path = 'data\sift_graphs\';
data_id = 1;
dataname = datalist{data_id};
id1 = 1;
id2 = 3;
graph_mat = [graph_path dataname '_pair' num2str(id1) num2str(id2) '.mat'];
load(graph_mat);
XPoint = GRAPH.Xrest;
YPoint ... | 53,918 |
https://github.com/caoilte/cds-reimbursement-claim-frontend/blob/master/app/uk/gov/hmrc/cdsreimbursementclaimfrontend/models/answers/package.scala | Github Open Source | Open Source | Apache-2.0 | 2,021 | cds-reimbursement-claim-frontend | caoilte | Scala | Code | 174 | 481 | /*
* Copyright 2021 HM Revenue & Customs
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or a... | 11,487 |
https://github.com/Milaniadr/ukk/blob/master/admin/adminn/page/navbar.php | Github Open Source | Open Source | CC-BY-3.0 | null | ukk | Milaniadr | PHP | Code | 201 | 1,119 | <div class="sidebar-menu">
<header class="logo">
<a href="#" class="sidebar-icon"> <span class="fa fa-bars"></span> </a> <a href="index.php"> <span id="logo"> <h1>Traveler</h1></span>
<!--<img id="logo" src="" alt="Logo"/>-->
</a>
</header>
<div style="border-top:1px solid rgba(69, 74, 84, 0.7)"></div>
<!--/do... | 33,182 |
https://github.com/ibis-project/ibis/blob/master/ibis/backends/tests/base.py | Github Open Source | Open Source | Apache-2.0 | 2,023 | ibis | ibis-project | Python | Code | 768 | 2,873 | from __future__ import annotations
import abc
import concurrent.futures
import inspect
import subprocess
from pathlib import Path
from typing import TYPE_CHECKING, Any
import numpy as np
import pandas as pd
import pandas.testing as tm
import pytest
import toolz
from filelock import FileLock
if TYPE_CHECKING:
fro... | 54,496 |
https://github.com/Khalidahmed123/IRIS-RoR-Bootcamp-2020/blob/master/session_6/blogspot/app/views/articles/_article.json.jbuilder | Github Open Source | Open Source | MIT | 2,021 | IRIS-RoR-Bootcamp-2020 | Khalidahmed123 | Ruby | Code | 13 | 47 | json.extract! article, :id, :title, :tags, :topic, :content, :created_at, :updated_at
json.url article_url(article, format: :json)
| 23,028 |
https://github.com/cimplesid/plugins/blob/master/script/tool/lib/src/version_check_command.dart | Github Open Source | Open Source | BSD-3-Clause | 2,022 | plugins | cimplesid | Dart | Code | 724 | 2,087 | // Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:async';
import 'dart:io' as io;
import 'package:meta/meta.dart';
import 'package:file/file.dart';
import 'package:git/git.dart';
import 'pack... | 44,138 |
https://github.com/aytonb/dag-gp/blob/master/test/dag-gp-test.lisp | Github Open Source | Open Source | BSD-3-Clause | null | dag-gp | aytonb | Common Lisp | Code | 18 | 104 | (uiop:define-package #:dag-gp-test/dag-gp-test
(:nicknames #:dag-gp-test)
(:use #:cl
#:dag-gp-test/utils/all
#:dag-gp-test/explicit-dag/all)
(:export )
(:documentation "Package for exporting public symbols."))
(in-package #:dag-gp-test)
| 53,474 |
https://github.com/tcgdex/cards-database/blob/master/data/XY/XY/62.ts | Github Open Source | Open Source | MIT | 2,023 | cards-database | tcgdex | TypeScript | Code | 415 | 1,072 | import { Card } from '../../../interfaces'
import Set from '../XY'
const card: Card = {
name: {
en: "Rhyperior",
fr: "Rhinastoc",
es: "Rhyperior",
it: "Rhyperior",
pt: "Rhyperior",
de: "Rihornior"
},
illustrator: "Naoki Saito",
rarity: "Rare",
category: "Pokemon",
set: Set,
dexId: [
464,
],
hp:... | 44,134 |
https://github.com/dendisuhubdy/grokmachine/blob/master/Vault7/Lost-in-Translation/windows/Resources/DSky/Commands/Storage/trafficcapture_storage.xsl | Github Open Source | Open Source | BSD-3-Clause | 2,018 | grokmachine | dendisuhubdy | null | Spoken | 123 | 925 | <?xml version='1.1' ?>
<xsl:transform xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:import href="include/StorageFunctions.xsl"/>
<xsl:output method="xml" omit-xml-declaration="yes" />
<xsl:template match="/">
<xsl:element name="StorageNodes">
<xsl:apply-templates select="Filter"/>
... | 26,674 |
https://github.com/thiagobrun/URL-shortener/blob/master/backend/config/production.ts | Github Open Source | Open Source | MIT | null | URL-shortener | thiagobrun | TypeScript | Code | 8 | 30 | export default {
port: 4000,
dbUri:
"mongodb+srv://...",
}; | 43,574 |
https://github.com/randauto/cpp-solutions/blob/master/solutions/G83ngTwj.cpp | Github Open Source | Open Source | MIT | 2,021 | cpp-solutions | randauto | C++ | Code | 85 | 349 | /*
Sưu tầm bởi @nguyenvanhieuvn
Thực hành nhiều bài tập hơn tại https://luyencode.net/
*/
#include<stdio.h>
#include<conio.h>
struct MatHang
{
char TenMatHang[20];
long DonGia;
long SoLuongTon;
};
typedef struct MatHang MATHANG;
void NhapMatHang(MATHANG &mh)
{
fflush(stdin);
printf("Nhap ten ... | 48,846 |
https://github.com/liprec/powerbi-cli/blob/master/src/lib/output.spec.ts | Github Open Source | Open Source | MIT | 2,022 | powerbi-cli | liprec | TypeScript | Code | 497 | 2,028 | /*
* Copyright (c) 2020 Jan Pieter Posthuma / DataScenarios
*
* All rights reserved.
*
* MIT License.
*
* 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, includi... | 35,392 |
https://github.com/autotrafego/resolvaja/blob/master/platforms/browser/www/js/form-newservice.js | Github Open Source | Open Source | MIT | 2,018 | resolvaja | autotrafego | JavaScript | Code | 325 | 1,189 | $$(document).on('page:init','.page[data-name="form-newservice"]', function(e){
var page = e.detail;
console.log(page.name);
$("#tiposervice option:selected").each(function() {
var tiposervice = $(this).val();
console.log(tiposervice + 'select');
});
var... | 8,876 |
https://github.com/ReynoldsCahoon/tacticolor/blob/master/Strategy/Net/CommandList.cs | Github Open Source | Open Source | MIT | 2,012 | tacticolor | ReynoldsCahoon | C# | Code | 238 | 586 | using System;
using System.Collections.Generic;
namespace Strategy.Net
{
/// <summary>
/// Maintains a sorted list of commands. Commands are sorted first
/// chronologically and second by player in the case of conflicts.
/// </summary>
public class CommandList
{
/// <summary>
/... | 3,789 |
https://github.com/ravn/opslogger-sample-usage/blob/master/sample-library/src/main/java/uk/gov/gds/performance/collector/ClassThatLogs.java | Github Open Source | Open Source | Apache-2.0 | 2,015 | opslogger-sample-usage | ravn | Java | Code | 66 | 261 | package uk.gov.gds.performance.collector;
import com.equalexperts.logging.OpsLogger;
import javax.inject.Named;
import static uk.gov.gds.performance.collector.CollectorLogMessages.SUCCESS;
import static uk.gov.gds.performance.collector.CollectorLogMessages.UNKNOWN_ERROR;
public class ClassThatLogs {
private fin... | 30,849 |
https://github.com/crystalwwj/AndroidMalware/blob/master/Sample/Messenger Lite Free Calls Messages_v47.0.0.14.193_apkpure.com/smali/com/facebook/mlite/syncprotocol/az.smali | Github Open Source | Open Source | MIT | 2,021 | AndroidMalware | crystalwwj | Smali | Code | 4,879 | 31,023 | .class public final Lcom/facebook/mlite/syncprotocol/az;
.super Ljava/lang/Object;
.source ""
# direct methods
.method public static a(Lcom/facebook/mlite/syncprotocol/bp;ILjava/lang/String;Ljava/nio/ByteBuffer;Z)V
.locals 8
.prologue
.line 107991
const/4 v0, 0x0
if-eqz v0, :cond_0
.line 10... | 26,859 |
https://github.com/declic-info/FriendlyContexts/blob/master/src/Knp/FriendlyContexts/Faker/Provider/Payment.php | Github Open Source | Open Source | MIT | 2,021 | FriendlyContexts | declic-info | PHP | Code | 18 | 61 | <?php
namespace Knp\FriendlyContexts\Faker\Provider;
class Payment extends Base
{
public function supportsParent($parent)
{
return $parent instanceOf \Faker\Provider\Payment;
}
}
| 30,611 |
https://github.com/sanganeupane/Dimple-media-with-backend-crud-controller/blob/master/app/Models/Privacy/Privacy.php | Github Open Source | Open Source | MIT | 2,021 | Dimple-media-with-backend-crud-controller | sanganeupane | PHP | Code | 16 | 57 | <?php
namespace App\Models\Privacy;
use Illuminate\Database\Eloquent\Model;
class Privacy extends Model
{
protected $guarded='admin';
protected $fillable= ['description'];
}
| 5,204 |
https://github.com/vishalmishra090/covid-slayer/blob/master/client/src/contexts/UserContext.js | Github Open Source | Open Source | MIT | null | covid-slayer | vishalmishra090 | JavaScript | Code | 33 | 96 | import React from 'react'
import {useUserProvider} from '../hooks/user'
const UserContext = React.createContext();
export const UserProvider = ({children}) => {
let user = useUserProvider()
return(
<UserContext.Provider value={user}>
{children}
</UserContext.Provider>
)
}
ex... | 33,893 |
https://github.com/unknownv2/CoreHook.ProcessInjection/blob/master/Linux/Makefile | Github Open Source | Open Source | MIT | 2,021 | CoreHook.ProcessInjection | unknownv2 | Makefile | Code | 68 | 255 | CC = clang
CFLAGS = -std=gnu99 -ggdb
UNAME_M := $(shell uname -m)
.PHONY: x86_64 arm arm64
all:
ifeq ($(UNAME_M),x86_64)
$(MAKE) x86_64
endif
ifneq (,$(findstring arm,$(UNAME_M)))
$(MAKE) arm
endif
ifeq ($(UNAME_M),aarch64)
$(MAKE) arm64
endif
arm:
$(CC) -marm $(CFLAGS) -DARM -shared -o inject.so utils.c elf-par... | 22,999 |
https://github.com/khemiriridha/Multiple-connection-SF-3.4/blob/master/src/AppBundle/EventSubscriber/RequestListener.php | Github Open Source | Open Source | MIT | null | Multiple-connection-SF-3.4 | khemiriridha | PHP | Code | 68 | 321 | <?php
namespace AppBundle\EventSubscriber;
use Symfony\Component\HttpKernel\Event\FilterResponseEvent;
use Symfony\Component\HttpKernel\Event\GetResponseForControllerResultEvent;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Bundle\FrameworkBundle\Templating\En... | 33,063 |
https://github.com/maasg/ground/blob/master/modules/postgres/test/edu/berkeley/ground/postgres/dao/version/mock/TestPostgresItemDao.java | Github Open Source | Open Source | Apache-2.0 | 2,017 | ground | maasg | Java | Code | 89 | 421 | package edu.berkeley.ground.postgres.dao.version.mock;
import edu.berkeley.ground.common.exception.GroundException;
import edu.berkeley.ground.common.exception.GroundException.ExceptionType;
import edu.berkeley.ground.common.model.version.Item;
import edu.berkeley.ground.common.util.IdGenerator;
import edu.berkeley.gr... | 54,375 |
https://github.com/shareholdergame/shareholdergame-ui-old/blob/master/src/Game/EmptyTurn.jsx | Github Open Source | Open Source | MIT | 2,018 | shareholdergame-ui-old | shareholdergame | JavaScript | Code | 239 | 917 | import React from "react";
import { bool, number } from "prop-types";
import { BLUE, RED, YELLOW, GREEN } from "../Cards/CardColor";
import ShareCell from "./ShareCell";
const THICK_BORDER = "2px solid grey";
const EmptyTurn = ({
roundNumber,
turnIndex,
turnsPerRound,
lastRow = false,
firstEmptyRow = fals... | 50,162 |
https://github.com/Bryanjamiejaramiello0721/sourcegraph/blob/master/dev/zoekt-wrapper | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-warranty-disclaimer, LicenseRef-scancode-unknown-license-reference | 2,019 | sourcegraph | Bryanjamiejaramiello0721 | Shell | Code | 35 | 198 | #!/bin/bash
set -euf -o pipefail
# Sleep to allow frontend to start :'(
if [[ "$1" == "zoekt-sourcegraph-indexserver" ]]; then
sleep 5
fi
# Mirroring:
# - https://github.com/sourcegraph/infrastructure/blob/d67cfdaf7760b926df165745e40f7bd9507d1c20/docker-images/zoekt-indexserver/Dockerfile#L28-L35
# - https://git... | 6,102 |
https://github.com/Mino521/USStockQuantitativeInvestment/blob/master/ca-server/backend/src/main/java/ca/server/DTO/ArchiveContentDTO.java | Github Open Source | Open Source | MIT | null | USStockQuantitativeInvestment | Mino521 | Java | Code | 33 | 92 | package ca.server.DTO;
import lombok.Data;
import java.math.BigDecimal;
@Data
public class ArchiveContentDTO {
private Integer id;
private Integer cik;
private Integer year;
private BigDecimal earningsPerShare;
private String stateCountry;
private String office;
private String compa... | 236 |
https://github.com/benjamind/dwelling-led/blob/master/examples/move-vertical/move-vertical.ino | Github Open Source | Open Source | BSD-2-Clause | null | dwelling-led | benjamind | null | Spoken | 306 | 832 | #include <OctoWS2811.h>
#define RED 0xFF0000
#define GREEN 0x00FF00
#define BLUE 0x0000FF
#define YELLOW 0xFFFF00
#define PINK 0xFF1088
#define ORANGE 0xE05800
#define WHITE 0xFFFFFF
#define BLACK 0x000000
const int ledsPerStrip = 412;
const int shortVertical = 40;
const int longVertical = 100;
const int ... | 11,081 |
https://github.com/jimmyrianto/frappe/blob/master/node_modules/postcss-modules-sync/lib/index.js | Github Open Source | Open Source | MIT | 2,020 | frappe | jimmyrianto | JavaScript | Code | 147 | 546 | 'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _Parser = require('./Parser');
var _Parser2 = _interopRequireDefault(_Parser);
var _scopeGenerator = require('./scopeGenerator');
var _scopeGenerator2 = _interopRequireDefault(_scopeGenerator);
var _postcssModulesLocalByDefault = r... | 22,578 |
https://github.com/beqom/alto/blob/master/src/alto-ui/Icons/ImportFile.js | Github Open Source | Open Source | MIT | 2,020 | alto | beqom | JavaScript | Code | 87 | 616 | import React from 'react';
import PropTypes from 'prop-types';
import Icon from './Icon';
const ImportFileOutline = props => (
<g>
<path
{...props}
d="M28,4H14.87L8,10.86V15h2V13.61h7.61V6H28V30H8a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V6A2,2,0,0,0,28,4ZM16,12H10v-.32L15.7,6H16Z"
/>
<path
{...pr... | 13,357 |
https://github.com/andrea-acampora/Alchemist/blob/master/alchemist-implementationbase/src/main/kotlin/it/unibo/alchemist/model/implementations/layers/BidimensionalGaussianLayer.kt | Github Open Source | Open Source | CC-BY-3.0 | 2,022 | Alchemist | andrea-acampora | Kotlin | Code | 159 | 394 | /*
* Copyright (C) 2010-2019, Danilo Pianini and contributors listed in the main project's alchemist/build.gradle file.
*
* This file is part of Alchemist, and is distributed under the terms of the
* GNU General Public License, with a linking exception,
* as described in the file LICENSE in the Alchemist distribut... | 39,587 |
https://github.com/ErikBoesen/apper/blob/master/.gitignore | Github Open Source | Open Source | MIT | 2,018 | apper | ErikBoesen | Ignore List | Code | 4 | 17 | *.app
.DS_Store
*.swp
*.icns
| 42,350 |
https://github.com/parrot-studio/cc-pt-viewer/blob/master/app/javascript/bundles/ccpts/model/PartyRepositroy.ts | Github Open Source | Open Source | MIT | 2,019 | cc-pt-viewer | parrot-studio | TypeScript | Code | 262 | 849 | import * as _ from "lodash"
import Party from "./Party"
import MessageStream from "../lib/MessageStream"
import Cookie from "../lib/Cookie"
export interface PartyLog {
code: string,
comment: string
}
export default class PartyRepositroy {
public static init(ps: PartyLog[], code: string): void {
PartyReposi... | 53,381 |
https://github.com/yifengyou/learn-pagure/blob/master/src/pagure/hooks/mail.py | Github Open Source | Open Source | Unlicense | null | learn-pagure | yifengyou | Python | Code | 370 | 1,315 | # -*- coding: utf-8 -*-
"""
(c) 2014-2016 - Copyright Red Hat Inc
Authors:
Pierre-Yves Chibon <pingou@pingoured.fr>
"""
from __future__ import unicode_literals, absolute_import
import sqlalchemy as sa
import os
import pygit2
import subprocess
import wtforms
try:
from flask_wtf import FlaskForm
except Imp... | 29,530 |
https://github.com/facybenbook/UnityZelda/blob/master/Assets/Extensions/Tiled2Unity/Imported/map test.tiled2unity.xml.meta | Github Open Source | Open Source | MIT | 2,018 | UnityZelda | facybenbook | Unity3D Asset | Code | 12 | 66 | fileFormatVersion: 2
guid: 24eebc94d0023754e97ad8e7e46fae45
timeCreated: 1492756450
licenseType: Free
TextScriptImporter:
userData:
assetBundleName:
assetBundleVariant:
| 9,823 |
https://github.com/CSSZiegler/RestServices/blob/master/RestServices/upgrade_actions_3.2.properties | Github Open Source | Open Source | MIT | 2,013 | RestServices | CSSZiegler | null | Spoken | 10 | 50 | #
#Mon Aug 19 15:34:05 IST 2013
upgraded_splashimage=true
upgraded_android_onscreen_key=true
upgraded_updatedsplashimage=true
| 17,717 |
https://github.com/nielsmaerten/gluco-check/blob/master/gluco-check-core/test/specs/main/clients/NightscoutClient.spec.ts | Github Open Source | Open Source | MIT | 2,022 | gluco-check | nielsmaerten | TypeScript | Code | 277 | 1,249 | import User from '../../../../src/types/User';
import AxiosMock from '../../../stubs/AxiosMockAdapter';
import {DmMetric} from '../../../../src/types/DmMetric';
import NightscoutProps from '../../../../src/types/NightscoutProps';
import NightscoutClient from '../../../../src/main/clients/nightscout/NightscoutClient';
i... | 46,967 |
https://github.com/asjadnaqvi/Austria-COVID-19-Tracker/blob/master/dofiles/05_AT_maps_BZ_v5.do | Github Open Source | Open Source | MIT | 2,021 | Austria-COVID-19-Tracker | asjadnaqvi | null | Spoken | 853 | 2,898 | clear
*net install tsg_schemes, from("https://raw.githubusercontent.com/asjadnaqvi/Stata-schemes/main/schemes/") replace
set scheme white_tableau
graph set window fontface "Arial Narrow"
cap cd "D:/Programs/Dropbox/Dropbox/PROJECT COVID AT"
cd GIS/
*spshape2dta STATISTIK_AUSTRIA_POLBEZ_20200101Polygon, replace sa... | 16,449 |
https://github.com/uk-gov-mirror/hmrc.claim-tax-refund-frontend/blob/master/test/forms/DetailsOfEmploymentOrPensionFormSpec.scala | Github Open Source | Open Source | Apache-2.0 | 2,018 | hmrc.claim-tax-refund-frontend | uk-gov-mirror | Scala | Code | 197 | 484 | /*
* Copyright 2021 HM Revenue & Customs
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or a... | 25,525 |
https://github.com/augustofabianrodrigues/anime-op/blob/master/base-app/src/js/models/MediaCharacter.js | Github Open Source | Open Source | MIT | null | anime-op | augustofabianrodrigues | JavaScript | Code | 31 | 118 | define(['backbone', 'models/Character'], function (Backbone, Character) {
var MediaCharacter = Backbone.RelationalModel.extend({
defaults: {
type: 'mediaCharacters',
},
relations: [
{
type: Backbone.HasOne,
key: 'character',
relatedModel: Character,
},
],
}... | 34,978 |
https://github.com/arvind-india/UCD-Research-Practicum-WiFi-Occupancy-Platform/blob/master/.gitignore | Github Open Source | Open Source | MIT | 2,016 | UCD-Research-Practicum-WiFi-Occupancy-Platform | arvind-india | Ignore List | Code | 49 | 151 | # IntelliJ project files
.idea
*.iml
out
gen
# Eclipse project files
.project
.pydevproject
.settings
# pycache and python compiled
__pychache__
*.pyc
*/*.pyc
# virtual environments
research-practicum
venv-research-practicum3
static/css
node_modules
config
bower_components
config.zip
# virtual environments
tripod-... | 40,094 |
https://github.com/ljcservice/autumn/blob/master/src/main/java/com/hitzd/his/Web/Taglibs/Plugs/GraphTagUtil.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | autumn | ljcservice | Java | Code | 197 | 986 | package com.hitzd.his.Web.Taglibs.Plugs;
import java.util.ArrayList;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
public class GraphTagUtil
{
public static String getMapValue(Map<String, String> value)
{
StringBuffer sb = new StringBuffer();
if(value.size() == 0)
{
return "... | 18,504 |
https://github.com/manatran/personal-website/blob/master/src/components/Footer/index.js | Github Open Source | Open Source | MIT | 2,019 | personal-website | manatran | JavaScript | Code | 39 | 106 | import React, { Component } from "react";
import Logo from "../../assets/logo.svg";
import "./index.css";
class Footer extends Component {
render() {
return (
<footer>
Manaus Transez
<img alt="Personal logo" src={Logo} />
{new Date().getFullYear()}
</footer>
);
}
}
expo... | 29,496 |
https://github.com/wuhuikx/mkl-dnn-bk/blob/master/cmake/tests/benchdnn/Makefile | Github Open Source | Open Source | Apache-2.0 | null | mkl-dnn-bk | wuhuikx | Makefile | Code | 2,891 | 14,578 | # CMAKE generated file: DO NOT EDIT!
# Generated by "Unix Makefiles" Generator, CMake Version 3.5
# Default target executed when no arguments are given to make.
default_target: all
.PHONY : default_target
# Allow only one "make -f Makefile2" at a time, but pass parallelism.
.NOTPARALLEL:
#=========================... | 45,748 |
https://github.com/iliutastoica/ekaaa/blob/master/src/templates/note-post.js | Github Open Source | Open Source | MIT | 2,019 | ekaaa | iliutastoica | JavaScript | Code | 171 | 607 | import React from 'react'
import { graphql } from 'gatsby'
import { Layout, SEO } from '../layouts'
import {
BlogSingleWrapper,
BlogSingleAfterPost,
} from '../components/BlogSingle'
import BioCard from '../components/BioCard'
import PostContent from '../components/PostContent'
class NotePostTemplate extends R... | 25,203 |
https://github.com/MayerRoman/Lagerta/blob/master/core/src/test/java/org/apache/ignite/load/subscriber/LeadLoadTestConfiguration.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | Lagerta | MayerRoman | Java | Code | 337 | 1,436 | /*
* Copyright (c) 2017. EPAM Systems
*
* 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 t... | 28,917 |
https://github.com/flibbertigibbet/climate-change-components/blob/master/src/lib/modules/api/api.module.ts | Github Open Source | Open Source | Apache-2.0 | 2,019 | climate-change-components | flibbertigibbet | TypeScript | Code | 105 | 320 | import { ModuleWithProviders, NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { API_HOST, API_HTTP, ApiConfig } from './config';
import { APICacheService } from './services/api-cache.service';
import { ChartService } from './services/chart.service';
import { DatasetService } fr... | 14,540 |
https://github.com/behcpl/Unity-MvpToolkit/blob/master/Runtime/MiniTween/ITween.cs | Github Open Source | Open Source | MIT | 2,021 | Unity-MvpToolkit | behcpl | C# | Code | 32 | 100 | using System;
using UnityEngine;
namespace Behc.MiniTween
{
public interface ITween
{
void Kill();
void Complete();
void SetCurrentTime(float time);
void SetId(string id);
void SetUpdateCallback(Action onUpdate);
void SetCompleteCallback(Action onComplete);
... | 19,691 |
https://github.com/ddrmax/swiftshader-ex/blob/master/third_party/LLVM/test/CodeGen/CBackend/2003-10-28-CastToPtrToStruct.ll | Github Open Source | Open Source | NCSA, Apache-2.0, LicenseRef-scancode-unknown-license-reference | 2,018 | swiftshader-ex | ddrmax | LLVM | Code | 56 | 162 | ; RUN: llc < %s -march=c
; reduced from DOOM.
%union._XEvent = type { i32 }
@.X_event_9 = global %union._XEvent zeroinitializer ; <%union._XEvent*> [#uses=1]
define void @I_InitGraphics() {
shortcirc_next.3:
%tmp.319 = load i32* getelementptr ({ i32, i32 }* bitcast (%union._XEvent* @.X_eve... | 3,327 |
https://github.com/Hexess/TenSquare/blob/master/pages/manager/myquestion.vue | Github Open Source | Open Source | MIT | 2,019 | TenSquare | Hexess | Vue | Code | 138 | 500 | <template>
<div class="questions">
<h4><span>My Questions</span></h4>
<ul class="question-list">
<li> <span class="fl good"> <span class="num">8</span> Like</span> <span class="title"><a href="#">Why is processing a sorted array faster than processing an unsorted array?</a></span> <span class=... | 931 |
https://github.com/geogy24/portfolio/blob/master/src/main/java/com/portfolio/controllers/ProfileController.java | Github Open Source | Open Source | MIT | null | portfolio | geogy24 | Java | Code | 226 | 712 | package com.portfolio.controllers;
import com.portfolio.exceptions.ProfileIdMismatchException;
import com.portfolio.exceptions.ProfileNotFoundException;
import com.portfolio.models.Profile;
import com.portfolio.repositories.ProfileRepository;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.Ap... | 49,287 |
https://github.com/bestform/chameleon-shop-theme-bundle/blob/master/Resources/public/snippets/common/textBlock/textBlockStandardWithLinkList.less | Github Open Source | Open Source | MIT, CC-BY-3.0, BSD-3-Clause | 2,018 | chameleon-shop-theme-bundle | bestform | Less | Code | 25 | 108 | .snippetTextBlockStandardWithLinkList {
.linkList {
@media (max-width: @screen-xs-max) {
margin-left:-10px;
}
margin-top: 20px;
div.link {
margin-bottom: 20px;
@media (max-width: @screen-xs-max) {
margin-left:10px;
}
... | 33,569 |
https://github.com/inz/indenica-runtime-core/blob/master/src/main/java/eu/indenica/integration/AdaptationInterface.java | Github Open Source | Open Source | Apache-2.0 | 2,015 | indenica-runtime-core | inz | Java | Code | 27 | 90 | /**
*
*/
package eu.indenica.integration;
import org.osoa.sca.annotations.Remotable;
import eu.indenica.adaptation.Action;
/**
* @author Christian Inzinger
*
*/
@Remotable
public interface AdaptationInterface {
void performAction(Action action);
void registerCallback();
}
| 49,323 |
https://github.com/SavinaRoja/challenges/blob/master/Project_Euler/11-20/PE_18.py | Github Open Source | Open Source | Unlicense | 2,016 | challenges | SavinaRoja | Python | Code | 450 | 853 | #Problem 18 from Project Euler
#Solution by Paul Barton
#
#The problem presents us with a triangle, which I represent as a list of lists
#in the code the below. Though this problem *may* be brute forced, I would like
#to do this problem elegantly the first time through, as it is merely a scaled
#down version of one whi... | 10,284 |
https://github.com/nahudalla/chat-wedevelop-training/blob/master/src/models/index.js | Github Open Source | Open Source | MIT | null | chat-wedevelop-training | nahudalla | JavaScript | Code | 93 | 308 | import fs from 'fs'
import path from 'path'
import Sequelize from 'sequelize'
const env = process.env.NODE_ENV || 'development'
const configPath = path.join(__dirname, '/../config/config.js')
const config = require(configPath)[env]
const db = {}
let sequelize
if (config.use_env_variable) {
sequelize = new Sequeliz... | 53,031 |
https://github.com/chylex/TweetDuck/blob/master/windows/TweetDuck/Browser/TrayIcon.cs | Github Open Source | Open Source | MIT | 2,023 | TweetDuck | chylex | C# | Code | 322 | 1,241 | using System;
using System.ComponentModel;
using System.Windows.Forms;
using TweetDuck.Configuration;
using TweetLib.Core.Systems.Configuration;
using Res = TweetDuck.Properties.Resources;
namespace TweetDuck.Browser {
sealed partial class TrayIcon : Component {
public enum Behavior { // keep order
Disabled,
... | 31,231 |
https://github.com/ancilcrayton/solve-iwmi/blob/master/web/src/nivo/website/src/pages/bubble/api.js | Github Open Source | Open Source | MIT, LicenseRef-scancode-unknown-license-reference | 2,020 | solve-iwmi | ancilcrayton | JavaScript | Code | 170 | 521 | /*
* This file is part of the nivo project.
*
* Copyright 2016-present, Raphaël Benitte.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
import React from 'react'
import { generateLibTree } from '@nivo/generators'
import SEO from '... | 18,554 |
https://github.com/kubernetes-sigs/cli-utils/blob/master/pkg/object/dependson/types.go | Github Open Source | Open Source | Apache-2.0 | 2,023 | cli-utils | kubernetes-sigs | Go | Code | 63 | 168 | // Copyright 2021 The Kubernetes Authors.
// SPDX-License-Identifier: Apache-2.0
//
package dependson
import (
"sigs.k8s.io/cli-utils/pkg/object"
)
// DependencySet is a set of object references.
// When testing equality, order is not importent.
type DependencySet object.ObjMetadataSet
// Equal returns true if the... | 27,829 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.