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/Hmevasia/E-Learning-System/blob/master/UpdateTutorCourse.aspx | Github Open Source | Open Source | MIT | 2,019 | E-Learning-System | Hmevasia | null | Spoken | 217 | 1,117 | <%@ Page Language="C#" AutoEventWireup="true" CodeFile="UpdateTutorCourse.aspx.cs" Inherits="UpdateTutorCourse" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Update Tutor Cours... | 12,841 |
https://github.com/kth-tcs/sequencer/blob/master/results/Defects4J_patches/Math_63/31_compiled/patch.diff | Github Open Source | Open Source | MIT | 2,022 | sequencer | kth-tcs | null | Spoken | 45 | 231 | --- /mnt/home/ubuntu/sequencer/src/Defects4J_Experiment/Defects4J_projects/Math_63/src/main/java/org/apache/commons/math/util/MathUtils.java 2019-01-31 23:49:59.976220855 +0000
+++ /mnt/home/ubuntu/sequencer/src/Defects4J_Experiment/Defects4J_patches/Math_63/31/MathUtils.java 2019-01-31 23:50:04.500236419 +0000
@@ -414... | 41,377 |
https://github.com/shaunanoordin/zooniverse-mapexplorer/blob/master/src/pages/Map-3/Explanation.jsx | Github Open Source | Open Source | Apache-2.0 | 2,016 | zooniverse-mapexplorer | shaunanoordin | JavaScript | Code | 523 | 1,440 | import React from 'react';
export default class Explanation extends React.Component {
render() {
return (
<div className="map-explanation">
<h1>Adding Multiple Layers</h1>
<p>You know what's better than having one Base Layer and one Data Layer? Having more of them.</p>
<p>Let's pile... | 38,022 |
https://github.com/cuappdev/archives/blob/master/podcast-backend/tests/test_friends.py | Github Open Source | Open Source | MIT | null | archives | cuappdev | Python | Code | 377 | 2,247 | import sys
from flask import json
from tests.test_case import *
from tests.test_user import *
from tests import api_utils
from app import constants # pylint: disable=C0413
class FriendsTestCase(TestCase):
def setUp(self):
super(FriendsTestCase, self).setUp()
Following.query.delete()
IgnoredUsers.query.d... | 30,218 |
https://github.com/tianfengs/AbpPractice/blob/master/C# 6 and .net core/Chapter10/Ch10_Serialization/Person.cs | Github Open Source | Open Source | MIT | 2,021 | AbpPractice | tianfengs | C# | Code | 72 | 195 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Serialization;
namespace Ch10_Serialization
{
[Serializable]
public class Person
{
public Person() { }
public Person(decimal initialSalary)
{
... | 46,862 |
https://github.com/muscariello/hicn-test/blob/master/libtransport/src/core/memif_connector.h | Github Open Source | Open Source | Apache-2.0 | 2,020 | hicn-test | muscariello | C | Code | 334 | 1,197 | /*
* Copyright (c) 2017-2019 Cisco and/or its affiliates.
* 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 appl... | 29,310 |
https://github.com/mew/Slothpixel-JVM/blob/master/src/main/kotlin/zone/nora/slothpixel/skyblock/auctions/SkyblockAuction.kt | Github Open Source | Open Source | BSD-3-Clause | 2,021 | Slothpixel-JVM | mew | Kotlin | Code | 79 | 340 | package zone.nora.slothpixel.skyblock.auctions
import com.google.gson.annotations.SerializedName
import zone.nora.slothpixel.skyblock.auctions.bids.SkyblockAuctionBid
import zone.nora.slothpixel.skyblock.items.SkyblockItem
class SkyblockAuction {
@SerializedName("item")
val item = SkyblockItem()
@Seriali... | 31,894 |
https://github.com/pinpoint-apm/pinpoint/blob/master/rpc/src/main/java/com/navercorp/pinpoint/rpc/common/CyclicStateChecker.java | Github Open Source | Open Source | DOC, LicenseRef-scancode-free-unknown, CC0-1.0, OFL-1.1, GPL-1.0-or-later, CC-PDDC, GPL-2.0-only, Apache-2.0, LicenseRef-scancode-public-domain, CC-BY-3.0, LicenseRef-scancode-unknown-license-reference, MITNFA, MIT, CC-BY-4.0, OFL-1.0 | 2,023 | pinpoint | pinpoint-apm | Java | Code | 267 | 516 | /*
* Copyright 2014 NAVER Corp.
*
* 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 ... | 34,176 |
https://github.com/manlinting/mmcv/blob/master/test_project/load_data.sh | Github Open Source | Open Source | Apache-2.0 | 2,019 | mmcv | manlinting | Shell | Code | 121 | 375 | #!/bin/bash
#########################################################################
# Author:
# Created Time: Mon 01 Apr 2019 09:15:32 PM CST
# File Name: load_data.sh
# Description:
#########################################################################
CEPH_PATH="xx"
LOCAL_PATH="xx"
if (( $(find $LOCAL_PATH ... | 12,775 |
https://github.com/karlwettin/osm-common/blob/master/core/src/main/java/se/kodapan/osm/services/nominatim/AbstractCachedNominatim.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | osm-common | karlwettin | Java | Code | 87 | 247 | package se.kodapan.osm.services.nominatim;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* @author kalle
* @since 2013-07-28 19:57
*/
public abstract class AbstractCachedNominatim extends Nominatim {
protected Logger log = LoggerFactory.getLogger(getClass());
@Override
public synchronized St... | 13,071 |
https://github.com/Ever4engel/spy-spotify/blob/master/EspionSpotify/API/SpotifyAPI.cs | Github Open Source | Open Source | MIT | null | spy-spotify | Ever4engel | C# | Code | 651 | 2,358 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using EspionSpotify.Enums;
using EspionSpotify.Extensions;
using EspionSpotify.Models;
using EspionSpotify.Properties;
using EspionSpotify.Spotify;
using SpotifyAPI.Web;
using SpotifyAPI.Web.Auth;
using SpotifyAPI.Web.Enum... | 51,354 |
https://github.com/vusec/firestarter/blob/master/apps/httpd-2.2.23/modules/aaa/mod_authz_groupfile.c | Github Open Source | Open Source | Apache-2.0 | 2,021 | firestarter | vusec | C | Code | 965 | 2,684 | /* 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 not... | 49,750 |
https://github.com/jdkent/neurodocker/blob/master/neurodocker/generators/common.py | Github Open Source | Open Source | Apache-2.0 | null | neurodocker | jdkent | Python | Code | 408 | 1,326 | """"""
import datetime
import json
import os
import posixpath
from neurodocker import __version__
from neurodocker.interfaces._base import _BaseInterface
from neurodocker.interfaces._base import apt_install
from neurodocker.interfaces._base import yum_install
_installation_implementations = {
ii._name: ii
fo... | 44,308 |
https://github.com/faith1453/Lehrerkalender/blob/master/database/seeds/ClassStudentSeeder.php | Github Open Source | Open Source | MIT | null | Lehrerkalender | faith1453 | PHP | Code | 62 | 218 | <?php
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\DB;
class ClassStudentSeeder extends Seeder
{
public function run() {
DB::table('class_student')
->insert(
[
['class_id' => 1, 'student_id' => 1],
['class_id' => 1, 'stu... | 12,723 |
https://github.com/beida101/PublicCMS/blob/master/publiccms-admin-by-maven/src/main/java/com/publiccms/logic/service/cms/CmsContentService.java | Github Open Source | Open Source | Apache-2.0 | null | PublicCMS | beida101 | Java | Code | 400 | 1,422 | package com.publiccms.logic.service.cms;
// Generated 2015-5-8 16:50:23 by SourceMaker
import static org.apache.commons.lang3.ArrayUtils.add;
import static org.apache.commons.lang3.StringUtils.splitByWholeSeparator;
import java.io.Serializable;
import java.util.Date;
import java.util.concurrent.Future;
import org.s... | 48,054 |
https://github.com/guillermomolina/graal-i4gl/blob/master/language/src/main/java/i4gl/exceptions/UndefinedNameException.java | Github Open Source | Open Source | UPL-1.0 | null | graal-i4gl | guillermomolina | Java | Code | 70 | 223 | package i4gl.exceptions;
import com.oracle.truffle.api.CompilerDirectives.TruffleBoundary;
import com.oracle.truffle.api.nodes.Node;
public final class UndefinedNameException extends I4GLRuntimeException {
private static final long serialVersionUID = -4386063483849151838L;
@TruffleBoundary
public static... | 6,418 |
https://github.com/nkamuo/dredge/blob/master/src/modules/commerce-catalog/components/brand.form.vue | Github Open Source | Open Source | MIT | null | dredge | nkamuo | Vue | Code | 144 | 658 | <template>
<div>
<v-layout justify-space-around row wrap>
<v-flex sm5>
<v-input>
<v-text-field
name="brand.name"
v-model="brand.name"
label="Brand Name"
... | 29,917 |
https://github.com/kariem2k/rive-cpp/blob/master/include/rive/importers/state_machine_importer.hpp | Github Open Source | Open Source | MIT | 2,022 | rive-cpp | kariem2k | C++ | Code | 53 | 206 | #ifndef _RIVE_STATE_MACHINE_IMPORTER_HPP_
#define _RIVE_STATE_MACHINE_IMPORTER_HPP_
#include "rive/importers/import_stack.hpp"
namespace rive
{
class StateMachineInput;
class StateMachineLayer;
class StateMachine;
class StateMachineImporter : public ImportStackObject
{
private:
StateMachine* m_StateMachine;
... | 30,230 |
https://github.com/nzamani/ui5-seed-app/blob/master/src/main/webapp/test/unit/model/formatter.js | Github Open Source | Open Source | Apache-2.0 | 2,019 | ui5-seed-app | nzamani | JavaScript | Code | 50 | 251 | /*global QUnit */
sap.ui.require([
"nabi/seed/app/model/formatter",
//do not add to parameter list:
"sap/ui/thirdparty/sinon",
"sap/ui/thirdparty/sinon-qunit"
], function(formatter) {
"use strict";
QUnit.module("nabi.seed.app.model.formatter");
QUnit.test("2.335 should be 2.33", function (assert) {
assert.st... | 32,906 |
https://github.com/VanirLab/weever/blob/master/src/fat/fat_filesystem/fat_entry.py | Github Open Source | Open Source | MIT | 2,019 | weever | VanirLab | Python | Code | 282 | 890 | """
FAT12, FAT16 and FAT32 Cluster address definition.
"""
from construct import Pass, Mapping, Int16ul, Int32ul
# As construct.Enum does not allow multiple integers mapping to one value,
# these cluster address definitions are implemented by imitation the
# construct.Enum function and returning a valid construct.Mapp... | 10,762 |
https://github.com/generoso/dotfiles/blob/master/modules/shell/aliases/guake.sh | Github Open Source | Open Source | MIT | null | dotfiles | generoso | Shell | Code | 17 | 112 | GUAKE_CONFIG_DUMP="$DOTFILES/modules/guake/guake.conf"
alias qguake-config-show="dconf dump /apps/guake/"
alias qguake-config-dump="dconf dump /apps/guake/ > $GUAKE_CONFIG_DUMP"
alias qguake-config-load="dconf load /apps/guake/ < $GUAKE_CONFIG_DUMP"
| 5,403 |
https://github.com/adham90/amun/blob/master/lib/amun/major_modes/irb.rb | Github Open Source | Open Source | MIT | 2,017 | amun | adham90 | Ruby | Code | 83 | 264 | require 'amun/object'
require 'amun/helpers/colors'
require 'amun/behaviours/emacs'
module Amun
module MajorModes
# mode that executes the last line in
# the current environment and print the output
class IRB < Object
include Behaviours::Emacs
def initialize(buffer)
super()
... | 46,389 |
https://github.com/geneontology/noctua-models/blob/master/models/MGI_MGI_3779910.ttl | Github Open Source | Open Source | CC-BY-4.0 | 2,023 | noctua-models | geneontology | Turtle | Code | 491 | 5,841 |
<http://model.geneontology.org/MGI_MGI_3779910> a <http://www.w3.org/2002/07/owl#Ontology> .
<http://geneontology.org/lego/evidence> a <http://www.w3.org/2002/07/owl#AnnotationProperty> .
<http://geneontology.org/lego/hint/layout/x> a <http://www.w3.org/2002/07/owl#AnnotationProperty> .
<http://geneontology.org/leg... | 20,129 |
https://github.com/subond/tools/blob/master/eigen/lapack/cholesky.cpp | Github Open Source | Open Source | MIT | null | tools | subond | C++ | Code | 258 | 872 | // This file is part of Eigen, a lightweight C++ template library
// for linear algebra.
//
// Copyright (C) 2010-2011 Gael Guennebaud <gael.guennebaud@inria.fr>
//
// This Source Code Form is subject to the terms of the Mozilla
// Public License v. 2.0. If a copy of the MPL was not distributed
// with this file, You c... | 50,801 |
https://github.com/danielzhe/kie-wb-common/blob/master/kie-wb-common-stunner/kie-wb-common-stunner-client/kie-wb-common-stunner-widgets/src/test/java/org/kie/workbench/common/stunner/client/widgets/canvas/StunnerLienzoBoundsPanelTest.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | kie-wb-common | danielzhe | Java | Code | 473 | 2,350 | /*
* Copyright 2018 Red Hat, Inc. and/or its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 32,544 |
https://github.com/opengauss-mirror/openGauss-graph/blob/master/src/common/backend/port/dynloader/netbsd.cpp | Github Open Source | Open Source | MulanPSL-1.0 | 2,022 | openGauss-graph | opengauss-mirror | C++ | Code | 481 | 1,217 | /*
* Portions Copyright (c) 1996-2012, PostgreSQL Global Development Group
* Portions Copyright (c) 1990 The Regents of the University of California.
* All rights reserved.
*
* src/backend/port/dynloader/netbsd.c
* _t rc =snprintf_truncated_s
*
* Redistribution and use in source and binary forms, with or withou... | 38,326 |
https://github.com/kittycat2002/Neko-Alternate/blob/master/objects/protectorate/objects/protectorateposter1/protectorateposter1.object.patch | Github Open Source | Open Source | MIT | 2,017 | Neko-Alternate | kittycat2002 | null | Spoken | 20 | 54 | [
{
"op": "add",
"path": "/nekoDescription",
"value": "This poster features the Matter Manipulator, prized multi-tool of the Protectorate."
}
] | 3,390 |
https://github.com/elliotchance/XSD2PHP/blob/master/test/data/expected/ubl2.0/oasis/names/specification/ubl/schema/xsd/CommonAggregateComponents_2/OriginatorCustomerParty.php | Github Open Source | Open Source | Apache-2.0 | 2,021 | XSD2PHP | elliotchance | PHP | Code | 27 | 145 | <?php
namespace oasis\names\specification\ubl\schema\xsd\CommonAggregateComponents_2;
/**
* @xmlNamespace urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2
* @xmlType CustomerPartyType
* @xmlName OriginatorCustomerParty
* @var oasis\names\specification\ubl\schema\xsd\CommonAggregateComponent... | 42,882 |
https://github.com/galiboo/lore/blob/master/lore/metadata/__init__.py | Github Open Source | Open Source | MIT | 2,019 | lore | galiboo | Python | Code | 761 | 2,623 | import datetime
import inflection
import subprocess
import logging
import os
from sqlalchemy import Column, Float, Integer, String, DateTime, JSON, func, ForeignKey
from sqlalchemy.ext.declarative import declarative_base, declared_attr
from sqlalchemy.orm import sessionmaker, relationship, scoped_session
from sqlalche... | 43,784 |
https://github.com/Ross1503/Brunel/blob/master/data/src/test/java/org/brunel/data/modify/TestSort.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | Brunel | Ross1503 | Java | Code | 579 | 1,844 | /*
* Copyright (c) 2015 IBM Corporation and others.
*
* 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 applicab... | 33,338 |
https://github.com/CaoKha/Synchronization/blob/master/dxl_430_arduino/lib/Dynamixel2Arduino-0.1.3/src/utility/protocol.cpp | Github Open Source | Open Source | Apache-2.0 | 2,019 | Synchronization | CaoKha | C++ | Code | 1,565 | 7,878 |
#include "protocol.h"
using namespace DYNAMIXEL;
#define PACKET_2_0_STATE_IDLE 0
#define PACKET_2_0_STATE_RESERVED 1
#define PACKET_2_0_STATE_ID 2
#define PACKET_2_0_STATE_LENGTH_L 3
#define PACKET_2_0_STATE_LENGTH_H 4
#define PACKET_2_0_STATE_DATA 5
#define PACKET_2_0_STATE_CRC_L 6
... | 27 |
https://github.com/CodepadME/laravel-tricks/blob/master/app/views/partials/search.blade.php | Github Open Source | Open Source | MIT | 2,020 | laravel-tricks | CodepadME | Blade | Code | 21 | 90 | {{ Form::open(['url'=>'search','method'=>'GET']);}}
<input type="text" name="q" class="search-box form-control" placeholder="{{ trans('partials.search_placeholder') }}" value="{{{isset($term) ? $term : ''}}}">
<input style="display:none;" type="submit" value="search">
{{ Form::close()}}
| 41,083 |
https://github.com/juckylv/TestingNoninterference/blob/master/register/Driver.hs | Github Open Source | Open Source | MIT | 2,015 | TestingNoninterference | juckylv | Haskell | Code | 1,859 | 4,170 | {-# LANGUAGE RecordWildCards, ScopedTypeVariables, NamedFieldPuns #-}
module Driver where
import Test.QuickCheck
import qualified Test.QuickCheck.Property as QCProp
import qualified Test.QuickCheck.State as St
import Primitives
import SingleStateArb()
import Shrinking
import SanityChecks
import Generation
import SSNI... | 2,467 |
https://github.com/zhiweichen95/DRNet/blob/master/detectron/utils/blob.py | Github Open Source | Open Source | Apache-2.0 | 2,022 | DRNet | zhiweichen95 | Python | Code | 837 | 2,124 | # Copyright (c) 2017-present, Facebook, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed... | 14,819 |
https://github.com/JakubLinhart/SphereServer99/blob/master/src/common/twofish/platform.h | Github Open Source | Open Source | Apache-2.0 | null | SphereServer99 | JakubLinhart | C | Code | 250 | 667 | /***************************************************************************
PLATFORM.H -- Platform-specific defines for TWOFISH code
Submitters:
Bruce Schneier, Counterpane Systems
Doug Whiting, Hi/fn
John Kelsey, Counterpane Systems
Chris Hall, Counterpane Systems
David Wagner, UC Berkeley
Code Author: Doug Whiti... | 12,354 |
https://github.com/weissrob/mygeotab-api-adapter/blob/master/MyGeotabAPIAdapter.Database/DataAccess/Core/BaseRepository.cs | Github Open Source | Open Source | MIT | 2,021 | mygeotab-api-adapter | weissrob | C# | Code | 1,740 | 4,281 | using Dapper.Contrib.Extensions;
using System;
using System.Collections.Generic;
using System.Data.Common;
using System.Threading;
using System.Threading.Tasks;
namespace MyGeotabAPIAdapter.Database.DataAccess
{
/// <summary>
/// A generic base repository class that handles database CRUD operations.
/// <... | 41,753 |
https://github.com/speier/shake/blob/master/src/Shake.UnitTests/Helpers/RegexHelperTests.cs | Github Open Source | Open Source | MIT | null | shake | speier | C# | Code | 36 | 296 | using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Shake.Helpers;
namespace Shake.Tests.Helpers
{
[TestClass]
public class RegexHelperTests
{
[TestMethod]
public void TestWildcard()
{
... | 51,268 |
https://github.com/anitha-cs/smaccm/blob/master/fm-workbench/agree/com.rockwellcollins.atc.agree.analysis/src/com/rockwellcollins/atc/agree/analysis/AgreeUtils.java | Github Open Source | Open Source | BSD-3-Clause | 2,015 | smaccm | anitha-cs | Java | Code | 946 | 3,558 | package com.rockwellcollins.atc.agree.analysis;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
i... | 8,152 |
https://github.com/DilaverSerif/PotatoPET/blob/master/Assets/Scripts/Item.cs | Github Open Source | Open Source | MIT | null | PotatoPET | DilaverSerif | C# | Code | 18 | 60 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
[RequireComponent(typeof(SpriteRenderer))]
public class Item : MonoBehaviour
{
[SerializeField] private ItemData data;
}
| 24,194 |
https://github.com/gitter-badger/Flask-PluginKit/blob/master/tests/test_installer.py | Github Open Source | Open Source | MIT | 2,019 | Flask-PluginKit | gitter-badger | Python | Code | 102 | 765 | # -*- coding: utf-8 -*-
import os
import unittest
from flask_pluginkit import PluginInstaller
class PITest(unittest.TestCase):
def __init__(self, *args, **kwargs):
super(PITest, self).__init__(*args, **kwargs)
self.pi = PluginInstaller('.')
def setUp(self):
pass
def tearDown(se... | 36,436 |
https://github.com/idapgroup/IDPDesign/blob/master/Tests/iOS/iOSTests/Specs/Lens+UIScreenEdgePanGestureRecognizerSpec.swift | Github Open Source | Open Source | BSD-3-Clause | 2,017 | IDPDesign | idapgroup | Swift | Code | 87 | 319 | //
// Lens+UIScreenEdgePanGestureRecognizerSpec.swift
// iOSTests
//
// Created by Oleksa 'trimm' Korin on 9/2/17.
// Copyright © 2017 Oleksa 'trimm' Korin. All rights reserved.
//
import Quick
import Nimble
import UIKit
@testable import IDPDesign
extension UIScreenEdgePanGestureRecognizer: UIScreenEdgePanGestu... | 33,178 |
https://github.com/stevesoltys/owl/blob/master/src/main/java/com/stevesoltys/owl/model/Plugin.java | Github Open Source | Open Source | MIT | 2,016 | owl | stevesoltys | Java | Code | 180 | 390 | package com.stevesoltys.owl.model;
import java.util.List;
/**
* A plugin.
*
* @author Steve Soltys
*/
public class Plugin {
/**
* The name of this plugin.
*/
private final String name;
/**
* A description of this plugin.
*/
private final String description;
/**
* Th... | 5,333 |
https://github.com/MoteCL/ignisterra/blob/master/application/models/ModelSupervisor.php | Github Open Source | Open Source | MIT | 2,018 | ignisterra | MoteCL | PHP | Code | 252 | 1,088 | <?php
defined('BASEPATH') OR exit('No direct script access allowed');
class ModelSupervisor extends CI_Model
{
public function getManSeguimiento()
{
$this->db->order_by('idMan_Tecnico', 'desc');
$query = $this->db->get('MAN_Seguimiento');
if ($query->num_rows() > 0) {
return $query->... | 4,759 |
https://github.com/petergi/obd2-swift-lib/blob/master/OBD2-Swift/Classes/Parser/SensorDescriptorTable.swift | Github Open Source | Open Source | MIT | 2,019 | obd2-swift-lib | petergi | Swift | Code | 1,687 | 6,552 | //
// SensorDescriptorTable.swift
// OBD2Swift
//
// Created by Max Vitruk on 27/04/2017.
// Copyright © 2017 Lemberg. All rights reserved.
//
import Foundation
//------------------------------------------------------------------------------
//MARK: -
//MARK: Global Sensor Table
let NULL = ""
let VOID : ((Data)-... | 33,288 |
https://github.com/chm994483868/HMDailyLearningRecord/blob/master/OfferReview/OfferReview/Sort/04_SelectSort/SelectSort.cpp | Github Open Source | Open Source | MIT | 2,021 | HMDailyLearningRecord | chm994483868 | C++ | Code | 344 | 992 | //
// SelectSort.cpp
// OfferReview
//
// Created by CHM on 2020/8/4.
// Copyright © 2020 CHM. All rights reserved.
//
#include "SelectSort.hpp"
void SelectSort::selectSort(int nums[], int count) {
if (nums == nullptr || count <= 0) {
return;
}
for (int i = 0; i < count; ++i) {
in... | 20,969 |
https://github.com/zealoussnow/chromium/blob/master/third_party/material_web_components/components-chromium/node_modules/@material/mwc-ripple/ripple-directive.d.ts | Github Open Source | Open Source | BSD-3-Clause-No-Nuclear-License-2014, BSD-3-Clause | 2,022 | chromium | zealoussnow | TypeScript | Code | 160 | 400 | import { RippleInterface } from '../mwc-base/form-element.js';
import MDCRippleFoundation from '../ripple/foundation.js';
import { PropertyPart } from '../../lit-html/lit-html.js';
export interface RippleOptions {
interactionNode?: HTMLElement;
unbounded?: boolean;
disabled?: boolean;
active?: boolean;
... | 39,079 |
https://github.com/CPU-Code/-u_boot_fslc/blob/master/arch/arm/mach-rockchip/misc.c | Github Open Source | Open Source | 0BSD, GPL-2.0-or-later | 2,020 | -u_boot_fslc | CPU-Code | C | Code | 406 | 1,363 | /* SPDX-License-Identifier: GPL-2.0+ */
/*
* RK3399: Architecture common definitions
*
* Copyright (C) 2019 Collabora Inc - https://www.collabora.com/
* Rohan Garg <rohan.garg@collabora.com>
*
* Based on puma-rk3399.c:
* (C) Copyright 2017 Theobroma Systems Design und Consulting GmbH
*/
#include <com... | 13,036 |
https://github.com/d4rken/myo-android-2048/blob/master/app/src/main/java/eu/thedarken/myo/twothousandfortyeight/tools/Logy.java | Github Open Source | Open Source | Apache-2.0, MIT | 2,021 | myo-android-2048 | d4rken | Java | Code | 181 | 454 | package eu.thedarken.myo.twothousandfortyeight.tools;
import android.util.Log;
import eu.thedarken.myo.twothousandfortyeight.BuildConfig;
/**
* It's Logy!
*/
public class Logy {
private static final int VERBOSE = 1;
private static final int DEBUG = 2;
private static final int NORMAL = 3;
private sta... | 42,920 |
https://github.com/ppetkovv/TelerikAcademy/blob/master/ModuleOne/HomeworkNine/StudentsAndWorkers/Program.cs | Github Open Source | Open Source | MIT | null | TelerikAcademy | ppetkovv | C# | Code | 150 | 721 | using StudentsAndWorkers.Contracts;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace StudentsAndWorkers
{
class Program
{
static void Main(string[] args)
{
//First Subtask
ICollection<IStudent... | 21,610 |
https://github.com/luzkenin/kbupdate/blob/master/library/xWindowsUpdate/2.8.0.0/Examples/Resources/xHotfix/1-Sample_xWindowsUpdateFromPath.ps1 | Github Open Source | Open Source | MIT | 2,022 | kbupdate | luzkenin | PowerShell | Code | 50 | 120 | <#
.EXAMPLE
This sample looks at installing a particular windows update. However, the path and ID properties can be changed
as per the hotfix that you want to install
#>
Configuration Example
{
Import-DscResource -ModuleName xWindowsUpdate
xHotfix m1 {
Path = "c:\WindowsBlue-KB2937982-x... | 19,535 |
https://github.com/csaether/sussit/blob/master/winfiles/ps3000.h | Github Open Source | Open Source | BSD-3-Clause-Clear | null | sussit | csaether | C | Code | 1,230 | 4,666 | /****************************************************************************
*
* Filename: ps3000.h
* Copyright: Pico Technology Limited 2002-2007
* Author: MTB
* Description:
*
* This header defines the interface to driver routines for the
* PicoScope 3000 range of PC Oscilloscopes.
*
***********... | 9,121 |
https://github.com/shafiqkr18/gistler/blob/master/app/Repositories/MortgageRepository.php | Github Open Source | Open Source | MIT | null | gistler | shafiqkr18 | PHP | Code | 49 | 162 | <?php
namespace App\Repositories;
use App\User;
use App\Mortgage;
use DB;
class MortgageRepository
{
/**
* Get all of the mortgage data.
*
* @param User $user
* @return Collection
*/
public function getMortgage()
{
return Mortgage::where('is_active', 1)
... | 50,551 |
https://github.com/wmjpillow/IslandGame/blob/master/Assets/Scripts/UIScript/KeyboardControl.cs | Github Open Source | Open Source | MIT | 2,020 | IslandGame | wmjpillow | C# | Code | 94 | 327 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class KeyboardControl : MonoBehaviour
{
// Audio for opening and closing notebook
private SFXManager sfxMan;
public AudioClip openNotebook;
public AudioClip closeNotebook;
public GameObject Text1;
public... | 32,857 |
https://github.com/apache/cloudstack/blob/master/plugins/user-authenticators/saml2/src/main/java/org/apache/cloudstack/api/command/GetServiceProviderMetaDataCmd.java | Github Open Source | Open Source | GPL-2.0-only, Apache-2.0, BSD-3-Clause, MIT, GPL-1.0-or-later, LicenseRef-scancode-public-domain, BSD-2-Clause, LicenseRef-scancode-unknown | 2,023 | cloudstack | apache | Java | Code | 785 | 3,771 | // 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... | 9,436 |
https://github.com/hernanmd/pharo/blob/master/src/Tool-Base.package/ToolShortcutsCategory.class/instance/saveImage.st | Github Open Source | Open Source | MIT | 2,019 | pharo | hernanmd | null | Spoken | 25 | 77 | keymaps
saveImage
<shortcut>
^ KMKeymap
shortcut: PharoShortcuts current saveImageShortcut
action: [
(Smalltalk snapshot: true andQuit: false)
ifFalse: [ UIManager default inform: 'Image saved' ] ] | 6,921 |
https://github.com/dannyelgjl/News/blob/master/src/pages/NewsList/index.tsx | Github Open Source | Open Source | MIT | null | News | dannyelgjl | TypeScript | Code | 59 | 170 | import React from 'react';
import { VerticalList } from '../../components';
import data from '../../services/news';
import { Header, CategoryTitle, NewsScroll } from './styles';
const NewsList: React.FC = () => {
const techNews = data.filter(item => item.category === 'tech');
const header = techNews[0].category.s... | 8,218 |
https://github.com/GautierT/eui/blob/master/src/themes/eui-amsterdam/global_styling/variables/_form.scss | Github Open Source | Open Source | Apache-2.0 | 2,022 | eui | GautierT | SCSS | Code | 14 | 95 | $euiFormControlBorderRadius: $euiBorderRadius;
$euiFormControlCompressedBorderRadius: $euiBorderRadiusSmall;
$euiFormInputGroupBorder: none;
$euiFormBackgroundReadOnlyColor: $euiColorEmptyShade;
$euiFormControlBoxShadow: 0 0 transparent;
$euiCheckboxBorderRadius: $euiBorderRadiusSmall;
| 12,131 |
https://github.com/star013/peloton/blob/master/src/function/decimal_functions.cpp | Github Open Source | Open Source | Apache-2.0 | 2,022 | peloton | star013 | C++ | Code | 325 | 1,485 | //===----------------------------------------------------------------------===//
//
// Peloton
//
// decimal_functions.cpp
//
// Identification: src/function/decimal_functions.cpp
//
// Copyright (c) 2015-2017, Carnegie Mellon University Database Group
//
//===-----------------------------------... | 11,365 |
https://github.com/jfondeur/vaccine/blob/master/journey/Patients/views.py | Github Open Source | Open Source | MIT | 2,020 | vaccine | jfondeur | Python | Code | 184 | 707 | from django.shortcuts import render
from .models import Patient
from location.models import Provincia, Municipio
from django.contrib.auth.decorators import login_required
from django.views.generic import ListView, CreateView
from django.contrib.messages.views import SuccessMessageMixin
from django.forms import ModelFor... | 51,651 |
https://github.com/Gluons-5439/SkyStone5.4/blob/master/TeamCode/src/main/java/org/firstinspires/ftc/teamcode/EasyAuto.java | Github Open Source | Open Source | BSD-3-Clause | 2,020 | SkyStone5.4 | Gluons-5439 | Java | Code | 110 | 436 | package org.firstinspires.ftc.teamcode;
import com.qualcomm.robotcore.eventloop.opmode.Autonomous;
import com.qualcomm.robotcore.eventloop.opmode.LinearOpMode;
import com.qualcomm.robotcore.hardware.DcMotor;
import org.firstinspires.ftc.robotcore.external.navigation.VuforiaTrackable;
import org.firstinspires.ftc.robo... | 6,925 |
https://github.com/neshkeev/functional-programming-java/blob/master/src/main/java/org/example/steps/step1/Adt.java | Github Open Source | Open Source | Apache-2.0 | null | functional-programming-java | neshkeev | Java | Code | 161 | 601 | package org.example.steps.step1;
import org.example.adt.Id;
import org.example.adt.List;
import org.example.adt.Optional;
import org.example.adt.Tree;
import static org.example.adt.List.cons;
import static org.example.adt.List.nil;
import static org.example.adt.Optional.none;
import static org.example.adt.Optional.so... | 9,861 |
https://github.com/KratosMultiphysics/Kratos/blob/master/kratos/mpi/tests/cpp_tests/sources/test_data_communicator.cpp | Github Open Source | Open Source | BSD-3-Clause | 2,023 | Kratos | KratosMultiphysics | C++ | Code | 4,583 | 19,180 | // | / |
// ' / __| _` | __| _ \ __|
// . \ | ( | | ( |\__ `
// _|\_\_| \__,_|\__|\___/ ____/
// Multi-Physics
//
// License: BSD License
// Kratos default license: kratos/license.txt
//
// Main authors: Jordi Cotela
//
//
// System ... | 31,065 |
https://github.com/jamen/etmo/blob/master/packages/atom-etmo-bar/styles/etmo-bar.less | Github Open Source | Open Source | MIT | 2,017 | etmo | jamen | Less | Code | 61 | 203 |
.etmo-bar {
padding: 5px;
&, * {
box-sizing: border-box;
}
.command {
display: flex;
flex-direction: row;
padding: 5px;
}
.command input {
display: inline-block;
border: 0;
flex: initial;
padding: 0;
background: none;
}
.command .block {
display: flex;
fl... | 32,373 |
https://github.com/yatsuha4/unitwb/blob/master/DistortionMask/Script/DistortionMask.cs | Github Open Source | Open Source | MIT | null | unitwb | yatsuha4 | C# | Code | 81 | 263 | using UnityEngine;
using UnityEngine.UI;
namespace unitwb {
/**
*/
public class DistortionMask
: MonoBehaviour
{
public float size = 64.0f;
private Image image;
/**
*/
void Awake() {
this.image = GetComponent<Image>();
this.image.material = new Material(this.image.material);
}
/**
*/
... | 34,360 |
https://github.com/dalek7/Algorithms/blob/master/CameraGeometry/reference/SFMedu2/matchSIFT/vlfeat/toolbox/noprefix/ikmeanshist.m | Github Open Source | Open Source | MIT, BSD-2-Clause, GPL-1.0-or-later, BSD-3-Clause | 2,019 | Algorithms | dalek7 | MATLAB | Code | 38 | 118 | function varargout = ikmeanshist(varargin)
% VL_IKMEANSHIST Compute histogram of quantized data
% H = VL_IKMEANSHIST(K,ASGN) computes the histogram of the IKM clusters
% activated by cluster assignments ASGN.
%
% See also: VL_IKMEANS(), VL_IKMEANSPUSH(), VL_HELP().
[varargout{1:nargout}] = vl_ikmeanshist(varargin{:... | 23,452 |
https://github.com/fideledev/Bhano-Blog/blob/master/static/user/js/custom-components.js | Github Open Source | Open Source | MIT | null | Bhano-Blog | fideledev | JavaScript | Code | 48 | 209 | $(document).ready(function () {
// Modal Window
$('.modal-large').modal('show');
// Tooltips
$('.btn').tooltip('hide');
// Dropdown
$('.dropdown-toggle').dropdown();
// Popovers
$('.btn').popover('hide');
// Loading Stage Button
$('#loading-btn')
.click(function () {
var btn = $(this)
btn.button('lo... | 46,262 |
https://github.com/wise-team/steem-wise-core/blob/master/src/protocol/versions/v1/build-schema.sh | Github Open Source | Open Source | MIT | 2,019 | steem-wise-core | wise-team | Shell | Code | 33 | 181 | #!/usr/bin/env bash
set -e
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" # https://stackoverflow.com/questions/59895/getting-the-source-directory-of-a-bash-script-from-within
typescript-json-schema \
--strictNullChecks \
--required \
--include "$DIR/*.schema.ts" \
--out "$DIR/smartvotes.sche... | 18,167 |
https://github.com/baidu/baiduads-sdk/blob/master/java/baiduads-sdk-auto/src/main/java/com/baidu/dev2/api/sdk/cluescore/model/SubmitClueTaskRequest.java | Github Open Source | Open Source | Apache-2.0 | 2,023 | baiduads-sdk | baidu | Java | Code | 625 | 2,745 | /*
* dev2 api schema
* 'dev2.baidu.com' api schema
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package com.baidu.dev2.api.sdk.cluescore.model;
import java.util.Objects;
import java.util.A... | 8,402 |
https://github.com/kmccullen/CCSCNE-2018/blob/master/tweetIPAddress.py | Github Open Source | Open Source | CC-BY-4.0 | 2,018 | CCSCNE-2018 | kmccullen | Python | Code | 84 | 330 | from twitter import Twitter, OAuth
import subprocess
import sys
try:
fileVar = open("/home/pi/lastTweetSeq.txt", "r")
lastTweet = fileVar.read()
lastTweetSeq = int(lastTweet) + 1
fileVar.close()
except IOError:
lastTweetSeq = 0
fileVar = open("/home/pi/lastTweetSeq.txt", "w")
fileVar.write(str... | 14,162 |
https://github.com/MrJojjson/selected-web-app/blob/master/src/pages/spirits.tsx | Github Open Source | Open Source | MIT | null | selected-web-app | MrJojjson | TypeScript | Code | 229 | 726 | import React, { useEffect } from 'react';
import { useDispatch } from 'react-redux';
import { fetchSpirits } from '../api/fetchSpirits';
import { uniqueId } from '../common/utils/uniqueId';
import { Button, Text } from '../components/atoms';
import { setAlert } from '../components/molecules';
import { AddedSpiritsForm ... | 45 |
https://github.com/apache/geronimo/blob/master/plugins/console/console-base-portlets/src/main/java/org/apache/geronimo/console/keystores/ListHandler.java | Github Open Source | Open Source | LicenseRef-scancode-generic-cla, LGPL-2.1-or-later, MPL-1.1, JSON, LGPL-2.1-only, MPL-1.0, Apache-2.0, LicenseRef-scancode-unknown, X11, W3C, GPL-1.0-or-later, CPL-1.0, LicenseRef-scancode-oracle-openjdk-exception-2.0, W3C-19980720, LicenseRef-scancode-indiana-extreme, BSD-3-Clause, LicenseRef-scancode-unknown-license-... | 2,013 | geronimo | apache | Java | Code | 337 | 1,051 | /**
* 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"); yo... | 951 |
https://github.com/ghuntley/COVIDSafe_1.0.11.apk/blob/master/src/sources/com/atlassian/mobilekit/module/feedback/SnackbarCallback.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | COVIDSafe_1.0.11.apk | ghuntley | Java | Code | 34 | 139 | package com.atlassian.mobilekit.module.feedback;
import com.google.android.material.snackbar.Snackbar;
public class SnackbarCallback extends Snackbar.Callback {
private boolean isDismissed = false;
public void onDismissed(Snackbar snackbar, int i) {
super.onDismissed(snackbar, i);
if (!this.i... | 19,072 |
https://github.com/tisztamo/Plugins.jl/blob/master/test/deps.jl | Github Open Source | Open Source | MIT | 2,021 | Plugins.jl | tisztamo | Julia | Code | 510 | 1,677 | """
RootInterface is the root of an interface hierarchy.
Interfaces are modelled with abstract types.
"""
abstract type RootInterface end
"""
Implementation is marked with subtyping the interface
"""
struct RootImpl <: RootInterface end
"""
Interfaces have single inheritance with subtype semantics:
An implementation ... | 48,297 |
https://github.com/nkmk/python-snippets/blob/master/notebook/numpy_symmetric.py | Github Open Source | Open Source | MIT | 2,023 | python-snippets | nkmk | Python | Code | 404 | 1,080 | import numpy as np
a = np.arange(16).reshape(4, 4)
print(a)
# [[ 0 1 2 3]
# [ 4 5 6 7]
# [ 8 9 10 11]
# [12 13 14 15]]
print(np.tril(a))
# [[ 0 0 0 0]
# [ 4 5 0 0]
# [ 8 9 10 0]
# [12 13 14 15]]
print(np.triu(a))
# [[ 0 1 2 3]
# [ 0 5 6 7]
# [ 0 0 10 11]
# [ 0 0 0 15]]
print(np.tril... | 5,941 |
https://github.com/maxcountryman/warp-api-starter-template/blob/master/migrations/2020-07-06-120855_create_accounts_table/down.sql | Github Open Source | Open Source | MIT | 2,020 | warp-api-starter-template | maxcountryman | SQL | Code | 3 | 8 | DROP TABLE accounts;
| 25,276 |
https://github.com/AdamGlowicki/erpzgeckonetu/blob/master/bootstrap/helpers.php | Github Open Source | Open Source | MIT | null | erpzgeckonetu | AdamGlowicki | PHP | Code | 71 | 169 | <?php
class Helpers {
/**
* Generate a URL to an application asset with a versioned timestamp parameter.
* @param $path
* @param null $secure
* @return string
*/
public static function asset($path, $secure = null) {
$timestamp = @filemtime(public_path($path)) ?: 0;
... | 31,313 |
https://github.com/axal25/JavaCourse/blob/master/src/main/java/visitor/visitor/B111Visitor.java | Github Open Source | Open Source | Apache-2.0 | null | JavaCourse | axal25 | Java | Code | 9 | 24 | package visitor.visitor;
public class B111Visitor extends A11Visitor {
}
| 14,686 |
https://github.com/MarginC/kame/blob/master/netbsd/sys/arch/sun2/include/cdefs.h | Github Open Source | Open Source | BSD-3-Clause | 2,022 | kame | MarginC | C | Code | 12 | 51 | /* $NetBSD: cdefs.h,v 1.1 2001/04/06 13:13:02 fredette Exp $ */
#include <m68k/cdefs.h>
| 36,817 |
https://github.com/Carrooi/Nette-Favorites/blob/master/tests/CarrooiTests/Favorites/DI/FavoritesExtension.phpt | Github Open Source | Open Source | MIT | 2,016 | Nette-Favorites | Carrooi | PHP | Code | 153 | 744 | <?php
/**
* Test: Carrooi\Favorites\DI\FavoritesExtension
*
* @testCase CarrooiTests\Favorites\DI\FavoritesExtensionTest
* @author David Kudera
*/
namespace CarrooiTests\Favorites\DI;
use CarrooiTests\Favorites\TestCase;
use Tester\Assert;
use Tester\FileMock;
require_once __DIR__ . '/../../bootstrap.php';
/*... | 39,206 |
https://github.com/pf-qiu/pivnet-resource/blob/master/in/infakes/fake_archive.go | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, Apache-2.0 | 2,019 | pivnet-resource | pf-qiu | Go | Code | 270 | 1,091 | // This file was generated by counterfeiter
package infakes
import "sync"
type FakeArchive struct {
MimetypeStub func(filename string) string
mimetypeMutex sync.RWMutex
mimetypeArgsForCall []struct {
filename string
}
mimetypeReturns struct {
result1 string
}
ExtractStub func(mime, file... | 13,647 |
https://github.com/akashxg/Tip-Calculator/blob/master/tipCalc/Views/SettingsViewController.swift | Github Open Source | Open Source | Apache-2.0 | null | Tip-Calculator | akashxg | Swift | Code | 201 | 613 | //
// SettingsViewController.swift
// tipCalc
//
// Created by Akash Gheewala on 10/26/18.
// Copyright © 2018 Akash Gheewala. All rights reserved.
//
import UIKit
class SettingsViewController: UIViewController {
@IBOutlet weak var defaultTipLabel: UILabel!
@IBOutlet weak var tipDefault: UISegmentedContr... | 50,991 |
https://github.com/JuliaDEC/SplineFEEC.jl/blob/master/src/SplineFEEC.jl | Github Open Source | Open Source | MIT | 2,021 | SplineFEEC.jl | JuliaDEC | Julia | Code | 72 | 296 | module SplineFEEC
using CompactBases # Used for basis creation
using DomainSets
import DomainSets: (..), ×
using LinearAlgebra
using StaticArrays
using FastGaussQuadrature
using Kronecker
import Kronecker: ⊗
using FFTW
using Plots
using Cubature
export (..), ×, ⊗, ⊙, adjoint,
PeriodicBSpline, DirichletBSpli... | 12,147 |
https://github.com/berusvn/Kannabotto/blob/master/commands/[🤺] actions/kill.js | Github Open Source | Open Source | Apache-2.0 | 2,021 | Kannabotto | berusvn | JavaScript | Code | 230 | 740 | // Copyright 2021 Mirabellier
// 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 writing, ... | 52,836 |
https://github.com/HoneyPony/lost-beneath/blob/master/.import/rocket.wav-937d435eb3ffd529bb7c069b79b19a04.md5 | Github Open Source | Open Source | Zlib | 2,020 | lost-beneath | HoneyPony | null | Spoken | 2 | 54 | source_md5="2502004988af138113e31af0d1ebacf1"
dest_md5="7c148a3487e668ff8319fb2e064b3d0a"
| 24,870 |
https://github.com/fullfacing/keycloak4s/blob/master/keycloak4s-core/src/main/scala/com/fullfacing/keycloak4s/core/models/enums/PolicyType.scala | Github Open Source | Open Source | MIT | 2,023 | keycloak4s | fullfacing | Scala | Code | 42 | 139 | package com.fullfacing.keycloak4s.core.models.enums
import enumeratum.values.{StringEnum, StringEnumEntry}
import scala.collection.immutable
sealed abstract class PolicyType(val value: String) extends StringEnumEntry
case object PolicyTypes extends StringEnum[PolicyType] {
case object Skip extends PolicyType... | 35,157 |
https://github.com/rkaw92/esdf/blob/master/tests/dummy_publish.js | Github Open Source | Open Source | MIT | 2,018 | esdf | rkaw92 | JavaScript | Code | 96 | 432 | var DummyEventSink = require('../EventStore/DummyEventSink.js').DummyEventSink;
var DummyEventSinkStreamer = require('../EventStore/DummyEventSinkStreamer.js').DummyEventSinkStreamer;
var QueueProcessor = require('../utils/QueueProcessor.js').QueueProcessor;
var QueueRouter = require('../utils/QueueRouter.js').QueueRou... | 31,520 |
https://github.com/migonzalvar/mfs2011-practicum-saas/blob/master/webclient/agenda/forms.py | Github Open Source | Open Source | ISC | 2,012 | mfs2011-practicum-saas | migonzalvar | Python | Code | 122 | 447 | from django import forms
from django.utils.translation import ugettext_lazy as _
import datetime
from server_models import TIMEFORMAT
def date_list(days=7):
choices = []
for i in range(days):
date = datetime.date.today() + datetime.timedelta(days=i)
date_value = date.strftime("%Y-%m-%d")
... | 6,896 |
https://github.com/pazjacket/unageanu-_-jiji2/blob/master/src/jiji/model/securities/internal/oanda/converter.rb | Github Open Source | Open Source | MIT | 2,016 | unageanu-_-jiji2 | pazjacket | Ruby | Code | 61 | 292 |
module Jiji::Model::Securities::Internal::Oanda
module Converter
include Jiji::Model::Trading
def self.convert_instrument_to_pair_name(instrument)
instrument.gsub(/\_/, '').to_sym
end
def self.convert_pair_name_to_instrument(pair_name)
"#{pair_name.to_s[0..2]}_#{pair_name.to_s[3..-1]}"
... | 19,888 |
https://github.com/Moneyport/ilp-service-1/blob/master/index.js | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, Apache-2.0 | 2,017 | ilp-service-1 | Moneyport | JavaScript | Code | 77 | 431 | const app = require('./src/app.js')
const debug = require('debug')('ilp-service:index')
const crypto = require('crypto')
const generateSecret = () => {
debug('generating random receiver secret')
return crypto.randomBytes(32).toString('base64')
}
const config = {
secret: process.env.ILP_SERVICE_SECRET || generate... | 10,142 |
https://github.com/Tochilina/external-courses/blob/master/src/ex4_js-objects-part2/task-14.js | Github Open Source | Open Source | MIT | null | external-courses | Tochilina | JavaScript | Code | 27 | 62 | "use strict";
function randomInteger(min, max) {
var rand = min + Math.random() * (max + 1 - min);
rand = Math.floor(rand);
return rand;
}
module.exports = randomInteger;
| 32,494 |
https://github.com/disusov-nextit/EventStore-Examples/blob/master/src/Soloco.EventStore.ECommerce/GamblingGame.cs | Github Open Source | Open Source | MIT | 2,020 | EventStore-Examples | disusov-nextit | C# | Code | 24 | 72 |
using System.Reflection;
namespace Soloco.EventStore.ECommerce
{
public static class ECommerce
{
public static Assembly Assembly
{
get
{
return typeof(ECommerce).Assembly;
}
}
}
}
| 41,791 |
https://github.com/mivek/MetarParser/blob/master/metarParser-parsers/src/test/java/io/github/mivek/command/remark/HourlyMinimumTemperatureCommandTest.java | Github Open Source | Open Source | MIT | 2,022 | MetarParser | mivek | Java | Code | 97 | 416 | package io.github.mivek.command.remark;
import io.github.mivek.internationalization.Messages;
import org.hamcrest.CoreMatchers;
import org.hamcrest.MatcherAssert;
import org.hamcrest.Matchers;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import java.util.Locale;
import static org.junit... | 19,228 |
https://github.com/mazizr/perpustakaan/blob/master/resources/views/layouts/backend-baru/sidebar.blade.php | Github Open Source | Open Source | MIT | 2,019 | perpustakaan | mazizr | PHP | Code | 193 | 752 | <header class="main-header">
<!-- Logo -->
<a href="{{ url('/')}}" class="logo">
<!-- mini logo for sidebar mini 50x50 pixels -->
<span class="logo-mini"><i class="fa-book"></i></span>
<!-- logo for regular state and mobile devices -->
<span class="logo-lg"><b>Perpustakaan</b></span>
... | 8,128 |
https://github.com/Miladnowshahr/MicroServiceRabbit/blob/master/MicroRabbit/MicroRabbit.Domain.Core/Command/Command.cs | Github Open Source | Open Source | MIT | null | MicroServiceRabbit | Miladnowshahr | C# | Code | 33 | 101 | using MicroRabbit.Domain.Core.Event;
using System;
using System.Collections.Generic;
using System.Text;
namespace MicroRabbit.Domain.Core.Command
{
public abstract class Command:Message
{
public DateTime Timestap { get; protected set; }
protected Command()
{
Timestap = Da... | 48,539 |
https://github.com/Yuhtin/shiro-storage/blob/master/src/main/java/com/yuhtin/minecraft/storage/utils/ColorUtils.java | Github Open Source | Open Source | MIT | 2,021 | shiro-storage | Yuhtin | Java | Code | 50 | 192 | package com.yuhtin.minecraft.storage.utils;
import org.bukkit.ChatColor;
import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;
/**
* @author Yuhtin
* Github: https://github.com/Yuhtin
*/
public class ColorUtils {
private ColorUtils() {
throw new IllegalStateException("Ut... | 23,956 |
https://github.com/s0meon3/coding-ai/blob/master/src/components/MentorList.js | Github Open Source | Open Source | MIT | 2,019 | coding-ai | s0meon3 | JavaScript | Code | 76 | 293 | import React, { Component } from "react";
import { Link } from "react-router-dom";
import Heart from "./Heart";
class MentorList extends Component {
render() {
return (
<div className="col-sm-4 ">
<Link
to={{ pathname: "/MentorList", state: { id: this.props.data } }}
className="... | 25,528 |
https://github.com/Jefferson00/Favster/blob/master/src/contexts/index.tsx | Github Open Source | Open Source | MIT | 2,021 | Favster | Jefferson00 | TSX | Code | 35 | 100 | import { AuthProvider } from "./AuthContext";
import { PlayerContextProvider } from "./PlayerContext";
import { SearchContextProvider } from "./SearchContext";
export function AppProvider({ children }) {
return (
<AuthProvider>
<SearchContextProvider>
<PlayerContextProvider>
{children}
... | 44,946 |
https://github.com/amaceh/MhsService/blob/master/src/routes.php | Github Open Source | Open Source | MIT | null | MhsService | amaceh | PHP | Code | 308 | 1,141 | <?php
use Slim\Http\Request;
use Slim\Http\Response;
// Routes
// defaul function
$app->get('/[{name}]', function (Request $request, Response $response, array $args) {
// Sample log message
$this->logger->info("Slim-Skeleton '/' route");
// Render index view
return $this->renderer->render($response, ... | 30,435 |
https://github.com/Oziabr/captains-blog/blob/master/server/views/post_rev/show.jade | Github Open Source | Open Source | MIT | null | captains-blog | Oziabr | null | Spoken | 94 | 507 | extends ../layout
block content
header
+navbar-unresponsive('Revision', '/')
main
style.
#index-banner.section.no-pad-bot
.container
br
br
.row.center: a.btn-large(class=colorTwo, href='/post/create')
| Create
.container
.section: .row
.col.s12
... | 15,345 |
https://github.com/wangxizhe2017/nlp_project/blob/master/data_preprocessing/setup.py | Github Open Source | Open Source | MIT | null | nlp_project | wangxizhe2017 | Python | Code | 566 | 2,159 | ALL_POS_TAGGER_SET = {"WP$", "ADVP", "PP", "RBR", "X", ",", "VBG", "JJR", "UCP", "IN", "$", "VBN", "SINV", "PDT", "JJ", "XX", "NP", "WHPP", "MD",
"NNS", "CD", "WRB", "POS", "HYPH", "RBS", "SQ", "PRP$", "JJS", "VP", "CC", ".", "DT", "SYM", "WDT", "FW", "EX", "''", "SBAR",
":",... | 17,717 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.