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/MAPC/dpw-permits/blob/master/app/serializers/plan_serializer.rb | Github Open Source | Open Source | MIT | 2,018 | dpw-permits | MAPC | Ruby | Code | 18 | 58 | class PlanSerializer < ActiveModel::Serializer
attributes :id, :name, :plan_type, :city, :published, :color, :timeframes, :user_id
has_many :timeframes
belongs_to :user
end
| 43,632 |
https://github.com/Pseudo-Lab/Motion-of-Action/blob/master/tabnet/configs/random_search.py | Github Open Source | Open Source | MIT | 2,021 | Motion-of-Action | Pseudo-Lab | Python | Code | 240 | 787 | import os
import json
from typing import Dict
from pprint import pprint
import numpy as np
import pandas as pd
from configs.tabnet import config
class SearchOption:
def __init__(self, opt, type_):
type_ = type_.lower()
assert pd.api.types.is_list_like(opt)
assert type_ in ["choice", "ran... | 5,209 |
https://github.com/jv232/Study-Buddy/blob/master/app/build/generated/not_namespaced_r_class_sources/debug/processDebugResources/r/com/intekhab/studybuddy/R.java | Github Open Source | Open Source | MIT | null | Study-Buddy | jv232 | Java | Code | 20,000 | 66,233 | /* AUTO-GENERATED FILE. DO NOT MODIFY. * * This class was automatically generated by the * aapt tool from the resource data it found. It * should not be modified by hand. */ package com.intekhab.studybuddy; public final class R { public static final class anim { public static final int abc_fade_in=0x7f010000; public st... | 5,853 |
https://github.com/peacetrue/peacetrue-task/blob/master/peacetrue-task-service-api/src/main/java/com/github/peacetrue/task/service/TaskGetDTO.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | peacetrue-task | peacetrue | Java | Code | 28 | 97 | package com.github.peacetrue.task.service;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.io.Serializable;
/**
* @author xiayx
*/
@Data
@NoArgsConstructor
@AllArgsConstructor
public class TaskGetDTO<T> implements Serializable {
private T id;
}
| 4,836 |
https://github.com/mirage/ocaml-tuntap/blob/master/test/set_ipv4_test.ml | Github Open Source | Open Source | ISC | 2,023 | ocaml-tuntap | mirage | OCaml | Code | 111 | 445 | open Tuntap
open OUnit2
open Ipaddr
let test_setipv4 ipv4 netmask _ctx =
let ipv4 = V4.of_string_exn ipv4 in
let netmask = V4.Prefix.make netmask ipv4 in
let fd, devname = opentap ~devname:"tap0" () in
set_ipv4 ~netmask devname ipv4;
let iface_addr = List.hd @@ v4_of_ifname devname in
assert_equal
~ms... | 1,073 |
https://github.com/xunzhaotech/jerry-serv/blob/master/.nuxt/router.js | Github Open Source | Open Source | MIT | 2,019 | jerry-serv | xunzhaotech | JavaScript | Code | 801 | 2,818 | import Vue from 'vue'
import Router from 'vue-router'
Vue.use(Router)
const _665b254c = () => import('../pages/login.vue' /* webpackChunkName: "pages/login" */).then(m => m.default || m)
const _dcebdd8e = () => import('../pages/system/auth.vue' /* webpackChunkName: "pages/system/auth" */).then(m => m.default || m)
co... | 39,366 |
https://github.com/absiddique4584/online-shop/blob/master/resources/views/admin/profile/manage.blade.php | Github Open Source | Open Source | MIT | null | online-shop | absiddique4584 | PHP | Code | 472 | 2,243 | @extends('admin.components.layout')
@section('title')
Manage Profile | Online Shop
@endsection
@section('content')
@if(auth()->user()->is_admin===0)
<div><h1>You Don't Have Excess In This Section</h1>
<h4>Only Admin Can Excess and Create,Edit,Delete</h4>
</div>
@endif
@if(auth()->user()->is... | 1,017 |
https://github.com/pklazy/flatbuffers/blob/master/tests/MyGame/Example/ArrayStruct.py | Github Open Source | Open Source | Apache-2.0 | 2,021 | flatbuffers | pklazy | Python | Code | 420 | 1,704 | # automatically generated by the FlatBuffers compiler, do not modify
# namespace: Example
import flatbuffers
from flatbuffers.compat import import_numpy
np = import_numpy()
class ArrayStruct(object):
__slots__ = ['_tab']
# ArrayStruct
def Init(self, buf, pos):
self._tab = flatbuffers.table.Table... | 41,020 |
https://github.com/lrun1124/Dota2-Api/blob/master/lib/dota2-api.js | Github Open Source | Open Source | MIT | 2,021 | Dota2-Api | lrun1124 | JavaScript | Code | 288 | 868 | 'use strict';
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.definePrope... | 14,135 |
https://github.com/alejandroEGT/proyecto-inclusion5.0/blob/master/public/js/invitado/funciones.js | Github Open Source | Open Source | MIT | null | proyecto-inclusion5.0 | alejandroEGT | JavaScript | Code | 12 | 42 | function schoolUser(){
window.location = "/formUsuarioInstitucion";
}
function userOnly(){
window.location = "/formUsuario";
} | 12,732 |
https://github.com/troels/compute-runtime/blob/master/level_zero/tools/test/unit_tests/sources/sysman/linux/pmt/test_pmt.cpp | Github Open Source | Open Source | Intel, MIT | 2,022 | compute-runtime | troels | C++ | Code | 799 | 5,340 | /*
* Copyright (C) 2021 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "level_zero/tools/test/unit_tests/sources/sysman/linux/mock_sysman_fixture.h"
#include "mock_pmt.h"
using ::testing::_;
using ::testing::Matcher;
using ::testing::Return;
namespace L0 {
namespace ult {
static int fakeFileD... | 26,040 |
https://github.com/macpete/Halide/blob/master/test/error/wrong_type.cpp | Github Open Source | Open Source | BSD-3-Clause, MIT, Apache-2.0 | 2,020 | Halide | macpete | C++ | Code | 33 | 102 | #include "Halide.h"
using namespace Halide;
#ifdef NDEBUG
#error "wrong_type requires assertions"
#endif
int main(int argc, char **argv) {
Func f;
Var x;
f(x) = x;
Buffer<float> im = f.realize(100);
printf("Success!\n");
return 0;
}
| 43,577 |
https://github.com/noinarisak/homebrew-cask/blob/master/Casks/reunion.rb | Github Open Source | Open Source | BSD-2-Clause | 2,019 | homebrew-cask | noinarisak | Ruby | Code | 19 | 183 | cask 'reunion' do
version '12.0.0.181218'
sha256 '6c4946169eb2f57d3726615265b29a6483ddfbccf19e610f832c5fadba8fd1e6'
url "https://store.leisterpro.com/updates/reunion#{version.major}/Reunion-#{version.dots_to_hyphens}.zip"
appcast "https://store.leisterpro.com/updates/reunion#{version.major}/appcast.xml"
name... | 25,564 |
https://github.com/kentik/kentik-deps/blob/master/pkg/netflow/netflow1/packet.go | Github Open Source | Open Source | Apache-2.0 | 2,022 | kentik-deps | kentik | Go | Code | 721 | 1,692 | package netflow1
import (
"fmt"
"io"
"log"
"net"
"time"
"github.com/kentik/kentik-deps/pkg/netflow/read"
)
const (
// Version word in the Packet Header
Version uint16 = 0x0001
)
// Packet is a NetFlow v1 packet
type Packet struct {
Header PacketHeader
Records []*FlowRecord
}
func (p *Packet) Unmarshal(r... | 42,903 |
https://github.com/enfoTek/tomato.linksys.e2000.nvram-mod/blob/master/tools-src/gnu/gcc/gcc/testsuite/gcc.c-torture/execute/widechar-2.c | Github Open Source | Open Source | FSFAP | 2,022 | tomato.linksys.e2000.nvram-mod | enfoTek | C | Code | 30 | 89 | #include <stddef.h>
const wchar_t ws[] = L"foo";
int
main (void)
{
if (ws[0] != L'f' || ws[1] != L'o' || ws[2] != L'o' || ws[3] != L'\0')
abort();
exit(0);
}
| 30,471 |
https://github.com/everest-engineering/axon-crypto-shredding-extension/blob/master/src/test/java/engineering/everest/axon/cryptoshredding/encryption/DefaultDefaultAesEncrypterDecrypterFactoryTest.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | axon-crypto-shredding-extension | everest-engineering | Java | Code | 44 | 338 | package engineering.everest.axon.cryptoshredding.encryption;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
import org.mockito.junit.jupiter.MockitoExtension;
import static org.junit.jupiter.api.Assertions.assertNotEquals;
@ExtendWith(Mo... | 3,437 |
https://github.com/liratanak/lodata/blob/master/tests/Laravel/Models/Repository.php | Github Open Source | Open Source | MIT | null | lodata | liratanak | PHP | Code | 38 | 152 | <?php
declare(strict_types=1);
namespace Flat3\Lodata\Tests\Laravel\Models;
use Flat3\Lodata\Attributes\LodataFunction;
use Flat3\Lodata\Interfaces\RepositoryInterface;
class Repository implements RepositoryInterface
{
public function getClass(): string
{
return Airport::class;
}
#[LodataFu... | 18,829 |
https://github.com/Bogdan12344321/chrome-extension-react/blob/master/src/jsx/component/bypasslist/PopularRule.jsx | Github Open Source | Open Source | LicenseRef-scancode-generic-cla, MIT | 2,020 | chrome-extension-react | Bogdan12344321 | JavaScript | Code | 128 | 478 | import PropType from 'prop-types';
import React, { Component } from 'react';
import Checkbox from '../checkbox';
import ErrorBoundary from '../../hoc/errorboundary';
class PopularRule extends Component {
constructor(props) {
super(props);
const background = chrome.extension.getBackgroundPage();
this.app... | 40,008 |
https://github.com/werselio/pipeline/blob/master/cdap-proto/src/main/java/co/cask/cdap/proto/codec/NamespacedEntityIdCodec.java | Github Open Source | Open Source | Apache-2.0 | 2,018 | pipeline | werselio | Java | Code | 207 | 655 | /*
* Copyright © 2016 Cask Data, 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 t... | 2,972 |
https://github.com/shunfei/indexr/blob/master/indexr-common/src/main/java/io/indexr/util/UTF8JsonDeserializer.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | indexr | shunfei | Java | Code | 1,227 | 3,489 | package io.indexr.util;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.io.UnsupportedEncodingException;
import java.nio.ByteBuffer;
/**
* A fast json deserializer which parse json in utf-8 encoding bytes directly.
* Using this class to avoid the pay-off of transforming into utf-16 (i.e. java ... | 25,139 |
https://github.com/lpatiny/jsGraph/blob/master/src/mixins/graph.mixin.errorbars.js | Github Open Source | Open Source | MIT | 2,016 | jsGraph | lpatiny | JavaScript | Code | 1,566 | 3,232 | import * as util from '../graph.util'
var ErrorBarMixin = {
doErrorDraw: function( orientation, error, originVal, originPx, xpx, ypx ) {
if ( !( error instanceof Array ) ) {
error = [ error ];
}
var functionName = orientation == 'y' ? 'getY' : 'getX';
var bars = orientation == 'y' ? [ 'top'... | 18,644 |
https://github.com/kkcookies99/UAST/blob/master/Dataset/Leetcode/test/9/503.py | Github Open Source | Open Source | MIT | null | UAST | kkcookies99 | Python | Code | 35 | 114 | class Solution(object):
def XXX(self, x):
"""
:type x: int
:rtype: bool
"""
length = len(str(x))
if length == 1:
return True
result=[str(x)[i]==str(x)[length-1-i] for i in range(length/2)]
# print result
if list(set(result))==[True... | 4,413 |
https://github.com/TheGrandCoding/discord-bo/blob/master/DiscordBot/Classes/HTMLHelpers/Objects/Label.cs | Github Open Source | Open Source | MIT | null | discord-bo | TheGrandCoding | C# | Code | 37 | 92 | using System;
using System.Collections.Generic;
using System.Text;
namespace DiscordBot.Classes.HTMLHelpers.Objects
{
public class Label : DOMBase
{
public Label(string text, string id = null, string cls = null) : base("label", id, cls)
{
RawText = text;
}
}
}
| 30,357 |
https://github.com/mattools/MeshViewer/blob/master/meshViewer/+mv/+gui/MeshViewerMainFrame.m | Github Open Source | Open Source | BSD-2-Clause | 2,023 | MeshViewer | mattools | MATLAB | Code | 1,250 | 4,208 | classdef MeshViewerMainFrame < handle
%MESHVIEWERMAINFRAME Contains a figure that displays one or several meshes
%
% Class MeshViewerMainFrame
%
% Example
% MeshViewerMainFrame
%
% See also
%
% ------
% Author: David Legland
% e-mail: david.legland@inra.fr
% Created: 2018-05-24, using Matlab 9.4.0.813654 (R... | 49,623 |
https://github.com/SoulForMachine/GLSlayer/blob/master/source/opengl/GLFramebuffer.cpp | Github Open Source | Open Source | MIT | null | GLSlayer | SoulForMachine | C++ | Code | 400 | 1,797 |
#include <cassert>
#include <malloc.h>
#include <cstdlib>
#include "GLTexture.h"
#include "GLFramebuffer.h"
// =================== Renderbuffer ==================
#define STATE_MACHINE_HACK \
if(_id != _glState->renderbuffer) \
{ \
glBindRenderbuffer(_target, _id); \
_glState->renderbuffer = _id; \
}
namesp... | 46,202 |
https://github.com/3846masa/remark-crossref/blob/master/src/definitions.ts | Github Open Source | Open Source | MIT | 2,020 | remark-crossref | 3846masa | TypeScript | Code | 39 | 97 | import * as mdast from 'mdast';
declare module 'mdast' {
export interface CrossReferenceLabel extends mdast.Literal {
type: 'crossReferenceLabel';
label: string;
options: { [key: string]: any };
}
export interface CrossReference extends mdast.Literal {
type: 'crossReference';
identifiers: st... | 10,471 |
https://github.com/FatkullinT/Artice/blob/master/src/Artice.Core/Models/Audio.cs | Github Open Source | Open Source | MIT | 2,022 | Artice | FatkullinT | C# | Code | 11 | 27 | namespace Artice.Core.Models
{
public class Audio : Attachment
{
}
} | 28,830 |
https://github.com/qinghuizhao/fblualib/blob/master/fblualib/python/CMakeLists.txt | Github Open Source | Open Source | BSD-3-Clause | 2,017 | fblualib | qinghuizhao | CMake | Code | 240 | 1,237 | # Copyright (c) 2014, Facebook, Inc.
# All rights reserved.
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree. An additional grant
# of patent rights can be found in the PATENTS file in the same directory.
#
CMAKE_MINIMUM_REQUIRED(VE... | 49,516 |
https://github.com/vanrez-nez/creative-code-starter/blob/master/src/scripts/utils.js | Github Open Source | Open Source | MIT | 2,019 | creative-code-starter | vanrez-nez | JavaScript | Code | 32 | 102 | export function GetShader(name) {
const vertEl = document.getElementById(`vertex-${name}`);
const fragEl = document.getElementById(`fragment-${name}`);
if (!vertEl || !fragEl) {
throw `Error: couldn't load shader: ${name}`;
}
return {
vertex: vertEl.textContent,
fragment: fragEl.textContent,
};
... | 22,064 |
https://github.com/NCIP/psc/blob/master/utility/osgimosis/src/test/java/edu/northwestern/bioinformatics/studycalendar/utility/osgimosis/EncapsulatedCollectionTest.java | Github Open Source | Open Source | BSD-3-Clause | 2,021 | psc | NCIP | Java | Code | 439 | 1,711 | /*L
* Copyright Northwestern University.
*
* Distributed under the OSI-approved BSD 3-Clause License.
* See http://ncip.github.io/psc/LICENSE.txt for details.
*/
package edu.northwestern.bioinformatics.studycalendar.utility.osgimosis;
import edu.northwestern.bioinformatics.studycalendar.utility.osgimosis.people.... | 2,708 |
https://github.com/trongcuong1710/FoodyCrawler/blob/master/FoodyCrawler/Model/PlacesList.swift | Github Open Source | Open Source | MIT | null | FoodyCrawler | trongcuong1710 | Swift | Code | 55 | 137 | //
// PlacesList.swift
// FoodyCrawler
//
// Created by Cole Doan on 10/18/17.
// Copyright © 2017 Trong Cuong Doan. All rights reserved.
//
import Foundation
import Freddy
struct PlacesList: JSONDecodable {
let total: Int
var items = [PlaceItem]()
init(json: JSON) throws {
total = try json.getInt(at: ... | 34,949 |
https://github.com/JLimperg/lean4/blob/master/tests/playground/hashable.lean | Github Open Source | Open Source | Apache-2.0 | 2,022 | lean4 | JLimperg | Lean | Code | 382 | 765 | set_option trace.Elab.Deriving.hashable true
inductive SimpleInd
| A
| B
deriving Hashable
theorem «inductive fields have different base hashes» : ∀ x, hash x =
match x with
| SimpleInd.A => 0
| SimpleInd.B => 1 := λ x => rfl
mutual
inductive Foo : Type → Type
| A : Int → (3 = 3) → String → Foo Int
| B : Bar → Foo ... | 25,491 |
https://github.com/bitJun/vue-tb/blob/master/partner/resources/assets/js/components/common/MyUpload.vue | Github Open Source | Open Source | MIT | 2,018 | vue-tb | bitJun | Vue | Code | 98 | 300 | <script>
import Upload from 'iview/src/components/upload/upload.vue';
export default {
name: 'MyUpload',
mixins: [ Upload ],
props: {
maxCount: {
type: Number
},
onExceededCount: {
type: Function,
default... | 19,221 |
https://github.com/dengdads/Adyeshach-1/blob/master/src/main/kotlin/ink/ptms/adyeshach/common/entity/type/AdyMinecartFurnace.kt | Github Open Source | Open Source | MIT | null | Adyeshach-1 | dengdads | Kotlin | Code | 61 | 238 | package ink.ptms.adyeshach.common.entity.type
import ink.ptms.adyeshach.common.entity.EntityTypes
/**
* @author sky
* @date 2020/8/4 23:15
*/
class AdyMinecartFurnace : AdyMinecart(EntityTypes.MINECART_FURNACE) {
init {
/*
1.16,1.15,1.14
13 ->Has fuel
1.13,1.12,1.11,1.10
... | 24,293 |
https://github.com/rds13/dotfiles/blob/master/bin/git-copy-to-remote | Github Open Source | Open Source | MIT | 2,018 | dotfiles | rds13 | Shell | Code | 53 | 100 | #!/bin/bash
#
# Copy all branches from remote origin to specified remote
#
if [[ $# -ne 1 ]] ; then
exit
else
remote=$1
fi
for branch in `git branch -a | grep "remotes/origin" | grep -v HEAD | grep -v master`; do
git branch --track ${branch##*/} $branch
done
git push $remote --all
| 12,425 |
https://github.com/Google-Patika-dev-Casual-Game-Bootcapms/galaxy-destroyer/blob/master/Assets/Game/UserInterface/Splash/Logo.cs | Github Open Source | Open Source | MIT | 2,022 | galaxy-destroyer | Google-Patika-dev-Casual-Game-Bootcapms | C# | Code | 91 | 345 | namespace SpaceShooterProject.UserInterface
{
using UnityEngine;
using UnityEngine.UI;
using DG.Tweening;
using System;
public class Logo : MonoBehaviour, ICanvasElement
{
[SerializeField]
private Image image;
public void Activate()
{
}
... | 19,925 |
https://github.com/mnabila/dotfiles/blob/master/fish/.config/fish/conf.d/paste_url.fish | Github Open Source | Open Source | MIT | 2,023 | dotfiles | mnabila | Fish | Code | 32 | 80 | function fish_clipboard_paste
set -l data
if not type -q xclip
# Return if `xclip` failed.
return 1
end
set data (xclip -o)
if test -n "$data"
commandline -i -- "\"$data\""
end
end
| 44,949 |
https://github.com/lngka/nightspots/blob/master/app/controllers/server.goingCountByID.js | Github Open Source | Open Source | MIT | null | nightspots | lngka | JavaScript | Code | 186 | 544 | "use strict";
const path = require("path");
const Business = require(path.join(process.cwd(), "app/models/business.js"));
module.exports = function(yelpID, callback) {
if (!yelpID || typeof yelpID !== "string") {
var err = new Error("Invalid/Missing yelpID: get going count without yelpID impossible");
... | 22,935 |
https://github.com/jedwards1211/imagefun/blob/master/src/util/pipeline.js | Github Open Source | Open Source | MIT | null | imagefun | jedwards1211 | JavaScript | Code | 18 | 43 | /**
* @prettier
*/
import { flow } from 'lodash/fp'
export const pipeline = (input, ...args) => flow(...args)(input)
| 42,126 |
https://github.com/gicmo/CaManager/blob/master/src/main/java/de/lmu/bio/calcium/model/CaNeuron.java | Github Open Source | Open Source | BSD-3-Clause | 2,019 | CaManager | gicmo | Java | Code | 294 | 817 | package de.lmu.bio.calcium.model;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.Enumeration;
public class CaNeuron extends CaGroup {
private String age;
private String comment;
private String region;
private String commonFilePrefix;
private... | 40,229 |
https://github.com/Roleren/ORFik/blob/master/man/save.experiment.Rd | Github Open Source | Open Source | MIT | 2,023 | ORFik | Roleren | R | Code | 89 | 406 | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/experiment_IO.R
\name{save.experiment}
\alias{save.experiment}
\title{Save \code{\link{experiment}} to disc}
\usage{
save.experiment(df, file)
}
\arguments{
\item{df}{an ORFik \code{\link{experiment}}}
\item{file}{name of file to save df as}... | 46,803 |
https://github.com/ZeroCho/DefinitelyTyped/blob/master/types/ember__test-helpers/dom/trigger-event.d.ts | Github Open Source | Open Source | MIT | 2,022 | DefinitelyTyped | ZeroCho | TypeScript | Code | 16 | 40 | import { Target } from '@ember/test-helpers';
export default function triggerEvent(target: Target, eventType: string, options?: object): Promise<void>;
| 2,245 |
https://github.com/LoganPletcher/Year-2/blob/master/Graphics/tutorials/RenderingGeomApplication.h | Github Open Source | Open Source | MIT | null | Year-2 | LoganPletcher | C | Code | 60 | 192 | #pragma once
#include "BaseApplication.h"
#include <glm/vec4.hpp>
// forward declared to reduce dependencies
class Camera;
class RenderingGeomApplication : public BaseApplication {
public:
RenderingGeomApplication();
virtual ~RenderingGeomApplication();
virtual bool startup();
virtual void shutdown();
virtu... | 28,097 |
https://github.com/DistributedCollective/oracle-based-amm/blob/master/solidity/contracts/helpers/TestChainlinkPriceOracle.sol | Github Open Source | Open Source | Apache-2.0 | 2,021 | oracle-based-amm | DistributedCollective | Solidity | Code | 61 | 171 | pragma solidity 0.4.26;
import "../utility/interfaces/IConsumerPriceOracle.sol";
/*
Chainlink price oracle mock
*/
contract TestChainlinkPriceOracle is IConsumerPriceOracle {
int256 private answer;
uint256 private timestamp;
function setAnswer(int256 _answer) public {
answer = _answer;
}
function setTimes... | 21,985 |
https://github.com/khongten001/oblivion-netbeans-plugin/blob/master/Oblivion/src/org/fundacionjala/oblivion/apex/editor/preferences/FormatOptions.java | Github Open Source | Open Source | MIT | 2,017 | oblivion-netbeans-plugin | khongten001 | Java | Code | 168 | 674 | /*
* Copyright (c) Fundacion Jala. All rights reserved.
* Licensed under the MIT license. See LICENSE file in the project root for full license information.
*/
package org.fundacionjala.oblivion.apex.editor.preferences;
import java.util.HashMap;
import java.util.Map;
import java.util.prefs.Preferences;
import sta... | 9,609 |
https://github.com/bradly/simple_deploy/blob/master/lib/simple_deploy/stack/execute.rb | Github Open Source | Open Source | MIT | 2,020 | simple_deploy | bradly | Ruby | Code | 33 | 116 | require 'simple_deploy/stack/ssh'
module SimpleDeploy
class Stack
class Execute
def initialize(args)
@config = SimpleDeploy.config
@args = args
end
def execute(args)
ssh.execute args
end
private
def ssh
@ssh ||= SimpleDeploy::Stack::SSH.new... | 20,989 |
https://github.com/confluentinc/kafka-tutorials/blob/master/_includes/tutorials/fk-joins/kstreams/markup/dev/make-music-interest-schema.adoc | Github Open Source | Open Source | Apache-2.0 | 2,023 | kafka-tutorials | confluentinc | AsciiDoc | Code | 23 | 95 | And finally, create another Avro schema file at `src/main/avro/music-interest.avsc` for the result of the join:
+++++
<pre class="snippet"><code class="avro">{% include_raw tutorials/fk-joins/kstreams/code/src/main/avro/music-interest.avsc %}</code></pre>
+++++
| 27,480 |
https://github.com/wastoresh/azure-powershell/blob/master/src/Websites/Websites/Cmdlets/WebApps/NewAzureRmWebAppContainerPSSession.cs | Github Open Source | Open Source | MIT, Apache-2.0 | 2,020 | azure-powershell | wastoresh | C# | Code | 233 | 626 | // ----------------------------------------------------------------------------------
//
// Copyright Microsoft Corporation
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apa... | 36,034 |
https://github.com/BilkentCompGen/sirfast/blob/master/run.sh | Github Open Source | Open Source | BSD-3-Clause | null | sirfast | BilkentCompGen | Shell | Code | 139 | 360 | #!/bin/bash
# Build Hashtable
./sirfast --index ../reference/build37.fa --ws 10
# Single End Mode with first read format (-f 1), 1k read slice (-t 1000)
./sirfast --search ../reference/build37.fa --seq ../reference/read_form1 -e 0 -f 1 -t 1000 -o out_se_form1.sam -u out_se_form1.unmap
# Mate... | 28,504 |
https://github.com/rizkygin/testdashboardtourguide/blob/master/database/seeds/TrxReedemTableSeeder.php | Github Open Source | Open Source | MIT | null | testdashboardtourguide | rizkygin | PHP | Code | 71 | 240 | <?php
use Illuminate\Database\Seeder;
use Faker\Factory as Faker;
class TrxReedemTableSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
$faker = Faker::create();
for($i=1; $i<70; $i++){
$user_id = $faker->numberBetween... | 18,777 |
https://github.com/eurecom-s3/invscov/blob/master/daikon/tests/sources/java6170/test/Grader.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | invscov | eurecom-s3 | Java | Code | 559 | 1,648 | package java6170.test;
import junit.framework.*;
import junit.extensions.*;
import java.util.*;
import java.io.*;
public class Grader implements TestRunListener
{
private PrintStream _out = System.out;
private Map _classToTest = new LinkedHashMap(); // class -> test -> points
private Map _classToPoints = ... | 41,785 |
https://github.com/DerekKeeler/hexlogjs/blob/master/src/types/int8.js | Github Open Source | Open Source | ISC | 2,018 | hexlogjs | DerekKeeler | JavaScript | Code | 15 | 55 | module.exports = {
name: 'int8',
bytes: 1,
method: (bufName, varName, offset) =>
`${bufName}.writeInt8(${varName}, ${offset});`,
};
| 35,598 |
https://github.com/ailnitskiy/CombineX/blob/master/Sources/CombineX/Publishers/D/SwitchToLatest.swift | Github Open Source | Open Source | MIT | 2,022 | CombineX | ailnitskiy | Swift | Code | 1,452 | 3,601 | #if !COCOAPODS
import CXUtility
#endif
extension Publisher where Failure == Output.Failure, Output: Publisher {
/// Republishes elements sent by the most recently received publisher.
///
/// This operator works with an upstream publisher of publishers, flattening
/// the stream of elements to appe... | 11,940 |
https://github.com/cryptopatron/web-app/blob/master/src/pages/creator-page/components/support-panel/stream.tsx | Github Open Source | Open Source | BSD-3-Clause | null | web-app | cryptopatron | TypeScript | Code | 348 | 1,134 |
import { useState, useEffect } from 'react'
import ListboxComponent from '../../../../components/listbox';
import { tokens, n_month_names } from './payment_options';
const minimum = 5 //minimum amount in stream
export default function StreamComponent({ addPayment, tokens, network, setIsOpen }) {
const [amount, ... | 44,039 |
https://github.com/commercionetwork/commercio-sdk.dart/blob/master/lib/kyc/reward_pool_deposit_helper.dart | Github Open Source | Open Source | MIT | 2,021 | commercio-sdk.dart | commercionetwork | Dart | Code | 49 | 139 | import 'package:commerciosdk/export.dart';
/// Allows to easily create a DepositRewardPool and perform common related operations
class RewardPoolDepositHelper {
/// Creates a RewardPoolDeposit from the given [wallet],
/// and deposit [amount].
static RewardPoolDeposit fromWallet({
required Wallet wallet,
... | 2,966 |
https://github.com/moutainhigh/xtoon-boot/blob/master/src/main/java/com/xtoon/boot/application/AccountService.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | xtoon-boot | moutainhigh | Java | Code | 89 | 314 | package com.xtoon.boot.application;
import com.xtoon.boot.domain.model.user.Account;
import com.xtoon.boot.domain.model.user.types.AccountId;
import com.xtoon.boot.domain.model.user.types.AccountName;
import com.xtoon.boot.domain.model.user.types.Mobile;
/**
* 用户Service
*
* @author haoxin
* @date 2021-02-09
**/
... | 34,273 |
https://github.com/ArteonToken/monorepo/blob/master/contracts/exchange/interfaces/IArtOnlineListingERC1155.sol | Github Open Source | Open Source | MIT | null | monorepo | ArteonToken | Solidity | Code | 24 | 77 | // SPDX-License-Identifier: MIT
pragma solidity 0.8.11;
import './IArtOnlineListing.sol';
interface IArtOnlineListingERC1155 is IArtOnlineListing {
function id() external returns (uint256);
function supportsInterface(bytes4) external returns (bool);
}
| 35,211 |
https://github.com/WhyPenguins/XenkoVoxelGI/blob/master/FirstPersonShooter_VoxelGI.Game/EmissionToggler.cs | Github Open Source | Open Source | MIT | 2,022 | XenkoVoxelGI | WhyPenguins | C# | Code | 94 | 354 | // Copyright (c) Xenko contributors (https://xenko.com) and Silicon Studio Corp. (https://www.siliconstudio.co.jp)
// Distributed under the MIT license. See the LICENSE.md file in the project root for more information.
using System.Collections.Generic;
using System.Linq;
using Xenko.Core.Mathematics;
using Xenko.Engin... | 45,655 |
https://github.com/armadhika/Program-Akademik/blob/master/app/Http/Controllers/PilihpbbController.php | Github Open Source | Open Source | MIT | null | Program-Akademik | armadhika | PHP | Code | 143 | 750 | <?php
namespace App\Http\Controllers;
use Alert;
use App\Pembimbing;
use App\Dosen;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\DB;
use App\Mail\NotifPembimbingPkl;
use Illuminate\Support\Facades\Mail;
class PilihpbbController extends Controller
{
public function index(Request $request)
{
... | 8,215 |
https://github.com/tacobarry/swars-quiz/blob/master/src/app/people/card/card.component.ts | Github Open Source | Open Source | MIT | null | swars-quiz | tacobarry | TypeScript | Code | 129 | 489 | import { Component, OnInit, Input } from '@angular/core';
import { BsModalService } from 'ngx-bootstrap/modal';
import { BsModalRef } from 'ngx-bootstrap/modal/bs-modal-ref.service';
import { ImageService } from '../image.service';
import { ModalAnswerQuestionComponent } from '../../shared/modals/modal-answer-question/... | 5,527 |
https://github.com/alxmrs/arcs/blob/master/javatests/arcs/core/host/SimpleSchedulerProviderTest.kt | Github Open Source | Open Source | BSD-3-Clause, WTFPL, Apache-2.0 | 2,021 | arcs | alxmrs | Kotlin | Code | 297 | 1,097 | /*
* Copyright 2020 Google LLC.
*
* This code may only be used under the BSD style license found at
* http://polymer.github.io/LICENSE.txt
*
* Code distributed by Google as part of this project is also subject to an additional IP rights
* grant found at
* http://polymer.github.io/PATENTS.txt
*/
package arcs.c... | 8,161 |
https://github.com/tonussi/teia/blob/master/src/model/AmigoDestacado.java | Github Open Source | Open Source | MIT | null | teia | tonussi | Java | Code | 20 | 74 | package model;
import view.VetorComposto;
public class AmigoDestacado extends Amigo {
public AmigoDestacado(Info info, VetorComposto vetorComposto) {
super(info, vetorComposto);
}
}
| 7,372 |
https://github.com/dajvido/NAJ-homework/blob/master/Lesson6/js/ee.js | Github Open Source | Open Source | MIT | null | NAJ-homework | dajvido | JavaScript | Code | 96 | 337 | (function (global) {
var EE;
if (!global.UAM) {
global.UAM = {};
}
EE = function () {
this.listeners = {};
};
EE.prototype.on = function (eventName, listener, context) {
var listenerData, me = this;
if (!this.listeners[eventName]) {
this.listeners[eventName] = [];
}
listenerData = {
fn: liste... | 4,182 |
https://github.com/HakurouKen/DoubanFM-Simplify/blob/master/template/button-template.js | Github Open Source | Open Source | MIT | 2,014 | DoubanFM-Simplify | HakurouKen | JavaScript | Code | 2 | 14 | <span id="toggleView">切换</span> | 19,350 |
https://github.com/EitanGayor/augur/blob/master/tests-unit/input/arguments-2-tainted/test.js | Github Open Source | Open Source | UPL-1.0 | 2,022 | augur | EitanGayor | JavaScript | Code | 29 | 57 | const a = 2;
// unused named argument
// accessing tainted argument and returning it
function f(x) {
let firstArg = arguments[0];
return firstArg;
}
const z = f(a);
| 50,233 |
https://github.com/sethvincent/common-shakeify/blob/master/example/app.js | Github Open Source | Open Source | MIT | 2,022 | common-shakeify | sethvincent | JavaScript | Code | 5 | 18 | var message = require('./xyz').getMessage()
console.log(message)
| 8,420 |
https://github.com/bluewaysw/pcgeos/blob/master/Driver/Printer/PrintCom/Job/jobStartCanonRGB.asm | Github Open Source | Open Source | Apache-2.0 | 2,023 | pcgeos | bluewaysw | Assembly | Code | 1,024 | 2,959 | COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GlobalPC 1999 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: Printer Drivers
FILE: jobStartCanonRGB.asm
AUTHOR: Joon Song, 9 Jan 1999
ROUTINES:
Name Description
---- -----------
PrintStartJob Setup done at star... | 35,441 |
https://github.com/xapicohort/team-adaptive-learning/blob/master/includes/TinCanPHP-master/tests/PersonTest.php | Github Open Source | Open Source | MIT | 2,020 | team-adaptive-learning | xapicohort | PHP | Code | 285 | 1,010 | <?php
/*
Copyright 2014 Rustici Software
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 agr... | 40,177 |
https://github.com/markorusic/wp2-blog/blob/master/resources/js/admin/modules/data-table.js | Github Open Source | Open Source | MIT | 2,020 | wp2-blog | markorusic | JavaScript | Code | 626 | 2,329 | import debounce from 'lodash/debounce'
import get from 'lodash/get'
import templateRender from '../../shared/template-render'
import http from '../../shared/http-service'
import dataPagination from '../../shared/data-pagination'
const crudAction = {
edit: 'edit',
delete: 'delete',
create: 'create'
}
let p... | 26,689 |
https://github.com/tiram819/badges-and-schedules-onl01-seng-pt-030220/blob/master/conference_badges.rb | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, LicenseRef-scancode-public-domain | 2,020 | badges-and-schedules-onl01-seng-pt-030220 | tiram819 | Ruby | Code | 53 | 195 | def badge_maker(speaker)
return "Hello, my name is #{speaker}."
end
attendees = ["Edsger", "Ada", "Charles", "Alan", "Grace", "Linus", "Matz"]
def batch_badge_creator(attendees)
attendees.collect {|speaker| badge_maker(speaker)}
end
def assign_rooms(attendees)
attendees.each_with_index.map {|speaker, index| "Hell... | 46,699 |
https://github.com/tomasz-herman/PseudoAssemblerEmulator/blob/master/src/main/java/com/hermant/program/instruction/PushRegisterInstruction.java | Github Open Source | Open Source | MIT | 2,020 | PseudoAssemblerEmulator | tomasz-herman | Java | Code | 47 | 160 | package com.hermant.program.instruction;
import com.hermant.machine.Machine;
public class PushRegisterInstruction extends Instruction {
@Override
public final void run(Machine m){
setInstructionPointer(m.getInstructionPointer());
m.getStack().push(m.getRegister().get(reg1));
}
@Overr... | 16,691 |
https://github.com/ITdevVN/Sales-Management-Webapp/blob/master/app/Http/Controllers/DynamicPDFController.php | Github Open Source | Open Source | MIT | 2,019 | Sales-Management-Webapp | ITdevVN | PHP | Code | 417 | 2,447 | <?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use DB;
use PDF;
use Session;
class DynamicPDFController extends Controller
{
function xuatPDFTatCa(Request $request){
$pdf = \App::make('dompdf.wrapper');
$pdf->loadHTML($request->session()->get('tableData'));
return $pd... | 32,986 |
https://github.com/doyaGu/C0501Q_HWJL01/blob/master/sdk/doc/html/ite__usbkbd_8h.js | Github Open Source | Open Source | MIT | 2,021 | C0501Q_HWJL01 | doyaGu | JavaScript | Code | 20 | 164 | var ite__usbkbd_8h =
[
[ "usb_kbd_cb", "ite__usbkbd_8h.html#ab44bbed4551c1b6389b8f3cf56d26f83", null ],
[ "iteUsbKbdRegister", "ite__usbkbd_8h.html#a2dee46613fd9e0a02bf5e6a53982f775", null ],
[ "iteUsbKbdSetCb", "ite__usbkbd_8h.html#a5dcb09565ceda7b02ba1ee5198c3c8a7", null ]
]; | 14,712 |
https://github.com/youboyTizzyT/Guard-bunker-project/blob/master/project1.2/src/com/company/test.java | Github Open Source | Open Source | Unlicense | 2,018 | Guard-bunker-project | youboyTizzyT | Java | Code | 142 | 683 | package com.company;
import com.company.util.aaa;
import io.netty.bootstrap.ServerBootstrap;
import io.netty.channel.ChannelFuture;
import io.netty.channel.ChannelInitializer;
import io.netty.channel.EventLoopGroup;
import io.netty.channel.nio.NioEventLoopGroup;
import io.netty.channel.socket.SocketChannel;
import io.... | 16,938 |
https://github.com/emacslisp/spring-project/blob/master/lab/spring-tutorial-77/src/main/java/com/lab/spring/Car.java | Github Open Source | Open Source | Apache-2.0 | null | spring-project | emacslisp | Java | Code | 17 | 54 | package com.lab.spring;
import org.springframework.stereotype.Component;
@Component
public class Car {
public void start() {
System.out.println("Car starting");
}
} | 48,956 |
https://github.com/lonely7345/gobblin/blob/master/gobblin-core/src/test/java/gobblin/source/extractor/filebased/TokenizedFileDownloaderTest.java | Github Open Source | Open Source | BSD-3-Clause, xpp, Apache-2.0, MIT | 2,017 | gobblin | lonely7345 | Java | Code | 161 | 486 | /*
* Copyright (C) 2014-2016 LinkedIn Corp. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use
* this file except in compliance with the License. You may obtain a copy of the
* License at http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appl... | 37,392 |
https://github.com/cocoa520/lalalala/blob/master/iOSFiles/iOSFiles/UI/controller/alertController/IMBAlertViewController.m | Github Open Source | Open Source | MIT | 2,018 | lalalala | cocoa520 | Objective-C | Code | 513 | 2,735 | //
// IMBAlertViewController.m
// iOSFiles
//
// Created by smz on 18/3/28.
// Copyright © 2018年 iMobie. All rights reserved.
//
#import "IMBAlertViewController.h"
#import "IMBCommonDefine.h"
#import "IMBAnimation.h"
#import "IMBDriveEntity.h"
#import "IMBImageAndTextFieldCell.h"
#import "IMBiCloudDriverViewContro... | 24,634 |
https://github.com/teawithsand/crypka/blob/master/rng_stl_test.go | Github Open Source | Open Source | MIT | null | crypka | teawithsand | Go | Code | 56 | 330 | package crypka_test
import (
"testing"
"github.com/teawithsand/crypka"
"github.com/teawithsand/crypka/crypkatest"
)
func TestRNG_STLCrypto(t *testing.T) {
tester := crypkatest.RNGTester{
Algo: &crypka.CryptoRNGAlgo{},
}
tester.Test(t)
}
func TestRNG_STLMath(t *testing.T) {
tester := crypkatest.RNGTester{
... | 19,468 |
https://github.com/BioSin/netology-nodejs/blob/master/5-http/index.js | Github Open Source | Open Source | MIT | null | netology-nodejs | BioSin | JavaScript | Code | 319 | 950 | const http = require('http');
const url = require('url');
const PORT = process.env.PORT || 3000;
class Product {
constructor(id, name, count) {
this.id = id;
this.name = name;
this.count = count;
}
toString() {
return {
id: this.id,
name: this.name,
... | 40,055 |
https://github.com/simplifier-ag/cordova-plugin-local-notifications/blob/master/src/android/notification/receiver/AbstractNotificationReceiver.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | cordova-plugin-local-notifications | simplifier-ag | Java | Code | 498 | 1,390 | package de.appplant.cordova.plugin.notification.receiver;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.os.PowerManager;
import android.util.Log;
import org.json.JSONException;
import org.json.JSONObject;
import java.util.Calendar;
import de.appplant.cordova.plugin.notific... | 34,953 |
https://github.com/mgsky1/SMU-IT-College-Website/blob/master/admin/delSelectedNews.php | Github Open Source | Open Source | Apache-2.0 | null | SMU-IT-College-Website | mgsky1 | PHP | Code | 15 | 71 | <?php require_once("PHP_Script/News/listNews.php")?>
<?php
$list = new NewsManage();
$list->_construct();
foreach($_POST['news'] as $i)
{
$list->delNews($i);
}
?> | 4,648 |
https://github.com/mschneider85/rkr/blob/master/app/assets/stylesheets/components/_flash-message.scss | Github Open Source | Open Source | MIT | null | rkr | mschneider85 | SCSS | Code | 62 | 256 | .flash.alert {
background-color: rgba(255, 255, 255, 0.9);
color: #555;
border-radius: 10px;
padding: 12px 36px 10px;
margin: 10px;
font-size: 12px;
> .element {
display: table-cell;
width: 100%;
vertical-align: middle;
}
span {
font-weight: bold;
text-trans... | 1,682 |
https://github.com/kcowolf/GenImageTool/blob/master/test/test4.h | Github Open Source | Open Source | MIT | 2,022 | GenImageTool | kcowolf | C | Code | 61 | 329 | /* Autogenerated by GenImageTool */
#ifndef TEST4_H
#define TEST4_H
#include <genesis.h>
extern const uint16_t GFX_PAL_1[16];
extern const uint16_t GFX_PAL_2[16];
extern const uint16_t GFX_PAL_3[16];
extern const uint16_t GFX_PAL_4[16];
#define GFX_TILESET_1_TILE_COUNT 1
extern const uint32_t GFX_TILESET_1[GFX_T... | 24,911 |
https://github.com/namirinz/Intern-Pose-Estimation/blob/master/src/utils/data_utils.py | Github Open Source | Open Source | MIT | null | Intern-Pose-Estimation | namirinz | Python | Code | 172 | 476 | """Contain function doing about data."""
import json
import os
import numpy as np
from typing import Dict
def get_json(filename: str) -> Dict[str, np.ndarray]:
"""Open filename.json and return as a dictionary object.
Args:
filename (str): Json file name to be used.
Returns:
Dictionary l... | 40,279 |
https://github.com/raphaelmun/Xen/blob/master/XenScript/Actor/IActor.cs | Github Open Source | Open Source | MIT | 2,020 | Xen | raphaelmun | C# | Code | 46 | 109 | using Microsoft.Xna.Framework;
using Xen2D;
namespace XenScript
{
/// <summary>
/// Represents an object that participates in the game world. Accepts commands issued from a director.
/// </summary>
///
/// <example>
/// Units, switches, environment
/// </example>
public interface IAc... | 38,506 |
https://github.com/jamashita/publikum/blob/master/packages/validation/src/Decorator/BooleanValidation.ts | Github Open Source | Open Source | MIT | null | publikum | jamashita | TypeScript | Code | 42 | 93 | import { BooleanValidationRule } from '../BooleanValidationRule';
import { addRule } from './Validate';
export const BooleanValidation = (): ParameterDecorator => {
const v: BooleanValidationRule = BooleanValidationRule.of();
return (target: object, key: string | symbol, index: number) => {
addRule(target, ke... | 27,685 |
https://github.com/LiveRamp/cascading_ext/blob/master/src/main/java/com/liveramp/cascading_tools/combine/LimitedCombineSequenceFileInputFormat.java | Github Open Source | Open Source | Apache-2.0 | 2,019 | cascading_ext | LiveRamp | Java | Code | 129 | 573 | package com.liveramp.cascading_tools.combine;
import java.io.IOException;
import org.apache.hadoop.classification.InterfaceAudience;
import org.apache.hadoop.classification.InterfaceStability;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.mapred.InputSplit;
import org.apache.hadoop.mapred.JobC... | 18,688 |
https://github.com/EliranGooner/zeitouni/blob/master/src/components/navbar-new.js | Github Open Source | Open Source | MIT | null | zeitouni | EliranGooner | JavaScript | Code | 315 | 1,014 | import AniLink from "gatsby-plugin-transition-link/AniLink"
import React, { useState, useEffect } from "react"
import "./navbar-new.scss"
import { stack as Menu } from "react-burger-menu"
import Navbar from "./navbar"
import NavbarSmall from "./navbar-small"
import NavbarMedium from "./navbar-medium"
import sizeMe from... | 5,468 |
https://github.com/tazjel/monitor/blob/master/modules/collection.py | Github Open Source | Open Source | LicenseRef-scancode-public-domain | 2,013 | monitor | tazjel | Python | Code | 162 | 1,048 | #!/usr/bin/env python
import subprocess
import cStringIO
import urllib, os
from HTMLParser import HTMLParser
from gluon import current
from appsettings import settings
class Collection:
@staticmethod
def get_graph(action, plugin, typegraph, host, timespan, path_rrd, time_zone, start, end, plugin_instanc... | 31,807 |
https://github.com/codetorex/godot/blob/master/thirdparty/freetype/src/base/ftgxval.c | Github Open Source | Open Source | CC-BY-3.0, Apache-2.0, MIT | 2,022 | godot | codetorex | C | Code | 324 | 944 | /****************************************************************************
*
* ftgxval.c
*
* FreeType API for validating TrueTypeGX/AAT tables (body).
*
* Copyright (C) 2004-2020 by
* Masatake YAMATO, Redhat K.K,
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType pr... | 25,848 |
https://github.com/mrut2pac/IQFeed.CSharpApiClient/blob/master/src/IQFeed.CSharpApiClient/Lookup/Historical/Messages/IntervalMessage.cs | Github Open Source | Open Source | MIT | 2,019 | IQFeed.CSharpApiClient | mrut2pac | C# | Code | 327 | 966 | using System;
using System.Globalization;
using IQFeed.CSharpApiClient.Extensions;
namespace IQFeed.CSharpApiClient.Lookup.Historical.Messages
{
public class IntervalMessage : IIntervalMessage
{
public const string IntervalDateTimeFormat = "yyyy-MM-dd HH:mm:ss";
public IntervalMessage(DateTim... | 50,028 |
https://github.com/cqiang102/google_flutter_demo/blob/master/lib/main.dart | Github Open Source | Open Source | MIT | null | google_flutter_demo | cqiang102 | Dart | Code | 78 | 300 | import 'package:flutter/material.dart';
import 'package:flutter_localizations/flutter_localizations.dart';
import 'package:google_flutter_demo/home_page.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({Key? key}) : super(key: key);
// This widget is the root of y... | 30,110 |
https://github.com/meghanasherigar/AppFinalProj/blob/master/node_modules/ngx-ui-loader/lib/core/ngx-ui-loader.interfaces.d.ts | Github Open Source | Open Source | MIT | null | AppFinalProj | meghanasherigar | TypeScript | Code | 40 | 103 | export interface Task {
[taskId: string]: number;
}
export interface Loader {
loaderId: string;
foreground: Task;
background: Task;
isMaster?: boolean;
isBound: boolean;
}
export interface Loaders {
[loaderId: string]: Loader;
}
export interface ShowEvent {
loaderId: string;
isShow: ... | 2,503 |
https://github.com/fnuecke/Circuity/blob/master/src/main/java/li/cil/circuity/server/processor/mips/package-info.java | Github Open Source | Open Source | CC0-1.0, MIT, LicenseRef-scancode-public-domain | 2,017 | Circuity | fnuecke | Java | Code | 8 | 64 | @ParametersAreNonnullByDefault
@MethodsReturnNonnullByDefault
package li.cil.circuity.server.processor.mips;
import mcp.MethodsReturnNonnullByDefault;
import javax.annotation.ParametersAreNonnullByDefault;
| 17,016 |
https://github.com/lucasvale/ProjetoWeb/blob/master/codedelivery/app/Http/Controllers/ProductionController.php | Github Open Source | Open Source | MIT | 2,016 | ProjetoWeb | lucasvale | PHP | Code | 111 | 628 | <?php
namespace CodeDelivery\Http\Controllers;
use CodeDelivery\Repositories\CategoryRepository;
use CodeDelivery\Repositories\ProductRepository;
use CodeDelivery\Http\Requests\AdminProductRequest;
use Illuminate\Support\Facades\DB;
use Intervention\Image\Facades\Image;
use Illuminate\Http\Request;
class Product... | 44,433 |
https://github.com/rizwan3d/XF_FoodApp/blob/master/XF_FoodApp/XF_FoodApp/Models/Food.cs | Github Open Source | Open Source | MIT | 2,019 | XF_FoodApp | rizwan3d | C# | Code | 36 | 84 | using System;
using System.Collections.Generic;
using System.Text;
namespace XF_FoodApp.Models
{
public class Food
{
public string Image_Food { get; set; }
public string Title_Food { get; set; }
public string Price_Food { get; set; }
}
}
| 28,139 |
https://github.com/MaciejGrodecki/LicenseManager/blob/master/tests/LicenseManager.Tests/Services/LicenseTypeServiceTests.cs | Github Open Source | Open Source | Net-SNMP, Xnet | null | LicenseManager | MaciejGrodecki | C# | Code | 317 | 1,897 | using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using AutoMapper;
using FluentAssertions;
using LicenseManager.Core.Domain;
using LicenseManager.Core.Repositories;
using LicenseManager.Infrastructure.DTO;
using LicenseManager.Infrastructure.Services;
using Moq;
using Xunit;
namespace Lice... | 11,069 |
https://github.com/urids/XSCALAMPI/blob/master/ompi/mca/btl/openib/btl_openib_ini.h | Github Open Source | Open Source | BSD-3-Clause-Open-MPI | 2,019 | XSCALAMPI | urids | C | Code | 153 | 559 | /*
* Copyright (c) 2006-2013 Cisco Systems, Inc. All rights reserved.
* Copyright (c) 2008 Mellanox Technologies. All rights reserved.
* $COPYRIGHT$
*
* Additional copyrights may follow
*
* $HEADER$
*
* @file
*/
#ifndef MCA_PTL_IB_PARAMS_H
#define MCA_PTL_IB_PARAMS_H
#include "btl_openib.h"
/*
* St... | 47,372 |
https://github.com/Abc-Arbitrage/Zebus/blob/master/src/Abc.Zebus.Testing/TestBus.cs | Github Open Source | Open Source | MIT | 2,023 | Zebus | Abc-Arbitrage | C# | Code | 1,059 | 3,499 | using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Abc.Zebus.Serialization;
using Abc.Zebus.Testing.Comparison;
using Abc.Zebus.Util;
using Abc.Zebus.Util.Extensions;
namespace Abc.Zebus.Testing
{
public class TestBus : IBus,... | 18,102 |
https://github.com/Vitalinsh/Fruit_recognizer_application/blob/master/server/drafts/server2.py | Github Open Source | Open Source | MIT | 2,018 | Fruit_recognizer_application | Vitalinsh | Python | Code | 142 | 492 | import subprocess
import os
from flask import Flask, request, Response
import jsonpickle
import numpy as np
import cv2
import tensorflow as tf
from models.recognizer import FruitRecognizer
global graph
graph = tf.get_default_graph()
base_dir = os.path.abspath(os.path.dirname(__file__))
model_path = os.path.join(bas... | 51,054 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.