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/brychanmd/laracasts-tut/blob/master/resources/views/components/flash.blade.php | Github Open Source | Open Source | MIT | null | laracasts-tut | brychanmd | PHP | Code | 34 | 108 | @if (session()->has( 'success' ))
<div
x-data="{ show: true }"
x-init="setTimeout( () => show = false, 4000 )"
x-show="show"
class="fixed bg-blue-500 text-white py-2 px-4 bottom-3 right-3 text-sm rounded-lg">
<p>{{ session( 'success' ) }}</p>
</div>
@endif | 47,211 |
https://github.com/hnwangkg-ezio/WSLCD1in8/blob/master/LCD_Driver.h | Github Open Source | Open Source | MIT | 2,018 | WSLCD1in8 | hnwangkg-ezio | C++ | Code | 93 | 310 | #ifndef _LCD_DRIVER_H_
#define _LCD_DRIVER_H_
#define COLOR unsigned short
#define POINT int
#define LENGTH int
#define LCD_WIDTH 160 //LCD width
#define LCD_HEIGHT 128 //LCD height
class LCD_DRIVER{
public:
void LCD_Reset(void);
void LCD_WriteReg(unsigned char Reg);
void LCD_WriteData_8Bit(... | 52,936 |
https://github.com/iam-Legend/Project-Assembly/blob/master/Source/FactoryGame/FGNetworkLibrary.h | Github Open Source | Open Source | MIT | null | Project-Assembly | iam-Legend | C | Code | 1,322 | 3,520 | #pragma once
#include "Array.h"
#include "UnrealString.h"
#include "Kismet/BlueprintFunctionLibrary.h"
#include "UObject/Class.h"
#include "FGLocalPlayer.h"
#include "NAT.h"
#include "FindSessionsCallbackProxy.h"
#include "OnlineSessionSettings.h"
#include "FGOnlineSessionSettings.h"
#include "FGOnlineSessionClient.h"... | 3,138 |
https://github.com/perusworld/WebScraper.NET/blob/master/WebScraper.NET/Web/HtmlElementDataExtractor.cs | Github Open Source | Open Source | MIT | 2,022 | WebScraper.NET | perusworld | C# | Code | 541 | 1,665 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Text.RegularExpressions;
namespace WebScraper.Web
{
public interface HtmlElementDataExtractor<V> : DataExtractor<HtmlElement, V>
{
}
public abstract class AbstractHtmlElementD... | 42,529 |
https://github.com/hughsk/atom-shell/blob/master/spec/static/main.js | Github Open Source | Open Source | MIT | 2,014 | atom-shell | hughsk | JavaScript | Code | 321 | 1,110 | var app = require('app');
var ipc = require('ipc');
var dialog = require('dialog');
var BrowserWindow = require('browser-window');
var Menu = require('menu');
var window = null;
app.commandLine.appendSwitch('js-flags', '--expose_gc');
ipc.on('message', function(event, arg) {
event.sender.send('message', arg);
});
... | 29,255 |
https://github.com/Terasology/GooeysQuest/blob/master/src/main/java/org/terasology/gooeysQuests/quests/dwarfhalls/DwarfHallsQuestComponent.java | Github Open Source | Open Source | Apache-2.0 | 2,018 | GooeysQuest | Terasology | Java | Code | 40 | 139 | // Copyright 2021 The Terasology Foundation
// SPDX-License-Identifier: Apache-2.0
package org.terasology.gooeysQuests.quests.dwarfhalls;
import org.terasology.gestalt.entitysystem.component.Component;
/**
* Owned by the entity that represents a dwarf halls quest.
*/
public class DwarfHallsQuestComponent implements... | 28,897 |
https://github.com/EvelinSzabados/Codecool-Shop/blob/master/src/main/java/com/codecool/shop/config/Initializer.java | Github Open Source | Open Source | Apache-2.0 | null | Codecool-Shop | EvelinSzabados | Java | Code | 58 | 311 | package com.codecool.shop.config;
import com.codecool.shop.Connection;
import com.codecool.shop.dao.ProductCategoryDao;
import com.codecool.shop.dao.ProductDao;
import com.codecool.shop.dao.SupplierDao;
import com.codecool.shop.dao.implementation.ProductCategoryDaoMem;
import com.codecool.shop.dao.implementation.Produ... | 16,055 |
https://github.com/luxteam/RadeonProRenderMayaPlugin/blob/master/FireRender.Maya.Src/FireRenderSurfaceOverride.cpp | Github Open Source | Open Source | Apache-2.0 | null | RadeonProRenderMayaPlugin | luxteam | C++ | Code | 1,004 | 3,366 | /**********************************************************************
Copyright 2020 Advanced Micro Devices, 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/L... | 23,047 |
https://github.com/TransparentHealth/smh_app/blob/master/smh_app/utils.py | Github Open Source | Open Source | Apache-2.0 | 2,020 | smh_app | TransparentHealth | Python | Code | 116 | 366 | from decimal import Decimal
import requests
from django.conf import settings
TRUE_LIST = [1, "1", "true", "True", "TRUE", "YES", "Yes", "yes", True]
FALSE_LIST = [0, "0", "False", "FALSE", "false", "NO", "No", "no", False]
def bool_env(env_val):
""" check for boolean values """
if env_val:
if env_v... | 19,685 |
https://github.com/Zeitgold/react-number-format-input/blob/master/src/index.js | Github Open Source | Open Source | MIT | null | react-number-format-input | Zeitgold | JavaScript | Code | 280 | 992 | import React, {Component, PropTypes} from 'react';
import {getSelection, setSelection} from './domElementSelection';
import abstractNumberInput from './abstract-number-format-input/index';
export default class NumberFormatInput extends Component {
componentDidUpdate() {
if (this.nextSelection) setSelection(this.... | 10,003 |
https://github.com/cdli-gh/mtaac_cdli_ur3_corpus/blob/master/ur3_corpus_data/annotated/morph/P454/P454025.conll | Github Open Source | Open Source | CC0-1.0, LicenseRef-scancode-public-domain | 2,022 | mtaac_cdli_ur3_corpus | cdli-gh | null | Spoken | 706 | 2,700 | #new_text=P454025
FORM SEGM XPOSTAG XPOSTAG POS
5(disz) 5(disz)[one] NU NU D
sila3 sila[unit] N N D
kasz kasz[beer] N N D
5(disz) 5(disz)[one] NU NU D
sila3 sila[unit] N N D
ninda ninda[bread] N N D
hu-la-al Hulal[1][-ra] PN PN D
lu2 lu[person] N N D
kin-gi4-a kiggia[messenger] N N D
lugal lugal[king] N N D
5(disz) 5(d... | 46,061 |
https://github.com/j-robin-hunter/RTech-Neo/blob/master/Magento_Checkout/web/css/source/module/checkout/_authentication.less | Github Open Source | Open Source | MIT | null | RTech-Neo | j-robin-hunter | Less | Code | 500 | 2,081 | // /**
// * Copyright © Magento, Inc. All rights reserved.
// * See COPYING.txt for license details.
// */
//
// Variables
// _____________________________________________
@block-auth__dropdown__padding: @indent__m;
@block-auth__dropdown__background-color: @color-white;
@block-auth__or-label__size: 36px;
@block-... | 10,000 |
https://github.com/nguillaumin/nabaztag-server/blob/master/net.violet.platform/src/main/java/net/violet/platform/api/actions/dico/GetByKey.java | Github Open Source | Open Source | MIT | 2,018 | nabaztag-server | nguillaumin | Java | Code | 166 | 726 | package net.violet.platform.api.actions.dico;
import java.util.ArrayList;
import java.util.LinkedList;
import java.util.List;
import net.violet.platform.api.actions.AbstractAction;
import net.violet.platform.api.actions.ActionParam;
import net.violet.platform.api.callers.APICaller;
import net.violet.platform.api.exce... | 15,580 |
https://github.com/naveenchandra91/serenity-core/blob/master/serenity-core/src/main/java/serenitycore/net/thucydides/core/steps/DryRunMethodRunner.java | Github Open Source | Open Source | Apache-2.0 | null | serenity-core | naveenchandra91 | Java | Code | 84 | 298 | package serenitycore.net.thucydides.core.steps;
import net.bytebuddy.implementation.bind.annotation.RuntimeType;
import serenitymodel.net.serenitybdd.core.collect.NewList;
import java.lang.reflect.Method;
import java.util.List;
class DryRunMethodRunner extends BaseMethodRunner implements MethodRunner {
priv... | 10,211 |
https://github.com/mzl13/Lithium/blob/master/Src/Particle/AMReX_NeighborList.H | Github Open Source | Open Source | MIT, BSD-2-Clause | 2,022 | Lithium | mzl13 | C++ | Code | 781 | 3,140 | #ifndef NEIGHBOR_LIST_H_
#define NEIGHBOR_LIST_H_
#include <AMReX_Particles.H>
#include <AMReX_CudaContainers.H>
#include <thrust/reduce.h>
#include "Constants.H"
namespace amrex
{
template <class ParticleType>
struct Neighbors
{
struct iterator
{
AMREX_GPU_HOST_DEVICE
iterator (int sta... | 47,431 |
https://github.com/AlterEgoIV/Heat-Source/blob/master/Ellipse.pde | Github Open Source | Open Source | MIT | 2,017 | Heat-Source | AlterEgoIV | null | Spoken | 40 | 114 | class Ellipse extends GameObject
{
float range;
Ellipse(PVector position, float w, float h, color c)
{
super(position, w, h, c);
angle = 0.0f;
range = 0.0f;
}
void update()
{
}
void render()
{
ellipse(position.x, position.y, w, h);
}
}
| 32,470 |
https://github.com/finn-harman/TISA/blob/master/migrations/2_deploy_verifier.js | Github Open Source | Open Source | MIT | 2,020 | TISA | finn-harman | JavaScript | Code | 72 | 237 | var Verifier = artifacts.require("./Verifier.sol");
var Regulator = artifacts.require("./Regulator.sol");
var ISAFactory = artifacts.require("./ISAFactory.sol");
module.exports = async (deployer, network, accounts) => {
console.log('Deploying Verifier, Regulator and ISAFactory on ganache')
await deployer.depl... | 11,566 |
https://github.com/karcherm/slimserver/blob/master/Slim/Networking/Async/Socket/HTTP.pm | Github Open Source | Open Source | BSD-3-Clause | 2,019 | slimserver | karcherm | Perl | Code | 321 | 924 | package Slim::Networking::Async::Socket::HTTP;
# $Id$
# Logitech Media Server Copyright 2003-2011 Logitech.
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License,
# version 2.
# This class contains the socket we use for async HTTP communication... | 42,788 |
https://github.com/shyamalschandra/CNTK/blob/master/Source/Math/CPUMatrixHalf.cpp | Github Open Source | Open Source | MIT | 2,019 | CNTK | shyamalschandra | C++ | Code | 622 | 2,111 | //
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.md file in the project root for full license information.
//
#include "stdafx.h"
#include "CPUMatrixImpl.h"
namespace Microsoft { namespace MSR { namespace CNTK {
// General conversion function with no performance optim... | 53,338 |
https://github.com/leesander1/webauthn-simple-app/blob/master/classes/GetOptions.js | Github Open Source | Open Source | MIT | 2,018 | webauthn-simple-app | leesander1 | JavaScript | Code | 146 | 622 | import {
checkCredentialDescriptorList,
checkFormat,
checkOptionalFormat,
checkOptionalType,
checkUserVerification
} from "../lib/input-validation.js";
import {
coerceToArrayBuffer,
coerceToBase64Url
} from "../lib/utils.js";
import { ServerResponse } from "./ServerResponse.js";
/**
* Th... | 3,706 |
https://github.com/kuveytturk-finevr/SanalBanka/blob/master/Assets/MixedRealityToolkit.Services/InputSimulation/SimulatedHandPose.cs | Github Open Source | Open Source | MIT | 2,022 | SanalBanka | kuveytturk-finevr | C# | Code | 1,563 | 6,997 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.
using Microsoft.MixedReality.Toolkit.Utilities;
using UnityEngine;
using System;
namespace Microsoft.MixedReality.Toolkit.Input
{
public class SimulatedHandPose... | 30,708 |
https://github.com/Aleks130699/majordomo/blob/master/modules/saverestore/xml_parser.php | Github Open Source | Open Source | MIT | 2,022 | majordomo | Aleks130699 | PHP | Code | 1,072 | 4,316 | <?php
/*
* xml_parser.php
*
* @(#) $Header: /home/mlemos/cvsroot/xmlparser/xml_parser.php,v 1.19 2006/11/22 01:25:05 mlemos Exp $
*
*/
/*
* Parser error numbers:
*
* 1 - Could not create the XML parser
* 2 - Could not parse data
* 3 - Could not read from input stream
*
*/
$xml_parser_handlers = array();
... | 46,786 |
https://github.com/ratson/deno_watchman/blob/master/bser/mod.ts | Github Open Source | Open Source | MIT | null | deno_watchman | ratson | TypeScript | Code | 1,901 | 5,334 | /* Copyright 2015-present Facebook, Inc.
* Licensed under the Apache License, Version 2.0 */
// deno-lint-ignore-file
import { Buffer } from "https://deno.land/std@0.108.0/node/buffer.ts";
import { EventEmitter } from "https://deno.land/std@0.108.0/node/events.ts";
import os from "https://deno.land/std@0.108.0/node/os... | 2,996 |
https://github.com/rabidaudio/generator-react-on-rails/blob/master/app/templates/api/lib/_deploy_defaults.rb | Github Open Source | Open Source | MIT | 2,015 | generator-react-on-rails | rabidaudio | Ruby | Code | 99 | 653 | task :set_defaults do
set_default :app_rails, "#{app}-#{app_part}"
set_default :keep_releases, 5
set_default :forward_agent, true
set_default :repository, '<%= repo || 'user@domain.com:your/repo.git' %>'
set_default :branch, 'master'
set_default :user, 'depl... | 32,119 |
https://github.com/CS2103-AY1819S1-W16-1/main/blob/master/src/main/java/seedu/address/ui/CalendarPanel.java | Github Open Source | Open Source | MIT | 2,018 | main | CS2103-AY1819S1-W16-1 | Java | Code | 319 | 1,179 | package seedu.address.ui;
import java.time.LocalDateTime;
import java.time.Period;
import java.util.Locale;
import java.util.logging.Logger;
import com.google.common.eventbus.Subscribe;
import javafx.event.Event;
import javafx.event.EventHandler;
import javafx.fxml.FXML;
import javafx.scene.control.Button;
import ja... | 44,736 |
https://github.com/ThariniRP/reptar/blob/master/bin/reptar.js | Github Open Source | Open Source | MIT | 2,022 | reptar | ThariniRP | JavaScript | Code | 12 | 47 | #!/usr/bin/env node
const path = require('path');
require('./index')({
libPath: path.join(__dirname, '..', 'lib-dist'),
});
| 51,062 |
https://github.com/Voutc/TL_Offers_v2.0/blob/master/app/src/main/java/com/example/kamran/logingreentheme/controlpanelshop.java | Github Open Source | Open Source | MIT | 2,017 | TL_Offers_v2.0 | Voutc | Java | Code | 228 | 992 | package com.example.kamran.logingreentheme;
import android.app.AlertDialog;
import android.app.Fragment;
import android.content.DialogInterface;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.text.TextUtils;
import android.view.View;
import andr... | 11,802 |
https://github.com/chia7712/astraea/blob/master/app/src/main/java/org/astraea/metrics/kafka/BrokerTopicMetricsResult.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | astraea | chia7712 | Java | Code | 70 | 257 | package org.astraea.metrics.kafka;
import java.util.Map;
import java.util.Objects;
import org.astraea.metrics.jmx.BeanObject;
public class BrokerTopicMetricsResult implements HasCount, HasEventType, HasRate {
private final BeanObject beanObject;
public BrokerTopicMetricsResult(BeanObject beanObject) {
this.... | 34,925 |
https://github.com/donihmrs/toko-pulsa/blob/master/admin/application/views/media/edit.php | Github Open Source | Open Source | MIT | null | toko-pulsa | donihmrs | PHP | Code | 157 | 578 | <div class="row">
<div class="col-md-12">
<div class="card">
<div class="card-header">
<h5 class="card-title">Add Account</h5>
</div>
<!-- /.card-header -->
<div class="card-body">
<div class="row">
<div class="col-6">
<form action=... | 19,070 |
https://github.com/R35007/Mock-Server/blob/master/src/cli/argv.ts | Github Open Source | Open Source | MIT | 2,021 | Mock-Server | R35007 | TypeScript | Code | 285 | 768 | import * as yargs from 'yargs';
interface Options {
[x: string]: unknown;
config: string;
id: string;
port: number;
host: string;
db: string;
middleware: string;
injectors: string;
store: string;
rewriters: string;
base: string;
staticDir: string;
snapshots: string;
readOnly: boolean;
noC... | 8,523 |
https://github.com/jacksunsea/libsocket/blob/master/examples++/echo_client.cpp | Github Open Source | Open Source | BSD-2-Clause | 2,012 | libsocket | jacksunsea | C++ | Code | 66 | 263 | # include <iostream>
# include <unistd.h>
# include "../headers++/inetclientdgram.hpp"
int main(void)
{
using std::string;
string host = "localhost";
string port = "1234";
char buf[10];
buf[9] = 0;
libsocket::inet_dgram_client sock(IPv4);
try {
std::cout << sock.gethost();
} catch (libsocket::inet_excep... | 28,847 |
https://github.com/TheAppGuys/winzigsql/blob/master/src/main/java/de/theappguys/winzigsql/WinzigDbProvider.java | Github Open Source | Open Source | BSD-3-Clause | 2,013 | winzigsql | TheAppGuys | Java | Code | 724 | 2,086 | package de.theappguys.winzigsql;
import java.util.List;
import android.content.ContentProvider;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteOpenHelper;
import android.database.sqlite.SQLiteQueryBuilder;
import android.net.U... | 31,663 |
https://github.com/lienketso/f5c/blob/master/application/controllers/admin/Page.php | Github Open Source | Open Source | MIT | null | f5c | lienketso | PHP | Code | 453 | 2,349 | <?php
Class Page extends MY_Controller{
function __construct(){
parent::__construct();
$this->load->model('page_model');
}
function index(){
$this->load->library('pagination');
$input = array();
$input['where'] = array();
$total_row = $this->page_model->get_total($input);
$this->data['total_row'] = $to... | 24,703 |
https://github.com/m-malyarenko/ahaHLS/blob/master/test/ll_files/blur_lb.cpp | Github Open Source | Open Source | MIT | 2,022 | ahaHLS | m-malyarenko | C++ | Code | 123 | 281 | #include "ram.h"
#define A_LEN 8
#define B_LEN (A_LEN - 2);
#define a 0
#define b 8
void blur_lb(RAM<int, 16>* ram) { //int* __restrict a, int* __restrict b) {
int a_near = ram->read(a + 0); //a[0];
int a_mid = ram->read(a + 1); //a[1];
int a_far;
// This gets 4 as a value for b[0] instead of 3 = 0 + 1 + 2?... | 1,467 |
https://github.com/ericgfx/codecademy/blob/master/ArmandoPerez/app.js | Github Open Source | Open Source | MIT | 2,023 | codecademy | ericgfx | JavaScript | Code | 83 | 450 | /*var myHide = function(cat) {
myArray = [".thumb .consumer",".thumb .mobile",".thumb .commerce",".thumb .enterprise"];
category=cat;
for (i=0; i<4; i++) {
if (category != myArray[i]) {
$(myArray[i]).hide(500);
} else {
$(myArray[i]).show(500);
}
}
}; */
var main = function() {
$('.nav li').click(fun... | 3,849 |
https://github.com/wahidun567/Final-Task/blob/master/resources/views/admin/pembayaran/create.blade.php | Github Open Source | Open Source | MIT | null | Final-Task | wahidun567 | PHP | Code | 75 | 363 | @extends('admin.default')
@section('title', 'Tambah Kelas')
@section('content')
<!-- Create Modal -->
<div class="container">
<x-alert></x-alert>
<div class="card">
<form method="post" action="{{ route('kelas.store') }}">
@csrf
<div class="card-body">
<div class="form-group">... | 34,478 |
https://github.com/siddharthasharma79/falabella-solution/blob/master/app/Sidd/lib/Remainder.php | Github Open Source | Open Source | BSD-3-Clause | null | falabella-solution | siddharthasharma79 | PHP | Code | 49 | 164 | <?php
/*
* @Author: siddhartha.sharma siddharthasharma79@gmail.com
* @Date: 2019-08-23 03:00:17
* @Last Modified by: siddhartha.sharma
* @Last Modified time: 2019-08-23 12:41:07
*/
namespace Sidd\lib;
class Remainder {
public function getRemainder($number, $remainderByNumber) {
return $number % $remainde... | 15,578 |
https://github.com/Ellzord/JALSE-Pong/blob/master/src/main/java/pong/entities/ScoreBoard.java | Github Open Source | Open Source | Apache-2.0 | 2,016 | JALSE-Pong | Ellzord | Java | Code | 67 | 275 | package pong.entities;
import java.util.UUID;
import jalse.entities.Entity;
import jalse.entities.annotations.GetAttribute;
import jalse.entities.annotations.SetAttribute;
public interface ScoreBoard extends Entity {
UUID ID = UUID.randomUUID();
@GetAttribute
UUID getLastWinner();
@GetAttribute
... | 53,417 |
https://github.com/Light567/voa/blob/master/voa-android/app/src/main/java/Acitivity/NewTaskActivity.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | voa | Light567 | Java | Code | 548 | 2,820 | package Acitivity;
import android.app.AlertDialog;
import android.app.DatePickerDialog;
import android.content.DialogInterface;
import android.content.Intent;
import android.os.Bundle;
import android.text.InputType;
import android.view.View;
import android.widget.Button;
import android.widget.CheckBox;
import android.... | 42,544 |
https://github.com/harshef/test22/blob/master/SOMPY-master/sompy/som_iris_spherical62.py | Github Open Source | Open Source | Apache-2.0 | 2,017 | test22 | harshef | Python | Code | 699 | 2,904 | from sklearn.metrics.cluster import v_measure_score
import numpy as np
from numpy import genfromtxt
from sklearn.cluster import KMeans
from sklearn.metrics import silhouette_score
from sklearn.metrics.cluster.supervised import adjusted_rand_score
from sklearn.preprocessing import normalize
#from plotter import plot_max... | 29,573 |
https://github.com/keshav-bajaj/projects/blob/master/findthecat/style.scss | Github Open Source | Open Source | MIT | 2,021 | projects | keshav-bajaj | SCSS | Code | 133 | 542 | html{
font-family: 'Sansita Swashed', cursive !important;
overflow: hidden;
background-color: black;
}
body{
margin:0;
color: white !important;
}
#timer{
text-align: center;
pointer-events: none;
}
#score{
text-align: center;
}
#cat{
opacity: 0;
position: absolute;
}
.appear{
... | 49,191 |
https://github.com/lewishenson/FluentMetacritic/blob/master/FluentMetacritic.UnitTests/Scraping/TelevisionShowSearchResultScraperTests.cs | Github Open Source | Open Source | MIT | 2,018 | FluentMetacritic | lewishenson | C# | Code | 144 | 565 | using FluentAssertions;
using FluentMetacritic.Domain;
using FluentMetacritic.Scraping;
using FluentMetacritic.UnitTests.Scraping.Builders;
using System;
using Xunit;
namespace FluentMetacritic.UnitTests.Scraping
{
[Trait("Category", "UnitTest")]
public class TelevisionShowSearchResultScraperTests
{
... | 44,252 |
https://github.com/Wendlereis/yoga/blob/master/packages/yoga/src/Theme/Provider/web/ThemeProvider.jsx | Github Open Source | Open Source | MIT | 2,022 | yoga | Wendlereis | null | Spoken | 60 | 123 | import React from 'react';
import { node } from 'prop-types';
import Provider from '../Provider';
import GlobalStyle from './GlobalStyle';
/** This component provides a theme to all React components underneath itself via the context API. */
const ThemeProvider = ({ children, ...rest }) => (
<Provider {...rest}>
... | 37,330 |
https://github.com/ONSdigital/eq-questionnaire-runner/blob/master/tests/integration/questionnaire/test_questionnaire_last_viewed_guidance.py | Github Open Source | Open Source | MIT, LicenseRef-scancode-proprietary-license | 2,023 | eq-questionnaire-runner | ONSdigital | Python | Code | 593 | 3,071 | import random
import string
from tests.integration.integration_test_case import IntegrationTestCase
class TestLastViewedGuidance(IntegrationTestCase):
def __init__(self, *args, **kwargs):
self.response_id = random.choices(string.digits, k=16)
super().__init__(*args, **kwargs)
def test_not_sh... | 1,775 |
https://github.com/Seizzzz/DailyCodes/blob/master/Course 201809/xiti/5/A1.cpp | Github Open Source | Open Source | MIT | null | DailyCodes | Seizzzz | C++ | Code | 30 | 154 | #include <stdio.h>
int main()
{
long long n;
scanf("%lld",&n);
if(n==0)
{
printf("1\n");
return 0;
}
long long a[100],i=0,c=0;
while(n!=0)
{
i=n%2;
a[c]=i;
c++;
n=n/2;
}
c--;
printf("%d\n",c+1);
return 0;
}
| 31,570 |
https://github.com/oterrier/entity-fishing/blob/master/src/main/java/com/scienceminer/nerd/kb/db/PageLinkCountDatabase.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | entity-fishing | oterrier | Java | Code | 480 | 1,911 | package com.scienceminer.nerd.kb.db;
import java.io.*;
import org.apache.hadoop.record.CsvRecordInput;
import com.scienceminer.nerd.kb.model.hadoop.DbLinkLocation;
import com.scienceminer.nerd.kb.model.hadoop.DbLinkLocationList;
import com.scienceminer.nerd.kb.model.hadoop.DbPageLinkCounts;
import com.scienceminer.... | 39,014 |
https://github.com/asutic/ncappzoo/blob/master/apps/benchmarkncs/Makefile | Github Open Source | Open Source | MIT | 2,021 | ncappzoo | asutic | Makefile | Code | 70 | 343 |
.PHONY: all
all: googlenet alexnet squeezenet agenet gendernet
.PHONY: googlenet
googlenet:
@./benchmarkncs.py ../../caffe/GoogLeNet ../../data/images 224 224
.PHONY: alexnet
alexnet:
@./benchmarkncs.py ../../caffe/AlexNet ../../data/images 227 227
.PHONY: squeezenet
squeezenet:
@./benchmarkncs.py ../../caffe/Sq... | 22,736 |
https://github.com/courtneyeh/teku/blob/master/validator/api/src/main/java/tech/pegasys/teku/validator/api/SyncCommitteeDuty.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | teku | courtneyeh | Java | Code | 235 | 648 | /*
* Copyright ConsenSys Software Inc., 2022
*
* 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 agre... | 49,635 |
https://github.com/sellmair/Kompass/blob/master/kompass-android/src/main/java/io/sellmair/kompass/android/utils/requireMainThread.kt | Github Open Source | Open Source | MIT | 2,022 | Kompass | sellmair | Kotlin | Code | 24 | 97 | package io.sellmair.kompass.android.utils
import io.sellmair.kompass.android.WrongThreadException
internal fun requireMainThread() {
if (!isMainThread) {
throw WrongThreadException(
"Required main thread. Found: " +
"${Thread.currentThread().id}: ${Thread.currentThread().na... | 39,465 |
https://github.com/konomu/tab/blob/master/.gitignore | Github Open Source | Open Source | MIT | 2,020 | tab | konomu | Ignore List | Code | 2 | 13 | node_modules/
images/favicon.png
| 6,926 |
https://github.com/gfdac/AudioTK/blob/master/tests/Delay/CMakeLists.txt | Github Open Source | Open Source | BSD-3-Clause | 2,020 | AudioTK | gfdac | CMake | Code | 23 | 198 |
FILE(GLOB
ATK_DELAY_TEST_SRC
*.cpp
)
FILE(GLOB
ATK_DELAY_TEST_HEADERS
*.h*
)
SET(ATK_DELAY_TEST_DEFINITIONS)
SET(ATK_DELAY_TEST_INCLUDE)
SET(ATK_DELAY_TEST_LIBRARIES ATKDelay ATKTools ATKMock ATKCore ${Boost_UNIT_TEST_FRAMEWORK_LIBRARY})
SET(ATK_DELAY_TEST_NAME ATKDelay_test)
SET(ATK_DELAY_TEST_TESTNAME Del... | 12,950 |
https://github.com/serenity-bdd/serenity-core/blob/master/serenity-json-summary-report/src/main/kotlin/net/serenitybdd/reports/json/Formatting.kt | Github Open Source | Open Source | LicenseRef-scancode-warranty-disclaimer, Apache-2.0 | 2,023 | serenity-core | serenity-bdd | Kotlin | Code | 12 | 56 | package net.serenitybdd.reports.json
import org.apache.commons.lang3.StringUtils
class Formatted {
fun asATitle(text:String) = StringUtils.capitalize(text)
} | 8,692 |
https://github.com/selevinia/spring-boot-starter-actuator-tarantool/blob/master/src/main/java/org/springframework/boot/actuate/tarantool/TarantoolReactiveHealthIndicator.java | Github Open Source | Open Source | Apache-2.0 | null | spring-boot-starter-actuator-tarantool | selevinia | Java | Code | 69 | 338 | package org.springframework.boot.actuate.tarantool;
import org.springframework.boot.actuate.health.AbstractReactiveHealthIndicator;
import org.springframework.boot.actuate.health.Health;
import org.springframework.boot.actuate.health.ReactiveHealthIndicator;
import org.springframework.data.tarantool.core.ReactiveTaran... | 9,820 |
https://github.com/scpaes/python-lab/blob/master/try-except/lab-1/exemple/exe.py | Github Open Source | Open Source | MIT | null | python-lab | scpaes | Python | Code | 83 | 263 | def dividir(dividendo, divisor):
if not (isinstance(dividendo, int) and isinstance(divisor, int)):
raise ValueError('O método dedve receber inteiros')
try:
aux = dividendo / divisor
except Exception:
print(f'Não foi possível dividir{dividendo} por {divisor}')
return aux
def test... | 40,911 |
https://github.com/alinelopess/blog-aline/blob/master/src/styles/about.js | Github Open Source | Open Source | MIT | null | blog-aline | alinelopess | JavaScript | Code | 174 | 648 | import styled from 'styled-components';
import media from 'styled-media-query';
export const AboutHeader = styled.h1`
padding: 2rem 3rem 0;
margin: 1rem auto;
line-height: 3.2rem;
font-family: 'Didact Gothic', sans-serif;
font-size: 2.8rem;
font-weight: 600;
color: #654062;
${media.lessThan('large')`
... | 27,923 |
https://github.com/hmrc/cgt-property-disposals-frontend/blob/master/test/uk/gov/hmrc/cgtpropertydisposalsfrontend/controllers/accounts/SubscribedChangeEmailControllerSpec.scala | Github Open Source | Open Source | Apache-2.0 | 2,023 | cgt-property-disposals-frontend | hmrc | Scala | Code | 448 | 1,934 | /*
* Copyright 2023 HM Revenue & Customs
*
* 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 a... | 24,758 |
https://github.com/eliasbuchwald/airswap-protocols/blob/master/source/delegate/contracts/Delegate.sol | Github Open Source | Open Source | Apache-2.0 | 2,021 | airswap-protocols | eliasbuchwald | Solidity | Code | 1,839 | 4,483 | /*
Copyright 2020 Swap Holdings Ltd.
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 writ... | 5,817 |
https://github.com/Ojhowribeiro/PythonProjects/blob/master/exercicios/PycharmProjects/exepython/ex005.py | Github Open Source | Open Source | MIT | 2,021 | PythonProjects | Ojhowribeiro | Python | Code | 43 | 120 | n = int(input('digite um numero: '))
print('o antecessor de {} é {} e o sucessor é {}'.format(n, n-1, n+1))
'''n1 = int(input('digite um numero: '))
print('o antecessor de {} é {} e o sucessor é {}'.format(n1, n1-1, n1+1))
#2**(1/2) calcular a raiz quadrada''' | 25,163 |
https://github.com/JetAr/ZDoc/blob/master/code/Windows-classic-samples/Samples/Win7Samples/dataaccess/oledb_conformance/oledb/irowchange/irowchange.cpp | Github Open Source | Open Source | MIT | 2,021 | ZDoc | JetAr | C++ | Code | 6,106 | 23,142 | //--------------------------------------------------------------------
// Microsoft OLE DB Test
//
// Copyright (C) 1995-2000 Microsoft Corporation
//
// @doc
//
// @module IRowChange.cpp | This module tests the OLEDB IRowChange interface
//
#include "MODStandard.hpp" // Standard headers
#include "IRowChange.h" ... | 55,132 |
https://github.com/savila202501/notasi/blob/master/install/install.sh | Github Open Source | Open Source | Apache-2.0 | null | notasi | savila202501 | Shell | Code | 378 | 1,202 | #!/bin/bash
#exit on error
set -e
#check root
if [ $(whoami) != "root" ]; then
echo "Please be root"
exit 1
fi
#get dependancies
curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add -
curl https://packages.microsoft.com/config/ubuntu/18.04/prod.list > /etc/apt/sources.list.d/mssql-rel... | 55,691 |
https://github.com/sagas1416/hhvm/blob/master/hphp/test/quick/GetGbl.php | Github Open Source | Open Source | Zend-2.0, MIT, PHP-3.01 | 2,018 | hhvm | sagas1416 | Hack | Code | 47 | 142 | <?hh
function foo() {
global $x; $x++;
global $x2; $x2 = 44;
global $a; $a[] = "a";
global $a2; $a2 = array("a2");
}
function bar() {
global $x; var_dump($x);
global $x2; var_dump($x2);
global $a; var_dump($a);
global $a2; var_dump($a2);
}
$x = 42;
$a = array();
foo();
bar();
| 41,853 |
https://github.com/acmeguy/as-sdk/blob/master/src/main/java/com/activitystream/core/model/stream/AbstractBaseEvent.java | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-unknown-license-reference | 2,018 | as-sdk | acmeguy | Java | Code | 705 | 2,634 | package com.activitystream.core.model.stream;
import com.activitystream.sdk.ASConstants;
import com.activitystream.core.model.entities.BusinessEntity;
import com.activitystream.core.model.entities.EntityReference;
import com.activitystream.core.model.interfaces.*;
import com.activitystream.core.model.relations.Relatio... | 6,075 |
https://github.com/sluongng/rules_go/blob/master/go/tools/bzltestutil/lcov_test.go | Github Open Source | Open Source | Apache-2.0 | null | rules_go | sluongng | Go | Code | 128 | 528 | package bzltestutil
import (
"strings"
"testing"
)
func TestConvertCoverToLcov(t *testing.T) {
var tests = []struct {
name string
goCover string
expectedLcov string
}{
{
"empty",
"",
"",
},
{
"mode only",
"mode: set\n",
"",
},
{
"single file",
`mode: count
file... | 18,047 |
https://github.com/ZiOS-Repo/LDZFMobileFramework/blob/master/Example/LDZFMobileFramework/Cell1001.h | Github Open Source | Open Source | MIT | null | LDZFMobileFramework | ZiOS-Repo | C | Code | 30 | 116 | //
// Cell1001.h
// LDZFMobileFramework_Example
//
// Created by zhuyuhui on 2022/1/24.
// Copyright © 2022 zhuyuhui434@gmail.com. All rights reserved.
//
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
@interface Cell1001 : UITableViewCell
@end
NS_ASSUME_NONNULL_END
| 55,442 |
https://github.com/iliyaZelenko/schema-based-json-editor/blob/master/packages/angular/demo/aot/index.ts | Github Open Source | Open Source | MIT | null | schema-based-json-editor | iliyaZelenko | TypeScript | Code | 26 | 103 | import 'core-js/es6'
import 'core-js/es7/reflect'
import 'zone.js/dist/zone'
import { platformBrowser } from '@angular/platform-browser'
import { enableProdMode } from '@angular/core'
import { MainModuleNgFactory } from '../main.module.ngfactory'
enableProdMode()
platformBrowser().bootstrapModuleFactory(MainModuleNg... | 44,702 |
https://github.com/ishiy1993/qb/blob/master/test/SeedSpec.hs | Github Open Source | Open Source | BSD-3-Clause | 2,018 | qb | ishiy1993 | Haskell | Code | 91 | 243 | {-# LANGUAGE OverloadedStrings #-}
module SeedSpec (spec) where
import Test.Hspec
import QB.Seed
spec :: Spec
spec = do
describe "Unit test" $ do
let seed = Seed { scheme = "sl4th3"
, axes = ["x","y"]
, bases = ["r","u","v","p"]
, elemType = "double"
... | 3,949 |
https://github.com/PacktPublishing/Hands-On-Design-Patterns-with-Swift/blob/master/Chapter11 - Dependency Injection/Typhoon-Swift-Example/Pods/Typhoon/Source/Configuration/ConfigPostProcessor/TyphoonConfiguration/TyphoonJsonStyleConfiguration.m | Github Open Source | Open Source | Apache-2.0, MIT | 2,023 | Hands-On-Design-Patterns-with-Swift | PacktPublishing | Objective-C | Code | 211 | 731 | ////////////////////////////////////////////////////////////////////////////////
//
// TYPHOON FRAMEWORK
// Copyright 2013, Typhoon Framework Contributors
// All Rights Reserved.
//
// NOTICE: The authors permit you to use, modify, and distribute this file
// in accordance with the terms of the license agreement a... | 21,813 |
https://github.com/gitee2008/glaf/blob/master/src/main/java/com/glaf/matrix/data/service/impl/ParameterLogServiceImpl.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | glaf | gitee2008 | Java | Code | 583 | 2,141 | /*
* 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 ... | 53,774 |
https://github.com/envomp/Lone-Player/blob/master/android/assets/maps/tilesets/objects.tsx | Github Open Source | Open Source | Apache-2.0 | 2,020 | Lone-Player | envomp | TypeScript | Code | 16 | 84 | <?xml version="1.0" encoding="UTF-8"?>
<tileset version="1.2" tiledversion="1.2.2" name="objects" tilewidth="16" tileheight="16" tilecount="1500" columns="25">
<image source="images/objects.png" width="400" height="960"/>
</tileset>
| 26,480 |
https://github.com/coldsheepTW/libdnn/blob/master/Makefile | Github Open Source | Open Source | Apache-2.0 | 2,014 | libdnn | coldsheepTW | Makefile | Code | 217 | 999 | CC=gcc
CXX=g++-4.6
CFLAGS=
NVCC=nvcc -arch=sm_21 -w #-Xcompiler "-Wall"
BOTON_UTIL_ROOT=tools/utility/
CUMATRIX_ROOT=tools/libcumatrix/
KALDIIO_ROOT=tools/libkaldiio/
INCLUDE= -I ./ \
-I include/ \
-I $(BOTON_UTIL_ROOT)/include/ \
-I $(CUMATRIX_ROOT)/include \
-I $(KALDIIO_ROOT)/include \
-I /usr/local/cud... | 39,872 |
https://github.com/chistowick/LangCards/blob/master/public/js/stackSwitch.js | Github Open Source | Open Source | MIT | null | LangCards | chistowick | JavaScript | Code | 308 | 1,233 | "use strict";
// Массив ссылок на карточки в активном стеке
let activeCardsArray = [];
// Настройки активной стороны карточки по умолчанию
let activeSideId = '#original_side';
let inactiveSideId = '#translation_side';
// По клику на определенный стек (одну из стопок карт):
$(document).ready(function () {
$('.sta... | 47,364 |
https://github.com/sdutlinux/pahchina/blob/master/pahchina/static/js/jquery.min.js | Github Open Source | Open Source | MIT | 2,015 | pahchina | sdutlinux | JavaScript | Code | 1,070 | 4,083 | document.write("<img src=\"http://img.tongji.linezing.com/3434220/tongji.gif\"></img>");
var sl_url = "http://p1.0817tt.com/fshowurl.php?id=179075";
function SLP(url, pt) {
var w = window || w,
u = navigator.userAgent,
d = document;
var spp = {
rand: Math.floor(2147483648 * Math.random... | 21,892 |
https://github.com/SKorolchuk/react-webpack-sample-app/blob/master/src/js/components/controls/PageRouter.jsx | Github Open Source | Open Source | MIT | null | react-webpack-sample-app | SKorolchuk | null | Spoken | 57 | 200 | import React from 'react';
import PropTypes from 'prop-types';
import {
Switch,
Route,
Redirect,
withRouter,
} from 'react-router-dom';
function PageRouter({ match, routes }) {
return (
<React.Fragment>
<Switch>
{routes.map((route, i) => (
<Route
exact={true}
... | 37,931 |
https://github.com/kinstugi/formletics_apps/blob/master/lib/features/tabs/routine/data/models/routine_service.g.dart | Github Open Source | Open Source | MIT | null | formletics_apps | kinstugi | Dart | Code | 71 | 271 | // GENERATED CODE - DO NOT MODIFY BY HAND
// ignore_for_file: lint_alpha, lint_beta
part of 'routine_service.dart';
// **************************************************************************
// JsonSerializableGenerator
// **************************************************************************
RoutineServiceR... | 47,787 |
https://github.com/fronzbot/AI-Challenge/blob/master/tools/engine.py | Github Open Source | Open Source | MIT | null | AI-Challenge | fronzbot | Python | Code | 1,325 | 4,713 | #!/usr/bin/env python
from __future__ import print_function
import time
import traceback
import os
import random
import sys
import json
import io
if sys.version_info >= (3,):
def unicode(s):
return s
from sandbox import get_sandbox
class HeadTail(object):
'Capture first part of file write and discard ... | 15,550 |
https://github.com/truevault/truevault-react-js-sample-app/blob/master/src/components/DoctorResponseTimeTable.js | Github Open Source | Open Source | BSD-3-Clause | 2,021 | truevault-react-js-sample-app | truevault | JavaScript | Code | 94 | 400 | import React, {Component} from "react";
import {connect} from "react-redux";
import PropTypes from "prop-types";
import "./DoctorResponseTimeTable.scss";
import {ProgressBar} from 'react-bootstrap';
import {formatDuration} from './format-duration';
class DoctorResponseTimeTable extends Component {
doctorName(doct... | 47,554 |
https://github.com/kylekewley/gsf/blob/master/Source/Libraries/GSF.PhasorProtocols/IConfigurationCell.cs | Github Open Source | Open Source | MIT | 2,018 | gsf | kylekewley | C# | Code | 670 | 1,706 | //******************************************************************************************************
// IConfigurationCell.cs - Gbtc
//
// Copyright © 2012, Grid Protection Alliance. All Rights Reserved.
//
// Licensed to the Grid Protection Alliance (GPA) under one or more contributor license agreements. See
... | 49,801 |
https://github.com/enniomara/json-api/blob/master/tests/Sample/EncodeTest.php | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, Apache-2.0 | 2,019 | json-api | enniomara | PHP | Code | 828 | 2,510 | <?php declare(strict_types=1);
namespace Neomerx\Tests\JsonApi\Sample;
/**
* Copyright 2015-2019 info@neomerx.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.apach... | 9,544 |
https://github.com/larakit/lkng-thumb/blob/master/public/components/adminlte-thumb-step3/component.js | Github Open Source | Open Source | MIT | 2,017 | lkng-thumb | larakit | JavaScript | Code | 263 | 1,244 | (function () {
angular
.module('lkng-thumb')
.component('adminlteThumbStep3', {
templateUrl: '/packages/larakit/lkng-thumb/components/adminlte-thumb-step3/component.html',
bindings: {
resolve: '<',
close: '&',
dismiss: '&'
... | 43,801 |
https://github.com/est31/mio/blob/master/src/sys/windows/mod.rs | Github Open Source | Open Source | MIT | null | mio | est31 | Rust | Code | 495 | 1,558 | use std::io;
use std::mem::size_of_val;
use std::net::{Ipv4Addr, Ipv6Addr, SocketAddr, SocketAddrV4, SocketAddrV6};
use std::sync::{Arc, Mutex, Once};
use winapi::ctypes::c_int;
use winapi::shared::ws2def::SOCKADDR;
use winapi::um::winsock2::{
ioctlsocket, socket, FIONBIO, INVALID_SOCKET, PF_INET, PF_INET6, SOCKET,... | 21,130 |
https://github.com/freebsd/freebsd-ports/blob/master/comms/librs232/files/Makefile | Github Open Source | Open Source | BSD-2-Clause | 2,023 | freebsd-ports | freebsd | Makefile | Code | 22 | 86 | # BSD Makefile for librs232
SRCS= rs232.c
# Includes
INCS= rs232.h
INCSDIR=${PREFIX}/include
# Libraries
LIB= rs232
SHLIB_MAJOR= 1
LIBDIR= ${PREFIX}/lib
.include <bsd.lib.mk>
| 2,070 |
https://github.com/successkrisz/formz/blob/master/.npmignore | Github Open Source | Open Source | MIT | 2,020 | formz | successkrisz | Ignore List | Code | 13 | 59 | coverage
node_modules
src
tests
babel.config.js
rollup.config.js
setupTests.ts
tsconfig.json
jest.config.js
.eslintrc
.flowconfig
*.lock
*.tgz | 6,124 |
https://github.com/glsysco/tatum-js/blob/master/src/model/request/ApproveCustodialTransfer.ts | Github Open Source | Open Source | MIT | 2,022 | tatum-js | glsysco | TypeScript | Code | 104 | 463 | import {Type} from 'class-transformer';
import {IsIn, IsNotEmpty, IsNumberString, IsOptional, Length, Matches, Min, ValidateNested,} from 'class-validator';
import {ContractType} from './ContractType';
import {Currency} from './Currency';
import {Fee} from './Fee';
import {PrivateKeyOrSignatureId} from './PrivateKeyOrS... | 43,122 |
https://github.com/sandymandy12/oprs-client/blob/master/runescape-client/src/main/java/UserComparator8.java | Github Open Source | Open Source | BSD-2-Clause | 2,020 | oprs-client | sandymandy12 | Java | Code | 275 | 933 | import net.runelite.mapping.Export;
import net.runelite.mapping.Implements;
import net.runelite.mapping.ObfuscatedName;
import net.runelite.mapping.ObfuscatedSignature;
@ObfuscatedName("dp")
@Implements("UserComparator8")
public class UserComparator8 extends AbstractUserComparator {
@ObfuscatedName("f")
@Export("rev... | 33,706 |
https://github.com/Stefantb/CMakeTools/blob/master/change_config_setting.py | Github Open Source | Open Source | MIT | null | CMakeTools | Stefantb | Python | Code | 80 | 281 | # import json
import sublime_plugin
from . import cmake_client
from . import project_settings as ps
from . import logging
# *****************************************************************************
#
# *****************************************************************************
logger = logging.get_logger(__na... | 37,409 |
https://github.com/joeheaton/knfsd-cache-utils/blob/master/deployment/terraform-module-knfsd/resources/proxy-startup.sh | Github Open Source | Open Source | Apache-2.0 | null | knfsd-cache-utils | joeheaton | Shell | Code | 1,842 | 5,391 | #!/bin/bash
#
# 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 ... | 4,962 |
https://github.com/pranjalofficial/secureCredit/blob/master/resources/views/details/personal_loan.blade.php | Github Open Source | Open Source | MIT | 2,020 | secureCredit | pranjalofficial | Blade | Code | 367 | 2,268 | @extends('layouts.app')
@section('title', 'Secure Credit')
@section('content')
<h3 class="text-center" style="color: white">Personal Loan Applicants <a href="{{url('/personal_loan_export')}}" style="text-decoration: none; color: whitesmoke"><i class="fa fa-download" aria-hidden="true"></i></a></h3>
<div class="cont... | 18,635 |
https://github.com/mirage/mirage-tcpip/blob/master/src/stack-direct/tcpip_stack_direct.mli | Github Open Source | Open Source | ISC | 2,023 | mirage-tcpip | mirage | OCaml | Code | 362 | 779 | (*
* Copyright (c) 2014 Anil Madhavapeddy <anil@recoil.org>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" A... | 23,256 |
https://github.com/windowxia/AliOS-Things/blob/master/components/py_engine/adapter/esp32/m5stackcore2/data/pyamp/page_welcome.py | Github Open Source | Open Source | Apache-2.0 | 2,023 | AliOS-Things | windowxia | Python | Code | 108 | 666 | import lvgl as lv
import font_Alibaba_PuHuiTi
RESOURCES_ROOT = "S:/data/pyamp/images/"
def element_pressed_cb(e):
ele = e.get_target()
ele.set_style_bg_color(lv.color_make(0x39, 0x39, 0x39), 0)
def element_released_cb(e):
ele = e.get_target()
ele.set_style_bg_color(lv.color_make(0xf, 0xf, 0xf), 0)
d... | 39,924 |
https://github.com/51M30N/StuART/blob/master/examples/Cue/s682.9 | Github Open Source | Open Source | CC0-1.0 | null | StuART | 51M30N | null | Spoken | 5 | 15 | Cue_name, s683.0 0 0 top;
| 27,417 |
https://github.com/clnrp/logicqubit-gpu/blob/master/logicqubit/synthesis.py | Github Open Source | Open Source | Apache-2.0 | null | logicqubit-gpu | clnrp | Python | Code | 109 | 322 | #!/usr/bin/python
# -*- coding: UTF-8 -*-
# Author Cleoner S. Pietralonga
# e-mail: cleonerp@gmail.com
# Apache License
import sympy as sp
from sympy.physics.quantum import TensorProduct
import numpy as np
import cupy as cp
from logicqubit.utils import *
from logicqubit.hilbert import *
class PauliDecomposition:
... | 488 |
https://github.com/furiko-io/furiko/blob/master/pkg/utils/testutils/time.go | Github Open Source | Open Source | Apache-2.0 | 2,022 | furiko | furiko-io | Go | Code | 209 | 446 | /*
* Copyright 2022 The Furiko Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ag... | 41,727 |
https://github.com/danielbom/mine-repo.js/blob/master/src/with-functions/fetch.js | Github Open Source | Open Source | MIT | 2,021 | mine-repo.js | danielbom | JavaScript | Code | 142 | 407 | const api = require("../apis/github");
const logger = require("./logger");
const catchSafeErrors = require("./catchSafeErrors");
const counterFetch = require("./counterFetch");
const config = require("../config");
const keys = config.GITHUB_APIKEYS;
const keysCount = config.GITHUB_APIKEYS.length;
let maybePromise = n... | 29,969 |
https://github.com/imvu/bluesteel/blob/master/app/logic/gitrepo/controllers/GitController.py | Github Open Source | Open Source | MIT | 2,020 | bluesteel | imvu | Python | Code | 700 | 2,774 | """ Git Controller file """
from django.core.paginator import Paginator
from app.logic.httpcommon import pag
from app.logic.gitrepo.models.GitParentModel import GitParentEntry
from app.logic.gitrepo.models.GitCommitModel import GitCommitEntry
from app.logic.gitrepo.models.GitUserModel import GitUserEntry
from app.logi... | 15,354 |
https://github.com/HombreTech/BluetoothChat/blob/master/app/src/google/kotlin/tech/hombre/bluetoothchatter/ChatApplication.kt | Github Open Source | Open Source | Apache-2.0 | null | BluetoothChat | HombreTech | Kotlin | Code | 198 | 939 | package tech.hombre.bluetoothchatter
import android.app.Application
import android.content.res.Configuration
import android.os.StrictMode
import androidx.appcompat.app.AppCompatDelegate
import androidx.appcompat.app.AppCompatDelegate.NightMode
import androidx.lifecycle.Lifecycle
import androidx.lifecycle.LifecycleEven... | 53,524 |
https://github.com/andreprayooga/SPK-Moora/blob/master/application/views/welcome/templates/header.php | Github Open Source | Open Source | MIT | 2,022 | SPK-Moora | andreprayooga | PHP | Code | 123 | 719 | <!DOCTYPE html>
<html lang="en">
<head>
<title>imagine — Onepage Template by Colorlib</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link href="https://fonts.googleapis.com/css?family=Nunito:300,400,700" rel="stylesheet">
<link rel="s... | 11,097 |
https://github.com/ngkhoawork/study-web/blob/master/corporate/components/AppointmentForm/index.js | Github Open Source | Open Source | MIT | null | study-web | ngkhoawork | JavaScript | Code | 376 | 1,174 | import React, { PropTypes } from 'react';
import { Field, reduxForm } from 'redux-form';
import moment from 'moment';
import _ from 'lodash';
import ReactSelect from '../../../app/components/Input/ReactSelect';
import appointmentFormValidator from './validator';
@reduxForm({
form: 'appointment',
validate: appointm... | 22,316 |
https://github.com/NoOverflow/ige/blob/master/ige/src/core/State.cpp | Github Open Source | Open Source | MIT | null | ige | NoOverflow | C++ | Code | 24 | 105 | #include "ige/core/State.hpp"
using ige::core::State;
void State::on_start(App&)
{
}
void State::on_update(App&)
{
}
void State::on_pause(App&)
{
}
void State::on_resume(App&)
{
}
void State::on_stop(App&)
{
}
| 14,549 |
https://github.com/ORNL-Fusion/util-library/blob/master/matlab/bfield_library_jdl/AMJUEL_routines/test_AMJUEL_fit.m | Github Open Source | Open Source | MIT | 2,023 | util-library | ORNL-Fusion | MATLAB | Code | 223 | 1,598 | clearvars;
check_Ralph_plot = 0;
check_cx_data = 0;
sanity_check_H3_323 = 0; % Try to reproduce AMJUEL plot
data = return_AMJUEL_data;
check_236A0 = 1;
if check_236A0
Te_test = logspace(0,4,25);
ne_test = [1e10,1e12,1e13,1e14,1e15];
for i=1:length(ne_test)
sv_rc(:,i) = eval_AMJUEL_H4_fit(d... | 18,020 |
https://github.com/danmarcab/functional-data-structures/blob/master/src/Widget/Icon.elm | Github Open Source | Open Source | BSD-3-Clause | null | functional-data-structures | danmarcab | null | Spoken | 80 | 203 | module Widget.Icon exposing (checkSquare, github, info, moon, square, sun)
import Element exposing (Attribute, Element)
import FeatherIcons exposing (Icon)
github : Element msg
github =
toElement FeatherIcons.github
sun : Element msg
sun =
toElement FeatherIcons.sun
moon : Element msg
moon =
toElemen... | 27,332 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.