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/zingson/eleme-openapi-java-sdk/blob/master/src/main/java/eleme/openapi/sdk/api/enumeration/product/OItemWeekEnum.java | Github Open Source | Open Source | MIT | 2,018 | eleme-openapi-java-sdk | zingson | Java | Code | 52 | 218 | package eleme.openapi.sdk.api.enumeration.product;
public enum OItemWeekEnum {
/**
* 周一
*/
MONDAY("MONDAY"),
/**
* 周二
*/
TUESDAY("TUESDAY"),
/**
* 周三
*/
WEDNESDAY("WEDNESDAY"),
/**
* 周四
*/
THURSDAY("THURSDAY"),
/**
... | 36,373 |
https://github.com/hongjic/sgw/blob/master/sgw-core/src/main/java/sgw/core/service_channel/thrift/ThriftEncoder.java | Github Open Source | Open Source | MIT | 2,018 | sgw | hongjic | Java | Code | 230 | 856 | package sgw.core.service_channel.thrift;
import io.netty.buffer.*;
import io.netty.channel.ChannelHandlerContext;
import io.netty.handler.codec.MessageToByteEncoder;
import org.apache.thrift.TBase;
import org.apache.thrift.TException;
import org.apache.thrift.protocol.*;
import org.apache.thrift.transport.TFramedTrans... | 5,859 |
https://github.com/chaeyeunpark/Yavque/blob/master/include/yavque/Utilities/pauli_operators.hpp | Github Open Source | Open Source | Apache-2.0 | null | Yavque | chaeyeunpark | C++ | Code | 27 | 142 | #pragma once
#include <Eigen/Dense>
#include <Eigen/Sparse>
#include "typedefs.hpp"
namespace yavque
{
Eigen::SparseMatrix<double> pauli_x();
Eigen::SparseMatrix<cx_double> pauli_y();
Eigen::SparseMatrix<double> pauli_z();
Eigen::SparseMatrix<double> pauli_xx();
Eigen::SparseMatrix<double> pauli_yy();
Eigen::SparseMa... | 15,661 |
https://github.com/mP1/j2cl-locale/blob/master/src/test/java/walkingkooka/j2cl/locale/TimeZoneCalendarTest.java | Github Open Source | Open Source | Apache-2.0 | null | j2cl-locale | mP1 | Java | Code | 290 | 914 | /*
* Copyright 2019 Miroslav Pokorny (github.com/mP1)
*
* 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 applic... | 18,717 |
https://github.com/zhangkn/iOS14Header/blob/master/usr/sbin/WirelessRadioManagerd/WRM_TerminusContext.h | Github Open Source | Open Source | MIT | 2,020 | iOS14Header | zhangkn | C | Code | 379 | 1,520 | //
// Generated by classdumpios 1.0.1 (64 bit) (iOS port by DreamDevLost)(Debug version compiled Sep 26 2020 13:48:20).
//
// Copyright (C) 1997-2019 Steve Nygard.
//
#import "WRM_Mobility_Context.h"
@interface WRM_TerminusContext : WRM_Mobility_Context
{
_Bool _mTerminusIsRegistered; // 136 = 0x88
_Bool... | 25,449 |
https://github.com/iAmMichelleDzvokora/GADS-practice-project/blob/master/src/app/app.routing.ts | Github Open Source | Open Source | MIT | null | GADS-practice-project | iAmMichelleDzvokora | TypeScript | Code | 109 | 311 | import { Routes, RouterModule } from '@angular/router';
import { ModuleWithProviders } from '@angular/core';
import { ResolveLocationService } from './shared/services/resolve-location.service';
import { CityCardResolver } from './city-card/city-card-resolver.service';
import { WeatherComponent } from './weather/weathe... | 35,670 |
https://github.com/ksenia-konyushkova/LAL/blob/master/Classes/dataset.py | Github Open Source | Open Source | Apache-2.0 | 2,022 | LAL | ksenia-konyushkova | Python | Code | 597 | 2,194 | import numpy as np
import scipy
import scipy.io as sio
from sklearn import preprocessing
from sklearn.model_selection import train_test_split
from sklearn.preprocessing import LabelEncoder
from sklearn.preprocessing import StandardScaler
from sklearn.preprocessing import Imputer
class Dataset:
def __init__... | 17,195 |
https://github.com/chenjianping99/onlineAffairs/blob/master/samples/src/com/guangzhou/gov/net/view/DialogManager.java | Github Open Source | Open Source | Apache-2.0 | null | onlineAffairs | chenjianping99 | Java | Code | 44 | 158 | package com.guangzhou.gov.net.view;
import android.app.Dialog;
import android.content.Context;
/**
* 方便添加dialog 不喜欢可以干掉
*
* @ClassName: DialogManager
* @author chenjianping
* @date 2014-11-9
*
*/
public class DialogManager {
public static Dialog getProgressMsgDialog(Context context, String msg)
{
... | 28,745 |
https://github.com/yashdhume/Photoshop-Ultra-Light-2/blob/master/src/main/java/VIPLogin/Encrpt.java | Github Open Source | Open Source | MIT | 2,022 | Photoshop-Ultra-Light-2 | yashdhume | Java | Code | 57 | 141 | package VIPLogin;
//XOR encryption to so no password is stored passed through sockets
public class Encrpt {
private char[] key = "a_5$]-xU44qmLut;".toCharArray();
public Encrpt(){}
public String encrypt(byte[] bufferIn, int total) {
StringBuilder cipher = new StringBuilder();
for (int i = 0;... | 12,468 |
https://github.com/cryptowilliam/goutil/blob/master/net/gmtu/check_linux.go | Github Open Source | Open Source | MIT | 2,021 | goutil | cryptowilliam | Go | Code | 117 | 361 | package gmtu
import (
"net"
"os/exec"
"regexp"
"strconv"
"strings"
)
func check(ip net.IP, size int) (bool, int, error) {
for i := 0; i < 7; i++ {
outByte, _ := exec.Command("ping", "-c", strconv.Itoa(NumberOfMessages), "-s", strconv.Itoa(size), "-M", "do", ip.String()).Output()
outString := string(outByte)... | 27,371 |
https://github.com/Suntx1994/cs203-assignment-3/blob/master/build/ALPHA/params/Tsunami.hh | Github Open Source | Open Source | BSD-3-Clause | null | cs203-assignment-3 | Suntx1994 | C++ | Code | 28 | 104 | #ifndef __PARAMS__Tsunami__
#define __PARAMS__Tsunami__
class Tsunami;
#include <cstddef>
#include "params/System.hh"
#include "params/Platform.hh"
struct TsunamiParams
: public PlatformParams
{
Tsunami * create();
System * system;
};
#endif // __PARAMS__Tsunami__
| 40,517 |
https://github.com/mrnettek/VBScript/blob/master/VBScript2/List Virtual Server Security Information.vbs | Github Open Source | Open Source | MIT | 2,020 | VBScript | mrnettek | VBScript | Code | 44 | 117 | ' Description: Lists security information for Virtual Server.
On Error Resume Next
Set objVS = CreateObject("VirtualServer.Application")
Set objSecurity = objVS.Security
Wscript.Echo "Group name: " & objSecurity.GroupName
Wscript.Echo "Group SID: " & objSecurity.GroupSID
Wscript.Echo "Owner name: " & objSecurity.Ow... | 10,927 |
https://github.com/LucasLazogue/ContadorUNO/blob/master/app/src/main/java/com/contadoruno/UnoScoreHelper/Estacion/Adapters/AdaptadorJugadoresAgregados.java | Github Open Source | Open Source | MIT | 2,023 | ContadorUNO | LucasLazogue | Java | Code | 206 | 842 | package com.contadoruno.UnoScoreHelper.Estacion.Adapters;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.recyclerview.widget.RecyclerView;
import com.cont... | 31,894 |
https://github.com/rabby420/git-github/blob/master/app/src/main/java/com/codegama/Taskscheduler/activity/TaskAdapter.java | Github Open Source | Open Source | MIT | null | git-github | rabby420 | Java | Code | 523 | 2,617 | package com.codegama.Taskscheduler.activity;
import static android.content.Context.MODE_PRIVATE;
import android.app.AlertDialog;
import android.app.Dialog;
import android.content.Context;
import android.content.SharedPreferences;
import android.graphics.drawable.ColorDrawable;
import android.os.AsyncTask;
import andr... | 30,055 |
https://github.com/Stanek-K/EvilWithin/blob/master/src/main/java/expansioncontent/actions/CorruptAction.java | Github Open Source | Open Source | MIT | 2,022 | EvilWithin | Stanek-K | Java | Code | 214 | 977 | package expansioncontent.actions;
import com.megacrit.cardcrawl.actions.AbstractGameAction;
import com.megacrit.cardcrawl.cards.AbstractCard;
import com.megacrit.cardcrawl.characters.AbstractPlayer;
import com.megacrit.cardcrawl.core.CardCrawlGame;
import com.megacrit.cardcrawl.core.Settings;
import com.megacrit.card... | 28,639 |
https://github.com/petersjl/280-WebDev/blob/master/FollowAlongs/Node/SimpleServers/public/scripts/main.js | Github Open Source | Open Source | MIT | 2,022 | 280-WebDev | petersjl | JavaScript | Code | 62 | 188 | var counter = 0;
function main(){
console.log("Ready");
document.querySelector("#decButton").onclick = (event) => {
console.log("Decrement button pressed")
counter = counter - 1;
updateView();
};
document.querySelector("#incButton").onclick = (event) => {
console.log("... | 7,856 |
https://github.com/MediaNetwork/media-on-demand-webapp/blob/master/client/src/app/state/ducks/project/reducers.js | Github Open Source | Open Source | MIT | null | media-on-demand-webapp | MediaNetwork | JavaScript | Code | 311 | 892 | import arrayToMap from 'state/helpers/array-to-map'
import createReducer from 'state/helpers/create-reducer'
import * as types from './types'
const collaboratorsToMap = (arr, indexKey) => arr.reduce(
(dict, element) => ({
...dict,
[ element.account[ indexKey ] ]: element
}),
{}
)
export default createR... | 49,562 |
https://github.com/elliotleee/Apollo-lab/blob/master/src/ApolloRescue/module/universal/ApolloWorld.java | Github Open Source | Open Source | BSD-3-Clause | null | Apollo-lab | elliotleee | Java | Code | 5,260 | 19,213 | package ApolloRescue.module.universal;
import java.awt.*;
import java.awt.geom.Rectangle2D;
import java.util.*;
import java.util.List;
import ApolloRescue.ApolloConstants;
import ApolloRescue.module.algorithm.convexhull.BorderEntities;
import ApolloRescue.module.complex.component.*;
import ApolloRescue.module.comple... | 43,090 |
https://github.com/conema/chess-api/blob/master/node_modules/chess-ai-kong/src/search/alpha-beta-data.js | Github Open Source | Open Source | MIT | 2,019 | chess-api | conema | JavaScript | Code | 50 | 148 | 'use-strict';
function AlphaBetaData(path, startTime) {
if (path !== undefined) {
this.path = path;
}
if(startTime !== undefined) {
this.startTime = startTime;
} else {
this.startTime = new Date().getTime();
}
}
AlphaBetaData.prototype.next = function (pgn) {
return n... | 7,479 |
https://github.com/XiaoWeiChung/PYTBaseViewController/blob/master/Example/Pods/Target Support Files/Pods-PYTBaseViewController_Tests/Pods-PYTBaseViewController_Tests-dummy.m | Github Open Source | Open Source | MIT | 2,020 | PYTBaseViewController | XiaoWeiChung | Objective-C | Code | 10 | 58 | #import <Foundation/Foundation.h>
@interface PodsDummy_Pods_PYTBaseViewController_Tests : NSObject
@end
@implementation PodsDummy_Pods_PYTBaseViewController_Tests
@end
| 44,295 |
https://github.com/onyxim/explicitdev/blob/master/src/explicitdev/storage/factory/holiday.py | Github Open Source | Open Source | Apache-2.0 | 2,020 | explicitdev | onyxim | Python | Code | 158 | 557 | from datetime import date
from sqlalchemy.orm import Session
from explicitdev.storage.factory.abstract import FactoryAbstract
from explicitdev.storage.model import HolidayAttrs
from explicitdev.storage.model.holiday import HolidayType
HA = HolidayAttrs
class FactoryHoliday(FactoryAbstract):
YEAR_FIELD_NAME = '... | 5,002 |
https://github.com/wsdjeg/vim-fetch/blob/master/test/vimrc | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, MIT, Vim | 2,023 | vim-fetch | wsdjeg | Vim Script | Code | 14 | 38 | filetype off
set rtp+=build/vader
set rtp+=.
set rtp+=after
filetype plugin indent on
syntax enable
| 44,851 |
https://github.com/anton-bot/mock-bank-ui/blob/master/src/types/AccountTransaction.ts | Github Open Source | Open Source | Unlicense | null | mock-bank-ui | anton-bot | TypeScript | Code | 28 | 68 | import { AccountTransactionType } from './AccountTransactionType';
import * as Amount from 'currency.js';
export type AccountTransaction = {
transactionId: string;
type: AccountTransactionType;
datetime: string;
description: string;
amount: number;
};
| 9,335 |
https://github.com/MJurczak-PMarchut/uec2_DeathRace/blob/master/src/sources_1/new/Title_Screen.v | Github Open Source | Open Source | MIT | 2,018 | uec2_DeathRace | MJurczak-PMarchut | Verilog | Code | 128 | 575 | `timescale 1ns / 1ps
//////////////////////////////////////////////////////////////////////////////////
// Company:
// Engineer:
//
// Create Date: 29.07.2018 21:07:56
// Design Name:
// Module Name: Title_Screen
// Project Name:
// Target Devices:
// Tool Versions:
// Description:
//
// Dependencies:
//
// ... | 24,890 |
https://github.com/Jorlejeu/podcast-transcriber/blob/master/podcast_transcriber/utilities.py | Github Open Source | Open Source | MIT | 2,022 | podcast-transcriber | Jorlejeu | Python | Code | 272 | 832 | import os
import shutil
import tempfile
import urllib2
TEMP_DIR = os.path.join(os.path.dirname(os.path.realpath(__file__)), 'tmp')
OUTPUT_DIR = os.path.join(os.getcwd(), 'output')
def check_env_vars():
"""
Checks if all necessary ENV variables are set. If not, prints
an error message.
"""
if 'G... | 48,712 |
https://github.com/uppy19d0/gatsbyportafolio/blob/master/src/components/codigofacilito.js | Github Open Source | Open Source | RSA-MD | 2,022 | gatsbyportafolio | uppy19d0 | JavaScript | Code | 75 | 300 | import React from "react";
import Posts from "../components/posts";
import {graphql, useStaticQuery} from "gatsby";
import CursoFinish from "../elements/cursosfinish";
import Curso from "../elements/cursos";
export default ()=>{
const data = useStaticQuery(graphql`
{
codigoFacilitoJson {
id
... | 11,095 |
https://github.com/forgotter/Snippets/blob/master/test/kurskal.cpp | Github Open Source | Open Source | MIT | 2,022 | Snippets | forgotter | C++ | Code | 145 | 496 | #include <bits/stdc++.h>
using namespace std;
vector<int> root, root_size;
void init_root(int n)
{
root_size.assign(n + 1, 1);
root.resize(n + 1);
for (int i = 1; i <= n; i++)
root[i] = i;
}
int get_root(int x)
{
return (root[x] == x) ? x : root[x] = get_root(root[x]);
}
void combine_root(in... | 15,294 |
https://github.com/joohncruz/venice/blob/master/packages/react-ds/src/components/SplitButton/SplitButton.tsx | Github Open Source | Open Source | Apache-2.0 | 2,020 | venice | joohncruz | TSX | Code | 127 | 435 | import * as React from 'react'
import classNames from 'classnames/bind'
import { ISplitButton } from '@venice/core/models'
import styles from '@venice/styles/components/SplitButton.module.scss'
import Button from '../Button/Button'
interface ISplitButtonProps extends ISplitButton {
/** React Element */
children... | 27,776 |
https://github.com/geoffreywatson/proj/blob/master/build.sbt | Github Open Source | Open Source | Apache-2.0 | 2,017 | proj | geoffreywatson | Scala | Code | 55 | 253 | name := """proj"""
version := "2.6.x"
lazy val root = (project in file(".")).enablePlugins(PlayScala)
scalaVersion := "2.12.2"
libraryDependencies ++= Seq(
cache,
ws,
guice,
"mysql" % "mysql-connector-java" % "5.1.34",
"com.typesafe.play" %% "play-slick" % "3.0.0-M5",
"com.typesafe.play" %% "play-slick-... | 20,097 |
https://github.com/tomi44g/freETarget/blob/master/Software/C#/freETarget/Shot.cs | Github Open Source | Open Source | MIT | 2,020 | freETarget | tomi44g | C# | Code | 263 | 767 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace freETarget {
class Shot {
public int index;
public int count;
public decimal x;
public decimal y;
public decimal radius;
public decimal angl... | 32,062 |
https://github.com/DecentraCorp/dc_contracts/blob/master/contracts/DScore.sol | Github Open Source | Open Source | MIT | null | dc_contracts | DecentraCorp | Solidity | Code | 1,094 | 2,560 | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "./interfaces/IDecentraCore.sol";
import "./interfaces/IDecentraStock.sol";
import "./in... | 49,203 |
https://github.com/CodeTanzania/emis-web/blob/master/src/GeographicalFeatures/components/EvacuationCenters/List/index.js | Github Open Source | Open Source | MIT | 2,020 | emis-web | CodeTanzania | JavaScript | Code | 133 | 407 | import { List } from 'antd';
import PropTypes from 'prop-types';
import React from 'react';
import EvacuationCenterListHeader from '../ListHeader';
import EvacuationCenterListItem from '../ListItem';
/**
* @function
* @name EvacuationCenterList
* @description Render Evacuation Center list
*
* @param {object} prop... | 15,918 |
https://github.com/fatman2021/E6510CPU/blob/master/examples/manual/defines/fbcygwin.bas | Github Open Source | Open Source | BSD-2-Clause | null | E6510CPU | fatman2021 | Visual Basic | Code | 43 | 128 | '' examples/manual/defines/fbcygwin.bas
''
'' NOTICE: This file is part of the FreeBASIC Compiler package and can't
'' be included in other distributions without authorization.
''
'' See Also: http://www.freebasic.net/wiki/wikka.php?wakka=KeyPgDdfbcygwin
'' --------
#ifdef __FB_CYGWIN__
'...instructions only... | 51,021 |
https://github.com/gbartoczevicz/next-vaccination/blob/master/packages/server/http-server/prisma/migrations/20210610012600_create_cancellations_table/migration.sql | Github Open Source | Open Source | MIT | 2,021 | next-vaccination | gbartoczevicz | SQL | Code | 117 | 361 | /*
Warnings:
- A unique constraint covering the columns `[appointment_id]` on the table `conclusions` will be added. If there are existing duplicate values, this will fail.
*/
-- CreateTable
CREATE TABLE "cancellations" (
"id" VARCHAR(50) NOT NULL,
"reason" TEXT NOT NULL,
"canceled_at" TIMESTAMP(3) NO... | 17,152 |
https://github.com/microsoft/onnxruntime/blob/master/onnxruntime/core/mlas/lib/amd64/FgemmKernelCommon.inc | Github Open Source | Open Source | MIT | 2,023 | onnxruntime | microsoft | Assembly | Code | 812 | 2,533 | ;++
;
; Copyright (c) Microsoft Corporation. All rights reserved.
;
; Licensed under the MIT License.
;
; Module Name:
;
; FgemmKernelCommon.inc
;
; Abstract:
;
; This module contains common kernel macros and structures for the floating
; point matrix/matrix multiply operation (SGEMM and DGEMM).
;
;--
;
; Stack ... | 19,269 |
https://github.com/huzaifasabir/alBurhanMetal/blob/master/application/controllers/ExpenseController.php | Github Open Source | Open Source | MIT | null | alBurhanMetal | huzaifasabir | PHP | Code | 275 | 1,093 | <?php
class ExpenseController extends CI_Controller {
public function __construct() {
parent::__construct();
$this->load->model('expense');
$this->load->library('session');
}
/*
function for manage Expense.
return all Expenses.
created by your name
created at 31-08... | 17,941 |
https://github.com/joseluis8906/chaletapp/blob/master/proxy/src/app.js | Github Open Source | Open Source | MIT | null | chaletapp | joseluis8906 | JavaScript | Code | 13 | 75 | import redbird from 'redbird';
var proxy = redbird({port: 3000});
proxy.register('localhost:3000/', 'http://127.0.0.1:3003/');
proxy.register('localhost:3000/backend', 'http://127.0.0.1:3004/');
| 12,005 |
https://github.com/IBM-Security/ibm-application-gateway-resources/blob/master/python/packages/ibm_application_gateway/config/version.py | Github Open Source | Open Source | Apache-2.0 | null | ibm-application-gateway-resources | IBM-Security | Python | Code | 298 | 890 | # coding: utf-8
"""
IBM Application Gateway Configuration Specification (OpenAPI)
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
The version of the OpenAPI document: 21.12
Generated by: https://openapi-generator.tech
"""
impo... | 31,687 |
https://github.com/NSOiO/MLN/blob/master/MLN-iOS/MLN/Classes/MUICore/Protocol/MLNUIErrorHandlerProtocol.h | Github Open Source | Open Source | MIT | 2,020 | MLN | NSOiO | Objective-C | Code | 76 | 320 | //
// MLNUIErrorHandlerProtocol.h
// MLNUICore
//
// Created by MoMo on 2019/8/1.
//
#ifndef MLNUIErrorHandlerProtocol_h
#define MLNUIErrorHandlerProtocol_h
@class MLNUILuaCore;
/**
错误处理协议
*/
@protocol MLNUIErrorHandlerProtocol <NSObject>
/**
是否处理Assert
@param luaCore 当前Lua内核
@return YES / NO
*/
- (BOOL)c... | 42,406 |
https://github.com/davenewcomb/f4d-vvv/blob/master/www/wp_baycare/public_html/wp-content/plugins/popover/css/tpl/cabriolet/style.php | Github Open Source | Open Source | MIT | null | f4d-vvv | davenewcomb | PHP | Code | 10 | 29 | <?php
$info->name = __( 'Cabriolet', 'popover' );
$info->pro = true; | 30,463 |
https://github.com/achristensen6/tvOS130Headers/blob/master/System/Library/PrivateFrameworks/SlideshowKit.framework/PlugIns/OpusMagazineProducer.opplugin/OKAutoLayoutLiveFeedContext.h | Github Open Source | Open Source | MIT | 2,019 | tvOS130Headers | achristensen6 | Objective-C | Code | 134 | 435 | /*
* This header is generated by classdump-dyld 1.0
* on Tuesday, November 5, 2019 at 2:45:02 AM Mountain Standard Time
* Operating System: Version 13.0 (Build 17J586)
* Image Source: /System/Library/PrivateFrameworks/SlideshowKit.framework/PlugIns/OpusMagazineProducer.opplugin/OpusMagazineProducer
* classdump-dyld is ... | 4,662 |
https://github.com/yuripourre-forks/GeoRegression/blob/master/main/test/georegression/geometry/polygon/TestCyclicalLinkedList.java | Github Open Source | Open Source | Apache-2.0 | null | GeoRegression | yuripourre-forks | Java | Code | 270 | 962 | /*
* Copyright (C) 2020, Peter Abeles. All Rights Reserved.
*
* This file is part of Geometric Regression Library (GeoRegression).
*
* 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
*
*... | 28,980 |
https://github.com/dhis2/d2-ui-analytics/blob/master/src/components/PeriodDimension/__tests__/PeriodSelector.spec.js | Github Open Source | Open Source | BSD-3-Clause | 2,021 | d2-ui-analytics | dhis2 | JavaScript | Code | 75 | 198 | import { shallow } from 'enzyme'
import React from 'react'
import PeriodTransfer from '../PeriodTransfer.js'
describe('The Period Selector component', () => {
let props
let shallowPeriodTransfer
const getWrapper = () => {
if (!shallowPeriodTransfer) {
shallowPeriodTransfer = shallow(<P... | 43,292 |
https://github.com/iliyaST/TelerikAcademy/blob/master/OOP/3-Extension-Methods-Delegates-Lambda-LINQ/03-05.StudentsInArray/ArrayOfStudents.cs | Github Open Source | Open Source | MIT | 2,017 | TelerikAcademy | iliyaST | C# | Code | 189 | 456 | using System;
using System.Linq;
namespace StudentsInArray
{
class ArrayOfStudents
{
static void Main()
{
//Array of students
var students = new[]
{
new { FirstName = "Gandalf", LastName = "The Grey", age = 18},
new { FirstNam... | 7,338 |
https://github.com/kontab/google-cloud-dotnet/blob/master/apis/Google.Cloud.Spanner.Data/Google.Cloud.Spanner.Data/SpannerCommandTextBuilder.cs | Github Open Source | Open Source | Apache-2.0 | null | google-cloud-dotnet | kontab | C# | Code | 1,311 | 3,516 | // Copyright 2017 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applic... | 40,640 |
https://github.com/ggodlewski/labjack_kiplin/blob/master/ljswitchboard-module_manager/lib/switchboard_modules/device_overview/controller-new.js | Github Open Source | Open Source | MIT | 2,021 | labjack_kiplin | ggodlewski | JavaScript | Code | 729 | 2,686 | var LABJACK_OVERVIEW_IMG_SRC = 'https://raw.githubusercontent.com/Samnsparky/ljswitchboard/master/src/static/img/T7-cartoon.png';
var DEVICE_IMAGE_X_OFFSET = 150;
var DEVICE_IMAGE_Y_OFFSET = 10;
var DEVICE_IMG_WIDTH = 225;
var DEVICE_IMG_HEIGHT = 525;
var LINE_X_OFFSET = 100;
var LINE_Y_OFFSET = 6;
var DEVICE_IMAGE_X_O... | 42,593 |
https://github.com/mabuprojects/mbr-publicApp/blob/master/src/app/pages/singin-page/singin.component.js | Github Open Source | Open Source | MIT | null | mbr-publicApp | mabuprojects | JavaScript | Code | 214 | 734 | "use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Refl... | 37,360 |
https://github.com/twitter-zuiwanyuan/http4s/blob/master/project/Http4sBuild.scala | Github Open Source | Open Source | Apache-2.0 | null | http4s | twitter-zuiwanyuan | Scala | Code | 555 | 2,210 | import sbt._
import Keys._
import scala.util.Properties.envOrNone
object Http4sBuild {
def extractApiVersion(version: String) = {
val VersionExtractor = """(\d+)\.(\d+)\..*""".r
version match {
case VersionExtractor(major, minor) => (major.toInt, minor.toInt)
}
}
lazy val sonatypeEnvCredenti... | 44,053 |
https://github.com/ayonadee/prizegenerator/blob/master/projectwo/coreservice/application/models.py | Github Open Source | Open Source | MIT | null | prizegenerator | ayonadee | Python | Code | 26 | 114 | from application import db
class Users(db.Model):
id = db.Column(db.Integer, primary_key=True)
first_name = db.Column(db.String(30), nullable=False)
last_name = db.Column(db.String(30), nullable=False)
account_number = db.Column(db.String(15), nullable=False)
message = db.Column(db.String(300), nul... | 46,664 |
https://github.com/dvsa/olcs-transfer/blob/master/src/Command/Scan/CreateDocument.php | Github Open Source | Open Source | MIT | 2,018 | olcs-transfer | dvsa | PHP | Code | 93 | 348 | <?php
/**
* CreateDocument - used by the olcs-scanning service to add scanned documents
*/
namespace Dvsa\Olcs\Transfer\Command\Scan;
use Dvsa\Olcs\Transfer\Util\Annotation as Transfer;
use Dvsa\Olcs\Transfer\Command\AbstractCommand;
use Dvsa\Olcs\Transfer\Command\LoggerOmitContentInterface;
/**
* @Transfer\Route... | 24,669 |
https://github.com/yffd/easy-parent/blob/master/easy-framework-web/src/main/java/com/yffd/easy/framework/web/mvc/model/RespModel.java | Github Open Source | Open Source | Apache-2.0 | null | easy-parent | yffd | Java | Code | 140 | 448 | package com.yffd.easy.framework.web.mvc.model;
import java.io.Serializable;
import com.yffd.easy.framework.pojo.IPOJO;
/**
*
* @Description 系统响应信息的标准类.
* @Date 2017年8月7日 下午2:18:45 <br/>
* @author zhangST
* @version 1.0
* @since JDK 1.7+
* @see
*/
public class RespModel implements IPOJO, Seriali... | 14,792 |
https://github.com/plobod/react-performance-testing/blob/master/example/src/list/Item.tsx | Github Open Source | Open Source | MIT | 2,021 | react-performance-testing | plobod | TSX | Code | 24 | 63 | import React from 'react';
interface Props {
item: string;
}
export const Item = React.memo(function Item({
item,
}: Props): React.ReactElement {
return <li>{item}</li>;
});
| 42,458 |
https://github.com/vmx/flexi_logger/blob/master/tests/test_reconfigure_methods.rs | Github Open Source | Open Source | Apache-2.0, MIT | 2,021 | flexi_logger | vmx | Rust | Code | 333 | 1,356 | use flexi_logger::{Logger, ReconfigurationHandle};
use log::*;
#[test]
fn test_reconfigure_methods() {
let mut log_handle = Logger::with_str("info")
.log_to_file()
.start()
.unwrap_or_else(|e| panic!("Logger initialization failed with {}", e));
test_parse_new_spec(&mut log_handle);
... | 45,822 |
https://github.com/weaversa/sbsat/blob/master/src/solvers/funcsat/src/funcsat/config.h | Github Open Source | Open Source | BSD-3-Clause | 2,020 | sbsat | weaversa | C | Code | 435 | 890 | /* src/funcsat/config.h. Generated from config.h.in by configure. */
/* src/funcsat/config.h.in. Generated from configure.ac by autoheader. */
/* Define to 1 to compile in level-based logging. */
/* #undef FUNCSAT_LOG */
/* Define to 1 if you have the <dlfcn.h> header file. */
#define HAVE_DLFCN_H 1
/* Define to... | 35,719 |
https://github.com/patil215/v8/blob/master/fuzzer_output/interesting/sample_1554095911699.js | Github Open Source | Open Source | BSD-3-Clause | null | v8 | patil215 | JavaScript | Code | 27 | 70 | function main() {
Function[10] = Function;
let v3 = "undefined";
let v7 = 0;
v7 = 10;
const v11 = [1337];
Function[1073741824] = v11;
}
%NeverOptimizeFunction(main);
main();
| 43,954 |
https://github.com/ul-gaul/Avionique_Software/blob/master/BaseStation/src/ui/config_controller.py | Github Open Source | Open Source | MIT | 2,019 | Avionique_Software | ul-gaul | Python | Code | 191 | 719 | import configparser
import sys
import glob
import serial
from src.ui.setting_data import SettingData
class ConfigController:
def __init__(self, chemin_fichier):
self.file_path = chemin_fichier
self.config = configparser.ConfigParser()
self.config.read(self.file_path)
def save_to_file... | 4,454 |
https://github.com/Mahmoudhadidi/GestionEcole/blob/master/src/ForumBundle/Repository/ReponseRepository.php | Github Open Source | Open Source | MIT | null | GestionEcole | Mahmoudhadidi | PHP | Code | 147 | 519 | <?php
namespace ForumBundle\Repository;
use Doctrine\ORM\EntityRepository;
/**
* ReponseRepository
*
* This class was generated by the Doctrine ORM. Add your own custom
* repository methods below.
*/
class ReponseRepository extends EntityRepository
{
public function supprimerReponse()
{
$conn =... | 27,823 |
https://github.com/DeAccountSystems/das-database/blob/master/timer/timer.go | Github Open Source | Open Source | MIT | 2,021 | das-database | DeAccountSystems | Go | Code | 129 | 577 | package timer
import (
"context"
"das_database/chain/chain_ckb"
"das_database/dao"
"github.com/scorpiotzh/mylog"
"sync"
"time"
)
var log = mylog.NewLogger("timer", mylog.LevelDebug)
// ParserTimer
type ParserTimer struct {
dbDao *dao.DbDao
ctx context.Context
wg *sync.WaitGroup
ckbClient *... | 49,887 |
https://github.com/CarlosAMolina/design-patterns/blob/master/creational-patterns/factories/abstract_factory.py | Github Open Source | Open Source | MIT | null | design-patterns | CarlosAMolina | Python | Code | 256 | 724 | from abc import ABC
from enum import Enum, auto
class HotDrink(ABC):
def consume(self):
pass
class Tea(HotDrink):
def consume(self):
print('This tea is nice but I\'d prefer it with milk')
class Coffee(HotDrink):
def consume(self):
print('This coffee is delicious')
class HotDr... | 36,801 |
https://github.com/Number0000/LearningManagement/blob/master/src/main/java/com/LibraryManagement/app/Controller/BookCopyController.java | Github Open Source | Open Source | MIT | null | LearningManagement | Number0000 | Java | Code | 195 | 866 | package com.LibraryManagement.app.Controller;
import java.util.List;
import javax.validation.Valid;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;
import org.springframework.http.ResponseEntity;
import or... | 11,074 |
https://github.com/hypercnt/login-example/blob/master/src/server/actions/user/index.js | Github Open Source | Open Source | MIT | 2,019 | login-example | hypercnt | JavaScript | Code | 18 | 30 | export { login } from './login'
export { register } from './register'
export { logout } from './logout'
| 13,694 |
https://github.com/brugere/manager/blob/master/packages/manager/modules/account-migration/src/notification/notification.component.js | Github Open Source | Open Source | BSD-3-Clause | 2,022 | manager | brugere | JavaScript | Code | 14 | 34 | import controller from './notification.controller';
import template from './notification.html';
export default {
controller,
template,
};
| 28,215 |
https://github.com/VsevolodKurochka/tishenko.week/blob/master/app/assets/src/sass/layouts/nav/_nav-logo.sass | Github Open Source | Open Source | MIT | null | tishenko.week | VsevolodKurochka | Sass | Code | 26 | 141 | .nav
&__logo
font-size: 0
+max(md)
+d('flex')
align-items: center
&-content
display: inline-block
img
vertical-align: middle
max-height: 35px
+tr()
+min(md)
+w(60px)
max-height: none
&_scrolled &__logo
img
+min(md)
+w(30px) | 38,943 |
https://github.com/octoshell/octoshell-v2/blob/master/engines/support/db/migrate/20141110171648_add_attachment_fields_to_ticket.rb | Github Open Source | Open Source | MIT | 2,023 | octoshell-v2 | octoshell | Ruby | Code | 24 | 109 | class AddAttachmentFieldsToTicket < ActiveRecord::Migration
def change
add_column :support_tickets, :attachment_file_name, :string
add_column :support_tickets, :attachment_content_type, :string
add_column :support_tickets, :attachment_file_size, :integer
add_column :support_tickets, :attachment_update... | 278 |
https://github.com/BrianLudlam/block-dice65-turn3/blob/master/migrations/2_contract_migration.js | Github Open Source | Open Source | MIT | null | block-dice65-turn3 | BrianLudlam | JavaScript | Code | 19 | 133 | const BlockDice65Turn3 = artifacts.require("BlockDice65Turn3");
//const BlockDiceAddress = '0xEbFefE3741461b4eE325c57D590BeB51bCd1e4Ba';//dev
const BlockDiceAddress = '0x4b5D49a47a2031724Ad990C4D74461BC94E3db42';//loom
module.exports = function(deployer) {
deployer.deploy(BlockDice65Turn3, BlockDiceAddress);
};
| 30,844 |
https://github.com/ShawnZhong/SplitFS/blob/master/kernel/linux-4.13/tools/testing/selftests/vm/on-fault-limit.c | Github Open Source | Open Source | Apache-2.0 | 2,022 | SplitFS | ShawnZhong | C | Code | 106 | 375 | #include <sys/mman.h>
#include <stdio.h>
#include <unistd.h>
#include <string.h>
#include <sys/time.h>
#include <sys/resource.h>
#ifndef MCL_ONFAULT
#define MCL_ONFAULT (MCL_FUTURE << 1)
#endif
static int test_limit(void)
{
int ret = 1;
struct rlimit lims;
void *map;
if (getrlimit(RLIMIT_MEMLOCK, &lims)) {
per... | 1,401 |
https://github.com/RichardFlanagan/OpenGLSolarSystem/blob/master/SolarSystem/vertexshader.glsl | Github Open Source | Open Source | MIT | null | OpenGLSolarSystem | RichardFlanagan | GLSL | Code | 108 | 274 | #version 330
layout (location = 0) in vec3 Position; // Position of the vertex
layout (location = 1) in vec3 Normal; // Vertex normal
out vec3 glPosition0; // The transformed position
out vec3 Position0; // The original position
out vec3 Normal0; // The vertex normal
// Transformations
uniform mat4 gModelToWorldTran... | 6,928 |
https://github.com/aws-deepracer/deepracer-env-config/blob/master/deepracer_env_config/configs/behaviour.py | Github Open Source | Open Source | Apache-2.0 | null | deepracer-env-config | aws-deepracer | Python | Code | 506 | 1,319 | #################################################################################
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. #
# #
# Licensed under the Apache License, Version 2.0 (the "License"). ... | 34,308 |
https://github.com/zzj89082/shareworld/blob/master/app/Http/Controllers/Admin/ConfigController.php | Github Open Source | Open Source | MIT | 2,020 | shareworld | zzj89082 | PHP | Code | 331 | 1,677 | <?php
namespace App\Http\Controllers\Admin;
use Illuminate\Http\Request;
use App\Http\Requests;
use App\Http\Controllers\Controller;
use App\Models\Config;
use App\Models\Rollimg;
use \DB;
class ConfigController extends Controller
{
/**
* 加载网站配置界面
*
* @return \Illuminate\Http\Response
*/
... | 4,453 |
https://github.com/nvuillam/kics/blob/master/assets/queries/terraform/aws/root_account_has_active_access_keys/query.rego | Github Open Source | Open Source | Apache-2.0 | 2,021 | kics | nvuillam | Open Policy Agent | Code | 84 | 400 | package Cx
import data.generic.common as common_lib
CxPolicy[result] {
resource := input.document[i].resource.aws_iam_access_key[name]
contains(lower(resource.user), "root")
not common_lib.valid_key(resource, "status")
result := {
"documentId": input.document[i].id,
"searchKey": sprintf("aws_iam_access_key[%... | 15,713 |
https://github.com/zkpursuit/kaka/blob/master/kaka-core/src/main/java/com/kaka/notice/MacroCommand.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | kaka | zkpursuit | Java | Code | 109 | 418 | package com.kaka.notice;
import java.util.ArrayList;
import java.util.Collection;
/**
* 可添加子命令的控制命令类
*
* @author zkpursuit
*/
abstract public class MacroCommand extends Command {
/**
* 子命令存储容器
*/
private Collection<Command> subCommands;
/**
* 构造方法
*/
public MacroCommand() {
... | 25,730 |
https://github.com/koenig125/grassroot-learning/blob/master/grassroot-nlu/install_dependencies.sh | Github Open Source | Open Source | BSD-3-Clause | 2,018 | grassroot-learning | koenig125 | Shell | Code | 128 | 362 | #!/bin/sh
sudo apt-get update
if hash pip; then
echo "pip is installed"
else
sudo apt install python3-pip
fi
if hash git; then
echo "git is installed"
else
sudo apt install git
fi
# conda install libgcc
# jvm
pip install flask
pip install pymongo
pip install schedule
pip install boto3
pip in... | 27,771 |
https://github.com/lovelycheng/JDK/blob/master/jdk-17/src/java.desktop/javax/print/attribute/standard/Destination.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | JDK | lovelycheng | Java | Code | 509 | 1,006 | /*
* Copyright (c) 2000, 2021, Oracle and/or its affiliates. All rights reserved.
* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*/
package javax.print.attribute.standard;
import java.io.File;
import java.io.Serial;
import java.net.UR... | 40,870 |
https://github.com/Protractor-Jasmine-JavaScript/my-canary-project-reference/blob/master/test/e2e/pages/login_page.js | Github Open Source | Open Source | MIT | null | my-canary-project-reference | Protractor-Jasmine-JavaScript | JavaScript | Code | 57 | 308 | 'use strict';
var LoginPage = function() {
this.username = element(by.model('login.credentials.username'));
this.password = element(by.model('login.credentials.password'));
this.loginButton = element(by.buttonText('Login'));
this.error_msg_login = element(by.binding('login.error'));
/**
*Forgot Password
... | 17,415 |
https://github.com/CoolestCat015/BrainlyTools_Extension/blob/master/src/scripts/views/0-Core/_/ModerationPanel/Components/MassManageUsers/ActionSection/DeleteUsers.ts | Github Open Source | Open Source | MIT | 2,020 | BrainlyTools_Extension | CoolestCat015 | TypeScript | Code | 320 | 1,495 | import Action from "@BrainlyAction";
import Button, { JQueryButtonElementType } from "@components/Button";
import ActionSection, { RenderDetailsType } from ".";
import type UserClassType from "../User";
export default class DeleteUsers extends ActionSection {
started: boolean;
openedConnection: number;
$content:... | 14,024 |
https://github.com/DarkGuardsman/JsonContentBuilderLib/blob/master/modules/lib/src/main/java/com/builtbroken/builder/converter/strut/array/JsonConverterArrayDouble.java | Github Open Source | Open Source | MIT | 2,021 | JsonContentBuilderLib | DarkGuardsman | Java | Code | 117 | 391 | package com.builtbroken.builder.converter.strut.array;
import com.builtbroken.builder.converter.JsonConverter;
import com.google.gson.JsonArray;
import com.google.gson.JsonElement;
import com.google.gson.JsonPrimitive;
/**
* Created by Robin Seifert on 2019-03-05.
*/
public class JsonConverterArrayDouble extends Js... | 29,520 |
https://github.com/gennadykr/selenium-training/blob/master/selenium/python-example/test_litecart_admin_add_product.py | Github Open Source | Open Source | Apache-2.0 | null | selenium-training | gennadykr | Python | Code | 227 | 1,524 | import pytest
from selenium import webdriver
from selenium.webdriver.support.wait import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.common.by import By
from selenium.webdriver.support.select import Select
from selenium.webdriver.common.keys import Keys
import ... | 31,373 |
https://github.com/shove70/dlang.org/blob/master/book/d.en/function_overloading.d | Github Open Source | Open Source | CC-BY-NC-SA-4.0, BSL-1.0 | 2,023 | dlang.org | shove70 | D | Code | 1,271 | 2,366 | Ddoc
$(DERS_BOLUMU $(IX function overloading) $(IX overloading, function) Function Overloading)
$(P
Defining more than one function having the same name is $(I function overloading). In order to be able to differentiate these functions, their parameters must be different.
)
$(P
The following code has multiple overl... | 10,653 |
https://github.com/helsinki-xr-center/Esteettomyys/blob/master/Assets/Resources/Prefabs/Colliders/ArabiaKeskus/Arabia2FloorColliders.prefab | Github Open Source | Open Source | MIT | 2,019 | Esteettomyys | helsinki-xr-center | Unity3D Asset | Code | 232 | 1,019 | %YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1 &7088121580318548333
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 4408415994146538944}
- component: {fileID: 617... | 31,145 |
https://github.com/xp-zhao/learn-java/blob/master/learn-algorithm/src/main/java/map/User1.java | Github Open Source | Open Source | MIT | 2,018 | learn-java | xp-zhao | Java | Code | 20 | 43 | package map;
/**
* Created by xp-zhao on 2019/3/5.
*/
public class User1 extends User
{
private String email;
}
| 31,493 |
https://github.com/phpactor/phpactor/blob/master/lib/WorseReflection/Bridge/TolerantParser/Reflection/TraitImport/TraitImport.php | Github Open Source | Open Source | MIT | 2,023 | phpactor | phpactor | PHP | Code | 52 | 185 | <?php
namespace Phpactor\WorseReflection\Bridge\TolerantParser\Reflection\TraitImport;
class TraitImport
{
public function __construct(private string $traitName, private array $traitAliases = [])
{
}
public function name(): string
{
return $this->traitName;
}
public function trai... | 1,879 |
https://github.com/aiminickwong/docker-manager-ui/blob/master/client/config/grunt/connect.js | Github Open Source | Open Source | MIT | 2,015 | docker-manager-ui | aiminickwong | JavaScript | Code | 68 | 232 | module.exports = function(grunt, options){
return {
options: {
port: 9000,
hostname: 'localhost',
livereload: 35729
},
livereload: {
options: {
open: true,
base: [
options.yeoman.tmp,
options.yeoman.app
]
}
},
test: {
... | 19,281 |
https://github.com/zabiksandbox/EliteDangerousCore/blob/master/EliteDangerous/EDSM/GalacticMapping.cs | Github Open Source | Open Source | Apache-2.0 | 2,021 | EliteDangerousCore | zabiksandbox | C# | Code | 467 | 1,292 | /*
* Copyright © 2016-2020 EDDiscovery development team
*
* 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... | 48,162 |
https://github.com/bravegag/perfectjpattern/blob/master/perfectjpattern-examples/src/main/java/org/perfectjpattern/example/model/Customer.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | perfectjpattern | bravegag | Java | Code | 317 | 732 | //----------------------------------------------------------------------
//
// PerfectJPattern: "Design patterns are good but components are better!"
// Customer.java Copyright (c) 2012 Giovanni Azua Garcia
// bravegag@hotmail.com
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not ... | 20,780 |
https://github.com/adobe/commerce-cif-graphql-client/blob/master/src/main/java/com/adobe/cq/commerce/graphql/client/GraphqlClient.java | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, Apache-2.0 | 2,022 | commerce-cif-graphql-client | adobe | Java | Code | 714 | 1,461 | /*******************************************************************************
*
* Copyright 2019 Adobe. All rights reserved.
* This file is licensed to you 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
* ... | 38,282 |
https://github.com/PixArt-Imaging-Inc/openmv/blob/master/src/omv/sensors/paj6100u6.h | Github Open Source | Open Source | MIT | null | openmv | PixArt-Imaging-Inc | C | Code | 56 | 163 | /*
* This file is part of the OpenMV project.
* Copyright (c) 2019 Lake Fu <lake_fu@pixart.com>
* This work is licensed under the MIT license, see the file LICENSE for details.
*
* PAJ6100U6 driver.
*
*/
#ifndef __PAJ6100U6_H__
#define __PAJ6100U6_H__
#include <stdbool.h>
#include "sensor.h"
#define PAJ6100U6_XC... | 25,205 |
https://github.com/pawlean/couchers/blob/master/app/frontend/src/features/messages/messagelist/ControlMessageView.tsx | Github Open Source | Open Source | MIT | 2,021 | couchers | pawlean | TSX | Code | 206 | 646 | import { Box } from "@material-ui/core";
import { makeStyles } from "@material-ui/core/styles";
import { Skeleton } from "@material-ui/lab";
import classNames from "classnames";
import React from "react";
import TextBody from "../../../components/TextBody";
import { timestamp2Date } from "../../../utils/date";
import ... | 26,886 |
https://github.com/mmaarrttyy/lundium/blob/master/packages/lundium/src/components/FormField/index.js | Github Open Source | Open Source | MIT | 2,019 | lundium | mmaarrttyy | JavaScript | Code | 6 | 11 | export { default } from './FormField';
| 28,653 |
https://github.com/FuSoftware/AccdbTools/blob/master/AccdbTools/ACCDB/Jet4/Pages/Jet4DataPage.cs | Github Open Source | Open Source | MIT | 2,021 | AccdbTools | FuSoftware | C# | Code | 128 | 478 | using AccdbTools.ACCDB.Generic;
using AccdbTools.ACCDB.Generic.Pages;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AccdbTools.ACCDB.Jet4.Pages
{
public class Jet4DataPage : DataPage
{
public clas... | 35,799 |
https://github.com/carlgao/lenga/blob/master/images/lenny64-peon/usr/share/texmf-texlive/fonts/afm/bluesky/ams/eusm7.afm | Github Open Source | Open Source | MIT | 2,013 | lenga | carlgao | Adobe Font Metrics | Code | 771 | 1,401 | StartFontMetrics 2.0
Comment Copyright (C) 1997 American Mathematical Society. All Rights Reserved.
Comment Creation Date: Jan 12 1992
Comment UniqueID 5031994
FontName EUSM7
EncodingScheme FontSpecific
FullName EUSM7
FamilyName Euler
ItalicAngle 0.0
Weight Medium
IsFixedPitch false
Version 2.1
Notice Euler fonts were ... | 22,125 |
https://github.com/jroelofs/uwh-display/blob/master/lib/display/BigNumber.cpp | Github Open Source | Open Source | BSD-3-Clause | null | uwh-display | jroelofs | C++ | Code | 1,933 | 16,118 | //===-- BigNumber.cpp - Large Format Number Rendering ------------- c++ --===//
//
// UWH Timer
//
// This file is distributed under the BSD 3-Clause License.
// See LICENSE.TXT for details.
//
//===-----------------------------------------------------------... | 31,944 |
https://github.com/b4hand/sauce/blob/master/vendor/uncrustify-0.59/tests/input/cpp/indent-misc.cpp | Github Open Source | Open Source | MIT | null | sauce | b4hand | C++ | Code | 111 | 261 | struct S
{
int one, two;
S(int i = 1)
{
one = i;
two = i + i;
}
bool check() const
{
return one == 1;
}
};
struct S
{
enum {
twentythree = 23,
fortytwoseven = 427
};
int one, two;
S(int i = 1)
{
one = i;
two = i + i;
}
bool check() const
{
return one == 1;
}
};
static uint jhash(K x)
{
ubyte *k;
... | 29,480 |
https://github.com/nicedream7758/radar/blob/master/radar-dal/src/main/java/com.pgmmers.radar/vo/model/EntityVO.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | radar | nicedream7758 | Java | Code | 16 | 54 | package com.pgmmers.radar.vo.model;
import java.io.Serializable;
public class EntityVO implements Serializable{
static final long serialVersionUID = 988234234L;
}
| 25,050 |
https://github.com/alias2320/controladores/blob/master/app/Http/Controllers/PaginasControler.php | Github Open Source | Open Source | MIT | null | controladores | alias2320 | PHP | Code | 36 | 136 | <?php namespace App\Http\Controllers;
use App\Http\Requests;
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
class PaginasControler extends Controller {
//
public function ayuda()
{
$nombre = 'Angelica';
$apellido = 'Sandoval';
return view('paginas/ayuda',compact('nombre','apellido'));
}... | 50,235 |
https://github.com/skylark-integration/skylark-maqetta/blob/master/.original/seperated/frontend/app/static/lib/gridx/1.0.0/nls/nl/QuickFilter.js.uncompressed.js | Github Open Source | Open Source | MIT | null | skylark-maqetta | skylark-integration | JavaScript | Code | 16 | 66 | define(
"gridx/nls/nl/QuickFilter", ({
filterLabel: 'Filter',
clearButtonTitle: 'Filter wissen',
buildFilterMenuLabel: 'Filter bouwen…',
apply: 'Filter toepassen'
})
);
| 17,870 |
https://github.com/dreamteamrepos/ansible-role-zabbix-server/blob/master/molecule/default/tests/test_default.py | Github Open Source | Open Source | MIT | 2,019 | ansible-role-zabbix-server | dreamteamrepos | Python | Code | 91 | 608 | import os
import pytest
import testinfra.utils.ansible_runner
testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner(
os.environ['MOLECULE_INVENTORY_FILE']).get_hosts('zabbix')
def test_zabbix_server_running_and_enabled(host):
zabbix = host.service("zabbix-server")
assert zabbix.is_enabled
... | 42,516 |
https://github.com/magicyqy/QStack.Framework/blob/master/QStack.Framework.Basic.Models/ViewModel/UploadFileDto.cs | Github Open Source | Open Source | MIT | 2,021 | QStack.Framework | magicyqy | C# | Code | 217 | 765 | using QStack.Framework.Basic.Model;
using QStack.Framework.Basic.ViewModel;
using QStack.Framework.Core.Model;
using System;
using System.Collections.Generic;
using System.Text;
namespace QStack.Framework.Basic.ViewModel
{
public class UploadFileDto:BaseDto
{
/// <summary>
/// 文件的md5码
... | 42,216 |
https://github.com/exerro/observables-kt/blob/master/src/main/kotlin/me/exerro/observables/MutableObservableValue.kt | Github Open Source | Open Source | MIT | null | observables-kt | exerro | Kotlin | Code | 330 | 847 | package me.exerro.observables
import kotlin.reflect.KProperty
/** An [MutableObservableValue] is a wrapper around a mutable value, which can
* be connected to, to get notified of changes. It is the mutable equivalent of
* [ObservableValue], letting you directly set the value.
*
* ```
* // example usage
* v... | 8,409 |
https://github.com/sarkapalkovicova/perun/blob/master/perun-base/src/main/java/cz/metacentrum/perun/core/api/ConsentStatus.java | Github Open Source | Open Source | BSD-2-Clause | null | perun | sarkapalkovicova | Java | Code | 10 | 44 | package cz.metacentrum.perun.core.api;
public enum ConsentStatus {
UNSIGNED,
GRANTED,
REVOKED
}
| 34,970 |
https://github.com/smourier/DirectN/blob/master/DirectN/DirectN/Manual/IPropertyStore.cs | Github Open Source | Open Source | MIT | 2,023 | DirectN | smourier | C# | Code | 75 | 264 | using System;
using System.Runtime.InteropServices;
namespace DirectN
{
[ComImport, Guid("886d8eeb-8cf2-4446-8d02-cdba1dbdcf99"), InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
public partial interface IPropertyStore
{
[PreserveSig]
HRESULT GetCount(/* [out] __RPC__out */ out uint cP... | 46,464 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.