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/hauner/openapi-spring-generator/blob/master/docs/modules/ROOT/pages/mapping/index.adoc | Github Open Source | Open Source | Apache-2.0 | 2,022 | openapi-spring-generator | hauner | AsciiDoc | Code | 186 | 246 | = Type mapping
Type mapping is an important feature of the processor and helps it to create the expected code.
Using type mapping we can tell the processor to map types (schemas) from an openapi.yaml description
to a specific existing java type instead of generating a model class from the source OpenAPI type.
This c... | 37,280 |
https://github.com/lsferreira42/lpt-switch/blob/master/lib/parapin/parapin_java/example/src/OpenAndCloseTest.java | Github Open Source | Open Source | BSD-3-Clause | 2,020 | lpt-switch | lsferreira42 | Java | Code | 61 | 140 |
import net.sf.parapin.ParallelPort;
/**
* Opens the parallel port then close it immediately then exits.
*/
public final class OpenAndCloseTest
{
public static final String COPYRIGHT = "© 2007 Neil Stockbridge";
public static final String LICENSE = "LGPL";
public static final String REVISION = "$R... | 4,694 |
https://github.com/SmallBlackBeans/WeatherForecast/blob/master/WeatherForecast/WeatherForecast/Classes/City/Controllers/CitysViewController.m | Github Open Source | Open Source | MIT | 2,015 | WeatherForecast | SmallBlackBeans | Objective-C | Code | 646 | 2,827 | //
// CitysViewController.m
// 天气
//
// 海内存知己,我叫叶良辰
//
// Created by 韩小醋 on 15-10-21.
// Copyright (c) 2015年 hanxiaocu. All rights reserved.
//
//代表当前section是否是展开
#define kIsExpand @"isExpand"
//当前section对应的数组
#define kCityArray @"cityArray"
#import "CitysViewController.h"
#import "CityModel.h"
@interface Citys... | 18,388 |
https://github.com/intuita-inc/tldraw/blob/master/packages/tldraw/src/state/shapes/DrawUtil/drawHelpers.ts | Github Open Source | Open Source | MIT | 2,022 | tldraw | intuita-inc | TypeScript | Code | 231 | 684 | import { Utils } from '@tldraw/core'
import { getStrokeOutlinePoints, getStrokePoints, StrokeOptions } from 'perfect-freehand'
import type { DrawShape } from '~types'
import { getShapeStyle } from '../shared/shape-styles'
const simulatePressureSettings: StrokeOptions = {
easing: (t) => Math.sin((t * Math.PI) / 2),
... | 10,372 |
https://github.com/qussarah/declare/blob/master/compiler/testData/codegen/box/strings/rawStrings.kt | Github Open Source | Open Source | Apache-2.0 | 2,022 | declare | qussarah | Kotlin | Code | 27 | 47 | fun box() : String {
val s = """ foo \n bar """
if (s != " foo \\n bar ") return "Fail: '$s'"
return "OK"
}
| 29,306 |
https://github.com/inthiyazbasha9876/obs_v2/blob/master/zuul-auth-ojas-parent/ojas-obs-employeecontactinfo/src/test/java/com/ojas/obs/controller/EmployeeContactInfoControllerTest.java | Github Open Source | Open Source | MIT | 2,020 | obs_v2 | inthiyazbasha9876 | Java | Code | 1,056 | 5,285 | package com.ojas.obs.controller;
import static org.junit.Assert.assertEquals;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.when;
import java.lang.reflect.Field;
import java.sql.SQLException;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
import javax.servle... | 40,394 |
https://github.com/jkennedyvz/DeepFaceLive/blob/master/xlib/avecl/_internal/op/matmul.py | Github Open Source | Open Source | MIT | 2,022 | DeepFaceLive | jkennedyvz | Python | Code | 618 | 1,819 | import numpy as np
from ..AShape import AShape
from ..backend import Kernel
from ..HArgs import HArgs
from ..SCacheton import SCacheton
from ..Tensor import Tensor
def matmul(a_t : Tensor, b_t : Tensor, output_t: Tensor=None, is_add_to_output=False) -> Tensor:
"""
matmul operator in row-major format
A(... | 40,660 |
https://github.com/ardikabs/ContainerSSH/blob/master/cmd/license-report/main.go | Github Open Source | Open Source | MIT | 2,020 | ContainerSSH | ardikabs | Go | Code | 281 | 950 | package main
import (
"bytes"
"fmt"
"io/ioutil"
"log"
"os"
"os/exec"
"path"
"regexp"
"strings"
)
func main() {
cmd := exec.Command("golicense", os.Args[1], os.Args[2])
var stdOutBuf bytes.Buffer
cmd.Stdout = &stdOutBuf
cmd.Stderr = os.Stderr
cmd.Env = nil
err := cmd.Run()
if err != nil {
log.Fatalf(... | 48,346 |
https://github.com/aantakli/AJAN-editor/blob/master/app/components/editor/rdf-interaction-header.js | Github Open Source | Open Source | MIT | 2,023 | AJAN-editor | aantakli | JavaScript | Code | 825 | 2,417 | /*
* Created on Tue Nov 10 2020
*
* The MIT License (MIT)
* Copyright (c) 2020 André Antakli, Alex Grethen (German Research Center for Artificial Intelligence, DFKI).
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software
* and associated documentation files (the "Softw... | 46,454 |
https://github.com/lotterfriends/ngx-webrtc/blob/master/apps/demo-video-chat-client/src/app/components/video-chat/video-chat.component.ts | Github Open Source | Open Source | MIT | 2,022 | ngx-webrtc | lotterfriends | TypeScript | Code | 925 | 3,827 | import {
AfterViewInit, Component, ComponentRef,
ElementRef, HostListener, Input, OnInit, ViewChild, ViewContainerRef
} from '@angular/core';
import { UntilDestroy, untilDestroyed } from '@ngneat/until-destroy';
import { ConferenceGridHolderComponent } from '@ngx-webrtc/demo-ui-components';
import { MessageType, Us... | 50,581 |
https://github.com/johnwatsonncr/s3pypi/blob/master/cdk/bin/cdk.ts | Github Open Source | Open Source | MIT | 2,019 | s3pypi | johnwatsonncr | JavaScript | Code | 22 | 82 | #!/usr/bin/env node
import 'source-map-support/register';
import cdk = require('@aws-cdk/core');
import { PyPiS3Stack } from '../lib/cdk-stack';
const app = new cdk.App();
new PyPiS3Stack(app, 'PyPiS3Stack2');
| 3,126 |
https://github.com/antpost/antpost-client/blob/master/node_modules/@progress/kendo-angular-upload/dist/npm/file-list-item.d.ts | Github Open Source | Open Source | MIT | null | antpost-client | antpost | TypeScript | Code | 74 | 206 | import { ElementRef } from '@angular/core';
import { FileInfo } from './file-info';
import { NavigationService } from './navigation.service';
/**
* @hidden
*/
export declare class FileListItemDirective {
private navigationService;
files: Array<FileInfo>;
index: number;
fileClass: boolean;
focused:... | 44,377 |
https://github.com/problem-frames/openpf/blob/master/workspace/event/src-gen/uk/ac/open/event/eventcalculus/util/EventcalculusAdapterFactory.java | Github Open Source | Open Source | BSD-3-Clause | 2,019 | openpf | problem-frames | Java | Code | 3,424 | 8,289 | /**
*/
package uk.ac.open.event.eventcalculus.util;
import org.eclipse.emf.common.notify.Adapter;
import org.eclipse.emf.common.notify.Notifier;
import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl;
import org.eclipse.emf.ecore.EObject;
import uk.ac.open.event.eventcalculus.*;
/**
* <!-- begin-user-doc -... | 11,198 |
https://github.com/Kethsar/twitter_image_links/blob/master/twitter_open_profile_from_image.user.js | Github Open Source | Open Source | MIT | 2,021 | twitter_image_links | Kethsar | JavaScript | Code | 176 | 571 | // ==UserScript==
// @name Twitter-Profile-From-Image-Link
// @description Middle-Click image to open the user's twitter profile in a new tab if the username is set as the link hash
// @author Kethsar
// @version 1.0
// @match https://pbs.twimg.com/media/*
// @grant GM_openInTab
// @grant ... | 34,454 |
https://github.com/SnelStartSoftware/B2B.client.v2.net/blob/master/SnelStart.B2B.V2.Client/Operations/Artikelen/IArtikelenOperations.cs | Github Open Source | Open Source | MIT | 2,020 | B2B.client.v2.net | SnelStartSoftware | C# | Code | 31 | 124 | using System;
using System.Threading;
using System.Threading.Tasks;
namespace SnelStart.B2B.V2.Client.Operations
{
public interface IArtikelenOperations : ICrudOperations<ArtikelModel>, IGetAllOperations<ArtikelModel>, IQueryOperations<ArtikelModel>
{
Task<Response<ArtikelModel>> GetByIdAsync(Guid id,... | 20,322 |
https://github.com/TotalCross/skia/blob/master/tests/sksl/shared/Assignment.glsl | Github Open Source | Open Source | BSD-3-Clause | null | skia | TotalCross | GLSL | Code | 74 | 285 |
out vec4 sk_FragColor;
uniform vec4 colorGreen;
vec4 main() {
ivec4 i4;
i4 = ivec4(1, 2, 3, 4);
vec4 x;
x.w = 0.0;
x.yx = vec2(0.0);
int ai[1];
ai[0] = 0;
ivec4 ai4[1];
ai4[0] = ivec4(1, 2, 3, 4);
mat3 ah2x4[1];
ah2x4[0] = mat3(1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0);
... | 23,920 |
https://github.com/GimoXagros/morebobs/blob/master/morebobs_shiny_0.16.1/morebobs_shiny_0.16.1/data-final-fixes.lua | Github Open Source | Open Source | MIT | 2,020 | morebobs | GimoXagros | Lua | Code | 3 | 21 | -- moreshinybobs
require('prototypes/moreshinybobs') | 24,321 |
https://github.com/voelkerb/iHouse/blob/master/iHouseRemote/iHouseRemote/Device.m | Github Open Source | Open Source | MIT | 2,017 | iHouse | voelkerb | Objective-C | Code | 248 | 753 | //
// Device.m
// iHouseRemote
//
// Created by Benjamin Völker on 05/01/2017.
// Copyright © 2017 Benjamin Völker. All rights reserved.
//
#import "Device.h"
@implementation Device
@synthesize image, name, type, info;
/*
* Init function
*/
- (id)init {
if((self = [super init])) {
image = [UIImage image... | 28,923 |
https://github.com/Vestmark/vestmark-gradle/blob/master/subprojects/docs/src/samples/play/custom-distribution/scripts/runPlayBinaryAsUser.sh | Github Open Source | Open Source | Apache-2.0 | 2,022 | vestmark-gradle | Vestmark | Shell | Code | 25 | 92 | #!/bin/bash
RUNASUSER=$1
if test "${RUNASUSER}" = ""
then
echo "Usage: `basename $0` <username>"
exit 1
fi
SCRIPTDIR=`dirname $0`
SCRIPTDIR=`cd ${SCRIPTDIR}; pwd`
sudo -u ${RUNASUSER} ${SCRIPTDIR}/playBinary
| 9,523 |
https://github.com/fredgrott/base_statewidget/blob/master/lib/app/common/logging/types.dart | Github Open Source | Open Source | BSD-3-Clause | null | base_statewidget | fredgrott | Dart | Code | 41 | 104 | // Copyright(c) 2021 Fredrick Allan Grott. All rights reserved.
// Use of this source code is governed by a BSD-style license.
import 'package:logging/logging.dart';
abstract class LoggerType {
Logger get logger;
}
extension LoggerSpawner on LoggerType{
Logger newLogger(String name) => Logger('${logger.fullN... | 25,341 |
https://github.com/omerwwazap/Java-Projects/blob/master/Java_Simple_Code/L12_Inheritance_demo/AnimalMain.java | Github Open Source | Open Source | MIT | 2,020 | Java-Projects | omerwwazap | Java | Code | 300 | 961 |
package labguide12.q1;
import java.util.Scanner;
public class AnimalMain {
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
Duck duck;
Zebra zebra;
int age, id, stripeCount;
String gender, beakColor;
double weight;
... | 16,008 |
https://github.com/dizhaung/SkaETL/blob/master/process-importer-impl/src/main/java/io/skalogs/skaetl/service/GenericValidator.java | Github Open Source | Open Source | Apache-2.0 | 2,018 | SkaETL | dizhaung | Java | Code | 334 | 1,517 | package io.skalogs.skaetl.service;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.node.ObjectNode;
import com.fasterxml.jackson.databind.util.ISO8601DateFormat;
import io.prometheus.client.Counter;
import io.skalogs.skaetl.domai... | 16,085 |
https://github.com/GCrispino/aprenda-go-com-testes/blob/master/criando-uma-aplicacao/linha-de-comando/v1/tape_test.go | Github Open Source | Open Source | MIT | 2,021 | aprenda-go-com-testes | GCrispino | Go | Code | 47 | 181 | package poquer
import (
"io/ioutil"
"testing"
)
func TestTape_Write(t *testing.T) {
arquivo, clean := criarArquivoTemporario(t, "12345")
defer clean()
tape := &tape{arquivo}
tape.Write([]byte("abc"))
arquivo.Seek(0, 0)
newFileContents, _ := ioutil.ReadAll(arquivo)
obtido := string(newFileContents)
esper... | 41,269 |
https://github.com/alexnogueirasilva/alanti/blob/master/index.php | Github Open Source | Open Source | MIT | null | alanti | alexnogueirasilva | PHP | Code | 75 | 290 | <?php
use App\App;
use App\Lib\Erro;
session_start();
/*
if (!isset($_SESSION['usuarioID'])) { //Verifica se há seções
session_destroy(); //Destroi a seção por segurança
header("Location: SOMVC/login.php");
exit; //Redireciona o visitante para login
}
*/
err... | 15,710 |
https://github.com/visheshc14/Evangelion/blob/master/views/channels/new.ejs | Github Open Source | Open Source | MIT | 2,021 | Evangelion | visheshc14 | EJS | Code | 102 | 763 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>New Channel</title>
<script src="https://code.jquery.com/jquery-3.6.0.min.js"
integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7... | 18,026 |
https://github.com/sdlirjc/algorithm/blob/master/js/csv-read-display/node_modules/@vaadin/common-frontend/ConnectionState.js | Github Open Source | Open Source | Apache-2.0 | 2,023 | algorithm | sdlirjc | JavaScript | Code | 433 | 1,135 | var _a;
export var ConnectionState;
(function (ConnectionState) {
/**
* Application is connected to server: last transaction over the wire (XHR /
* heartbeat / endpoint call) was successful.
*/
ConnectionState["CONNECTED"] = "connected";
/**
* Application is connected and Flow is loading... | 25,006 |
https://github.com/crazyants/forum/blob/master/Forum3/Interfaces/Services/IImageStore.cs | Github Open Source | Open Source | Unlicense | 2,018 | forum | crazyants | C# | Code | 18 | 67 | using System.Threading.Tasks;
namespace Forum3.Interfaces.Services {
using ServiceModels = Forum3.Models.ServiceModels;
public interface IImageStore {
Task<string> StoreImage(ServiceModels.ImageStoreOptions options);
}
} | 2,946 |
https://github.com/SuperCuber/dotfiles/blob/master/nvim/lua/supercuber/plugins/telescope.lua | Github Open Source | Open Source | WTFPL | 2,022 | dotfiles | SuperCuber | Lua | Code | 86 | 412 | local util = require("supercuber.util")
util.nnoremap(",e", "<cmd>Telescope find_files<cr>")
util.nnoremap(",/", "<cmd>Telescope live_grep<cr>")
util.nnoremap(",*", "<cmd>Telescope grep_string<cr>")
util.nnoremap(",b", "<cmd>Telescope buffers<cr>")
util.nnoremap(",cd", "<cmd>call v:lua.cd_picker()<cr>")
local actions... | 20,272 |
https://github.com/fuszenecker/Promptuarium/blob/master/tests/StabilityTests.cs | Github Open Source | Open Source | MIT | null | Promptuarium | fuszenecker | C# | Code | 242 | 737 | using System;
using System.IO;
using System.Threading.Tasks;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Promptuarium;
namespace PromptuariumTests
{
[TestClass]
public class StabilityTests
{
private readonly Random random = new ((int)DateTime.Now.Ticks);
[TestMethod]
... | 3,270 |
https://github.com/Nov11/statsd-client/blob/master/src/main/java/io/github/nov11/MetricSender.java | Github Open Source | Open Source | MIT | null | statsd-client | Nov11 | Java | Code | 12 | 35 | package io.github.nov11;
public interface MetricSender {
void send(String msg);
void shutdown();
}
| 49,664 |
https://github.com/baretata/JavaScript-Fundamentals/blob/master/08.Strings/04.ChangeTextCase/ChangeTextCase.js | Github Open Source | Open Source | MIT | null | JavaScript-Fundamentals | baretata | JavaScript | Code | 255 | 740 | /*
Problem 4: You are given a text. Write a function that changes the text in all regions:
<upcase>text</upcase> to uppercase.
<lowcase>text</lowcase> to lowercase
<mixcase>text</mixcase> to mix casing(random)
We are <mixcase>living</mixcase> in a <upcase>yellow submarine</upcase>. We <mixcase>don't</mixcase> have... | 37,070 |
https://github.com/PaloAltoNetworks/a3s/blob/master/ui/login/src/jwt-dialog.tsx | Github Open Source | Open Source | Apache-2.0 | 2,022 | a3s | PaloAltoNetworks | TypeScript | Code | 288 | 1,029 | import {
Alert,
AlertTitle,
Button,
Dialog,
DialogActions,
DialogContent,
DialogContentText,
Divider,
Stack,
Typography,
useMediaQuery,
} from "@mui/material"
import { useEffect, useState } from "react"
import { useVerifyJwt } from "./use-verify-jwt"
import { formatDuration, intervalToDuration } f... | 48,108 |
https://github.com/MatjazKavcic/chartjs-plugin-datalabels/blob/master/test/specs/module.spec.js | Github Open Source | Open Source | MIT | null | chartjs-plugin-datalabels | MatjazKavcic | JavaScript | Code | 63 | 216 | import Chart from 'chart.js';
describe('module', function() {
it ('should be globally exported in ChartDataLabels', function() {
expect(typeof window.ChartDataLabels).toBe('object');
});
it ('should be referenced with id "datalabels"', function() {
expect(window.ChartDataLabels.id).toBe('datalabels');
});
/... | 17,664 |
https://github.com/miggymail/DapperDemo/blob/master/ConsoleUI/Program.cs | Github Open Source | Open Source | Apache-2.0 | null | DapperDemo | miggymail | C# | Code | 1,110 | 4,302 | using Dapper;
using DataAccessLayer.Models;
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Data.SqlClient;
using System.Linq;
using System.Reflection;
namespace ConsoleUI
{
class Program
{
static void Main()
{
MapMultiple... | 46,243 |
https://github.com/YDK-Solutions/ydk/blob/master/sdk/cpp/core/tests/models/ydktest-sanity-typedefs@2018-01-30.yang | Github Open Source | Open Source | ECL-2.0, Apache-2.0 | 2,022 | ydk | YDK-Solutions | YANG | Code | 11,826 | 30,499 | module ydktest-sanity-typedefs {
yang-version 1;
namespace "http://cisco.com/ns/yang/ydktest-sanity-typedefs";
prefix top;
organization
"Cisco Systems, Inc.";
contact
"Cisco Systems, Inc.
Customer Service
Postal: 170 West Tasman Drive
San Jose, CA ... | 28,310 |
https://github.com/jackfoxy/aardvark.base/blob/master/src/Aardvark.Base/Math/Tensors/TensorMathExt_template.cs | Github Open Source | Open Source | Apache-2.0 | 2,022 | aardvark.base | jackfoxy | C# | Code | 1,769 | 4,677 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Aardvark.Base
{
public static class Vector
{
/// <summary>
/// Vector constructor from a given array that does not require to write generic type
/// </summary>
... | 35,474 |
https://github.com/chenrensong/T4/blob/master/src/Coding4Fun.VisualStudio.Telemetry/Coding4Fun.VisualStudio.RemoteSettings/IStableRemoteSettingsProvider.cs | Github Open Source | Open Source | MIT | null | T4 | chenrensong | C# | Code | 25 | 87 | using System;
namespace Coding4Fun.VisualStudio.RemoteSettings
{
internal interface IStableRemoteSettingsProvider : IRemoteSettingsProvider, ISettingsCollection, IDisposable
{
bool IsStable(string collectionPath);
void MakeStable<T>(string collectionPath, string key, T value);
}
}
| 12,543 |
https://github.com/microsoft/BuildXL/blob/master/Public/Src/FrontEnd/TypeScript.Net/TypeScript.Net.UnitTests/Parsing/NumberLiterals.cs | Github Open Source | Open Source | MIT | 2,023 | BuildXL | microsoft | C# | Code | 76 | 279 | // Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
using TypeScript.Net.Types;
using TypeScript.Net.UnitTests.Utils;
using Xunit;
namespace TypeScript.Net.UnitTests.Parsing
{
public class NumberLiterals
{
[Theory]
[InlineData("1", "1")]
[InlineData(".1", ".1")]
... | 10,375 |
https://github.com/wayshall/onetwo/blob/master/core/modules/poi/src/main/java/org/onetwo/ext/poi/excel/reader/ExtractorMapKey.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | onetwo | wayshall | Java | Code | 9 | 41 | package org.onetwo.ext.poi.excel.reader;
public interface ExtractorMapKey {
String getExtractorMapKey();
}
| 30,779 |
https://github.com/StephenMcConnel/BloomDesktop/blob/master/src/BloomExe/web/controllers/OrthographyConverter.cs | Github Open Source | Open Source | MIT | 2,022 | BloomDesktop | StephenMcConnel | C# | Code | 774 | 1,881 | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Text;
namespace Bloom.web.controllers
{
public class OrthographyConverter
{
private Dictionary<string, string> mappings;
private IOrderedEnumerable<int> keyLengthsThatHaveMappings;
#regi... | 44,330 |
https://github.com/mdznr/Genesis/blob/master/iOS/Genesis/Genesis/GNTableViewCell.h | Github Open Source | Open Source | ISC | 2,012 | Genesis | mdznr | Objective-C | Code | 21 | 69 | //
// GNTableViewCell.h
// Genesis
//
// Created by Matt on 5/22/12.
//
//
#import <UIKit/UIKit.h>
@interface GNTableViewCell : UITableViewCell
@end
| 46,268 |
https://github.com/josephweinkam/embc-ess-mod/blob/master/responders/src/UI/embc-responder/src/app/feature-components/search/evacuee-search/evacuee-id-verify/evacuee-id-verify.component.ts | Github Open Source | Open Source | Apache-2.0 | null | embc-ess-mod | josephweinkam | TypeScript | Code | 161 | 618 | import { Component, OnInit, Output, EventEmitter } from '@angular/core';
import {
AbstractControl,
FormBuilder,
FormGroup,
Validators
} from '@angular/forms';
import { EvacueeSearchContextModel } from 'src/app/core/models/evacuee-search-context.model';
import { EvacueeSearchService } from '../evacuee-search.ser... | 1,875 |
https://github.com/cisowscy-com-software/get-FTDNA-project-list/blob/master/bin/STEP_1_D_.js | Github Open Source | Open Source | BSD-3-Clause | null | get-FTDNA-project-list | cisowscy-com-software | JavaScript | Code | 533 | 2,160 | const SYS = require("./sys");
const curentDir = SYS.thisSolution();
REFACTORING();
STEP_2_INIT();
function REFACTORING() {
const START = new Date();
const rawDATA = [SYS.step1B(curentDir), SYS.step1C(curentDir)];
SYS.step1D(curentDir, [{
V_Contacts: Array.from(V_contacts().values())
... | 48,987 |
https://github.com/fdobbie/plcrashreporter/blob/master/Scripts/build-xcframework.sh | Github Open Source | Open Source | Apache-2.0 | null | plcrashreporter | fdobbie | Shell | Code | 104 | 394 | #!/bin/sh
set -e
# Build Mac Catalyst.
# Print only target name and issues. Mimic Xcode output to make prettify tools happy.
echo "=== BUILD TARGET ${PROJECT_NAME} iOS Framework OF PROJECT ${PROJECT_NAME} WITH CONFIGURATION ${CONFIGURATION} ==="
# OBJROOT must be customized to avoid conflicts with the current process.... | 50,258 |
https://github.com/UtahRapter/FossilArcheology1.7/blob/master/src/main/java/com/github/revival/common/handler/PickupHandler.java | Github Open Source | Open Source | CC-BY-4.0, LicenseRef-scancode-unknown-license-reference | 2,016 | FossilArcheology1.7 | UtahRapter | Java | Code | 130 | 869 | package com.github.revival.common.handler;
import com.github.revival.common.block.FABlockRegistry;
import com.github.revival.common.enums.EnumPrehistoric;
import com.github.revival.common.item.FAItemRegistry;
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
import cpw.mods.fml.common.gameevent.PlayerEvent;
impo... | 7,567 |
https://github.com/DockBio/utilities/blob/master/src/Utils/Utils/Math/AutomaticDifferentiation/AutomaticDifferentiationHelpers.h | Github Open Source | Open Source | BSD-3-Clause | null | utilities | DockBio | C | Code | 1,048 | 2,757 | /**
* @file
* @copyright This code is licensed under the 3-clause BSD license.\n
* Copyright ETH Zurich, Laboratory for Physical Chemistry, Reiher Group.\n
* See LICENSE.txt for details.
*/
#ifndef AUTOMATICDIFFERENTIATION_AUTOMATICDIFFERENTIATIONHELPERS_H
#define AUTOMATICDIFFERENTIATION_AU... | 49,138 |
https://github.com/dochong/beanstalk/blob/master/reader.go | Github Open Source | Open Source | MIT | 2,012 | beanstalk | dochong | Go | Code | 15 | 40 | package beanstalk
import (
"net/textproto"
)
type reader struct {
p textproto.Pipeline
id uint
}
| 36,487 |
https://github.com/zhjilin/rmap/blob/master/Scripts-HTR/9.MotifMatchesEnrichment/MetaPlot_PerMotif-distance2020April05.r | Github Open Source | Open Source | MIT | 2,020 | rmap | zhjilin | R | Code | 305 | 1,776 | #upadte 20200419, shift the coordinate of motif matches on minus strand to the first base of the motif to generate the distance to feature histogram
library(ggplot2)
library(plyr)
library(extrafont)
library(pagenum)
library(gridExtra)
#change the span size from 0.1 to 0.05, which means the only 5 % of the points used... | 42,254 |
https://github.com/adampash/coin_flip/blob/master/src/sass/app.sass | Github Open Source | Open Source | MIT | null | coin_flip | adampash | Sass | Code | 311 | 1,040 | @import "scss-mixins";
@import "typography";
@import "iframes";
body {
width: 100%;
padding: 0;
margin: 0;
.container {
max-width: 700px;
margin: 0 auto;
}
}
.front {
background: blue;
background: url(images/heads.png);
background-repeat: no-repeat;
}
.back {
background: green;
backgroun... | 17,552 |
https://github.com/marinaoliveira96/uri-algorithms/blob/master/C/1009.cpp | Github Open Source | Open Source | MIT | null | uri-algorithms | marinaoliveira96 | C++ | Code | 27 | 100 | #include<stdio.h>
int main() {
char name[15];
double salary, sales;
scanf("%s", &name);
scanf("%lf", &salary);
scanf("%lf", &sales);
printf("TOTAL = R$ %.2lf\n", salary + (sales * 0.15));
return 0;
}
| 8,979 |
https://github.com/tanishiking/dotty/blob/master/tests/neg-custom-args/no-experimental/experimentalTypes2.scala | Github Open Source | Open Source | Apache-2.0 | 2,022 | dotty | tanishiking | Scala | Code | 96 | 149 | import scala.annotation.experimental
@experimental class A
@experimental type X
@experimental type Y = Int
@experimental opaque type Z = Int
def test2: Unit =
new A // error: class A is marked @experimental and therefore ...
val i0: A = ??? // error: class A is marked @experimental and therefore ...
val i1: X =... | 45,889 |
https://github.com/iosifv/terminal-toolbelt/blob/master/sources/alpha-display.sh | Github Open Source | Open Source | MIT | 2,022 | terminal-toolbelt | iosifv | Shell | Code | 134 | 453 | #!/usr/bin/env bash
# COLOR VARIABLES
#----------------------------
C_RED=$(tput setaf 1)
C_GREEN=$(tput setaf 2)
C_YELLOW=$(tput setaf 3)
C_BLUE=$(tput setaf 4)
C_LIGHT_GREY="\033[0;37m"
C_BOLD=$(tput bold)
C_REVERSE=$(tput rev)
C_RESET=$(tput sgr0)
# stores number of columns available in the terminal
C_COLS=$(tput... | 21,253 |
https://github.com/sv-tools/bumptag/blob/master/go.mod | Github Open Source | Open Source | MIT | 2,022 | bumptag | sv-tools | Go Module | Code | 32 | 187 | module github.com/sv-tools/bumptag
go 1.17
require (
github.com/coreos/go-semver v0.3.0
github.com/golang/mock v1.6.0
github.com/stretchr/testify v1.7.1
gopkg.in/yaml.v2 v2.3.0 // indirect
)
require (
github.com/davecgh/go-spew v1.1.0 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
gopkg.in/yaml.... | 31,621 |
https://github.com/resource-watch/control-tower/blob/master/app/src/routes/api/v1/endpoint.router.js | Github Open Source | Open Source | MIT | null | control-tower | resource-watch | JavaScript | Code | 70 | 208 | const Router = require('koa-router');
const Endpoint = require('models/endpoint.model');
const logger = require('logger');
const Utils = require('utils');
const pick = require('lodash/pick');
const { getLoggedUser } = require('services/getUserFromToken.service');
const router = new Router({
prefix: '/endpoint',
})... | 44,000 |
https://github.com/percevalw/Term/blob/master/sublimeterm/sublimeterm_view_controller.py | Github Open Source | Open Source | MIT | 2,017 | Term | percevalw | Python | Code | 2,083 | 7,143 | # Copyright (C) 2016-2017 Perceval Wajsburt <perceval.wajsburt@gmail.com>
#
# This module is part of SublimeTerm and is released under
# the MIT License: http://www.opensource.org/licenses/mit-license.php
"""
##################
For a user input
|a b|c d|e f g h| BEFORE USER CHANGE -> cd surounded by view_mod_begin, vi... | 11,798 |
https://github.com/ota-meshi/stylelint4b/blob/master/packages/stylelint4b/build/script/index.js | Github Open Source | Open Source | MIT | 2,021 | stylelint4b | ota-meshi | JavaScript | Code | 350 | 1,432 | "use strict"
const fs = require("fs")
const path = require("path")
const eslint = require("../../../../node_modules/eslint")
const RULES_ROOT = path.resolve(
__dirname,
"../../node_modules/stylelint/lib/rules",
)
const REFERENCE_ROOT = path.resolve(
__dirname,
"../../node_modules/stylelint/lib/referenc... | 28,359 |
https://github.com/yii2-tools/yii2-community-cms/blob/master/default_site/modules/site/modules/design/modules/packs/source/default/templates/index.twig | Github Open Source | Open Source | MIT | null | yii2-community-cms | yii2-tools | Twig | Code | 81 | 307 |
{{ set(this, 'title', t(module('SITE'), 'Main page')) }}
{#
Example of containers activation
{{ void(this.beginBlock('containers')) }}
{{ render('_containers')|raw }}
{{ void(this.endBlock()) }}
#}
{% if app.user.identity.isAdmin or app.user.can('NEWS_ACCESS') %}
<div class="row margin-bottom-15... | 34,813 |
https://github.com/Ortus-Solutions/vagrant-lemtl/blob/master/webroot/WEB-INF/lib/lucee-server/context/library/function/throw.cfm | Github Open Source | Open Source | MIT | 2,021 | vagrant-lemtl | Ortus-Solutions | ColdFusion | Code | 243 | 476 | <!---
*
* Copyright (c) 2014, the Railo Company Ltd. All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your optio... | 38,854 |
https://github.com/smashwidget/dl-1/blob/master/adv/lathna.py | Github Open Source | Open Source | Apache-2.0 | null | dl-1 | smashwidget | Python | Code | 134 | 586 | import adv.adv_test
from adv import *
def module():
return Lathna
class Lathna(Adv):
comment = 'no poison'
a1 = ('k_poison',0.15)
conf = {}
conf['slot.d'] = slot.d.Shinobi()
conf['acl'] = """
# s1a = this.s1a
`s1a
`s2, seq = 5
`s3, seq = 5
"""
d... | 19,255 |
https://github.com/wanabe/xyzzy/blob/master/src/search.cc | Github Open Source | Open Source | RSA-MD | 2,015 | xyzzy | wanabe | C++ | Code | 4,596 | 14,150 | #include "stdafx.h"
#include "ed.h"
#include "regex.h"
#include "StrBuf.h"
#define SF_CASE_FOLD 1
#define SF_NO_DUP 2
#define SF_REVERSE 4
#define SF_TAIL 8
#define SF_LWORD 16
#define SF_RWORD 32
#define SF_LSYMBOL 64
#define SF_RSYMBOL 128
#define SF_SMART_CASE_FOLD 256
static Regexp::sregs re_regs = {-1, {-1, -1}}... | 44,778 |
https://github.com/fabiang/laminas-db/blob/master/src/TableGateway/Exception/ExceptionInterface.php | Github Open Source | Open Source | BSD-3-Clause | 2,022 | laminas-db | fabiang | PHP | Code | 11 | 44 | <?php
namespace Laminas\Db\TableGateway\Exception;
use Laminas\Db\Exception;
interface ExceptionInterface extends Exception\ExceptionInterface
{
}
| 26,812 |
https://github.com/alexandred/catarse-1/blob/master/app/controllers/channels/profiles_controller.rb | Github Open Source | Open Source | MIT | 2,013 | catarse-1 | alexandred | Ruby | Code | 36 | 129 | class Channels::ProfilesController < Channels::BaseController
layout :user_catarse_bootstrap
inherit_resources
load_and_authorize_resource only: [:edit, :update]
actions :show, :edit, :update
custom_actions resource: [:how_it_works]
def resource
@profile ||= channel
end
private
def user_catarse_... | 25,493 |
https://github.com/neckerlein/Shopware-Trainning/blob/master/html/var/cache/dev_h89d500b84530a5dcf60d76ed1a15bcf1/twig/9c/9c6ad8b9a57c737c37e42e12b1deec30743f54627d6885f5ecbf8f45bd6f5230.php | Github Open Source | Open Source | MIT | 2,021 | Shopware-Trainning | neckerlein | PHP | Code | 1,694 | 9,056 | <?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use T... | 938 |
https://github.com/aanm/proxy/blob/master/go/envoy/service/discovery/v2/sds.pb.go | Github Open Source | Open Source | Apache-2.0 | 2,019 | proxy | aanm | Go | Code | 958 | 3,590 | // Code generated by protoc-gen-go. DO NOT EDIT.
// source: envoy/service/discovery/v2/sds.proto
package v2
import (
context "context"
fmt "fmt"
v2 "github.com/cilium/proxy/go/envoy/api/v2"
proto "github.com/golang/protobuf/proto"
_ "google.golang.org/genproto/googleapis/api/annotations"
grpc "google.golang.org... | 47,612 |
https://github.com/chihsiliu1966/lcmsNET/blob/master/tests/lcmsNET.Tests/UcrBgTest.cs | Github Open Source | Open Source | MIT | 2,021 | lcmsNET | chihsiliu1966 | C# | Code | 418 | 1,238 | using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
namespace lcmsNET.Tests
{
[TestClass()]
public class UcrBgTest
{
private TestContext testContextInstance;
/// <summary>
///Gets or sets the test context which provides
///information about and functionality ... | 13,649 |
https://github.com/fatihky/fsocket/blob/master/src/core/global.h | Github Open Source | Open Source | MIT | 2,020 | fsocket | fatihky | C | Code | 13 | 60 | #pragma once
#include "../utils/thread.h"
struct fsock_thread *f_choose_thr();
void fsock_workers_lock();
void fsock_workers_unlock();
void fsock_workers_signal();
| 39,015 |
https://github.com/AlexRogalskiy/milan/blob/master/milan/milan-compilers/milan-flink-compiler/src/main/scala/com/amazon/milan/compiler/flink/runtime/IdentityFlatMapFunction.scala | Github Open Source | Open Source | Apache-2.0 | 2,022 | milan | AlexRogalskiy | Scala | Code | 68 | 315 | package com.amazon.milan.compiler.flink.runtime
import com.amazon.milan.compiler.flink.types.{RecordWrapper, RecordWrapperTypeInformation}
import org.apache.flink.api.common.functions.FlatMapFunction
import org.apache.flink.api.common.typeinfo.TypeInformation
import org.apache.flink.api.java.typeutils.ResultTypeQuerya... | 18,362 |
https://github.com/GennadyMV/otus_java_2018_10/blob/master/L12.2-web-server/src/main/java/ru/otus/login/LoginServlet.java | Github Open Source | Open Source | MIT | 2,019 | otus_java_2018_10 | GennadyMV | Java | Code | 80 | 251 | package ru.otus.login;
import ru.otus.user.UserService;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.io.PrintWriter;
public class LoginServlet extends HttpServlet {
private static final... | 41,395 |
https://github.com/google/google-ctf/blob/master/third_party/edk2/MdePkg/Include/Guid/AprioriFileName.h | Github Open Source | Open Source | LicenseRef-scancode-generic-cla, Apache-2.0, BSD-2-Clause, OpenSSL | 2,023 | google-ctf | google | C | Code | 201 | 482 | /** @file
The GUID PEI_APRIORI_FILE_NAME_GUID definition is the file
name of the PEI a priori file that is stored in a firmware
volume.
Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials
are licensed and made available under the terms and cond... | 37,362 |
https://github.com/filipcro/datagrid/blob/master/tests/Files/TestPresenter.php | Github Open Source | Open Source | MIT | 2,018 | datagrid | filipcro | PHP | Code | 39 | 163 | <?php
declare(strict_types=1);
namespace Ublaboo\DataGrid\Tests\Files;
use Mockery;
use Nette\Application\UI\ITemplate;
use Nette\Application\UI\Presenter;
final class TestPresenter extends Presenter
{
protected function createComponentGrid(): TestGridControl
{
return new TestGridControl();
}
protected func... | 47,614 |
https://github.com/SofenChowdhury/epc/blob/master/resources/js/components/Indent/addIndent.vue | Github Open Source | Open Source | MIT | null | epc | SofenChowdhury | Vue | Code | 881 | 3,221 | <!--<style>-->
<!-- .md-menu-content.md-select-menu {-->
<!-- width: auto;-->
<!-- max-width: none;-->
<!-- min-width: auto;-->
<!-- }-->
<!--</style>-->
<!--<template>-->
<!-- <div>-->
<!-- <form @submit.prevent="create">-->
<!-- <div class="row md-layout md-gutter">-->
... | 35,860 |
https://github.com/greck2908/dawnengine/blob/master/src/dawn/core/GameSession.h | Github Open Source | Open Source | MIT | 2,019 | dawnengine | greck2908 | C | Code | 235 | 672 | /*
* Dawn Engine
* Written by David Avedissian (c) 2012-2019 (git@dga.dev)
*/
#pragma once
#include "GameMode.h"
#include "core/EventSystem.h"
#include "scene/SceneManager.h"
#include "net/NetInstance.h"
#include "ui/UserInterface.h"
namespace dw {
struct DW_API GameSessionInfo {
struct CreateLocalGame {
... | 33,137 |
https://github.com/iAJTin/iXlsxWriter/blob/master/src/lib/iTin.Utilities/iTin.Utilities.Xlsx/iTin.Utilities.Xlsx.Design/Styles/Items/Cell/Content/DataType/DateTimeDataType.cs | Github Open Source | Open Source | MIT | 2,021 | iXlsxWriter | iAJTin | C# | Code | 725 | 1,986 |
namespace iTin.Utilities.Xlsx.Design.Styles
{
using System;
using System.ComponentModel;
using System.Diagnostics;
using System.Globalization;
using System.Linq;
using System.Xml.Serialization;
using Newtonsoft.Json;
using iTin.Core;
using iTin.Core.Helpers;
using iTin.Core.Mo... | 38,930 |
https://github.com/lianwt115/qmqiu_sp/blob/master/src/main/kotlin/com/lwt/qmqiu_sps1/dao/IMChatRoomDao.kt | Github Open Source | Open Source | Apache-2.0 | 2,018 | qmqiu_sp | lianwt115 | Kotlin | Code | 224 | 1,275 | package com.lwt.qmqiu_sps1.dao
import com.lwt.qmqiu_sps1.bean.BaseUser
import com.lwt.qmqiu_sps1.bean.IMChatRoom
import com.lwt.qmqiu_sps1.bean.LoginLog
import com.lwt.qmqiu_sps1.myinterface.BaseDaoInterface
import com.lwt.qmqiu_sps1.myinterface.BaseUserDaoInterface
import com.lwt.qmqiu_sps1.myinterface.IMChatRoomDaoI... | 28,099 |
https://github.com/nirvanarsc/CompetitiveProgramming/blob/master/Java/leetcode/weekly_contests/weekly_137/P_1047.java | Github Open Source | Open Source | MIT | 2,021 | CompetitiveProgramming | nirvanarsc | Java | Code | 63 | 157 | package leetcode.weekly_contests.weekly_137;
public class P_1047 {
public String removeDuplicates(String s) {
final int n = s.length();
final char[] res = new char[n];
int size = 0;
for (int i = 0; i < n; i++) {
if (size > 0 && res[size - 1] == s.charAt(i)) {
... | 19,316 |
https://github.com/git-the-cpan/CatalystX-AppBuilder/blob/master/lib/CatalystX/AppBuilder.pm | Github Open Source | Open Source | Artistic-1.0 | null | CatalystX-AppBuilder | git-the-cpan | Perl | Code | 1,330 | 3,175 | package CatalystX::AppBuilder;
use Moose;
use namespace::clean -except => qw(meta);
our $VERSION = '0.00011';
has appname => (
is => 'ro',
isa => 'Str',
required => 1,
);
has appmeta => (
init_arg => undef,
is => 'ro',
isa => 'Moose::Meta::Class',
lazy_build => 1
);
has debug => (
is... | 384 |
https://github.com/igiu1988/iOS13.4.1-Runtime-Headers/blob/master/PrivateFrameworks/ITMLKit.framework/IKCSSDeclarationInteger.h | Github Open Source | Open Source | MIT | 2,020 | iOS13.4.1-Runtime-Headers | igiu1988 | Objective-C | Code | 34 | 130 | /* Generated by EzioChiu
Image: /System/Library/PrivateFrameworks/ITMLKit.framework/ITMLKit
*/
@interface IKCSSDeclarationInteger : IKCSSDeclaration {
long long _value;
}
@property long long value;
- (id)description;
- (id)initWithParseDeclaration:(id)arg1 info:(id)arg2;
- (void)setValue:(long long)arg1;
- ... | 45,705 |
https://github.com/cmprmsd/sway-netusage/blob/master/waybar-netusage.go | Github Open Source | Open Source | Unlicense | 2,022 | sway-netusage | cmprmsd | Go | Code | 274 | 805 | // Public domain.
package main
import (
"bytes"
"flag"
"fmt"
"io/ioutil"
"net"
"regexp"
"strconv"
"strings"
"time"
"golang.org/x/net/nettest"
)
var (
iface = flag.String("interface", "", "What interface to use")
)
// stats fetches the cumulative rx/tx bytes for network interface
// iface.
func stats() (r... | 47,558 |
https://github.com/NoobTW/ui-kit/blob/master/src/components/buttons/secondary-icon-button/secondary-icon-button.spec.js | Github Open Source | Open Source | MIT | null | ui-kit | NoobTW | JavaScript | Code | 352 | 1,192 | import React from 'react';
import { shallow } from 'enzyme';
import { FilterIcon } from '../../icons';
import { SecondaryIconButton } from './secondary-icon-button';
const createTestProps = custom => ({
label: 'Accessible button',
onClick: jest.fn(),
icon: <FilterIcon />,
// HoC
isMouseOver: false,
handle... | 37,526 |
https://github.com/j5ik2o/scala-ddd-base-akka-http.g8/blob/master/src/main/g8/build.sbt | Github Open Source | Open Source | CC0-1.0 | 2,019 | scala-ddd-base-akka-http.g8 | j5ik2o | Scala | Code | 531 | 2,301 | import Dependencies._
import Utils._
import scala.concurrent.duration._
lazy val commonSettings = Seq(
scalaVersion := "2.12.7",
organization := "$organization$",
version := "1.0.0-SNAPSHOT",
libraryDependencies ++= Seq(
beachape.enumeratum,
beachape.enumeratumCirce,
typelevel.catsCore,
typelev... | 29,206 |
https://github.com/liujunsong68922/smalljava-v2/blob/master/smalljava-core/src/com/smalljava/core/classloader/JavaClassStaticInstanceMap.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | smalljava-v2 | liujunsong68922 | Java | Code | 118 | 592 | package com.smalljava.core.classloader;
import java.util.HashMap;
import com.smalljava.core.classloader.l2_class.vo.JavaClassStaticInstanceVO;
import com.smalljava.core.common.logging.Logger;
import com.smalljava.core.common.logging.LoggerFactory;
/**
* MEMO:这个类用来存放所有的JavaClassStaticInstance
* MEMO:每个类只能有一个实例,暂时不考... | 33,063 |
https://github.com/nagineni/chromium-crosswalk/blob/master/chrome_frame/test/url_request_test.cc | Github Open Source | Open Source | BSD-3-Clause-No-Nuclear-License-2014, BSD-3-Clause | 2,021 | chromium-crosswalk | nagineni | C++ | Code | 717 | 3,771 | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <atlbase.h>
#include <atlcom.h>
#include "base/bind.h"
#include "base/bind_helpers.h"
#include "chrome/common/automation_messages.h"
#includ... | 11,097 |
https://github.com/ryanberger/BostonUniversityCoursework/blob/master/CS683_Mobile_App_Dev/PowerCostEstimator/src/edu/bu/powercostestimator/DatabaseAdapter.java | Github Open Source | Open Source | MIT | 2,016 | BostonUniversityCoursework | ryanberger | Java | Code | 591 | 1,859 | package edu.bu.powercostestimator;
import java.util.ArrayList;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.SQLException;
import android.database.sqlite.SQLiteDatabase;
/**
* Adapter class for accessing PowerCostEstimator database.
*/... | 28,549 |
https://github.com/RichiCoder1/aws-cdk/blob/master/packages/@aws-cdk/aws-efs/lib/access-point.ts | Github Open Source | Open Source | Apache-2.0 | 2,022 | aws-cdk | RichiCoder1 | TypeScript | Code | 911 | 2,118 | import { ArnFormat, IResource, Resource, Stack } from '@aws-cdk/core';
import { Construct } from 'constructs';
import { IFileSystem } from './efs-file-system';
import { CfnAccessPoint } from './efs.generated';
/**
* Represents an EFS AccessPoint
*/
export interface IAccessPoint extends IResource {
/**
* The ID ... | 15,539 |
https://github.com/Micmaz/DTIControls/blob/master/DTIServerControl/DTIServerBaseDesigner.vb | Github Open Source | Open Source | MIT | null | DTIControls | Micmaz | Visual Basic | Code | 172 | 624 | Imports System
Imports System.Collections.Generic
Imports System.ComponentModel
Imports System.Text
Imports System.Web
Imports System.Web.UI
Imports System.Web.UI.WebControls
Imports System.Web.SessionState
Imports BaseClasses
Imports DTIMiniControls
Imports HighslideControls
''' <summary>
''' Design time support clas... | 42,851 |
https://github.com/Signiant/open-api/blob/master/go/porcelain/netlify_client.go | Github Open Source | Open Source | MIT, LicenseRef-scancode-unknown-license-reference | 2,017 | open-api | Signiant | Go | Code | 122 | 413 | package porcelain
import (
"github.com/go-openapi/runtime"
"github.com/go-openapi/strfmt"
"github.com/netlify/open-api/go/plumbing"
)
const DefaultSyncFileLimit = 7000
const DefaultConcurrentUploadLimit = 10
// Default netlify HTTP client.
var Default = NewHTTPClient(nil)
// NewHTTPClient creates a new netlify H... | 38,003 |
https://github.com/The-hated-one/chroma-react/blob/master/src/icons/lined/PhoneForwarded.tsx | Github Open Source | Open Source | MIT | 2,021 | chroma-react | The-hated-one | TSX | Code | 30 | 79 | import { PhoneForwarded as FeatherPhoneForwarded, Props } from 'react-feather';
import * as React from 'react';
export const PhoneForwarded: React.FC<Props> = ({ ...rootProps }) => (
<FeatherPhoneForwarded data-icon="phoneforwarded" {...rootProps} />
);
| 5,771 |
https://github.com/animesh/misccb/blob/master/rangt.py | Github Open Source | Open Source | BSL-1.0 | 2,015 | misccb | animesh | Python | Code | 10 | 18 | print [(i + 2) % 3 for i in range(4)]
| 43,383 |
https://github.com/hadis2512/digitalk/blob/master/resources/views/super_admin/admins/add.blade.php | Github Open Source | Open Source | MIT | 2,021 | digitalk | hadis2512 | Blade | Code | 187 | 1,007 | @section('head')
@include('layouts.head')
@show
<body class="font-regular">
@section('loader')
@include('layouts.loader')
@show
@section('admin_nav')
@include('layouts.admin_nav')
@show
<div class="admin-body" style="margin-left: 260px;">
<div class="uk-container" style="padding-top: 20px;">
@se... | 40,741 |
https://github.com/dapangchi/laravel-vitality/blob/master/resources/views/frontend/account/profile/left.blade.php | Github Open Source | Open Source | MIT | 2,016 | laravel-vitality | dapangchi | Blade | Code | 109 | 539 | <div class="pm-overview c-overflow">
<div class="pmo-pic">
<div class="p-relative">
<a href="">
<img class="img-responsive" src="{{ asset('assets/frontend/img/temp/profile-pic-2.jpg') }}" alt="">
</a>
<div class="dropdown pmop-message">
... | 13,492 |
https://github.com/jeffmm/take_two/blob/master/v4-unit-tests/examples/example.cpp | Github Open Source | Open Source | MIT | null | take_two | jeffmm | C++ | Code | 22 | 62 | #include <iostream>
#include <take_two/take_two.hpp>
int main() {
std::cout << "7 + 4 = " << TakeTwo::Add(7, 4) << std::endl;
return 0;
}
| 10,639 |
https://github.com/Poketnans/capstone-q3/blob/master/app/controllers/clients_controllers/post_create.py | Github Open Source | Open Source | MIT | null | capstone-q3 | Poketnans | Python | Code | 139 | 544 | from http import HTTPStatus
from flask import jsonify
from psycopg2.errors import UniqueViolation
from sqlalchemy.exc import IntegrityError
from sqlalchemy.orm import Session
import werkzeug.exceptions
from app.classes.app_with_db import current_app
from app.models.clients_model import Client
from app.decorators impor... | 21,449 |
https://github.com/josh-barker/terraform-provider-azuredevops/blob/master/azuredevops/internal/service/taskagent/resource_agent_queue_test.go | Github Open Source | Open Source | MIT | 2,022 | terraform-provider-azuredevops | josh-barker | Go | Code | 322 | 1,512 | //go:build all || resource_agent_queue
// +build all resource_agent_queue
package taskagent
import (
"context"
"errors"
"strconv"
"testing"
"github.com/golang/mock/gomock"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
"github.com/microsoft/azure-devops-go-api/azuredevops/v6/taskagent"
"github.... | 27,548 |
https://github.com/maximilianotulian/frontend-freakcampus/blob/master/src/lib-vuex/specialities/getters.js | Github Open Source | Open Source | Apache-2.0 | null | frontend-freakcampus | maximilianotulian | JavaScript | Code | 11 | 30 | export default {
getSelectedSpeciality: state => {
return state.specialities.selectedSpeciality
}
} | 7,342 |
https://github.com/weiwei91/springboot/blob/master/springboot-webservice/src/main/java/com/example/springbootwebservice/config/client/WsClient.java | Github Open Source | Open Source | MIT | 2,021 | springboot | weiwei91 | Java | Code | 38 | 193 | package com.example.springbootwebservice.config.client;
import com.example.springbootwebservice.domain.GetCountryRequest;
import com.example.springbootwebservice.domain.GetCountryResponse;
import org.springframework.ws.client.core.support.WebServiceGatewaySupport;
public class WsClient extends WebServiceGatewaySuppor... | 7,054 |
https://github.com/dram/metasfresh/blob/master/backend/de.metas.payment.esr/src/main/sql/postgresql/system/5477390_sys_gh2944_ESR_Wrong_Post_Bank_Acct_Message_Updated.sql | Github Open Source | Open Source | RSA-MD | 2,022 | metasfresh | dram | SQL | Code | 30 | 125 | -- 2017-11-16T18:35:43.463
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Message SET MsgText='Die Postbank-Konten dieses ESR-Importdatensatzes passen nicht zum Konto {0} der Import-Zeile.',Updated=TO_TIMESTAMP('2017-11-16 18:35:43','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Message_ID... | 50,407 |
https://github.com/ale-cci/demo-oauth-openid/blob/master/backend/auth.py | Github Open Source | Open Source | MIT | null | demo-oauth-openid | ale-cci | Python | Code | 98 | 332 | from lib import flask_db
import hashlib
import string
import random
class AuthException(Exception):
pass
def _hash_matches(hashval, password):
chunks = hashval.split('$')
if len(chunks) != 3:
raise AuthException('Wrong password format')
_, salt, _ = hashval.split('$')
return hash_password... | 45,507 |
https://github.com/jkreft-usgs/whitewater-gauges/blob/master/wsgi/wwosflaskapp.py | Github Open Source | Open Source | MIT | 2,016 | whitewater-gauges | jkreft-usgs | Python | Code | 692 | 2,312 | # WWOSFLASKAPP.PY
# Main application code for WWOS
#
# Copyright Gordon Haff 2013
# Released under MIT License http://opensource.org/licenses/MIT
import os
import io
import sys
import string
from flask import Flask
from flask import request
from flask import render_template
import pymongo
import json
from bson import... | 21,771 |
https://github.com/SkyMcl/spring-framework-main/blob/master/spring-my-test/src/main/java/com/mclgyh/spring/annotition/MyAnnotition.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | spring-framework-main | SkyMcl | Java | Code | 63 | 253 | package com.mclgyh.spring.annotition;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;
import java.util.Map;
/**
* @Author: 牟春雷
* @Description:
* @Date: 17:22 2021/7/29
*... | 22,995 |
https://github.com/nhatminhship/shipthongminh/blob/master/routes/web.php | Github Open Source | Open Source | MIT | 2,017 | shipthongminh | nhatminhship | PHP | Code | 615 | 3,855 | <?php
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| ... | 13,893 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.