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/apache/flink/blob/master/flink-rpc/flink-rpc-core/src/main/java/org/apache/flink/runtime/rpc/RpcEndpoint.java | Github Open Source | Open Source | BSD-3-Clause, OFL-1.1, ISC, MIT, Apache-2.0 | 2,023 | flink | apache | Java | Code | 2,506 | 5,472 | /*
* 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 ... | 41,107 |
https://github.com/deib-polimi/modaclouds-line-benchmark/blob/master/src/main/java/it/polimi/modaclouds/qos/linebenchmark/solver/LineConnectionHandler.java | Github Open Source | Open Source | Apache-2.0 | 2,014 | modaclouds-line-benchmark | deib-polimi | Java | Code | 391 | 1,294 | /**
* Copyright 2014 deib-polimi
* Contact: deib-polimi <giovannipaolo.gibilisco@polimi.it>
*
* 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/l... | 46,661 |
https://github.com/cuckata23/wurfl-data/blob/master/data/sie_sl45_ver1.php | Github Open Source | Open Source | Apache-2.0, MIT | 2,015 | wurfl-data | cuckata23 | PHP | Code | 34 | 135 | <?php
return array (
'id' => 'sie_sl45_ver1',
'fallback' => 'uptext_generic',
'capabilities' =>
array (
'model_name' => 'SL45',
'brand_name' => 'Siemens',
'midi_monophonic' => 'true',
'max_deck_size' => '1800',
'ringtone_midi_monophonic' => 'true',
'streaming_real_media' => 'none',
),... | 20,504 |
https://github.com/Internship-rn/verticals-backend/blob/master/src/modules/comment/comment.spec.js | Github Open Source | Open Source | MIT | 2,021 | verticals-backend | Internship-rn | JavaScript | Code | 2,540 | 9,405 | const { build } = require('../../server');
const { Knex } = require('../../knex');
const { Generator } = require('../../../tests/generator');
const { Helper } = require('../../../tests/helper');
const { routes } = require('../../../tests/routes');
const { FastifyRequest } = require('../../../tests/request');
let knex;... | 22,825 |
https://github.com/kevinresol/haxe-js-kit/blob/master/js/node/Dgram.hx | Github Open Source | Open Source | MIT | 2,015 | haxe-js-kit | kevinresol | Haxe | Code | 60 | 318 | package js.node;
import haxe.io.Bytes;
import js.node.events.EventEmitter;
import js.support.Callback;
/* UDP ........................................ */
/*
Emits: message,listening,close
*/
typedef DgramSocket = { > EventEmitter,
function send(buf:Buffer,offset:Int,length:Int,port:Int,address:String,cb:Callba... | 49,564 |
https://github.com/max-in-bc/garden-fresh-box-beta/blob/master/GFB/gardenfreshbox/public/js/pickupDates.js | Github Open Source | Open Source | MIT | 2,018 | garden-fresh-box-beta | max-in-bc | JavaScript | Code | 244 | 885 | //on page load:
// update table with list of already created dates
$(window).load(function(){
$.get('/sales/dates', {'dateID':'*', "staticTable":"true"}, function(response) {
$("#list").html(response);
addRowHandlers("datesTable", null, load_date);
});
$("#submit").click(manageDates);
});
//manageDates - if ne... | 39,947 |
https://github.com/junqueira/examples/blob/master/assemblyscript-wasm-package/src/imports.js | Github Open Source | Open Source | MIT | 2,020 | examples | junqueira | JavaScript | Code | 66 | 174 | function rgb2bgr(rgb) {
return ((rgb >>> 16) & 0xff) | (rgb & 0xff00) | (rgb & 0xff) << 16;
}
function createImports() {
return {
env: {
memory: new WebAssembly.Memory({initial: 10}),
},
config: {
BGR_ALIVE : rgb2bgr(0xD392E6) | 1, // little endian, LSB must be set
BGR_DEAD : r... | 42,001 |
https://github.com/bitwize/rscheme/blob/master/lib/rs/backend/c/module.scm | Github Open Source | Open Source | TCL | 2,022 | rscheme | bitwize | Scheme | Code | 165 | 607 | #|------------------------------------------------------------*-Scheme-*--|
| File: rs/backend/c/module.scm
|
| Copyright (C)1998 Donovan Kolbly <d.kolbly@rscheme.org>
| as part of the RScheme project, licensed for free use.
| See <http://www.rscheme.org/> for the latest info.
|
| File ... | 21,325 |
https://github.com/wggzl/smxf/blob/master/smxf.sql | Github Open Source | Open Source | MIT | null | smxf | wggzl | SQL | Code | 922 | 3,247 | /*
Navicat MySQL Data Transfer
Source Server : phpstudyMySQL
Source Server Version : 50553
Source Host : localhost:3306
Source Database : smxf
Target Server Type : MYSQL
Target Server Version : 50553
File Encoding : 65001
Date: 2018-11-05 18:33:27
*/
SET FOREIGN_KEY_CHECKS=0;
-- ... | 3,133 |
https://github.com/euforic/backend-base/blob/master/gql/graph/model/models_gen.go | Github Open Source | Open Source | MIT | 2,021 | backend-base | euforic | Go | Code | 116 | 409 | // Code generated by github.com/99designs/gqlgen, DO NOT EDIT.
package model
import (
"github.com/euforic/backend-base/pkg/gqltypes"
)
type CreateTodoInput struct {
Title string `json:"title"`
Body string `json:"body"`
Author string `json:"author"`
}
type OffsetPageInfo struct {
TotalResults int `json:"t... | 49,102 |
https://github.com/nmccready/cfn-include/blob/master/bin/cli.js | Github Open Source | Open Source | MIT | null | cfn-include | nmccready | JavaScript | Code | 413 | 1,250 | #!/usr/bin/env node
var _ = require('lodash'),
yaml = require('../lib/yaml'),
exec = require('child_process').execSync,
Client = require('../lib/cfnclient'),
package = require('../package.json'),
replaceEnv = require('../lib/replaceEnv');
env = process.env,
opts = require('yargs').command(
'$0 [path]... | 5,634 |
https://github.com/mdfh/Flick-Android/blob/master/app/src/main/java/com/github/mdfh/flick/data/remote/api_repository.kt | Github Open Source | Open Source | MIT | null | Flick-Android | mdfh | Kotlin | Code | 323 | 921 | /*
* Copyright (C) 2017 MINDORKS NEXTGEN PRIVATE LIMITED
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://mindorks.com/license/apache-v2
*
* Unless required by a... | 26,449 |
https://github.com/Almenon/couchers/blob/master/app/backend/src/couchers/email/__init__.py | Github Open Source | Open Source | MIT | 2,020 | couchers | Almenon | Python | Code | 323 | 962 | from pathlib import Path
import yaml
from jinja2 import Environment, FileSystemLoader, Template
from markdown2 import markdown
from couchers import config
from couchers.email.dev import print_dev_email
from couchers.email.smtp import send_smtp_email
loader = FileSystemLoader(Path(__file__).parent / ".." / ".." / "..... | 3,336 |
https://github.com/pomadchin/owm-jmapprojlib/blob/master/build.sbt | Github Open Source | Open Source | Apache-2.0 | null | owm-jmapprojlib | pomadchin | Scala | Code | 68 | 291 | name := "owm-jmapprojlib"
organization := "com.owm"
description := "Jmapprojlib fork with Datum conversion support and a \"latlong\" projection similar to PROJ.4."
homepage := Some(url("https://github.com/pomadchin/owm-jmapprojlib"))
scalaVersion := "2.11.5"
version := "1.0"
publishMavenStyle := true
bintrayPubl... | 15,052 |
https://github.com/m-b-e/PISA_Revisited/blob/master/1_data_preparation.py | Github Open Source | Open Source | MIT | null | PISA_Revisited | m-b-e | Python | Code | 741 | 2,514 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Fri Apr 22 14:56:52 2022
@author: Jo&Max
"""
#%% import packages
import pandas as pd
import runpy
import numpy as np
import matplotlib.pyplot as plt
#%% call setup file
runpy.run_path(path_name = '0_setup.py')
# imports sys, sklearn, numpy, os, matplotl... | 41,556 |
https://github.com/Macsch15/Aurora/blob/master/app/Tricolore/Tests/Fixtures/Templates/TestAsset.html.twig | Github Open Source | Open Source | MIT | null | Aurora | Macsch15 | Twig | Code | 4 | 10 | {{ assets('css', 'foo') }} | 5,172 |
https://github.com/gregeld96/rhb-mobile-flutter/blob/master/lib/screens/setting/update_data.dart | Github Open Source | Open Source | MIT | 2,021 | rhb-mobile-flutter | gregeld96 | Dart | Code | 261 | 1,247 | import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:rhb_mobile_flutter/controllers/setting/update_data.dart';
import 'package:rhb_mobile_flutter/utils/themes.dart';
import 'package:rhb_mobile_flutter/widgets/appbar.dart';
import 'package:rhb_mobile_flutter/widgets/button.dart';
import... | 5,880 |
https://github.com/gnunn1/product-catalog-fuse/blob/master/fuse-impl/src/main/java/com/redhat/demo/routes/DeleteProduct.java | Github Open Source | Open Source | Apache-2.0 | null | product-catalog-fuse | gnunn1 | Java | Code | 30 | 148 | package com.redhat.demo.routes;
import java.sql.SQLException;
import org.apache.camel.builder.RouteBuilder;
import org.springframework.stereotype.Component;
@Component
public class DeleteProduct extends RouteBuilder {
@Override
public void configure() throws Exception {
onException(SQLException.clas... | 9,087 |
https://github.com/kit-transue/software-emancipation-discover/blob/master/model_server/gala/src/scanner.cxx | Github Open Source | Open Source | BSD-2-Clause | 2,015 | software-emancipation-discover | kit-transue | C++ | Code | 520 | 1,340 | /*************************************************************************
* Copyright (c) 2015, Synopsys, Inc. *
* All rights reserved. *
* *
* Redistribution and... | 24,888 |
https://github.com/hwang-pku/Strata/blob/master/modules/collect/src/test/java/com/opengamma/strata/collect/array/IntArrayTest.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | Strata | hwang-pku | Java | Code | 1,447 | 6,370 | /*
* Copyright (C) 2016 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
package com.opengamma.strata.collect.array;
import static com.opengamma.strata.collect.TestHelper.coverImmutableBean;
import static org.assertj.core.api.Assertions.assertThat;
import... | 33,437 |
https://github.com/GenesysPureConnect/VidyoIntegration/blob/master/src/VidyoIntegration/VidyoComponents/VidyoService/Service References/VidyoPortalAdminService/Reference.cs | Github Open Source | Open Source | MIT | 2,018 | VidyoIntegration | GenesysPureConnect | C# | Code | 17,056 | 116,926 | //------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.34014
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//--... | 28,545 |
https://github.com/jonyboy2000/ImeSharp/blob/master/ImeSharp/Native/NativeMethodsIMM32.cs | Github Open Source | Open Source | MIT | 2,021 | ImeSharp | jonyboy2000 | C# | Code | 646 | 2,035 | using System;
using System.Runtime.InteropServices;
namespace ImeSharp.Native
{
public partial class NativeMethods
{
#region Constants
public const int WM_IME_SETCONTEXT = 0x0281;
public const int WM_IME_NOTIFY = 0x0282;
public const int WM_IME_CONTROL = 0x0283;
public ... | 50,856 |
https://github.com/davidbertsch/atom/blob/master/packages/exception-reporting/lib/main.js | Github Open Source | Open Source | MIT | 2,021 | atom | davidbertsch | JavaScript | Code | 106 | 373 | /** @babel */
import {CompositeDisposable} from 'atom'
let reporter
function getReporter () {
if (!reporter) {
const Reporter = require('./reporter')
reporter = new Reporter()
}
return reporter
}
export default {
activate() {
this.subscriptions = new CompositeDisposable()
if (!atom.config.g... | 27,886 |
https://github.com/YoduYodu/school-projects/blob/master/school-projects/principals-of-software-development/trip-advisor-frontend/src/signin/SignIn.js | Github Open Source | Open Source | Apache-2.0 | 2,022 | school-projects | YoduYodu | JavaScript | Code | 191 | 753 | import React from 'react';
import '../Page.css';
import Cookies from 'js-cookie';
export default class SignIn extends React.Component {
constructor(props) {
super(props);
this.state = {
username: '',
password: '',
};
this.getRequest = this.getRequest.bind(thi... | 14,151 |
https://github.com/AAI-USZ/FixJS/blob/master/input/100+/before/14dfd5513d5fbaf89eae9b425157e50ec572480b_0_1.js | Github Open Source | Open Source | MIT | 2,022 | FixJS | AAI-USZ | JavaScript | Code | 62 | 206 | function() {
this.radius = 2.5;
this.position = new Vector(100, 100);
this.velocity = new Vector(0, 0);
this.acceleration = new Vector(0, 0);
this.speedLimit = 4;
this.orientation = { 'alpha': 0, 'beta': 0, 'gamma': 0 };
var self = this;
window.addEventListener('deviceorientation', function(event) {
... | 10,272 |
https://github.com/laxmanvijay/QDM-QICore-Conversion/blob/master/MeasureAuthoringTool/src/main/java/mat/server/logging/RequestResponseLoggingFilter.java | Github Open Source | Open Source | CC0-1.0 | 2,022 | QDM-QICore-Conversion | laxmanvijay | Java | Code | 332 | 1,249 | package mat.server.logging;
import mat.server.LoggedInUserUtil;
import org.apache.commons.io.IOUtils;
import org.apache.commons.lang3.StringUtils;
import org.apache.commons.logging.Log;
import org.slf4j.MDC;
import org.springframework.http.HttpStatus;
import javax.servlet.Filter;
import javax.servlet.FilterChain;
imp... | 8,386 |
https://github.com/QueremosAprobar/COLEGIO/blob/master/app/Http/Controllers/AulaController.php | Github Open Source | Open Source | MIT | 2,018 | COLEGIO | QueremosAprobar | PHP | Code | 277 | 1,058 | <?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Http\Requests;
use Illuminate\Support\Facades\DB;
//use App\Http\Requests\AulaFormRequest;
use App\aula;
class AulaController extends Controller
{
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Resp... | 3,694 |
https://github.com/gsakkas/nate/blob/master/data/sp14_all/0353.ml | Github Open Source | Open Source | BSD-3-Clause | 2,019 | nate | gsakkas | OCaml | Code | 76 | 248 |
let rec wwhile (f,b) =
let func = f b in
let (value,boo) = func in if boo then wwhile (func, boo) else value;;
(* fix
let rec wwhile (f,b) =
let func = f b in
let (value,boo) = func in if boo then wwhile (f, value) else value;;
*)
(* changed spans
(4,49)-(4,53)
f
VarG
(4,55)-(4,58)
value
VarG
*)
(* typ... | 13,628 |
https://github.com/qaware/findfacts/blob/master/common-da-solr/src/test/scala/de/qaware/findfacts/common/solr/MapperTest.scala | Github Open Source | Open Source | MIT | 2,021 | findfacts | qaware | Scala | Code | 190 | 693 | package de.qaware.findfacts.common.solr
import de.qaware.findfacts.common.da.api.Variant.Discriminator
import de.qaware.findfacts.common.da.api.{ChildrenField, MultiValuedField, SingleValuedField}
import de.qaware.findfacts.common.utils.DefaultEnum
import enumeratum.EnumEntry
import io.circe.generic.auto._
import org.... | 10,476 |
https://github.com/YosysHQ/yosys/blob/master/techlibs/gatemate/inv_map.v | Github Open Source | Open Source | ISC, MIT, LicenseRef-scancode-other-copyleft, BSD-2-Clause | 2,023 | yosys | YosysHQ | Verilog | Code | 27 | 75 | // Any inverters not folded into LUTs are mapped to a LUT of their own
module \$__CC_NOT (input A, output Y);
CC_LUT1 #(.INIT(2'b01)) _TECHMAP_REPLACE_ (.I0(A), .O(Y));
endmodule
| 23,246 |
https://github.com/vpatzdorf/queiroz.js/blob/master/src/js/strings.js | Github Open Source | Open Source | MIT | 2,022 | queiroz.js | vpatzdorf | JavaScript | Code | 38 | 134 |
/*!
* Queiroz.js: strings.js
* JavaScript Extension for Dimep Kairos
* https://github.com/viniciusknob/queiroz.js
*/
(function(Queiroz) {
/* Class Definition */
var Strings = function(key) {
return Strings._[key];
};
Strings._ = JSON.parse('__strings__');
/* Module Definition */
... | 28,884 |
https://github.com/VasilKalchev/ExponentMap/blob/master/doc/Doxygen/html/search/files_0.js | Github Open Source | Open Source | MIT | 2,021 | ExponentMap | VasilKalchev | JavaScript | Code | 5 | 45 | var searchData=
[
['exponentmap_2eh',['ExponentMap.h',['../_exponent_map_8h.html',1,'']]]
];
| 46,229 |
https://github.com/ksangha1/cpsc410project/blob/master/src/models/POSITION.java | Github Open Source | Open Source | MIT | null | cpsc410project | ksangha1 | Java | Code | 129 | 419 | package models;
import java.lang.reflect.Array;
import java.util.ArrayList;
import java.util.Arrays;
public class POSITION {
String base;
String dir;
String node;
static ArrayList<String> validDirs = new ArrayList<>();
public POSITION(){
validDirs.add("N");
validDirs.add("S");
... | 5,401 |
https://github.com/WorldWindEarth/WorldWindJava/blob/master/test/gov/nasa/worldwind/ogc/kml/KMLExportTest.java | Github Open Source | Open Source | Apache-2.0, MIT | 2,022 | WorldWindJava | WorldWindEarth | Java | Code | 1,043 | 5,312 | /*
* Copyright 2006-2009, 2017, 2020 United States Government, as represented by the
* Administrator of the National Aeronautics and Space Administration.
* All rights reserved.
*
* The NASA World Wind Java (WWJ) platform is licensed under the Apache License,
* Version 2.0 (the "License"); you may not use this f... | 26,503 |
https://github.com/DescartesNetwork/sen-lightning-tunnel/blob/master/src/os/store/page.reducer.ts | Github Open Source | Open Source | MIT | 2,022 | sen-lightning-tunnel | DescartesNetwork | TypeScript | Code | 607 | 1,627 | import { createAsyncThunk, createSlice } from '@reduxjs/toolkit'
import { account } from '@senswap/sen-js'
import PDB from 'shared/pdb'
import configs from 'os/configs'
import { env } from 'shared/runtime'
const {
register: { senreg, extra, devAppId },
} = configs
/**
* Interface & Utility
*/
export type PageSt... | 17,802 |
https://github.com/naromero77/MCT/blob/master/mct/m_SparseMatrix.F90 | Github Open Source | Open Source | BSD-2-Clause | 2,020 | MCT | naromero77 | Fortran Free Form | Code | 10,228 | 26,868 | !~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
! Math and Computer Science Division, Argonne National Laboratory !
!-----------------------------------------------------------------------
! CVS $Id$
! CVS $Name$
!BOP -------------------------------------------------------------------
!
! ... | 33,098 |
https://github.com/FreedomFries37/AutoMakeFile/blob/master/AutoMakeFile/core/input/resource_collectors/RegexDirectoryCollector.cs | Github Open Source | Open Source | MIT | null | AutoMakeFile | FreedomFries37 | C# | Code | 59 | 175 | using System.Collections.Generic;
using System.IO;
using System.Text.RegularExpressions;
namespace AutoMakeFile.core.input.resource_collectors {
// TODO: Implement regex collection within a directory
public class RegexDirectoryCollector : DirectoryCollector{
public Regex pattern { get; }
public RegexDirectory... | 20,135 |
https://github.com/fgretief/SoftPosit.Net/blob/master/src/SoftPosit.Net/Posits/Internal/i32_to_p64.cs | Github Open Source | Open Source | MIT | null | SoftPosit.Net | fgretief | C# | Code | 350 | 848 | // SPDX-License-Identifier: MIT
using System.Diagnostics;
namespace System.Numerics.Posits.Internal
{
using posit64_t = Posit64;
internal static partial class Native
{
public static posit64_t i32_to_p64(in int value)
{
if (value == int.MinValue)
{
... | 31,721 |
https://github.com/LukeAndersonTrocme/genome_simulations/blob/master/misc/test_txt_pedigree.py | Github Open Source | Open Source | MIT | 2,023 | genome_simulations | LukeAndersonTrocme | Python | Code | 109 | 357 | import os
import pandas as pd
import numpy as np
import msprime
chromosome = 22
out_file = "./test_run_chr%s.ts" % chromosome
# define appropriate mutation rate
mutation_rate = 2.36e-8 # From Gutenkunst 2009
# define appropriate demography model
demography = msprime.Demography._ooa_model()
# recombination map from s... | 44,844 |
https://github.com/membase/ep-engine/blob/master/management/clitool.py | Github Open Source | Open Source | Apache-2.0 | 2,022 | ep-engine | membase | Python | Code | 245 | 842 | import optparse
import socket
import sys
import mc_bin_client
class CliTool(object):
def __init__(self, extraUsage=""):
self.cmds = {}
self.flags = {}
self.extraUsage = extraUsage.strip()
self.parser = optparse.OptionParser(
usage="%prog host[:dataport] command [option... | 10,528 |
https://github.com/rcore-os/arceos/blob/master/crates/memory_addr/src/lib.rs | Github Open Source | Open Source | Apache-2.0, AGPL-3.0-only, LicenseRef-scancode-mulanpubl-2.0, AGPL-3.0-or-later, GPL-3.0-only, MulanPSL-2.0, LicenseRef-scancode-unknown-license-reference, LicenseRef-scancode-mulanpsl-2.0-en | 2,023 | arceos | rcore-os | Rust | Code | 1,199 | 3,176 | #![no_std]
#![feature(const_mut_refs)]
#![doc = include_str!("../README.md")]
use core::fmt;
use core::ops::{Add, AddAssign, Sub, SubAssign};
/// The size of a 4K page (4096 bytes).
pub const PAGE_SIZE_4K: usize = 0x1000;
/// Align address downwards.
///
/// Returns the greatest `x` with alignment `align` so that `x... | 2,374 |
https://github.com/thanhcuong1990/react-native-SDWebImage/blob/master/ios/RNSDWebImage/WebImageView.h | Github Open Source | Open Source | MIT | 2,022 | react-native-SDWebImage | thanhcuong1990 | C | Code | 54 | 246 | #import <UIKit/UIKit.h>
#import <SDWebImage/UIImageView+WebCache.h>
#import <SDWebImage/SDWebImageDownloader.h>
#import <React/RCTComponent.h>
#import <React/RCTResizeMode.h>
#import "WebImageSource.h"
#import <FLAnimatedImage/FLAnimatedImageView.h>
@interface WebImageView : FLAnimatedImageView
@property (nonatomic, ... | 35,596 |
https://github.com/definiteIymaybe/website-screenshot/blob/master/src/components/form/CheckBox.vue | Github Open Source | Open Source | MIT | 2,020 | website-screenshot | definiteIymaybe | Vue | Code | 8 | 37 | <template functional>
<FontAwesomeIcon icon="check-circle" size="lg" class="text-primary-400" />
</template>
| 785 |
https://github.com/aytugeren/AspNetMicroservices/blob/master/src/Services/Ordering/Ordering.Infrastructure/Persistence/OrderContextSeed.cs | Github Open Source | Open Source | MIT | null | AspNetMicroservices | aytugeren | C# | Code | 116 | 398 | using Microsoft.Extensions.Logging;
using Ordering.Domain.Entities;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Ordering.Infrastructure.Persistence
{
public class OrderContextSeed
{
public static async Task SeedAsync(Ord... | 5,700 |
https://github.com/kidharb/tsee/blob/master/mpeg2psi/_known_tables.py | Github Open Source | Open Source | Unlicense | 2,020 | tsee | kidharb | Python | Code | 1,407 | 6,156 | SAMPLE_CAT = [
0x01, 0xB0, 0x0F, 0xFF, 0xFF, 0xC1, 0x00, 0x00, 0x09,
0x04, 0x06, 0x06, 0x05, 0x00, 0x90, 0x64, 0xC6, 0xD0]
SAMPLE_PAT = [
0x00, 0xB0, 0x61, 0x00, 0x10, 0xE1, 0x00, 0x00, 0x06, 0x45, 0xE7, 0xC0,
0x06, 0x47, 0xE7, 0x43, 0x06, 0x49, 0xE7, 0x75, 0x06, 0x4D, 0xE7, 0xF2,
0x06, 0x4E, 0xE6,... | 11,761 |
https://github.com/littleweaver/django-argus/blob/master/argus/config.rb | Github Open Source | Open Source | BSD-3-Clause | null | django-argus | littleweaver | Ruby | Code | 28 | 80 | # Configuration file for Compass
require 'bootstrap-sass'
css_dir = "static/argus/css"
sass_dir = "sass"
images_dir = "images"
javascripts_dir = "js"
relative_assets = true
line_comments = false
preferred_syntax = :sass
| 25,286 |
https://github.com/thiagomarquesrocha/tenebris/blob/master/src/main/java/control/learning/me/bazhenov/maxent/Main.java | Github Open Source | Open Source | Apache-2.0 | 2,016 | tenebris | thiagomarquesrocha | Java | Code | 30 | 104 | package control.learning.me.bazhenov.maxent;
import java.io.IOException;
import java.sql.SQLException;
public class Main {
public static void main(String[] args) throws InstantiationException, IllegalAccessException, ClassNotFoundException, SQLException, IOException {
MaxEnt max = new MaxEnt();
max.Metodo(54)... | 3,089 |
https://github.com/sahmed62/cputime-estimation/blob/master/perf-stat-out/dual-core/matrix-add-l2-matrix-mult-l1-9sec-1.csv.raw | Github Open Source | Open Source | BSD-3-Clause | 2,020 | cputime-estimation | sahmed62 | Raw token data | Code | 101 | 1,682 | # started on Wed Nov 18 09:09:21 2020
S0-D0-C0;1;9026566328;ns;duration_time;9026566328;100.00;;
S0-D0-C0;2;1011907346;;cpu-cycles;11279621216;62.50;;
S0-D0-C0;2;533529468;;instructions;11281122899;62.51;0.53;insn per cycle
S0-D0-C0;2;108527357;;branch-instructions;11281000749;62.51;;
S0-D0-C0;2;3480915;;branch-misses... | 31,963 |
https://github.com/jonasraoni/hackerrank/blob/master/data-structures/arrays/matchingStrings.js | Github Open Source | Open Source | MIT | null | hackerrank | jonasraoni | JavaScript | Code | 55 | 120 | //+ Jonas Raoni Soares Silva
//@ http://raoni.org
function matchingStrings(strings, queries) {
// I would use a map, but let it be an array exercise...
const r = [];
for (const query of queries) {
let count = 0;
for (const s of strings) {
if (s === query)
++count;
}
r.push(count);
}
return r;
} | 29,727 |
https://github.com/anjone7/Takin-amdb-1/blob/master/amdb-app/src/main/java/io/shulie/amdb/service/impl/MachineMetricsReportServiceImpl.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | Takin-amdb-1 | anjone7 | Java | Code | 345 | 1,802 | /*
* Copyright 2021 Shulie Technology, Co.Ltd
* Email: shulie@shulie.io
* 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 r... | 8,567 |
https://github.com/hwong0305/ts-tabtracker/blob/master/client/src/components/TablePaginationActions.tsx | Github Open Source | Open Source | MIT | null | ts-tabtracker | hwong0305 | TypeScript | Code | 241 | 864 | import { Theme } from '@material-ui/core';
import IconButton from '@material-ui/core/IconButton';
import { createStyles, withStyles, WithStyles } from '@material-ui/core/styles';
import FirstPageIcon from '@material-ui/icons/FirstPage';
import KeyboardArrowLeft from '@material-ui/icons/KeyboardArrowLeft';
import Keyboa... | 6,497 |
https://github.com/staafl/dotnet-bclext/blob/master/to-integrate/libcs_staaflutil/Classes/_Misc/Shared_Mem.cs | Github Open Source | Open Source | MIT | 2,021 | dotnet-bclext | staafl | C# | Code | 188 | 641 |
namespace Fairweather.Service.Classes
{
using System;
using System.Runtime.InteropServices;
[StructLayout(LayoutKind.Sequential)]
unsafe struct Running_Apps_Id
{
public fixed int open_instances[100];
public fixed int pids[100];
}
// Todo: write this in C++
// Source: ... | 31,384 |
https://github.com/TimeWarpEngineering/herc-in-blazorstate/blob/master/Source/Herc.Pwa.Server/Features/Web3/NftCreator/MintNft/MintNftController.cs | Github Open Source | Open Source | Unlicense | 2,019 | herc-in-blazorstate | TimeWarpEngineering | C# | Code | 30 | 167 | namespace Herc.Pwa.Server.Features.Web3.NftCreator.MintNft
{
using Herc.Pwa.Server.Features.Base;
using Herc.Pwa.Shared.Features.Web3.NftCreator.MintNft;
using Microsoft.AspNetCore.Mvc;
using System.Threading.Tasks;
[Route(MintNftRequest.Route)]
public class MintNftController : BaseController<MintNftReque... | 30,953 |
https://github.com/ashish-amarnath/distributed-data-generator/blob/master/src/main/java/com/igeekinc/util/perf/MBPerSecondLog4jStopWatch.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | distributed-data-generator | ashish-amarnath | Java | Code | 224 | 617 | /*
* Copyright 2002-2014 iGeek, Inc.
* 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 appli... | 45,632 |
https://github.com/Tomko10/pyecsca/blob/master/pyecsca/sca/trace_set/chipwhisperer.py | Github Open Source | Open Source | MIT | 2,022 | pyecsca | Tomko10 | Python | Code | 232 | 789 | from configparser import ConfigParser
from itertools import zip_longest
from os.path import exists, isfile, join, basename, dirname
from pathlib import Path
from typing import Union, BinaryIO
import numpy as np
from public import public
from .base import TraceSet
from ..trace import Trace
@public
class ChipWhispere... | 4,621 |
https://github.com/freelife1191/mybatisplus-spring-boot/blob/master/src/main/java/com/baomidou/springboot/controller/UserController.java | Github Open Source | Open Source | Apache-2.0 | null | mybatisplus-spring-boot | freelife1191 | Java | Code | 29 | 110 | package com.baomidou.springboot.controller;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
/**
* <p>
* 用户表 前端控制器
* </p>
*
* @author CuiCan
* @since 2017-06-10
*/
@Controller
@RequestMapping("/user")
public class UserController {
}
| 29,740 |
https://github.com/alpharameeztech/eCatalog/blob/master/resources/js/components/admin/Flash.vue | Github Open Source | Open Source | MIT | null | eCatalog | alpharameeztech | Vue | Code | 113 | 349 | <template>
<div v-show="show">
<v-alert dense :type="type">
{{ body }}
</v-alert>
</div>
</template>
<script>
export default {
props: ['message'],
data(){
return {
body: '',
show: false,
type: 'success'... | 11,610 |
https://github.com/Moe82/TTP-Capstone-Front-End/blob/master/src/back-end-url.js | Github Open Source | Open Source | ISC | null | TTP-Capstone-Front-End | Moe82 | JavaScript | Code | 7 | 30 | const BACK_END = "https://attendancetracker-backend.herokuapp.com"
export default BACK_END | 43,846 |
https://github.com/jackm97/mandelbrot_explorer_CUDA/blob/master/shaders/colormap-shaders-master/include/colormap/private/IDL/CB-Spectral.h | Github Open Source | Open Source | MIT | 2,022 | mandelbrot_explorer_CUDA | jackm97 | C | Code | 525 | 2,040 | /**
* This file was automatically created with "create_c++_header.sh".
* Do not edit manually.
*/
#pragma once
#include "../../colormap.h"
namespace colormap
{
namespace IDL
{
class CBSpectral : public Colormap
{
private:
class Wrapper : public WrapperBase
{
public:
#ifdef float
#error "TODO"
#endif
#d... | 28,131 |
https://github.com/MoncadaIngris/Aesthetic-Style/blob/master/database/factories/ProductoFactory.php | Github Open Source | Open Source | MIT | null | Aesthetic-Style | MoncadaIngris | PHP | Code | 39 | 200 | <?php
use App\Models\Producto;
namespace Database\Factories;
use Illuminate\Database\Eloquent\Factories\Factory;
class ProductoFactory extends Factory
{
/**
* Define the model's default state.
*
* @return array
*/
public function definition()
{
return [
'precio'=>$t... | 39,471 |
https://github.com/parkerjj/Leetcode/blob/master/200. Number of Islands/200. Number of Islands/Solution.m | Github Open Source | Open Source | Apache-2.0 | 2,017 | Leetcode | parkerjj | Objective-C | Code | 203 | 656 | //
// Solution.m
// 200. Number of Islands
//
// Created by Peigen.Liu on 2017/9/26.
// Copyright © 2017年 Leetcode. All rights reserved.
//
#import "Solution.h"
//Given a 2d grid map of '1's (land) and '0's (water), count the number of islands. An island is surrounded by water and is formed by connecting adjacen... | 43,551 |
https://github.com/ICTU/quality-time/blob/master/components/server/src/shared/model/subject.py | Github Open Source | Open Source | Apache-2.0 | 2,022 | quality-time | ICTU | Python | Code | 244 | 699 | """A class that represents a subject."""
from typing import TYPE_CHECKING, Optional
from shared.utils.type import SubjectId
from .measurement import Measurement
from .metric import Metric
if TYPE_CHECKING:
from .report import Report
class Subject(dict):
"""Class representing a subject."""
def __init... | 14,972 |
https://github.com/aabdulwahed/keeper-contracts/blob/master/contracts/SLA/ServiceAgreement.sol | Github Open Source | Open Source | Apache-2.0 | null | keeper-contracts | aabdulwahed | Solidity | Code | 1,290 | 3,871 | pragma solidity 0.4.25;
import 'openzeppelin-solidity/contracts/cryptography/ECDSA.sol';
/**
@title Ocean Protocol Service Level Agreement
@author Team: Ahmed Ali, Samer Sallam
*/
contract ServiceAgreement {
struct ServiceAgreementTemplate {
bool state; // 1 -> Available 0 -> revoked template
ad... | 22,255 |
https://github.com/vrk-kpa/xroad-catalog-collector/blob/master/src/main/java/fi/vrk/xroad/monitor/elasticsearch/EnvMonitorDataStorageDaoImpl.java | Github Open Source | Open Source | MIT | null | xroad-catalog-collector | vrk-kpa | Java | Code | 450 | 1,472 | /**
* The MIT License
* Copyright (c) 2017, Population Register Centre (VRK)
*
* 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 righ... | 11,714 |
https://github.com/GIOVANNIRAOULGALLO/presto.it/blob/master/resources/views/announce/create.blade.php | Github Open Source | Open Source | MIT | null | presto.it | GIOVANNIRAOULGALLO | PHP | Code | 147 | 793 | <x-layout>
<x-slot name="title">{{__('ui.insert')}}</x-slot>
<div class="container">
<div class="row justify-content-center text-center my-4">
<div class="col-12 col-md-6">
<h1 class="text-first-color">{{__('ui.insert')}}</h1>
</div>
@if ($errors->a... | 11,856 |
https://github.com/hatlabs/SH-ESP32-hardware/blob/master/UI.sch | Github Open Source | Open Source | CC0-1.0 | 2,022 | SH-ESP32-hardware | hatlabs | Eagle | Code | 1,235 | 2,984 | EESchema Schematic File Version 4
EELAYER 30 0
EELAYER END
$Descr A4 11693 8268
encoding utf-8
Sheet 6 10
Title "Sailor Hat with ESP32"
Date "2021-04-26"
Rev "1.0.0"
Comp "Hat Labs Ltd"
Comment1 "https://creativecommons.org/licenses/by-sa/4.0"
Comment2 "To view a copy of this license, visit "
Comment3 "SH-ESP32 is lice... | 23,359 |
https://github.com/Magomedali/yiiproject/blob/master/common/components/pusher/services/BaseService.php | Github Open Source | Open Source | BSD-3-Clause | null | yiiproject | Magomedali | PHP | Code | 126 | 302 | <?php
namespace pusher\services;
class BaseService
{
/**
* @var string push service id.
* This value mainly used as HTTP request parameter.
*/
private $_id;
/**
* @var string push service name.
* This value may be used in database records, CSS files and so on.
*/
private ... | 34,587 |
https://github.com/leeyuesang/laravel-server-side-rendering-examples/blob/master/resources/assets/js/shared/constant.js | Github Open Source | Open Source | MIT | null | laravel-server-side-rendering-examples | leeyuesang | JavaScript | Code | 55 | 158 | // Key flags
export const IS_ON_DEVELOPMENTS = true;
export const DefaultCorsSetting = Object.freeze({
headers: {
'Content-Type': 'application/x-www-form-urlencoded;charset=utf-8;',
},
credentials: "include",
});
// Enumerations
export const CommentType = Object.freeze({
BLOG_POST: "BLOG_POST"... | 8,268 |
https://github.com/nhatphuongb1/Flutter-Tiktok-Videos/blob/master/lib/data/get_data.dart | Github Open Source | Open Source | MIT | 2,022 | Flutter-Tiktok-Videos | nhatphuongb1 | Dart | Code | 251 | 2,097 | import 'package:cachedrun/model/video.dart';
import 'package:cloud_firestore/cloud_firestore.dart';
import 'package:flutter/material.dart';
var data = [
{
"id": "2",
"comments": "21",
"likes": "3.2k",
"song_name": "Song Title 1 - Artist 1",
"url":
"https://firebasestorage.googleapis.com/v... | 18,878 |
https://github.com/enrique2128/crudLaravel/blob/master/app/Models/Alumno.php | Github Open Source | Open Source | MIT | null | crudLaravel | enrique2128 | PHP | Code | 30 | 124 | <?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Alumno extends Model
{
use HasFactory;
protected $fillable=['nombre', 'dni', 'direccion', 'telefono'];
public function index() {
$alumnos = Alumno::All();
retu... | 11,563 |
https://github.com/django-fluent/django-fluent-contents/blob/master/fluent_contents/extensions/pluginpool.py | Github Open Source | Open Source | Apache-2.0 | 2,021 | django-fluent-contents | django-fluent | Python | Code | 910 | 2,401 | """
Internal module for the plugin system,
the API is exposed via __init__.py
"""
from threading import Lock
from django.contrib.contenttypes.models import ContentType
from django.core.exceptions import ImproperlyConfigured
from fluent_utils.load import import_apps_submodule
from fluent_contents import appsettings
fr... | 42,613 |
https://github.com/americanexpress/bloom/blob/master/bloom-core/src/main/java/com/americanexpress/bloom/constants/Constants.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | bloom | americanexpress | Java | Code | 176 | 340 | /**
*
* Copyright 2020 American Express Travel Related Services Company, 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
*
*... | 43,238 |
https://github.com/Slycir/SwerveTest/blob/master/src/main/java/frc/robot/subsystems/DriveTrain.java | Github Open Source | Open Source | BSD-3-Clause | null | SwerveTest | Slycir | Java | Code | 116 | 406 | // Copyright (c) FIRST and other WPILib contributors.
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package frc.robot.subsystems;
import frc.robot.Constants;
import edu.wpi.first.wpilibj2.command.SubsystemBase;
import ... | 28,652 |
https://github.com/100dej/PlanningS/blob/master/Form/FrmUserVariant.Designer.vb | Github Open Source | Open Source | MIT | null | PlanningS | 100dej | Visual Basic | Code | 785 | 3,723 | <Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
Partial Class FrmUserVariant
Inherits WeifenLuo.WinFormsUI.Docking.DockContent
'Form overrides dispose to clean up the component list.
<System.Diagnostics.DebuggerNonUserCode()> _
Protected Overrides Sub Dispose(ByVal disposing As B... | 3,278 |
https://github.com/loftylabs/django-celsius/blob/master/celsius/backends/db.py | Github Open Source | Open Source | MIT | null | django-celsius | loftylabs | Python | Code | 81 | 241 | from celsius.backends import CelsiusBackend
from celsius.models import Event
class DatabaseBackend(CelsiusBackend):
"""
TODO: This classes' methods should be returning some abstracted object
that is consistent across backends, rather than QuerySets and Model instances
"""
def create_event(s... | 14,660 |
https://github.com/warrenwchan/tango-tropical-grill/blob/master/src/components/contactInfo/index.js | Github Open Source | Open Source | MIT | null | tango-tropical-grill | warrenwchan | JavaScript | Code | 7 | 15 | import ContactInfo from './contactInfo';
export default ContactInfo
| 44,946 |
https://github.com/mlbendall/telescope/blob/master/setup.py | Github Open Source | Open Source | MIT | 2,023 | telescope | mlbendall | Python | Code | 164 | 690 | # -*- coding: utf-8 -*-
""" Setup telescope-ngs package
"""
from __future__ import print_function
from os import path, environ
from distutils.core import setup
from setuptools import Extension
from setuptools import find_packages
import versioneer
__author__ = 'Matthew L. Bendall'
__copyright__ = "Copyright (C) 201... | 28,161 |
https://github.com/Scout24/isphere/blob/master/src/main/python/isphere/command/__init__.py | Github Open Source | Open Source | WTFPL | 2,023 | isphere | Scout24 | Python | Code | 210 | 544 | # Copyright (c) 2014-2015 Maximilien Riehl <max@riehl.io>
# This work is free. You can redistribute it and/or modify it under the
# terms of the Do What The Fuck You Want To Public License, Version 2,
# as published by Sam Hocevar. See the COPYING.wtfpl file for more details.
#
"""
The isphere command classes.
"""... | 50,278 |
https://github.com/ARCANEDEV/LaravelMetrics/blob/master/src/Metrics/Concerns/HasRoundedValue.php | Github Open Source | Open Source | MIT | 2,021 | LaravelMetrics | ARCANEDEV | PHP | Code | 136 | 415 | <?php
declare(strict_types=1);
namespace Arcanedev\LaravelMetrics\Metrics\Concerns;
/**
* Trait HasRoundedValue
*
* @author ARCANEDEV <arcanedev.maroc@gmail.com>
*/
trait HasRoundedValue
{
/* -----------------------------------------------------------------
| Properties
| -------------------... | 11,623 |
https://github.com/AudiusProject/audius-client/blob/master/packages/mobile/src/screens/explore-screen/tabs/PlaylistsTab.tsx | Github Open Source | Open Source | Apache-2.0 | 2,023 | audius-client | AudiusProject | TSX | Code | 112 | 328 | import { useEffect } from 'react'
import {
Status,
explorePageSelectors,
useProxySelector,
explorePageActions
} from '@audius/common'
import { useSelector, useDispatch } from 'react-redux'
import { CollectionList } from 'app/components/collection-list'
import { TabInfo } from '../components/TabInfo'
const { ... | 2,020 |
https://github.com/caseyscarborough/wanikani-api/blob/master/src/main/java/com/wanikani/api/v2/model/StudyMaterial.java | Github Open Source | Open Source | MIT | 2,022 | wanikani-api | caseyscarborough | Java | Code | 45 | 162 | package com.wanikani.api.v2.model;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import lombok.Data;
import java.time.ZonedDateTime;
import java.util.ArrayList;
import java.util.List;
@Data
public class StudyMaterial {
private ZonedDateTime createdAt;
private boolean hidden;
private ... | 42,038 |
https://github.com/dhemery/utility-aggregator/blob/master/src/test/java/com/dhemery/aggregator/internal/MethodWriterVisitPrimitiveTypeTests.java | Github Open Source | Open Source | MIT | null | utility-aggregator | dhemery | Java | Code | 179 | 744 | package com.dhemery.aggregator.internal;
import com.dhemery.aggregator.helpers.FullTypeReferences;
import com.dhemery.aggregator.helpers.TestTarget;
import com.dhemery.annotation.testing.SourceFile;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.Parameterized;... | 14,202 |
https://github.com/Simalary/Dusk/blob/master/DebugLog.h | Github Open Source | Open Source | MIT | null | Dusk | Simalary | C | Code | 163 | 608 | //
// DebugLog.h
// NSLog wrapper
//
// DebugLog(msg) print Class, Selector, msg
// DebugLog0 print Class, Selector
// DebugLogMore(msg) print Filename, Line, Signature, msg
// DebugLogC(msg) print msg
//
// -Sticktron 2017
//
//
#ifdef DEBUG
// Default Prefix
#ifndef DEBUG_PREFIX
#define DEBUG_PREFIX... | 36,425 |
https://github.com/vasi-axinte/Unit-Testing-Training/blob/master/Demo.AspnetMvc/Pos.DataAccess/Repositories/IRepository.cs | Github Open Source | Open Source | MIT | null | Unit-Testing-Training | vasi-axinte | C# | Code | 13 | 46 | using System.Linq;
namespace Pos.DataAccess.Repositories
{
public interface IRepository
{
IQueryable<T> GetEntity<T>();
}
} | 4,727 |
https://github.com/braveheart12/Birake/blob/master/clean.sh | Github Open Source | Open Source | MIT | 2,019 | Birake | braveheart12 | Shell | Code | 6 | 19 | #!/bin/sh
make clean
sh autogen.sh
./configure | 12,565 |
https://github.com/kylastyles/donki-stream/blob/master/DONKI-stream/utils/kafka_writer.py | Github Open Source | Open Source | MIT | 2,023 | donki-stream | kylastyles | Python | Code | 105 | 326 | #!/usr/bin/env python3
from kafka import KafkaProducer
from kafka.errors import NoBrokersAvailable
import os
'''
Write space weather notifications to Kafka
'''
class KafkaWriter:
KAFKA_BROKER = os.getenv('KAFKA_BROKER', 'localhost:9092')
try:
producer = KafkaProducer(
bootstrap_ser... | 11,022 |
https://github.com/mikesmayer/catarse_fork/blob/master/app/models/gateway_payment.rb | Github Open Source | Open Source | MIT | 2,021 | catarse_fork | mikesmayer | Ruby | Code | 7 | 20 | class GatewayPayment < ActiveRecord::Base
belongs_to :payment
end
| 30,588 |
https://github.com/NoenDex/Hikari/blob/master/HikariLex/HikariScript.Language.analyzer.lex | Github Open Source | Open Source | BSD-2-Clause | null | Hikari | NoenDex | Lex | Code | 378 | 1,115 | /*
Copyright (c) 2020, Stefan Bazelkov
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the follow... | 16,458 |
https://github.com/altnight/django-bbs-lesson/blob/master/apps/users/views.py | Github Open Source | Open Source | Apache-2.0 | 2,014 | django-bbs-lesson | altnight | Python | Code | 124 | 497 | # -*- coding: utf-8 -*-
from django.shortcuts import render_to_response
from django.http import HttpResponseRedirect
from django.core.urlresolvers import reverse
from core.utils import template_response
from users.models import User
from . import form
@template_response('users/signup.html')
def signup(request):
... | 8,629 |
https://github.com/PesiTheWizard/townsquare/blob/master/server/game/cards/16-DT2/RailroadStation2.js | Github Open Source | Open Source | MIT | 2,021 | townsquare | PesiTheWizard | JavaScript | Code | 15 | 53 | const RailroadStation = require('../01-DTR/RailroadStation');
class RailroadStation2 extends RailroadStation {}
RailroadStation2.code = '24141';
module.exports = RailroadStation2;
| 19,462 |
https://github.com/tony-azevedo/FlyAnalysis/blob/master/matlab_xunit_3_1_1/doc/example_subfunction_tests/testFliplr.m | Github Open Source | Open Source | MIT | 2,023 | FlyAnalysis | tony-azevedo | MATLAB | Code | 29 | 88 | function test_suite = testFliplr
% Copyright 2013 The MathWorks, Inc.
initTestSuite;
function testFliplrMatrix
in = magic(3);
assertEqual(fliplr(in), in(:, [3 2 1]));
function testFliplrVector
assertEqual(fliplr([1 4 10]), [10 4 1]);
| 47,739 |
https://github.com/gschlaich/Rhapsody-Apps/blob/master/RhapsodyOperationEditor/src/de/schlaich/gunnar/serializable/completion/SerializableBasicCompletion.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | Rhapsody-Apps | gschlaich | Java | Code | 61 | 231 | package de.schlaich.gunnar.serializable.completion;
import java.io.Serializable;
import org.fife.ui.autocomplete.BasicCompletion;
import org.fife.ui.autocomplete.CompletionProvider;
public class SerializableBasicCompletion implements Serializable {
private String replacementText;
private String shortDesc;
priva... | 10,010 |
https://github.com/xiaosean/leetcode_python/blob/master/Q844_Backspace-String-Compare_v2.py | Github Open Source | Open Source | MIT | null | leetcode_python | xiaosean | Python | Code | 72 | 178 | class Solution:
def backspaceCompare(self, s: str, t: str) -> bool:
t_s = ""
t_t = ""
cnt = 0
for i in range(len(s))[::-1]:
if s[i] == '#':
cnt += 1
elif cnt > 0:
cnt -= 1
continue
else:
... | 25,540 |
https://github.com/RadagastW/basic-js/blob/master/src/extended-repeater.js | Github Open Source | Open Source | MIT | null | basic-js | RadagastW | JavaScript | Code | 136 | 320 | const CustomError = require("../extensions/custom-error");
module.exports = function repeater(str, options) {
let repeatTimes = (options.repeatTimes) ? options.repeatTimes : 1;
let separator = (options.separator) ? options.separator : '+';
let addition = '';
if ((typeof options.addition !== 'boolean') && (ty... | 26,699 |
https://github.com/fw-dev/piechart-panel/blob/master/src/types.ts | Github Open Source | Open Source | Apache-2.0 | null | piechart-panel | fw-dev | TypeScript | Code | 189 | 584 | import { PanelProps } from '@grafana/data';
export interface Props extends PanelProps<PanelOptions> {}
export interface PanelOptions {
dataUnavailableMessage: string;
legendEnabled: boolean;
legendBoxWidth: string;
legendFontSize: string;
legendUsePointStyle: boolean;
linkEnabled: boolean;
chartOrder: s... | 11,570 |
https://github.com/falgon/srookCppLibraries/blob/master/srook/cxx17/mpl/any_pack/algorithm/find_index.hpp | Github Open Source | Open Source | MIT | 2,018 | srookCppLibraries | falgon | C++ | Code | 132 | 338 | // Copyright (C) 2011-2020 Roki. Distributed under the MIT License
#ifndef INCLUDED_SROOK_CXX17_MPL_ANY_PACK_FIND_INDEX_HPP
#define INCLUDED_SROOK_CXX17_MPL_ANY_PACK_FIND_INDEX_HPP
namespace srook {
namespace vmpl {
inline namespace mpl {
inline namespace v1 {
namespace detail {
template <std::size_t, auto, auto...>
... | 17,054 |
https://github.com/homelabaas/haas-application/blob/master/src/server/utils/ssh.ts | Github Open Source | Open Source | Apache-2.0 | 2,021 | haas-application | homelabaas | TypeScript | Code | 63 | 165 | import * as ssh from "ssh-exec";
export interface ISSHReturn {
stdout: string;
stderr: string;
}
export function SSHExec(username: string, password: string, host: string, command: string): Promise<ISSHReturn> {
return new Promise<ISSHReturn>((resolve, reject) => {
ssh(command, {
host,
... | 28,958 |
https://github.com/dbrilman/SnakesAndLaddersMLAPI/blob/master/Assets/Prefabs/Player.prefab | Github Open Source | Open Source | MIT | 2,021 | SnakesAndLaddersMLAPI | dbrilman | Unity3D Asset | Code | 3,269 | 14,534 | %YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1 &2369449235165825759
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 3747613918160698657}
- component: {fileID: 146... | 25,951 |
https://github.com/AdobeDocs/commerce-marketplace/blob/master/src/data/navigation/sections/api.js | Github Open Source | Open Source | Apache-2.0 | null | commerce-marketplace | AdobeDocs | JavaScript | Code | 108 | 497 | module.exports = [
{
title: "Introduction",
path: "/guides/eqp/v1/"
},
{
title: "Getting started",
path: "/guides/eqp/v1/getting-started/",
pages: [
{
title: "Sandbox",
path: "/guides/eqp/v1/sandbox/",
},
{
title: "API access keys",
... | 32,150 |
https://github.com/TheWover/Family/blob/master/Unix Family/Linux.lrk.e/ssh-2.0.13/include/sshcrc32.h | Github Open Source | Open Source | MIT, LicenseRef-scancode-proprietary-license, LicenseRef-scancode-warranty-disclaimer | 2,019 | Family | TheWover | C | Code | 704 | 1,207 | /*
crc32.h
Author: Tatu Ylonen <ylo@cs.hut.fi>
Copyright (c) 1992 Tatu Ylonen, Espoo, Finland
All rights reserved
Created: Tue Feb 11 14:37:27 1992 ylo
Functions for computing 32-bit CRC.
*/
/*
* $Id: sshcrc32.h,v 1.2 1999/05/04 00:14:48 kivinen Exp $
* $Log: sshcrc32.h,v $
* $EndLog$
*/
... | 31,298 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.