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/kellhellia/vkReduxLast/blob/master/src/reducers/index.js | Github Open Source | Open Source | MIT | null | vkReduxLast | kellhellia | JavaScript | Code | 53 | 163 | import { combineReducers } from 'redux';
import { routerReducer } from 'react-router-redux';
import app from './appReducers';
import user from './userReducers';
import tracks from './tracksReducers';
import search from './searchReducers';
import newPlaylist from './newPlaylistReducers';
import playlists from './playlis... | 46,942 |
https://github.com/nillohitbanerjee/-parking_lot-/blob/master/src/main/java/com/parking/commandCenter/SlotNumbersForCarsWithColour.java | Github Open Source | Open Source | MIT | null | -parking_lot- | nillohitbanerjee | Java | Code | 30 | 150 | package com.parking.commandCenter;
import com.parking.parking.ParkingLot;
public class SlotNumbersForCarsWithColour implements Command {
ParkingLot parkingLot;
String colour;
public SlotNumbersForCarsWithColour(ParkingLot parkingLot, String colour){
this.parkingLot=parkingLot;
this.colo... | 20,409 |
https://github.com/aroig/nnutil2/blob/master/nnutil2/layers/layer.py | Github Open Source | Open Source | BSD-3-Clause | null | nnutil2 | aroig | Python | Code | 90 | 242 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# nnutil2 - Tensorflow utilities for training neural networks
# Copyright (c) 2019, Abdó Roig-Maranges <abdo.roig@gmail.com>
#
# This file is part of 'nnutil2'.
#
# This file may be modified and distributed under the terms of the 3-clause BSD
# license. See the LICENSE fi... | 16,939 |
https://github.com/marta18a/openfda/blob/master/server.py | Github Open Source | Open Source | Apache-2.0 | null | openfda | marta18a | Python | Code | 62 | 156 | import web
import socketserver
PORT = 8000
#Handler = http.server.SimpleHTTPRequestHandler
Handler = web.testHTTPRequestHandler
#clase a partir de la cual se crean los objetor. Se crean obj de clase Handler
socketserver.TCPServer.allow_reuse_address=True
httpd = socketserver.TCPServer(("", PORT), Handler) #Utilizando... | 43,481 |
https://github.com/nosuchagency/beacon-bacon-api/blob/master/app/Http/Controllers/API/V1/Auth/ResetPasswordController.php | Github Open Source | Open Source | MIT | null | beacon-bacon-api | nosuchagency | PHP | Code | 109 | 440 | <?php
namespace App\Http\Controllers\API\V1\Auth;
use App\Http\Controllers\Controller;
use App\Http\Requests\ResetPasswordRequest;
use Illuminate\Auth\Events\PasswordReset;
use Illuminate\Contracts\Auth\CanResetPassword;
use Illuminate\Foundation\Auth\ResetsPasswords;
use Illuminate\Http\JsonResponse;
use Illuminate\... | 8,814 |
https://github.com/beliantech/bt-components/blob/master/src/components/bt-progress.js | Github Open Source | Open Source | MIT | 2,020 | bt-components | beliantech | JavaScript | Code | 89 | 335 | import { html, css } from "lit-element";
import BTBase from "../bt-base";
import "@material/mwc-circular-progress";
import "@material/mwc-linear-progress";
class BTProgress extends BTBase {
static get properties() {
return {
circle: { type: Boolean, attribute: true },
linear: { type: Boolean, attrib... | 9,349 |
https://github.com/osmaelo/LeetCode-Solutions/blob/master/Python/check-if-number-has-equal-digit-count-and-digit-value.py | Github Open Source | Open Source | MIT | 2,018 | LeetCode-Solutions | osmaelo | Python | Code | 35 | 100 | # Time: O(n)
# Space: O(1)
import collections
# freq table
class Solution(object):
def digitCount(self, num):
"""
:type num: str
:rtype: bool
"""
cnt = collections.Counter(num)
return all(cnt[str(i)] == int(x) for i, x in enumerate(num))
| 5,294 |
https://github.com/GhostyJade/track-bee/blob/master/web/src/app/fuse-layouts/layout1/components/navbar/style-2/NavbarStyle2.js | Github Open Source | Open Source | MIT | 2,022 | track-bee | GhostyJade | JavaScript | Code | 427 | 1,530 | import Hidden from '@mui/material/Hidden';
import { styled } from '@mui/material/styles';
import SwipeableDrawer from '@mui/material/SwipeableDrawer';
import { navbarCloseFolded, navbarOpenFolded, navbarCloseMobile } from 'app/store/fuse/navbarSlice';
import { useDispatch, useSelector } from 'react-redux';
import Navba... | 4,292 |
https://github.com/legistek/AspNetCore/blob/master/src/Identity/Extensions.Core/src/UserClaimsPrincipalFactory.cs | Github Open Source | Open Source | Apache-2.0 | 2,022 | AspNetCore | legistek | C# | Code | 594 | 1,748 | // Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
using System.Security.Claims;
using System.Threading.Tasks;
using Microsoft.Extensions.Options;
namespace Microsoft.AspNetCore.Identity
{... | 20,004 |
https://github.com/chindesaurus/Map-Generator/blob/master/js/yellow.js | Github Open Source | Open Source | BSD-3-Clause | null | Map-Generator | chindesaurus | JavaScript | Code | 292 | 880 | var yellow = [
[ 34.090073 , -117.241523, 'Prime Pantry/AmazonFresh Distribution Center', '2020 E. Central Ave, San Bernardino, CA'],
[ 33.992907 , -118.182084, 'Prime Pantry/AmazonFresh Distribution Center', '5119 District Blvd #100, Vernon, CA'],
[ 37.745404 , -121.404442, 'Prime Pantry/AmazonFresh Distribution Cente... | 16,813 |
https://github.com/strident/trident/blob/master/src/Trident/Module/MigrationModule/TridentMigrationModule.php | Github Open Source | Open Source | MIT | null | trident | strident | PHP | Code | 144 | 560 | <?php
/*
* This file is part of Trident.
*
* (c) Elliot Wright <elliot@elliotwright.co>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Trident\Module\MigrationModule;
use Phimple\Container;
use Phinx\Config\Config;
us... | 32,760 |
https://github.com/yiwork/Singularity/blob/master/SingularityService/src/main/java/com/hubspot/singularity/helpers/SingularityRequestDeployHolder.java | Github Open Source | Open Source | Apache-2.0 | 2,019 | Singularity | yiwork | Java | Code | 46 | 211 | package com.hubspot.singularity.helpers;
import java.util.Optional;
import com.hubspot.singularity.SingularityDeploy;
public class SingularityRequestDeployHolder {
private final Optional<SingularityDeploy> activeDeploy;
private final Optional<SingularityDeploy> pendingDeploy;
public SingularityRequestDeployH... | 38,225 |
https://github.com/leap-guides/gs-oauth2/blob/master/debug-server/docker_build.sh | Github Open Source | Open Source | Apache-2.0 | null | gs-oauth2 | leap-guides | Shell | Code | 5 | 17 | docker build -t leapframework/debug-auth-server .
| 26,040 |
https://github.com/schwendp/hoomd-blue/blob/master/hoomd/hpmc/ShapeConvexPolygon.h | Github Open Source | Open Source | BSD-3-Clause | 2,020 | hoomd-blue | schwendp | C | Code | 2,392 | 6,528 | // Copyright (c) 2009-2019 The Regents of the University of Michigan
// This file is part of the HOOMD-blue project, released under the BSD 3-Clause License.
#include "hoomd/HOOMDMath.h"
#include "hoomd/BoxDim.h"
#include "HPMCPrecisionSetup.h"
#include "hoomd/VectorMath.h"
#include "ShapeSphere.h" //< For the base... | 34,469 |
https://github.com/yongHacker/goldbank/blob/master/public/appertain/business/js/BProcureReturn.js | Github Open Source | Open Source | Apache-2.0 | null | goldbank | yongHacker | JavaScript | Code | 1,167 | 4,784 | /**
* create by alam 2016/06/05
* 采购退货的页面操作、数据提交js
*/
// 当前页面的标识ID
var location_id = location_id();
var is_loading = false;
// 切换仓库切换iframe地址
$('select[name=wh_id]').change(function() {
update_iframe_url();
$('.plus').remove();
reflush_table();
});
// 切换供应商切换iframe地址
$('select[name=supplier_id ]').change(functi... | 30,673 |
https://github.com/chula-eic/PLC2018-Junk-Harvestor/blob/master/color_clf.py | Github Open Source | Open Source | Apache-2.0 | null | PLC2018-Junk-Harvestor | chula-eic | Python | Code | 162 | 711 | import cv2
import glob
import numpy as np
from test_color import color_center
from sklearn.linear_model import LogisticRegression as logistic
import joblib
import datetime
import color
color_liz = ['green', 'yellow', 'brown']
def learn():
X = []
Y = []
imgs = glob.glob("mango_color/b*.png")
for f... | 12,399 |
https://github.com/kidder/spectre/blob/master/tests/Unit/Parallel/Test_AlgorithmGlobalCache.cpp | Github Open Source | Open Source | MIT | 2,022 | spectre | kidder | C++ | Code | 900 | 4,119 | // Distributed under the MIT License.
// See LICENSE.txt for details.
// Need CATCH_CONFIG_RUNNER to avoid linking errors with Catch2
#define CATCH_CONFIG_RUNNER
#include "Framework/TestingFramework.hpp"
#include <cstddef>
#include <optional>
#include <string>
#include <tuple>
#include <utility>
#include <vector>
#... | 18,809 |
https://github.com/lleocastro/xcodeigniter/blob/master/app/controllers/auth/Login.php | Github Open Source | Open Source | MIT | null | xcodeigniter | lleocastro | PHP | Code | 103 | 293 | <?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Login extends CI_Controller
{
/**
* Where to redirect users after login.
*
* @var string
*/
protected $redirect_to = 'home';
/**
* Create a new controller instance.
*/
public function __construct(... | 40,964 |
https://github.com/jpmorgen/IoIO/blob/master/precisionguide_old.py | Github Open Source | Open Source | MIT | 2,020 | IoIO | jpmorgen | Python | Code | 18,752 | 47,139 | #--> This code was developed using Anaconda3 installed as
#--> administrator and with PATH option selected during the install so
#--> that python can be used from a Windows command line. NOTE: to
#--> get command line arguments passed, which is essential for this
#--> code, you need need to edit registry to make
# Com... | 17,230 |
https://github.com/hnguzx/maven-ssh/blob/master/src/main/java/cn/guzx/action/UserAction.java | Github Open Source | Open Source | Apache-2.0 | null | maven-ssh | hnguzx | Java | Code | 78 | 331 | package cn.guzx.action;
import cn.guzx.entity.UserEntity;
import cn.guzx.service.UserService;
import com.opensymphony.xwork2.ActionContext;
import com.opensymphony.xwork2.ActionSupport;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;
import java.util.Map;
/**
*... | 1,521 |
https://github.com/marcelomunozr/entel-360-wp/blob/master/templates/head.php | Github Open Source | Open Source | MIT | null | entel-360-wp | marcelomunozr | PHP | Code | 71 | 340 | <head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<?php
$descripcion = get_field('descripcion', 'option');
$imgOG = get_field('imagen_og', 'option');
?>
<!-- OGt -->
<meta property=... | 33,557 |
https://github.com/180254/HelloReview/blob/master/src/main/java/pl/p/lodz/iis/hr/services/FormValidator2.java | Github Open Source | Open Source | MIT | null | HelloReview | 180254 | Java | Code | 201 | 717 | package pl.p.lodz.iis.hr.services;
import org.springframework.validation.*;
import pl.p.lodz.iis.hr.models.forms.Form;
import pl.p.lodz.iis.hr.models.forms.Input;
import pl.p.lodz.iis.hr.models.forms.Question;
import java.util.ArrayList;
import java.util.List;
import java.util.stream.Collectors;
/**
* Internal Form... | 31,565 |
https://github.com/phatdear/dotnet-docs-samples/blob/master/storage/api/Storage.Samples.Tests/PrintFileAclTest.cs | Github Open Source | Open Source | Apache-2.0 | 2,022 | dotnet-docs-samples | phatdear | C# | Code | 179 | 497 | // Copyright 2020 Google Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | 10,909 |
https://github.com/opentargets/terraform-google-genetics-portal/blob/master/modules/api/firewall.tf | Github Open Source | Open Source | Apache-2.0 | null | terraform-google-genetics-portal | opentargets | HCL | Code | 167 | 516 | // --- Firewall Configuration --- //
module "firewall_rules" {
source = "terraform-google-modules/network/google//modules/firewall-rules"
count = length(var.deployment_regions)
project_id = var.project_id
network_name = var.network_name
// Keep in mind that logging is disabled for the defined firewall rules... | 8,978 |
https://github.com/AttPyramid/nips2021/blob/master/efficient_capsnet_train.py | Github Open Source | Open Source | Apache-2.0 | null | nips2021 | AttPyramid | Python | Code | 68 | 272 | import tensorflow as tf
from utils import Dataset, plotImages, plotWrongImages, plotHistory
from models import EfficientCapsNet
gpus = tf.config.experimental.list_physical_devices('GPU')
tf.config.experimental.set_visible_devices(gpus[2], 'GPU')
tf.config.experimental.set_memory_growth(gpus[2], True)
# some paramete... | 29,783 |
https://github.com/quybeans/react-unity-webgl/blob/master/dist/Types.js | Github Open Source | Open Source | Apache-2.0 | 2,022 | react-unity-webgl | quybeans | JavaScript | Code | 4 | 17 | "use strict";
//# sourceMappingURL=Types.js.map | 27,298 |
https://github.com/rguichard/symplegma/blob/master/contrib/aws/terraform/modules/symplegma/bastion.tf | Github Open Source | Open Source | Apache-2.0 | 2,022 | symplegma | rguichard | HCL | Code | 41 | 194 | module "bastion" {
source = "terraform-aws-modules/ec2-instance/aws"
version = "~> 1.0"
name = "${var.bastion_name}"
instance_count = 1
associate_public_ip_address = true
ami = "${var.bastion_ami}"
instance_type = "${var.basti... | 18,434 |
https://github.com/pvorb/azure-iot-sdk-java/blob/master/deps/src/main/java/com/microsoft/azure/sdk/iot/deps/serializer/ManagedIdentity.java | Github Open Source | Open Source | MIT | 2,022 | azure-iot-sdk-java | pvorb | Java | Code | 59 | 126 | // Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
package com.microsoft.azure.sdk.iot.deps.serializer;
import lombok.Getter;
import lombok.Setter;
public class ManagedIdentity {
/**
* The managed identity us... | 9,900 |
https://github.com/marian2js/sharenewsletters/blob/master/backend/schema.graphql | Github Open Source | Open Source | MIT | 2,020 | sharenewsletters | marian2js | null | Spoken | 1,529 | 4,827 | type AccessToken {
accessToken: String!
accessTokenExpiration: Float
}
"""A single Comment."""
type Comment implements Node {
id: ID!
user: User!
post: Post!
body: String!
upVotes: Float
downVotes: Float
createdAt: String
updatedAt: String
userVote: CommentVote
}
input CommentBodyFilterInput {
... | 30,732 |
https://github.com/nsiegel/scratch_space/blob/master/src/static/sass/variables.scss | Github Open Source | Open Source | MIT | null | scratch_space | nsiegel | SCSS | Code | 2 | 15 | $background-color: #d6d6d6;
| 2,900 |
https://github.com/bowed-in/bowed-in/blob/master/app/tests/preliminarySignup.page.js | Github Open Source | Open Source | MIT | null | bowed-in | bowed-in | JavaScript | Code | 145 | 468 | import { Selector } from 'testcafe';
import { navBar } from './navbar.component';
class PreliminarySignupPage {
constructor() {
this.pageId = '#preliminary-signup-page';
this.pageSelector = Selector(this.pageId);
}
/** Asserts that this page is currently displayed. */
async isDisplayed(testController)... | 6,696 |
https://github.com/arielberardi/angus/blob/master/lib/angus/utils/exceptions/required_parameter_not_fond.rb | Github Open Source | Open Source | MIT | 2,021 | angus | arielberardi | Ruby | Code | 26 | 104 | module Angus
class RequiredParameterNotFound < StandardError
attr_accessor :not_found_parameters
def initialize(not_found_parameters)
@not_found_parameters = not_found_parameters
end
def error_key
'TODO define'
end
def message
@not_found_parameters.map(&:name).join(', ')
... | 11,190 |
https://github.com/indigen-solutions/indi-route-angular/blob/master/src/js/directives/indi-route-class.js | Github Open Source | Open Source | MIT | null | indi-route-angular | indigen-solutions | JavaScript | Code | 460 | 1,079 | /*
*
* The MIT License (MIT)
*
* Copyright (c) 2015 Indigen-Solution
* See the AUTHORS file for details.
*
* 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, includ... | 29,029 |
https://github.com/mmcomp/aref_shop/blob/master/database/seeders/GroupsSeeder.php | Github Open Source | Open Source | MIT | 2,021 | aref_shop | mmcomp | PHP | Code | 67 | 225 | <?php
namespace Database\Seeders;
use Carbon\Carbon;
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\DB;
class GroupsSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
$names = ['Admin', 'Registered', 'Teachers'];
... | 26,729 |
https://github.com/hgajjar-sessiondigital/snap-test/blob/master/public/lib/Zend/Gdata/Analytics/AccountQuery.php | Github Open Source | Open Source | Apache-2.0 | 2,021 | snap-test | hgajjar-sessiondigital | PHP | Code | 468 | 1,387 | <?php
/**
* Zend Framework
*
* LICENSE
*
* This source file is subject to the new BSD license that is bundled
* with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://framework.zend.com/license/new-bsd
* If you did not receive a copy of the license an... | 1,418 |
https://github.com/lianer/tingyun2/blob/master/util/logger.js | Github Open Source | Open Source | BSD-2-Clause | null | tingyun2 | lianer | JavaScript | Code | 101 | 298 | 'use strict';
var Logger = require('./bunyan.js');
var config = require('../options/config.js').init();
var LEVELS = ['debug', 'verbose', 'info', 'warning', 'error', 'critical'];
function fix_level(value) {
if (!isNaN(parseInt(value, 10)) && isFinite(value)) {
if (value < 1) {
value = 1;
... | 22,216 |
https://github.com/mscanlon/moviedraft/blob/master/resources/views/drafts/movies.blade.php | Github Open Source | Open Source | MIT | null | moviedraft | mscanlon | PHP | Code | 118 | 557 | @extends('app')
@section('content')
<p>
<a href="/draft/{{ $draft->id }}" class="btn btn-link"><- Back to Draft Board</a>
</p>
<div class="row">
<div class="col-md-6">
<h2>Movies in Draft</h2>
<table class="table">
<thead>
<tr>
... | 21,383 |
https://github.com/MicahMartin/userService/blob/master/src/controllers/UserController.js | Github Open Source | Open Source | MIT | null | userService | MicahMartin | JavaScript | Code | 173 | 444 | import {
getUserQuery,
createUserQuery,
deleteUserQuery,
updateUserQuery,
} from '../models/UserModel';
import { debugLogger } from '../util/log';
export const getUser = async (id) => {
debugLogger.info(`grabbing data for user:${id}`);
const res = await getUserQuery(id);
if (!res) {
debugLogger.warn... | 5,007 |
https://github.com/phpc0de/idea-android/blob/master/emulator/testSrc/com/android/tools/idea/emulator/CommandLineDecoderTest.kt | Github Open Source | Open Source | Apache-2.0 | 2,022 | idea-android | phpc0de | Kotlin | Code | 146 | 322 | /*
* Copyright (C) 2020 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... | 6,646 |
https://github.com/singularity-group/bugsnag-unity/blob/master/features/fixtures/maze_runner/nativeplugin/android/src/main/java/com/example/bugsnagcrashplugin/CrashHelper.java | Github Open Source | Open Source | MIT | 2,022 | bugsnag-unity | singularity-group | Java | Code | 64 | 181 | package com.example.bugsnagcrashplugin;
import android.util.Log;
import android.os.Looper;
public class CrashHelper {
static {
System.loadLibrary("entrypoint");
}
public static void triggerJvmException() {
String[] items = {"one", "two"};
Log.i("NativePlugin", "This is the third i... | 15,066 |
https://github.com/SylvesterAbreu/sling/blob/master/tooling/ide/eclipse-test/src/org/apache/sling/ide/test/impl/helpers/FailOnModificationEventsRule.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | sling | SylvesterAbreu | Java | Code | 213 | 478 | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | 1,889 |
https://github.com/marleeng/morph-preferences/blob/master/morph-examples/prueba/queries/2d/dataset1-query3-skyline.rq | Github Open Source | Open Source | Apache-2.0 | null | morph-preferences | marleeng | null | Spoken | 25 | 81 | PREFIX ex: <http://example.com/>
SELECT (count(distinct ?s1) as ?count)
WHERE {
?s1 ex:d1 ?d1s1 .
?s1 ex:d4 ?d4s1 .
}
SKYLINE OF ?d1s1 MIN, ?d4s1 MIN
| 18,216 |
https://github.com/harrisonized/cshl-singlecell-2017-v2/blob/master/functions/colors.py | Github Open Source | Open Source | MIT | null | cshl-singlecell-2017-v2 | harrisonized | Python | Code | 60 | 161 | from collections import defaultdict
import math
# Functions included in this file:
# # generate_label_colors
# # labels_to_colors
def generate_label_colors(labels: list, colors: list, palette='Set2'):
"""Matches labels with colors
If there are more labels than colors, repeat and cycle through colors
"""... | 33,567 |
https://github.com/salsaverde123/BRTBlogBundle/blob/master/Resources/views/Admin/post/index.html.twig | Github Open Source | Open Source | MIT | null | BRTBlogBundle | salsaverde123 | Twig | Code | 282 | 1,070 | {% extends '@BRTBlog/brt_blog_base.html.twig' %}
{% block pageHeader %}
<br>
<!-- Page header -->
<div class="page-header">
<div class="breadcrumb-line breadcrumb-line-component">
<ul class="breadcrumb">
<li><a href="{{ path('brt_blog_adminpage') }}"><i class="icon-home2... | 5,684 |
https://github.com/hotdoy/grav-theme-davidraymond/blob/master/templates/partials/serviceworker.html.twig | Github Open Source | Open Source | MIT | null | grav-theme-davidraymond | hotdoy | Twig | Code | 9 | 37 | <script>
if ('serviceWorker' in navigator) {
navigator.serviceWorker.register('/sw.js');
}
</script> | 20,090 |
https://github.com/aseefahmed/circulation/blob/master/api/admin/controller/search_service_self_tests.py | Github Open Source | Open Source | Apache-2.0 | null | circulation | aseefahmed | Python | Code | 65 | 258 | from flask_babel import lazy_gettext as _
from api.admin.controller.self_tests import SelfTestsController
from core.external_search import ExternalSearchIndex
from core.model import ExternalIntegration
from core.testing import ExternalSearchTest
class SearchServiceSelfTestsController(SelfTestsController, ExternalSea... | 34,449 |
https://github.com/testfairy/testfairy-gradle-plugin/blob/master/src/main/groovy/com/testfairy/plugins/gradle/Zip.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | testfairy-gradle-plugin | testfairy | Java | Code | 264 | 845 | package com.testfairy.plugins.gradle;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import java.util.zip.ZipEntry;
import java.util.zip.ZipOutputStream;
class Zip {
private List<String> fileList;
p... | 43,861 |
https://github.com/pfirmstone/Rio/blob/master/rio-platform/src/test/resources/fake-rio-home/config/resolverConfig.groovy | Github Open Source | Open Source | Apache-2.0 | null | Rio | pfirmstone | Groovy | Code | 52 | 231 | import org.rioproject.RioVersion
/* test resolver configuration*/
String hostName = InetAddress.getLocalHost().getHostName()
String address = InetAddress.getLocalHost().getHostAddress()
println "hostName: ${hostName}, address: ${address}"
boolean onEnclave = (hostName.endsWith("wpafb.af.mil") || address.startsWith("1... | 27,529 |
https://github.com/kurtseifried/gsd-url-list/blob/master/data/saltproject.io | Github Open Source | Open Source | CC0-1.0 | 2,021 | gsd-url-list | kurtseifried | Io | Code | 2 | 63 | https://saltproject.io/security_announcements/active-saltstack-cve-release-2021-feb-25/
https://saltproject.io/security_announcements/salt-security-advisory-2021-sep-02/
| 26,966 |
https://github.com/gzasgjq/ImagePicker-Whit-VideoImageCompreesor/blob/master/cropvideo/src/main/java/com/gjq/demo/cropvideo/tools/VideoUtils.java | Github Open Source | Open Source | Apache-2.0 | 2,018 | ImagePicker-Whit-VideoImageCompreesor | gzasgjq | Java | Code | 119 | 435 | package com.gjq.demo.cropvideo.tools;
import android.content.Context;
import android.content.Intent;
import android.database.Cursor;
import android.media.MediaMetadataRetriever;
import android.net.Uri;
import android.provider.MediaStore;
/**
* 创建人:gjq-t239
* 创建时间:2018/03/19 14:48
* 类描述:$INTRO$
* <p>
* 修改人:
* 修改... | 4,961 |
https://github.com/copslock/broadcom_cpri/blob/master/sdk-6.5.20/src/bcm/ltsw/chip/bcm56990_a0/bcm56990_a0/bcm56990_a0_int.c | Github Open Source | Open Source | Spencer-94 | null | broadcom_cpri | copslock | C | Code | 355 | 1,842 | /*! \file bcm56990_a0_int.c
*
* BCM56990_A0 tunnel subordinate driver.
*/
/*
* This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file.
*
* Copyright 2007-2020 Broadcom Inc. All rights reserved.
*/
#if defined(INCLUDE_INT)
#include <bcm... | 9,360 |
https://github.com/abdullatif1992/gitlabhq/blob/master/spec/javascripts/issuable_time_tracker_spec.js | Github Open Source | Open Source | MIT | 2,018 | gitlabhq | abdullatif1992 | JavaScript | Code | 537 | 2,091 | /* eslint-disable no-unused-vars, space-before-function-paren, func-call-spacing, no-spaced-func, semi, max-len, quotes, space-infix-ops, padded-blocks */
import $ from 'jquery';
import Vue from 'vue';
import timeTracker from '~/sidebar/components/time_tracking/time_tracker.vue';
function initTimeTrackingComponent(o... | 22,637 |
https://github.com/Kaju4047/PHP-Shri-Purohit/blob/master/shri-purohit-website/index.php | Github Open Source | Open Source | MIT | null | PHP-Shri-Purohit | Kaju4047 | PHP | Code | 1,146 | 5,506 | <?php include('header.php')?>
<div class="site-blocks-cover overlay" style="background-image: url(images/header/slide.jpg);" data-aos="fade" >
<div class="container">
<div class="call-box">
<section class="top-bar">
<div class="cll-num">
<p>Call Us</p>... | 10,885 |
https://github.com/illicium/infake/blob/master/gen.go | Github Open Source | Open Source | Apache-2.0 | null | infake | illicium | Go | Code | 128 | 392 | package infake
import (
"log"
"sync"
"math/rand"
)
type Gen struct {
RndSrc rand.Source
Series []*Series
}
func NewGen(cfg Config) (*Gen, error) {
rndSrc := &LockedSource{src: rand.NewSource(cfg.Seed)}
gen := &Gen{
RndSrc: rndSrc,
}
gen.Series = make([]*Series, len(cfg.Series))
for i, seriesCfg := rang... | 34,542 |
https://github.com/avivace/sfx-framedata/blob/master/discord/commands/actions.py | Github Open Source | Open Source | MIT | 2,021 | sfx-framedata | avivace | Python | Code | 168 | 511 | #!/usr/bin/python
import aiofiles
import discord
from fuzzywuzzy import process
from commands.utilities import register, generate_discord_color, get_last_commit
class Help():
def __init__(self, config=None):
self.config = config or {}
self.cmd_ratio_thresh = 80
@register('!help')
async d... | 18,054 |
https://github.com/Ray-Di/Ray.Di/blob/master/tests/di/Fake/FakePhp8CarModule.php | Github Open Source | Open Source | MIT | 2,016 | Ray.Di | Ray-Di | PHP | Code | 50 | 427 | <?php
declare(strict_types=1);
namespace Ray\Di;
use Ray\Di\Annotation\FakeInjectOne;
use Ray\Di\Annotation\FakeLeft;
use Ray\Di\Annotation\FakeRight;
class FakePhp8CarModule extends AbstractModule
{
protected function configure()
{
$this->bind(FakeCarInterface::class)->to(FakePhp8Car::class); // de... | 1,323 |
https://github.com/vimc/montagu-webapps/blob/master/app/src/main/admin/actions/pages/ModellingGroupMembersPageActionCreators.ts | Github Open Source | Open Source | MIT | null | montagu-webapps | vimc | TypeScript | Code | 76 | 376 | import {Dispatch} from "redux";
import {AdminAppState} from "../../reducers/adminAppReducers";
import {modellingGroupDetailsPageActionCreators} from "./ModellingGroupDetailsPageActionCreators";
import {
ModellingGroupMembersPageComponent,
ModellingGroupMembersPageLocationProps
} from "../../components/Modelli... | 8,129 |
https://github.com/wreulicke/spring-sandbox/blob/master/webflux-oauth2/src/main/kotlin/com/github/wreulicke/webflux/oauth2/OAuth2IntrospectionReactiveAuthenticationManager.kt | Github Open Source | Open Source | MIT | 2,019 | spring-sandbox | wreulicke | Kotlin | Code | 506 | 2,345 | package com.github.wreulicke.webflux.oauth2
import com.nimbusds.oauth2.sdk.TokenIntrospectionResponse
import com.nimbusds.oauth2.sdk.TokenIntrospectionSuccessResponse
import com.nimbusds.oauth2.sdk.http.HTTPResponse
import com.nimbusds.oauth2.sdk.id.Audience
import org.springframework.http.HttpHeaders
import org.sprin... | 23,668 |
https://github.com/jiachitor/ng-x-table-12/blob/master/src/lib/x-table.module.ts | Github Open Source | Open Source | MIT | null | ng-x-table-12 | jiachitor | TypeScript | Code | 95 | 295 | import { NgModule, Optional } from '@angular/core';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { HttpClientModule } from '@angular/common/http';
import { CommonModule } from '@angular/common';
import { FormsModule } from '@angular/forms';
import { XTableComponent } from './x... | 36,758 |
https://github.com/cwj5012/exgs/blob/master/src/main/java/wang/ioai/exgs/exec/game/scene/SceneManager.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | exgs | cwj5012 | Java | Code | 161 | 492 | package wang.ioai.exgs.exec.game.scene;
import wang.ioai.exgs.common.pb.ProtoDebug;
import java.util.ArrayList;
import java.util.HashMap;
public class SceneManager {
public static class Info {
public int x;
public int y;
public Info(int x, int y) {
this.x = x;
thi... | 42,824 |
https://github.com/ButterCam/Mediator/blob/master/desktop/src/main/kotlin/io/kanro/mediator/desktop/model/MethodType.kt | Github Open Source | Open Source | Apache-2.0 | 2,022 | Mediator | ButterCam | Kotlin | Code | 45 | 193 | package io.kanro.mediator.desktop.model
import io.grpc.MethodDescriptor
enum class MethodType {
UNKNOWN, UNARY, CLIENT_STREAMING, SERVER_STREAMING, BIDI_STREAMING;
companion object {
operator fun invoke(methodType: MethodDescriptor.MethodType): MethodType {
return when (methodType) {
... | 44,301 |
https://github.com/xuri/excelize-benchmark/blob/master/v2.0.x/benchAddChart.go | Github Open Source | Open Source | MIT | 2,022 | excelize-benchmark | xuri | Go | Code | 172 | 627 | // Copyright 2021 The excelize Authors. All rights reserved. Use of
// this source code is governed by a BSD-style license.
//
// This is a benchmark script for the Go language Spreadsheet (Excel / XLSX)
// library excelize: https://github.com/xuri/excelize
package main
import (
"fmt"
"runtime"
"time"
"github.co... | 36,839 |
https://github.com/sentrionic/HarmonyApp/blob/master/app/src/main/java/xyz/sentrionic/harmony/ui/main/create_story/GridImageAdapter.kt | Github Open Source | Open Source | MIT | null | HarmonyApp | sentrionic | Kotlin | Code | 113 | 395 | package xyz.sentrionic.harmony.ui.main.create_story
import android.content.Context
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ArrayAdapter
import com.bumptech.glide.RequestManager
import xyz.sentrionic.harmony.R
import xyz.sentrionic.harmony.util.Squ... | 9,067 |
https://github.com/ekalin/kalendar/blob/master/app/src/main/java/com/github/ekalin/kalendar/util/PermissionsUtil.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | kalendar | ekalin | Java | Code | 288 | 1,230 | package com.github.ekalin.kalendar.util;
import android.Manifest;
import android.app.PendingIntent;
import android.content.Context;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.os.Build;
import androidx.annotation.NonNull;
import androidx.core.content.ContextCompat;
import c... | 1,925 |
https://github.com/vladms/RotaHack/blob/master/ARKitImageRecognition/ViewControllers/RHARViewController.swift | Github Open Source | Open Source | MIT | null | RotaHack | vladms | Swift | Code | 920 | 3,351 | import ARKit
import SceneKit
import UIKit
import WebKit
class RHARViewController: UIViewController, ARSCNViewDelegate {
@IBOutlet var sceneView: ARSCNView!
@IBOutlet weak var blurView: UIVisualEffectView!
@IBOutlet weak private var productInfoView: ARProductInfoView!
@IBOutlet weak private var profuctI... | 12,045 |
https://github.com/MoritzWillig/flowbias/blob/master/evaluations/edgeEval/display_area_filter.py | Github Open Source | Open Source | Apache-2.0 | null | flowbias | MoritzWillig | Python | Code | 152 | 715 | import numpy as np
import matplotlib.pyplot as plt
from PIL import Image
import torch
from flowbias.config import Config
from flowbias.utils.flow import compute_color
from flowbias.utils.meta_infrastructure import get_available_datasets
from flowbias.evaluations.edgeEval.area_filter import AreaFilter
from flowbias.uti... | 35,987 |
https://github.com/baseless/JsonCrafter/blob/master/src/JsonCrafter.Processing/Configuration/IResource.cs | Github Open Source | Open Source | Apache-2.0 | null | JsonCrafter | baseless | C# | Code | 18 | 66 | using System.Collections.Generic;
using JsonCrafter.Processing.Configuration.Settings;
namespace JsonCrafter.Processing.Configuration
{
public interface IResource
{
ICollection<IResourceSetting> Settings { get; }
}
}
| 26,860 |
https://github.com/b3j0f/CoUseIt/blob/master/django/templates/common.js | Github Open Source | Open Source | MIT | null | CoUseIt | b3j0f | JavaScript | Code | 333 | 848 | '{{ common.id }}': {
id: '{{ common.id }}',
name: '{{ common.name }}',
shortdescription: '{{ common.shortdescription }}',
description: '{{ common.description }}',
created: '{{ common.created }}',
owners: [{% for owner in common.owners.all %}'{{ owner.id }}', {% endfor %}],
suppliers: [{% for... | 26,605 |
https://github.com/EventKit/pelias-api/blob/master/sanitizer/place.js | Github Open Source | Open Source | MIT | null | pelias-api | EventKit | JavaScript | Code | 37 | 229 | module.exports.middleware = (_api_pelias_config) => {
var sanitizeAll = require('../sanitizer/sanitizeAll'),
sanitizers = {
singleScalarParameters: require('../sanitizer/_single_scalar_parameters')(),
debug: require('../sanitizer/_debug')(_api_pelias_config.exposeInternalDebugTools),
ids... | 46,810 |
https://github.com/macleginn/bivaltyp/blob/master/scripts/convert-structural-table.py | Github Open Source | Open Source | CC0-1.0 | null | bivaltyp | macleginn | Python | Code | 102 | 431 | import json
import pandas as pd
DATA_DIR = '../data'
OUT_DIR = '../public/js/data'
d = pd.read_csv(f'{DATA_DIR}/data_structural.csv', sep='\t')
d.fillna('', inplace=True)
# Replace numbers of languages and predicates with their names.
meta_langs = pd.read_csv(f'{DATA_DIR}/languages.csv', sep='\t')
lang_name_dict = {... | 21,373 |
https://github.com/SC1R33RICK/HRIS/blob/master/HRIS.Web/App_Start/UnityConfig.cs | Github Open Source | Open Source | MIT | null | HRIS | SC1R33RICK | C# | Code | 227 | 744 | using System;
using Microsoft.Practices.Unity;
using Microsoft.Practices.Unity.Mvc;
using Microsoft.Practices.Unity.Configuration;
using HRIS.Data;
using System.Linq;
using System.Reflection;
using Common;
using Repository.Providers.EntityFramework;
using Repository;
using System.Web.Mvc;
namespace HRIS.Web.App_Start
... | 21,130 |
https://github.com/tusharmath/zio-config/blob/master/examples/src/main/scala/zio/config/examples/RandomConfigGenerationSimpleExample.scala | Github Open Source | Open Source | Apache-2.0 | null | zio-config | tusharmath | Scala | Code | 85 | 258 | package zio.config.examples
import zio.config.magnolia.{ name, _ }
import zio.config.gen._
object RandomConfigGenerationSimpleExample extends App {
sealed trait Cloud
object Cloud {
case object Aws extends Cloud
case object Azure ... | 37,443 |
https://github.com/itm/shawn/blob/master/src/apps/vis/properties/vis_property_base.h | Github Open Source | Open Source | BSD-3-Clause | 2,019 | shawn | itm | C | Code | 155 | 452 | /************************************************************************
** This file is part of the network simulator Shawn. **
** Copyright (C) 2004,2005 by SwarmNet (www.swarmnet.de) **
** and SWARMS (www.swarms.de) **
** Shawn is free softwa... | 25,670 |
https://github.com/sreshtha10/OOP_Java/blob/master/Assignment 2/10.java | Github Open Source | Open Source | MIT | 2,020 | OOP_Java | sreshtha10 | Java | Code | 117 | 378 | import java.util.Scanner;
class Passenger{
public static void main(String args[]){
Scanner scanner = new Scanner(System.in);
System.out.println("Enter the total number of seats in the bus");
int n = scanner.nextInt();
String seats[][] = new String[n][2];
int status[] = new i... | 37,730 |
https://github.com/AaronNGray/grobid/blob/master/grobid-core/src/test/java/org/grobid/core/sax/PDFALTOSaxHandlerTest.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | grobid | AaronNGray | Java | Code | 289 | 1,699 | package org.grobid.core.sax;
import org.grobid.core.document.Document;
import org.grobid.core.document.DocumentSource;
import org.grobid.core.layout.GraphicObject;
import org.grobid.core.layout.LayoutToken;
import org.junit.Before;
import org.junit.Test;
import javax.xml.parsers.SAXParser;
import javax.xml.parsers.SA... | 21,475 |
https://github.com/pedroida/casanazare/blob/master/project/app/Notifications/PasswordReset.php | Github Open Source | Open Source | MIT | null | casanazare | pedroida | PHP | Code | 50 | 194 | <?php
namespace App\Notifications;
use Illuminate\Bus\Queueable;
use Illuminate\Notifications\Messages\MailMessage;
use Illuminate\Auth\Notifications\ResetPassword as ResetPasswordNotification;
use Illuminate\Contracts\Queue\ShouldQueue;
class PasswordReset extends ResetPasswordNotification implements ShouldQueue
{
... | 34,235 |
https://github.com/aire-ux/aire-components/blob/master/aire-json-mapper/src/main/java/com/aire/ux/condensation/mappings/ReflectiveTypeInstantiator.java | Github Open Source | Open Source | MIT | 2,022 | aire-components | aire-ux | Java | Code | 77 | 322 | package com.aire.ux.condensation.mappings;
import com.aire.ux.condensation.TypeInstantiator;
import io.sunshower.arcus.reflect.Reflect;
import io.sunshower.lang.tuple.Pair;
import java.util.HashMap;
import java.util.Map;
import java.util.Optional;
import java.util.function.Supplier;
public class ReflectiveTypeInstant... | 44,116 |
https://github.com/aalishov/SoftUni/blob/master/04-CSharp-OOP-February-2020/Exercise-10-InterfacesAndAbstraction/P05-BirthdayCelebrations/Program.cs | Github Open Source | Open Source | MIT | 2,021 | SoftUni | aalishov | C# | Code | 103 | 349 | using System;
using System.Collections.Generic;
using System.Linq;
namespace P05_BirthdayCelebrations
{
public class Program
{
public static void Main(string[] args)
{
List<IBirthable> inhabitants = new List<IBirthable>();
while (true)
{
strin... | 1,523 |
https://github.com/par-mais-tecnologia/par-ui-material/blob/master/src/GoalSummary/index.js | Github Open Source | Open Source | MIT | 2,018 | par-ui-material | par-mais-tecnologia | JavaScript | Code | 6 | 12 | export { default } from './GoalSummary'
| 18,753 |
https://github.com/sarang-apps/darshan_browser/blob/master/ash/app_list/views/app_list_view.h | Github Open Source | Open Source | BSD-3-Clause-No-Nuclear-License-2014, BSD-3-Clause | null | darshan_browser | sarang-apps | C | Code | 2,649 | 6,367 | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef ASH_APP_LIST_VIEWS_APP_LIST_VIEW_H_
#define ASH_APP_LIST_VIEWS_APP_LIST_VIEW_H_
#include <memory>
#include <string>
#include <vector>
#inclu... | 661 |
https://github.com/hampus4git/notes/blob/master/src/main/java/com/example/documentApp/DocumentApplication.java | Github Open Source | Open Source | Apache-2.0 | null | notes | hampus4git | Java | Code | 291 | 1,437 | package com.example.documentApp;
import com.example.documentApp.auth.ExampleAuthenticator;
import com.example.documentApp.auth.ExampleAuthorizor;
import com.example.documentApp.core.User;
import com.example.documentApp.dao.UserDAO;
import com.example.documentApp.dao.NoteDAO;
import com.example.documentApp.resources.Us... | 25,035 |
https://github.com/canadaduane/snowpack/blob/master/plugins/plugin-svelte/test/mocked.test.js | Github Open Source | Open Source | MIT | null | snowpack | canadaduane | JavaScript | Code | 174 | 529 | const path = require('path');
const mockCompiler = jest.fn().mockImplementation((code) => ({js: {code}}));
const mockPreprocessor = jest.fn().mockImplementation((code) => code);
jest.mock('svelte/compiler', () => ({compile: mockCompiler, preprocess: mockPreprocessor})); // important: mock before import
const plugin =... | 8,448 |
https://github.com/krukru/CodeFight/blob/master/src/kru/codefight/visualizer/label/SimpleLabelVisualizer.java | Github Open Source | Open Source | MIT | 2,016 | CodeFight | krukru | Java | Code | 218 | 933 | package kru.codefight.visualizer.label;
import kru.codefight.fighter.Fighter;
import kru.codefight.fighter.FighterColor;
import kru.codefight.fighter.Stance;
import kru.codefight.fighter.attacks.AbstractAttack;
import kru.codefight.visualizer.AbstractFightVisualizer;
public class SimpleLabelVisualizer extends Abstrac... | 23,205 |
https://github.com/jrusbatch/compilify/blob/master/LanguageServices/Document.cs | Github Open Source | Open Source | MIT | 2,021 | compilify | jrusbatch | C# | Code | 55 | 142 | using System.Diagnostics;
using System.Runtime.Serialization;
namespace Compilify
{
[DebuggerDisplay("{Name}, {Text}")]
public class Document
{
public Document(string name, string text)
{
Name = name;
Text = text;
}
[DataMember(Order = 1)]
pu... | 3,051 |
https://github.com/carlosduarteroa/smap/blob/master/android/AndroidSensorReader/src/edu/berkeley/eecs/cfc_tracker/CommuteTrackerService.java | Github Open Source | Open Source | BSD-2-Clause | 2,021 | smap | carlosduarteroa | Java | Code | 833 | 2,558 | package edu.berkeley.eecs.cfc_tracker;
import java.io.File;
import java.util.Properties;
import android.app.Service;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.hardware.Sensor;
import android.hardware.Sen... | 9,527 |
https://github.com/OutlawPlz/futureberry.com/blob/master/deploy.php | Github Open Source | Open Source | MIT | null | futureberry.com | OutlawPlz | PHP | Code | 115 | 391 | <?php
namespace Deployer;
require 'recipe/laravel.php';
// Project name
set('application', 'FUTUREBERRY');
// Project repository
set('repository', 'git@github.com:OutlawPlz/futureberry.com.git');
// [Optional] Allocate tty for git clone. Default value is false.
set('git_tty', true);
// Deploy to stage server by de... | 18,309 |
https://github.com/Weber-H2O2/eigen_service/blob/master/src/log.ts | Github Open Source | Open Source | Apache-2.0 | 2,021 | eigen_service | Weber-H2O2 | TypeScript | Code | 68 | 171 | // log.ts
/**
* The log utils
*
* @module log
*/
import * as path from "path";
import * as log4js from "log4js";
const configure = function () {
log4js.configure(path.join(__dirname, "log4js.json"));
};
const logger = function (name) {
const dateFileLog = log4js.getLogger(name);
dateFileLog.level = "debug"... | 7,225 |
https://github.com/RicardoCruz6395/SistemaCalificaciones/blob/master/application/views/admin/alumnos.php | Github Open Source | Open Source | MIT | null | SistemaCalificaciones | RicardoCruz6395 | PHP | Code | 239 | 1,062 | <div id="base">
<div id="content">
<section>
<div class="section-body">
<div class="row">
<div class="col-md-12">
<div class="card card-bordered style-primary">
<div class="card-head">
... | 42,512 |
https://github.com/iwebhub/nightsparrow/blob/master/des/css/sass/main.scss | Github Open Source | Open Source | Apache-2.0 | null | nightsparrow | iwebhub | SCSS | Code | 12 | 55 | @import "modules/colors";
@import "modules/layout";
@import "partials/global";
@import "partials/reset";
@import "partials/typography";
@import "partials/buttons"; | 44,484 |
https://github.com/sunpietro/LeagueManager/blob/master/src/components/teams/team.js | Github Open Source | Open Source | MIT | 2,021 | LeagueManager | sunpietro | JavaScript | Code | 102 | 363 | import React, { Component } from 'react';
import Header from '../page-elements/header';
import Nav from '../page-elements/nav';
import WPAPI from '../../tools/wpapi';
class Team extends Component {
constructor() {
super();
this.state = {
id: 0,
name: '',
};
}
... | 33,184 |
https://github.com/marcoadkins/simple-dashboard/blob/master/Gruntfile.js | Github Open Source | Open Source | MIT | 2,021 | simple-dashboard | marcoadkins | JavaScript | Code | 476 | 1,975 | /*global module, require, process*/
/*eslint prefer-arrow-callback: 0, no-invalid-this: 0, object-curly-spacing: 0*/
var webpack = require("webpack");
var _ = require("lodash");
var HtmlPlugin = require("html-webpack-plugin");
var ExtractTextPlugin = require("extract-text-webpack-plugin");
var CompressionPlugin = requi... | 11,704 |
https://github.com/camden/camdenbickel.com/blob/master/src/components/GenericItem.js | Github Open Source | Open Source | MIT | 2,021 | camdenbickel.com | camden | JavaScript | Code | 73 | 253 | import React from 'react';
import styled from 'react-emotion';
import styles from 'config/styles';
import FancyLink from 'components/shared/FancyLink';
const Wrapper = styled.div`
margin-bottom: 2.6rem;
`;
const Subtitle = styled.div`
font-size: ${styles.text.small};
margin-top: 4px;
color: ${styles.colors.su... | 34,228 |
https://github.com/sunmughan/corona-stats/blob/master/resources/sass/bootstrap/_bootstrap.scss | Github Open Source | Open Source | MIT | null | corona-stats | sunmughan | SCSS | Code | 152 | 573 | /*!
* @copyright Copyright (c) 2020 TrulyMadly Matchmakers Pvt. Ltd. (https://github.com/thetrulymadly)
*
* @author Deekshant Joshi (deekshant.joshi@gmail.com)
* @since 20 April 2020
*/
// Variables
@import 'variables';
// Bootstrap
@import '~bootstrap/scss/bootstrap';
// Overrides
@import "navbar";
@import... | 17,749 |
https://github.com/matt8754/runcible/blob/master/lib/runcible/base.rb | Github Open Source | Open Source | MIT | 2,018 | runcible | matt8754 | Ruby | Code | 571 | 2,216 | require 'rest_client'
require 'oauth'
require 'json'
require 'thread'
module Runcible
class Base
attr_accessor :logs
def initialize(config = {})
@mutex = Mutex.new
@config = config
@logs = []
end
def lazy_config=(a_block)
@mutex.synchronize { @lazy_config = a_block }
end... | 14,543 |
https://github.com/mlexample/gcspytorchimagenet/blob/master/test_gcsdataset.py | Github Open Source | Open Source | Apache-2.0 | null | gcspytorchimagenet | mlexample | Python | Code | 203 | 1,123 | import os
import unittest
import tempfile
import json
import gcsdataset
# A minimally small valid jpeg file
img = b'\xff\xd8\xff\xdb\x00C\x00\x03\x02\x02\x02\x02\x02\x03\x02\x02\x02\x03\x03\x03\x03\x04\x06\x04\x04\x04\x04\x04\x08\x06\x06\x05\x06\t\x08\n\n\t\x08\t\t\n\x0c\x0f\x0c\n\x0b\x0e\x0b\t\t\r\x11\r\x0e\x0f\x10... | 37,199 |
https://github.com/servirtium/servirtium-rust/blob/master/servirtium/src/error.rs | Github Open Source | Open Source | MIT | 2,020 | servirtium-rust | servirtium | Rust | Code | 219 | 688 | use hyper::http;
use std::{fmt::Display, io, sync};
#[derive(Debug)]
pub enum Error {
IoError(io::Error),
PoisonedLock,
InvalidDomainName,
InvalidStatusCode,
NotConfigured,
InvalidHeaderName,
InvalidHeaderValue,
InvalidBody,
HyperError(hyper::Error),
ParseUriError,
HttpError... | 31,065 |
https://github.com/growthdev-repo/estruturas-de-dados/blob/master/tests/Stack/StackTest.php | Github Open Source | Open Source | MIT | 2,022 | estruturas-de-dados | growthdev-repo | PHP | Code | 196 | 853 | <?php
declare(strict_types=1);
namespace Growthdev\DataStructure\Tests\Stack;
use Growthdev\DataStructure\Stack\Stack;
use Growthdev\DataStructure\Stack\ValueObject;
use PHPUnit\Framework\TestCase;
final class StackTest extends TestCase
{
public function testCanBePeek(): void
{
$stack = new Stack();... | 11,987 |
https://github.com/DonMorozov/cement/blob/master/Common/YamlParsers/BuildYamlParser.cs | Github Open Source | Open Source | MIT | 2,022 | cement | DonMorozov | C# | Code | 463 | 1,498 | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
namespace Common.YamlParsers
{
public class BuildYamlParser : ConfigurationYamlParser
{
public BuildYamlParser(FileInfo modulePath) : base(modulePath)
{
}
public BuildYamlParser(string moduleNa... | 22,337 |
https://github.com/onandon-study/flutter_ecommerce_template/blob/master/lib/screens/settings/notifications_settings_page.dart | Github Open Source | Open Source | MIT | 2,022 | flutter_ecommerce_template | onandon-study | Dart | Code | 205 | 738 | import 'dart:io';
import 'package:ecommerce_int2/app_properties.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
class NotificationSettingsPage extends StatefulWidget {
@override
_NotificationSettingsPageState createState() =>
_NotificationSettingsPageState();
}
class... | 46,424 |
https://github.com/Mahadi74/candle3/blob/master/resources/views/profile/books.blade.php | Github Open Source | Open Source | MIT | 2,021 | candle3 | Mahadi74 | PHP | Code | 106 | 604 | @extends('profile.master')
@section('content')
<div class="container">
<ol class="breadcrumb">
<li><a href="{{url('/home')}}">Home</a></li>
<li><a href="{{url('/profile')}}/{{Auth::user()->slug}}">Profile</a></li>
<li><a href="{{url('/book')}}">Books</a></li>
<li>{{$book[0]->book_... | 19,837 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.