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/arenarium/battleground_agent_template/blob/master/arena_game/careful_attacker.py | Github Open Source | Open Source | MIT | null | battleground_agent_template | arenarium | Python | Code | 97 | 264 | from battleground.agent import Agent
from battleground.games.arena import building_blocks
class ArenaAgent(Agent):
def move(self, state):
"""
Attack if healthier that others, run otherwise.
"""
others_health = building_blocks.others_hitpoints(state)
my_health = building_... | 341 |
https://github.com/osbre/laravel-cachable-attributes/blob/master/tests/TestCase.php | Github Open Source | Open Source | MIT | 2,022 | laravel-cachable-attributes | osbre | PHP | Code | 149 | 632 | <?php
namespace Astrotomic\CachableAttributes\Tests;
use Astrotomic\CachableAttributes\Tests\Models\Gallery;
use Astrotomic\CachableAttributes\Tests\Models\Image;
use Illuminate\Cache\ArrayStore;
use Illuminate\Cache\CacheManager;
use Illuminate\Cache\Repository;
use Illuminate\Database\Schema\Blueprint;
use Illumina... | 53,484 |
https://github.com/MrGraversen/request-bin/blob/master/client/src/containers/LandingPage/NotFoundLandingPage.js | Github Open Source | Open Source | MIT | null | request-bin | MrGraversen | JavaScript | Code | 53 | 176 | import React from 'react';
const NotFoundLandingPage = () => {
return (
<section className="hero is-fullheight is-warning is-bold">
<div className="hero-body">
<div className="container">
<h1 className="title is-1 has-text-centered has-text-weight-light">
... | 7,773 |
https://github.com/vsister/app_to_deploy/blob/master/api/src/v1/utils/response/Response.ts | Github Open Source | Open Source | ISC | 2,021 | app_to_deploy | vsister | TypeScript | Code | 53 | 148 | import express from 'express';
export enum ResponseStatus {
Success = 'success',
Error = 'error',
}
export interface IResponse {
status: ResponseStatus;
}
export abstract class Response {
public constructor(protected readonly statusCode: number) {}
protected abstract buildPayload(): any;
public send(re... | 25,288 |
https://github.com/dominicwild/Digital-Development-Project/blob/master/src/components/Skills.jsx | Github Open Source | Open Source | MIT | 2,021 | Digital-Development-Project | dominicwild | JavaScript | Code | 180 | 422 | import React, { Component } from "react";
import Title from "./Title";
import "../css/Skills.css";
import SkillList from "./SkillList";
import Guidance from "./Guidance";
export default class Skills extends Component {
render() {
const mentorGuidance = <Guidance toolTip="Choose competencies which you have confi... | 2,366 |
https://github.com/charnan/Ldemo/blob/master/L/event/EventManager.php | Github Open Source | Open Source | BSD-2-Clause | 2,018 | Ldemo | charnan | PHP | Code | 92 | 312 | <?php
/**
* Created by PhpStorm.
* User: Mr.Li
* Date: 2017/10/9
* Time: 12:21
*/
namespace L\event;
class EventManager
{
private static $handlers = [];
public static function addHandler($name, $handler, $modules = '_all')
{
self::$handlers[$name][] = ['handler' => $handler,'groups' => $mo... | 23,561 |
https://github.com/georghinkel/ttc2017smartGrids/blob/master/solutions/NMF/Schema/IEC61968/Customers/CustomerKind.cs | Github Open Source | Open Source | MIT | 2,021 | ttc2017smartGrids | georghinkel | C# | Code | 137 | 644 | //------------------------------------------------------------------------------
// <auto-generated>
// Dieser Code wurde von einem Tool generiert.
// Laufzeitversion:4.0.30319.42000
//
// Änderungen an dieser Datei können falsches Verhalten verursachen und gehen verloren, wenn
// der Code erneut generi... | 5,421 |
https://github.com/joshua869/Sentiment-Analysis-in-Event-Driven-Stock-Price-Movement-Prediction/blob/master/archived/tfidf_tsne.py | Github Open Source | Open Source | MIT | 2,019 | Sentiment-Analysis-in-Event-Driven-Stock-Price-Movement-Prediction | joshua869 | Python | Code | 189 | 653 | # Adopted from https://github.com/lazyprogrammer/machine_learning_examples/blob/master/nlp_class2/tfidf_tsne.py
import json
import numpy as np
import matplotlib.pyplot as plt
from sklearn.utils import shuffle
from sklearn.manifold import TSNE
from datetime import datetime
# import os
# import sys
# sys.path.append(os... | 6,969 |
https://github.com/eyDev/qr_scanner_and_generator/blob/master/lib/src/data/ScanBloc.dart | Github Open Source | Open Source | MIT | null | qr_scanner_and_generator | eyDev | Dart | Code | 68 | 332 | import 'dart:async';
import 'package:eydev_qr_scanner_and_generator/src/data/DBConnection.dart';
import 'package:eydev_qr_scanner_and_generator/src/models/ScanModel.dart';
class ScansBloc {
static final ScansBloc scbloc = new ScansBloc._internal();
factory ScansBloc() {
return scbloc;
}
ScansBloc._inter... | 15,735 |
https://github.com/weavver/home/blob/master/api/src/identities/identity_verification_required.hbs | Github Open Source | Open Source | MIT | null | home | weavver | null | Spoken | 20 | 48 | <h3>Weavver Home</h3>
Here is your activation code: {{ code }}<br />
<br />
_________________<br />
Designed by Weavver, Inc.<br /> | 40,544 |
https://github.com/tradingview/lightweight-charts/blob/master/tests/e2e/graphics/test-cases/time-scale/hidden-time-scale-size.js | Github Open Source | Open Source | 0BSD, LicenseRef-scancode-warranty-disclaimer, Apache-2.0 | 2,023 | lightweight-charts | tradingview | JavaScript | Code | 156 | 400 | async function runTestCase(container) {
const chart = window.chart = LightweightCharts.createChart(container);
const timeScale = chart.timeScale();
const series = chart.addLineSeries();
series.setData([
{ time: '1990-04-24', value: 0 },
{ time: '1990-04-25', value: 1 },
{ time: '1990-04-26', value: 2 },
{... | 48,163 |
https://github.com/cego/request-log/blob/master/publishable/views/blacklisted-routes/create.blade.php | Github Open Source | Open Source | MIT | null | request-log | cego | PHP | Code | 89 | 385 | @extends("request-logs::layout.master")
@section("content")
<div class="container-flex">
<div class="row">
<div class="col-12">
<div class="pt-5">
<div class="mb-5">
<h1 class="">Request Logs - Blacklisted routes - Add route </h1>
... | 43,187 |
https://github.com/royaldark/node-chat-demo/blob/master/server.coffee | Github Open Source | Open Source | MIT | 2,015 | node-chat-demo | royaldark | CoffeeScript | Code | 217 | 649 | # Node dependencies
fs = require 'fs'
http = require 'http'
# Library dependencies
async = require 'async'
express = require 'express'
ioLib = require 'socket.io'
swig = require 'swig'
# Project dependencies
Util = require './server/util.coffee'
Packager = require './server/packager.coffee'
Sockets = require './serve... | 33,860 |
https://github.com/eliojavier/foinac_laravel/blob/master/app/Http/Controllers/PagosController.php | Github Open Source | Open Source | MIT | null | foinac_laravel | eliojavier | PHP | Code | 430 | 1,470 | <?php namespace App\Http\Controllers;
use App\Accounting;
use App\Asiento;
use App\Http\Requests;
use App\Http\Controllers\Controller;
use App\Loan;
use App\Payment;
use App\Stockholder;
use DateTime;
use Illuminate\Database\Eloquent\Collection;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;
use Il... | 5,436 |
https://github.com/fbukevin/sjs/blob/master/src/bindings/os.c | Github Open Source | Open Source | MIT | 2,022 | sjs | fbukevin | C | Code | 2,933 | 9,894 |
#include <assert.h>
#include <dirent.h>
#include <errno.h>
#include <fcntl.h>
#include <grp.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/syscall.h>
#include <sys/wait.h>
#include <stdlib.h>
#include <unistd.h>
#if defined(__APPLE__)
# include <crt_externs.h>
# define environ (*_NSGetEnviron())
#else
... | 26,783 |
https://github.com/w1r2p1/swap-pet-oracle/blob/master/contracts/SwapPetOracle.sol | Github Open Source | Open Source | Apache-2.0 | 2,020 | swap-pet-oracle | w1r2p1 | Gerber Image | Code | 568 | 1,453 | // SPDX-License-Identifier: Apache-2.0
// Copyright 2020 Swap.Pet@pm.me
// contracts/SwapPetOracle.sol
pragma solidity ^0.7.0;
// import "@nomiclabs/buidler/console.sol";
import "hardhat/console.sol";
/// @title Price Oracle of Swap.Pet.
/// @author Swap.Pet@pm.me
/// @dev price on base/quote, swapper for e... | 42,332 |
https://github.com/Aenori/ml_workflow/blob/master/ml_workflow/viz_utils.py | Github Open Source | Open Source | MIT | 2,021 | ml_workflow | Aenori | Python | Code | 617 | 2,430 | import os
import sys
import pydot
import datetime as dt
import re
import IPython
from IPython.display import SVG, display
from . import viz_utils_node_detail_writer
from . import viz_utils_layer
from . import rule
class VizUtils:
rankdir = 'TB'
dpi = 96
SHAPE_BY_CLASS_NAME = {
'Rule' : 'rec... | 2,330 |
https://github.com/cubiche/cubiche/blob/master/src/Cubiche/Core/Collections/ArrayCollection/ArrayListInterface.php | Github Open Source | Open Source | MIT | 2,020 | cubiche | cubiche | PHP | Code | 185 | 385 | <?php
/**
* This file is part of the Cubiche package.
*
* Copyright (c) Cubiche
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Cubiche\Core\Collections\ArrayCollection;
use Cubiche\Core\Collections\ListInterface;
use C... | 15,972 |
https://github.com/kmarcoscoder/Faculdade/blob/master/ProgramasC/ponteiros.c | Github Open Source | Open Source | MIT | 2,021 | Faculdade | kmarcoscoder | C | Code | 490 | 1,281 | #include <stdio.h>
#include <stdlib.h>
/*
int main()
{
int *x, valor, y;
valor = 35;
x = &valor;
y = *x;
printf("endereço da variável comum valor: %p\n", &valor);
printf("lendo o conteúdo do ponteiro x: %p\n", x);
printf("endereço da variável ponteiro x: %p\n", &x);
printf("conteúdo da... | 30,940 |
https://github.com/Iffyyy/Iffy/blob/master/eslint-config/packages/basic/index.js | Github Open Source | Open Source | MIT | 2,022 | Iffy | Iffyyy | JavaScript | Code | 51 | 225 | // https://github.com/lerna/lerna/issues/1821
module.exports = {
env: {
es6: true,
browser: true,
node: true,
},
reportUnusedDisableDirectives: true,
/**
* https://eslint.org/docs/latest/user-guide/configuring/plugins#configuring-plugins
*/
plugins:[
'normal... | 37,846 |
https://github.com/arif98741/oes2/blob/master/resources/views/blog/post.blade.php | Github Open Source | Open Source | MIT | null | oes2 | arif98741 | PHP | Code | 181 | 919 | @extends('blog.master')
@section('body')
<style type="text/css">
.empty-content{
min-height: 200px;
justify-content: center;
align-items: center;
display: flex;
background: #f8f9fa;
}
.empty-content h4{
color: red;
text-transform: uppercase;
}
</style>
@if(empty($post))
<div cl... | 2,004 |
https://github.com/K0bin/SourceRenderer/blob/master/valve_formats/vpk/src/package.rs | Github Open Source | Open Source | MIT | 2,023 | SourceRenderer | K0bin | Rust | Code | 1,675 | 6,218 | use std::io::{Read, BufReader, Seek, Error as IOError, Result as IOResult, SeekFrom};
use package_entry::PackageEntry;
use std::collections::HashMap;
use archive_md5_section_entry::ArchiveMD5SectionEntry;
use read_util::{PrimitiveRead, StringRead, StringReadError, RawDataRead};
use crc::{self, Crc};
use utilities::AsnK... | 8,770 |
https://github.com/fangjinuo/langx/blob/master/langx-java/src/main/java/com/jn/langx/util/collection/iter/WrappedListIterator.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | langx | fangjinuo | Java | Code | 125 | 409 | package com.jn.langx.util.collection.iter;
import com.jn.langx.util.Preconditions;
import java.util.ListIterator;
public class WrappedListIterator<E> implements ListIterator<E> {
private ListIterator<E> delegate;
private boolean mutable;
public WrappedListIterator(ListIterator delegate) {
this(d... | 3,347 |
https://github.com/bazaarvoice/clientresponse-demo/blob/master/client/src/utils/config.js | Github Open Source | Open Source | Apache-2.0 | 2,019 | clientresponse-demo | bazaarvoice | JavaScript | Code | 28 | 120 | export const configurations = {
client_name: '',
auth: {
client_id: '',
endpoint: 'https://api.bazaarvoice.com/auth/v1/oauth2',
redirect_uri: 'http://localhost:5000/api/redirect',
passkey: ''
},
conversations: {
version: '5.4',
passkey: '',
endpoint: 'https://api.bazaarvoice.com/data... | 51,785 |
https://github.com/amgrobelny-box/boxcli/blob/master/src/commands/retention-policies/files-under-retention/get.js | Github Open Source | Open Source | BSD-3-Clause | 2,022 | boxcli | amgrobelny-box | JavaScript | Code | 87 | 382 | 'use strict';
const BoxCommand = require('../../../box-command');
class RetentionPoliciesGetFilesRetentionForAssignmentCommand extends BoxCommand {
async run() {
const { flags, args } = this.parse(RetentionPoliciesGetFilesRetentionForAssignmentCommand);
let options = {};
if (flags.fields) {
options.fields ... | 8,322 |
https://github.com/williambong/Vivado/blob/master/Vivado_HLS_Tutorial/Arbitrary_Precision/lab1/window_fn_prj/solution1/syn/vhdl/window_fn_top.vhd | Github Open Source | Open Source | MIT | null | Vivado | williambong | VHDL | Code | 1,486 | 6,512 | -- ==============================================================
-- RTL generated by Vivado(TM) HLS - High-Level Synthesis from C, C++ and SystemC
-- Version: 2015.2
-- Copyright (C) 2015 Xilinx Inc. All rights reserved.
--
-- ===========================================================
library IEEE;
use IEEE.std_log... | 2,828 |
https://github.com/james4388/conclave/blob/master/lib/char.js | Github Open Source | Open Source | MIT | 2,019 | conclave | james4388 | JavaScript | Code | 91 | 249 | class Char {
constructor(value, counter, siteId, identifiers) {
this.position = identifiers;
this.counter = counter;
this.siteId = siteId;
this.value = value;
}
compareTo(otherChar) {
let comp, id1, id2;
const pos1 = this.position;
const pos2 = otherChar.position;
for (let i = 0;... | 34,949 |
https://github.com/advanced-software-engineering/ASE19/blob/master/src/main/java/ch/uzh/ifi/seal/ase19/core/InMemoryPersistenceManager.java | Github Open Source | Open Source | Apache-2.0 | 2,019 | ASE19 | advanced-software-engineering | Java | Code | 131 | 514 | package ch.uzh.ifi.seal.ase19.core;
import ch.uzh.ifi.seal.ase19.core.models.QuerySelection;
import ch.uzh.ifi.seal.ase19.core.models.ResultType;
import org.apache.commons.lang3.tuple.Pair;
import java.util.HashMap;
import java.util.Set;
public class InMemoryPersistenceManager implements IPersistenceManager {
pr... | 10,290 |
https://github.com/yiqilvxing/Android-Basic-Sample/blob/master/app/src/main/java/com/cnitr/cn/widget/LoadingDialog.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | Android-Basic-Sample | yiqilvxing | Java | Code | 341 | 1,182 | package com.cnitr.cn.widget;
import android.app.Dialog;
import android.content.Context;
import android.content.DialogInterface;
import android.graphics.Color;
import android.graphics.drawable.ColorDrawable;
import android.support.annotation.NonNull;
import android.view.LayoutInflater;
import android.view.View;
import ... | 7,725 |
https://github.com/NReilingh/flux/blob/master/libflux/flux-core/src/parser/tests.rs | Github Open Source | Open Source | MIT | 2,020 | flux | NReilingh | Rust | Code | 20,000 | 57,393 | use super::*; use crate::ast; use crate::ast::Expression::{Array, Member}; use crate::ast::Statement::Variable; use crate::ast::StringExprPart::{Interpolated, Text}; use chrono; use pretty_assertions::assert_eq; struct Locator<'a> { source: &'a str, lines: Vec<u32>, } impl<'a> Locator<'a> { fn new(source: &'a str) -> S... | 12,423 |
https://github.com/m039/Void/blob/master/void-core/src/Common/Time.cpp | Github Open Source | Open Source | MIT | 2,017 | Void | m039 | C++ | Code | 58 | 184 | //
// Created by Dmitry Mozgin on 24/04/2017.
//
#include "Time.h"
using namespace vd;
//region Time
sec_t Time::_DeltaTime = 0.0f;
//endregion
//region internal::Time
sec_t internal::Time::_PreviousTime = 0.0f;
bool internal::Time::_Started = false;
void internal::Time::Update() {
auto time = vd::Time::Ge... | 36,379 |
https://github.com/SoThisMint/backend/blob/master/src/main/java/io/penguinstats/enums/UploadCountType.java | Github Open Source | Open Source | MIT | 2,019 | backend | SoThisMint | Java | Code | 22 | 98 | package io.penguinstats.enums;
import lombok.AllArgsConstructor;
import lombok.Getter;
@Getter
@AllArgsConstructor
public enum UploadCountType {
TOTAL_UPLOAD("total","totalUpload"),
RELIABLE_UPLOAD("reliable", "reliableUpload");
private String type;
private String name;
}
| 35,032 |
https://github.com/gabrielebaris/IIRAudioFilterFPGA/blob/master/db/src/RippleCarryAdderSubtractor.vhd | Github Open Source | Open Source | MIT | 2,022 | IIRAudioFilterFPGA | gabrielebaris | VHDL | Code | 116 | 424 | library IEEE;
use IEEE.std_logic_1164.all;
entity RippleCarryAdderSubtractor is
generic (Nbit : positive := 8);
port (
a : in std_ulogic_vector(Nbit-1 downto 0);
b : in std_ulogic_vector(Nbit-1 downto 0);
d : in std_ulogic;
cout : out std_ulogic;
s : out std_ulogic_vector(Nbit-1 downto 0)
);
end RippleCar... | 26,136 |
https://github.com/f110/heimdallr/blob/master/pkg/k8s/thirdpartyclient/BUILD.bazel | Github Open Source | Open Source | MIT | 2,023 | heimdallr | f110 | Starlark | Code | 60 | 589 | load("@io_bazel_rules_go//go:def.bzl", "go_library")
load("@dev_f110_kubeproto//bazel:def.bzl", "go_client")
load("//build/rules:vendor.bzl", "vendor_kubeproto")
go_client(
name = "go_client",
srcs = [
"//operator/proto/github.com/jetstack/cert-manager/pkg/apis/certmanagerv1",
"//operator/proto... | 38,221 |
https://github.com/BRITE-REU/git-practice/blob/master/cli.py | Github Open Source | Open Source | MIT | 2,019 | git-practice | BRITE-REU | Python | Code | 111 | 441 | #!/usr/bin/env python
import click
from movie_recommender import movie_recommender
@click.command()
@click.option('--metadata', '-md', default="data/metadata.csv", type=click.Path(exists=True), help="Metadata file")
@click.option('--credits', '-cr', default="data/credits.csv", type=click.Path(exists=True), help="Cr... | 45,748 |
https://github.com/cptpcrd/slibc/blob/master/src/statfs.rs | Github Open Source | Open Source | MIT | 2,022 | slibc | cptpcrd | Rust | Code | 1,618 | 5,742 | use crate::internal_prelude::*;
/// This ensures that `sys::statfs` is the same size as `libc::statfs`.
const _STATFS_SIZE_CHECK: sys::statfs =
unsafe { core::mem::transmute([0u8; core::mem::size_of::<libc::statfs>()]) };
#[allow(non_camel_case_types)]
#[cfg_attr(docsrs, doc(cfg(not(target_os = "netbsd"))))]
#[cf... | 10,725 |
https://github.com/parampavar/pts/blob/master/demo/guide.op_closest.js | Github Open Source | Open Source | Apache-2.0 | 2,022 | pts | parampavar | JavaScript | Code | 104 | 306 | // Source code licensed under Apache License 2.0.
// Copyright © 2017 William Ngan. (https://github.com/williamngan/pts)
window.demoDescription = "Nearest point demo in Op guide.";
//// Demo code starts (anonymous function wrapper is optional) ---
(function() {
let run = Pts.quickStart( "#pt", "#e2e6ef" );
l... | 40,505 |
https://github.com/emmabhattii/pixi.js/blob/master/packages/canvas/canvas-graphics/src/index.js | Github Open Source | Open Source | MIT | 2,019 | pixi.js | emmabhattii | JavaScript | Code | 10 | 23 | export { default as CanvasGraphicsRenderer } from './CanvasGraphicsRenderer';
import './Graphics';
| 51,920 |
https://github.com/Azure/azure-powershell/blob/master/src/Migrate/custom/Get-AzMigrateDiscoveredServer.ps1 | Github Open Source | Open Source | LicenseRef-scancode-warranty-disclaimer, MIT, Apache-2.0 | 2,023 | azure-powershell | Azure | PowerShell | Code | 596 | 1,994 |
# ----------------------------------------------------------------------------------
#
# 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.apache.org... | 49,093 |
https://github.com/wiggi/huntercoin-testnet2/blob/master/src/qt/gamemapview.h | Github Open Source | Open Source | MIT | null | huntercoin-testnet2 | wiggi | C | Code | 145 | 539 | #ifndef GAMEMAPVIEW_H
#define GAMEMAPVIEW_H
#include "../gamemovecreator.h"
#include <QGraphicsView>
#include <QGraphicsScene>
#include <QGraphicsPathItem>
#include <QGraphicsPixmapItem>
#include <QHash>
namespace Game
{
class CharacterState;
class GameState;
}
QT_BEGIN_NAMESPACE
class QTimeLine;
QT_END_NAM... | 42,640 |
https://github.com/bgcert/dev3/blob/master/resources/assets/sass/app.scss | Github Open Source | Open Source | MIT | null | dev3 | bgcert | SCSS | Code | 949 | 3,915 | @import url('https://fonts.googleapis.com/css?family=Montserrat:100i,300,400,400i,500,800');
@import url('https://fonts.googleapis.com/css?family=Montserrat:100,100i,200,200i,300,300i,400,400i,500,700,800,900');
@import url('https://fonts.googleapis.com/css?family=Open+Sans');
// @import url('https://fonts.googleapis.c... | 41,798 |
https://github.com/alf239/ProvingGround/blob/master/core/src/main/scala/provingground/Context.scala | Github Open Source | Open Source | MIT | null | ProvingGround | alf239 | Scala | Code | 535 | 1,623 | package provingground
import HoTT._, induction._
object Context {
case object Empty extends Context {
val constants: Vector[Term] = Vector()
val variables: Vector[Term] = Vector()
val terms = Vector()
val definitions: Vector[Context.Defn[Term]] = Vector()
val inductiveDefns: Vector[ExstIndu... | 19,525 |
https://github.com/hamzakilic/photoedit_app/blob/master/src/app/directives/mouse.directive.ts | Github Open Source | Open Source | Apache-2.0 | 2,018 | photoedit_app | hamzakilic | TypeScript | Code | 171 | 699 | import { Directive, Output, HostListener, EventEmitter,Input } from '@angular/core';
@Directive({ selector: '[mouse]' })
export class MouseDirective {
@Output() mouseWheelUp = new EventEmitter();
@Output() mouseWheelDown = new EventEmitter();
@Output() mouseDown = new EventEmitter();
@Output() mouseUp = new Ev... | 15,477 |
https://github.com/taksakorn/font-awesome-openui5/blob/master/test/test.bundle.js | Github Open Source | Open Source | MIT | 2,016 | font-awesome-openui5 | taksakorn | JavaScript | Code | 41 | 148 | 'use strict';
const iconCount = window.__json__.$get('test/icon-count.json');
describe('Font Awesome OpenUI5 - Bundle', function () {
it('should loaded OpenUI5 icon pool module', function () {
expect(sap.ui.core.IconPool).to.exist;
});
it('should add all Font Awesome icons into OpenUI5 icon pool.', function () {... | 42,004 |
https://github.com/RilaShu/spatio-temporal-visualization-of-massive-web-map-logs/blob/master/tile-rendering/src/main/java/com/oculusinfo/tile/rendering/transformations/combine/NormalizeTileCombiner.java | Github Open Source | Open Source | MIT | 2,019 | spatio-temporal-visualization-of-massive-web-map-logs | RilaShu | Java | Code | 472 | 1,199 | /*
* Copyright (c) 2015 Uncharted Software. http://www.uncharted.software/
*
* Released under the MIT License.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, in... | 12,137 |
https://github.com/CATboardBETA/ConcordDesktop/blob/master/src/main/java/io/github/concordcommunication/desktop/control/ChannelsListChangeListener.java | Github Open Source | Open Source | MIT | 2,021 | ConcordDesktop | CATboardBETA | Java | Code | 94 | 382 | package io.github.concordcommunication.desktop.control;
import io.github.concordcommunication.desktop.model.Channel;
import io.github.concordcommunication.desktop.view.ChannelTreeItem;
import javafx.application.Platform;
import javafx.collections.ListChangeListener;
import javafx.scene.control.TreeItem;
public class ... | 45,611 |
https://github.com/cheung31/iMsg/blob/master/src/client/containers/RecipientsListContainer/index.js | Github Open Source | Open Source | MIT | 2,020 | iMsg | cheung31 | JavaScript | Code | 103 | 326 |
import React, { Component } from 'react'
import { bindActionCreators } from 'redux'
import { connect } from 'react-redux'
import RecipientsList from '../../components/RecipientsList'
import * as UserActions from '../../actions/users'
import style from './style.css'
class RecipientsListContainer extends Component {
... | 36,571 |
https://github.com/gemaannisa/UTS_WEB/blob/master/app/Controllers/Pinjam.php | Github Open Source | Open Source | MIT | null | UTS_WEB | gemaannisa | PHP | Code | 155 | 835 | <?php namespace App\Controllers;
use \App\Models\Pinjammodel;
class Pinjam extends BaseController
{
protected $pinjamModel;
protected $data_pinjam;
public function __construct(){
$this->pinjamModel = new Pinjammodel();
}
public function index()
{
$currentPage = $this->request->getVar... | 508 |
https://github.com/NYPL/labs.nypl.org/blob/master/core/test/integration/api/api_users_spec.js | Github Open Source | Open Source | MIT | 2,014 | labs.nypl.org | NYPL | JavaScript | Code | 84 | 305 | /*globals describe, before, beforeEach, afterEach, it */
var testUtils = require('../../utils'),
should = require('should'),
// Stuff we are testing
DataGenerator = require('../../utils/fixtures/data-generator'),
UsersAPI = require('../../../server/api/users');
describe('Users API', function ... | 8,066 |
https://github.com/vinctustech/energize/blob/master/src/test/scala/RoutingTests.scala | Github Open Source | Open Source | 0BSD | 2,021 | energize | vinctustech | Scala | Code | 406 | 1,115 | package xyz.hyperreal.energize
import org.scalatest._
import prop.PropertyChecks
class RoutingTests extends FreeSpec with PropertyChecks with Matchers {
// "routes" in {
// val (c, s, d) = Test.dbconnect
// val key = AUTHORIZATION.getString( "key" )
// val src =
// """
// |val a = 2
// |
// |routes
//... | 23,058 |
https://github.com/MohsenMohammadkhani/example-design-patterns-php/blob/master/src/behaviour/chainOfResponsibility/RegistrationService/Checkers.php | Github Open Source | Open Source | MIT | null | example-design-patterns-php | MohsenMohammadkhani | PHP | Code | 35 | 128 | <?php
namespace src\behaviour\chainOfResponsibility\RegistrationService;
abstract class Checkers
{
private $nextChecker;
public function __construct(Checkers $nextChecker = null)
{
$this->nextChecker = $nextChecker;
}
public function check(RegistrationRequest $request)
{
if (!... | 49,881 |
https://github.com/carolineBda/compoxure/blob/master/example/proxy.js | Github Open Source | Open Source | MIT | null | compoxure | carolineBda | JavaScript | Code | 166 | 439 | 'use strict';
var cx = require('../');
var config = require('./config.json')
var connect = require('connect');
var cookieParser = require('cookie-parser');
var morgan = require('morgan');
function createEventHandler() {
return {
logger: function(level, message) {
if(process.env.logging !== 'fa... | 19,458 |
https://github.com/JDuffeyBQ/DREAM3DReview/blob/master/TDMSSupport/TDMSProperty.h | Github Open Source | Open Source | BSD-3-Clause | null | DREAM3DReview | JDuffeyBQ | C | Code | 68 | 292 | #ifndef _tdmsproperty_h
#define _tdmsproperty_h
#include <memory>
#include "TDMSDataType.hpp"
#include "SIMPLib/DataArrays/DataArray.hpp"
class IDataArray;
using IDataArrayShPtrType = std::shared_ptr<IDataArray>;
class TDMSMetaData;
class TDMSProperty
{
public:
virtual ~TDMSProperty();
TDMSProperty(const TDMS... | 35,292 |
https://github.com/ScalablyTyped/scala-st-std/blob/master/scala-st-std/src/main/scala/org.scalablytyped/std/HashChangeEventInit.scala | Github Open Source | Open Source | MIT | null | scala-st-std | ScalablyTyped | Scala | Code | 117 | 473 | package org.scalablytyped.std
import scala.scalajs.js
import scala.scalajs.js.`|`
import scala.scalajs.js.annotation._
trait HashChangeEventInit extends EventInit {
var newURL: js.UndefOr[java.lang.String] = js.undefined
var oldURL: js.UndefOr[java.lang.String] = js.undefined
}
object HashChangeEventInit {
@sc... | 46,112 |
https://github.com/Gauravkumar268/Hypleystaging/blob/master/wp-content/plugins/breeze/views/tabs/advanced.php | Github Open Source | Open Source | MIT | null | Hypleystaging | Gauravkumar268 | PHP | Code | 1,010 | 3,742 | <?php
defined( 'ABSPATH' ) or die;
$advanced = breeze_get_option( 'advanced_settings', true );
$excluded_css_check = true;
$excluded_js_check = true;
$excluded_css_check_extension = true;
$excluded_js_check_extension = true;
$excluded_url_list = true;
if ( isset( $advanced['breeze-exc... | 24,594 |
https://github.com/i-gaven/Just_a_dumper/blob/master/all_headers/UC浏览器-新闻头条智能浏览器-11.9.2(越狱应用)_headers/CloudSyncTaskState.h | Github Open Source | Open Source | MIT | 2,018 | Just_a_dumper | i-gaven | Objective-C | Code | 65 | 190 | //
// Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 17 2017 16:24:48).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by Steve Nygard.
//
#import <Foundation/NSObject.h>
@interface CloudSyncTaskState : NSObject
{
int _errorRespCode;
long long _state;
long long... | 37,136 |
https://github.com/imamfarisi19/Praktikum-Pemrograman-Web-Dinamis/blob/master/app/Http/Controllers/MahasiswaController.php | Github Open Source | Open Source | MIT | null | Praktikum-Pemrograman-Web-Dinamis | imamfarisi19 | PHP | Code | 87 | 347 | <?php
namespace App\Http\Controllers;
use App\Mahasiswa;
use Illuminate\Http\Request;
class MahasiswaController extends Controller
{
public function index()
{
$dtMhs = Mahasiswa::all();
return view('Data-mahasiswa',compact('dtMhs'));
}
public function create()
{
return view(... | 28,793 |
https://github.com/Unleash/unleash/blob/master/frontend/src/hooks/useQueryStringNumberState.ts | Github Open Source | Open Source | Apache-2.0 | 2,023 | unleash | Unleash | TypeScript | Code | 69 | 164 | import { useCallback } from 'react';
import { useQueryStringState } from './useQueryStringState';
// Store a number in the query string. Call setState to update the query string.
export const useQueryStringNumberState = (
key: string
): [number | undefined, (value: number) => void] => {
const [value, setValue]... | 2,149 |
https://github.com/spasma/neoline/blob/master/src/app/popup/_dialogs/tx-detail/tx-detail.dialog.ts | Github Open Source | Open Source | MIT | null | neoline | spasma | TypeScript | Code | 93 | 315 | import { Component, Inject } from '@angular/core';
import { MAT_DIALOG_DATA } from '@angular/material/dialog';
import { TransactionState } from '@/app/core';
@Component({
templateUrl: 'tx-detail.dialog.html',
styleUrls: ['tx-detail.dialog.scss']
})
export class PopupTxDetailDialogComponent {
txDetail: any;... | 17,295 |
https://github.com/CPSECapstone/webrew/blob/master/src/Components/SingleStudentOverview/MasteryCard.tsx | Github Open Source | Open Source | MIT | null | webrew | CPSECapstone | TypeScript | Code | 286 | 967 | import { Link } from 'react-router-dom';
import { Box, createStyles, LinearProgress, Typography, withStyles } from '@material-ui/core';
import { TaskStats } from '../../__generated__/types';
import './MasteryCard.scss';
import { User } from '../../interfaces/User';
const MasteredProgress = withStyles(() =>
createSt... | 15,723 |
https://github.com/samvarankashyap/amazondynamodb/blob/master/samplescripts/create_table.py | Github Open Source | Open Source | Apache-2.0 | null | amazondynamodb | samvarankashyap | Python | Code | 33 | 141 | import boto
from boto.dynamodb2.fields import HashKey
from boto.dynamodb2.table import Table
conn = boto.dynamodb.connect_to_region('us-west-2')
connection=boto.dynamodb2.connect_to_region('us-west-2')
users = Table.create('users', schema=[
HashKey('username'), # defaults to STRING data_type
], throughput={
... | 4,550 |
https://github.com/clom/toasts/blob/master/src/model/user.ts | Github Open Source | Open Source | Apache-2.0 | null | toasts | clom | TypeScript | Code | 20 | 45 | /**
* user model
*/
import * as role from 'model/role';
export interface Model {
'id': string;
'roles': role.Model[];
};
| 7,184 |
https://github.com/spacefrogg/nixpkgs/blob/master/pkgs/development/coq-modules/dpdgraph/default.nix | Github Open Source | Open Source | MIT | 2,021 | nixpkgs | spacefrogg | null | Spoken | 83 | 345 | { stdenv, fetchFromGitHub, coq, ocamlPackages }:
stdenv.mkDerivation {
name = "coq${coq.coq-version}-dpdgraph-0.5";
src = fetchFromGitHub {
owner = "Karmaki";
repo = "coq-dpdgraph";
rev = "227a6a28bf11cf1ea56f359160558965154dd176";
sha256 = "1vxf7qq37mnmlclkr394147xvrky3p98ar08c4wndwrp41gfbxhq";
... | 21,224 |
https://github.com/0xC000005/eps11cpp/blob/master/Max-Programming 12/guessing_game/guessing_game/guesing_game.cpp | Github Open Source | Open Source | MIT | 2,019 | eps11cpp | 0xC000005 | C++ | Code | 216 | 903 | //Max Zhang - Oct. 22
#include<iostream>
#include<conio.h>
#include<string>
#include<cmath>
using namespace std;
const int MAX=2147483647; //preset
int range=MAX;
int secret;
int get_input(string init="Enter an integer: ",string help="Enter an integer: ")
{
cout<<init;
double num;
cin>>num;
while(num!=int(num)) ... | 53,317 |
https://github.com/teddy920810/kudo-mall/blob/master/litemall-admin-api/src/main/java/org/linlinjava/litemall/admin/web/AdminSeriesController.java | Github Open Source | Open Source | CC-BY-ND-4.0, MIT | 2,019 | kudo-mall | teddy920810 | Java | Code | 315 | 1,484 | package org.linlinjava.litemall.admin.web;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.linlinjava.litemall.admin.annotation.RequiresPermissionsDesc;
import org.linlinjava.litemall.admin.vo.SeriesVo;
import... | 9,964 |
https://github.com/varya/patterns-day-2019/blob/master/shower/lib/plugins/timer/parse-timing.js | Github Open Source | Open Source | MIT | 2,021 | patterns-day-2019 | varya | JavaScript | Code | 94 | 259 | const units = ['s', 'm', 'h'];
const hasUnits = timing => {
return units.some(unit => timing.includes(unit));
};
const parseUnits = timing => {
return units
.map(unit => timing.match(`(\\S+)${unit}`))
.map(match => match && match[1]);
};
const parseColons = timing => {
return `::${timing}`... | 23,833 |
https://github.com/ruworuro/plugins/blob/master/security/acme-client/src/opnsense/mvc/app/library/OPNsense/AcmeClient/LeAccount.php | Github Open Source | Open Source | BSD-2-Clause | null | plugins | ruworuro | PHP | Code | 1,020 | 2,894 | <?php
/*
* Copyright (C) 2020 Frank Wall
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this list of co... | 24,651 |
https://github.com/xygdev/interactReport/blob/master/WebRoot/InsertEmpVO.jsp | Github Open Source | Open Source | MIT | null | interactReport | xygdev | null | Spoken | 138 | 682 | <%@ page language="java" import="java.util.*,com.xinyiglass.paging.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html... | 36,772 |
https://github.com/ituatech/otus-spring-homework/blob/master/hw06/src/main/java/edu/otus/hw06/service/impl/GenreServiceImpl.java | Github Open Source | Open Source | Apache-2.0 | 2,018 | otus-spring-homework | ituatech | Java | Code | 112 | 396 | package edu.otus.hw06.service.impl;
import edu.otus.hw06.entities.Genre;
import edu.otus.hw06.repository.GenreRepository;
import edu.otus.hw06.service.GenreService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereot... | 53,437 |
https://github.com/alexli0707/codeme-im/blob/master/im-api/src/main/java/org/codeme/im/imapi/constant/UserStatusEnum.java | Github Open Source | Open Source | MIT | 2,021 | codeme-im | alexli0707 | Java | Code | 106 | 403 | package org.codeme.im.imapi.constant;
import org.codeme.im.imcommon.constant.RestHttpErrorResponseEnum;
import org.codeme.im.imcommon.http.exp.RestHttpException;
import java.util.Arrays;
import java.util.Map;
import java.util.stream.Collectors;
/**
* UserStatusEnum
* 用户状态
*
* @author walker lee
* @date 2019-10... | 54,404 |
https://github.com/TailActor/cocos2d-js-3.17.2-wwise/blob/master/frameworks/runtime-src/Classes/wwise/SoundEngine/Android/libzip/man/zip_dir_add.man | Github Open Source | Open Source | MIT | null | cocos2d-js-3.17.2-wwise | TailActor | null | Spoken | 212 | 646 | .TH "ZIP_DIR_ADD" "3" "December 4, 2014" "NiH" "Library Functions Manual"
.SH "NAME"
\fBzip_dir_add\fP
\- add directory to zip archive
.SH "LIBRARY"
libzip (-lzip)
.SH "SYNOPSIS"
zip.h
zip_int64_t
zip_dir_add zip_t *archive const char *name zip_flags_t flags
.SH "DESCRIPTION"
The function
zip_dir_add
adds a directory t... | 18,096 |
https://github.com/joedaniels29/Surely/blob/master/Tests/Examples.swift | Github Open Source | Open Source | MIT | null | Surely | joedaniels29 | Swift | Code | 68 | 219 | //
// Examples.swift
// Surely
//
// Created by joe on 10/30/16.
// Copyright © 2016 Károly Lőrentey. All rights reserved.
//
import Foundation
class WebRequestSurely: SurelyOperation{
var url : URL
required init?(coder aDecoder: NSCoder) {
url = aDecoder.decodeObject(forKey: "URL") as! URL
... | 5,480 |
https://github.com/uninth/UNItools/blob/master/src/GaIA/pkgs/perl/ActivePerl-5.8.7.815-i686-linux-2.2.17-gcc-211909/perl/lib/5.8.7/pod/perlfaq9.pod | Github Open Source | Open Source | BSD-3-Clause | null | UNItools | uninth | null | Spoken | 3,662 | 7,151 | =head1 NAME
perlfaq9 - Networking ($Revision: 1.19 $, $Date: 2005/01/21 12:14:12 $)
=head1 DESCRIPTION
This section deals with questions related to networking, the internet,
and a few on the web.
=head2 What is the correct form of response from a CGI script?
(Alan Flavell <flavell+www@a5.ph.gla.ac.uk> answers...)
... | 11,603 |
https://github.com/AndersSpringborg/avs-device-sdk/blob/master/build/cmake/Metrics.cmake | Github Open Source | Open Source | Apache-2.0 | 2,022 | avs-device-sdk | AndersSpringborg | CMake | Code | 41 | 119 | #
# Setup the Metrics compiler options.
#
# To build with Metrics support, include the following option on the cmake command line.
# cmake <path-to-source> -DMETRICS=ON
#
option(METRICS "Enable Metrics upload." OFF)
if(METRICS)
message("Creating ${PROJECT_NAME} with Metrics upload")
add_definitions(-DACSDK... | 4,727 |
https://github.com/cuckata23/wurfl-data/blob/master/data/samsung_z550_ver1.php | Github Open Source | Open Source | Apache-2.0, MIT | 2,015 | wurfl-data | cuckata23 | PHP | Code | 82 | 354 | <?php
return array (
'id' => 'samsung_z550_ver1',
'fallback' => 'opwv_v7_generic',
'capabilities' =>
array (
'model_name' => 'SGH-Z550',
'brand_name' => 'Samsung',
'physical_screen_height' => '41',
'columns' => '16',
'physical_screen_width' => '30',
'max_image_width' => '233',
'rows... | 39,956 |
https://github.com/rmorgan10/LSSTC-DSFP-Sessions/blob/master/Session9/Day2/test_lcs/053436-7539.8 | Github Open Source | Open Source | MIT | null | LSSTC-DSFP-Sessions | rmorgan10 | null | Spoken | 1,398 | 5,690 | 1868.69967 14.376 0.033
1869.68954 15.043 0.035
1869.71149 14.35 0.043
1870.6972 14.441 0.043
1870.71451 14.687 0.042
1871.70101 14.687 0.039
1871.72546 13.967 0.042
1872.697 14.386 0.039
1872.71439 15.148 0.042
1873.71612 14.037 0.047
1874.68814 15.529 0.043
1874.70316 13.642 0.044
1875.68822 13.692 0.035
1875.70541 1... | 5,980 |
https://github.com/jiangzhonghui/android-platform-tools-base/blob/master/build-system/gradle-core/src/main/groovy/com/android/build/gradle/internal/ApplicationTaskManager.groovy | Github Open Source | Open Source | Apache-2.0 | 2,015 | android-platform-tools-base | jiangzhonghui | Groovy | Code | 557 | 2,054 | /*
* Copyright (C) 2015 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 30,516 |
https://github.com/xilution/xilution-iam-react/blob/master/src/auth/services/token-service.ts | Github Open Source | Open Source | MIT | null | xilution-iam-react | xilution | TypeScript | Code | 138 | 428 | import {decode} from "jsonwebtoken";
const ACCESS_TOKEN_KEY = "access_token";
const REFRESH_TOKEN_KEY = "refresh_token";
const isActive = (timeInMilliseconds: number) => new Date(timeInMilliseconds).getTime() > new Date().getTime();
export const getAccessToken = () => localStorage.getItem(ACCESS_TOKEN_KEY) || undefi... | 26,659 |
https://github.com/carmenlau/authgear-server/blob/master/pkg/lib/interaction/intent.go | Github Open Source | Open Source | Apache-2.0 | null | authgear-server | carmenlau | Go | Code | 102 | 313 | package interaction
import (
"reflect"
)
type Intent interface {
InstantiateRootNode(ctx *Context, graph *Graph) (Node, error)
DeriveEdgesForNode(graph *Graph, node Node) ([]Edge, error)
}
type IntentFactory func() Intent
var intentRegistry = map[string]IntentFactory{}
func RegisterIntent(intent Intent) {
inte... | 32,311 |
https://github.com/hir0pr0tagonist/tesb-rt-se/blob/master/sam/sam-server/src/main/java/org/talend/esb/sam/server/persistence/dialects/SqlServerDialect.java | Github Open Source | Open Source | Apache-2.0 | null | tesb-rt-se | hir0pr0tagonist | Java | Code | 239 | 616 | /*
* #%L
* Service Activity Monitoring :: Server
* %%
* Copyright (C) 2011 - 2012 Talend 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/lice... | 7,614 |
https://github.com/thomasboyt/oasis.js/blob/master/lib/oasis/config.js | Github Open Source | Open Source | MIT | 2,013 | oasis.js | thomasboyt | JavaScript | Code | 73 | 144 | /**
Stores Oasis configuration. Options include:
- `oasisURL` - the default URL to use for sandboxes.
- `eventCallback` - a function that wraps `message` event handlers. By
default the event hanlder is simply invoked.
- `allowSameOrigin` - a card can be hosted on the same domain
*/
var configuration = {
... | 4,161 |
https://github.com/romankarkachev/fresh-office/blob/master/console/migrations/m170218_081016_create_documents_tp_table.php | Github Open Source | Open Source | BSD-3-Clause | null | fresh-office | romankarkachev | PHP | Code | 120 | 652 | <?php
use yii\db\Migration;
/**
* Создается таблица "Табличные части документов".
*/
class m170218_081016_create_documents_tp_table extends Migration
{
/**
* @inheritdoc
*/
public function up()
{
$tableOptions = null;
if ($this->db->driverName === 'mysql') {
$tableO... | 13,012 |
https://github.com/facebook/infer/blob/master/infer/src/checkers/liveness.mli | Github Open Source | Open Source | MIT, GPL-1.0-or-later | 2,023 | infer | facebook | OCaml | Code | 148 | 289 | (*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
open! IStd
module Domain : sig
include AbstractDomain.WithBottom
val add : Var.t -> t -> t
val fold : (Var.t -> 'a -> 'a) -... | 52,909 |
https://github.com/ketank1000/pancake_prediction_bot/blob/master/lib/alphavintage.py | Github Open Source | Open Source | MIT | 2,022 | pancake_prediction_bot | ketank1000 | Python | Code | 186 | 762 |
import json
from typing import OrderedDict
import requests
from lib import constants
from pandas import DataFrame, to_datetime
class Alpha:
def __init__(self):
self.keyid=2
def get_apikey(self, keyid):
with open(constants.API_KEYS, "r") as filekey:
jsonContent =... | 32,707 |
https://github.com/lz-purple/Source/blob/master/app/src/main/java/com/syd/source/aosp/external/mockftpserver/tags/1.1/src/test/java/org/mockftpserver/stub/command/RetrCommandHandlerTest.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | Source | lz-purple | Java | Code | 381 | 1,176 | /*
* Copyright 2007 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appl... | 19,432 |
https://github.com/alibaba/GraphScope/blob/master/interactive_engine/common/src/main/java/com/alibaba/graphscope/groot/common/util/SchemaUtils.java | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-proprietary-license, FSFAP, BSD-3-Clause-Clear, GPL-1.0-or-later, BSD-2-Clause-Views, Bitstream-Vera, MPL-2.0, LicenseRef-scancode-warranty-disclaimer, OFL-1.1, BSD-3-Clause, APAFML, 0BSD, LicenseRef-scancode-free-unknown, CC-BY-4.0, GPL-3.0-or-later, LicenseRef-scancode-python-cwi, Zlib... | 2,023 | GraphScope | alibaba | Java | Code | 217 | 602 | /**
* Copyright 2020 Alibaba Group Holding Limited.
*
* <p>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
*
* <p>http://www.apache.org/licenses/LICENSE-2.0
*
* <p>Unless required by applic... | 24,796 |
https://github.com/ladis-hb/admin/blob/master/server/router/index.js | Github Open Source | Open Source | MIT | null | admin | ladis-hb | JavaScript | Code | 22 | 73 | const Router = require('koa-router')
const router = new Router()
const Get = require('./Get')
const Api = require('./Api')
router.get('/Get/:id',Get)
router.post('/Api/:id',Api)
module.exports = router
| 34,181 |
https://github.com/pulse00/Symfony-2-Eclipse-Plugin/blob/master/com.dubture.symfony.test/src/com/dubture/symfony/test/YamlTest.java | Github Open Source | Open Source | MIT | 2,020 | Symfony-2-Eclipse-Plugin | pulse00 | Java | Code | 182 | 607 | /*******************************************************************************
* This file is part of the Symfony eclipse plugin.
*
* (c) Robert Gruendler <r.gruendler@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
***... | 46,817 |
https://github.com/infloop/sails-experiments/blob/master/api/es6-controllers/AssetController.js | Github Open Source | Open Source | MIT | null | sails-experiments | infloop | JavaScript | Code | 248 | 782 | 'use strict';
var ApiController = require('./ApiControllerAbstract');
let decorators = require('../decorators/controllers');
let route = decorators.route;
let swagger = decorators.swagger;
let swaggerApi = decorators.swaggerApi;
@swaggerApi({
tags: [{
title: 'Assets',
description: 'Operations with assets'
... | 27,439 |
https://github.com/roman-16/hinten/blob/master/types.d.ts | Github Open Source | Open Source | MIT | 2,020 | hinten | roman-16 | TypeScript | Code | 6 | 19 | declare module 'just-reduce-object';
declare module 'just-typeof';
| 27,960 |
https://github.com/TrueBlocks/trueblocks-rpc/blob/master/src/gen/gen_client_cpp.cpp | Github Open Source | Open Source | MIT | 2,021 | trueblocks-rpc | TrueBlocks | C++ | Code | 576 | 1,633 | /*-----------------------------------------------------------------------
* This file is part of TrueBlocks-RPC, which is a near-complete rewrite
* of libjson-rpc-cpp removing anything not directly needed to support
* an Ethereum RPC client and server. It retains the original license
* as described in LICENSE.txt
... | 49,431 |
https://github.com/alinous-core/codablecash/blob/master/src_db/filestore_block/BlockFileBody.cpp | Github Open Source | Open Source | MIT | 2,023 | codablecash | alinous-core | C++ | Code | 140 | 636 | /*
* BlockFileBody.cpp
*
* Created on: 2018/10/26
* Author: iizuka
*/
#include "filestore_block/BlockFileBody.h"
#include "filestore_block/BlockData.h"
#include "base_io/ReverseByteBuffer.h"
#include "random_access_file/RandomAccessFile.h"
#include "base/StackRelease.h"
#include "debug/debugMacros.h"
na... | 45,843 |
https://github.com/TISparta/competitive-programming-solutions/blob/master/UVa/Competitive_Programming_Exercises/04-Graph/01-Graph_Traversal/06-Finding_Strongly_Connected_Components/11838.cpp | Github Open Source | Open Source | MIT | 2,018 | competitive-programming-solutions | TISparta | C++ | Code | 172 | 533 | #include <bits/stdc++.h>
using namespace std;
const int MAX_V = 2010;
int V, E, a, b, p, calls, dfsCounter, numSCC, dfs_low[MAX_V], dfs_num[MAX_V];
bool vis[MAX_V];
vector <int> AdjList[MAX_V];
void dfs(int u){
dfs_low[u] = dfs_num[u] = ++dfsCounter;
vis[u] = true;
for(int j = 0; j < AdjList[u].size(); j+... | 35,682 |
https://github.com/oldfeel/eacpay-android/blob/master/app/src/main/java/com/eacpay/presenter/entities/CurrencyEntity.java | Github Open Source | Open Source | MIT | 2,021 | eacpay-android | oldfeel | Java | Code | 62 | 155 | package com.eacpay.presenter.entities;
import java.io.Serializable;
public class CurrencyEntity implements Serializable {
//Change this after modifying the class
private static final long serialVersionUID = 7526472295622776147L;
public static final String TAG = CurrencyEntity.class.getName();
public... | 5,526 |
https://github.com/android-architectureer/news-1/blob/master/app/src/main/java/com/norm/news/ui/about/AboutViewModel.kt | Github Open Source | Open Source | MIT | 2,020 | news-1 | android-architectureer | Kotlin | Code | 53 | 186 | package com.norm.news.ui.about
import android.app.Application
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
/**
* Created by Kyaw Zayar Tun on 2020-01-18.
*/
class AboutViewModel(
application: Application
): ViewModel() {
private val _navig... | 38,047 |
https://github.com/HashString/flowy-core/blob/master/src/main/java/com/flowy/core/services/IActionService.java | Github Open Source | Open Source | Apache-2.0 | 2,014 | flowy-core | HashString | Java | Code | 38 | 87 | package com.flowy.core.services;
import com.flowy.core.models.Action;
/**
* Created by ssinghal
* Created on 31-May-2014
* If you refactor this code, remember: Code so clean you could eat off it!
*/
public interface IActionService {
public Action saveOrUpdate(Action action);
}
| 51,439 |
https://github.com/RaoulWolf/chemspiderapi/blob/master/R/RECORDS-get_record_id_external_references.R | Github Open Source | Open Source | MIT | 2,021 | chemspiderapi | RaoulWolf | R | Code | 259 | 783 | #' @title Get external references of a record ID
#' @description GET a list of external references for a ChemSpider ID.
#' @details It is recommended to specify which \code{data_sources} to load, as some substances have a substantial amount of references (>10'000). Use \code{chemspiderapi::get_datasources()} for a comp... | 50,900 |
https://github.com/paulocesarmelo/mddsm/blob/master/mddsm-broker/src/main/java/br/inf/ufg/mddsm/broker/im/EventRegister.java | Github Open Source | Open Source | MIT | 2,021 | mddsm | paulocesarmelo | Java | Code | 54 | 211 | package br.inf.ufg.mddsm.broker.im;
import java.util.HashMap;
import java.util.Map;
import br.inf.ufg.mddsm.broker.im.metadata.EventCallBack;
public class EventRegister {
static Map<String, EventCallBack> register = new HashMap<String, EventCallBack>();
public static void registerEventListener(String event,... | 38,097 |
https://github.com/kelu124/pyS3/blob/master/android/support/mediacompat/C0077R.java | Github Open Source | Open Source | MIT | 2,021 | pyS3 | kelu124 | Java | Code | 8 | 23 | package android.support.mediacompat;
public final class C0077R {
}
| 947 |
https://github.com/gistnu/tru-workshop/blob/master/geojson.php | Github Open Source | Open Source | MIT | 2,017 | tru-workshop | gistnu | PHP | Code | 71 | 277 | <?php
header("Access-Control-Allow-Headers: Content-Type, Authorization, X-Requested-With");
header("Access-Control-Allow-Origin: *");
header("Access-Control-Allow-Credentials: true");
header("Access-Control-Allow-Methods: POST, GET, OPTIONS");
pg_connect("host=localhost user=postgres password=1234 dbname=addfeature")... | 9,132 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.