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>/* *********************************************************************** */
/* */
/* Nanopond version 1.9 -- A teeny tiny artificial life virtual machine */
/* Copyright (C) 2005 <NAME> - http://www.greythumb.com/people/api */
/* ... | 32a2d848f4dc28017f98782f317c32a11930584f | [
"C",
"Makefile",
"Ruby",
"Shell"
] | 7 | C | adamierymenko/nanopond | 77b9c4ae49a03a0c5ef9829effd1e2bb6b495fb2 | 4e6aeb48a02151f0dc5b64adcf648660ccd9a945 |
refs/heads/master | <repo_name>StackStorm-Exchange/stackstorm-astral<file_sep>/actions/lib/action.py
"""
Copyright 2016 Brocade Communications Systems, 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... | f1d80a942dfa69c1162df2625d14ad6adda0b797 | [
"Markdown",
"Python"
] | 4 | Python | StackStorm-Exchange/stackstorm-astral | b1540cece62bc7c80255cd38a9a07e632e865f97 | f4bbed895b9db416a461212033ec8f863e06b683 |
refs/heads/master | <repo_name>AirN05/ASP.NET<file_sep>/1lab/WebApplication1/Controllers/HomeController.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using WebApplication1.Models;
using System.Web.Security;
namespace WebApplication1.Controllers
{
public class HomeContro... | 470fab2ac871fdcc13161921c368abe4265b8af1 | [
"C#"
] | 3 | C# | AirN05/ASP.NET | bd97cb07ffe8564354ac2bb0e64f48ba06ac6b96 | 3485b45a8cc8a327c2a0cf0a6047a2299ebddd25 |
refs/heads/master | <repo_name>Savoy/News_test<file_sep>/README.md
# News test - простейший новостной сайт
Сайт выводит новости в порядке их добавления. Для просмотра самой новости необходима регистрация, а для добавления новостей необходимы права модератора.
Администратор может добавлять пользователей самостоятельно или редактировать/да... | 3fcde8974ea8a45330d689c7e13c68f9aab36d5f | [
"Markdown",
"PHP"
] | 8 | Markdown | Savoy/News_test | 0f893edcbf8e3b33e28db424ea218ae5087228a5 | ba6f46e177e59fb5cba59543af1a0bbdce08f279 |
refs/heads/master | <repo_name>karmanova-ya/ReDi-AccountingProject<file_sep>/src/main/java/model/BankAccount.java
package model;
import java.io.Serializable;
public class BankAccount implements Serializable {
private static final long serialVersionUID = 1L;
private String bankName;
private double balance = 0;
public Ban... | 58235257ea45384dbf07996655c00570c4b071df | [
"Java"
] | 9 | Java | karmanova-ya/ReDi-AccountingProject | adf5afcfbda56ab73a2e4a8927bd78f938fa05e6 | 0b6aad26a6d3710820e13cafefb1bf8d8d3612f8 |
refs/heads/master | <file_sep>#!/bin/bash
# Escrito por: <NAME>.
# Descrição: Apaga partições no HD ou Flash_Memory sobrescrevindo
# dados aleatorios. Também util para recuperar penDrive apos ser
# usado para a instalação de linux.
echo " "
echo "Mostra as partições reconhecidas pelo sistema."
echo " "
fdisk -l
ec... | f5709e2e87e4451d15dd9d08b43006f21ffa9674 | [
"Markdown",
"Shell"
] | 8 | Shell | thomazrb/shellscript | a9c1500a2b4269371f898cc343b4bf008a874d7a | e839a1e136994a48ce1f1aa08a85fc6a49159378 |
refs/heads/master | <repo_name>Subaku/mirage-issue<file_sep>/tests/integration/helpers/semantic-date-test.js
import { module, test } from 'qunit';
import { setupRenderingTest } from 'ember-qunit';
import { render } from '@ember/test-helpers';
import hbs from 'htmlbars-inline-precompile';
module('Integration | Helper | semantic-date', fun... | 8a0d5c39ffa48f68a2bd3e708360705f079a5561 | [
"JavaScript"
] | 28 | JavaScript | Subaku/mirage-issue | 934670b1470ca8e3605a1712f8f8f76c759da341 | 22a607a3179b37c677bd3d325ed8ca5d8d565de6 |
refs/heads/main | <file_sep># WSMobileAplication
Nama : <NAME>
Nim : E41200378 /A
Pengumpulan tugas workshop mobile Minggu 4
1. Output dari ListView

2. Output Spinner dan Auto Complete Text

library(secr)
library(raster)
library(rgdal)
library(sp)
library(maptools)
library(rgeos)
library(dplyr)
## coordinate system
latlong = "+init=epsg:4326" ## LatLon Projection
ingrid = "+init=epsg:32643" ## UTM Projecti... | efa7bcef12dfe372bfd199bc7d7a87251efe5d2b | [
"Markdown",
"R"
] | 2 | R | cwsjitu/secrSimulation | 62bbb7cfac9e061b68c2c518f93ae50d442410c3 | 766f99b7f5f8bc849d26550108cd26fcdff55303 |
refs/heads/master | <file_sep># PurposefulPhp
Familiar, high level programming.
<file_sep><?php
declare(strict_types=1);
namespace \StillDreaming1\PurposefulPhp;
final class Contractor
{
}
| 1645f2924ec0ddaee6a53ff7c77cd26024540a5b | [
"Markdown",
"PHP"
] | 2 | Markdown | gitter-badger/PurposefulPhp | d89658ee9116b77a95b0bc41ffac2a9f54c6561d | f936aa94b4043c8649211776536c9cb597513fee |
refs/heads/main | <file_sep># Live 10 Theme File Parser by h1data
# outputs tsv file with color tag and color codes
# confirmed functional with Python 3.7.1
# usage
# python liveThemeParser.py [livethemefile]
import sys
import os
import xml.etree.ElementTree as ET
if len(sys.argv) != 2:
print("usage: python " + sys.argv[0] + " [l... | 476d54e43ec900c911f5cd29117345201caedddd | [
"Markdown",
"Python"
] | 2 | Python | h1data/liveThemeParser.py | 2f9747b3ab777859fe11384940e6ef2e20571140 | 150757fa120843ac60acda83bc65c4b45ed21ebc |
refs/heads/master | <repo_name>dakesson/SudokuSolver<file_sep>/SudokuSolverGUI/Position.cpp
#include <math.h>
#include "Position.h"
Position::Position(int row, int col)
{
this->storagePos = row * NUM_COL + col;
}
Position::Position(int storagePos)
{
this->storagePos = storagePos;
}
int Position::getRow()
{
return (storagePos / NUM_R... | 10f05fb66bb5272bbd647e11a70147b43413d1f9 | [
"Markdown",
"C++"
] | 16 | C++ | dakesson/SudokuSolver | d554e38ed51818c44d351711218971e7cddd7927 | 2bd9ac3153fac6371601e17aeb761e1d399c7ca4 |
refs/heads/master | <repo_name>mpolis2/CodingNomads-PythonLabs<file_sep>/03_more_datatypes/2_lists/03_10_unique.py
'''
Write a script that creates a list of all unique values in a list. For example:
list_ = [1, 2, 6, 55, 2, 'hi', 4, 6, 1, 13]
unique_list = [55, 'hi', 4, 13]
'''
list_ = [1, 2, 6, 55, 2, 'hi', 4, 6, 1, 13]
unique_list=[... | 4cb74ba21fe8a5a44d362c1e3a163d389c967148 | [
"Python"
] | 20 | Python | mpolis2/CodingNomads-PythonLabs | 2efbfd2a03592ebaeb1b20c42dbd7b1ae75fc640 | 14a0503db2e3cb7f605bf3c87f021ab84cd92317 |
refs/heads/master | <repo_name>tzq668766/rest-client<file_sep>/mac-run-ui.sh
#!/bin/sh
VERSION=`head pom.xml | grep 'version.*version' | sed -E 's/.*version.(.*)..version.*/\1/g'`
java -Dorg.apache.commons.logging.Log=org.apache.commons.logging.impl.SimpleLog -Dorg.apache.commons.logging.simplelog.log.org.apache.http.wire=DEBUG -Dapple.... | 7d272f906662034f51eebea9ae07b0ec8d78ca7e | [
"Shell"
] | 1 | Shell | tzq668766/rest-client | 14a5ea43ba083d6759fbb37835e8ce8d2a91f0f0 | ccc0b6bb1a861f1070c831cf2faa6dcd2a4b49e5 |
refs/heads/master | <file_sep>import { Dimensions, StyleSheet } from "react-native";
const styles = StyleSheet.create({
container : {
height: '100%',
justifyContent: "space-between"
},
row:{
flexDirection: 'row',
alignItems: 'center',
justifyContent: 'space-between',
paddingVer... | 49308fedd1e7649efb6cfb4a508852aff18bc31d | [
"JavaScript"
] | 11 | JavaScript | JakeWayne07/Airbnb-React-Native | de92334b5480cf6f8bbf41b490cf59a5447391f6 | b7c619fe9fd0f6fe53e3dc2c6452e91b00d9dad3 |
refs/heads/main | <repo_name>gsplash/Lusha<file_sep>/routes/index.ts
import {Router} from "express";
import {parse} from "./parse";
const router = Router()
router.use('/parse', parse);
export { router as routes };<file_sep>/modules/parse/services/parse.service.ts
import {AddWebContent, WebURLExists} from "../../web_content/daos/web_... | a9660c00aac672c7483cafcfb7c96d8fbdd4abf1 | [
"Markdown",
"TypeScript",
"Shell"
] | 14 | TypeScript | gsplash/Lusha | 290e8582a363879952265c8bcf11fa78b80494e0 | 6de05a78644d6a322751fb44cab668aceee0a7d1 |
refs/heads/master | <repo_name>mgershovitz/maya_solves<file_sep>/seven-boom/seven_boom_alt.py
def divisible_by_seven(num):
divisible = num % 7 == 0
return divisible
def contains_seven(num):
contains = '7' in str(num)
return contains
def seven_boom():
num = 1
counter = 1
while True:
if counter == 7:
pr... | 7391f93d14d2a6f7fab486f0b0d4832f82ea9e70 | [
"Markdown",
"Python",
"Go",
"Shell"
] | 58 | Python | mgershovitz/maya_solves | a8de1f05d5d078f39f991d67473ee8a283322dbf | cfba554c073c8ee0a9753c48372fc2d257b9b801 |
refs/heads/master | <repo_name>copsub/wp-touch-copsub<file_sep>/copsub/default/template_the-team.php
<?php
/*
Template Name: The Team Template
*/
?>
<?php get_header();
global $post;
?>
<div id="content">
<div class="<?php wptouch_post_classes(); ?>">
<div class="post-page-head-area bauhaus">
<h2 class="post-title heading... | 3ca411b37ee2c024fc5fa636f80a7b1ffc0942e7 | [
"JavaScript",
"Markdown",
"PHP"
] | 10 | PHP | copsub/wp-touch-copsub | 3fac6e60b01367412fef387c221c856bdbab929b | a1e4e2b12faddf3f12c555fc72f1d6503bdb5bf4 |
refs/heads/master | <file_sep>using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class PlayerCombat : MonoBehaviour
{
public GameObject shield;
public bool shieldInUse = false;
public bool shieldAvailable;
public float shieldCooldown;
public float shieldCooldownLeft;
public s... | ff9b080d87c891bb645d33cbccda0c98970b72d9 | [
"Markdown",
"C#"
] | 13 | C# | DanielVicente12/Unity-2D-Game | b2c24ffdfd4558e5cdd9c14a61a93ef7d7fb4b30 | b5e26344a6af83aee033005b08da8e57e289a31f |
refs/heads/main | <repo_name>MasterJhonny/curso-npm<file_sep>/main.js
let num1 = 34
let num2 = 45
console.log(`${num1} + ${num2} = ${num1 + num2}`); | a54dde8e3227deed96cad6d8b5bba89ce0735dce | [
"JavaScript"
] | 1 | JavaScript | MasterJhonny/curso-npm | ca391637a673a0b774c778b44e0f619c18025b2c | 68ef18e713d0df8e73a36b611381417376a06ef4 |
refs/heads/master | <repo_name>wytings/DBCache<file_sep>/library/src/main/java/com/wytings/dbcache/ICacheDao.kt
package com.wytings.dbcache
import androidx.room.*
/**
* Created by Rex.Wei on 2019/6/1.
*
* @author Rex.Wei
*/
@Dao
interface ICacheDao {
@Query("SELECT * FROM t_cache_table WHERE `key` = :key LIMIT 1")
fun quer... | ffce85377b0d1bb9248a129fac17aab94d1853ce | [
"Markdown",
"Kotlin"
] | 8 | Kotlin | wytings/DBCache | 14c2a7e77b600aa091454dcfea8f87ac9722d3ba | acd401d9d550bcc5ae742577ea7ec64512d936c3 |
refs/heads/master | <file_sep>#!/bin/bash
# My first shell script
echo "Hello World!"
<file_sep>import os
os.system("echo Hello world!")
| aec1cb8452646ca62121a46e2578b671e09885b0 | [
"Python",
"Shell"
] | 2 | Shell | D-Limosnero/miscellaneous | 202096b56eddb96fefe1deae076ab103075655ef | 08a626212cbccd9f96c8e52bf275336f256f99f8 |
refs/heads/master | <file_sep>package bookshelf;
//Here's some stuff to import if you're reading CSV files
/*import java.io.File;
import java.io.FileNotFoundException;
import java.util.Scanner;*/
//Here's how to write main() when using info from CSV files
/*public static void main(String[] args) throws FileNotFoundException {
System... | 54cf0d08175c14ab3255eac6e47e321d3742d0ea | [
"Java"
] | 1 | Java | jeffkillinger/java_bookshelf | 2d2266aefb6ff91db078336130c5e88ec08b29dd | 887331f05c64625329218386481c7299205ae75b |
refs/heads/master | <repo_name>leymannx/wordpress-custom-fields<file_sep>/frontpage-fields.php
<?php
/*
Plugin Name: Front Page Custom Fields
Plugin URI: https://github.com/leymannx/wordpress-custom-fields.git
Description: This WordPress plugin some custom fields to a custom post type named "Front Page". Additionally it sets an WYSIWYG e... | 0b6ba0e050cb54ffe0ebc1cf6eaa04f2eddb070a | [
"Markdown",
"PHP"
] | 2 | PHP | leymannx/wordpress-custom-fields | 0cfe151517058c30ad2b2eb3380fb7d4ade31be7 | 57a3350e74caf939e0b59d118ba7be084484ac87 |
refs/heads/main | <file_sep>import Validator from '../app.js';
test('1', () => {
expect(Validator.validatetelephonenumber('8 (927) 000-00-00')).toEqual('+79270000000');
});
test('2', () => {
expect(Validator.validatetelephonenumber('+7 960 000 00 00')).toEqual('+79600000000');
});
test('3', () => {
expect(Validator.validateteleph... | 03e5b1fd974a072887c163c46e5838a3a2c87a97 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | Stanislavsus-edu/regex_valid-telephone | 480bd83189c2ea5fdca0a5c3e1d3000f3c47af39 | 8b6ccc9de418909bf3f79618f54f047c4d9539fe |
refs/heads/master | <repo_name>anuragb26/f1-stats<file_sep>/src/hoc/Layout/Layout.js
import React, { Fragment } from 'react'
import { Container } from 'reactstrap'
import Header from '../../components/Header/Header'
import Footer from '../../components/Footer/Footer'
const layout = ({ children }) => (
<Fragment>
<Container fluid>
... | 27bea5b578d79181b5129794c15d568d2f76c8b3 | [
"JavaScript",
"Markdown"
] | 5 | JavaScript | anuragb26/f1-stats | 777b876ef5595f21271665c47a67965fae2715b1 | 04523df4957f0b4e3a57c32d575e001dd77905ae |
refs/heads/master | <file_sep>
public class ABAB123 {
public static void main(String[] args) {
String a = "12123456";
String b = new String(a);
b=a.replaceAll("1", "我").replaceAll("2", "你");
System.out.println(b);
}
}
<file_sep>
public class CCC {
public static void main(String[] args) {
String a = "1234... | 5f42b31779520640bb3796de1b4e50f4edc69b3c | [
"Java"
] | 6 | Java | Tim718820/test | 1eaca6b3986b64aebf57c041e7165f0aac35008e | f99e08b2217cd0fec576e7f9831440728d3db36a |
refs/heads/master | <file_sep>package main
import (
"fmt"
"github.com/PuerkitoBio/goquery"
"strings"
// "regexp"
"bytes"
"encoding/binary"
"net"
"github.com/huzorro/ospider/util"
)
func netName() {
addr, _ := net.InterfaceAddrs()
fmt.Println(addr) //[127.0.0.1/8 10.236.15.24/24 ::1/128 fe80::3617:ebff:febe:f123/64],本地地址,ipv... | 868e9759552e18317b542044f067a87bb6ce7b3c | [
"JavaScript",
"SQL",
"Go",
"Markdown"
] | 25 | Go | huzorro/ospider | 1ece9a83fa6c33b66adf5af4d8d4e8d453eae06b | 2c85993d2baf8be9a12b4ad3c1eddd8b517b9bc0 |
refs/heads/master | <file_sep>export class LicensesModel{
constructor(
public weapon:string
){
}
}<file_sep>import { Injectable } from '@angular/core';
import { HttpClient, HttpHeaders } from '@angular/common/http';
import { Observable } from 'rxjs';
import { Global } from './global';
import { AuthModel } from '.... | 019d721f9327febf8dafcc1b9c61717407f83afc | [
"TypeScript"
] | 15 | TypeScript | carlotaLobo/supernenas-sogeti | 4537e8428f5e05e629d8c3c42435283c43573def | d648b2ed19c37fd86d76c819b9ad0f68cc950d84 |
refs/heads/master | <file_sep>package com.example.template.user
import com.example.template.tools.base.BaseViewModel
import com.example.template.useCases.UserUseCase
class UserViewModel(
userRepository: UserUseCase
) : BaseViewModel() {
val items = userRepository.getUsers()
}<file_sep>package com.example.template.remote.model
... | 416dfd5823052b61be504b57dd265c43e378b0cb | [
"Markdown",
"Kotlin"
] | 64 | Kotlin | krzysztofkurowski/Android-Example-Project | 505ba8a2a6dac5766da71a3f5005868003276bec | 9e5ac3f740c74835ea35a23b48f88bdf9bf4ba44 |
refs/heads/main | <file_sep>//
// main.swift
// Lesson7
//
// Created by Pauwell on 24.03.2021.
//
import Foundation
print("Hello, World!")
| 747a9fe20d377a769b2b7faab1ff820a83f52a1c | [
"Swift"
] | 1 | Swift | Pauwell86/Lesson7 | a0aa2f8623baa0c12914575b74f9995e25c8beec | 46d68661f67749fab5d37db53db2c01b53c3a893 |
refs/heads/master | <file_sep>using System;
using System.Windows.Forms;
namespace MathSharp
{
public partial class frmPrincipal : Form
{
public frmPrincipal()
{
InitializeComponent();
}
private void btnOrdemDois_Click(object sender, EventArgs e)
{
frmOrdemDois Orde... | b2c182827d9933de53e21cdabd498852f554417d | [
"Markdown",
"C#"
] | 4 | C# | dumasmcarvalho/Y2017_MathSharp | 71572bb2651486b2f8fb47f0685b28b1cd3bc670 | 7dfa40b3c4d18445face0d6826bc1d12e0d5c427 |
refs/heads/master | <file_sep>(function(){
var num = 0;
timer=setInterval(function(){
num++;
if(num>$('#index_d1>div:first-child>a>img').length-1){
num=0;
$('#index_d1>div:first-child').animate({marginLeft:-1430*num})
}else{
$('#index_d1>div:first-child').animate({marginLeft:-1430*num})
}
},3000)
})()<file_... | 492a465fd308153ac62d31e19f6dac5b8b35c9c2 | [
"JavaScript",
"SQL",
"Markdown"
] | 9 | JavaScript | zhou10759/xiecheng | cffcd4f98d4b8a83f19311206e1b0ecd957a2d24 | 9083db861809cf892013f0dd93bf083b4805ee06 |
refs/heads/master | <repo_name>kamito/geco<file_sep>/geco.gemspec
# coding: utf-8
lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'geco/version'
Gem::Specification.new do |spec|
spec.name = "geco"
spec.version = Geco::VERSION
spec.authors = ["<NAME>"]
... | ea5004dffddd2ffdc68f847afddf631bb13f24fa | [
"Markdown",
"Ruby"
] | 4 | Ruby | kamito/geco | 7127c4bb8b789cdbe0bfce4c369e1e3bbeddcbc0 | 07430c81fbe3c56ac9c8d3bcf7cca69129853675 |
refs/heads/master | <file_sep>class Paperball{
constructor(x,y,radius){
//var options={
//}
this.body=Bodies.circle(x,y,radius);
this.radius=radius;
this.image=loadImage("paper.png");
World.add(world,this.body);
}
display(){
var pos=this.body.position;
console.log(this.bod... | 6202a6f6015bce1983ef6ecf26455f8711e46cbe | [
"JavaScript"
] | 2 | JavaScript | GurmehrBindra/Project28 | 6f5d60dffbe0f2e0aaa3aa131d5cea69f8e5d6ca | 8605c69aba079eae9cc697fce9c7aa2c22e6a648 |
refs/heads/master | <file_sep>function funkcija4() {
var x=document.getElementById("MojDiv");
if (x.style.visibility === "unset") {
x.style.visibility = "hidden";
}
else {
x.style.display = "hidden";
}
}
function funckija5() {
var y=document.getElementById("MojDiv");
if (y.style.visib... | ef635318afa8d84c4de20d9a420468b3b9e54889 | [
"JavaScript"
] | 1 | JavaScript | fransokolic1/Java_Script-DOM | 58265b4ed2bea26e5cd164b1abb0f2bb88f59502 | d84b5f285ed08d07dee3d56ee340674645c35f79 |
refs/heads/master | <repo_name>paulodiff/machine-learning<file_sep>/Activation-Functions.py
# Display of Activation Functions and softmax
import os
os.environ['TF_CPP_MIN_LOG_LEVEL']='2'
import numpy as np
import matplotlib.pyplot as plt
import tensorflow as tf
# helper for variable defs
def init_weights(shape, name):
return tf.Varia... | a14384105641e7e04a908e34b407ff28556c587d | [
"Markdown",
"Python"
] | 15 | Python | paulodiff/machine-learning | 2cd73083e48faef44e0f4efc7a17af93fadee7b3 | 3ea1633d7a7395ce97a1c19b99d0ecd111095848 |
refs/heads/main | <file_sep>//
// AppDelegate.swift
// iTunes Finder
//
// Created by <NAME> on 25.12.2020.
//
import UIKit
@UIApplicationMain
class AppDelegate: UIResponder {
// MARK: - Properties
var window: UIWindow?
private lazy var tabBarController: UITabBarController = {
let searchViewContro... | 73755955eae451450553c76cd26364435403e93f | [
"Swift",
"Ruby",
"Markdown"
] | 34 | Swift | weakvar/iTunes-Finder | 9ef0d454fb12822922af55249e994fa87e307795 | 27a2c3a0a6e86896f45b57b74a109a2c300b91bf |
refs/heads/main | <repo_name>Steve0929/taylorbot<file_sep>/create.py
from tensorflow import keras
from tensorflow.keras import layers
import numpy as np
import random
import io
maxlen = 40
diversity = 1.0
#Prepare the data
with io.open("ts_songs.txt", encoding="utf-8") as f:
text = f.read().lower()
text = text.replace("\n", " ") ... | f1f0a39dd311d4da1d08899b0d89d285daddaa19 | [
"Markdown",
"Python"
] | 2 | Python | Steve0929/taylorbot | 43aab38ca1c4d38084949e0462901406d46a8449 | abddb505392ce24c41fd9cce0b2a881eae1bdaf7 |
refs/heads/master | <file_sep>//This code is written by <NAME>. The code elements duplicates from an array.
//For more query contact him <EMAIL> for your mean comments.
public class MainClass {
public static void main(String[] args) {
// TODO Auto-generated method stub
int [] a= {1,7,7,7,9,9,10,10,10,11,11,1};
removeduplic... | 16918cec68c5e3f5519c7c35393e520b808fb202 | [
"Java"
] | 3 | Java | MindSparkTm/JavaDataStructuresHacks | 811af3425972765d9a237a9fbbabf41938b7bcbc | 6498b12151992876516b578844548b59d397ab4b |
refs/heads/master | <file_sep>import tensorflow as tf
import numpy as np
class SentCNN(object):
"""
A CNN for utterance and relation pair matching regression.
Uses an embedding layer, convolutional layer, max-pooling layer,
and a logistic regression layer.
"""
def __init__(self,
sequence_len... | 6f3aa3bc57ee2f9d692bd58426bf47ceb22b76f9 | [
"Markdown",
"Python",
"Text"
] | 8 | Python | upwork-ds/job-knowledge-extraction | d31cdeff8d3a100569f93faf9c8512093b3390a3 | 7ec0192f201177dd932be0d5ce7ccf15542ae64e |
refs/heads/master | <repo_name>phobologic/stacker-python-bug-squash<file_sep>/requirements.txt
botocore
boto3
testfixtures
formic
nose
<file_sep>/lambda_hook/tests/test_lambda.py
import unittest
from StringIO import StringIO
from zipfile import ZipFile
import botocore
from botocore.stub import Stubber
import boto3
from testfixtures impor... | 3c184a68d55c1b6903b732f80a59a2e3e1c26673 | [
"Python",
"Text"
] | 2 | Text | phobologic/stacker-python-bug-squash | f9b226efb018c1942ccc1e674c42f474db7f105e | 11fa02e95b69bc4ab9c56b3a809612da0423489b |
refs/heads/master | <file_sep>use missamore;
# Write a query that returns the company_id, company name, the number of resumes submitted
# to that company, and the average gpa of the resumes the submitted, and the number of people
# that were hired.
# Save the query as a VIEW as company_resume_statistics.
create or replace view company_r... | f12d62d5db054abe80ad50285bd1245217c4f230 | [
"SQL"
] | 1 | SQL | joemissamore/lab09 | 43dff7495e00867b265ba81cfa4d1f9dbf8a33d5 | bf384dddee5c2633d88c1b78ac72a39378769e68 |
refs/heads/master | <repo_name>omargobran/NewsFly-ReactNative-App<file_sep>/config.js
export const firebaseConfig = {
apiKey: "<KEY>",
authDomain: "my-new-project-111.firebaseapp.com",
databaseURL: "https://my-new-project-111.firebaseio.com/",
projectId: "my-new-project-111",
storageBucket: "my-new-project-111.appspot.... | a679d4f39cc696b5b5bf08352f6d5a3168d7a6f6 | [
"JavaScript"
] | 1 | JavaScript | omargobran/NewsFly-ReactNative-App | 2dbba8932b1db4eff62c249698fc0e7e3228f200 | 7de43d77255ded4feefb8bbbfec4a337bd988a32 |
refs/heads/master | <file_sep>from utils import header
from open_file_bank import open_file_bank,write_money_slips
def main():
header()
make_money_slips()
def make_money_slips():
file=open_file_bank('w')
write_money_slips(file)
file.close()
main()
<file_sep>import os
from bank_account_variables import a... | 36e2f6120931e3f68dc35a2030688cac5c388712 | [
"Markdown",
"Python"
] | 15 | Python | mrsilvestrini/course_python | 29d9d706be3dfd47e8212f302355a4055b926427 | cc2a124890a6fe2926ee7617ef998df70ba07075 |
refs/heads/main | <repo_name>MarkPowellDev/python-code<file_sep>/hello_world/hello_variables.py
name = 'mark'
age = 31
is_registered = True
print(name)
print(age)
print(is_registered)<file_sep>/flow_control/if.py
number = 17
green = True
red = False
if number <= 15:
if green is False:
if red is True:
print('Go'... | 11bbc0259b79349605e1edf52e837d80c46aa83f | [
"Python"
] | 6 | Python | MarkPowellDev/python-code | 4aad541e2c7848662c19cc34b508b35991c91568 | 1af4399335d2d5653865f0041f87d78caa5ae4fb |
refs/heads/master | <repo_name>seagullbird/cc-2019-team<file_sep>/src/main/java/io/vertx/starter/Q2Tweet.java
package io.vertx.starter;
import org.json.JSONObject;
public class Q2Tweet {
private Long senderUid;
private Long tweetId;
private Long targetUid;
private JSONObject hashTags;
private Long createdAt;
private St... | c969b923e1f356ff96183a968ca99db7bfeb999b | [
"Java",
"INI"
] | 6 | Java | seagullbird/cc-2019-team | c5ec99523e73ff337afa7db8bd177735f7add5d8 | e3d92501efb8e5f2512ec61d84429224793fca34 |
refs/heads/master | <repo_name>xunmi67/wsc_pc<file_sep>/huaweiOJ/cont_sort.cpp
#include <iostream>
#include <cstdlib>
#include <cstring>
using namespace std;
static void init(char* str, int* alp_count, int* pos);
void count_sort(char* str, char *after);
static void insert(char *str, char *after, int *pos);
#define get_low(a) ((a<='Z'&&a>=... | 72f3db81b3b474fad167e67f5197a5325fa074a8 | [
"C++"
] | 1 | C++ | xunmi67/wsc_pc | 7d206ca511fd46faf610c7448348c89e566a1efa | a15ef4c2ac9a5dd9fb217fa3dc9f7779b56048f0 |
refs/heads/master | <file_sep><?php
class BaseController extends Controller {
/**
* Message bag.
*
* @var Illuminate\Support\MessageBag
*/
protected $messageBag = null;
/**
* Breadcrumbs
*
* @var array
*/
protected $breadcrumbs = array();
/**
* Title
*
* @var string
*/
protected $title = '';
/**
* Use... | 9b2be0e50e9ee149280cab57e28052902f9f7b17 | [
"Markdown",
"JavaScript",
"PHP"
] | 52 | PHP | olleolleolle/bacon | a0abedd5753458ae8ed25c26821bed6646bfb48e | 76a21fa14536c9e875be89714cd8d9b8e88f0cf1 |
refs/heads/master | <repo_name>Jy411/Dailies<file_sep>/#254 - Atbash Cipher [Easy].py
# https://www.reddit.com/r/dailyprogrammer/comments/45w6ad/20160216_challenge_254_easy_atbash_cipher/
import string
def initAlphabetDict():
i = 1
alphabetBook = dict()
for alphabet in string.ascii_lowercase:
alphabetBook[i] = alpha... | 1b4241da7525759f9aa88e81b6df31a4b6b2fa67 | [
"Python"
] | 22 | Python | Jy411/Dailies | 6dad3039834ef09bee40c7b47093fb5c5abe17aa | 64d92c030c829083b3819083a917a4390ce2ce65 |
refs/heads/master | <repo_name>williamsriver/SpeechCreative<file_sep>/readme.txt
hello!欢迎使用课堂语音助手,版本号:0.0.1
主要有以下功能:
1、录音功能:
1)双击运行 录音.exe
2)打开后即开始自由录音,直至命令行中出现生成的文本
以及"Press Any Key to Continue"后即可关闭
3)生成的语音文件在同目录下的 example.txt 中
2、生成关键词
1)将生成的文本放到PythonApplication1\text文件夹下
2)用Visaual Studio运行"PythonApplication1.sln"
3)在Python... | 78ecd0bb8fc56181018a711f3d630de255cd18e6 | [
"Python",
"Text"
] | 2 | Text | williamsriver/SpeechCreative | eeb0a88043a9e54bd616425c45440d7e798eb47f | 92ca67952a9ddc4badebca51747d6b72190b037f |
refs/heads/master | <file_sep>using MyEntity.Entity;
using System.Collections.Generic;
using System.Linq;
using System;
namespace MyEntity.Query
{
public class TestsQuery
{
private static ICollection<Tests> tt;
public static void ShowTests()
{
tt = new List<Tests>
{
... | 7249ebade6565076e977887745346832d49d7a8d | [
"Markdown",
"C#"
] | 15 | C# | Budzyn/BSA-ORM | 9d04f1d2698ebbffe6298c261de8f51dbd56cbec | 34fcb849e02a8332a69376c79f57ca9b8cb35c5a |
refs/heads/master | <file_sep>var data = [];
var svg;
var headers = [
"Total",
"HP",
"Attack",
"Defense",
"SpAtk",
"SpDef",
"Speed",
"Legendary",
"Male",
"Female"
];
var margin = {top: 20, right: 20, bottom: 30, left: 60};
var width = 1000 - margin.left - margin.right;
var height = 700 - margin.top - margin.bottom;
window.onl... | f42d908c5faba46ea540f9090a7336f2e0db0999 | [
"JavaScript",
"Python"
] | 8 | JavaScript | brancuad/Pokemon | da58c5f1046648bd7442e71ee78a5c3b20780676 | 87f3dae57079881fc9848a4a6c370ebd1cbeb9f9 |
refs/heads/master | <file_sep>import React, { useState, FormEvent, ChangeEvent } from 'react'
export interface IUseFormOptions {
initialState?: { [key: string]: any }
onSuccessSubmit: (inputs: { [key: string]: any }) => void
validate: (inputs: { [key: string]: any }) => { [key: string]: any }
}
export default function useForm(opts... | a47abe27b3983d60f421c6ccccb844d33fc94860 | [
"Markdown",
"TypeScript"
] | 2 | TypeScript | teaualune/react-hook-useform-ts | e1de3d48212185a4ca3c1953d50b0296261c8877 | f36fadd294e70a6768485b0ff436bbe12953474d |
refs/heads/master | <repo_name>gettimer/rockpaperscissors<file_sep>/README.md
# rockpaperscissors
Rock paper and scissors game
### Installation
```
npm install
```
### Start Dev Server
```
npm run start
```
### Build Prod Version
```
npm run dev
```
<file_sep>/src/index.js
import './styles/scss/main.scss';
const options = ['rock'... | 51111721bf6f8709230f9a36297969ca9f336344 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | gettimer/rockpaperscissors | d1b6e3db6593720c52d12ca0847778adad2a7c6a | c71cdf17d2ddbf2819862ac6b3770a1f787b32b3 |
refs/heads/master | <file_sep>#include "ItemDatabase.h"
#include <fstream>
#include <sstream>
#include <string>
static const char* DB_FILE = "Resources/ItemDatabase/ItemDatabase.txt";
static const char* ITEM_IMAGES_PATH = "Resources/Images/Items/";
ItemDatabase::ItemDatabase() {
std::ifstream infile(DB_FILE);
std::string line, name, d... | d5925f26f97e9eb33163876388348b7c5aab5892 | [
"C",
"C++"
] | 45 | C++ | TheBearmachine/Platformer | 50a83aa8400f031aa722b115125740b18b5d4f57 | b8707f9601a19a264e5912b0e27464c9c97c9954 |
refs/heads/master | <file_sep>using Chaos.Core.AuthHelper;
using Chaos.Core.Data;
using Microsoft.AspNetCore.Authentication.JwtBearer;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Mvc;
using Microsoft.EntityFrameworkCore;
using Microsoft.Exten... | cd987cdb09ae906fae97f0d6f3063d0d878b9233 | [
"C#"
] | 1 | C# | rocrukh/Chaos.Core | 21153f4ee3fe3d7e48743bdb39e9adfebda197bd | b7038425cfea00e98f09002226acc9ff130b064a |
refs/heads/master | <file_sep># Changelog
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
### [0.1.3](https://github.com/samzlab/vue-composable-store/compare/v0.1.2...v0.1.3) (2020-10-06)
### Bug Fixes
* retu... | 93078bace8d1a7f063dba72ca2f78ec44a8135a5 | [
"Markdown",
"TypeScript"
] | 5 | Markdown | samzlab/vue-composable-store | 95adf26fc3f79b3530bf9e11937f8d4eb99bb6bd | 843fd83125a923a0846d0d76a411574796150c9e |
refs/heads/main | <repo_name>silverstar0727/KorNLI_byBERT<file_sep>/preprocess.py
import os
import tensorflow as tf
from transformers import BertTokenizer, TFBertModel
import numpy as np
import pandas as pd
from tensorflow.keras.preprocessing.sequence import pad_sequences
from tensorflow.keras.callbacks import EarlyStopping, M... | a7692656ea0f9ab51530efaf6dc2f6862aa8e95d | [
"Python"
] | 1 | Python | silverstar0727/KorNLI_byBERT | 6a2f566f09e2ad6035858a844f9a12b202fdfd82 | e0aa290c21ce0c2860cdcd3227cf7fbec451dc95 |
refs/heads/master | <file_sep>package com.example.greenthumb_test
data class User(val user_id:Int, val email_id:String?, val user_type:Int)<file_sep>package com.example.greenthumb_test
import android.content.IntentFilter
import android.net.ConnectivityManager
import android.os.Bundle
import android.view.View
import android.widget.Progre... | 204cbeee46ca8ebb181d6492c0c9eb764f9b164b | [
"Kotlin",
"Gradle"
] | 12 | Kotlin | sys029/greenthumb_test | 7e39113afbcb7955b7ee96942ae26582405a4935 | 6b3b77dcb03724068326d7424a4795fdd864dc9d |
refs/heads/master | <file_sep><?php
/*
Plugin Name: Remove Script & Stylesheet Versions
Description: Removes the version string (?ver=) from scripts and stylesheets.
Author: Kawauso
Version: 1.0
*/
function rssv_scripts() {
global $wp_scripts;
if ( !is_a( $wp_scripts, 'WP_Scripts' ) )
return;
foreach ( $wp_scripts->regis... | 725a817d563ae0937a4b2e3a06f0eceec40353f8 | [
"Text",
"PHP"
] | 2 | PHP | WPPlugins/remove-script-stylesheet-versions | ead5b0659808faf69ef746f01ba1d838bd4268c4 | 102b9f99df395491465ea3ec235dccd1a4842e4d |
refs/heads/master | <file_sep>## These functions allow to cache the computed inverse of a matrix in order to avoid repeated
## computations of the same inverse matrix
## This function creates a special matrix that can cache its inverse
makeCacheMatrix <- function(x = matrix()) {
i <- NULL
set <- function(y) {
x <<- y
i <<- NULL
}... | 1f501f4b6d91000dbea1cf4d25515ec90d2b9b85 | [
"R"
] | 1 | R | BobT3d/ProgrammingAssignment2 | b3b3670a8dee6848528ad29f956d85f5a0944142 | a75366b253a66110e65a1d42dea5bace39739cbb |
refs/heads/master | <repo_name>EternalCode/mega-evolution-cutscene<file_sep>/src/engine/text/textboxes.c
#include "..\types.h"
#include "string_funcs.h"
#include "textboxes.h"
#include"..\character_control\buttons\buttons.h"
// draw text
void task_text_draw(u8 task_id) {
struct task* task = &tasks[task_id];
switch (task->priv[0... | 6f91eb611edf9072162ea2acc1607bc9e3976ed7 | [
"Markdown",
"C"
] | 11 | C | EternalCode/mega-evolution-cutscene | b0525094f6cee532436e5f6b98feba41896e288e | 4deefd4fe658247e1929cf9622cdd5426332dec9 |
refs/heads/master | <file_sep>#pragma once
#include <iostream>
#include <iomanip>
#include <string>
#include <fstream>
#include <algorithm>
class sync_phys {
public:
/*
Transmits data from inFile to outFile with frames of
64 character data blocks preceded by two SYN characters
All characters transmitted are subject to transmission
... | 12b968560054d415488922db33e95a33a75e46d3 | [
"C++"
] | 4 | C++ | amillikin/Sync | 2838ccd4030ad513eb08a4d37809702632ff2f5e | 3632e0c7eefd3b7ba40e78ba2db8c2d14f808018 |
refs/heads/master | <file_sep># code here!
class School
def initialize(name)
@name = name
@roster = {}
end
def roster
@roster
end
def add_student(s_name, s_grade)
#If grade doesn't exist, make new k-v pair
#If it DOES exist, add to student_arr
if @roster.include?(s_gr... | 2ca3d20765215680214dfd8cfdf3f2fbed21c732 | [
"Ruby"
] | 1 | Ruby | TimeSmash/school-domain-nyc-web-060319 | 741be5ccbd9b602130322c4b6416573936ba12f2 | f155bc322d9850bf184a27b30963d2ed95760cf7 |
refs/heads/master | <file_sep>require 'rails_helper'
describe 'User Query', type: :request do
include_context 'GraphQL Client'
let(:query) do
<<-GRAPHQL
query {
users {
id,
name,,
}
}
GRAPHQL
end
it 'returns a list of users' do
users_ids = create_list(:user, 2).map(&:id).map(&:to_... | 24df479c107b0d0bc8c98d083c3c7f718bdc2acf | [
"Markdown",
"Ruby"
] | 22 | Ruby | kaiomagalhaes/rails-graphql-experiment | 83e461a111a25ce7d1c5c82b03044714f1fedc17 | 416924d246929d38cd802e6d7c90d5a3127eb021 |
refs/heads/master | <repo_name>sumaq/apm-ws-client<file_sep>/src/com/aje/apm/webservices/WSRecuperarDatosClient.java
package com.aje.apm.webservices;
import java.rmi.RemoteException;
import org.apache.axis2.AxisFault;
import com.aje.apm.webservices.WSRecuperarDatosStub.Execute;
import com.aje.apm.webservices.WSRecuperarDatosStub.Execut... | 4fd9e45438447c1051757a1ae3765c4c94ec7976 | [
"Markdown",
"Java"
] | 5 | Java | sumaq/apm-ws-client | 27e3731069ea469c0b0713cb2496c59cbd5e8994 | dc358b15227de59523fd8610ad1e071119962f16 |
refs/heads/master | <repo_name>xxrom/136_single_number<file_sep>/main.py
from typing import List
class Solution:
def singleNumber(self, nums: List[int]) -> int:
dict = {}
for value in nums:
if value in dict:
dict[value] += 1
else:
dict[value] = 1
for item in dict:
if dict[item] == 1:
... | 12c288ac93b704b4762932043d9423decb3e87e0 | [
"Python"
] | 1 | Python | xxrom/136_single_number | 093df8781a32dc0e012e05d64d20069e64537847 | d7d349c1467cc90331f5a4b52b36a72828b84e7d |
refs/heads/master | <repo_name>ingfernandorojas/complete-crud<file_sep>/src/app/services/course.service.ts
import { Injectable } from '@angular/core';
// Firebase
import {
AngularFirestore,
AngularFirestoreCollection,
AngularFirestoreDocument
} from 'angularfire2/firestore';
// Interface
import { courseInterface } from 'src/app/mo... | d122df4df94f6d4266e033d46129610ae075db3f | [
"Markdown",
"TypeScript"
] | 5 | TypeScript | ingfernandorojas/complete-crud | 8dbea735eda79dcb0636a97a23b994c8eef3209a | 1fbd5d25d917622ad7056ab0e3e872c53684ebe7 |
refs/heads/master | <repo_name>codalogic/value_or<file_sep>/value_or_example.cpp
#include "annotate-lite.h"
using namespace annotate_lite;
#include "include/value_or/value_or.h"
using namespace valueor;
#pragma warning( disable:4996 )
#include <cstdio>
#include <fstream>
#include <optional>
void pointer_types()
{
Scenario( "Pointer Ty... | 1742f6abd2841e94e1558514742f49d08eee0fa9 | [
"Markdown",
"C++"
] | 3 | C++ | codalogic/value_or | e248d4d1573f3f66b85780c3a1046431baa59ffb | 56f8da6f70cb560a0c52d57104484f35e9a85fed |
refs/heads/master | <repo_name>jsouza678/RecyclaJogo<file_sep>/app/src/main/java/souza/home/com/recyclajogo/GameAdapter.java
package souza.home.com.recyclajogo;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
impor... | 43d92aab57b93fc34265498efac7a0f7e8ec892b | [
"Java"
] | 1 | Java | jsouza678/RecyclaJogo | dafb1a8a363bc4c60e872d4b992b0a8fbb11e1dd | bcadf4960a1fe2ab9fc52aa0811956c688471d05 |
refs/heads/master | <file_sep>package com.simulator.http.controller.update;
import java.text.SimpleDateFormat;
import java.util.Date;
import org.jboss.logging.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.MediaType;
import org.s... | 6922f75cb7fba3e1da7bad864fed3b8bb1d5039a | [
"Java"
] | 23 | Java | zerokim123/SimulatorRepository | a7869a68d10a8dbd9d3f1846b03b4cd75595a2f5 | 25fd8858ad8c278f81f23acde8985190c97126de |
refs/heads/master | <repo_name>StarkAndroid/FinalProject2<file_sep>/app/src/main/java/com/udacity/gradle/builditbigger/EndpointsAsyncTask.java
package com.udacity.gradle.builditbigger;
import android.content.Context;
import android.content.Intent;
import android.os.AsyncTask;
import android.util.Log;
impor... | c46e37bb3ea147e945009f8c3e748cf7467e147f | [
"Java"
] | 1 | Java | StarkAndroid/FinalProject2 | 8d3fb98cfc91c16707d2b66e17547c927b443b6a | 60abdd6ce61e124ea39d438276c81d58c1865b1f |
refs/heads/master | <file_sep>/*
<NAME>
4/28/2018
CS 362
Testing Adventurer Card
*/
#include <stdlib.h>
#include <stdio.h>
#include "assert.h"
#include "dominion.h"
#include "rngs.h"
#include "unit.h"
#include <time.h>
#include <math.h>
int main (int argc, char** argv) {
struct gameState state;
int players = 2;
int seed =... | a4970f41c69bd39472f40c0357a7ad08a3a873b7 | [
"Markdown",
"C",
"Makefile"
] | 15 | C | DeadCatLady/CS362-004-S2018 | 435c36ee40eec42ab2ddf15e0a0b063286fb82a1 | c211f7e1e14ebde9a25be51776ecdefd2289a351 |
refs/heads/master | <repo_name>younus21/class<file_sep>/BoxDemo.java
package Cheaprer6;
public class BoxDemo {
public static void main(String[] args) {
// TODO Auto-generated method stub
Box1 mybox = new Box1();
double vol;
// assign values to mybox's instance variables
mybox.width = 10;
mybox.height = 20;
mybox.depth = 1... | 5eede1c748e49d36d35963988907c39e561df8dc | [
"Java"
] | 2 | Java | younus21/class | 51bd3394a695eacaeecf9e48988cf9e611d0b9ca | 422e39a0db8e1056e528d7990b3bfc21110dc880 |
refs/heads/master | <file_sep>const _ = require('underscore');
const checkTypes = require('check-types');
import { CanDeployOptions } from '../can-deploy';
import { MessageOptions } from '../message';
import { PublisherOptions } from '../publisher';
import { ServiceOptions } from '../service';
import { VerifierOptions } from '../verifier... | 7d600117833480033efdaa25572e5f6f482ac3d9 | [
"TypeScript"
] | 3 | TypeScript | vgrigoruk/pact-node | bdb5baea57f278621cbccdb9bc48536525b7ab90 | e87e295a301014f4a7e7b919bcb83ce72bc454c8 |
refs/heads/master | <repo_name>wangkunctc/Generate-Music-Bidirectional-RNN<file_sep>/README.md
# Generate-Music-Bidirectional-RNN
Generate Music using dynamic bidirectional recurrent neural network Tensorflow

This RNN model will generated 2 outputs, ... | e75c83970e1a686708636f4823c0a250457a3d56 | [
"Markdown",
"Python"
] | 6 | Markdown | wangkunctc/Generate-Music-Bidirectional-RNN | cd5006b53a473e2099cb74c4cbbd48096d49fa25 | a99fdc85ff8192254fbccde54cdb7019e9120d74 |
refs/heads/master | <repo_name>craigplusplus/jquery-dynalist<file_sep>/README.md
Dynalist jQuery Plugin -- OBSOLETE
======================
This is a script that handles a list with nested collapsing sections in a style-agnostic way. It is not assumed that the list is formatted as tabbed data, or an accordion list, or any other format. T... | 6be8e1e5ca32dcebadbabe2eaef03b65151a7de5 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | craigplusplus/jquery-dynalist | 8d4480bb193e33b21ce610fc6c055adcf24293c8 | 482bc00fbd8c3df3d480ea2d329f4b4849bdf57b |
refs/heads/master | <file_sep># 并发调用
import json
from multiprocessing.pool import ThreadPool
from nameko.standalone.rpc import ClusterRpcProxy
def call_rpc(**kwargs):
config = {
'AMQP_URI': kwargs.get('amqp_uri')
}
with ClusterRpcProxy(config) as cluster_rpc:
service = getattr(cluster_rpc, kwargs.get('servic... | 4ede564ec71b0229b9e09bc3f2eb891afb4f57c1 | [
"Markdown",
"Python",
"Text"
] | 5 | Python | aishenghuomeidaoli/nameko_demo | 37fcaa5b9321e18abfc62d887962693e0de07e0e | 4ed6d655afca0ea8863a7952f08cc5212c4655cb |
refs/heads/main | <repo_name>helmarIsrael/ssid<file_sep>/Database.py
import csv
import pandas
import os
column_names = ["Student ID","Name","Year Level","Gender","Course"] #the columns of the csv
filesize = os.path.getsize("student_database.csv") # checks if the file is empty
if filesize == 0:
with open("student_database.c... | 35b1a6cddf81b7d88f3ce7f2b030ff59e31dd718 | [
"Markdown",
"Python"
] | 2 | Python | helmarIsrael/ssid | fb9c292c33624a83fe501da5117fe6c21f878292 | 9c3b287ee70527da794c67220528b38593cd3625 |
refs/heads/master | <file_sep>#!/usr/bin/env bash
# Run > mfsbsd image. dd mfsbsd image to usb stick. Boot box with stick. Add pv to the pipe if you want timing, speed, and size.
# This should work on a Rackspace account, in any datacenter.
ACCOUNT=${1:-default}
IMAGE=f0b8595d-128e-4514-a5cc-847429dcfa6b
FLAVOR=performance1-8
NAME=expl... | 665b60512b2bcf2541cfd5782b9f88501de96878 | [
"Markdown",
"Shell"
] | 2 | Shell | explition/freebsd | 06c2d2c2fd53266516ee6496de0e6bbaf873dba0 | d1a035ba3035b0bd75c7e7117d34036135b8ed95 |
refs/heads/main | <repo_name>135356/BBMySQL<file_sep>/README.md
# MysqlOrm
###### Mysql数据库映射,如若有人关注会持续更新(需要先安装 *mysql 8* 在运行该项目)
> 请到发布区 Releases 下载已经编译好的内容(支持全平台 windows、linux、ios),解压 编辑./main.cpp 然后cmake编译 运行。如遇问题欢迎骚扰: <EMAIL>
### 视频演示(1.0分支)
> [bilibili.com/video/BV1ey4y1L7UR/](https://www.bilibili.com/video/BV1ey4y1L7UR/)
### 数据库基本信... | 1007b036f233c21d542d9fee11adeb7b66cd833d | [
"Markdown",
"CMake",
"C++"
] | 28 | Markdown | 135356/BBMySQL | e70cc6011e85040fffe36d3f6a415b048b6fa05b | 20b9a59c90daa466967b433ba07bfcf609bbeed8 |
refs/heads/main | <repo_name>itamar-mizrahi/wittix<file_sep>/client/src/App.js
import React from "react";
import Login from "./components/Login";
import "./components/main.scss";
export const Context = React.createContext();
const App = () => {
return (
<div className="App">
<Login />
</div>
);
};
export default App... | 04c55bb4d8f52d086643d857428449d7f194673e | [
"JavaScript"
] | 3 | JavaScript | itamar-mizrahi/wittix | 513d8adc6f29fe873860651cb6ad0758743c9eef | ec01a014df02dfdef50c4b8c7ef287beb18c15a7 |
refs/heads/master | <file_sep>class Author < ActiveRecord::Base
validates_presence_of :name
validates_presence_of :email
validates_presence_of :zip_code
end
<file_sep>class Comments < ActiveRecord::Base
validates_presence_of :user
validates_presence_of :text
end
<file_sep>require 'spec_helper'
describe Author do
it {should ha... | 59aa8e9b9c86eb67401f97588192b4a07d35c621 | [
"Ruby"
] | 7 | Ruby | LNauman/blog | 9bf2ebff844de4618f687d60dd3443e84967cb49 | 080a22962864edc8b3956e4d5ab29a311e07f01b |
refs/heads/master | <repo_name>yuanzhian/tua-api<file_sep>/test/__tests__/jsonp.test.js
import { fakeGetApi } from '@examples/apis-web/'
import { ERROR_STRINGS } from '@/constants'
jest.mock('fetch-jsonp')
/**
* @type {*}
*/
const fetchJsonp = require('fetch-jsonp')
const data = [0, 'array data']
const returnVal = { code: 0, data: 'a... | 38f6f8c3f51c52c0bb7d208a2d91b8bf0143955d | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | yuanzhian/tua-api | d867b9c9621ba0a79416b60fea8284ad42583370 | f27f40833c315e0d3a55d7f885d953423bc5e72c |
refs/heads/master | <file_sep>using System;
using System.Threading.Tasks;
using System.Reflection;
using Discord;
using Discord.WebSocket;
using Discord.Commands;
using Microsoft.Extensions.DependencyInjection;
using System.Collections.Generic;
using System.Linq;
using Microsoft.EntityFrameworkCore;
namespace DiscordBot
{
... | 3599c6ee2ce325796350854cd15bf6bbe437ef50 | [
"C#"
] | 2 | C# | DatenThielt/WyvernRealmsBot | fe941944e86108e3b71dcab6a0beab0560d22c09 | a80bbf3c5fa916bca357f69f0575fbd434b410ba |
refs/heads/master | <repo_name>dimasiktehnik/scrollable-homepage<file_sep>/js/script.js
$(document).ready(function () {
$('#fullpage').fullpage({
licenseKey: '951BDF59-63F84E77-8768E365-3ACE3408',
scrollHorizontally: true,
anchors:['solution', 'engineering','carsharing','rental'],
menu: '#home-nav-list'... | dc34bda5e6b66ce20b2353a72fcc0148e9b28788 | [
"JavaScript"
] | 1 | JavaScript | dimasiktehnik/scrollable-homepage | 5f85a923f378ae7c2df26c39feb61aa75d458eaf | 26024b715fea7c38d47c35ef980742e6b69220bd |
refs/heads/master | <file_sep>grunt-vanilli
=============
[](https://travis-ci.org/kelveden/grunt-vanilli)
> *IMPORTANT*: As of vanilli 3.x, this plugin is deprecated. Vanilli itself now provides its own javascript API that
> includes functions for managing th... | e72d26be0cea6c8a2d34c9a21d77b09fb64e2de1 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | kelveden/grunt-vanilli | 2c89df62ea5336573e80376413630c56e346a3ce | 67656faffdf9d43372fbb4d02d2224adc3102023 |
refs/heads/master | <file_sep>var express = require('express');
var app = express();
var morgan = require('morgan');
var path = require('path');
var port = 3007;
app.use(morgan('dev'));
// set the front-end folder to serve public assets.
app.use(express.static('web'));
// set up our one route to the index.html file.
app.get... | ee3384d93027cbb15bccc613b7259879b7ca2f7e | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | evilreborn/loginAuthentication | 2bee9b53f82951a29a2b71aaf0d41f2a40a0b3c2 | 0beeec65055879f3d8e9ac4e7a682765c722f2e5 |
refs/heads/master | <repo_name>swxu2005/vue-element-admin<file_sep>/src/store/modules/user.js
import { loginByUsername, getUserInfo, getUserPermissions } from '@/api/login'
import { setToken } from '@/utils/auth'
import user from './user_'
user.actions.LoginByUsername = ({ commit }, userInfo) => {
const username = userInfo.username.tri... | ffddfa5f9d073f91dec136e078d223655fd95ea4 | [
"JavaScript"
] | 3 | JavaScript | swxu2005/vue-element-admin | 73276f2d71669ab96220f3f20ea6edebcb95c0fa | 62753c9eb7a1bf9e57fcb11583d531bcc593c8b9 |
refs/heads/master | <file_sep>### Song Map
[Song Map](http://www.wearedorothy.com/art/song-map-signed-and-stamped-limited-edition/) est une carte urbaine réalisée par le collectif [Dorothy](http://www.wearedorothy.com/) où les noms de rues ont été remplacés par des titres de chansons. L'avenue la plus importante est bien entendu Highway t... | 7a527342459c26f8f0b08ee6ec941d920013de7e | [
"Markdown",
"R"
] | 8 | Markdown | datagistips/geotribu | d42c7323d87669be0949278b614e28a1e6150dca | 5dbc7239ebf167f157da20f13a00c596b74980c3 |
refs/heads/master | <file_sep>package com.noodles.lynn.xml_parse;
import com.noodles.lynn.xml_parse.model.Book;
import java.io.InputStream;
import java.util.List;
/**
* Created by Lynn on 2016/4/19.
*/
public interface BookParser {
/**
* 解析输入流,得到book对象集合
* */
public List<Book> bookParse(InputStream is) throws Exception;... | a5923cbdf5e465ac78b5d0202b2e5e23908cda1d | [
"Java"
] | 2 | Java | noodlespub/XML_Parse | 9edeb0dced3e88f0d11425005056dce34651f9c1 | bb0609829eeeae4127e30a0ce2cad3a3ac8b89dd |
refs/heads/main | <repo_name>Wednesque/xai-cnn-lrp<file_sep>/preprocessor.py
import numpy as np
from sklearn.model_selection import train_test_split
import pandas as pd
import json
import os
import csv
from keras.preprocessing.sequence import pad_sequences
from keras.preprocessing.text import Tokenizer
from keras_preprocessing.t... | 315b372eac13472f0fcf71f66ae9683344187196 | [
"Markdown",
"Python",
"Text"
] | 18 | Python | Wednesque/xai-cnn-lrp | fa386bb5ed21abe1e6ff6e87410b133ac188c96c | 42172dd90cca816b9503de8ae82edc95520dc7eb |
refs/heads/master | <repo_name>JaquJaqu/Automatic_Detection_of_Sexist_Statements_Commonly_Used_at_the_Workplace<file_sep>/SexisteDetectionMain.py
from keras.callbacks import EarlyStopping, ModelCheckpoint
from keras.layers import Dense, Input, Dropout, LSTM, Activation, TimeDistributed, Flatten, merge#, GlobalAveragePooling1D, regularizer... | 3f7bf363e65aca3394004517d18103ed72cb47eb | [
"Markdown",
"Python",
"Text"
] | 9 | Python | JaquJaqu/Automatic_Detection_of_Sexist_Statements_Commonly_Used_at_the_Workplace | 96e2db32557f6b33bce7981674530477f0381854 | 15308ff063e4b5233219dd987b54b45774f7f18a |
refs/heads/master | <file_sep>const gridLayer = document.querySelector('#container');
let grid = [];
function clearGrid(){
let gridLength = grid.length;
for (let i=0; i< gridLength; i++){
grid[i].classList.remove('gridHovered');
}
}
// Delete grid function
function deleteGrid(){
while (gridLayer.firstChild) {
... | d62f39a1f2733efe89c125d2945efbc6fa119353 | [
"JavaScript"
] | 1 | JavaScript | touchnit/OdinEtchASketch | 3f2b9d29c418ab76a85a327444995e59dda99ca5 | 43ee2b4f0c73eeb32241b649d69fdfde046ae74d |
refs/heads/master | <repo_name>nikrosss/client-server<file_sep>/CuiCat2.py
import socket
import base64
import threading
def dir():
print ("передаем нужный нам каталог")
Prosmotr_cat_why1 = b"" + str.encode(Prosmotr_cat_why)
print(Prosmotr_cat_why1)
conn.send(Prosmotr_cat_why1)
print ("начали принимать фаил c каталогом")
fil = open(... | 413c53231399970f2233e26d186b89df0fdc2eba | [
"Python"
] | 3 | Python | nikrosss/client-server | e0df0fbb0aaab8c0920f59c2aef9385d8faaa3b8 | 67b3d1a55af7d54a6cfcc1141f77a9ed41e8cbbd |
refs/heads/master | <repo_name>wumanrou/pageswitcher<file_sep>/src/com/example/dividescreen/MainActivity.java
package com.example.dividescreen;
import java.util.ArrayList;
import java.util.List;
import android.os.Bundle;
import android.app.Activity;
import android.support.v4.view.PagerAdapter;
import android.support.v4.view.Page... | 8b9ec16c1b4d10a62aa2e04c909f6c42abca49ba | [
"Java"
] | 1 | Java | wumanrou/pageswitcher | 09f84dd8401176dceebed9d43b16ba4f7ee82f37 | cb2c515110d53a1b070a7ee70178c053189cb301 |
refs/heads/main | <file_sep>import { Component, OnInit } from '@angular/core';
import { DetailsService } from '../details.service';
@Component({
selector: 'app-first-component',
templateUrl: './first-component.component.html',
styleUrls: ['./first-component.component.css']
})
export class FirstComponentComponent implements OnInit... | 33babbc3636c0d009a88389dbba3769802eb2324 | [
"TypeScript"
] | 4 | TypeScript | SoniaChauhan/dashboardProject | ac44137504ba0d2e6836f841d8b8178be1ce2f7c | 21d8683871b7a18ed8817e0616e9a2a19b10e255 |
refs/heads/master | <file_sep>const zp = n => n<10 ? "0"+n : n;
const isoDate = (d, type) => {
/*
type: 1 => 2019-11-03 11:11:11
type: 2 => 19-11-03
type: 3 => 2019년 11월 03일
*/
let types = type? type: 1;
let year = d.getFullYear();
let month = zp(d.getMonth() + 1);
let day = zp(d.getDate());
let hour = zp(d.getHours());
let mi... | b6078fd709d88a04af7e80f254de513fa343827c | [
"JavaScript",
"Markdown"
] | 7 | JavaScript | booldook/2019-kn-node-04.pug | a4fd4de98773d86c564f03639c4c913e7d46856b | 61809c961da00f43547f2a4c3e8b586b0b8bf52b |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.