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/gateway7/CsvHelper/blob/master/src/CsvHelper/Configuration/IFieldPreprocessorSettings.cs | Github Open Source | Open Source | MS-PL, Apache-2.0 | 2,017 | CsvHelper | gateway7 | C# | Code | 339 | 698 | namespace CsvHelper.Configuration
{
using System.Text.RegularExpressions;
/// <summary>
/// Provides information on preprocessing to be performed on the CSV field after extraction.
/// </summary>
public interface IFieldPreprocessorSettings
{
/// <summary>
/// An optional prefix... | 48,540 |
https://github.com/hanjietao/ops-pro/blob/master/src/main/java/com/pepper/framework/shiro/web/filter/online/OnlineSessionFilter.java | Github Open Source | Open Source | MIT | null | ops-pro | hanjietao | Java | Code | 313 | 1,583 | package com.pepper.framework.shiro.web.filter.online;
import java.io.IOException;
import java.io.InputStream;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.alibaba.fastjson.JSONObject;
... | 34,332 |
https://github.com/jonasbn/perl-critic-policy-regularexpressions-requiredefault/blob/master/t/implementation.t | Github Open Source | Open Source | Artistic-2.0 | null | perl-critic-policy-regularexpressions-requiredefault | jonasbn | Perl | Code | 18 | 107 | use strict;
use warnings;
use Test::More tests => 4;
use_ok('Perl::Critic::Policy::RegularExpressions::RequireDefault');
ok(my $policy = Perl::Critic::Policy::RegularExpressions::RequireDefault->new());
isa_ok($policy, 'Perl::Critic::Policy::RegularExpressions::RequireDefault');
can_ok($policy, qw(violates));
| 22,851 |
https://github.com/yoyonel/pyWarpGrid/blob/master/src/warp_grid/warp_map.py | Github Open Source | Open Source | MIT | 2,021 | pyWarpGrid | yoyonel | Python | Code | 525 | 2,026 | """
"""
from dataclasses import dataclass, field
import itertools
from OpenGL.GL.shaders import compileProgram, compileShader
from OpenGL.raw.GL.VERSION.GL_1_0 import glColor3f, glPointSize
from OpenGL.raw.GL.VERSION.GL_1_1 import GL_POINTS, GL_LINES
from OpenGL.raw.GL.VERSION.GL_2_0 import (
GL_VERTEX_SHADER, GL_F... | 11,482 |
https://github.com/davidmallasen/AceptaElReto/blob/master/0250-DesgasteBombines/0250.cpp | Github Open Source | Open Source | MIT | 2,022 | AceptaElReto | davidmallasen | C++ | Code | 202 | 449 | /**
* Problema 0250: El desgaste de los bombines
*
* Ada Byron 2015. Equipo Infinite loop:
* David Mallasén Quintana
* Ivan Prada Cazalla
*/
#include <cstdio>
#define gc getchar_unlocked
inline int readIntNeg();
int dias[1000000];
int main() {
int casos, suma, suma1, suma2, min, dia_min;
casos = rea... | 38,548 |
https://github.com/Nullpo1nt/neu-csu540-raytracer/blob/master/src/main/java/raytracer/surfaces/Box.java | Github Open Source | Open Source | MIT | null | neu-csu540-raytracer | Nullpo1nt | Java | Code | 227 | 596 | package raytracer.surfaces;
import javax.vecmath.Vector3d;
import raytracer.Ray;
/**
* Used for bounding box, but since the bounding volume hierarchy isn't complete
* it is not used.
*
* @author Bryant Martin
*
*/
public class Box {
public Vector3d min,
max;
public Box(Vector3d min, Vector3d max) {
... | 36,510 |
https://github.com/noamhammer/salto/blob/master/packages/netsuite-adapter/src/transformer.ts | Github Open Source | Open Source | Apache-2.0 | null | salto | noamhammer | TypeScript | Code | 670 | 2,018 | /*
* Copyright 2020 Salto Labs Ltd.
*
* 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 ... | 145 |
https://github.com/jaredh123/furniture-store/blob/master/js/scripts.js | Github Open Source | Open Source | MIT | null | furniture-store | jaredh123 | JavaScript | Code | 218 | 1,064 | $(document).ready(function() {
var request = new XMLHttpRequest();
request.open('GET', "https://it771mq5n2.execute-api.us-west-2.amazonaws.com/production/furniture/", true);
request.onload = function() {
if (request.status >= 200 && request.status < 400) {
let body = JSON.parse(this.response);
l... | 5,580 |
https://github.com/lgh990/open-platform/blob/master/bytedance/src/main/java/scw/integration/bytedance/poi/PoiExtHotelOrderCancelResponse.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | open-platform | lgh990 | Java | Code | 46 | 173 | package scw.integration.bytedance.poi;
import io.swagger.v3.oas.annotations.media.Schema;
import scw.integration.bytedance.Response;
import scw.integration.bytedance.ResponseCode;
public class PoiExtHotelOrderCancelResponse extends Response<ResponseCode> {
private static final long serialVersionUID = 1L;
@Schema(de... | 2,713 |
https://github.com/eurekaclinical/protempa/blob/master/protempa-dsb-relationaldb/src/main/java/org/protempa/backend/dsb/relationaldb/AbstractCaseClause.java | Github Open Source | Open Source | GPL-2.0-only, Apache-2.0, BSD-3-Clause, EPL-1.0, CDDL-1.0, Classpath-exception-2.0, CDDL-1.1, MPL-1.0, MPL-2.0 | 2,021 | protempa | eurekaclinical | Java | Code | 216 | 571 | /*
* #%L
* Protempa Commons Backend Provider
* %%
* Copyright (C) 2012 - 2013 Emory University
* %%
* 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/lic... | 44,655 |
https://github.com/weihao996/Quarantine-Boys/blob/master/src/wider/mtcnn_rnet_test.py | Github Open Source | Open Source | MIT | 2,020 | Quarantine-Boys | weihao996 | Python | Code | 82 | 539 | """The code to test training process for rnet"""
import tensorflow as tf
from mtcnn import train_net, RNet
def train_Rnet(training_data, base_lr, loss_weight,
train_mode, num_epochs,
load_model=False, load_filename=None,
save_model=False, save_filename=None,
... | 32,718 |
https://github.com/dvallin/tlb-js/blob/master/test/spatial/space.spec.ts | Github Open Source | Open Source | MIT | 2,020 | tlb-js | dvallin | TypeScript | Code | 103 | 298 | import { DiscreteSpace, Space } from '../../src/spatial/space'
import { Vector } from '../../src/spatial/vector'
describe('DiscreteSpace', () => {
testSpace(new Vector([0, 2]), () => new DiscreteSpace(10))
})
function testSpace(position: Vector, spaceBuilder: () => Space<string>): void {
let space: Space<string>
... | 8,761 |
https://github.com/meliorence/react-native-render-html/blob/master/doc-tools/doc-pages/src/pages/cards/preformattedConfig.tsx | Github Open Source | Open Source | BSD-2-Clause | 2,023 | react-native-render-html | meliorence | TSX | Code | 90 | 240 | import { UIRenderHtmlCardProps } from '../../toolkit/toolkit-types';
const html = `
<figure>
<pre> ___________________________
< I'm an expert in my field. >
---------------------------
\\ ^__^
\\ (oo)\\_______
(__)\\ )\\/\\
||----w |
|| ||
</pre>
<figcaption... | 39,884 |
https://github.com/kokonstya/egal-framework-npm-package/blob/master/src/Actions/ActionResponses/ActionResult.ts | Github Open Source | Open Source | Apache-2.0 | 2,021 | egal-framework-npm-package | kokonstya | TypeScript | Code | 53 | 159 | /**
* Класс возвращает ответ, полученный сервером
*/
export class ActionResult {
private readonly data: object;
actionName?: string;
modelName?: string;
actionMessage?: Object;
constructor(data: object, actionName?: string, modelName?: string, actionMessage?:Object) {
this.data = data;
this.actionN... | 16,959 |
https://github.com/donaldboulton/bibwoe/blob/master/_sass/minimal-mistakes/_footnotes.scss | Github Open Source | Open Source | BSD-3-Clause, MIT | 2,022 | bibwoe | donaldboulton | SCSS | Code | 111 | 392 | $color_1: black;
$color_2: #888;
$font_family_1: Arial, sans-serif;
$background_color_13: #fcf4dd;
#footnotediv {
position: absolute;
width: 400px;
overflow: visible;
background-color: $background_color_13;
font-size: 1.0em;
color: $color_1;
padding: 5px 12px;
border: 1px solid #aaa;
box-shadow: 0 0 10px #333... | 40,481 |
https://github.com/gelicia/projektor/blob/master/server/server-app/src/test/kotlin/projektor/notification/github/GitHubPullRequestCommentApplicationTest.kt | Github Open Source | Open Source | MIT | null | projektor | gelicia | Kotlin | Code | 689 | 3,156 | package projektor.notification.github
import com.github.tomakehurst.wiremock.WireMockServer
import com.github.tomakehurst.wiremock.core.WireMockConfiguration.wireMockConfig
import io.ktor.http.*
import io.ktor.server.testing.*
import io.ktor.util.*
import org.awaitility.kotlin.await
import org.awaitility.kotlin.until
... | 11,296 |
https://github.com/ualibraries/ual-payments/blob/master/templates/partials/title.html.twig | Github Open Source | Open Source | MIT | null | ual-payments | ualibraries | Twig | Code | 9 | 46 | <div class="title__wrapper">
<div class="title__inner">
<h1 class="title__title">Library payments</h1>
</div>
</div>
| 20,197 |
https://github.com/yunguangwang891017/Familia/blob/master/python/cpp/topical_word_embeddings_wrapper.cpp | Github Open Source | Open Source | BSD-3-Clause | 2,017 | Familia | yunguangwang891017 | C++ | Code | 424 | 1,623 | // Copyright (c) 2017, Baidu.com, Inc. All Rights Reserved
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
// Author: lianrongzhong@baidu.com
#include <python2.7/Python.h>
#include <stdio.h>
#include <string>
#include <iostream>
#include "familia/semantic_mat... | 13,384 |
https://github.com/suddenlyGiovanni/core/blob/master/packages/system/src/FreeAssociative/index.ts | Github Open Source | Open Source | MIT | null | core | suddenlyGiovanni | TypeScript | Code | 266 | 726 | // tracing: off
import "../Operator"
import { Stack } from "../Stack"
export class IEmpty {
readonly _tag = "Empty"
}
export class IElement<A> {
readonly _tag = "Element"
constructor(readonly element: A) {}
}
export class IConcat<A> {
readonly _tag = "Concat"
constructor(readonly left: FreeAssociative<A>... | 24,465 |
https://github.com/knoldus/play-internationalization-example/blob/master/target/scala-2.12/twirl/main/views/html/welcome.template.scala | Github Open Source | Open Source | CC0-1.0 | null | play-internationalization-example | knoldus | Scala | Code | 134 | 1,241 |
package views.html
import _root_.play.twirl.api.TwirlFeatureImports._
import _root_.play.twirl.api.TwirlHelperImports._
import _root_.play.twirl.api.Html
import _root_.play.twirl.api.JavaScript
import _root_.play.twirl.api.Txt
import _root_.play.twirl.api.Xml
import models._
import controllers._
import play.api.i18n.... | 41,690 |
https://github.com/vlrusu/ads112c04/blob/master/ads112c04/__init__.py | Github Open Source | Open Source | MIT | 2,021 | ads112c04 | vlrusu | Python | Code | 14 | 59 | """Top-level package for ADS112C04."""
__author__ = """Vadim Rusu"""
__email__ = 'vadim.l.rusu@gmail.com'
__version__ = '0.1.0'
| 48,466 |
https://github.com/Shresht7/File-Control-System/blob/master/src/components/explorer.tsx | Github Open Source | Open Source | MIT | null | File-Control-System | Shresht7 | TypeScript | Code | 414 | 1,048 | // Library
import fs, { Dirent } from 'fs'
import path from 'path'
import { useState, useEffect } from 'react'
import { render, Box, Text, useInput } from 'ink'
import open from 'open'
// ==================
// EXPLORER COMPONENT
// ==================
const Explorer = ({ source }: { source: string }) => {
con... | 34,362 |
https://github.com/hassan31120/eunoia/blob/master/app/Http/Resources/UserResource.php | Github Open Source | Open Source | MIT | null | eunoia | hassan31120 | PHP | Code | 69 | 283 | <?php
namespace App\Http\Resources;
use Illuminate\Http\Resources\Json\JsonResource;
class UserResource extends JsonResource
{
/**
* Transform the resource into an array.
*
* @param \Illuminate\Http\Request $request
* @return array|\Illuminate\Contracts\Support\Arrayable|\JsonSerializable
... | 21,114 |
https://github.com/tharindusathis/sourcecodes-of-CodeReadingTheOpenSourcePerspective/blob/master/vcf/VCFBuilder2/MainWindow.h | Github Open Source | Open Source | Apache-1.1 | 2,022 | sourcecodes-of-CodeReadingTheOpenSourcePerspective | tharindusathis | C | Code | 238 | 839 | //MainWindow.h
#ifndef _MAINWINDOW_H__
#define _MAINWINDOW_H__
#include "VCFBuilderUIConfig.h"
#include "Window.h"
#include "StatusBar.h"
#define MAINWINDOW_CLASSID "be07f0a1-35c1-41a3-bdc5-9f97db8edb93"
#define PALETTE_BUTTON_HANDLER "PaletteButtonHandler"
#define PROJECT_HANDLER "CurrentProjectHandler"
class ... | 41,994 |
https://github.com/antonmedv/year/blob/master/packages/2015/04/14/index.js | Github Open Source | Open Source | MIT | 2,021 | year | antonmedv | JavaScript | Code | 6 | 15 | module.exports = new Date(2015, 3, 14)
| 30,270 |
https://github.com/CodingSaroj/ShroonPrism/blob/master/example/shader.frag | Github Open Source | Open Source | Apache-2.0 | null | ShroonPrism | CodingSaroj | GLSL | Code | 124 | 360 | #version 450 core
layout (location = 0) in vec2 f_UV;
layout (location = 1) in vec3 f_Normal;
layout (location = 2) in vec3 f_FragPos;
layout (location = 0) out vec4 o_Color;
layout (binding = 0) uniform RendererData
{
vec3 u_LightDir;
vec3 u_LightCol;
};
layout (binding = 1) uniform ObjectData
{
mat4 u... | 28,044 |
https://github.com/MarkusMokler/photomsmsk-by/blob/master/PhotoMSK/PhotoMSK/Properties/Themes/Landing/empty-project/Views/_ViewStart.cshtml | Github Open Source | Open Source | MIT | 2,021 | photomsmsk-by | MarkusMokler | C# | Code | 5 | 31 | @{
Layout = "~/Themes/empty-project/Views/Shared/_Layout.cshtml";
} | 729 |
https://github.com/yuanzaiyuanfang/AndroidBaseModule/blob/master/basemodule/src/main/java/com/basemodule/baserx/RxSubscriber.java | Github Open Source | Open Source | MIT | 2,017 | AndroidBaseModule | yuanzaiyuanfang | Java | Code | 246 | 870 | package com.basemodule.baserx;
import android.app.Dialog;
import android.content.Context;
import com.basemodule.R;
import com.basemodule.base.IBaseApplication;
import com.basemodule.utils.NetWorkUtils;
import com.orhanobut.logger.Logger;
import rx.Subscriber;
/**
* des:订阅封装
* Created by xsf
* on 2016.09.10:16
*... | 30,852 |
https://github.com/shiehinms/vminspector/blob/master/ui/newconnectdlg.py | Github Open Source | Open Source | Apache-2.0 | 2,015 | vminspector | shiehinms | Python | Code | 144 | 293 | #!/usr/bin/env python
# Copyright (c) 2007-8 Qtrac Ltd. All rights reserved.
# This program or module is free software: you can redistribute it and/or
# modify it under the terms of the GNU General Public License as published
# by the Free Software Foundation, either version 2 of the License, or
# version 3 of the Lice... | 49,154 |
https://github.com/davidokun/Angular-js/blob/master/http/src/app/server.service.ts | Github Open Source | Open Source | Apache-2.0 | null | Angular-js | davidokun | TypeScript | Code | 113 | 423 | import {Injectable} from '@angular/core';
import {Http, Headers, Response} from '@angular/http';
import 'rxjs/Rx';
import {Observable} from 'rxjs/Observable';
@Injectable()
export class ServerService {
constructor(private http: Http) {}
storeServers(servers: any[]) {
const myHeaders = new Headers({
'... | 50,400 |
https://github.com/sridharlovevirus/KEC-Placement-Assistant/blob/master/studentprofile/index.php | Github Open Source | Open Source | MIT | null | KEC-Placement-Assistant | sridharlovevirus | PHP | Code | 157 | 903 | <html>
<head>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no">
<meta charset="utf-8">
<title>Kongu Engineering college</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.0/jquery.min.js"></script>
<link rel="styleshe... | 42,926 |
https://github.com/KongBOy/final_project/blob/master/web_homework/w11_bomber/key.js | Github Open Source | Open Source | MIT | null | final_project | KongBOy | JavaScript | Code | 202 | 692 | var max_num = 99;
var min_num = 1;
var counter = 0;
var guess_num = 0;
var answer = Math.floor(Math.random() * 99 + 1);
console.log("answer = " + answer);
function Guess_button() {
guess_num = input_num.value;
//console.log("guess_num = " + guess_num);
if(guess_num == ""){
guess_num = 1;
}
... | 39,733 |
https://github.com/jkiddo/opentele-client-android/blob/master/questionnaire-mainapp/src/dk/silverbullet/telemed/rest/tasks/RetrieveEntityTask.java | Github Open Source | Open Source | Apache-2.0 | 2,015 | opentele-client-android | jkiddo | Java | Code | 120 | 461 | package dk.silverbullet.telemed.rest.tasks;
import android.os.AsyncTask;
import android.util.Log;
import dk.silverbullet.telemed.OpenTeleApplication;
import dk.silverbullet.telemed.questionnaire.Questionnaire;
import dk.silverbullet.telemed.rest.client.RestClient;
import dk.silverbullet.telemed.rest.client.RestExcepti... | 18,114 |
https://github.com/zzh-wisdom/hashmap/blob/master/quartz/src/lib/dev.h | Github Open Source | Open Source | MIT | null | hashmap | zzh-wisdom | C | Code | 197 | 412 | /***************************************************************************
Copyright 2016 Hewlett Packard Enterprise Development LP.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version ... | 11,573 |
https://github.com/FrankHeijden/cloud/blob/master/cloud-core/src/main/java/cloud/commandframework/CommandManager.java | Github Open Source | Open Source | MIT | 2,022 | cloud | FrankHeijden | Java | Code | 5,119 | 11,210 | //
// MIT License
//
// Copyright (c) 2021 Alexander Söderberg & Contributors
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the right... | 1,069 |
https://github.com/thiscouldbejd/Caerus/blob/master/_Directories/Enums/ParameterOperator.vb | Github Open Source | Open Source | MIT | null | Caerus | thiscouldbejd | Visual Basic | Code | 68 | 264 | Namespace Directories
''' <summary></summary>
''' <autogenerated>Generated from a T4 template. Modifications will be lost, if applicable use a partial class instead.</autogenerated>
''' <generator-date>08/02/2014 18:09:27</generator-date>
''' <generator-functions>1</generator-functions>
''' <generator-source>Caer... | 10,361 |
https://github.com/h2oai/dai-deployment-templates/blob/master/local-rest-scorer/build.gradle | Github Open Source | Open Source | Apache-2.0 | 2,023 | dai-deployment-templates | h2oai | Gradle | Code | 302 | 987 | plugins {
id 'com.google.cloud.tools.jib'
id 'org.springframework.boot'
}
apply from: project(":").file('gradle/java.gradle')
dependencies {
implementation project(':common:rest-spring-api')
implementation project(':common:transform')
implementation group: 'ai.h2o', name: 'h2o-genmodel'
impleme... | 32,635 |
https://github.com/Deval123/rapmis/blob/master/app/Resources/views/staff/show.html.twig | Github Open Source | Open Source | MIT | null | rapmis | Deval123 | Twig | Code | 117 | 540 | {% extends 'base.html.twig' %}
{% block body %}
<div class="page-content-wrapper">
<div class="page-content">
<div class="page-bar">
<div class="page-title-breadcrumb">
<div class=" pull-left">
<div class="page-title">Dashboard</div>
</div>
... | 14,726 |
https://github.com/zalando-stups/skrop/blob/master/filters/localfilecache_test.go | Github Open Source | Open Source | MIT | 2,019 | skrop | zalando-stups | Go | Code | 366 | 1,695 | package filters
import (
"io/ioutil"
"net/http"
"net/http/httptest"
"net/url"
"os"
"strings"
"testing"
"time"
"github.com/zalando-stups/skrop/cache"
"github.com/zalando-stups/skrop/filters/imagefiltertest"
"github.com/zalando/skipper/filters"
"github.com/zalando/skipper/filters/filtertest"
"github.com/s... | 44,772 |
https://github.com/hiloWang/notes/blob/master/Android/00-Code/UISystem/View/src/main/java/com/ztiany/view/drawable/DrawableBitmapFragment.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | notes | hiloWang | Java | Code | 54 | 204 | package com.ztiany.view.drawable;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.ztiany.view.R;
/**
* @author Ztiany
* Email: ztiany3@gmail... | 2,051 |
https://github.com/neonowy/vrs/blob/master/Test/Test.VirtualRadar.Library/Presenter/ConnectionSessionLogPresenterTests.cs | Github Open Source | Open Source | BSD-3-Clause | 2,022 | vrs | neonowy | C# | Code | 600 | 2,107 | // Copyright © 2010 onwards, Andrew Whewell
// All rights reserved.
//
// Redistribution and use of this software in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
// * Redistributions of source code must retain the above copyright notice, this l... | 24,692 |
https://github.com/WilliamXieCrypto/gravity-bridge/blob/master/solidity/contracts/ReentrantERC20.sol | Github Open Source | Open Source | Apache-2.0 | 2,022 | gravity-bridge | WilliamXieCrypto | Solidity | Code | 101 | 380 | //SPDX-License-Identifier: Apache-2.0
pragma solidity 0.8.10;
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "./Gravity.sol";
// Reentrant evil erc20
contract ReentrantERC20 {
address state_gravityAddress;
constructor(address _gravityAddress) {
state_gravityAddress = _gravityAddress;
}
function... | 35,815 |
https://github.com/SymbiFlow/f4pga-rr-graph/blob/master/rr_graph/channel.py | Github Open Source | Open Source | Apache-2.0 | null | f4pga-rr-graph | SymbiFlow | Python | Code | 3,650 | 11,310 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# Copyright 2020-2022 F4PGA Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unl... | 36,623 |
https://github.com/atkins126/ByteScout-SDK-SourceCode/blob/master/Sensitive Data Suite/VB.NET/Remove Sensitive Data From Image/Module1.vb | Github Open Source | Open Source | Apache-2.0 | 2,021 | ByteScout-SDK-SourceCode | atkins126 | Visual Basic | Code | 233 | 651 | '*******************************************************************************************'
' '
' Download Free Evaluation Version From: https://bytescout.com/download/web-installer '
' ... | 20,695 |
https://github.com/yafully/Simple-web-site/blob/master/bak/20170621/app_chat.js | Github Open Source | Open Source | MIT | 2,019 | Simple-web-site | yafully | JavaScript | Code | 688 | 3,770 | 'use strict'
const express = require('express');
const app = express();
const http = require('http').Server(app);
const server = require('socket.io')(http);
const chatuserModel = require('./modules/chatuserSetup');
const silly = require("silly-datetime");
const url = require("url");
const qs = require('querystring');
... | 22,299 |
https://github.com/bitfieldconsulting/ftl-fundamentals-tomdoherty/blob/master/calculator.go | Github Open Source | Open Source | MIT | 2,020 | ftl-fundamentals-tomdoherty | bitfieldconsulting | Go | Code | 182 | 329 | // Package calculator provides a library for simple calculations in Go.
package calculator
import (
"fmt"
"math"
)
// Add takes two numbers and returns the result of adding them together.
func Add(a, b float64) float64 {
return a + b
}
// Subtract takes two numbers and returns the result of subtracting the second... | 22,844 |
https://github.com/shaoboyan/aquarium-test/blob/master/src/aquarium-optimized/d3d12/ProgramD3D12.cpp | Github Open Source | Open Source | BSD-3-Clause | null | aquarium-test | shaoboyan | C++ | Code | 59 | 323 | #include "ProgramD3D12.h"
#include "ContextD3D12.h"
#include <string.h>
#include <fstream>
ProgramD3D12::ProgramD3D12(ContextD3D12 *context, std::string vId, std::string fId)
: Program(vId, fId), vertexShader(nullptr), pixelShader(nullptr), context(context)
{
}
ProgramD3D12::~ProgramD3D12() {}
void ProgramD3D1... | 28,140 |
https://github.com/naniastutitriana/sp_ginjal/blob/master/application/controllers/Ruleds.php | Github Open Source | Open Source | MIT | null | sp_ginjal | naniastutitriana | PHP | Code | 67 | 383 | <?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Ruleds extends CI_Controller {
function __construct(){
parent::__construct();
$this->load->model('Ruleds_model');
}
public function index(){
$data['ruleds_data'] = $this->Ruleds_model->get_ruleds();
$this->load->view('admin/rule... | 31,928 |
https://github.com/OutbackGames/KGB-Hacker/blob/master/main.cpp | Github Open Source | Open Source | MIT | null | KGB-Hacker | OutbackGames | C++ | Code | 28 | 94 | #include "TripleX.h"
using namespace OutbackGames::CPP::TripleX;
TripleX game = TripleX();
TripleX* gamePtr = &game;
int main(){
srand(time(NULL));
gamePtr -> PrintIntro();
gamePtr -> GameLoop();
return 0;
}
//veni vidi vici
| 13,664 |
https://github.com/ZJNixiang/VKPreferences/blob/master/VKHDHeaders/ReportCommentMethod-Protocol.h | Github Open Source | Open Source | MIT | 2,018 | VKPreferences | ZJNixiang | Objective-C | Code | 44 | 146 | //
// Generated by class-dump 3.5 (64 bit).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard.
//
#import "IVKRequest.h"
#import "NSObject.h"
@class NSNumber;
@protocol ReportCommentMethod <NSObject, IVKRequest>
@property(retain, nonatomic) NSNumber *reason;
@property(retain, ... | 38,443 |
https://github.com/TotalJTM/PrimitierModdingFramework/blob/master/Dumps/PrimitierDumpV1.0.1/Valve/VR/InteractionSystem/Sample/RenderModelChangerUI.cs | Github Open Source | Open Source | MIT | 2,022 | PrimitierModdingFramework | TotalJTM | C# | Code | 86 | 303 | /*
* Generated code file by Il2CppInspector - http://www.djkaty.com - https://github.com/djkaty
*/
using System;
using System.Diagnostics;
using System.Runtime.CompilerServices;
using UnityEngine;
using Valve.VR.InteractionSystem;
// Image 50: SteamVR.dll - Assembly: SteamVR, Version=0.0.0.0, Culture=neutral, Publ... | 44,459 |
https://github.com/rkausch/opensphere-desktop/blob/master/open-sphere-base/core/src/main/java/io/opensphere/core/util/MilitaryRankIcon.java | Github Open Source | Open Source | LicenseRef-scancode-free-unknown, Apache-2.0, LicenseRef-scancode-public-domain | 2,020 | opensphere-desktop | rkausch | Java | Code | 661 | 2,408 | package io.opensphere.core.util;
import java.awt.Font;
import java.awt.GraphicsEnvironment;
import io.opensphere.core.util.swing.SwingUtilities;
/** Enumerable representation of Military Rank webfont. */
public enum MilitaryRankIcon implements FontIconEnum
{
/** Enumerable representation of PV2. */
RANK_03_E... | 38,725 |
https://github.com/artemave/donc/blob/master/lib/getEnclosingTestName.js | Github Open Source | Open Source | MIT | 2,021 | donc | artemave | JavaScript | Code | 35 | 117 | module.exports = function getEnclosingTestName(fileContents, lineNumber) {
return fileContents.split("\n").reduce((result, line, idx) => {
let match
if (idx < Number(lineNumber) && (match = line.match(/(?:test|it) *\((?:'([^']+)'|"([^"]+)")/))) {
result = match[1] || match[2]
}
return result
}... | 3,092 |
https://github.com/EPMatt/mvc-example/blob/master/js/app.js | Github Open Source | Open Source | MIT | null | mvc-example | EPMatt | JavaScript | Code | 607 | 2,041 |
function checkPassword(emptyAccepted) {
if (emptyAccepted && document.getElementById("pwd").value.length === 0) {
document.getElementById("pwd").style.border = "1px solid rgb(206, 212, 218)";
document.getElementById("pwd-sm").innerHTML = "";
enableSubmit();
} else if (document.getElemen... | 6,282 |
https://github.com/relifevn/estore/blob/master/views/checkout.ejs | Github Open Source | Open Source | CC-BY-3.0, CC-BY-4.0 | 2,020 | estore | relifevn | EJS | Code | 1,014 | 4,578 | <!doctype html>
<html lang="zxx">
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title>eCommerce HTML-5 Template </title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="manifest" href="site.webmanife... | 44,097 |
https://github.com/brave2chen/springboot-easy-web/blob/master/src/components/VInput/index.vue | Github Open Source | Open Source | MIT | null | springboot-easy-web | brave2chen | Vue | Code | 668 | 2,854 | <template>
<!-- ElRadioGroup tag会报错,单独抽出来处理 -->
<ElRadioGroup
v-if="componentType === 'ElRadioGroup'"
:style="styleObject"
:class="['v-input']"
:value="value"
v-bind="innerProps"
v-on="$listeners"
>
<el-radio v-for="(op, index) in data" :key="index" :label="getValue(op)" v-bind="op">
... | 40,063 |
https://github.com/DinoChiesa/Apigee-UE-Keep-Last-Three/blob/master/lib/cull-proxy-revisions.user.js | Github Open Source | Open Source | Apache-2.0 | 2,020 | Apigee-UE-Keep-Last-Three | DinoChiesa | JavaScript | Code | 592 | 1,990 | // ==UserScript==
// @namespace Apigee
// @name cull-proxy-revisions
// @description Add a button to cull proxy revisions
// @match https://apigee.com/platform/*/proxies/*/overview/*
// @grant none
// @copyright 2016 Apigee Corporation, 2019-2020 Google LLC
// @version 0.1.2
// @run-at d... | 13,156 |
https://github.com/jhh67/chapel/blob/master/test/trivial/bradc/arrinit/arrinit.notypep.typeprind2.chpl | Github Open Source | Open Source | ECL-2.0, Apache-2.0 | 2,022 | chapel | jhh67 | Chapel | Code | 16 | 39 | var m = 4;
var D: domain = (1..m);
var A: [i:D] real = i;
write(A);
| 40,813 |
https://github.com/beyonddream/aoc2018/blob/master/day7/part2.cpp | Github Open Source | Open Source | Apache-2.0 | 2,018 | aoc2018 | beyonddream | C++ | Code | 269 | 1,014 | //
// Created by Arun Shanmugam Kumar on 2018-12-10.
//
#include <iostream>
#include <stack>
#include <sstream>
#include <vector>
#include <map>
#include <set>
using namespace std;
int main() {
string current_step;
vector<pair<char, char>> edges;
set<char> unique_steps;
while(getline(cin, current_... | 23,230 |
https://github.com/SHIVJITH/Odoo_Machine_Test/blob/master/addons/l10n_mx/models/account.py | Github Open Source | Open Source | Apache-2.0 | null | Odoo_Machine_Test | SHIVJITH | Python | Code | 189 | 654 | # coding: utf-8
# Copyright 2016 Vauxoo (https://www.vauxoo.com) <info@vauxoo.com>
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).
import re
from odoo import models, api, fields, _
class AccountJournal(models.Model):
_inherit = 'account.journal'
def _prepare_liquidity_account_vals(self, comp... | 31,838 |
https://github.com/janschultecom/monix/blob/master/monix-streams/shared/src/main/scala/monix/streams/internal/operators/flatten.scala | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-unknown-license-reference | 2,016 | monix | janschultecom | Scala | Code | 532 | 1,514 | /*
* Copyright (c) 2014-2016 by its authors. Some rights reserved.
* See the project homepage at: https://monix.io
*
* 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.a... | 2,594 |
https://github.com/maxidorov/Football-App/blob/master/FootballApp/FootballApp/CardModule/CardPresenter.swift | Github Open Source | Open Source | MIT | 2,022 | Football-App | maxidorov | Swift | Code | 278 | 961 | //
// PlayerCardPresenter.swift
// FootballApp
//
// Created by Данила on 14.12.2021.
//
import UIKit
import Firebase
final class CardPresenter: CardPresenterProtocol {
var model: SearchModel
var cellsCount: Int {
return playerInfo != nil ? 10 : 3
}
var playerInfo: PlayerInfo... | 32,859 |
https://github.com/aravindprasad/freesasa/blob/master/tests/test_json.c | Github Open Source | Open Source | MIT | 2,022 | freesasa | aravindprasad | C | Code | 667 | 3,335 | #if HAVE_CONFIG_H
#include <config.h>
#endif
#include <check.h>
#include <freesasa.h>
#include <json-c/json_object.h>
#include <json-c/json_object_iterator.h>
#include "tools.h"
extern json_object *
freesasa_node2json(freesasa_node *node, int exclude_type, int options);
static int
compare_nodearea(json_object *obj, ... | 39,340 |
https://github.com/Zenexer/ModCMZ/blob/master/ModCMZ.Core/Mods/Mod.cs | Github Open Source | Open Source | FTL | null | ModCMZ | Zenexer | C# | Code | 430 | 1,219 | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Resources;
using System.Text;
using System.Threading.Tasks;
using ModCMZ.Core.Game;
using ModCMZ.Core.Runtime.DNA.CastleMinerZ.GraphicsProfileSupport;
namespace ModCMZ.Core.Mods
{
public abstr... | 31,679 |
https://github.com/andor0/octopod/blob/master/examples/helm-based-control-scripts/src/bin/check.rs | Github Open Source | Open Source | BSD-3-Clause | null | octopod | andor0 | Rust | Code | 149 | 663 | use clap::{App, Arg};
use serde_json::json;
use std::io::Write;
use std::process::{exit, Command, Stdio};
const KUBEDOG_TIMEOUT: usize = 3;
fn main() -> std::io::Result<()> {
let matches = App::new("check")
.version("0.1")
.arg(
Arg::with_name("project-name")
.long("pro... | 12,394 |
https://github.com/djsuw88/simple-server/blob/master/simple/simple-http/src/test/java/org/simpleframework/http/ConnectionTest.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | simple-server | djsuw88 | Java | Code | 761 | 2,235 | package org.simpleframework.http;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.io.PrintStream;
import java.net.InetSocketAddress;
import java.net.SocketAddress;
import java.net.URL;
import java.util.List;
import java.util.Vector;
import java.util.concurrent.CountDown... | 2,856 |
https://github.com/idiotWu/let-there-be-light-c/blob/master/docs/files_dup.js | Github Open Source | Open Source | MIT | null | let-there-be-light-c | idiotWu | JavaScript | Code | 45 | 332 | var files_dup =
[
[ "maze", "dir_931ce304af081f85f63237a1d4f7bc66.html", "dir_931ce304af081f85f63237a1d4f7bc66" ],
[ "render", "dir_c30bb48f042946ebe97e62b65a0197ba.html", "dir_c30bb48f042946ebe97e62b65a0197ba" ],
[ "scene", "dir_fd40b43fc4c1e00689c4b0cc7f9f9515.html", "dir_fd40b43fc4c1e00689c4b0cc7f9f9515"... | 28,579 |
https://github.com/flackyang/streamx/blob/master/streamx-flink/streamx-flink-test/src/main/scala/com/streamxhub/streamx/test/stream/MongoSourceApp.scala | Github Open Source | Open Source | Apache-2.0 | 2,021 | streamx | flackyang | Scala | Code | 74 | 372 | package com.streamxhub.streamx.test.stream
import com.mongodb.BasicDBObject
import com.streamxhub.streamx.common.util.{DateUtils, JsonUtils}
import com.streamxhub.streamx.flink.core.scala.source.MongoSource
import com.streamxhub.streamx.flink.core.scala.FlinkStreaming
import org.apache.flink.api.scala._
import scala.... | 42,299 |
https://github.com/alexeybut/Aspose.Words-for-.NET/blob/master/ApiExamples/CSharp/ApiExamples/ExCharts.cs | Github Open Source | Open Source | MIT | 2,019 | Aspose.Words-for-.NET | alexeybut | C# | Code | 3,905 | 12,702 | using System;
using System.IO;
using System.Collections.Generic;
using Aspose.Words;
using Aspose.Words.Drawing;
using Aspose.Words.Drawing.Charts;
using NUnit.Framework;
namespace ApiExamples
{
[TestFixture]
public class ExCharts : ApiExampleBase
{
[Test]
public void ChartTitle()
... | 47,197 |
https://github.com/manh-hoang-nguyen/BIM4PM-AddinRevit/blob/master/ProjectManagement/BIM4PM.Data/Repositories/UserRepository.cs | Github Open Source | Open Source | MIT | 2,020 | BIM4PM-AddinRevit | manh-hoang-nguyen | C# | Code | 63 | 237 | namespace BIM4PM.DataAccess
{
using BIM4PM.DataAccess.Interfaces;
using BIM4PM.DataAccess.Routes;
using BIM4PM.Model;
using RestSharp;
using System.Threading.Tasks;
public class UserRepository : IUserRepository
{
RestClient _client;
public UserRepository()
{
... | 36,732 |
https://github.com/cbig/japan-zsetup/blob/master/R/02_results/05_LSM_visualization.R | Github Open Source | Open Source | CC-BY-4.0, MIT | 2,019 | japan-zsetup | cbig | R | Code | 182 | 755 | library(RColorBrewer)
library(htmlwidgets)
library(leaflet)
library(raster)
library(rgdal)
library(zonator)
source("R/00_lib/utils.R")
# Load the project, creates japan_zproject. WARNING: loaded object is cached
# using memoise-package. If results have change, don't load the cached version.
zproject_japan <- .load_zp... | 10,438 |
https://github.com/cvandijck/VTKExamples/blob/master/src/Cxx/VisualizationAlgorithms/Office.cxx | Github Open Source | Open Source | Apache-2.0 | 2,022 | VTKExamples | cvandijck | C++ | Code | 905 | 6,040 | #include <vtkActor.h>
#include <vtkCamera.h>
#include <vtkNamedColors.h>
#include <vtkPointData.h>
#include <vtkPointSource.h>
#include <vtkPolyDataMapper.h>
#include <vtkProperty.h>
#include <vtkRenderWindow.h>
#include <vtkRenderWindowInteractor.h>
#include <vtkRenderer.h>
#include <vtkStreamTracer.h>
#include <vtkSt... | 42,139 |
https://github.com/chenfengjin/crafty/blob/master/contracts/ExtendedERC20.sol | Github Open Source | Open Source | MIT | 2,019 | crafty | chenfengjin | Solidity | Code | 36 | 148 | pragma solidity ^0.4.21;
import "openzeppelin-zos/contracts/token/ERC20/DetailedERC20.sol";
contract ExtendedERC20 is DetailedERC20 {
string public tokenURI;
function initialize(
string _name,
string _symbol,
uint8 _decimals,
string _tokenURI
)
isInitializer("ExtendedERC20", "0")
publi... | 19,424 |
https://github.com/OpertusMundi/catalogue-service/blob/master/tests/functional/__init__.py | Github Open Source | Open Source | Apache-2.0 | null | catalogue-service | OpertusMundi | Python | Code | 55 | 190 | import logging
import json
import os
from catalogueapi.app import create_app
resources_dir = os.path.realpath(os.path.join(os.path.dirname(__file__), "../resources"));
# Setup/Teardown
app = None
def setup_package():
print(" == Setting up functional tests")
os.environ['TESTING'] = 'True'
os.enviro... | 11,900 |
https://github.com/TPaitoon/camelprod/blob/master/backend/views/bicyclesteamworkInfo/update.php | Github Open Source | Open Source | BSD-3-Clause | 2,018 | camelprod | TPaitoon | PHP | Code | 47 | 223 | <?php
use yii\helpers\Html;
/* @var $this yii\web\View */
/* @var $model common\models\BicyclesteamworkInfo */
$this->title = 'ค่าเข้างานนึ่งยางนอกจกย.';
$this->params['breadcrumbs'][] = ['label' => 'ค่าเข้างานนึ่งยางนอกจกย.', 'url' => ['index']];
$this->params['breadcrumbs'][] = ['label' => $model->empid];
$this->p... | 41,577 |
https://github.com/VasilisG/Game_of_Life_in_OpenMP_and_OpenCL/blob/master/Game of Life/Game_of_Life_GPU_OpenCL/MemoryObject.h | Github Open Source | Open Source | MIT | 2,021 | Game_of_Life_in_OpenMP_and_OpenCL | VasilisG | C | Code | 65 | 241 | #ifndef MEMORY_OBJECT_H
#define MEMORY_OBJECT_H
#include <stdio.h>
#include <stdlib.h>
#include <CL/cl.h>
#include <CL/cl_gl.h>
#include <GL/gl.h>
/* Functions that wrap OpenCL memory object functions.*/
cl_mem createBuffer(cl_context context, cl_mem_flags flags, size_t size, void *host_ptr);
cl_mem createSubBuffer(c... | 29,210 |
https://github.com/svelto/pacco/blob/master/src/project/defaults/components.js | Github Open Source | Open Source | MIT | 2,022 | pacco | svelto | JavaScript | Code | 91 | 148 |
// Object used for making partial buildings by filtering out unwanted components
// In the form of `component: enabled`. A component's key can also be divided into sub objects, where each key is a component on its own; in this case the parent component will be assumed to be enabled
// Enabling/disabling is affected by... | 47,524 |
https://github.com/drishticone/2.0.0/blob/master/dashboard/header/footer.php | Github Open Source | Open Source | MIT | 2,017 | 2.0.0 | drishticone | PHP | Code | 150 | 834 | <!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Drishticone || Footer</title>
</head>
<body >
<?php
include 'header.php';
?><div style="height:200px;"></div>
<footer class="page-footer" style="background:#202020;">
<div class="container">
<div class="row">
<div clas... | 31,324 |
https://github.com/chuongmep/revit/blob/master/samples/Revit 2012 SDK/Samples/Truss/CS/TrussForm.Designer.cs | Github Open Source | Open Source | BSD-3-Clause | 2,021 | revit | chuongmep | C# | Code | 1,188 | 5,505 | //
// (C) Copyright 2003-2011 by Autodesk, Inc.
//
// Permission to use, copy, modify, and distribute this software in
// object code form for any purpose and without fee is hereby granted,
// provided that the above copyright notice appears in all copies and
// that both that copyright notice and the limited warranty ... | 17,768 |
https://github.com/MMathisLab/py-ic-imaging-control/blob/master/setup.py | Github Open Source | Open Source | MIT | 2,019 | py-ic-imaging-control | MMathisLab | Python | Code | 60 | 219 | from setuptools import setup
def readme():
with open('README.md') as f:
return f.read()
setup(name='py-ic-imaging-control',
version='1.0',
description='Python wrapper for the IC Imaging Control SDK from The Imaging Source (TIS)',
long_description=readme(),
classifiers=['Developme... | 18,483 |
https://github.com/isgasho/namazu-swarm/blob/master/cmd/nmzswarm-agent.worker/exec.go | Github Open Source | Open Source | Apache-2.0 | 2,017 | namazu-swarm | isgasho | Go | Code | 114 | 416 | package main
import (
"bytes"
"io"
"log"
"os"
"os/exec"
"time"
nmzswarm "github.com/osrg/namazu-swarm"
)
func exek(executor string, req nmzswarm.ChunkRequest) nmzswarm.ChunkResult {
var (
in bytes.Buffer
out bytes.Buffer
)
for _, workload := range req.Workloads {
log.Printf("Chunk %d: workload: %+v"... | 10,000 |
https://github.com/Dilanka1997/newloan/blob/master/application/controllers/Login.php | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, MIT | 2,020 | newloan | Dilanka1997 | PHP | Code | 258 | 998 | <?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Login extends CI_Controller {
function __construct(){
parent::__construct();
// $this->check_isvalidated();
$this->load->model('App_Model');
}
public function index($msg = null)
{
$data['msg'] = $msg;
$this->load->view('Login',... | 34,686 |
https://github.com/maxname/switchyard/blob/master/release/jboss-as7/tests/src/test/java/org/switchyard/test/jca/mockra/MockConnectionFactory.java | Github Open Source | Open Source | Apache-2.0 | 2,016 | switchyard | maxname | Java | Code | 387 | 1,054 | /*
* Copyright 2013 Red Hat Inc. and/or its affiliates and other contributors.
*
* 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 req... | 24,508 |
https://github.com/ScalablyTyped/ScalajsReactTyped/blob/master/w/workbox-google-analytics/src/main/scala/typingsJapgolly/workboxGoogleAnalytics/mod.scala | Github Open Source | Open Source | MIT | 2,022 | ScalajsReactTyped | ScalablyTyped | Scala | Code | 40 | 200 | package typingsJapgolly.workboxGoogleAnalytics
import typingsJapgolly.workboxGoogleAnalytics.initializeMod.InitializeOptions
import org.scalablytyped.runtime.StObject
import scala.scalajs.js
import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess}
object mod {
@JSImport("wo... | 42,655 |
https://github.com/shrinathjoshi/Leetocode-30-day-challenge/blob/master/May Challenge/com/leetcode/MayChallenge/week4/IntervalListIntersections.java | Github Open Source | Open Source | MIT | 2,022 | Leetocode-30-day-challenge | shrinathjoshi | Java | Code | 202 | 547 | package com.leetcode.MayChallenge.week4;
import java.util.ArrayList;
import java.util.List;
public class IntervalListIntersections {
public int[][] intervalIntersection(int[][] A, int[][] B) {
int a = 0;
int b = 0;
List<int[]> result = new ArrayList<int[]>();
while (a < A.length && b < B.length) {
int... | 36,882 |
https://github.com/rebane2001/2spicy2stream/blob/master/src/main/java/com/rebane2001/twospicytwostream/config/ModConfig.java | Github Open Source | Open Source | Unlicense | 2,021 | 2spicy2stream | rebane2001 | Java | Code | 98 | 388 | package com.rebane2001.twospicytwostream.config;
import com.rebane2001.twospicytwostream.BadWords;
import com.rebane2001.twospicytwostream.TwoSpicyTwoStream;
import net.minecraftforge.common.config.Config;
import net.minecraftforge.common.config.ConfigManager;
import net.minecraftforge.fml.client.event.ConfigChangedEv... | 45,746 |
https://github.com/Rob--W/phabricator/blob/master/resources/sql/autopatches/20140721.phortune.3.charge.sql | Github Open Source | Open Source | Apache-2.0 | 2,022 | phabricator | Rob--W | SQL | Code | 82 | 262 | CREATE TABLE {$NAMESPACE}_phortune.phortune_charge (
id INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY,
phid VARCHAR(64) NOT NULL COLLATE utf8_bin,
accountPHID VARCHAR(64) NOT NULL COLLATE utf8_bin,
authorPHID VARCHAR(64) NOT NULL COLLATE utf8_bin,
cartPHID VARCHAR(64) NOT NULL COLLATE utf8_bin,
paymentMe... | 31,110 |
https://github.com/dotnet/roslyn/blob/master/src/Features/Core/Portable/Completion/Providers/SymbolCompletionItem.cs | Github Open Source | Open Source | MIT | 2,023 | roslyn | dotnet | C# | Code | 1,067 | 3,653 | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Diagnostics.CodeAn... | 23,843 |
https://github.com/yonathan12/kps/blob/master/application/controllers/api/v1/KPS.php | Github Open Source | Open Source | MIT | null | kps | yonathan12 | PHP | Code | 59 | 260 | <?php
require APPPATH . 'controllers/api/v1/BaseController.php';
class KPS extends BaseController
{
public function __construct()
{
parent::__construct();
$this->load->model('KPS001_model');
}
public function index_get()
{
$get_data = $this->KPS001_model->show($this->nisn)->... | 9,952 |
https://github.com/flypig5211/zf-admin/blob/master/zf/src/main/java/com/chinazhoufan/admin/modules/msg/dao/uw/WarningDao.java | Github Open Source | Open Source | Apache-2.0 | 2,017 | zf-admin | flypig5211 | Java | Code | 46 | 228 | /**
* Copyright © 2012-2014 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
*/
package com.chinazhoufan.admin.modules.msg.dao.uw;
import java.util.List;
import java.util.Map;
import com.chinazhoufan.admin.common.persistence.CrudDao;
import com.chinazhoufan.admin.common.persistenc... | 14,222 |
https://github.com/cuijianming/ovs-2.13.6/blob/master/datapath-windows/ovsext/PaxHeaders.2308045/Actions.h | Github Open Source | Open Source | Apache-2.0 | null | ovs-2.13.6 | cuijianming | C | Code | 6 | 43 | 30 mtime=1639777085.361355983
30 atime=1639777086.314355983
30 ctime=1639777127.166355983
| 27,503 |
https://github.com/fangningshao/chinese-poetry-corpus/blob/master/data/宋/poems/赵必常.tsv | Github Open Source | Open Source | MIT | 2,017 | chinese-poetry-corpus | fangningshao | TSV | Code | 3 | 82 | 小亭夜坐即景(宋·赵必常) 七言绝句 小亭夜坐涤炎蒸,顿觉风清趣已成。数点流萤亭外度,儿童戏逐月边星①。
| 7,251 |
https://github.com/unifly-aero/powergrid/blob/master/web/datasources/datasource.js | Github Open Source | Open Source | MIT | 2,023 | powergrid | unifly-aero | JavaScript | Code | 728 | 1,205 | /**
* Interface for classes that provide data to a grid. Data (things returned by {@link DataSource#getData} and
* {@link DataSource.getRecordById} exists of objects (records) that contain at least an 'id' property containing a number
* or string that uniquely identifies that record.
*
* @interface DataSource
* @... | 39,955 |
https://github.com/kunishi/algebra-ruby2/blob/master/doc-ja/finite-map-ja.rd | Github Open Source | Open Source | MIT | 2,021 | algebra-ruby2 | kunishi | R | Code | 623 | 2,571 | ########################################################################
# #
# finite-map.rb #
# #
############################... | 29,651 |
https://github.com/mnipper/rails_survey/blob/master/spec/factories/project.rb | Github Open Source | Open Source | MIT | null | rails_survey | mnipper | Ruby | Code | 15 | 35 | FactoryGirl.define do
factory :project do
name 'test project'
description 'this is a project'
end
end
| 47,793 |
https://github.com/zendzo/stupid-inventory/blob/master/app/Http/Livewire/CategoryIndex.php | Github Open Source | Open Source | MIT | null | stupid-inventory | zendzo | PHP | Code | 100 | 376 | <?php
namespace App\Http\Livewire;
use App\Models\Category;
use Livewire\Component;
class CategoryIndex extends Component
{
protected $listeners = [
'categoryStored' => 'handleCategoryStored',
'categoryUpdated' => 'handleCategoryUpdated'
];
public $editCategory = false;
public functi... | 47,080 |
https://github.com/zmeggyesi/w_transport/blob/master/lib/src/http/request_exception.dart | Github Open Source | Open Source | Apache-2.0 | 2,021 | w_transport | zmeggyesi | Dart | Code | 311 | 648 | // Copyright 2015 Workiva Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in... | 39,039 |
https://github.com/SCLD-AFrey/GrpcWpfSample/blob/master/GrpcWpfSample.Client.Wpf/View/ChatClientWindow.xaml.cs | Github Open Source | Open Source | MIT | 2,022 | GrpcWpfSample | SCLD-AFrey | C# | Code | 61 | 213 | using System.Windows;
using System.Windows.Input;
namespace GrpcWpfSample.Client.Wpf.View
{
/// <summary>
/// MainWindow.xaml の相互作用ロジック
/// </summary>
public partial class ChatClientWindow : Window
{
public ChatClientWindow()
{
InitializeComponent();
DataCon... | 23,337 |
https://github.com/the6thdoor/LumiPBRExt/blob/master/assets/lumi/shaders/material/iron_wood.frag | Github Open Source | Open Source | CC-BY-4.0 | null | LumiPBRExt | the6thdoor | GLSL | Code | 92 | 367 | #include frex:shaders/api/fragment.glsl
#include frex:shaders/api/world.glsl
#include lumi:shaders/lib/bump.glsl
#include lumi:shaders/internal/ext_frag.glsl
/******************************************************
lumi:shaders/material/iron_wood.frag
******************************************************/
void frx_... | 24,534 |
https://github.com/UAF-SuperDARN-OPS/SuperDARN_MSI_ROS/blob/master/linux/home/radar/ros.3.6/codebase/analysis/src.lib/aacgm/aacgm.1.15/src/aacgm.c | Github Open Source | Open Source | MIT | 2,013 | SuperDARN_MSI_ROS | UAF-SuperDARN-OPS | C | Code | 257 | 868 | /* aacgm.c
=======
Author: R.J.Barnes
*/
/*
LICENSE AND DISCLAIMER
Copyright (c) 2012 The Johns Hopkins University/Applied Physics Laboratory
This file is part of the Radar Software Toolkit (RST).
RST is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser Genera... | 288 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.