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/adhi-thirumala/EvoYellow/blob/master/data/baseStats/meganium.asm | Github Open Source | Open Source | Unlicense | 2,022 | EvoYellow | adhi-thirumala | Assembly | Code | 101 | 233 | db DEX_MEGANIUM ; pokedex id
db 80 ; base hp
db 82 ; base attack
db 100 ; base defense
db 80 ; base speed
db 90 ; base special
db GRASS ; species type 1
db GRASS ; species type 2
db 46 ; catch rate
db 208 ; base exp yield
INCBIN "pic/ymon/meganium.pic",0,1 ; sprite dimensions
dw MeganiumPicFront
dw Meganiu... | 38,234 |
https://github.com/ppiyo5/ddd-project-aladin/blob/master/src/main/java/io/github/wotjd243/aladin/book/ui/dto/PageOptions.java | Github Open Source | Open Source | MIT | null | ddd-project-aladin | ppiyo5 | Java | Code | 27 | 83 | package io.github.wotjd243.aladin.book.ui.dto;
import lombok.Data;
@Data
public class PageOptions {
private int pageSize = defaultPageSize();
private int pageNumber = 1;
protected int defaultPageSize() {
return 10;
}
}
| 23,250 |
https://github.com/jeremylin8/FightPandemics/blob/master/client/src/pages/PrivacyPolicy.js | Github Open Source | Open Source | MIT | 2,021 | FightPandemics | jeremylin8 | JavaScript | Code | 38 | 130 | import React from "react";
import {
PolicyContainer,
TextContainer,
} from "components/PolicyPages/PolicyContainer";
import PrivacyPolicyContent from "components/PolicyPages/PrivacyPolicyContent";
const PrivacyPolicy = () => {
return (
<PolicyContainer>
<TextContainer>
<h2 className="text-pri... | 4,827 |
https://github.com/Yoann-Vie/esgi-hearthstone/blob/master/game/static/spirit/scripts/test/suites/postify-spec.coffee | Github Open Source | Open Source | PSF-2.0, BSD-3-Clause | 2,019 | esgi-hearthstone | Yoann-Vie | CoffeeScript | Code | 93 | 493 | describe "postify plugin tests", ->
a_post = null
plugin_postify = null
isHidden = stModules.utils.isHidden
beforeEach ->
fixtures = jasmine.getFixtures()
fixtures.fixturesPath = 'base/test/fixtures/'
loadFixtures('postify.html')
a_post = document.querySelectorAll('.js... | 9,351 |
https://github.com/dengyj3/fastjson-issue/blob/master/src/main/java/com/cyberdak/fastjson/App.java | Github Open Source | Open Source | Apache-2.0 | 2,016 | fastjson-issue | dengyj3 | Java | Code | 235 | 837 | package com.cyberdak.fastjson;
import java.time.LocalDateTime;
import java.util.Map;
import java.util.PriorityQueue;
import java.util.TreeMap;
import java.util.TreeSet;
import org.apache.commons.collections4.ListUtils;
import org.apache.commons.collections4.MapUtils;
import com.alibaba.fastjson.JSON;
import com.alib... | 29,758 |
https://github.com/Jorgelig/hoshinplan/blob/master/app/assets/stylesheets/application/apipie.scss | Github Open Source | Open Source | MIT | 2,021 | hoshinplan | Jorgelig | SCSS | Code | 391 | 1,316 | body.apipie {
height: 100vh;
.container {
.main-row, .main-column, .section.content {
overflow: hidden;
display: flex;
padding: 0;
flex-grow: 1;
h1, h2, h3, h4, h5 {
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
font-weight: 700;
text-render... | 19,010 |
https://github.com/Masoud-Karami/Repreaentation-Learning-Mila-IFT6135/blob/master/Generatives_VAEs & GANs/Q1/density_est.py | Github Open Source | Open Source | MIT | 2,021 | Repreaentation-Learning-Mila-IFT6135 | Masoud-Karami | Python | Code | 291 | 1,160 | # -*- coding: utf-8 -*-
"""density_est.ipynb
Automatically generated by Colaboratory.
Original file is located at
https://colab.research.google.com/drive/16nxHd2DoPwblQ55Y6_u23boTsBn3_MuX
"""
#!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""
Created on Sat Mar 23 13:20:15 2019
@author: chin-weihuang
"""
from... | 8,002 |
https://github.com/candrika/api_wijaya_farma/blob/master/application/controllers/Inventory.php | Github Open Source | Open Source | MIT | null | api_wijaya_farma | candrika | PHP | Code | 4,233 | 26,415 | <?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Inventory extends MY_Controller {
function __construct()
{
// Construct the parent class
parent::__construct();
$this->load->model('m_inventory');
$this->load->model('m_masterproductlocation');
... | 44,166 |
https://github.com/SEscobedo/CypherX/blob/master/Cypher.sln | Github Open Source | Open Source | MIT | 2,021 | CypherX | SEscobedo | null | Spoken | 381 | 3,923 |
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 16.0.30907.101
MinimumVisualStudioVersion = 10.0.40219.1
Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "Cypher", "Crypto\Cypher.vbproj", "{BAB8B59D-9CD1-4E91-8F70-B8C3F89FB0CC}"
EndProject
Project("{5443... | 22,359 |
https://github.com/pixelinlove/PIXAdManager/blob/master/PIXAdManagerDemo/Pods/AppLovinSDK/applovin-ios-sdk-11.5.3/AppLovinSDK.xcframework/ios-arm64_armv7/AppLovinSDK.framework/Headers/MAAppOpenAdapterDelegate.h | Github Open Source | Open Source | Apache-2.0 | 2,022 | PIXAdManager | pixelinlove | Objective-C | Code | 303 | 655 | //
// MAAppOpenAdapterDelegate.h
// AppLovinSDK
//
// Created by Andrew Tian on 7/26/22.
//
#import <AppLovinSDK/MAAdapterDelegate.h>
#import <AppLovinSDK/MAAdapterError.h>
NS_ASSUME_NONNULL_BEGIN
/**
* Protocol for adapters to forward ad load and display events to the MAX SDK for app open ads.
*/
@protocol MAA... | 18,594 |
https://github.com/UltimatePedigree/GuildTest/blob/master/app/Http/Controllers/GalleryController.php | Github Open Source | Open Source | MIT | 2,020 | GuildTest | UltimatePedigree | PHP | Code | 147 | 449 | <?php
namespace App\Http\Controllers;
use App\Gallery;
use Illuminate\Http\Request;
class GalleryController extends Controller
{
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/
public function index()
{
return Gallery::all();
}
/**
... | 47,565 |
https://github.com/pashtetx/presentator/blob/master/packages/spa/src/i18n.js | Github Open Source | Open Source | BSD-3-Clause | 2,020 | presentator | pashtetx | JavaScript | Code | 290 | 916 | import moment from 'moment';
import Vue from 'vue';
import VueI18n from 'vue-i18n';
import AppConfig from '@/utils/AppConfig';
import ApiClient from '@/utils/ApiClient';
import ClientStorage from '@/utils/ClientStorage';
Vue.use(VueI18n);
export const supportedLanguages = {
"en-US":... | 14,880 |
https://github.com/GreyHatBeard/cli-microsoft365/blob/master/src/m365/spo/commands/listitem/listitem-attachment-list.spec.ts | Github Open Source | Open Source | MIT | 2,020 | cli-microsoft365 | GreyHatBeard | TypeScript | Code | 726 | 2,387 | import * as assert from 'assert';
import * as sinon from 'sinon';
import appInsights from '../../../../appInsights';
import auth from '../../../../Auth';
import { Logger } from '../../../../cli';
import Command, { CommandError } from '../../../../Command';
import request from '../../../../request';
import Utils from '.... | 6,804 |
https://github.com/aokhrimenko/SonataAdminBundle/blob/master/tests/Twig/Extension/TemplateRegistryExtensionTest.php | Github Open Source | Open Source | MIT | 2,018 | SonataAdminBundle | aokhrimenko | PHP | Code | 124 | 520 | <?php
declare(strict_types=1);
/*
* This file is part of the Sonata Project package.
*
* (c) Thomas Rabaix <thomas.rabaix@sonata-project.org>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Sonata\AdminBundle\Tests\Twi... | 49,234 |
https://github.com/Origen-SDK/origen/blob/master/lib/origen/limits.rb | Github Open Source | Open Source | MIT | 2,023 | origen | Origen-SDK | Ruby | Code | 91 | 298 | require_relative './limits/limit'
require_relative './limits/limit_set'
module Origen
module Limits
TYPES = [:min, :typ, :max, :target]
def add_limits(set, options)
@_limits ||= {}
options.ids.each do |limit_type|
unless TYPES.include? limit_type
Origen.log.error("Limit type '#{... | 8,531 |
https://github.com/killua001/PolarDB-FileSystem/blob/master/src/pfs_core/pfs_impl.h | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-unknown-license-reference, LicenseRef-scancode-gary-s-brown, LicenseRef-scancode-public-domain | 2,021 | PolarDB-FileSystem | killua001 | C | Code | 958 | 3,106 | /*
* Copyright (c) 2017-2021, Alibaba Group Holding Limited
* 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 applica... | 33,452 |
https://github.com/Willian-Zhang/js-wait-selector/blob/master/wait-selector.ts | Github Open Source | Open Source | MIT | null | js-wait-selector | Willian-Zhang | TypeScript | Code | 176 | 469 |
const sleep = (ms: number) => new Promise( r => setTimeout(r, ms))
if(!window.MutationObserver){
throw Error('Environment does not support MutationObserver')
}
const wait$all= async (selectors: string, observee : Element = document.body, mustWait = false): Promise<NodeListOf<Element>> => {
let elements = ob... | 32,241 |
https://github.com/eriktrom/ember-cli-hapi-fastboot/blob/master/tests/helpers/delay.js | Github Open Source | Open Source | MIT | 2,016 | ember-cli-hapi-fastboot | eriktrom | JavaScript | Code | 20 | 62 | /*jshint node:true*/
var RSVP = require('rsvp');
module.exports = function delay(ms) {
return new RSVP.Promise(function (resolve) {
setTimeout(resolve, ms);
});
};
| 25,152 |
https://github.com/nzt/acl2/blob/master/books/workshops/2000/moore-manolios/partial-functions/report@useless-runes.lsp | Github Open Source | Open Source | BSD-3-Clause | 2,019 | acl2 | nzt | Common Lisp | Code | 2,019 | 7,615 | (OFFSET)
(OFFSET-DEF (3 3
(:REWRITE RATIONALP-IMPLIES-ACL2-NUMBERP))
(2 2
(:TYPE-PRESCRIPTION |x < y => 0 < -x+y|))
(2 2 (:META CANCEL_TIMES-EQUAL-CORRECT))
(2 2 (:META CANCEL_PLUS-EQUAL-CORRECT))
(2 1 (:REWRITE DEFAULT-+-2))
(1... | 12,642 |
https://github.com/kevin00223/PartTimeOutSourcing/blob/master/HuangGuan/HuangGuan/Modules/Main/HGItemCell.h | Github Open Source | Open Source | MIT | null | PartTimeOutSourcing | kevin00223 | C | Code | 37 | 135 | //
// HGItemCell.h
// HuangGuan
//
// Created by 李凯 on 2019/8/24.
// Copyright © 2019 LK. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "HGItemModel.h"
NS_ASSUME_NONNULL_BEGIN
@interface HGItemCell : UITableViewCell
@property (nonatomic, strong) HGItemModel *itemModel;
@end
NS_ASSUME_NONNULL_END
| 32,914 |
https://github.com/Nahusa/SCIRun/blob/master/src/Core/Algorithms/Math/Tests/CollectMatricesAlgorithmTest.cc | Github Open Source | Open Source | MIT | 2,019 | SCIRun | Nahusa | C++ | Code | 586 | 2,423 | /*
For more information, please see: http://software.sci.utah.edu
The MIT License
Copyright (c) 2012 Scientific Computing and Imaging Institute,
University of Utah.
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (... | 54,261 |
https://github.com/ermin-islamagic/planner/blob/master/assets/js/script.js | Github Open Source | Open Source | MIT | 2,015 | planner | ermin-islamagic | JavaScript | Code | 458 | 1,738 | /**
* Created by PhpStorm.
* User: Ermin Islamagic
* Web: http://islamagic.com/
* Date: 8/7/2015
* Time: 10:36 PM
*/
(function($){
$(document).ready(function(){
$('.collapse').collapse({
toggle: false
});
$('#myTabs a').click(function (e) {
e.preventDefault()
... | 12,740 |
https://github.com/larrystd/muduohttp/blob/master/http/mysqlConn/mysql_conn.cc | Github Open Source | Open Source | Apache-2.0 | null | muduohttp | larrystd | C++ | Code | 283 | 1,490 | #include <cstdio>
#include <cstdlib>
#include <cassert>
#include "mysql_conn.h"
/// 初始化 static对象 ConnectionPool::pool
/// ConnectionPool*
///ConnectionPool::pool = nullptr;
ConnectionPool* ConnectionPool::pool = nullptr;
/// 构造函数, 直接在参数中就根据形参name, pwd等初始化了username, password
ConnectionPool::ConnectionPool(std::strin... | 33,844 |
https://github.com/sunteago/lenio-research/blob/master/projects/map-vis/linearfits.js | Github Open Source | Open Source | MIT | 2,021 | lenio-research | sunteago | JavaScript | Code | 6,278 | 48,835 | export const linearFit = {
"State Sales Tax Rate, State Sales Tax Rate": [1.0000000000000004, 0.0],
"State Sales Tax Rate, Avg. Local Sales Tax Rate (a)": [-0.06019417475728197, 1.7608737864077693],
"State Sales Tax Rate, Combined Sales Tax Rate": [0.9399143606699322, 1.7605156957166646],
"State Sales Tax Rate,... | 21,988 |
https://github.com/webonyx/graphql-php/blob/master/src/Type/Definition/IntType.php | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, MIT | 2,023 | graphql-php | webonyx | PHP | Code | 313 | 847 | <?php declare(strict_types=1);
namespace GraphQL\Type\Definition;
use GraphQL\Error\Error;
use GraphQL\Error\SerializationError;
use GraphQL\Language\AST\IntValueNode;
use GraphQL\Language\AST\Node;
use GraphQL\Language\Printer;
use GraphQL\Utils\Utils;
class IntType extends ScalarType
{
// As per the GraphQL Sp... | 34,090 |
https://github.com/wagenet/solargraph-utils/blob/master/src/tests/index.test.ts | Github Open Source | Open Source | MIT | 2,018 | solargraph-utils | wagenet | TypeScript | Code | 112 | 453 | "use strict";
import 'mocha';
import { expect } from 'chai';
import assert = require('assert');
import * as solargraph from '../index';
suite('Server', () => {
let configuration:solargraph.Configuration = new solargraph.Configuration();
let server:solargraph.Server = new solargraph.Server(configuration);
... | 53,632 |
https://github.com/zambon/rancher__cattle/blob/master/code/iaas/agent/src/main/java/io/cattle/platform/agent/util/AgentUtils.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | rancher__cattle | zambon | Java | Code | 225 | 920 | package io.cattle.platform.agent.util;
import io.cattle.platform.archaius.util.ArchaiusUtil;
import io.cattle.platform.core.constants.AgentConstants;
import io.cattle.platform.core.constants.CommonStatesConstants;
import io.cattle.platform.core.constants.CredentialConstants;
import io.cattle.platform.core.model.Accoun... | 48,357 |
https://github.com/MuhannedNoman/js-templates-template-engines-lab-re-coded-yemen-2018/blob/master/index.js | Github Open Source | Open Source | LicenseRef-scancode-public-domain, LicenseRef-scancode-unknown-license-reference | 2,018 | js-templates-template-engines-lab-re-coded-yemen-2018 | MuhannedNoman | JavaScript | Code | 84 | 316 | function createPost() {
var pTemplate = _.template(document.getElementById("page-template").innerHTML);
var poTemplate = _.template(document.getElementById("post-template").innerHTML);
var comTemplate = _.template(document.getElementById("comments-template").innerHTML);
var poTitle = document.getElementById("... | 4,962 |
https://github.com/quwahara/app-2021-09-14/blob/master/Procfile | Github Open Source | Open Source | MIT | 2,021 | app-2021-09-14 | quwahara | null | Spoken | 5 | 14 | web: deno run --allow-net app.ts
| 44,944 |
https://github.com/hAbd0u/Date2Local/blob/master/langs/ca.php | Github Open Source | Open Source | BSD-2-Clause-Views, BSD-2-Clause | 2,019 | Date2Local | hAbd0u | PHP | Code | 97 | 320 | <?php
/*
* @Language: Catalan
* @Short day: No
* @Long day: Yes
* @Short month: No
* @Long month: Yes
* @Author: Beladel Ilyes Abdelrazak
*/
return array(
'LanguageName' => 'Catalan',
'LanguageCode' => 'ca',
'HasShortDay' => false,
'ShortDa... | 37,296 |
https://github.com/Pawanpatidar99/theartw_test/blob/master/public/asset_user/summary.php | Github Open Source | Open Source | MIT | null | theartw_test | Pawanpatidar99 | PHP | Code | 211 | 1,160 | <?php include('header.php');?>
<div class="heading-row mb-20">
<div class="row align-item-center">
<div class="col-lg-6">
<h3 class="page-title"><span class="page-title-icon bg-gradient-primary text-white mr-2"><i class="mdi mdi-file-image"></i></span> Art Cash Details </h3>
</div>
</di... | 52,920 |
https://github.com/has2k1/plotnine/blob/master/plotnine/geoms/geom_histogram.py | Github Open Source | Open Source | MIT | 2,023 | plotnine | has2k1 | Python | Code | 30 | 118 | from ..doctools import document
from .geom_bar import geom_bar
@document
class geom_histogram(geom_bar):
"""
Histogram
{usage}
Parameters
----------
{common_parameters}
See Also
--------
plotnine.geoms.geom_bar
"""
DEFAULT_PARAMS = {"stat": "bin", "position": "stack", "... | 11,069 |
https://github.com/nataliadziedzic/save-the-trip-frontend/blob/master/src/components/common/TextField/TextField.style.ts | Github Open Source | Open Source | MIT | null | save-the-trip-frontend | nataliadziedzic | TypeScript | Code | 31 | 98 | import styled from 'styled-components'
import { TextField } from '@material-ui/core'
export const StyledTextField = styled(TextField)`
* {
color: #fff !important;
border-width: 1px !important;
}
.MuiOutlinedInput-notchedOutline {
border-color: #fff !important;
}
`
| 44,551 |
https://github.com/soutaro/steep/blob/master/lib/steep/diagnostic/signature.rb | Github Open Source | Open Source | MIT | 2,023 | steep | soutaro | Ruby | Code | 1,038 | 3,886 | module Steep
module Diagnostic
module Signature
class Base
include Helper
attr_reader :location
def initialize(location:)
@location = location
end
def header_line
raise
end
def detail_lines
nil
end
def... | 14,316 |
https://github.com/bruce-willis/Lebowski/blob/master/app/src/main/java/com/yury/lebowski/ui/settings/SettingsFragment.kt | Github Open Source | Open Source | CC-BY-3.0 | 2,018 | Lebowski | bruce-willis | Kotlin | Code | 157 | 607 | package com.yury.lebowski.ui.settings
import android.content.Context
import android.os.Bundle
import android.view.*
import androidx.appcompat.app.AppCompatActivity
import androidx.fragment.app.Fragment
import com.yury.lebowski.R
import kotlinx.android.synthetic.main.fragment_settings.*
class SettingsFragment : Fragm... | 31,618 |
https://github.com/karasek/BTDB/blob/master/BTDB/EventStoreLayer/TypeDescriptorExtensions.cs | Github Open Source | Open Source | MIT | 2,022 | BTDB | karasek | C# | Code | 299 | 1,132 | using System;
using System.Collections.Generic;
using System.Text;
using BTDB.FieldHandler;
using BTDB.IL;
using BTDB.KVDBLayer;
using BTDB.ODBLayer;
namespace BTDB.EventStoreLayer
{
public static class TypeDescriptorExtensions
{
public static string Describe(this ITypeDescriptor descriptor)
{
... | 48,348 |
https://github.com/matbur/falpr/blob/master/data/cleaner.py | Github Open Source | Open Source | MIT | 2,017 | falpr | matbur | Python | Code | 100 | 360 |
# coding: utf-8
# In[1]:
from glob import glob
import os
import cv2
import numpy as np
import matplotlib.pyplot as plt
plt.set_cmap(plt.gray())
# get_ipython().magic('matplotlib inline')
# In[8]:
letters = {}
labels = list('ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789')
for letter in labels:
print(letter)
D... | 11,735 |
https://github.com/timbarrass/Alembic.Tools/blob/master/TimeSeriesTool/TimeSeries.cs | Github Open Source | Open Source | MIT | 2,012 | Alembic.Tools | timbarrass | C# | Code | 99 | 267 | using System;
namespace TimeSeriesTool
{
public class TimeSeries
{
private DateTime[] _timestamps;
private double[] _values;
private double[] _highwater;
private TimeSpan _fixedStep;
public TimeSeries(TimeSpan fixedStep)
{
FixedStep = fixedStep;
... | 32,085 |
https://github.com/vdharmap/instance-manager/blob/master/controllers/provisioners/ekscloudformation/ekscloudformation_test.go | Github Open Source | Open Source | Apache-2.0 | 2,019 | instance-manager | vdharmap | Go | Code | 3,147 | 14,623 | /*
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License ... | 1,656 |
https://github.com/ItsJavito/Repo-LP-Ulima-601/blob/master/Semana3/Imperativo1/main.cpp | Github Open Source | Open Source | MIT | null | Repo-LP-Ulima-601 | ItsJavito | C++ | Code | 44 | 127 | #include <iostream>
enum DiaSemana{
Domingo, Lunes, Mates, Miercoles, Jueves, Viernes, Sabado //No poner tildes
};
int main(){
DiaSemana diasSemana; // 0: domingo, 1: Lunes, 2:Martes, ..., 6: Sabado
//...
diasSemana = Domingo;
if(diasSemana == Domingo || diasSemana == Sabado){
//Es no l... | 27,107 |
https://github.com/jglrxavpok/OurCraft/blob/master/src/main/java/org/craft/client/render/fonts/TrueTypeFont.java | Github Open Source | Open Source | MIT | 2,019 | OurCraft | jglrxavpok | Java | Code | 480 | 1,369 | package org.craft.client.render.fonts;
import java.awt.*;
import java.awt.image.*;
import java.util.*;
public class TrueTypeFont
{
/** Array that holds necessary information about the font characters */
private CharProperties[] charPropertiesArray = new CharProperties[256];
/** Map of user ... | 9,256 |
https://github.com/graycoreio/daffodil/blob/master/libs/product/driver/in-memory/src/driver/product.service.ts | Github Open Source | Open Source | LicenseRef-scancode-free-unknown, MIT | 2,023 | daffodil | graycoreio | TypeScript | Code | 127 | 521 | import { HttpClient } from '@angular/common/http';
import {
Inject,
Injectable,
} from '@angular/core';
import { Observable } from 'rxjs';
import { map } from 'rxjs/operators';
import { DaffProduct } from '@daffodil/product';
import {
DaffProductDriverResponse,
DaffProductServiceInterface,
} from '@daffodil/pr... | 47,835 |
https://github.com/dsychin/RiotSharp/blob/master/RiotSharp/Endpoints/StaticDataEndpoint/LanguageStrings/LanguageStringsStatic.cs | Github Open Source | Open Source | MIT | 2,022 | RiotSharp | dsychin | C# | Code | 86 | 218 | using System;
using System.Collections.Generic;
using Newtonsoft.Json;
namespace RiotSharp.Endpoints.StaticDataEndpoint.LanguageStrings
{
/// <summary>
/// Class representing data returned by the language strings endpoint (Static API).
/// </summary>
public class LanguageStringsStatic
{
in... | 47,057 |
https://github.com/tidymodels/parsnip/blob/master/tests/testthat/test_nearest_neighbor_kknn.R | Github Open Source | Open Source | MIT | 2,023 | parsnip | tidymodels | R | Code | 528 | 2,133 | hpc <- hpc_data[1:150, c(2:5, 8)]
num_pred <- c("compounds", "iterations", "num_pending")
hpc_bad_form <- as.formula(class ~ term)
hpc_basic <- nearest_neighbor(mode = "classification",
neighbors = 8,
weight_func = "triangular") %>%
set_engine("kknn")
#... | 21,558 |
https://github.com/wolfroma/jenkins_recursive_example/blob/master/src/test/java/ToAlphanumericTest.groovy | Github Open Source | Open Source | Apache-2.0 | null | jenkins_recursive_example | wolfroma | Groovy | Code | 47 | 170 | import org.junit.*
import com.lesfurets.jenkins.unit.*
import static groovy.test.GroovyAssert.*
class ToAlphanumericTest extends BasePipelineTest {
def toAlphanumeric
@Before
void setUp() {
super.setUp()
// load toAlphanumeric
toAlphanumeric = loadScript("vars/toAlphanumeric.groovy... | 41,680 |
https://github.com/fgergo/recover/blob/master/map.go | Github Open Source | Open Source | MIT | 2,021 | recover | fgergo | Go | Code | 391 | 1,108 | package main
import (
"fmt"
"sync"
)
type Id struct {
local uint64 /* local id */
remote uint32 /* remote id */
}
func (id Id) String() string {
return fmt.Sprintf("local: [%d], remote: [%d]", id.local, id.remote)
}
type Idmap struct {
local2id map[uint64]*Id
remote2id map[uint32]*Id
v [MAXFID / U... | 34,612 |
https://github.com/Mohammed-Moath/GPC/blob/master/resources/views/GPCO/Grades/Index.blade.php | Github Open Source | Open Source | MIT | null | GPC | Mohammed-Moath | PHP | Code | 271 | 1,318 | @extends('layouts.Master.GPCO')
@section('title')
الدرجات
@endsection
@section('content')
<div id="page-wrapper">
<div class="container-fluid">
<!-- Page Heading -->
<div class="row">
<div class="col-lg-12">
<h3 class="page-header text-cen... | 25,258 |
https://github.com/blackbaud/barkbaud/blob/master/skyux-spa-ui/src/app/shared/models/owner.model.ts | Github Open Source | Open Source | MIT | 2,022 | barkbaud | blackbaud | TypeScript | Code | 21 | 64 |
export interface Owner {
isActive: boolean;
constituentId: string;
constituent?: any;
constituentLink?: string;
createdAt?: Date;
toDate?: Date;
fromDate?: Date;
updatedAt?: Date;
}
| 40,141 |
https://github.com/ebi-gene-expression-group/atlas/blob/master/base/src/main/java/uk/ac/ebi/atlas/commons/writers/TsvWriter.java | Github Open Source | Open Source | Apache-2.0 | 2,019 | atlas | ebi-gene-expression-group | Java | Code | 78 | 263 | package uk.ac.ebi.atlas.commons.writers;
import au.com.bytecode.opencsv.CSVWriter;
import java.io.IOException;
import java.io.UncheckedIOException;
import java.io.Writer;
import java.util.List;
public class TsvWriter extends CSVWriter {
// TODO Maybe we should consider to implement it as TsvWriter<ExperimentDesi... | 29,134 |
https://github.com/xavierbarbary/SlideShooterFps/blob/master/.import/rock_metal.jpg-5f465bf50b4e5763a8f84ea0bc7d5ffb.md5 | Github Open Source | Open Source | MIT | 2,018 | SlideShooterFps | xavierbarbary | null | Spoken | 2 | 56 | source_md5="1fb20f71334fc6c58c80e295036e3f75"
dest_md5="10238b4913a966baf3f86bb7ffa36d9b"
| 45,831 |
https://github.com/L1AN0/fibers_rpc/blob/master/src/rpc_client.rs | Github Open Source | Open Source | MIT | 2,021 | fibers_rpc | L1AN0 | Rust | Code | 760 | 2,140 | use crate::client_service::{ClientServiceHandle, Message};
use crate::client_side_handlers::{Response, ResponseHandler};
use crate::message::{MessageHeader, MessageId, OutgoingMessage, OutgoingMessagePayload};
use crate::metrics::ClientMetrics;
use crate::{Call, Cast, ErrorKind, Result};
use std::marker::PhantomData;
u... | 47,757 |
https://github.com/nnlamb25/iterable-android-sdk/blob/master/iterableapi/src/test/java/com/iterable/iterableapi/IterablePushRegistrationTest.java | Github Open Source | Open Source | MIT, LicenseRef-scancode-unknown-license-reference | 2,019 | iterable-android-sdk | nnlamb25 | Java | Code | 277 | 1,643 | package com.iterable.iterableapi;
import com.google.firebase.iid.FirebaseInstanceId;
import org.json.JSONObject;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.mockito.ArgumentCaptor;
import org.powermock.api.mockito.PowerMockito;
import org.powermock.core.MockRepository;
import or... | 54,739 |
https://github.com/amoment4ever/steam-plus/blob/master/src/features/sorting-inventory/sorting-inventory.js | Github Open Source | Open Source | MIT | 2,021 | steam-plus | amoment4ever | JavaScript | Code | 528 | 1,967 | /* eslint-disable react/no-this-in-sfc */
import React from 'react'
import ReactDOM from 'react-dom'
import { makeObservable, observable, action, computed } from 'mobx'
import { observer } from 'mobx-react'
import { SelectItemField } from '@features/select-inventory/select-item-filed/select-item-field'
import { Dropdo... | 21,412 |
https://github.com/ChrisWatson92/GitHub4Jive/blob/master/GitHub4Jive-Addon/public/javascripts/noConfigTile.js | Github Open Source | Open Source | Apache-2.0 | 2,014 | GitHub4Jive | ChrisWatson92 | JavaScript | Code | 15 | 61 | $(function () {
jive.tile.onOpen(function(config, options ) {
$(document).bind("github4jiveConfigDone",function () {
jive.tile.close(config, {});
});
});
});
| 44,554 |
https://github.com/ChrisBGriffith/GrunowNeoPixels/blob/master/GrunowNeoPixels.ino | Github Open Source | Open Source | MIT | null | GrunowNeoPixels | ChrisBGriffith | null | Spoken | 830 | 2,432 | #include <Encoder.h>
#include <Adafruit_NeoPixel.h>
#ifdef __AVR__
#include <avr/power.h>
#endif
#define PIN_NEOPIXELS 6
// Parameter 1 = number of pixels in strip
// Parameter 2 = Arduino pin number (most are valid)
// Parameter 3 = pixel type flags, add together as needed:
// NEO_KHZ800 800 KHz bitstream (most... | 22,025 |
https://github.com/Mateuus/A3UndeadBRLife/blob/master/mpmissions/Altis_Life.Altis/core/housing/fn_copBreakDoor.sqf | Github Open Source | Open Source | OpenSSL | null | A3UndeadBRLife | Mateuus | SQF | Code | 230 | 953 | #include "..\..\script_macros.hpp"
/*
File: fn_copBreakDoor.sqf
Author: Bryan "Tonic" Boardwine
Description:
Allows cops to 'kick' in the door?
*/
private["_house","_door","_title","_titleText","_progressBar","_cpRate","_cP","_uid"];
_house = param [0,ObjNull,[ObjNull]];
if(isNull _house OR !(_house isKindOf "Hou... | 22,465 |
https://github.com/MrSpecialR/FlashcardAngularApp/blob/master/Frontend/src/app/cards/card-edit-form/card-edit-form.component.ts | Github Open Source | Open Source | MIT | null | FlashcardAngularApp | MrSpecialR | TypeScript | Code | 86 | 283 | import { Component, OnInit } from '@angular/core';
import { CardModel } from '../models/CardModel';
import { CardsService } from '../cards.service';
import { ActivatedRoute, Router } from '@angular/router';
@Component({
selector: 'app-card-edit-form',
templateUrl: './card-edit-form.component.html',
styleUrls: ['... | 53,029 |
https://github.com/fornet66/ocfix/blob/master/src/main/java/com/xcloud/ocfix/FixUtils.java | Github Open Source | Open Source | MIT | null | ocfix | fornet66 | Java | Code | 163 | 498 | package com.xcloud.ocfix;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;
@Transactional
public class FixUtils {
@Autowired
private FileCacheDao fileCacheDao;
@Autowired
private OssUtils ossUtils;... | 22,150 |
https://github.com/journey4tech/laravelEcommerce5.8/blob/master/resources/views/shop/category.blade.php | Github Open Source | Open Source | MIT | 2,020 | laravelEcommerce5.8 | journey4tech | Blade | Code | 250 | 1,260 | @extends('shop.layouts.master')
@section('content')
<body>
<!-- Start Shop Page -->
<div class="shop-box-inner">
<div class="container">
<div class="row">
<div class="col-xl-3 col-lg-3 col-sm-12 col-xs-12 sidebar-shop-left">
<div class="product-categori">
... | 45,513 |
https://github.com/MoveUpwards/Offenbach/blob/master/Sources/Enum/ApiEnvironment.swift | Github Open Source | Open Source | MIT | 2,020 | Offenbach | MoveUpwards | Swift | Code | 26 | 62 | //
// File.swift
//
//
// Created by Loïc GRIFFIE on 19/10/2019.
//
import Foundation
public enum ApiEnvironment {
case develop
case staging
case production
}
| 28,758 |
https://github.com/nicocvn/hephaistos/blob/master/scripts/compilers_support/Windows_MSVC.cmake | Github Open Source | Open Source | BSD-2-Clause | null | hephaistos | nicocvn | CMake | Code | 49 | 99 | # ---------------------------------------------------------------------------- #
# CMake Hephaistos::CompilerSetup Windows MSVC compiler flags
#
# Nicolas Clauvelin (n.clauvelin+code@gmail.com)
# nicocvn.com, 2017
#
#
# DESCRIPTION:
#
# This is not implemented as of now and will therefore use the default flags
# pr... | 33,210 |
https://github.com/doessnarktranslate/ghost-comments/blob/master/migrations/006-profile-image-email.sql | Github Open Source | Open Source | LicenseRef-scancode-lil-1 | 2,018 | ghost-comments | doessnarktranslate | SQL | Code | 100 | 264 | -- Up
ALTER TABLE user ADD profile_image_url CHAR(1024);
-- Down
BEGIN TRANSACTION;
CREATE TEMPORARY TABLE user_backup(
id INTEGER PRIMARY KEY NOT NULL,
name CHAR(128),
display_name CHAR(128),
provider CHAR(128),
provider_id CHAR(128),
created_at TEXT NOT NULL,
blocked BOOLEAN,
trusted ... | 1,786 |
https://github.com/fdjskla/2020-08-otus-spring-golubkov/blob/master/homework-4/src/main/java/ru/otus/quiz/service/MessagesLocalizationService.java | Github Open Source | Open Source | MIT | null | 2020-08-otus-spring-golubkov | fdjskla | Java | Code | 38 | 129 | package ru.otus.quiz.service;
import lombok.AllArgsConstructor;
import org.springframework.context.MessageSource;
import org.springframework.stereotype.Service;
import java.util.Locale;
@Service
@AllArgsConstructor
public class MessagesLocalizationService implements LocalizationService {
private final MessageSo... | 15,061 |
https://github.com/myriamgoude/bearer-hub/blob/master/src/components/SectionCTA/SectionCTA.style.tsx | Github Open Source | Open Source | MIT | null | bearer-hub | myriamgoude | TypeScript | Code | 32 | 110 | import { css } from '@emotion/core'
export default {
root: css`
background: url(${require('../../images/cta-blue-splash.svg')}) no-repeat center center / 100% 560px;
`,
rootIntegrations: css`
background: url(${require('../../images/shared/cut-wave.svg')}) no-repeat center bottom -250px / cover;
`
}
| 23,988 |
https://github.com/QQuick/Cantino/blob/master/lessons/lesson_06_classes/alternating_leds/alternating_leds.ino | Github Open Source | Open Source | Apache-2.0 | 2,018 | Cantino | QQuick | null | Spoken | 188 | 409 | /*
Copyright 2017 Jacques de Hooge, GEATEC engineering, www.geatec.com
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable la... | 64 |
https://github.com/holajiawei/memo/blob/master/.gitmodules | Github Open Source | Open Source | Apache-2.0 | 2,018 | memo | holajiawei | Git Config | Code | 48 | 240 | [submodule "couchdb-python"]
path = beyond/couchdb-python
url = https://github.com/infinitdotio/couchdb-python.git
[submodule "bottle"]
path = bottle
url = https://github.com/mefyl/bottle.git
[submodule "sendwithus_python"]
path = sendwithus_python
url = https://github.com/infinit/sendwithus_python.git
[submodule... | 32,793 |
https://github.com/sigxcpu76/spread/blob/master/pkg/entity/image.go | Github Open Source | Open Source | Apache-2.0 | 2,022 | spread | sigxcpu76 | Go | Code | 249 | 613 | package entity
import (
"errors"
"rsprd.com/spread/pkg/deploy"
"rsprd.com/spread/pkg/image"
kube "k8s.io/kubernetes/pkg/api"
)
// Image represents a Docker image in the Redspread hierarchy. It wraps image.Image.
type Image struct {
base
image *image.Image
}
// NewImage creates a new Entity for the image.Imag... | 54,059 |
https://github.com/rh-messaging/cli-java/blob/master/cli-activemq-jmx/src/main/java/com/redhat/amqx/management/artemis/AbstractArtemisManager.java | Github Open Source | Open Source | Apache-2.0 | 2,023 | cli-java | rh-messaging | Java | Code | 591 | 2,051 | package com.redhat.amqx.management.artemis;
import com.redhat.amqx.formatters.Formatter;
import com.redhat.amqx.formatters.PythonFormatter;
import com.redhat.amqx.main.BrokerType;
import com.redhat.amqx.main.NodeType;
import com.redhat.amqx.management.ObjectReader;
import com.redhat.amqx.management.AbstractConnectionM... | 35,228 |
https://github.com/superorder/BittrexRx/blob/master/src/enum/TimeInEffectValue.ts | Github Open Source | Open Source | MIT | 2,020 | BittrexRx | superorder | TypeScript | Code | 8 | 46 | export enum TimeInEffectValue {
IMMEDIATE_OR_CANCEL,
GOOD_TIL_CANCELLED,
FILL_OR_KILL
}
| 18,045 |
https://github.com/lingjf/h2un/blob/master/example/test_json.cpp | Github Open Source | Open Source | Apache-2.0 | 2,020 | h2un | lingjf | C++ | Code | 136 | 462 |
extern "C" {
#include "product_c.h"
}
#if defined H2UNIT && H2UNIT == 2
#include "../build/h2unit.hpp"
#else
#include "../h2unit.h"
#endif
SUITE(json)
{
Case(object [fail])
{
rectangle_t p1 = {111, 222};
JE("{ \
width: 116, \
... | 29,075 |
https://github.com/Namdrib/tic-tac-toe/blob/master/src/Move.java | Github Open Source | Open Source | MIT | null | tic-tac-toe | Namdrib | Java | Code | 73 | 193 |
public class Move
{
int n, m;
BoardToken token;
Move(int n, int m, BoardToken token)
{
this.n= n;
this.m = m;
this.token = token;
}
int getN()
{
return n;
}
int getM()
{
return m;
}
void setToken(BoardToken token)
{
this.token = token;
}
BoardToken getToken()
{
return token;
}
... | 6,973 |
https://github.com/keeperoftime/Mixbox/blob/master/Frameworks/XcuiDriver/Interactions/Interaction/Common/Kinds/VisibleElementCheckInteraction.swift | Github Open Source | Open Source | MIT | 2,018 | Mixbox | keeperoftime | Swift | Code | 141 | 572 | import MixboxUiTestsFoundation
import MixboxTestsFoundation
final class VisibleElementCheckInteraction: Interaction {
let description: InteractionDescription
let elementMatcher: ElementMatcher
private let settings: ResolvedInteractionSettings
private let elementVisibilityChecker: ElementVisibility... | 6,355 |
https://github.com/hoangtran-97/Web_E-Commerce/blob/master/src/middlewares/verifyToken.ts | Github Open Source | Open Source | MIT | null | Web_E-Commerce | hoangtran-97 | TypeScript | Code | 93 | 241 | import { Request, Response, NextFunction } from "express";
import jwt from "jsonwebtoken";
import { JWT_SECRET } from "../util/secrets";
import { UnauthorizedError } from "../helpers/apiError";
const getTokenFrom = (req: Request) => {
const authorization = req.get("authorization");
if (authorization && author... | 39,460 |
https://github.com/oscarfgh/Superheroes/blob/master/Superheroes/AppDelegate.swift | Github Open Source | Open Source | Apache-2.0 | null | Superheroes | oscarfgh | Swift | Code | 117 | 419 | //
// AppDelegate.swift
// Superheroes
//
// Created by Oscar on 16/5/18.
// Copyright © 2018 Oscar García. All rights reserved.
//
import UIKit
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
var window: UIWindow?
func application(_ application: UIApplication, didFinishLaunc... | 10,437 |
https://github.com/Provski/mantrans/blob/master/resources/views/admin/partials/sidebar-permission.blade.php | Github Open Source | Open Source | MIT | 2,021 | mantrans | Provski | Blade | Code | 35 | 197 | <li class="nav-item">
<a class="nav-link collapsed" href="#" data-toggle="collapse" data-target="#collapsePermissions" aria-expanded="true" aria-controls="collapsePermissions">
<i class="fas fa-edit"></i>
<span>Permissions</span>
</a>
<div id="collapsePermissions" class="collapse" aria-label... | 28,583 |
https://github.com/xizon/uix-kit/blob/master/src/components/list-posts/js/index.js | Github Open Source | Open Source | MIT | 2,023 | uix-kit | xizon | JavaScript | Code | 2,092 | 6,133 |
/*
*************************************
* <!-- Posts List With Ajax -->
*************************************
*/
import {
templateUrl,
homeUrl,
ajaxUrl,
UixBrowser,
UixModuleInstance,
UixGUID,
UixMath,
UixCssProperty,
UixDebounce,
UixThrottle
} from '@uixkit/core/_global/j... | 39,078 |
https://github.com/jiangchunyu/RxJavaDemo/blob/master/app/src/main/java/com/qiushui/RxJavaDemo/MainActivity.java | Github Open Source | Open Source | Apache-2.0 | 2,016 | RxJavaDemo | jiangchunyu | Java | Code | 163 | 748 | package com.qiushui.RxJavaDemo;
import android.os.Bundle;
import android.support.v4.widget.SwipeRefreshLayout;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.GridLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.widget.Toast;
import com.qiushui.RxJavaDemo.... | 22,891 |
https://github.com/eric-heiden/tds-merge/blob/master/third_party/CppAD/include/cppad/local/optimize/record_csum.hpp | Github Open Source | Open Source | Apache-2.0 | null | tds-merge | eric-heiden | C++ | Code | 1,550 | 4,297 | # ifndef CPPAD_LOCAL_OPTIMIZE_RECORD_CSUM_HPP
# define CPPAD_LOCAL_OPTIMIZE_RECORD_CSUM_HPP
/* --------------------------------------------------------------------------
CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-20 Bradley M. Bell
CppAD is distributed under the terms of the
Eclipse Public... | 42,566 |
https://github.com/FrameworkComputer/EmbeddedController/blob/master/driver/mag_lis2mdl.c | Github Open Source | Open Source | BSD-3-Clause | 2,023 | EmbeddedController | FrameworkComputer | C | Code | 1,295 | 4,564 | /* Copyright 2018 The Chromium OS Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
/**
* LIS2MDL magnetometer module for Chrome EC.
* This driver supports LIS2MDL magnetometer in cascade with LSM6DSx (x stands
* for L or M) acc... | 31,834 |
https://github.com/fond-of/spryker-product-lists-rest-api/blob/master/src/FondOfSpryker/Zed/ProductListsRestApi/Communication/Controller/GatewayController.php | Github Open Source | Open Source | MIT | 2,020 | spryker-product-lists-rest-api | fond-of | PHP | Code | 40 | 225 | <?php
namespace FondOfSpryker\Zed\ProductListsRestApi\Communication\Controller;
use Generated\Shared\Transfer\ProductListResponseTransfer;
use Generated\Shared\Transfer\ProductListTransfer;
use Spryker\Zed\Kernel\Communication\Controller\AbstractGatewayController;
/**
* @method \FondOfSpryker\Zed\ProductListsRestAp... | 46,686 |
https://github.com/deora-earth/Habitat/blob/master/scripts/chainInit.js | Github Open Source | Open Source | Unlicense | 2,021 | Habitat | deora-earth | JavaScript | Code | 48 | 160 | for (var i = 0; i < 6; i++) {
var key = '2bdd21761a483f71054e14f5b827213567971c676928d9a1808cbfa4b750120' + i.toString();
var addr;
try {
addr = personal.importRawKey(key, null);
} catch (e) {
console.error(e);
}
}
for (var i = 0; i < personal.listAccounts.length; i++) {
personal.unlockAccount(pers... | 53,832 |
https://github.com/FoSoZx/datlabel/blob/master/filter/label_filters_test.go | Github Open Source | Open Source | MIT | null | datlabel | FoSoZx | Go | Code | 284 | 999 | // +build unit
package filter
import (
"github.com/FoSoZx/datlabel/result"
"testing"
)
func createDummyLabelList() result.LabelResult {
m := make(map[string]string)
m["com.label.test1"] = "dummyValue1"
m["com.label.test2"] = "dummyValue2"
return result.NewLabelResult(m)
}
func TestByValueEqual(t *testing.T) ... | 27,222 |
https://github.com/VShell/nixpkgs/blob/master/pkgs/development/libraries/haskell/taggy-lens/default.nix | Github Open Source | Open Source | MIT | 2,021 | nixpkgs | VShell | null | Spoken | 73 | 250 | # This file was auto-generated by cabal2nix. Please do NOT edit manually!
{ cabal, doctest, hspec, lens, taggy, text, unorderedContainers }:
cabal.mkDerivation (self: {
pname = "taggy-lens";
version = "0.1.2";
sha256 = "05m2c9q0rz4y0zz6n3dqf0hhzfvk0mp1692jxykg86c802d7pkib";
buildDepends = [ lens taggy text un... | 5,953 |
https://github.com/pralphv/stripe_color_system_builder/blob/master/src/containers/ColorBoxRowContainer/ColorBoxRowContainer.js | Github Open Source | Open Source | MIT | 2,021 | stripe_color_system_builder | pralphv | JavaScript | Code | 95 | 318 | import React, { useEffect } from "react";
import PropTypes from "prop-types";
import { connect } from "react-redux";
import ColorBoxRow from "../../components/ColorBoxRow";
import { colorBoxSelectors } from "../../state/colorBox";
import { backgroundColorSelectors } from "../../state/backgroundColor";
import { changeC... | 6,706 |
https://github.com/hydra1983/nger/blob/master/packages/nger-webpack/lib/index.ts | Github Open Source | Open Source | MIT | 2,019 | nger | hydra1983 | TypeScript | Code | 44 | 119 | import { Logger } from 'nger-core'
import { NgerWebpackManager } from './manager'
import assetsRules from './assets'
import optimization from './optimization'
import { StaticProvider } from 'nger-di'
export default [{
provide: NgerWebpackManager,
useClass: NgerWebpackManager,
deps: [Logger]
}] as StaticProv... | 13,379 |
https://github.com/gummie4444/yahoo-fantasy-tool/blob/master/server/init/yahooFantasy/index.js | Github Open Source | Open Source | MIT | null | yahoo-fantasy-tool | gummie4444 | JavaScript | Code | 35 | 90 | import YahooFantasy from 'yahoo-fantasy';
import { yahoo } from '../../../config/secrets';
// you can get an application key/secret by creating a new application on Yahoo!
let yf = new YahooFantasy(
yahoo.clientID,
yahoo.clientSecret
);
export default yf;
| 22,927 |
https://github.com/sfultong/nixpkgs/blob/master/pkgs/development/libraries/haskell/system-filepath/default.nix | Github Open Source | Open Source | MIT | null | nixpkgs | sfultong | null | Spoken | 77 | 267 | # This file was auto-generated by cabal2nix. Please do NOT edit manually!
{ cabal, chell, chellQuickcheck, deepseq, QuickCheck, text }:
cabal.mkDerivation (self: {
pname = "system-filepath";
version = "0.4.12";
sha256 = "0sfralwgd5b9hfqmp20v31sq96s0v7j9g920qdj3n9i5mhslhwd2";
buildDepends = [ deepseq text ];
... | 27,124 |
https://github.com/caalador/vaadin-radio-button/blob/master/vaadin-radio-button.ts | Github Open Source | Open Source | Apache-2.0 | null | vaadin-radio-button | caalador | TypeScript | Code | 8 | 36 | import './theme/lumo/vaadin-radio-button';
export { VaadinRadioButton } from './src/vaadin-radio-button';
| 52,088 |
https://github.com/XimpleTap/ximplay/blob/master/public/js/main.js | Github Open Source | Open Source | MIT | 2,017 | ximplay | XimpleTap | JavaScript | Code | 48 | 244 | $(document).ready(function(){
// navigation
$('#to-movies').click(function(){
window.location.href = "../public/";
});
$('#to-music').click(function(){
window.location.href = "../public/music";
});
// pulse effect for the ad banner
setInterval(function(){
$('#ad-banner').toggleClass('animated pulse');
... | 32,940 |
https://github.com/garyjohnson/kvaut/blob/master/features/steps/position_steps.py | Github Open Source | Open Source | MIT | 2,019 | kvaut | garyjohnson | Python | Code | 22 | 131 | import kvaut.client
@step(u'"(?P<above>[^"]*)" is above "(?P<below>[^"]*)"')
def is_above(context, above, below):
kvaut.client.assert_is_above(above, below)
@step(u'"(?P<leading>[^"]*)" is leading "(?P<trailing>[^"]*)"')
def is_leading(context, leading, trailing):
kvaut.client.assert_is_leading(leading, trai... | 17,678 |
https://github.com/H-Labs99/tg-covid19/blob/master/lib/questions/quest5.dart | Github Open Source | Open Source | MIT | 2,020 | tg-covid19 | H-Labs99 | Dart | Code | 185 | 735 |
import 'package:covid19_TG/models/radio_item.dart';
import 'package:covid19_TG/questions/quest6.dart';
import 'package:flutter/material.dart';
import 'package:http/http.dart' as http;
class Quest5 extends StatefulWidget {
@override
_Quest5State createState() => _Quest5State();
}
class _Quest5State extends State<... | 2,245 |
https://github.com/ncarbon/mongodb-vapor/blob/master/Sources/MongoDBVapor/MongoDBVapor.swift | Github Open Source | Open Source | Apache-2.0 | null | mongodb-vapor | ncarbon | Swift | Code | 4 | 9 | private func doSomething() {}
| 8,399 |
https://github.com/GNUxeava/aiscript/blob/master/src/interpreter/value.ts | Github Open Source | Open Source | MIT | null | aiscript | GNUxeava | TypeScript | Code | 377 | 852 | import { Scope } from './scope';
import { Node } from '../node';
export type VNull = {
type: 'null';
};
export type VBool = {
type: 'bool';
value: boolean;
};
export type VNum = {
type: 'num';
value: number;
};
export type VStr = {
type: 'str';
value: string;
};
export type VArr = {
type: 'arr';
value: Va... | 8,012 |
https://github.com/bestwpw/mastodon4j/blob/master/sample-kotlin/src/main/java/com/sys1yagi/mastodon4j/sample/GetPublicTimelines.kt | Github Open Source | Open Source | MIT | 2,017 | mastodon4j | bestwpw | Kotlin | Code | 56 | 297 | package com.sys1yagi.mastodon4j.sample
import com.google.gson.Gson
import com.sys1yagi.mastodon4j.MastodonClient
import com.sys1yagi.mastodon4j.api.Range
import com.sys1yagi.mastodon4j.api.exception.Mastodon4jRequestException
import com.sys1yagi.mastodon4j.api.method.Timelines
import okhttp3.OkHttpClient
object GetPu... | 3,889 |
https://github.com/creativename62/dctb-utfpr-2018-2/blob/master/programacao-web/as34a-n14/ta05/felipe-bueno/ex4.scss | Github Open Source | Open Source | Apache-2.0 | 2,018 | dctb-utfpr-2018-2 | creativename62 | SCSS | Code | 34 | 133 | @import 'ex2';
$rem: "rem";
%html_font_size {
$result: $html_font_size / 16 #{$rem};
font-size: #{$result};
}
%h1_font_size {
$result: $h1_font_size / 16 #{$rem};
font-size: #{$result};
}
%h2_font_size {
$result: $h2_font_size / 16 #{$rem};
font-size: #{$result};
} | 13,597 |
https://github.com/aaronkarp123/HaptEQ/blob/master/opencv-2.4.13/SharedLibs/modules/cmake_install.cmake | Github Open Source | Open Source | BSD-3-Clause | 2,020 | HaptEQ | aaronkarp123 | CMake | Code | 93 | 1,152 | # Install script for directory: /Users/aaronkarp/Documents/Research/Summer2016/GraphingPad/opencv-2.4.13/modules
# Set the install prefix
if(NOT DEFINED CMAKE_INSTALL_PREFIX)
set(CMAKE_INSTALL_PREFIX "/usr/local")
endif()
string(REGEX REPLACE "/$" "" CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}")
# Set the install... | 14,859 |
https://github.com/codefar/netty/blob/master/src/main/java/org/greenleaf/netty/protocal/PackageType.java | Github Open Source | Open Source | MIT | 2,021 | netty | codefar | Java | Code | 50 | 115 | package org.greenleaf.netty.protocal;
/**
* Created by wangyonghua on 2019-08-28.
*/
public class PackageType {
public static final byte CMD_ACK = 1;
public static final byte CMD_HEARTBEAT = 2;
public static final byte CMD_MESSAGE = 3;
public static final byte CMD_LOGIN = 4;
public static final b... | 29,262 |
https://github.com/heidihoward/CCF/blob/master/src/node/historical_queries.h | Github Open Source | Open Source | Apache-2.0 | null | CCF | heidihoward | C | Code | 3,405 | 12,409 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the Apache 2.0 License.
#pragma once
#include "ccf/ccf_assert.h"
#include "ccf/historical_queries_interface.h"
#include "consensus/ledger_enclave_types.h"
#include "kv/store.h"
#include "node/encryptor.h"
#include "node/history.h"
#include ... | 25,150 |
https://github.com/Nuullll/llvm-test-suite/blob/master/MultiSource/Benchmarks/ASC_Sequoia/sphot/rdopac.f | Github Open Source | Open Source | Apache-2.0 | 2,022 | llvm-test-suite | Nuullll | null | Spoken | 463 | 1,606 |
subroutine rdopac (ilib,illib)
c***********************************************************************
c Read material opacities as a function of temperature and density
c
c Modified 3/15/01 bmb: For file system scalability, substituted
c MPI_Bcast instead of having each task read the input file individua... | 23,587 |
https://github.com/jiyegege/DataSphereStudio/blob/master/dss-orchestrator/orchestrators/dss-workflow/dss-flow-execution-server/src/main/scala/com/webank/wedatasphere/dss/flow/execution/entrance/FlowContext.scala | Github Open Source | Open Source | Apache-2.0 | 2,022 | DataSphereStudio | jiyegege | Scala | Code | 261 | 893 | /*
* Copyright 2019 WeBank
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, ... | 41,944 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.