branch_name stringclasses 149
values | text stringlengths 23 89.3M | directory_id stringlengths 40 40 | languages listlengths 1 19 | num_files int64 1 11.8k | repo_language stringclasses 38
values | repo_name stringlengths 6 114 | revision_id stringlengths 40 40 | snapshot_id stringlengths 40 40 |
|---|---|---|---|---|---|---|---|---|
refs/heads/master | <file_sep>import { LightningElement, track, wire, api } from 'lwc';
import { ShowToastEvent } from 'lightning/platformShowToastEvent';
import saveEscReason from '@salesforce/apex/CaseEscalationController_LWC.escalateCs';
import { fireEvent } from 'c/pubsub'
export default class CustomerEscalationLWC extends LightningE... | 34a2e90ea307ec4f1675727633542e701e7e3d45 | [
"JavaScript"
] | 48 | JavaScript | jully-popat/Zscaler-Dev | 6b9670e787fd2f4632e0ff68c0e3f76625d397bf | 182ac95b49f707661d8ea173fdc9fcf49eea1aee |
refs/heads/master | <file_sep>
void PWM_Mode1_Init(unsigned char channel, unsigned char duty_cycle);
void PWM_Mode3_Init(unsigned char channel, unsigned int duty_cycle);
<file_sep>/*--------------------------------------------------------------------------
TLregs.H
Header file for STM 3200 MicroPSD (uPSD) microcontrolle... | 3516d9a41fc169853158a1737617d9b36e94df9c | [
"C",
"Text",
"INI"
] | 25 | C | zzy-driver/usb | 36d8a16db86dbc10bf00d21bd80dab8db4312461 | 2e429549a4ec49ebee87a2f1d3a53f6e468b478e |
refs/heads/master | <repo_name>gingerzoealex/snake-duck<file_sep>/app/components/Footer/Footer.js
import React from 'react';
import './style.scss';
const Footer = () => (
<footer>
<section>This project is licensed under the MIT license.</section>
<section>Thanks to <a href="https://github.com/flexdinesh/react-redux-boilerplate"... | f839dd7da9dea738369f1cd8b7c9d9426efa6436 | [
"JavaScript",
"Markdown"
] | 3 | JavaScript | gingerzoealex/snake-duck | fac29b4c3c281e94ebab5275932dc9c3d31ab7db | f2d3efc4b7f800a86bb34d5d66a6ec192c7b26ca |
refs/heads/master | <repo_name>diogobernardelli/reddit-top-50<file_sep>/README.md
# REDDIT TOP 50
> Reddit Top 50 Posts (VueJS proof of concept) - <NAME>
## Download / Clone project
From the terminal, type the following command
```bash
$ git clone https://github.com/diogobernardelli/reddit-top-50.git
```
## Dependencies
**Linux syste... | e7a2556595c6357ac0894a68606a61fba606ea79 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | diogobernardelli/reddit-top-50 | 0f4337b50d14a566f33805478b2b316aa5b9fab3 | bd55b595e6ab3867049445ab31a8226c7b6ea982 |
refs/heads/master | <file_sep>Config = {}
Config.RestartTimes = {
HMSToTime(2, 0, 0)
}
Config.Music = 'https://redm.khzae.net/ttwii.ogg'
Config.Effect = 'Mission_FIN1_RideGood'
<file_sep>game 'rdr3'
fx_version 'adamant'
rdr3_warning 'I acknowledge that this is a prerelease build of RedM, and I am aware my resources *will* become incomp... | ad7cda08c307a631e206b2f1d0363ce8683a35aa | [
"Lua"
] | 3 | Lua | ShoYasu/redm-server-restart | 90ebb5969113fd0f3d94dd258bd671bf15abec9f | 2effb3b7b1393225d7660ecd6d1cca5818fbe727 |
refs/heads/main | <repo_name>jbn-code/Tesis_2021<file_sep>/02_software/development/Heltec_sht11/src/configuration.h
//Board: Hectec Lora Wifi LoRa V2
#define I2C_SDA 4 // I2C pins for this board
#define I2C_SCL 15 // I2C pins for this board
#define RESET_OLED 16 // If defined, this pin will be used to reset the display controller
#... | 14404de27bca0887eabe867ad1410ea43a5437e7 | [
"C"
] | 1 | C | jbn-code/Tesis_2021 | bcfd484d8bac786badcddae41f277e3aef127849 | a0e863b5762616c5585332fcaaf3a865551ccab7 |
refs/heads/master | <repo_name>MaitreyaBuddha/sansquery<file_sep>/Makefile
#
# Tools
#
# Author: <NAME>
#
# Default settings, save contents (sans .zip) to unique name
seed?=SansQuery
name?=${seed}$(shell date "+%Y-%m-%d").zip
dest?=${name}
files?=$(shell ls|\grep -Ev '.zip|Makefile')
# `make` will give you 1 zip file of what you want
de... | 7c13c05cdfe55e78458d773fb28d8d4e2e57a2fc | [
"JavaScript",
"Makefile"
] | 2 | Makefile | MaitreyaBuddha/sansquery | 33808d1dc16f4d657ddd0c2899287827255e59f9 | 4f7cfa6d6c68230e0f1a96fa0f2d53f9d939bb68 |
refs/heads/master | <repo_name>Robert-Fairley/ts-webpack-barebones<file_sep>/src/App.ts
/**
* @function Home
* @constructor
*
* @desc When constructed instantiates a series of elements that build out to
* a simple counter. The count is held in a state object which is accessed by
* other methods. When the state object is altered, th... | 534b0ea21c23fb4912aa2bb1076279f6e82a8476 | [
"JavaScript",
"TypeScript",
"Dockerfile",
"Markdown"
] | 5 | TypeScript | Robert-Fairley/ts-webpack-barebones | 1ad54f54266bca46729a5c0daacc194169e76f6b | 7021fa835288661ea00bb03745d54a170e23ca37 |
refs/heads/master | <file_sep>using System;
using System.Collections.ObjectModel;
using System.ComponentModel.DataAnnotations;
using System.Runtime.Serialization;
namespace MITD.Fuel.Presentation.Contracts.DTOs
{
[DataContract]
public partial class VoyageDto
{
long id;
[DataMember]
public long Id
... | 40256537741e980b870b4d14f329cb7da17b99ba | [
"C#"
] | 66 | C# | nmohammadi/MITD.Fuel.Integration | b2a2d4f1062022ad84f934f3ff5b90f20b315b51 | 4b7c3884650951b8e6f4826f3f32566391051c45 |
refs/heads/main | <repo_name>garis-project/frame<file_sep>/application/models/M_User.php
<?php
if (!defined('BASEPATH')) {
exit('No direct script access allowed');
}
class M_User extends CI_Model
{
private $table = "tb_user";
public function select()
{
return $this->db->select('*')
->get($this->tabl... | 3c6aa65275e1c016b9563796fbd9c8a4b6c37a36 | [
"PHP"
] | 1 | PHP | garis-project/frame | b358e3fb1d1b5da58510ca2d0aa96a837560ba4a | 919be365e93e2d86c2601698cfd0de1a6c683411 |
refs/heads/master | <repo_name>neurodata/ndreg-old<file_sep>/ndreg-old/metamorphosis.cxx
#include <iomanip> // setprecision()
#include <algorithm> // min(), max()
#include "itkImageMaskSpatialObject.h"
#include "itkNumericTraits.h"
#include "itkCommand.h"
#include "itkTimeProbe.h"
#include "itkImage.h"
#include "itkCommandLineArgumentPa... | 1c3538b3f0ddab3ef47a0bf461bd26b1dd0bb6cc | [
"Markdown",
"Dockerfile",
"Python",
"C++",
"Shell"
] | 8 | C++ | neurodata/ndreg-old | c4066879a381ef69eb818ebf2beb0b8999fbe559 | 7e7d45e78297e67d8a7d1c0a612ddb3b1f3baa95 |
refs/heads/master | <file_sep>'use strict';
var numOne;
var numTwo;
module.exports = function(numOne, numTwo){
return numOne * numTwo;
};<file_sep># Multiply two numbers
Simple package to multiply two numbers! This
**ES6**
```javascript
import multiply from 'multiplyTwoNumbers';
var product = multiply(10,30);
```
| 95b22bd711ff6189bc3956928e6d7f3192ef4877 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | varunkn4/multiplyTwoNumbers | 3ee8605a88786ebe0881618b51ceb12bcb4707e5 | c597fe6a44f9e61607fc9bf053ee78b9ccb0a7fc |
refs/heads/master | <file_sep>module.exports = (app) => {
//add your new routes here
};
| 900117575aa298f9b33fd3ed865f3c113d43fa77 | [
"JavaScript"
] | 1 | JavaScript | kjohna/Mongo-III | 7dc55444c95d84e8a54fadc4bb0e17b860b1ca8b | 566d0d8e77edfe735cea8e5b3136dd2051d3a773 |
refs/heads/master | <repo_name>nickwallen/dex-knox<file_sep>/README.md
[Spark Driver UI](https://spark.apache.org/docs/latest/security.html#authentication-and-authorization)
Examples configuration values that might be required for a fictional customer at Acme Co.
```
# we need to provide our own authentication filter (which can als... | 87b0fe1a155886a46b1ceebf0f0f0f95007cb218 | [
"Markdown",
"Java",
"Gradle"
] | 4 | Markdown | nickwallen/dex-knox | 21be87227c2e9cd59e853050a4571906bd78e6d5 | 1a9a1db388b825a79f04e4654857e61ca1c3096a |
refs/heads/master | <file_sep>import json
import re
import scrapy
URL = 'https://github.com/tensorflow/models'
# scrapy crawl python_code_comment -o code_comment_tensorflow.json
class GitPythonFileCommentClawler(scrapy.Spider):
name = 'python_code_comment'
allowed_domains = ['github.com']
start_urls = [URL + '/pulls?q=is... | 9f5143b9533ffba0579baae054b3c893beca5bfd | [
"Markdown",
"Python"
] | 2 | Python | kiasar/github-crowler | b54496be763fd5790b9448eb2ff73d0e654105e4 | 2ddaa7dcd3f9d9c5721bc3936e77b88f0ba555e6 |
refs/heads/master | <file_sep>from abc import ABC
from abc import abstractmethod
class MetricABC(ABC):
"""Metric base class.
Subclasses of the MetricABC must implement the __call__ method so that they can be callable by evaluation
procedures.
To get the name of the metric, access the `name` attribute, which gets set dur... | 70e0c3adef0456e96d76229edc65173aff677ee0 | [
"reStructuredText",
"Markdown",
"Python",
"Text",
"Shell"
] | 90 | Python | fabioiuri/DRecPy | 045e69b084ba5c30b5cf66669ce28f902e12daa8 | 8cba328206731179f778f17cd733084c8e3a747e |
refs/heads/master | <repo_name>Malcom100/poc_camera_nougat<file_sep>/app/src/main/java/adneom/poc_camra_nougat_verison/MainActivity.java
package adneom.poc_camra_nougat_verison;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.content.pm.ResolveInfo;
import android.net.Uri;
import android.os.Environ... | b952cd07857d20e652f56f2375931a01f31b3572 | [
"Java"
] | 1 | Java | Malcom100/poc_camera_nougat | 40edf1bd80c2f0b000e9ba6f31f3b74492f8ad85 | c1de9373cf3e368ec503f978b51526ea69978b1b |
refs/heads/master | <repo_name>mohamnexus/library_test<file_sep>/mylibrary2/src/main/java/ir/persiscode/mylibrary2/Codes_2.java
package ir.persiscode.mylibrary2;
import android.util.Log;
public class Codes_2 {
public static void setText(String text) {
Log.d("1", text);
}
}
<file_sep>/mylibrary/src/main/java/ir/persisco... | e3163eb40017443607f4c5581c5796343d1982fd | [
"Java"
] | 2 | Java | mohamnexus/library_test | f7ed0dbf569b8ae88a45ca4be8ad747a1edabb0e | d0b3b3c8db13bb701ff5cf269b90bd7420a2b492 |
refs/heads/master | <file_sep>package sortingarray
fun sortIntegerArray() {
val arr = listOf<Int>(1, 3, 0, 2, 5, 4, 9, 6, 8, 7)
println("Cau 1: Sap xep 1 day cac so nguyen giam dan")
println("Mang so nguyen ban dau: ")
println(arr)
println("Mang so nguyen sau khi da sap xep giam dan: ")
print(arr.sortedDescending... | d813df2fe3c49a76a9c2cd6eff10daaee1ab7fe9 | [
"Markdown",
"Java",
"Kotlin",
"Gradle"
] | 10 | Kotlin | SNKz0610/Android-Homeworks | c1613c2885ef324fec8eae1bd5cf4e9e6997a53e | f3ecee77357c3927e0725657afe356532c0540a3 |
refs/heads/master | <file_sep># Copyright © 2019 Province of British Columbia
#
# 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 ... | 7de725eee9e8346383588d46f104fd5e850e3cce | [
"Markdown",
"Python",
"Text",
"Dockerfile"
] | 21 | Python | leksmall/lear | 401626d17c4ebb43026f0bd14b7aee52531894c4 | d388f061321134d4fb509e5dbd44600e2f4955d1 |
refs/heads/master | <file_sep>import { Component, OnInit } from '@angular/core';
import { ApiService } from 'src/app/shared/service/api.service';
import { Consult } from 'src/app/shared/model/consult.model';
import { HIGH_CONTRAST_MODE_ACTIVE_CSS_CLASS } from '@angular/cdk/a11y/high-contrast-mode/high-contrast-mode-detector';
@Component(... | 24c247dc56dc938686652b98bc01d13764758f49 | [
"TypeScript"
] | 4 | TypeScript | brunnamattos/api-coinpaprika | 0ce041463076363057964b45379c5f8070eb1474 | 1381d88e3b64583bfe67cb5b32a97201dcb7487c |
refs/heads/main | <file_sep>Program #3
Name:<NAME>
COSC 2030
Competing: NO
Best run time: I was not able to find the best run time.
How to compile: g++ main.cpp -o program
Anything that doesn't work: I get a segmentation fault when I run the program and I am not sure why.
<file_sep>//<NAME>
//Program 3
//COSC 2030
//4/20/21
#incl... | c482fa07e5cfaf7b7849a563a58150fb3a8a8a94 | [
"Markdown",
"C++"
] | 3 | Markdown | lydia-smith106/ds_prog3_files | 59895b57368818e1a9f12288e9218fc382de4f23 | 3b21c36692f4d6b0a1b0186914d1145f243925d7 |
refs/heads/master | <repo_name>tientulac/ExamASPNET<file_sep>/Practical/Controllers/AccountAPIController.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Cryptography;
using System.Text;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsof... | 58b82badf9f42edde4e3411fcc7be33dd2745271 | [
"C#"
] | 6 | C# | tientulac/ExamASPNET | a325a28d6948cda0c03304e0c7d83f241304097c | 926d48e0ee0c301fd25960fa01740f30259c169a |
refs/heads/main | <repo_name>abhishekmatcha/spottable-test<file_sep>/src/Components/SearchAndInlineSelect/constants.js
export const DEFAULT_TAGS = ['IIT', 'IISC', 'IIIT', 'BITS', 'NIT'];
<file_sep>/src/Components/AccessAddition/constants.js
export const DEFULT_USER_CONFIG = [
{
id: 1,
name: '<NAME>',
role: 'F... | 92ad677fed0c87b46bbb059b5b968d5d43ce3d87 | [
"JavaScript"
] | 6 | JavaScript | abhishekmatcha/spottable-test | 099e6e87840e03904d65b9d84441f4c3c1e44cdb | be39bcaad9b06c87500daa65aea005e68abb0156 |
refs/heads/master | <file_sep>class Part < ApplicationRecord
has_and_belongs_to_many :assembly #relation entre la table Assembly et Part
end
<file_sep>class CreateJoinTableAssembliePart < ActiveRecord::Migration[5.2]
def change
create_join_table :assemblies, :parts do |t| #liaison de la table Assembly et Part
t.index [:assem... | 69f732bd5d1fefa4ec131dd1e45693e9661969c6 | [
"Ruby"
] | 3 | Ruby | loundness/usine_loundness | 16fd20ca8b4ee1c1765a2d87be672f67c52f4ce5 | 1d6d5d35d745543f34d87b4990cd8849cbee369b |
refs/heads/master | <file_sep>package com.example.contact.entity;
import java.io.Serializable;
/**
* (FileDb)实体类
*
* @author makejava
* @since 2020-02-25 23:32:03
*/
public class FileDb implements Serializable {
private static final long serialVersionUID = -29787153983566878L;
private Integer num;
private Stri... | c365d15db86ad122a3c73055803f6feb44bb6e70 | [
"Markdown",
"Java"
] | 5 | Java | Sheldonswd/spring-boot-and-hyperledger-fabric | 8bff6c02999ec113fea82339d9a2b846f0212e13 | 2ea57deb90d697d06cd45ab1906a51296fff4693 |
refs/heads/master | <repo_name>SIMONAIRV/Monopoly<file_sep>/README.md
# Monopoly Esilv version
## Introduction
For this project I have to create a kind of Monopoly game where I must use some Design Pattern. In my version, I use a majority of the real Monopolys's rules.
## Game board
<img src='Monopoly/monopolyfinal.jpg' width=300 height... | 06967f9affc7542eac3c6148d38328ea18c1a12d | [
"Markdown",
"C#"
] | 5 | Markdown | SIMONAIRV/Monopoly | 2a2161dd3843b37d04653f78d49c8df41d97a5c9 | e3331bd3efe71dd5becc746e1cd8e015fe0ac802 |
refs/heads/master | <repo_name>oliviermanette/BasicUI1<file_sep>/inc/basicui1.h
#ifndef __basicui1_H__
#define __basicui1_H__
#include <app.h>
#include <Elementary.h>
#include <system_settings.h>
#include <efl_extension.h>
#include <dlog.h>
#include <sensor.h>
#include <stdio.h> // à cause de sprintf pour convertir float to char
#includ... | 2e3571455f5921c8ad260162a651c6b28f3c2ffc | [
"C"
] | 2 | C | oliviermanette/BasicUI1 | f175d672acddb33492c7e5684c2dc75e849040bd | 79d0c35cfda00c5ae727d06d1fbaa0b554f31a92 |
refs/heads/master | <file_sep>PRODUCTS_BYTES = 65536
def generate_products
bytes = (0..255).to_a
puts "bytes: #{bytes.size}"
products = bytes.product(bytes).to_a
puts "products: #{products.size}"
raise "expected: #{PRODUCTS_BYTES}" if products.size != PRODUCTS_BYTES
IO.write 'products.json', products
puts "generated: prod... | 2699b21cfcac381a7b53ea9a3a0f90dd3d3a1f24 | [
"Ruby"
] | 4 | Ruby | juniormesquitadandao/bytes | 279dd813a353107479d69de92a557c8f02c1adae | 8e467cf07819fa8459a2817ed2f667f292cd4a3c |
refs/heads/master | <repo_name>Kasiarz/middleware-demo<file_sep>/C/SOAP/Journal/src/main.c
#include <BasicHttpBinding_USCOREIPOS.nsmap>
#include <inttypes.h> //int64_t, uint64_t
#include <soapH.h>
#include <stdio.h> /* printf, sprintf */
#include <stdlib.h> /* exit, atoi, malloc, free */
#include <string.h>
#define STRING_LENGTH 256
ui... | 8dd0bab9f916e853dd0b937ea7f11440aa1129c9 | [
"Markdown",
"C",
"Makefile",
"C++"
] | 17 | C | Kasiarz/middleware-demo | fde70cd5022def15278edb65fe805e828c3d6149 | 5f61774f94c5ab418c56f8685d755719b22d4e6e |
refs/heads/master | <file_sep><h1>Need Help?</h1>
<h4>MyWallet is a quick & handy way to manage your booking refunds. Next time you cancel a booking, transfer your refund amount to your MyWallet account and avail exclusive promotions. Once you have some money in your MyWallet account, use it to make payments for booking made at Flight My... | 1e9630bc42d53c96054ead0d411213c7b272277e | [
"Python",
"HTML"
] | 2 | HTML | anupriya9/finalflight | 586d36bb96352ebe538f8e9e1c032c0655d29f4a | 86cbcd656557736e33929d4f2995fb6d128ba937 |
refs/heads/main | <repo_name>kunalkothari200/kk.github.io<file_sep>/contact.php
<?php
define('A','localhost');
define('B','root');
define('C','');
define('D','udaipurTrendz');
$conn = mysqli_connect(A,B,C);
if(!$conn){
echo "connection failed";
}
$db_select=mysqli_select_db... | 16cd8cfb6b84266d94c737ff125cd2282cdfe86c | [
"PHP"
] | 1 | PHP | kunalkothari200/kk.github.io | 93f3ad96c2a52877ddee197e1410be6356995351 | a4178d9baf27a6c19901ebb74c51a19ab40cebc2 |
refs/heads/master | <file_sep># include <stdio.h>
int main()
{
printf ("Hello World!\n");
printf ("Hello again"\n);
printf ("This change is created on branch hot_fix\n");
printf ("test GitHub");
printf ("test GitHub confliction");
printf ("modify remote store content in working area and create a new branch to retain them ");
print... | 26cbd198315ffe3a2e42b6ae68948f60febee20f | [
"C"
] | 1 | C | Raumss/WeChat | 0f11f042fa0b946e39574a3271f0e4a89dd18b2b | 215d87af8577a17fd2c301bf199d0399ce70c04b |
refs/heads/master | <repo_name>Mo-og/reporter<file_sep>/src/main/java/com/practice3/reporter/Services/UserService.java
package com.practice3.reporter.Services;
import com.practice3.reporter.Repositories.UserRepository;
import com.practice3.reporter.Entities.User;
import com.practice3.reporter.Security.MyUserDetails;
import org.springfram... | f70409367cd092f80da4e59b5c0a2733d2a8dc6e | [
"JavaScript",
"Java"
] | 14 | Java | Mo-og/reporter | 7774d4645853b06d8267379764b351bfe4d33898 | 0318e173c11e9a84ca555c82f94b3fa344f158dc |
refs/heads/master | <file_sep># Barometric Pressure + Temperature Sensor Adafruit BMP280
This project is an example on how to use the Adafruit BMP280 Barometric Pressure + Temperature Sensor in Raspberry PI and Windows 10 IoT Core.
## What is this sensor?
This sensor is great for all sorts of weather/environmental sensing.
This sensor is... | 6f0c5599981a6b71d49420caa9a6a03be52ef6ae | [
"Markdown",
"C#"
] | 2 | Markdown | wwwwg/Lesson-Temperature-BMP280 | de32ff5f4a9f145284535572712d9cd0efca32c6 | 865972690d1d30d83b40c637d2199ddf6a32dfca |
refs/heads/master | <file_sep>const express = require('express')
const app = express()
const bodyParser = require('body-parser')
const environment = process.env.NODE_ENV || 'development'
const configuration = require('./knexfile')[environment]
const database = require('knex')(configuration)
app.set('port', process.env.PORT || 3000)
app... | d205f4041ba037a42c7cf9cfa3fb483505154e7e | [
"JavaScript"
] | 3 | JavaScript | becs919/garage-door | a227ca1ddcc55e2d329e57f33dbc252fe88d11af | 41becb4c271ed3259485f58989c251a2cfbebcb7 |
refs/heads/master | <repo_name>kohanyirobert/the-c-programming-language-second-edition<file_sep>/chapter-1/exercise-1-2/escape_test.py
from sys import argv, exit
from subprocess import run, PIPE
executable_path = argv[1]
run([executable_path], stdout=PIPE, encoding='utf8', universal_newlines=True)
exit(0)
<file_sep>/chapter-1/exercise-1... | 45585a38c1e02357f00762f0140ae3f976408671 | [
"C",
"Python",
"CMake",
"AsciiDoc"
] | 34 | Python | kohanyirobert/the-c-programming-language-second-edition | 9b99563e712dc1f7606639c0b125e83e282d3459 | 5f459c64da6954267eda46e4fba8ba531b70b6a3 |
refs/heads/master | <repo_name>whutys/CrawlTenVideo<file_sep>/src/main/java/CrawlByJsoup.java
import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.jsoup.nodes.Element;
import org.jsoup.select.Elements;
import org.junit.jupiter.api.Test;
import java.io.IOException;
import java.util.LinkedHashMap;
import java.util.Map;
pub... | 2bea6952f6c6b01845de41836e3e932c2656972d | [
"Java"
] | 1 | Java | whutys/CrawlTenVideo | d8a7eb2ef7c4a12665f8ab803eea07b0c61c9332 | 64212c348d8ecf59e7ed04e1d5508dbe6a3ac83b |
refs/heads/main | <repo_name>andreicismas/laravel-boolpress.io<file_sep>/app/Http/Controllers/Admin/PostController.php
<?php
namespace App\Http\Controllers\Admin;
use App\Category;
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
use App\Post;
use App\Tag;
use Illuminate\Contracts\Session\Session;
use Illuminate\Supp... | 9c32542227a697c7e2507a2ba2635721a4d9a0b6 | [
"PHP"
] | 2 | PHP | andreicismas/laravel-boolpress.io | 3928935d495797f044feb6c9358c84d3c0d80e3f | 8df1c590aed1f0eab5129c1b043a7f5ae8e041fc |
refs/heads/master | <file_sep># -*- coding: utf-8 -*-
"""
Created on Wed Mar 14 16:02:43 2018
@author: jonatha.costa
"""
from elasticsearch import Elasticsearch
from elasticsearch.helpers import bulk
from pymongo import MongoClient
from pandas.io.json import json_normalize
import pandas as pd
import numpy as np
import requests
import ... | cc3a503d61f05f66efcc7a6105b46813c6d82d18 | [
"Markdown",
"Python"
] | 3 | Python | nmecsys/News | 91dd432cc0269c9bb5d20087640c836394dc3431 | f5c5d22f30f217cfa3eda57f31e806e67f086480 |
refs/heads/master | <file_sep>import Vue from 'vue'
Vue.filter('osName', (platform: NodeJS.Platform) => {
switch (platform) {
case 'win32':
return 'Windows'
case 'darwin':
return 'MacOS'
case 'linux':
return 'Linux'
}
return ''
})
Vue.filter('osLogo', (platform: No... | 70f5f048bbea2542e55716b7eeed74169026dead | [
"TypeScript"
] | 1 | TypeScript | AsbertMa/sync.vechain | 916c81e8b8283f8e02ac640a7f5243f83a927a4e | 523decd0f7a1a97b1cacc4ba7ceae0092ef4c799 |
refs/heads/master | <file_sep>/*
* function.c
* To compile: gcc function.c -ltensorflow
* To run: ./a.out
*
* author: <NAME>
* date: Aug 9, 2018
*/
//#define _NJ_INCLUDE_HEADER_ONLY
#include <stdlib.h>
#include <stdio.h>
#include <tensorflow/c/c_api.h>
#define BITRATE_LEN 4
#define TARGET_BUF_LEN 4
typedef enum _nj_result {
... | 98ae9df2ef7ac3189eae787fa2f4128c6b4cbecb | [
"Markdown",
"C",
"Python",
"CMake"
] | 9 | C | alery315/c_tensorflow | 9e19aa49ca915a776efba1a4731a6d0e9d5abf5b | 2ed3fef53802f17643a9e7a73f6e089fcfb6c7f9 |
refs/heads/master | <file_sep>ansible
ansible-test
invoke
cffi
pytest
pytest-xdist
# Test running
pycodestyle
flake8
nose
virtualenv
semver
<file_sep>Introduction
------------
This repository provides the foundation for working with the F5 Modules for Ansible.
The architecture of the modules makes inherent use of the F5 Cloud Services R... | 1491122153584443d7af8d79fc931f9e8be62fc0 | [
"Python",
"Text",
"Dockerfile",
"reStructuredText"
] | 4 | Text | yoctoalex/ansible_cloudservices | 5ce364cdce8bbe1928423290e4f59c529fc08b9e | f78f80ef944e79cee11e036d652c28a930005fb1 |
refs/heads/master | <repo_name>data-giant/miner<file_sep>/src/mini-app/index.js
/**
* Project: miner
* File: index
* User: william <<EMAIL>>
* Date: 2019/8/10
* Time: 11:24 PM
* Description:
*
* Change Date Author Content
* yyyymmdd name comment
*
*/
'use strict';
im... | ef585db73ecb3fb9119a987f3b311b1398c92e53 | [
"JavaScript",
"Markdown"
] | 17 | JavaScript | data-giant/miner | 9c6b102bcb7a09470fe1556f717a218401ed75c4 | 1ddf2ee0f68f968ec89a4d2eff3439955f0528de |
refs/heads/main | <file_sep># Capacitor Plugins
This repository contains the official Capacitor plugins maintained by the Ionic Team. You can find more plugins in the [Capacitor Community](https://github.com/capacitor-community/).
<file_sep># Change Log
All notable changes to this project will be documented in this file.
See [Conventi... | 2f2e85cda7e9ec671c1272dca4ae6fc6c4a38803 | [
"Markdown",
"TypeScript",
"JavaScript"
] | 11 | Markdown | kendyl93/capacitor-plugins | 8a9e5c3dba3b232a1cca9f9a1e9b4520022abc09 | 35e11c755cccb5236d56585739c2bd2b5878d350 |
refs/heads/master | <repo_name>crackedmind/rails_doctor<file_sep>/lib/rails_doctor.rb
require 'rails_doctor/version'
class RailsDoctor
def initialize
end
def analize
indexes
true
end
def associations
hash = {}
models = Dir.glob("#{Rails.root}/app/models/*.rb").map{|model_path| model_path.split('/').last[/.+(?=\... | 233dd7da4455db9ba4d8611c03d51320bb50c4d9 | [
"Markdown",
"Ruby"
] | 4 | Ruby | crackedmind/rails_doctor | 28153804113c40bd21274a1b8a1b334da87935e9 | 95b99a0f94fd7984d8c58c39778dd9762029abc3 |
refs/heads/master | <repo_name>sohaildeen/monitoring-dashboard<file_sep>/src/config.js
export default {
iamUser: {
ACCESS_KEY: "<KEY>",
SECRET_ACCESS_KEY: "<KEY>",
REGION: "eu-west-1"
}
};<file_sep>/src/containers/SQS/ViewQueueMessages.js
import React, { Component } from 'react'
import {Row, Col} from "react-bootstrap";
im... | 1cb19987755ea41ed9741c5ba7c80b6f0aae7479 | [
"JavaScript"
] | 4 | JavaScript | sohaildeen/monitoring-dashboard | 3ed90fd0bb65f109d168d7552596711a5bfc73b5 | 0da7eb67f60e8a7b38b8710919b53f3f5ed7f000 |
refs/heads/master | <file_sep>#!/bin/bash
set -e
cabal install .
cabal exec -- trialrun
<file_sep>
function sendHttp(method, url, body, callback) {
var request = new XMLHttpRequest();
if (callback) {
request.onreadystatechange = function() {
if (request.readyState == 4) callback(request);
};
}
... | 5866c89465129c8526ae0b653768ba8ce39120fb | [
"JavaScript",
"Shell"
] | 4 | Shell | stefan-j/trialrun | 4c81c15b2c774cf36c11218d4fb2df077f81237e | 7c4f09266457884a3f38c62a8d133182cac85272 |
refs/heads/master | <repo_name>qweaa/appointment-doctor-doctor<file_sep>/src/api/order.js
import request from '@/utils/request'
const name = 'order'
//医师取订单列表
export function getOrderListforDoctor({status, doctorID, rows, page}) {
return request({
url: `/${name}/getOrderListforDoctor`,
method: 'get',
params: {status, docto... | dfc411a8fef4f4ad411587222c331b0ea61d25e9 | [
"JavaScript"
] | 4 | JavaScript | qweaa/appointment-doctor-doctor | d6afc068ce2916f143b52b62d189de1401fc1c53 | e78019786ec2d073df8079034f469a956386cba0 |
refs/heads/master | <repo_name>mehagel/Behavior_Drill_Add-Comments<file_sep>/application.js
$(document).ready(function(){
$('form').on('submit', function(e){
e.preventDefault();
var element = "<li>" + $('#content').val() + "<span class='author'>" + $('#name').val() + "</span>"
$('#comment_list').append(element);
... | b197aa09675949fc530a217d6e75bc2b1fb0ca1c | [
"JavaScript"
] | 1 | JavaScript | mehagel/Behavior_Drill_Add-Comments | 67c0504f3196f922e46d50b915b1a592ab47afe2 | 17f08506a85154b6da7d2edac30a055615dc8d5f |
refs/heads/master | <repo_name>SanthoshKT08/java<file_sep>/src/Java/Java_07_Scanner.java
package Java;
import java.util.Scanner;
public class Java_07_Scanner {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
System.out.println("Enter your name");
String line=input.nextLine();
System... | 2d6952f1b16368e931aabd23694ea01d438ca8de | [
"Java"
] | 23 | Java | SanthoshKT08/java | 7b5b156c5a0e3662f390ad73d9851df31446b78f | 03461cef433e054f49dda32d5ec06ff78bea29d5 |
refs/heads/master | <file_sep>/**
* 版权所有(C),上海海鼎信息工程股份有限公司,2017,所有权利保留。
*
* 项目名: sardine-wms-dao
* 文件名: ResourceDaoImpl.java
* 模块说明:
* 修改历史:
* 2017年3月24日 - zhangsai - 创建。
*/
package com.hd123.sardine.wms.dao.ia.resource.impl;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.mybat... | 33c02c33016a5277c880256fb8eab36920be3941 | [
"Java"
] | 2 | Java | suevip/sardine-wms | 7c3732f4ba301d5f8adfc7f080ae78a7ce2e1ace | a32fa94db71df85cef9bb647b0551901dca968ae |
refs/heads/master | <repo_name>961221/Project01<file_sep>/Module01/src/com/oo/Super/DebitAccount.java
package com.oo.Super;
/**
* @author shkstart
* @create 2019-09-10 11:39
*/
public class DebitAccount extends Account {
//Field
//独特属性
private double debit;
//Constructor
public DebitAccount(){
super();
... | cb89ae8113dcac6fb934df957bcd29f7c61c129d | [
"Java",
"INI"
] | 49 | Java | 961221/Project01 | 54eff4a183a0cc856775d07400cc46a44c6ead3a | 160e7c7884ddf1f118cb5503e7e370c39ac5f7bf |
refs/heads/master | <repo_name>alfredo-gimenez/bodyIK<file_sep>/vec2D.cpp
#include "vec2D.h"
vec2D::vec2D(double ix, double iy)
{
mX=ix;
mY=iy;
}
vec2D& vec2D::operator=(const vec2D &rhs)
{
mX = rhs.mX;
mY = rhs.mY;
return *this;
}
vec2D& vec2D::operator+=(const vec2D &rhs)
{
mX += rhs.mX;
mY += rhs.mY;
return *this;
}
<file... | 2663235f8340fd50678dd944a2f76a97b935e5aa | [
"C++"
] | 15 | C++ | alfredo-gimenez/bodyIK | 0267c29d9f4c89145844c96ce457b7441c853182 | 6131d218ad61d34cd2fb1140fe20a8ecc9a58fcd |
refs/heads/master | <repo_name>Shamrock-zhao/NeuriteOrientation<file_sep>/segmentationRoutine.py
# -*- coding: utf-8 -*-
"""
Created on Wed Nov 11 22:29:24 2015
@author: pankaj
"""
from skimage.filters import threshold_otsu
from skimage.filters import gaussian_filter
import matplotlib.pyplot as plt
from skimage import io
from... | b9de739b5f1b036f2ff3efb3b3d4368eecd07076 | [
"Markdown",
"Python"
] | 16 | Python | Shamrock-zhao/NeuriteOrientation | 398ddae8c5eb44d858adfb6a8e726ab167a82d53 | 2a1de07a03e72bcfdc89f645fa128a9e0b71993f |
refs/heads/main | <repo_name>andrew-block/airflow-docker<file_sep>/Dockerfile
FROM apache/airflow:2.1.3-python3.8
# This is what airflow sets as default in the above `apache/airflow` image
ENV AIRFLOW_HOME /home/airflow
# Set user back airflow
USER airflow
# Set working dir to airflow home
WORKDIR ${AIRFLOW_HOME}
COPY requirements.t... | 0ca29a9022b52c238452cede2a869f974da8f3e2 | [
"Markdown",
"Makefile",
"Python",
"Text",
"Dockerfile"
] | 6 | Dockerfile | andrew-block/airflow-docker | 1af8fd6127c20e722f878b6ecad01b12e5f700e6 | a9913b16f6b0814c04d176ead24818e9191b864d |
refs/heads/master | <file_sep># Cèos
Backend da plataforma Cèos, criada para o desafio da Olist no hackathon da Shawee.
## Rotas
### Produtos
- find product: `/api/product/find/:id` (GET)
- list products: `/api/product/list` (GET)
### Mensagens
- list messages: `/api/message/list` (GET)
- awnser message: `/api/message/awnser/:id` (P... | 55511f4e36aa40d09699f55ccfbd0629daf4c59f | [
"Markdown",
"JavaScript",
"YAML"
] | 17 | Markdown | patriciosilvadev/ceos-platform | 947d2476bfca8c078d8dc82eee3ce7e33ca3ded0 | 708333e41541f4b849fa15b456f9c899f27d8c1f |
refs/heads/main | <file_sep>#retrieve document using the HTTP protocol
#examine the HTTP Response headers
import socket
mysock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
mysock.connect(('data.pr4e.org', 80))
cmd = 'GET http://data.pr4e.org/intro-short.txt HTTP/1.0\r\n\r\n'.encode()
mysock.send(cmd)
while True:
data = myso... | 9775df3db1f930f49e343e595b7684732e6bc567 | [
"Python"
] | 4 | Python | dhannywi/py4e_3_using_python_to_access_web_data | b8bc979ba1c8d9a1420da070b1a495719953fb9b | a2f0dc4110dfe45f808ed7f4f95f3e7bd54e2406 |
refs/heads/master | <repo_name>ipa-pfs/akit_pick_place<file_sep>/src/akit_pick_place.cpp
#include <akit_pick_place/akit_pick_place.h>
geometry_msgs::Pose akit_pick_place::interactive_pose;
std::string akit_pick_place::interactive_name;
akit_pick_place::akit_pick_place(std::string planning_group_, std::string eef_group_, std::string worl... | ab559d6af2e81a44ffc5a083fdf8b787be8600a7 | [
"C++"
] | 4 | C++ | ipa-pfs/akit_pick_place | ecafb987a6b1d4a1aed2f04059fb19183659c6d7 | 32c2cb1a7ba354bad9693c2fa0826413beaa96b3 |
refs/heads/master | <repo_name>diegoami/diplomacy-plus-for-warband<file_sep>/Module_system 1.165/ID_mission_templates.py
mst_town_default = 0
mst_conversation_encounter = 1
mst_town_center = 2
mst_village_center = 3
mst_bandits_at_night = 4
mst_village_training = 5
mst_visit_town_castle = 6
mst_back_alley_kill_local_merchant = 7
mst_back_... | a3758e197e3eb3a44e1ae87d7ced32ea7dfeaed3 | [
"Markdown",
"Python",
"Text"
] | 7 | Python | diegoami/diplomacy-plus-for-warband | 8b7118a10444f11a8808b77f3ddf5097fd1fa656 | 25bf2803a05a5fcffa458a17b53aec8075fe2af8 |
refs/heads/master | <repo_name>inclutter/DONE_Namubada_Homepage_Spring<file_sep>/src/main/resources/database.properties
jdbc.driver=org.mariadb.jdbc.Driver
jdbc.url=jdbc:mariadb://#:3306/#
jdbc.username=#
jdbc.password=#
<file_sep>/src/main/java/com/mycom/user/UserController.java
package com.mycom.user;
import org.springframework.beans.f... | d0ba193341a3869773a8b7c0d1626d98807203ad | [
"Java",
"INI"
] | 3 | INI | inclutter/DONE_Namubada_Homepage_Spring | 6ba99c47a204429f8e641fec60e23f5eba24aa44 | d615b5c344c8121964ac18c7fa1d17b68c9716e3 |
refs/heads/master | <file_sep>import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
public class gui
{
//all of our swing objects
JFrame window;
JTextField inputTextField;
JLabel outputLabel;
JLabel imageLabel;
JButton runButton;
JButton imageButton;
JButton leftMove;
JButton rightMove;
... | 6e991b510eb054ec9722b76eaeeeca51092a1348 | [
"Java"
] | 1 | Java | ImCallN/TestImageMovement | 260b065cc4bdcfba65cffbecf40802ad96f52899 | a8c54035940753eb9c3420171b4a802673301a4f |
refs/heads/master | <repo_name>ksdivesh/react-firstapp<file_sep>/src/components/DataShare/ChildFuncComp.js
import React from 'react'
function ChildFuncComp({ name, designation, onChangeName, onChangeDesignation }) {
return (
<div>
Child Func Component
<p>Name: {name}</p>
<p>Designati... | b98eb1344c09af924f0f9168a83e23966b5ba206 | [
"JavaScript"
] | 16 | JavaScript | ksdivesh/react-firstapp | d20d50d235afa6f7704cc091e7aae123bffc915c | 2afc93e50d2411b78cba071844a3bd781c78530e |
refs/heads/master | <file_sep># -*- python -*-
# Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
Import('env')
import os
# This library is part of the pnacl x86-64 toolchain only, and is used
# to match the pnacl ABI to th... | 0ed164a8d928d646fd6c93860a35253485101bc4 | [
"Python",
"Makefile"
] | 4 | Python | ajirios/pepper-plugin-api | 6411800940d2e236de2ac0a667aeea00e028fc35 | f5e96d55ccfacfef203e4a1cff1745c4db0e9b74 |
refs/heads/master | <repo_name>danil/iso8583<file_sep>/codec8583/charset_codec8583.go
package codec8583
import (
"golang.org/x/text/encoding/charmap"
)
var (
// ASCII encodes/decodes ASCII charset of the ISO 8583 MTI/bitmaps/fields.
ASCII = NOPCharset
// EBCDIC encodes/decodes EBCDIC charset of the ISO 8583 MTI/bitmaps/fields.
EBCD... | 42a575b478e50afe83cff236d27fa739ac9641f0 | [
"Markdown",
"Go Module",
"Go"
] | 13 | Go | danil/iso8583 | bf1059385d199d1d814f0da031ce229eca12c6c2 | 86ddb1134a9c6d281e9f89f9788b28301162915c |
refs/heads/master | <file_sep>CXX = g++
CXXFLAGS = -g -O2
CXXFLAGS += -Wall -W
TARGET= btree
OBJECTS= btree_node.o btree.o
RM = rm -rf
.SUFFIXES : .cc .o
$(TARGET) : $(OBJECTS)
$(CXX) $(CXXFLAGS) -o $(TARGET) $(OBJECTS)
.cc .o :
$(CXX) $(CXXFLAGS) -c $<
clean:
$(RM) $(OBJECTS) $(TARGET)
<file_sep>#include "btree.h"
template <typena... | c08c22f3ebda76cad5b95ac40aa97e5e733f887b | [
"Makefile",
"C++"
] | 6 | Makefile | her0gyu/algorithm | 33b3aa96bcaad5e476307bd6c5e124206bc04b87 | 176eab77058daad7b21ed94b27e95888f555894c |
refs/heads/master | <file_sep>/* This program is used to send raw sensor data from MPU6050 sensor
to a Python API program where angles are calcuated and the data
is visualized using VPython.
Done by Ranjitroshan
*/
#include<Wire.h>
#define MPU_addr = 0x68;
boolean UART_go = false;
String buffer_;
int samplingRate, tempera... | 1a196d301bd9747dd91d7d4b5bd4cfaab37e92a9 | [
"Markdown",
"Python",
"C++"
] | 3 | C++ | vsranjitroshan/IMU_visualization_using_Python | f24fdeb585b1d17d4b65aad222334f2c233e427f | 7148aaaa8183a35ef0f2b7d1cd4a65c413455929 |
refs/heads/master | <repo_name>scurry222/recursion-review<file_sep>/src/getElementsByClassName.js
// If life was easy, we could just do things the easy way:
// var getElementsByClassName = function (className) {
// return document.getElementsByClassName(className);
// };
// But instead we're going to implement it from scratch:
var getE... | 07c664e17f0f13ae4bcd12e6cb95e50b7b8d05fb | [
"JavaScript"
] | 2 | JavaScript | scurry222/recursion-review | 799bbb90f6ef1355b4ee4bf028c39dade34458c4 | f9288ed99230043979eb767fdf652e1d59b044a8 |
refs/heads/master | <repo_name>gjoncas/Xenakis<file_sep>/linaia-agon.R
#Xenakis - Linaia-Agon :: calculates Linus's odds of winning
#Play CC to decide games, each played for multiple rounds
library("lpSolve")
#V=0, so need linear programming to get probabilities
#http://www.egwald.ca/operationsresearch/gametheory.php3
singularProbs... | 6628e85d2bd5b09c844238a762c34a8dac5b5d5d | [
"Markdown",
"Text",
"R"
] | 3 | R | gjoncas/Xenakis | 941f589ba63236896da77579eabbb31a75632f15 | ba1112b7ddfd09945e9953d355f5ff0aa2c4e119 |
refs/heads/master | <file_sep>
# coding: utf-8
# In[1]:
import h5py
from PIL import Image
import os, sys
'''
Convert array in H5 to Image
'''
def h5toImage(load_path, save_path, file_name, target):
'''
load_path: directory path to load
save_path: directory path to save
file_name: all of name in loading directory
ta... | bc2fe67905409d172d2147b09e358ed5b2168b81 | [
"Markdown",
"Python"
] | 2 | Python | Python3pkg/HDFconvert | e6001f8b96a0922394a70bf9b87bcf5c70c05c5a | bcad578bce4cd534f1814782268de62535e4d5a3 |
refs/heads/master | <file_sep>#By: <NAME>
from Bio.Blast import NCBIWWW
from Bio.Blast import NCBIXML
import re
import mysql.connector
def main():
file = open("blast.txt", "w").close()
file = open("blast.txt", "a")
bestand = "seqschamppro.txt" #tab delimited text file van excel bestand 100 sequenties groep 1
b = op... | 6b42e77f2bafa04363f13fd6579b73b4d86aa03b | [
"Markdown",
"SQL",
"Python"
] | 7 | Python | hanbioinformatics/webapp | fd7ac5828ffc458760839c442559cd5ca8631f96 | e397ec713c0835a8e4f61061d7ec0d9dbdff5580 |
refs/heads/main | <file_sep>import { Component, OnInit } from '@angular/core';
import { Router } from '@angular/router';
import { AngularFireAuth } from '@angular/fire/auth';
import { Usuario } from 'src/app/interfaces/usuario'
@Component({
selector: 'app-nova-senha',
templateUrl: './nova-senha.page.html',
styleUrls: ['./nova-sen... | be001de9da72e1c442377b634e35d891c598ec61 | [
"TypeScript"
] | 15 | TypeScript | Brenda-Duque/twievents | 93459b92270196013af0d61ae52e99092952296f | a46c6dcd7430bbbbfaa8d4f8e58535219ab53e72 |
refs/heads/master | <repo_name>jlamothe/sql-tutorial<file_sep>/vagrant-provision.sh
#!/bin/sh
apt-get update
apt-get -qy install sqlite3
| 61f6303c30f41ef15ca941fed6c01c8137a34fbb | [
"Shell"
] | 1 | Shell | jlamothe/sql-tutorial | 1bbb442d1f0c0af40245fec0607341359f07f0e1 | 310f10048dc93bc43e3508ac9eaf328faa9a9e51 |
refs/heads/main | <repo_name>kmi0817/Scheduling-Simulator<file_sep>/lab1_sched.c
/*
* DKU Operating System Lab
* Lab1 (Scheduler Algorithm Simulator)
*
* lab1_sched.c :
* - Lab1 source file.
* - Must contains scueduler algorithm function'definition.
*
*/
#include <aio.h>
#include <stdio.h>
#include <stdlib.h>
#include... | 8a657e4fc4b8cad09d8422cfd935e744e947fb32 | [
"C"
] | 3 | C | kmi0817/Scheduling-Simulator | b8a26233ec8aa88390c4ad142c430cb6a0e321bc | f2f3a6b13b6fddd59b039da732631f95bd45a971 |
refs/heads/main | <repo_name>DielmeRamosGomes/curso-dio-aprenda-a-aplicar-testes-com-java<file_sep>/src/test/java/MainTest/CalculadoraNovaTest.java
package MainTest;
import Main.CalculadoraNova;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
public class CalculadoraNovaTest {
@Test
public void deveSomarV... | 106231353a9ba44eadde8ccdf675af707e5ea7c5 | [
"Markdown",
"Java"
] | 2 | Java | DielmeRamosGomes/curso-dio-aprenda-a-aplicar-testes-com-java | 6b5ab197ded85d4c1a309b9fedf0f932406d79d4 | 1034708dd92842a9f7b02ca7b810a57c1aeebc29 |
refs/heads/main | <repo_name>ravikumar-gubbala/stock-exchange-prediction<file_sep>/src/main/resources/src/StockDataComponent.js
import React from "react";
import Stockservice from "./Stockservice";
import "../src/App.css";
import "../src/ContactForm.css";
import exportFromJSON from "export-from-json";
import LineChart from "../src/Linec... | baebe7c24c35a999fd9da395614bbabc505a41a5 | [
"JavaScript",
"Java"
] | 4 | JavaScript | ravikumar-gubbala/stock-exchange-prediction | e8fbc1149452f729ad5fbda10b8d64ab07dfb70b | 32b77995bd2807808e91953aa5c724fffbb7df3a |
refs/heads/master | <repo_name>danbeltran13/GrandTheftAutoAlert<file_sep>/tamuMake3.ino
#include <IRremote.h>
//ULTRASONIC 1
#define TRIG1 4
#define ECHO1 5
//ULTRASONIC 2
#define TRIG2 6
#define ECHO2 7
//ULSTRASONIC 3
#define TRIG3 8
#define ECHO3 9
//ULSTRASONIC 4
#define TRIG4 10
#define ECHO4 11
int setDistance[4];
... | a7c7412931bcb57156d37a55fba130df277392d3 | [
"Markdown",
"C++"
] | 2 | C++ | danbeltran13/GrandTheftAutoAlert | 31d66561d878c9b994db32bb687743abe31403a2 | b97b8545c5c950e0cc5fd31a75c24a9c1ea82724 |
refs/heads/master | <file_sep><?php
main();
function main()
{
session_start();
$out = false;
if (valueInPostForKey('logout')) {
logout();
$out = true; // Cookies refresh when the page reload. I need to act in advance.
}
$loggedIn = !$out && (checkLogin(true) || checkCachedLogin());
if ($loggedIn) {
setVal... | 6a66c6bb7036313fefd6736ee2f2defb30d91a6b | [
"PHP"
] | 9 | PHP | kevinlcy/SchoolWork | 1fec006e12f1147265786c15e4599ba074133c22 | 46a7e30f307d2803aadf63bed27799dfd1b28018 |
refs/heads/master | <repo_name>tanviet12/share-hosting-backup<file_sep>/rsync.pull.backup.sh
#!/bin/bash
# Configuration
HOST=$1
DES_DIR="/directory_backup/$HOST"
RSYNC="/usr/bin/rsync"
CYCLE_BACKUP=1
LAST_DAY_BACKUP=`date -d "$CYCLE_BACKUP day ago" +'%Y-%m-%d'`
KEEP_BK=7
TODAY="$(date +"%Y-%m-%d")"
if [ -z $1 ] || [ -z $2 ];then
... | 8b16eb92f4c8cde76392f0775a6cf59de43da0d1 | [
"Shell"
] | 3 | Shell | tanviet12/share-hosting-backup | 9934086c43a27eeb111ab7591d1b4555ad7f71fc | f7a3c18f6fe0f91408f3a92914fa0e41ea4ea6cd |
refs/heads/master | <file_sep>using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.EntityFrameworkCore;
namespace DataLayer.EfCode
{
public class ContextFactory
{
private const string ConnectionString =
"Data Source=MAJ... | cfe8888597721ada8c43dda414c4aa27ffb61133 | [
"Markdown",
"C#"
] | 34 | C# | majnurhasan/research-journal-dbms | 1ebd764ae5aa899e36cec5d550add02d16981895 | 487334d26187d6901f58ff921cb62cf9ec4b117d |
refs/heads/master | <repo_name>mlboyko/HelloWorld2<file_sep>/Hello-World2/src/helloWorld/HelloWorld.java
package helloWorld;
public class HelloWorld {
public static void main(String[] args) {
System.out.println("Here ye : important announcement");
System.out.println("Hello World");
System.out.println("Goodbye World!");
Syste... | 8dabf09cc702bec887f913d4b8b029fd933e5c53 | [
"Markdown",
"Java",
"INI"
] | 4 | Java | mlboyko/HelloWorld2 | f326bce48ee0607e6a0fdf3d184399f996e19acc | c6e6032c5ff96997b3f33f2588f72754bf866ad4 |
refs/heads/main | <file_sep>import java.util.Scanner;
class GradesAverage{
public static void main(String[] args) {
System.out.print("Enter the number of Students: ");
Scanner sc = new Scanner(System.in);
int numStudent = sc.nextInt();
sc.nextLine();
int studentNum=0;
int[]... | baf873f9c18321f085ed27950fff9bb95ce85730 | [
"Markdown",
"Java"
] | 16 | Java | akannshu/ymsli-lab-assign | c8a295982344a8f8a28c97aee28fd2305dea955b | c7f00ded072b877d61068de9b0dbfdfa9aac3839 |
refs/heads/master | <file_sep># send-OP_RETURN.py
#
# CLI wrapper for OP_RETURN.py to send bitcoin with OP_RETURN metadata
#
# Copyright (c) Coin Sciences Ltd
#
# 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 ... | 3f8f63af687298c42eab92082bcd25c7e143c6fd | [
"Python"
] | 1 | Python | 1fabunicorn/python-OP_RETURN-DashPay | c66569dded23e6134dfbb37d48ee443647451ffe | 3c18d227547a0f32a88868be192b72656c5742aa |
refs/heads/master | <repo_name>flobev/coursesApp<file_sep>/src/app/services/auth.service.ts
import { LoginPage } from './../pages/login/login.page';
import { Injectable } from '@angular/core';
import { UserRegister } from '../interfaces/user-register';
import { NativeStorage } from '@ionic-native/native-storage/ngx';
import { XmlParser } ... | 9ffae0c4ffd01cd4463a75d97138a3aff21406a2 | [
"TypeScript"
] | 11 | TypeScript | flobev/coursesApp | f5b0353a1d065443b1f49d5f309c506fdc0c6313 | 4271cd3708223b9a584d740a9e4022a59822c1ea |
refs/heads/master | <repo_name>ThomasjD/Trips-Login-and-Registration<file_sep>/app.js
/*You are in charge of creating a website for tracking trips. You will use server side pages using Mustache or any other server side template framework for this assignment.
Your app should allow users to do the following:
- Ability to add a new trip. A n... | 4cb8a033a304608739773c51d108a818888ded7f | [
"JavaScript"
] | 1 | JavaScript | ThomasjD/Trips-Login-and-Registration | 773af3684f45a332166bc645ef9e0670d6b3d3c9 | c178133b9082331a649b06d0a726cc19b2b4c1ef |
refs/heads/master | <repo_name>risecourse/CA1_Cutsuridis<file_sep>/run_on_scc.sh
#!/bin/bash -l
#$ -P riseprac
#$ -pe omp 8
#$ -l h_rt=1:00:00
#$ -m ea
#$ -N ca1mem_sim1
#$ -j y
#$ -o log_ca1mem_sim1.qlog
echo "============================================"
echo "Start date : $(date)"
echo "Job name : $JOB_NAME"
echo "Job ID: $JOB_I... | db904c3787176b9e43b5b13f04b60f27f3cc2eb1 | [
"Markdown",
"Python",
"Shell"
] | 21 | Shell | risecourse/CA1_Cutsuridis | 8ad0ac17f5897b28ce4ba4264374550519756dc9 | 97427beba16fb5376043c403c8aebc80f963012d |
refs/heads/master | <file_sep># world-cup-predictions
<file_sep>import React, { Component } from 'react';
import logo from './logo.svg';
import './App.css';
import BracketDetail from './components/containers/bracketdetail'
class App extends Component {
render() {
return (
<div className="App">
<BracketDetail/>
</d... | d9480aaa6d2e00824812f0701e15492f0a900b78 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | flored27/world-cup-predictions | 0982c844f2b0cf52a39654f4600b0d41d78015a5 | e48c9c7e291ac55c2710ae79b39b2d8339d2a5d8 |
refs/heads/master | <file_sep>You will need to drop the closure-library folder into the root folder here in order for this to work.
<file_sep>goog.provide('sail.model.Ticker');
goog.require('goog.Timer');
goog.require('goog.events');
/**
* Ticker
*
* @param {number} interval Milliseconds between ticks
* @param {Object} onTick Func... | f1ed97b01d6c0f61d2f2f8a77370ac55e0038b69 | [
"JavaScript",
"Text",
"Shell"
] | 7 | Text | excelpest2002/sail | b117929850492740e8a5062103dc97778f33a284 | 5d3078f24ad6e4d132c4726e66af8d50e384a44c |
refs/heads/master | <repo_name>4077/css-fontawesome<file_sep>/-/controllers/main.php
<?php namespace css\fontawesome\controllers;
class Main extends \Controller
{
public function load()
{
$this->css('font-awesome');
}
}
<file_sep>/settings.php
<?php return [
'namespace' => 'css\fontawesome'
];
| 5d365b9e7bdfcf8f1820bc125c1c73270321997b | [
"PHP"
] | 2 | PHP | 4077/css-fontawesome | 2790128945a4329ea996de61d6b0189e60660447 | 177f447f54b0466c72d70837943c8307d43d7139 |
refs/heads/master | <file_sep>// 1. Создать объект с полем product, равным ‘iphone’
// 2. Добавить в объект поле price, равное 1000 и поле currency, равное ‘dollar’
// 3. Добавить поле details, которое будет содержать объект с полями model и color
//
// Все поля добавлять по очереди, не создавать сразу готовый объект со всеми полями.
con... | a83f06f0883bde708688cff3c37f4ba3e2c80b75 | [
"JavaScript"
] | 21 | JavaScript | ivanchikap/easycode-js | 35a86fb0751ee08120077d8b6dd5bff858e6414f | 11c0fc89ca8e41ea5740c0f5e13d41d906425cb8 |
refs/heads/master | <file_sep>const express = require('express');
const morgan = require('morgan');
const app = express();
// Parse URL-encoded bodies (as sent by HTML forms)
app.use(express.urlencoded({ extended: false }));
// Parse JSON bodies (as sent by API clients)
app.use(express.json());
app.use(morgan('dev'));
const fixture = [... | ae933adc8e7a6ef881e97b8280953753e206245d | [
"JavaScript"
] | 1 | JavaScript | jthk1106/node-vstda-api | aed89605671ceec574e5ef011df1e5c20fb76a4d | 61e7d90cfee793d9e549c904b482d93a2ac57455 |
refs/heads/master | <file_sep>(function($) {
$.fn.cs_dynaflds = function(options) {
var basewrap = this;
var settings = $.extend({
'max_fields' : 10,
'add_button' : $(".add_field_button"),
'field_class' : 'txt-fld',
'field_name' : 'myTxtFld',
'placeholder' : 'a... | ecaef4a953c408d5b9827dd206fb6c0bd2225690 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | codesalsa/cs-dynaflds | 700b84f9cfe7c5a5a162e43112a473a3f70fffe4 | d6cf20d8ef1c76fbd1ca72af1b61103ffca610bf |
refs/heads/master | <repo_name>clementpr/adaptable-2016031800<file_sep>/CHANGES.md
Changes in version 1.2.1 (2016031800)
-------------------------------------
- Fix #409 Bug rendering sub menus on mobile
- Fix #416 Bug rendering My Courses with cohort option selected
- Fix #411 Multiple tools menus added to menu
- Fix #406 User Preferenc... | 7cb2113d2737d2e1894b04e74772dd0178e4adb4 | [
"Markdown",
"PHP"
] | 6 | Markdown | clementpr/adaptable-2016031800 | e89cb3451fb83585786939770923167a27719832 | fb254cde5afb83ec99639d2d6aea99fab2d1feb8 |
refs/heads/master | <repo_name>AkiyukiOkayasu/PSoC6BLEPrototypingKit_I2S_AK4558<file_sep>/I2S_AK4558.cydsn/ak4558.h
/* ========================================
*
* Copyright YOUR COMPANY, THE YEAR
* All Rights Reserved
* UNPUBLISHED, LICENSED SOFTWARE.
*
* CONFIDENTIAL AND PROPRIETARY INFORMATION
* WHICH IS THE PROPERTY OF y... | bf6c3c0fddded5a2c66085afd5996d2fca1945c8 | [
"C"
] | 2 | C | AkiyukiOkayasu/PSoC6BLEPrototypingKit_I2S_AK4558 | f000a5db658ef68b16014378bb878208a259579a | a6f911e43d05bba04f78853f27d0e636c3a80a94 |
refs/heads/main | <file_sep>//Chapter 1
// alert("Greetings Visitor!")
// alert("Error! Please enter a valid password")
// alert("Welcome to JS Land .. "+ "\r\n" + "Happy Coding!" )
// alert("Welcome to JS Land .. ");
// alert("Happy Coding!");
alert("Hello .. I can run JS through my web browser's console")<file_sep>//Ch... | 6e253cced338f99ecd4ddb206a241272bad60b4c | [
"JavaScript"
] | 14 | JavaScript | Gamer-Abdullah-99/JavaScript-Practise | b0d958e66667ff39241e12131e5234671d7b4232 | 9c8514be6ae3b9603c1a449bee766557760b39e5 |
refs/heads/master | <file_sep># origami
Experimental
<file_sep>namespace Origami.Data
{
using Vita.Entities;
public class OrigamiEntityApp : EntityApp
{
public OrigamiModule MainModule { get; private set; }
public OrigamiEntityApp()
{
var mainArea = this.AddArea("dbo");
MainMo... | 026f5b2c38f194f1bd11e6cc4f22d41b297fda07 | [
"Markdown",
"C#"
] | 12 | Markdown | blakar/origami | 271ade18883ba26410f8e25be2a12c84f006dc93 | 3adeeaac54adce1c3e7c3aa14b646341010a9043 |
refs/heads/master | <file_sep>package com.epam.mocking;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.logging.Logger;
/**При помощи методологии TDD написать приложение "Поиск документа в файловой системе".
* В приложении должны быть следующие мет... | ae6edaf381e2ba5d605ecf7452f62b6484666bb4 | [
"Java"
] | 1 | Java | kir-r/Mocking | 6cb0bc27e19b78d4798e6c888d483f318efd69e2 | c105fb4c2d14c6830614a4bf238cc09fe2a139b9 |
refs/heads/main | <file_sep>from django.db.models import fields
from rest_framework import serializers
from .models import *
#serializer for the department model
class DepartmentSerializer(serializers.ModelSerializer):
class Meta:
model = Departments
fields = ('departmentId',
'departmentName')
#se... | 015b780950e96b6b3de66b73f206b2a8fd2a7df7 | [
"JavaScript",
"Python"
] | 7 | Python | llSeeSharpll/CRUD-django-reactjs-appliction | a74d83feb3b51f5b97d5f01ca85d7fc3fbf05a94 | 07a833302a3c6376fb6571692b08a6fd954a6c82 |
refs/heads/master | <repo_name>ruIlyaKiselev/ComposeRecipeApp<file_sep>/app/src/main/java/com/example/composerecipeapp/presentation/theme/Color.kt
package com.example.composerecipeapp.presentation.theme
import androidx.compose.ui.graphics.Color
val Primary = Color(0xFFFAFAFA)
val PrimaryLight = Color(0xFFEEEEEE)
val PrimaryDark = Color(... | 82c4a2c6a3d4fca1161003ac172802dd1250018d | [
"Kotlin"
] | 23 | Kotlin | ruIlyaKiselev/ComposeRecipeApp | 0d4c127c6da9aadb0160a590c09ccd4b1549febc | 7e1adde67054b83b8c18f12bf408c45921d1ded6 |
refs/heads/master | <file_sep>#include <stdio.h>
#include <stdlib.h>
#include <CoreServices/CoreServices.h>
#include "DictionaryApp.h"
NS_IMPL_ISUPPORTS1(DictionaryApp, IDictionaryApp)
DictionaryApp::DictionaryApp()
{
/* member initializers and constructor code */
}
DictionaryApp::~DictionaryApp()
{
/* destructor code... | 3cc54434df1bb908fd3606f4c67c4292e6dbb7fd | [
"JavaScript",
"Makefile",
"C++"
] | 8 | C++ | hideaki/summaryfox | 81e048cf98d2108422b522e3f23afa2a9448478c | 7a21da26662195401c32474fabcd0186a84eea1d |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.