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/apache/camel-kafka-connector/blob/master/connectors/camel-dropbox-source-kafka-connector/src/main/java/org/apache/camel/kafkaconnector/dropboxsource/CamelDropboxsourceSourceConnectorConfig.java | Github Open Source | Open Source | Apache-2.0 | 2,023 | camel-kafka-connector | apache | Java | Code | 377 | 1,504 | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | 46,620 |
https://github.com/galxzx/pegma/blob/master/app/reducers/chatbox.jsx | Github Open Source | Open Source | MIT | 2,017 | pegma | galxzx | JavaScript | Code | 91 | 246 | import axios from 'axios'
import { browserHistory } from 'react-router'
/* ----------------- ACTIONS ------------------ */
export const TOGGLE_CHATBOX = 'TOGGLE_CHATBOX'
/* ------------ ACTION CREATORS ------------------ */
export const toggleChatbox = () => ({ type: TOGGLE_CHATBOX })
/* ------------ ... | 43,926 |
https://github.com/blockpy-edu/blockpy-server/blob/master/main.py | Github Open Source | Open Source | MIT | 2,023 | blockpy-server | blockpy-edu | Python | Code | 95 | 424 | # Built-ins
import json
# Flask
from flask import Flask
with open('settings/secrets.json') as secrets_file:
secrets = json.load(secrets_file)
VERSION = '0.1.0'
app = Flask(__name__)
app.config['TEMPLATES_AUTO_RELOAD'] = True
if secrets['PRODUCTION']:
app.config.from_object('config.ProductionConfig')
else:
... | 50,145 |
https://github.com/tihlde/Kvark/blob/master/src/pages/Http404/index.tsx | Github Open Source | Open Source | MIT | 2,021 | Kvark | tihlde | TypeScript | Code | 145 | 458 | import { Link } from 'react-router-dom';
import URLS from 'URLS';
import { useIsAuthenticated } from 'hooks/User';
// Material UI Components
import { Button, Typography, styled } from '@mui/material';
// Imgs
import http404img from 'assets/img/http404.gif';
import http404ropeImg from 'assets/img/http404rope.gif';
//... | 32,395 |
https://github.com/Dittner/GSA/blob/master/src/de/dittner/siegmar/view/login/LoginVM.as | Github Open Source | Open Source | Apache-2.0 | null | GSA | Dittner | null | Spoken | 170 | 756 | package de.dittner.siegmar.view.login {
import de.dittner.async.IAsyncOperation;
import de.dittner.siegmar.backend.FileStorage;
import de.dittner.siegmar.model.Device;
import de.dittner.siegmar.model.domain.fileSystem.SiegmarFileSystem;
import de.dittner.siegmar.model.domain.user.User;
import de.dittner.siegmar.view.co... | 6,336 |
https://github.com/HeyJude1/highlight/blob/master/js/standalone/webpack.config.js | Github Open Source | Open Source | MIT | null | highlight | HeyJude1 | JavaScript | Code | 31 | 97 | const path = require('path');
module.exports = {
entry: './index.js',
output: {
filename: 'bundle.js',
path: path.resolve(__dirname, 'dist'),
},
externals: {
jquery: 'jQuery'
},
optimization:{
minimize: false, // <---- disables uglify.
}
}; | 22,591 |
https://github.com/AlySystem/alyskiper-backend-2019-12-13/blob/master/src/mapping/users/users.module.ts | Github Open Source | Open Source | MIT | null | alyskiper-backend-2019-12-13 | AlySystem | TypeScript | Code | 63 | 186 | import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { UserService } from './user.service';
import { User } from './user.entity';
import { UserResolver } from './user.resolver';
import { CountriesModule } from '../countries/countries.module';
import { CitiesModule } from '../... | 45,397 |
https://github.com/Bin-yoo/WarehouseManagementSystem/blob/master/eladmin-ui/src/views/basedata/tb_warehouse/index.vue | Github Open Source | Open Source | Apache-2.0 | null | WarehouseManagementSystem | Bin-yoo | Vue | Code | 660 | 3,212 | <template>
<div class="app-container">
<!--工具栏-->
<div class="head-container">
<!--如果想在工具栏加入更多按钮,可以使用插槽方式, slot = 'left' or 'right'-->
<div v-if="crud.props.searchToggle">
<!-- 搜索 -->
<el-input
v-model="query.whName"
clearable
size="small"
pl... | 402 |
https://github.com/ponomar/forms_api/blob/master/tests/fields/test_select_multiple_field.py | Github Open Source | Open Source | BSD-3-Clause | null | forms_api | ponomar | Python | Code | 312 | 1,204 | from forms_api.fields.select_multiple_field import SelectMultipleField
from tests.fields.utils import FieldTestCase
class TestSelectMultipleField(FieldTestCase):
def test_common(self):
self.do_common(
field_cls=SelectMultipleField,
default=['1'],
default_new=['2'],
... | 37,169 |
https://github.com/longtime55/5on6.pl/blob/master/public/vendor/admin/script.js | Github Open Source | Open Source | MIT | null | 5on6.pl | longtime55 | JavaScript | Code | 16 | 45 |
/**
* Redirect URL
* @param url
*/
function redirect(url) {
window.location.replace(url);
window.location.href = url;
}
| 53,281 |
https://github.com/bilenko-git/nsign/blob/master/vendor/react/event-loop/tests/AbstractLoopTest.php | Github Open Source | Open Source | BSD-3-Clause | 2,019 | nsign | bilenko-git | PHP | Code | 793 | 3,541 | <?php
namespace React\Tests\EventLoop;
abstract class AbstractLoopTest extends TestCase
{
/**
* @var \React\EventLoop\LoopInterface
*/
protected $loop;
public function setUp()
{
$this->loop = $this->createLoop();
}
abstract public function createLoop();
public function... | 45,274 |
https://github.com/googleapis/java-bigtable-hbase/blob/master/bigtable-dataflow-parent/bigtable-beam-import/src/main/java/com/google/cloud/bigtable/beam/sequencefiles/ImportJob.java | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-unknown-license-reference | 2,023 | java-bigtable-hbase | googleapis | Java | Code | 564 | 2,002 | /*
* Copyright 2017 Google LLC
*
* 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 i... | 38,637 |
https://github.com/calebkw91/BookItList/blob/master/routes/book-api-routes.js | Github Open Source | Open Source | MIT | 2,021 | BookItList | calebkw91 | JavaScript | Code | 185 | 683 | // Requiring our models as we've configured it
const db = require('../models');
module.exports = function (app) {
app.get('/dashboard', (req, res) => {
if(req.user){
userId = req.user.id;
db.Book.findAll({
include: db.User,
where: {
... | 45,566 |
https://github.com/LinqLover/context-s/blob/master/src/BoBreakout.package/BoBlock.class/instance/decreaseLifesBy..st | Github Open Source | Open Source | MIT | 2,021 | context-s | LinqLover | null | Spoken | 17 | 47 | accessing
decreaseLifesBy: aNumber
self remainingLifes: self remainingLifes - aNumber.
self remainingLifes isZero ifTrue: [ self remove ] | 19,620 |
https://github.com/jonmcquade/csharp-snippets/blob/master/SmartStoreNET-3.x/src/Presentation/SmartStore.Web/Administration/Views/Country/_CreateOrUpdateState.cshtml | Github Open Source | Open Source | MIT | 2,020 | csharp-snippets | jonmcquade | C# | Code | 117 | 616 | @model StateProvinceModel
@using Telerik.Web.Mvc.UI;
@Html.ValidationSummary(false)
@Html.HiddenFor(model => model.Id)
@Html.HiddenFor(model => model.CountryId)
@(Html.LocalizedEditor<StateProvinceModel, StateProvinceLocalizedModel>("state-localized",
@<table class="adminContent">
<tr>
<td class="adminTi... | 23,290 |
https://github.com/varmaan/HtmlUnit/blob/master/src/test/resources/libraries/GWT/2.0.1/Showcase/showcase/deferredjs/B8F2FE4246A2D95E5115E02E4AD555FE/20.cache.js | Github Open Source | Open Source | Apache-2.0 | 2,010 | HtmlUnit | varmaan | JavaScript | Code | 21 | 321 | function o5(){}
function A5(){return VR}
function E5(){var a;while(t5){a=t5;t5=t5.b;!t5&&(u5=null);wjb(a.a.a,Mwb())}}
function B5(){w5=true;v5=(y5(),new o5);uo((ro(),qo),20);!!$stats&&$stats($o(tYc,ilc,null,null));v5.vc();!!$stats&&$stats($o(tYc,tEc,null,null))}
function Mwb(){var a,b,c;b=pRb(new nRb);b2b(b.J,Ykc,uYc);... | 25,134 |
https://github.com/jasonzhengfei/gdmap/blob/master/lib/src/android/com/autonavi/ae/gmap/gloverlay/GLTextureProperty.g.dart | Github Open Source | Open Source | Apache-2.0 | 2,021 | gdmap | jasonzhengfei | Dart | Code | 748 | 4,476 | // ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast
//////////////////////////////////////////////////////////
// GENERATED BY FLUTTIFY. DO NOT EDIT IT.
//////////////////////////////////////////////////////////
import '... | 6,543 |
https://github.com/artursouzagarcia/reactPhaser/blob/master/src/components/popUps/popUpLivros.js | Github Open Source | Open Source | MIT | null | reactPhaser | artursouzagarcia | JavaScript | Code | 83 | 266 | import React from 'react';
import { Container } from './popUpStyles';
import imgClose from '../../assets/close.png';
const PopUpLivros = ({ closePopUp }) => {
return (
<Container className="popup" id="popUpLivros" style={{ display: 'flex' }}>
<div className="contentPopUp">
<div ... | 46,477 |
https://github.com/Mikuana/oops_fhir/blob/master/oops_fhir/r4/code_system/copy_number_event.py | Github Open Source | Open Source | MIT | null | oops_fhir | Mikuana | Python | Code | 91 | 314 | from pathlib import Path
from fhir.resources.codesystem import CodeSystem
from oops_fhir.utils import CodeSystemConcept
__all__ = ["CopyNumberEvent"]
_resource = CodeSystem.parse_file(Path(__file__).with_suffix(".json"))
class CopyNumberEvent:
"""
CopyNumberEvent
Copy Number Event.
Status: draf... | 11,794 |
https://github.com/natac13/natac-electric/blob/master/gatsby-browser.js | Github Open Source | Open Source | 0BSD | 2,020 | natac-electric | natac13 | JavaScript | Code | 70 | 207 | import { Auth } from 'aws-amplify'
import { setUser } from './src/services/auth'
export const onRouteUpdate = (state, page, pages) => {
Auth.currentAuthenticatedUser()
.then((user) => {
// console.log(user)
const userInfo = {
...user.attributes,
username: user.username,
}
... | 52,428 |
https://github.com/gistable/gistable/blob/master/all-gists/4693476/snippet.py | Github Open Source | Open Source | MIT | 2,023 | gistable | gistable | Python | Code | 179 | 424 | import sys
import re
import codecs # UniCode support
from pymongo import Connection # For DB Connection
from pymongo.errors import ConnectionFailure # For catching exeptions
def main():
# MongoDB connection
try:
db_conn = Connection(host="localhost", port=27017) # Here we specified the default parameters ex... | 2,257 |
https://github.com/at-internet/atinternet-windows-sdk/blob/master/ATMobileAnalytics/TrackerTests/StorageTest.cs | Github Open Source | Open Source | MIT | null | atinternet-windows-sdk | at-internet | C# | Code | 92 | 403 | using ATInternet;
using Microsoft.VisualStudio.TestPlatform.UnitTestFramework;
namespace TrackerTests
{
[TestClass]
public class StorageTest
{
Storage storage = Storage.Instance;
[TestInitialize]
public void setUp()
{
storage.RemoveAllOfflineHits();
}
... | 2,404 |
https://github.com/tokibi/sabakan/blob/master/web/version_test.go | Github Open Source | Open Source | MIT | 2,020 | sabakan | tokibi | Go | Code | 43 | 185 | package web
import (
"net/http"
"net/http/httptest"
"testing"
"github.com/cybozu-go/sabakan/v2/models/mock"
)
func testHandleVersion(t *testing.T) {
m := mock.NewModel()
handler := newTestServer(m)
w := httptest.NewRecorder()
r := httptest.NewRequest("GET", "/version", nil)
handler.ServeHTTP(w, r)
resp :=... | 15,650 |
https://github.com/Inao0/pharo/blob/master/src/FileSystem-Tests-Core/SystemResolverTest.class.st | Github Open Source | Open Source | MIT | 2,019 | pharo | Inao0 | null | Spoken | 239 | 567 | "
SUnit tests for SystemResolver
"
Class {
#name : #SystemResolverTest,
#superclass : #FileSystemResolverTest,
#instVars : [
'originalUserLocalDir'
],
#category : #'FileSystem-Tests-Core-Resolver'
}
{ #category : #running }
SystemResolverTest >> createResolver [
^ SystemResolver new
]
{ #category : #running }... | 29,332 |
https://github.com/Lucho2708/RENAWARE/blob/master/tests/Feature/EmployeeTest.php | Github Open Source | Open Source | MIT | null | RENAWARE | Lucho2708 | PHP | Code | 75 | 293 | <?php
namespace Tests\Feature;
use Tests\TestCase;
use Illuminate\Foundation\Testing\WithFaker;
use Illuminate\Foundation\Testing\RefreshDatabase;
class EmployeeTest extends TestCase
{
/**
* A basic feature test example.
*
* @return void
*/
public function test_create_employee()
{
... | 37,881 |
https://github.com/RyzeCodes/Mayank-Projects/blob/master/project-template-fresh-eoic-archery-5-main/sketch.js | Github Open Source | Open Source | MIT | null | Mayank-Projects | RyzeCodes | JavaScript | Code | 428 | 1,208 | const Engine = Matter.Engine;
const World = Matter.World;
const Bodies = Matter.Bodies;
const Constraint = Matter.Constraint;
var engine, world;
var canvas;
var palyer, playerBase;
var computer, computerBase;
//Declare an array for arrows playerArrows = [ ]
var playerArrows = [];
var computerArrows = []
var arrow;
va... | 32,409 |
https://github.com/rbirkby/mscui/blob/master/Solutions/Main/NhsCui.Toolkit.Test/PatientSearchTitleTest.cs | Github Open Source | Open Source | MS-PL | 2,021 | mscui | rbirkby | C# | Code | 353 | 968 | //-----------------------------------------------------------------------
// <copyright file="PatientSearchTitleTest.cs" company="Microsoft Corporation and Crown copyright 2007 - 2010.">
// Copyright (c) Microsoft Corporation and Crown copyright 2007 - 2010.
// All rights reserved.
//
// CERTAIN PARTS OF THIS WORK CONT... | 14,752 |
https://github.com/seefeesaw/docker/blob/master/00_how_to_docker/14 | Github Open Source | Open Source | MIT | 2,021 | docker | seefeesaw | Shell | Code | 11 | 34 | #!/bin/bash
docker run --name lair --link spawning-pool:mysql -p 8080:80 -d wordpress
| 16,469 |
https://github.com/vHanda/google-keep-exporter/blob/master/src/parser.ts | Github Open Source | Open Source | Apache-2.0 | 2,020 | google-keep-exporter | vHanda | TypeScript | Code | 221 | 715 | import * as cheerio from "cheerio";
import { Note } from "./types";
var chrono = require("chrono-node");
var TurndownService = require("turndown");
function getImages(node: CheerioElement | CheerioElement[]) {
var images: string[] = [];
if (node instanceof Array) {
node.forEach(child => {
images = image... | 39,439 |
https://github.com/xiaowulf/html5quote/blob/master/teachertlk.web/src/main/webapp/js/index_websocket.js | Github Open Source | Open Source | MIT | 2,021 | html5quote | xiaowulf | JavaScript | Code | 101 | 878 |
var ws = new WebSocket("ws://localhost:7080/html5quote/indexquoteserver");
ws.onopen = function(evt) {
console.log("Connection open ...");
//ws.send("getQuote");
};
ws.onmessage = function(evt) {
const obj = JSON.parse(evt.data);
if(obj.closePrice>obj.openPrice){
$("#"+ obj.instrumentID+"openPrice").ht... | 6,485 |
https://github.com/kaykhuq/stream-on/blob/master/app/containers/PackContainer/saga.js | Github Open Source | Open Source | MIT | null | stream-on | kaykhuq | JavaScript | Code | 85 | 204 | // // import { take, call, put, select } from 'redux-saga/effects';
// // Individual exports for testing
// export default function* defaultSaga() {
// // See example in containers/HomePage/saga.js
// }
import { take, call, put, select,fork } from 'redux-saga/effects';
import { loadPacks } from './actions';
import ... | 47,032 |
https://github.com/VEuPathDB/WDK/blob/master/Model/src/main/java/org/gusdb/wdk/model/dbms/QueryLogInfo.java | Github Open Source | Open Source | Apache-2.0 | 2,023 | WDK | VEuPathDB | Java | Code | 47 | 163 | package org.gusdb.wdk.model.dbms;
import org.gusdb.wdk.model.WdkModel;
public class QueryLogInfo {
WdkModel wdkModel;
String sql;
String name;
long startTime;
long firstPageTime;
public QueryLogInfo(WdkModel wdkModel, String sql, String name,
long startTime, long firstPageTime) {
this.wdkMod... | 48,693 |
https://github.com/david-portilla/heroes-app/blob/master/src/selectors/getHeroById.js | Github Open Source | Open Source | MIT | null | heroes-app | david-portilla | JavaScript | Code | 20 | 46 | const { heroes } = require('../data/heroes');
export const getHeroesById = (id) => {
return heroes.find(hero => hero.id === id)
} | 45,573 |
https://github.com/Jackle1996/travel-bob/blob/master/api/grpc-ts/comments_pb.d.ts | Github Open Source | Open Source | MIT | 2,019 | travel-bob | Jackle1996 | TypeScript | Code | 476 | 1,840 | // package: travelbob.comments
// file: comments.proto
/* tslint:disable */
import * as jspb from "google-protobuf";
export class AddCommentRequest extends jspb.Message {
hasComment(): boolean;
clearComment(): void;
getComment(): Comment | undefined;
setComment(value?: Comment): void;
seriali... | 11,673 |
https://github.com/RafalMol/itest/blob/master/itest-engine/src/main/java/org/itest/impl/ITestParamMergerImpl.java | Github Open Source | Open Source | MIT | null | itest | RafalMol | Java | Code | 614 | 1,684 | /**
* <pre>
* The MIT License (MIT)
*
* Copyright (c) 2014 Grzegorz Kochański
*
* 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... | 762 |
https://github.com/go-prj-code/gosshtool/blob/master/.gitignore | Github Open Source | Open Source | Apache-2.0 | 2,019 | gosshtool | go-prj-code | Ignore List | Code | 7 | 33 | bin/conf/conf.ini
conf/*
web
gosshtool
session/*
static/layui
models/base.go
| 43,452 |
https://github.com/LMNS3d/Mirheo/blob/master/src/mirheo/plugins/average_relative_flow.h | Github Open Source | Open Source | MIT | null | Mirheo | LMNS3d | C | Code | 107 | 416 | #pragma once
#include <mirheo/core/containers.h>
#include <mirheo/core/datatypes.h>
#include <mirheo/core/plugins.h>
#include <mirheo/plugins/average_flow.h>
#include <mirheo/plugins/channel_dumper.h>
#include <vector>
namespace mirheo
{
class ParticleVector;
class ObjectVector;
class CellList;
class AverageRelati... | 39,614 |
https://github.com/gradle/gradle/blob/master/subprojects/resources-sftp/src/integTest/groovy/org/gradle/integtests/resolve/resource/sftp/SftpClientReuseIntegrationTest.groovy | Github Open Source | Open Source | BSD-3-Clause, LGPL-2.1-or-later, LicenseRef-scancode-mit-old-style, EPL-2.0, CDDL-1.0, MIT, LGPL-2.1-only, Apache-2.0, MPL-2.0, EPL-1.0 | 2,023 | gradle | gradle | Groovy | Code | 246 | 805 | /*
* Copyright 2017 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 962 |
https://github.com/fabrication/fabrication/blob/master/tests/org/puremvc/as3/multicore/utilities/fabrication/core/test/FabricationViewTest.as | Github Open Source | Open Source | Apache-2.0 | 2,017 | fabrication | fabrication | null | Spoken | 468 | 2,021 | /**
* Copyright (C) 2008 Darshan Sawardekar.
*
* 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... | 374 |
https://github.com/fluffy-bunny/organic/blob/master/src/CosmosDB.SQLRepo/SQLRepository.cs | Github Open Source | Open Source | MIT | null | organic | fluffy-bunny | C# | Code | 105 | 412 | using CosmosDB.SQLRepo.Contract;
using Microsoft.Azure.Cosmos;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Threading.Tasks;
namespace CosmosDB.SQLRepo
{
public class SqlRepository<T> : ISqlRepository<T>
{
static protected CosmosClient ... | 9,696 |
https://github.com/nutiteq/hellomap3d-ios/blob/master/hellomap3/Nuti.framework/Versions/A/Headers/NTPackageManagerListener.h | Github Open Source | Open Source | BSD-2-Clause | 2,016 | hellomap3d-ios | nutiteq | Objective-C | Code | 775 | 1,584 | /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.11
*
* This file is not intended to be easily readable and contains a number of
* coding conventions designed to improve portability and efficiency. D... | 7,025 |
https://github.com/isabella232/jest-config/blob/master/packages/jest-config-base/lib/__snapshots__/base-config.test.js.snap | Github Open Source | Open Source | MIT | 2,021 | jest-config | isabella232 | null | Spoken | 217 | 1,235 | // Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`should match snapshot 1`] = `
Object {
"automock": false,
"bail": 0,
"cache": true,
"cacheDirectory": "<TEMP_DIR>/jest_1",
"changedFilesWithAncestor": false,
"clearMocks": false,
"collectCoverage": false,
"coveragePathIgnorePatterns": Array [
"/no... | 44,244 |
https://github.com/CavendishAstrophysics/postmortem/blob/master/src/monlib/print_list.f | Github Open Source | Open Source | BSD-2-Clause | 2,014 | postmortem | CavendishAstrophysics | null | Spoken | 229 | 637 |
*+PRINT_LIST
subroutine print_list( list, nlist, status )
C --------------------------------------------
C
C Print a formatted list.
C
C Given
C List
integer list(1)
C Number of items in the list
integer nlist
C Updated
C Error code
integer stat... | 35,642 |
https://github.com/zep1994/sinatra-secure-password-lab-v-000/blob/master/app/models/user.rb | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, LicenseRef-scancode-public-domain | 2,018 | sinatra-secure-password-lab-v-000 | zep1994 | Ruby | Code | 11 | 26 | class User < ActiveRecord::Base
has_secure_password #DO NOT FORGET THIS PART!!!
end
| 48,410 |
https://github.com/heal-research/HEAL.Attic/blob/master/src/HEAL.Attic/Core/Serializer.cs | Github Open Source | Open Source | MIT | 2,020 | HEAL.Attic | heal-research | C# | Code | 409 | 1,064 | #region License Information
/*
* This file is part of HEAL.Attic which is licensed under the MIT license.
* See the LICENSE file in the project root for more information.
*/
#endregion
using System.IO;
using System.IO.Compression;
using System.Threading;
namespace HEAL.Attic {
public abstract class Serializer :... | 40,513 |
https://github.com/CECS-491A/NHT-pointMap/blob/master/Frontend/src/components/charts/BarChart/Top5AvgTimeSpentPerPageBarChart.vue | Github Open Source | Open Source | MIT | null | NHT-pointMap | CECS-491A | Vue | Code | 192 | 567 | <script>
//Importing Bar class from the vue-chartjs wrapper
import { Bar } from 'vue-chartjs'
// Services
import { GetAnalyticsData, GetTopPagesByPageTime } from '@/services/analyticsServices';
//Exporting this so it can be used in other components
export default {
name: 'Top5AvgTimeSpentPerPageBarCha... | 39,108 |
https://github.com/TK-Aria/Unity-ApplicationAnalytics/blob/master/Assets/Analytics/Runtime/Scripts/Performance/PerformanceView.cs | Github Open Source | Open Source | MIT | null | Unity-ApplicationAnalytics | TK-Aria | C# | Code | 60 | 167 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
[RequireComponent(typeof(Text))][RequireComponent(typeof(PerformanceAnalyzer))]
public class PerformanceView : MonoBehaviour {
[SerializeField]
private Text performanceView;
[SerializeField]
private ... | 21,031 |
https://github.com/ViniSRibeiro/TP_AEDs1_02/blob/master/.gitignore | Github Open Source | Open Source | WTFPL | 2,018 | TP_AEDs1_02 | ViniSRibeiro | Ignore List | Code | 10 | 26 | # IDEA files
.idea
# CMake build folders
cmake-build*/
build/
| 15,730 |
https://github.com/neoskop/papergirl/blob/master/src/update/nginx/events/config-read.event.ts | Github Open Source | Open Source | Apache-2.0 | 2,022 | papergirl | neoskop | TypeScript | Code | 20 | 43 | import { Meta } from '../../../meta/meta.interface';
export class ConfigReadEvent {
constructor(public readonly meta: Meta, public readonly rootPath: string) {}
}
| 51,999 |
https://github.com/Jody-septiawan/himatika-uty/blob/master/application/views/oprec/header-notice.php | Github Open Source | Open Source | MIT | null | himatika-uty | Jody-septiawan | PHP | Code | 48 | 342 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Pengumuman final Oprec 2020</title>
<link rel="shortcut icon" type="image/png" href="<?= base_url('assets/img/himatikalogo.png') ?>" />
<link rel="stylesheet"... | 6,625 |
https://github.com/iliyan-trifonov/mycv-json2html/blob/master/src/js/app.js | Github Open Source | Open Source | MIT | 2,015 | mycv-json2html | iliyan-trifonov | JavaScript | Code | 111 | 451 | (function (angular) {
'use strict';
angular.module('MyCV', [
'MyCV.controllers',
'MyCV.services',
'MyCV.directives',
'ngRoute',
'ngAnimate'
])
.value('configFile', 'js/config.json')
.value('privatePropMessage', 'To be disclosed in person')
.config([
... | 11,228 |
https://github.com/alexngn2020/airback/blob/master/airback-core/src/main/java/com/airback/core/utils/ImageUtil.java | Github Open Source | Open Source | MIT | null | airback | alexngn2020 | Java | Code | 478 | 1,213 | /**
* Copyright © airback
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distribut... | 34,808 |
https://github.com/adrianciurdarean/bots/blob/master/lib/strategies.js | Github Open Source | Open Source | MIT | 2,017 | bots | adrianciurdarean | JavaScript | Code | 101 | 265 |
module.exports = function manageStrategies (bot) {
const usedStrategies = new Map()
function use (strategy, args) {
if (usedStrategies.get(strategy)) {
throw new Error('already using this strategy')
}
const install = strategy.install ? strategy.install.bind(strategy) : strategy
const disabl... | 5,507 |
https://github.com/AishaDarga/api-explorer-frontend/blob/master/node_modules/@carbon/icons-react/es/arrow--left/32.js | Github Open Source | Open Source | Apache-2.0 | 2,019 | api-explorer-frontend | AishaDarga | JavaScript | Code | 9 | 21 | import { ArrowLeft32 } from '..';
export default ArrowLeft32;
| 48,271 |
https://github.com/pingsutw/TonY/blob/master/tony-core/src/test/java/com/linkedin/tony/util/gpu/TestGpuDiscoverer.java | Github Open Source | Open Source | BSD-2-Clause | 2,021 | TonY | pingsutw | Java | Code | 372 | 1,162 | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... | 12,960 |
https://github.com/regyssilveira/DelphiRestFullDemo/blob/master/src/Servidor/Vcl/DelphiRestFullDemo.dpr | Github Open Source | Open Source | Apache-2.0 | 2,020 | DelphiRestFullDemo | regyssilveira | Pascal | Code | 38 | 195 | program DelphiRestFullDemo;
uses
Vcl.Forms,
Web.WebReq,
IdHTTPWebBrokerBridge,
uFrmMenu in 'uFrmMenu.pas' {FrmServidor},
uSM in 'uSM.pas' {SM: TDSServerModule},
uSC in 'uSC.pas' {SC: TDataModule},
uContato in '..\..\Modelo\uContato.pas';
{$R *.res}
begin
Application.Initialize;
Application.MainForm... | 44,099 |
https://github.com/fukouda/Supreme-Manga/blob/master/v0.0.1/res/unirest/tests/bootstrap.php | Github Open Source | Open Source | MIT | 2,016 | Supreme-Manga | fukouda | PHP | Code | 9 | 48 | <?php
require_once __DIR__ . '/../src/Unirest.php';
define('UPLOAD_FIXTURE', __DIR__ . '/fixtures/upload.txt');
| 18,337 |
https://github.com/MaN4thes3t/smile-cms/blob/master/backend/modules/source/models/SourceSearch.php | Github Open Source | Open Source | BSD-3-Clause | 2,016 | smile-cms | MaN4thes3t | PHP | Code | 144 | 507 | <?php
namespace backend\modules\source\models;
use Yii;
use yii\base\Model;
use yii\data\ActiveDataProvider;
use yii\helpers\VarDumper;
/**
* SourceSearch represents the model behind the search form about `backend\modules\source\models\Source`.
*/
class SourceSearch extends Source
{
public $name;
/**
... | 20,170 |
https://github.com/aldolipani/PoolBiasEstimators/blob/master/src/main/scala/at/ac/tuwien/ifs/ir/model/RunRecord.scala | Github Open Source | Open Source | Apache-2.0 | 2,020 | PoolBiasEstimators | aldolipani | Scala | Code | 80 | 215 | package at.ac.tuwien.ifs.ir.model
/**
* Created by aldo on 10/10/14.
*/
class RunRecord(val iteration: String, val document: Document, val rank: Int, val score: Float) {
override def toString: String = s"$iteration ${document.id} $rank $score"
}
object RunRecord {
def apply(iteration: String, document: Docume... | 30,968 |
https://github.com/msblum/OpenUnison/blob/master/unison/unison-lastmile-undertow-1.x/src/main/java/com/tremolosecurity/lastmile/undertow/UnisonIdentityManager.java | Github Open Source | Open Source | Apache-2.0 | 2,019 | OpenUnison | msblum | Java | Code | 158 | 398 | /*
Copyright 2015 Tremolo Security, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, s... | 45,839 |
https://github.com/JanneKiiskila/mbed-bootloader/blob/master/source/active_application.cpp | Github Open Source | Open Source | Apache-2.0 | null | mbed-bootloader | JanneKiiskila | C++ | Code | 1,345 | 3,967 | // ----------------------------------------------------------------------------
// Copyright 2016-2017 ARM Ltd.
//
// SPDX-License-Identifier: Apache-2.0
//
// 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 ... | 40,652 |
https://github.com/xformation/xformation-compliancemanager-service/blob/master/compliancemanager-storage-elasticsearch6/src/main/java/com/synectiks/process/common/storage/elasticsearch6/ScrollResultES6.java | Github Open Source | Open Source | Apache-2.0 | null | xformation-compliancemanager-service | xformation | Java | Code | 543 | 1,903 | /*
*
*/
package com.synectiks.process.common.storage.elasticsearch6;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.google.inject.assistedinject.Assisted;
import com.google.inject.assistedinject.AssistedInject;
import com.synectiks.process.server.indexer.results.IndexQueryResult;
import com.synectiks... | 16,428 |
https://github.com/lsa-pucrs/jason-ros-releases/blob/master/Jason-1.4.0a/src/test/BeliefBaseTest.java | Github Open Source | Open Source | BSD-3-Clause | 2,017 | jason-ros-releases | lsa-pucrs | Java | Code | 1,836 | 10,462 | package test;
import jason.RevisionFailedException;
import jason.asSemantics.Agent;
import jason.asSemantics.Intention;
import jason.asSemantics.Unifier;
import jason.asSyntax.ASSyntax;
import jason.asSyntax.Atom;
import jason.asSyntax.ListTermImpl;
import jason.asSyntax.Literal;
import jason.asSyntax.LiteralImpl;
imp... | 1,362 |
https://github.com/dantmnf/ArknightsAutoHelper/blob/master/penguin_stats/loader.py | Github Open Source | Open Source | MIT | 2,020 | ArknightsAutoHelper | dantmnf | Python | Code | 79 | 353 | import logging
import requests
import config
from . import model
logger = logging.getLogger('PenguinReporter')
stages = model.StageModel(())
items = model.ItemModel(())
constraints = model.ValidationModel(())
session = requests.Session()
def load_from_service():
global stages, items, constraints
resp = ... | 28,005 |
https://github.com/jsaynysa/Ksiazka/blob/master/src/common/IvGraphics/D3D11/IvVertexShaderD3D11.h | Github Open Source | Open Source | BSD-3-Clause | 2,022 | Ksiazka | jsaynysa | C | Code | 153 | 518 | //===============================================================================
// @ IvVertexShaderD3D11.h
//
// D3D11 vertex shader implementation
// ------------------------------------------------------------------------------
// Copyright (C) 2008-2015 James M. Van Verth and Lars M. Bishop.
// All rights reser... | 4,513 |
https://github.com/vslee/ObservableComputations/blob/master/src/ObservableComputations/Common/CallToConstantConverter.cs | Github Open Source | Open Source | MIT | null | ObservableComputations | vslee | C# | Code | 203 | 789 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Reflection;
namespace ObservableComputations
{
internal sealed class CallToConstantConverter : ExpressionVisitor
{
private readonly IEnumerable<ParameterExpression> _parameterExpressions;
public bool ... | 15,127 |
https://github.com/ZimCodes/self_learning_projects/blob/master/Design Patterns/Structural Pattern/Decorator/Bacon.cs | Github Open Source | Open Source | MIT | null | self_learning_projects | ZimCodes | C# | Code | 46 | 136 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Decorator
{
class Bacon:Decorator
{
public Bacon(Sandwich sandwich) : base(sandwich)
{
}
public override string getDesc()
{
return ... | 27,437 |
https://github.com/tapilab/is-odutfoy/blob/master/data/2005-06/player_stats/1088.pkl | Github Open Source | Open Source | MIT | 2,016 | is-odutfoy | tapilab | Pickle | Code | 2,371 | 9,157 | (dp0
S'stats'
p1
(lp2
(lp3
V0020500004
p4
aVNOV 02, 2005
p5
aVWAS @ TOR
p6
aVW
p7
aI20
aI1
aI4
aF0.25
aI0
aI1
aF0.0
aI0
aI0
aF0.0
aI0
aI0
aI0
aI3
aI0
aI0
aI1
aI3
aI2
aI5
aa(lp8
V0020500024
p9
aVNOV 04, 2005
p10
aVWAS @ NYK
p11
aVW
p12
aI12
aI0
aI3
aF0.0
aI0
aI2
aF0.0
aI3
aI3
aF1.0
aI0
aI1
aI1
aI1
aI1
aI0
aI1
aI3
aI3
aI... | 35,939 |
https://github.com/duongxeom/bonesi/blob/master/src/Makefile.am | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-warranty-disclaimer | 2,020 | bonesi | duongxeom | Makefile | Code | 8 | 34 |
bin_PROGRAMS = bonesi
bonesi_SOURCES = bonesi.c tcpoptions.h http.h
| 40,159 |
https://github.com/development-hoke/Laravel-Backend/blob/master/app/Http/Controllers/Api/V1/Admin/InformationController.php | Github Open Source | Open Source | MIT | null | Laravel-Backend | development-hoke | PHP | Code | 283 | 1,125 | <?php
namespace App\Http\Controllers\Api\V1\Admin;
use App\Http\Controllers\Api\V1\Admin\Controller as ApiAdminController;
use App\Http\Requests\Api\V1\Admin\Information\CreateRequest;
use App\Http\Requests\Api\V1\Admin\Information\DeleteRequest;
use App\Http\Requests\Api\V1\Admin\Information\IndexRequest;
use App\Ht... | 45,501 |
https://github.com/skycryer/carbon-for-ibm-dotcom/blob/master/packages/web-components/src/components/locale-modal/__stories__/locale-modal.stories.ts | Github Open Source | Open Source | Apache-2.0 | 2,022 | carbon-for-ibm-dotcom | skycryer | TypeScript | Code | 184 | 562 | /**
* @license
*
* Copyright IBM Corp. 2020
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
import { html } from 'lit-element';
import inPercy from '@percy-io/in-percy';
import ifNonNull from 'carbon-web-components/es/global... | 47,599 |
https://github.com/ofnullable/react-spa-template/blob/master/src/layouts/Footer.js | Github Open Source | Open Source | MIT | 2,023 | react-spa-template | ofnullable | JavaScript | Code | 113 | 352 | import React from 'react';
import { css } from '@emotion/react';
import { useThemeContext } from '../contexts/ThemeContext';
import { ReactComponent as GithubIcon } from '../assets/github.svg';
const footerStyle = css`
padding: 40px 16px;
& > nav {
margin: 0 auto;
max-width: 1280px;
display: flex;
... | 20,641 |
https://github.com/lywzx/rola-web/blob/master/src/entity/spaces.entity.ts | Github Open Source | Open Source | MIT | 2,019 | rola-web | lywzx | TypeScript | Code | 201 | 727 | import {Column, Entity, JoinColumn, ManyToMany, ManyToOne, OneToMany, PrimaryGeneratedColumn} from 'typeorm';
import {UserEntity} from './user.entity';
import {BaseEntity} from './base.entity';
import {ProjectsEntity} from './projects.entity';
import {EnvironmentsEntity} from './environments.entity';
import {IsNotEmpty... | 35,761 |
https://github.com/barry-scott/scm-workbench/blob/master/Source/Scm/wb_scm_factory_abc.py | Github Open Source | Open Source | Apache-2.0 | 2,022 | scm-workbench | barry-scott | Python | Code | 141 | 469 | #!/usr/bin/python3
'''
====================================================================
Copyright (c) 2016 Barry A Scott. All rights reserved.
This software is licensed as described in the file LICENSE.txt,
which you should have received as part of this distribution.
========================================... | 31,989 |
https://github.com/srichers/thornado/blob/master/Modules/TimeStepping/TimeSteppingModule_Explicit.f90 | Github Open Source | Open Source | BSD-3-Clause | 2,020 | thornado | srichers | null | Spoken | 241 | 822 | MODULE TimeSteppingModule_Explicit
USE KindModule, ONLY: &
DP
USE UnitsModule, ONLY: &
UnitsDisplay
USE InputOutputModule, ONLY: &
WriteFields1D
USE FluidRadiationCouplingSolutionModule_Explicit, ONLY: &
ComputeRHS_FluidRadiationCoupling_Explicit_EmissionAbsorption
IMPLICIT NONE
PRIVATE
... | 18,256 |
https://github.com/MassICTBV/casinocoind/blob/master/src/casinocoin/consensus/LedgerTiming.h | Github Open Source | Open Source | BSL-1.0 | 2,020 | casinocoind | MassICTBV | C | Code | 1,451 | 3,005 | //------------------------------------------------------------------------------
/*
This file is part of rippled: https://github.com/ripple/rippled
Copyright (c) 2012, 2013 Ripple Labs Inc.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby ... | 18,426 |
https://github.com/Letractively/web-simple/blob/master/src/main/java/org/onpu/websimlpe/common/ReflectiveBuilder.java | Github Open Source | Open Source | Apache-2.0 | null | web-simple | Letractively | Java | Code | 126 | 306 | package org.onpu.websimlpe.common;
import java.lang.reflect.Constructor;
import java.lang.reflect.InvocationTargetException;
/**
* This class is using for create instances of class by it default constructors
*/
public class ReflectiveBuilder {
/**
* This method is using for create instances of class by it... | 42,596 |
https://github.com/Jimut123/code-backup/blob/master/java_backup/my java/amlan/fileprog/file_pro1.java | Github Open Source | Open Source | MIT | 2,021 | code-backup | Jimut123 | Java | Code | 106 | 503 | package fileprog;
//display the file output in sorted order of name
import java.io.*;
class file_pro1
{
public static void main(String args[])
{
String a[][]=new String[100][100];
String temp[][]=new String[100][100];
int i,j,t,k,k1;
String filename="student";
boolean EOF=false;
i=j=0;
try
{
FileInputStream fr=new Fi... | 119 |
https://github.com/GandyT/EasyCord/blob/master/src/core/classes/discord/Guild.js | Github Open Source | Open Source | Apache-2.0 | null | EasyCord | GandyT | JavaScript | Code | 90 | 340 | class Guild {
constructor(guildData, client) {
// reference to the client
this._client = client;
this.name = guildData.name;
this.size = guildData.mebmer_count;
this.nsfw = guildData.nsfw;
this.id = guildData.id;
this.ownerId = guildData.owner_id;
thi... | 16,094 |
https://github.com/aravindrajpalani/GoalApp/blob/master/Goaler/app/src/main/java/com/social/goalapp/ui/profile/ProfileFragment.java | Github Open Source | Open Source | Apache-2.0 | null | GoalApp | aravindrajpalani | Java | Code | 173 | 833 | package com.social.goalapp.ui.profile;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
import com.... | 34,571 |
https://github.com/matkt/pantheon/blob/master/ethereum/eth/src/test/java/tech/pegasys/pantheon/ethereum/eth/manager/PeerReputationTest.java | Github Open Source | Open Source | Apache-2.0 | 2,018 | pantheon | matkt | Java | Code | 215 | 1,100 | /*
* Copyright 2018 ConsenSys AG.
*
* 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 wr... | 28,885 |
https://github.com/yuzd/Spa/blob/master/spa/Asset/EmbeddedAssetProvider.cs | Github Open Source | Open Source | Apache-2.0 | 2,021 | Spa | yuzd | C# | Code | 197 | 694 | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
namespace spa.Asset
{
public class Asset:IDisposable
{
public Asset(Stream stream, string mediaType)
{
Stream = stream;
MediaType = mediaType;
}
... | 23,113 |
https://github.com/lcsouzamenezes/nodejs-file-censure/blob/master/performance-comparison/comparison.js | Github Open Source | Open Source | MIT | 2,017 | nodejs-file-censure | lcsouzamenezes | JavaScript | Code | 68 | 193 | var fs = require('fs');
var Promise = require('promise');
var streamApproach = require('./streamApproach');
var syncApproach = require('./syncApproach');
/**
* Name of the file to parse
*/
var fileName = process.argv[2];
/**
* Word to censure
*/
var wordToCensure = process.argv[3];
var regex = RegExp('\\b' + wo... | 27,328 |
https://github.com/dotMaro/practical-react-components/blob/master/packages/ui-tests/src/coreComponents/Table.spec.ts | Github Open Source | Open Source | MIT | null | practical-react-components | dotMaro | TypeScript | Code | 163 | 603 | /// <reference types="cypress" />
context('Table', () => {
const checkboxEl = '[class^=Checkbox__Container]'
before(() => {
cy.visit('http://localhost:9009/#components/table')
})
it('is rendered correctly', () => {
cy.get('[data-cy=table]').should('be.exist').should('be.visible')
})
it('has corr... | 34,935 |
https://github.com/AdamMagaluk/leo/blob/master/commands/search.js | Github Open Source | Open Source | MIT | 2,021 | leo | AdamMagaluk | JavaScript | Code | 117 | 360 | var spawn = require('child_process').spawn
, split = require('split')
, through = require('through')
, out = require('../lib/output');
var Program = null;
module.exports.setup = function(program){
program
.command('search')
.description('Search for supported libraries.')
.action(run);
Program ... | 53,049 |
https://github.com/openshift/openshift-docs/blob/master/modules/cnf-du-configuring-a-performance-profile-to-support-workload-partitioning.adoc | Github Open Source | Open Source | Apache-2.0 | 2,023 | openshift-docs | openshift | AsciiDoc | Code | 60 | 144 | // Module included in the following assemblies:
//
// *scalability_and_performance/cnf-provisioning-and-installing-a-distributed-unit.adoc
[id="cnf-du-configuring-a-performance-profile-to-support-workload-partitioning.adoc_{context}"]
= Configuring a performance profile to support workload partitioning
After you hav... | 34,959 |
https://github.com/kodomomo/dsm-payments-admin/blob/master/dsm-payments-admin/src/components/default/modal/style/index.ts | Github Open Source | Open Source | MIT | null | dsm-payments-admin | kodomomo | TypeScript | Code | 90 | 295 | import styled from "styled-components";
export const ModalBackground = styled.div`
width: 100%;
height: 100vh;
position: fixed;
background-color: rgba(0, 0, 0, 0.3);
display: flex;
justify-content: center;
align-items: center;
top: 0;
left: 0;
z-index: 1000000;
`;
export const Modal = styled.div`
... | 8,500 |
https://github.com/certified-potato/jsglr2-inlined/blob/master/org.spoofax.jsglr/src/org/spoofax/jsglr/client/KeywordRecognizer.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | jsglr2-inlined | certified-potato | Java | Code | 216 | 681 | package org.spoofax.jsglr.client;
import static org.spoofax.terms.Term.isTermAppl;
import static org.spoofax.terms.Term.termAt;
import java.util.HashSet;
import java.util.Set;
import org.spoofax.interpreter.terms.IStrategoAppl;
import org.spoofax.interpreter.terms.IStrategoConstructor;
import org.spoofax.interpreter... | 22,369 |
https://github.com/Blast12345/LightOrganClient/blob/master/LightOrganClient/src/RBG.cpp | Github Open Source | Open Source | MIT | null | LightOrganClient | Blast12345 | C++ | Code | 149 | 449 | #include "RGB.h"
#include <sstream>
std::vector<RGB> RGB::multipleFrom(std::string message)
{
std::vector<std::string> colorStrings;
std::stringstream s_stream(message);
// Split our message into individual color strings
while (s_stream.good())
{
std::string led;
getline(s_stream, ... | 34,883 |
https://github.com/AntonLatyshev/Trends/blob/master/admin/view/template/catalog/promotags_form.tpl | Github Open Source | Open Source | WTFPL | null | Trends | AntonLatyshev | null | Spoken | 210 | 835 | <?php echo $header; ?><?php echo $column_left; ?>
<div id="content">
<div class="page-header">
<div class="container-fluid">
<div class="pull-right">
<button type="submit" form="form" data-toggle="tooltip" title="<?php echo $button_save; ?>" class="btn btn-primary"><i class="fa f... | 10,039 |
https://github.com/fakhar-ali/mysocceracademy.com/blob/master/wp-content/plugins/bluehost-wordpress-plugin/vendor/endurance/wp-module-data/src/Encryption.php | Github Open Source | Open Source | Unlicense | 2,022 | mysocceracademy.com | fakhar-ali | PHP | Code | 540 | 1,293 | <?php
namespace Endurance\WP\Module\Data;
/**
* Encrypt/Decrypt strings for database storage
*/
class Encryption {
/**
* Key to use for encrypting/decrypting
*
* @since 1.0
* @var string
*/
private $key;
/**
* Salt to use prior to encryption
*
* @since 1.0
* @var string
*/
private $salt;
... | 1,569 |
https://github.com/Tugsbileg0405/SmartSolution/blob/master/resources/views/partials/navbar.blade.php | Github Open Source | Open Source | MIT | null | SmartSolution | Tugsbileg0405 | PHP | Code | 201 | 989 | <nav class="navbar navbar-toggleable-md fixed-top navbar-transparent nav-down" color-on-scroll="100">
<div class="container">
<div class="navbar-translate">
<button class="navbar-toggler navbar-toggler-right navbar-burger" type="button" data-toggle="collapse" data-target="#navbarToggler"
... | 34,978 |
https://github.com/michezio/Processing/blob/master/NN_PixelCrossMap/Matrix.pde | Github Open Source | Open Source | MIT | 2,020 | Processing | michezio | null | Spoken | 984 | 3,257 | public static class Matrix {
private int rows;
private int cols;
public double[][] data;
public Matrix(int rows, int cols) {
this.rows = rows;
this.cols = cols;
this.data = new double[rows][];
for (int i=0; i<rows; ++i) {
this.data[i] = new double[cols];
for (int j=0; j<cols; ++j) {
this.data[... | 31,257 |
https://github.com/Johnafriedman/numina-family/blob/master/www/www.numina.org/scripts/utils/movementUtils.js | Github Open Source | Open Source | MIT | null | numina-family | Johnafriedman | JavaScript | Code | 235 | 878 | moveUtils = function(){
function facing(vector)
{
var newangle = Math.atan2(vector.x, -vector.y) * 180 / Math.PI;
return newangle;
}
function seek(target,point)
{
var desired = Phaser.Point.subtract(target,point);
return desired;
}
function seekSteer(target,position,curVelocity, maxForce... | 49,405 |
https://github.com/learning-student/ignite-bowser-ultimate/blob/master/boilerplate/app/services/api/fixture.ts | Github Open Source | Open Source | MIT | null | ignite-bowser-ultimate | learning-student | TypeScript | Code | 10 | 21 | const fixture = {
get(){
}
}
export default fixture
| 46,909 |
https://github.com/bryant1410/Mask-Align/blob/master/thualign/utils/config.py | Github Open Source | Open Source | BSD-3-Clause | 2,022 | Mask-Align | bryant1410 | Python | Code | 360 | 1,261 | # coding=utf-8
# Copyright 2021-Present The THUAlign Authors
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import os
import json
import configparser
import logging
def parse(value):
res = value
if value[0] in ('[', '(') and value[-1] in (']', ')'... | 18,246 |
https://github.com/Kern-River-Corp/accelerator/blob/master/MyMessagesAlertResolutionStatusCode.php | Github Open Source | Open Source | MIT | 2,018 | accelerator | Kern-River-Corp | PHP | Code | 84 | 307 | <?php
// autogenerated file 30.09.2013 15:20
// $Id: $
// $Log: $
//
require_once 'EbatNs_FacetType.php';
/**
* This type is deprecated because <b>MyMessagesAlert*</b> are deprecated.
*
* @link http://developer.ebay.com/DevZone/XML/docs/Reference/eBay/types/MyMessagesAlertResolutionStatusCode.html
*
* @property ... | 37,211 |
https://github.com/quantum-pie/RoboND-Kinematics-Project/blob/master/kuka_arm/scripts/kuka_kinematics.py | Github Open Source | Open Source | MIT | 2,020 | RoboND-Kinematics-Project | quantum-pie | Python | Code | 579 | 2,360 | #!/usr/bin/env python
# import modules
import numpy as np
from sympy import symbols, cos, sin, pi, sqrt, atan2, simplify
from sympy.matrices import Matrix
from sympy.solvers import solve
import tf
import argparse
import rospy
def spherical_wrist_inverse(R):
print("R: " + str(R))
c5 = R[1,2]
s5 = +np.sqrt(... | 21,234 |
https://github.com/Nesur/hms-flutter-plugin/blob/master/flutter-hms-awareness/lib/dataTypes/captureTypes/weatherPosition.dart | Github Open Source | Open Source | Apache-2.0 | 2,021 | hms-flutter-plugin | Nesur | Dart | Code | 243 | 603 | /*
Copyright 2020-2021. Huawei Technologies Co., Ltd. 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
https://www.apache.org/licenses/LICENSE-2.0
Un... | 18,554 |
https://github.com/andyjia/goutil/blob/master/xnsq/nsq.go | Github Open Source | Open Source | Apache-2.0 | 2,020 | goutil | andyjia | Go | Code | 27 | 95 | package xnsq
import "github.com/learninto/goutil/conf"
type Nsq struct {
Topic string
Host string
Port string
}
func NewNsq() Nsq {
return Nsq{
Host: conf.Get("NSQ_HOST"),
Port: conf.Get("NSQ_PORT"),
}
}
| 40,661 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.