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/andyvenus/avcms/blob/master/src/AVCMS/Bundles/Pages/resources/templates/page.twig | Github Open Source | Open Source | MIT | null | avcms | andyvenus | Twig | Code | 41 | 124 | {% extends 'index.twig' %}
{% block title %}{{ page.title }}{% endblock %}
{% block content %}
<div class="box">
{% if page.showTitle %}
<div class="box-top">
<h2>{{ page.title }}</h2>
</div>
{% endif %}
<div class="box-main">
{{ page.co... | 47,516 |
https://github.com/gustavopinto/entente/blob/master/funfuzz/jsfunfuzz/gen-recursion.js | Github Open Source | Open Source | BSD-2-Clause | 2,018 | entente | gustavopinto | JavaScript | Code | 812 | 1,892 |
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
/*
David Anderson suggested creating the following recursive structures:
- recurse down an array of mixed types, ... | 22,388 |
https://github.com/SivaGaneshGGK/onfido-sdk-ui/blob/master/src/components/crossDevice/ClientSuccess/index.js | Github Open Source | Open Source | MIT | 2,021 | onfido-sdk-ui | SivaGaneshGGK | JavaScript | Code | 66 | 254 | import { h, Component } from 'preact'
import Title from '../../Title'
import theme from '../../Theme/style.css'
import style from './style.css'
import { trackComponent } from '../../../Tracker'
class ClientSuccess extends Component {
componentDidMount () {
this.props.sendClientSuccess()
}
render () {
c... | 45,444 |
https://github.com/ton1o1/mcqcm/blob/master/app/templates/quiz/delete.php | Github Open Source | Open Source | MIT | 2,016 | mcqcm | ton1o1 | PHP | Code | 58 | 230 | <?php $this->layout('layout', ['title' => 'Supprimer un quiz']) ?>
<?php $this->start('main_content') ?>
<div class="page-header">
<h1>Supprimer un quiz</h1>
</div>
<?= !empty($alerts) ? $alerts : '' ?>
<p>Etes-vous sûr de vouloir supprimer le quiz "<?=$quiz['title']?>" ?</p>
<form method="pos... | 4,895 |
https://github.com/packedapp/packedtmp/blob/master/modules/packed/src/main/java/app/packed/application/restart/RestartableApp.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | packedtmp | packedapp | Java | Code | 43 | 142 | package app.packed.application.restart;
import java.util.function.BiFunction;
import app.packed.bundle.Assembly;
import app.packed.bundle.Wirelet;
public interface RestartableApp<T> {
void restart();
static <T> RestartableApp<T> of(BiFunction<Assembly , Wirelet[], T> action, Assembly assembly, Wirelet... | 12,579 |
https://github.com/tcui/Bee/blob/master/tests/bee-test-0.py | Github Open Source | Open Source | LicenseRef-scancode-public-domain | 2,010 | Bee | tcui | Python | Code | 112 | 558 | #!/usr/bin/env python
import logging
import bee
def test_fetcher(url, from_encoding, logger, unicode_errors='strict'):
logger.debug("Test fetching: %s", url)
fetcher = bee.SimpleHTTPFetcher(logger, from_encoding=from_encoding, unicode_errors=unicode_errors, user_agent="Mozilla/4.0 (compatible; MSIE 8.0; Wind... | 10,389 |
https://github.com/tslaff/Machine_Learning_Projects/blob/master/ANN_SP500/ANN_SP500.R | Github Open Source | Open Source | MIT | 2,016 | Machine_Learning_Projects | tslaff | R | Code | 191 | 608 | # Install the packages we need
# Quantmod gives us the indicator calculations and market data
install.packages("quantmod")
library("quantmod")
# The neural network package we will use. There are many different ANN packages but this one has particularly nice plotting capabilities.
install.packages(“neuralnet”)
library(“... | 12,823 |
https://github.com/kloeckner-i/ember-cli-mirage-graphql/blob/master/addon/utils.js | Github Open Source | Open Source | MIT | 2,022 | ember-cli-mirage-graphql | kloeckner-i | JavaScript | Code | 164 | 425 | import { GraphQLNonNull } from 'graphql';
const sortEdgesKeysBeforePageInfo = (list) => list.sort();
export function contextPush(context, k, v) {
context[k].push(v);
return context;
}
export function contextSet(context, k, v) {
context[k] = v;
return context;
}
export const ensureList = (item) => item == ... | 48,748 |
https://github.com/natsliehuddon/botTemplate/blob/master/BTCLTC/src/server/html/search/enumvalues_2.js | Github Open Source | Open Source | ISC, MIT | 2,019 | botTemplate | natsliehuddon | JavaScript | Code | 15 | 726 | var searchData=
[
['cancelallorders',['CancelAllOrders',['../namespace_k.html#a06e0333f0bcd3fc79835735bb9cda73da6c19795cf93135bf16da1fab6f9cba0e',1,'K']]],
['cancelled',['Cancelled',['../namespace_k.html#a9ca92b450f3b1738c485770d136ac9e0aa149e85a44aeec9140e92733d9ed694e',1,'K']]],
['cancelorder',['CancelOrder',['... | 39,198 |
https://github.com/Pandinosaurus/pytorch-grad-cam/blob/master/pytorch_grad_cam/activations_and_gradients.py | Github Open Source | Open Source | MIT | 2,023 | pytorch-grad-cam | Pandinosaurus | Python | Code | 137 | 465 | class ActivationsAndGradients:
""" Class for extracting activations and
registering gradients from targetted intermediate layers """
def __init__(self, model, target_layers, reshape_transform):
self.model = model
self.gradients = []
self.activations = []
self.reshape_transfo... | 36,592 |
https://github.com/vinka661/Pemrograman-Web-Lanjut-CMS/blob/master/resources/views/collection_pdf.blade.php | Github Open Source | Open Source | MIT | null | Pemrograman-Web-Lanjut-CMS | vinka661 | PHP | Code | 82 | 380 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
<meta name="description" content="" />
<meta name="author" content="" />
<title>VAS Gallery || Laporan Data Collection</ti... | 48,148 |
https://github.com/JetBrains-Research/sysbio-workshop/blob/master/2019_bioinf_summer_school/chipseq/step5_sicer.smk | Github Open Source | Open Source | MIT | 2,020 | sysbio-workshop | JetBrains-Research | Python | Code | 283 | 1,365 | from pipeline_util import *
######## Step: Peak Calling: SICER ##################
def sicer_all_peaks_input():
files = []
window_size=config['sicer_window']
gap=config['sicer_gap']
# XXX: change significance only via config, SICER rule takes the value from
# config, not via wildcards
sample_... | 30,756 |
https://github.com/VEuPathDB/service-osi-generator/blob/master/src/test/java/org/veupathdb/service/osi/model/db/IdSetTest.java | Github Open Source | Open Source | Apache-2.0 | null | service-osi-generator | VEuPathDB | Java | Code | 246 | 1,150 | package org.veupathdb.service.osi.model.db;
import java.time.OffsetDateTime;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
import org.veupathdb.service.osi.service.organism.OrganismUtil;
import util.TestBase;
import static org.junit.jupiter.api.... | 49,449 |
https://github.com/Delta11225/11225FreightFrenzyObjectRecognition/blob/master/TeamCode/src/main/java/org/firstinspires/ftc/teamcode/AutoMethodsYellow.java | Github Open Source | Open Source | MIT | null | 11225FreightFrenzyObjectRecognition | Delta11225 | Java | Code | 3,009 | 17,831 | package org.firstinspires.ftc.teamcode;
import com.qualcomm.hardware.bosch.BNO055IMU;
import com.qualcomm.hardware.bosch.JustLoggingAccelerationIntegrator;
import com.qualcomm.robotcore.eventloop.opmode.LinearOpMode;
import com.qualcomm.robotcore.hardware.DcMotor;
import com.qualcomm.robotcore.hardware.DcMotorSimple;... | 12,605 |
https://github.com/Ko2doo/vetrina.local/blob/master/public_files/frontend/scss/blocks/_advert.scss | Github Open Source | Open Source | MIT | null | vetrina.local | Ko2doo | SCSS | Code | 35 | 143 | .advert{
@extend %section-padding;
.content{
@extend %content;
&__item-section{
@include size(12);
@include size-lg(12);
@include size-md(12);
@include lg-block{
margin: 0 auto;
}
padding: rem(22) 0 0;
.btn{
margin: 0 auto;
}
}
}//-- end c... | 46,247 |
https://github.com/vdenPython/FirmOffice/blob/master/FOadmin/migrations/0005_companystructure_fo_profile.py | Github Open Source | Open Source | Apache-2.0 | 2,017 | FirmOffice | vdenPython | Python | Code | 45 | 193 | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-04-06 04:18
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('FOadmin', '0004_auto_20170406_0917'),
]
operations... | 49,284 |
https://github.com/KevinNeon/Surge/blob/master/sim/WL.js | Github Open Source | Open Source | MIT | 2,017 | Surge | KevinNeon | JavaScript | Code | 1,453 | 4,244 | 'use strict';
const fs = require('fs');
exports.WL = {
gameData: JSON.parse(fs.readFileSync('config/SGGame/pokemon.json', 'utf8')),
itemData: JSON.parse(fs.readFileSync('config/SGGame/items.json', 'utf8')),
/**
* @param {Object} battle The battle object.
* @param {String} side The side that the COM is playing on... | 48,471 |
https://github.com/agungprastia1/ImplementasiSAWdanWP/blob/master/application/controllers/C_edit.php | Github Open Source | Open Source | MIT | null | ImplementasiSAWdanWP | agungprastia1 | PHP | Code | 427 | 1,782 | <?php
defined('BASEPATH') or exit('No derect script access allowed');
class C_Edit extends CI_Controller
{
function __construct()
{
parent::__construct();
$this->load->model('m_update');
$this->load->model('m_tampil');
$this->load->library('form_validation');
}
// Admin
... | 44,671 |
https://github.com/jonsim/acquisition-daemon/blob/master/threadpool.c | Github Open Source | Open Source | MIT | 2,018 | acquisition-daemon | jonsim | C | Code | 331 | 961 | /**
* \file threadpool.h
* \author Jonathan Simmonds
* \brief Basic thread pool implementation with pthreads.
*/
#include <assert.h> // assert
#include <pthread.h> // pthread_create, pthread_self, pthread_equal
#include <stdlib.h> // malloc
#include <stdio.h> // fprintf, stderr, perror
#include <sys/types.h> // ... | 50,459 |
https://github.com/yugangw-msft/AutoRest/blob/master/src/generator/AutoRest.Java.Tests/src/main/java/fixtures/bodyfile/Files.java | Github Open Source | Open Source | MIT | 2,021 | AutoRest | yugangw-msft | Java | Code | 324 | 743 | /**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/
... | 8,681 |
https://github.com/WhootinApps/Whootin-Files-iOS/blob/master/WhootinFiles/Message1.h | Github Open Source | Open Source | MIT, LicenseRef-scancode-unknown-license-reference | 2,014 | Whootin-Files-iOS | WhootinApps | Objective-C | Code | 59 | 196 | //
// Message.h
// WalkieTalkieRadio
//
// Created by Senthilkumar R on 26/09/12.
// Copyright (c) 2012 DMBC. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface Message1 : NSObject
{
NSString *sCreated, *sId, *sRecipientId, *sSenderId, *sMessage, *sAudioUrl, *sTime, *sLength;
User* sender;
}
... | 18,298 |
https://github.com/VTNPlusD/tech/blob/master/front-end/src/services/api/user/categoryApi.ts | Github Open Source | Open Source | MIT | 2,021 | tech | VTNPlusD | TypeScript | Code | 81 | 285 | import { Category } from "types/model";
import instance from "../v1";
class _CategoryApi {
getList = () => instance.get("/catalog/categories");
create = (category: Category, background_url: string) =>
instance.post("/catalog/categories", {
title: category.title,
background_url: background_url,
... | 27,925 |
https://github.com/joeyGold1/MarsAppSPA/blob/master/mars-app-spa/src/FCs/CameraDropDownFC.tsx | Github Open Source | Open Source | MIT | 2,021 | MarsAppSPA | joeyGold1 | TSX | Code | 79 | 255 | import { useContext, useEffect, useState } from "react";
import { CameraI } from "../nasaInterfaces";
import { selectedRoverContext } from "../selectedRoverContext";
import { DropDownFC } from "./dropDownFC";
export const CameraDropDownFC : React.FC =
(()=>{
const programContext = useContext(selectedRoverContext)... | 5,729 |
https://github.com/rvrheenen/OpenKattis/blob/master/Java/carefulascent/CarefulAscent.java | Github Open Source | Open Source | MIT | 2,021 | OpenKattis | rvrheenen | Java | Code | 162 | 480 | import java.io.*;
import java.util.*;
public class CarefulAscent {
public static void main(String[] args) throws IOException {
IO io = new IO(System.in);
int[] firefly = {io.nextInt(), io.nextInt()};
int nShields = io.nextInt();
int lowerBound, upperBound, horizontalCovered = 0;
double totalCost = 0;
... | 14,195 |
https://github.com/RohanChacko/C-Shell/blob/master/env.c | Github Open Source | Open Source | MIT | null | C-Shell | RohanChacko | C | Code | 73 | 308 | #include <stdio.h>
#include <stdlib.h>
#include <fcntl.h>
#include <sys/wait.h>
void setenvar(char command_str[][50])
{
if(command_str[1][0]=='\0')
{
printf("Error: Command requires atleast one argument");
return;
}
else if(command_str[3][0]!='\0')
{
printf("Error: Command requires maximum of tw... | 11,452 |
https://github.com/paulosouzav/memory-game-react/blob/master/src/constants/__tests__/screen.test.tsx | Github Open Source | Open Source | MIT | null | memory-game-react | paulosouzav | TypeScript | Code | 35 | 105 | import { BREAKPOINTS, MAX_WIDTHS } from '../screen';
describe('BREAKPOINTS', () => {
it('should have expected values', () => {
expect(BREAKPOINTS).toMatchSnapshot();
});
});
describe('MAX_WIDTHS', () => {
it('should have expected values', () => {
expect(MAX_WIDTHS).toMatchSnapshot();
});
});
| 43,937 |
https://github.com/likuisuper/mod-seckill/blob/master/dao/src/main/java/com/cxylk/po/User.java | Github Open Source | Open Source | Apache-2.0 | null | mod-seckill | likuisuper | Java | Code | 42 | 138 | package com.cxylk.po;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import java.io.Serializable;
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class User implements Serializable {
private In... | 39,441 |
https://github.com/fangylo/commons/blob/master/src/test/scala/com/fulcrumgenomics/commons/collection/BiMapTest.scala | Github Open Source | Open Source | MIT | null | commons | fangylo | Scala | Code | 453 | 1,052 | /*
* The MIT License
*
* Copyright (c) 2015-2016 Fulcrum Genomics LLC
*
* 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, including without limitation the rights
* ... | 30,950 |
https://github.com/kll5h/ShinetechOA/blob/master/src/main/resources/dbmigrate/hsql/bpm/V1_0_1_1__bpm_conf_countersign.sql | Github Open Source | Open Source | Apache-2.0 | 2,022 | ShinetechOA | kll5h | SQL | Code | 28 | 132 |
CREATE TABLE BPM_CONF_COUNTERSIGN(
ID BIGINT NOT NULL,
SEQUENTIAL INT,
PARTICIPANT VARCHAR(200),
TYPE INT,
RATE INT,
NODE_ID BIGINT,
CONSTRAINT PK_BPM_CONF_COUNTERSIGN PRIMARY KEY(ID),
CONSTRAINT FK_BPM_CONF_COUNTERSIGN_NODE FOREIGN KEY(NODE_ID) REFERENCES BPM_CONF_NODE(ID)
);
| 15,614 |
https://github.com/pawsong/react-waypoint/blob/master/test/performance-test.jsx | Github Open Source | Open Source | MIT | 2,019 | react-waypoint | pawsong | JavaScript | Code | 181 | 1,775 | /* eslint-disable max-len, react/no-multi-comp, react/jsx-no-bind */
import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import { Waypoint } from '../src/waypoint';
const WAYPOINT_COUNT = 1000;
function Foo() {
return (
<div className="foo">
<svg
version="1.1"
widt... | 37,831 |
https://github.com/javanile/vtiger-i18n/blob/master/languages/pt_br/Potentials.php | Github Open Source | Open Source | MIT | 2,020 | vtiger-i18n | javanile | PHP | Code | 296 | 998 | <?php
/*+***********************************************************************************
* The contents of this file are subject to the vtiger CRM Public License Version 1.0
* ("License"); You may not use this file except in compliance with the License
* The Original Code is: vtiger CRM Open Source
* The Initi... | 48,078 |
https://github.com/weseek/eslint-config-weseek/blob/master/rules/base.js | Github Open Source | Open Source | MIT | 2,021 | eslint-config-weseek | weseek | JavaScript | Code | 202 | 656 | module.exports = {
rules: {
'arrow-body-style': 'off',
'brace-style': [
'error',
'stroustrup',
{ allowSingleLine: true },
],
'class-methods-use-this': 'off',
'consistent-return': 'off',
'default-case': 'off',
'func-names': 'off',
'global-require': 'off',
'key-spac... | 40,645 |
https://github.com/metavida/bash_profile/blob/master/zsh-custom/archives/dip.zsh | Github Open Source | Open Source | MIT | 2,023 | bash_profile | metavida | Shell | Code | 20 | 54 | # Per https://github.com/bibendi/dip#integration-with-shell
# 2023-07-07 - Archived because I haven't been using DIP
which dip >/dev/null && eval "$(dip console)"
| 21,991 |
https://github.com/doronhorwitz/mopidy-choosmoos/blob/master/mopidy_choosmoos/interface/buttons.py | Github Open Source | Open Source | MIT | null | mopidy-choosmoos | doronhorwitz | Python | Code | 172 | 718 | import logging
from gpiozero import Button
from ..globals import mopidy_core, onboard_leds, sound
logger = logging.getLogger(__name__)
BUTTON_NAMES = ("next", "previous", "volume_up", "volume_down", "play_pause")
_BUTTON_TO_BCM_LOOKUP = {
1: 5,
2: 6,
3: 12,
4: 13,
5: 16,
6: 26,
}
class But... | 6,153 |
https://github.com/partysalat/wal-accounting-backend/blob/master/src/main/scala/org/justkile/wal/http/DrinkService.scala | Github Open Source | Open Source | Apache-2.0 | 2,020 | wal-accounting-backend | partysalat | Scala | Code | 89 | 376 | package org.justkile.wal.http
import cats.Applicative
import cats.effect._
import cats.implicits._
import io.circe.generic.auto._
import org.http4s.HttpRoutes
import org.http4s.circe.CirceEntityCodec._
import org.http4s.dsl.Http4sDsl
import org.justkile.wal.core.drinks.DrinkRepository
import org.justkile.wal.core.drin... | 48,985 |
https://github.com/anuragsoni/postgres-protocol/blob/master/postgres/src/md5.ml | Github Open Source | Open Source | MPL-2.0 | 2,023 | postgres-protocol | anuragsoni | OCaml | Code | 40 | 91 | open Core
let hash ~username ~password ~salt =
let digest = Md5.digest_string (password ^ username) in
let hex = Md5.to_hex digest in
let digest = Md5.digest_string (hex ^ salt) in
let hex = Md5.to_hex digest in
sprintf "md5%s" hex
;;
| 36,550 |
https://github.com/rohany/Lux/blob/master/tools/converter.cc | Github Open Source | Open Source | Apache-2.0 | 2,022 | Lux | rohany | C++ | Code | 393 | 1,380 | #include <map>
#include <stdint.h>
#include <stdio.h>
#include <vector>
#include <string>
#include <string.h>
#include <stdlib.h>
#include <assert.h>
#include <algorithm>
typedef uint32_t V_IDX;
typedef uint64_t E_IDX;
void parse_input_args(char** argv, int argc, V_IDX &nv, E_IDX &ne,
std::strin... | 13,069 |
https://github.com/Trinsdar/Railcraft/blob/master/src/main/java/mods/railcraft/common/items/ItemWhistleTuner.java | Github Open Source | Open Source | FTL | 2,021 | Railcraft | Trinsdar | Java | Code | 67 | 228 | /*------------------------------------------------------------------------------
Copyright (c) CovertJaguar, 2011-2019
http://railcraft.info
This code is the property of CovertJaguar
and may only be used with explicit written
permission unless otherwise specified on the
license page at http://railcraft.info/wiki... | 16,642 |
https://github.com/massimiliano76/postgis-docker/blob/master/update | Github Open Source | Open Source | MIT | 2,020 | postgis-docker | massimiliano76 | Ruby | Code | 267 | 1,317 | #!/usr/bin/env ruby
require "erb"
require "fileutils"
require "open-uri"
FileUtils.rm_rf(Dir.glob("[0-9]*"))
docker_image = "nickblah/postgis"
all_postgis_tags = []
versions = {}
library = URI.open("https://raw.githubusercontent.com/docker-library/official-images/master/library/postgres")
.read
.split(/[\r\n]{2... | 5,931 |
https://github.com/onwebbe/vuedashboardserver/blob/master/routes/workers/GetJiraIssueListWorker.js | Github Open Source | Open Source | MIT | null | vuedashboardserver | onwebbe | JavaScript | Code | 192 | 992 | const request = require('superagent');
const logger = require('../../Logger');
const configjs = require('config');
const async = require('async');
const jiraUtils=require('../batchJobs/JiraUtils.js');
process.env['NODE_TLS_REJECT_UNAUTHORIZED'] = 0;
class GetJiraIssueListWorker {
constructor(config) {
this.init... | 47,320 |
https://github.com/waxiyibian/front-end-test/blob/master/src/views/resume/components/technical-profile.model.ts | Github Open Source | Open Source | BSD-3-Clause | null | front-end-test | waxiyibian | TypeScript | Code | 25 | 70 | import { MasterLevelName } from "@/model/profile.model";
export interface TableDataRow {
id?: string | number;
category: string;
labels: string[];
level: number;
levelName: MasterLevelName;
rowSpan?: number;
}
| 1,024 |
https://github.com/Duobe/seal-editor/blob/master/__tests__/base.spec.ts | Github Open Source | Open Source | MIT | null | seal-editor | Duobe | TypeScript | Code | 12 | 29 | test('adds 1 + 1 to equal 3', () => {
expect(1+1).toBe(2)
}) | 22,133 |
https://github.com/vaavva/iot-ux-fluent-controls/blob/master/lib/components/Pivot/PivotMenu.tsx | Github Open Source | Open Source | MIT, LicenseRef-scancode-generic-cla | 2,019 | iot-ux-fluent-controls | vaavva | TSX | Code | 173 | 654 | import * as React from 'react';
import * as classNames from 'classnames/bind';
import {DivProps, AnchorProps, Elements as Attr, OptionAttr, mergeAttributes, mergeAttributeObjects} from '../../Attributes';
import {PivotOption} from '../../Common';
import {Pivot, PivotAttributes} from './Pivot';
const css = classNames.bi... | 50,174 |
https://github.com/input-output-hk/mantis-cardano/blob/master/src/test/scala/io/iohk/ethereum/extvm/VMClientSpec.scala | Github Open Source | Open Source | MIT | 2,021 | mantis-cardano | input-output-hk | Scala | Code | 562 | 2,481 | package io.iohk.ethereum.extvm
import akka.util.ByteString
import com.trueaccord.scalapb.GeneratedMessageCompanion
import io.iohk.ethereum.domain.{Account, Address, UInt256}
import io.iohk.ethereum.extvm.msg.CallContext.Config
import io.iohk.ethereum.utils.{BlockchainConfig, RetryConfig, VmConfig}
import io.iohk.ether... | 47,878 |
https://github.com/webex-bot-tutorial/Th3SortingHat/blob/master/update_webhooks.py | Github Open Source | Open Source | MIT | 2,018 | Th3SortingHat | webex-bot-tutorial | Python | Code | 170 | 617 | import requests
from config import bot_auth_token
### How to update webhooks
def get_webhooks():
URL = "https://api.ciscospark.com/v1/webhooks"
HEADERS = {"Content-type":"application/json;charset=utf-8", "Authorization":"Bearer " + bot_auth_token}
r = requests.get(url=URL, headers=HEADERS)
data = r.j... | 38,750 |
https://github.com/bookshelves-project/bookshelves-front/blob/master/components/entity/review/list.vue | Github Open Source | Open Source | BSD-2-Clause | null | bookshelves-front | bookshelves-project | Vue | Code | 87 | 317 | <script setup lang="ts">
import EntityReviewCard from '@/components/entity/review/card.vue'
const props = defineProps<{
reviews?: Review[]
}>()
const list = ref<Review[]>()
list.value = props.reviews
const remove = (id: number) => {
list.value = list.value?.filter((review) => review.id !== id)
// try {
// ... | 28,976 |
https://github.com/solomonxie/dotfiles/blob/master/init.sh | Github Open Source | Open Source | MIT | 2,023 | dotfiles | solomonxie | Shell | Code | 563 | 1,665 | #! /usr/bin/env bash
#
# ENVIRONMENT: Ubuntu / Raspbian / MacOS
# NOTICE:
# This script shouldn't be run as ROOT user,
# please don't abuse "sudo" on top of this script.
# Run this as ROOT results apps installed to wrong paths.
#
# How to run this script:
# git clone https://github.com/solomonxie/dotfiles.git ~... | 39,199 |
https://github.com/se7entyse7en/mlfs/blob/master/mlfs/supervised/base.py | Github Open Source | Open Source | MIT | 2,017 | mlfs | se7entyse7en | Python | Code | 19 | 76 | class IModel(object):
def fit(self, X_train, y_train):
raise NotImplementedError()
def predict(self, X_test):
raise NotImplementedError()
def evaluate(self, X_test, y_test):
raise NotImplementedError()
| 6,135 |
https://github.com/furlong-cmu/NTRTsim/blob/master/scripts/learning/src/interfaces/__init__.py | Github Open Source | Open Source | Apache-2.0 | 2,019 | NTRTsim | furlong-cmu | Python | Code | 12 | 40 | from ntrt_job_master import NTRTJobMaster
from ntrt_job import NTRTJob
from ntrt_master_error import NTRTMasterError
| 47,505 |
https://github.com/mahak/distributedlog/blob/master/distributedlog-service/src/test/java/com/twitter/distributedlog/service/stream/TestStreamManager.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | distributedlog | mahak | Java | Code | 330 | 1,325 | /**
* 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... | 47,253 |
https://github.com/SHALLYKL/DataStructure-master/blob/master/2LinkedList/LinkedList.js | Github Open Source | Open Source | MIT | null | DataStructure-master | SHALLYKL | JavaScript | Code | 156 | 559 | var LinkNode = function(next,val){
this.next = next;
this.val = val;
}
var LinkedList = function(){
this.next = null;
this.val = null;
}
var proto = LinkedList.prototype;
proto.insert = function(list,i,e){
if(list==void 0) return false;//链表不存在,插入失败,返回false
let p = list;
let j=0;
while(p!... | 17,798 |
https://github.com/adityadani/operator/blob/master/build/Dockerfile | Github Open Source | Open Source | 2,022 | operator | adityadani | Dockerfile | Code | 70 | 242 | FROM registry.access.redhat.com/ubi8-minimal:8.6-902.1661794353
RUN microdnf --enablerepo=rhel-7-server-rpms \
-y update-minimal --security --sec-severity=Important --sec-severity=Critical;\
microdnf clean all
RUN microdnf install -y tar
USER nobody
LABEL name="OpenStorage Operator" \
vendor="openstorage.org" ... | 14,015 | |
https://github.com/SparksCool/oc2/blob/master/src/main/java/li/cil/oc2/common/vm/ManagedMemoryRangeAllocator.java | Github Open Source | Open Source | CC0-1.0 | 2,021 | oc2 | SparksCool | Java | Code | 135 | 516 | package li.cil.oc2.common.vm;
import li.cil.oc2.api.bus.device.vm.MemoryRangeAllocator;
import li.cil.sedna.api.Board;
import li.cil.sedna.api.device.MemoryMappedDevice;
import li.cil.sedna.api.memory.MappedMemoryRange;
import li.cil.sedna.api.memory.MemoryRange;
import java.util.ArrayList;
import java.util.Optional;... | 3,308 |
https://github.com/yurapa/crud-nodejs-express-mongodb/blob/master/app/routes/index.js | Github Open Source | Open Source | MIT | null | crud-nodejs-express-mongodb | yurapa | JavaScript | Code | 27 | 79 | const songRoutes = require('./song_routes');
module.exports = (app, db, ObjectID) => {
app.get('/', (req, res) => {
res.send('Welcome! This is API root page.');
});
songRoutes(app, db, ObjectID);
}; | 13,931 |
https://github.com/artillect/sbd-id22-gantt/blob/master/src/components/IssueFilter.vue | Github Open Source | Open Source | MIT | null | sbd-id22-gantt | artillect | Vue | Code | 128 | 442 | <template>
<div class="level">
<div class="level-item">
<input placeholder="search for issues" class="input" v-model="search" v-on:keyup.enter="updateRoute(null)">
</div>
<div class="level-right">
<div class="level-item">
<button class="button is-info is-round" :class="{'is-loading': ... | 24,682 |
https://github.com/Artsdatabanken/forvaltningsportal/blob/master/src/Funksjoner/setValue.js | Github Open Source | Open Source | MIT | 2,020 | forvaltningsportal | Artsdatabanken | JavaScript | Code | 41 | 95 | function setValue(node, key, value) {
const parts = key.split(".");
for (let i = 0; i < parts.length - 1; i++) {
node = node[parts[i]];
}
const vkey = parts[parts.length - 1];
node[vkey] = value;
return node;
}
export { setValue };
| 2,066 |
https://github.com/eadz/redistimeseries/blob/master/spec/redis_refinement_spec.rb | Github Open Source | Open Source | MIT | 2,021 | redistimeseries | eadz | Ruby | Code | 207 | 636 | # Integration tests for now.
# That means, to run these tests you'll need
# a redis server with the redistimeseries.so
# module loaded.
using Redistimeseries::RedisRefinement
RSpec.describe Redistimeseries::RedisRefinement do
let(:client) { Redis.new }
let(:key) { (rand * 10**10).to_i.to_s(32) }
# ts_create(key:... | 15,876 |
https://github.com/Warrior2612/Stock-Market-Data-Visualiser/blob/master/util/gui.py | Github Open Source | Open Source | MIT | null | Stock-Market-Data-Visualiser | Warrior2612 | Python | Code | 159 | 743 | from tkinter import *
from pandastable import Table
from util.scraper import Scraper
from util.plot import PlotGraph
scr = Scraper()
CHOICE=""
class StockApp(Frame):
"""Basic test frame for the table"""
def __init__(self, df, parent=None):
self.parent = parent
self.df = df
... | 26,704 |
https://github.com/better/terraform-provider-snowflake/blob/master/pkg/resources/scim_integration_test.go | Github Open Source | Open Source | MIT | null | terraform-provider-snowflake | better | Go | Code | 178 | 1,051 | package resources_test
import (
"database/sql"
"testing"
sqlmock "github.com/DATA-DOG/go-sqlmock"
"github.com/better/terraform-provider-snowflake/pkg/provider"
"github.com/better/terraform-provider-snowflake/pkg/resources"
. "github.com/better/terraform-provider-snowflake/pkg/testhelpers"
"github.com/hashicorp... | 19,038 |
https://github.com/vsoch/pyout/blob/master/pyout/tests/test_elements.py | Github Open Source | Open Source | MIT | 2,020 | pyout | vsoch | Python | Code | 178 | 571 | import pytest
from pyout.elements import adopt
from pyout.elements import StyleValidationError
from pyout.elements import validate
from pyout.elements import value_type
def test_adopt_noop():
default_value = {"align": "<",
"width": 10,
"attrs": []}
style = {"name": ... | 23,005 |
https://github.com/Ayub-Khan/workbench/blob/master/workbench/workers/timeout_corner/pe_features_df.py | Github Open Source | Open Source | MIT | 2,021 | workbench | Ayub-Khan | Python | Code | 424 | 1,417 | """PEFeaturesDF worker puts the output of pe_features into a dictionary of dataframes"""
import os
import hashlib
import pandas as pd
import zerorpc
class PEFeaturesDF(object):
"""This worker puts the output of pe_features into a dictionary of dataframes"""
dependencies = ['sample']
sample_set_input = Tru... | 36,929 |
https://github.com/datastark/crime-analysis-toolbox/blob/master/scripts/arcresthelper/featureservicetools.py | Github Open Source | Open Source | Apache-2.0 | 2,021 | crime-analysis-toolbox | datastark | Python | Code | 1,471 | 5,232 |
from __future__ import print_function
from securityhandlerhelper import securityhandlerhelper
dateTimeFormat = '%Y-%m-%d %H:%M'
import arcrest
from arcrest.agol import FeatureLayer
from arcrest.agol import FeatureService
from arcrest.ags import FeatureService
from arcrest.hostedservice import AdminFeatureService
fr... | 29,400 |
https://github.com/saramorais/Flashcards/blob/master/client/src/actions/index.js | Github Open Source | Open Source | MIT | null | Flashcards | saramorais | JavaScript | Code | 190 | 593 | import axios from 'axios';
export const FETCH_CARDS = 'FETCH_CARDS';
export const FETCH_SETS = 'FETCH_SETS';
export const ADD_SET = 'ADD_SET';
export const ADD_CARD = 'ADD_CARD';
export const DELETE_SET = 'DELETE_SET';
export const DELETE_CARD = 'DELETE_CARD';
export function fetchSets() {
const request = axios.get... | 41,925 |
https://github.com/EnterpriseProductsLP/NServiceBusTutorials/blob/master/Source/CallbackUsage/NServiceBusTutorials.CallbackUsage.Contracts/EnumMessage.cs | Github Open Source | Open Source | MIT | 2,018 | NServiceBusTutorials | EnterpriseProductsLP | C# | Code | 13 | 43 | using NServiceBus;
namespace NServiceBusTutorials.CallbackUsage.Contracts
{
public class EnumMessage : IMessage
{
}
}
| 30,117 |
https://github.com/JessonYue/LeetCodeLearning/blob/master/Array/yangxin/第七周练习7_13-7_19/160. 相交链表/getIntersectionNode.c | Github Open Source | Open Source | MIT | 2,021 | LeetCodeLearning | JessonYue | C | Code | 137 | 376 | /**
* 160. 相交链表
* 编写一个程序,找到两个单链表相交的起始节点。
*/
struct ListNode *getIntersectionNode1(struct ListNode *headA, struct ListNode *headB) {
if (headA == NULL || headB == NULL) {
return NULL;
}
if (headA == headB) {
return headA;
}
int sizeA = 0;
int sizeB = 0;
struct ListNode *tai... | 5,813 |
https://github.com/bccfilkom/regrader/blob/master/application/views/site/register.php | Github Open Source | Open Source | MIT | 2,016 | regrader | bccfilkom | PHP | Code | 263 | 1,243 | <div class="container">
<div class="row">
<div class="col-md-12">
<ul class="breadcrumb">
<li>
<i class="glyphicon glyphicon-off"></i> <?php echo $this->lang->line('please_register'); ?>
</li>
</ul>
</div>
</div>
<?php if ($this->session->flashdata('error')) : ?>
<div class="row">
<div c... | 34,614 |
https://github.com/marriott-library/newspaper_works/blob/master/lib/newspaper_works/ingest.rb | Github Open Source | Open Source | Apache-2.0 | 2,022 | newspaper_works | marriott-library | Ruby | Code | 285 | 1,224 | require 'faraday'
require 'nokogiri'
require 'uri'
require 'newspaper_works/ingest/from_command'
require 'newspaper_works/ingest/base_publication_info'
require 'newspaper_works/ingest/chronam_publication_info'
require 'newspaper_works/ingest/lc_publication_info'
require 'newspaper_works/ingest/publication_info'
require... | 9,638 |
https://github.com/sekhsoukh123/gestionautoecole/blob/master/src/Ressources/views/Elements/footer.html.twig | Github Open Source | Open Source | MIT | null | gestionautoecole | sekhsoukh123 | Twig | Code | 18 | 80 | <footer class="main-footer">
<strong>Copyright © 2020 Sekhsoukh chaymae.</strong>
All rights reserved.
<div class="float-right d-none d-sm-inline-block">
<b>Version</b> 3.0.5
</div>
</footer>
| 1,586 |
https://github.com/generalhenry/generalhenry.github.io/blob/master/openshift-origin-cartridge-nodejs-0.6-1.6.2/info/bin/post_receive_app.sh | Github Open Source | Open Source | Apache-2.0 | 2,014 | generalhenry.github.io | generalhenry | Shell | Code | 24 | 84 | #!/bin/bash
# Add lib/util loading
source "/etc/openshift/node.conf"
source ${CARTRIDGE_BASE_PATH}/abstract/info/lib/util
# Import Environment Variables
for f in ~/.env/*
do
. $f
done
post_start_app $1 true
| 20,946 |
https://github.com/muehringer/timestamp/blob/master/TimeStamp.Infrastructure/Contracts/BestStoriesResponse.cs | Github Open Source | Open Source | MIT | 2,020 | timestamp | muehringer | C# | Code | 55 | 141 | using Newtonsoft.Json;
using System.Collections.Generic;
namespace TimeStamp.Infrastructure.Contracts
{
public class BestStoriesResponse
{
public List<int> IdsStories { get; set; }
[JsonIgnore]
public bool Success { get; set; }
[JsonIgnore]
public BestStoriesErrorRespon... | 6,103 |
https://github.com/octaflop/django-mailchimp/blob/master/setup.py | Github Open Source | Open Source | BSD-3-Clause | 2,021 | django-mailchimp | octaflop | Python | Code | 46 | 170 | from setuptools import setup, find_packages
version = __import__('mailchimp').__version__
setup(
name = 'django-mailchimp',
version = version,
description = 'Mailchimp wrapper for Django, using Mailchimp API 1.3',
author = 'Jonas Obrist et al.',
url = 'http://github.com/divio/django-mailchimp',
... | 9,652 |
https://github.com/ThanhNguyenDn1/mtt/blob/master/FiSSH/fissh-app/app/src/main/java/ro/ioanm/fissh/MainActivity.kt | Github Open Source | Open Source | MIT | 2,021 | mtt | ThanhNguyenDn1 | Kotlin | Code | 466 | 1,423 | package ro.ioanm.fissh
import android.content.Context
import android.content.DialogInterface
import android.content.Intent
import android.os.Bundle
import android.view.Menu
import android.view.MenuItem
import androidx.appcompat.app.AlertDialog
import androidx.appcompat.app.AppCompatActivity
import androidx.navigation.... | 35,038 |
https://github.com/zohirbenslama/code-g/blob/master/code-g-api/trunk/src/main/java/org/abstractmeta/code/g/config/UnitDescriptor.java | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-unknown-license-reference | 2,013 | code-g | zohirbenslama | Java | Code | 174 | 363 | /**
* Copyright 2011 Adrian Witas
*
* 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... | 19,286 |
https://github.com/ScienceParkStudyGroup/dual-luciferase/blob/master/dualluc_scriptV1.r | Github Open Source | Open Source | Apache-2.0 | null | dual-luciferase | ScienceParkStudyGroup | R | Code | 598 | 1,462 | # Dual Luciferase Analysis Pipeline
# Elias Brandorff, SILS Amsterdam Version 1
# import excel data from GloMax luminescence machine
# level 1 calculations: normalize expression to internal control
# plot normalized expression values
# produce a summary table
# level 2 calculations: normalize expression of experimenta... | 15,349 |
https://github.com/Muzammil-khan/Aspose.Email-Python-Dotnet/blob/master/Examples/POP3/GetEmailCountInMailbox.py | Github Open Source | Open Source | MIT | 2,020 | Aspose.Email-Python-Dotnet | Muzammil-khan | Python | Code | 52 | 161 | from aspose.email.clients.pop3 import Pop3Client
from aspose.email.clients import SecurityOptions
def run():
#ExStart: GetEmailCountInMailbox
client = Pop3Client("pop.gmail.com", 995, "username", "password")
client.security_options = SecurityOptions.AUTO
#Get the size of the mailbox, Get mailbox i... | 46,480 |
https://github.com/imarambiocatan/Rust-Web-Programming/blob/master/Chapter10/run_locally/src/views/app/logout.rs | Github Open Source | Open Source | MIT | 2,022 | Rust-Web-Programming | imarambiocatan | Rust | Code | 20 | 104 | use actix_web::HttpResponse;
pub async fn logout() -> HttpResponse {
HttpResponse::Ok()
.content_type("text/html; charset=utf-8")
.body("<html>\
<script>\
localStorage.removeItem('user-token'); \
window.location.replace(document.location.origi... | 5,060 |
https://github.com/phellipealexandre/FuiMultadoAndroid/blob/master/app/src/main/java/com/manolosmobile/fuimultado/models/Car.java | Github Open Source | Open Source | MIT | null | FuiMultadoAndroid | phellipealexandre | Java | Code | 188 | 551 | package com.manolosmobile.fuimultado.models;
import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
@DatabaseTable
public class Car implements Serializable {
@DatabaseField(generatedId = true)
... | 30,653 |
https://github.com/aqquan2017/isNull_RankUp/blob/master/Assets/Scripts/Base/UI/Base/SafeAreaUI.cs | Github Open Source | Open Source | MIT | null | isNull_RankUp | aqquan2017 | C# | Code | 54 | 187 | using UnityEngine;
[RequireComponent(typeof(RectTransform))]
public class SafeAreaUI : MonoBehaviour
{
private void Awake()
{
RectTransform rectTr = GetComponent<RectTransform>();
if (!rectTr)
return;
Rect saveArea = Screen.safeArea;
Vector2 anchorMin = saveArea.po... | 5,778 |
https://github.com/apache/netbeans/blob/master/ide/git/test/unit/src/org/netbeans/modules/git/AbstractGitTestCase.java | Github Open Source | Open Source | Apache-2.0 | 2,023 | netbeans | apache | Java | Code | 830 | 2,424 | /*
* 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 ... | 26,986 |
https://github.com/brucewoods/code_kitchen/blob/master/android/android-mvp-mvvm-flytour-5.2.0/lib_common/src/main/java/com/fly/tour/common/base/BaseActivity.kt | Github Open Source | Open Source | Apache-2.0 | 2,020 | code_kitchen | brucewoods | Kotlin | Code | 509 | 2,075 | package com.fly.tour.common.base
import android.content.pm.ActivityInfo
import android.os.Bundle
import android.support.v7.widget.Toolbar
import android.text.TextUtils
import android.view.View
import android.view.ViewStub
import android.widget.TextView
import com.fly.tour.common.R
import com.fly.tour.common.event.com... | 46,863 |
https://github.com/Stanyke/Wallet-System-API/blob/master/src/utils/authTokenExplorer.js | Github Open Source | Open Source | MIT | null | Wallet-System-API | Stanyke | JavaScript | Code | 79 | 220 | const jwt = require("jsonwebtoken");
const secret = process.env.JWT_SECRET;
exports.generateToken = async (user) => {
const authToken = await jwt.sign({ id: user.id.toString() }, secret, {
expiresIn: "12hrs",
});
return authToken;
};
exports.getToken = async (token) => {
const tokenResult = await jwt.ver... | 41,324 |
https://github.com/ghevinn/Paddle/blob/master/paddle/fluid/operators/softmax_mkldnn_op.cc | Github Open Source | Open Source | ECL-2.0, Apache-2.0 | 2,018 | Paddle | ghevinn | C++ | Code | 337 | 1,095 | /* Copyright (c) 2016 PaddlePaddle Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or... | 41,765 |
https://github.com/GustikS/NeuraLogic/blob/master/Logical/src/main/java/cz/cvut/fel/ida/logic/constructs/template/transforming/TemplateReducing.java | Github Open Source | Open Source | MIT | 2,023 | NeuraLogic | GustikS | Java | Code | 44 | 176 | package cz.cvut.fel.ida.logic.constructs.template.transforming;
import cz.cvut.fel.ida.logic.constructs.example.QueryAtom;
import cz.cvut.fel.ida.logic.constructs.template.Template;
import cz.cvut.fel.ida.setup.Settings;
/**
* Created by gusta on 14.3.17.
*/
public interface TemplateReducing {
<T extends Templa... | 14,685 |
https://github.com/bleudchanel/ProyectoRENI/blob/master/SistemaGestionRENI/Migrations/201808230040158_AddCodigosUpdateInsert.cs | Github Open Source | Open Source | MIT | null | ProyectoRENI | bleudchanel | C# | Code | 68 | 256 | namespace SistemaGestionRENI.Migrations
{
using System;
using System.Data.Entity.Migrations;
public partial class AddCodigosUpdateInsert : DbMigration
{
public override void Up()
{
Sql("Update ClaseConvenio SET Codigo='MAR' WHERE Id = 1");
Sql("Update ClaseCo... | 26,846 |
https://github.com/jeffshek/rescuetime_analyzer/blob/master/utils/rescuetime_api.py | Github Open Source | Open Source | MIT | 2,019 | rescuetime_analyzer | jeffshek | Python | Code | 148 | 577 | from settings import RESCUE_TIME_API_KEY
import datetime
import json
import urllib
import urllib2
RT_URL = "https://www.rescuetime.com/anapi/"
DAILY_SUMMARY_FEED_PAGE = "daily_summary_feed"
ANALYTIC_DATA_PAGE = "data"
ALERTS_PAGE = "alerts"
DAILY_SUMMARY_FEED_URL = RT_URL + DAILY_SUMMARY_FEED_PAGE
ANALYTIC_DATA_URL... | 941 |
https://github.com/ZbutwialyPiernik/flixage/blob/master/core-resource/src/main/java/com/zbutwialypiernik/flixage/entity/TrackStreamId.java | Github Open Source | Open Source | MIT | null | flixage | ZbutwialyPiernik | Java | Code | 35 | 138 | package com.zbutwialypiernik.flixage.entity;
import lombok.*;
import javax.persistence.Embeddable;
import javax.persistence.ManyToOne;
import java.io.Serializable;
@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode
@Embeddable
public class TrackStreamId implements Serializable {
@ManyToOn... | 48,754 |
https://github.com/thandang/SampleMusicPlayer/blob/master/SampleMusicPlayer/Components/AudioPlayer.swift | Github Open Source | Open Source | MIT | 2,017 | SampleMusicPlayer | thandang | Swift | Code | 215 | 624 | //
// AudioPlayer.swift
// SampleMusicPlayer
//
// Created by Than Dang on 6/7/16.
// Copyright © 2016 Than Dang. All rights reserved.
//
import Foundation
import UIKit
import OpenGLES
import AudioToolbox
enum AudioPlayState{
case ReadyToPlay
case Playing
case Pause
case PlayFinished
case Play... | 4,911 |
https://github.com/TomasEkeli/AspNetCore/blob/master/Source/Queries/MvcOptionsAugmenter.cs | Github Open Source | Open Source | MIT | null | AspNetCore | TomasEkeli | C# | Code | 58 | 176 | /*---------------------------------------------------------------------------------------------
* Copyright (c) Dolittle. All rights reserved.
* Licensed under the MIT License. See LICENSE in the project root for license information.
*--------------------------------------------------------------------------------... | 12,896 |
https://github.com/31181025846/demochoHuy/blob/master/ecommerce-spring-reactjs-master (1)/ecommerce-spring-reactjs-master/frontend/src/utils/oauth2/OAuth2RedirectHandler.tsx | Github Open Source | Open Source | MIT | 2,021 | demochoHuy | 31181025846 | TSX | Code | 42 | 117 | import React, {FC} from 'react';
import {Redirect} from 'react-router-dom'
const OAuth2RedirectHandler: FC = () => {
const url: Location = window.location;
const token: string | null = new URLSearchParams(url.search).get('token');
if (token) {
localStorage.setItem("token", token);
}
retur... | 3,316 |
https://github.com/Coding/Coding-Plugin-for-JetBrains-/blob/master/src/org/coding/git/api/CodingNetGistRaw.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | Coding-Plugin-for-JetBrains- | Coding | Java | Code | 272 | 739 | /*
* Copyright 2016 Coding
*
* 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 writin... | 22,179 |
https://github.com/relision/elipp/blob/master/src/term/TermModifier.cpp | Github Open Source | Open Source | BSD-3-Clause, BSD-2-Clause | 2,016 | elipp | relision | C++ | Code | 907 | 2,868 | /**
* @file
* TODO: Describe purpose of file.
*
* @author sprowell@gmail.com
*
* @verbatim
* _ _ _
* ___| (_)___(_) ___ _ __
* / _ \ | / __| |/ _ \| '_ \
* | __/ | \__ \ | (_) | | | |
* \___|_|_|___/_|\___/|_| |_|
* The Elision Term Rewriter
*
* Copyright (c) 2014 by Stacy Prowell (sprowel... | 43,000 |
https://github.com/jung-kurt/htmllua/blob/master/src/script/utility.lua | Github Open Source | Open Source | MIT | null | htmllua | jung-kurt | Lua | Code | 1,341 | 3,279 | util = util or {}
-- Iterator that returns successive hex dump lines from str.
function string.hexdump(str)
local pos = 1
return function()
local hex, newpos
if pos > 0 then
hex, newpos = string.hexline(str, pos)
if hex then
hex = string.format('%05x %s', pos - 1, hex)
pos = ne... | 47,617 |
https://github.com/diegorondao/js_for_devs/blob/master/TypeScript/namespaces/namespaces.js | Github Open Source | Open Source | MIT | 2,022 | js_for_devs | diegorondao | JavaScript | Code | 176 | 420 | "use strict";
// namespace Geometria{
// export namespace Area{
// const PI = 3.14
// export function circunferencia(raio: number): number{
// return PI * Math.pow(raio, 2)
// }
// export function retangulo(base: number, altura: number): number{
// return base * altura
// }
// }
// }... | 9,603 |
https://github.com/MXProgrammingClub/Chem-Helper/blob/master/src/Elements/Flerovium.java | Github Open Source | Open Source | BSD-3-Clause | 2,016 | Chem-Helper | MXProgrammingClub | Java | Code | 22 | 69 | package Elements;
public class Flerovium extends Element
{
public Flerovium()
{
super(114, 14, 7, "Flerovium", "Fl", 289, Double.MAX_VALUE, 0, Double.MAX_VALUE);
}
} | 42,936 |
https://github.com/ycsoft/FatCat-Server/blob/master/NetWork/tcpconnection.h | Github Open Source | Open Source | MIT | 2,022 | FatCat-Server | ycsoft | C | Code | 284 | 1,362 | #ifndef TCPCONNECTION_H
#define TCPCONNECTION_H
#include <boost/bind.hpp>
#include <boost/shared_ptr.hpp>
#include <boost/enable_shared_from_this.hpp>
#include <boost/asio.hpp>
#include <boost/thread.hpp>
#include <boost/lockfree/queue.hpp>
//#include "Game/session.hpp"
#include "./../hf_types.h"
using namespace hf... | 34,538 |
https://github.com/bolatovumar/btcpayserver/blob/master/BTCPayServer/Components/UiExtensionPoint/Default.cshtml | Github Open Source | Open Source | MIT | 2,022 | btcpayserver | bolatovumar | C# | Code | 11 | 36 | @model IEnumerable<string>
@foreach (var partial in Model)
{
await Html.RenderPartialAsync(partial);
}
| 19,745 |
https://github.com/ertugrulozcan/GoogleCloudLogging/blob/master/GoogleCloudLogging.Extensions.AspNetCore/HttpLoggingMiddlewareExtensions.cs | Github Open Source | Open Source | MIT | 2,021 | GoogleCloudLogging | ertugrulozcan | C# | Code | 25 | 100 | using Microsoft.AspNetCore.Builder;
namespace GoogleCloudLogging.Extensions.AspNetCore
{
public static class HttpLoggingMiddlewareExtensions
{
#region Methods
public static IApplicationBuilder UseHttpLogging(this IApplicationBuilder builder)
{
return builder.UseMiddleware<HttpLoggingMiddleware>();
}
#... | 8,105 |
https://github.com/madoos/sequelize-count-performance/blob/master/src/TriggerFunction.js | Github Open Source | Open Source | MIT | null | sequelize-count-performance | madoos | JavaScript | Code | 37 | 112 | 'use strict'
class TriggerFunction {
constructor (Model, options) {
this.Model = Model
this.Model.triggerFunctions = []
this.options = options
this.triggerFunctionName = this.options.triggerFunctionName
this.functionParams = this.options.functionParams
}
static of (...args) {
return new ... | 26,780 |
https://github.com/DeNetPRO/WrappedNFT/blob/master/contracts/tools/ERCMultiSender.sol | Github Open Source | Open Source | MIT | 2,022 | WrappedNFT | DeNetPRO | Solidity | Code | 113 | 380 | // SPDX-License-Identifier: MIT
/*
Created by DeNet
*/
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
contract MultiSender is Ownable {
mapping (address=>boo... | 18,326 |
https://github.com/Pseudopooja/openshift-docs/blob/master/modules/builds-configmaps-use-case-consuming-in-volumes.adoc | Github Open Source | Open Source | Apache-2.0 | null | openshift-docs | Pseudopooja | AsciiDoc | Code | 252 | 625 | // Module included in the following assemblies:
//
//* builds/builds-configmaps.adoc
[id="builds-configmaps-use-case-consuming-in-volumes_{context}"]
= Injecting content into a volume by using ConfigMaps
You can inject content into a volume by using ConfigMaps.
.Example ConfigMap
[source,yaml]
----
apiVersion: v1
ki... | 11,159 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.