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/cnsuhao/fcppt/blob/master/test/math/matrix/operators.cpp | Github Open Source | Open Source | BSL-1.0 | 2,016 | fcppt | cnsuhao | C++ | Code | 139 | 762 | // Copyright Carl Philipp Reh 2009 - 2016.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#include <fcppt/math/matrix/comparison.hpp>
#include <fcppt/math/matrix/output.hpp>
#include <fcpp... | 17,955 |
https://github.com/DrAntoine/over-cutted/blob/master/dev/overcutted3.0/overcutted_3/overcutted_3/RecetteManager.h | Github Open Source | Open Source | MIT | 2,021 | over-cutted | DrAntoine | C | Code | 51 | 241 | #pragma once
#include <stdlib.h>
#include <vector>
#include <SFML/Graphics.hpp>
#include "Recette.h"
#include "DeplacableManager.h"
#include "TextureManager.h"
class RecetteManager
{
private:
std::vector<Recette*> m_recettes;
TextureManager* m_textureManager;
DeplacableManager* m_deplacableManager;
unsigned int m_... | 12,572 |
https://github.com/cooperka/stealth/blob/master/spec/flow/state_spec.rb | Github Open Source | Open Source | MIT | null | stealth | cooperka | Ruby | Code | 311 | 1,163 | # coding: utf-8
# frozen_string_literal: true
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
describe Stealth::Flow::State do
class SuperFlowMap
include Stealth::Flow
flow :new_todo do
state :new
state :get_due_date
state :created, fails_to: :new
state :create... | 1,064 |
https://github.com/amanjaiswalofficial/infinity-reads-frontend/blob/master/src/components/BlogDialog/blogDialog.js | Github Open Source | Open Source | MIT | null | infinity-reads-frontend | amanjaiswalofficial | JavaScript | Code | 281 | 1,099 | // Library imports
import React, {useState, useEffect, useContext} from 'react';
import Modal from '@material-ui/core/Modal';
import Box from '@material-ui/core/Box'
import Backdrop from '@material-ui/core/Backdrop';
import Fade from '@material-ui/core/Fade';
import TextField from '@material-ui/core/TextField'
import T... | 43,626 |
https://github.com/kevcodex/SwiftyScripts/blob/master/Sources/Source/JIRA/PurgerConfig.swift | Github Open Source | Open Source | MIT | 2,019 | SwiftyScripts | kevcodex | Swift | Code | 98 | 280 | //
// PurgerConfig.swift
//
//
// Created by Kevin Chen on 7/15/19.
//
import Foundation
struct PurgerConfig: Codable {
let branchFolder: String
let jira: Jira
init(from decoder: Decoder) throws {
let container = try decoder.container(keyedBy: RootKeys.self)
let purgerCon... | 26,846 |
https://github.com/jason4151/salt/blob/master/states/base/cis/amazon_linux-2_0_0/3_2_7-enable_rp_filter.sls | Github Open Source | Open Source | MIT | 2,022 | salt | jason4151 | null | Spoken | 23 | 82 | # 3.2.7 Ensure Reverse Path Filtering is enabled (Scored)
net.ipv4.conf.all.rp_filter:
sysctl:
- present
- value: 1
net.ipv4.conf.default.rp_filter:
sysctl:
- present
- value: 1
| 56,473 |
https://github.com/anomalylabs/settings-module/blob/master/src/Setting/Command/GetDefaultValue.php | Github Open Source | Open Source | MIT | 2,018 | settings-module | anomalylabs | PHP | Code | 127 | 368 | <?php namespace Anomaly\SettingsModule\Setting\Command;
use Anomaly\Streams\Platform\Support\Resolver;
use Illuminate\Contracts\Config\Repository;
/**
* Class GetDefaultValue
*
* @link http://fritzandandre.com
* @author Brennon Loveless <brennon@fritzandandre.com>
*/
class GetDefaultValue
{
... | 44,795 |
https://github.com/copslock/broadcom_cpri/blob/master/sdk-6.5.16/src/soc/phy/fcmap/src/bfcmap_io.c | Github Open Source | Open Source | Spencer-94 | null | broadcom_cpri | copslock | C | Code | 157 | 684 | /*
*
* This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file.
*
* Copyright 2007-2019 Broadcom Inc. All rights reserved.
*/
#include <bfcmap.h>
#include <bfcmap_int.h>
/***************************************************************... | 7,926 |
https://github.com/ParanoidUser/codewars-handbook/blob/master/kata/6-kyu/data-compression-using-run-length-encoding/test/RunLengthEncodingTests.java | Github Open Source | Open Source | MIT | 2,023 | codewars-handbook | ParanoidUser | Java | Code | 44 | 307 | import static org.junit.jupiter.api.Assertions.assertEquals;
import org.junit.jupiter.api.Test;
class RunLengthEncodingTests {
@Test
void testEncode() {
assertEquals("1A", RunLengthEncoding.encode("A"));
assertEquals("3A", RunLengthEncoding.encode("AAA"));
assertEquals("1A1B", RunLengthEncoding.encode... | 4,642 |
https://github.com/kai33/hibernate-validator/blob/master/engine/src/test/java/org/hibernate/validator/test/cfg/MarathonConstraintValidator.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | hibernate-validator | kai33 | Java | Code | 74 | 220 | /*
* Hibernate Validator, declare and validate application constraints
*
* License: Apache License, Version 2.0
* See the license.txt file in the root directory or <http://www.apache.org/licenses/LICENSE-2.0>.
*/
package org.hibernate.validator.test.cfg;
import javax.validation.ConstraintValidator;
import javax.v... | 11,710 |
https://github.com/418sec/licia/blob/master/lib/demo.js | Github Open Source | Open Source | MIT | 2,021 | licia | 418sec | JavaScript | Code | 225 | 705 | const { each, fs } = require('licia');
const comTranspiler = require('eustia-component');
const {
mkdir,
fileExist,
readTpl,
eustiaBuild,
resolvePath
} = require('./util');
const modData = require('../index.json');
const demoData = [];
each(modData, function(val, key) {
if (val.demo) demoDat... | 13,073 |
https://github.com/sejoker/code-splitting-example/blob/master/src/components/code/CodeComponent.js | Github Open Source | Open Source | MIT | 2,017 | code-splitting-example | sejoker | JavaScript | Code | 42 | 112 | import React, { Component } from "react";
import { Code, CodeBlock } from "cf-component-code";
import "./code.css";
class CodeComponent extends Component {
render() {
return (
<div>
<p>Look at this <Code>inline code</Code>!</p>
<CodeBlock>And this code block!</CodeBlock>
</div>
);... | 10,777 |
https://github.com/intuition-robotics/thunderstorm/blob/master/google-services/src/main/app-backend/modules/AuthModule.ts | Github Open Source | Open Source | Apache-2.0 | 2,021 | thunderstorm | intuition-robotics | TypeScript | Code | 188 | 595 | /**
* Created by tacb0ss on 07/05/2018.
*/
import {
ImplementationMissingException,
Module,
NotImplementedYetException
} from "@intuitionrobotics/ts-common";
import {
JWT,
GoogleAuth,
JWTInput,
} from "google-auth-library";
import {JWTOptions} from "google-auth-library/build/src/auth/jwtclient";
import {OAuth2... | 31,162 |
https://github.com/BenMusch/shift/blob/master/ui/app/models/shift_file.rb | Github Open Source | Open Source | Apache-2.0 | 2,022 | shift | BenMusch | Ruby | Code | 54 | 199 | class ShiftFile < ActiveRecord::Base
belongs_to :migration
before_save :compress_contents
after_initialize :decompress_contents
FILE_TYPES = {
:log => 0,
:state => 1,
:appendable => [0],
:writable => [1],
}.with_indifferent_access
def self.file_types
FILE_... | 34,503 |
https://github.com/FoodStandardsAgency/register-a-food-business-front-end/blob/master/src/server/static/auto-complete/main.js | Github Open Source | Open Source | MIT | 2,023 | register-a-food-business-front-end | FoodStandardsAgency | JavaScript | Code | 41 | 179 | var businessTypeFunctions = require("./BusinessTypeLookupFunctions.js");
var accessibleAutocomplete = require("./accessible-autocomplete.min.js");
const templates = {
inputValue: businessTypeFunctions.businessTypeFunctions.inputValueFunction,
suggestion: businessTypeFunctions.businessTypeFunctions.suggestionFunct... | 55,213 |
https://github.com/bocekm/SkyControl/blob/master/SkyControl/SkyControl/src/com/bocekm/skycontrol/NonSwipeableViewPager.java | Github Open Source | Open Source | Apache-2.0 | null | SkyControl | bocekm | Java | Code | 302 | 734 | /*
* Copyright (c) 2014, Michal Bocek, All rights reserved
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appli... | 32,910 |
https://github.com/dplbsd/soc2013/blob/master/head/tools/regression/sockets/unix_seqpacket/Makefile | Github Open Source | Open Source | BSD-2-Clause | null | soc2013 | dplbsd | Makefile | Code | 18 | 94 | #
# $FreeBSD: soc2013/dpl/head/tools/regression/sockets/unix_seqpacket/Makefile 197824 2009-10-05 15:27:01Z rwatson $
#
PROG= unix_seqpacket
CFLAGS+= -Wall -Werror
NO_MAN=
.include <bsd.prog.mk>
| 99 |
https://github.com/GabrielCortesRobles/Gimatec/blob/master/app/Http/Controllers/Controller_maquinas.php | Github Open Source | Open Source | MIT | null | Gimatec | GabrielCortesRobles | PHP | Code | 310 | 1,635 | <?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Http\Requests;
use App\maquinas;
use Session;
class Controller_maquinas extends Controller
{
//Vista del formulario nueva maquina
public function nuevamaquina()
{
return view("Maquinas.Nueva_maquina");
}
//funcion para guardar una ... | 49,241 |
https://github.com/lucasheim/babel-plugin-transform-modules-ui5/blob/master/packages/plugin/__test__/fixtures/preset-env/preset-env-usage.js | Github Open Source | Open Source | MIT | 2,021 | babel-plugin-transform-modules-ui5 | lucasheim | JavaScript | Code | 32 | 87 | import SAPClass from "sap/SAPClass";
/**
* @name my.MyClass
*/
export default class AClass extends SAPClass {
delay() {
return new Promise(resolve => {
setTimeout(resolve);
});
}
includes(str) {
return str.includes("thing");
}
}
| 38,435 |
https://github.com/oscarnar/little_eye_of_sauron/blob/master/lib/search/cubit/search_cubit.dart | Github Open Source | Open Source | MIT | null | little_eye_of_sauron | oscarnar | Dart | Code | 148 | 566 | import 'dart:convert';
import 'package:bloc/bloc.dart';
import 'package:equatable/equatable.dart';
import 'package:http/http.dart' as http;
import 'package:little_eye_of_sauron/models/video/video_model.dart';
import 'package:little_eye_of_sauron/ui_utils/constans/globals.dart';
import 'package:meta/meta.dart';
part '... | 8,781 |
https://github.com/NLeSC/escxnat/blob/master/nl.esciencecenter.xnattool/testsrc/tests/other/ui/panels/TestUploadMonitorDialog.java | Github Open Source | Open Source | Apache-2.0 | null | escxnat | NLeSC | Java | Code | 259 | 704 | /*
* Copyright 2012-2013 Netherlands eScience Center.
*
* 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 the following location:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* ... | 43,648 |
https://github.com/remore/gemstat/blob/master/lib/gemstat/cache/gemfiles/m/multitenant-pg:0.1.0/Gemfile | Github Open Source | Open Source | MIT | 2,015 | gemstat | remore | Ruby | Code | 12 | 45 | gem 'activerecord'
gem 'pg'
gem 'rspec'
gem 'rspec-core'
gem 'rspec-mocks'
gem 'database_cleaner'
| 41,869 |
https://github.com/sahwar/prometheus2.0/blob/master/spec/decorators/rpm/source_decorator_spec.rb | Github Open Source | Open Source | MIT | 2,018 | prometheus2.0 | sahwar | Ruby | Code | 248 | 1,016 | # frozen_string_literal: true
require 'rails_helper'
describe RPM::SourceDecorator do
describe '#as_json' do
let(:file) { 'spec/data/catpkt-1.0-alt5.src.rpm' }
let(:rpm) { RPM::Source.new(file) }
before { expect(rpm).to receive(:name).and_return('catpkt').twice }
before { expect(rpm).to receive(:... | 5,045 |
https://github.com/sunshower-io/zephyr/blob/master/gradle.properties | Github Open Source | Open Source | MIT | 2,022 | zephyr | sunshower-io | null | Spoken | 27 | 307 | #Thu Jun 09 19:40:55 UTC 2022
signing.gnupg.executable=gpg
mavenRepositoryUrl=https\://artifacts.sunshower.io
org.gradle.jvmargs=--add-exports jdk.compiler/com.sun.tools.javac.api\=ALL-UNNAMED --add-exports jdk.compiler/com.sun.tools.javac.file\=ALL-UNNAMED --add-exports jdk.compiler/com.sun.tools.javac.parser\=ALL-UNN... | 50,830 |
https://github.com/miladajilian/MimMessenger/blob/master/Telegraph/TGSendCodeRequestBuilder.h | Github Open Source | Open Source | MIT | 2,018 | MimMessenger | miladajilian | C | Code | 106 | 393 | /*
* This is the source code of Telegram for iOS v. 1.1
* It is licensed under GNU GPL v. 2 or later.
* You should have received a copy of the license in this archive (see LICENSE).
*
* Copyright Peter Iakovlev, 2013.
*/
#import <LegacyComponents/ASActor.h>
#import "TLauth_SentCode.h"
#import <LegacyComponents... | 11,784 |
https://github.com/NightOfTwelve/iOS-Cracked-Apps/blob/master/DumpedClasses/GWMovie/GWUpdateMemberProvider.h | Github Open Source | Open Source | MIT | 2,018 | iOS-Cracked-Apps | NightOfTwelve | Objective-C | Code | 110 | 390 | //
// Generated by class-dump 3.5 (64 bit) (Debug version compiled Aug 6 2017 20:42:30).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by Steve Nygard.
//
#import "GWBaseInfoProvider.h"
@class NSString;
@interface GWUpdateMemberProvider : GWBaseInfoProvider
{
NSString *_logoHex;
... | 39,645 |
https://github.com/Dan503/Swordion/blob/master/prototype/00-source-files/01-sass/04-base-SASS/00-elements.scss | Github Open Source | Open Source | MIT | 2,016 | Swordion | Dan503 | SCSS | Code | 370 | 1,075 |
$C-h1: #2B2B2B;
$MQ-tables--have-overflow: (max, bp('page'));
/*================================================*\
BASE ELEMENT STYLING
//----------------------------------------------------
// This file holds base styling for elements.
// NO CLASSES ALLOWED!
// these are essentially site resets
\*=================... | 50,523 |
https://github.com/Paladin1412/house/blob/master/java/classes/com/baidu/mapapi/http/a.java | Github Open Source | Open Source | Apache-2.0 | 2,018 | house | Paladin1412 | Java | Code | 44 | 214 | package com.baidu.mapapi.http;
class a
implements Runnable
{
a(AsyncHttpClient paramAsyncHttpClient, HttpClient.ProtoResultCallback paramProtoResultCallback, String paramString) {}
public void run()
{
HttpClient localHttpClient = new HttpClient(this.c.a, "GET", this.a);
localHttpClient.setMaxTimeOut... | 22,350 |
https://github.com/ctpelnar1988/TimelessAngularRails/blob/master/app/assets/javascripts/blog_home.js | Github Open Source | Open Source | Apache-2.0 | null | TimelessAngularRails | ctpelnar1988 | JavaScript | Code | 308 | 904 |
var myApp = angular.module('myApp', []);
myApp.controller("BlogController", ['$scope', '$http', function($scope, $http){
$http.get('/assets/blogs.json').success(function(data){
$scope.blogs = data;
String.prototype.trunc = String.prototype.trunc ||
function(n){
// this will return a substring... | 18,161 |
https://github.com/kreo/mole/blob/master/src/stub/templates/css/colr-ss.njk | Github Open Source | Open Source | CC0-1.0 | 2,020 | mole | kreo | null | Spoken | 3 | 11 | I'm sss {{color.red}}
| 18,508 |
https://github.com/akshayg7/afw/blob/master/resources/views/layouts/foot.blade.php | Github Open Source | Open Source | MIT | null | afw | akshayg7 | PHP | Code | 60 | 301 | <script src="{{asset('/js/dashmix.core.min.js')}}"></script>
<!--
Dashmix JS
Custom functionality including Blocks/Layout API as well as other vital and optional helpers
webpack is putting everything together at assets/_es6/main/app.js
-->
<script src="{{asset('/js/dashmix.app.min.js')}}"></script>
<script... | 18,769 |
https://github.com/kuanhuang0624/proms/blob/master/proms/utils.py | Github Open Source | Open Source | MIT | 2,021 | proms | kuanhuang0624 | Python | Code | 380 | 1,151 | from sklearn.metrics import roc_auc_score
from sklearn.utils import check_X_y
import numpy as np
# import pandas as pd
import multiprocessing
from sksurv.metrics import concordance_index_censored
# from sklearn.preprocessing import StandardScaler
from scipy.stats import pearsonr
# class StandardScalerDf(StandardScale... | 13,034 |
https://github.com/mikepenz/android-test/blob/master/espresso/web/java/androidx/test/espresso/web/BUILD.bazel | Github Open Source | Open Source | Apache-2.0 | 2,020 | android-test | mikepenz | Starlark | Code | 124 | 918 | licenses(["notice"]) # Apache License 2.0
package(
default_visibility = ["//visibility:public"],
)
# ** Generate the release artifacts **
load("//build_extensions:release.bzl", "axt_release_lib")
android_library(
name = "espresso_web_release_lib",
exports = [
"//espresso/web/java/androidx/test/e... | 38,669 |
https://github.com/Blackdread/lens/blob/master/packages/core/src/renderer/frames/cluster-frame/start-url.injectable.ts | Github Open Source | Open Source | MIT, LicenseRef-scancode-unknown-license-reference, CC-BY-SA-4.0 | 2,023 | lens | Blackdread | TypeScript | Code | 126 | 395 | /**
* Copyright (c) OpenLens Authors. All rights reserved.
* Licensed under MIT License. See LICENSE in root directory for more information.
*/
import { getInjectable } from "@ogre-tools/injectable";
import { computed } from "mobx";
import clusterOverviewRouteInjectable from "../../../common/front-end-routing/routes... | 37,149 |
https://github.com/nutes-uepb/SimpleSurvey/blob/master/simplesurvey/src/main/java/br/edu/uepb/nutes/simplesurvey/base/OnSwipeQuestionTouchListener.java | Github Open Source | Open Source | MIT | null | SimpleSurvey | nutes-uepb | Java | Code | 326 | 734 | /*
* Copyright (c) 2018 NUTES/UEPB
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify, merge, publish,... | 33,672 |
https://github.com/aleslash/yet-another-cloudwatch-exporter/blob/master/Makefile | Github Open Source | Open Source | Apache-2.0 | 2,021 | yet-another-cloudwatch-exporter | aleslash | Makefile | Code | 22 | 72 | .DEFAULT_GOAL := build
build:
go build -o yace cmd/yace/main.go
test:
go test -v -race -count=1 ./...
lint:
golangci-lint run -v -c .golangci.yml
| 50,102 |
https://github.com/cnxtech/gs-collections/blob/master/collections/src/main/java/com/gs/collections/impl/set/immutable/package-info.java | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, Apache-2.0 | 2,016 | gs-collections | cnxtech | Java | Code | 240 | 606 | /*
* Copyright 2014 Goldman Sachs.
*
* 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 ... | 30,765 |
https://github.com/bihe0832/AndroidAppFactory/blob/master/CommonList/src/main/java/com/bihe0832/android/common/list/swiperefresh/CommonListActivity.kt | Github Open Source | Open Source | Apache-2.0 | 2,022 | AndroidAppFactory | bihe0832 | Kotlin | Code | 139 | 669 | package com.bihe0832.android.common.list.swiperefresh
import android.support.v4.widget.SwipeRefreshLayout
import android.support.v7.widget.LinearLayoutManager
import android.support.v7.widget.RecyclerView
import com.bihe0832.android.common.list.BaseListActivity
import com.bihe0832.android.common.list.R
import com.bih... | 6,245 |
https://github.com/dev-ducu/data-producer/blob/master/docker/Dockerfile | Github Open Source | Open Source | MIT | 2,020 | data-producer | dev-ducu | Dockerfile | Code | 21 | 111 | FROM openjdk:8-jdk-alpine
ARG JAR_FILE=target/data-producer-1.0.0.jar
COPY ${JAR_FILE} data-producer.jar
ENV TZ=Europe/Bucharest
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
ENTRYPOINT ["java","-jar","/data-producer.jar"]
| 15,574 |
https://github.com/thaerfayyad/ihsan-app/blob/master/app/Http/Controllers/api/AuthController.php | Github Open Source | Open Source | MIT | 2,022 | ihsan-app | thaerfayyad | PHP | Code | 341 | 1,406 | <?php
namespace App\Http\Controllers\api;
use App\Helpers\Messages;
use App\Http\Controllers\Controller;
use App\Models\Broker;
use App\Models\User;
use Dotenv\Validator;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Http;
use Illum... | 24,676 |
https://github.com/Indexical-Metrics-Measure-Advisory/watchmen-panels/blob/master/src/pages/component/console/page-container.tsx | Github Open Source | Open Source | MIT | 2,021 | watchmen-panels | Indexical-Metrics-Measure-Advisory | TSX | Code | 107 | 408 | import styled from 'styled-components';
export const PageContainer = styled.div<{ 'background-image': string }>`
&:before {
content: '';
position: fixed;
left: 0;
top: 0;
width: 100vw;
height: 100vh;
z-index: -1;
pointer-events: none;
user-select: none;
filter: brightness(1.5) opacity(0.2);
bac... | 54,258 |
https://github.com/DanJSG/reflectiment/blob/master/mlanalyzer/main.py | Github Open Source | Open Source | MIT | null | reflectiment | DanJSG | Python | Code | 28 | 88 | import app
def start() -> None:
""" Initialize and start the Flask web application."""
print("Function [start()] called.")
service = app.get_app()
service.run(host='0.0.0.0', port=8082, use_reloader=False)
if __name__ == '__main__':
start()
| 11,480 |
https://github.com/hjorthjort/dDLLP/blob/master/src/Lib.hs | Github Open Source | Open Source | Unlicense | null | dDLLP | hjorthjort | Haskell | Code | 91 | 187 | module Lib
( solve
, example1
, example2
, example3
) where
import DLLP
import Control.Monad.Reader (runReader)
solve :: CNF Problem -> Maybe Solution
solve = runReader dllp . initialize
-- Examples
example1 = let prob = Problem [ Clause [Pure "A", Neg "A"]]
in (prob, initialize prob)
exampl... | 34,463 |
https://github.com/ill-serve-soup-2/UI-DylanDislers/blob/master/less/about.less | Github Open Source | Open Source | MIT | null | UI-DylanDislers | ill-serve-soup-2 | Less | Code | 35 | 122 |
.aboutTheTeam {
.teamNames {
margin-top: 4rem;
margin-bottom: 2rem;
p {
background-color: @mainRed;
text-align: left;
border-radius: 3px;
margin-bottom: 2rem !important;
}
}
span {
color: @dark;
}
}
.teamNamesGH {
a {
color: @mainRed;
}
} | 56,193 |
https://github.com/Hienphamhpnxv/WebBanNoiThat/blob/master/resources/views/admin/nhacungcap/add.blade.php | Github Open Source | Open Source | MIT | null | WebBanNoiThat | Hienphamhpnxv | PHP | Code | 122 | 647 | @extends('admin.layout.index')
@section('content')
<section class="content-header">
<h1>
Thêm
<small>Nhà Cung Cấp</small>
</h1>
<ol class="breadcrumb">
<li><a href="#"><i class="fa fa-dashboard"></i> Nhà cung cấp</a></li>
<li class="active">Add</li>
</ol>
... | 1,923 |
https://github.com/arowM/elm-analyse/blob/master/src/Analyser/Files/FileContent.elm | Github Open Source | Open Source | MIT | null | elm-analyse | arowM | null | Spoken | 181 | 414 | module Analyser.Files.FileContent exposing (FileContent, RefeshedAST, asFileRef, asRawFile)
import Analyser.FileRef exposing (FileRef)
import Elm.Json.Decode as Elm
import Elm.Parser as Parser
import Elm.RawFile exposing (RawFile)
import Json.Decode
import Maybe.Extra as Maybe
import Result.Extra as Result
type alia... | 32,884 |
https://github.com/lfmc/VItA/blob/master/io/VTKObjectTreeNodalWriter.cpp | Github Open Source | Open Source | Apache-2.0 | 2,022 | VItA | lfmc | C++ | Code | 311 | 2,425 | /* SPDX-License-Identifier: Apache-2.0 */
/* Copyright 2020 Gonzalo Maso Talou */
/*
* VTKObjectTreeNodalWriter.cpp
*
* Created on: 9/08/2018
* Author: Gonzalo D. Maso Talou
*/
#include "VTKObjectTreeNodalWriter.h"
#include <vtkPolyData.h>
#include <vtkCellLocator.h>
#include <vtkLine.h>
#include <vtkSmart... | 49,264 |
https://github.com/mr-faraday/PSU/blob/master/course-3-semester-6/functional-programming/DataTypes/ParamTypes.hs | Github Open Source | Open Source | MIT | 2,019 | PSU | mr-faraday | Haskell | Code | 253 | 617 | -- Реализуйте функции distance, считающую расстояние между двумя
-- точками с вещественными координатами, и manhDistance, считающую
-- манхэттенское расстояние между двумя точками с целочисленными
-- координатами.
import Data.Char(isDigit)
data Coord a = Coord a a
distance :: Coord Double -> Coord Double -> Double
d... | 51,819 |
https://github.com/CookiePLMonster/libchdr/blob/master/deps/flac-1.3.3/src/share/utf8/CMakeLists.txt | Github Open Source | Open Source | BSD-3-Clause, LGPL-2.1-only, GPL-2.0-only, GPL-1.0-or-later, GFDL-1.2-only, GFDL-1.1-or-later, LicenseRef-scancode-other-permissive, LicenseRef-scancode-unknown-license-reference, LGPL-2.0-or-later | 2,020 | libchdr | CookiePLMonster | CMake | Code | 14 | 104 | set(CMAKE_REQUIRED_LIBRARIES iconv)
check_symbol_exists(iconv "iconv.h" HAVE_ICONV_LIB)
add_library(utf8 STATIC
charset.c
iconvert.c
utf8.c)
target_link_libraries(utf8 PUBLIC grabbag $<$<BOOL:${HAVE_ICONV_LIB}>:iconv>)
| 2,438 |
https://github.com/vdor/tkmp-api/blob/master/infrastructure/tkmpScheduleChangesParser/parser_html.go | Github Open Source | Open Source | Apache-2.0 | 2,021 | tkmp-api | vdor | Go | Code | 475 | 1,760 | package tkmpScheduleChangesParser
import (
"fmt"
"github.com/PuerkitoBio/goquery"
"github.com/pkg/errors"
"github.com/sirupsen/logrus"
"github.com/vdor/tkmp-api/infrastructure/openURI"
"github.com/vdor/tkmp-api/infrastructure/tkmpScheduleChangesParser/helpers"
"regexp"
"strconv"
"strings"
)
type TKMPSchedule... | 42,807 |
https://github.com/damaaryoung/SEFIN/blob/master/vendor/symfony/dependency-injection/Tests/Fixtures/Prototype/Sub/NoLoadBarTrait.php | Github Open Source | Open Source | MIT | null | SEFIN | damaaryoung | PHP | Code | 7 | 40 | <?php
namespace Symfony\Component\DependencyInjection\Tests\Fixtures\Prototype\Sub;
trait NoLoadBarTrait
{
}
| 9,145 |
https://github.com/MarekSuchanek/engine-backend/blob/master/engine-shared/src/Shared/Api/Resource/Event/MetricEventJM.hs | Github Open Source | Open Source | Apache-2.0 | null | engine-backend | MarekSuchanek | Haskell | Code | 70 | 228 | module Shared.Api.Resource.Event.MetricEventJM where
import Data.Aeson
import Shared.Api.Resource.Common.MapEntryJM ()
import Shared.Api.Resource.Event.EventFieldJM ()
import Shared.Model.Event.Metric.MetricEvent
import Shared.Util.JSON
instance FromJSON AddMetricEvent where
parseJSON = simpleParseJSON "_addMetric... | 16,253 |
https://github.com/fusionbox/django-widgy/blob/master/widgy/static/widgy/js/components/tabbed/component.js | Github Open Source | Open Source | Apache-2.0 | 2,021 | django-widgy | fusionbox | JavaScript | Code | 232 | 920 | define([ 'jquery', 'underscore', 'widgy.backbone', 'components/widget/component' ], function($, _, Backbone, widget) {
var TabbedView = widget.View.extend({
events: Backbone.extendEvents(widget.View, {
'click .tabbed > .widget > .node_children .drag-row': 'showTabClick'
}),
initialize: function() ... | 17,323 |
https://github.com/Dorianebehn/caisseMaven/blob/master/src/main/java/com/example/caissemarven/CaissemarvenApplication.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | caisseMaven | Dorianebehn | Java | Code | 118 | 602 | package com.example.caissemarven;
import org.hibernate.*;
import org.hibernate.cfg.Configuration;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.CommandLineRunner;
import com.example.caissemarven.service.Business... | 46,507 |
https://github.com/herbertmilhomme/PokemonUnity/blob/master/PokemonUnity.Application/Combat/Match/BattleArena.cs | Github Open Source | Open Source | BSD-3-Clause | 2,022 | PokemonUnity | herbertmilhomme | C# | Code | 989 | 5,304 | using System;
using System.Collections.Generic;
using System.Linq;
using PokemonUnity.Inventory;
using PokemonUnity.Combat.Data;
using PokemonUnity.Character;
namespace PokemonUnity.Combat
{
public class PokeBattle_BattleArena : Battle, PokemonEssentials.Interface.PokeBattle.IBattleArena {
public bool battlerschan... | 30,824 |
https://github.com/andrasigneczi/TravelOptimizer/blob/master/DataCollector/mozilla/xulrunner-sdk/include/mozilla/dom/DOMParser.h | Github Open Source | Open Source | Apache-2.0 | 2,018 | TravelOptimizer | andrasigneczi | C++ | Code | 284 | 1,252 | /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim: set ts=8 sts=2 et sw=2 tw=80: */
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0... | 52,573 |
https://github.com/open-mpi/ompi-www/blob/master/community/lists/hwloc-devel/2009/09/0081.php | Github Open Source | Open Source | BSD-3-Clause | 2,023 | ompi-www | open-mpi | PHP | Code | 431 | 1,816 | <?
$subject_val = "Re: [hwloc-devel] Create success (hwloc r0.9.1a1r1006)";
include("../../include/msg-header.inc");
?>
<!-- received="Fri Sep 25 14:02:25 2009" -->
<!-- isoreceived="20090925180225" -->
<!-- sent="Fri, 25 Sep 2009 14:02:19 -0400" -->
<!-- isosent="20090925180219" -->
<!-- name="Jeff Squyres" -->
<!-- e... | 49,207 |
https://github.com/Senpos/evil-bot/blob/master/src/main/kotlin/com/github/djaler/evilbot/repository/MediaCacheRepository.kt | Github Open Source | Open Source | MIT | 2,021 | evil-bot | Senpos | Kotlin | Code | 17 | 86 | package com.github.djaler.evilbot.repository
import com.github.djaler.evilbot.entity.MediaCache
import org.springframework.data.jpa.repository.JpaRepository
interface MediaCacheRepository : JpaRepository<MediaCache, Int> {
fun findByDigest(digest: String): MediaCache?
}
| 41,885 |
https://github.com/sentinel-energy/sentinel-achive/blob/master/friendly_data/converters.py | Github Open Source | Open Source | Apache-2.0 | 2,022 | sentinel-achive | sentinel-energy | Python | Code | 1,921 | 5,023 | """Functions useful to read a data package resource into common analysis
frameworks like ``pandas``, ``xarray``, etc. Currently supported:
============================= ======================================
Library Data Structure
============================= =============================... | 2,238 |
https://github.com/MakingStuffs/quarantine-free-travel-app/blob/master/__mocks__/fakeCountryArray.ts | Github Open Source | Open Source | MIT | null | quarantine-free-travel-app | MakingStuffs | TypeScript | Code | 120 | 769 | import { CountryInterface } from "types";
const FAKE_COUNTRY_ARRAY: CountryInterface[] = [
{
name: "bangladesh",
urls: {
entryRequirementsPage:
"https://www.gov.uk/foreign-travel-advice/bangladesh/entry-requirements",
countryPage: "https://www.gov.uk/foreign-travel-advice/bangladesh",
... | 1,888 |
https://github.com/michael-platzer/patmos/blob/master/c/apps/sha256-bench/Makefile | Github Open Source | Open Source | BSD-2-Clause | 2,022 | patmos | michael-platzer | Makefile | Code | 144 | 609 | .PHONY: all
all: compile
.PHONY: clean
clean:
rm -f *.o
rm -f *.elf
rm -f *.stdout
.PHONY: compile
compile: sw_benchmark.elf io_benchmark.elf cop_benchmark.elf
.PHONY: benchmark
benchmark:
make sw.stdout & make io.stdout & make cop.stdout
sw_impl.o: sw_impl.c benchmark.h
patmos-clang sw_impl.c -D BENCHMARK_SW ... | 12,519 |
https://github.com/darkcode357/thg-framework/blob/master/lib/thg/core/Mods/exploit/sqli/sqlitei.rb | Github Open Source | Open Source | MIT | 2,021 | thg-framework | darkcode357 | Ruby | Code | 9 | 83 | module Msf::Exploit::SQLi::SQLitei
end
require 'msf/core/exploit/sqli/sqlitei/common'
require 'msf/core/exploit/sqli/sqlitei/boolean_based_blind'
require 'msf/core/exploit/sqli/sqlitei/time_based_blind'
| 48,246 |
https://github.com/Victor-Fiamoncini/polls_for_devs/blob/master/lib/main/factories/http/http_client_factory.dart | Github Open Source | Open Source | MIT | null | polls_for_devs | Victor-Fiamoncini | Dart | Code | 18 | 97 | import 'package:flutter/material.dart';
import 'package:http/http.dart';
import 'package:polls_for_devs/data/http/http_client.dart';
import 'package:polls_for_devs/infra/http/http_adapter.dart';
HttpClient makeHttpAdapter() {
final client = Client();
return HttpAdapter(client);
}
| 28,449 |
https://github.com/keyman9848/kde/blob/master/kernel_mailing_list/mm_community/batch.sh | Github Open Source | Open Source | MIT | 2,019 | kde | keyman9848 | Shell | Code | 43 | 140 | #!/bin/bash
# demo sh batch.sh
for i in `seq 1 1 10`
do
for j in `seq 1 1 31`
do
echo "sh get_kvm_patch_series_today.sh -d 2018-`printf "%02d\n" $i`-`printf "%02d\n" $j`"
sh get_kvm_patch_series_today.sh -d 2018-`printf "%02d\n" $i`-`printf "%02d\n" $j` &
sleep 0.5
done
done | 51,833 |
https://github.com/MaxBubblegum47/LLVM_13_MBLAZE/blob/master/llvm/lib/Target/MBLAZE/MCTargetDesc/MBLAZEMCTargetDesc.cpp | Github Open Source | Open Source | Apache-2.0 | null | LLVM_13_MBLAZE | MaxBubblegum47 | C++ | Code | 97 | 424 | //===-- MBLAZEMCTargetDesc.cpp - MBLAZE Target Descriptions -------------------===//
//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===---------------------------------------------------... | 2,822 |
https://github.com/xutiantai/project/blob/master/project/application/admin/controller/Links.php | Github Open Source | Open Source | Apache-2.0 | 2,017 | project | xutiantai | PHP | Code | 212 | 839 | <?php
/**
* Created by IntelliJ IDEA.
* User: XTT
* Date: 2017/8/26
* Time: 11:04
*/
namespace app\admin\controller;
class links extends Base
{/*
* 管理员列表
* */
public function lst()
{
$linkslist = db('links')->paginate(5);
$this->assign('links', $linkslist);
retu... | 24,459 |
https://github.com/waagsociety/GammaSense/blob/master/demo/source/index.js | Github Open Source | Open Source | MIT | 2,018 | GammaSense | waagsociety | JavaScript | Code | 240 | 624 | import { config } from './config'
import sensor, { filter } from './controllers/sensor'
import { putImageData, average } from './toolkit'
let measuring = false
function monitor(canvas, svg) {
const sampleTime = 60000
const circle = svg.querySelector('circle')
const text = svg.querySelector('text')
const leng... | 50,694 |
https://github.com/sumerJY100/SpringMVCDemo/blob/master/src/main/java/com/gaussic/repository/DevicePointHistory3Repository.java | Github Open Source | Open Source | MIT | 2,018 | SpringMVCDemo | sumerJY100 | Java | Code | 20 | 124 | package com.gaussic.repository;
import com.gaussic.model.dcs.DevicePointHistory1Pojo;
import com.gaussic.model.dcs.DevicePointHistory3Pojo;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;
@Reposi... | 20,715 |
https://github.com/owncloud/hyperreva/blob/master/.bingo/Variables.mk | Github Open Source | Open Source | Apache-2.0 | 2,019 | hyperreva | owncloud | Makefile | Code | 634 | 2,983 | # Auto generated binary variables helper managed by https://github.com/bwplotka/bingo v0.6. DO NOT EDIT.
# All tools are designed to be build inside $GOBIN.
BINGO_DIR := $(dir $(lastword $(MAKEFILE_LIST)))
GOPATH ?= $(shell go env GOPATH)
GOBIN ?= $(firstword $(subst :, ,${GOPATH}))/bin
GO ?= $(shell which go)
# ... | 9,627 |
https://github.com/woflydev/general-projects/blob/master/diskreet-blockchain/ts/mains/debug_log_start.tsx | Github Open Source | Open Source | MIT | 2,022 | general-projects | woflydev | TypeScript | Code | 18 | 57 | import React from 'react';
import { DebugLogView } from '../components/DebugLogView';
global.setTimeout(() => {
window.ReactDOM.render(<DebugLogView />, document.getElementById('root'));
}, 1000);
| 23,545 |
https://github.com/yeonghoey/boj/blob/master/6588/main_test.go | Github Open Source | Open Source | MIT | 2,019 | boj | yeonghoey | Go | Code | 50 | 191 | package main
import (
"testing"
"github.com/yeonghoey/boj/runner"
)
func TestSamples(t *testing.T) {
r := runner.New(t, "go", "run", ".")
samples := []struct {
intput, output string
}{
{"sample-input-1.txt", "sample-output-1.txt"},
}
for _, s := range samples {
r.Run(s.intput).Want(s.output)
}
}
func ... | 40,863 |
https://github.com/AmeerHamza777/deep-crawler/blob/master/ckeditor/_source/plugins/forms/dialogs/checkbox.js | Github Open Source | Open Source | Apache-2.0 | 2,020 | deep-crawler | AmeerHamza777 | JavaScript | Code | 338 | 1,146 | /*
Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.dialog.add('checkbox', function (editor) {
return {
title: editor.lang.checkboxAndRadio.checkboxTitle,
minWidth: 350,
minHeight: 140,
... | 34,101 |
https://github.com/Lemonszz/Punishing-Death/blob/master/src/main/java/party/lemons/punishingdeath/crt/GameStageSetPercent.java | Github Open Source | Open Source | MIT | null | Punishing-Death | Lemonszz | Java | Code | 38 | 171 | package party.lemons.punishingdeath.crt;
import crafttweaker.CraftTweakerAPI;
import crafttweaker.annotations.ZenRegister;
import stanhebben.zenscript.annotations.ZenClass;
import stanhebben.zenscript.annotations.ZenMethod;
/**
* Created by Sam on 25/02/2018.
*/
@ZenRegister
@ZenClass("mods.PunishingDeath")
public ... | 54,408 |
https://github.com/stjordanis/thinc/blob/master/website/src/components/layout.js | Github Open Source | Open Source | MIT | 2,021 | thinc | stjordanis | JavaScript | Code | 33 | 89 | import React from 'react'
import SEO from './seo'
import '../styles/base.sass'
const Layout = ({ title, description, className, children }) => (
<>
<SEO title={title} description={description} />
<main className={className}>{children}</main>
</>
)
export default Layout
| 25,295 |
https://github.com/Alonzo51/Docster/blob/master/resources/views/app/template/create.blade.php | Github Open Source | Open Source | MIT | null | Docster | Alonzo51 | PHP | Code | 745 | 3,961 | @extends('layouts.app')
@section('content')
<!-- begin::create template -->
<form method="POST" action="{{ route('template.store') }}">
@csrf
<div class="container-fluid">
<div class="row">
<!-- begin::variable options -->
<div class="col-md-2">
... | 38,491 |
https://github.com/garettPalm/weatherAppDemo/blob/master/src/components/dateText/index.js | Github Open Source | Open Source | MIT | 2,018 | weatherAppDemo | garettPalm | JavaScript | Code | 29 | 72 | /* Import all dependencies */
import React, { Component } from 'react'
export default class DateText extends Component {
render() {
return (
<div>
<p>{this.props.text}</p>
</div>
);
}
}
| 23,467 |
https://github.com/gameblabla/pcfxtools/blob/master/Makefile | Github Open Source | Open Source | MIT | null | pcfxtools | gameblabla | Makefile | Code | 91 | 345 | OBJECTS = huobj.o hulib.o pcfx-cdlink.o bincat.o
OUTPUT = huobj hulib pcfx-cdlink bincat
TARGETS = $(OUTPUT)
LIBS +=
LIBS +=
CFLAGS += -O3 $(INCLUDE)
LDFLAGS += -s
CLEANED = $(OBJECTS) $(TARGETS)
CC = gcc
.PHONY: all clean install
all: $(OBJECTS) $(TARGETS)
%.o: %.c
$(CC) $(CFLAGS) -c -... | 18,389 |
https://github.com/Twostone97/Hously/blob/master/app/Http/Controllers/NoticeController.php | Github Open Source | Open Source | MIT | null | Hously | Twostone97 | PHP | Code | 231 | 692 | <?php
namespace App\Http\Controllers;
use DB;
use App\Notice;
use Illuminate\Http\Request;
class NoticeController extends Controller
{
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/
public function index()
{
//
}
/**
* Show the ... | 44,071 |
https://github.com/scbedd/azure-sdk-for-node/blob/master/lib/services/mediaServicesManagement/lib/models/assetStreamingLocator.js | Github Open Source | Open Source | Apache-2.0, MIT | 2,022 | azure-sdk-for-node | scbedd | JavaScript | Code | 321 | 864 | /*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/
'... | 20,497 |
https://github.com/Peerapat132/gitlabhq/blob/master/db/migrate/20171012125712_migrate_user_authentication_token_to_personal_access_token.rb | Github Open Source | Open Source | MIT | 2,019 | gitlabhq | Peerapat132 | Ruby | Code | 228 | 662 | # See http://doc.gitlab.com/ce/development/migration_style_guide.html
# for more information on how to write migrations for GitLab.
class MigrateUserAuthenticationTokenToPersonalAccessToken < ActiveRecord::Migration[4.2]
include Gitlab::Database::MigrationHelpers
# Set this constant to true if this migration requ... | 14,682 |
https://github.com/ryansloan/code-dot-or/blob/master/dashboard/test/ui/runner.rb | Github Open Source | Open Source | Apache-2.0 | 2,022 | code-dot-or | ryansloan | Ruby | Code | 3,378 | 11,128 | #!/usr/bin/env ruby
require_relative '../../../deployment'
ROOT = File.expand_path('../../../..', __FILE__)
# Set up gems listed in the Gemfile.
ENV['BUNDLE_GEMFILE'] ||= "#{ROOT}//Gemfile"
require 'bundler'
require 'bundler/setup'
require 'cdo/aws/s3'
require 'cdo/chat_client'
require 'cdo/git_utils'
require 'cdo/r... | 51,147 |
https://github.com/510460061/TY_NEW/blob/master/src/java/com/cardpay/pccredit/customer/web/CustomerMarketingPlanForm.java | Github Open Source | Open Source | Apache-2.0 | 2,017 | TY_NEW | 510460061 | Java | Code | 157 | 480 | package com.cardpay.pccredit.customer.web;
import com.wicresoft.jrad.base.web.form.BaseForm;
/**
*
* @author 姚绍明
*
*/
public class CustomerMarketingPlanForm extends BaseForm{
private static final long serialVersionUID = 1L;
private String id;
private String marketingPlanId;
private String marketing;
private ... | 30,608 |
https://github.com/waxpoetic/brotherly/blob/master/app/models/artist.rb | Github Open Source | Open Source | BSD-2-Clause | 2,017 | brotherly | waxpoetic | Ruby | Code | 28 | 91 | # frozen_string_literal: true
class Artist < ApplicationRecord
extend FriendlyId
include SitemapGeneration
friendly_id :name
has_many :performances, dependent: :destroy
has_many :episodes, through: :performances
validates :name, presence: true
attachment :image_file
end
| 37,251 |
https://github.com/LinwoodCloud/flutter_plugins/blob/master/packages/networker_socket/lib/client.dart | Github Open Source | Open Source | Apache-2.0 | 2,022 | flutter_plugins | LinwoodCloud | Dart | Code | 100 | 356 | import 'dart:async';
import 'dart:convert';
import 'package:networker/networker.dart';
import 'package:web_socket_channel/web_socket_channel.dart';
class SocketClient extends NetworkingClient {
WebSocketChannel? _channel;
final Uri uri;
@override
String get identifier => uri.toString();
SocketClient(this.... | 26,095 |
https://github.com/stvstnfrd/edx-cookiecutters/blob/master/cookiecutter-django-app/Makefile | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-unknown-license-reference, LicenseRef-scancode-agpl-2.0, LicenseRef-scancode-free-unknown, AGPL-3.0-or-later | 2,020 | edx-cookiecutters | stvstnfrd | Makefile | Code | 152 | 404 | .PHONY: bake help quality replay requirements test upgrade validate watch
BAKE_OPTIONS=--no-input
help: ## display this help message
@echo "Please use \`make <target>' where <target> is one of"
@awk -F ':.*?## ' '/^[a-zA-Z]/ && NF==2 {printf "\033[36m %-25s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST) | sort
bake: #... | 26,550 |
https://github.com/cmanda/apache-hdfs-site/blob/master/src/main/java/com/axway/ssc/st/plugins/site/hdfs/HDFSSite.java | Github Open Source | Open Source | Apache-2.0 | 2,016 | apache-hdfs-site | cmanda | Java | Code | 252 | 1,161 | /**
*
*/
package com.axway.ssc.st.plugins.site.hdfs;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import javax.inject.Inject;
import org.apache.hadoop.hdfs.DFSClient;
import com.axway.ssc.st.plugins.site.hdfs.bean.HDFSBean;
import com.axway.st.plugins.site.CustomSite;
import com... | 42,858 |
https://github.com/KyleU/solitaire/blob/master/client/src/main/scala/settings/SettingsService.scala | Github Open Source | Open Source | CC0-1.0 | 2,021 | solitaire | KyleU | Scala | Code | 89 | 278 | package settings
import models.settings.Settings
import org.scalajs.dom
import util.JsonSerializers
import scala.util.control.NonFatal
object SettingsService {
private val settingsKey = "solitaire.gg.settings"
}
class SettingsService(onSave: Settings => Unit) {
private[this] var settings = loadSettings()
def... | 29,943 |
https://github.com/fousa/ios-air-rivet/blob/master/Example/Pods/Target Support Files/AirRivet/AirRivet-dummy.m | Github Open Source | Open Source | MIT | 2,016 | ios-air-rivet | fousa | Objective-C | Code | 10 | 44 | #import <Foundation/Foundation.h>
@interface PodsDummy_AirRivet : NSObject
@end
@implementation PodsDummy_AirRivet
@end
| 55,207 |
https://github.com/andrewthad/json-query/blob/master/src/Json/Path.hs | Github Open Source | Open Source | BSD-3-Clause | 2,020 | json-query | andrewthad | Haskell | Code | 352 | 737 | {-# language BangPatterns #-}
{-# language MagicHash #-}
{-# language UnboxedTuples #-}
module Json.Path
( Path(..)
-- * Encoding
, encode
, builderUtf8
-- * Lookup
, query
-- * Reverse
, reverse
) where
import Prelude hiding (reverse)
import Json (Value(Object,Array),Member(Member))
import D... | 69 |
https://github.com/nt-tuan/dmcit-react/blob/master/src/_services/sale.js | Github Open Source | Open Source | MIT | null | dmcit-react | nt-tuan | JavaScript | Code | 199 | 672 | import { fixedRequestOptions, defaultBlobFetch, handleResponse, handleError, defaultFetch } from '../_helpers/api-header';
import { authHeader } from '../_helpers';
export const saleServices = {
getCustomers,
getCustomerDetail,
importCustomers,
previewCustomers,
getDistributors,
customerTableColumns
}
fun... | 19,107 |
https://github.com/Spike96/Python_Training_/blob/master/fixture/users.py | Github Open Source | Open Source | Apache-2.0 | null | Python_Training_ | Spike96 | Python | Code | 373 | 2,536 | from selenium.webdriver.support.ui import Select
from model.users import Users
import re
class UsersHelper:
def __init__(self, app):
self.app = app
def create(self, users):
wd = self.app.wd
self.add_new_user()
# fill in users form
wd.find_element_by_name("firstname").... | 26,362 |
https://github.com/mozanunal/micropython-mpu6050-mqtt-streamer/blob/master/sensor/main.py | Github Open Source | Open Source | MIT | 2,019 | micropython-mpu6050-mqtt-streamer | mozanunal | Python | Code | 39 | 188 |
from machine import I2C, Pin
import mpu6050
from umqtt.simple import MQTTClient
import time
import json
import urandom
time.sleep_ms(1000)
i2c = I2C(scl=Pin(5), sda=Pin(4))
mpu = mpu6050.accel(i2c)
c = MQTTClient(str(urandom.getrandbits(32)), "broker.mqttdashboard.com")
c.connect()
while True:
values = mpu.ge... | 40,449 |
https://github.com/mhallendal/med-log-elm/blob/master/src/EntryForm.elm | Github Open Source | Open Source | MIT | null | med-log-elm | mhallendal | null | Spoken | 386 | 889 | module EntryForm exposing (FormMsg, update, viewAddNewEntry)
import EntryModel exposing (Entry)
import Html exposing (..)
import Html.Attributes exposing (..)
import Html.Events exposing (onClick, onInput)
-- Update
type FormMsg
= SetHoursOfSleep String
| SetRestingPulse String
| SetTag String
update... | 34,410 |
https://github.com/leouz/uzfields/blob/master/app/helpers/uzfields/ng_common.rb | Github Open Source | Open Source | MIT | 2,014 | uzfields | leouz | Ruby | Code | 44 | 159 | module Uzfields::NgCommon
PATH = "uzfields/ng"
def get_options field, type=:string, options={}
options[:type] = type
options[:field] = field
options[:model] = options[:model] ||= "model"
options[:ng_model] = options[:ng_model] ||= "#{options[:model]}.#{field}"
# options[:placeholder]
# op... | 19,509 |
https://github.com/sterschl/dvelop-app-template-cs/blob/master/Domain/Vacation/IVacationService.cs | Github Open Source | Open Source | Apache-2.0 | 2,022 | dvelop-app-template-cs | sterschl | C# | Code | 33 | 122 | using System;
using System.Collections.Generic;
namespace Dvelop.Domain.Vacation
{
public interface IVacationService
{
Guid RequestVacation(VacationModel request);
bool UpdateVacation(VacationModel vacationModel);
bool AcceptVacation(Guid id);
bool RejectVacation(Guid id);
... | 20,250 |
https://github.com/sonico999/DaggerExample/blob/master/app/src/main/java/me/evervasquez/dagger/trash/B.java | Github Open Source | Open Source | Apache-2.0 | null | DaggerExample | sonico999 | Java | Code | 15 | 41 | package me.evervasquez.dagger.trash;
/**
* Created by eveR on 28/01/15.
*/
public interface B {
}
| 15,849 |
https://github.com/Himenon/microfrontend-invalid/blob/master/packages/components/src/DevServer.tsx | Github Open Source | Open Source | MIT | null | microfrontend-invalid | Himenon | TypeScript | Code | 7 | 17 | import * as Module from "./";
console.log(Module);
| 54,073 |
https://github.com/LunaMultiplayer/LunaMultiplayer/blob/master/LmpClient/Harmony/FlightDriver_SetPause.cs | Github Open Source | Open Source | MIT | 2,023 | LunaMultiplayer | LunaMultiplayer | C# | Code | 57 | 187 | using HarmonyLib;
using LmpCommon.Enums;
// ReSharper disable All
namespace LmpClient.Harmony
{
/// <summary>
/// This harmony patch is intended to disable pausing while in LMP
/// </summary>
[HarmonyPatch(typeof(FlightDriver))]
[HarmonyPatch("SetPause")]
public class FlightDriver_SetPause
... | 46,261 |
https://github.com/smcgivern/advent-of-code/blob/master/2020/07.rb | Github Open Source | Open Source | MIT | 2,021 | advent-of-code | smcgivern | Ruby | Code | 67 | 222 | # Only part 2; part 1 is in J
def parse_bags(filename)
open(filename).read.lines.to_h do |line|
a, b = line.split('contain')
parent = a.match(/(.*?) bags?/)[1]
if b.include?('no other bags')
[parent, []]
else
[
parent,
b.split(',').map do |segment|
m = segment.ma... | 56,269 |
https://github.com/chgeuer/VENUS-C-Generic-Worker/blob/master/core/Tests/SecurityTests.cs | Github Open Source | Open Source | MS-PL | 2,015 | VENUS-C-Generic-Worker | chgeuer | C# | Code | 141 | 452 | //Copyright (c) Microsoft
//This source is subject to the Microsoft Public License (Ms-PL).
//Please see http://go.microsoft.com/fwlink/?LinkID=131993 for details.
//All other rights reserved.
namespace Tests
{
using System;
using System.Text;
using Microsoft.EMIC.Cloud.Security;
using Microsoft.V... | 25,247 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.