commit stringlengths 40 40 | old_file stringlengths 4 264 | new_file stringlengths 4 264 | old_contents stringlengths 0 4.24k | new_contents stringlengths 1 5.44k | subject stringlengths 14 778 | message stringlengths 15 9.92k | lang stringclasses 277
values | license stringclasses 13
values | repos stringlengths 5 127k |
|---|---|---|---|---|---|---|---|---|---|
092f610305759b8cf41ccb3c4b8581927975a21c | include/ns_common.hrl | include/ns_common.hrl | %% @author Northscale <info@northscale.com>
%% @copyright 2010 NorthScale, Inc.
%%
%% Licensed under the Apache License, Version 2.0 (the "License");
%% you may not use this file except in compliance with the License.
%% You may obtain a copy of the License at
%%
%% http://www.apache.org/licenses/LICENSE-2.0
%%
%%... | Add common include with logging macros. | Add common include with logging macros.
Change-Id: Iaed94e377c090cfcee536d657ee269fb45728858
Reviewed-on: http://review.northscale.com/1102
Reviewed-by: Steve Yen <ef850f73f7832052d3c6d9b5ddd3a1716d9a57f1@gmail.com>
Tested-by: Steve Yen <ef850f73f7832052d3c6d9b5ddd3a1716d9a57f1@gmail.com>
| Erlang | apache-2.0 | pavel-blagodov/ns_server,t3rm1n4l/ns_server,mschoch/ns_server,nimishzynga/ns_server,ceejatec/ns_server,ceejatec/ns_server,nimishzynga/ns_server,daverigby/ns_server,ingenthr/ns_server,t3rm1n4l/ns_server,vzasade/ns_server,ceejatec/ns_server,mschoch/ns_server,ceejatec/ns_server,mschoch/ns_server,t3rm1n4l/ns_server,t3rm1n4... | |
9746045d1e1c0b59ba4ff25f0f0677b876fd5892 | include/riak_core_dtrace.hrl | include/riak_core_dtrace.hrl | %% NOTE: Coordinate ?DTRACE_TAG_KEY with riak_core_dtrace.erl
-define(DTRACE_TAG_KEY, '**DTRACE*TAG*KEY**').
%% Erlang tracing-related funnel functions for DTrace/SystemTap. When
%% using Redbug or other Erlang tracing framework, trace these
%% functions. Include these here to avoid copy/pasting to every
%% module.
... | Add redbug/dtrace funs to dtrace header | Add redbug/dtrace funs to dtrace header
Rather then force the implementor to repeat these functions in every
module that wants to add dtrace like support to redbug simply
include them in the header file. As long as this header is included
after all exports there are no problems.
| Erlang | apache-2.0 | Kyorai/riak_core | |
c844bf4ec970f04fd142e52cfb1c4e668a8a2153 | test/oauth1_storage_SUITE.erl | test/oauth1_storage_SUITE.erl | -module(oauth1_storage_SUITE).
%% Callbacks
-export(
[ all/0
, groups/0
]).
%% Tests
-export(
[ t_put_and_get/1
, t_get_not_found_in_new_bucket/1
, t_get_not_found_in_existing_bucket/1
]).
-define(GROUP, oauth1_storage).
%%===============================================================... | Add basic storage test suite. | Add basic storage test suite.
| Erlang | mit | ibnfirnas/oauth1_core | |
93eaa4e727fe622b7ae51e4812fb86c1b36dfd1a | scripts/cc1.erl | scripts/cc1.erl | #!/usr/bin/env escript
-include("../deps/of_protocol/include/of_protocol.hrl").
-include("../deps/of_protocol/include/ofp_v4.hrl").
%% LINCX controller script for cc master.
main(_) ->
%% get root lincx dir by removing last two entries of script path
LincxDir = filename:join(lists:reverse(tl(tl(lists:reverse(
... | Add another cc helper script | Add another cc helper script
| Erlang | apache-2.0 | cloudozer/lincx,cloudozer/lincx | |
fedf0fd25326fa9bf2b29d5403ec10d08aaa6a35 | extra/thaw_examples_tests.erl | extra/thaw_examples_tests.erl | %% See LICENSE for licensing information.
%% -*- coding: utf-8 -*-
-module(thaw_examples_tests).
%% Examples written in Erlang rather than ICE.
%%
%% They are written as tests for convenience.
-include_lib("eunit/include/eunit.hrl").
%% API.
-export([fib_seq/1]).
-export([fib_par/1]).
-export([spawn_n/2, join/1]).... | Add non-ICE examples in a newly-created 'extra' folder | Add non-ICE examples in a newly-created 'extra' folder
| Erlang | apache-2.0 | esl/ice | |
e82a6e0a23cc671fc135c535e86d8f805d81844c | src/builtins/Tuple.erl | src/builtins/Tuple.erl | -module('Tuple').
-export([call/4]).
call(Tuple, to_s, _Args, _Block) ->
List = tuple_to_list(Tuple),
lists:flatten(["(", string:join([convert(Elem) || Elem <- List], ","), ")"]).
convert(Value) -> reia_dispatch:call(Value, to_s, [], nil). | -module('Tuple').
-export([call/4]).
call(Tuple, '[]', {Index}, _Block) ->
element(Index + 1, Tuple);
call(Tuple, to_s, _Args, _Block) ->
List = tuple_to_list(Tuple),
lists:flatten(["(", string:join([convert(Elem) || Elem <- List], ","), ")"]).
convert(Value) -> reia_dispatch:call(Value, to_s, [], nil). | Support for retrieving members of tuples | Support for retrieving members of tuples
| Erlang | mit | tarcieri/reia,beni55/reia,tarcieri/reia,beni55/reia |
e9d7577f9767fa6db10e27bcae135501078b235f | src/oauth1_storage.erl | src/oauth1_storage.erl | -module(oauth1_storage).
-export_type(
[ error/0
]).
-export(
[ put/3
, get/2
]).
-type error() :: not_found
| io_error
.
-callback put(binary(), binary(), binary()) ->
hope_result:t(ok, error()).
-callback get(binary(), binary()) ->
hope_result:t(binary(),... | Define a generic k/v storage abstraction. | Define a generic k/v storage abstraction.
| Erlang | mit | ibnfirnas/oauth1_core | |
3bce28f985dcceaa2d1e7ddcee4b9e0059d7b764 | priv/schema/1498504778_gin_index.erl | priv/schema/1498504778_gin_index.erl | -module('1498504778_gin_index').
-export([upgrade/1, downgrade/1]).
-behaviour(sql_migration).
upgrade(Pool) ->
{ok, _, _} = pgapp:squery(Pool, "CREATE EXTENSION IF NOT EXISTS btree_gin"),
{ok, _, _} =
pgapp:squery(
Pool,
"DROP INDEX metrics_dimensions_idx"),
{ok, _, _} =
... | Update to use GIN index | Update to use GIN index
| Erlang | mit | dalmatinerdb/dqe_idx_pg | |
7555b1c13734c4f9537918a6e7665edbee6dfc61 | string/string.o.permute/string_o_permute.erl | string/string.o.permute/string_o_permute.erl | -module(string_o_permute).
-include_lib("eunit/include/eunit.hrl").
-export([main/0]).
-import(swap, [swap_adjacent/1]).
main() ->
{ok, [T]} = io:fread("", "~d"),
PL = run_test_cases_on(T, []),
display(PL),
true.
run_test_cases_on(0, PL) ->
PL;
run_test_cases_on(Countdown, PL) ->
{ok, [L]} = i... | Swap adjacents starting from the first index upto the end of the input string -- String O Permute | Swap adjacents starting from the first index upto the end of the input string -- String O Permute
| Erlang | mit | tonight-halfmoon/slv-n-erlang,tonight-halfmoon/slv-n-erlang | |
a35114a214b2813970bf7d57dd86d4507aa6f513 | src/compiler/reia_annotator.erl | src/compiler/reia_annotator.erl | -module(reia_annotator).
-export([annotate/1]).
-include("reia_nodes.hrl").
% Internal state of the annotator
-record(state, {scope=normal, bindings=dict:new()}).
annotate(Node) ->
{Node2, _State} = reia_syntax:mapfold_subtrees(
fun annotate/2,
#state{},
Node
),
Node2.
% Match expressions mutate va... | -module(reia_annotator).
-export([annotate/1]).
-include("reia_nodes.hrl").
% Internal state of the annotator
-record(state, {scope=normal, bindings=dict:new()}).
annotate(Node) ->
{Node2, _State} = reia_syntax:mapfold_subtrees(
fun annotate/2,
#state{},
Node
),
Node2.
% Walk the LHS of a match exp... | Update bindings dict when match expressions are encountered | Update bindings dict when match expressions are encountered
| Erlang | mit | tarcieri/reia,beni55/reia,beni55/reia,tarcieri/reia |
9a9ac16eb568f2680a2f62e30f89110557fcbd74 | examples/robot/robot_trigger.erl | examples/robot/robot_trigger.erl | -module(robot_trigger).
-behavior(gen_event).
% API
-export([register/0]).
% Callbacks
-export([init/1]).
-export([handle_event/2]).
-export([handle_call/2]).
-export([handle_info/2]).
-export([code_change/3]).
-export([terminate/2]).
%--- API -----------------------------------------------------------------------
... | Add trigger example for the robot | Add trigger example for the robot
| Erlang | apache-2.0 | grisp/grisp,ThomasArts/grisp,ThomasArts/grisp,grisp/grisp | |
2e7c40391e82b59936a2ad247143f72cefe64a8a | bin/schedule-generator.escript | bin/schedule-generator.escript | #!/usr/bin/env escript
%%! -pa ./_build/test/lib/partisan/ebin -Wall
main(_Args) ->
%% Generate and print the powerset.
io:format("Powerset:~n", []),
Powerset = powerset(schedule()),
lists:foreach(fun(N) ->
io:format("~p~n", [N]),
%% Generate permutations.
Perms = perms(N),
... | Add prototype schedule generator script. | Add prototype schedule generator script.
| Erlang | apache-2.0 | lasp-lang/partisan | |
c9eb3100659c70830069e69c603390a45013566d | test/oauth1_credentials_SUITE.erl | test/oauth1_credentials_SUITE.erl | -module(oauth1_credentials_SUITE).
%% Callbacks
-export(
[ all/0
, groups/0
, init_per_group/2
, end_per_group/2
, init_per_suite/1
, end_per_suite/1
]).
%% Test cases
-export(
[ t_generate_and_store/1
]).
-define(APP_DEPS,
[ crypto
, cowlib
, bstr
, hope
, oa... | Add basic test suite for credentials abstraction. | Add basic test suite for credentials abstraction.
TODO: Error cases (IO errors and bad data upon retrieval).
| Erlang | mit | ibnfirnas/oauth1_core | |
e33c2d462baa071ba7831f9d36bc145ba165c1d1 | src/riak_pb_search_codec.erl | src/riak_pb_search_codec.erl | %% -------------------------------------------------------------------
%%
%% riak_pb_codec: Protocol Buffers encoding/decoding helpers
%%
%% Copyright (c) 2012 Basho Technologies, Inc. All Rights Reserved.
%%
%% This file is provided to you under the Apache License,
%% Version 2.0 (the "License"); you may not use this... | Add utility functions for encoding/decoding search docs. | Add utility functions for encoding/decoding search docs.
| Erlang | apache-2.0 | lixen/riak_pb,groovenauts-erlang/riak_pb,riak-synrc/riak_pb,jmayfield74/riak_pb,marsleezm/riak_pb,inaka/riak_pb,drewkerrigan/riak_pb,lixen/riak_pb,marsleezm/riak_pb,groovenauts-erlang/riak_pb,lixen/riak_pb,groovenauts-erlang/riak_pb,inaka/riak_pb,riak-synrc/riak_pb,inaka/riak_pb,SyncFree/riak_pb,jmayfield74/riak_pb,Syn... | |
83c7781a8fae60fa9d088a520b335b6ebf836b25 | apps/etorrent/src/etorrent_piecestate.erl | apps/etorrent/src/etorrent_piecestate.erl | -module(etorrent_piecestate).
%% This module provides a common interface for processes
%% handling piece state changes.
-export([valid/2]).
%% @doc
%% @end
valid(Piece, Srvpid) ->
Srvpid ! {piece, {valid, Piece}},
ok.
-ifdef(TEST).
-include_lib("eunit/include/eunit.hrl").
-define(piecestate, ?MODULE).
valid... | -module(etorrent_piecestate).
%% This module provides a common interface for processes
%% handling piece state changes.
-export([stored/2,
valid/2]).
%% @doc
%% @end
-spec stored(non_neg_integer(), pid()) -> ok.
stored(Piece, Srvpid) ->
Srvpid ! {piece, {stored, Piece}},
ok.
%% @doc
%% @end
-spec v... | Add stored notification to piecestate | Add stored notification to piecestate
| Erlang | bsd-2-clause | beni55/etorrent,jlouis/etorrent |
068989f959ea822fb26e2632f58cf978b2e309d3 | src/handlers/process_registry/gproc_registry_handler.erl | src/handlers/process_registry/gproc_registry_handler.erl | -module(gproc_registry_handler).
%% Gproc registry handler copied from the n2o project (https://github.com/5HT/n2o)
-author('Maxim Sokhatsky').
-behaviour(process_registry_handler).
-include_lib("nitrogen_core/include/wf.hrl").
-include_lib("stdlib/include/qlc.hrl").
-export([init/2, finish/2, get_pid/3, get_pid/4]).
... | Add gproc registry handler from n2o (Thanks @5HT) | Add gproc registry handler from n2o (Thanks @5HT)
| Erlang | mit | stuart-thackray/nitrogen_core,SovereignPrime/nitrogen_core,choptastic/nitrogen_core,choptastic/nitrogen_core,SovereignPrime/nitrogen_core,nitrogen/nitrogen_core,nitrogen/nitrogen_core,stuart-thackray/nitrogen_core,nitrogen/nitrogen_core,choptastic/nitrogen_core,SovereignPrime/nitrogen_core,stuart-thackray/nitrogen_core... | |
c032dddc64166e9f19cf6a4f8252aec9a0c7a257 | include/riak_moss.hrl | include/riak_moss.hrl |
-record(moss_user, {
name :: string(),
key_id :: string(),
key_secret :: string(),
buckets = []}).
-record(moss_bucket, {
name :: binary(),
creation_date :: term()}).
-record(context, {auth_bypass :: atom(),
user :: #moss_user{}}).
-recor... |
-record(moss_user, {
name :: string(),
key_id :: string(),
key_secret :: string(),
buckets = []}).
-record(moss_bucket, {
name :: binary(),
creation_date :: term()}).
-record(context, {auth_bypass :: atom(),
user :: #moss_user{}}).
-recor... | Add large file manifest record | Add large file manifest record
AZ944
| Erlang | apache-2.0 | basho/riak_cs,laurenrother/riak_cs,dragonfax/riak_cs,dragonfax/riak_cs,yangchengjian/riak_cs,sdebnath/riak_cs,sdebnath/riak_cs,yangchengjian/riak_cs,sdebnath/riak_cs,sdebnath/riak_cs,laurenrother/riak_cs,GabrielNicolasAvellaneda/riak_cs,GabrielNicolasAvellaneda/riak_cs,GabrielNicolasAvellaneda/riak_cs,basho/riak_cs,Gab... |
6576ff1097bfc5a04d621f0942a1b2829b224d6c | lib/sinan/src/sin_event.erl | lib/sinan/src/sin_event.erl | %%%-------------------------------------------------------------------
%%% @author Eric Merritt <cyberlync@gmail.com>
%%% @doc
%%% Provides a nice interface to the eventing system.
%%% @end
%%% @copyright (C) 2007, Eric Merritt
%%% Created : 18 Nov 2007 by Eric Merritt <cyberlync@gmail.com>
%%%----------------------... | Support for task running event subsystem | Support for task running event subsystem
Added a gen_event for the tasking subsystem. sin_event now wraps a useful gen event system.
| Erlang | mit | asceth/sinan,erlware-deprecated/sinan,ericbmerritt/sinan,erlware-deprecated/sinan,erlware-deprecated/sinan,ericbmerritt/sinan,ericbmerritt/sinan,asceth/sinan | |
9916651c378977feb4d8d9e75fbcb97cbf3ef03d | test/known_dims_tests.erl | test/known_dims_tests.erl | %% See LICENSE for licensing information.
%% -*- coding: utf-8 -*-
-module(known_dims_tests).
-include_lib("eunit/include/eunit.hrl").
%% API tests.
who_cares_about_known_dims_test_() ->
{foreach,
_Setup = fun() -> tcache:start_link(100), ok end,
_Cleanup = fun(_) -> tcache:stop() end,
[
?_... | Add tests on known dimensions | Add tests on known dimensions
| Erlang | apache-2.0 | esl/ice | |
0412daf0dcaa6bda0f7d63cc97279e60fa65ab5d | migrations/5_each_metric_in_separate_file.escript | migrations/5_each_metric_in_separate_file.escript | #!/usr/bin/env escript
main([BenchDir]) ->
MetricsFile = filename:join(BenchDir, "metrics.txt"),
OutputFilePattern = filename:join(BenchDir, "metrics_~s.txt"),
case file:open(MetricsFile, [raw, binary, read]) of
{ok, H} ->
_ = parse_file(H, OutputFilePattern, _State = #{}),
... | Add migration for metrics storage reengineering | Add migration for metrics storage reengineering
| Erlang | bsd-3-clause | moigagoo/mzbench,moigagoo/mzbench,moigagoo/mzbench,moigagoo/mzbench | |
a9f8a25cc969f1f69175e7c53e871dcc38108c98 | test/riak_moss_wm_test_utils.erl | test/riak_moss_wm_test_utils.erl | %% -------------------------------------------------------------------
%%
%% Copyright (c) 2007-2011 Basho Technologies, Inc. All Rights Reserved.
%%
%% -------------------------------------------------------------------
-module(wm_resource_test_utils).
-export([setup/0]).
setup() ->
application:set_env(riak_mo... | %% -------------------------------------------------------------------
%%
%% Copyright (c) 2007-2011 Basho Technologies, Inc. All Rights Reserved.
%%
%% -------------------------------------------------------------------
-module(riak_moss_wm_test_utils).
-export([setup/0, teardown/0]).
setup() ->
application:se... | Rename module to fit filename, add teardown stub | Rename module to fit filename, add teardown stub
AZ870
| Erlang | apache-2.0 | yangchengjian/riak_cs,laurenrother/riak_cs,basho/riak_cs,sdebnath/riak_cs,yangchengjian/riak_cs,sdebnath/riak_cs,laurenrother/riak_cs,basho/riak_cs_lfs,basho/riak_cs,dragonfax/riak_cs,dragonfax/riak_cs,basho/riak_cs,GabrielNicolasAvellaneda/riak_cs,sdebnath/riak_cs,GabrielNicolasAvellaneda/riak_cs,basho/riak_cs_report,... |
440d5c4fb2c23e647ea5e81fb8a426bbb7270fd3 | riak_test/tests/cs_654_regression_test.erl | riak_test/tests/cs_654_regression_test.erl | %% ---------------------------------------------------------------------
%%
%% Copyright (c) 2007-2013 Basho Technologies, Inc. All Rights Reserved.
%%
%% This file is provided to you under the Apache License,
%% Version 2.0 (the "License"); you may not use this file
%% except in compliance with the License. You may ... | Add riak_test for object list after deletes | Add riak_test for object list after deletes
Tests #654. The test currently fails, the next commit will fix it.
| Erlang | apache-2.0 | dragonfax/riak_cs,basho/riak_cs,yangchengjian/riak_cs,GabrielNicolasAvellaneda/riak_cs,laurenrother/riak_cs,sdebnath/riak_cs,yangchengjian/riak_cs,yangchengjian/riak_cs,GabrielNicolasAvellaneda/riak_cs,dragonfax/riak_cs,sdebnath/riak_cs,laurenrother/riak_cs,GabrielNicolasAvellaneda/riak_cs,dragonfax/riak_cs,sdebnath/ri... | |
3631c453340cc0efeeb9a9be594a074b9adf8628 | src/riak_moss_delete_marker.erl | src/riak_moss_delete_marker.erl | %% -------------------------------------------------------------------
%%
%% Copyright (c) 2007-2011 Basho Technologies, Inc. All Rights Reserved.
%%
%% -------------------------------------------------------------------
%% @doc Module to manage storage of objects and files
-module(riak_moss_delete_marker).
-includ... | Add module for marking manifests as deleted | Add module for marking manifests as deleted
riak_moss_delete_marker:delete/2 is
used to "mark" a manifest as deleted.
This is done before the actual blocks
are deleted. Once all of the blocks have
been deleted, the manifest transitions
into the deleted state (where it sticks
around for a bit longer, so that all
replic... | Erlang | apache-2.0 | yangchengjian/riak_cs,dragonfax/riak_cs,basho/riak_cs,GabrielNicolasAvellaneda/riak_cs,sdebnath/riak_cs,dragonfax/riak_cs,sdebnath/riak_cs,yangchengjian/riak_cs,yangchengjian/riak_cs,basho/riak_cs,dragonfax/riak_cs,laurenrother/riak_cs,sdebnath/riak_cs,basho/riak_cs,GabrielNicolasAvellaneda/riak_cs,laurenrother/riak_cs... | |
80c0dd04c7a34b62ec878b1ef9515a2da9c7f155 | src/enet_pcap_utils.erl | src/enet_pcap_utils.erl | %% @copyright Geoff Cant
%% @author Geoff Cant <nem@erlang.geek.nz>
%% @version {@vsn}, {@date} {@time}
%% @doc pcap file utils
%% @end
-module(enet_pcap_utils).
-include("enet_pcap.hrl").
-include("enet_types.hrl").
-export([tcp_packet_array/1,
tcp_flows/1]).
tcp_packet_array(File) ->
enet_pcap:file_fol... | Add some utilities for working with pcap files. | Add some utilities for working with pcap files.
| Erlang | bsd-3-clause | pvalsecc/enet,archaelus/enet,archaelus/enet,Feuerlabs/enet,pvalsecc/enet | |
929e1fd66db91633786658aab5480344d8704908 | include/espotify.hrl | include/espotify.hrl |
-record(
sp_track,
{
is_local :: boolean(),
is_starred :: boolean(),
artists :: [#sp_artist{}],
album :: #sp_album{},
track_name :: binary(),
duration :: non_neg_integer(),
popularity :: non_neg_integer(),
disc :: non_neg_integer(),
index :: non_neg_integer()
}).
... | Add include with record definitions from libspotify. | Add include with record definitions from libspotify.
| Erlang | mit | arjan/espotify,arjan/espotify | |
0673f90f67bc7ad35471d1d7b19a1535c7d611d4 | src/compiler/reia_ssa.erl | src/compiler/reia_ssa.erl | -module(reia_ssa).
-export([transform/2]).
-include("reia_nodes.hrl").
-include("reia_compile_options.hrl").
-include("reia_bindings.hrl").
% Lists of expressions
transform(Exprs, Options) ->
{ok, BAExprs} = reia_bindings:transform(Exprs, Options#compile_options.scope),
reia_syntax:map_subtrees(fun transform_node/... | -module(reia_ssa).
-export([transform/2]).
-include("reia_nodes.hrl").
-include("reia_compile_options.hrl").
-include("reia_bindings.hrl").
% Lists of expressions
transform(Exprs, Options) ->
{ok, BAExprs} = reia_bindings:transform(Exprs, Options#compile_options.scope),
reia_syntax:map_subtrees(fun transform_node/... | Append version numbers to the ends of variable names. Hello destructive assignment! | Append version numbers to the ends of variable names. Hello destructive assignment!
| Erlang | mit | tarcieri/reia,beni55/reia,beni55/reia,tarcieri/reia |
50c99a1a07feed6f160a700c5f39becc10f04802 | lib/dialyzer/test/small_SUITE_data/src/erl_tar_table.erl | lib/dialyzer/test/small_SUITE_data/src/erl_tar_table.erl | -module(erl_tar_table).
%% OTP-14860, PR 1670.
-export([t/0, v/0, x/0]).
t() ->
{ok, ["file"]} = erl_tar:table("table.tar").
v() ->
{ok, [{_,_,_,_,_,_,_}]} = erl_tar:table("table.tar", [verbose]).
x() ->
{ok, ["file"]} = erl_tar:table("table.tar", []).
| Add a test of erl_tar:table/1,2 | dialyzer: Add a test of erl_tar:table/1,2
| Erlang | apache-2.0 | ferd/otp,electricimp/otp,bsmr-erlang/otp,vinoski/otp,rlipscombe/otp,rlipscombe/otp,cobusc/otp,bsmr-erlang/otp,aboroska/otp,kvakvs/otp,g-andrade/otp,potatosalad/otp,fenollp/otp,legoscia/otp,getong/otp,isvilen/otp,fenollp/otp,saleyn/otp,g-andrade/otp,emacsmirror/erlang,vinoski/otp,RoadRunnr/otp,jj1bdx/otp,bjorng/otp,dumb... | |
4943eb49432a257122ee92fe664c638dfd8a0970 | test/vmq_plugin_SUITE.erl | test/vmq_plugin_SUITE.erl | -module(vmq_plugin_SUITE).
-include_lib("common_test/include/ct.hrl").
-export([init_per_testcase/2, end_per_testcase/2,
all/0]).
-export([an_empty_config_file/1,
bad_plugin_does_not_get_saved/1,
good_plugin_gets_saved/1]).
all() ->
[an_empty_config_file,
bad_plugin_does_not_get_s... | Test that bad plugins are not saved to plugin file | Test that bad plugins are not saved to plugin file
| Erlang | apache-2.0 | erlio/vernemq,erlio/vernemq,erlio/vernemq,erlio/vernemq | |
2da030fb884f10d083c596aa93c1ed49d547c172 | src/elements/forms/element_radio.erl | src/elements/forms/element_radio.erl | % Nitrogen Web Framework for Erlang
% Copyright (c) 2008-2010 Rusty Klophaus
% See MIT-LICENSE for licensing information.
-module (element_radio).
-include_lib ("wf.hrl").
-compile(export_all).
reflect() -> record_info(fields, radio).
render_element(Record) ->
ID = Record#radio.id,
Anchor = Record#radio.anc... | % Nitrogen Web Framework for Erlang
% Copyright (c) 2008-2010 Rusty Klophaus
% See MIT-LICENSE for licensing information.
-module (element_radio).
-include_lib ("wf.hrl").
-compile(export_all).
reflect() -> record_info(fields, radio).
render_element(Record) ->
ID = Record#radio.id,
Anchor = Record#radio.anc... | Make radio label clickable for better usability | Make radio label clickable for better usability
Set the for attribute in label element to the id of the radio button
instead of the name of the radio button field.
| Erlang | mit | nitrogen/nitrogen_core,nitrogen/nitrogen_core,choptastic/nitrogen_core,billiob/nitrogen_core,stuart-thackray/nitrogen_core,SovereignPrime/nitrogen_core,nitrogen/nitrogen_core,jpyle/nitrogen_core,jpyle/nitrogen_core,SovereignPrime/nitrogen_core,stuart-thackray/nitrogen_core,nitrogen/nitrogen_core,choptastic/nitrogen_cor... |
087aadea43a4d146e9999109ee3d2c2e0f49e271 | src/flowcompiler.erl | src/flowcompiler.erl | -module(flowcompiler).
-export([setup_flow/2]).
setup_flow(Source, Destination)
when is_binary(Source), is_binary(Destination) ->
FlowRules = fc_find_path:path_flow_rules(Source, Destination),
lists:foreach(fun send_flow_rules/1, FlowRules),
dobby_oflib:publish_new_flow(
<<"flowcompiler">>,
... | Add main module for flow compiler | Add main module for flow compiler
flowcompiler:setup_flow/2 finds a path, sends it to the switches, and
publishes it to Dobby.
| Erlang | apache-2.0 | FlowForwarding/weave,ivanos/weave_core_lib | |
3cf8b3c78d54747636e0f192ebb6d61e96ff1720 | tests/test_template.erl | tests/test_template.erl | -module(test_template).
-export([test/0]).
-export([concuerror_options/0]).
-export([scenarios/0]).
-export([exceptional/0]).
%%------------------------------------------------------------------------------
concuerror_options() -> [].
scenarios() -> [{test, inf, dpor}].
exceptional() ->
fun(_Expected, _Actual) ... | Add a test template file | Add a test template file
| Erlang | bsd-2-clause | aronisstav/Concuerror,parapluu/Concuerror,parapluu/Concuerror,aronisstav/Concuerror | |
f29cc82f73942188cfb085b5d3b498ecf201cfa1 | src/riak_moss_blockall_auth.erl | src/riak_moss_blockall_auth.erl | %% -------------------------------------------------------------------
%%
%% Copyright (c) 2007-2011 Basho Technologies, Inc. All Rights Reserved.
%%
%% -------------------------------------------------------------------
-module(riak_moss_blockall_auth).
-behavior(riak_moss_auth).
-include("riak_moss.hrl").
-expor... | Revert "Remove obsolete blockall auth module." | Revert "Remove obsolete blockall auth module."
This reverts commit 36897ebc1728a044cdb988bdd26c017965db3a5f.
| Erlang | apache-2.0 | yangchengjian/riak_cs,GabrielNicolasAvellaneda/riak_cs,basho/riak_cs,dragonfax/riak_cs,GabrielNicolasAvellaneda/riak_cs,dragonfax/riak_cs,basho/riak_cs,sdebnath/riak_cs,basho/riak_cs,dragonfax/riak_cs,GabrielNicolasAvellaneda/riak_cs,sdebnath/riak_cs,laurenrother/riak_cs,laurenrother/riak_cs,yangchengjian/riak_cs,basho... | |
46c7292e5f2a73c09efd0db8538af97ac520d7ca | upgrades/v56_v57/live_upgrade.erl | upgrades/v56_v57/live_upgrade.erl | f(UpgradeNode).
UpgradeNode = fun () ->
case logplex_app:config(git_branch) of
"v56" ->
io:format(whereis(user), "at=upgrade_start cur_vsn=56~n", []);
"v57" ->
io:format(whereis(user),
"at=upgrade type=retry cur_vsn=56 old_vsn=57~n", []);
Else ->
io:... | Upgrade path for v56 to v57 | Upgrade path for v56 to v57
| Erlang | mit | srid/logplex,mkrysiak/logplex,voidlock/logplex | |
e5ca40150ef495153107ea3cda0bf4b1e50b4e5e | src/docsh_internal.erl | src/docsh_internal.erl | -module(docsh_internal).
-export([merge/1]).
-spec merge([Info]) -> MergedInfo when
Info :: docsh:internal(),
MergedInfo :: docsh:internal().
merge([]) -> [];
merge([Info]) -> Info;
merge([Info1, Info2 | Rest]) ->
case are_disjoint(Info1, Info2) of
false -> error(not_disjoint, [Info1, Info2 | ... | Implement merging module internal info lists | Implement merging module internal info lists
| Erlang | bsd-3-clause | lavrin/docsh | |
5cfc48449883f45d80d2361323d369e6c3b40e9b | test.erl | test.erl | %% erl -config app.config
application:start(exometer).
exometer_admin:preset_defaults().
exometer_entry:new("test", counter).
exometer_report:start_link().
exometer_report:subscribe(exometer_report_graphite, "test", counter, 1000).
exometer_entry:update("test", 1).
| Test script to run in order to exercise counter -> exometer report -> graphite chain | Test script to run in order to exercise counter -> exometer report -> graphite chain
| Erlang | mpl-2.0 | systra/exometer | |
b5fc3e4faa4dc7d181d8ec0079b7ea3782d05147 | list/remove/remove.with/removewith.erl | list/remove/remove.with/removewith.erl | -module(removewith).
-include_lib("eunit/include/eunit.hrl").
-import(primes, [isprime/1]).
-export([removewith/2]).
removewith_even_test() ->
?assertEqual([1,3], removewith(fun (X) -> X rem 2 =:= 0 end, [1,2,3,4])).
removewith_prime_test() ->
?assertEqual([1,4,8], removewith(fun (X) -> primes:isprime(X) end,... | Remove - remove with a predicate | Remove - remove with a predicate
| Erlang | mit | tonight-halfmoon/slv-n-erlang,tonight-halfmoon/slv-n-erlang | |
65cde226d0cc7285da9f05174c82d6bf49616c7f | deps/ale/src/ale_noop_formatter.erl | deps/ale/src/ale_noop_formatter.erl | %% @author Couchbase <info@couchbase.com>
%% @copyright 2014 Couchbase, Inc.
%%
%% Licensed under the Apache License, Version 2.0 (the "License");
%% you may not use this file except in compliance with the License.
%% You may obtain a copy of the License at
%%
%% http://www.apache.org/licenses/LICENSE-2.0
%%
%% Un... | Add noop formatter that just passes the message to sinks. | [ale] Add noop formatter that just passes the message to sinks.
Change-Id: Icfb6475fb02b7a0f42ab3c24745877f534a0fcde
Reviewed-on: http://review.couchbase.org/44858
Tested-by: Aliaksey Artamonau <3c875bcfb3adf2a65b2ae7686ca921e6c9433147@gmail.com>
Reviewed-by: Aliaksey Kandratsenka <340b8e09ca65cd3fc686427fcfed17e87eaf... | Erlang | apache-2.0 | membase/ns_server,membase/ns_server,nimishzynga/ns_server,nimishzynga/ns_server,mschoch/ns_server,ceejatec/ns_server,mschoch/ns_server,membase/ns_server,membase/ns_server,nimishzynga/ns_server,membase/ns_server,nimishzynga/ns_server,mschoch/ns_server,mschoch/ns_server,membase/ns_server,ceejatec/ns_server,ceejatec/ns_se... | |
02f957e001f617972d88245d2ce031ee68ffcca2 | server/apps/pushy/src/pushy_util.erl | server/apps/pushy/src/pushy_util.erl | %% -*- erlang-indent-level: 4;indent-tabs-mode: nil; fill-column: 92-*-
%% ex: ts=4 sw=4 et
%% @author Mark Anderson <mark@opscode.com>
%% @copyright 2012 Opscode, Inc.
%% @doc General utility module for common functions that operate on
-module(pushy_util).
-export([
make_zmq_socket_addr/1,
get_env/... | Add utility for fetching config values. | Add utility for fetching config values.
| Erlang | apache-2.0 | chef/opscode-pushy-client,MSch/opscode-pushy-server,chef/opscode-pushy-client,MSch/opscode-pushy-server,chef/opscode-pushy-server,chef/opscode-pushy-server,chef/opscode-pushy-server,chef/opscode-pushy-client | |
b57fe273f154bbdc2b086c5fd28d1bd207dc31ef | include/ns_common.hrl | include/ns_common.hrl | %% @author Northscale <info@northscale.com>
%% @copyright 2010 NorthScale, Inc.
%%
%% Licensed under the Apache License, Version 2.0 (the "License");
%% you may not use this file except in compliance with the License.
%% You may obtain a copy of the License at
%%
%% http://www.apache.org/licenses/LICENSE-2.0
%%
%%... | Add common include with logging macros. | Add common include with logging macros.
Change-Id: Ia8fd67d15365571f61ee1af82b665f2c7c053ede
Reviewed-on: http://review.northscale.com/1072
Reviewed-by: Steve Yen <ef850f73f7832052d3c6d9b5ddd3a1716d9a57f1@gmail.com>
Tested-by: Steve Yen <ef850f73f7832052d3c6d9b5ddd3a1716d9a57f1@gmail.com>
| Erlang | apache-2.0 | ceejatec/ns_server,membase/ns_server,daverigby/ns_server,vzasade/ns_server,nimishzynga/ns_server,mschoch/ns_server,pavel-blagodov/ns_server,nimishzynga/ns_server,daverigby/ns_server,t3rm1n4l/ns_server,pavel-blagodov/ns_server,nimishzynga/ns_server,ingenthr/ns_server,t3rm1n4l/ns_server,nimishzynga/ns_server,membase/ns_s... | |
0cd0f0256b0a2506edcfaea619f19c822becc085 | elli/src/elli_bench_sup.erl | elli/src/elli_bench_sup.erl |
-module(elli_bench_sup).
-behaviour(supervisor).
%% API
-export([start_link/0]).
%% Supervisor callbacks
-export([init/1]).
%% Helper macro for declaring children of supervisor
-define(CHILD(I, Type), {I, {I, start_link, []}, permanent, 5000, Type, [I]}).
%% =======================================================... | -module(elli_bench_sup).
-behaviour(supervisor).
%% API
-export([start_link/0]).
%% Supervisor callbacks
-export([init/1]).
%% Helper macro for declaring children of supervisor
-define(CHILD(I, Type), {I, {I, start_link, []}, permanent, 5000, Type, [I]}).
%% ========================================================... | Update client connection pool to mirror benchmark's MySQL pool limit of 5k | Update client connection pool to mirror benchmark's MySQL pool limit of 5k
Erlang is highly concurrent, so under load, especially to a remote system it is quite conceivable to utilize very high numbers of connections if available. | Erlang | bsd-3-clause | alubbe/FrameworkBenchmarks,zapov/FrameworkBenchmarks,diablonhn/FrameworkBenchmarks,psfblair/FrameworkBenchmarks,jaguililla/FrameworkBenchmarks,zane-techempower/FrameworkBenchmarks,yunspace/FrameworkBenchmarks,Eyepea/FrameworkBenchmarks,kostya-sh/FrameworkBenchmarks,sanjoydesk/FrameworkBenchmarks,herloct/FrameworkBenchm... |
0655d982a92c624a960590f9fdefde7cc9abb971 | snippets.erl | snippets.erl | {ok, {_, C}} = beam_lib:chunks("/Users/erszcz/apps/elixir/xyz/bin/../lib/elixir/ebin/Elixir.Agent.beam", ["ExDc"]).
[{_, B}] = C.
DocsV1 = binary_to_term(B).
{_ModLineNo, ModDoc} = proplists:get_value(moduledoc, element(2, DocsV1)).
FunDocs = proplists:get_value(docs, element(2, DocsV1)).
{{update,3}, _FunLineNo, _Type... | Add a snippet showing how to get to Elixir embedded docs | Add a snippet showing how to get to Elixir embedded docs
| Erlang | bsd-3-clause | lavrin/docsh | |
ce7bb20bc21f0118591da1ed41bc5ff2a6812783 | src/amoc_networking.erl | src/amoc_networking.erl | -module(amoc_networking).
-export([get_iffaddrs_by_subnets/1]).
-spec get_iffaddrs_by_subnets([inet:ip_address()]) ->
[inet:ip_address()].
get_iffaddrs_by_subnets(Subnets) ->
{ok, IFs} = inet:getifaddrs(),
IFs2 = [ unpack_interfaces(IF) || IF <- IFs],
IFs3 = lists:flatten(IFs2),
Result = lists:fil... | Add new module with network helper functions | Add new module with network helper functions
This module adds initially function for getting available
ip addresses from host, that are in specified subnet.
It is used for retrivied usefull information for scenario
modules.
| Erlang | apache-2.0 | esl/amoc | |
c37016a75115b6990c49309902a308a596d1244d | src/onewire_ds18b20.erl | src/onewire_ds18b20.erl | -module(onewire_ds18b20).
% Device: DS18B20 - Programmable Resolution 1-Wire Digital Thermometer
% https://datasheets.maximintegrated.com/en/ds/DS18B20.pdf
% API
-export([temp/1]).
-export([read_scratchpad/1]).
-export([convert/1]).
-define(READ_SCRATCHPAD, 16#BE).
-define(CONVERT_T, 16#44).
%--- API ---------... | Add initial version of 1-Wire DS18B20 driver | Add initial version of 1-Wire DS18B20 driver
| Erlang | apache-2.0 | grisp/grisp,grisp/grisp | |
78ad1d46d283f68ce6674892b578330e783ee4b1 | test/riak_moss_get_fsm_eqc.erl | test/riak_moss_get_fsm_eqc.erl | %% -------------------------------------------------------------------
%%
%% Copyright (c) 2007-2011 Basho Technologies, Inc. All Rights Reserved.
%%
%% -------------------------------------------------------------------
%% @doc Quickcheck test module for `riak_moss_get_fsm'.
-module(riak_moss_get_fsm_eqc).
-ifdef(... | Add skeleton of eqc_fsm test | Add skeleton of eqc_fsm test
| Erlang | apache-2.0 | GabrielNicolasAvellaneda/riak_cs,dragonfax/riak_cs,yangchengjian/riak_cs,basho/riak_cs,laurenrother/riak_cs,basho/riak_cs_lfs,yangchengjian/riak_cs,yangchengjian/riak_cs,dragonfax/riak_cs,sdebnath/riak_cs,GabrielNicolasAvellaneda/riak_cs,dragonfax/riak_cs,basho/riak_cs,yangchengjian/riak_cs,laurenrother/riak_cs,dragonf... | |
4283ea76700a05a7edacb9192f2304c2705200b7 | lib/etorrent-1.0/src/test.erl | lib/etorrent-1.0/src/test.erl | -module(test).
-compile(export_all).
start_apps() ->
start_sasl(),
application:start(crypto),
application:start(inets),
application:start(timer),
application:setorrent_env(etorrent, dir, "/home/jlouis/etorrent_test"),
application:setorrent_env(etorrent, port, 1729).
start() ->
start_apps(... | -module(test).
-compile(export_all).
start_apps() ->
start_sasl(),
application:start(crypto),
application:start(inets),
application:start(timer),
application:set_env(etorrent, dir, "/home/jlouis/etorrent_test"),
application:set_env(etorrent, port, 1729).
start() ->
start_apps(),
etorr... | Fix a couple of sed(1) mishaps from yesterday. | Fix a couple of sed(1) mishaps from yesterday.
| Erlang | bsd-2-clause | beni55/etorrent,jlouis/etorrent |
939553d397ffd82e9b230ac8dee887346c30a4b2 | resources/gen_server_bug.erl | resources/gen_server_bug.erl | -module(gen_server_bug).
-behaviour(gen_server).
-export([test_register/0, test_without_register/0]).
-export([init/1, handle_call/3, handle_cast/2, handle_info/2, terminate/2,
code_change/3]).
test_register() ->
ServerName = {local, 'gen_server_bug'},
{ok, Pid1} = gen_server:start(Serve... | Add a tet showing a bug in gen_server | Add a tet showing a bug in gen_server
| Erlang | bsd-2-clause | parapluu/Concuerror,aronisstav/Concuerror,parapluu/Concuerror,aronisstav/Concuerror | |
77380b26a3b8418c02fa8f3511252174106a49c4 | erlang/euler.erl | erlang/euler.erl | -module(euler).
-export([problem_21/0, problem_23/0, abundant_number/1]).
%% Problem 21: Amicable numbers
divisors(N) ->
lists:filter(fun(X) -> N rem X == 0 end, lists:seq(1, N div 2)).
is_amicable(N) ->
A = lists:sum(divisors(N)),
(A /= N) andalso (N == lists:sum(divisors(A))).
problem_21() ->
Numbers... | Solve Project Euler problem 21 in Erlang | Solve Project Euler problem 21 in Erlang
Add code for Project Euler problem 23
| Erlang | unlicense | porglezomp/learn-languages,porglezomp/learn-languages,porglezomp/learn-languages,porglezomp/learn-languages,porglezomp/learn-languages,porglezomp/learn-languages | |
978a8d92beaa7892b5f5206b3766dcd873df0287 | src/rebar_efene_plugin.erl | src/rebar_efene_plugin.erl | %% -------------------------------------------------------------------
%%
%% Copyright (c) 2011 David Mike Simon (david.mike.simon@gmail.com)
%%
%% This file is based upon rebar_lfe_compiler.erl from the
%% Rebar project, which had the following notice:
%%
%% Copyright (c) 2009 Dave Smith (dizzyd@dizzyd.com),
%% ... | Put the rebar efene plugin into efene itself | Put the rebar efene plugin into efene itself
| Erlang | bsd-3-clause | DavidMikeSimon/efene,DavidMikeSimon/efene,DavidMikeSimon/efene,DavidMikeSimon/efene | |
dd33e96e13b84d8d061e2880a625b52c8a832d16 | src/web.erl | src/web.erl | %%%-------------------------------------------------------------------
%% @doc web API
%% @end
%%%-------------------------------------------------------------------
-module(web).
-export([start/0, stop/0]).
-export([get_env/1, get_env/2, set_env/2]).
%%===============================================================... | Add module for top-level application operations | Add module for top-level application operations
- start/stop the app
- get/set env variables
| Erlang | bsd-3-clause | mpraglowski/web-in-erlang-walking-skeleton,mpraglowski/web-in-erlang-walking-skeleton,mpraglowski/web-in-erlang-walking-skeleton | |
39f3df7e81a6a4557b9daa0dba321a88cc5db290 | src/sr_message.erl | src/sr_message.erl | %%%----------------------------------------------------------------------------
%%% @author Martin Wiso <martin@wiso.cz>
%%% @doc
%%% Helper for formatting messages in Slack way
%%% @end
%%%----------------------------------------------------------------------------
-module(sr_message).
-include("sr.hrl").
%% API
-ex... | Add helper for formatting slack messages | Add helper for formatting slack messages
| Erlang | mit | tgrk/slacker-rtm | |
a0aff9d324b12de1a4a8fa45f73cd394f4ded819 | bin/bench-types.erl | bin/bench-types.erl | #!/usr/bin/env escript
%%! -pa _build/default/lib/types/ebin/
-define(OPS, 1000000).
main(_) ->
SetFun = fun() ->
lists:foldl(fun(_X, Acc) ->
{ok, State} = state_gset:mutate({add, self()}, self(), Acc),
State
... | Add microbenchmark for the data types. | Add microbenchmark for the data types.
| Erlang | apache-2.0 | ergl/lasp,lasp-lang/lasp,ergl/lasp,lasp-lang/lasp,lasp-lang/lasp,ergl/lasp,ergl/lasp,lasp-lang/lasp | |
e257d13ad6876f9a58076c6947dbc3118ac92529 | apps/etorrent/src/etorrent_endgame.erl | apps/etorrent/src/etorrent_endgame.erl | -module(etorrent_endgame).
-behaviour(gen_server).
%% gen_server callbacks
-export([init/1,
handle_call/3,
handle_cast/2,
handle_info/2,
terminate/2,
code_change/3]).
init('_') -> ok.
handle_call({register_peer, Pid}, _, State) ->
%% Initialize peer data structures
{r... | -module(etorrent_endgame).
-behaviour(gen_server).
%% gen_server callbacks
-export([init/1,
handle_call/3,
handle_cast/2,
handle_info/2,
terminate/2,
code_change/3]).
init('_') -> ok.
handle_call({register_peer, Pid}, _, State) ->
%% Initialize peer data structures
{r... | Add stubs for duplication of chunk_mgr api | Add stubs for duplication of chunk_mgr api
| Erlang | bsd-2-clause | beni55/etorrent,jlouis/etorrent |
a4304ef632f7c4b86e7f8d4e73d9714303bc4e67 | src/partisan_trace_file.erl | src/partisan_trace_file.erl | %% -------------------------------------------------------------------
%%
%% Copyright (c) 2019 Christopher S. Meiklejohn. All Rights Reserved.
%%
%% This file is provided to you under the Apache License,
%% Version 2.0 (the "License"); you may not use this file
%% except in compliance with the License. You may obtai... | Add new trace file API. | Add new trace file API.
| Erlang | apache-2.0 | lasp-lang/partisan | |
94c5304ea014e041acd9e7339b4624eaf6359e7c | apps/epl/src/epl_version_EPL.erl | apps/epl/src/epl_version_EPL.erl | %%% Copyright (c) 2017, erlang.pl
%%%-------------------------------------------------------------------
%%% @doc
%%% GET handler returning versions of applications
%%% @end
%%%-------------------------------------------------------------------
-module(epl_version_EPL).
%% EPL plugin callbacks
-export([start_link/1,
... | Add plugin returning erlangpl version | Add plugin returning erlangpl version
| Erlang | apache-2.0 | Baransu/erlangpl,mkacper/erlangpl,Baransu/erlangpl,erlanglab/erlangpl,erlanglab/erlangpl,mkacper/erlangpl,Baransu/erlangpl,Hajto/erlangpl,Hajto/erlangpl,mkacper/erlangpl,erlanglab/erlangpl,Hajto/erlangpl | |
13d036b243716a2c54163d027e863608f68c5017 | test/dialyzer_SUITE.erl | test/dialyzer_SUITE.erl | -module(dialyzer_SUITE).
-include_lib("common_test/include/ct.hrl").
-compile(export_all).
suite() -> [].
groups() -> [].
all() ->
[run_dialyzer].
init_per_suite(Config) ->
ok = filelib:ensure_dir(filename:join(dialyzer_dir(), ".file")),
Config.
end_per_suite(_Config) ->
ok.
init_per_group(_group... | Add a testsuite handling dialyzer analysis | Add a testsuite handling dialyzer analysis
| Erlang | apache-2.0 | esl/amoc | |
968a63344d38fd507f6ace05f73d53e9cd7fb043 | test/chef_json_tests.erl | test/chef_json_tests.erl | %% -*- erlang-indent-level: 4;indent-tabs-mode: nil; fill-column: 92 -*-
%% ex: ts=4 sw=4 et
%% Copyright 2013 Opscode, Inc. All Rights Reserved.
%%
%% This file is provided to you under the Apache License,
%% Version 2.0 (the "License"); you may not use this file
%% except in compliance with the License. You may obta... | Add test coverage for chef_json module | Add test coverage for chef_json module
| Erlang | apache-2.0 | poliva83/chef-server,juliandunn/chef-server-1,vladuemilian/chef-server,chef/chef-server,vladuemilian/chef-server,chef/chef-server,chef/chef-server,chef/oc_erchef,chef/chef-server,poliva83/chef-server,vladuemilian/chef-server,rmoorman/chef-server,itmustbejj/chef-server,Minerapp/chef-server,vladuemilian/chef-server,charl... | |
4dbb92c6ffff946f6f588892e75d032c1d2b316e | src/enet_bertrpc_fsm.erl | src/enet_bertrpc_fsm.erl | %%%-------------------------------------------------------------------
%% @copyright Geoff Cant
%% @author Geoff Cant <nem@erlang.geek.nz>
%% @version {@vsn}, {@date} {@time}
%% @doc
%% @end
%%%-------------------------------------------------------------------
-module(enet_bertrpc_fsm).
-compile(native).
%% API
-exp... | Add a bertrpc operation fsm analysis module. | Add a bertrpc operation fsm analysis module. | Erlang | bsd-3-clause | Feuerlabs/enet,pvalsecc/enet,archaelus/enet,pvalsecc/enet,archaelus/enet | |
3f8979ce6416391929e098d3814ebaf4e04beece | eqc_test/enacl_ext_eqc.erl | eqc_test/enacl_ext_eqc.erl | -module(enacl_ext_eqc).
-include_lib("eqc/include/eqc.hrl").
-compile(export_all).
public_keypair() ->
?LET(#{ public := PK, secret := SK}, enacl_ext:curve25519_keypair(),
{PK, SK}).
prop_public_key() ->
?FORALL({PK, SK}, public_keypair(),
begin
equals(PK, enacl_ext:curve25519_pu... | Introduce a test case for the extension code. | Introduce a test case for the extension code.
| Erlang | mit | jlouis/enacl,liveforeverx/enacl,trifork/enacl,loucash/enacl,loucash/enacl,jlouis/enacl,plumlife/enacl,trifork/enacl,liveforeverx/enacl,plumlife/enacl | |
a6dcafcef15395b8978ec1d4e07812ece32b73f4 | src/ebc_tx_relay.erl | src/ebc_tx_relay.erl | %% @author David Ellefsen <davidellefsen@gmail.com>
%%
%% @doc ebc_tx_relay is an application example for the bitcoin network.
%% This creates a simple node that will relay transactions between connected nodes.
%% There is no extra process that is performed on the transactions.
%%
%% Copyright 2015 David Ellefsen
%%
... | Add the transaction relay example to the src directory | Add the transaction relay example to the src directory
| Erlang | apache-2.0 | titan098/erl-ebc | |
551ad00267254bdd2e7afce0c3756f15925babd8 | src/chef_index_sup.erl | src/chef_index_sup.erl | %% -*- erlang-indent-level: 4;indent-tabs-mode: nil; fill-column: 92 -*-
%% ex: ts=4 sw=4 et
%% @author Seth Falcon <seth@opscode.com>
%% @author Kevin Smith <kevin@opscode.com>
%% @copyright 2011-2012 Opscode, Inc.
%% @end
-module(chef_index_sup).
-behaviour(supervisor).
-include_lib("amqp_client/include/amqp_client... | Add supervisor to start rabbitmq connection | Add supervisor to start rabbitmq connection
chef_index is still not setup as an active application. The intention
for now is that an application making use of chef_index will start
this supervisor as part of its supervision tree. The starting app
specifies the name of an application that contains the rabbitmq
config. ... | Erlang | apache-2.0 | stephenbm/chef-server,chef/chef-server,Minerapp/chef-server,charlesjohnson/chef-server,poliva83/chef-server,vladuemilian/chef-server,Minerapp/chef-server,juliandunn/chef-server-1,marcparadise/chef-server,marcparadise/chef-server,stephenbm/chef-server,itmustbejj/chef-server,juliandunn/chef-server-1,juliandunn/chef-serve... | |
c223802a422e854f7e27f8aafe7760975ebc03ab | apps/aeoracle/test/aeo_extend_tx_tests.erl | apps/aeoracle/test/aeo_extend_tx_tests.erl | %%%-------------------------------------------------------------------
%%% @copyright (C) 2018, Aeternity Anstalt
%%% @doc
%%% Unit tests for oracle extend transaction ADT
%%% @end
%%%-------------------------------------------------------------------
-module(aeo_extend_tx_tests).
-include_lib("eunit/include/eunit.hr... | Test that deserialized extend tx cannot have absolute extension TTL | Test that deserialized extend tx cannot have absolute extension TTL
| Erlang | isc | aeternity/epoch,aeternity/epoch,aeternity/epoch,aeternity/epoch | |
77f7cffe1332ced046126a921368a7e54fe22091 | apps/merge_index/src/mi_text_analyzers.erl | apps/merge_index/src/mi_text_analyzers.erl | %% -------------------------------------------------------------------
%%
%% mi: Merge-Index Data Store
%%
%% Copyright (c) 2007-2010 Basho Technologies, Inc. All Rights Reserved.
%%
%% -------------------------------------------------------------------
-module(mi_text_analyzers).
-author("Rusty Klophaus <rusty@basho.c... | Add a merge_index integer parser. | Add a merge_index integer parser.
| Erlang | apache-2.0 | xuejianhai/riak_search,basho/riak_search,wwezhuimeng/riak_search,wwezhuimeng/riak_search,xuejianhai/riak_search,basho/riak_search | |
93ff979c113ce33231ba104c16edfbff4b4963db | tests/suites/basic_tests/src/infinite_loop.erl | tests/suites/basic_tests/src/infinite_loop.erl | -module(infinite_loop).
-export([scenarios/0]).
-export([concuerror_options/0]).
-export([exceptional/0]).
-export([test/0]).
scenarios() ->
[{test, inf, dpor, crash}].
concuerror_options() ->
[{timeout, 1000}].
exceptional() ->
fun(_Expected, Actual) ->
Cmd =
"grep \"You can try to increase... | Add test for infinite loop | Add test for infinite loop
| Erlang | bsd-2-clause | aronisstav/Concuerror,parapluu/Concuerror,aronisstav/Concuerror,parapluu/Concuerror | |
cb08d7f4c3011e469be4c68fd1643e8e4ac57267 | master/include/gs_util.hrl | master/include/gs_util.hrl | % This is a set of type utilities to be used when spec-cing the
% callbacks of a gen_server implementation. It should be included in
% the impl module, which needs to define the state() type.
-type gs_reply(T) :: {reply, (T), state()}.
-type gs_noreply() :: {noreply, state()}.
-type gs_noreply_t() :: {noreply, state(... | Add util types for spec-cing gen_server callbacks. | Add util types for spec-cing gen_server callbacks.
| Erlang | bsd-3-clause | ktkt2009/disco,pombredanne/disco,mozilla/disco,discoproject/disco,ErikDubbelboer/disco,mwilliams3/disco,mwilliams3/disco,ktkt2009/disco,ktkt2009/disco,seabirdzh/disco,mozilla/disco,beni55/disco,seabirdzh/disco,simudream/disco,pavlobaron/disco_playground,oldmantaiter/disco,beni55/disco,pooya/disco,discoproject/disco,sim... | |
4c7338f612c9a9ffe449626eaffd70c6b90a5415 | src/twilio_web.erl | src/twilio_web.erl | %%%-------------------------------------------------------------------
%%% @author Ryan Huffman <ryanhuffman@gmail.com>
%%% @copyright 2011, Ryan Huffman
%%% @doc Twilio web server. Routes requests to handler modules.
%%%
%%% @end
%%%-------------------------------------------------------------------
-module(twilio_we... | Add twilio web server module | Add twilio web server module
| Erlang | mit | huffman/twilio_erlang | |
a04f1515d64141088d4fce9ff8efd84dff82b709 | src/elements/forms/element_radio.erl | src/elements/forms/element_radio.erl | % Nitrogen Web Framework for Erlang
% Copyright (c) 2008-2010 Rusty Klophaus
% See MIT-LICENSE for licensing information.
-module (element_radio).
-include_lib ("wf.hrl").
-compile(export_all).
reflect() -> record_info(fields, radio).
render_element(Record) ->
ID = Record#radio.id,
Anchor = Record#radio.anc... | % Nitrogen Web Framework for Erlang
% Copyright (c) 2008-2010 Rusty Klophaus
% See MIT-LICENSE for licensing information.
-module (element_radio).
-include_lib ("wf.hrl").
-compile(export_all).
reflect() -> record_info(fields, radio).
render_element(Record) ->
ID = Record#radio.id,
Anchor = Record#radio.anc... | Add id attribute to radio element to match label | Add id attribute to radio element to match label
| Erlang | mit | SovereignPrime/nitrogen_core,jpyle/nitrogen_core,choptastic/nitrogen_core,billiob/nitrogen_core,jpyle/nitrogen_core,stuart-thackray/nitrogen_core,stuart-thackray/nitrogen_core,jpyle/nitrogen_core,choptastic/nitrogen_core,nitrogen/nitrogen_core,choptastic/nitrogen_core,SovereignPrime/nitrogen_core,SovereignPrime/nitroge... |
c4086e6194f2a412ee91b468f244426185522cee | goldenage_dev.erl | goldenage_dev.erl | %% @author Arjan Scherpenisse
%% @copyright 2015 Arjan Scherpenisse
%% Generated on 2015-05-26
%% @doc Dev website for the Golden Age project
%% 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... | Add dev module for dev website | Add dev module for dev website
| Erlang | mit | arjan/goldenage-backend | |
e65a0162c00c0065c1bb7b18bc18bd5f70dd08ff | list/remove/remove.x/removex.erl | list/remove/remove.x/removex.erl | -module(removex).
-include_lib("eunit/include/eunit.hrl").
-export([rm/2, rm_t/2]).
run_unit_on_rm_t_test() ->
?assertEqual([a,c], rm_t(b, [a,b,c])),
?assertEqual([a,b,c], rm_t(d, [a,b,c,d])),
?assertEqual([], rm_t(a, [])),
?assertEqual([a,b,c], rm_t(1, [a,b,c])),
?assertEqual([b,c], rm_t(a, [a,b,c... | Remove - remove x element from a list | Remove - remove x element from a list
| Erlang | mit | tonight-halfmoon/slv-n-erlang,tonight-halfmoon/slv-n-erlang | |
32da10c5172d9f6bdf4a169b059ef3e9065bc55b | upgrades/v65_v66/live_upgrade.erl | upgrades/v65_v66/live_upgrade.erl | f(UpgradeNode).
UpgradeNode = fun () ->
case logplex_app:config(git_branch) of
"v65" ->
io:format(whereis(user), "at=upgrade_start cur_vsn=65~n", []);
"v66" ->
io:format(whereis(user),
"at=upgrade type=retry cur_vsn=65 old_vsn=66~n", []);
Else ->
io:... | Upgrade path v65 -> v66 | Upgrade path v65 -> v66
| Erlang | mit | mkrysiak/logplex,voidlock/logplex,srid/logplex | |
e895c9bbca27b8392a62d46b3a2b5f0926d11940 | src/mgw_nat_sup.erl | src/mgw_nat_sup.erl | % OTP Supervisor for MGW NAT
% (C) 2011 by Harald Welte <laforge@gnumonks.org>
% (C) 2011 OnWaves
%
% All Rights Reserved
%
% This program is free software; you can redistribute it and/or modify
% it under the terms of the GNU Affero General Public License as
% published by the Free Software Foundation; either version... | Add OTP supervisor for mgw_nat_usr | Add OTP supervisor for mgw_nat_usr
for some reason it is not working yet :(
| Erlang | agpl-3.0 | Shadytel/osmo_ss7,0x7678/osmo_ss7,systra/osmo_ss7,aerosol/osmo_ss7,aerosol/osmo_ss7 | |
43b8a9d10256627a65cdffa972ded8abe46a324a | src/riaknostic_ring_membership.erl | src/riaknostic_ring_membership.erl | -module(riaknostic_ring_membership).
-export([handle_command/1]).
handle_command(Config) ->
Stats = dict:fetch(riak_stats, Config),
{ring_members, RingMembers} = lists:keyfind(ring_members, 1, Stats),
{nodename, NodeName} = lists:keyfind(nodename, 1, Stats),
io:format("Current node member of the ring? ~s~n", [... | Add module to test for ring membership. | Add module to test for ring membership.
| Erlang | apache-2.0 | mk1s/riaknostic,basho/riaknostic | |
f9512b13454d7d13753e5cd1307b41be3c1a410a | src/compiler/reia_compile_options.hrl | src/compiler/reia_compile_options.hrl | % Global options for the Reia compiler. Passed to every single transform.
% Transforms can use them for what they will.
-record(compile_options, {
scope = toplevel,
passes = [r2e],
autohipe = true,
toplevel_args = [],
erlc_options = [debug_info, export_all, verbose, report_errors]
}). | % Global options for the Reia compiler. Passed to every single transform.
% Transforms can use them for what they will.
-record(compile_options, {
scope = toplevel,
passes = [r2e],
autohipe = false,
toplevel_args = [],
erlc_options = [debug_info, export_all, verbose, report_errors]
}). | Disable autohipe by default (no reason to have it on by default right now) | Disable autohipe by default (no reason to have it on by default right now)
| Erlang | mit | tarcieri/reia,tarcieri/reia,beni55/reia,beni55/reia |
15e43a3a79ae95b543dd6b4f69a0114ecc336128 | src/mango_httpd.erl | src/mango_httpd.erl | -module(mango_httpd).
-export([
handle_query_req/2
]).
handle_query_req(#httpd{method='POST'}=Req, #db{name=DbName}) ->
send_json(Req, 200, {[{ok, true}]});
handle_query_req(Req, _Db) ->
chttpd:send_method_not_allowed(Req, 'POST').
| Add an empty HTTP handler for _query | Add an empty HTTP handler for _query
| Erlang | apache-2.0 | apache/couchdb-mango,fkaempfer/couchdb,fkaempfer/couchdb,cloudant/couchdb-mango,fkaempfer/couchdb,cloudant/mango,fkaempfer/couchdb,fkaempfer/couchdb,kxepal/couchdb-mango,fkaempfer/couchdb | |
c15e975985a4aa4576547c5bfbfdd145cc599eda | src/elements/layout/element_lightbox.erl | src/elements/layout/element_lightbox.erl | % Nitrogen Web Framework for Erlang
% Copyright (c) 2008-2010 Rusty Klophaus
% See MIT-LICENSE for licensing information.
-module (element_lightbox).
-include_lib ("wf.hrl").
-compile(export_all).
reflect() -> record_info(fields, lightbox).
render_element(Record) ->
?PRINT(Record#lightbox.id),
Panel = #pane... | % Nitrogen Web Framework for Erlang
% Copyright (c) 2008-2010 Rusty Klophaus
% See MIT-LICENSE for licensing information.
-module (element_lightbox).
-include_lib ("wf.hrl").
-compile(export_all).
reflect() -> record_info(fields, lightbox).
render_element(Record) ->
Panel = #panel {
id=Record#lightbox.i... | Remove debug print statement from lightbox render. | Remove debug print statement from lightbox render. | Erlang | mit | nitrogen/nitrogen_core,stuart-thackray/nitrogen_core,choptastic/nitrogen_core,SovereignPrime/nitrogen_core,choptastic/nitrogen_core,SovereignPrime/nitrogen_core,stuart-thackray/nitrogen_core,SovereignPrime/nitrogen_core,jpyle/nitrogen_core,jpyle/nitrogen_core,nitrogen/nitrogen_core,nitrogen/nitrogen_core,billiob/nitrog... |
eb60ebf0ec2ac99e93009fb89942ceba5a92b58c | lib/compiler/test/receive_SUITE_data/ref_opt/yes_19.erl | lib/compiler/test/receive_SUITE_data/ref_opt/yes_19.erl | -module(yes_19).
-export([?MODULE/0,f/2]).
?MODULE() ->
ok.
f(Pid, Msg) ->
MyRef = make_ref(),
Pid ! Msg,
receive
{Ref,Reply} when Ref == MyRef ->
Reply
after 0 ->
ok
end.
| Cover another line in beam_ssa_recv | Cover another line in beam_ssa_recv
| Erlang | apache-2.0 | jj1bdx/otp,getong/otp,potatosalad/otp,ferd/otp,vinoski/otp,isvilen/otp,potatosalad/otp,ferd/otp,potatosalad/otp,uabboli/otp,bjorng/otp,isvilen/otp,isvilen/otp,uabboli/otp,emacsmirror/erlang,dumbbell/otp,erlang/otp,getong/otp,lrascao/otp,ferd/otp,rlipscombe/otp,ferd/otp,electricimp/otp,getong/otp,vladdu/otp,lrascao/otp,... | |
931146779bbe90f56e3d0d77a40a56defe3ef437 | src/epl_ets_EPL.erl | src/epl_ets_EPL.erl | %%%-------------------------------------------------------------------
%% @doc epl_ets_EPL module.
%% It is a cowboy callback module which receives data from epl_ets and publishes
%% them throught the websocket.
%% @end
%%%-------------------------------------------------------------------
-module(epl_ets_EPL).
-beha... | Add cowboy websocket handler module | Add cowboy websocket handler module
Implement necessary callbacks in order to send received ets info
throught websocket.
| Erlang | apache-2.0 | Hajto/erlangpl,mkacper/erlangpl,Baransu/erlangpl,Hajto/erlangpl,Baransu/erlangpl,erlanglab/erlangpl,mkacper/erlangpl,erlanglab/erlangpl,erlanglab/erlangpl,Baransu/erlangpl,mkacper/erlangpl,Hajto/erlangpl | |
a364ba0d0aed1c99b42f6d77564104a84fb40b43 | src/elips_utils.erl | src/elips_utils.erl | %%%-------------------------------------------------------------------
%%% @author <vjache@gmail.com>
%%% @copyright (C) 2011, Vyacheslav Vorobyov. All Rights Reserved.
%%% Licensed under the Apache License, Version 2.0 (the "License");
%%% you may not use this file except in compliance with the License.
%%% You may o... | Add utility module with some useful functions to write reactive agents on practice. | Add utility module with some useful functions to write reactive agents
on practice. | Erlang | apache-2.0 | vjache/elips | |
4b7a65ce0c46dfa8b3ed646278b364ae38c11e7a | test/regressions_SUITE.erl | test/regressions_SUITE.erl | -module(regressions_SUITE).
-compile(export_all).
-include_lib("escalus/include/escalus.hrl").
-include_lib("common_test/include/ct.hrl").
-import(escalus_story, [story/3]).
all() ->
[catch_timeout_when_waiting_for_stanza].
suite() ->
escalus:suite().
%%-----------------------------------------------------... | Add a test suite testing for regressions in library internals | Add a test suite testing for regressions in library internals
| Erlang | apache-2.0 | woowinc/escalus,esl/escalus,wcy123/escalus,sameroom/escalus,Nyco/escalus | |
54cb3ba79cf8d1e76b0b93027538d48ea917731a | ejabberd/open_image_audit.erl | ejabberd/open_image_audit.erl | % input: AppKey
%
% op: open image audit for AppKey
%
% e.g.: ./erl_expect -sname ejabberd@sdb-ali-hangzhou-ejabberd4 -setcookie 'LTBEXKHWOCIRRSEUNSYS' ejabberd/open_image_audit.erl AppKey
echo(off),
[AppKey0] = Args,
AppKey = iolist_to_binary(AppKey0),
PhoneNumber = <<"13888888888">>,
Email = <<"noemail@noemail.com">... | Add tool to open image audit | Add tool to open image audit
| Erlang | mit | zhuxiangkui/erl_tool,zhuxiangkui/erl_tool,zhuxiangkui/erl_tool,zhuxiangkui/erl_tool,zhuxiangkui/erl_tool | |
2d211ad89c7cacbaf2581b6f381087ab20c2aa6e | src/stupid_udp.erl | src/stupid_udp.erl | -module(stupid_udp).
-compile([export_all]).
server(Port) ->
{ok,Socket} = gen_udp:open(Port,[binary]),
listen(Socket).
listen(Socket) ->
receive
{udp, Socket, _Host, _Port, Bin} = Message ->
io:format("server received:~p~n", [Message]),
handle_message(Bin),
listen(Socket)... | Add a naive PoC to listen on a socket and forward to estatd | Add a naive PoC to listen on a socket and forward to estatd
| Erlang | mit | chef/estatsd,inaka/estatsd | |
6b2d7641103bfe9ec36198add804024491d4dabf | split3/split3.erl | split3/split3.erl | -module(split3).
-export([split3/1]).
-include_lib("eunit/include/eunit.hrl").
split3_test() ->
?assertEqual({[a,d],[b],[c]}, split3([a,b,c,d])).
split3_empty_test() ->
?assertEqual({[],[],[]}, split3([])).
split3_10elem_list_test() ->
?assertEqual({[a,d,g,j],[b,e,h],[c,f,i]}, split3([a,b,c,d,e,f,g,h,i,j... | Split a list into 3 sublists. The items of the source list will be respectively index-distributed | Split a list into 3 sublists. The items of the source list will be respectively index-distributed
| Erlang | mit | tonight-halfmoon/slv-n-erlang,tonight-halfmoon/slv-n-erlang | |
ce07dd4371457a3e1eb8f8accad63a2b9be3a46a | src/riaknostic_check_search.erl | src/riaknostic_check_search.erl | %% -------------------------------------------------------------------
%%
%% riaknostic - automated diagnostic tools for Riak
%%
%% Copyright (c) 2011 Basho Technologies, Inc. All Rights Reserved.
%%
%% This file is provided to you under the Apache License,
%% Version 2.0 (the "License"); you may not use this file
%% ... | Check whether search is enabled on all nodes | Check whether search is enabled on all nodes
| Erlang | apache-2.0 | basho/riaknostic,mk1s/riaknostic | |
d05c5b54e3ffd1b2bb566f8930b29096b6f100da | src/test/erl/properties/simple/process_relation_tests.erl | src/test/erl/properties/simple/process_relation_tests.erl | -module(process_relation_tests).
-compile(export_all).
-include_lib("eunit/include/eunit.hrl").
-include("triq.hrl").
% ../../../../../jerl -sname erj -pz ../../../../../triq/ebin
% c(process_relation_tests, [{i, "../../../../../triq/include"}]).
% process_relation_tests:test().
child_survives_nontail_spawn_link_n... | Add test case exposing a problem with spawn_link() in tail position. | Add test case exposing a problem with spawn_link() in tail position.
| Erlang | apache-2.0 | trifork/erjang,trifork/erjang,trifork/erjang,trifork/erjang,trifork/erjang,csae1152/erjang,csae1152/erjang,csae1152/erjang,trifork/erjang,csae1152/erjang,csae1152/erjang,trifork/erjang | |
260eae19a380d96a9d11117393b8d16915aec270 | test/riak_moss_wm_bucket_test.erl | test/riak_moss_wm_bucket_test.erl | %% -------------------------------------------------------------------
%%
%% Copyright (c) 2007-2011 Basho Technologies, Inc. All Rights Reserved.
%%
%% -------------------------------------------------------------------
-module(riak_moss_wm_bucket_test).
-export([bucket_test_/0]).
-include("riak_moss.hrl").
-inclu... | Add beginning of bucket rest test | Add beginning of bucket rest test
AZ870
| Erlang | apache-2.0 | laurenrother/riak_cs,yangchengjian/riak_cs,basho/riak_cs_lfs,basho/riak_cs_report,dragonfax/riak_cs,GabrielNicolasAvellaneda/riak_cs,basho/riak_cs,sdebnath/riak_cs,dragonfax/riak_cs,GabrielNicolasAvellaneda/riak_cs,yangchengjian/riak_cs,sdebnath/riak_cs,GabrielNicolasAvellaneda/riak_cs,laurenrother/riak_cs,basho/riak_c... | |
defb147cdcced7ffff18bfadc7ac53d31570555e | lib/etorrent-1.0/src/test.erl | lib/etorrent-1.0/src/test.erl | -module(test).
-compile(export_all).
start() ->
start_sasl(),
application:start(crypto),
application:start(inets),
application:start(timer),
application:set_env(etorrent, dir, "/home/jlouis/etorrent_test"),
application:set_env(etorrent, port, 1729),
etorrent:start_link().
start_sasl() ->
... | -module(test).
-compile(export_all).
start() ->
start_sasl(),
application:start(crypto),
application:start(inets),
application:start(timer),
application:set_env(etorrent, dir, "/home/jlouis/etorrent_test"),
application:set_env(etorrent, port, 1729),
etorrent:start_link().
start_sasl() ->
... | Change the number of max files. This means 50 mb worth of logging. | Change the number of max files. This means 50 mb worth of logging.
| Erlang | bsd-2-clause | jlouis/etorrent,beni55/etorrent |
941081980ec7cd520e622a3ed15c52d166b8be97 | upgrades/v58_v59/live_upgrade.erl | upgrades/v58_v59/live_upgrade.erl | f(UpgradeNode).
UpgradeNode = fun () ->
case logplex_app:config(git_branch) of
"v58" ->
io:format(whereis(user), "at=upgrade_start cur_vsn=58~n", []);
"v59" ->
io:format(whereis(user),
"at=upgrade type=retry cur_vsn=58 old_vsn=59~n", []);
Else ->
io:... | Upgrade path for v58 -> v59 | Upgrade path for v58 -> v59
| Erlang | mit | voidlock/logplex,srid/logplex,mkrysiak/logplex | |
7b3eec6f844720c25333e212c3068e3cf6980e97 | src/file_logger.erl | src/file_logger.erl | %%%-------------------------------------------------------------------
%%% File : file_logger.erl
%%% Author : Nicolas R Dufour <nrdufour@gmail.com>
%%% Created : 2009/06/03
%%% Description :
%%% Log a message in a file.
%%%
%%% Copyright 2009 Nicolas R Dufour <nrdufour@gmail.com>
%%%
%%% This software is licensed ... | Add a simple file logger (inspired from the erlang documentation). | Add a simple file logger (inspired from the erlang documentation).
| Erlang | mit | nrdufour/similar | |
7a205b09fa50a08600db354fa2c4d7d61d2ebd2b | src/stupid_udp.erl | src/stupid_udp.erl | -module(stupid_udp).
-compile([export_all]).
server(Port) ->
{ok,Socket} = gen_udp:open(Port,[binary]),
listen(Socket).
listen(Socket) ->
receive
{udp, Socket, _Host, _Port, Bin} = Message ->
io:format("server received:~p~n", [Message]),
handle_message(Bin),
listen(Socket)... | Add a naive PoC to listen on a socket and forward to estatd | Add a naive PoC to listen on a socket and forward to estatd
| Erlang | mit | chef/estatsd,inaka/estatsd | |
c6cbe13938610b17b224922c9ee49bedd7fb6d2a | src/riak_moss_gc.erl | src/riak_moss_gc.erl | %% -------------------------------------------------------------------
%%
%% Copyright (c) 2007-2011 Basho Technologies, Inc. All Rights Reserved.
%%
%% -------------------------------------------------------------------
%% @doc Module for coordinating the garbage collection of blocks
-module(riak_moss_gc).
-includ... | Add module for spawning GC | Add module for spawning GC
| Erlang | apache-2.0 | dragonfax/riak_cs,sdebnath/riak_cs,yangchengjian/riak_cs,sdebnath/riak_cs,basho/riak_cs_report,laurenrother/riak_cs,yangchengjian/riak_cs,laurenrother/riak_cs,sdebnath/riak_cs,basho/riak_cs,GabrielNicolasAvellaneda/riak_cs,GabrielNicolasAvellaneda/riak_cs,dragonfax/riak_cs,basho/riak_cs_lfs,dragonfax/riak_cs,GabrielNic... | |
4048f16365047ac9b16a5dbf4c3aae0b665a613c | test/h2spec_SUITE.erl | test/h2spec_SUITE.erl | %% Copyright (c) 2017, Loïc Hoguin <essen@ninenines.eu>
%%
%% Permission to use, copy, modify, and/or distribute this software for any
%% purpose with or without fee is hereby granted, provided that the above
%% copyright notice and this permission notice appear in all copies.
%%
%% THE SOFTWARE IS PROVIDED "AS IS" AND... | Add a test suite for h2spec | Add a test suite for h2spec
h2spec must be preinstalled on the machine and its location
pointed at by the H2SPEC environment variable.
| Erlang | isc | K2InformaticsGmbH/cowboy,turtleDeng/cowboy,CrankWheel/cowboy,ninenines/cowboy,bsmr-erlang/cowboy,kivra/cowboy,hairyhum/cowboy | |
435cd594b3d1fbb746ccc787b98baa7fe6fa405b | test/simple_load.erl | test/simple_load.erl | -module(simple_load).
-behaviour(gen_httpd).
-export([start_client/1, start_client/3]).
-export([client/2]).
-export([start_server/1]).
-export([init/2, handle_continue/5, handle_request/6, terminate/2]).
%%% Client part
start_client(Clients) ->
start_client("localhost", 9999, Clients).
start_client(Host, Port, Cl... | Add simple load test that was in the old repo. | Add simple load test that was in the old repo.
--HG--
extra : transplant_source : %9Fq%9D%8D%BA%F32%8CPK%D0%26%3E%CA%C8%AFI_%5B%F5
| Erlang | bsd-3-clause | SiftLogic/lhttpc,whisper1/lhttpc,blt/lhttpc,cs-codesocial/lhttpc,esl/fusco,talko/lhttpc,Licenser/lhttpc,hukl/lhttpc,hirotnk/lhttpc,ferd/lhttpc,waisbrot/lhttpc,lpgauth/lhttpc,spilgames/lhttpc | |
c3e5a1ea98d2dae23aa6d050f93b7912dbe6f43c | lib/hipe/test/basic_SUITE_data/basic_tail_rec.erl | lib/hipe/test/basic_SUITE_data/basic_tail_rec.erl | %%% -*- erlang-indent-level: 2 -*-
%%%-------------------------------------------------------------------
%%% Author: Kostis Sagonas
%%%
%%% Contains tests that check that tail recursion optimization occurs.
%%%-------------------------------------------------------------------
-module(basic_tail_rec).
-export([test/0... | Test that apply/3 is tail recursive | Test that apply/3 is tail recursive
| Erlang | apache-2.0 | release-project/otp,getong/otp,bernardd/otp,uabboli/otp,ferd/otp,kvakvs/otp,mikpe/otp,aboroska/otp,dumbbell/otp,ahmedshafeeq/otp,mikpe/otp,RoadRunnr/otp,ahmedshafeeq/otp,erlang/otp,matwey/otp,g-andrade/otp,RoadRunnr/otp,dgud/otp,mikpe/otp,saleyn/otp,lrascao/otp,g-andrade/otp,falkevik/otp,basho/otp,basho/otp,uabboli/otp... | |
e40fbf09045a03a68999da160e79a9bae1497377 | check_riak_up.erl | check_riak_up.erl | #!/usr/bin/env escript
nagios(Header, Message, Code) ->
io:format("~s: ~s~n", [Header, Message]),
halt(Code).
critical(Message) -> nagios("CRITICAL", Message, 2).
warning(Message) -> nagios("WARNING", Message, 1).
okay(Message) -> nagios("OKAY", Message, 0).
main(_) ->
Status = string:tokens(os:cmd("... | Check Riak Up in erlang | Check Riak Up in erlang
| Erlang | apache-2.0 | basho-labs/riak_nagios | |
68b594dc857c5db61ababbdab3fdd49b6c1a8ff5 | lib/etorrent-1.0/src/etorrent_t_pool_sup.erl | lib/etorrent-1.0/src/etorrent_t_pool_sup.erl | %%%-------------------------------------------------------------------
%%% File : etorrent_t_pool_sup.erl
%%% Author : Jesper Louis Andersen <jesper.louis.andersen@gmail.com>
%%% License : See COPYING
%%% Description : Supervisor for the pool of torrents
%%%
%%% Created : 13 Jul 2007 by
%%% Jesper Louis Anderse... | %%%-------------------------------------------------------------------
%%% File : etorrent_t_pool_sup.erl
%%% Author : Jesper Louis Andersen <jesper.louis.andersen@gmail.com>
%%% License : See COPYING
%%% Description : Supervisor for the pool of torrents
%%%
%%% Created : 13 Jul 2007 by
%%% Jesper Louis Anderse... | Allow more torrents to die than 1 per 60 seconds. | Allow more torrents to die than 1 per 60 seconds.
| Erlang | bsd-2-clause | jlouis/etorrent,beni55/etorrent |
97a3a26e7d6d8f984e74166391d8b23db7716fd1 | apps/etorrent/src/etorrent_io_sup.erl | apps/etorrent/src/etorrent_io_sup.erl | -module(etorrent_io_sup).
-behaviour(supervisor).
-include("types.hrl").
-export([start_link/2]).
-export([init/1]).
-spec start_link(torrent_id(), file_path()) -> {'ok', pid()}.
start_link(TorrentID, TorrentFile) ->
supervisor:start_link(?MODULE, [TorrentID, TorrentFile]).
init([TorrentID, TorrentFile]) ->
... | -module(etorrent_io_sup).
-behaviour(supervisor).
-include("types.hrl").
-export([start_link/2]).
-export([init/1]).
-spec start_link(torrent_id(), file_path()) -> {'ok', pid()}.
start_link(TorrentID, TorrentFile) ->
supervisor:start_link(?MODULE, [TorrentID, TorrentFile]).
init([TorrentID, TorrentFile]) ->
... | Make io_sup one_for_all and add one_for_on for file servers | Make io_sup one_for_all and add one_for_on for file servers
| Erlang | bsd-2-clause | jlouis/etorrent,beni55/etorrent |
c12e989d833dc3cb8349ec5ce91da3e44af6695c | split/split_eoindx/split_eoindx.erl | split/split_eoindx/split_eoindx.erl | %% split based on even/odd index
-module(split_eoindx).
-include_lib("eunit/include/eunit.hrl").
-export([split/1]).
split_3elm_lst_test() ->
?assertEqual({[a,c], [b]}, split([a,b,c])).
split_test() ->
?assertEqual({[a,c,e], [b,d]}, split([a,b,c,d,e])).
split_2elm_list_test() ->
?assertEqual({[a],[b]}, sp... | Split - split a list into two sub-lists w.r.t index odd/even | Split - split a list into two sub-lists w.r.t index odd/even
| Erlang | mit | tonight-halfmoon/slv-n-erlang,tonight-halfmoon/slv-n-erlang | |
91cde7fe31b1542fed786d5427dff3d2d0d5421c | lib/dialyzer/test/small_SUITE_data/src/maps_redef2.erl | lib/dialyzer/test/small_SUITE_data/src/maps_redef2.erl | %% In 17, the linter says that map(A) redefines 'type map', which is
%% allowed until next release. However, Dialyzer used to replace
%% map(A) with #{}, which resulted in warnings.
-module(maps_redef2).
-export([t/0]).
-type map(_A) :: integer().
t() ->
M = new(),
t1(M).
-spec t1(map(_)) -> map(_).
t1(A)... | Fix a bug concerning map() types | [dialyzer] Fix a bug concerning map() types
| Erlang | apache-2.0 | bugs-erlang-org/otp,enikki/otp,schlagert/otp,RichMorin/otp,entropiae/otp,yangchengjian/otp,awetzel/otp,dgud/otp,emacsmirror/erlang,ferd/otp,rlipscombe/otp,electricimp/otp,RJ/otp,dgud/otp,emile/otp,jinshana/otp,marquisthunder/otp,krishnakumar4a4/otp,electricimp/otp,erlang/otp,bjorng/otp,neeraj9/otp,sdebnath/otp,lantti/o... | |
36c11e7d086980f9ac9c30c14ec2f78e4c7ed6f9 | src/machi_flu_metadata_mgr_sup.erl | src/machi_flu_metadata_mgr_sup.erl | %% -------------------------------------------------------------------
%%
%% Copyright (c) 2007-2015 Basho Technologies, Inc. All Rights Reserved.
%%
%% This file is provided to you under the Apache License,
%% Version 2.0 (the "License"); you may not use this file
%% except in compliance with the License. You may ob... | Add a metadata manager supervisor | Add a metadata manager supervisor
| Erlang | apache-2.0 | basho/machi,basho/machi,basho/machi | |
6759273606f9d1394d90cd64831f5aa18a3ea8d2 | WebServer.fs | WebServer.fs | //
// Functions related to the preview server.
//
// Author:
// ipavl <ipavl@users.sourceforge.net>
//
module WebServer
open System
open System.IO
open System.Net
open System.Text
/// The server address and port to listen on.
let listenAddress = "http://localhost:8141/"
/// The fil... | //
// Functions related to the preview server.
//
// Author:
// ipavl <ipavl@users.sourceforge.net>
//
module WebServer
open System
open System.IO
open System.Net
open System.Text
/// The server address and port to listen on.
let listenAddress = "http://localhost:8141/"
/// The fil... | Fix homepage when no path is specified | Fix homepage when no path is specified
| F# | mit | ipavl/flamel |
200c92e883cce07438261826a26090e9d37cca96 | osu.Framework/Resources/Shaders/sh_Texture.fs | osu.Framework/Resources/Shaders/sh_Texture.fs | #include "sh_Utils.h"
#include "sh_TextureWrapping.h"
varying lowp vec4 v_Colour;
varying mediump vec2 v_TexCoord;
varying mediump vec4 v_TexRect;
uniform lowp sampler2D m_Sampler;
void main(void)
{
gl_FragColor = toSRGB(v_Colour * wrappedSampler(wrap(v_TexCoord, v_TexRect), v_TexRect, m_Sampler, -0.9));... | #include "sh_Utils.h"
#include "sh_TextureWrapping.h"
varying lowp vec4 v_Colour;
varying mediump vec2 v_TexCoord;
varying mediump vec4 v_TexRect;
uniform lowp sampler2D m_Sampler;
void main(void)
{
gl_FragColor = toSRGB(v_Colour) * toSRGB(wrappedSampler(wrap(v_TexCoord, v_TexRect), v_TexRect, m_Sampler,... | Make (wrong) texture coloring consistent across shaders | Make (wrong) texture coloring consistent across shaders
| F# | mit | EVAST9919/osu-framework,ZLima12/osu-framework,EVAST9919/osu-framework,ppy/osu-framework,smoogipooo/osu-framework,peppy/osu-framework,peppy/osu-framework,ppy/osu-framework,smoogipooo/osu-framework,peppy/osu-framework,EVAST9919/osu-framework,ZLima12/osu-framework,ppy/osu-framework,EVAST9919/osu-framework |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.