conversations listlengths 2 3 | source stringclasses 1 value | stack stringclasses 1 value |
|---|---|---|
[
{
"from": "system",
"value": "Add ifndef/endif pairs around include file\n\n(To prevent conflicts if include file is included more than once).\n"
},
{
"from": "human",
"value": "\n\n-record(fa, {?ELEMENT_BASE(element_fa),\n text=\"\" :: text(),\n body=\" \" ... | erlang | chosen |
[
{
"from": "system",
"value": "Test function declaration more extensively\n"
},
{
"from": "human",
"value": "%% See LICENSE for licensing information.\n%% -*- coding: utf-8 -*-\n-module(fn_string_tests).\n\n-include_lib(\"eunit/include/eunit.hrl\").\n\n\n%% API tests.\n\nb_abs_test() ->\n ?asser... | erlang | chosen |
[
{
"from": "system",
"value": "Use ensure_started for safer starting\n"
},
{
"from": "human",
"value": "-module(chloe).\n\n%% API\n-export([\n start/0,\n stop/0\n ]).\n\n%%--------------------------------------------------------------------\n%% API\n%%----------------------... | erlang | chosen |
[
{
"from": "system",
"value": "Fix function_clause on handling of empty list of metrics\n"
},
{
"from": "human",
"value": "-module(mzb_api_metrics).\n\n-export([get_metrics/5,\n extract_metric_names/1]).\n\nget_metrics(UserName, DirNode, Host, RemoteScriptPath, RemoteEnvPath) ->\n [Res... | erlang | chosen |
[
{
"from": "system",
"value": "Update home to use base_dtl for now\n"
},
{
"from": "human",
"value": "-module(privatepaste_home).\n\n-behavior(cowboy_http_handler).\n\n-export([init/3]).\n-export([handle/2]).\n-export([terminate/3]).\n\ninit(_Type, Req, _Opts) ->\n {ok, Req, undefined_state}.\... | erlang | chosen |
[
{
"from": "system",
"value": "Make all path route to blank response\n"
},
{
"from": "human",
"value": "%% Feel free to use, reuse and abuse the code in this file.\n\n%% @private\n-module(blank_page_app).\n-behaviour(application).\n\n%% API.\n-export([start/2]).\n-export([stop/1]).\n\n%% API.\n\n... | erlang | chosen |
[
{
"from": "system",
"value": "Replace usage of erlang:now() in line-tracing\n"
},
{
"from": "human",
"value": "%%\n%% %CopyrightBegin%\n%% \n%% Copyright Ericsson AB 1996-2011. All Rights Reserved.\n%% \n%% The contents of this file are subject to the Erlang Public License,\n%% Version 1.1, (the... | erlang | chosen |
[
{
"from": "system",
"value": "Return {ok, undefined} from Memcache adapter\n"
},
{
"from": "human",
"value": "-module(boss_cache_adapter_memcached_bin).\n-behaviour(boss_cache_adapter).\n\n-export([init/1, start/0, start/1, stop/1]).\n-export([get/3, set/5, delete/3]).\n\nstart() ->\n start([... | erlang | chosen |
[
{
"from": "system",
"value": "largest-series-product: Add tests with empty products\n\nThe empty product is 1, the identity element under multiplication.\n\nThese are consistent with the values defined in\nhttps://github.com/exercism/x-common/blob/master/largest-series-product.json\n"
},
{
"from": "... | erlang | chosen |
[
{
"from": "system",
"value": "Use variable instead of `apply`\n"
},
{
"from": "human",
"value": "-module(dk_stem_SUITE).\n-include_lib(\"common_test/include/ct.hrl\").\n\n-compile(export_all).\n\n-define(value(Key,Config), proplists:get_value(Key,Config)).\n\nall() ->\n [{group, integration_t... | erlang | chosen |
[
{
"from": "system",
"value": "Write down a specification for the chunk_tbl.\n"
},
{
"from": "human",
"value": "%% A mapping containing the chunks tracking\n-record(chunk, {idt, % {id, piece_number, state} tuple\n % state is fetched | {assigned, Pid} | not_fetched,\n ... | erlang | chosen |
[
{
"from": "system",
"value": "Validate the use of supervisor\n"
},
{
"from": "human",
"value": "-module(autocluster_sup_tests).\n\n-include_lib(\"eunit/include/eunit.hrl\").\n\nstart_link_test_() ->\n {\n foreach,\n fun() ->\n meck:new(supervisor, [passthrough, unstick])\n end,\n ... | erlang | chosen |
[
{
"from": "system",
"value": "Include fundme example among compiler tests\n\n... so to ease check that its copy as [example in protocol\nrepo](https://github.com/aeternity/protocol/blob/epoch-v0.17.0/contracts/sophia.md#examples)\ncompiles.\n"
},
{
"from": "human",
"value": "%%% -*- erlang-inden... | erlang | chosen |
[
{
"from": "system",
"value": "Add missing test to sum-of-multiples exercise"
},
{
"from": "human",
"value": "-module(sum_of_multiples_tests).\n-import(sum_of_multiples, [sumOfMultiplesDefault/1, sumOfMultiples/2]).\n\n-include_lib(\"eunit/include/eunit.hrl\").\n\nsum_to_1_test() ->\n ?assertEqu... | erlang | chosen |
[
{
"from": "system",
"value": "Fix race between chain and keys services when starting with persisted chain\n\nStart process responsible for keys (`aec_keys`) first because it is\nused by (at least):\n\n* Chain process (`aec_chain`/`aec_chain_server` - see module\n `aec_chain_state`);\n\n* Mempool process (`... | erlang | chosen |
[
{
"from": "system",
"value": "Add link to Twitter login\n"
},
{
"from": "human",
"value": "%% -*- mode: nitrogen -*-\n-module (mt_index).\n\n-export([\n main/0,\n title/0,\n body/0,\n event/1,\n author/0,\n url/0\n]).\n\n-include_lib(\"nitrogen_core/include/wf.hrl\").\n\n-include_lib(\"met... | erlang | chosen |
[
{
"from": "system",
"value": "Change output to use ?CONSOLE marco\n"
},
{
"from": "human",
"value": "%% -*- erlang-indent-level: 4;indent-tabs-mode: nil -*-\n%% ex: ts=4 sw=4 et\n\n-module(rebar_prv_state).\n\n-behaviour(provider).\n\n-export([init/1,\n do/1,\n format_error/1]).\... | erlang | chosen |
[
{
"from": "system",
"value": "Fix for autostart option in ftp.js"
},
{
"from": "human",
"value": "-module(element_upload).\n-compile(export_all).\n-include_lib(\"nitro/include/nitro.hrl\").\n\nrender_element(#upload{id=Id} = U) ->\n Uid = case Id of undefined -> wf:temp_id(); I -> I end,\n ... | erlang | chosen |
[
{
"from": "system",
"value": "Make caching more accessible to other ev8 modules.\n"
},
{
"from": "human",
"value": "-module(ev8cache).\n\n-export([\n start/0,\n eval_file/2\n ]).\n\nstart() ->\n ets:new(ev8cache_lookup, [set, public, named_table, {read_concurrency, true}]).\n\neval_file(Cont... | erlang | chosen |
[
{
"from": "system",
"value": "Add Htmlid and Style attributes\n"
},
{
"from": "human",
"value": "%% vim: ts=4 sw=4 et\n-module (element_fa).\n-include_lib (\"nitrogen_core/include/wf.hrl\").\n-include(\"records.hrl\").\n-export([\n reflect/0,\n render_element/1\n]). \n \nreflect() -> recor... | erlang | chosen |
[
{
"from": "system",
"value": "Add comment to remember to change TTL."
},
{
"from": "human",
"value": "-define(SET, riak_dt_orswot).\n-define(APP, partisan).\n-define(PEER_IP, {127,0,0,1}).\n-define(PEER_PORT, 9000).\n-define(PEER_SERVICE_SERVER, partisan_peer_service_server).\n-define(FANOUT, 5)... | erlang | chosen |
[
{
"from": "system",
"value": "Use default slack config when values are empty\n"
},
{
"from": "human",
"value": "-module(slack_channel).\n\n-export([handle/2]).\n\nhandle(Config, Message) ->\n Targets = maps:get(channels, Config),\n HookUrl = maps:get(url, Config),\n %% FIXME emoji and u... | erlang | chosen |
[
{
"from": "system",
"value": "Use proper unary for negative numbers in Erlang AST\n"
},
{
"from": "human",
"value": "-module(reia_operators).\n-export([ast/2, ast/3]).\n\nast('-' = Op, Ast) ->\n {op, 1, Op, {integer, 1, 0}, Ast}.\n%ast('~' = Op, Ast) ->\n% erl_syntax:prefix_expr(erl_syntax:ope... | erlang | chosen |
[
{
"from": "system",
"value": "Use correct reply for check_user_login\n"
},
{
"from": "human",
"value": "-module(rabbit_auth_backend_kerberos).\n\n-include_lib(\"rabbit_common/include/rabbit.hrl\").\n-behaviour(rabbit_auth_backend).\n\n-export([description/0, check_user_login/2, check_vhost_acces... | erlang | chosen |
[
{
"from": "system",
"value": "Test start of mousetrap supervisor.\n"
},
{
"from": "human",
"value": "-module(mousetrap_app_tests).\n\n-include_lib(\"eunit/include/eunit.hrl\").\n\nfixture_startup_test() ->\n application:set_env(mousetrap, slack_token, \"test_token\"),\n meck:expect(notificatio... | erlang | chosen |
[
{
"from": "system",
"value": "Change to the way time is outputed\n"
},
{
"from": "human",
"value": "% vim: sw=4 ts=4 et ft=erlang\n% Nitrogen Web Framework for Erlang\n% See MIT-LICENSE for licensing information.\n\n-module (element_time).\n-include(\"wf.hrl\").\n-export([\n reflect/0,\n r... | erlang | chosen |
[
{
"from": "system",
"value": "Use both LEDs for Accelerando demo\n"
},
{
"from": "human",
"value": "-module(accelerando).\n\n% API\n-export([run/0]).\n\n-compile(export_all).\n\n%--- API -----------------------------------------------------------------------\n\nrun() ->\n application:start(gr... | erlang | chosen |
[
{
"from": "system",
"value": "Convert <<\"A string as binary\">> back into \"A string as binary\"\n\nAll tests pass... whoopee!!!\n"
},
{
"from": "human",
"value": "-module(erlcfg_data, [Node]).\n-export([\n raw/0,\n get/1\n ]).\n\n\nraw() ->\n Node.\n\n\nget(Key) ->\n erl... | erlang | chosen |
[
{
"from": "system",
"value": "Make state provider {bare, false}\n"
},
{
"from": "human",
"value": "%% -*- erlang-indent-level: 4;indent-tabs-mode: nil -*-\n%% ex: ts=4 sw=4 et\n\n-module(rebar_prv_state).\n\n-behaviour(provider).\n\n-export([init/1,\n do/1,\n format_error/1]).\n\... | erlang | chosen |
[
{
"from": "system",
"value": "Add liked cards to user info\n"
},
{
"from": "human",
"value": "-module(service_goldenage_userinfo).\n-svc_needauth(true).\n\n-export([process_get/2, info/2]).\n\n-include_lib(\"zotonic.hrl\").\n\n\nprocess_get(_, Context) ->\n info(Context#context.user_id, Conte... | erlang | chosen |
[
{
"from": "system",
"value": "Move test message creation to where it belongs\n\nSigned-off-by: Peter Lemenkov <2f981fc861bda8c748898150c942841af4296212@redhat.com>\n"
},
{
"from": "human",
"value": "-module(sd_notify_test).\n\n-include_lib(\"eunit/include/eunit.hrl\").\n\n\nsd_notify_test_() ->\... | erlang | chosen |
[
{
"from": "system",
"value": "Add random tail to client's resources\n"
},
{
"from": "human",
"value": "-module(escalus_story).\n\n% Public API\n-export([story/3]).\n\n-include_lib(\"test_server/include/test_server.hrl\").\n\n%%--------------------------------------------------------------------\... | erlang | chosen |
[
{
"from": "system",
"value": "Add a client id to state\n\nAZ918\n"
},
{
"from": "human",
"value": "%% -------------------------------------------------------------------\n%%\n%% Copyright (c) 2007-2011 Basho Technologies, Inc. All Rights Reserved.\n%%\n%% ---------------------------------------... | erlang | chosen |
[
{
"from": "system",
"value": "Add non-binary encode uniform int keygen\n"
},
{
"from": "human",
"value": "%% -------------------------------------------------------------------\n%%\n%% riak_bench: Benchmarking Suite for Riak\n%%\n%% Copyright (c) 2009 Basho Techonologies\n%%\n%% This file is pro... | erlang | chosen |
[
{
"from": "system",
"value": "Change parameter order to match Erlang idiom\n"
},
{
"from": "human",
"value": "%% Calculate score for bowling game\n%% Assumes valid and complete input\n-module(game_happy).\n-export([score/1]).\n\nscore(Rolls) -> frame(Rolls, 1, 0).\n\n% Game complete.\nframe(_Bon... | erlang | chosen |
[
{
"from": "system",
"value": "Fix callback module name for couch_event_registry\n"
},
{
"from": "human",
"value": "% Licensed under the Apache License, Version 2.0 (the \"License\"); you may not\n% use this file except in compliance with the License. You may obtain a copy of\n% the License at\n%... | erlang | chosen |
[
{
"from": "system",
"value": "Set up contract state tree representation\n"
},
{
"from": "human",
"value": "%%%-------------------------------------------------------------------\n%%% @copyright (C) 2017, Aeternity Anstalt\n%%% @doc\n%%% ADT for keeping the state of contracts\n%%% @end\n%%%------... | erlang | chosen |
[
{
"from": "system",
"value": "Add boilerplate on top of the file.\n\nSigned-off-by: François de Metz <5187da0b934cc25eb2201a3ec9206c24b13cb23b@2metz.fr>\n"
},
{
"from": "human",
"value": "-module(unicode_helpers).\n\n-export([normalize_unicode/1]).\n\n% Convert strange unicode character like e' ... | erlang | chosen |
[
{
"from": "system",
"value": "Use the application variable instead of hard coding the port.\n"
},
{
"from": "human",
"value": "-module(frontend_app).\n-behaviour(application).\n\n%% API.\n-export([start/2]).\n-export([stop/1]).\n\n%% API.\n\nstart(_Type, _Args) ->\n\tDispatch = frontend:dispatch... | erlang | chosen |
[
{
"from": "system",
"value": "LFE: Write BEAM files in dev mode to /tmp\n"
},
{
"from": "human",
"value": "-module(boss_compiler_adapter_lfe).\n-compile(export_all).\n\nfile_extensions() -> [\"lfe\"].\n\ncontroller_module(AppName, Controller) -> lists:concat([AppName, \"_\", Controller, \"_contr... | erlang | chosen |
[
{
"from": "system",
"value": "Resolve incorrect capability negotation order.\n"
},
{
"from": "human",
"value": "%% ------------------------------------------------------------------\n%%\n%% Copyright (c) 2011 Basho Technologies, Inc.\n%%\n%% This file is provided to you under the Apache License,... | erlang | chosen |
[
{
"from": "system",
"value": "Use build ID to get logs"
},
{
"from": "human",
"value": "-module(builderl_build_handler).\n-behaviour(cowboy_handler).\n-compile({parse_transform, lager_transform}).\n\n-export([init/2]).\n\ninit(Req0=#{method := <<\"GET\">>}, State) ->\n Org = cowboy_req:bindin... | erlang | chosen |
[
{
"from": "system",
"value": "Fix compilation for Cowboy 2.0.0-rc.1\n"
},
{
"from": "human",
"value": "%%%-------------------------------------------------------------------\n%%% This file is part of the CernVM File System.\n%%%\n%%% @doc cvmfs_fe - CVMFS repo services HTTP front-end\n%%%\n%%% @... | erlang | chosen |
[
{
"from": "system",
"value": "Add register_peer callback to endgame server\n"
},
{
"from": "human",
"value": "-module(etorrent_endgame).\n-behaviour(gen_server).\n\n%% gen_server callbacks\n-export([init/1,\n handle_call/3,\n handle_cast/2,\n handle_info/2,\n terminat... | erlang | chosen |
[
{
"from": "system",
"value": "Build a proper validator for type defs\n\nand add that to the validator mapping structure\n\nSigned-off-by: Essien Ita Essien <bd402154b008803b915ff3326ddb7528f7e13a6b@gmail.com>\n"
},
{
"from": "human",
"value": "-module(erlcfg_schema_analyser1).\n-include(\"schema... | erlang | chosen |
[
{
"from": "system",
"value": "Update \"old vsn\" in sasl test to R15 instead of R14 (two back from R17)\n"
},
{
"from": "human",
"value": "-define(ertsvsn,\"4.4\").\n-define(kernelvsn,\"2.14.3\").\n-define(stdlibvsn,\"1.17.3\").\n"
},
{
"from": "gpt",
"value": "-define(ertsvsn,\"4.4\... | erlang | chosen |
[
{
"from": "system",
"value": "Update docbuilder tests to conform with common_test standard\n"
},
{
"from": "human",
"value": "%% ``The contents of this file are subject to the Erlang Public License,\n%% Version 1.1, (the \"License\"); you may not use this file except in\n%% compliance with the L... | erlang | chosen |
[
{
"from": "system",
"value": "Make copying results off console REPL easier\n"
},
{
"from": "human",
"value": "-module(beamjs_repl_console).\n\n-export([read/1,print/1]).\n\nread(Prompt) ->\n\tio:get_line(Prompt).\n\nprint({finished, Result}) ->\n\tio:format(\">>> ~p~n\",[Result]);\nprint({except... | erlang | chosen |
[
{
"from": "system",
"value": "Rename bind name service function\n"
},
{
"from": "human",
"value": "-module(starter_tests).\n-include_lib(\"eunit/include/eunit.hrl\").\n-export([name_service/0]).\n\nname_service() ->\n receive\n terminate -> ok\n end.\n\nwithRedefedNameService(Name) ->\n PI... | erlang | chosen |
[
{
"from": "system",
"value": "Update the spec for fetch_org_id\n"
},
{
"from": "human",
"value": "%% -*- erlang-indent-level: 4;indent-tabs-mode: nil; fill-column: 92-*-\n%% ex: ts=4 sw=4 et\n%% @author James Casey <james@opscode.com>\n%% @copyright 2012 Opscode, Inc.\n\n%% @doc Handle org_name ... | erlang | chosen |
[
{
"from": "system",
"value": "Fix finapp supervisor's module name\n\nModule name of finapp's supervisor template uses {{name}} now instead of\nhard coded \"tint\". My bad.\n"
},
{
"from": "human",
"value": "%%%' HEADER\n%%% @author {{author_name}} <{{author_email}}> \n%%% @since {{date}}\n%%% ... | erlang | chosen |
[
{
"from": "system",
"value": "Use Proplist in fawor of dict.\n"
},
{
"from": "human",
"value": "%% @doc Defoult configurion and config-parsing functions.\n\n-module(mas_config).\n-include(\"mas.hrl\").\n\n-export([proplist_to_record/1]).\n\n-define(LOAD(Prop, Dict), Prop = dict:fetch(Prop,Dict))... | erlang | chosen |
[
{
"from": "system",
"value": "Add sanity checks for driver path\n"
},
{
"from": "human",
"value": "-module( lurch_device_driver ).\n\n% API functions\n-export(\n [ start_driver/2\n\t] ).\n\n% API functions\n\nstart_driver( _Driver, _Parameters ) ->\n\tPort = undefined,\n\t{ ok, Port }.\n\n\nd... | erlang | chosen |
[
{
"from": "system",
"value": "Add syslog version to msg formatter."
},
{
"from": "human",
"value": "%% @copyright Geoff Cant\n%% @author Geoff Cant <nem@erlang.geek.nz>\n%% @version {@vsn}, {@date} {@time}\n%% @doc Syslog message formatting utilities.\n%% @end\n-module(logplex_syslog_utils).\n\n... | erlang | chosen |
[
{
"from": "system",
"value": "Make so that demo can work whatever repo`s name.\n"
},
{
"from": "human",
"value": "#!/usr/bin/env escript\n%%! -noinput -pa ../encurses/ebin +A 10\n-include_lib(\"encurses/include/encurses.hrl\").\nmain(_) -> encurses_demo:go().\n"
},
{
"from": "gpt",
"... | erlang | chosen |
[
{
"from": "system",
"value": "Change default content-type to application/octet-stream\n"
},
{
"from": "human",
"value": "%%% The MIT License (MIT)\n%%% \n%%% Copyright (c) 2014 Quinlan Pfiffer, Kyle Terry\n%%% \n%%% Permission is hereby granted, free of charge, to any person obtaining a copy\n%%... | erlang | chosen |
[
{
"from": "system",
"value": "Remove enforcement rules from html5_header\n"
},
{
"from": "human",
"value": "% vim: sw=4 ts=4 et ft=erlang\n% Nitrogen Web Framework for Erlang\n% See MIT-LICENSE for licensing information.\n\n-module (element_html5_header).\n-include(\"wf.hrl\").\n-export([\n r... | erlang | chosen |
[
{
"from": "system",
"value": "Purge version/commit logs more often\n"
},
{
"from": "human",
"value": "%% Rubis\n-define(GROUPING_SEP, <<\"+\">>).\n-define(ID_SEP, <<\"@\">>).\n-define(FIELD_SEP, <<\"/\">>).\n\n%% General indices\n-define(INDEX_SEP, <<\"$\">>).\n-define(UINDEX_SEP, <<\"%\">>).\n-... | erlang | chosen |
[
{
"from": "system",
"value": "Fix websocket upgrade for cowboy 2.0.0-pre.10\n"
},
{
"from": "human",
"value": "-module(cowmachine_websocket_upgrade).\n\n-export([\n upgrade/2\n ]).\n\n%% @doc Upgrade the request to a websocket request\n-spec upgrade(atom(), cowmachine_req:context()) -> {ok... | erlang | chosen |
[
{
"from": "system",
"value": "Add folsom metric for lookup time"
},
{
"from": "human",
"value": "-module(erldns_app).\n-behavior(application).\n\n% Application hooks\n-export([start/2, stop/1]).\n\nstart(Type, Args) ->\n lager:info(\"~p:start(~p, ~p)~n\", [?MODULE, Type, Args]),\n random:seed(... | erlang | chosen |
[
{
"from": "system",
"value": "Fix default main handler with ws_init\n"
},
{
"from": "human",
"value": "-module(nitrogen_main_handler).\n-export([run/0]).\n\nrun() ->\n\t%% Put any custom handlers here\n\t%% See http://nitrogenproject.com/doc/handlers.html\n\t%% Example:\n\t%%\n\t%% wf_handler:... | erlang | chosen |
[
{
"from": "system",
"value": "Implement support for peer processes.\n"
},
{
"from": "human",
"value": "%%%-------------------------------------------------------------------\n%%% File : etorrent_t_peer_pool_sup.erl\n%%% Author : Jesper Louis Andersen <>\n%%% Description : Supervise a group o... | erlang | chosen |
[
{
"from": "system",
"value": "Increase ensemble tick from 200ms to 500ms\n\nThis commit slightly increases the ensemble tick rate in order to\ndecrease the commit frequency and reduce load when using a large\nnumber of ensembles.\n"
},
{
"from": "human",
"value": "-type ensemble_id() :: term().\... | erlang | chosen |
[
{
"from": "system",
"value": "Check that rpc returned a list before calling lists:member\n"
},
{
"from": "human",
"value": "-module(check_riak_kv_up).\n\n-export([run/2]).\n\nrun(Options, _) ->\n Node = proplists:get_value(node, Options),\n check_riak_kv_up(Node).\n\ncheck_riak_kv_up(Node)... | erlang | chosen |
[
{
"from": "system",
"value": "Test because my commits seemingly aren't being tracked\n"
},
{
"from": "human",
"value": "% lex.erl\n% Lexer implementation for Jrlscript Compiler\n-module(jrl_lex).\n-compile(export_all).\n\nlex() ->\n\tio:format(\"Usage - lex(Input<String>).~n\", []). \n\nlex(Inpu... | erlang | chosen |
[
{
"from": "system",
"value": "Allow radiogroup name to recurse through a binding\n"
},
{
"from": "human",
"value": "% Nitrogen Web Framework for Erlang\n% Copyright (c) 2008-2009 Rusty Klophaus\n% See MIT-LICENSE for licensing information.\n\n-module (element_radiogroup).\n-include (\"wf.inc\").... | erlang | chosen |
[
{
"from": "system",
"value": "Use much larger request timeouts for the Cowboy server\n"
},
{
"from": "human",
"value": "%%%-------------------------------------------------------------------\n%%% This file is part of the CernVM File System.\n%%%\n%%% @doc cvmfs_fe - CVMFS repo services HTTP fron... | erlang | chosen |
[
{
"from": "system",
"value": "Rename iota xref server to iota_xref\n"
},
{
"from": "human",
"value": "-module(iota_utils).\n\n-export([ get/2,\n get/3,\n with_xref/1\n ]).\n\nget(Key, List) ->\n case lists:keyfind(Key, 1, List) of\n false -> throw(key_not_foun... | erlang | chosen |
[
{
"from": "system",
"value": "Make it listen to port 1942 instead of 8080.\n"
},
{
"from": "human",
"value": "-module(eventsource_app).\n-behaviour(application).\n\n-export([start/2]).\n-export([stop/1]).\n\nstart(_Type, _Args) ->\n Dispatch = cowboy_router:compile([\n {'_', [\n ... | erlang | chosen |
[
{
"from": "system",
"value": "Add a better logger with io:format capabilities.\n"
},
{
"from": "human",
"value": "%%%-------------------------------------------------------------------\n%%% File : terminal_logger.erl\n%%% Author : Nicolas R Dufour <nrdufour@gmail.com>\n%%% Created : 2009/06/01\n... | erlang | chosen |
[
{
"from": "system",
"value": "Add new hex string conversion tests\n"
},
{
"from": "human",
"value": "-module(ucp_utils_tests).\n\n-ifdef(TEST).\n-include_lib(\"eunit/include/eunit.hrl\").\n\nto_hex_test_() ->\n [{\"int to hexstr\",\n fun () ->\n ?assertEqual(\"0F\", ucp_utils:to_hexst... | erlang | chosen |
[
{
"from": "system",
"value": "Build graph from the event pattern\n"
},
{
"from": "human",
"value": "%%------------------------------------------------------------------------------\n%% Copyright (c) 2013 Vasil Kolarov\n%%\n%% Licensed under the Apache License, Version 2.0 (the \"License\");\n%% ... | erlang | chosen |
[
{
"from": "system",
"value": "Fix a websocket test handler that was throwing an unwanted error\n\nThe test still worked because we expect the websocket connection\nto fail, but it didn't fail exactly the way we wanted it to.\n"
},
{
"from": "human",
"value": "%% Feel free to use, reuse and abuse... | erlang | chosen |
[
{
"from": "system",
"value": "Move top-level sup to one_for_one\n"
},
{
"from": "human",
"value": "-module(minuteman_sup).\n\n-behaviour(supervisor).\n\n%% API\n-export([start_link/0]).\n\n%% Supervisor callbacks\n-export([init/1]).\n\n%% Helper macro for declaring children of supervisor\n-defin... | erlang | chosen |
[
{
"from": "system",
"value": "Use \"null\" instead of \"unavailable\" for hmix\n"
},
{
"from": "human",
"value": "-module(volume).\n-behaviour(gen_server).\n\n-export([start/1]).\n-export([get/0, set/1]).\n-export([init/1, handle_call/3]).\n\n%----------------------------------------------------... | erlang | chosen |
[
{
"from": "system",
"value": "Make sure to bail w/ return code of 1 when error has occurred\n"
},
{
"from": "human",
"value": "%% -------------------------------------------------------------------\n%%\n%% rebar: Erlang Build Tools\n%%\n%% Copyright (c) 2009 Dave Smith (dizzyd@dizzyd.com)\n%%\n%... | erlang | chosen |
[
{
"from": "system",
"value": "Add specs to always null ssl cache\n"
},
{
"from": "human",
"value": "-module(amoc_always_null_ssl_session_cache).\n\n-behaviour(ssl_session_cache_api).\n\n-export([delete/2,\n foldl/3,\n init/1,\n lookup/2,\n select_session/2,\n ... | erlang | chosen |
[
{
"from": "system",
"value": "Fix a typo in comment\n"
},
{
"from": "human",
"value": "% A reall % First line is ignored when running with escript\nmain(_) ->\n X = 38,\n\n Temperature1 = case X of\n _ when X < 0 -> cold;\n _ when X < 20 -> cool;\n _ when X < 45 -> fine;\n _ -> hot... | erlang | chosen |
[
{
"from": "system",
"value": "Fix old test module name left in\n"
},
{
"from": "human",
"value": "-module(unimate_tcp_server).\n\n-behaviour(gen_nb_server).\n\n%% API\n-export([start_link/0]).\n\n%% gen_nb_server callbacks\n-export([init/1, handle_call/3, handle_cast/2, handle_info/2]).\n-export... | erlang | chosen |
[
{
"from": "system",
"value": "Fix usage of run() in null driver\n"
},
{
"from": "human",
"value": "%% -------------------------------------------------------------------\n%%\n%% basho_bench: Benchmarking Suite\n%%\n%% Copyright (c) 2009-2010 Basho Techonologies\n%%\n%% This file is provided to y... | erlang | chosen |
[
{
"from": "system",
"value": "Stop the http server when terminating rets\n"
},
{
"from": "human",
"value": "-module(rets_app).\n\n-behaviour(application).\n\n%% Application callbacks\n-export([start/2, stop/1]).\n\n%% ===================================================================\n%% Applic... | erlang | chosen |
[
{
"from": "system",
"value": "Add atoms support to coerce_c_string\n"
},
{
"from": "human",
"value": "-module(xmerlsec_util).\n-export([coerce_c_string/1]).\n\ncoerce_c_string(S) when is_list(S) ->\n coerce_c_string(list_to_binary(S));\ncoerce_c_string(S) ->\n case binary:last(S) of\n ... | erlang | chosen |
[
{
"from": "system",
"value": "Remove the disonnect after 40 seconds.\n"
},
{
"from": "human",
"value": "-module(eventsource_emitter).\n-behaviour(cowboy_loop_handler).\n\n-export([init/3]).\n-export([info/3]).\n-export([terminate/3]).\n\n-record(state, {}).\n\ninit({_Any, http}, Req, _Opts) ->\n... | erlang | chosen |
[
{
"from": "system",
"value": "Set disksup check interval to 1 minute.\n\nThis made the \"line of death,\" not to mention free space, only update\nonce every 30 minutes, since that's the default check interval.\n\nChange-Id: I15cd757b2cf5743bb830481ff6c8308b96769338\nReviewed-on: http://review.membase.org/41... | erlang | chosen |
[
{
"from": "system",
"value": "Add update_all/2 to callback module.\n"
},
{
"from": "human",
"value": "%% -------------------------------------------------------------------\n%%\n%% Copyright (c) 2014 SyncFree Consortium. All Rights Reserved.\n%%\n%% This file is provided to you under the Apache... | erlang | chosen |
[
{
"from": "system",
"value": "Change conector to not be FSM\n"
},
{
"from": "human",
"value": "-define(PRINT(Var), io:format(\"DEBUG: ~p:~p - ~p~n~n ~p~n~n\", [?MODULE, ?LINE, ??Var, Var])).\n\n-define(BUCKET, <<\"saturn_leaf\">>).\n\n-define(PROXY_MASTER, saturn_proxy_vnode_master).\n-define(PR... | erlang | chosen |
[
{
"from": "system",
"value": "Decrease dequeue event interval to 1ms.\n\nBenchmarks show that the increase in load due to this is not\nsignificant, so might as well.\n"
},
{
"from": "human",
"value": "%% Rubis\n-define(GROUPING_SEP, <<\"+\">>).\n-define(ID_SEP, <<\"@\">>).\n-define(FIELD_SEP, <<... | erlang | chosen |
[
{
"from": "system",
"value": "Fix a typo in nprocreg process registry handler\n"
},
{
"from": "human",
"value": "% Nitrogen Web Framework for Erlang\n% Copyright (c) 2008-2010 Rusty Klophaus\n% See MIT-LICENSE for licensing information.\n\n-module (nprocreg_registry_handler).\n-behaviour (proces... | erlang | chosen |
[
{
"from": "system",
"value": "Update client connection pool to mirror benchmark's MySQL pool limit of 5k\n\nErlang is highly concurrent, so under load, especially to a remote system it is quite conceivable to utilize very high numbers of connections if available."
},
{
"from": "human",
"value": ... | erlang | chosen |
[
{
"from": "system",
"value": "Make REPL show node name in the prompt if it is a distributed node.\n"
},
{
"from": "human",
"value": "-module(beamjs_mod_repl).\n-export([exports/1,init/1]).\n-behaviour(erlv8_module).\n-include_lib(\"erlv8/include/erlv8.hrl\").\n\ninit(_VM) ->\n\tok.\n\nexports(_V... | erlang | chosen |
[
{
"from": "system",
"value": "Check for updates in crawler\n"
},
{
"from": "human",
"value": "-module(er_crawler).\n\n-behaviour(gen_server).\n\n-export([start_link/1]).\n-export([init/1, handle_call/3, handle_cast/2, handle_info/2, code_change/3, terminate/2]).\n\n-record(state, {feed}).\n\nsta... | erlang | chosen |
[
{
"from": "system",
"value": "Use the new unique_integer function to generate IDs\n\nIn the eventsource example.\n"
},
{
"from": "human",
"value": "%% Feel free to use, reuse and abuse the code in this file.\n\n%% @doc EventSource emitter.\n-module(eventsource_handler).\n\n-export([init/2]).\n-e... | erlang | chosen |
[
{
"from": "system",
"value": "Rename spec module or shit happens\n"
},
{
"from": "human",
"value": "-module(wsecli_handshake).\n-include_lib(\"espec/include/espec.hrl\").\n-include_lib(\"hamcrest/include/hamcrest.hrl\").\n\n-include(\"wsecli.hrl\").\n\nspec() ->\n describe(\"wsecli_handshake\",... | erlang | chosen |
[
{
"from": "system",
"value": "Fix dialyzer errors coming from emas usecase\n"
},
{
"from": "human",
"value": "%% @doc The module contains the definition of agent environment operator callbacks to be implemented.\n\n-module (mas_agent_env).\n\n-include (\"mas.hrl\").\n\n-type agent() :: mas:agent... | erlang | chosen |
[
{
"from": "system",
"value": "Implement empty work order collection\n"
},
{
"from": "human",
"value": "-module(workorder_root_handler).\n\n\n"
},
{
"from": "gpt",
"value": "-module(workorder_root_handler).\n\n-export([init/3]).\n-export([content_types_provided/2]).\n-export([work_ord... | erlang | chosen |
[
{
"from": "system",
"value": "Add comments, reorder functions, consolidate exports\n"
},
{
"from": "human",
"value": "-module(pgsql_listen_sup).\n\n-behaviour(mirrored_supervisor).\n\n-define(WORKER, pgsql_listen_worker).\n\n-rabbit_boot_step({pgsql_listen_supervisor,\n [{descr... | erlang | chosen |
[
{
"from": "system",
"value": "Remove merklet from header file too.\n"
},
{
"from": "human",
"value": "%% machi merkle tree records\n\n-record(naive, {\n chunk_size = 1048576 :: pos_integer(), %% default 1 MB\n recalc = true :: boolean(),\n root ... | erlang | chosen |
[
{
"from": "system",
"value": "Add hash_init. Only sha256 implementation\n"
},
{
"from": "human",
"value": "%%% Add erlang apache license here as a lot of this code\n%%% is copy pasta\n\n-module('crypto2').\n-on_load(on_load/0).\n\n%% API exports\n-export([\n sha256_init/0,\n hash... | erlang | chosen |
[
{
"from": "system",
"value": "Update config handler to also use nitrogen_core\n\nFixes https://github.com/nitrogen/nitrogen/issues/98\n"
},
{
"from": "human",
"value": "% vim: sw=4 ts=4 et ft=erlang\n% Nitrogen Web Framework for Erlang\n% Copyright (c) 2008-2010 Rusty Klophaus\n% See MIT-LICENSE... | erlang | chosen |
[
{
"from": "system",
"value": "Add notion of architecture to project metadata\n"
},
{
"from": "human",
"value": "-module(beamup_project).\n\n-export([new/1]).\n\nnew(Path) ->\n #{path => Path,\n name => path_to_name(Path),\n commit => beamup_git:commit_hash(Path),\n tool => beamup_build... | erlang | chosen |
End of preview. Expand
in Data Studio
README.md exists but content is empty.
- Downloads last month
- 7