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/eumario/wxruby/blob/master/swig/classes/include/wxSashEvent.h | Github Open Source | Open Source | MIT | 2,021 | wxruby | eumario | C | Code | 155 | 351 | // wxSashEvent.h
// This file was automatically generated
// by extractxml.rb, part of the wxRuby project
// Do not make changes directly to this file!
#if !defined(_wxSashEvent_h_)
#define _wxSashEvent_h_
class wxSashEvent : public wxCommandEvent
{
public:
/**
* \brief Constructor.
* \param int
* \param wx... | 16,572 |
https://github.com/odedglas/react-linear-gradient-picker/blob/master/src/components/hooks/useDragging/index.js | Github Open Source | Open Source | MIT | 2,022 | react-linear-gradient-picker | odedglas | JavaScript | Code | 236 | 745 | import { useState, useEffect } from 'react';
import { noop } from '../../../lib';
import { EVENTS } from './constants';
const DRAG_HANDLERS = {
MOUSE: {
stop: (e) => {
e.preventDefault();
e.stopPropagation();
},
coordinates: ({ clientX, clientY }) => ({ clientX, clientY }),
dragEvent: { name: EVENTS.MOU... | 42,491 |
https://github.com/dynaTrace/Dynatrace-NGINX-Plus-Monitoring-Plugin/blob/master/NGINX__Monitoring_Plugin/src/com/dynatrace/plugin/nginx/parsers/MetaParser.java | Github Open Source | Open Source | BSD-3-Clause | 2,015 | Dynatrace-NGINX-Plus-Monitoring-Plugin | dynaTrace | Java | Code | 46 | 275 | package com.dynatrace.plugin.nginx.parsers;
import org.json.JSONException;
import org.json.JSONObject;
import com.dynatrace.plugin.nginx.dto.MetaDTO;
public class MetaParser implements ParserInterface {
@Override
public Object parse(JSONObject jsonObject) throws JSONException {
MetaDTO metaDTO = new MetaDTO();... | 5,706 |
https://github.com/beaufrusetta/edgex-go/blob/master/internal/core/data/messaging/messaging_test.go | Github Open Source | Open Source | Apache-2.0 | 2,022 | edgex-go | beaufrusetta | Go | Code | 228 | 1,164 | package messaging
import (
"context"
"os"
"sync"
"testing"
"github.com/edgexfoundry/go-mod-messaging/v2/messaging"
"github.com/stretchr/testify/assert"
"github.com/edgexfoundry/edgex-go/internal/core/data/config"
"github.com/edgexfoundry/edgex-go/internal/core/data/container"
bootstrapContainer "github.com/... | 32,376 |
https://github.com/yangchunjian/webuploader/blob/master/src/runtime/html5/filepaste.js | Github Open Source | Open Source | BSD-3-Clause | 2,021 | webuploader | yangchunjian | JavaScript | Code | 203 | 566 | /**
* @fileOverview FilePaste
*/
define([
'../../base',
'./runtime',
'../../lib/file'
], function( Base, Html5Runtime, File ) {
return Html5Runtime.register( 'FilePaste', {
init: function() {
var opts = this.options,
elem = this.elem = opts.container,
... | 35,819 |
https://github.com/Jhonnorton/vivekvtc/blob/master/module/UserClients/src/UserClients/Controller/UserClientsController.php | Github Open Source | Open Source | BSD-3-Clause | null | vivekvtc | Jhonnorton | PHP | Code | 74 | 271 | <?php
/**
* Zend Framework (http://framework.zend.com/)
*
* @link http://github.com/zendframework/Orders for the canonical source repository
* @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License 123
*/
na... | 22,360 |
https://github.com/iGovindY/sysrepo/blob/master/tests/helpers/test_module_helper.c | Github Open Source | Open Source | Apache-2.0, LGPL-2.0-or-later | 2,020 | sysrepo | iGovindY | C | Code | 1,662 | 7,724 | /**
* @file test_module_helper.c
* @author Rastislav Szabo <raszabo@cisco.com>, Lukas Macko <lmacko@cisco.com>
* @brief
*
* @copyright
* Copyright 2016 Cisco Systems, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* Y... | 130 |
https://github.com/VisaTM/termsuite-core-omtd/blob/master/src/eval/java/fr/univnantes/termsuite/eval/model/Corpus.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | termsuite-core-omtd | VisaTM | Java | Code | 128 | 522 | package fr.univnantes.termsuite.eval.model;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.Arrays;
import java.util.stream.Stream;
import fr.univnantes.termsuite.eval.TermSuiteEvals;
import fr.univnantes.termsuite.model.Lang;
public enum Corpus{
// BREAST_CANCER("bc","breast-cancer", false),... | 50,268 |
https://github.com/Stilltrue/Angular2_Project/blob/master/src/app/pages/courses/courses.component.ts | Github Open Source | Open Source | MIT | null | Angular2_Project | Stilltrue | TypeScript | Code | 24 | 97 | import {
Component,
OnInit,
ViewEncapsulation
} from '@angular/core';
@Component({
selector: 'cr-courses', //header
encapsulation: ViewEncapsulation.None,
//styleUrls: ['/courses.scss'],
templateUrl: ['/courses.html']
})
export class CoursesComponent {
}
| 50,677 |
https://github.com/kigichang/goscala/blob/master/monad.go | Github Open Source | Open Source | MIT | null | goscala | kigichang | Go | Code | 121 | 282 | // Copyright © 2021 Kigi Chang <kigi.chang@gmail.com>
//
// Use of this source code is governed by an MIT-style
// license that can be found in the LICENSE file.
package goscala
func Fold[T, C, U any](succ func(T) U, fail func(C) U) func(func() (T, C)) U {
return func(fetch func() (T, C)) U {
return FoldV(succ, fa... | 34,456 |
https://github.com/kennylevinsen/gokit/blob/master/sitekit/web/testsession_test.go | Github Open Source | Open Source | MIT | 2,019 | gokit | kennylevinsen | Go | Code | 193 | 878 | package web
import (
"fmt"
"net/http"
"strconv"
"testing"
)
func TestTestSession(t *testing.T) {
session := NewTestSession(t, getTestSite())
// basic return value test
session.Get("/robots.txt").AssertBodyEquals("User-agent: *\nDisallow: /\n")
session.Action(robotsTxt, nil).AssertBodyEquals("User-agent: *\nD... | 22,958 |
https://github.com/luisabellan/javascript-express/blob/master/examples/files/collections/objectsCloningAndMerging.ts | Github Open Source | Open Source | MIT | 2,022 | javascript-express | luisabellan | TypeScript | Code | 52 | 138 | const myObject1 = {
name: 'Devin',
age: 29,
}
const myObject2 = {
eyeColor: 'blue',
age: 30,
}
const myObject3 = {
hairColor: 'brown',
}
// Merge 2 into 1
Object.assign(myObject1, myObject2)
console.log(myObject1)
// Merge 2 and 3 into a new object
const merged = { ...myObject2, ...myObject3 }
console... | 24,248 |
https://github.com/ultianalytics/UltimateAndroid/blob/master/gen/com/summithillsoftware/ultimate/R.java | Github Open Source | Open Source | MIT | null | UltimateAndroid | ultianalytics | Java | Code | 20,000 | 65,274 | /* AUTO-GENERATED FILE. DO NOT MODIFY. * * This class was automatically generated by the * aapt tool from the resource data it found. It * should not be modified by hand. */ package com.summithillsoftware.ultimate; public final class R { public static final class anim { public static final int abc_fade_in=0x7f040000; p... | 28,605 |
https://github.com/PeterNSteinmetz/XChange/blob/master/xchange-huobi/src/main/java/org/knowm/xchange/huobi/dto/streaming/response/service/ReqMsgUnsubscribeResponse.java | Github Open Source | Open Source | MIT | null | XChange | PeterNSteinmetz | Java | Code | 37 | 158 | package org.knowm.xchange.huobi.dto.streaming.response.service;
import org.knowm.xchange.huobi.dto.streaming.response.ReqResponse;
import org.knowm.xchange.huobi.dto.streaming.response.payload.VoidPayload;
/**
* Response of canceling push message subscription.
*/
public class ReqMsgUnsubscribeResponse extends ReqRe... | 13,941 |
https://github.com/JaredDyreson/JavaStuff/blob/master/final_project/src/ZipWindow.java | Github Open Source | Open Source | MIT | null | JavaStuff | JaredDyreson | Java | Code | 1,122 | 3,894 | /*
Jared Dyreson
CWID: 889546529
ZipWindow.java -> Main driver code for the Zip Viewer application
*/
import java.awt.*;
import java.awt.event.*;
import java.lang.Math;
import java.text.MessageFormat;
import javax.swing.*;
import javax.swing.JOptionPane;
import javax.swing.JFrame;
import java.io.*;
import java.uti... | 1,956 |
https://github.com/molasdin/wbase/blob/master/wbase/src/main/java/org/molasdin/wbase/registry/SimpleRegistry.java | Github Open Source | Open Source | Apache-2.0 | null | wbase | molasdin | Java | Code | 179 | 430 | /*
* Copyright 2014 Bersenev Dmitry molasdin@outlook.com
*
* 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... | 37,651 |
https://github.com/hongboni/ansible-secure-centos7/blob/master/.gitignore | Github Open Source | Open Source | BSD-3-Clause | 2,017 | ansible-secure-centos7 | hongboni | Ignore List | Code | 10 | 38 | # Ansible specific excludes
*.pub
*.retry
group_vars
!group_vars/all.yml
required-roles/
secret/
| 32,986 |
https://github.com/BakaSugars/flyToTheMoon/blob/master/src/game/start.ts | Github Open Source | Open Source | MIT | 2,020 | flyToTheMoon | BakaSugars | TypeScript | Code | 13 | 22 | import { BaseElement } from "./baseElement";
export class Star extends BaseElement {
} | 6,730 |
https://github.com/bsatrom/particle-scripts/blob/master/workshop_updater/batch_test.py | Github Open Source | Open Source | MIT | null | particle-scripts | bsatrom | Python | Code | 907 | 2,676 | import os
import sys
import glob
#import serial
import time
import csv
import argparse
from datetime import datetime
import subprocess
#configuration region:
#prod
systemPart1Filename = 'system-part1-1.0.1-p1.bin'
systemPart2Filename = 'system-part2-1.0.1-p1.bin'
mainApplicationFilename = 'FW.bin'
serialPortPrefix = ... | 50,381 |
https://github.com/jim-dale/MicrosoftBand/blob/master/src/DownloadData/Utility/AppStateExtensions_JsonFile.cs | Github Open Source | Open Source | MIT | null | MicrosoftBand | jim-dale | C# | Code | 98 | 272 |
namespace HealthSdkPrototype
{
using System;
using System.IO;
using Newtonsoft.Json;
internal static partial class AppStateExtensions
{
private const string DefaultFileName = "downloaddata.appstate.json";
private static readonly JsonSerializerSettings _jsSettings = new JsonSeriali... | 7,315 |
https://github.com/Dialyma/Kiosk/blob/master/dlokiosk/src/test/java/com/dlohaiti/dlokiosk/EnterPromotionActivityTest.java | Github Open Source | Open Source | Apache-2.0 | 2,017 | Kiosk | Dialyma | Java | Code | 58 | 261 | package com.dlohaiti.dlokiosk;
import com.dlohaiti.dlokiosk.domain.ShoppingCart;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.robolectric.RobolectricTestRunner;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.times;
import static org.mockito.Moc... | 24,363 |
https://github.com/58565826/beijing/blob/master/src/pages/initialization/index.tsx | Github Open Source | Open Source | MIT | null | beijing | 58565826 | TypeScript | Code | 505 | 1,888 | import React, { Fragment, useEffect, useState } from 'react';
import {
Button,
Row,
Input,
Form,
message,
Typography,
Steps,
Select,
} from 'antd';
import config from '@/utils/config';
import { history } from 'umi';
import styles from './index.less';
import { request } from '@/utils/http';
const FormIt... | 17,433 |
https://github.com/valeriabarra/ThinViscoelasticFilms/blob/master/get_matrix_x_vdw.f90 | Github Open Source | Open Source | BSD-2-Clause | 2,022 | ThinViscoelasticFilms | valeriabarra | Fortran Free Form | Code | 291 | 793 | ! BSD 2-Clause License
!
! Copyright (c) [2019] [Valeria Barra]
! All rights reserved.
!
! Redistribution and use in source and binary forms, with or without
! modification, are permitted provided that the following conditions are met:
!
! 1. Redistributions of source code must retain the above copyright notice, this
!... | 22,170 |
https://github.com/westonized/liquid-sledgehammer/blob/master/liquidsledgehammerMaven/liquid-sledgehammer-core/src/test/java/com/coltsoftware/liquidsledgehammer/collections/FinancialTransactionListTests.java | Github Open Source | Open Source | MIT | null | liquid-sledgehammer | westonized | Java | Code | 142 | 682 | package com.coltsoftware.liquidsledgehammer.collections;
import static org.junit.Assert.*;
import java.util.ArrayList;
import org.junit.Before;
import org.junit.Test;
import com.coltsoftware.liquidsledgehammer.MoneyTestBase;
import com.coltsoftware.liquidsledgehammer.collections.FinancialTransactionList;
import com... | 36,597 |
https://github.com/Automic-Community/hp-quality-center-action-pack/blob/master/source/tools/src/main/java/ota/client12/IFactoryList.java | Github Open Source | Open Source | BSD-4-Clause-UC | null | hp-quality-center-action-pack | Automic-Community | Java | Code | 266 | 671 | package ota.client12 ;
import com4j.*;
/**
* Services to create and maintains lists within entity factories. Use any factory object to create any number of list instances for objects in the factory.
*/
@IID("{68FE31A3-6242-4AA4-9BBE-D0715F810DB3}")
public interface IFactoryList extends ota.client12.IList {
// Me... | 25,358 |
https://github.com/oozd/municippa/blob/master/lib/screens/home/home_body.dart | Github Open Source | Open Source | MIT | null | municippa | oozd | Dart | Code | 117 | 527 | import 'package:flutter/material.dart';
import 'package:municippa/screens/popular/popular.dart';
import 'package:municippa/screens/recent/recent.dart';
import 'package:municippa/screens/near_me/near_me.dart';
import 'package:provider/provider.dart';
import 'package:firebase_auth/firebase_auth.dart';
import 'package:mun... | 21,518 |
https://github.com/tommynicoletti/cise-sim/blob/master/cise-sim-api/src/main/java/eu/cise/sim/api/messages/builders/incident/AbstractIncidentBuilder.java | Github Open Source | Open Source | BSD-3-Clause | 2,021 | cise-sim | tommynicoletti | Java | Code | 436 | 1,393 | /*
* BSD 3-Clause License
*
* Copyright (c) 2021, Joint Research Centre (JRC) All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copy... | 32,606 |
https://github.com/dynamic-forms/dynamic-forms/blob/master/libs/core/src/lib/dynamic-form-array/dynamic-form-array-validator-type-config.ts | Github Open Source | Open Source | MIT | 2,021 | dynamic-forms | dynamic-forms | TypeScript | Code | 25 | 105 | import { InjectionToken } from '@angular/core';
import { DynamicFormArrayValidatorType } from './dynamic-form-array-validator-type';
export type DynamicFormArrayValidatorTypeConfig = (DynamicFormArrayValidatorType | DynamicFormArrayValidatorType[])[];
export const DYNAMIC_FORM_ARRAY_VALIDATOR_TYPE_CONFIG =
new Inje... | 3,504 |
https://github.com/polivbr/pulumi-azure-native/blob/master/sdk/dotnet/CustomerInsights/V20170426/Outputs/KpiThresholdsResponse.cs | Github Open Source | Open Source | Apache-2.0 | null | pulumi-azure-native | polivbr | C# | Code | 125 | 314 | // *** WARNING: this file was generated by the Pulumi SDK Generator. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Threading.Tasks;
using Pulumi.Serialization;
namespace Pulumi.Azur... | 32,807 |
https://github.com/FuriousLlama/PSP/blob/master/backend/ltsa/Models/ChargeOwnershipGroupChargeOwner.cs | Github Open Source | Open Source | Apache-2.0 | 2,022 | PSP | FuriousLlama | C# | Code | 347 | 841 | /*
* Title Direct Search Services
*
* Title Direct Search Services
*
* OpenAPI spec version: 4.0.1
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
using System.IO;
using System.Runtime.Serialization;
namespace Pims.Ltsa.Models
{
/// <summary>
/// ChargeOwnershipGroupChargeOwn... | 9,363 |
https://github.com/julianobrasil-presentations/planning-your-angular-app/blob/master/example-app/src/app/views/user-details/custom-material.module.ts | Github Open Source | Open Source | MIT | 2,019 | planning-your-angular-app | julianobrasil-presentations | TypeScript | Code | 38 | 160 | import {NgModule} from '@angular/core';
import {MatButtonModule} from '@angular/material/button';
import {MatFormFieldModule} from '@angular/material/form-field';
import {MatInputModule} from '@angular/material/input';
import {MatProgressSpinnerModule} from '@angular/material/progress-spinner';
import {MatSnackBarModul... | 31,490 |
https://github.com/caoxp-code/vue3-cms-ts/blob/master/src/views/login/index.vue | Github Open Source | Open Source | BSD-3-Clause | 2,022 | vue3-cms-ts | caoxp-code | Vue | Code | 15 | 51 | <template>
<div> LOGIN </div>
</template>
<script setup></script>
<script>
export default {
name: 'LoginPage',
}
</script>
| 23,412 |
https://github.com/fureigh/crime-data-frontend/blob/master/src/actions/filters.js | Github Open Source | Open Source | CC0-1.0, LicenseRef-scancode-public-domain | 2,017 | crime-data-frontend | fureigh | JavaScript | Code | 68 | 168 | import { FILTER_RESET, FILTERS_UPDATE } from './constants'
import offenses from '../util/offenses'
import lookupUsa from '../util/usa'
const isValidCrime = crime => offenses.includes(crime)
export const resetFilter = ({ id }) => ({ type: FILTER_RESET, id })
export const updateFilters = filters => {
const f = { ...f... | 37,209 |
https://github.com/testify-project/testify/blob/master/modules/junit5/junit5-core/src/test/java/org/testifyproject/junit5/fixture/ExplicitIndexIndistinctGenericType.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | testify | testify-project | Java | Code | 161 | 390 | /*
* Copyright 2016-2018 Testify 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 applicable law or... | 823 |
https://github.com/blesstosam/ream/blob/master/test/unit/path-to-routes.test.ts | Github Open Source | Open Source | MIT | 2,020 | ream | blesstosam | TypeScript | Code | 144 | 585 | import { pathToRoutes } from 'ream/src/utils/path-to-routes'
test(`compile static paths to routes`, () => {
const routes = pathToRoutes(['bar/zoo.js', 'foo.vue'], '/pages')
expect(routes).toMatchInlineSnapshot(`
Array [
Object {
"absolutePath": "/pages/bar/zoo.js",
"entryName": "pages/bar... | 45,745 |
https://github.com/tmukherjee13/eb-custom-platform/blob/master/builder/setup-scripts/03-setup-platform.sh | Github Open Source | Open Source | Apache-2.0 | null | eb-custom-platform | tmukherjee13 | Shell | Code | 92 | 361 | #!/bin/bash -xe
. $BUILDER_DIR/CONFIG
### INSTALL AND VALIDATE NODE ####
echo "SETTING UP NODE ON THE INSTANCE"
apt install -y wget tree git composer
source ~/.profile
echo "Creating base directories for platform."
mkdir -p $BEANSTALK_DIR/deploy/appsource/
mkdir -p /var/app/staging
mkdir -p /var/app/current
mkdir -p... | 5,591 |
https://github.com/voxeet/voxeet-uxkit-android/blob/master/uxkit-common/build.gradle | Github Open Source | Open Source | MIT, EPL-1.0, BSD-3-Clause, Apache-2.0 | 2,023 | voxeet-uxkit-android | voxeet | Gradle | Code | 31 | 140 | plugins {
id "com.android.library"
id "kotlin-android"
}
android {
defaultConfig {
buildConfigField "String", "VERSION_NAME", "\"${rootProject.ext.version}\""
}
}
configurations {
javadocDeps
}
dependencies {
api dolbyio.androidx.appcompat
api "io.dolby:sdk:${rootProject.ext.voxe... | 29,071 |
https://github.com/braunfuss/bgr-mags-addons/blob/master/apps/magsdetector/crosscorr.ipp | Github Open Source | Open Source | Naumen, Condor-1.1, MS-PL | 2,018 | bgr-mags-addons | braunfuss | C++ | Code | 214 | 459 | /***************************************************************************
* You can redistribute and/or modify this program under the *
* terms of the SeisComP Public License. *
* *
* This pr... | 3,265 |
https://github.com/ElegastVZW/mock-xrm/blob/master/src/utility/reduce.js | Github Open Source | Open Source | MIT | 2,022 | mock-xrm | ElegastVZW | JavaScript | Code | 13 | 28 | const reduce = (func, init) => (arr) => arr.reduce(func, init);
export default reduce; | 29,494 |
https://github.com/redtreelchao/react-meisu/blob/master/src/routes/MyCoupons/modules/mycoupons.js | Github Open Source | Open Source | MIT | null | react-meisu | redtreelchao | JavaScript | Code | 109 | 366 | import fetch from 'isomorphic-fetch'
// ------------------------------------
// Constants
// ------------------------------------
import {COUPONS_URL,GET_COUPONS} from '../../../constants'
// ------------------------------------
// Actions
// ------------------------------------
export const getCoupons =(user)=>{... | 6,841 |
https://github.com/icgw/Machine-Learning/blob/master/LLE.m | Github Open Source | Open Source | MIT | 2,018 | Machine-Learning | icgw | MATLAB | Code | 177 | 521 | function Z = LLE(D, k, d)
% Locally Linear Embedding 局部线性嵌入
% 输入:样本集 D,近邻参数 k,低维空间维数 d
% 输出:样本集 D 在低维空间的投影
%%
[~, m] = size(D);
% 设置正则项系数
tol = 1e-3;
%% 计算 k-近邻点
D2 = sum(D .* D);
dist = repmat(D2, m, 1) + repmat(D2', 1, m) - 2 * (D' * D);
[~, index] = mink(dist, k + 1);
neighbors = index(2:k+1, :)... | 33,063 |
https://github.com/henrywarhurst/matrix/blob/master/libs/boost_1_72_0/boost/serialization/detail/shared_count_132.hpp | Github Open Source | Open Source | BSD-3-Clause | null | matrix | henrywarhurst | C++ | Code | 1,222 | 4,420 | #ifndef BOOST_DETAIL_SHARED_COUNT_132_HPP_INCLUDED
#define BOOST_DETAIL_SHARED_COUNT_132_HPP_INCLUDED
// MS compatible compilers support #pragma once
#if defined(_MSC_VER)
#pragma once
#endif
//
// detail/shared_count.hpp
//
// Copyright (c) 2001, 2002, 2003 Peter Dimov and Multi Media Ltd.
//
// Distributed under... | 12,392 |
https://github.com/opaulochaves/tasks-api/blob/master/src/domain/users/controller.js | Github Open Source | Open Source | MIT | null | tasks-api | opaulochaves | JavaScript | Code | 227 | 614 | const User = require("./model")
const {generateToken} = require("../../lib/helpers")
const {NotFoundError, UnauthorizedError} = require("../../lib/errors")
module.exports = {
async list(ctx) {
const {skip, limit} = ctx.query
const users = await User.list({skip, limit})
ctx.body = users
},
/**
*... | 50,243 |
https://github.com/petosegan/krc-solutions/blob/master/chapter4/ex_4_14.c | Github Open Source | Open Source | MIT | null | krc-solutions | petosegan | C | Code | 40 | 116 | #include <stdio.h>
#define swap(T, X, Y) {T temp; temp = X; X = Y; Y = temp;}
int main()
{
int a, b;
a = 2;
b = 5;
printf("\n%d\t%d", a, b);
swap(int, a, b);
printf("\n%d\t%d", a, b);
printf("\n\n");
}
| 9,718 |
https://github.com/derBroBro/wirvsvirus/blob/master/backend/generate_aggregate.py | Github Open Source | Open Source | MIT | null | wirvsvirus | derBroBro | Python | Code | 162 | 849 | import logging
import os
import json
import boto3
from datetime import datetime
import hashlib
logger = logging.getLogger()
logger.setLevel(os.environ.get("LOG_LEVEL", "INFO"))
BUCKET_SOURCE = "wirvsvirus-data"
BUCKET_TARGET = "wirvsvirus-public"
def write_key(filename, data):
logger.info(f"write file {filename}... | 7,928 |
https://github.com/stho01/sfml-fun/blob/master/Fireworks/RocketRenderer.cs | Github Open Source | Open Source | MIT | null | sfml-fun | stho01 | C# | Code | 94 | 352 | using SFML.Graphics;
using SFML.System;
using Stho.SFML.Extensions;
namespace Fireworks
{
public class RocketRenderer
{
//**********************************************************
//** fields:
//**********************************************************
private readon... | 38,795 |
https://github.com/fossabot/freefeed-server/blob/master/bin/bestof_emails.js | Github Open Source | Open Source | MIT | null | freefeed-server | fossabot | JavaScript | Code | 40 | 200 | #!/usr/bin/env babel-node
import bb from 'bluebird';
import { sendBestOfEmails } from '../app/support/BestOfDigest';
global.Promise = bb;
bb.coroutine.addYieldHandler((value) => bb.resolve(value));
bb.onPossiblyUnhandledRejection((e) => {
process.stderr.write(`Unhandled Exception ${e}`);
});
sendBestOfEmails()
... | 20,092 |
https://github.com/Guigas014/maratona-discover-02/blob/master/src/routes.js | Github Open Source | Open Source | RSA-MD | null | maratona-discover-02 | Guigas014 | JavaScript | Code | 56 | 238 | const express = require('express')
const ProfileController = require('./controllers/ProfileController')
const JobController = require('./controllers/JobController')
const DashboardController = require('./controllers/DashboardController')
const routes = express.Router()
//const basePath = __dirname + "/views"
//const... | 16,947 |
https://github.com/matthieu-rdt/Zabbix/blob/master/Upgrade/upgrade_zabbix_server_to_5.sh | Github Open Source | Open Source | MIT | 2,022 | Zabbix | matthieu-rdt | Shell | Code | 494 | 1,621 | #!/bin/bash
# description
# upgrade Zabbix Server for : Ubuntu, Debian, RHEL
# compatible versions : from Ubuntu 14.04 to 20.04, from Debian 8 to 11, from RHEL 5 to 8
# sources
# https://www.zabbix.com/documentation/current/manual
# https://bestmonitoringtools.com/upgrade-zabbix-to-the-latest-version/
# RUN AS USER
... | 13,498 |
https://github.com/masastack/MASA.Auth/blob/master/src/Services/Masa.Auth.Service.Admin/Domain/Subjects/Repositories/IThirdPartyIdpRepository.cs | Github Open Source | Open Source | Apache-2.0 | 2,022 | MASA.Auth | masastack | C# | Code | 32 | 81 | // Copyright (c) MASA Stack All rights reserved.
// Licensed under the Apache License. See LICENSE.txt in the project root for license information.
namespace Masa.Auth.Service.Admin.Domain.Subjects.Repositories;
public interface IThirdPartyIdpRepository : IRepository<ThirdPartyIdp>
{
}
| 40,708 |
https://github.com/hyissogood/Cheetah_mPaaSSDK/blob/master/Cheetah_mPaaSSDK/Frameworks/AntUI.framework/Headers/AUAmountInputFieldNew.h | Github Open Source | Open Source | MIT | 2,020 | Cheetah_mPaaSSDK | hyissogood | C | Code | 51 | 257 | #import "AUUILoadDefine.h"//程序自动生成
#ifdef ANTUI_UI_amountInputBox_AUAmountInputBox//程序自动生成
//
// AUAmountInputFieldNew.h
// AntUI
//
// Created by niki on 16/12/2.
// Copyright © 2016年 Alipay. All rights reserved.
//
#import "AUAmountInputFieldNew.h"
NS_ASSUME_NONNULL_BEGIN
/**
基于AUAmountEditTextNew的组合扩展.目前支持设置... | 27,165 |
https://github.com/Kayuwaii/MyAnimeList.API/blob/master/MyAnimeList.API/DTOs/Base.cs | Github Open Source | Open Source | MIT | 2,020 | MyAnimeList.API | Kayuwaii | C# | Code | 30 | 80 | using System;
using System.Collections.Generic;
using System.Text;
namespace MyAnimeList.API.DTOs
{
public abstract class Base<T1>
{
public IEnumerable<T1> data { get; set; }
public Paging paging { get; set; }
}
} | 24,955 |
https://github.com/dustming/basinmaker/blob/master/basinmaker/postprocessing/combinearcgis.py | Github Open Source | Open Source | Artistic-2.0 | 2,022 | basinmaker | dustming | Python | Code | 494 | 1,855 | import numpy as np
import sys
import os
import csv
import tempfile
import copy
import pandas as pd
from arcgis.features import GeoAccessor, GeoSeriesAccessor
import arcpy
from arcpy import env
from arcpy.sa import *
import sys, os
sys.path.append(os.path.join(os.path.dirname(__file__), '..'))
from basinmaker.func.... | 10,601 |
https://github.com/lechium/tvOS124Headers/blob/master/System/Library/PrivateFrameworks/SlideshowKit.framework/Frameworks/OpusFoundation.framework/OFUICollectionFlowView.h | Github Open Source | Open Source | MIT | 2,020 | tvOS124Headers | lechium | Objective-C | Code | 215 | 1,067 | /*
* This header is generated by classdump-dyld 1.0
* on Saturday, August 24, 2019 at 9:48:06 PM Mountain Standard Time
* Operating System: Version 12.4 (Build 16M568)
* Image Source: /System/Library/PrivateFrameworks/SlideshowKit.framework/Frameworks/OpusFoundation.framework/OpusFoundation
* classdump-dyld is licensed... | 35,347 |
https://github.com/zxzgit/myBlogStyle/blob/master/js/com/indexSea.js | Github Open Source | Open Source | MIT | 2,018 | myBlogStyle | zxzgit | JavaScript | Code | 224 | 1,064 | /**
* Created by zxz on 2016/12/30.
*/
define(function (require, exports, module) {
(function ($) {
var commonClass = function () {//基本操作类
this._init();
};
commonClass.prototype = {
/**
* 初始化对象
* @private
*/
_init: function () {
this.documentReady();
},
/**
*批量绑定事件
* @pa... | 41,114 |
https://github.com/lufei1344/cloud-oa/blob/master/src/main/java/com/cloudoa/framework/flow/ext/ExtGroup.java | Github Open Source | Open Source | Apache-2.0 | 2,019 | cloud-oa | lufei1344 | Java | Code | 42 | 158 | package com.cloudoa.framework.flow.ext;
import org.activiti.engine.impl.persistence.entity.GroupEntity;
import com.cloudoa.framework.security.entity.Org;
public class ExtGroup extends GroupEntity{
private Org org;
public ExtGroup() {
super();
}
public ExtGroup(String id) {
super(id);
}
public Org getO... | 46,067 |
https://github.com/kishor82/Hapi_Mongo_React/blob/master/src/services/register_strategy.ts | Github Open Source | Open Source | MIT | 2,021 | Hapi_Mongo_React | kishor82 | TypeScript | Code | 88 | 227 | import { Server } from '@hapi/hapi';
import JWT from 'hapi-auth-jwt2';
export default async (server: Server, config: any) => {
const { jwt_secret_key } = config;
await server.register({
plugin: JWT,
});
server.auth.strategy('jwt', 'jwt', {
key: jwt_secret_key,
validate: async (decoded: any) => {
... | 21,989 |
https://github.com/osyris-project/osyris/blob/master/test/test_datagroup.py | Github Open Source | Open Source | BSD-3-Clause | 2,022 | osyris | osyris-project | Python | Code | 738 | 2,426 | # SPDX-License-Identifier: BSD-3-Clause
# Copyright (c) 2022 Osyris contributors (https://github.com/osyris-project/osyris)
from common import arrayequal
from osyris import Array, Datagroup
from copy import copy, deepcopy
import pytest
def test_datagroup_creation():
a = Array(values=[1., 2., 3., 4., 5.], unit='m'... | 4,622 |
https://github.com/julzhk/django-kronos/blob/master/kronos/management/commands/uninstalltasks.py | Github Open Source | Open Source | MIT | 2,022 | django-kronos | julzhk | Python | Code | 26 | 76 | from django.core.management.base import BaseCommand
from kronos import uninstall
class Command(BaseCommand):
help = 'Remove tasks from cron'
def handle(self, *args, **options):
count = uninstall()
print('{} tasks removed'.format(count))
| 11,361 |
https://github.com/yaodaq/YAODAQ/blob/master/tests/Exception.test.cpp | Github Open Source | Open Source | MIT | null | YAODAQ | yaodaq | C++ | Code | 52 | 180 | /**
\copyright Copyright 2022 flagarde
*/
#include "yaodaq/Exception.hpp"
#include "yaodaq/StatusCode.hpp"
#include <doctest/doctest.h>
#include <iostream>
TEST_CASE( "Exception" )
{
yaodaq::Exception exception( yaodaq::StatusCode::LISTEN_ERROR, "My exception" );
try
{
throw exception;
}
catch( const y... | 29,741 |
https://github.com/alexander-trishin/intermedium/blob/master/source/Intermedium/Pipeline/Steps/Internal/PostProcessorContext.cs | Github Open Source | Open Source | MIT | null | intermedium | alexander-trishin | C# | Code | 27 | 71 | namespace Intermedium.Pipeline.Steps.Internal
{
internal sealed class PostProcessorContext<TResult> : IPostProcessorContext<TResult>
{
#pragma warning disable CS8618
public TResult Result { get; set; }
#pragma warning restore CS8618
}
}
| 12,564 |
https://github.com/borassi/othello-sensei/blob/master/app/src/main/java/evaluatedepthone/MultilinearRegressionImproved.java | Github Open Source | Open Source | Apache-2.0 | null | othello-sensei | borassi | Java | Code | 1,408 | 4,284 | // Copyright 2019 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | 7,839 |
https://github.com/tuanhiep225/springboot-mvc-data-mongodb/blob/master/src/main/java/com/springmvc/springmongodbweb/utils/FacebookUtils.java | Github Open Source | Open Source | MIT | null | springboot-mvc-data-mongodb | tuanhiep225 | Java | Code | 79 | 313 | /**
*
*/
package com.springmvc.springmongodbweb.utils;
import java.io.IOException;
import org.jsoup.Connection;
import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.jsoup.nodes.Element;
import org.jsoup.select.Elements;
/**
* @author tuanhiep225
*
*/
public class FacebookUtils {
public static S... | 15,174 |
https://github.com/SightStudio/block-chain-coffee/blob/master/src/api/deliver/deliverService.js | Github Open Source | Open Source | MIT | 2,019 | block-chain-coffee | SightStudio | JavaScript | Code | 145 | 397 | import axios from 'axios'
import { API } from '../../util/constant/constant';
const PATH = API.deliver;
const service = {
/**
* 정기 배송 센터 - 상품 출고 날짜 등록
*
* @author Dong-Min Seol
* @since 2019.09.22
*/
registerGoodsRelease : (data) => {
return axios.post(`${PATH}/createkey4`, ... | 41,570 |
https://github.com/manhlx3006/kyber-tracker/blob/master/app/services/CurrenciesService.js | Github Open Source | Open Source | MIT | 2,018 | kyber-tracker | manhlx3006 | JavaScript | Code | 592 | 2,065 | /* eslint no-multi-spaces: ["error", { exceptions: { "VariableDeclarator": true } }] */
const _ = require('lodash');
const async = require('async');
const util = require('util');
const BigNumber = require('bignumber.js');
const network = require('../../config/network');
const Const = require('../common/Const');
const h... | 8,976 |
https://github.com/Firrow/Chronometre_WPF/blob/master/Chrono/MainWindow.xaml.cs | Github Open Source | Open Source | MIT | null | Chronometre_WPF | Firrow | C# | Code | 219 | 665 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Cryptography.X509Certificates;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.W... | 18,327 |
https://github.com/huangzhaorongit/csv/blob/master/src/main/java/com/github/houbb/csv/api/IWriteContext.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | csv | huangzhaorongit | Java | Code | 94 | 368 | package com.github.houbb.csv.api;
import com.github.houbb.csv.support.writer.ICsvWriter;
import com.github.houbb.heaven.support.sort.ISort;
import java.util.List;
/**
* 写入上下文
* @author binbin.hou
* @since 0.0.1
* @param <T> 泛型
*/
public interface IWriteContext<T> {
/**
* 写入处理类
* @return 实现
*... | 17,673 |
https://github.com/zhakesi/engine/blob/master/cocos/physics/ammo/shapes/ammo-box-shape.ts | Github Open Source | Open Source | Apache-2.0, MIT | 2,021 | engine | zhakesi | TypeScript | Code | 482 | 1,231 | /* eslint-disable new-cap */
/*
Copyright (c) 2020 Xiamen Yaji Software Co., Ltd.
https://www.cocos.com/
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated engine source code (the "Software"), a limited,
worldwide, royalty-free, non-assignable, revocable ... | 13,680 |
https://github.com/xiaotangdou/react-staging-template/blob/master/build/min-webpack/dev.js | Github Open Source | Open Source | MIT | null | react-staging-template | xiaotangdou | JavaScript | Code | 294 | 961 | const webpack = require('webpack')
const WebpackDevServer = require('webpack-dev-server')
const openBrowser = require('./helpers/openBrowser')
const choosePort = require('./helpers/choosePort')
const chalk = require('chalk')
const { send, STARTING, COMPILING, DONE } = require('./helpers/send')
const { createCompiler, p... | 18,950 |
https://github.com/sophiemichaud/Data-Structures/blob/master/a4/hash.c | Github Open Source | Open Source | Apache-2.0 | null | Data-Structures | sophiemichaud | C | Code | 106 | 233 | #include <stdio.h>
#include <stdlib.h>
#include "hash.h"
struct Performance *newPerformance(){
}
struct HashTable *createTable( struct Performance *performance, unsigned int capacity, int (*hash)( void *, int ), int (*compar)(const void *, const void *) ){
}
void addElement( struct Performance *performance, struct... | 15,674 |
https://github.com/madou/armory-react/blob/master/webpack.config.js | Github Open Source | Open Source | BSD-3-Clause-Clear | 2,017 | armory-react | madou | JavaScript | Code | 29 | 100 | const argv = require('yargs')
.boolean('embeds')
.boolean('production').argv;
const production = argv.production;
const embeds = argv.embeds;
const configPath = embeds ? './config/webpack.config.embeds.js' : './config/webpack.config.app.js';
module.exports = require(configPath)[production ? 'production' : 'develo... | 8,177 |
https://github.com/leoliao2008/MLDemo/blob/master/app/src/main/java/com/tgi/mldemo/ndb_package/enums/SortType.java | Github Open Source | Open Source | Apache-2.0 | null | MLDemo | leoliao2008 | Java | Code | 8 | 47 | package com.tgi.mldemo.ndb_package.enums;
public enum SortType {
BY_FOOD_NAME,BY_SEARCH_RELEVANCE
}
| 27,703 |
https://github.com/Xpitfire/reactme.backend-services/blob/master/src/Dork.Models/User.cs | Github Open Source | Open Source | Apache-2.0 | 2,017 | reactme.backend-services | Xpitfire | C# | Code | 113 | 261 | using Dork.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace Dork.Models
{
public class User : EntityBase
{
public string Username { get; set; }
public string Email { get; set; }
public string PasswordHash { get; set; }
... | 50,327 |
https://github.com/matsilv/genetic-muline-bleu/blob/master/src/it/unibo/ai/didattica/mulino/gui/Background.java | Github Open Source | Open Source | MIT | null | genetic-muline-bleu | matsilv | Java | Code | 174 | 617 | package it.unibo.ai.didattica.mulino.gui;
import it.unibo.ai.didattica.mulino.domain.State;
import java.awt.Graphics;
import java.awt.Image;
import java.io.IOException;
import java.io.InputStream;
import java.util.HashMap;
import javax.imageio.ImageIO;
import javax.swing.JFrame;
public class Background extends JFra... | 26,313 |
https://github.com/orarbel/designer-news-ui-kit4/blob/master/DesignerNewsUIKit/APCell4.h | Github Open Source | Open Source | MIT | 2,016 | designer-news-ui-kit4 | orarbel | Objective-C | Code | 86 | 317 | //
// APCell4.h
// DesignerNews
//
// Created by orarbel@gmail.com on 26/11/2016, using AnimaApp.com, under MIT license.
// Copyright © 2016 Company Name. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "ANProtocols.h"
#import "ANLabel.h"
@interface APCell4 : UITableViewCell
@property (nonatomic, weak, n... | 41,289 |
https://github.com/laohubuzaijia/fbthrift/blob/master/thrift/lib/hack/src/ThriftUnionSerializationTrait.php | Github Open Source | Open Source | Apache-2.0 | 2,022 | fbthrift | laohubuzaijia | PHP | Code | 180 | 354 | <?hh
/*
* Copyright (c) Facebook, Inc. and 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 a... | 13,887 |
https://github.com/kevinolsson/comeon-javascript-test-2022/blob/master/src/components/HomeSidebar/home-sidebar.module.scss | Github Open Source | Open Source | MIT | null | comeon-javascript-test-2022 | kevinolsson | SCSS | Code | 56 | 241 | @import '../../variables.scss';
.root {
--min-height: 60vh;
position: relative;
box-sizing: border-box;
padding: var(--padding);
min-height: var(--min-height);
width: 100%;
background: var(--color-grey-500);
background: linear-gradient(142deg, var(--color-grey-500) 0%, var(--color-grey-800) 100%);
@... | 8,406 |
https://github.com/kornicameister/mm-manager/blob/master/src/frontend/src/app/common/movie-cart/movie-cart.directive.js | Github Open Source | Open Source | Apache-2.0 | 2,016 | mm-manager | kornicameister | JavaScript | Code | 99 | 313 | import {BoundDirective} from '../../../core/directive';
import MMError from '../../../core/error';
const TABLE_KEY = Symbol('mmMovieCart.table');
const TEMPLATES = {
TABLE_KEY: require('./movie-cart.table.tpl.html')
};
class UnsupportedDisplayAs extends MMError {
constructor(key = '') {
super(`${key} is not s... | 6,744 |
https://github.com/sergi/RxJS-DOM/blob/master/tests/tests.websockets.js | Github Open Source | Open Source | Apache-2.0 | null | RxJS-DOM | sergi | JavaScript | Code | 455 | 1,413 | var originalWebSocket;
module('Websocket', {
beforeEach: function(){
// mock WebSocket
originalWebSocket = window.WebSocket;
},
afterEach: function(){
window.WebSocket = originalWebSocket;
}
});
test('Socket does not connect until subscribed to', function(){
window.WebSocket = MockSocket;
var socket = R... | 14,681 |
https://github.com/ashleanichols/kord-app/blob/master/controllers/api-controller.js | Github Open Source | Open Source | MIT | 2,021 | kord-app | ashleanichols | JavaScript | Code | 86 | 318 | const request = require("request");
const KeyService = require("../services/keys");
function getSoundcloudSearchResults(req, res) {
const {
query: { url }
} = req;
return request
.get(`${url}&client_id=${KeyService.soundcloudClientId}`)
.on("response", async response => {
const { statusCode } ... | 19,835 |
https://github.com/eikel/harbour-quartermaster/blob/master/src/device/devicesensormodel.cpp | Github Open Source | Open Source | MIT | 2,021 | harbour-quartermaster | eikel | C++ | Code | 170 | 713 | #include "devicesensormodel.h"
DeviceSensorModel::DeviceSensorModel(QObject *parent) :
QAbstractListModel(parent)
{
}
DeviceSensorModel::~DeviceSensorModel()
{
qDeleteAll(m_sensors.begin(), m_sensors.end());
}
QList<DeviceSensor *> DeviceSensorModel::sensors() const
{
return m_sensors;
}
void DeviceSen... | 45,392 |
https://github.com/aps337/unum-sdk/blob/master/src/uclibc/uClibc-0.9.28.3/test/unistd/clone.c | Github Open Source | Open Source | Apache-2.0 | 2,022 | unum-sdk | aps337 | C | Code | 436 | 1,146 | /* vi: set sw=4 ts=4: */
/*
* clone test for uClibc
*
* Copyright (C) 2000 by Lineo, inc. and Erik Andersen
* Copyright (C) 2000,2001 by Erik Andersen <andersen@uclibc.org>
* Written by Erik Andersen <andersen@uclibc.org>
*
* This program is free software; you can redistribute it and/or modify it
* under the te... | 4,840 |
https://github.com/BNakum/Downloader-for-Apple-Developers/blob/master/Downloader/Common/DownloadProcessManager/DownloadProcessManager.swift | Github Open Source | Open Source | MIT | 2,020 | Downloader-for-Apple-Developers | BNakum | Swift | Code | 282 | 957 | //
// DownloadProcessManager.swift
// DeveloperToolsDownloader
//
// Created by Vineet Choudhary on 18/02/20.
// Copyright © 2020 Developer Insider. All rights reserved.
//
import Foundation
class DownloadProcessManager {
typealias OutputStream = (String)-> Void
//MARK: - Properties
private(set) ... | 20,321 |
https://github.com/tonyghiani/mountain-ui/blob/master/packages/icons/src/icons/Ship.tsx | Github Open Source | Open Source | MIT | 2,022 | mountain-ui | tonyghiani | TypeScript | Code | 198 | 648 | import * as React from 'react';
import { Icon } from '@mountain-ui/react-components';
import { IconPresetProps } from '../icons.types';
function SvgShip(props: IconPresetProps, svgRef?: React.Ref<SVGSVGElement>) {
return (
<Icon {...props}>
<svg
xmlns='http://www.w3.org/2000/svg'
viewBox='... | 15,964 |
https://github.com/1040128600/OfficeAssitant/blob/master/src/pages/routers/router.js | Github Open Source | Open Source | MIT | 2,021 | OfficeAssitant | 1040128600 | JavaScript | Code | 492 | 1,661 | import 'babel-polyfill';
/**
* Vue
*/
import Vue from 'vue';
import Router from 'vue-router';
import Vuex from 'vuex';
import { Vc, DebounceClick } from 'wya-vc';
import { sync } from 'vuex-router-sync';
import { locale, Message, Modal, Button, Form } from 'iview';
import lang from 'iview/dist/locale/zh-CN';
// con... | 43,280 |
https://github.com/gbondarchuk9/javers/blob/master/javers-core/src/main/java/org/javers/core/snapshot/SnapshotFactory.java | Github Open Source | Open Source | Apache-2.0 | 2,018 | javers | gbondarchuk9 | Java | Code | 247 | 1,127 | package org.javers.core.snapshot;
import org.javers.common.collections.Defaults;
import org.javers.common.collections.EnumerableFunction;
import org.javers.common.exception.JaversException;
import org.javers.core.commit.CommitMetadata;
import org.javers.core.metamodel.object.*;
import org.javers.core.metamodel.type.*;... | 10,181 |
https://github.com/jingcao80/Elastos/blob/master/Sources/Elastos/Frameworks/Droid/Base/Core/src/elastos/droid/mtp/CMtpServer.cpp | Github Open Source | Open Source | Apache-2.0 | 2,021 | Elastos | jingcao80 | C++ | Code | 568 | 1,943 | //=========================================================================
// Copyright (C) 2012 The Elastos 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
//
// ... | 31,705 |
https://github.com/rizqyfaishal/umrohzone/blob/master/resources/views/dashboard-agent.blade.php | Github Open Source | Open Source | MIT | null | umrohzone | rizqyfaishal | PHP | Code | 1 | 17 | @extends('dashboard._dashboard-base-agent')
| 41,096 |
https://github.com/JoJoKTT/1040803asiajava/blob/master/20150805/src/Int.java | Github Open Source | Open Source | MIT | null | 1040803asiajava | JoJoKTT | Java | Code | 28 | 77 | import java.util.Scanner;
public class Int {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner scn = new Scanner(System.in);
int a = scn.nextInt();
}
}
| 49,471 |
https://github.com/sungsoosmess/janelia-unity-toolkit/blob/master/org.janelia.logging/Runtime/Logger.cs | Github Open Source | Open Source | BSD-3-Clause | 2,021 | janelia-unity-toolkit | sungsoosmess | C# | Code | 2,128 | 5,564 | // Manages a log of application activity. When the application starts, a
// new log is created, and code in the application can add JSON objects
// to the log at any point. Code can also force the log to be written
// to a file, or that writing happens automatically when the application
// quits. The log is stored ... | 12,060 |
https://github.com/lborrel/Offline/blob/master/CalorimeterGeom/src/CaloGeomUtil.cc | Github Open Source | Open Source | Apache-2.0 | 2,021 | Offline | lborrel | C++ | Code | 290 | 1,386 | //
// Geometry and identifier info about the Calorimeter.
//
// Original author B. Echenard
//
#include "CalorimeterGeom/inc/CaloGeomUtil.hh"
#include "CalorimeterGeom/inc/Disk.hh"
#include "CalorimeterGeom/inc/Crystal.hh"
#include "CLHEP/Vector/Rotation.h"
#include "CLHEP/Vector/ThreeVector.h"
namespace mu2e {
... | 49,542 |
https://github.com/natedooley/DJ/blob/master/logic/connection/socket.js | Github Open Source | Open Source | MIT | 2,020 | DJ | natedooley | JavaScript | Code | 114 | 362 | /* socket.js
* Manages socket.io communication.
*/
var config = require('../../config');
var socketio = require('socket.io');
var winston = require('winston');
var Q = require('q');
var user_model = require('../../models/user');
var Connection = require('../connection/connection');
var connections = require('../conn... | 32,409 |
https://github.com/gallayl/f-odata/blob/master/test/decoratordescriptorstore.test.ts | Github Open Source | Open Source | MIT | null | f-odata | gallayl | TypeScript | Code | 196 | 882 | import * as chai from 'chai';
import * as Express from 'express';
import { suite, test } from 'mocha-typescript';
import Endpoint from '../src/endpoint';
import { Builder } from '../src/EndpointModel';
import chaiHttp = require('chai-http');
import { ForeignKey, ForeignKeyDescriptorEntry, ODataPropertyDesrciptorEntry,
... | 30,624 |
https://github.com/kit-transue/software-emancipation-discover/blob/master/newntui/activex/CMIntegrator/include/Resource.h | Github Open Source | Open Source | BSD-2-Clause | 2,015 | software-emancipation-discover | kit-transue | C | Code | 40 | 182 | //{{NO_DEPENDENCIES}}
// Microsoft Visual C++ generated include file.
// Used by CMIntegrator.rc
//
#define IDS_CMINTEGRATOR 1
#define IDS_CMINTEGRATOR_PPG 2
#define IDS_CMINTEGRATOR_PPG_CAPTION 200
#define IDD_PROPPAGE_CMINTEGRATOR 200
#define IDB_CMINTEGRATOR 1
#define _APS_NEXT_RES... | 6,677 |
https://github.com/caodg/xiuos/blob/master/Ubiquitous/XiUOS/framework/security/Makefile | Github Open Source | Open Source | LicenseRef-scancode-mulanpsl-2.0-en | 2,021 | xiuos | caodg | Makefile | Code | 9 | 40 | ifeq ($(CONFIG_CRYPTO), y)
SRC_DIR := crypto
endif
include $(KERNEL_ROOT)/compiler.mk
| 8,956 |
https://github.com/efollender/demAndy/blob/master/public/modules/reservations/config/resevations.client.config.js | Github Open Source | Open Source | MIT | null | demAndy | efollender | JavaScript | Code | 33 | 142 | 'use strict';
// Configuring the reservations module
angular.module('reservations').run(['Menus',
function(Menus) {
// Set top bar menu items
Menus.addMenuItem('topbar', 'Reservations', 'reservations', 'dropdown', '/reservations(/create)?');
Menus.addSubMenuItem('topbar', 'reservations', 'List Reservations', 'r... | 20,411 |
https://github.com/percussion/percussioncms/blob/master/modules/perc-toolkit/src/main/java/com/percussion/pso/imageedit/services/ImageSizeDefinitionManager.java | Github Open Source | Open Source | LicenseRef-scancode-dco-1.1, Apache-2.0, OFL-1.1, LGPL-2.0-or-later | 2,023 | percussioncms | percussion | Java | Code | 275 | 529 | /*
* Copyright 1999-2023 Percussion Software, 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 applicabl... | 14,810 |
https://github.com/ninadhatkar/jive-admin-utilities/blob/master/resources/change-doc-author.ftl | Github Open Source | Open Source | BSD-3-Clause, BSD-2-Clause | 2,011 | jive-admin-utilities | ninadhatkar | Fluent | Code | 380 | 1,133 | <!--This module is licenced under the BSD license.
Copyright (C) 2011 by raw engineering <ninad.hatkar (at) raweng (dot) com, mayank (at) raweng (dot) com>.
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are m... | 7,394 |
https://github.com/ulfaza/sanadh/blob/master/app/Http/Controllers/GuruController.php | Github Open Source | Open Source | MIT | null | sanadh | ulfaza | PHP | Code | 208 | 1,082 | <?php
namespace App\Http\Controllers;
use Auth;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\DB;
use App\User;
use App\Kelas;
use App\Siswa;
use App\Kh;
use App\ThAjar;
use App\UjiKh;
use App\RekapKh;
class GuruController extends Controller
{
public function index(){
return view('guru/home');
... | 42,093 |
https://github.com/huawenyu/Boost-Cookbook/blob/master/asio-ex2/examples/ma_qt_echo_server/src/custommetatypes.cpp | Github Open Source | Open Source | BSL-1.0 | null | Boost-Cookbook | huawenyu | C++ | Code | 100 | 331 | //
// Copyright (c) 2010-2015 Marat Abrarov (abrarov@gmail.com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
#include <boost/throw_exception.hpp>
#include <boost/system/error_code.hpp>
#include <QMetaType>... | 23,015 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.