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/mcagov/beacons/blob/master/webapp/test/gateways/NextAuthUserSessionGateway.test.ts | Github Open Source | Open Source | MIT | 2,021 | beacons | mcagov | TypeScript | Code | 112 | 378 | import { GetServerSidePropsContext } from "next";
import client from "next-auth/client";
import { NextAuthUserSessionGateway } from "../../src/gateways/NextAuthUserSessionGateway";
jest.mock("next-auth/client");
const mockedNextAuthClient = client as jest.Mocked<typeof client>;
describe("NextAuthUserSessionGateway", ... | 6,318 |
https://github.com/EKarton/PhotoManager/blob/master/src/frontend/gui/services/BackendService.java | Github Open Source | Open Source | MIT | 2,019 | PhotoManager | EKarton | Java | Code | 505 | 1,183 | package frontend.gui.services;
import backend.commands.CommandManager;
import backend.commands.RenamePictureCommand;
import backend.models.AppSettings;
import backend.models.Picture;
import backend.models.PictureManager;
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
/**
* This... | 38,995 |
https://github.com/mojitoinc/mojito-mixers/blob/master/app/src/lib/components/shared/Number/Number.tsx | Github Open Source | Open Source | MIT | 2,022 | mojito-mixers | mojitoinc | TypeScript | Code | 61 | 171 | import React from "react";
interface NumberProps {
as?: React.ElementType;
children: number;
prefix?: string;
suffix?: string;
}
export const Number: React.FC<NumberProps> = ({
as: Wrapper = "span",
children,
prefix = "",
suffix = "",
}) => {
const numberFormat = new Intl.NumberFormat("en-US", {
... | 15,694 |
https://github.com/andyWynyard/skeleton-react/blob/master/src/lib/components/atoms/label/Label.js | Github Open Source | Open Source | MIT | 2,019 | skeleton-react | andyWynyard | JavaScript | Code | 99 | 268 | import React from 'react'
import classNames from 'classnames'
import styled from 'styled-components'
import PropTypes from 'prop-types'
const Wrapper = styled.label`
display: ${props => (props.inline ? 'inline-block' : 'block')};
margin-bottom: ${props => (props.inline ? '0' : '0.5rem')};
margin-left: ${props =>... | 13,099 |
https://github.com/lechium/tvOS124Headers/blob/master/System/Library/PrivateFrameworks/DataAccess.framework/Frameworks/DAEAS.framework/ASItemOperationsFetchCommand.h | Github Open Source | Open Source | MIT | 2,021 | tvOS124Headers | lechium | C | Code | 67 | 220 | /*
* This header is generated by classdump-dyld 1.0
* on Saturday, August 24, 2019 at 9:47:20 PM Mountain Standard Time
* Operating System: Version 12.4 (Build 16M568)
* Image Source: /System/Library/PrivateFrameworks/DataAccess.framework/Frameworks/DAEAS.framework/DAEAS
* classdump-dyld is licensed under GPLv3, Copyri... | 7,357 |
https://github.com/zifken/Tagger/blob/master/Classes/Tagging/RenamingFilesController.h | Github Open Source | Open Source | Apache-2.0 | 2,016 | Tagger | zifken | Objective-C | Code | 59 | 228 | //
// RenamingFiles.h
// Tagger
//
// Created by Bilal Syed Hussain on 01/08/2011.
// Copyright 2011 All rights reserved.
//
#import <Foundation/Foundation.h>
@class FileSystemNodeCollection;
@class FileSystemNode;
@interface RenamingFilesController : NSWindowController {
@private
IBOutlet NSWindow *window;
... | 39,106 |
https://github.com/JetBrains/intellij-community/blob/master/plugins/kotlin/idea/tests/testData/intentions/importMember/TopLevelFun.kt | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-unknown-license-reference | 2,023 | intellij-community | JetBrains | Kotlin | Code | 17 | 87 | // INTENTION_TEXT: "Add import for 'kotlin.test.assertFailsWith'"
// RUNTIME_WITH_KOTLIN_TEST
fun foo() {
kotlin.test.<caret>assertFailsWith<Exception>("", {})
kotlin.test.assertFailsWith(RuntimeException::class, "", {})
}
| 55,416 |
https://github.com/ghmer/wuerfelhelfer/blob/master/src/main/java/link/parzival/dsa/object/FernwaffenObjekt.java | Github Open Source | Open Source | MIT | null | wuerfelhelfer | ghmer | Java | Code | 347 | 940 | /**
*
*/
package link.parzival.dsa.object;
import java.util.ArrayList;
import java.util.List;
import link.parzival.dsa.object.enumeration.FernwaffenTypEnum;
/**
* @author Mario Enrico Ragucci
*
*/
public class FernwaffenObjekt {
private String name = null;
private FernwaffenTypEnum... | 46,768 |
https://github.com/1282127821/summer-1/blob/master/constant/src/main/scala/com/code/server/constant/response/RoomDoudizhuVo.java | Github Open Source | Open Source | MIT | 2,021 | summer-1 | 1282127821 | Java | Code | 59 | 202 | package com.code.server.constant.response;
/**
* Created by sunxianping on 2018/4/23.
*/
public class RoomDoudizhuVo extends RoomVo {
public int jiaoScoreMax;
public int shuanglong;
public int getJiaoScoreMax() {
return jiaoScoreMax;
}
public RoomDoudizhuVo setJiaoScoreMax(int jiaoScore... | 40,058 |
https://github.com/Quasim14/movieswatch/blob/master/WebContent/WEB-INF/accesRefuser.jsp | Github Open Source | Open Source | MIT | 2,019 | movieswatch | Quasim14 | null | Spoken | 2 | 18 |
<h1>Acces Refusť</h1>
| 45,149 |
https://github.com/jtnord/git-forensics-plugin/blob/master/plugin/src/test/java/io/jenkins/plugins/forensics/git/miner/DiffsCollectorITest.java | Github Open Source | Open Source | MIT | 2,022 | git-forensics-plugin | jtnord | Java | Code | 688 | 2,842 | package io.jenkins.plugins.forensics.git.miner;
import java.io.IOException;
import java.util.List;
import org.eclipse.jgit.api.Git;
import org.eclipse.jgit.lib.Repository;
import org.eclipse.jgit.treewalk.AbstractTreeIterator;
import org.eclipse.jgit.treewalk.EmptyTreeIterator;
import org.junit.Test;
import edu.hm.h... | 23,364 |
https://github.com/mobileteamdev/vide-web/blob/master/src/app/tabs/settings-tab.js | Github Open Source | Open Source | MIT | 2,019 | vide-web | mobileteamdev | JavaScript | Code | 974 | 4,059 | var yo = require('yo-yo')
var csjs = require('csjs-inject')
var remixLib = require('../../../vide_modules/vide-lib')
const defaultPlugins = require('../plugin/plugins')
var globalRegistry = require('../../global/registry')
var tooltip = require('../ui/tooltip')
var copyToClipboard = require('../ui/copy-to-clipboard')
... | 4,327 |
https://github.com/Vovan-VE/html-template/blob/master/tests/unit/compile/cases/syntax-errors/13.html-attribute-duplicate.t | Github Open Source | Open Source | MIT | null | html-template | Vovan-VE | Perl | Code | 22 | 44 | Lorem <img src="" Src="" /> ipsum
<img src="" alt="" src=""/> dolor
---- THROW% ----
HTML attribute `src` is duplicated near `/> dolor`
| 8,988 |
https://github.com/edwinbadillo/komga/blob/master/komga-webui/src/types/themes.ts | Github Open Source | Open Source | MIT | 2,022 | komga | edwinbadillo | TypeScript | Code | 14 | 37 | export enum Theme {
LIGHT = 'theme.light',
DARK = 'theme.dark',
SYSTEM = 'theme.system'
}
| 51,316 |
https://github.com/wingkwong/cli/blob/master/api/pull_request_test.go | Github Open Source | Open Source | MIT | 2,023 | cli | wingkwong | Go | Code | 103 | 392 | package api
import (
"encoding/json"
"testing"
"github.com/stretchr/testify/assert"
)
func TestPullRequest_ChecksStatus(t *testing.T) {
pr := PullRequest{}
payload := `
{ "statusCheckRollup": { "nodes": [{ "commit": {
"statusCheckRollup": {
"contexts": {
"nodes": [
{ "state": "SUCCESS" },
{ ... | 38,275 |
https://github.com/mic47/platypuslol/blob/master/scripts/platypus-lol.service | Github Open Source | Open Source | LicenseRef-scancode-warranty-disclaimer | 2,023 | platypuslol | mic47 | null | Spoken | 15 | 86 | [Unit]
Description=Platypus Lol! Smart redirect service.
After=network.target
[Install]
WantedBy=default.target
[Service]
ExecStart=${HOME}/.local/bin/platypus-lol --link-config ${HOME}/.config/platypus-lol/commands.json --port 3047
| 3,100 |
https://github.com/martinferianc/GANs-EIE4/blob/master/src/gan.py | Github Open Source | Open Source | MIT | 2,021 | GANs-EIE4 | martinferianc | Python | Code | 273 | 1,139 | import numpy as np
import matplotlib.pyplot as plt
import os
import json
from keras.utils import to_categorical
from keras.models import load_model
class GAN(object):
""" Generic GAN Class
"""
def __init__(self, name):
self.img_shape = (28, 28, 1)
self.noise_dim = 100
self.class_... | 17,955 |
https://github.com/codeperfector/joss/blob/master/src/main/java/org/javaswift/joss/client/core/AccountPaginationMap.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | joss | codeperfector | Java | Code | 25 | 106 | package org.javaswift.joss.client.core;
import org.javaswift.joss.model.Account;
import org.javaswift.joss.model.Container;
public class AccountPaginationMap extends AbstractListHolderPaginationMap<Container> {
public AccountPaginationMap(Account account, String prefix, Integer pageSize) {
super(account,... | 55,160 |
https://github.com/shilpabharamanaik/shilpazend3Fisdap/blob/master/public/js/library/Account/View/Helper/order-summary-student.js | Github Open Source | Open Source | BSD-3-Clause | null | shilpazend3Fisdap | shilpabharamanaik | JavaScript | Code | 19 | 67 | $(function(){
var currentCost = parseInt($("#cost").text());
$("#cost").text(formatPrice(currentCost));
// add decimal, make it a string
function formatPrice(cost){
return cost.toFixed(2).toString();
}
}); | 2,482 |
https://github.com/m-marini/linprog/blob/master/build.sbt | Github Open Source | Open Source | MIT | 2,020 | linprog | m-marini | Scala | Code | 223 | 840 | import sbt.Keys._
//lazy val GatlingTest = config("gatling") extend Test
scalaVersion := "2.11.8"
libraryDependencies += "com.netaporter" %% "scala-uri" % "0.4.14"
libraryDependencies += "net.codingwell" %% "scala-guice" % "4.1.0"
libraryDependencies += "com.github.scala-incubator.io" %% "scala-io-file" % "0.4.3-1"
... | 28,845 |
https://github.com/MadsKirkFoged/SharpFluids/blob/master/UnitTest5/FunctionalityTests.cs | Github Open Source | Open Source | MIT | 2,023 | SharpFluids | MadsKirkFoged | C# | Code | 2,365 | 17,748 | using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Newtonsoft.Json;
using SharpFluids;
//using UnitsNet;
using EngineeringUnits;
using System.Diagnostics;
using System.Collections.Generic;
using System.Threading.Tasks;
using Serilog;
namespace UnitsTests
{
[TestClass]
public class Functio... | 37,772 |
https://github.com/ddi-lab/generion-mobileclient/blob/master/src/redux/orders/types.js | Github Open Source | Open Source | MIT | 2,018 | generion-mobileclient | ddi-lab | JavaScript | Code | 30 | 136 | export const CREATE_ORDER_REQUEST = 'orders/CREATE_ORDER_REQUEST';
export const CREATE_ORDER_SUCCESS = 'orders/CREATE_ORDER_SUCCESS';
export const CREATE_ORDER_FAILURE = 'orders/CREATE_ORDER_FAILURE';
export const GET_ALL_ORDERS_REQUEST = 'orders/GET_ALL_ORDERS_REQUEST';
export const GET_ALL_ORDERS_SUCCESS = 'orders/G... | 5,483 |
https://github.com/outmindkjg/ngx3js/blob/master/src/app/examples/webgl-materials-channels/webgl-materials-channels.component.ts | Github Open Source | Open Source | MIT | 2,021 | ngx3js | outmindkjg | TypeScript | Code | 81 | 283 | import { Component } from '@angular/core';
import { NgxBaseComponent } from 'ngx3js';
@Component({
selector: 'app-webgl-materials-channels',
templateUrl: './webgl-materials-channels.component.html',
styleUrls: ['./webgl-materials-channels.component.scss'],
})
export class WebglMaterialsChannelsComponent extends Ngx... | 9,039 |
https://github.com/Huongahihi/Web_PTTK/blob/master/backend/modules/music/controllers/ApiController.php | Github Open Source | Open Source | BSD-3-Clause | null | Web_PTTK | Huongahihi | PHP | Code | 123 | 452 | <?php
namespace backend\modules\music\controllers;
// use ApiController;
/**
* Default controller for the `api` module
*/
class ApiController extends \backend\controllers\ApiController
{
/**
* Renders the index view for the module
* @return string
*/
public function actions()
{
... | 43,884 |
https://github.com/MaxFork/ombre/blob/master/src/ringct/bulletproofs.h | Github Open Source | Open Source | BSD-3-Clause | 2,019 | ombre | MaxFork | C | Code | 251 | 547 | // Copyright (c) 2018, Ombre Cryptocurrency Project
// Copyright (c) 2018, Ryo Currency Project
// Portions copyright (c) 2014-2018, The Monero Project
//
// Portions of this file are available under BSD-3 license. Please see ORIGINAL-LICENSE for details
// All rights reserved.
//
// Ombre changes to this code are in p... | 31,341 |
https://github.com/yosoyvilla/protractor-cucumber-gherkin/blob/master/test/e2e/speakerregistration/stepone.page.ts | Github Open Source | Open Source | MIT | 2,017 | protractor-cucumber-gherkin | yosoyvilla | TypeScript | Code | 26 | 67 | import { browser, element, by, protractor, ElementArrayFinder } from 'protractor';
import { promise as wdpromise } from 'selenium-webdriver';
export class StepOnePageObject {
constructor() {
}
}
| 14,736 |
https://github.com/capricorn86/happy-dom/blob/master/packages/happy-dom/src/dom-token-list/IDOMTokenList.ts | Github Open Source | Open Source | MIT | 2,023 | happy-dom | capricorn86 | TypeScript | Code | 60 | 190 | /**
* IDOMTokenList.
*/
export default interface IDOMTokenList {
value: string;
readonly length: number;
item(index: number | string): string;
contains(token: string): boolean;
add(...tokens: string[]): void;
remove(...tokens: string[]): void;
toggle(token: string, force?: boolean): boolean;
replace(token: st... | 4,884 |
https://github.com/hmrc/xi-eori-common-component-frontend/blob/master/app/uk/gov/hmrc/xieoricommoncomponentfrontend/forms/ContactAddressLookupFormProvider.scala | Github Open Source | Open Source | Apache-2.0 | null | xi-eori-common-component-frontend | hmrc | Scala | Code | 147 | 452 | /*
* Copyright 2021 HM Revenue & Customs
*
* 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 a... | 44,813 |
https://github.com/briangshea/node-socketwatcher/blob/master/.gitignore | Github Open Source | Open Source | MIT, LicenseRef-scancode-unknown-license-reference | 2,019 | node-socketwatcher | briangshea | Ignore List | Code | 6 | 28 | package/
build/
npm-debug.log
.lock-wscript
node_modules
*.node
| 48,177 |
https://github.com/steiner2001/react_vs_websharper_UI_Performance/blob/master/implementations/angular-12.1.4/src/app/app.module.ts | Github Open Source | Open Source | BSD-3-Clause | 2,020 | react_vs_websharper_UI_Performance | steiner2001 | TypeScript | Code | 101 | 299 | import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { StoreModule } from '@ngrx/store';
import { StoreDevtoolsModule } from '@ngrx/store-devtools';
import { FormsModule } from '@angular/forms';
import { AppComponent } from './components/app/app.component';
import... | 35,511 |
https://github.com/egovernment/eregistrations/blob/master/apps-common/query-conf/service.js | Github Open Source | Open Source | MIT | 2,018 | eregistrations | egovernment | JavaScript | Code | 52 | 180 | 'use strict';
var db = require('../../db')
, uncapitalize = require('es5-ext/string/#/uncapitalize')
, stringify = JSON.stringify
, servicesMap;
servicesMap = db.BusinessProcess.extensions.map(function (ServiceType) {
return uncapitalize.call(ServiceType.__id__.slice('BusinessProcess'.length));
})... | 10,171 |
https://github.com/kaamilmirza/Medical-Centres-and-schemes/blob/master/medical_app_vnr/lib/application_change.dart | Github Open Source | Open Source | MIT | 2,021 | Medical-Centres-and-schemes | kaamilmirza | Dart | Code | 39 | 166 | import 'package:flutter/cupertino.dart';
import 'package:geolocator/geolocator.dart';
import 'services/geolocator_services.dart';
class ApplicationBloc with ChangeNotifier{
final geoLocatorService = GeolocatorService();
//variables
Position currentLocation;
double longitude, latitude;
ApplicationBloc(){... | 47,087 |
https://github.com/JaehyunShim/ros2_tutorial_cpp/blob/master/docs/html/search/all_6.js | Github Open Source | Open Source | Apache-2.0, GPL-2.0-or-later, LicenseRef-scancode-unknown, LicenseRef-scancode-unknown-license-reference | 2,021 | ros2_tutorial_cpp | JaehyunShim | JavaScript | Code | 9 | 239 | var searchData=
[
['server_20',['Server',['../classservice__tutorial__cpp_1_1Server.html',1,'service_tutorial_cpp']]],
['setupassistanttutorial_21',['SetupAssistantTutorial',['../classsetup__assistant__tutorial_1_1SetupAssistantTutorial.html',1,'setup_assistant_tutorial']]],
['subscriber_22',['Subscriber',['../cl... | 34,238 |
https://github.com/cutls/Cuckoo.Plus/blob/master/src/assets/themes/extend-color.less | Github Open Source | Open Source | MIT | null | Cuckoo.Plus | cutls | Less | Code | 2 | 15 | @grey150: #f2f2f2;
| 40,947 |
https://github.com/rockstar016/reliantdispatch/blob/master/app/src/main/java/com/rock/reliantdispatch/Main/Profile/ProfileFragment.java | Github Open Source | Open Source | Apache-2.0 | null | reliantdispatch | rockstar016 | Java | Code | 224 | 950 | package com.rock.reliantdispatch.Main.Profile;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.View;
import android.view.ViewGroup;
import com.rock.reli... | 33,947 |
https://github.com/Mr-Pine/XKCDFeed/blob/master/app/src/main/java/de/mr_pine/xkcdfeed/composables/main/Card.kt | Github Open Source | Open Source | Apache-2.0 | 2,021 | XKCDFeed | Mr-Pine | Kotlin | Code | 858 | 2,658 | package de.mr_pine.xkcdfeed.composables.main
import androidx.compose.foundation.ExperimentalFoundationApi
import androidx.compose.foundation.Image
import androidx.compose.foundation.clickable
import androidx.compose.foundation.combinedClickable
import androidx.compose.foundation.layout.*
import androidx.compose.materi... | 26,367 |
https://github.com/hcastillopnt/Viper-Punto-de-Venta/blob/master/Viper/Viper.DesktopApp/frmShoppingCart.cs | Github Open Source | Open Source | MIT | 2,018 | Viper-Punto-de-Venta | hcastillopnt | C# | Code | 1,361 | 5,649 | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using System.Windows.Forms;
using Telerik.WinControls.UI;
using ... | 9,828 |
https://github.com/hoatrana3/osip-web-app/blob/master/front-end/src/lngProvider/entries/vi-VN.js | Github Open Source | Open Source | MIT | 2,019 | osip-web-app | hoatrana3 | JavaScript | Code | 24 | 80 | import appLocaleData from 'react-intl/locale-data/vi';
import viMessages from '../locales/vi_VN.json';
const ViLang = {
messages: {
...viMessages
},
locale: 'vi-VN',
data: appLocaleData
};
export default ViLang;
| 3,081 |
https://github.com/ihedy/FNetwork/blob/master/src/com/myflexhero/network/core/util/resize/ObjectHandles.as | Github Open Source | Open Source | MIT | null | FNetwork | ihedy | null | Spoken | 5,357 | 14,991 | /**
* Latest information on this project can be found at http://www.rogue-development.com/objectHandles.html
*
* Copyright (c) 2010 Marc Hughes
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to d... | 55,311 |
https://github.com/roboticslibrary/rl/blob/master/src/rl/plan/GnatNearestNeighbors.cpp | Github Open Source | Open Source | BSD-3-Clause, BSD-2-Clause | 2,023 | rl | roboticslibrary | C++ | Code | 378 | 1,376 | //
// Copyright (c) 2009, Markus Rickert
// All rights reserved.
//
// Redistribution and use 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 list of condit... | 12,381 |
https://github.com/hx/rack-traffic-logger/blob/master/lib/rack/traffic_logger/formatter.rb | Github Open Source | Open Source | MIT | 2,020 | rack-traffic-logger | hx | Ruby | Code | 18 | 64 | require_relative 'formatter/stream'
require_relative 'formatter/json'
module Rack
class TrafficLogger
class Formatter
def format(hash)
raise NotImplementedError
end
end
end
end
| 48,729 |
https://github.com/GoogleCloudPlatform/cloud-build-local/blob/master/vendor/google.golang.org/genproto/googleapis/cloud/dialogflow/v2beta1/audio_config.pb.go | Github Open Source | Open Source | Apache-2.0 | 2,022 | cloud-build-local | GoogleCloudPlatform | Go | Code | 1,988 | 7,095 | // Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/cloud/dialogflow/v2beta1/audio_config.proto
package dialogflow
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
_ "google.golang.org/genproto/googleapis/api/annotations"
math "math"
)
// Reference imports to suppress errors if they are... | 33,725 |
https://github.com/pratapdd/-microfe/blob/master/APP-libs/ui-components/lib/icons/SvgInstagram.d.ts | Github Open Source | Open Source | MIT | null | -microfe | pratapdd | TypeScript | Code | 16 | 66 | import * as React from 'react';
declare function SvgSvgInstagram(props: React.SVGProps<SVGSVGElement>): JSX.Element;
export default SvgSvgInstagram;
//# sourceMappingURL=SvgInstagram.d.ts.map | 53,745 |
https://github.com/hqstevenson/example-camel-osgi-service-testing/blob/master/blueprint-consumer/src/test/java/com/pronoia/osgi/service/stub/StubServiceImplementation.java | Github Open Source | Open Source | Apache-2.0 | 2,016 | example-camel-osgi-service-testing | hqstevenson | Java | Code | 31 | 133 | package com.pronoia.osgi.service.stub;
import com.pronoia.osgi.service.MyServiceInterface;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class StubServiceImplementation implements MyServiceInterface{
Logger log = LoggerFactory.getLogger(this.getClass());
@Override
public String execute(... | 32,130 |
https://github.com/hostcontrol/django-configurable-tables/blob/master/src/django_tables/__init__.py | Github Open Source | Open Source | MIT | null | django-configurable-tables | hostcontrol | Python | Code | 16 | 51 | from __future__ import absolute_import
from django_tables.base import (
get_tables,
Row,
Table,
)
from django_tables.views import ConfigurableTableView
| 18,111 |
https://github.com/MateuszLas421/DHwD_web/blob/master/Models/Request/Base/BaseSolution.cs | Github Open Source | Open Source | MIT | 2,020 | DHwD_web | MateuszLas421 | C# | Code | 36 | 84 | using System;
using System.Collections.Generic;
using System.Text;
namespace Models.Request.Base
{
public class BaseSolution
{
public int Id_Place { get; set; }
public int Id_Team { get; set; }
public string TextSolution { get; set; }
}
}
| 8,352 |
https://github.com/Armandrave/PPE2_BTS-GSBFRAIS/blob/master/app/Http/Controllers/ajouterVisiteurController.php | Github Open Source | Open Source | MIT | null | PPE2_BTS-GSBFRAIS | Armandrave | PHP | Code | 133 | 717 | <?php
namespace App\Http\Controllers;
use App\Facades\PdoGsb as FacadesPdoGsb;
use Illuminate\Http\Request;
use PdoGsb;
use MyDate;
use Carbon\Carbon;
use PDO;
class ajouterVisiteurController extends Controller{
function getFormulaire(Request $request){
if( session('gestionnaire') != null){
... | 20,846 |
https://github.com/fShigueru/sf2-angular/blob/master/src/Admin/PaginaBundle/Form/PaginaType.php | Github Open Source | Open Source | BSD-3-Clause, MIT | 2,018 | sf2-angular | fShigueru | PHP | Code | 191 | 712 | <?php
namespace Admin\PaginaBundle\Form;
use Admin\ImageBundle\Form\ImageType;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolverInterface;
class PaginaType extends AbstractType
{
/**
* @param FormBuilderInterface $... | 37,322 |
https://github.com/MootezSaaD/RecruitmentSystemMobile/blob/master/app/src/main/java/tn/medtech/recruitmentsystemapp/ui/Authentication/Register/RecruiterRegisterActivity.java | Github Open Source | Open Source | MIT | null | RecruitmentSystemMobile | MootezSaaD | Java | Code | 170 | 915 | package tn.medtech.recruitmentsystemapp.ui.Authentication.Register;
import android.app.Activity;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.widget.Button;
import android.widget.Toast;
import androidx.appcompat.app.AppCompatActivity;
import com.go... | 18,058 |
https://github.com/camporter/Torque3D/blob/master/Engine/source/platform/test/testThreadSafeDeque.cpp | Github Open Source | Open Source | Unlicense | 2,021 | Torque3D | camporter | C++ | Code | 1,258 | 3,251 | //-----------------------------------------------------------------------------
// Copyright (c) 2012 GarageGames, LLC
//
// 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 restrictio... | 52,763 |
https://github.com/osvaldokalvaitir/reactjs-rocketfy/blob/master/src/components/Card/styles.js | Github Open Source | Open Source | MIT, LicenseRef-scancode-unknown-license-reference | 2,023 | reactjs-rocketfy | osvaldokalvaitir | JavaScript | Code | 116 | 362 | import styled, { css } from 'styled-components';
export const Container = styled.div`
position: relative;
background: #FFF;
border-radius: 5px;
margin-bottom: 10px;
padding: 15px;
box-shadow: 0 1px 4px 0 rgba(192, 208, 230, 0.8);
border-top: 20px solid rgba(230, 236, 245, 0.4);
cursor: grab;
header ... | 30,243 |
https://github.com/pauby/PSModuleBuildHelper/blob/master/source/public/Get-SourcePath.ps1 | Github Open Source | Open Source | MIT | 2,018 | PSModuleBuildHelper | pauby | PowerShell | Code | 228 | 578 | #.ExternalHelp PSModuleBuildHelper-help.xml
function Get-SourcePath {
<#
.SYNOPSIS
Gets the source path of the module.
.DESCRIPTION
Gets the source path of the module under the project root. The source
path can be called any one of the following:
- source
- s... | 16,373 |
https://github.com/xNekOIx/Bongo/blob/master/code/BNGView.h | Github Open Source | Open Source | MIT | 2,014 | Bongo | xNekOIx | Objective-C | Code | 36 | 120 | //
// BNGView.h
// NativeBarcodeRecognizer
//
// Created by Kostya Bychkov on 1/8/14.
// Copyright (c) 2014 NekOI. All rights reserved.
//
#import <UIKit/UIKit.h>
#import <AVFoundation/AVFoundation.h>
@interface BNGView : UIView
@property (strong, nonatomic) AVCaptureSession* session;
@end
| 26,853 |
https://github.com/limoengroen/ember-waterwheel-app/blob/master/app/templates/components/login-form.hbs | Github Open Source | Open Source | MIT | 2,017 | ember-waterwheel-app | limoengroen | null | Spoken | 31 | 142 | {{#bs-form model=this onSubmit=(action 'authenticate') as |form|}}
{{form.element label="Username" property="username" required=true}}
{{form.element label="Password" controlType="password" property="password" required=true}}
{{bs-button defaultText="Log in" type="primary" buttonType="submit"}}
{{#if errorMess... | 56,396 |
https://github.com/phpMv/ubiquity-php-pm/blob/master/src/PHPPM/Ubiquity.php | Github Open Source | Open Source | Apache-2.0 | null | ubiquity-php-pm | phpMv | PHP | Code | 225 | 870 | <?php
namespace PHPPM;
use PHPPM\Bridges\BridgeInterface;
use Psr\Http\Message\ResponseInterface;
use Psr\Http\Message\ServerRequestInterface;
use Ubiquity\utils\http\foundation\Psr7;
use Ubiquity\utils\http\foundation\ReactHttp;
/**
* PHP-PM Http bootstrap for Ubiquity.
* PHPPM$Ubiquity
* This class is part of Ub... | 18,991 |
https://github.com/xagau/edge-react-gui/blob/master/src/modules/UI/scenes/Scan/PrivateKeyModal/PrivateKeyModalReducer.js | Github Open Source | Open Source | BSD-3-Clause | null | edge-react-gui | xagau | JavaScript | Code | 141 | 458 | // @flow
import { combineReducers } from 'redux'
import type { Action } from '../../../../ReduxTypes.js'
import { primaryModal } from './PrimaryModal/PrimaryModalReducer.js'
import { secondaryModal } from './SecondaryModal/SecondaryModalReducer.js'
import { SWEEP_PRIVATE_KEY_START, SWEEP_PRIVATE_KEY_SUCCESS, SWEEP_PR... | 8,460 |
https://github.com/DmitriyLy/travel_portal/blob/master/db/bookmarks_comments_attachments_copy.sql | Github Open Source | Open Source | Apache-2.0 | 2,017 | travel_portal | DmitriyLy | null | Spoken | 442 | 1,745 | --
INSERT ALL
INTO BOOKMARKS VALUES(user_id, label_id)
INTO COMMENTS VALUES(COMMENTS_SEQ.NEXTVAL, user_id, label_id, TO_DATE('2.11.2016', 'DD.MM.YYYY'), 'Неплохо.')
INTO ATTACHMENTS VALUES(ATTACHMENTS_SEQ.NEXTVAL, user_id, label_id, 'test1.png')
SELECT
USERS.ID AS user_id,
LABELS.ID AS label_id
FROM... | 5,255 |
https://github.com/caseymcc/SoAGameData/blob/master/Data/UI/slider_style.lua | Github Open Source | Open Source | MIT | 2,022 | SoAGameData | caseymcc | Lua | Code | 54 | 202 | local SliderStyle = {}
function SliderStyle.set(s)
Slider.setSlideColor(s, 16, 190, 239, 250)
Slider.setBarColor(s, 128, 128, 128, 170)
Slider.setSlideDimensions(s, 30, 15)
Slider.setHeight(s, 15)
end
function SliderStyle.make(name, rMin, rMax, callback)
local s = Form.makeSlider(this, name, 0, 0, 100, 15)
... | 241 |
https://github.com/xoolive/kiosque/blob/master/kiosque/website/lefigaro.py | Github Open Source | Open Source | MIT | 2,021 | kiosque | xoolive | Python | Code | 47 | 178 | from ..core.website import Website
class LeFigaro(Website):
base_url = "https://www.lefigaro.fr/"
article_node = "div", {"class": "fig-body"}
clean_nodes = ["div", "svg", ("p", {"class": "fig-body-link"})]
def author(self, url):
e = self.bs4(url)
author = e.find("a", {"class": "fig-c... | 41,470 |
https://github.com/sibvisions/flutterclient/blob/master/lib/src/ui/layout/layout/flow_layout/flow_layout_model.dart | Github Open Source | Open Source | Apache-2.0 | 2,022 | flutterclient | sibvisions | Dart | Code | 85 | 323 | import '../../../container/co_container_widget.dart';
import '../../i_alignment_constants.dart';
import '../layout_model.dart';
class FlowLayoutModel extends LayoutModel<String> {
int horizontalAlignment = IAlignmentConstants.ALIGN_CENTER;
int verticalAlignment = IAlignmentConstants.ALIGN_CENTER;
int orientati... | 28,184 |
https://github.com/olsonkr/OOUX/blob/master/src/app/register/less/register.less | Github Open Source | Open Source | MIT | 2,016 | OOUX | olsonkr | Less | Code | 24 | 108 | #COMPONENT_Register {
height:100vh;
display:flex;
align-items:center;
justify-content: center;
background-color:@component-register-bg;
.panel-body {
padding-bottom: 0;
}
.panel-footer {
padding-top: 0;
}
.help-block {
display: none;
}
} | 29,841 |
https://github.com/xyzr0482/webgl-pano/blob/master/client/js/reducers/index.js | Github Open Source | Open Source | MIT | 2,016 | webgl-pano | xyzr0482 | JavaScript | Code | 57 | 146 | import scene from './scene';
import dimensions from './dimensions';
import pano from './pano';
import hotspots from './hotspots';
import ui from './ui';
const initialState = {
};
export default function (state = initialState, action) {
return {
scene: scene(state, 'scene', action),
dimensions: dimensions(st... | 33,452 |
https://github.com/Anlon-Burke/vespa/blob/master/config-model/src/main/java/com/yahoo/searchdefinition/OnnxModels.java | Github Open Source | Open Source | Apache-2.0 | null | vespa | Anlon-Burke | Java | Code | 187 | 595 | // Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.searchdefinition;
import com.yahoo.config.application.api.FileRegistry;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
import java.util.Optional;
/**
* ONNX model... | 54,332 |
https://github.com/billyswifty/caboose-store/blob/master/app/assets/javascripts/caboose_store/cart.js | Github Open Source | Open Source | MIT | 2,014 | caboose-store | billyswifty | JavaScript | Code | 672 | 2,010 | //
// Cart
//
// :: Initialize
// :: Open
// :: Bind Events
// :: Close
// :: Add
// :: Update
// :: Remove
var CabooseCart = function() {
var self = this;
//
// Initialize
//
self.initialize = function() {
$.ajax({
url: '/cart/items',
type: 'get',
success: function(response) {
... | 54,748 |
https://github.com/YehudaEi/AutoIt-Attachment/blob/master/Attachments/28K-29K/8000-9000/28462/ping.au3 | Github Open Source | Open Source | MIT | 2,021 | AutoIt-Attachment | YehudaEi | null | Spoken | 212 | 682 | #include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#include <GuiEdit.au3>
#include <Constants.au3>
#include <WinAPI.au3>
#Region ### START Koda GUI section ### Form=
$Form1_1 = GUICreate("Ping", 587, 461, 192, 124)
$Button1 = GUICtrlCreateButton("P... | 3,561 |
https://github.com/CagdasErturk/defold/blob/master/engine/script/src/script_msg.h | Github Open Source | Open Source | LicenseRef-scancode-other-permissive | 2,020 | defold | CagdasErturk | C++ | Code | 20 | 77 | #ifndef DM_SCRIPT_MSG_H
#define DM_SCRIPT_MSG_H
extern "C"
{
#include <lua/lua.h>
}
namespace dmScript
{
void InitializeMsg(lua_State* L);
}
#endif // DM_SCRIPT_MSG_H
| 16,872 |
https://github.com/vinsmain/EldritchHorrorV2/blob/master/app/src/main/java/ru/mgusev/eldritchhorror/ui/adapter/dice/DiceItemHolder.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | EldritchHorrorV2 | vinsmain | Java | Code | 235 | 1,292 | package ru.mgusev.eldritchhorror.ui.adapter.dice;
import androidx.core.content.ContextCompat;
import androidx.recyclerview.widget.RecyclerView;
import android.view.View;
import android.view.animation.Animation;
import android.view.animation.AnimationUtils;
import butterknife.BindView;
import butterknife.ButterKnife;
... | 41,358 |
https://github.com/pantao/standards-book/blob/master/electrode/samples/quick-start-component/packages/quick-start-component/esm/components/quick-start-component.js | Github Open Source | Open Source | MIT | null | standards-book | pantao | JavaScript | Code | 138 | 425 | import _classCallCheck from "babel-runtime/helpers/classCallCheck";
import _possibleConstructorReturn from "babel-runtime/helpers/possibleConstructorReturn";
import _inherits from "babel-runtime/helpers/inherits";
// This is a bundled demo
// you should remove this to work on
// your own component.
import React from "... | 35,678 |
https://github.com/AlexisHolyoak/ciard/blob/master/app/InfraestructureType.php | Github Open Source | Open Source | MIT | null | ciard | AlexisHolyoak | PHP | Code | 18 | 65 | <?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class InfraestructureType extends Model
{
//
public function infrastructures(){
return $this->hasMany(InfraestructureInfo::class);
}
}
| 14,469 |
https://github.com/EIDSS/EIDSS-Legacy/blob/master/EIDSS v6/eidss.smartphone.web/Controllers/HomeController.cs | Github Open Source | Open Source | BSD-2-Clause | 2,017 | EIDSS-Legacy | EIDSS | C# | Code | 191 | 780 | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web;
using System.Web.Http;
using System.Web.Mvc;
using eidss.smartphone.web.Utils;
using eidss.smartphone.web.Models;
using System.Xml.Linq;
using System.Xml;
using bv.common.Resou... | 2,994 |
https://github.com/binchencoder/ease-gateway/blob/master/gateway/internal/descriptor/apiconfig/apiconfig.pb.go | Github Open Source | Open Source | BSD-3-Clause | 2,021 | ease-gateway | binchencoder | Go | Code | 756 | 3,149 | // Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.23.0
// protoc v3.12.3
// source: gateway/internal/descriptor/apiconfig/apiconfig.proto
package apiconfig
import (
proto "github.com/golang/protobuf/proto"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
proto... | 22,905 |
https://github.com/IDarky/TBMod/blob/master/addons/skins/configs/CfgVehicles.hpp | Github Open Source | Open Source | MIT | null | TBMod | IDarky | C++ | Code | 2,708 | 16,682 | /*
Part of the TBMod ( https://github.com/TacticalBaconDevs/TBMod )
Developed by http://tacticalbacon.de
Author: Eric, IDarky
*/
#define addCategoryBLU(EDITORSUB) editorCategory = "EdCat_TB_skins"; \
editorSubcategory = EdSubcat_TB_skins_##EDITORSUB; \
faction = "BLU_F"; \
... | 35,139 |
https://github.com/kerocode/upstream-material2/blob/master/src/demo-app/a11y/snack-bar/snack-bar-a11y.ts | Github Open Source | Open Source | MIT | 2,021 | upstream-material2 | kerocode | TypeScript | Code | 44 | 177 | import {Component} from '@angular/core';
import {MatSnackBar} from '@angular/material';
@Component({
moduleId: module.id,
selector: 'snack-bar-a11y',
templateUrl: 'snack-bar-a11y.html',
})
export class SnackBarAccessibilityDemo {
constructor(private snackBar: MatSnackBar) {}
openDiscoPartySnackBar() {
t... | 5,262 |
https://github.com/dpsanders/aern/blob/master/aern-fnreps/src/FnReps/FunctionAbstraction.hs | Github Open Source | Open Source | BSD-2-Clause, BSD-3-Clause | 2,015 | aern | dpsanders | Haskell | Code | 41 | 105 | module FnReps.FunctionAbstraction where
--import Numeric.AERN.MPFRBasis.Interval
import Numeric.AERN.DoubleBasis.Interval
type RA = DI
class (Floating fn) => RF fn where
evalMI :: fn -> RA -> RA
constFn :: RA -> fn
idFn :: fn
weierstrassFn :: fn
primitiveFn :: fn -> fn
| 11,461 |
https://github.com/jirutka/esh/blob/master/.gitignore | Github Open Source | Open Source | MIT | 2,022 | esh | jirutka | Ignore List | Code | 3 | 16 | /*.1
tests/*.err
tests/*.err2
| 719 |
https://github.com/marscore/hhvm/blob/master/hphp/test/slow/traits/2076.php | Github Open Source | Open Source | Zend-2.0, PHP-3.01, MIT | 2,019 | hhvm | marscore | PHP | Code | 48 | 118 | <?php
trait U {
public function test() {
echo __CLASS__ . "\n";
$this->foo();
yield null;
}
}
class D {
use U;
protected function foo() {
echo "U::foo\n";
}
}
<<__EntryPoint>>
function main_2076() {
$obj = new D;
$x = $obj->test();
foreach ($x as $v) {
}
}
| 55,724 |
https://github.com/adamschoenemann/sqlite/blob/master/ios/Plugin/Database.swift | Github Open Source | Open Source | MIT | 2,021 | sqlite | adamschoenemann | Swift | Code | 1,640 | 4,711 | //
// Database.swift
// Plugin
//
// Created by Quéau Jean Pierre on 26/11/2020.
// Copyright © 2020 Max Lynch. All rights reserved.
//
import Foundation
enum DatabaseError: Error {
case filePath(message: String)
case open(message: String)
case close(message: String)
case getVersion(message: Stri... | 26,683 |
https://github.com/michael2221807/Diggy/blob/master/Assets/Low Poly Trees Pack/Tree Assets/Prefabs/Trees/LOD/No_Bottoms/Oak_Trees/Oak_Tree_NoLeaves_crk_l_01_LOD.prefab | Github Open Source | Open Source | MIT | 2,021 | Diggy | michael2221807 | Unity3D Asset | Code | 2,216 | 9,247 | %YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1 &115082
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 411988}
- component: {fileID: 13659064}
m_Layer: 0
m_Na... | 17,280 |
https://github.com/JulienSisi/Mastering-Kotlin/blob/master/Chapter04/src/Sealed.kt | Github Open Source | Open Source | MIT | 2,022 | Mastering-Kotlin | JulienSisi | Kotlin | Code | 60 | 136 |
sealed class ViewState
object Loading : ViewState()
data class Loaded(val article: Article) : ViewState()
class Error(val error: Throwable?) : ViewState()
fun getLogMessage(state: ViewState) : String {
return when (state) {
Loading -> "is loading"
is Loaded -> "is loaded"
is Error -> "err... | 44,037 |
https://github.com/olleolleolle/combustion/blob/master/lib/combustion/databases/sqlite.rb | Github Open Source | Open Source | MIT | null | combustion | olleolleolle | Ruby | Code | 70 | 219 | # frozen_string_literal: true
require "fileutils"
require "pathname"
class Combustion::Databases::SQLite < Combustion::Databases::Base
private
def create
if exists?
warn "#{config["database"]} already exists"
return
end
establish_connection configuration
connection
rescue StandardE... | 43,691 |
https://github.com/budvinchathura/quill/blob/master/encoder/com.cpp | Github Open Source | Open Source | MIT | null | quill | budvinchathura | C++ | Code | 58 | 187 | #include "com.hpp"
#include <stdexcept>
void copyToComOutBuffer(std::size_t ¤t_size, uint64_t *buffer, custom_dense_hash_map *counts)
{
if (current_size != (*counts).size())
{
throw std::invalid_argument("Hashmap size is not equal to the buffer size");
}
custom_dense_hash_map::iterator it = (*count... | 2,108 |
https://github.com/epfl-lara/stainless/blob/master/core/src/main/scala/stainless/ast/Trees.scala | Github Open Source | Open Source | Apache-2.0 | 2,023 | stainless | epfl-lara | Scala | Code | 117 | 307 | /* Copyright 2009-2021 EPFL, Lausanne */
package stainless
package ast
trait Trees
extends inox.ast.Trees
with Definitions
with Expressions
with Types
with Constructors
with Deconstructors
with TreeOps { self =>
type Symbol = ast.Symbol
type SymbolIdentifier = ast.SymbolIdentifier... | 33,335 |
https://github.com/oz1cz/DFB/blob/master/tex/Makefile | Github Open Source | Open Source | MIT | 2,019 | DFB | oz1cz | Makefile | Code | 22 | 71 | .DELETE_ON_ERROR:
.PHONY: force
../dfb.pdf: force
php replaceittex.php HERREN d +v +f +s +o > y.tex
rubber -m xelatex y.tex
cp y.pdf $@
| 37,204 |
https://github.com/lanyuzd/tank-game-server/blob/master/admin/src/main/resources/static/precache-manifest.05b98b05d8d94e4a0f793b582c131255.js | Github Open Source | Open Source | Apache-2.0 | null | tank-game-server | lanyuzd | JavaScript | Code | 264 | 2,206 | self.__precacheManifest = (self.__precacheManifest || []).concat([
{
"revision": "a223527f0aee2b68fdec",
"url": "/css/app.9fc6c55f.css"
},
{
"revision": "7a3e1f1b306096218d48",
"url": "/css/chunk-079aba5e.faec5796.css"
},
{
"revision": "bb459045731da685636a",
"url": "/css/chunk-0eefae9... | 50,046 |
https://github.com/iantal/AndroidPermissions/blob/master/apks/playstore_apps/com_spotify_music/app/smali_classes2/gut.smali | Github Open Source | Open Source | Apache-2.0 | 2,019 | AndroidPermissions | iantal | Smali | Code | 3,272 | 17,493 | .class public final Lgut;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Lcom/spotify/mobile/android/connect/ConnectManager;
# instance fields
.field final a:Landroid/content/Context;
.field b:Z
.field c:Lcom/spotify/mobile/android/connect/ConnectManager$ConnectManagerState;
.field d:Ljav... | 12,527 |
https://github.com/wysoh/argo/blob/master/workflow/controller/throttler_test.go | Github Open Source | Open Source | Apache-2.0 | 2,020 | argo | wysoh | Go | Code | 179 | 855 | package controller
import (
"testing"
"time"
"github.com/stretchr/testify/assert"
"k8s.io/client-go/util/workqueue"
)
func TestNoParallelismSamePriority(t *testing.T) {
queue := workqueue.NewRateLimitingQueue(workqueue.DefaultControllerRateLimiter())
throttler := NewThrottler(0, queue)
throttler.Add("c", 0,... | 30,806 |
https://github.com/frozi1581/arrayyan/blob/master/assets/admin/less/plugins/_nicescroll.less | Github Open Source | Open Source | MIT | null | arrayyan | frozi1581 | Less | Code | 18 | 73 | /* ========================================================================
* NICESCROLL
* ======================================================================= */
.nicescroll-rails{
&#ascrail2000-hr{
display: none !important;
}
div{
.border-radius(0px) !important;
}
} | 43,848 |
https://github.com/UbuntuEvangelist/actor-platform/blob/master/actor-server/actor-rpc-api/src/main/scala/im/actor/server/api/rpc/service/configs/ConfigsServiceImpl.scala | Github Open Source | Open Source | Apache-2.0 | null | actor-platform | UbuntuEvangelist | Scala | Code | 164 | 649 | package im.actor.server.api.rpc.service.configs
import akka.actor.ActorSystem
import akka.util.Timeout
import im.actor.api.rpc._
import im.actor.api.rpc.configs.{ ApiParameter, ConfigsService, ResponseGetParameters, UpdateParameterChanged }
import im.actor.api.rpc.misc.ResponseSeq
import im.actor.server.db.DbExtension... | 5,399 |
https://github.com/Venthe/Personal-Development-Pipeline/blob/master/projects/Worker-Images/Pipeline-Mediator/src/main/java/eu/venthe/pipeline/pipeline_mediator/core/model/vo/EventStatus.java | Github Open Source | Open Source | MIT | 2,023 | Personal-Development-Pipeline | Venthe | Java | Code | 14 | 99 | package eu.venthe.pipeline.pipeline_mediator.core.model.vo;
public enum EventStatus {
REGISTERED_FOR_PROCESSING,
PIPELINE_TRIGGERED,
RETRY_REQUIRED,
SKIPPED,
PIPELINE_FAILED,
PIPELINE_COMPLETED,
UNDELIVERABLE;
}
| 43,519 |
https://github.com/pinodex/auth0-PHP/blob/master/tests/MockApi.php | Github Open Source | Open Source | MIT | null | auth0-PHP | pinodex | PHP | Code | 263 | 684 | <?php
namespace Auth0\Tests;
use Auth0\SDK\API\Authentication;
use Auth0\SDK\API\Management;
use GuzzleHttp\Psr7\Request;
/**
* Class MockApi
*
* @package Auth0\Tests
*/
class MockApi
{
/**
* Guzzle request history container for mock API.
*
* @var array
*/
protected $requestHistory = ... | 11,827 |
https://github.com/wangscript007/geelato-ui/blob/master/geealto-aui-admin-pro3/src/runtime/EditingFileParser.js | Github Open Source | Open Source | MIT | 2,020 | geelato-ui | wangscript007 | JavaScript | Code | 671 | 2,622 | /* eslint-disable no-useless-constructor */
import ActionHandler from './ActionHandler'
/**
* 解析pageFile配置信息,构建对象树、绑定事件
* 用于页面设计器及页面执行器
*/
export default class EditingFileParser {
constructor() {
}
init($root) {
this.actionHandlerInstance = new ActionHandler($root)
return this
}
convertSourceTo... | 42,423 |
https://github.com/r2bapps/validator.js/blob/master/es/lib/isBoolean.js | Github Open Source | Open Source | MIT | 2,022 | validator.js | r2bapps | JavaScript | Code | 18 | 52 | import assertString from './util/assertString';
export default function isBoolean(str) {
assertString(str);
return ['true', 'false', '1', '0'].indexOf(str) >= 0;
} | 41,297 |
https://github.com/librespot-org/librespot-java/blob/master/lib/src/main/java/xyz/gianlu/librespot/common/Base62.java | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, Apache-2.0 | 2,023 | librespot-java | librespot-org | Java | Code | 997 | 2,458 | /*
* Copyright 2021 devgianlu
*
* 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... | 10,996 |
https://github.com/benhalverson/date-fns.org/blob/master/Makefile | Github Open Source | Open Source | MIT | null | date-fns.org | benhalverson | Makefile | Code | 32 | 175 | start:
env NODE_ENV=development node_modules/.bin/babel-node app/env/dev
test-lint:
node_modules/.bin/standard --verbose | node_modules/.bin/snazzy
test-unit:
env NODE_ENV=test node_modules/.bin/babel-node node_modules/.bin/karma start config/karma.js --single-run
test-unit-watch:
env NODE_ENV=test node_modules/... | 44,370 |
https://github.com/dl2k84/DeepZoomViewer/blob/master/src/liang/don/dzviewer/viewer/DeepZoomViewer.scala | Github Open Source | Open Source | MIT, LicenseRef-scancode-unknown-license-reference | 2,011 | DeepZoomViewer | dl2k84 | Scala | Code | 406 | 797 | package liang.don.dzviewer.viewer
import swing.Frame
import liang.don.dzviewer.tile.{ImageTile, Tile}
/**
* Viewer for DeepZoom images.
*
* @author Don Liang
* @Version 0.1, 14/09/2011
*/
abstract class DeepZoomViewer() {
/**
* Cache and store the downloaded thumbnail tile so it can be displayed.
*
*... | 22,300 |
https://github.com/skit-ai/lute/blob/master/lute/node/utils.py | Github Open Source | Open Source | MIT | 2,021 | lute | skit-ai | Python | Code | 269 | 636 | """
Some utitlies for nodes
"""
import types
from typing import Callable, List, Union
from lute.exceptions import ResolutionException
from lute.node import Node
from pydash import py_
NodeId = Union[str, Node]
def _resolve_filter(i: NodeId, items, fn):
filtered = [it for it in items if fn(it)]
if len(filte... | 54,557 |
https://github.com/froyomu/imsdk-android/blob/master/imsdk/src/main/java/com/qunar/im/ui/presenter/views/IBuddyView.java | Github Open Source | Open Source | MIT | 2,022 | imsdk-android | froyomu | Java | Code | 71 | 275 | package com.qunar.im.ui.presenter.views;
/**
* Created by saber on 15-12-4.
*/
public interface IBuddyView {
/**
* 显示对方设置的问题
* @param question
*/
void setQuestion(String question);
/**
* @param mode 要添加好友的隐私模式 //0 全部拒绝 1.人工认证 2.答案认证 3.全部接收
* @return
*/
String updateVie... | 11,641 |
https://github.com/Amjad50/NoteApp/blob/master/app/src/main/java/com/amjad/opennote/utils/Utils.kt | Github Open Source | Open Source | MIT | 2,020 | NoteApp | Amjad50 | Kotlin | Code | 77 | 323 | package com.amjad.opennote.utils
import android.content.Context
import android.view.View
import android.view.inputmethod.InputMethodManager
import android.widget.ImageView
import androidx.core.content.ContextCompat
import androidx.databinding.BindingAdapter
import com.bumptech.glide.Glide
import java.io.File
fun requ... | 24,161 |
https://github.com/Wyn-Price/Minify/blob/master/Forge/src/main/java/com/wynprice/minify/mixin/MixinClientChunkCache.java | Github Open Source | Open Source | CC0-1.0 | null | Minify | Wyn-Price | Java | Code | 37 | 140 | package com.wynprice.minify.mixin;
import net.minecraft.client.multiplayer.ClientChunkCache;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.gen.Accessor;
//For some reason Access Transformers / Access Wideners don't mix together in joined.
//Therefore, this mixin has to appear twice
@Mix... | 33,867 |
https://github.com/superm1/operating-system/blob/master/buildroot/package/python-snappy/python-snappy.mk | Github Open Source | Open Source | Apache-2.0 | 2,022 | operating-system | superm1 | Makefile | Code | 26 | 175 | ################################################################################
#
# python-snappy
#
################################################################################
PYTHON_SNAPPY_VERSION = 0.5.4
PYTHON_SNAPPY_SITE = https://files.pythonhosted.org/packages/45/35/65d9f8cc537129894b4b32647d80212d1fa34287... | 5,556 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.