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/maestreparra/ember.js/blob/master/packages/ember-glimmer/lib/syntax/dynamic-component.js | Github Open Source | Open Source | MIT | 2,016 | ember.js | maestreparra | JavaScript | Code | 254 | 732 | import {
ArgsSyntax,
StatementSyntax,
GetSyntax,
PositionalArgsSyntax,
isComponentDefinition
} from 'glimmer-runtime';
import { UNDEFINED_REFERENCE } from 'glimmer-reference';
import { assert } from 'ember-metal/debug';
function dynamicComponentFor(vm) {
let env = vm.env;
let args = vm.getArgs();
... | 51,809 |
https://github.com/green-links/psr-16-adapter/blob/master/test/ClearTests.php | Github Open Source | Open Source | MIT | 2,021 | psr-16-adapter | green-links | PHP | Code | 68 | 311 | <?php
declare(strict_types=1);
namespace Test;
use GreenLinks\Psr16Adapter\Exception\GeneralException;
use Test\Base\Psr6TestCase;
use Exception;
class ClearTests extends Psr6TestCase
{
/**
* @test
*/
public function it_should_clear_cache(): void
{
$this
->pool
... | 3,675 |
https://github.com/marcelamsler/FasterThanLight/blob/master/src/main/java/com/zuehlke/carrera/javapilot/model/TrackPart.java | Github Open Source | Open Source | Apache-2.0 | null | FasterThanLight | marcelamsler | Java | Code | 88 | 281 | package com.zuehlke.carrera.javapilot.model;
import org.apache.commons.math3.stat.StatUtils;
import java.util.ArrayList;
public class TrackPart {
private ArrayList<Double> sensorValues;
private TrackType type;
public TrackPart(){
sensorValues = new ArrayList<>();
type = TrackType.UNK... | 23,695 |
https://github.com/xuanya4202/ew_base/blob/master/inc/ewa_base/threading/timer_queue.h | Github Open Source | Open Source | Apache-2.0 | 2,016 | ew_base | xuanya4202 | C++ | Code | 151 | 670 | #ifndef __H_EW_THREAD_TIMER_QUEUE__
#define __H_EW_THREAD_TIMER_QUEUE__
#include "ewa_base/threading/thread_pool.h"
EW_ENTER
class DLLIMPEXP_EWA_BASE TimerQueue;
class DLLIMPEXP_EWA_BASE ITimerHolder;
class DLLIMPEXP_EWA_BASE ITimer : public ObjectData
{
public:
friend class TimerQueue;
friend class ITimerHold... | 49,839 |
https://github.com/umgc/nasa.maestro.verifer/blob/master/app/model/TasksHandler.spec.js | Github Open Source | Open Source | MIT | 2,020 | nasa.maestro.verifer | umgc | JavaScript | Code | 263 | 956 | /* Specify environment to include mocha globals */
/* eslint-env node, mocha */
/* eslint-disable require-jsdoc */
'use strict';
const assert = require('chai').assert;
const TasksHandler = require('./TasksHandler');
const Procedure = require('./Procedure');
describe('TasksHandler', function() {
function makeDefin... | 8,292 |
https://github.com/AlexeyKashintsev/PlatypusJS/blob/master/application/src/lib/own/OpcDa/src/com/eas/opc/hda/dcom/OPCHDA_TIME.java | Github Open Source | Open Source | Apache-2.0 | 2,017 | PlatypusJS | AlexeyKashintsev | Java | Code | 126 | 531 | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.eas.opc.hda.dcom;
import com.eas.opc.da.dcom.FileTime;
import org.jinterop.dcom.common.JIException;
import org.jinterop.dcom.core.JIFlags;
import org.jinterop.dcom.core.JIPointer;
import org.jinterop.dcom.co... | 42,306 |
https://github.com/BlueQuartzSoftware/EbsdLib/blob/master/Source/Test/TestPrintFunctions.h | Github Open Source | Open Source | BSD-3-Clause | 2,023 | EbsdLib | BlueQuartzSoftware | C++ | Code | 405 | 1,292 | #pragma once
#include <cstdio>
#include <iostream>
#include <memory>
#include <sstream>
#include "EbsdLib/Core/EbsdDataArray.hpp"
#include "EbsdLib/Core/Quaternion.hpp"
static const std::string DCName("Orientation Transforms Test");
static const std::string AMName("Angles");
#define s_NumReps 8
std::string k_Input... | 45,274 |
https://github.com/DFE-Digital/schools-experience/blob/master/features/step_definitions/candidates/dashboard_steps.rb | Github Open Source | Open Source | MIT | 2,022 | schools-experience | DFE-Digital | Ruby | Code | 97 | 283 | Given("I visit the Dashboard page") do
visit candidates_dashboard_path
end
Then("I should be redirected to the candidate signin page") do
expect(page.current_path).to eql(candidates_signin_path)
end
Given("I am on the candidate signin page") do
visit candidates_dashboard_path
expect(page.current_path).to eql(... | 8,780 |
https://github.com/ABDELHADY154/BE-Mshop/blob/master/resources/views/admin/inventory/table-actions.blade.php | Github Open Source | Open Source | MIT | null | BE-Mshop | ABDELHADY154 | PHP | Code | 23 | 106 | <a href="{{ route('admin.inventories.show', $model->id) }}" class="btn btn-info">Show</a>
<a href="{{ route('admin.inventories.edit', $model->id) }}" class="btn btn-dark">Edit</a>
<button type="button" class="btn btn-danger delete"
data-url="{{ route('admin.inventories.destroy', $model->id) }}">Delete</button>
| 47,925 |
https://github.com/aliyun/alibabacloud-java-sdk/blob/master/datav-outer-20190402/src/main/java/com/aliyun/datav_outer20190402/models/BatchCreateScreensByTemplatesResponseBody.java | Github Open Source | Open Source | Apache-2.0 | 2,023 | alibabacloud-java-sdk | aliyun | Java | Code | 174 | 730 | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.datav_outer20190402.models;
import com.aliyun.tea.*;
public class BatchCreateScreensByTemplatesResponseBody extends TeaModel {
@NameInMap("RequestId")
public String requestId;
@NameInMap("Screens")
public java.util.List<BatchCr... | 2,620 |
https://github.com/sean22922/Starbound-zh-TW_Mod/blob/master/npcs/mission/survivor.npctype.patch | Github Open Source | Open Source | MIT | 2,020 | Starbound-zh-TW_Mod | sean22922 | null | Spoken | 442 | 2,347 | [ {
"op" : "replace",
"path" : "/scriptConfig/dialog/follower/attack/default/default/0",
"value" : "我來對付他們!"
}, {
"op" : "replace",
"path" : "/scriptConfig/dialog/follower/attack/default/default/1",
"value" : "偷襲!"
}, {
"op" : "replace",
"path" : "/scriptConfig/dialog/follower/attack/default/default/2",... | 6,157 |
https://github.com/neotracker/neo-blockchain/blob/master/packages/neo-blockchain-core/src/invocationResult/InvocationResultBase.js | Github Open Source | Open Source | MIT | 2,018 | neo-blockchain | neotracker | JavaScript | Code | 107 | 357 | /* @flow */
import type { InvocationResult } from './InvocationResult';
import type { InvocationResultType } from './InvocationResultType';
import { BinaryReader, type BinaryWriter } from '../utils';
import {
type DeserializeWireBaseOptions,
type DeserializeWireOptions,
type SerializeWire,
type SerializableWire... | 48,511 |
https://github.com/tanhaichao/leopard/blob/master/topnb/topnb-profiler/src/main/java/io/leopard/topnb/thread/ClassifierImpl.java | Github Open Source | Open Source | Apache-2.0 | 2,019 | leopard | tanhaichao | Java | Code | 579 | 1,912 | package io.leopard.topnb.thread;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.ServiceLoader;
import java.util.Set;
public class ClassifierImpl implements Classifier {
// CONNECTION(90, "网络连接"), DAO(80, "Dao"), SERVICE(70, "Service"), TIMER(... | 11,773 |
https://github.com/alisw/AliRoot/blob/master/HLT/TPCLib/HWCFemulator/AliHLTTPCHWCFProcessorUnit.h | Github Open Source | Open Source | GPL-1.0-or-later | 2,023 | AliRoot | alisw | C++ | Code | 295 | 783 | //-*- Mode: C++ -*-
// $Id$
#ifndef ALIHLTTPCHWCFPROCESSORUNIT_H
#define ALIHLTTPCHWCFPROCESSORUNIT_H
//* This file is property of and copyright by the ALICE HLT Project *
//* ALICE Experiment at CERN, All rights reserved. *
//* See cxx source for full Copyright notice ... | 12,568 |
https://github.com/yohanes02/elearning2/blob/master/application/views/dialog/mahasiswa/nilaimhs_dialog.php | Github Open Source | Open Source | MIT | null | elearning2 | yohanes02 | PHP | Code | 237 | 1,217 | <?php $this->load->view('components/head'); ?>
<base href="<?= base_url(); ?>">
<?php $this->load->view('components/navbar'); ?>
<!--sidebar-menu-->
<li><a href="hmahasiswa/home"><i class="icon icon-home"></i> <span>Dashboard</span></a> </li>
<li><a href="hmahasiswa/soalmhs"><i class="icon icon-th-list"></i> <span>Soa... | 18,919 |
https://github.com/leannejdong/autocircuit/blob/master/include/eigenconv.h | Github Open Source | Open Source | BSD-2-Clause | 2,021 | autocircuit | leannejdong | C | Code | 115 | 437 |
#ifndef CIRCUIT_EIGENCONV_H
#define CIRCUIT_EIGENCONV_H
#include <vector>
#include </usr/include/eigen3/Eigen/Dense>
using namespace std;
using namespace Eigen;
inline MatrixXf makeEigenMatrixFromVectors(const vector<vector<float>> &matvalues)
{
size_t n_rows = matvalues.size();
size_t n_cols = matvalues[0].... | 21,296 |
https://github.com/TobiasWehrum/planets-and-pickups/blob/master/Assets/Scripts/Ingame/Planet.cs | Github Open Source | Open Source | Unlicense | 2,022 | planets-and-pickups | TobiasWehrum | C# | Code | 74 | 200 | using UnityEngine;
using Zenject;
namespace MiniPlanetDefense
{
/// <summary>
/// A planet with a radius (and gravity as computed by the <see cref="PhysicsHelper"/>.
/// </summary>
public class Planet : MonoBehaviour
{
[Inject] PhysicsHelper physicsHelper;
public float Radi... | 13,944 |
https://github.com/tacoberu/application/blob/master/tests/Routers/SimpleRouter.module.phpt | Github Open Source | Open Source | BSD-3-Clause | null | application | tacoberu | PHP | Code | 64 | 286 | <?php
/**
* Test: Nette\Application\Routers\SimpleRouter and modules.
*/
declare(strict_types=1);
use Nette\Application;
use Nette\Http;
use Tester\Assert;
require __DIR__ . '/../bootstrap.php';
$router = @new Application\Routers\SimpleRouter([ // @ is deprecated
'module' => 'main:sub',
]);
$url = new Http\U... | 49,736 |
https://github.com/ICESAT-2HackWeek/Assimilation/blob/master/simlib/atl06lib.py | Github Open Source | Open Source | BSD-3-Clause | 2,020 | Assimilation | ICESAT-2HackWeek | Python | Code | 798 | 2,674 | from pathlib import Path
import pyproj
from astropy.time import Time
import h5py
import numpy as np
def gps2dyr(time):
"""Converte GPS time to decimal years."""
return Time(time, format='gps').decimalyear
def orbit_type(time, lat, tmax=1):
"""Separate tracks into ascending and descending.
Define... | 2,654 |
https://github.com/balmorelcommunity/Balmorel/blob/master/base/addons/offshoregrid/bb4/offshoregrid_isetdecdef.inc | Github Open Source | Open Source | ISC | 2,022 | Balmorel | balmorelcommunity | null | Spoken | 57 | 294 | *Offshore grid add-on. Implemented by Juan Gea Bermudez 2019
SET IGKN_ES(GGG) "Technologies lines whose cost depends on economy of scale";
SET IXKN_ES(IRRRE,IRRRI) "Transmission lines whose cost depends on economy of scale";
SET IGHUB(G) "Hub technologies";
IGKN_ES(GGG)$SUM(XES,GKN_ES(GGG,XES))=YES... | 46,611 |
https://github.com/monokoo/Flexget/blob/master/flexget/plugins/cli/archive.py | Github Open Source | Open Source | MIT | null | Flexget | monokoo | Python | Code | 864 | 2,799 | from __future__ import unicode_literals, division, absolute_import
import logging
import re
from builtins import * # noqa pylint: disable=unused-import, redefined-builtin
from collections import defaultdict
from datetime import datetime
from flexget import options
from flexget import plugin
from flexget.entry import... | 21,225 |
https://github.com/jordanfly/JBWAPI/blob/master/src/main/java/bwem/Markable.java | Github Open Source | Open Source | MIT | null | JBWAPI | jordanfly | Java | Code | 153 | 360 | // Original work Copyright (c) 2015, 2017, Igor Dimitrijevic
// Modified work Copyright (c) 2017-2018 OpenBW Team
//////////////////////////////////////////////////////////////////////////
//
// This file is part of the BWEM Library.
// BWEM is free software, licensed under the MIT/X11 License.
// A copy of the licens... | 51,912 |
https://github.com/AndrewPaglusch/Plex-Duplicate-Stream-Killer/blob/master/app/run.py | Github Open Source | Open Source | MIT | 2,023 | Plex-Duplicate-Stream-Killer | AndrewPaglusch | Python | Code | 1,182 | 3,952 | #!/usr/bin/env python3
import sys
import os
import requests
import json
import time
import logging
import ipaddress
from datetime import datetime
from configparser import ConfigParser
def get_streams(plex_url, plex_token):
try:
r = requests.get(f"{plex_url}/status/sessions?X-Plex-Token={plex_token}", head... | 34,991 |
https://github.com/MateusAmin/requests-aws-sign/blob/master/clean.sh | Github Open Source | Open Source | Apache-2.0 | 2,021 | requests-aws-sign | MateusAmin | Shell | Code | 33 | 80 | #!/bin/sh
rm -rf ./build/
rm -rf ./dist/
rm -rf ./requests_aws_iam_auth.egg-info/
# If HOST_PATH is unset pytest will recreate the testing infrastructure. There maybe a better way to signal this.
unset HOST_PATH
pyclean . | 25,382 |
https://github.com/Global19-atlassian-net/OpenJij/blob/master/docs/html/search/variables_3.js | Github Open Source | Open Source | Apache-2.0 | 2,020 | OpenJij | Global19-atlassian-net | JavaScript | Code | 5 | 93 | var searchData=
[
['dev_5frandom_549',['dev_random',['../structopenjij_1_1system_1_1_chimera_transverse_g_p_u.html#a2fa1047ca8ede6e1654656f0af83a290',1,'openjij::system::ChimeraTransverseGPU']]]
];
| 2,718 |
https://github.com/mihandi/maryna.loc/blob/master/common/models/Functions.php | Github Open Source | Open Source | BSD-3-Clause | null | maryna.loc | mihandi | PHP | Code | 598 | 2,469 | <?php
namespace common\models;
class Functions {
public static function pretty_var_dump($var, $args = array()) {
$defautls = array(
'before_table_text' => '',
'min_width' => 250,
'skip_int_indices' => false,
'dump_values' => true,
'depth' => 0,
... | 32,983 |
https://github.com/imorph/vector/blob/master/docs/cue/reference/components/transforms/grok_parser.cue | Github Open Source | Open Source | MPL-2.0 | 2,021 | vector | imorph | null | Spoken | 246 | 988 | package metadata
components: transforms: grok_parser: {
title: "Grok Parser"
description: """
Parses a log field value with [Grok](\(urls.grok)).
"""
classes: {
commonly_used: false
development: "deprecated"
egress_method: "stream"
stateful: false
}
features: {
parse: {
format: {
na... | 32,158 |
https://github.com/Sage-Bionetworks/portals/blob/master/src/portal-components/csbc-home-page/AboutPortal.tsx | Github Open Source | Open Source | Apache-2.0 | 2,023 | portals | Sage-Bionetworks | TSX | Code | 52 | 140 | import * as React from 'react'
import { HomePageCardProps } from './HomePageCard'
import HomePageCardContainer from './HomePageCardContainer'
export type AboutPortalProps = {
cardProps: HomePageCardProps[]
}
const AboutPortal = (props: AboutPortalProps) => {
const { cardProps } = props
return (
<div classNa... | 22,490 |
https://github.com/artemrizhov/django-mail-templated/blob/master/mail_templated/templates/mail_templated_test/base.tpl | Github Open Source | Open Source | MIT | 2,021 | django-mail-templated | artemrizhov | null | Spoken | 31 | 60 | {% extends "mail_templated/base.tpl" %}
{% block subject %}
Hello {{ name }}
{% endblock %}
{% block body %}
{{ name }}, this is a plain text message.
{% endblock %}
| 46,631 |
https://github.com/sarang-apps/darshan_browser/blob/master/chrome/browser/prerender/isolated/isolated_prerender_features.h | Github Open Source | Open Source | BSD-3-Clause-No-Nuclear-License-2014, BSD-3-Clause | null | darshan_browser | sarang-apps | C | Code | 54 | 203 | // Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_PRERENDER_ISOLATED_ISOLATED_PRERENDER_FEATURES_H_
#define CHROME_BROWSER_PRERENDER_ISOLATED_ISOLATED_PRERENDER_FEATURES_H_
#includ... | 39,755 |
https://github.com/jsdelivrbot/dockerfiles-1/blob/master/data/f/filo/neuropower/Dockerfile | Github Open Source | Open Source | MIT | 2,018 | dockerfiles-1 | jsdelivrbot | Dockerfile | Code | 42 | 136 | FROM continuumio/miniconda
ENV PYTHONUNBUFFERED 1
RUN mkdir /code
WORKDIR /code
ADD requirements.txt /code/
RUN conda install scipy==0.17.0 pandas==0.17.1 numpy==1.10.4 matplotlib==1.5.1
psycopg2
RUN conda uninstall pyparsing wheel
RUN pip install -r requirements.txt
RUN apt-get install -y build-esse... | 19,321 |
https://github.com/dirtybug/staller/blob/master/src/os/commands/cd.java | Github Open Source | Open Source | Apache-2.0 | null | staller | dirtybug | Java | Code | 36 | 100 | package os.commands;
import os.Commands;
import os.OSsimulator;
public class cd extends Commands{
public static String Name="cd";
public cd( OSsimulator OS) {
super(Name, OS);
}
@Override
public void Action(String[] command) {
// TODO Auto-generated method stub
}
}
| 39,213 |
https://github.com/xiaocat963/symphony/blob/master/src/main/java/org/b3log/symphony/service/ActivityQueryService.java | Github Open Source | Open Source | Apache-2.0 | 2,015 | symphony | xiaocat963 | Java | Code | 387 | 1,096 | /*
* Copyright (c) 2012-2015, b3log.org
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ag... | 32,220 |
https://github.com/sgabello1/calibration/blob/master/camera_projector_sim.m | Github Open Source | Open Source | BSD-2-Clause | 2,015 | calibration | sgabello1 | MATLAB | Code | 141 | 530 | %% Camera Projector
clear
clc
C = CentralCamera('default');
% adding some traslation to the camera
C.T(3,4) = 10;
% laser points in laser coordinates
Ap = [1,1,0,0];
Bp = [2,1,0,0];
Cp = [2,2,0,0];
Dp = [1,2,0,0];
%
%ap = [-2,2];
%bp = [2,2];
%cp = [2,-2];
%dp = [-2,-2];
% Projector matrix is an identity (3x4)
... | 35,253 |
https://github.com/CeoFred/wayfarer/blob/master/test/bookings.test.js | Github Open Source | Open Source | MIT | 2,019 | wayfarer | CeoFred | JavaScript | Code | 102 | 367 | const chai = require('chai');
const chaiHttp = require('chai-http');
const server = require('../bin/www');
const { expect } = chai;
// const db = require('../app/config/db');
chai.use(chaiHttp);
// describe('Bookings', () => {
// it('Should throw trip not found error', (done) => {
// chai.request(server.server... | 28,929 |
https://github.com/Pavel2202/ASPNETCoreProject/blob/master/FitnessSite/FitnessSite/Data/Models/Product.cs | Github Open Source | Open Source | MIT | 2,022 | ASPNETCoreProject | Pavel2202 | C# | Code | 85 | 208 | namespace FitnessSite.Data.Models
{
using FitnessSite.Data.Models.Enums;
using System.ComponentModel.DataAnnotations;
using static DataConstants;
public class Product
{
[Key]
public int Id { get; set; }
[Required]
[MaxLength(ProductNameMaxLength)]
public st... | 43,767 |
https://github.com/whantt/k8s-java-debug-daemon/blob/master/go.mod | Github Open Source | Open Source | Apache-2.0 | 2,020 | k8s-java-debug-daemon | whantt | Go Module | Code | 21 | 120 | module javaDebugDaemon
go 1.14
require (
github.com/gin-gonic/gin v1.6.2
github.com/golang/protobuf v1.4.0 // indirect
golang.org/x/sys v0.0.0-20200420163511-1957bb5e6d1f // indirect
k8s.io/api v0.17.0
k8s.io/client-go v0.17.0
)
| 34,088 |
https://github.com/YuriyLisovskiy/ProgrAndSupportOfWebApps/blob/master/views/index.jade | Github Open Source | Open Source | MIT | null | ProgrAndSupportOfWebApps | YuriyLisovskiy | null | Spoken | 189 | 999 | extends includes/layout
block title
title Art Store | Goods
block head
link(rel="stylesheet", href="/static/css/index.css")
script(src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js")
block body
if open_login
div(class="alert alert-info", style="text-align: center;")
strong Your ... | 13,999 |
https://github.com/Lazydd/ddlazy-ui/blob/master/packages/dd-form-item/index.js | Github Open Source | Open Source | MIT | null | ddlazy-ui | Lazydd | JavaScript | Code | 21 | 81 | // 导入组件
import ddFormItem from "./src";
// 为组件提供install安装方法,供按需引入
ddFormItem.install = Vue => {
Vue.component(ddFormItem.name, ddFormItem)
}
// 暴露组件
export default ddFormItem | 435 |
https://github.com/dhinojosa/generics-study/blob/master/src/main/scala/com/xyzcorp/ScalaBox.scala | Github Open Source | Open Source | Apache-2.0 | 2,019 | generics-study | dhinojosa | Scala | Code | 105 | 301 | package com.xyzcorp
class ScalaBox[+E](val e: E) {
def map[U](f: E => U): ScalaBox[U]
= new ScalaBox(f.apply(e))
}
object ScalaCollectionUtil {
def myMax[A <: Comparable[A]](list: List[A]): Option[A] = {
var result: A = list.head
if (list.isEmpty) None
else {
for (item <- list.tail) {
... | 43,193 |
https://github.com/kaiserdem/FriendlyChat/blob/master/FriendlyChat/Controller/AuthVC.swift | Github Open Source | Open Source | MIT | null | FriendlyChat | kaiserdem | Swift | Code | 85 | 265 | //
// AuthVC.swift
// FriendlyChat
//
// Created by Kaiserdem on 25.08.2019.
// Copyright © 2019 Kaiserdem. All rights reserved.
//
import UIKit
import Firebase
class AuthVC: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
}
override func viewDidAppear(_ animated: B... | 666 |
https://github.com/salem84/github-actions-pills/blob/master/src/pages/about.js | Github Open Source | Open Source | MIT | null | github-actions-pills | salem84 | JavaScript | Code | 141 | 418 | import React from 'react';
import { graphql } from 'gatsby';
import Global from '../styles/global';
import Branding from '../components/Branding';
import Footer from '../components/Footer';
import Header from '../components/Header';
import Heading from '../components/Heading';
import Article from '../components/Artic... | 30,716 |
https://github.com/jesse-holden/express-typescript-starter/blob/master/src/infrastructure/abstracts/EntityBase.ts | Github Open Source | Open Source | MIT | 2,021 | express-typescript-starter | jesse-holden | TypeScript | Code | 15 | 28 | import { BaseEntity } from 'typeorm';
export abstract class EntityBase extends BaseEntity {
//
}
| 43,101 |
https://github.com/jnthn/intellij-community/blob/master/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/trivialFunctionalExpressionUsage/afterPassArgs.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | intellij-community | jnthn | Java | Code | 24 | 56 | // "Replace method call on method reference with corresponding method call" "true"
import java.util.function.ToIntFunction;
class Test {
{
int i = Integer.parseInt("123");
}
}
| 26,105 |
https://github.com/jesonzhong/Unity-SkillEditor/blob/master/SkillEditor/Assets/SkillEditor/Runtime/Timeline/JTimelineSound.cs | Github Open Source | Open Source | MIT | 2,017 | Unity-SkillEditor | jesonzhong | C# | Code | 506 | 1,767 | using UnityEngine;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
namespace CySkillEditor
{
public class JTimelineSound : JTimelineBase
{
[SerializeField]
private List<JSoundTrack> soundTracks = new List<JSoundTrack>();
public List<JSoundTra... | 37,242 |
https://github.com/ztalbot2000/homebridge-cmd4/blob/master/index.js | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, Apache-2.0 | 2,023 | homebridge-cmd4 | ztalbot2000 | JavaScript | Code | 347 | 933 | "use strict";
//
// Homebridge
// Flow / \
// / \
// api.registerPlatform api.registerAccessory
// forEach Accessories{ } Any { } before/after Accessories{ }
// Cmd4Platform ... | 16,355 |
https://github.com/Aviara/Headsolve/blob/master/admin/assets/js/valid.js | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, MIT | 2,016 | Headsolve | Aviara | JavaScript | Code | 15 | 40 | $(document).ready(function () {
$("#firstname").click(function () {
//alert("this alert is on textbox blue event");
});
}); | 20,081 |
https://github.com/nodashin/DesignPatternTraning/blob/master/DesignPatternTraning/Composite/Sample/FileTreatmebtException.cs | Github Open Source | Open Source | MIT | null | DesignPatternTraning | nodashin | C# | Code | 47 | 151 | using System;
using System.Runtime.Serialization;
namespace Composite.Sample
{
[Serializable]
internal class FileTreatmebtException : Exception
{
public FileTreatmebtException()
{
}
public FileTreatmebtException(string message) : base(message)
{
}
... | 42,411 |
https://github.com/araobp/unity-humanoid/blob/master/unity/BabyStroller/Assets/Scenes/Basic.unity.meta | Github Open Source | Open Source | Apache-2.0 | 2,021 | unity-humanoid | araobp | Unity3D Asset | Code | 10 | 59 | fileFormatVersion: 2
guid: c7ffe0090b5c9a04fb4e531678bf6be3
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
| 1,848 |
https://github.com/LordHaplo/lordhaplo.github.io/blob/master/src/modules/itemgen.js | Github Open Source | Open Source | MIT | null | lordhaplo.github.io | LordHaplo | JavaScript | Code | 1,781 | 4,402 | import Npc from '../chars/npc';
import Wearable from "../instances/wearable";
import { includesAny} from 'objecty';
import Percent from '../values/percent';
import Item from '../instances/item';
import GenGroup from '../genGroup';
import { pushNonNull } from '../util/array';
import GData from '../items/gdata';
import {... | 15,350 |
https://github.com/negz/voyager/blob/master/pkg/releases/model.go | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-generic-cla, LicenseRef-scancode-unknown-license-reference | 2,019 | voyager | negz | Go | Code | 558 | 1,881 | package releases
import (
"time"
"github.com/atlassian/voyager"
"github.com/atlassian/voyager/pkg/releases/deployinator/client"
"github.com/atlassian/voyager/pkg/releases/deployinator/client/resolve"
"github.com/atlassian/voyager/pkg/releases/deployinator/models"
"github.com/atlassian/voyager/pkg/util/logz"
"g... | 21,924 |
https://github.com/ivanagui2/hermesmail-code/blob/master/Eudora71/Eudora/MAPIImport.cpp | Github Open Source | Open Source | BSD-3-Clause-Clear | 2,019 | hermesmail-code | ivanagui2 | C++ | Code | 6,011 | 23,249 | // MAPIImport.cpp
//
// Copyright (c) 1997-2001 by QUALCOMM, Incorporated
/* Copyright (c) 2016, Computer History Museum
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted (subject to
the limitations in the disclaimer below) provided that the following... | 49,195 |
https://github.com/victorgalvez56/marpro1/blob/master/app/Http/Controllers/Tenant/ConfigurationMailServerController.php | Github Open Source | Open Source | MIT | null | marpro1 | victorgalvez56 | PHP | Code | 208 | 785 | <?php
namespace App\Http\Controllers\Tenant;
use App\CoreBizag\Core\Utilities\ResponseHelpers;
use App\Http\Controllers\Controller;
use App\Http\Resources\Tenant\ConfigurationMailServerCollection;
use App\Http\Resources\Tenant\ConfigurationMailServerResource;
use App\Models\Tenant\ConfigurationMailServer;
use Illumin... | 48,668 |
https://github.com/peak/s5cmd/blob/master/main.go | Github Open Source | Open Source | MIT | 2,023 | s5cmd | peak | Go | Code | 33 | 126 | package main
import (
"context"
"os"
"os/signal"
"syscall"
"github.com/peak/s5cmd/v2/command"
)
func main() {
ctx, cancel := signal.NotifyContext(context.Background(), os.Interrupt, syscall.SIGTERM)
defer cancel()
if err := command.Main(ctx, os.Args); err != nil {
os.Exit(1)
}
}
| 27,322 |
https://github.com/TechnologyEnhancedLearning/DLSV2/blob/master/DigitalLearningSolutions.Web/ViewModels/TrackingSystem/Centre/Configuration/EditCentreManagerDetailsViewModel.cs | Github Open Source | Open Source | MIT | 2,022 | DLSV2 | TechnologyEnhancedLearning | C# | Code | 146 | 380 | namespace DigitalLearningSolutions.Web.ViewModels.TrackingSystem.Centre.Configuration
{
using System.ComponentModel.DataAnnotations;
using DigitalLearningSolutions.Data.Models;
using DigitalLearningSolutions.Web.Attributes;
public class EditCentreManagerDetailsViewModel
{
public EditCentreM... | 27,540 |
https://github.com/azhirnov/GraphicsGenFramework-modular/blob/master/EngineTests/Platforms.GAPI/Compiler/Pipelines/inlineall.cpp | Github Open Source | Open Source | BSD-2-Clause | 2,020 | GraphicsGenFramework-modular | azhirnov | C++ | Code | 2,724 | 11,191 | // This is generated file
// Origin file: 'Compiler/Pipelines/InlineAll.ppln'
#include "all_pipelines.h"
// C++ shader
#ifdef GRAPHICS_API_SOFT
namespace SWShaderLang {
namespace {
# define INOUT
# define IN
# define OUT
struct InlineAll_SSBO
{
SArr<UInt,16> results;
InlineAll_SSBO () {}
InlineAll_SSBO (Inl... | 41,060 |
https://github.com/chenlizan/quickdev-design/blob/master/src/components/StyleField/Margin.tsx | Github Open Source | Open Source | MIT | 2,021 | quickdev-design | chenlizan | TSX | Code | 189 | 586 | import * as React from "react";
import Collapse from "antd/lib/collapse";
import Radio, { RadioChangeEvent } from "antd/lib/radio";
import BoxModel from "./common/BoxModel";
const Panel = Collapse.Panel;
const RadioButton = Radio.Button;
const RadioGroup = Radio.Group;
export interface BorderProps {
className?: str... | 50,698 |
https://github.com/banana0616/flashbot/blob/master/.gitignore | Github Open Source | Open Source | MIT | 2,020 | flashbot | banana0616 | Ignore List | Code | 22 | 64 | # node modules
node_modules/
# Settings
token.json
config.js
# JSON Database
data/jsondb
# Other
.vscode
debug.log
# Swap file (Vim)
*.swp
*.swo
| 49,755 |
https://github.com/luohe/contest.js/blob/master/functional.ts | Github Open Source | Open Source | MIT | 2,021 | contest.js | luohe | TypeScript | Code | 185 | 476 | function create2DArray<T> (N: number, M: number, n: T): T[][] {
// https://stackoverflow.com/a/39879146/8242705
// `empty` will be skipped in `map`, so we need destruct & create an `undefined` array
return [...Array(N)].map(() => Array(M).fill(n))
}
function create3DArray<T> (N: number, M: number, L: number, n: ... | 11,267 |
https://github.com/MurmurationsNetwork/MurmurationsServices/blob/master/common/resterr/resterr.go | Github Open Source | Open Source | MIT | 2,021 | MurmurationsServices | MurmurationsNetwork | Go | Code | 112 | 355 | package resterr
import "net/http"
type RestErr interface {
Message() string
Status() int
}
type restErr struct {
ErrMessage string `json:"message,omitempty"`
ErrStatus int `json:"status,omitempty"`
ErrCauses []interface{} `json:"causes,omitempty"`
}
func (e restErr) Message() string {
retur... | 27,240 |
https://github.com/Melvintehu/hmvactis-5.3/blob/master/app/Http/Controllers/Auth/AuthController.php | Github Open Source | Open Source | MIT | null | hmvactis-5.3 | Melvintehu | PHP | Code | 365 | 1,288 | <?php
namespace App\Http\Controllers\Auth;
use App\User;
use App\Profile;
use Auth;
use Validator;
use App\Http\Controllers\Controller;
use Illuminate\Foundation\Auth\ThrottlesLogins;
use Illuminate\Foundation\Auth\AuthenticatesAndRegistersUsers;
use App\Http\Controllers\MailController;
class AuthController extends... | 21,013 |
https://github.com/Twinklebear/ispc/blob/master/examples/portable/genx/sgemm/Matrix.h | Github Open Source | Open Source | BSD-3-Clause | 2,022 | ispc | Twinklebear | C | Code | 852 | 2,096 | /*
* Copyright (c) 2019-2020, Intel Corporation
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, me... | 24,531 |
https://github.com/benlhy/TIVA-Motion-Module/blob/master/TIVA code/system.h | Github Open Source | Open Source | MIT | 2,021 | TIVA-Motion-Module | benlhy | C | Code | 43 | 140 | /*
* system.h
*
* Created on: May 5, 2018
* Author: Ben
*/
#ifndef SYSTEM_H_
#define SYSTEM_H_
#include "can.h"
#include "motor.h"
#include "timer.h"
#include "uart.h"
#include "includes.h"
#include "gen_algo.h"
void delayMS(int ms);
void sysInit(void);
void initAll(void);
void GPIOconfig(void);
#end... | 10,617 |
https://github.com/wadejong/NWChem-Json/blob/master/src/nwpw/band/kbpp/integrate_kbpp_band_local.F | Github Open Source | Open Source | ECL-2.0 | 2,017 | NWChem-Json | wadejong | null | Spoken | 581 | 3,001 | *
* $Id: integrate_kbpp_band_local.F 26425 2014-12-03 20:02:22Z bylaska $
*
subroutine integrate_kbpp_band_local(version,
> nrho,drho,lmax,locp,zv,
> vp,wp,rho,f,cs,sn,
> nfft1,nfft2,nfft3,lmmax,
> ... | 40,924 |
https://github.com/Landers1037/mgek_imgbed/blob/master/app/utils/rename_test.py | Github Open Source | Open Source | Apache-2.0 | 2,021 | mgek_imgbed | Landers1037 | Python | Code | 105 | 408 | # -*- coding: utf-8 -*-
# @Author: Landers
# @Github: Landers1037
# @File: rename_test.py
# @Date: 2020-05-14
# rename test
from base64 import b64encode
from hashlib import md5
import time
def access_ext_test(name):
#用于扩展名称的获取
ALLOW_SET = ['jpg', 'jpeg', 'png', 'webp', 'gif']
li = name.split('.')
if... | 31,873 |
https://github.com/TatsuoWatanabe/TooSimpleTodo/blob/master/.gitignore | Github Open Source | Open Source | Apache-2.0 | 2,014 | TooSimpleTodo | TatsuoWatanabe | Ignore List | Code | 8 | 32 | .DS_Store
build.log
build
npm-debug.log
tmp
.mapResources
tiapp.xml
Resources
| 20,363 |
https://github.com/trosendal/source_attribution_simulation/blob/master/inst/bacmeta/src/Pop.cpp | Github Open Source | Open Source | BSD-3-Clause | null | source_attribution_simulation | trosendal | C++ | Code | 5,527 | 20,805 | #include "Pop.h"
#include "Superpop.h"
#include "Bac.h"
#include "Para.h"
#include <random>
#include <algorithm>
#include <map>
#include <forward_list>
#include <sstream>
#include <memory>
#include <unordered_set>
#include <unordered_map>
#include <stdint.h>
using namespace std;
Pop::Pop(int nbacteria, int nrgenes, ... | 39,506 |
https://github.com/SecretFoundation/SecretHub/blob/master/src/components/Box.js | Github Open Source | Open Source | MIT | 2,022 | SecretHub | SecretFoundation | JavaScript | Code | 18 | 51 | import styled from 'styled-components';
import { spacing, palette } from '@material-ui/system';
const Box = styled.div`${spacing}${palette}`;
export default Box; | 3,094 |
https://github.com/JHay0112/jmath/blob/master/jmath/abstract/lists.py | Github Open Source | Open Source | MIT | 2,021 | jmath | JHay0112 | Python | Code | 568 | 1,331 | '''
List data types.
'''
# - Imports
from typing import Any, List
# - Classes
class Node:
"""
Node of a list.
Parameters
----------
data
Data stored by the node.
next
Reference to next piece node of the list.
"""
def __init__(self, da... | 30,545 |
https://github.com/ncaudill27/the-library-frontend/blob/master/src/containers/book.js | Github Open Source | Open Source | MIT | null | the-library-frontend | ncaudill27 | JavaScript | Code | 77 | 375 | import React, { useState } from "react"
import BookShow from "./bookShow"
import BookPreview from "../components/bookPreview"
function Book({
src,
title,
author,
isbn13,
description,
clubsCurrentUserMods,
}) {
const [showing, showingSet] = useState(false)
const toggleShowing = () => showingSet(!showin... | 18,651 |
https://github.com/Andreas237/AndroidPolicyAutomation/blob/master/ExtractedJars/RT_News_com.rt.mobile.english/javafiles/com/crashlytics/android/core/MetaDataStore.java | Github Open Source | Open Source | MIT | 2,019 | AndroidPolicyAutomation | Andreas237 | Java | Code | 2,619 | 9,484 | // Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) annotate safe
package com.crashlytics.android.core;
import io.fabric.sdk.android.Fabric;
import io.fabric.sdk.android.Logger;
import io.fabric.sdk.android.services.comm... | 22,085 |
https://github.com/ministryofjustice/prison-api/blob/master/src/main/java/uk/gov/justice/hmpps/prison/api/model/AddressUsageDto.java | Github Open Source | Open Source | MIT | 2,022 | prison-api | ministryofjustice | Java | Code | 94 | 287 | package uk.gov.justice.hmpps.prison.api.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
@ApiModel(descriptio... | 41,356 |
https://github.com/Hrishi5/ACI-EnhancedEndpointTracker/blob/master/Service/tests/ept/test_dependency.py | Github Open Source | Open Source | 2,018 | ACI-EnhancedEndpointTracker | Hrishi5 | Python | Code | 1,617 | 7,031 |
import logging
import pytest
import time
from app.models.aci.fabric import Fabric
from app.models.aci.ept.ept_epg import eptEpg
from app.models.aci.ept.ept_node import eptNode
from app.models.aci.ept.ept_subnet import eptSubnet
from app.models.aci.ept.ept_tunnel import eptTunnel
from app.models.aci.ept.ept_vnid impo... | 42,922 | |
https://github.com/SpirentOrion/osv/blob/master/bsd/cddl/contrib/opensolaris/cmd/zpool/zpool_vdev.c | Github Open Source | Open Source | BSD-3-Clause | 2,020 | osv | SpirentOrion | C | Code | 5,296 | 15,025 | /*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolar... | 46,766 |
https://github.com/markymarkmk2/VSMGui/blob/master/src/de/dimm/vsm/vaadin/GuiElems/preview/JarFileResource.java | Github Open Source | Open Source | Apache-2.0 | null | VSMGui | markymarkmk2 | Java | Code | 217 | 659 | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package de.dimm.vsm.vaadin.GuiElems.preview;
import com.vaadin.Application;
import com.vaadin.service.FileTypeResolver;
import com.vaadin.terminal.ApplicationResource;
import com.vaadin.terminal.DownloadStream;
import c... | 16,552 |
https://github.com/johnament/incubator-usergrid/blob/master/stack/tools/src/main/java/org/apache/usergrid/tools/ImportAdmins.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | incubator-usergrid | johnament | Java | Code | 1,652 | 4,070 | /*
* 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 ... | 12,918 |
https://github.com/l4u/ios/blob/master/appMobiLib/Classes/DirectCanvas/Graphics/FloatPoint.cpp | Github Open Source | Open Source | MIT | 2,022 | ios | l4u | C++ | Code | 35 | 120 | /*
* FloatPoint.cpp
* appLab
*
* Copyright 2011 None. All rights reserved.
*
*/
#include "FloatPoint.h"
#include <QuartzCore/QuartzCore.h>
FloatPoint::FloatPoint(const CGPoint& p) : m_x(p.x), m_y(p.y)
{
}
FloatPoint::operator CGPoint() const
{
return CGPointMake(m_x, m_y);
}
| 25,904 |
https://github.com/agespino/NYTimesSearch/blob/master/NYTimesSearch3/app/src/main/java/com/example/aespino/nytimessearch/ArticleArrayAdapter.java | Github Open Source | Open Source | Apache-2.0 | null | NYTimesSearch | agespino | Java | Code | 115 | 514 | package com.example.aespino.nytimessearch;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.text.TextUtils;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import androi... | 2,327 |
https://github.com/ejh243/BrainFANS/blob/master/sequencing/ATACSeq/preprocessing/searchBestGenoMatch.sh | Github Open Source | Open Source | Artistic-2.0 | 2,023 | BrainFANS | ejh243 | Shell | Code | 22 | 158 |
sampleName=$1
sampleName=${sampleName%.selfSM}
vcfid=$2
vcfid="${vcfid%"${vcfid##*[![:space:]]}"}"
cd ${ALIGNEDDIR}/
echo "processing" ${sampleName} "with" ${vcfid}
${VERIFYBAMID} --vcf ${GENODIR}/hg38/allchr_filt_rsq_maf.vcf.gz --bam baseRecalibrate/${sampleName}_baserecal.bam --out genotypeConcordance/${sample... | 50,862 |
https://github.com/risnadesmayanti/program2-spk/blob/master/inoerp/extensions/ino_user/login/user_login_template.php | Github Open Source | Open Source | MIT | null | program2-spk | risnadesmayanti | PHP | Code | 26 | 130 | <?php include_once(__DIR__.'/../../../includes/template/header_public.inc'); ?>
<link href="<?php echo HOME_URL ?>extensions/ino_user/user.css" media="all" rel="stylesheet" type="text/css" />
<script type='text/javascript' src="<?php echo HOME_URL ?>extensions/ino_user/user.js" ></script>
<?php require_once __DIR__.'/.... | 10,410 |
https://github.com/weihao/Core/blob/master/src/main/java/de/craftmania/dockerizedcraft/connection/balancer/command/GroupCommand.java | Github Open Source | Open Source | MIT | 2,020 | Core | weihao | Java | Code | 93 | 433 | package de.craftmania.dockerizedcraft.connection.balancer.command;
import de.craftmania.dockerizedcraft.connection.balancer.ConnectionBalancer;
import de.craftmania.dockerizedcraft.connection.balancer.model.Group;
import net.md_5.bungee.api.ChatColor;
import net.md_5.bungee.api.CommandSender;
import net.md_5.bungee.ap... | 25,844 |
https://github.com/wannvmi/Kdniao.Core/blob/master/official-demo/KdPrintOrderDemo(.NET)/PrintExample.aspx.cs | Github Open Source | Open Source | MIT | 2,020 | Kdniao.Core | wannvmi | C# | Code | 386 | 1,615 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace KdniaoWebsite.WebUI.External
{
public partial class PrintExample : System.Web.UI.Page
{
//电商ID,对应快递鸟EBusinessID
private string... | 10,588 |
https://github.com/dobos/pysynphot/blob/master/commissioning/acceptance/mark_array_ok.py | Github Open Source | Open Source | BSD-3-Clause | 2,022 | pysynphot | dobos | Python | Code | 373 | 1,050 | """I have also noticed a trend in a number of the failed cases that
involve array comparisons: the mean discrepancy is very small,
and there are a small number of significant outliers. At present,
such a test fails the rigorous criteria we are using. However,
I am thinking of writing a utility to identify these cases a... | 22,618 |
https://github.com/fcollonval/shooter/blob/master/space_invader/spaceship.py | Github Open Source | Open Source | CC0-1.0 | 2,019 | shooter | fcollonval | Python | Code | 418 | 1,655 | from itertools import cycle
import math
from random import choice
from kivy.animation import Animation
from kivy.clock import Clock
from kivy.core.image import Image as CoreImage
from kivy.properties import (
BooleanProperty,
NumericProperty,
ObjectProperty,
ReferenceListProperty,
)
from kivy.uix.relat... | 8,987 |
https://github.com/OData/odata.net/blob/master/test/FunctionalTests/Service/Microsoft/OData/Service/Providers/DataServiceExecutionProvider.cs | Github Open Source | Open Source | CC-BY-3.0-US, MIT, CC-BY-3.0 | 2,023 | odata.net | OData | C# | Code | 121 | 326 | //---------------------------------------------------------------------
// <copyright file="DataServiceExecutionProvider.cs" company="Microsoft">
// Copyright (C) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
// </copyright>
//----------------------------... | 37,968 |
https://github.com/BuildingBridge/biznet/blob/master/bitrix/modules/intranet/install/gadgets/bitrix/profile/lang/en/.parameters.php | Github Open Source | Open Source | Unlicense | 2,020 | biznet | BuildingBridge | PHP | Code | 149 | 613 | <?
$MESS ['GD_PROFILE_P_PATH_TO_GENERAL'] = "General Information Page URL";
$MESS ['GD_PROFILE_P_PATH_TO_PROFILE_EDIT'] = "Edit Profile Page URL";
$MESS ['GD_PROFILE_P_PATH_TO_LOG'] = "Updates Page URL";
$MESS ['GD_PROFILE_P_PATH_TO_SUBSCR'] = "My Subscriptions Page URL";
$MESS ['GD_PROFILE_P_PATH_TO_MSG'] = "My Messag... | 52,109 |
https://github.com/rackerlabs/openstack-ruby-sdk-core/blob/master/lib/openstack-ruby-sdk/services/marconi/claim.rb | Github Open Source | Open Source | MIT | null | openstack-ruby-sdk-core | rackerlabs | Ruby | Code | 16 | 57 | class OpenStackRubySDK::Marconi::Claim
include Core::Model
attr_accessor :id, :grace, :ttl, :limit, :messages
has_many :messages
def release; end
end
| 28,545 |
https://github.com/gulpjs/gulplog/blob/master/index.d.ts | Github Open Source | Open Source | MIT | 2,023 | gulplog | gulpjs | TypeScript | Code | 233 | 387 | /**
* Highest log level. Typically used for debugging purposes.
*
* If the first argument is a string, all arguments are passed to node's util.format() before being emitted.
* @param msg Message to log
* @param args Arguments to format message with via util.format()
*/
export function debug(msg: string, ...args: ... | 45,802 |
https://github.com/jiripetrlik/droolsjbpm-integration/blob/master/kie-remote/kie-remote-services/src/main/java/org/kie/remote/services/rest/QueryResourceImpl.java | Github Open Source | Open Source | Apache-2.0 | null | droolsjbpm-integration | jiripetrlik | Java | Code | 649 | 2,329 | /*
* Copyright 2015 Red Hat, Inc. and/or its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, softw... | 6,378 |
https://github.com/icevision/annotations/blob/master/2018-02-13_1523_left/028817.tsv | Github Open Source | Open Source | CC-BY-4.0, LicenseRef-scancode-unknown-license-reference | 2,019 | annotations | icevision | TSV | Code | 31 | 88 | class xtl ytl xbr ybr temporary occluded data
8.2.2 1720 927 1751 979 false false 300 м
3.27 1715 875 1763 927 false false
5.20 1707 982 1754 1030 false false | 27,085 |
https://github.com/leiradel/Retrophies/blob/master/compiler/stmts.c | Github Open Source | Open Source | MIT | null | Retrophies | leiradel | C | Code | 71 | 376 | #include "parser.h"
static int retrophies_parser_parsestatements(retrophies_parser_t* self)
{
int returned = 0;
retrophies_parser_pushscope(self);
for (;;)
{
switch (self->la.token)
{
case RETROPHIES_TOKEN_IF: retrophies_parser_parseif(self); break;
case RETROPHIES_TOKEN_FOR: r... | 10,809 |
https://github.com/Enelar/rescached/blob/master/src/NCR.hh | Github Open Source | Open Source | BSD-3-Clause | 2,020 | rescached | Enelar | C++ | Code | 209 | 518 | //
// Copyright 2009-2016 M. Shulhan (ms@kilabit.info). All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
#ifndef _RESCACHED_NCR_HH
#define _RESCACHED_NCR_HH 1
#include "common.hh"
#include "DNSQuery.hh"
#include "TreeNode.hh"
using vos::O... | 14,924 |
https://github.com/ngtechnolab/CI/blob/master/application/views/chapter4/register_form.php | Github Open Source | Open Source | MIT | null | CI | ngtechnolab | PHP | Code | 62 | 314 | <!DOCTYPE html>
<html>
<head>
<title>Registration Form</title>
</head>
<body>
<h1 align="center">Registration Form</h1>
<form action="register" method="post">
<table align="center">
<tr>
<td align="right">Username:</td>
<td><input type="text" name="username"></td>
</tr>
<tr>
<td align="right">Email:</td>
... | 9,551 |
https://github.com/shpixi/mf-geoadmin3/blob/master/src/components/measure/style/measure.less | Github Open Source | Open Source | MIT | 2,015 | mf-geoadmin3 | shpixi | Less | Code | 72 | 274 | [ga-measure] {
white-space: nowrap;
.ga-measure-panel-group {
width: 225px;
float: left;
margin-right: 15px;
}
.ga-measure-text {
position: relative;
}
.ga-measure-buttons-panel {
position: relative;
padding: 5px 0px;
display: block;
width: 100%;
top: 10px;
}
.ga-mea... | 23,940 |
https://github.com/nicholasjorge/training/blob/master/unit-testing-php/tests/_exemple_emag/atf/JiraApiBundle/Tests/Unit/Service/IssueServiceTest.php | Github Open Source | Open Source | MIT | 2,020 | training | nicholasjorge | PHP | Code | 850 | 4,951 | <?php
namespace Emag\Core\JiraApiBundle\Tests\Unit\Service;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Persistence\ObjectManager;
use Doctrine\ORM\EntityManager;
use Emag\Core\CodeceptionBundle\Entity\Distribution;
use Emag\Core\CodeceptionBundle\Entity\Project;
use Emag\Core\CodeceptionBundl... | 25,461 |
https://github.com/adityawardhana/react-ssr/blob/master/src/client/index.js | Github Open Source | Open Source | MIT | 2,020 | react-ssr | adityawardhana | JavaScript | Code | 126 | 379 | import React from 'react'
import ReactDOM from 'react-dom'
import { BrowserRouter as Router } from 'react-router-dom'
import { Provider as ReduxProvider } from 'react-redux'
import { createBrowserHistory } from 'history'
import LanguageProvider from '../LanguageProvider'
import i18nConfig from '../i18nConfig'
import La... | 15,039 |
https://github.com/kalintsenkov/SimpleShopConsoleApp/blob/master/Data/SimpleShop.Data.Models/Order.cs | Github Open Source | Open Source | MIT | null | SimpleShopConsoleApp | kalintsenkov | C# | Code | 51 | 114 | namespace SimpleShop.Data.Models
{
using System;
using System.Collections.Generic;
public class Order
{
public int Id { get; set; }
public DateTime Date { get; set; }
public int UserId { get; set; }
public User User { get; set; }
public ICollection<ProductOr... | 23,912 |
https://github.com/archival-IIIF/viewer/blob/master/src/Alert.tsx | Github Open Source | Open Source | MIT | 2,022 | viewer | archival-IIIF | TypeScript | Code | 134 | 493 | import React, {useEffect, useContext} from 'react';
import Cache from './lib/Cache';
import Dialog from '@material-ui/core/Dialog';
import DialogContent from '@material-ui/core/DialogContent';
import DialogContentText from '@material-ui/core/DialogContentText';
import DialogTitle from '@material-ui/core/DialogTitle';
i... | 5,526 |
https://github.com/vidalmatheus/pyKombat/blob/master/src/directory.py | Github Open Source | Open Source | MIT | 2,020 | pyKombat | vidalmatheus | Python | Code | 188 | 515 | import os.path,sys
from pathlib import Path
class Directory:
"""
Essa é a classe directory,que armazenará o path do deretorio desejado
"""
def __init__(self,localDir = ""):
"inicia classe ,onde 'main' será o diretorio da pasta de jogo"
self.main = str(Path(os.path.dirname(os.path.di... | 40,381 |
https://github.com/rafaeldolfe/MasterServerChess/blob/master/Assets/Sisus/Power Inspector/Code/Editor/Input/ActivationMethod.cs | Github Open Source | Open Source | MIT | null | MasterServerChess | rafaeldolfe | C# | Code | 30 | 82 | namespace Sisus
{
public enum ActivationMethod
{
Undetermined = 0,
LeftClick = 1,
RightClick = 2,
MiddleClick = 3,
KeyboardActivate = 4,
KeyboardMenu = 5,
ExpandedContextMenu = 6
}
} | 33,800 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.