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/0xF6/openvino/blob/master/inference-engine/tests_deprecated/functional/vpu/common/layers/myriad_layers_scatter_update_test.cpp | Github Open Source | Open Source | Apache-2.0 | 2,020 | openvino | 0xF6 | C++ | Code | 479 | 1,008 | // Copyright (C) 2018-2020 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include "myriad_layers_scatter_update_test.hpp"
using namespace testing;
//----------------------------------------------------------------------
//
// Multi-dimensional input/output and other tensors
//
//-----------------------... | 14,996 |
https://github.com/xiaoyaofe/activity-fe/blob/master/src/pages/vs_Tw_20191001/acts/act5.pc.scss | Github Open Source | Open Source | Adobe-Glyph | null | activity-fe | xiaoyaofe | SCSS | Code | 784 | 3,778 | @include mq($pc) {
#act5 {
width: 12rem;
height: 8.34rem;
margin-left: 3.65rem;
}
.act5-title {
position: relative;
$width: 9.22rem;
$height: .81rem;
width: $width;
height: $height;
margin-left: 1.33rem;
margin-top: 1.29rem;
$background-image:url("../../../assets/image... | 21,978 |
https://github.com/strivexj/weather/blob/master/app/src/main/java/example/com/map/example/com/furtherstudy/MusicService.java | Github Open Source | Open Source | Apache-2.0 | null | weather | strivexj | Java | Code | 140 | 533 | package example.com.map.example.com.furtherstudy;
import android.app.Service;
import android.content.Intent;
import android.media.MediaPlayer;
import android.os.IBinder;
import android.util.Log;
import example.com.map.R;
public class MusicService extends Service {
private MediaPlayer mediaPlayer=new MediaPlayer... | 1,417 |
https://github.com/riednyko/cloudbeaver/blob/master/webapp/packages/core-administration/src/AdministrationSettingsService.ts | Github Open Source | Open Source | Apache-2.0 | 2,022 | cloudbeaver | riednyko | TypeScript | Code | 94 | 230 | /*
* CloudBeaver - Cloud Database Manager
* Copyright (C) 2020-2021 DBeaver Corp and others
*
* Licensed under the Apache License, Version 2.0.
* you may not use this file except in compliance with the License.
*/
import { injectable } from '@cloudbeaver/core-di';
import { PluginManagerService } from '@cloudbeav... | 2,798 |
https://github.com/OCHIENGDAVIS/django1.9/blob/master/posts/migrations/0004_auto_20190311_1111.py | Github Open Source | Open Source | MIT | null | django1.9 | OCHIENGDAVIS | Python | Code | 54 | 187 | # -*- coding: utf-8 -*-
# Generated by Django 1.9 on 2019-03-11 11:11
from __future__ import unicode_literals
import datetime
from django.db import migrations, models
from django.utils.timezone import utc
class Migration(migrations.Migration):
dependencies = [
('posts', '0003_remove_post_publish'),
... | 21,724 |
https://github.com/hidaba/python-plexapi/blob/master/plexapi/media.py | Github Open Source | Open Source | BSD-3-Clause | null | python-plexapi | hidaba | Python | Code | 1,938 | 5,883 | # -*- coding: utf-8 -*-
from plexapi import log, utils
from plexapi.base import PlexObject
from plexapi.exceptions import BadRequest
from plexapi.utils import cast
@utils.registerPlexObject
class Media(PlexObject):
""" Container object for all MediaPart objects. Provides useful data about the
video this m... | 48,656 |
https://github.com/NREL/Radiance/blob/master/src/gen/genclock.c | Github Open Source | Open Source | BSD-2-Clause | 2,021 | Radiance | NREL | C | Code | 436 | 1,879 | #ifndef lint
static const char RCSid[] = "$Id: genclock.c,v 2.5 2003/06/08 12:03:09 schorsch Exp $";
#endif
/*
* Generate an analog clock.
*/
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <ctype.h>
#define PI 3.14159265358979323846
#define FACEBITMAP "clockface.hex"
char myfacemat[] = "white_... | 25,816 |
https://github.com/dotfury/aPeoplesCalendarWeb/blob/master/src/volunteer.js | Github Open Source | Open Source | MIT | null | aPeoplesCalendarWeb | dotfury | JavaScript | Code | 140 | 480 | import React from 'react';
import './volunteer.css';
export function Volunteer() {
return (
<div id='volunteerWrapper'>
<div id='volunteerContent'>
<header id='volunteerHeader'>
<p id='volunteerHeaderText'>Volunteer</p>
</header>
<p className='volunteerText'>Whether you ar... | 7,205 |
https://github.com/jfeigel/behavioral-beginnings/blob/master/src/stylesheets/base/_contact.sass | Github Open Source | Open Source | MIT | null | behavioral-beginnings | jfeigel | Sass | Code | 61 | 261 | .contact-container
position: relative
padding-bottom: 3rem
.background
position: absolute
top: 0
left: 0
width: 100%
height: 100%
background-image: url('../images/Southlake.png')
background-position: center
background-size: cover
opacity: .4
z-index: -1
filter: graysca... | 46,905 |
https://github.com/jaamal/overclocking/blob/master/sources/Trees/src/avlTree/mergers/AvlTreeArrayRecursiveBlockMerger.java | Github Open Source | Open Source | MIT | null | overclocking | jaamal | Java | Code | 79 | 244 | package avlTree.mergers;
import avlTree.IAvlTree;
import avlTree.helpers.IRebalancingCounter;
public class AvlTreeArrayRecursiveBlockMerger extends AvlTreeArrayMergerWithStatisticsCollecting {
@Override
protected IAvlTree merge(IAvlTree[] trees, IRebalancingCounter rebalancingCounter) {
final int bl... | 10,394 |
https://github.com/gustavo-mendel/my-college-projects/blob/master/monitoria-ilp/lista6/N2.py | Github Open Source | Open Source | MIT | 2,021 | my-college-projects | gustavo-mendel | Python | Code | 85 | 205 | n = int(input())
gerais = [e for e in input().split()]
m = int(input())
proib = [e for e in input().split()]
q = int(input())
arr = [e for e in input().split()]
for i in range(q):
key = arr[i]
esq = 0
dir = m-1
achou = False
while esq <= dir:
meio = (esq + dir) // 2
if proi... | 7,582 |
https://github.com/lhq46688/TinyWeather/blob/master/app/src/main/java/com/peng/tinyweather/data/remote/RemoteDataSource.java | Github Open Source | Open Source | Apache-2.0 | 2,018 | TinyWeather | lhq46688 | Java | Code | 214 | 787 | package com.peng.tinyweather.data.remote;
import android.widget.Toast;
import com.peng.tinyweather.data.DataSource;
import com.peng.tinyweather.gson.AQI;
import com.peng.tinyweather.gson.Weather;
import com.peng.tinyweather.util.HttpUtil;
import com.peng.tinyweather.util.Utility;
import java.io.IOException;
import ... | 48,009 |
https://github.com/darkoverlordofdata/learnopengl/blob/master/lessons/1.4.2.sbti/glm.c | Github Open Source | Open Source | MIT | null | learnopengl | darkoverlordofdata | C | Code | 7,867 | 25,160 | /*
The MIT License (MIT)
Copyright (c) <2018> <>
Corange definitions used for gl math.
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 right... | 32,213 |
https://github.com/mat128/wicket/blob/master/wicket-core/src/test/java/org/apache/wicket/markup/html/form/RadioGroupDisabledTestPage.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | wicket | mat128 | Java | Code | 214 | 529 | /*
* 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 ... | 10,915 |
https://github.com/chcbz/cyf-api-k/blob/master/src/main/java/cn/jia/task/api/TaskController.java | Github Open Source | Open Source | MIT | 2,020 | cyf-api-k | chcbz | Java | Code | 262 | 1,162 | package cn.jia.task.api;
import cn.jia.core.common.EsSecurityHandler;
import cn.jia.core.entity.JSONRequestPage;
import cn.jia.core.entity.JSONResult;
import cn.jia.core.entity.JSONResultPage;
import cn.jia.core.util.JSONUtil;
import cn.jia.task.entity.TaskItemVO;
import cn.jia.task.entity.TaskItemVOExample;
import cn... | 31,441 |
https://github.com/promlow/books-and-tutorials/blob/master/SpriteBuilder/FlappyFly.spritebuilder/Source/libs/cocos2d-iphone/templates/cocos2d iOS Newton.xctemplate/Newton/Resources/fire.plist | Github Open Source | Open Source | MIT, LicenseRef-scancode-warranty-disclaimer, LicenseRef-scancode-unknown-license-reference, Libpng, CC-BY-NC-SA-2.0, GPL-1.0-or-later, CPL-1.0, GPL-2.0-only, LicenseRef-scancode-public-domain, MPL-2.0, BSD-3-Clause, BSD-2-Clause, Zlib | 2,019 | books-and-tutorials | promlow | XML Property List | Code | 221 | 1,605 | <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>// texture</key>
<string></string>
<key>textureFileName</key>
<string>fire.png</string>
<key>// duration</key>
<string></string>
<key>// ... | 20,709 |
https://github.com/eran1205/Radio-Stations-MS/blob/master/src/radiostation.interface.ts | Github Open Source | Open Source | MIT | 2,019 | Radio-Stations-MS | eran1205 | TypeScript | Code | 28 | 60 | import { Document } from 'mongoose';
export interface RadioStation extends Document {
readonly title: string;
readonly description: string;
readonly logo: string;
readonly src: string;
readonly created_at: Date;
}
| 11,506 |
https://github.com/ebanfa/logix/blob/master/src/main/java/com/cloderia/helion/server/endpoint/RatingtypeEndPointImpl.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | logix | ebanfa | Java | Code | 137 | 711 | /**
*
*/
package com.cloderia.helion.server.endpoint;
import java.util.List;
import javax.ejb.Stateless;
import javax.inject.Inject;
import javax.ws.rs.core.Response;
import javax.ws.rs.core.UriBuilder;
import com.cloderia.helion.client.shared.model.Ratingtype;
import com.cloderia.helion.client.shared.ops.Ratingt... | 37,460 |
https://github.com/zanzo420/drywetmidi/blob/master/DryWetMidi.Tests/Utilities/TimedObjectMethods.cs | Github Open Source | Open Source | MIT | 2,022 | drywetmidi | zanzo420 | C# | Code | 46 | 162 | using System.Collections;
using Melanchall.DryWetMidi.Interaction;
namespace Melanchall.DryWetMidi.Tests.Utilities
{
public abstract class TimedObjectMethods<TObject>
where TObject : ITimedObject
{
#region Methods
public void SetTime(TObject obj, ITimeSpan time, TempoMap tempoMap)
... | 41,593 |
https://github.com/MarkWattsBoomi/DataTable/blob/master/src/DataTable/DataTableRow.tsx | Github Open Source | Open Source | MIT | null | DataTable | MarkWattsBoomi | TypeScript | Code | 102 | 325 | import * as React from 'react';
import DataTable from './DataTable';
import './DataTable.css';
import DataTableCell from './DataTableCell';
import { Field, Row } from './Entities';
export default class DataTableRow extends React.Component<any, any> {
selectedItem: string = null;
constructor(props: any) {
... | 9,741 |
https://github.com/coppelia517/orlov/blob/master/orlov/libs/minicap/process.py | Github Open Source | Open Source | MIT | null | orlov | coppelia517 | Python | Code | 679 | 2,554 | """ Orlov Plugins : Minicap Process Utility. """
import os
import io
import sys
import time
import logging
import threading
from queue import Queue
import cv2
from PIL import Image
import numpy as np
import fasteners
from orlov.libs.picture import Picture, Ocr
PATH = os.path.abspath(os.path.dirname(os.path.dirname(... | 41,746 |
https://github.com/yep365/messenger/blob/master/src/components/Sidebar/Sidebar.scss | Github Open Source | Open Source | MIT | 2,020 | messenger | yep365 | SCSS | Code | 13 | 53 | .modal-create-dialog {
.ant-modal-body {
padding-top: 5px;
}
.ant-select-selector {
margin-bottom: 5px;
}
}
| 1,751 |
https://github.com/segef/LiarsPoker/blob/master/LiarsPoker/src/PlayerSettings.java | Github Open Source | Open Source | Apache-2.0 | 2,017 | LiarsPoker | segef | Java | Code | 675 | 3,132 | import javax.imageio.ImageIO;
import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.File;
import java.util.Random;
public class PlayerSettings extends JFrame {
Integer[] nums = { 3, 4, 5, 6, 7, 8, 9, 10 };
String[] plyrs = { "Player", "Compu... | 41,679 |
https://github.com/BuloZB/serverZero/blob/master/ServerFiles/warden/17E3A1C32BFDC91B0E6746DC11C6AB20.vb | Github Open Source | Open Source | OpenSSL | null | serverZero | BuloZB | Visual Basic | Code | 147 | 409 | ' Warden module script.
'
'Module name: 17E3A1C32BFDC91B0E6746DC11C6AB20
Imports System
Imports Microsoft.VisualBasic
Imports vWoW.WorldServer
Namespace Scripts
Public Module Main
'http://paste2.org/p/474089
Public MD5 As Byte() = New Byte() {&H17, &HE3, &HA1, &HC3, &H2B, &HFD, &HC9, &H1B, &HE, ... | 28,709 |
https://github.com/ask-izzy/ask-izzy/blob/master/flow/interfaces/iss.js | Github Open Source | Open Source | MIT | 2,022 | ask-izzy | ask-izzy | JavaScript | Code | 342 | 1,189 | /* @flow */
type issArea = {
"name": string,
"kind": string,
"postcode": string,
"state": string,
"suburb": string,
};
type email = string;
type issAgeGroup = "unspecified" |
"prenatal" |
"baby" |
"toddler" |
"preschool" |
"schoolage" |
"earlyadolescent" |
"midadolescen... | 199 |
https://github.com/scantineau/knx2mqtt/blob/master/src/main/java/com/tellerulam/knx2mqtt/SyslogHandler.java | Github Open Source | Open Source | MIT | 2,021 | knx2mqtt | scantineau | Java | Code | 337 | 1,162 | package com.tellerulam.knx2mqtt;
import java.io.File;
import java.io.IOException;
import java.net.*;
import java.nio.charset.StandardCharsets;
import java.util.*;
import java.util.logging.Handler;
import java.util.logging.Level;
import java.util.logging.LogManager;
import java.util.logging.LogRecord;
@SuppressWarning... | 24,251 |
https://github.com/karthickvalentino/handn/blob/master/assets/AppAsset.php | Github Open Source | Open Source | BSD-3-Clause | 2,018 | handn | karthickvalentino | PHP | Code | 97 | 557 | <?php
/**
* @link http://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license http://www.yiiframework.com/license/
*/
namespace app\assets;
use yii\web\AssetBundle;
/**
* @author Qiang Xue <qiang.xue@gmail.com>
* @since 2.0
*/
class AppAsset extends AssetBundle
{
public $baseP... | 43,958 |
https://github.com/mbatc/atLib/blob/master/projects/atLib/include/IO/Streams/atWriteStream.h | Github Open Source | Open Source | MIT | 2,019 | atLib | mbatc | C | Code | 314 | 757 |
// -----------------------------------------------------------------------------
// The MIT License
//
// Copyright(c) 2020 Michael Batchelor,
//
// 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 ... | 8,846 |
https://github.com/kitsunekeyboards/shapeshifter4060/blob/master/pcb/Laptreus_v1/CommonPartsLibrary.pretty/XCVR_SPU0409HD5H-PB.kicad_mod | Github Open Source | Open Source | MIT | 2,021 | shapeshifter4060 | kitsunekeyboards | KiCad Layout | Code | 206 | 709 | (module XCVR_SPU0409HD5H-PB (layer F.Cu) (tedit 0)
(solder_mask_margin 0.1)
(attr smd)
(fp_text reference XCVR_SPU0409HD5H-PB (at 1.365 -2.885) (layer F.SilkS)
(effects (font (size 1 1) (thickness 0.05)))
)
(fp_text value VAL** (at 1.85 3.065) (layer F.SilkS)
(effects (font (size 1 1) (thickness 0.05)... | 38,860 |
https://github.com/fuzzley/fSpider/blob/master/scripts/spider/fSpider.debug.js | Github Open Source | Open Source | MIT | 2,021 | fSpider | fuzzley | JavaScript | Code | 116 | 623 | var fSpider = fSpider || {};
fSpider.Debug = (function (Debug, undefined) {
'use strict';
//constructor
Debug = function (board) {
this.board = board;
};
//fields
Debug.prototype.board = null;
//functions
Debug.prototype.prepareDrawCompleteSequenceTest = function () {
... | 29,969 |
https://github.com/milesmatthias/TS_DetailedGuides/blob/master/TableViews/build/iphone/build/TableViews.build/Debug-iphonesimulator/TableViews-universal.build/Objects-normal/i386/CAXException.d | Github Open Source | Open Source | Apache-2.0 | 2,012 | TS_DetailedGuides | milesmatthias | Makefile | Code | 7 | 80 | dependencies: \
/Users/miels/TableViews/build/iphone/Classes/CAXException.cpp \
/Users/miels/TableViews/build/iphone/Classes/CAXException.h \
/Users/miels/TableViews/build/iphone/Classes/CADebugMacros.h
| 30,503 |
https://github.com/hannahPhys/starter-gatsby-blog/blob/master/src/templates/blog-post.module.scss | Github Open Source | Open Source | MIT | null | starter-gatsby-blog | hannahPhys | SCSS | Code | 106 | 392 | @import '../components/primary.scss';
.blogPost {
padding-bottom: 40px;
.hero {
display: flex;
justify-content: center;
align-items: center;
background: #e1e1e1;
font-size: 2em;
overflow: hidden;
img {
width: 140%;
margin: 0;
max-width: unset;
}
}
h1 {
l... | 17,573 |
https://github.com/dorabelme/Guess-Who/blob/master/guess-who/src/App.js | Github Open Source | Open Source | MIT | null | Guess-Who | dorabelme | JavaScript | Code | 242 | 809 | import React from "react";
import { connect } from "react-redux";
import { Route, Redirect } from "react-router-dom";
import Login from "./components/Login/Login";
import Register from "./components/Login/Register";
import MainPage from "./components/DashBoard/Dashboard";
import QuestionList from "./components/Questio... | 44,265 |
https://github.com/tosuke/dotfiles.old/blob/master/deploy.fish | Github Open Source | Open Source | MIT | 2,018 | dotfiles.old | tosuke | Fish | Code | 125 | 338 | function deploy
set -l source $argv[1]
set -l dest $argv[2]
for path in (find $source | string replace $source '' | string replace -r '^/' '' | string match -v '')
if test -d $source/$path
mkdir -p $dest/$path
else
if test -L $dest/$path
if test (realpath $dest/$path) = (realpath $sour... | 21,354 |
https://github.com/nathalialb/ufsc-tcc-sin-guia-facetado/blob/master/app/Models/ApproachesEntities.php | Github Open Source | Open Source | MIT | null | ufsc-tcc-sin-guia-facetado | nathalialb | PHP | Code | 31 | 95 | <?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class ApproachesEntities extends Model
{
/** @var int PUBLISHED */
const PUBLISHED = 1;
protected $table = 'approaches_entities';
protected $fillable = [
'approach_id',
'entity_id',
];
}
| 20,106 |
https://github.com/tanahiro/quaternion/blob/master/test/minitest_helper.rb | Github Open Source | Open Source | MIT | 2,018 | quaternion | tanahiro | Ruby | Code | 37 | 156 | $LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
require 'quaternion'
require 'minitest/autorun'
module MinitestHelper
def quaternion_assert_in_delta expected, actual, delta = 0.001, message = nil
assert_in_delta(expected[:w], actual[:w], delta, message)
assert_in_delta(expected[:x], actual[:x], d... | 36,220 |
https://github.com/webfactorybulgaria/shop/blob/master/src/resources/views/public/confirmation.blade.php | Github Open Source | Open Source | MIT | null | shop | webfactorybulgaria | PHP | Code | 39 | 187 | @extends('pages::public.master')
@section('bodyClass', 'body-shop body-shop-confirmation body-page body-page-'.$page->id)
@section('main')
<div class="container">
@if($order->statusCode == 'completed')
<h1>@lang('db.Purchase has been successfully created')</h1>
@else
<h1>@lang('db.Purchase has been can... | 42,428 |
https://github.com/xuwei-k/cloudformal/blob/master/src/main/scala/com/github/mshibuya/cloudformal/aws/glue/GrokClassifier.scala | Github Open Source | Open Source | MIT | 2,018 | cloudformal | xuwei-k | Scala | Code | 45 | 205 | package com.github.mshibuya.cloudformal.aws.glue
import com.github.mshibuya.cloudformal.model._
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-classifier-grokclassifier.html
*/
case class GrokClassifier(
customPatterns: Property[String] = Empty,
grokPattern: NonEmpt... | 7,376 |
https://github.com/Mariliad/UMLGraph/blob/master/GUI/src/umlgraph_gui/RelationshipDialog.java | Github Open Source | Open Source | BSD-3-Clause | 2,014 | UMLGraph | Mariliad | Java | Code | 289 | 1,118 | package umlgraph_gui;
import javax.swing.JPanel;
import javax.swing.JComboBox;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.SwingConstants;
import javax.swing.border.EmptyBorder;
import java.awt.BorderLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import j... | 20,258 |
https://github.com/hschwane/offline_production/blob/master/PROPOSAL/public/PROPOSAL/math/RandomGenerator.h | Github Open Source | Open Source | MIT | 2,020 | offline_production | hschwane | C | Code | 389 | 892 |
/******************************************************************************
* *
* This file is part of the simulation tool PROPOSAL. *
* *... | 13,494 |
https://github.com/thealexhoar/pymodoro/blob/master/main.py | Github Open Source | Open Source | MIT | null | pymodoro | thealexhoar | Python | Code | 501 | 1,488 | import alert
import configparser
from datetime import datetime, timedelta
import getopt
import sys
import time
def wait(minutes):
seconds = minutes * 60
time.sleep(seconds)
# Produces from string the longest substring
# that starts at index and is an integer
def get_contiguous_number(string, index):
leng... | 47,266 |
https://github.com/Opentrons/opentrons/blob/master/step-generation/src/commandCreators/atomic/dispense.ts | Github Open Source | Open Source | LicenseRef-scancode-warranty-disclaimer, Apache-2.0 | 2,023 | opentrons | Opentrons | TypeScript | Code | 296 | 1,385 | import * as errorCreators from '../../errorCreators'
import {
modulePipetteCollision,
thermocyclerPipetteCollision,
pipetteIntoHeaterShakerLatchOpen,
pipetteIntoHeaterShakerWhileShaking,
getIsHeaterShakerEastWestWithLatchOpen,
pipetteAdjacentHeaterShakerWhileShaking,
getLabwareSlot,
getIsHeaterShakerEas... | 41,684 |
https://github.com/sukkla01/swsolary/blob/master/vendor/guzzlehttp/guzzle/tests/FunctionsTest.php | Github Open Source | Open Source | BSD-3-Clause | 2,018 | swsolary | sukkla01 | PHP | Code | 426 | 1,653 | <?php
namespace GuzzleHttp\Tests;
use GuzzleHttp\Client;
use GuzzleHttp\Event\BeforeEvent;
use GuzzleHttp\Event\CompleteEvent;
use GuzzleHttp\Event\ErrorEvent;
use GuzzleHttp\Message\Response;
use GuzzleHttp\Subscriber\Mock;
class FunctionsTest extends \PHPUnit_Framework_TestCase
{
public function testExpandsTem... | 30,985 |
https://github.com/isabella232/dashboard.aptible.com/blob/master/app/organization/admin/environments/index/route.js | Github Open Source | Open Source | MIT | 2,016 | dashboard.aptible.com | isabella232 | JavaScript | Code | 29 | 110 | import Ember from 'ember';
export default Ember.Route.extend({
model() {
let context = this.modelFor('organization');
let organization = context.get('organization');
return this.store.findStacksFor(organization);
},
setupController(controller, model) {
controller.set('model', model);
control... | 780 |
https://github.com/Blakeinstein/Circle-Network/blob/master/.gitignore | Github Open Source | Open Source | MIT | 2,020 | Circle-Network | Blakeinstein | Ignore List | Code | 7 | 71 | example.py
output.png
QTDesign.ui
test.py
src/main/python/__pycache__/circleshape.cpython-37.pyc
Output.pdf
src/main/python/__pycache__/shapes.cpython-37.pyc
| 36,257 |
https://github.com/dwestheide/stryker4s/blob/master/core/src/main/scala/stryker4s/run/MutantRunner.scala | Github Open Source | Open Source | Apache-2.0 | null | stryker4s | dwestheide | Scala | Code | 204 | 795 | package stryker4s.run
import java.nio.file.Path
import better.files.File
import grizzled.slf4j.Logging
import stryker4s.config.Config
import stryker4s.extension.FileExtensions._
import stryker4s.extension.score.MutationScoreCalculator
import stryker4s.model._
import stryker4s.mutants.findmutants.SourceCollector
impor... | 4,470 |
https://github.com/cavo789/vbs_utilities/blob/master/src/files/find/find.vbs | Github Open Source | Open Source | MIT | 2,022 | vbs_utilities | cavo789 | Visual Basic | Code | 174 | 471 | ' -----------------------------------------------------------------
'
' Take advantage of Windows Desktop Search and very fast,
' get the list of MS Access applications present on the computer
' (local drives so also return files present, f.i. on a D: drive if
' you run the script from the C: drive; don't scan netwo... | 40,412 |
https://github.com/axelonet/muzei/blob/master/main/src/main/java/com/google/android/apps/muzei/sources/SourceSetupActivity.kt | Github Open Source | Open Source | Apache-2.0 | null | muzei | axelonet | Kotlin | Code | 210 | 606 | /*
* Copyright 2018 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | 39,364 |
https://github.com/tanaka-takurou/serverless-contact-page-go/blob/master/api/main.go | Github Open Source | Open Source | MIT | null | serverless-contact-page-go | tanaka-takurou | Go | Code | 212 | 770 | package main
import (
"os"
"fmt"
"log"
"context"
"encoding/json"
"github.com/aws/aws-lambda-go/events"
"github.com/aws/aws-lambda-go/lambda"
"github.com/aws/aws-sdk-go-v2/aws"
"github.com/aws/aws-sdk-go-v2/config"
"github.com/aws/aws-sdk-go-v2/service/sns"
)
type APIResponse struct {
Message string `json... | 33,430 |
https://github.com/wangdx66/SportPage/blob/master/iso/SportsPage/SportsPage/SPSportsSysNotificationTableViewCell.h | Github Open Source | Open Source | Apache-2.0 | 2,019 | SportPage | wangdx66 | C | Code | 33 | 119 | //
// SPSportsSysNotificationTableViewCell.h
// SportsPage
//
// Created by Qin on 2016/12/11.
// Copyright © 2016年 Absolute. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "SPSportsNotificationResponseModel.h"
@interface SPSportsSysNotificationTableViewCell : UITableViewCell
- (void)setUpWithModel:(SP... | 6,090 |
https://github.com/gaoyoubo/vditor/blob/master/src/ts/editor/turndown-plugin-gfm.ts | Github Open Source | Open Source | MIT | 2,021 | vditor | gaoyoubo | TypeScript | Code | 336 | 906 | const rules: { [key: string]: ITurndownRule } = {
vditorDelete: {
filter: ["del", "s", "strike"],
replacement: (content: string) => {
return "~~" + content + "~~";
},
},
vditorListItem: {
filter: "li",
replacement: (content: string, node: HTMLInputElement)... | 19,525 |
https://github.com/duniapay/oracle-server/blob/master/src/domain/common/utils/error/HttpError.ts | Github Open Source | Open Source | MIT | 2,022 | oracle-server | duniapay | TypeScript | Code | 12 | 29 | import InvalidRequestError from './InvalidRequestError';
class HttpError extends InvalidRequestError {}
export default HttpError;
| 4,897 |
https://github.com/vpaleshnikov/SoftUni-TechModule/blob/master/ProgrammingFundamentals/08.MethodsDebuggingAndTroubleshootingCode-Exercises/05.FibonacciNumbers/FibonacciNumbers.cs | Github Open Source | Open Source | MIT | null | SoftUni-TechModule | vpaleshnikov | C# | Code | 60 | 168 | using System;
namespace _05.FibonacciNumbers
{
class FibonacciNumbers
{
static void Main(string[] args)
{
var number = int.Parse(Console.ReadLine());
Console.WriteLine(FibonacciNumber(number));
}
static long FibonacciNumber(int number)
{
... | 23,497 |
https://github.com/ZhihongShao/cotk/blob/master/docs/meta/update_doc.py | Github Open Source | Open Source | Apache-2.0 | null | cotk | ZhihongShao | Python | Code | 146 | 442 | import os
import path
def get_location(text):
lines = text.split("\n")
res = []
for line in lines:
if not line.startswith("~~ location"):
break
_, _, key, path = line.split()
res.append((key, path))
return res
def render(text, key):
lines = text.split("\n")
... | 48,090 |
https://github.com/aeharding/ppg-rap/blob/master/src/services/position.ts | Github Open Source | Open Source | MIT | 2,021 | ppg-rap | aeharding | TypeScript | Code | 50 | 216 | export function getPosition(
options?: PositionOptions
): Promise<GeolocationPosition> {
return new Promise((resolve, reject) =>
navigator.geolocation.getCurrentPosition(
(pos) => resolve(objectify(pos)),
reject,
options
)
);
}
function objectify(geoposition: GeolocationPosition): Geolo... | 27,029 |
https://github.com/DrItanium/ImageProcessingApplication/blob/master/src/lib/Filter/FilterMenuToolStripItem.cs | Github Open Source | Open Source | BSD-3-Clause | null | ImageProcessingApplication | DrItanium | C# | Code | 61 | 175 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace Libraries.Filter
{
public class FilterToolStripMenuItem : ToolStripMenuItem
{
public Guid TargetFilter { get; set; }
public IFilterCallback Callback { get; set; }
public FilterToolStripMe... | 40,862 |
https://github.com/aydinkim/opencv3-modified/blob/master/platforms/build_android_arm/modules/rgbd/CMakeFiles/opencv_rgbd.dir/cmake_clean_target.cmake | Github Open Source | Open Source | BSD-3-Clause | 2,015 | opencv3-modified | aydinkim | CMake | Code | 3 | 35 | FILE(REMOVE_RECURSE
"../../lib/armeabi-v7a/libopencv_rgbd.a"
)
| 23,661 |
https://github.com/bartoszkordek/AGH-Praca-inzynierska-back-end/blob/master/trainings/src/test/java/com/healthy/gym/trainings/utils/GroupTrainingMapperTest.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | AGH-Praca-inzynierska-back-end | bartoszkordek | Java | Code | 346 | 2,128 | package com.healthy.gym.trainings.utils;
import com.healthy.gym.trainings.data.document.GroupTrainingDocument;
import com.healthy.gym.trainings.data.document.LocationDocument;
import com.healthy.gym.trainings.data.document.TrainingTypeDocument;
import com.healthy.gym.trainings.data.document.UserDocument;
import com.he... | 34,506 |
https://github.com/PMArkive/HyoutaTools/blob/master/HyoutaToolsLib/Tales/Vesperia/TO8CHLI/SkitConditionForwarder.cs | Github Open Source | Open Source | MIT | 2,021 | HyoutaTools | PMArkive | C# | Code | 47 | 171 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using HyoutaUtils;
namespace HyoutaTools.Tales.Vesperia.TO8CHLI {
public class SkitConditionForwarder {
public ulong SkitConditionReference;
public uint SkitConditionCount;
public SkitConditionForwarder( System.IO.Stream stre... | 17,771 |
https://github.com/jeffbrown/grails-core/blob/master/grails-core/src/main/groovy/org/codehaus/groovy/grails/commons/metaclass/LazyMetaPropertyMap.java | Github Open Source | Open Source | Apache-2.0 | null | grails-core | jeffbrown | Java | Code | 707 | 1,963 | /*
* Copyright 2004-2005 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | 6,053 |
https://github.com/kaazing/java.client/blob/master/amqp-0-9-1/amqp/src/main/java/org/kaazing/net/ws/amqp/impl/AsyncClient.java | Github Open Source | Open Source | Apache-2.0, BSD-3-Clause, BSD-2-Clause | 2,017 | java.client | kaazing | Java | Code | 345 | 1,039 | /**
* Copyright 2007-2015, Kaazing Corporation. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless require... | 35,749 |
https://github.com/sasinduthashmira/JavaFirstProgram/blob/master/class Sasindu.java | Github Open Source | Open Source | MIT | 2,021 | JavaFirstProgram | sasinduthashmira | Java | Code | 36 | 129 | class Sasindu{
public static void main (String args[]){
mySpace();
printDetails();
mySpace();
}
private static void printDetails() {
System.out.println("Hello World!");
System.out.println("I'm Sasindu Thashmira ");
}
private static void mySpace() {
... | 6,321 |
https://github.com/chaiwanlin/tp/blob/master/src/main/java/seedu/edrecord/model/assignment/Grade.java | Github Open Source | Open Source | MIT | null | tp | chaiwanlin | Java | Code | 232 | 622 | package seedu.edrecord.model.assignment;
import static seedu.edrecord.commons.util.AppUtil.checkArgument;
import static seedu.edrecord.commons.util.CollectionUtil.requireAllNonNull;
import java.util.Objects;
import java.util.Optional;
/**
* Represents an Grade under a Student in EdRecord.
* Guarantees: immutable, ... | 19,982 |
https://github.com/hendrikdelarey/appcampus/blob/master/AppCampus.Website/app/controllers/profileController.js | Github Open Source | Open Source | MIT | null | appcampus | hendrikdelarey | JavaScript | Code | 93 | 345 | app.controller("profileController", function ($scope, $rootScope, userService, errorHandler, toastr) {
$(".content").slimscroll({
height: window.innerHeight - 135,
alwaysVisible: true,
size: "3px"
});
userService.$resource().get({ userId: userService.getUserId() }, function success(u... | 11,201 |
https://github.com/nobe4/HexClock.sh/blob/master/HexaClock.sh | Github Open Source | Open Source | MIT | null | HexClock.sh | nobe4 | Shell | Code | 141 | 425 | # echo 'HexaClock v0.1 \n';
# detecting terminal size
lineNumbers="$(tput lines)";
columnNumbers="$(tput cols)";
# echo 'Terminal size : ' $lineNumbers '*' $columnNumbers
# setting text size
textSize=6 # hhmmss
# calculating the text position
textY=$(( $lineNumbers/2 ))
textX=$(( $columnNumbers/2 - $textSize/2 - 1)... | 36,910 |
https://github.com/saifulapm/dotfiles-18/blob/master/.config/bspwm/bspwmrc | Github Open Source | Open Source | MIT | 2,021 | dotfiles-18 | saifulapm | Shell | Code | 292 | 793 | #!/bin/sh
##### Autostart #####
# Set cursor
xsetroot -cursor_name left_ptr &
# Shortcuts
if ! pgrep -x "sxhkd" >/dev/null; then
sxhkd &
fi
# Start pipewire
if ! pgrep -x "pipewire-pulse" >/dev/null; then
pipewire &
fi
# Start compositor, set wallpaper and colors
if ! pgrep -x "compton" >/dev/null; then
# ... | 30,457 |
https://github.com/andrzejszywala/oop/blob/master/src/main/java/pl/andrzejszywala/oop/dziedziczenie/Dziedziczenie.java | Github Open Source | Open Source | MIT | null | oop | andrzejszywala | Java | Code | 70 | 247 | package pl.andrzejszywala.oop.dziedziczenie;
public class Dziedziczenie {
public static void main(String[] args) {
new BMW().wlacz();
new Mercedes().wlacz();
}
}
class Pojazd {
public void wlacz() {
System.out.println("Włączam pojazd");
}
}
class Samochod extends Pojazd {
public void wlacz() {
super... | 22,354 |
https://github.com/haocxy/mirror-googlesource-dawn-tint/blob/master/src/reader/spirv/function_composite_test.cc | Github Open Source | Open Source | Apache-2.0 | null | mirror-googlesource-dawn-tint | haocxy | C++ | Code | 3,839 | 14,449 | // Copyright 2020 The Tint Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed ... | 27,167 |
https://github.com/pyricau/BuilderGen/blob/master/buildergen/src/test/java/info/piwai/buildergen/validation/IsValidTest.java | Github Open Source | Open Source | Apache-2.0 | 2,018 | BuilderGen | pyricau | Java | Code | 54 | 203 | package info.piwai.buildergen.validation;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import org.junit.Test;
public class IsValidTest {
@Test
public void initialStateIsValid() {
IsValid valid = new IsValid();
assertTrue(valid.isValid());
}
@Test
public void inva... | 26,756 |
https://github.com/TeamMentor/TM_Website/blob/master/test/services/Graph-Service.test.coffee | Github Open Source | Open Source | Apache-2.0 | 2,021 | TM_Website | TeamMentor | CoffeeScript | Code | 388 | 1,793 | require('fluentnode')
fs = require('fs' )
http = require('http' )
expect = require('chai' ).expect
spawn = require('child_process').spawn
Graph_Service = require('./../../src/services/Graph-Service')
Server = http.Server
describe '| services | G... | 45,844 |
https://github.com/flatomoya/TVTComment/blob/master/TVTComment/ViewModels/ChatCollectServiceCreationOptionControl/TwitterLiveChatCollectServiceCreationOptionControlViewModel.cs | Github Open Source | Open Source | MIT | 2,021 | TVTComment | flatomoya | C# | Code | 103 | 364 | using Prism.Commands;
using System;
using System.Windows.Input;
using TVTComment.Model.ChatCollectServiceEntry;
using static TVTComment.Model.ChatCollectServiceEntry.TwitterLiveChatCollectServiceEntry.ChatCollectServiceCreationOption;
namespace TVTComment.ViewModels.ChatCollectServiceCreationOptionControl
{
class... | 37,976 |
https://github.com/SeraphinEveles/SotnRandoTools/blob/master/SotnRandoTools/src/Khaos/Models/EventAddAction.cs | Github Open Source | Open Source | MIT | null | SotnRandoTools | SeraphinEveles | C# | Code | 23 | 57 | namespace SotnRandoTools.Khaos.Models
{
public class EventAddAction
{
public string Command { get; set; }
public string UserName { get; set; }
}
}
| 16,334 |
https://github.com/SpaceWalkerRS/redstone-tweaks/blob/master/src/main/java/redstonetweaks/world/client/NeighborUpdateVisualizer.java | Github Open Source | Open Source | MIT | 2,021 | redstone-tweaks | SpaceWalkerRS | Java | Code | 2,553 | 9,019 | package redstonetweaks.world.client;
import org.lwjgl.opengl.GL11;
import com.mojang.blaze3d.systems.RenderSystem;
import net.minecraft.client.MinecraftClient;
import net.minecraft.client.render.BufferBuilder;
import net.minecraft.client.render.Camera;
import net.minecraft.client.render.Tessellator;
import net.minec... | 47,318 |
https://github.com/ThiagoBarradas/MundiAPI-JAVA/blob/master/src/main/java/com/mundipagg/api/models/GetCardTokenResponse.java | Github Open Source | Open Source | MIT | null | MundiAPI-JAVA | ThiagoBarradas | Java | Code | 298 | 952 | /*
* MundiAPILib
*
* This file was automatically generated by APIMATIC v2.0 ( https://apimatic.io ).
*/
package com.mundipagg.api.models;
import com.fasterxml.jackson.annotation.JsonGetter;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import com.... | 789 |
https://github.com/jessica-galvan/FancyBeauty/blob/master/app/TipoProducto.php | Github Open Source | Open Source | MIT | null | FancyBeauty | jessica-galvan | PHP | Code | 25 | 86 | <?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class TipoProducto extends Model{
public $table = 'tipoproductos';
public $fillable = [];
public function producto(){
return $this->belongsTo('App\Producto', 'tipoProducto_id');
}
}
| 31,712 |
https://github.com/IPVS-AS/MMP-Backend/blob/master/model/src/test/java/de/unistuttgart/ipvs/as/mmp/model/v1/controller/ModelFileControllerTest.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | MMP-Backend | IPVS-AS | Java | Code | 424 | 2,614 | package de.unistuttgart.ipvs.as.mmp.model.v1.controller;
import de.unistuttgart.ipvs.as.mmp.common.domain.DBFile;
import de.unistuttgart.ipvs.as.mmp.common.domain.Model;
import de.unistuttgart.ipvs.as.mmp.common.domain.ModelFile;
import de.unistuttgart.ipvs.as.mmp.common.domain.ModelMetadata;
import de.unistuttgart.ip... | 4,908 |
https://github.com/ZhnZhn/ta-chart/blob/master/js/components/zhn-charts/tooltip/MovingAverage.js | Github Open Source | Open Source | BSD-3-Clause | 2,023 | ta-chart | ZhnZhn | JavaScript | Code | 200 | 797 | "use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
exports.__esModule = true;
exports["default"] = void 0;
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
var _uiApi = require("../../uiApi");
var _TooltipText = _interopRequireDefau... | 31,966 |
https://github.com/blaulaub/jback-frontend/blob/master/src/app/person/person-with-password-draft.ts | Github Open Source | Open Source | MIT | null | jback-frontend | blaulaub | TypeScript | Code | 21 | 49 | import { PersonDraft } from './person-draft';
export class PersonWithPasswordDraft extends PersonDraft {
username: string = null;
password: string = null;
}
| 27,649 |
https://github.com/seoss/scs_core/blob/master/tests/aqcsv/specification/qc_test.py | Github Open Source | Open Source | MIT | 2,020 | scs_core | seoss | Python | Code | 75 | 274 | #!/usr/bin/env python3
"""
Created on 4 Mar 2019
@author: Bruno Beloff (bruno.beloff@southcoastscience.com)
"""
from scs_core.aqcsv.specification.qc import QC
from scs_core.data.json import JSONify
# -------------------------------------------------------------------------------------------------------------------... | 24,160 |
https://github.com/AhemdHegazy/nxt.cranriggertest/blob/master/public/backend/js/scroll-top.js | Github Open Source | Open Source | MIT | 2,021 | nxt.cranriggertest | AhemdHegazy | JavaScript | Code | 24 | 406 | (function()
{window.setTimeout=window.setTimeout;})();var smoothScr={iterr:300,tm:null,stopShow:function()
{clearTimeout(this.tm);this.iterr=30;},getRealTop:function(el)
{var elm=el;var realTop=0;do
{realTop+=elm.offsetTop;elm=elm.offsetParent;}
while(elm);return realTop;},getPageScroll:function()
{var pgYoff=window.pa... | 28,070 |
https://github.com/eFishery/react-gulp-laravel-boilerplate/blob/master/resources/assets/js/container/OrderContainer.js | Github Open Source | Open Source | MIT | null | react-gulp-laravel-boilerplate | eFishery | JavaScript | Code | 89 | 297 | import { connect } from 'react-redux'
import * as OrderActions from '../redux/OrderActions'
import OrderPage from '../component/OrderPage'
const mapStateToProps = (state) => {
return {
sectionNumber: state.orderPageSwitch.sectionNumber,
feederState: state.orderFeederUpdate
}
}
const mapDispatchToProps = (d... | 26,217 |
https://github.com/DearbhailRicePA/gateway-web/blob/master/src/pages/commonComponents/workflowReviewStepsModal/WorkflowReviewStepsModal.js | Github Open Source | Open Source | Apache-2.0 | 2,022 | gateway-web | DearbhailRicePA | JavaScript | Code | 476 | 1,408 | import React, { useState, useEffect, Fragment } from 'react';
import _ from 'lodash';
import uniqid from 'uniqid';
import { Modal } from 'react-bootstrap';
import ModalHeader from './ModalHeader';
import WorkflowReviewStep from './WorkflowReviewStep';
import { updateStepToggle } from '../../../utils/Workflows.util';
im... | 23,077 |
https://github.com/opxcms/admin-admins/blob/master/src/AdminAdmins.php | Github Open Source | Open Source | MIT | null | admin-admins | opxcms | PHP | Code | 76 | 189 | <?php
namespace Modules\Admin\Admins;
use Illuminate\Support\Facades\Facade;
/**
* @method static array getAdminsList()
* @method static array saveAdmin(array $admin)
* @method static string name()
* @method static string get($key)
* @method static string path($path = '')
* @method static array|string|nu... | 48,974 |
https://github.com/nortiero/sdl2_nim/blob/master/sdl2/private/rect.nim | Github Open Source | Open Source | Zlib | 2,017 | sdl2_nim | nortiero | Nim | Code | 522 | 1,159 | #
# Simple DirectMedia Layer
# Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
#
# This software is provided 'as-is', without any express or implied
# warranty. In no event will the authors be held liable for any damages
# arising from the use of this software.
#
# Permission is granted to anyone to us... | 50,636 |
https://github.com/Acidburn0zzz/antlr4cs/blob/master/runtime/CSharp/Antlr4.Runtime/Misc/Utils.cs | Github Open Source | Open Source | BSD-3-Clause | 2,022 | antlr4cs | Acidburn0zzz | C# | Code | 574 | 1,349 | /*
* [The "BSD license"]
* Copyright (c) 2013 Terence Parr
* Copyright (c) 2013 Sam Harwell
* 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... | 20,866 |
https://github.com/lauth/blockchain/blob/master/content/page.go | Github Open Source | Open Source | BSD-3-Clause | null | blockchain | lauth | Go | Code | 174 | 448 | package content
import (
"fmt"
"github.com/ponzu-cms/ponzu/management/editor"
"github.com/ponzu-cms/ponzu/system/item"
)
type Page struct {
item.Item
Title string `json:"title"`
Body string `json:"body"`
}
// MarshalEditor writes a buffer of html to edit a Page within the CMS
// and implements editor.Editab... | 739 |
https://github.com/mkpetrov/Programming-Fundamentals-SoftUni-Jan2017/blob/master/Exam Preparation/Spyfer/Spyfer.cs | Github Open Source | Open Source | MIT | null | Programming-Fundamentals-SoftUni-Jan2017 | mkpetrov | C# | Code | 99 | 325 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Spyfer
{
public class Spyfer
{
public static void Main()
{
var inputLine = Console.ReadLine().Split(new[] { ' ' }, StringSplitOptions.RemoveEmptyEntries).Se... | 50,606 |
https://github.com/qianchenzhumeng/matrix/blob/master/benches/lib.rs | Github Open Source | Open Source | Apache-2.0 | 2,021 | matrix | qianchenzhumeng | Rust | Code | 15 | 40 | #![feature(test)]
extern crate matrix;
extern crate random;
extern crate test;
#[cfg(feature = "accelerate")]
mod format;
| 3,875 |
https://github.com/aebadirad/mlhackathon/blob/master/starwars/src/app/search/search.component.ts | Github Open Source | Open Source | MIT | null | mlhackathon | aebadirad | TypeScript | Code | 121 | 380 | import { Component, OnInit } from '@angular/core';
import { FormGroup, FormControl } from '@angular/forms';
import { AppService } from '../app.service';
@Component({
selector: 'app-search',
templateUrl: './search.component.html',
styleUrls: ['./search.component.scss']
})
export class SearchComponent implements O... | 16,663 |
https://github.com/ezhivitsa/microservices-starter/blob/master/src/backend-services/authorization/src/tests/integration/cancel-registration.test.ts | Github Open Source | Open Source | MIT | 2,021 | microservices-starter | ezhivitsa | TypeScript | Code | 57 | 150 | import { cleanDB } from '../utils/db-utils';
import { registerUser, getUserById } from '../fixtures/users';
import { cancelRegistration } from '../commands';
describe('command /v1/cancel-registration', () => {
beforeAll(async () => {
await cleanDB();
});
it('should successfully delete user', async () => {
... | 11,102 |
https://github.com/joshua-curtis-smith/xdi2/blob/master/transport-http/src/main/java/xdi2/transport/impl/http/factory/MessagingTargetFactory.java | Github Open Source | Open Source | MIT | 2,014 | xdi2 | joshua-curtis-smith | Java | Code | 198 | 551 | package xdi2.transport.impl.http.factory;
import java.util.Iterator;
import xdi2.core.xri3.XDI3SubSegment;
import xdi2.messaging.exceptions.Xdi2MessagingException;
import xdi2.messaging.target.MessagingTarget;
import xdi2.transport.exceptions.Xdi2TransportException;
import xdi2.transport.impl.http.registry.HttpMessag... | 42,092 |
https://github.com/soongo/soon/blob/master/soon_test.go | Github Open Source | Open Source | MIT | 2,020 | soon | soongo | Go | Code | 79 | 223 | // Copyright 2020 Guoyao Wu. All rights reserved.
// Use of this source code is governed by a MIT style
// license that can be found in the LICENSE file.
package soon
import (
"testing"
"github.com/stretchr/testify/assert"
)
func TestApp_Run(t *testing.T) {
app, c := New(), make(chan struct{})
go func() {
c <... | 44,749 |
https://github.com/andreww/fox/blob/master/common/test/test_xml_namecheck_7.f90 | Github Open Source | Open Source | BSD-3-Clause | 2,021 | fox | andreww | Fortran Free Form | Code | 40 | 234 | program test
use m_common_charset, only : XML1_0, XML1_1
use m_common_struct, only : xml_doc_state
use m_common_namecheck, only : checkSystemID
implicit none
type(xml_doc_state) :: xds
write(*,'(l1)') checkSystemID('abcd')
write(*,'(l1)') checkSystemID('1abcd /"()+,/=?;!*#@$%')
write(*,'(l1)') checkS... | 413 |
https://github.com/paras55/officialWebsite/blob/master/officialWebsite/members/migrations/0007_member_email.py | Github Open Source | Open Source | MIT | null | officialWebsite | paras55 | Python | Code | 29 | 115 | # Generated by Django 2.2.8 on 2019-12-24 10:06
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('members', '0006_auto_20191224_1521'),
]
operations = [
migrations.AddField(model_name='member', name='email', field=models.EmailField(blank=... | 35,804 |
https://github.com/santiagobiach/Algo3_tp2/blob/master/src/main/java/edu/fiuba/algo3/controladores/botones/BotonReagruparHandler.java | Github Open Source | Open Source | MIT | null | Algo3_tp2 | santiagobiach | Java | Code | 136 | 719 | package edu.fiuba.algo3.controladores.botones;
import edu.fiuba.algo3.modelo.Juego;
import edu.fiuba.algo3.modelo.Pais;
import edu.fiuba.algo3.vistas.MenuFaseDeReagrupación;
import javafx.event.ActionEvent;
import javafx.event.EventHandler;
import javafx.scene.control.ComboBox;
import javafx.scene.control.Label;
impor... | 48,204 |
https://github.com/OpenQuake/backend/blob/master/app/app.php | Github Open Source | Open Source | Apache-2.0 | 2,017 | backend | OpenQuake | PHP | Code | 46 | 82 | <?php
/*
User application main file
This file is the main file of your application.
Inside this file you can develop your application or call an autoloader.
DO NOT DELETE THIS FILE otherwise your application will not be loaded.
*/
// Application main module
$azzurro->app("app", []); | 34,265 |
https://github.com/CoOwner/VisualPvP/blob/master/org/apache/maven/model/BuildBase.java | Github Open Source | Open Source | MIT | null | VisualPvP | CoOwner | Java | Code | 282 | 1,058 | package org.apache.maven.model;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
public class BuildBase
extends PluginConfiguration
implements Serializable, Cloneable
{
private String defaultGoal;
private List<Resource... | 37,000 |
https://github.com/S2-group/mobilesoft-2020-iam-replication-package/blob/master/dataset/Top APKs Java Files/com.chegal.alarm-com-chegal-alarm-rate-IntentHelper.java | Github Open Source | Open Source | MIT | 2,020 | mobilesoft-2020-iam-replication-package | S2-group | Java | Code | 661 | 2,506 | package com.chegal.alarm.rate;
import android.content.Context;
import android.content.Intent;
import android.content.pm.ApplicationInfo;
import android.content.pm.PackageManager;
import android.util.Log;
import androidx.annotation.NonNull;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Iterator;... | 22,161 |
https://github.com/apupier/wsdl2rest/blob/master/impl/src/main/java/org/jboss/fuse/wsdl2rest/impl/codegen/JavaTypeGenerator.java | Github Open Source | Open Source | Apache-2.0 | 2,017 | wsdl2rest | apupier | Java | Code | 132 | 498 | package org.jboss.fuse.wsdl2rest.impl.codegen;
import java.io.File;
import java.net.URL;
import java.nio.file.Path;
import org.apache.cxf.tools.common.ToolContext;
import org.apache.cxf.tools.common.model.JavaInterface;
import org.apache.cxf.tools.common.model.JavaModel;
import org.apache.cxf.tools.common.model.JavaS... | 28,806 |
https://github.com/billionshang/gem5/blob/master/build/x86/debug/VtoPhys.hh | Github Open Source | Open Source | BSD-3-Clause | 2,022 | gem5 | billionshang | C++ | Code | 28 | 80 | /*
* DO NOT EDIT THIS FILE! Automatically generated by SCons.
*/
#ifndef __DEBUG_VtoPhys_HH__
#define __DEBUG_VtoPhys_HH__
namespace Debug {
class SimpleFlag;
extern SimpleFlag VtoPhys;
}
#endif // __DEBUG_VtoPhys_HH__
| 11,839 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.