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/daniel-dev-lab/apollo/blob/master/game/plugin/shops/src/org/apollo/game/plugin/shops/builder/OperatorBuilder.kt | Github Open Source | Open Source | ISC | 2,020 | apollo | daniel-dev-lab | Kotlin | Code | 373 | 850 | package org.apollo.game.plugin.shops.builder
import org.apollo.game.plugin.api.Definitions
/**
* A builder to provide the list of shop operators - the npcs that can be interacted with to access the shop.
*
* ```
* shop("General Store.") {
* operated by "Shopkeeper"(522) and "Shop assistant"(523) and "Shop assi... | 39,959 |
https://github.com/ndsev/zserio/blob/master/compiler/extensions/cpp/runtime/src/zserio/Vector.h | Github Open Source | Open Source | BSD-3-Clause | 2,023 | zserio | ndsev | C++ | Code | 50 | 160 | #ifndef ZSERIO_VECTOR_H_INC
#define ZSERIO_VECTOR_H_INC
#include <vector>
#include "zserio/RebindAlloc.h"
namespace zserio
{
/**
* Typedef to std::vector provided for convenience - using std::allocator<uint8_t>.
*
* Automatically rebinds the given allocator.
*/
template <typename T, typename ALLOC = std::allocat... | 34,542 |
https://github.com/shelimov/material-ui/blob/master/packages/grid/x-data-grid-pro/src/tests/export.DataGrid.test.tsx | Github Open Source | Open Source | MIT | null | material-ui | shelimov | TypeScript | Code | 465 | 1,757 | import * as React from 'react';
import { DataGrid, DataGridProps, GridToolbar, GridToolbarExport } from '@mui/x-data-grid';
// @ts-ignore Remove once the test utils are typed
import { createRenderer, screen, fireEvent } from '@mui/monorepo/test/utils';
import { useData } from 'storybook/src/hooks/useData';
import { exp... | 44,757 |
https://github.com/johan12345/AnyMaps/blob/master/example/src/main/java/com/car2go/example/MainActivity.java | Github Open Source | Open Source | MIT, Unlicense | null | AnyMaps | johan12345 | Java | Code | 92 | 469 | /*
* Copyright (c) 2017 Daimler AG / Moovel GmbH
*
* All rights reserved
*/
package com.car2go.example;
import android.os.Bundle;
import com.car2go.maps.AnyMap;
import com.car2go.maps.MapFragment;
import com.car2go.maps.OnMapReadyCallback;
import com.car2go.maps.model.LatLng;
import com.car2go.maps.model.MarkerO... | 21,605 |
https://github.com/upsala/ExpressionParser/blob/master/src/main/java/de/weinzierlstefan/expressionparser/functions/datetime/LastDayOfYear.java | Github Open Source | Open Source | MIT | null | ExpressionParser | upsala | Java | Code | 73 | 306 | package de.weinzierlstefan.expressionparser.functions.datetime;
import de.weinzierlstefan.expressionparser.ExecutorContext;
import de.weinzierlstefan.expressionparser.ExpressionException;
import de.weinzierlstefan.expressionparser.Function;
import de.weinzierlstefan.expressionparser.value.Value;
import de.weinzierlste... | 9,297 |
https://github.com/yuqisun/java-8-lambdas-exercises/blob/master/src/main/java/mytest/chapter8/command/Macro.java | Github Open Source | Open Source | MIT | 2,017 | java-8-lambdas-exercises | yuqisun | Java | Code | 44 | 134 | package mytest.chapter8.command;
import java.util.ArrayList;
import java.util.List;
/**
* Created by syq on 7/30/2017.
*/
public class Macro {
private final List<Runnable> actions;
public Macro() {
actions = new ArrayList<>();
}
public void record(Runnable action) {
actions.add(act... | 9,852 |
https://github.com/trikarai/bara-mcp/blob/master/src/Firm/Application/Service/Manager/UpdateEvaluationPlan.php | Github Open Source | Open Source | MIT | null | bara-mcp | trikarai | PHP | Code | 103 | 427 | <?php
namespace Firm\Application\Service\Manager;
use Firm\Domain\Model\Firm\Program\EvaluationPlanData;
class UpdateEvaluationPlan
{
/**
*
* @var EvaluationPlanRepository
*/
protected $evaluationPlanRepository;
/**
*
* @var ManagerRepository
*/
protected $managerRepos... | 49,966 |
https://github.com/pabrrs/asgard-ui/blob/master/src/test/units/TaskFileDownloadComponent.test.js | Github Open Source | Open Source | Apache-2.0 | null | asgard-ui | pabrrs | JavaScript | Code | 227 | 1,004 | import {expect} from "chai";
import {shallow} from "enzyme";
import React from "react";
import AppDispatcher from "../../js/AppDispatcher";
import MesosStore from "../../js/stores/MesosStore";
import MesosEvents from "../../js/events/MesosEvents";
import TaskFileDownloadComponent
from "../../js/components/TaskFileDo... | 24,965 |
https://github.com/JurajKubelka/GT-Collaboration/blob/master/repository/GT-Collaborate-PharoSprint.package/GCSprintCaseStateTest.class/instance/testRenounce.st | Github Open Source | Open Source | MIT | null | GT-Collaboration | JurajKubelka | null | Spoken | 16 | 45 | tests
testRenounce
state renounce: self developer: developer.
self assert: newState class equals: self renounceStateClass.
self assertNewStateDeveloper. | 7,101 |
https://github.com/ryanermita/snaaap-tech-exam/blob/master/src/tests/test_utils/test_validator/test_is_valid_email.py | Github Open Source | Open Source | MIT | null | snaaap-tech-exam | ryanermita | Python | Code | 28 | 139 | import unittest
from src.utils import validator
class TestIsValidEmail(unittest.TestCase):
def setUp(self):
pass
def tearDown(self):
pass
def test_valid_email(self):
result = validator.is_valid_email('john@doe.com.ph')
self.assertTrue(result)
def test_invalid_email(... | 17,998 |
https://github.com/strolch-li/strolch/blob/master/privilege/src/main/java/li/strolch/privilege/helper/PrivilegeInitializer.java | Github Open Source | Open Source | LGPL-2.1-or-later, Apache-2.0 | 2,023 | strolch | strolch-li | Java | Code | 760 | 2,576 | /*
* Copyright 2013 Robert von Burg <eitch@eitchnet.ch>
*
* 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... | 41,751 |
https://github.com/capjan/SQL-Scripting/blob/master/Core.SqlScripting/Common/Writer/StatementTerminatorFormatter.cs | Github Open Source | Open Source | MIT | 2,021 | SQL-Scripting | capjan | C# | Code | 34 | 137 | using System;
using System.Collections.Generic;
using System.IO;
using System.Text;
using Core.SqlScripting.Common.Syntax;
using Core.Text.Formatter;
namespace Core.SqlScripting.Common.Writer
{
internal class StatementTerminatorFormatter: ITextFormatter<StatementTerminator>
{
public void Write(Stateme... | 4,856 |
https://github.com/prabhupant/python-ds/blob/master/data_structures/bst/insertion_recursive.py | Github Open Source | Open Source | MIT | 2,022 | python-ds | prabhupant | Python | Code | 78 | 281 | class Node():
def __init__(self, val):
self.val = val
self.left = None
self.right = None
def insertion_recursive(root, val):
if not root:
return Node(val)
else:
if root.val < val:
if root.right is None:
root.right = Node(val)
... | 15,640 |
https://github.com/nasa/PSP/blob/master/unit-test-coverage/ut-stubs/inc/PCS_taskLib.h | Github Open Source | Open Source | Apache-2.0 | 2,023 | PSP | nasa | C | Code | 361 | 1,044 | /************************************************************************
* NASA Docket No. GSC-18,719-1, and identified as “core Flight System: Bootes”
*
* Copyright (c) 2020 United States Government as represented by the
* Administrator of the National Aeronautics and Space Administration.
* All Rights Reserved.... | 9,967 |
https://github.com/yosuasatrio/hmc/blob/master/application/views/main.php | Github Open Source | Open Source | MIT | null | hmc | yosuasatrio | PHP | Code | 102 | 336 |
<!DOCTYPE html>
<!--[if IE 7 ]> <html lang="en-gb" class="isie ie7 oldie no-js"> <![endif]-->
<!--[if IE 8 ]> <html lang="en-gb" class="isie ie8 oldie no-js"> <![endif]-->
<!--[if IE 9 ]> <html lang="en-gb" class="isie ie9 no-js"> <![endif]-->
<!-- Meta -->
<html lang="en">
<?php $this->load->view('temp/head'); ?>... | 12,007 |
https://github.com/AspirinCode/ProjectTargetPredictionApp/blob/master/pythonFlask/model/persist/DBConnect.py | Github Open Source | Open Source | MIT | 2,017 | ProjectTargetPredictionApp | AspirinCode | Python | Code | 236 | 697 | #!/usr/bin/python
# -*- coding: utf-8 -*-
"""
/* @DBConnect()
* @author: Alba Gómez Segura
* @date: 01/02/2017
* @description: Connection to the database source
* @Attributes:
* server;
* user;
* password;
* dataBase;
* @methods:
* __init__ (construct)
* connect
* close
* executionQueryTargets
* execut... | 475 |
https://github.com/tierklinik-dobersberg/userhub/blob/master/internal/infoscreen/layouts/layout.go | Github Open Source | Open Source | MIT | 2,021 | userhub | tierklinik-dobersberg | Go | Code | 510 | 1,563 | package layouts
import (
"path/filepath"
"github.com/hashicorp/hcl/v2"
"github.com/hashicorp/hcl/v2/hclsimple"
"github.com/tierklinik-dobersberg/cis/pkg/multierr"
"github.com/zclconf/go-cty/cty"
)
// Variable defines an input variable for a template layout.
type Variable struct {
Name string `hcl:"nam... | 49,877 |
https://github.com/h4ck3rm1k3/federal-election-commission-aggregation-json-2011/blob/master/index/_record_type/_record_type/fec_version_v7_0_SA/2011/20110411/721455.fec_1/1357c7c6280a2f9cad656b74fbf7f6f2b487e39d.js | Github Open Source | Open Source | Unlicense | 2,013 | federal-election-commission-aggregation-json-2011 | h4ck3rm1k3 | JavaScript | Code | 1 | 37 | ../../../../../../../objects/13/57c7c6280a2f9cad656b74fbf7f6f2b487e39d.js | 23,727 |
https://github.com/dejaq/prototype/blob/master/broker/pkg/carrier/consumer.go | Github Open Source | Open Source | Apache-2.0 | null | prototype | dejaq | Go | Code | 194 | 711 | package carrier
import (
"sync"
"unsafe"
"github.com/dejaq/prototype/broker/domain"
"github.com/dejaq/prototype/common/protocol"
)
type Consumer struct {
id []byte
mu sync.RWMutex
assignedBuckets []domain.BucketRange
status protocol.ConsumerStatus
hydrateStatus protocol.HydrationSta... | 28,971 |
https://github.com/stepan-perlov/press/blob/master/src/editor/behaviour/toolbar/tools/align_right.coffee | Github Open Source | Open Source | MIT | null | press | stepan-perlov | CoffeeScript | Code | 40 | 100 | AlignLeft = require("./align_left")
class AlignRight extends AlignLeft
# Apply a class to right align the contents of the current text block.
constructor: (@editor, @tools)->
@requiresElement = true
@label = 'Align right'
@icon = 'format_align_right'
@className = 'text-right'
... | 17,339 |
https://github.com/uarulraj1811/vfs/blob/master/core/src/test/java/org/apache/commons/vfs2/test/ContentTests.java | Github Open Source | Open Source | Apache-2.0 | null | vfs | uarulraj1811 | Java | Code | 958 | 2,698 | /*
* 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 ... | 51,318 |
https://github.com/jaimegc/raddarapp/blob/master/app/src/main/java/com/raddarapp/domain/usecase/AddVote.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | raddarapp | jaimegc | Java | Code | 57 | 247 | package com.raddarapp.domain.usecase;
import com.karumi.rosie.domain.usecase.RosieUseCase;
import com.karumi.rosie.domain.usecase.annotation.UseCase;
import com.raddarapp.data.general.FootprintsMainRepository;
import javax.inject.Inject;
public class AddVote extends RosieUseCase {
public static final String USE... | 45,282 |
https://github.com/hoist/hoist-model/blob/master/tests/model_specs/hoist_user_tests.js | Github Open Source | Open Source | ISC | 2,016 | hoist-model | hoist | JavaScript | Code | 287 | 1,112 | 'use strict';
require('../bootstrap');
var HoistUser = require('../../lib').HoistUser;
var expect = require('chai').expect;
var dbUri = 'mongodb://localhost/hoist-model-test';
var mongoose = require('mongoose');
describe('HoistUser', function () {
before(function (done) {
if (mongoose.connection.db) {
retu... | 45,274 |
https://github.com/DrMothra/HexVector/blob/master/js/muteTester.js | Github Open Source | Open Source | MIT | 2,016 | HexVector | DrMothra | JavaScript | Code | 230 | 805 | /**
* Created by atg on 25/01/2016.
*/
var midiManager = (function() {
var audioPlayers = [];
var numAudioFiles = 0;
var loadedFiles = 0;
return {
loadRemote: function(path, callback) {
var fetch = new XMLHttpRequest();
fetch.open('GET', path);
fetch.ove... | 43,647 |
https://github.com/jennagiordano/letsTrend/blob/master/node_modules/yaml/dist/index.js | Github Open Source | Open Source | MIT | 2,020 | letsTrend | jennagiordano | JavaScript | Code | 252 | 775 | "use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _parse = _interopRequireDefault(require("./cst/parse"));
var _Document = _interopRequireDefault(require("./Document"));
var _errors = require("./errors");
var _schema = _interopRequireDefault(require("./sch... | 20,045 |
https://github.com/qdsxinyee4/PatentsViewh/blob/master/testsuites/unittest/extended/trace/smoke/trace_test_004.cpp | Github Open Source | Open Source | BSD-3-Clause | 2,022 | PatentsViewh | qdsxinyee4 | C++ | Code | 348 | 689 | /*
* Copyright (c) 2013-2019 Huawei Technologies Co., Ltd. All rights reserved.
* Copyright (c) 2020-2021 Huawei Device Co., Ltd. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* 1. Redist... | 41,792 |
https://github.com/rapidsai/raft/blob/master/cpp/include/raft/neighbors/detail/faiss_select/StaticUtils.h | Github Open Source | Open Source | Apache-2.0 | 2,023 | raft | rapidsai | C++ | Code | 134 | 537 | /**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file thirdparty/LICENSES/LICENSE.faiss
*/
#pragma once
#include <cuda.h>
// allow usage for non-CUDA files
#ifndef __host__
#define __host__
#define __device__
#endif
namespace r... | 51,425 |
https://github.com/desarrolloSoaint/Chatbot_Soniat_SA_Front/blob/master/src/app/components/usuario/register-user/register-user.component.scss | Github Open Source | Open Source | MIT | 2,021 | Chatbot_Soniat_SA_Front | desarrolloSoaint | SCSS | Code | 49 | 191 | .toolbar{
color:white;
background-color: #004e82;
border-radius: 1rem;
margin-bottom: 1rem;
align-items: center;
}
.toolbar-spacer {
flex : 2 1 auto;
}
.mat-calendar-body-selected {
background-color: #004e82;
}
.file{
width: 80%;
margin-left: 10%;
border-radius: 0.5rem;
}
.button{
cu... | 50,215 |
https://github.com/diabonas/tpm2-tools/blob/master/tools/misc/tpm2_print.c | Github Open Source | Open Source | 2,021 | tpm2-tools | diabonas | C | Code | 988 | 4,077 | /* SPDX-License-Identifier: BSD-3-Clause */
#include <inttypes.h>
#include <stdbool.h>
#include <stdio.h>
#include <string.h>
#include "files.h"
#include "log.h"
#include "tpm2_alg_util.h"
#include "tpm2_convert.h"
#include "tpm2_tool.h"
#include "tpm2_util.h"
typedef bool (*print_fn)(FILE *f);
#define FLAG_FMT (1 ... | 51,970 | |
https://github.com/CraftrToken/CraftR_Coin-obsolete-/blob/master/.gitignore | Github Open Source | Open Source | MIT | 2,018 | CraftR_Coin-obsolete- | CraftrToken | Ignore List | Code | 32 | 130 | src/*.exe
src/craftr
src/craftrd
src/test_craftr
src/build.h
.*.swp
*.*~*
*.bak
*.rej
*.orig
*.o
*.patch
.craftr
#compilation and Qt preprocessor part
*.qm
Makefile
craftr-qt
#resources cpp
qrc_*.cpp
#qt creator
*.pro.user
#mac specific
.DS_Store
build
!src/leveldb/Makefile
| 6,284 |
https://github.com/MarkovEvgeni/MarkovEvgeni.github.io/blob/master/UBER PARTNER KHARKOV/src/css/templates/video.scss | Github Open Source | Open Source | LicenseRef-scancode-public-domain | 2,018 | MarkovEvgeni.github.io | MarkovEvgeni | SCSS | Code | 37 | 110 | .video {
border-bottom: 2px solid black;
.video_container {
position: relative;
padding-top: calc((100% - 20px) * 0.5625);
margin: 10px;
width: calc(100% - 20px);
iframe {
width: 100%;
height: 100%;
position: absolute;
top: ... | 11,171 |
https://github.com/lihaijiang123/activity_admin/blob/master/application/home/model/UsersModel.php | Github Open Source | Open Source | Apache-2.0 | null | activity_admin | lihaijiang123 | PHP | Code | 46 | 149 | <?php
namespace app\home\model;
use think\Model;
class UsersModel extends Model
{
protected $table = 'siging_users';
/**
* 获取用户信息
* @Author XZJ
* @DateTime 2020-04-11
* @param [param]
* @param [type] $where [description]
* @return [type] [description]
*/
public functio... | 22,867 |
https://github.com/medismailben/llvm-project/blob/master/llvm/test/DebugInfo/X86/lexical_block.ll | Github Open Source | Open Source | Apache-2.0 | 2,022 | llvm-project | medismailben | LLVM | Code | 388 | 1,193 | ; REQUIRES: object-emission
; RUN: llc -mtriple=x86_64-linux -O0 -filetype=obj < %s \
; RUN: | llvm-dwarfdump -v -debug-info - | FileCheck --check-prefix=CHECK --check-prefix=CHECK-V4 %s
; RUN: llc -mtriple=x86_64-linux -dwarf-version=3 -O0 -filetype=obj < %s \
; RUN: | llvm-dwarfdump -v -debug-info - | FileCh... | 47,580 |
https://github.com/DominikGuzei/josoor-main-website/blob/master/source/components/blog/index/BlogIndexContainer.js | Github Open Source | Open Source | MIT | 2,018 | josoor-main-website | DominikGuzei | JavaScript | Code | 65 | 220 | import React from "react";
import { withPhenomicApi, query } from "@phenomic/preset-react-app/lib/client";
import BlogIndex from './BlogIndex';
import { getParentLocaleOrDefault, SUPPORTED_LANGUAGES } from '../../../i18n';
export default withPhenomicApi(BlogIndex, props => {
if (!props.location) return query({});
... | 40,373 |
https://github.com/ujjwal193/AndroidIconAnimator/blob/master/app/scripts/model/index.js | Github Open Source | Open Source | Apache-2.0 | 2,020 | AndroidIconAnimator | ujjwal193 | JavaScript | Code | 126 | 222 | /*
* Copyright 2016 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | 2,515 |
https://github.com/GeoscienceAustralia/igssitelog-java-bindings/blob/master/src/main/java/au/gov/ga/geodesy/igssitelog/support/marshalling/moxy/MandatoryCompositeAdapter.java | Github Open Source | Open Source | BSD-3-Clause | 2,020 | igssitelog-java-bindings | GeoscienceAustralia | Java | Code | 48 | 132 | package au.gov.ga.geodesy.igssitelog.support.marshalling.moxy;
/**
* When marshalling composite null objects, generate empty XML sub-elements (in combination with {@link NullPolicySessionEventListener}.
*/
public abstract class MandatoryCompositeAdapter<T> extends OptionalCompositeAdapter<T> {
@Override
pub... | 11,418 |
https://github.com/JudeTejada/strapi-site/blob/master/src/components/logo.js | Github Open Source | Open Source | RSA-MD | null | strapi-site | JudeTejada | JavaScript | Code | 35 | 114 | import React from "react"
import { StaticQuery, graphql } from "gatsby"
import styled from "styled-components"
const LogoStyle = styled.h2`
font-size:1.6rem;
font-weight:bold;
text-transform:capitalize;
margin: 0;
`
export default function Logo() {
return(
<LogoStyle>my logo</LogoStyle>
)
}
| 44,286 |
https://github.com/MrViktorikus/chatRoom/blob/master/scripts/signup.js | Github Open Source | Open Source | MIT | 2,015 | chatRoom | MrViktorikus | JavaScript | Code | 6 | 44 | $(document).ready(function(){
$('#invalidUsername').fadeIn('slow', function(){
$('#inalidUsername').fadeOut();
});
});
| 2,713 |
https://github.com/tamada/stigmata/blob/master/src/main/java/com/github/stigmata/printer/csv/ComparisonResultSetCsvPrinter.java | Github Open Source | Open Source | Apache-2.0 | 2,018 | stigmata | tamada | Java | Code | 172 | 757 | package com.github.stigmata.printer.csv;
import java.io.PrintWriter;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import com.github.stigmata.ComparisonPair;
import com.github.stigmata.ComparisonResultSet;
import com.github.stigmata.... | 46,767 |
https://github.com/Lvxiing/GuoMei/blob/master/consumer/src/main/resources/static/js/categoryList.js | Github Open Source | Open Source | MIT | 2,019 | GuoMei | Lvxiing | JavaScript | Code | 798 | 5,901 | $(function () {
findParentCategory();
categoryGoodsShow();
search();
//按综合,销量,新品查询
var sort=0;
$("#filter-order-box li").click(function () {
sort=$(this).attr("data-sort");
$(this).addClass("cur").siblings().removeClass("cur");
if(sort==0){ //查询全部
searc5(so... | 16,129 |
https://github.com/vstconsulting/vstutils/blob/master/frontend_src/vstutils/fields/boolean/index.js | Github Open Source | Open Source | Apache-2.0 | 2,023 | vstutils | vstconsulting | JavaScript | Code | 33 | 139 | import BooleanField from './BooleanField.js';
import BooleanFieldContentEdit from './BooleanFieldContentEdit.vue';
import BooleanFieldContentMixin from './BooleanFieldContentMixin.js';
import BooleanFieldContentReadonly from './BooleanFieldContentReadonly.vue';
import BooleanFieldListView from './BooleanFieldListView.v... | 33,836 |
https://github.com/sjohal21/Floating-Sandbox/blob/master/GameCore/MemoryStreams.h | Github Open Source | Open Source | CC-BY-4.0 | 2,022 | Floating-Sandbox | sjohal21 | C | Code | 280 | 1,130 | /***************************************************************************************
* Original Author: Gabriele Giuseppini
* Created: 2019-10-05
* Copyright: Gabriele Giuseppini (https://github.com/GabrieleGiuseppini)
*******************************************************************... | 45,013 |
https://github.com/phongbt/AirTracker/blob/master/src/sensor_devices/Sensor_AT01_Uno_thingsboard/S8.cpp | Github Open Source | Open Source | MIT | null | AirTracker | phongbt | C++ | Code | 498 | 1,503 | /*
S8 - CO2 sensor library
Written by AirTracker team
July 2018
*/
#include "s8.h"
#define pinRX 2
#define pinTX 3
const byte cmd_readCO2[] = {0xFE,0x04,0x00,0x03,0x00,0x01,0xD5,0xC5};
const byte cmd_clearHR1[] = {0xFE, 0x06, 0x00, 0x00, 0x00,0x00, 0x9D, 0xC5};
const byte cmd_backgnd_cal[] = {0xFE, 0x06, 0x00, 0... | 14,876 |
https://github.com/Olalaye/MegEngine/blob/master/imperative/python/test/unit/utils/test_dump_naming.py | Github Open Source | Open Source | Apache-2.0 | 2,022 | MegEngine | Olalaye | Python | Code | 811 | 3,242 | # -*- coding: utf-8 -*-
# MegEngine is Licensed under the Apache License, Version 2.0 (the "License")
#
# Copyright (c) 2014-2021 Megvii Inc. All rights reserved.
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT ARRANTI... | 30,286 |
https://github.com/DooSunny/Narsha-AMK/blob/master/narsha/ex1_rssfeedparse.py | Github Open Source | Open Source | MIT | 2,019 | Narsha-AMK | DooSunny | Python | Code | 67 | 363 | import xml.etree.ElementTree as ET
import urllib.request
from urllib import parse
#-*- coding:utf-8 -*-
s = input("검색어를 입력하세요 : ")
search = parse.quote(s)
#print(search)
#쿼리를 받아올 주소 (네이버 검색)
url = "http://newssearch.naver.com/search.naver?where=rss&query="+search+"&field=0&nx_search_query=&nx_and_query=&nx_sub_query=... | 357 |
https://github.com/hsolbrig/PyShEx/blob/master/tests/test_issues/test_shexjs_issue16.py | Github Open Source | Open Source | CC0-1.0 | 2,023 | PyShEx | hsolbrig | Python | Code | 71 | 290 | import unittest
from rdflib import Graph, Namespace, XSD, Literal
from pyshex import ShExEvaluator
FHIR = Namespace("http://hl7.org/fhir")
EX = Namespace("http://example.org/")
shex = f"""PREFIX : <{FHIR}>
PREFIX xsd: <{XSD}>
start = @:ObservationShape
:ObservationShape {{ # An Observation has:
(... | 2,851 |
https://github.com/nidin/shumway/blob/master/src/avm2/bin/avm.js | Github Open Source | Open Source | Apache-2.0 | 2,021 | shumway | nidin | JavaScript | Code | 807 | 2,438 | /* -*- Mode: js; js-indent-level: 2; indent-tabs-mode: nil; tab-width: 2 -*- */
/* vim: set shiftwidth=2 tabstop=2 autoindent cindent expandtab: */
/*
* Copyright 2013 Mozilla Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the Lic... | 47,173 |
https://github.com/dylanrhodius/ruby-kickstart/blob/master/session2/challenge/13_classes_iterating_sorting.rb | Github Open Source | Open Source | MIT | 2,016 | ruby-kickstart | dylanrhodius | Ruby | Code | 98 | 264 | #Katerina took the time to help me solve this problem
#so will upload her latest version.
require 'date'
class Blog
attr_accessor :text, :date, :user
def initialize(date, user, text)
self.text = text
self.date = date
self.user = user
end
def summary
text.split[0..9].join(' ')
end
def entry
"#{... | 19,919 |
https://github.com/bmxnt/luya/blob/master/modules/admin/src/resources/scss/components/_folders.scss | Github Open Source | Open Source | MIT | 2,017 | luya | bmxnt | SCSS | Code | 239 | 810 | $icon-font-size: 20px;
$icon-line-height: $icon-font-size + 10px;
.folders {
list-style: none;
margin: 0;
padding: 0;
}
.folders-item {
align-items: center;
display: flex;
flex-wrap: wrap;
position: relative;
&:not(:first-of-type) {
margin-top: 5px;
}
.material-icons ... | 14,962 |
https://github.com/sadarshannaiynar/dock-manager/blob/master/src/client/components/Sidebar/index.jsx | Github Open Source | Open Source | MIT | null | dock-manager | sadarshannaiynar | null | Spoken | 88 | 322 | import React from 'react';
import { Menu, Icon } from 'semantic-ui-react';
class SidebarComponent extends React.Component {
constructor(props) {
super(props);
this.state = {
activeItem: 'containers',
};
this.handleClick = this.handleClick.bind(this);
}
handleClick(event, { name }) {
th... | 50,270 |
https://github.com/yaoguodong/ymodem/blob/master/Ymodem.c | Github Open Source | Open Source | MIT | 2,017 | ymodem | yaoguodong | C | Code | 751 | 2,905 | /**************************************************************************************************
* INCLUDES
**************************************************************************************************/
#include "Ymodem.h"
#include <stdio.h>
#include <string.h>
/***... | 17,437 |
https://github.com/reinteractive/wallaby/blob/master/spec/dummy/app/controllers/blogs_controller.rb | Github Open Source | Open Source | MIT | 2,019 | wallaby | reinteractive | Ruby | Code | 8 | 28 | class BlogsController < Wallaby::ResourcesController
self.theme_name = 'simple_blog_theme'
end
| 17,496 |
https://github.com/brufarias2/portfolio/blob/master/src/middlewares/slack/index.js | Github Open Source | Open Source | MIT | 2,020 | portfolio | brufarias2 | JavaScript | Code | 26 | 70 | import config from "../../Utils/config";
const { url } = config.platforms.zapier;
function slackNotification() {
fetch(url, { method: "POST" , body: JSON.stringify({ text:"oi" })});
}
export default slackNotification;
| 4,071 |
https://github.com/TheCloudTheory/Butter/blob/master/Butter.Backend/Functions/GetMap.cs | Github Open Source | Open Source | MIT | 2,019 | Butter | TheCloudTheory | C# | Code | 65 | 252 | using System;
using System.IO;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Azure.WebJobs;
using Microsoft.Azure.WebJobs.Extensions.Http;
using Microsoft.AspNetCore.Http;
using Microsoft.Extensions.Logging;
using Newtonsoft.Json;
using Microsoft.WindowsAzure.Storage.Blob;
using System.C... | 43,711 |
https://github.com/webdude21/CoreJavaForTheImpatient/blob/master/src/corejava/concurentprogramming/FileContentSearch.java | Github Open Source | Open Source | MIT | 2,018 | CoreJavaForTheImpatient | webdude21 | Java | Code | 97 | 319 | package corejava.concurentprogramming;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import java.util.Optional;
class FileContentSearch extends FileContentFinder {
FileContentSearch(String searchWord, String searchPath) {
super(searchWord, searchPath... | 38,212 |
https://github.com/duoduodev/CoreMathImgProc/blob/master/src/com/cyzapps/uptloadersprint/UPTJavaLoader13.java | Github Open Source | Open Source | MIT | 2,019 | CoreMathImgProc | duoduodev | Java | Code | 2,602 | 11,509 | package com.cyzapps.uptloadersprint;
import com.cyzapps.mathrecog.UnitPrototypeMgr;
import com.cyzapps.mathrecog.UnitPrototypeMgr.UnitProtoType;
public class UPTJavaLoader13 {
public static void load(UnitPrototypeMgr uptMgr) {
{
byte[][] biMatrix = new byte[50][42];
biMatrix[0][3] = 1;
biMatrix[0][4] = ... | 6,544 |
https://github.com/usc-csci-545/aikido/blob/master/.ci/install_linux.sh | Github Open Source | Open Source | BSD-3-Clause | null | aikido | usc-csci-545 | Shell | Code | 60 | 197 | #!/usr/bin/env bash
set -ex
# Install OMPL package from PRL PPA
if [ $(lsb_release -sc) = "xenial" ]; then
sudo apt-add-repository -y ppa:personalrobotics/ppa
sudo apt update
sudo apt install -y libompl-dev # OMPL (>= 1.2.1)
fi
cd "${HOME}/workspace"
cp -r "${TRAVIS_BUILD_DIR}" src
./scripts/internal-distro.p... | 39,029 |
https://github.com/kamwawrzak/go-server-cli/blob/master/cmd/run.go | Github Open Source | Open Source | Apache-2.0 | null | go-server-cli | kamwawrzak | Go | Code | 112 | 311 | package cmd
import (
"fmt"
"path/filepath"
"serverapp/webserver"
"github.com/spf13/cobra"
)
// function running getting file path and running server
func RunServer(cmd *cobra.Command, args []string) {
f, _ := cmd.Flags().GetString("file")
fileExtension := filepath.Ext(f)
fmt.Println(fileExtension)
if f == ""... | 30,443 |
https://github.com/xformation/xformation-compliancemanager-service/blob/master/compliancemanager-server/src/test/java/com/synectiks/process/server/outputs/OutputRouterTest.java | Github Open Source | Open Source | Apache-2.0 | null | xformation-compliancemanager-service | xformation | Java | Code | 419 | 1,910 | /*
* */
package com.synectiks.process.server.outputs;
import com.google.common.collect.ImmutableSet;
import com.synectiks.process.server.outputs.OutputRegistry;
import com.synectiks.process.server.outputs.OutputRouter;
import com.synectiks.process.server.plugin.Message;
import com.synectiks.process.server.plugin.outp... | 41,619 |
https://github.com/LukasZahradnik/NeuraLogic/blob/master/Algebra/src/main/java/cz/cvut/fel/ida/algebra/functions/specific/SoftEntropy.java | Github Open Source | Open Source | MIT | 2,022 | NeuraLogic | LukasZahradnik | Java | Code | 306 | 907 | package cz.cvut.fel.ida.algebra.functions.specific;
import cz.cvut.fel.ida.algebra.functions.ErrorFcn;
import cz.cvut.fel.ida.algebra.values.ScalarValue;
import cz.cvut.fel.ida.algebra.values.Value;
import cz.cvut.fel.ida.algebra.values.VectorValue;
import java.util.logging.Logger;
/**
* A merge of Softmax + Crosse... | 28,627 |
https://github.com/noelrosales/react-pokedex/blob/master/src/hoc/Focusable/index.js | Github Open Source | Open Source | MIT | null | react-pokedex | noelrosales | JavaScript | Code | 101 | 396 | import React, { Component } from 'react';
import './focusable.css';
class Focusable extends Component {
constructor(props){
super(props);
this.state = {
selected : false
}
}
componentDidMount(){
this.nv.addEventListener('mouseenter', this.handleFocus)
th... | 50,961 |
https://github.com/chaitanyackc9/grpc-device/blob/master/generated/nifake/nifake_library.cpp | Github Open Source | Open Source | MIT | 2,021 | grpc-device | chaitanyackc9 | C++ | Code | 2,277 | 12,335 | //---------------------------------------------------------------------
// This file is automatically generated. All manual edits will be lost.
//---------------------------------------------------------------------
// Service implementation for the NI-FAKE Metadata
//---------------------------------------------------... | 38,938 |
https://github.com/StephenClearyApps/DisqusImport/blob/master/src/Logic/DisqusCommentConverter.cs | Github Open Source | Open Source | MIT | null | DisqusImport | StephenClearyApps | C# | Code | 191 | 674 | using System;
using System.Collections.Generic;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using static Globals;
namespace DisqusImport.Logic
{
/// <summary>
/// Converts a single Disqus comment.
/// </summary>
public sealed class DisqusCommentConverter
... | 26,523 |
https://github.com/exbibyte/hr/blob/master/codesprint_2018_10_05/b_elevator/src/main.rs | Github Open Source | Open Source | MIT | null | hr | exbibyte | Rust | Code | 180 | 604 | use std::io::{self, Read};
use std::cmp;
fn main() {
let mut buffer = String::new();
let stdin = io::stdin();
let mut handle = stdin.lock();
handle.read_to_string(&mut buffer).unwrap();
let arr : Vec<_> = buffer.split_whitespace().map(|x| x.parse::<i32>().unwrap() ).collect();
let n = arr[... | 31,289 |
https://github.com/MarkL1961/CorsixTH/blob/master/CorsixTH/Src/iso_fs.cpp | Github Open Source | Open Source | MIT | null | CorsixTH | MarkL1961 | C++ | Code | 1,783 | 5,782 | /*
Copyright (c) 2010 Peter "Corsix" Cawley
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distr... | 45,391 |
https://github.com/modestyachts/robust-adaptive-lqr/blob/master/python/nominal.py | Github Open Source | Open Source | MIT | 2,018 | robust-adaptive-lqr | modestyachts | Python | Code | 312 | 1,269 | """nominal.py
"""
import numpy as np
import utils
import logging
import math
from adaptive import AdaptiveMethod
class NominalStrategy(AdaptiveMethod):
"""Adaptive control based on nominal estimates of the dynamics
"""
def __init__(self,
Q,
R,
A_star... | 21,187 |
https://github.com/raj457036/TeraBlog/blob/master/post/urls.py | Github Open Source | Open Source | MIT | 2,020 | TeraBlog | raj457036 | Python | Code | 26 | 116 | from django.urls import path
from .views import PostDetailView, HomeView, Archive
urlpatterns = [
path('', HomeView.as_view(), name='home'),
path('archive/', Archive.as_view(), name='archive'),
path('archive/series/<slug:slug>/', Archive.as_view(), name='series'),
path('<slug:slug>/', PostDetailView.as... | 44,949 |
https://github.com/pivotal-cf/scantron/blob/master/audit/audit_test.go | Github Open Source | Open Source | Apache-2.0 | 2,021 | scantron | pivotal-cf | Go | Code | 665 | 3,103 | package audit_test
import (
"io/ioutil"
"os"
"path/filepath"
"github.com/pivotal-cf/scantron"
"github.com/pivotal-cf/scantron/audit"
"github.com/pivotal-cf/scantron/db"
"github.com/pivotal-cf/scantron/manifest"
"github.com/pivotal-cf/scantron/scanner"
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
)... | 28,263 |
https://github.com/EndPointCorp/com.endpoint.lg.support/blob/master/src/main/test/com/endpoint/lg/support/message/TestMessageWrapper.java | Github Open Source | Open Source | Apache-2.0 | 2,015 | com.endpoint.lg.support | EndPointCorp | Java | Code | 232 | 608 | /*
* Copyright (C) 2014 Google Inc.
* Copyright (C) 2015 End Point Corporation
*
* 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
*
* Unl... | 8,219 |
https://github.com/nekojoker/blazor-e-commerce/blob/master/Server/Extensions/UserExtension.cs | Github Open Source | Open Source | MIT | 2,022 | blazor-e-commerce | nekojoker | C# | Code | 36 | 107 | using System;
using BlazorEC.Shared.Entities;
using Microsoft.Graph;
namespace BlazorEC.Server.Extensions;
public static class UserExtension
{
public static ShopUser ToShopUser(this User user)
{
return new ShopUser
{
Id = user.Id,
DisplayName = user.DisplayName,
... | 15,520 |
https://github.com/MartinSimango/ftqproto/blob/master/src/driver/request/src/RequestFactory.cpp | Github Open Source | Open Source | MIT | null | ftqproto | MartinSimango | C++ | Code | 65 | 281 | #include <ftqproto/RequestFactory.hpp>
using namespace request;
CreateRequest RequestFactory::CreateCreateRequest(const char * protoRequestMessage) {
CreateRequest request;
request.ParseFromString(protoRequestMessage);
return request;
}
GetRequest RequestFactory::CreateGetRequest(const char * protoReques... | 51,372 |
https://github.com/pkolodziej13/Ornate_cpp/blob/master/Ornate_cpp/Aggregations/bimap.h | Github Open Source | Open Source | MIT | null | Ornate_cpp | pkolodziej13 | C | Code | 168 | 694 | #pragma once
#include <map>
namespace agg
{
template<class T1, class T2 >
struct Bimap
{
void add(const T1& key1, const T2& key2)
{
if (map1.count(key1))
{
remove(key1);
}
if (map2.count(key2))
{
remove(key2);
}
map1[key1] = key2;
map2[key2] = key1;
}
void remove(const T1& k... | 34,630 |
https://github.com/lukasz-golebiewski/mantis/blob/master/src/evmTest/scala/io/iohk/ethereum/vm/MinimumViableTokenSpec.scala | Github Open Source | Open Source | Apache-2.0 | 2,022 | mantis | lukasz-golebiewski | Scala | Code | 234 | 655 | package io.iohk.ethereum.vm
import io.iohk.ethereum.vm.utils.EvmTestEnv
import io.iohk.ethereum.domain.UInt256
import org.scalatest.matchers.should.Matchers
import org.scalatest.freespec.AnyFreeSpec
// scalastyle:off magic.number
class MinimumViableTokenSpec extends AnyFreeSpec with Matchers {
"EVM running Minimum... | 5,872 |
https://github.com/LessPaperWork/LessPaper.Shared.Queueing/blob/master/.gitignore | Github Open Source | Open Source | MIT | 2,020 | LessPaper.Shared.Queueing | LessPaperWork | Ignore List | Code | 20 | 153 | ## Static files
*
!/**/
!.github/workflows/*.yml
!.gitignore
!LICENSE
!README.md
/**/Debug
/**/Release
## Add specific files
!LessPaper.Shared.Queueing/LessPaper.Shared.Queueing.csproj
!LessPaper.Shared.Queueing.UnitTest/LessPaper.Shared.Queueing.UnitTest.csproj
!LessPaper.Shared.Queueing.IntegrationTest/LessPaper.Sh... | 21,583 |
https://github.com/u1f408/rendash/blob/master/.gitignore | Github Open Source | Open Source | MIT | 2,021 | rendash | u1f408 | Ignore List | Code | 8 | 47 | /.eggs/
/.pytest_cache/
/.tox/
/build/
/dist/
/rendash.egg-info/
/venv/
__pycache__
| 35,724 |
https://github.com/cuappdev/podcast/blob/master/old/Podcast/DiscoverCollectionViewHeaderView.swift | Github Open Source | Open Source | MIT | 2,022 | podcast | cuappdev | Swift | Code | 206 | 787 | //
// DiscoverTableViewHeaderView.swift
// Podcast
//
// Created by Kevin Greer on 2/19/17.
// Copyright © 2017 Cornell App Development. All rights reserved.
//
import UIKit
enum DiscoverHeaderType: String {
case topics = "Topics"
case series = "Series"
case episodes = "Episodes"
case continueList... | 15,274 |
https://github.com/faridazhar/panda-a4/blob/master/4AJ.2.2/mydroid/hardware/ti/arx/source/apps/ARCowboid/jni/ARCameraJniContext.h | Github Open Source | Open Source | Apache-2.0 | 2,015 | panda-a4 | faridazhar | C++ | Code | 170 | 475 | /*
* Copyright (C) 2012 Texas Instruments, 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... | 49,766 |
https://github.com/paulcbetts/ngit/blob/master/NGit.Test/NGit.Transport/URIishTest.cs | Github Open Source | Open Source | BSD-3-Clause | 2,015 | ngit | paulcbetts | C# | Code | 1,652 | 8,837 | /*
This code is derived from jgit (http://eclipse.org/jgit).
Copyright owners are documented in jgit's IP log.
This program and the accompanying materials are made available
under the terms of the Eclipse Distribution License v1.0 which
accompanies this distribution, is reproduced below, and is
available at http://www... | 27,958 |
https://github.com/halper/gardenltd/blob/master/resources/views/tekil/_subcontractor-files.blade.php | Github Open Source | Open Source | MIT | null | gardenltd | halper | PHP | Code | 129 | 626 | {!! Form::model($subcontractor, [
'url' => "/tekil/$site->slug/save-subcontractor-files",
'method' => 'POST',
'class' => 'dropzone',
'id' => 'file-insert-form',
'role' => 'form',
'files'=>true
]) !!}
{!! Form... | 42,567 |
https://github.com/msrLi/portingSources/blob/master/gdb/gdb-7.8.2/sim/testsuite/sim/bfin/issue103.s | Github Open Source | Open Source | LGPL-3.0-only, GPL-1.0-or-later, LGPL-2.0-or-later, LicenseRef-scancode-warranty-disclaimer, LicenseRef-scancode-other-copyleft, GPL-2.0-only, LGPL-2.0-only, LicenseRef-scancode-other-permissive, GPL-2.0-or-later, GPL-3.0-only, Apache-2.0 | 2,019 | portingSources | msrLi | null | Spoken | 86 | 265 | # mach: bfin
.include "testutils.inc"
start
A0 = 0;
A1 = 0;
R0 = 0;
R1 = 0;
R2 = 0;
R3 = 0;
R4 = 0;
R5 = 0;
R2.H = 0xf12e;
R2.L = 0xbeaa;
R3.L = 0x00ff;
A1.w = R2;
A1.x = R3;
R0.H = 0xd136;
R0.L = 0x459d;
R1.H = 0xabd6;
R1.L = 0x9ec7;
_DBG A1;
R5 = A1 , A0 = R1.L * R0.L (FU);
DBGA ( R5.H , 0xff... | 44,071 |
https://github.com/aergoio/heraj/blob/master/core/util/src/main/java/hera/util/Base58Utils.java | Github Open Source | Open Source | MIT | 2,022 | heraj | aergoio | Java | Code | 926 | 2,126 | /*
* @copyright defined in LICENSE.txt
*/
package hera.util;
import static org.slf4j.LoggerFactory.getLogger;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.util.Arrays;
import org.slf4j.Logger;
/**
* Base58 utils class. Encoding, decoding logic is copied from bitcoinj.
*/
... | 43,769 |
https://github.com/RandomNoun7/provision/blob/master/tasks/vagrant.rb | Github Open Source | Open Source | Apache-2.0 | 2,019 | provision | RandomNoun7 | Ruby | Code | 428 | 1,701 | #!/usr/bin/env ruby
require 'json'
require 'net/http'
require 'yaml'
require 'puppet_litmus'
require 'fileutils'
require 'net/ssh'
require_relative '../lib/task_helper'
def generate_vagrantfile(file_path, platform)
vf = <<-VF
Vagrant.configure(\"2\") do |config|
config.vm.box = '#{platform}'
config.vm.boot_timeo... | 3,208 |
https://github.com/kennetms/Accenture_Hybrid_Guided_VAE/blob/master/dvs_gestures/train_gestures.py | Github Open Source | Open Source | Apache-2.0 | null | Accenture_Hybrid_Guided_VAE | kennetms | Python | Code | 190 | 618 | #!/bin/python
#-----------------------------------------------------------------------------
#-----------------------------------------------------------------------------
import sys
# insert at 1, 0 is the script path (or '' in REPL)
sys.path.insert(1, '../utils')
sys.path.insert(1, '../')
from train_hybrid_vae_guided... | 75 |
https://github.com/LoopKit/LoopKit/blob/master/LoopKitUI/InsulinKit/ErrorBackgroundView.swift | Github Open Source | Open Source | MIT | 2,023 | LoopKit | LoopKit | Swift | Code | 54 | 135 | //
// ErrorBackgroundView.swift
// Naterade
//
// Created by Nathan Racklyeft on 2/15/16.
// Copyright © 2016 Nathan Racklyeft. All rights reserved.
//
import UIKit
public class ErrorBackgroundView: UIView {
@IBOutlet var errorDescriptionLabel: UILabel!
public func setErrorDescriptionLabel(with label: S... | 20,976 |
https://github.com/dsp/rust-mailbox/blob/master/src/header/status.rs | Github Open Source | Open Source | WTFPL | 2,017 | rust-mailbox | dsp | Rust | Code | 291 | 911 | // DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
// Version 2, December 2004
//
// Copyleft (ↄ) meh. <meh@schizofreni.co> | http://meh.schizofreni.co
//
// Everyone is permitted to copy and distribute verbatim or modified
// copies of this license document, and changing it is allowed as long... | 5,310 |
https://github.com/qiuchili/ggnn_graph_classification/blob/master/program_data/JavaProgramData/36/276.java | Github Open Source | Open Source | MIT | 2,018 | ggnn_graph_classification | qiuchili | Java | Code | 199 | 579 | package <missing>;
public class GlobalMembers
{
public static int Main()
{
final String c = "";
final String c1 = "";
final String c2 = "";
int a;
int b;
int d;
int e = 0;
int f = 0;
int g;
int j;
c = new Scanner(System.in).nextLine();
for (a = 0;a < 100;a++)
{
if (c.charAt(a) == ' ')
... | 18,276 |
https://github.com/Alvar-Yoel/FastScanIP.sh/blob/master/fastIPScan.sh | Github Open Source | Open Source | Apache-2.0 | null | FastScanIP.sh | Alvar-Yoel | Shell | Code | 136 | 527 | #!/bin/bash
#
#Colores
#
greenColour="\e[0;32m\033[1m"
endColour="\033[0m\e[0m"
redColour="\e[0;31m\033[1m"
blueColour="\e[0;34m\033[1m"
yellowColour="\e[0;33m\033[1m"
purpleColour="\e[0;35m\033[1m"
turquoiseColour="\e[0;36m\033[1m"
grayColour="\e[0;37m\033[1m"
#
#Dice Saliendo...
#
function ctrl_c() {
echo -e "\n${... | 30,087 |
https://github.com/karlcc/qdms/blob/master/QDMS.Server.DataSources.FXStreet/FXStreet.fs | Github Open Source | Open Source | BSD-3-Clause | 2,021 | qdms | karlcc | null | Spoken | 212 | 798 | namespace QDMS.Server.DataSources
module fx =
open QDMS
open System
open System.Linq
open FSharp.Data
open NLog
type FXStreet(countryCodeHelper:CountryCodeHelper) =
let countryCodeHelper = countryCodeHelper
let error = Event<EventHandler<ErrorArgs>,ErrorArgs>()
let ... | 41,522 |
https://github.com/ransilad/reduxchat/blob/master/src/App.js | Github Open Source | Open Source | MIT | 2,015 | reduxchat | ransilad | JavaScript | Code | 128 | 336 | import React, { Component, PropTypes } from 'react';
import { RouteHandler, Router, Route } from 'react-router';
import Main from './components/Main';
import Subscribe from './components/Subscribe';
import ChatActions from './actions/ChatActions';
import { connect } from 'redux/react';
import * as stores from './stores... | 10,784 |
https://github.com/shulu/xyster/blob/master/library/Xyster/Acl/Acl.php | Github Open Source | Open Source | BSD-3-Clause, LicenseRef-scancode-unknown-license-reference | 2,012 | xyster | shulu | PHP | Code | 464 | 1,220 | <?php
/**
* Xyster Framework
*
* This source file is subject to the new BSD license that is bundled
* with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://www.opensource.org/licenses/bsd-license.php
*
* @category Xyster
* @package Xyster_Acl
* ... | 35,002 |
https://github.com/lighthouse-os/hardware_libhardware/blob/master/modules/camera/3_0/Stream.cpp | Github Open Source | Open Source | Apache-2.0 | null | hardware_libhardware | lighthouse-os | C++ | Code | 704 | 2,399 | /*
* Copyright (C) 2013 The Android Open Source Project
*
* 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... | 25,052 |
https://github.com/oixhwotl/RecursoDeAndroidProgramming/blob/master/REF/AndExam4_1/src/andexam/ver4_1/c18_process/WindowManagerTest.java | Github Open Source | Open Source | MIT | null | RecursoDeAndroidProgramming | oixhwotl | Java | Code | 103 | 444 | package andexam.ver4_1.c18_process;
import andexam.ver4_1.*;
import android.app.*;
import android.content.*;
import android.graphics.*;
import android.os.*;
import android.view.*;
import android.widget.*;
public class WindowManagerTest extends Activity {
public void onCreate(Bundle savedInstanceState) {
super.onCr... | 93 |
https://github.com/AnneBlair/Aphrodite/blob/master/Aphrodite/ActionStore.swift | Github Open Source | Open Source | MIT | 2,017 | Aphrodite | AnneBlair | Swift | Code | 138 | 324 | //
// ActionStore.swift
// Aphrodite
//
// Created by AnneBlair on 2017/9/9.
// Copyright © 2017年 blog.aiyinyu.com. All rights reserved.
//
import Foundation
public protocol ActionType {}
public protocol StateType {}
public protocol CommandType {}
public class Store<A: ActionType, S: StateType, C: CommandType> {... | 7,243 |
https://github.com/Jarno-Poikonen/INP-WirelessWeatherStation/blob/master/web-content/application/views/layout/topnav.php | Github Open Source | Open Source | MIT, LicenseRef-scancode-unknown-license-reference | 2,018 | INP-WirelessWeatherStation | Jarno-Poikonen | PHP | Code | 62 | 312 | <div id="topnav" class="container">
<h2>INP-Weather stations</h2>
<?php
if(!isset($_SESSION['loggedIn'])){
$_SESSION['loggedIn'] = false; //TODO find a proper place to initialize this
}
if($_SESSION['loggedIn']==false){
echo '<form action="'.site_url('login/siteLogin').'" method="post">
'.... | 1,304 |
https://github.com/cuisines/tizzit/blob/master/tizzit/conf/sql/ALL_CREATE_AND_CLEAN_mySQL.sql | Github Open Source | Open Source | Apache-2.0 | 2,023 | tizzit | cuisines | SQL | Code | 1,908 | 6,961 | CREATE TABLE COMP_ADDRESS (
address_id BIGINT NOT NULL,
room_nr VARCHAR(255) NULL,
building_level VARCHAR(255) NULL,
building_nr VARCHAR(255) NULL,
street VARCHAR(255) NULL,
street_nr VARCHAR(255) NULL,
post_office_box VARCHAR(255) NULL,
country_code VARCHAR(3) NULL,
country VARCHAR(255) NULL,
zip_co... | 40,214 |
https://github.com/AchoArnold/ov-chipkart-dashboard/blob/master/frontend/src/services/message-bag/MessageBag.ts | Github Open Source | Open Source | MIT | null | ov-chipkart-dashboard | AchoArnold | TypeScript | Code | 105 | 295 | class MessageBag<K extends number | string, T> {
private items = new Map<K, Array<T>>();
add(key: K, value: T): void {
let messages: Array<T> | undefined = this.items.get(key);
if (messages === undefined) {
messages = [];
}
if (!messages.includes(value)) {
... | 4,203 |
https://github.com/betagouv/preuve-covoiturage/blob/master/api/db/migrations/application/20200302155806_cast_fkeys.down.sql | Github Open Source | Open Source | Apache-2.0 | 2,021 | preuve-covoiturage | betagouv | SQL | Code | 10 | 25 | alter table application.applications
alter column owner_id type varchar using owner_id::varchar;
| 25,970 |
https://github.com/rahil-1407/Data-Structure-and-Algorithms/blob/master/Leetcode/Minimum Difficulty of a Job Schedule/Minimum Difficulty of a Job Schedule.c | Github Open Source | Open Source | MIT | 2,022 | Data-Structure-and-Algorithms | rahil-1407 | C | Code | 267 | 528 | int minDifficultyNonRecursion(int* jobDifficulty, int jobDifficultySize, int d){
int n = jobDifficultySize;
if (d > n) return -1;
// take an array of size day+1 and jobSizes+1
int F[d+1][n+1];
for(int i=0; i<=d; i++){
for(int j=0; j<=n; j++){
F[i][j] = 0;
}
}
// F... | 22,480 |
https://github.com/nddery/LaRelance/blob/master/app/js/controllers/StatusBarCtrl.js | Github Open Source | Open Source | MIT | 2,014 | LaRelance | nddery | JavaScript | Code | 32 | 129 | 'use strict';
angular.module('app')
.controller('StatusBarCtrl', ['$scope', 'statusBar', function VisCtrl($scope, statusBar) {
$scope.type = '';
$scope.status = '';
$scope.$on('statusUpdated', function(){
if(!$scope.$$phase){
$scope.$apply(function(){
$scope.type = statusBar.type;
$... | 37,886 |
https://github.com/ggeorg/WebXView/blob/master/src/plasma/webx/util/WebXConstants.java | Github Open Source | Open Source | Apache-2.0 | null | WebXView | ggeorg | Java | Code | 182 | 726 | package plasma.webx.util;
import org.apache.batik.util.CSSConstants;
import org.apache.batik.util.XMLConstants;
/**
* Define WebX constants, such as tag names, attribute names and URI
*/
public interface WebXConstants extends CSSConstants, XMLConstants {
//
// The CSS mime-type string.
//
String CSS_MIME... | 51,315 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.