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/isedev/go-proxyproto/blob/master/v1_test.go | Github Open Source | Open Source | Apache-2.0 | null | go-proxyproto | isedev | Go | Code | 458 | 1,818 | package proxyproto
import (
"bufio"
"bytes"
"strconv"
"strings"
"testing"
)
var (
IPv4AddressesAndPorts = strings.Join([]string{IP4_ADDR, IP4_ADDR, strconv.Itoa(PORT), strconv.Itoa(PORT)}, separator)
IPv4AddressesAndInvalidPorts = strings.Join([]string{IP4_ADDR, IP4_ADDR, strconv.Itoa(INVALID_PORT), str... | 46,867 |
https://github.com/ajid2/phpmvc-poll-system/blob/master/app/core/Session.php | Github Open Source | Open Source | MIT | 2,020 | phpmvc-poll-system | ajid2 | PHP | Code | 53 | 181 | <?php
/**
* @author Yusuf Al Majid <ajidalmajid6@gmail.com>
* @license MIT
* @version 0.0.1
*/
class Session{
public static function set($nama, $isi){
return $_SESSION[$nama] = $isi;
}
public static function get($nama=null){
if(!empty($_SESSION)){
if(isset($_SESSION[$nama])){
return $_SE... | 17,884 |
https://github.com/Xyaneon/Weapons-of-Mass-Domination/blob/master/src/wmd-console/UI/Commands/AttackPlayerResultPrinter.cs | Github Open Source | Open Source | MIT | null | Weapons-of-Mass-Domination | Xyaneon | C# | Code | 206 | 782 | using WMD.Game.Commands;
namespace WMD.Console.UI.Commands
{
class AttackPlayerResultPrinter : CommandResultPrinter<AttackPlayerResult>
{
private const string PrintFormatString = "{0} attacked {1} with {2:N0} henchmen; the former lost {3:N0} henchmen and the latter lost {4:N0} henchmen.";
priv... | 17,359 |
https://github.com/open-goal/jak-project/blob/master/test/decompiler/reference/jak1/engine/draw/drawable_REF.gc | Github Open Source | Open Source | ISC | 2,023 | jak-project | open-goal | Common Lisp | Code | 8,032 | 26,466 | ;;-*-Lisp-*-
(in-package goal)
;; definition for function sphere-cull
;; ERROR: Bad vector register dependency: vf16
;; ERROR: Bad vector register dependency: vf17
;; ERROR: Bad vector register dependency: vf18
;; ERROR: Bad vector register dependency: vf19
(defun sphere-cull ((arg0 vector))
(local-vars (v1-0 uint12... | 23,394 |
https://github.com/maikelbos0/WarOfEmpires/blob/master/WarOfEmpires.Client/Pages/Security/Activate.razor | Github Open Source | Open Source | MIT | 2,022 | WarOfEmpires | maikelbos0 | HTML+Razor | Code | 135 | 423 | @page "/activate"
@page "/home/activate"
@attribute [AllowAnonymous]
@using WarOfEmpires.Models.Security
<Title>Activate</Title>
<p>
Your account is being activated, please be patient.
</p>
@code {
[Inject]
public IAnonymousHttpClientProvider AnonymousHttpClientProvider { get; set; } = null!;
[Inje... | 42,446 |
https://github.com/prayogarm/lapor/blob/master/application/views/v_beranda.php | Github Open Source | Open Source | MIT | null | lapor | prayogarm | PHP | Code | 951 | 4,398 | <!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>Aduan Jaringan</title>
<!-- Bootstrap core CSS -->
<link href="<?php echo ba... | 1,822 |
https://github.com/outr/youi/blob/master/gui/src/main/scala/io/youi/component/feature/MarginFeature.scala | Github Open Source | Open Source | MIT | 2,022 | youi | outr | Scala | Code | 89 | 230 | package io.youi.component.feature
import io.youi.component.types.Prop
class MarginFeature(override val parent: FeatureParent) extends Feature {
lazy val left: Prop[Double] = new Prop[Double](-1.0, d => parent.css.marginLeft = d.toString)
lazy val right: Prop[Double] = new Prop[Double](-1.0, d => parent.css.margin... | 24,873 |
https://github.com/ashishgoyal18/vyavsaay/blob/master/mediawiki/extensions/ConfirmEdit/ConfirmEdit.php | Github Open Source | Open Source | Apache-2.0 | 2,020 | vyavsaay | ashishgoyal18 | PHP | Code | 1,031 | 2,748 | <?php
/**
* ConfirmEdit MediaWiki extension.
*
* This is a framework that holds a variety of CAPTCHA tools. The
* default one, 'SimpleCaptcha', is not intended as a production-
* level CAPTCHA system, and another one of the options provided
* should be used in its place for any real usages.
*
* Copyright (C) 2... | 38,367 |
https://github.com/lgarron/sd-card-backup/blob/master/backup.go | Github Open Source | Open Source | MIT | null | sd-card-backup | lgarron | Go | Code | 562 | 1,736 | package backup
import (
"fmt"
"os"
"path/filepath"
"syscall"
"time"
"github.com/lgarron/sd-card-backup/sync"
)
type fileFilter = func(fileClassification) bool
var classificationBackupOrder = []fileClassification{
imageFile,
videoFile,
audioFile,
unclassifiedFile,
}
func filterClassification(want fileClas... | 23,667 |
https://github.com/utumen/binnavi/blob/master/src/main/java/com/google/security/zynamics/binnavi/debug/debugger/MemorySynchronizer.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | binnavi | utumen | Java | Code | 505 | 1,277 | // Copyright 2011-2016 Google LLC
//
// 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 ... | 38,978 |
https://github.com/WAYNGROUP/Unity-Networking-Experiments/blob/master/Assets/NetCode/Command/CommandReceiveSystem.cs | Github Open Source | Open Source | MIT | 2,020 | Unity-Networking-Experiments | WAYNGROUP | C# | Code | 135 | 516 | using Unity.Entities;
using Unity.Jobs;
using Unity.Networking.Transport;
using Unity.Networking.Transport.LowLevel.Unsafe;
using Unity.Collections;
[UpdateInGroup(typeof(ServerSimulationSystemGroup))]
[UpdateAfter(typeof(NetworkStreamReceiveSystem))]
public class CommandReceiveSystem<TCommandData> : JobComponentSyste... | 25,368 |
https://github.com/arkaitzgarro/kreta/blob/master/src/Kreta/Bundle/FixturesBundle/DataFixtures/DataFixtures.php | Github Open Source | Open Source | MIT | 2,015 | kreta | arkaitzgarro | PHP | Code | 297 | 918 | <?php
/**
* This file belongs to Kreta.
* The source code of application includes a LICENSE file
* with all information about license.
*
* @author benatespina <benatespina@gmail.com>
* @author gorkalaucirica <gorka.lauzirika@gmail.com>
*/
namespace Kreta\Bundle\FixturesBundle\DataFixtures;
use Doctrine\Common... | 22,960 |
https://github.com/kashishrathod/laravelProject/blob/master/complete-ajax-crud/resources/views/product/all_product.blade.php | Github Open Source | Open Source | MIT | 2,021 | laravelProject | kashishrathod | Blade | Code | 127 | 595 | <x-app-layout>
<x-slot name="header">
<h2 class="font-semibold text-xl text-gray-800 leading-tight">
All Product
</h2>
</x-slot>
<div class="py-12">
<div class="container">
<div class="row">
<div class="col-md-12">
<di... | 31,486 |
https://github.com/dabassett/shibbolite/blob/master/README.rdoc | Github Open Source | Open Source | MIT | null | shibbolite | dabassett | RDoc | Code | 736 | 1,251 | = Shibbolite
Are you running Rails apps in a Shibboleth environment? Do you want to use all those sweet Shibboleth provided attributes for super simple access control? Shibbolite is the gem for you.
== Caveats
So far Shibbolite has been tested in one environment (mine). That is:
* Apache 2.2
* Shibboleth NativeSP 2.... | 10,719 |
https://github.com/myminseok/velero-plugin-for-vsphere/blob/master/pkg/snapshotUtils/snapshot_test.go | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, Apache-2.0 | 2,021 | velero-plugin-for-vsphere | myminseok | Go | Code | 581 | 2,445 | package snapshotUtils
import (
"context"
"fmt"
"github.com/pkg/errors"
"github.com/sirupsen/logrus"
backupdriverv1 "github.com/vmware-tanzu/velero-plugin-for-vsphere/pkg/apis/backupdriver/v1alpha1"
v1 "github.com/vmware-tanzu/velero-plugin-for-vsphere/pkg/generated/clientset/versioned/typed/backupdriver/v1alpha1... | 39,248 |
https://github.com/frranck/HippoPlayer/blob/master/.gitignore | Github Open Source | Open Source | MIT, Apache-2.0, LicenseRef-scancode-unknown-license-reference | 2,018 | HippoPlayer | frranck | Ignore List | Code | 4 | 23 | *.swp
.tundra2*
t2-output
playlist.json
| 11,850 |
https://github.com/CertifaiAI/Classifai_FrontEnd/blob/master/src/shared/types/image-labelling/image-labelling.model.ts | Github Open Source | Open Source | Apache-2.0 | 2,021 | Classifai_FrontEnd | CertifaiAI | TypeScript | Code | 557 | 1,365 | /**
* @license
* Use of this source code is governed by Apache License 2.0 that can be
* found in the LICENSE file at https://github.com/CertifaiAI/Classifai_FrontEnd/blob/main/LICENSE
*/
import { UUID } from 'shared/types/message/message.model';
import { WithOptional } from 'shared/types/with-optional/with-option... | 43,375 |
https://github.com/stfnbssl/packy/blob/master/src/client/features/packi/index.tsx | Github Open Source | Open Source | MIT | 2,021 | packy | stfnbssl | TSX | Code | 38 | 90 | import * as packiTypes from './types';
import * as packiDefaults from './defaults';
import * as packiActions from './actions';
import * as packiValids from './validations';
import * as packiConversions from './convertFileStructure';
export { packiTypes, packiDefaults, packiActions, packiValids, packiConversions } | 7,148 |
https://github.com/neolord0/hwplib/blob/master/src/main/java/kr/dogfoot/hwplib/object/bodytext/control/gso/shapecomponent/lineinfo/OutlineStyle.java | Github Open Source | Open Source | Apache-2.0 | 2,023 | hwplib | neolord0 | Java | Code | 126 | 404 | package kr.dogfoot.hwplib.object.bodytext.control.gso.shapecomponent.lineinfo;
/**
* Outline style
*
* @author neolord
*/
public enum OutlineStyle {
/**
* 일반
*/
Normal((byte) 0),
/**
* 외부
*/
Outter((byte) 1),
/**
* 내부
*/
Inner((byte) 2);
/**
* 파일에 저장되... | 2,783 |
https://github.com/steevLP/notepage/blob/master/assets/js/app.js | Github Open Source | Open Source | Apache-2.0 | 2,022 | notepage | steevLP | JavaScript | Code | 93 | 389 | const {ipcRenderer,remote, clipboard} = require('electron');
const BrowserWindow = require('electron').remote.BrowserWindow;
const shortkey = require('hotkeys-js');
const fs = require('fs');
const dir = require('../../utils/path');
const package = require('../../package.json');
const projName = package.name;
let OSna... | 11,582 |
https://github.com/WooodHead/random-news-reader/blob/master/retrieveFromWeb/feedvalidator/testcases/.htaccess | Github Open Source | Open Source | MIT | 2,019 | random-news-reader | WooodHead | ApacheConf | Code | 10 | 33 | AddType text/plain .xml
AddCharset UTF-8 .xml
Header set X-Content-Type-Options: nosniff
| 20,703 |
https://github.com/marcuscraske/project-euler/blob/master/PE_CPP/PE_CPP/.gitignore | Github Open Source | Open Source | WTFPL | 2,012 | project-euler | marcuscraske | Ignore List | Code | 5 | 17 | Debug/
Release/
*.user
Utils.cpp
Utils.h | 14,338 |
https://github.com/airalab/hs-web3/blob/master/packages/crypto/src/Crypto/Ecdsa/Utils.hs | Github Open Source | Open Source | Apache-2.0, BSD-3-Clause | 2,023 | hs-web3 | airalab | Haskell | Code | 253 | 586 | -- |
-- Module : Crypto.Ecdsa.Utils
-- Copyright : Aleksandr Krupenkin 2016-2021
-- License : Apache-2.0
--
-- Maintainer : mail@akru.me
-- Stability : experimental
-- Portability : portable
--
-- ECDSA module helper functions.
--
module Crypto.Ecdsa.Utils where
import Crypto.Number.Seri... | 47,580 |
https://github.com/xfhy/LearnFlutter/blob/master/flutter_gesture_detector/flutter_gesture_detector/lib/main.dart | Github Open Source | Open Source | Apache-2.0 | null | LearnFlutter | xfhy | Dart | Code | 102 | 460 | import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Demo',
theme: ThemeData(
primarySwatch: Colors.... | 40,049 |
https://github.com/y-suzuki-qwt/foundation-php/blob/master/source/Accord/[Private]/InternalTempLog.php | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-unknown-license-reference | 2,018 | foundation-php | y-suzuki-qwt | PHP | Code | 134 | 315 | <?php
namespace Solver\Accord;
use Solver\Logging\Log;
/**
* DO NOT USE: This class is an internal implementation detail and may change or go away without warning.
*
* TODO: Refactor this log away once we have an anon log class, or at least move it to its own file. We can also
* make it explicitly a StatusLog so... | 31,236 |
https://github.com/pmcgleenon/dummynet/blob/master/test/main.c | Github Open Source | Open Source | BSD-3-Clause | 2,020 | dummynet | pmcgleenon | C | Code | 2,573 | 7,179 | /*
* $Id: main.c 5626 2010-03-04 21:55:22Z luigi $
*
* Testing program for schedulers
*
* The framework include a simple controller which, at each
* iteration, decides whether we can enqueue and/or dequeue.
* Then the mainloop runs the required number of tests,
* keeping track of statistics.
*/
#include "dn_t... | 16,435 |
https://github.com/ralphmarchildon-wf/crnk-framework/blob/master/crnk-data/crnk-data-jpa/src/main/java/io/crnk/data/jpa/meta/MetaEmbeddableAttribute.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | crnk-framework | ralphmarchildon-wf | Java | Code | 16 | 78 | package io.crnk.data.jpa.meta;
import io.crnk.core.resource.annotations.JsonApiResource;
import io.crnk.meta.model.MetaAttribute;
@JsonApiResource(type = "meta/embeddableAttribute")
public class MetaEmbeddableAttribute extends MetaAttribute {
} | 18,342 |
https://github.com/CommanderAsdasd/asdasd_modules/blob/master/src/MentalGates.cpp | Github Open Source | Open Source | BSD-3-Clause | null | asdasd_modules | CommanderAsdasd | C++ | Code | 362 | 1,320 | ///////////////////////////////////////////////////
//
// Gates VCV Module
//
// Strum 2017
//
///////////////////////////////////////////////////
#include "mental.hpp"
#include "dsp/digital.hpp"
/////////////////////////////////////////////////
struct MentalGates : Module {
enum ParamIds {
BUTTON_PARAM,
... | 26,812 |
https://github.com/vreniose95/Ccr.Scraping.API/blob/master/Common/Scraping/SearchResultScraper.cs | Github Open Source | Open Source | MIT | null | Ccr.Scraping.API | vreniose95 | C# | Code | 20 | 81 | using AngleSharp.Dom;
namespace Ccr.Scraping.API.Common.Scraping
{
public abstract class SearchResultScraper<TEntity>
: ISearchResultScraper<TEntity>
{
public abstract TEntity Scrape(
IElement htmlNode);
}
}
| 25,420 |
https://github.com/maraf/Money/blob/master/src/Neptuo/Exceptions/Helpers/EnsureExceptionHelper.cs | Github Open Source | Open Source | Apache-2.0 | 2,023 | Money | maraf | C# | Code | 34 | 95 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Neptuo.Exceptions.Helpers
{
/// <summary>
/// Helper class for defining extension exception method on <see cref="Ensure.Exception"/>.
/// </summary>
public class EnsureExceptio... | 31,216 |
https://github.com/EmmanuelDemey/demo-nestjs/blob/master/src/app.service.ts | Github Open Source | Open Source | MIT | 2,018 | demo-nestjs | EmmanuelDemey | TypeScript | Code | 53 | 203 | import { Injectable, HttpService } from '@nestjs/common';
import { Observable } from 'rxjs';
import { AxiosResponse } from 'axios';
@Injectable()
export class AppService {
constructor(private readonly httpService: HttpService){}
root(nom: String): string {
return `Hello ${nom}!`;
}
get(stationName: String... | 40,839 |
https://github.com/ThisIsCodeXpert/IOTA-Developer-Tutorial-Series-For-Beginners/blob/master/node_modules/hmkit/es/ClientCertificate.js | Github Open Source | Open Source | MIT | 2,021 | IOTA-Developer-Tutorial-Series-For-Beginners | ThisIsCodeXpert | JavaScript | Code | 201 | 638 | var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, des... | 14,554 |
https://github.com/latemic/mc.inappbilling/blob/master/src/mc/inappbilling/OnCompleteListener.java | Github Open Source | Open Source | Apache-2.0 | 2,017 | mc.inappbilling | latemic | Java | Code | 13 | 41 | package mc.inappbilling;
public interface OnCompleteListener<T>
{
void complete(T res);
void error(int errorCode);
}
| 35,759 |
https://github.com/VladimirBlagojevic/Quiz-Game/blob/master/scss/layout/_layout.scss | Github Open Source | Open Source | Info-ZIP | null | Quiz-Game | VladimirBlagojevic | SCSS | Code | 199 | 984 | .container {
max-width: 90rem;
margin: 1.5rem auto;
-webkit-box-shadow: var(--shadow-dark);
box-shadow: var(--shadow-dark);
background-image: -webkit-gradient(linear, left top, left bottom, from(#03a9f4), color-stop(#0aadf6), color-stop(#11b0f8), color-stop(#17b4fa), to(#1db7fc));
... | 36,043 |
https://github.com/MikeJeffers/MSCD-Thesis/blob/master/src/test/java/edu/mscd/thesis/util/TestWeightVector.java | Github Open Source | Open Source | BSD-3-Clause, MIT, Apache-2.0 | 2,018 | MSCD-Thesis | MikeJeffers | Java | Code | 176 | 851 | package edu.mscd.thesis.util;
import static org.junit.Assert.assertTrue;
import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import edu.mscd.thesis.model.city.CityData;
import edu.mscd.thesis.model.city.CityDataWeightVector;
import edu.ms... | 45,868 |
https://github.com/datawire/quark/blob/master/quarkc/lib/io/datawire/quark/runtime/Os.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | quark | datawire | Java | Code | 52 | 193 | package io.datawire.quark.runtime;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.nio.charset.StandardCharsets;
import java.io.IOException;
import quark.os.FileContents;
import quark.os.OSError;
public class Os {
public static void getFileContents(String path, FileContents result) {
... | 42,201 |
https://github.com/jayteesanchez/project-4/blob/master/app/components/Home.js | Github Open Source | Open Source | MIT | 2,016 | project-4 | jayteesanchez | JavaScript | Code | 393 | 1,643 | import React from 'react';
import {Link} from 'react-router';
import HomeStore from '../stores/HomeStore'
import HomeActions from '../actions/HomeActions';
class Home extends React.Component {
constructor(props) {
super(props);
this.state = HomeStore.getState();
this.onChange = this.onChange.bind(this);
... | 19,722 |
https://github.com/raoinam92/MavenUp/blob/master/blog/wp-content/plugins/convertplug/admin/bsf-core/BSF_Update_Manager.php | Github Open Source | Open Source | MIT | null | MavenUp | raoinam92 | PHP | Code | 2,472 | 7,835 | <?php
// delete these transients/options for debugging
// set_site_transient( 'update_plugins', null );
// set_site_transient( 'update_themes', null );
// delete_option( 'brainstrom_products' );
/**
*
*/
if ( ! class_exists( 'BSF_Update_Manager' ) ) {
class BSF_Update_Manager {
public function __construct() {... | 2,527 |
https://github.com/slimewing/withermagic/blob/master/src/main/java/com/heipiao/wm/network/UpdatePollutePacket.java | Github Open Source | Open Source | MIT | null | withermagic | slimewing | Java | Code | 68 | 298 | package com.heipiao.wm.network;
import java.util.function.Supplier;
import com.heipiao.wm.pollute.PolluteUtils;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import net.minecraft.network.FriendlyByteBuf;
import net.minecraftforge.fmllegacy.network.NetworkEvent;
public class Up... | 35,650 |
https://github.com/softinio/nvim-metals/blob/master/lua/metals/log.lua | Github Open Source | Open Source | Apache-2.0 | 2,021 | nvim-metals | softinio | Lua | Code | 306 | 889 | local util = require("metals.util")
local Path = require("plenary.path")
-- log.lua
--
-- Inspired by github.com/tjdevries/vlog.nvim, which was inspired by rxi/log.lua,
-- and then modified to better fit the needs of nvim-metals.
--
-- So this modules will produce the following:
-- log.info
-- log.warn
-- log.erro... | 8,692 |
https://github.com/toreda/kvp/blob/master/src/map/jsonifier/options.ts | Github Open Source | Open Source | MIT | 2,021 | kvp | toreda | TypeScript | Code | 4 | 10 | export interface StrongMapJsonifierOptions {}
| 24,925 |
https://github.com/N-Shar-ma/doc2pen/blob/master/.prettierrc.js | Github Open Source | Open Source | CC0-1.0 | 2,021 | doc2pen | N-Shar-ma | JavaScript | Code | 28 | 115 | module.exports = {
bracketSpacing: true,
jsxBracketSameLine: false,
singleQuote: false,
trailingComma: "all",
arrowParens: "avoid",
endOfLine: "lf",
embeddedLanguageFormatting: "auto",
printWidth: 80,
proseWrap: "preserve",
tabWidth: 2,
semi: true,
useTabs: true,
};
| 5,595 |
https://github.com/fengjixuchui/lazyInject/blob/master/aopweave/src/main/groovy/com.trend.lazyinject.aopweave/transforms/LazyInjectTransform.groovy | Github Open Source | Open Source | Apache-2.0 | 2,019 | lazyInject | fengjixuchui | Groovy | Code | 404 | 1,702 | package com.trend.lazyinject.aopweave.transforms
import com.android.build.api.transform.JarInput
import com.android.build.api.transform.QualifiedContent
import com.android.build.api.transform.TransformInvocation
import com.android.build.gradle.internal.pipeline.TransformManager
import com.google.common.collect.Immutab... | 16,190 |
https://github.com/ag502/store-9/blob/master/client/src/components/DetailProduct/OverViewContent/index.tsx | Github Open Source | Open Source | MIT | 2,021 | store-9 | ag502 | TSX | Code | 390 | 1,393 | import React, { useState } from 'react';
import styled from '@emotion/styled';
import StockSelector from '../StockSelector';
import TotalPrice from '../TotalPrice';
import Like from '../LikeButton';
import Cart from '../CartButton';
import Buy from '../BuyButton';
import { calculateDiscount } from '@/utils/calculateD... | 30,024 |
https://github.com/nataren/mono/blob/master/mcs/class/System.Core/System.Linq.Parallel/QueryCheckerVisitor.cs | Github Open Source | Open Source | Apache-2.0 | 2,021 | mono | nataren | C# | Code | 620 | 1,679 | //
// QueryCheckerVisitor.cs
//
// Author:
// Jérémie "Garuma" Laval <jeremie.laval@gmail.com>
//
// Copyright (c) 2010 Jérémie "Garuma" Laval
//
// 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 t... | 40,331 |
https://github.com/zhenyuan2015/visop/blob/master/src/front/src/App.vue | Github Open Source | Open Source | MIT | 2,018 | visop | zhenyuan2015 | Vue | Code | 119 | 358 | <template>
<div id="app">
<router-view></router-view>
</div>
</template>
<script>
import store from './store'
export default{
name: 'App',
// mounted() {
// store.dispatch('GetUserInfo').then(res => { // 拉取user_info
// const roles = res.data.roles // note: roles must be a array! such... | 26,321 |
https://github.com/janekbar5/enjoythetrip/blob/master/app/Room.php | Github Open Source | Open Source | MIT | null | enjoythetrip | janekbar5 | PHP | Code | 69 | 181 | <?php
/*
|--------------------------------------------------------------------------
| app/Room.php *** Copyright netprogs.pl | available only at Udemy.com | further distribution is prohibited ***
|--------------------------------------------------------------------------
*/
namespace App; /* Lecture 16 */
use Illumi... | 46,567 |
https://github.com/NETMF/llilum/blob/master/Zelig/Zelig/RunTime/Zelig/Kernel/FrameworkOverrides_Llilum/Devices/Pwm/PwmProvider.cs | Github Open Source | Open Source | MIT | 2,022 | llilum | NETMF | C# | Code | 63 | 215 | //
// Copyright (c) Microsoft Corporation. All rights reserved.
//
namespace Microsoft.Zelig.Runtime
{
using System;
using System.Runtime.CompilerServices;
using Microsoft.Llilum.Devices.Pwm;
[ImplicitInstance]
[ForceDevirtualization]
public abstract class PwmProvider
{
privat... | 49,898 |
https://github.com/johnnyslots/dd-grace-shopper/blob/master/server/db/models/product.spec.js | Github Open Source | Open Source | MIT | 2,018 | dd-grace-shopper | johnnyslots | JavaScript | Code | 112 | 275 | /* global describe beforeEach it */
const {expect} = require('chai');
const db = require('../index');
const Product = db.model('product');
describe.only('product model', () => {
beforeEach(() => {
return db.sync({force: true})
})
describe('getter method for price attribute', () => {
let product;
b... | 12,958 |
https://github.com/uyaki/uyaki-cloud/blob/master/uyaki-cloud-auth/src/main/java/com/uyaki/cloud/auth/model/om/RoleUser.java | Github Open Source | Open Source | MIT | 2,019 | uyaki-cloud | uyaki | Java | Code | 33 | 98 | package com.uyaki.cloud.auth.model.om;
import lombok.Getter;
import lombok.Setter;
import java.io.Serializable;
@Getter
@Setter
public class RoleUser implements Serializable {
private Long id;
private Long roleid;
private Long userid;
private static final long serialVersionUID = 1L;
} | 45,898 |
https://github.com/jjqcat/geode/blob/master/geode/mesh/test_halfedge.py | Github Open Source | Open Source | BSD-3-Clause | 2,022 | geode | jjqcat | Python | Code | 716 | 2,996 | #!/usr/bin/env python
from __future__ import division
from geode import *
from geode.geometry.platonic import *
import logging
def test_basic():
a = TriangleTopology([(0,1,2)])
b = TriangleTopology(TriangleSoup([(0,1,2)]))
assert all(a.elements()==[(0,1,2)])
assert all(a.elements()==b.elements())
try:
T... | 7,326 |
https://github.com/GoLandr/iris/blob/master/_examples/websocket/go-client/server/main.go | Github Open Source | Open Source | BSD-3-Clause | null | iris | GoLandr | Go | Code | 53 | 250 | package main
import (
"fmt"
"time"
"github.com/kataras/iris"
"github.com/kataras/iris/websocket"
)
func main() {
app := iris.New()
ws := websocket.New(websocket.Config{})
ws.OnConnection(func(c websocket.Connection) {
go func() {
<-time.After(20 * time.Second)
c.Disconnect()
}()
c.On("chat", func... | 4,253 |
https://github.com/johnrabbit687/Holtzman/blob/master/imports/components/@primitives/UI/graphs/__tests__/LineGraph.js | Github Open Source | Open Source | ECL-2.0 | 2,019 | Holtzman | johnrabbit687 | JavaScript | Code | 186 | 581 | import { mount, shallow } from "enzyme";
import { mountToJson, shallowToJson } from "enzyme-to-json";
import LineGraph from "../LineGraph";
jest.mock("victory");
const generateComponent = (additionalProps = {}) => {
const defaultProps = {
data: [
{
month: "January",
amount: 10,
tic... | 10,456 |
https://github.com/nlsfi/pta-intelligent-search/blob/master/pta-intelligent-search-harvester/src/main/java/fi/maanmittauslaitos/pta/search/utils/RegionImpl.java | Github Open Source | Open Source | CC-BY-4.0 | 2,020 | pta-intelligent-search | nlsfi | Java | Code | 179 | 595 | package fi.maanmittauslaitos.pta.search.utils;
import java.util.Arrays;
import java.util.List;
public class RegionImpl implements Region {
private final List<Double> coordinates;
RegionImpl(List<Double> coordinates) {
this.coordinates = coordinates;
}
private Double left() {
return coordinates.get(0);
}
... | 37,134 |
https://github.com/ArnulfoPerez/R/blob/master/datasciencecoursera/ml/caret.R | Github Open Source | Open Source | CC0-1.0 | 2,020 | R | ArnulfoPerez | R | Code | 111 | 416 | library("caret")
library(QSARdata)
data(Mutagen)
head(Mutagen_Outcome)
head(Mutagen_Dragon)
descr <- Mutagen_Dragon
mutagen <- Mutagen_Outcome
set.seed(1)
inTrain <- createDataPartition(mutagen, p = 3/4, list = FALSE)
trainDescr <- descr[inTrain,]
testDescr <- descr[-inTrain,]
trainClass <- mutagen[inTrain]
testClass <... | 27,366 |
https://github.com/atell/phoenix/blob/master/phoenix-console/src/main/java/com/dianping/phoenix/console/page/version/Handler.java | Github Open Source | Open Source | LicenseRef-scancode-warranty-disclaimer, Apache-2.0 | 2,013 | phoenix | atell | Java | Code | 395 | 1,659 | package com.dianping.phoenix.console.page.version;
import java.io.IOException;
import java.util.List;
import javax.servlet.ServletException;
import org.codehaus.plexus.logging.LogEnabled;
import org.codehaus.plexus.logging.Logger;
import org.unidal.dal.jdbc.DalNotFoundException;
import org.unidal.lookup.annotation.I... | 44,055 |
https://github.com/eds2048/Project3-RecParks/blob/master/client/src/pages/Signup/index.js | Github Open Source | Open Source | Apache-1.1 | null | Project3-RecParks | eds2048 | JavaScript | Code | 230 | 839 | import React, { Component } from 'react';
import styles from './style.module.css';
import Card from '../../components/Card';
import { Redirect } from 'react-router-dom';
import { Input, FormBtn } from '../../components/Form';
import { Col, Row, Container } from '../../components/Grid';
import { user as userAPI } from '... | 34,278 |
https://github.com/skylark-integration/skylark-dojox/blob/master/dist/dojox/robot/tests/robotml.js | Github Open Source | Open Source | MIT | null | skylark-dojox | skylark-integration | JavaScript | Code | 32 | 179 | /**
* dojox - A version of dojox.js framework that ported to running on skylarkjs.
* @author Hudaokeji, Inc.
* @version v0.9.0
* @link https://github.com/skylark-integration/dojox/
* @license MIT
*/
dojo.provide("dojox.robot.tests.robotml");try{dojo.isBrowser&&doh.registerUrl("dojox.robot.tests.test_recorder",doj... | 40,167 |
https://github.com/strigazi/athena/blob/master/Tracking/TrkExtrapolation/TrkExUtils/CMakeLists.txt | Github Open Source | Open Source | Apache-2.0 | 2,020 | athena | strigazi | CMake | Code | 68 | 368 | ################################################################################
# Package: TrkExUtils
################################################################################
# Declare the package name:
atlas_subdir( TrkExUtils )
# Declare the package's dependencies:
atlas_depends_on_subdirs( PUBLIC
... | 26,516 |
https://github.com/hyyking/rconfig/blob/master/src/commands/track.rs | Github Open Source | Open Source | Unlicense | null | rconfig | hyyking | Rust | Code | 265 | 924 | use std::{collections::hash_map::Entry, fs, io, path::Path};
use crate::trackfile::TrackFile;
pub fn list(file: &mut TrackFile, _matches: &clap::ArgMatches<'_>) -> io::Result<()> {
for (k, v) in file.map().iter() {
println!("entry: '{}' ~> path: '{}'", k, v.file());
}
Ok(())
}
pub fn insert(file:... | 30,873 |
https://github.com/yerimmseo/spring-practice/blob/master/Spring_REST/src/main/webapp/resources/js/crud_home.js | Github Open Source | Open Source | Apache-2.0 | null | spring-practice | yerimmseo | JavaScript | Code | 85 | 323 | /**
*
*/
const updateBtn = document.getElementById('update');
const display = document.getElementById('display');
updateBtn.addEventListener('click', () => {
const xhttp = new XMLHttpRequest;
xhttp.addEventListener('readystatechange', (e) => {
const target = e.target;
const status = target.status;
const re... | 5,042 |
https://github.com/faby-tb/MusicStream-Backend/blob/master/resources/views/admin/imagenes.blade.php | Github Open Source | Open Source | MIT | 2,021 | MusicStream-Backend | faby-tb | PHP | Code | 103 | 499 | @extends('admin.dashboard')
@section('content-admin')
<h2>Imagenes</h2>
<div class="table-responsive">
<table class="table table-striped table-sm">
<thead>
<tr>
<th>ID</th>
<th>Ruta</th>
<th>ID del artista</th>
<th>Agregado</th>
... | 46,090 |
https://github.com/kasunbg/tomee/blob/master/container/openejb-core/src/main/java/org/apache/openejb/threads/impl/ManagedScheduledExecutorServiceImpl.java | Github Open Source | Open Source | Apache-2.0 | 2,019 | tomee | kasunbg | Java | Code | 564 | 1,870 | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | 10,343 |
https://github.com/UnforeseenOcean/Exist/blob/master/Assets/Turbulence Library/Materials/CG Unlit/Advanced Perlin/PerlinIQ.mat.meta | Github Open Source | Open Source | CC-BY-3.0, CC-BY-4.0 | 2,016 | Exist | UnforeseenOcean | Unity3D Asset | Code | 6 | 39 | fileFormatVersion: 2
guid: 084e9ba21e010ea44b803704071762a2
NativeFormatImporter:
userData:
| 31,740 |
https://github.com/vryy/isogeometric_application/blob/master/matlab_scripts/nurbs/basiskntins.py | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, MIT | 2,023 | isogeometric_application | vryy | Python | Code | 431 | 1,374 |
import numpy as np
import scipy
import matcompat
# if available import pylab (from matlibplot)
try:
import matplotlib.pylab as plt
except ImportError:
pass
def basiskntins(deg, kc, kf):
# Local Variables: kc, a, C, nk, alfa, kf, ss, nc, m, l, nf, n, ii, ik, r, u, jj, ind, b, nu, deg
# Function calls... | 39,541 |
https://github.com/rdsimes/rdsimes.github.io/blob/master/js/rdsim.es.js | Github Open Source | Open Source | Apache-2.0 | null | rdsimes.github.io | rdsimes | JavaScript | Code | 33 | 113 |
var page;
function showPage() {
if(page){
page.classList.toggle('show');
}
var hash = window.location.hash;
if (!hash) {
return;
}
page = document.getElementById(hash.substr(1));
page.classList.toggle('show');
}
window.onhashchange = showPage;
//ensure initial page is loaded (if any)
showPage(... | 42,741 |
https://github.com/Grafelhaft/WineSpray/blob/master/app/src/main/java/de/grafelhaft/winespray/app/fragment/DummyFragment.java | Github Open Source | Open Source | Apache-2.0 | 2,017 | WineSpray | Grafelhaft | Java | Code | 50 | 203 | package de.grafelhaft.winespray.app.fragment;
import android.os.Bundle;
import de.grafelhaft.grafellib.fragment.BaseFragment;
import de.grafelhaft.grafellib.view.IFragmentTabTitleResProvider;
import de.grafelhaft.winespray.app.R;
/**
* Created by Markus on 21.09.2016.
*/
public class DummyFragment extends BaseFra... | 540 |
https://github.com/VitaliyYarkun/GithubSample/blob/master/GithubSample/GithubSample/Flux/Route/RouteDispatcher.swift | Github Open Source | Open Source | MIT | null | GithubSample | VitaliyYarkun | Swift | Code | 16 | 41 | import RxCocoa
final class RouteDispatcher {
static let shared = RouteDispatcher()
let routeCommand = PublishRelay<RouteCommand>()
}
| 17,893 |
https://github.com/besiobu/cryptocollector_db/blob/master/cryptocollector_db/dwh/Stored Procedures/load_fact_trade_incre.sql | Github Open Source | Open Source | MIT | null | cryptocollector_db | besiobu | SQL | Code | 37 | 146 |
CREATE PROCEDURE [dwh].[load_fact_trade_incre]
AS
BEGIN TRANSACTION T1
BEGIN TRY
EXEC [dwh].[load_fact_trades_bitmex] @mode = 'incre'
EXEC [dwh].[load_fact_trades_coinbase] @mode = 'incre'
END TRY
BEGIN CATCH
IF @@TRANCOUNT > 0
BEGIN
ROLLBACK TRANSACTION
END
END CATCH
COMMIT TRAN T1
| 16,531 |
https://github.com/YuniYasha/vscode-aem-sync/blob/master/src/jcrCrawler.js | Github Open Source | Open Source | MIT | 2,020 | vscode-aem-sync | YuniYasha | JavaScript | Code | 108 | 283 | const http = require('http');
//Crawls the JCR to return info about specific nodes
class JCRCrawler {
//Returns a tree of nodes starting from the given path
getTree (path, host, port, username, password) {
return new Promise((resolve, reject) => {
console.log(path);
const req = ... | 46,260 |
https://github.com/tomkuijsten/vsjenkinsmanager/blob/master/Devkoes.VSJenkinsManager/Devkoes.JenkinsManager.UI/ViewModels/JenkinsManagerViewModel.cs | Github Open Source | Open Source | MIT | 2,017 | vsjenkinsmanager | tomkuijsten | C# | Code | 1,266 | 4,725 | using Devkoes.Core.MVVM;
using Devkoes.JenkinsManager.APIHandler.Managers;
using Devkoes.JenkinsManager.Model.Schema;
using Devkoes.JenkinsManager.UI.Comparers;
using Devkoes.JenkinsManager.UI.Helpers;
using Devkoes.JenkinsManager.UI.Properties;
using System;
using System.Collections.Generic;
using System.Collections.... | 45,879 |
https://github.com/cajacko/gitHack/blob/master/app/configureStore.js | Github Open Source | Open Source | MIT | 2,022 | gitHack | cajacko | JavaScript | Code | 71 | 254 | import {createStore, applyMiddleware, compose} from 'redux'
import thunkMiddleware from 'redux-thunk'
import createLogger from 'redux-logger'
import reducers from '~/reducers/index'
import persistState, {mergePersistedState} from 'redux-localstorage';
import adapter from 'redux-localstorage/lib/adapters/localStorage';
... | 4,833 |
https://github.com/lykmapipo/majifix-account/blob/master/test/integration/account.post.spec.js | Github Open Source | Open Source | MIT | 2,018 | majifix-account | lykmapipo | JavaScript | Code | 119 | 468 | import { Jurisdiction } from '@codetanzania/majifix-jurisdiction';
import { expect, clear, create } from '@lykmapipo/mongoose-test-helpers';
import account from '../../src';
const { Account } = account;
describe('Account', () => {
let customerAccount;
const jurisdiction = Jurisdiction.fake();
before(done => cl... | 43,877 |
https://github.com/tkdchen/learning-travis-ci/blob/master/build-rpm-in-copr.sh | Github Open Source | Open Source | MIT | null | learning-travis-ci | tkdchen | Shell | Code | 71 | 331 | #!/bin/bash -ex
openssl aes-256-cbc -K $encrypted_9173bd2c25f4_key -iv $encrypted_9173bd2c25f4_iv \
-in copr-cli.conf.enc -out copr-cli.conf -d
docker run -v $(pwd):/code:Z --rm -it registry.fedoraproject.org/fedora:32 /bin/bash -c "
set -ex
dnf --disablerepo=fedora-modular \
--disablerepo=update... | 19,581 |
https://github.com/bbstone101/scomu/blob/master/scomu-comm/src/main/java/com/bbstone/comm/dto/req/AuthStartReq.java | Github Open Source | Open Source | MIT | null | scomu | bbstone101 | Java | Code | 43 | 153 | package com.bbstone.comm.dto.req;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper=false)
public class AuthStartReq {
private String username;
private String apiVersion;... | 30,740 |
https://github.com/Pratap-Singh/eClaim/blob/master/src/models/tenant_main_model.ts | Github Open Source | Open Source | Apache-2.0 | 2,018 | eClaim | Pratap-Singh | TypeScript | Code | 96 | 463 | export class Tenant_Main_Model {
constructor(
public TENANT_GUID: string = null,
public PARENT_TENANT_GUID: string = null,
public TENANT_ACCOUNT_NAME: string = null,
public ACTIVATION_FLAG: string = null,
public CREATION_TS: string = null,
public CREATION_USER_GUID: stri... | 28,119 |
https://github.com/deep75/nomad-consul-fabio/blob/master/scripts/delall.sh | Github Open Source | Open Source | MIT | 2,021 | nomad-consul-fabio | deep75 | Shell | Code | 20 | 78 | #!/usr/bin/env bash
for x in base base-client client{1..5}-dc{1..2} consul{1..3}-dc{1..2} nomad{1..3}-dc{1..2} vault1-dc1 ; do
lxc delete ${x} --force &
done
wait
| 40,865 |
https://github.com/DevJohnC/homectl/blob/master/src/homectl/homectl-api-server/Kinds/KindManager.cs | Github Open Source | Open Source | MIT | 2,020 | homectl | DevJohnC | C# | Code | 217 | 861 | using HomeCtl.ApiServer.Resources;
using HomeCtl.Kinds;
using HomeCtl.Kinds.Resources;
using System.Threading.Tasks;
namespace HomeCtl.ApiServer.Kinds
{
class KindManager : ResourceManager<Kind>
{
private readonly IDocumentStoreFactory _documentStoreFactory;
private readonly ResourceManagerContainer _resourceMa... | 49,955 |
https://github.com/georgerobescu/OrFeed/blob/master/contracts/dataAndEventOracleRegistry.sol | Github Open Source | Open Source | Apache-2.0 | 2,022 | OrFeed | georgerobescu | Solidity | Code | 448 | 1,413 | //oracle for event and data registry
//Example: https://etherscan.io/address/0xd754f58d9d6d705b98bde698f9f9cec0bded1b8a#readContract
pragma experimental ABIEncoderV2;
interface DataOracleInterface{
function getResultFromOracle (string theEvent) returns (string);
}
// oracle registery main
contract orac... | 23,735 |
https://github.com/Reality-Hack-2022/TEAM-20/blob/master/Assets/PlayerController.cs | Github Open Source | Open Source | MIT | null | TEAM-20 | Reality-Hack-2022 | C# | Code | 251 | 671 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
public struct PlayerState
{
public int focus;
public int happiness;
public int flow;
public int heartrate;
}
public class PlayerController : MonoBehaviour
{
// Seconds
public int T... | 24,095 |
https://github.com/dashengyeah/StuInfoSystem/blob/master/initDB/src/insertTestData.py | Github Open Source | Open Source | MIT | null | StuInfoSystem | dashengyeah | Python | Code | 709 | 2,529 | #!/bin/baaash/env python
# -*- coding:utf-8 -*-
# Usage:
# insert test data into Database
#
import random
import pymysql
from connectDB import connectDB
from NamePicker import NamePicker
class InsertTestData(object):
# get a DB connection
def __init__(self):
self.DBfd = connectDB()
self.... | 43,841 |
https://github.com/WsdlToPhp/PackageEws365/blob/master/src/StructType/EwsDelegateUserResponseMessageType.php | Github Open Source | Open Source | MIT | 2,022 | PackageEws365 | WsdlToPhp | PHP | Code | 129 | 453 | <?php
declare(strict_types=1);
namespace StructType;
use InvalidArgumentException;
use WsdlToPhp\PackageBase\AbstractStructBase;
/**
* This class stands for DelegateUserResponseMessageType StructType
* @package Ews
* @subpackage Structs
* @author WsdlToPhp <contact@wsdltophp.com>
*/
class EwsDelegateUserRespon... | 44,005 |
https://github.com/agadek/fs2-kafka/blob/master/scalafix/output/src/main/scala/fix/PackageObjectMethodDeprecations.scala | Github Open Source | Open Source | MIT | null | fs2-kafka | agadek | Scala | Code | 78 | 514 | package fix
import fs2.kafka._
import scala.concurrent.ExecutionContext
import cats.effect.{ContextShift, IO, Resource, Timer}
import fs2.kafka.{ KafkaAdminClient, KafkaConsumer, KafkaProducer, TransactionalKafkaProducer }
object Fs2Kafka {
implicit val cs: ContextShift[IO] = IO.contextShift(ExecutionContext.global... | 42,025 |
https://github.com/bitJun/vue-tb/blob/master/mch/resources/assets/js/components/common/SingleImageUpload.vue | Github Open Source | Open Source | MIT | 2,018 | vue-tb | bitJun | Vue | Code | 371 | 1,339 | <template>
<div>
<div class="demo-upload-list" v-if="img.url">
<template v-if="img">
<img :src="img.url">
<div class="demo-upload-img-cover">
<Icon class="left" type="ios-eye-outline" @click.native="handleView(img)"></Icon>
... | 51,079 |
https://github.com/Achilleas/aqua-py-analysis/blob/master/AQuA-custom/src/+fea/evt2lmkProp.m | Github Open Source | Open Source | MIT | 2,022 | aqua-py-analysis | Achilleas | MATLAB | Code | 381 | 1,346 | function rLmk = evt2lmkProp(evts,lmkBorder,sz,opSig,opPix,muPerPix)
% distances and directions between events and landmarks
%
% !!! Direction features are unreliable !!!
%
% opSig=0 : track whole pixels change
% opSig=1 : track increased pixels only
% opPix=0 : use minimum distances
% opPix=1 : use median distances (si... | 5,107 |
https://github.com/wix-incubator/rich-content-editor/blob/master/examples/storybook/stories/Ricos/ExampleAppStory.tsx | Github Open Source | Open Source | MIT | 2,022 | rich-content-editor | wix-incubator | TypeScript | Code | 34 | 102 | import React from 'react';
import { Page } from '../Components/StoryParts';
import ExampleApplication from '../Components/ExampleApplication';
import exampleAppContent from '../../../../e2e/tests/fixtures/storybook-example-app.json';
export default () => {
return (
<Page title="Example App">
<ExampleApplic... | 45,239 |
https://github.com/h4ck3rm1k3/federal-election-commission-aggregation-json-2011/blob/master/index/PAYEE/STATE/GA/ZIP/303485184/CITY/Atlanta/STREET_1/PO_Box_105184/ORGANIZATION_NAME/Comcast_Cablevision/2011/20110411/721742.fec_1/eed12600c6206ec027c14535c9d9001f347aa832.js | Github Open Source | Open Source | Unlicense | 2,013 | federal-election-commission-aggregation-json-2011 | h4ck3rm1k3 | JavaScript | Code | 1 | 36 | ../../../../../../../../../../../../../../../objects/ee/d12600c6206ec027c14535c9d9001f347aa832.js | 12,398 |
https://github.com/inthehand/32feet/blob/master/Samples/BluetoothClientApp/BluetoothClientApp/MainPage.xaml.cs | Github Open Source | Open Source | MIT, LicenseRef-scancode-proprietary-license | 2,023 | 32feet | inthehand | C# | Code | 260 | 1,067 | using InTheHand.Bluetooth;
using System;
using System.Diagnostics;
using System.Text;
using System.Threading.Tasks;
using Xamarin.Forms;
namespace BluetoothClientApp
{
public partial class MainPage : ContentPage
{
public MainPage()
{
InitializeComponent();
Appearing += ... | 39,655 |
https://github.com/Programie/TeamPlaner/blob/master/src/main/php/com/selfcoders/teamplaner/router/Target.php | Github Open Source | Open Source | MIT | null | TeamPlaner | Programie | PHP | Code | 23 | 76 | <?php
namespace com\selfcoders\teamplaner\router;
class Target
{
public $class;
public $method;
public function __construct($class, $method)
{
$this->class = $class;
$this->method = $method;
}
} | 20,800 |
https://github.com/Azure/azure-libraries-for-net/blob/master/src/ResourceManagement/Storage/Domain/IStorageAccount.cs | Github Open Source | Open Source | MIT | 2,023 | azure-libraries-for-net | Azure | C# | Code | 583 | 1,497 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
namespace Microsoft.Azure.Management.Storage.Fluent
{
using System.Threading;
using System.Threading.Tasks;
/// <summary>
/// An immutable client-... | 24,791 |
https://github.com/mohebifar/startcup/blob/master/src/api/models/Bracket.js | Github Open Source | Open Source | MIT | 2,016 | startcup | mohebifar | JavaScript | Code | 28 | 76 | import { client } from 'helpers/MongoClient';
import mongoose from 'mongoose';
const Schema = mongoose.Schema;
const ObjectId = Schema.ObjectId;
export default client.model('Bracket', {
games: [{type: ObjectId, ref: 'Game'}]
}); | 41,354 |
https://github.com/ecmwf/eckit/blob/master/tests/exception/test_exceptions.cc | Github Open Source | Open Source | BSD-2-Clause, Apache-2.0 | 2,023 | eckit | ecmwf | C++ | Code | 195 | 557 | /*
* (C) Copyright 1996- ECMWF.
*
* This software is licensed under the terms of the Apache Licence Version 2.0
* which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
* In applying this licence, ECMWF does not waive the privileges and immunities
* granted to it by virtue of its status as an interg... | 6,391 |
https://github.com/IamJune/vimo/blob/master/examples/src/pages/storage.vue | Github Open Source | Open Source | MIT | 2,018 | vimo | IamJune | Vue | Code | 237 | 1,207 | <template>
<Page>
<Header>
<Navbar>
<Title>Storage</Title>
</Navbar>
</Header>
<Content padding>
<h5>简要</h5>
<p>vm-storage插件主要是简化操作本地存储, 并且在项目初始化的时候将需要的数据序列化到内存中存储, 方法有: get/set/remove/clear/supported等.</p>
<p>前缀用于区分... | 21,061 |
https://github.com/RealWhimsy/ZombieLowPoly/blob/master/Assets/ToonyTinyPeople/TT_Zombies/prefabs/zombie_female/TT_zombie_F_17_nun.prefab | Github Open Source | Open Source | MIT | 2,021 | ZombieLowPoly | RealWhimsy | Unity3D Asset | Code | 12,142 | 53,361 | %YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1 &100458
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 438842}
- component: {fileID: 3324914}
- component: {file... | 2,556 |
https://github.com/Unipoole/unipoole-service/blob/master/src/main/java/coza/opencollab/unipoole/service/creator/impl/DefaultCreatorService.java | Github Open Source | Open Source | ECL-2.0 | null | unipoole-service | Unipoole | Java | Code | 877 | 2,996 | package coza.opencollab.unipoole.service.creator.impl;
import coza.opencollab.unipoole.UnipooleException;
import static coza.opencollab.unipoole.service.ErrorCodes.FILE_MANIPULATION;
import coza.opencollab.unipoole.service.ServiceCallStatus;
import coza.opencollab.unipoole.service.code.CodeService;
import coza.opencol... | 35,245 |
https://github.com/Arija418/unitopia-soundpack/blob/master/locale/count_locale_usage.lua | Github Open Source | Open Source | MIT | 2,021 | unitopia-soundpack | Arija418 | Lua | Code | 347 | 688 |
-- make copy of original tables
orig_messages = messages
orig_formatted = formatted
orig_times = times
orig_headings = headings
-- empty them out so __index is triggered
-- save original tables so we can look them up eventually
messages = { _orig = orig_messages }
formatted = { _orig = orig_formatted }
times = ... | 42,949 |
https://github.com/adam-collins/gbif-api/blob/master/src/main/java/org/gbif/api/model/common/search/FacetedSearchRequest.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | gbif-api | adam-collins | Java | Code | 471 | 1,228 | /*
* Copyright 2020 Global Biodiversity Information Facility (GBIF)
*
* 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 requ... | 14,570 |
https://github.com/rickvandermey/angular-starterkit/blob/master/apps/starterkit/src/app/services/local-storage.service.ts | Github Open Source | Open Source | MIT | 2,022 | angular-starterkit | rickvandermey | TypeScript | Code | 119 | 315 | import { isPlatformBrowser } from '@angular/common';
import { Inject, Injectable, PLATFORM_ID } from '@angular/core';
/* istanbul ignore next */
/**
* LocalStorageService provides a service to save and gets the Store
*/
@Injectable({ providedIn: 'root' })
export class LocalStorageService {
constructor(@Inject(PLATFO... | 40,653 |
https://github.com/mghgroup/Glide-Browser/blob/master/chrome/browser/policy/messaging_layer/upload/app_install_report_handler.cc | Github Open Source | Open Source | BSD-3-Clause-No-Nuclear-License-2014, BSD-3-Clause | null | Glide-Browser | mghgroup | C++ | Code | 358 | 1,898 | // Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/policy/messaging_layer/upload/app_install_report_handler.h"
#include <utility>
#include "base/bind.h"
#include "base/callback.h... | 33,561 |
https://github.com/headio/phalcon-service-layer/blob/master/src/Entity/Behavior/Timestampable.php | Github Open Source | Open Source | MIT | 2,020 | phalcon-service-layer | headio | PHP | Code | 96 | 282 | <?php
/**
* This source file is subject to the MIT License.
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this package.
*/
declare(strict_types=1);
namespace Headio\Phalcon\ServiceLayer\Entity\Behavior;
use Phalcon\Mvc\Model\Behavior;
use Phalcon\Mvc... | 36,442 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.