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/fork-ecosystem/fork-ui/blob/master/icons/BrandFoursquare.js | Github Open Source | Open Source | MIT | null | fork-ui | fork-ecosystem | JavaScript | Code | 67 | 249 | import React from 'react';
import withIconEnhancer from '../HOCs/withIconEnhancer';
export default withIconEnhancer('BrandFoursquare', 'brand-foursquare', (props) => (
<svg {...props} xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
<path stroke="none" d="M0 0h24v24H0z" fill="none"/>
<path d="M7 3h10c.644 0... | 23,873 |
https://github.com/gre/shaderday.com/blob/master/components/LiveFooter.js | Github Open Source | Open Source | MIT | 2,021 | shaderday.com | gre | JavaScript | Code | 86 | 309 | import React from "react";
export function LiveFooter({ Day }) {
return (
<div>
<style jsx>{`
a {
color: inherit;
text-decoration: underline;
}
p {
padding-bottom: 20px;
}
.nft {
position: absolute;
color: #f60;
... | 1,115 |
https://github.com/federatedbookkeeping/world-ledger/blob/master/src/parsers/timecamp-CSV.php | Github Open Source | Open Source | MIT | null | world-ledger | federatedbookkeeping | PHP | Code | 68 | 220 | <?php
declare(strict_types=1);
function parseTimecampCSV($str)
{
$ret = [];
$lines = explode("\n", $str);
if ($lines[0] !== "Name,Hours with subtasks,Hours without subtasks") {
throw new Error("Unexpected headers line in timecamp-CSV file!");
}
for ($i = 1; $i < count($lines); $i++) {
... | 21,587 |
https://github.com/shippify/kue-ui/blob/master/app/components/jobs-actions/template.hbs | Github Open Source | Open Source | MIT | 2,019 | kue-ui | shippify | null | Spoken | 45 | 178 | <div class="job-detail">
<div class="title">
{{selectedJobs.length}} Jobs Selected
</div>
<div class="layout-column layout-align-center-center">
{{#if (gt selectedJobs.length 0)}}
{{#paper-button raised=true onClick=(action 'updateSelected' 'failed')}} Cancel Selected Jobs {{/paper-but... | 45,311 |
https://github.com/DefLeoo/Aula-IA-Python/blob/master/untimaaula.py | Github Open Source | Open Source | MIT | null | Aula-IA-Python | DefLeoo | Python | Code | 43 | 193 | import pandas as pd
import matplotlib.pyplot as plt
#importacao de arquivo (nome, encoding para Brail, separador, lenguaguem)
arquivo = pd.read_csv('IES_2011.csv', encoding='ISO-8859-1',sep=';', engine='python')
ies = arquivo.iloc[:, 9]
mroies = ies.value_counts()
print(mroies)
mroies2 = pd.Series(mroies.inde,index=m... | 28,982 |
https://github.com/SOHELAHMED7/yii2-oauth2-server/blob/master/tests/unit/migrations/InsertOpenIdConnectScopesMigrationTest.php | Github Open Source | Open Source | Apache-2.0 | 2,022 | yii2-oauth2-server | SOHELAHMED7 | PHP | Code | 93 | 502 | <?php
namespace Yii2Oauth2ServerTests\unit\migrations;
use rhertogh\Yii2Oauth2Server\migrations\Oauth2_00001_CreateOauth2TablesMigration;
use rhertogh\Yii2Oauth2Server\migrations\Oauth2_00002_InsertOpenIdConnectScopesMigration;
use rhertogh\Yii2Oauth2Server\Oauth2Module;
use Yii2Oauth2ServerTests\unit\migrations\_bas... | 30,990 |
https://github.com/druuu/dbox/blob/master/dockit/tests.py | Github Open Source | Open Source | MIT | 2,021 | dbox | druuu | Python | Code | 2,876 | 15,449 | import json
import os
import requests
import time
from django.test import TestCase, Client
from django.core.urlresolvers import reverse
from dockit.views import stream_host_stats
from dockit.models import User, IP, Image, Container
class TestIndexView(TestCase):
def setUp(self):
self.client = Client()
... | 10,888 |
https://github.com/voidframework/void-libs/blob/master/src/Locrian/Collections/Iterator/MapIterator.php | Github Open Source | Open Source | MIT | null | void-libs | voidframework | PHP | Code | 302 | 769 | <?php
/**
* * * * * * * * * * * * * * * * * * * *
* Locrian Framework *
* * * * * * * * * * * * * * * * * * * *
* *
* Author : Özgür Senekci *
* *
* Skype : socialinf ... | 12,744 |
https://github.com/deatough/electron-fhl/blob/master/addon/data_from_host.h | Github Open Source | Open Source | CC0-1.0 | null | electron-fhl | deatough | C | Code | 32 | 66 | #include <node_api.h>
/**
* Method that will be exposed to electron and provides the ability to get a
* string value from the native C++ code
*/
napi_value GetDataFromHost(napi_env env, napi_callback_info info);
| 2,421 |
https://github.com/sanoylab/Full-Stack-Dev-Challenge/blob/master/asp_net_core5_mvc/Online.Classified.App/obj/Release/net5.0/win-x86/Razor/Views/Home/_RecentClassified.cshtml.g.cs | Github Open Source | Open Source | MIT | 2,021 | Full-Stack-Dev-Challenge | sanoylab | C# | Code | 341 | 2,120 | #pragma checksum "C:\Users\exper\Desktop\Dev\Full Stack Dev Challenge\Working\asp_net_core5\Online.Classified.App\Views\Home\_RecentClassified.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "436822d03eb70d7b62936f50ef8fb7bd34ad3b3d"
// <auto-generated/>
#pragma warning disable 1591
[assembly: global::Microsoft.AspNet... | 12,751 |
https://github.com/iansantana00/Python-Course/blob/master/Pratice.py | Github Open Source | Open Source | MIT | 2,022 | Python-Course | iansantana00 | Python | Code | 28 | 83 |
aeiou = ['a', 'e', 'i', 'o', 'u']
for letra in aeiou:
print(letra)
print([letra for letra in aeiou])
numeros = [1, 2, 3, 4, 5]
print(max(numeros, key=lambda numero: numero))
| 45,100 |
https://github.com/irish5100/outdated1/blob/master/commands/info/irish.js | Github Open Source | Open Source | MIT | null | outdated1 | irish5100 | JavaScript | Code | 80 | 266 | const Discord = require("discord.js");
const { MessageEmbed } = require("discord.js");
const { Color } = require("../../config.js");
module.exports = {
name: "irish",
aliases: [],
description: "Gives details about leader Irish!",
usage: "irish",
run: async (client, message, args) => {
//Start
c... | 1,481 |
https://github.com/money461/MyLawyer/blob/master/Android/shop520/app/src/main/java/com/tianzhi/shop520/ui/fragment/ShoppingCartFragment.java | Github Open Source | Open Source | Apache-2.0 | null | MyLawyer | money461 | Java | Code | 1,628 | 8,388 | package com.tianzhi.shop520.ui.fragment;
/**
* Created by thinkpad on 2017/10/25.
* 购物车tab
*/
import android.app.AlertDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup... | 46,356 |
https://github.com/skmatik/piot-home/blob/master/LcdMenu.h | Github Open Source | Open Source | Apache-2.0 | null | piot-home | skmatik | C | Code | 63 | 256 | //
// Created by martin.maliska on 9/11/2019.
//
#ifndef HOMEPI_LCDMENU_H
#define HOMEPI_LCDMENU_H
#include <vector>
#include <string>
#include "3party/lcd/i2cControl.hpp"
#include "3party/lcd/lcdDriver.hpp"
#include "LcdMenuItem.h"
#define lcdAdd 0x3f
using namespace std;
class LcdMenu {
private:
vector<LcdMen... | 38,413 |
https://github.com/shivamjindal/covid-help/blob/master/app/src/App.js | Github Open Source | Open Source | MIT | 2,020 | covid-help | shivamjindal | JavaScript | Code | 60 | 167 | import React from 'react';
import AllAppRoutes from './AllAppRoutes'
import { makeStyles } from '@material-ui/core/styles';
import { BrowserRouter as Router } from 'react-router-dom';
const useStyles = makeStyles(theme => ({
root: {
minHeight: '100vh',
flexGrow: 1,
},
}));
const App = () => {
const cla... | 25,807 |
https://github.com/meseta/jamcraft/blob/master/scripts/scr_inv_new_item/scr_inv_new_item.yy | Github Open Source | Open Source | CC0-1.0, MIT | 2,020 | jamcraft | meseta | null | Spoken | 14 | 91 | {
"id": "0a53d232-372b-45b0-bdc7-b41b46f3dd76",
"modelName": "GMScript",
"mvc": "1.0",
"name": "scr_inv_new_item",
"IsCompatibility": false,
"IsDnD": false
} | 5,770 |
https://github.com/SuAdrenine/BuDeJie/blob/master/BuDeJie/BuDeJie/Class/Other/Controller/XBYAdVertisementViewController.h | Github Open Source | Open Source | Apache-2.0 | null | BuDeJie | SuAdrenine | C | Code | 28 | 91 | //
// XBYAdVertisementViewController.h
// BuDeJie
//
// Created by xby on 2017/7/4.
// Copyright © 2017年 xby. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface XBYAdVertisementViewController : UIViewController
@end
| 14,219 |
https://github.com/thaliaamiraa/04_praktikum_web_lanjut_dua/blob/master/resources/views/layouts/master.blade.php | Github Open Source | Open Source | MIT | null | 04_praktikum_web_lanjut_dua | thaliaamiraa | PHP | Code | 238 | 1,165 | <!DOCTYPE html>
<!--[if lt IE 7]><html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]><html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]><html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<title>@yield('t... | 6,662 |
https://github.com/raminrahimzada/SQLEngine/blob/master/SQLEngine/Delete/IDeleteQueryBuilder.cs | Github Open Source | Open Source | Apache-2.0 | null | SQLEngine | raminrahimzada | C# | Code | 25 | 95 | namespace SQLEngine
{
public interface IDeleteQueryBuilder : IAbstractQueryBuilder
{
IDeleteExceptTableNameQueryBuilder Table(string tableName,string schemaName=null);
IDeleteExceptTableNameQueryBuilder Table<TTable>() where TTable : ITable, new();
IDeleteExceptTopQueryBuilder Top(int? ... | 29,257 |
https://github.com/ysden123/poc/blob/master/pkafka/kafka/scala/pkafka/build.sbt | Github Open Source | Open Source | MIT | 2,021 | poc | ysden123 | Scala | Code | 96 | 424 | import sbt.Keys.libraryDependencies
lazy val scalaLoggingVersion = "3.5.0"
lazy val loggingVersion="2.7"
lazy val kafkaVersion="1.0.0"
lazy val commonSettings = Seq(
organization := "com.stulsoft.pkafka",
version := "2.0.0",
scalaVersion := "2.12.4",
scalacOptions ++= Seq(
"-feature",
"-language:impli... | 27,625 |
https://github.com/will-crawford/HackerRank/blob/master/Tutorials/30 Days of Code/30-regex-patterns.java | Github Open Source | Open Source | MIT | null | HackerRank | will-crawford | Java | Code | 94 | 243 | import java.io.*;
import java.util.*;
import java.text.*;
import java.math.*;
import java.util.regex.*;
public class Solution {
public static void main(String[] args) {
Pattern pattern = Pattern.compile( ".*@gmail\\.com" );
Scanner in = new Scanner(System.in);
int N = in.nextInt();
... | 22,810 |
https://github.com/andresribeiro/tetris/blob/master/src/render/Screens/Config/CustomTheme.js | Github Open Source | Open Source | MIT | null | tetris | andresribeiro | JavaScript | Code | 340 | 1,257 | import { themes, saveCustomTheme } from "../../Data.js"
import FiguresViewer from "./figuresViewer.js"
import { figures } from "../../Figures.js"
import { ConfigScreenBase } from "../Screen.js"
import { screens } from "../../ScreenManager.js"
export default class CustomThemeConfigScreen extends ConfigScreenBase {
... | 22,533 |
https://github.com/xX-Void-Xx/Void-Engine/blob/master/scene/entities/CanvasEntity.cpp | Github Open Source | Open Source | MIT | null | Void-Engine | xX-Void-Xx | C++ | Code | 231 | 865 | #include "CanvasEntity.h"
#include "Engine/debug/Logger.h"
namespace VEngine
{
CanvasEntity::CanvasEntity()
{
}
CanvasEntity::~CanvasEntity()
{
for (auto& drawable : drawables)
{
delete drawable.second->drawable;
delete drawable.second;
}
}
void CanvasEntity::start()
{
}
void CanvasEntity::... | 18,781 |
https://github.com/xbynet/proj-base-ssh/blob/master/src/main/java/net/xby1993/common/webmagic/downloader/MaoyanTest.java | Github Open Source | Open Source | Apache-2.0 | null | proj-base-ssh | xbynet | Java | Code | 201 | 1,305 | package net.xby1993.common.webmagic.downloader;
import java.io.File;
import java.io.IOException;
import java.util.List;
import java.util.UUID;
import org.apache.commons.io.FileUtils;
import org.openqa.selenium.By;
import org.openqa.selenium.Dimension;
import org.openqa.selenium.OutputType;
import org.openqa.selenium.... | 31,241 |
https://github.com/CamiArtWeb/camiartweb.github.io/blob/master/app/styles/_mosaic.scss | Github Open Source | Open Source | Apache-2.0 | null | camiartweb.github.io | CamiArtWeb | SCSS | Code | 122 | 501 | .mosaic{
margin:1rem 0;
display: flex;
flex-wrap:wrap;
color:white;
.image {
position: static;
img{
height: auto;
width:auto;
min-height: 100%;
min-width: 100%;
margin-left: 50%;
position: absolute;
top:0;left:0;
transform: translate3d(-50%,0,0);
o... | 22,440 |
https://github.com/CorvusEtiam/MiniPixel/blob/master/deps/zigwin32/win32/system/hypervisor.zig | Github Open Source | Open Source | MIT | 2,022 | MiniPixel | CorvusEtiam | null | Spoken | 4,358 | 20,474 | //! NOTE: this file is autogenerated, DO NOT MODIFY
//--------------------------------------------------------------------------------
// Section: Constants (2)
//--------------------------------------------------------------------------------
pub const WHV_PROCESSOR_FEATURES_BANKS_COUNT = @as(u32, 2);
pub const WHV_HY... | 13,517 |
https://github.com/jorgeemir29/terraform-vsphere-vm3nic/blob/master/output.tf | Github Open Source | Open Source | MIT | 2,022 | terraform-vsphere-vm3nic | jorgeemir29 | HCL | Code | 73 | 328 | output "DC_ID" {
description = "id of vSphere Datacenter"
value = "${data.vsphere_datacenter.dc.id}"
}
output "ResPool_ID" {
description = "Resource Pool id"
value = "${data.vsphere_resource_pool.pool.id}"
}
output "vm_name" {
description = "VMs names deployed from all reources"
value = ["${vsphere_virtual_... | 26,402 |
https://github.com/oknozor/cocha/blob/master/tests/cog_tests/mod.rs | Github Open Source | Open Source | MIT | 2,022 | cocha | oknozor | Rust | Code | 12 | 27 | mod bump;
mod changelog;
mod check;
mod commit;
mod init;
mod verify;
| 3,387 |
https://github.com/stmoerman/scopeweb-v2/blob/master/user/themes/scopeweb/templates/partials/base.html.twig | Github Open Source | Open Source | MIT | null | scopeweb-v2 | stmoerman | Twig | Code | 742 | 3,264 | {% set theme_config = attribute(config.themes, config.system.pages.theme) %}
<!DOCTYPE html>
<html lang="{{ grav.language.getActive ?: theme_config.default_lang }}">
<head>
{% block head %}
<meta charset="utf-8" />
<title>{% if header.title %}{{ header.title|e('html') }} | {% endif %}{{ site.title|e('html') }}<... | 10,821 |
https://github.com/NickHurn/stratis/blob/master/src/AppBundle/Resources/views/interview/candidate.html.twig | Github Open Source | Open Source | MIT | null | stratis | NickHurn | Twig | Code | 180 | 634 | {% extends 'base2.html.twig' %}
{% block body %}
<div class="col-md-6 offset-md-3 mt-2">
<div class="col-xs-12">
<div class="title job">
<h2 style='font-size:28px'>Interview Status - {{jobtitle}}</h2>
</div>
<div style='clear: both'></div>
<div class='ivstatus' style='margin-top:40px'><span>Current Status... | 39,179 |
https://github.com/armanbilge/st-dom/blob/master/src/main/scala/dom/std/Path2D.scala | Github Open Source | Open Source | MIT | null | st-dom | armanbilge | Scala | Code | 101 | 231 | package dom.std
import org.scalablytyped.runtime.StObject
import scala.scalajs.js
import scala.scalajs.js.`|`
import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess}
/** This Canvas 2D API interface is used to declare a path that can then be used on a CanvasRenderingContext2D o... | 30,143 |
https://github.com/kardasz/code-samples/blob/master/tests/Service/Map/ObjectDetails/Visitor/WorkStartTest.php | Github Open Source | Open Source | MIT | 2,019 | code-samples | kardasz | PHP | Code | 137 | 459 | <?php
/**
* Code Samples.
*
* @author Krzysztof Kardasz <krzysztof@kardasz.eu>
* @license MIT
*/
namespace Kardasz\Tests\Service\Map\ObjectDetails\Visitor;
use DateTime;
use Exception;
use Kardasz\DTO\MapObjectDetailsDTO;
use Kardasz\Service\Map\ObjectDetails\Visitor\Workstart;
use PHPUnit\Framework\TestCase;
/*... | 36,982 |
https://github.com/lypcore/Blade.Admin/blob/master/src/Blade.Util/AOP/Abstraction/BaseAOPAttribute.cs | Github Open Source | Open Source | MIT | 2,021 | Blade.Admin | lypcore | C# | Code | 44 | 162 | using System;
using System.Threading.Tasks;
namespace Blade.Util
{
/// <summary>
/// AOP基类
/// 注:不支持控制器,需要定义接口并实现接口,自定义AOP特性放到接口实现类上
/// </summary>
public abstract class BaseAOPAttribute : Attribute
{
public virtual async Task Befor(IAOPContext context)
{
await Task... | 46,919 |
https://github.com/NamWoo/cloisim/blob/master/Assets/Scripts/Tools/SDF/Parser/SDF.ShapeType.cs | Github Open Source | Open Source | Apache-2.0, MIT | null | cloisim | NamWoo | C# | Code | 117 | 290 | /*
* Copyright (c) 2020 LG Electronics Inc.
*
* SPDX-License-Identifier: MIT
*/
namespace SDF
{
public class ShapeType
{
}
public class Box : ShapeType
{
public Vector3<double> size = new Vector3<double>();
}
public class Cylinder : ShapeType
{
public double radius;
public double length;
}
// <h... | 10,400 |
https://github.com/FREEWING-JP/32feet/blob/master/InTheHand.Net.Personal/Net.Bluetooth.BlueZ/NativeMethods.cs | Github Open Source | Open Source | MIT | 2,022 | 32feet | FREEWING-JP | C# | Code | 2,319 | 6,948 | // 32feet.NET - Personal Area Networking for .NET
//
// InTheHand.Net.Bluetooth.BlueZ.NativeMethods
//
// Copyright (c) 2008-2010 In The Hand Ltd, All rights reserved.
// Copyright (c) 2010 Alan J. McFarlane, All rights reserved.
// This source code is licensed under the MIT License
using uint8_t = System.Byte;
usin... | 31,233 |
https://github.com/alldaysunshine/sling-org-apache-sling-app-cms/blob/master/core/src/main/java/org/apache/sling/cms/core/readability/impl/ReadabilityServiceImpl.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | sling-org-apache-sling-app-cms | alldaysunshine | Java | Code | 737 | 2,270 | /*
* 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 ... | 15,254 |
https://github.com/jasont01/portfolio/blob/master/src/style/abstracts/_variables.scss | Github Open Source | Open Source | MIT | null | portfolio | jasont01 | SCSS | Code | 22 | 112 | // BACKGROUND COLORS
$primary-color: #141E30;
$secondary-color: #243B55;
$white-color: cornsilk;
$black-color: #1b1b1b;
$highlight-color: #bada55;
// FONT SIZE
$default-font-size: 1.6rem;
$big-font-size: 4rem;
$mid-font-size: 2.5rem;
| 29,935 |
https://github.com/mcaCloud/websocketsMQTT/blob/master/app/Http/Requests/UserRequest.php | Github Open Source | Open Source | MIT | 2,021 | websocketsMQTT | mcaCloud | PHP | Code | 126 | 408 | <?php
namespace App\Http\Requests;
use App\User;
use Illuminate\Foundation\Http\FormRequest;
class UserRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
if ($this->isMethod('patch')) ... | 23,144 |
https://github.com/acanales92/Python-API-Challenge/blob/master/Solution/api_keys.py | Github Open Source | Open Source | ADSL | null | Python-API-Challenge | acanales92 | Python | Code | 7 | 36 | # OpenWeatherMap API Key
api_key = "9f47e495713e79f40dcf331c6b90a28a"
| 5,706 |
https://github.com/Eric-Arellano/rust/blob/master/src/test/ui/associated-consts/associated-const-public-impl.rs | Github Open Source | Open Source | ECL-2.0, Apache-2.0, MIT-0, MIT | 2,022 | rust | Eric-Arellano | Rust | Code | 32 | 87 | // run-pass
mod bar1 {
pub use self::bar2::Foo;
mod bar2 {
pub struct Foo;
impl Foo {
pub const ID: i32 = 1;
}
}
}
fn main() {
assert_eq!(1, bar1::Foo::ID);
}
| 25,021 |
https://github.com/kongseokhwan/kulcloud-elk-sflow-logstash/blob/master/ruby-2.1.5/ext/tk/sample/demos-jp/anilabel.rb | Github Open Source | Open Source | MIT | null | kulcloud-elk-sflow-logstash | kongseokhwan | Ruby | Code | 383 | 2,768 | # -*- coding: utf-8 -*-
#
# animated label widget demo (called by 'widget')
#
# based on Tcl/Tk8.5a2 widget demos
# toplevel widget が存在すれば削除する
if defined?($anilabel_demo) && $anilabel_demo
$anilabel_demo.destroy
$anilabel_demo = nil
end
# demo 用の toplevel widget を生成
$anilabel_demo = TkToplevel.new {|w|
title("A... | 40,967 |
https://github.com/redbill/bld/blob/master/framework/src/main/groovy/org/moqui/impl/context/renderer/MarkdownTemplateRenderer.groovy | Github Open Source | Open Source | CC0-1.0 | null | bld | redbill | Groovy | Code | 313 | 931 | /*
* This software is in the public domain under CC0 1.0 Universal plus a
* Grant of Patent License.
*
* To the extent possible under law, the author(s) have dedicated all
* copyright and related and neighboring rights to this software to the
* public domain worldwide. This software is distributed without any
... | 11,568 |
https://github.com/Damnjan998/danceClub/blob/master/public/js/blog.js | Github Open Source | Open Source | MIT | null | danceClub | Damnjan998 | JavaScript | Code | 268 | 1,009 | $(document).ready(function () {
loadBlog();
var blog;
var pagNumber = 0;
var katId = 0;
function displayBlog() {
var ispis = "";
for (let b of blog) {
ispis += writeBlog(b);
}
document.getElementById("blogLevo").innerHTML = ispis;
}
function writ... | 14,950 |
https://github.com/lgibso34/search-ui/blob/master/unitTests/ui/RelevanceInspector/ExecutionReportRankingModifiersTest.ts | Github Open Source | Open Source | Apache-2.0 | 2,022 | search-ui | lgibso34 | TypeScript | Code | 259 | 871 | import { ExecutionReportRankingModifiers } from '../../../src/ui/RelevanceInspector/ExecutionReportRankingModifiers';
import { IQueryResult } from '../../../src/rest/QueryResult';
import { IRankingExpression } from '../../../src/rest/RankingExpression';
import { IMockEnvironment, MockEnvironmentBuilder } from '../../Mo... | 14,190 |
https://github.com/Adbnemesis/Clone-IT/blob/master/Dribble Clone/src/sass/abstracts/_mixins.scss | Github Open Source | Open Source | MIT | null | Clone-IT | Adbnemesis | SCSS | Code | 107 | 313 | @mixin clearfix {
&::after {
content: "";
clear: both;
display: table;
}
};
// Mediaquery manager
//0-600px Phone
//600-1060px Tablet Portrait
//1060px-1200px Tablet Landscape
//1200-1800px where our normal styles applied
//1800px Big desktop
/* $breakpoint argument choices
- phone
- ... | 18,233 |
https://github.com/grasshopper7/extentreports-cucumberjson-plugin/blob/master/extentreports-cucumberjson-plugin/src/main/java/tech/grasshopper/test/heirarchy/ExtentTestHeirarchy.java | Github Open Source | Open Source | MIT | null | extentreports-cucumberjson-plugin | grasshopper7 | Java | Code | 529 | 2,780 | package tech.grasshopper.test.heirarchy;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
import javax.inject.Inject;
import com.aventstack.extentreports.ExtentReports;
import com.aventstack.extentreports.E... | 31,251 |
https://github.com/plumdog/mythtv_client/blob/master/wsdl/scrape_wsdl.py | Github Open Source | Open Source | MIT | null | mythtv_client | plumdog | Python | Code | 165 | 754 | #!/usr/bin/env python
import argparse
from xml.dom import minidom
TYPE_MAPPING = {
'xs:int': 'VInt',
'xs:long': 'VInt',
'xs:boolean': 'VBool',
'xs:string': 'VString',
'xs:unsignedInt': 'VUnsignedInt',
'xs:dateTime': 'VDateTime',
'xs:time': 'VTime',
}
UNKNOWN = 'V???'
def element_to_kwa... | 31,235 |
https://github.com/abumufti/shariainvestor/blob/master/models/DepositForm.php | Github Open Source | Open Source | BSD-3-Clause | null | shariainvestor | abumufti | PHP | Code | 184 | 709 | <?php
namespace app\models;
use yii\base\Model;
use Yii;
class DepositForm extends Model
{
/**
* @var UploadedFile
*/
public $date;
public $status;
public $amount;
public function rules()
{
return [
['date', 'required', 'message' => 'Please fill Date.'],
... | 19,671 |
https://github.com/hwalde/hx3-forum/blob/master/gensrc/ForumPrefixSetAlias.php | Github Open Source | Open Source | BSD-3-Clause | 2,019 | hx3-forum | hwalde | PHP | Code | 191 | 564 | <?php
/**
* This file is part of HX3 Forum.
*
* (c) Herbert "Atomic" Walde <herbert.walde@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace generated;
use POOQ\TableAlias;
use POOQ\ColumnField;
use POOQ\ColumnFi... | 24,079 |
https://github.com/gradle/perf-native-large/blob/master/project752/src/testComponent910/headers/testComponent910/lib8.h | Github Open Source | Open Source | Apache-2.0 | 2,016 | perf-native-large | gradle | C | Code | 9 | 61 | #ifndef PROJECT_HEADER_testComponent910_8_H
#define PROJECT_HEADER_testComponent910_8_H
int testComponent910_8();
#endif // PROJECT_HEADER_testComponent910_8_H | 44,317 |
https://github.com/FernandoLpz/SHAP-Classification-Regression/blob/master/src/preprocess.py | Github Open Source | Open Source | MIT | 2,021 | SHAP-Classification-Regression | FernandoLpz | Python | Code | 88 | 363 | import pandas as pd
from sklearn.model_selection import train_test_split
class Data:
def __init__(self, csv_path: str) -> None:
self.csv_path = csv_path
self.data = pd.read_csv(self.csv_path)
self._transform()
self._split()
pass
def _transform(self) -> None:
... | 22,370 |
https://github.com/TopDogger1/corrosion/blob/master/net/java/games/input/RawMouseEvent.java | Github Open Source | Open Source | Unlicense | null | corrosion | TopDogger1 | Java | Code | 15 | 37 | public class RawMouseEvent {
// Failed to decompile, took too long to decompile: net/java/games/input/RawMouseEvent
} | 11,119 |
https://github.com/wilsonwu/learnmark/blob/master/Learnmark.Website.LearnmarkCorp/zzListPage.aspx | Github Open Source | Open Source | MIT | null | learnmark | wilsonwu | null | Spoken | 351 | 2,603 | <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="zzListPage.aspx.cs" Inherits="Learnmark.Website.LearnmarkCorp.ListPage" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="serve... | 32,788 |
https://github.com/swt2-intro-exercise/rails-exercise-18-MaximilianKoenig/blob/master/spec/features/author/authors_index_page_spec.rb | Github Open Source | Open Source | MIT | null | rails-exercise-18-MaximilianKoenig | swt2-intro-exercise | Ruby | Code | 61 | 166 | require 'rails_helper'
describe "Authors index page", type: :feature do
before(:each) do
@author = FactoryBot.create :author
visit authors_path
end
it "should have a link to add new authors and list all authors with their names and homepages and the link to their detail page" do
expe... | 37,345 |
https://github.com/kbabiy/LogCast/blob/master/LogCast/Rendering/IDetailsFormatter.cs | Github Open Source | Open Source | MIT | 2,021 | LogCast | kbabiy | C# | Code | 46 | 157 | using System;
using JetBrains.Annotations;
namespace LogCast.Rendering
{
[UsedImplicitly(ImplicitUseTargetFlags.Members)]
public interface IDetailsFormatter
{
string FormatStandaloneMessage(LogMessage message);
string FormatContextMessage(LogMessage message, TimeSpan timeElapsed, string br... | 10,285 |
https://github.com/TorbenHaug/swagger-compare/blob/master/swagger-compare/swagger-compare-core/src/main/java/de/haug_dev/swagger_compare/swagger_compare_core/examples/ExampleCompareHolder.java | Github Open Source | Open Source | MIT | null | swagger-compare | TorbenHaug | Java | Code | 102 | 497 | package de.haug_dev.swagger_compare.swagger_compare_core.examples;
import de.haug_dev.swagger_compare.swagger_compare_core.AbstractCompareHolder;
import de.haug_dev.swagger_compare.swagger_compare_datatypes.CompareCriticalType;
import de.haug_dev.swagger_compare.swagger_compare_datatypes.ICompareResult;
import de.haug... | 18,720 |
https://github.com/algope/social-api/blob/master/tasks/register/default.js | Github Open Source | Open Source | MIT | null | social-api | algope | JavaScript | Code | 10 | 35 | module.exports = function (grunt) {
grunt.registerTask('default', ['compileAssets', 'linkAssets', 'watch']);
};
| 5,610 |
https://github.com/LinjianMa/ctf/blob/master/src/symmetry/symmetrization.h | Github Open Source | Open Source | BSD-2-Clause | 2,022 | ctf | LinjianMa | C | Code | 624 | 1,527 | #ifndef __INT_SYMMETRIZATION_H__
#define __INT_SYMMETRIZATION_H__
#include <assert.h>
#include "../tensor/untyped_tensor.h"
#include "../summation/summation.h"
#include "../contraction/contraction.h"
namespace CTF_int {
/**
* \brief unfolds the data of a tensor
* \param[in] sym_tsr starting symmetric tensor (... | 35,952 |
https://github.com/GeorgeKirev/OpenOLAT/blob/master/src/main/webapp/static/themes/light/modules/_portfoliomaps/_mixins.scss | Github Open Source | Open Source | Apache-2.0 | 2,022 | OpenOLAT | GeorgeKirev | SCSS | Code | 36 | 195 | @mixin epmst-map($bg1,$bg2,$bordercolor) {
background: $bg1;
background: $bg1 -webkit-gradient(linear, 37% 20%, 53% 100%, from($bg1), to($bg2));
background: $bg1 -moz-linear-gradient(43% 71% 101deg,$bg2,$bg1);
background: $bg1 -o-linear-gradient($bg1, $bg2);
filter: progid:DXImageTransform.Microsoft.gradient(start... | 25,539 |
https://github.com/SunnyValleyStudio/Top-Down-2D-Tank-Game-Tutorial/blob/master/Scripts/DestroyUtil.cs | Github Open Source | Open Source | MIT | 2,021 | Top-Down-2D-Tank-Game-Tutorial | SunnyValleyStudio | C# | Code | 19 | 59 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class DestroyUtil : MonoBehaviour
{
public void DestroyHelper()
{
Destroy(gameObject);
}
}
| 24,829 |
https://github.com/isalazarciudad/EmbryoMaker/blob/master/EmbryoMaker_and_NetworkMaker_v1.0/src/net/gdk.f90 | Github Open Source | Open Source | MIT | 2,021 | EmbryoMaker | isalazarciudad | null | Spoken | 20,000 | 68,562 | ! Automatically generated by cfwrapper.py on Mon Nov 11 14:43:19 2013 ! Please do not modify. ! This file is part of the gtk-fortran GTK+ Fortran Interface library. ! GNU General Public License version 3 module gdk implicit none interface ! GType gdk_drawable_get_type (void) G_GNUC_CONST; function gdk_drawable_get_type... | 21,261 |
https://github.com/voyage-h/seeker/blob/master/resources/views/user/profile.blade.php | Github Open Source | Open Source | MIT | null | seeker | voyage-h | PHP | Code | 111 | 612 | <div class="card" id="answers">
<div class="card-header">动态</div>
<div class="card-body">
<ul class="list-group list-group-flush">
@foreach(App\Notification::where('data->user->id',$user->id)->get() as $note)
@php $data = $note->data; @endphp
... | 10,898 |
https://github.com/gdarquie/mc3/blob/master/src/Entity/Statistic.php | Github Open Source | Open Source | MIT | null | mc3 | gdarquie | PHP | Code | 172 | 567 | <?php
namespace App\Entity;
use App\Entity\Heredity\AbstractTarget;
use App\Repository\StatisticRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=StatisticRepository::class)
*/
class Statistic extends AbstractTarget
{
/**
* @ORM\Column(type="string", length=255)
*/
pr... | 40,297 |
https://github.com/psaf01/MyTagPocket/blob/master/MyTagPocket.UWP/Views/MainPage.xaml.cs | Github Open Source | Open Source | MIT | 2,019 | MyTagPocket | psaf01 | C# | Code | 115 | 450 | using MyTagPocket.CoreUtil.Interfaces;
using MyTagPocket.UWP.Library.CoreUtil;
using MyTagPocket.UWP.Library.ViewModel.App;
using MyTagPocket.UWP.Library.Views.App;
using Prism;
using Prism.Events;
using Prism.Ioc;
using System;
namespace MyTagPocket.UWP
{
public sealed partial class MainPage
{
public MainPa... | 22,707 |
https://github.com/kyletanyag/LL-Smartcard/blob/master/cacreader/swig-4.0.2/Examples/test-suite/ocaml/constover_runme.ml | Github Open Source | Open Source | BSD-3-Clause | 2,022 | LL-Smartcard | kyletanyag | OCaml | Code | 73 | 190 | open Swig
open Constover
let test_str = "test" to string
let _ =
assert ((_test (test_str) as string) = "test");
assert ((_test_pconst (test_str) as string) = "test_pconst");
;;
let f = new_Foo '()
let _ =
assert ((f -> "test" (test_str) as string) = "test");
assert ((f -> "test_pconst" (test_str) as string) ... | 9,132 |
https://github.com/rakeshrajwar/cidadedemocratica/blob/master/lib/tasks/travis.rake | Github Open Source | Open Source | MIT | 2,018 | cidadedemocratica | rakeshrajwar | Ruby | Code | 25 | 89 | unless %w(production staging).include? Rails.env
namespace :spec do
desc 'Runs non browser tests'
RSpec::Core::RakeTask.new(:travis) do |t|
t.pattern = Dir["spec/**/*_spec.rb"].reject { |f| f['/features'] }
end
end
end
| 7,782 |
https://github.com/Areloch/T3DCleanHistory/blob/master/Templates/BaseGame/game/tools/VerveEditor/Scripts/Groups/VGroup.cs | Github Open Source | Open Source | MIT | 2,022 | T3DCleanHistory | Areloch | C# | Code | 845 | 2,754 | //-----------------------------------------------------------------------------
// Verve
// Copyright (C) - Violent Tulip
//-----------------------------------------------------------------------------
new ScriptObject( VGroupPropertyList )
{
SuperClass = "VEditorPropertyList";
Parent = "VObjectPrope... | 15,451 |
https://github.com/somakeit/hms2/blob/master/resources/js/components/Tools/ToolGrantModal.vue | Github Open Source | Open Source | MIT | 2,022 | hms2 | somakeit | Vue | Code | 184 | 796 | <template>
<div class="vue-remove">
<button type="button" class="btn btn-primary" :class="{ 'btn-sm mb-1': small, 'btn-block': block}" @click="showModal"><i class="fas fa-plus" :class="{ 'fa-lg': !small }" aria-hidden="true"></i> Appoint {{ grantTypeString }}</button>
<!-- Modal -->
<div ref="selectModal... | 28,187 |
https://github.com/JarethRader/cv2-alerting-with-mp4s-jpegs/blob/master/create_gmail_file.py | Github Open Source | Open Source | MIT | null | cv2-alerting-with-mp4s-jpegs | JarethRader | Python | Code | 912 | 1,820 | """
create_gmail_file.py: Original work Copyright (C) 2021 by Blewett
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, including without limitation the rights
to... | 24,044 |
https://github.com/aoli-al/HFuse/blob/master/include/ThreadInfoRewriter.h | Github Open Source | Open Source | MIT | 2,022 | HFuse | aoli-al | C | Code | 122 | 542 | #ifndef SMART_FUSER_THREADINFOREWRITER_H
#define SMART_FUSER_THREADINFOREWRITER_H
#include <clang/ASTMatchers/ASTMatchFinder.h>
#include <clang/Rewrite/Core/Rewriter.h>
#include <clang/Tooling/Core/Replacement.h>
#include <clang/Tooling/Execution.h>
#include <string>
#include <vector>
#include "KernelFusion.h"
using ... | 29,311 |
https://github.com/simonkey/pimcore-dynamic-search/blob/master/src/DynamicSearchBundle/Service/LockServiceInterface.php | Github Open Source | Open Source | RSA-MD | 2,022 | pimcore-dynamic-search | simonkey | PHP | Code | 78 | 210 | <?php
namespace DynamicSearchBundle\Service;
interface LockServiceInterface
{
const CONTEXT_INDEXING = 'context_indexing';
const QUEUE_INDEXING = 'queue_indexing';
/**
* @param string $token
*
* @return bool
*/
public function isLocked(string $token);
/**
* @param strin... | 35,951 |
https://github.com/ForEvolve/ForEvolve-Framework/blob/master/test/ForEvolve.AspNetCore.Tests/Services/DefaultEmailSenderServiceTest.cs | Github Open Source | Open Source | MIT | 2,021 | ForEvolve-Framework | ForEvolve | C# | Code | 160 | 631 | using Moq;
using System;
using System.Collections.Generic;
using System.IO;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
using Xunit;
namespace ForEvolve.AspNetCore.Services
{
public class DefaultEmailSenderServiceTest
{
private readonly DefaultEmailSenderService _senderUn... | 19,895 |
https://github.com/achirkin/fasttensor/blob/master/easytensor/src/Numeric/PrimBytes.hs | Github Open Source | Open Source | BSD-3-Clause | 2,022 | fasttensor | achirkin | Haskell | Code | 11,945 | 26,682 | {-# LANGUAGE AllowAmbiguousTypes #-}
{-# LANGUAGE CPP #-}
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DefaultSignatures #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE... | 4,322 |
https://github.com/Griffan/FASTQuick/blob/master/misc/vcf/VcfGenotypeFormat.cpp | Github Open Source | Open Source | MIT | 2,021 | FASTQuick | Griffan | C++ | Code | 311 | 838 | /*
* Copyright (C) 2012 Regents of the University of Michigan
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later v... | 41,268 |
https://github.com/web-effect/modx-effect-shop/blob/master/src/frontend/catalog.js | Github Open Source | Open Source | BSD-3-Clause | null | modx-effect-shop | web-effect | JavaScript | Code | 446 | 1,601 | const DEV = !!(process.env.NODE_ENV === 'development'),
appNodes = document.querySelectorAll('.shop-catalog-app, .vue-shop-catalog') || [],
catalogEl = document.querySelector('.shop-catalog-items'),
dataEl = document.querySelector('.shop-catalog-data'),
filtersDataEl = document.querySelector('[d... | 17,205 |
https://github.com/Githubxinwei/mapi/blob/master/console/migrations/m180118_023245_add_member_base.php | Github Open Source | Open Source | BSD-3-Clause | null | mapi | Githubxinwei | PHP | Code | 57 | 220 | <?php
use yii\db\Migration;
/**
* Class m180118_023245_add_member_base
*/
class m180118_023245_add_member_base extends Migration
{
public function up()
{
$this->addColumn('{{%member_base}}','member_account_id',"bigint(20) COMMENT '账号ID'");
}
public function down()
{
$this->drop... | 41,740 |
https://github.com/canhnt/hippo-repo-xacml/blob/master/hippo-repository-3.1.x-xacml/workflow/src/test/java/org/onehippo/repository/documentworkflow/integration/DocumentWorkflowEditTest.java | Github Open Source | Open Source | Apache-2.0 | null | hippo-repo-xacml | canhnt | Java | Code | 206 | 666 | /*
* Copyright 2014 Hippo B.V. (http://www.onehippo.com)
*
* 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... | 44,876 |
https://github.com/trannamit/ntshop1/blob/master/app/Http/Requests/News/NewsRequest.php | Github Open Source | Open Source | MIT | 2,021 | ntshop1 | trannamit | PHP | Code | 96 | 239 | <?php
namespace App\Http\Requests\News;
use Illuminate\Foundation\Http\FormRequest;
class NewsRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return false;
}
/**
* Get... | 37,547 |
https://github.com/dandycheung/CatchUp/blob/master/services/reddit/src/main/kotlin/io/sweers/catchup/service/reddit/model/RedditObjectFactory.kt | Github Open Source | Open Source | Apache-2.0 | 2,022 | CatchUp | dandycheung | Kotlin | Code | 349 | 1,001 | /*
* Copyright (C) 2019. Zac Sweers
*
* 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... | 2,319 |
https://github.com/hato-project/hato/blob/master/src/server/common/mod.rs | Github Open Source | Open Source | Apache-2.0 | 2,021 | hato | hato-project | Rust | Code | 12 | 44 | use crate::db::DbExecutor;
use actix_web::actix::Addr;
pub struct AppState {
pub db: Addr<DbExecutor>,
}
| 20,367 |
https://github.com/MeLikeChoco/YuGiOhBot/blob/master/YuGiOhScraper/Parsers/YuGiPedia/CardParser.cs | Github Open Source | Open Source | MIT | 2,021 | YuGiOhBot | MeLikeChoco | C# | Code | 1,222 | 4,142 | using AngleSharp;
using AngleSharp.Dom;
using Newtonsoft.Json.Linq;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using YuGiOhScraper.Entities;
using YuGiOhScraper.Extens... | 15,829 |
https://github.com/NotExpectedYet/ErsatzTV/blob/master/ErsatzTV.Application/MediaCards/TelevisionSeasonCardViewModel.cs | Github Open Source | Open Source | Zlib | null | ErsatzTV | NotExpectedYet | C# | Code | 34 | 128 | using ErsatzTV.Core.Domain;
namespace ErsatzTV.Application.MediaCards;
public record TelevisionSeasonCardViewModel
(
string ShowTitle,
int TelevisionSeasonId,
int TelevisionSeasonNumber,
string Title,
string Subtitle,
string SortTitle,
string Poster,
string Placeholder,
MediaItemS... | 11,312 |
https://github.com/hexadez/code2doc/blob/master/code2doc-core/src/main/java/de/jcup/code2doc/core/Factory.java | Github Open Source | Open Source | Apache-2.0 | 2,019 | code2doc | hexadez | Java | Code | 332 | 842 | /*
* 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 ... | 8,328 |
https://github.com/TiagoFilippi/srcdemo2/blob/master/lib/any/jlibs/src/jlibs/core/graph/sequences/ArraySequence.java | Github Open Source | Open Source | BSD-2-Clause | 2,021 | srcdemo2 | TiagoFilippi | Java | Code | 235 | 553 | /**
* JLibs: Common Utilities for Java
* Copyright (C) 2009 Santhosh Kumar T <santhosh.tekuri@gmail.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of ... | 12,770 |
https://github.com/phizch/terrafx.interop.windows/blob/master/sources/Interop/Windows/um/WebServices/WS_MESSAGE_PROPERTY_ID.cs | Github Open Source | Open Source | MIT | 2,022 | terrafx.interop.windows | phizch | C# | Code | 118 | 503 | // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information.
// Ported from um/WebServices.h in the Windows SDK for Windows 10.0.20348.0
// Original source is Copyright © Microsoft. All rights reserved.
namespace TerraFX.Interop
{
... | 25,351 |
https://github.com/arthuralee/graphql-tools/blob/master/packages/import/tests/schema/fixtures/multiple-directories-with-master-schema/3/index.graphql | Github Open Source | Open Source | MIT | 2,020 | graphql-tools | arthuralee | null | Spoken | 15 | 41 | # import * from './3.model.graphql'
# import * from './3.query.graphql'
# import * from './3.mutation.graphql'
| 5,610 |
https://github.com/Olivier-LAAS/SMART/blob/master/src/router/daemon.cpp | Github Open Source | Open Source | Apache-2.0 | 2,018 | SMART | Olivier-LAAS | C++ | Code | 498 | 1,905 | /****************************************************************************
* Self MAnaged Routing overlay v1 - GPL v3 *
* *
* This file is part of SMART (Self MAnaged Routing overlay) ... | 7,733 |
https://github.com/RyanSkraba/tcommon-studio-se/blob/master/main/plugins/org.talend.repository.metadata/src/main/java/org/talend/repository/ui/wizards/metadata/table/database/DatabaseTableWizardPage.java | Github Open Source | Open Source | Apache-2.0 | null | tcommon-studio-se | RyanSkraba | Java | Code | 368 | 1,336 | // ============================================================================
//
// Copyright (C) 2006-2016 Talend Inc. - www.talend.com
//
// This source code is available under agreement available at
// %InstallDIR%\features\org.talend.rcp.branding.%PRODUCTNAME%\%PRODUCTNAME%license.txt
//
// You should have receiv... | 6,698 |
https://github.com/adams85/aspnetskeleton2/blob/master/src/Api/Infrastructure/Serialization/ProtoBufMvcBuilderExtensions.cs | Github Open Source | Open Source | MIT | 2,021 | aspnetskeleton2 | adams85 | C# | Code | 122 | 519 | using System;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging;
using Microsoft.Net.Http.Headers;
using WebApp.Api.Infrastructure.Serialization;
namespace Microsoft.Extensions.DependencyInjection
{
public static class ProtoBufMvcBuilderExtensions
{
private static void ConfigureMvcOpt... | 5,651 |
https://github.com/kickserv/csvlint.rb/blob/master/features/step_definitions/validation_errors_steps.rb | Github Open Source | Open Source | MIT | 2,021 | csvlint.rb | kickserv | Ruby | Code | 157 | 464 | When(/^I ask if there are errors$/) do
@csv_options ||= default_csv_options
if @schema_json
@schema = Csvlint::Schema.from_json_table( @schema_url || "http://example.org ", JSON.parse(@schema_json) )
end
@validator = Csvlint::Validator.new( @url, @csv_options, @schema )
@errors = @validator.errors
end
... | 33,850 |
https://github.com/ryu1okd/anchor/blob/master/build.sbt | Github Open Source | Open Source | Apache-2.0 | null | anchor | ryu1okd | Scala | Code | 83 | 406 | enablePlugins(JavaServerAppPackaging)
name := "anchor"
version := "0.1"
scalaVersion := "2.12.4"
libraryDependencies ++= Seq(
"com.typesafe.akka" %% "akka-http" % "10.1.0-RC1",
"com.typesafe.akka" %% "akka-stream" % "2.5.8",
"com.typesafe.akka" %% "akka-http-spray-json" % "10.0.10",
"com.typesafe.slick" %... | 16,984 |
https://github.com/losizm/little-time/blob/master/src/test/scala/little/time/YearMonthMethodsSpec.scala | Github Open Source | Open Source | Apache-2.0 | 2,021 | little-time | losizm | Scala | Code | 572 | 2,105 | /*
* Copyright 2021 Carlos Conyers
*
* 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... | 12,526 |
https://github.com/noahcampbell/rfc6902/blob/master/main_test.go | Github Open Source | Open Source | Apache-2.0 | 2,015 | rfc6902 | noahcampbell | Go | Code | 1,011 | 3,162 | package rfc6902
import (
"bytes"
"encoding/json"
"fmt"
"reflect"
"strings"
"testing"
)
func Test_ParsePatch_NilReader(t *testing.T) {
_, err := ParsePatch(nil)
if err == nil {
t.Fatalf("Expected error for nil reader.")
}
}
func Test_ParsePatch_EmptyReader(t *testing.T) {
_, err := ParsePatch(strings.NewR... | 25,040 |
https://github.com/isovector/nimic/blob/master/examples/judgements.nim | Github Open Source | Open Source | BSD-3-Clause | 2,021 | nimic | isovector | null | Spoken | 101 | 223 | ; judge #a #b
----------
is zero !(bash ([[ " !#a " == " !#b " ]]; echo $?))
; is zero #n
----------
False
; is zero 0
----------
True
; if #cond then #a else #b
----------
if !#cond then #a else #b
; if True then #a else #b
----------
#a
; if False then #a else #b
----------
#b
; match #a... | 21,363 |
https://github.com/ProyectoVice/stj/blob/master/database/migrations/2018_02_26_193705_create_proceso_seleccions_table.php | Github Open Source | Open Source | MIT | null | stj | ProyectoVice | PHP | Code | 67 | 357 | <?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateProcesoSeleccionsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('proce... | 44,885 |
https://github.com/thejellyfish/feather-icons/blob/master/src/icons/IconSlack.js | Github Open Source | Open Source | MIT | null | feather-icons | thejellyfish | JavaScript | Code | 130 | 603 | import React from 'react';
import Icon from '../Icon';
/* eslint-disable react/jsx-props-no-spreading */
export default function IconSlack(props) {
return (
<Icon {...props}>
<path d="M14.5 10c-.83 0-1.5-.67-1.5-1.5v-5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5v5c0 .83-.67 1.5-1.5 1.5z" />
<path d="M20.5 10... | 42,360 |
https://github.com/BGSU-LITS/user/blob/master/src/routes.php | Github Open Source | Open Source | MIT | null | user | BGSU-LITS | PHP | Code | 47 | 256 | <?php
declare(strict_types=1);
use Lits\Action\IndexAction;
use Lits\Action\LoginAction;
use Lits\Action\LogoutAction;
use Lits\Action\PasswordAction;
use Lits\Framework;
return function (Framework $framework): void {
$framework->app()
->get('/', IndexAction::class)
->setName('index')
->s... | 31,782 |
https://github.com/ananace/ale/blob/master/autoload/ale/fixers/generic.vim | Github Open Source | Open Source | BSD-2-Clause | 2,020 | ale | ananace | null | Spoken | 36 | 125 | " Author: w0rp <devw0rp@gmail.com>
" Description: Generic functions for fixing files with.
function! ale#fixers#generic#RemoveTrailingBlankLines(buffer, lines) abort
let l:end_index = len(a:lines) - 1
while l:end_index > 0 && empty(a:lines[l:end_index])
let l:end_index -= 1
endwhile
return a:... | 28,783 |
https://github.com/arbaazkhan5050/erp/blob/master/app/Http/Controllers/ProductManagement/ExportProductController.php | Github Open Source | Open Source | MIT | 2,021 | erp | arbaazkhan5050 | PHP | Code | 35 | 125 | <?php
namespace App\Http\Controllers\ProductManagement;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
class ExportProductController extends Controller
{
//Protected module product by slug
public function __construct()
{
$this->middleware('perm.acc:product');
}
//publi... | 25,760 |
https://github.com/archeski/ecom/blob/master/ecom/ecom/views.py | Github Open Source | Open Source | MIT | null | ecom | archeski | Python | Code | 29 | 90 | from django.shortcuts import render
def not_found_404(request):
page_title = '404 Page Not Found'
return render(request, '404.html', locals())
def internal_server_error_500(request):
page_title = '500 Page Internal Server Error'
return render(request, '500.html', locals())
| 2,843 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.