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 |
|---|---|---|---|---|---|---|---|---|---|
9239cd4b739b95d3a1116ab2b7c9f40bcc0b3648 | src/iotlb_stats_json.erl | src/iotlb_stats_json.erl | %%%-------------------------------------------------------------------
%%% @author Kalin
%%% @copyright (C) 2017, <COMPANY>
%%% @doc
%%%
%%% @end
%%% Created : 01. Apr 2017 8:13 PM
%%%-------------------------------------------------------------------
-module(iotlb_stats_json).
-author("Kalin").
%% API
-export([encode... | %%%-------------------------------------------------------------------
%%% @author Kalin
%%% @copyright (C) 2017, <COMPANY>
%%% @doc
%%%
%%% @end
%%% Created : 01. Apr 2017 8:13 PM
%%%-------------------------------------------------------------------
-module(iotlb_stats_json).
-author("Kalin").
%% API
-export([encode... | Fix for String (non-binary) host names | Fix for String (non-binary) host names
| Erlang | mit | kgyokov/IOT-Load-Balancer,kgyokov/IOT-Load-Balancer |
bbbaa9c2808d2b3672f23a2361ceb83393d3204e | rel/overlay/common/site/src/nitrogen_main_handler.erl | rel/overlay/common/site/src/nitrogen_main_handler.erl | %% vim: ts=4 sw=4 et
-module(nitrogen_main_handler).
-export([
run/0,
ws_init/0
]).
handlers() ->
%% Put any custom handlers here
%% See http://nitrogenproject.com/doc/handlers.html
%% Example:
%%
%% wf_handler:set_handler(MySecurityHandler, HandlerConfig),
%%
ok.
ws_init() ->
... | %% vim: ts=4 sw=4 et
-module(nitrogen_main_handler).
-export([
run/0,
ws_init/0
]).
handlers() ->
%% Put any custom handlers here
%% See http://nitrogenproject.com/doc/handlers.html
%% Example:
%%
%% nitrogen:handler(MySecurityHandler, HandlerConfig),
%%
%%
%% The following en... | Use debug crash handler by default | Use debug crash handler by default
| Erlang | mit | joaohf/nitrogen,nitrogen/nitrogen,stuart-thackray/nitrogen,joaohf/nitrogen,kevinmontuori/nitrogen,stuart-thackray/nitrogen,kevinmontuori/nitrogen,joaohf/nitrogen,kevinmontuori/nitrogen,nitrogen/nitrogen,choptastic/nitrogen,choptastic/nitrogen,choptastic/nitrogen,nitrogen/nitrogen,stuart-thackray/nitrogen |
f7c20937543d6f53da140ac15fe3d2182e9c1ff4 | apps/pushysim/src/pushysim_app.erl | apps/pushysim/src/pushysim_app.erl | %% -*- erlang-indent-level: 4;indent-tabs-mode: nil; fill-column: 92 -*-
%% ex: ts=4 sw=4 et
%% @copyright 2011-2012 Opscode Inc.
-module(pushysim_app).
-behaviour(application).
%% Application callbacks
-export([start/2, stop/1]).
%-ifdef(TEST).
-include_lib("eunit/include/eunit.hrl").
%-endif.
-include("pushysim.... | %% -*- erlang-indent-level: 4;indent-tabs-mode: nil; fill-column: 92 -*-
%% ex: ts=4 sw=4 et
%% @copyright 2011-2012 Opscode Inc.
-module(pushysim_app).
-behaviour(application).
%% Application callbacks
-export([start/2, stop/1]).
%-ifdef(TEST).
-include_lib("eunit/include/eunit.hrl").
%-endif.
-include("pushysim.... | Add default for zmq_io_processes env | Add default for zmq_io_processes env
| Erlang | apache-2.0 | chef/opscode-pushy-simulator |
01fdf96312259c0d0625c0e68c791afdf6e063a3 | modules/mod_admin/actions/action_admin_zlink.erl | modules/mod_admin/actions/action_admin_zlink.erl | %% @author Arjan Scherpenisse <arjan@scherpenisse.net>
%% @copyright 2009 Arjan Scherpenisse
%% Copyright 2009 Arjan Scherpenisse
%%
%% 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
%%
%% ... | %% @author Arjan Scherpenisse <arjan@scherpenisse.net>
%% @copyright 2009 Arjan Scherpenisse
%% Copyright 2009 Arjan Scherpenisse
%%
%% 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
%%
%% ... | Use translation lookup in internal link action. | Use translation lookup in internal link action.
Fixes issue 133
| Erlang | apache-2.0 | erlanger-ru/erlanger-ru.meta,erlanger-ru/erlanger-ru.meta,erlanger-ru/erlanger-ru.meta,erlanger-ru/erlanger-ru.meta,erlanger-ru/erlanger-ru.meta |
1e665762b7e3f5d6e8da2137130e842432f246b2 | lib/dialyzer/test/small_SUITE_data/src/overloaded1.erl | lib/dialyzer/test/small_SUITE_data/src/overloaded1.erl | %%-----------------------------------------------------------------------------
%% Test that tests overloaded contratcs.
%% In December 2008 it works as far as intersection types are concerned (test1)
%% However, it does NOT work as far as type variables are concerned (test2)
%%-----------------------------------------... | %%-----------------------------------------------------------------------------
%% Test that tests overloaded contracts.
%% In December 2008 it works as far as intersection types are concerned (test1)
%% However, it does NOT work as far as type variables are concerned (test2)
%%-----------------------------------------... | Use the modern version of is_subtype | Use the modern version of is_subtype
| Erlang | apache-2.0 | bernardd/otp,lightcyphers/otp,NOMORECOFFEE/otp,mikpe/otp,krishnakumar4a4/otp,schlagert/otp,derek121/otp,jj1bdx/otp,sdebnath/otp,lianghaivv/otp,massemanet/otp,electricimp/otp,c-rack/otp,potatosalad/otp,matwey/otp,lhslll/otp,benoitc/otp-1,bsmr-erlang/otp,krishnakumar4a4/otp,sitexa/otp,kvakvs/otp,emacsmirror/erlang,GinjaN... |
8c9d0a2b310a4f7bf0e499848aea5d2f4a27e3a4 | src/core/eval_shim.erl | src/core/eval_shim.erl | -module(eval_shim).
-export([exprs/2]).
exprs(Expressions, Bindings) ->
% Convert the values of the current bindings back to their Reia form
Bindings2 = [{Var, reia_erl:e2r(Val)} || {Var, Val} <- Bindings],
% Call erl_eval
{value, Value, NewBindings} = erl_eval:exprs(Expressions, Bindings2, {value, fun loca... | -module(eval_shim).
-export([exprs/2]).
exprs(Expressions, Bindings) ->
% Convert the values of the current bindings back to their Reia form
Bindings2 = [{Var, reia_erl:e2r(Val)} || {Var, Val} <- Bindings],
% Call erl_eval
{value, Value, NewBindings} = erl_eval:exprs(Expressions, Bindings2, {value, fun loca... | Fix special cased puts supoort for local_function | Fix special cased puts supoort for local_function
| Erlang | mit | beni55/reia,beni55/reia,tarcieri/reia,tarcieri/reia |
0073a4faa4f7025a1c1a8425e6591a079f4e3875 | src/config_listener.erl | src/config_listener.erl | -module(config_listener).
-behaviour(gen_event).
%% Public interface
-export([start/1]).
-export([behaviour_info/1]).
%% Required gen_event interface
-export([init/1, handle_event/2, handle_call/2, handle_info/2, terminate/2,
code_change/3]).
behaviour_info(callbacks) ->
[{handle_config_change/4}];
behavi... | -module(config_listener).
-behaviour(gen_event).
%% Public interface
-export([start/2]).
-export([behaviour_info/1]).
%% Required gen_event interface
-export([init/1, handle_event/2, handle_call/2, handle_info/2, terminate/2,
code_change/3]).
behaviour_info(callbacks) ->
[{handle_config_change,5}];
behavi... | Enable the listener to carry some state | Enable the listener to carry some state
| Erlang | apache-2.0 | fkaempfer/couchdb,fkaempfer/couchdb,fkaempfer/couchdb,fkaempfer/couchdb,fkaempfer/couchdb,fkaempfer/couchdb |
7eb6a28d5633c9b55ae50f4665af89ab499b8c0c | test/examples/fail_macro_module_names.erl | test/examples/fail_macro_module_names.erl | -module(fail_macro_module_names).
-export([
module_name/0,
function_name/0,
no_errors/0,
build_binary/0
]).
-define(FUNCTION_NAME, function_name).
-define(BINARY, "bla").
-define(function_name, function_name).
-define(module_name, ?MODULE).
module_name() ->
?MODULE:fun... | -module(fail_macro_module_names).
-export([
module_name/0,
function_name/0,
no_errors/0,
build_binary/0
]).
-define(FUNCTION_NAME, function_name).
-define(BINARY, "bla").
-define(BINARY_SIZE, 3).
-define(function_name, function_name).
-define(module_name, ?MODULE).
module_... | Add valid binary matching tests | Add valid binary matching tests
| Erlang | apache-2.0 | Nyco/elvis,lpgauth/elvis,kbaird/elvis,bullno1/elvis,walrusVision/elvis,ElFantasma/elvis,linearregression/elvis,NOMORECOFFEE/elvis,technion/elvis,inaka/elvis |
1ebb2bc0cc9cc444cfbfa89b72f642ea3a5b3cfa | src/epo_po_template.erl | src/epo_po_template.erl | -module(epo_po_template).
-author("evgeny").
%% API
-export([erl/0]).
erl() ->
{ok, [
<<"%% -*- coding: utf-8 -*-
-module(template).
-compile(nowarn_unused_vars).
-compile(nowarn_unused_function).
-compile(nowarn_unused_record).
-record(porec2, {msgstr, msgstr_n = {}, n_max}).
-export([get_record/2, get_idx/2]).
"... | -module(epo_po_template).
-author("evgeny").
%% API
-export([erl/0]).
erl() ->
{ok, [
<<"%% -*- coding: utf-8 -*-
-module(template).
-compile(nowarn_unused_vars).
-compile(nowarn_unused_function).
-compile(nowarn_unused_record).
-record(porec2, {msgstr, msgstr_n = {}, n_max}).
-export([get_record/2, get_idx/2]).
-... | Add ignore_xref to generated translation module. | Add ignore_xref to generated translation module.
xref will otherwise complain about unused exports, as these functions
are normally only called indirectly via the epo_gettext module.
| Erlang | mit | brigadier/epo |
62232ada75cedc12ff38fd97dd3ef139e6d8a8bf | test_server/test_server.hrl | test_server/test_server.hrl | %%
%% %CopyrightBegin%
%%
%% Copyright Ericsson AB 1996-2009. All Rights Reserved.
%%
%% The contents of this file are subject to the Erlang Public License,
%% Version 1.1, (the "License"); you may not use this file except in
%% compliance with the License. You should have received a copy of the
%% Erlang Public Lice... | %%
%% %CopyrightBegin%
%%
%% Copyright Ericsson AB 1996-2009. All Rights Reserved.
%%
%% The contents of this file are subject to the Erlang Public License,
%% Version 1.1, (the "License"); you may not use this file except in
%% compliance with the License. You should have received a copy of the
%% Erlang Public Lice... | Make the ?line macro be empty; we're running out of code size in JVM class spec. | Make the ?line macro be empty; we're running out of code size in JVM class spec. | Erlang | apache-2.0 | trifork/erjang,trifork/erjang,trifork/erjang,trifork/erjang,trifork/erjang,trifork/erjang,csae1152/erjang,trifork/erjang,csae1152/erjang,csae1152/erjang,csae1152/erjang,csae1152/erjang |
08075f17a486f7fd2941024559727c393aa5ad4c | src/riak_moss_lfs_utils.erl | src/riak_moss_lfs_utils.erl | %% -------------------------------------------------------------------
%%
%% Copyright (c) 2007-2011 Basho Technologies, Inc. All Rights Reserved.
%%
%% -------------------------------------------------------------------
-module(riak_moss_lfs_utils).
-export([object_or_manifest/1,
remove_chunk/2,
... | %% -------------------------------------------------------------------
%%
%% Copyright (c) 2007-2011 Basho Technologies, Inc. All Rights Reserved.
%%
%% -------------------------------------------------------------------
-module(riak_moss_lfs_utils).
-include("riak_moss.hrl").
-export([object_or_manifest/1,
... | Include hrl in utils, rename func to show bool return value | Include hrl in utils, rename func to show bool return value
AZ944
| Erlang | apache-2.0 | GabrielNicolasAvellaneda/riak_cs,basho/riak_cs_report,dragonfax/riak_cs,basho/riak_cs_lfs,GabrielNicolasAvellaneda/riak_cs,laurenrother/riak_cs,yangchengjian/riak_cs,yangchengjian/riak_cs,dragonfax/riak_cs,basho/riak_cs,sdebnath/riak_cs,basho/riak_cs,basho/riak_cs,laurenrother/riak_cs,basho/riak_cs,laurenrother/riak_cs... |
1aa22c8f5c7a3488e7796a903129f9521fe7364f | include/pvc.hrl | include/pvc.hrl | %% Rubis
-define(GROUPING_SEP, <<"+">>).
-define(ID_SEP, <<"@">>).
-define(FIELD_SEP, <<"/">>).
%% General indices
-define(INDEX_SEP, <<"$">>).
-define(UINDEX_SEP, <<"%">>).
-define(INDEX_PAGE_LIMIT, 25).
%% Amount of Transaction metadata kept
-define(VERSION_THRESHOLD, 500).
-define(MAX_VERSIONS, 100).
%% Size of a... | %% Rubis
-define(GROUPING_SEP, <<"+">>).
-define(ID_SEP, <<"@">>).
-define(FIELD_SEP, <<"/">>).
%% General indices
-define(INDEX_SEP, <<"$">>).
-define(UINDEX_SEP, <<"%">>).
-define(INDEX_PAGE_LIMIT, 25).
%% Amount of Transaction metadata kept for the Version and Commit log
%%
%% VERSION_THRESHOLD specifies the point... | Add documentation to PVC log limits | Add documentation to PVC log limits
| Erlang | apache-2.0 | ergl/antidote |
b6df7441e53ac4f0642344dc1e1611e612535913 | src/actions/action_disable_selection.erl | src/actions/action_disable_selection.erl | % vim: sw=4 ts=4 et ft=erlang
% Nitrogen Web Framework for Erlang
% Copyright (c) 2008-2010 Rusty Klophaus
% See MIT-LICENSE for licensing information.
-module (action_disable_selection).
-include_lib ("wf.hrl").
-compile(export_all).
render_action(_Record) ->
"Nitrogen.$disable_selection(obj(me));".
| % vim: sw=4 ts=4 et ft=erlang
% Nitrogen Web Framework for Erlang
% Copyright (c) 2008-2010 Rusty Klophaus
% See MIT-LICENSE for licensing information.
-module (action_disable_selection).
-include_lib ("wf.hrl").
-compile(export_all).
render_action(_Record) ->
"Nitrogen.$disable_selection(obj('me'));".
| Fix js typoe in disable_selection | Fix js typoe in disable_selection
| Erlang | mit | nitrogen/nitrogen_core,choptastic/nitrogen_core,stuart-thackray/nitrogen_core,nitrogen/nitrogen_core,choptastic/nitrogen_core,SovereignPrime/nitrogen_core,jpyle/nitrogen_core,SovereignPrime/nitrogen_core,jpyle/nitrogen_core,nitrogen/nitrogen_core,stuart-thackray/nitrogen_core,jpyle/nitrogen_core,nitrogen/nitrogen_core,... |
8c11e11912c1168153820e811af7a00132b7bf59 | largest-series-product/largest_series_product_tests.erl | largest-series-product/largest_series_product_tests.erl | -module( largest_series_product_tests ).
-include_lib("eunit/include/eunit.hrl").
three_test() -> ?assert( 504 =:= largest_series_product:from_string("0123456789", 3) ).
five_test() -> ?assert( 15120 =:= largest_series_product:from_string("0123456789", 5) ).
six_test() -> ?assert( 23520 =:= largest_series_product:fr... | -module( largest_series_product_tests ).
-include_lib("eunit/include/eunit.hrl").
three_test() -> ?assert( 504 =:= largest_series_product:from_string("0123456789", 3) ).
five_test() -> ?assert( 15120 =:= largest_series_product:from_string("0123456789", 5) ).
six_test() -> ?assert( 23520 =:= largest_series_product:fr... | Add tests where result is zero | largest-series-product: Add tests where result is zero
This will guard against solutions that incorrectly assume the minimum
answer is 1.
| Erlang | mit | NobbZ/xerlang,tmcgilchrist/xerlang,exercism/xerlang |
3153b18f5b050d0a42948daaa722906f8007e603 | test/edoc_example.erl | test/edoc_example.erl | %% @doc Top-level module doc.
%% @end
-module(edoc_example).
-export([f/0]).
-include_lib("docsh/include/docsh.hrl").
-type l(A) :: list(A).
-type l() :: list().
-type r() :: ok.
%% @doc Doc for f/0.
%% @end
-spec f() -> r().
f() ->
ok.
| %% @doc Top-level module doc.
%% @end
-module(edoc_example).
-export([f/0]).
-include_lib("docsh/include/docsh.hrl").
-type l(A) :: list(A).
-type l() :: list().
%% @type r(). Doc for type r().
-type r() :: ok.
%% @doc Doc for f/0.
%% @end
-spec f() -> r().
f() ->
ok.
| Add example of a type description extractable by EDoc | Add example of a type description extractable by EDoc
| Erlang | bsd-3-clause | lavrin/docsh |
1101a8abcf47a99dc047b7916774c7161d184c45 | service/src/tag_analysis_sup.erl | service/src/tag_analysis_sup.erl | -module(tag_analysis_sup).
-behaviour(supervisor).
-export([start_link/0]).
-export([init/1]).
start_link() ->
supervisor:start_link({local, ?MODULE}, ?MODULE, []).
rest() ->
RestDispatch = [{'_', [
{[<<"tag">>, tag], tag_analysis, []}
]}],
RestConfig = [rest_listener, 100,
[{port, ... | -module(tag_analysis_sup).
-behaviour(supervisor).
-export([start_link/0]).
-export([init/1]).
start_link() ->
supervisor:start_link({local, ?MODULE}, ?MODULE, []).
rest() ->
RestDispatch = [{'_', [
{[<<"tags">>, tag], tag_analysis, []}
]}],
RestConfig = [rest_listener, 100,
[{port,... | Change from /tag => /tags | Change from /tag => /tags | Erlang | mit | airshipcloud/dictionary,airshipcloud/dictionary |
449d6baabcebbeb017445430de3c185e147e097b | src/rebar_packages.erl | src/rebar_packages.erl | -module(rebar_packages).
-export([get_packages/1]).
-export_type([package/0]).
-include("rebar.hrl").
-type pkg_name() :: binary() | atom().
-type vsn() :: binary().
-type package() :: pkg_name() | {pkg_name(), vsn()}.
-spec get_packages(rebar_state:t()) -> {rebar_dict(), rebar_digraph()}.
get_packages(State) ->
... | -module(rebar_packages).
-export([get_packages/1]).
-export_type([package/0]).
-include("rebar.hrl").
-type pkg_name() :: binary() | atom().
-type vsn() :: binary().
-type package() :: pkg_name() | {pkg_name(), vsn()}.
-spec get_packages(rebar_state:t()) -> {rebar_dict(), rebar_digraph()}.
get_packages(State) ->
... | Fix error message to point to rebar3 | Fix error message to point to rebar3
| Erlang | apache-2.0 | surik/rebar3,linearregression/rebar3,linearregression/rebar3,vladdu/rebar3,zugolosian/rebar3,project-fifo/rebar3,project-fifo/rebar3,fabiankrol/rebar3,fabiankrol/rebar3,processone/rebar3,fauxsoup/rebar3,saleyn/rebar3,kellymclaughlin/rebar3,zugolosian/rebar3,walrusVision/rebar3,sile/rebar3,jbalint/rebar3,lrascao/rebar3,... |
e40f2ec32acaf9a27374b50c785bc76f76e1541c | test/eavro_rpc_proto_tests.erl | test/eavro_rpc_proto_tests.erl | -module(eavro_rpc_proto_tests).
-include("eavro.hrl").
-include_lib("eunit/include/eunit.hrl").
parse_flume_proto_test() ->
Proto = eavro_rpc_proto:parse_protocol_file("../test/data/flume.avpr"),
?assertMatch(
#avro_proto{ ns = <<"org.apache.flume.source.avro">>,
name = <<"AvroSourcePr... | -module(eavro_rpc_proto_tests).
-include("eavro.hrl").
-include_lib("eunit/include/eunit.hrl").
parse_flume_proto_test() ->
Proto = eavro_rpc_proto:parse_protocol_file("../test/data/flume.avpr"),
?assertMatch(
#avro_proto{ ns = <<"org.apache.flume.source.avro">>,
name = <<"AvroSourcePr... | Add RPC test against Java e-mail server. | Add RPC test against Java e-mail server.
| Erlang | apache-2.0 | linearregression/eavro,gaynetdinov/eavro |
3f01c555af973a07a3f2b22ff95a2bc1c7930bc2 | src/lmq_sup.erl | src/lmq_sup.erl | -module(lmq_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]}).
-define(CHILD(I, Type, Args), {I, {I, start_link, Args}, permanent,... | -module(lmq_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]}).
-define(CHILD(I, Type, Args), {I, {I, start_link, Args}, permanent,... | Fix start-up order to avoid the crash | Fix start-up order to avoid the crash
| Erlang | mit | iij/lmq,iij/lmq |
fc698edc28aba9cac5e1ad52be307640323d4cf0 | include/riak_moss.hrl | include/riak_moss.hrl |
-record(rs3_user, {
name :: binary(),
key_id :: binary(),
key_secret :: binary(),
buckets = []}).
-record(rs3_bucket, {
name :: binary(),
creation_date :: term()}).
-record(context, {auth_bypass :: atom(),
auth_mod=riak_kv_passthru_auth ::... |
-record(rs3_user, {
name :: binary(),
key_id :: binary(),
key_secret :: binary(),
buckets = []}).
-record(rs3_bucket, {
name :: binary(),
creation_date :: term()}).
-record(context, {auth_bypass :: atom(),
auth_mod :: atom(),
-define(USER... | Remove default value for auth_mod from context record. | Remove default value for auth_mod from context record.
| Erlang | apache-2.0 | GabrielNicolasAvellaneda/riak_cs,dragonfax/riak_cs,basho/riak_cs,laurenrother/riak_cs,basho/riak_cs_lfs,sdebnath/riak_cs,sdebnath/riak_cs,sdebnath/riak_cs,GabrielNicolasAvellaneda/riak_cs,yangchengjian/riak_cs,basho/riak_cs_report,yangchengjian/riak_cs,laurenrother/riak_cs,dragonfax/riak_cs,dragonfax/riak_cs,basho/riak... |
4652cd88d8f24ab7f9e6821b1f2157ffffa3cd95 | src/twig_sup.erl | src/twig_sup.erl | % Licensed under the Apache License, Version 2.0 (the "License"); you may not
% use this file except in compliance with the License. You may obtain a copy of
% the License at
%
% http://www.apache.org/licenses/LICENSE-2.0
%
% Unless required by applicable law or agreed to in writing, software
% distributed under the ... | % Licensed under the Apache License, Version 2.0 (the "License"); you may not
% use this file except in compliance with the License. You may obtain a copy of
% the License at
%
% http://www.apache.org/licenses/LICENSE-2.0
%
% Unless required by applicable law or agreed to in writing, software
% distributed under the ... | Fix type of child specification | Fix type of child specification
| Erlang | apache-2.0 | fkaempfer/couchdb,fkaempfer/couchdb,fkaempfer/couchdb,fkaempfer/couchdb,fkaempfer/couchdb,fkaempfer/couchdb |
fadc51551941204362830d36caabcac8c0c4dc9f | include/bookshelf.hrl | include/bookshelf.hrl | %% @copyright 2012 Opscode, Inc. All Rights Reserved
%% @author Tim Dysinger <timd@opscode.com>
%%
%% Licensed to the Apache Software Foundation (ASF) under one or more
%% contributor license agreements. See the NOTICE file distributed
%% with this work for additional information regarding copyright
%% ownership. The... | %% @copyright 2012 Opscode, Inc. All Rights Reserved
%% @author Tim Dysinger <timd@opscode.com>
%%
%% Licensed to the Apache Software Foundation (ASF) under one or more
%% contributor license agreements. See the NOTICE file distributed
%% with this work for additional information regarding copyright
%% ownership. The... | Add some useful 'constant' macros | Add some useful 'constant' macros
| Erlang | apache-2.0 | marcparadise/chef-server,rmoorman/chef-server,itmustbejj/chef-server,vladuemilian/chef-server,poliva83/chef-server,juliandunn/chef-server-1,Minerapp/chef-server,chef/bookshelf,juliandunn/chef-server-1,chef/chef-server,poliva83/chef-server,juliandunn/chef-server-1,chef/chef-server,rmoorman/chef-server,poliva83/chef-serv... |
d1faae4556d17c911b7a0d284a2c451b2bcedcb3 | src/holiday_ping_app.erl | src/holiday_ping_app.erl | -module(holiday_ping_app).
-behaviour(application).
-export([start/2,
stop/1]).
start(_StartType, _StartArgs) ->
pgapp:connect(hp_config:get(pg_options)),
Dispatch = cowboy_router:compile([
{'_', [{"/", cowboy_static, {priv_file, holiday_ping, "/ui/index.html"}... | -module(holiday_ping_app).
-behaviour(application).
-export([start/2,
stop/1]).
start(_StartType, _StartArgs) ->
pgapp:connect(hp_config:get(pg_options)),
Dispatch = cowboy_router:compile([
{'_', [{"/", cowboy_static, {priv_file, holiday_ping, "/ui/index.html"}... | Fix broken paths for static files | Fix broken paths for static files
| Erlang | mit | lambdaclass/holiday_ping |
968c81f934e587124713333b499933d3874776c8 | et-6-1/stats.erl | et-6-1/stats.erl | -module(stats).
-export([minimum/1]).
minimum([H | T]) ->
minimum(T, H).
minimum([H | T], Min) when H < Min ->
minimum(T, H);
minimum([_H | T], Min) ->
minimum(T, Min);
minimum([], Min) ->
Min.
| %% @author Purity Control
%% @vsn 0.1
%% @doc an implementation of getting the minimum value from a list
-module(stats).
-export([minimum/1]).
%% doc return the minimum in a list. Throws an error on the empty list
-spec(minimum(nonempty_list(any())) -> any()).
minimum([H | T]) ->
minimum(T, H).
minimum([H | T], ... | Add documetation and spec signature for minimum. | Add documetation and spec signature for minimum.
| Erlang | mit | PurityControl/erl-etudes |
43bb2885f0088d09931d18f08b4c2df83d685b8a | src/basho_bench_driver_file.erl | src/basho_bench_driver_file.erl | -module(basho_bench_driver_file).
-export([new/1,
run/4]).
-include("basho_bench.hrl").
-record(state, { target_dir_path % target dir to issue read/write syscalls
}).
%% ====================================================================
%% API
%% ========================================... | -module(basho_bench_driver_file).
-export([new/1,
run/4]).
-include("basho_bench.hrl").
-record(state, { target_dir_path % target dir to issue read/write syscalls
}).
%% ====================================================================
%% API
%% ========================================... | Fix generating a file name | Fix generating a file name
| Erlang | apache-2.0 | windkit/basho_bench,windkit/basho_bench,leo-project/basho_bench,leo-project/basho_bench |
e59d91bc3eef168c6727041f92f7518cf3f49ddf | common_apps/mzbench_utils/src/mzb_string.erl | common_apps/mzbench_utils/src/mzb_string.erl | -module(mzb_string).
-export([
format/2,
char_substitute/3,
str_to_bstr/1
]).
-spec format(Format :: string(), Args :: [term()]) -> FlatString :: string().
format(Format, Args) ->
lists:flatten(io_lib:format(Format, Args)).
-spec char_substitute(string(), char(), char()) -> string().
char_substitute(... | -module(mzb_string).
-export([
format/2,
char_substitute/3,
str_to_bstr/1
]).
-spec format(Format :: string(), Args :: [term()]) -> FlatString :: string().
format(Format, Args) ->
lists:flatten(io_lib:format(Format, Args)).
-spec char_substitute(string(), char(), char()) -> string().
char_substitute(... | Add empty array condition to str_to_bstr | Add empty array condition to str_to_bstr
| Erlang | bsd-3-clause | moigagoo/mzbench,moigagoo/mzbench,alinpopa/mzbench,avasenin/mzbench,ethercrow/mzbench,moigagoo/mzbench,moigagoo/mzbench,avasenin/mzbench,alinpopa/mzbench,alinpopa/mzbench,ethercrow/mzbench,avasenin/mzbench,bks7/mzbench,ethercrow/mzbench,bks7/mzbench,bks7/mzbench,bks7/mzbench,avasenin/mzbench,alinpopa/mzbench,ethercrow/... |
e23e5f54b67abfce13132b7026b222157d99684e | src/fingwb_app.erl | src/fingwb_app.erl | -module(fingwb_app).
-behaviour(application).
%% Application callbacks
-export([start/2, stop/1]).
%% ===================================================================
%% Application callbacks
%% ===================================================================
start(_StartType, _StartArgs) ->
fingwb_whiteb... | -module(fingwb_app).
-behaviour(application).
%% Application callbacks
-export([start/2, stop/1]).
%% ===================================================================
%% Application callbacks
%% ===================================================================
start(_StartType, _StartArgs) ->
fingwb_whiteb... | Change routing for css / js files | Change routing for css / js files
Allow pointing to css / js files via “/css/*” or “/js/*” via HTML while
still keeping the files physically located under “static.”
| Erlang | mit | ricecake/F-ing-WhiteBoard,ricecake/F-ing-WhiteBoard |
b947c351ddfcaaa6b6048acb4953ed1eaa29d519 | src/oauth1_resource.erl | src/oauth1_resource.erl | -module(oauth1_resource).
-export_type(
[ t/0
, realm/0
, uri/0
]).
-export(
[ cons/2
, get_realm/1
, get_uri/1
]).
-type realm() ::
binary().
-type uri() ::
oauth1_uri:t().
-record(t,
{ realm :: realm()
, uri :: uri()
}).
-opaque t() ::
#t{}.
-spec con... | -module(oauth1_resource).
-export_type(
[ t/0
, realm/0
, uri/0
]).
-export(
% Construct
[ cons/2
% Access
, get_realm/1
, get_uri/1
% Serialize (for internal storage purposes only!)
, to_props/1
, of_props/1
]).
-type realm() ::
binary().
-type uri() ::
... | Add serialization API to resource abstraction. | Add serialization API to resource abstraction.
| Erlang | mit | ibnfirnas/oauth1_core |
d8ee8bbb8035c91016e8ee1f44705b7999c59648 | src/similar_utils.erl | src/similar_utils.erl | %%%-------------------------------------------------------------------
%%% File : similar_process.erl
%%% Author : Nicolas Dufour <nrdufour@gmail.com>
%%% Created : 2009/07/29
%%% Description :
%%% Utility functions related to the simulation engine.
%%%
%%% Copyright 2009 Nicolas R Dufour <nrdufour@gmail.com>
%%%
%%% T... | %%%-------------------------------------------------------------------
%%% File : similar_process.erl
%%% Author : Nicolas Dufour <nrdufour@gmail.com>
%%% Created : 2009/07/29
%%% Description :
%%% Utility functions related to the simulation engine.
%%%
%%% Copyright 2009 Nicolas R Dufour <nrdufour@gmail.com>
%%%
%%% T... | Reset has to empty the event list. | Reset has to empty the event list.
| Erlang | mit | nrdufour/similar |
4c394203bd446590bf8f3cc8103b0c4a28e5f22b | test/edoc_example.erl | test/edoc_example.erl | %% @doc Top-level module doc.
%% @end
-module(edoc_example).
-export([f/0]).
-include_lib("docsh/include/pt_docsh.hrl").
-type r() :: ok.
%% @doc Doc for f/0.
%% @end
-spec f() -> r().
f() ->
ok.
| %% @doc Top-level module doc.
%% @end
-module(edoc_example).
-export([f/0]).
-include_lib("docsh/include/pt_docsh.hrl").
-type l(A) :: list(A).
-type l() :: list().
-type r() :: ok.
%% @doc Doc for f/0.
%% @end
-spec f() -> r().
f() ->
ok.
| Add example of a parameterized type | Add example of a parameterized type
| Erlang | bsd-3-clause | lavrin/docsh |
3c1ccac1536df0fd79b22e70f7645c2c6b4080d5 | include/erlcfg.hrl | include/erlcfg.hrl | -record(block, {
name,
child,
next=nil}).
-record(set, {
key,
value,
next=nil}).
-record(get, {
address}).
-record(cons, {
head,
tail=nil}).
| -record(block, {
name,
child,
next=nil}).
-record(set, {
key,
value,
next=nil}).
-record(get, {
address}).
-record(cons, {
head,
tail=nil}).
-record(interp, {
node,
scope=''}).
| Create a State record for the new interpreter | Create a State record for the new interpreter
| Erlang | bsd-3-clause | saleyn/erlcfg |
7808164e9d2064cf40217e449378ae5309efccbe | apps/todee_web/src/todee_web_app.erl | apps/todee_web/src/todee_web_app.erl | %%%-------------------------------------------------------------------
%% @doc todee_web public API
%% @end
%%%-------------------------------------------------------------------
-module(todee_web_app).
-behaviour(application).
%% Application callbacks
-export([start/2, stop/1]).
%%=================================... | %%%-------------------------------------------------------------------
%% @doc todee_web public API
%% @end
%%%-------------------------------------------------------------------
-module(todee_web_app).
-behaviour(application).
%% Application callbacks
-export([start/2, stop/1]).
%%=================================... | Add api end point handler. | Add api end point handler. | Erlang | mit | ricecake/todee |
9447ff6854785cec4fc051560c36560d0b7155cc | lib/eunit/test/eunit_SUITE.erl | lib/eunit/test/eunit_SUITE.erl | %%
%% %CopyrightBegin%
%%
%% Copyright Ericsson AB 2010. All Rights Reserved.
%%
%% The contents of this file are subject to the Erlang Public License,
%% Version 1.1, (the "License"); you may not use this file except in
%% compliance with the License. You should have received a copy of the
%% Erlang Public License a... | %%
%% %CopyrightBegin%
%%
%% Copyright Ericsson AB 2010. All Rights Reserved.
%%
%% The contents of this file are subject to the Erlang Public License,
%% Version 1.1, (the "License"); you may not use this file except in
%% compliance with the License. You should have received a copy of the
%% Erlang Public License a... | Update eunit tests to conform with common_test standard | Update eunit tests to conform with common_test standard
| Erlang | apache-2.0 | bernardd/otp,matwey/otp,kvakvs/otp,vladdu/otp,goertzenator/otp,ader1990/otp,theom/otp,riverrun/otp,basho/otp,aboroska/otp,bugs-erlang-org/otp,legoscia/otp,jamesruan/otp,stolen/otp,yangchengjian/otp,ferd/otp,potatosalad/otp,g-andrade/otp,fenollp/otp,vic/otp,schlagert/otp,VincentHHL/otp,RaimoNiskanen/otp,bsmr-erlang/otp,... |
14ae9e54f51822fada6afb305843b8d4c198e777 | src/saturn_leaf.erl | src/saturn_leaf.erl | -module(saturn_leaf).
-include("saturn_leaf.hrl").
-include_lib("riak_core/include/riak_core_vnode.hrl").
-export([
ping/0,
update/3,
read/1
]).
%% Public API
%% @doc Pings a random vnode to make sure communication is functional
ping() ->
DocIdx = riak_core_util:chash_key({<<"p... | -module(saturn_leaf).
-include("saturn_leaf.hrl").
-include_lib("riak_core/include/riak_core_vnode.hrl").
-export([
ping/0,
update/3,
read/2
]).
%% Public API
%% @doc Pings a random vnode to make sure communication is functional
ping() ->
DocIdx = riak_core_util:chash_key({<<"p... | Add Clock to read for remote reads | Add Clock to read for remote reads
| Erlang | apache-2.0 | angbrav/saturn_leaf |
a82de33689dc707bb36c724e29c1f8112b281402 | tests/basic_SUITE.erl | tests/basic_SUITE.erl | -module(basic_SUITE).
-compile(export_all).
init_per_suite(Config) ->
Config.
end_per_suite(_Config) ->
ok.
init_per_testcase(_Tc, Config) ->
Config.
end_per_testcase(_Tc, _Config) ->
ok.
all() ->
[basic].
basic(_Config) ->
Ctx = llevm:'LLVMGetGlobalContext'(),
ModRef = llevm:'LLVMMod... | -module(basic_SUITE).
-compile(export_all).
init_per_suite(Config) ->
Config.
end_per_suite(_Config) ->
ok.
init_per_testcase(_Tc, Config) ->
Config.
end_per_testcase(_Tc, _Config) ->
ok.
all() ->
[basic].
basic(_Config) ->
Ctx = llevm:'LLVMGetGlobalContext'(),
ModRef = llevm:'LLVMMod... | Extend basic tests to create a small function | Extend basic tests to create a small function
| Erlang | apache-2.0 | garazdawi/llevm,garazdawi/llevm |
8a6e2b1ff59a2dab4514e7e0cc8039bcc366140e | exercise1/apps/exercise1/src/dlq_test.erl | exercise1/apps/exercise1/src/dlq_test.erl | -module(dlq_test).
-include_lib("eunit/include/eunit.hrl").
% Should create an empty DLQ
initDLQ_test() -> {[], 3, "Test"} = dlq:initDLQ(3, "Test"). | -module(dlq_test).
-include_lib("eunit/include/eunit.hrl").
% Should create an empty DLQ
initDLQ_test() -> {[], 3, "Test"} = dlq:initDLQ(3, "Test").
% Should create an empty DLQ
delDLQ_empty_dlq_test() -> ok = dlq:delDLQ(dlq:initDLQ(3, "Test")). | Add delete dlq function which does not make sense yet | Add delete dlq function which does not make sense yet
| Erlang | mit | meandor/vs2017,meandor/vs2017 |
ff1c4bd58db60f57c6e40c3000ca73bbfb57021a | include/stanchion.hrl | include/stanchion.hrl | -record(context, {auth_bypass :: boolean(),
bucket :: binary(),
owner_id :: all | string()}).
-record(moss_user_v1, {
name :: string(),
display_name :: string(),
email :: string(),
key_id :: string(),
key_secret :: string(),
... | -record(context, {auth_bypass :: boolean(),
bucket :: binary(),
owner_id :: all | string()}).
-record(moss_user_v1, {
name :: string(),
display_name :: string(),
email :: string(),
key_id :: string(),
key_secret :: string(),
... | Add bucket field back to user record. | Add bucket field back to user record.
| Erlang | apache-2.0 | basho/stanchion,sdebnath/stanchion |
618cf8c9da93ee729c28820773cbbf042b5b4b2a | src/oauth1_client.erl | src/oauth1_client.erl | -module(oauth1_client).
-export(
[ ready/2
]).
-spec ready(TempToken :: oauth1_credentials:id(tmp), Verifier :: binary()) ->
hope_result:t(ok, oauth1_storage:error()).
ready(_TempToken, _Verifier) ->
% {ok, ConsumerKey} = application:get_env(oauth1, client_consumer_key),
% SignatureMethod = 'HMAC_SHA... | -module(oauth1_client).
-export(
[ ready/2
]).
-spec ready(TempToken :: oauth1_credentials:id(tmp), oauth1_verifier:t()) ->
hope_result:t(ok, oauth1_storage:error()).
ready(_TempToken, _Verifier) ->
% {ok, ConsumerKey} = application:get_env(oauth1, client_consumer_key),
% SignatureMethod = 'HMAC_SHA1... | Use oauth1_verifier:t() instead of binary() | Use oauth1_verifier:t() instead of binary()
| Erlang | mit | ibnfirnas/oauth1_core |
676fc96cfb6c4f9d14d73d6050f69e24e26223db | src/compiler/reia_ivars.erl | src/compiler/reia_ivars.erl | %
% reia_ivars: Transform Reia instance variables into dict representation
% Copyright (C)2008 Tony Arcieri
%
% Redistribution is permitted under the MIT license. See LICENSE for details.
%
-module(reia_ivars).
-export([ast/1, ast/2, transform/2]).
%-define(msg(Str, Xs), io:format(Str, Xs)).
-define(msg(Str, Xs), ... | %
% reia_ivars: Transform Reia instance variables into dict representation
% Copyright (C)2008 Tony Arcieri
%
% Redistribution is permitted under the MIT license. See LICENSE for details.
%
-module(reia_ivars).
-export([ast/1, ast/2, transform/2]).
%-define(msg(Str, Xs), io:format(Str, Xs)).
-define(msg(Str, Xs), ... | Add errors for incorrect ivar usage | Add errors for incorrect ivar usage
| Erlang | mit | tarcieri/reia,tarcieri/reia,beni55/reia,beni55/reia |
9817646665ecaec8b905b3e8773dc68d78e15f0e | include/riak_ensemble_types.hrl | include/riak_ensemble_types.hrl | -type ensemble_id() :: term().
-type peer_id() :: {term(), node()}.
-type leader_id() :: undefined | peer_id().
-type fixme() :: any().
-type views() :: [[peer_id()]].
-type peer_change() :: term(). %% FIXME
-type change_error() :: already_member | not_member.
-type std_reply() :: timeout | failed | unavailable | nack ... | -type ensemble_id() :: term().
-type peer_id() :: {term(), node()}.
-type leader_id() :: undefined | peer_id().
-type fixme() :: any().
-type views() :: [[peer_id()]].
-type peer_change() :: term(). %% FIXME
-type change_error() :: already_member | not_member.
-type std_reply() :: timeout | failed | unavailable | nack ... | Add type specification for ensemble_info.vsn | Add type specification for ensemble_info.vsn
| Erlang | apache-2.0 | ricardobcl/riak_ensemble,cmeiklejohn/riak_ensemble,basho/riak_ensemble,cmeiklejohn/riak_ensemble,sargun/riak_ensemble,sargun/riak_ensemble,basho/riak_ensemble,ricardobcl/riak_ensemble |
39fd0e7348c97bfded202cabdcf231ba9810d441 | 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(), error()).
-s... | -module(oauth1_storage).
-export_type(
[ error/0
]).
-export(
[ put/3
, get/2
]).
-type error() ::
not_found
| {io_error, any()}
.
-callback put(binary(), binary(), binary()) ->
hope_result:t(ok, error()).
-callback get(binary(), binary()) ->
hope_result:t(binary(), error... | Define a more useful IO error type. | Define a more useful IO error type.
| Erlang | mit | ibnfirnas/oauth1_core |
d151ef82c3743347a2ffe4c009160ab69132e302 | nitroelem.erl | nitroelem.erl | %%%' HEADER
%%% @author {{author_name}} <{{author_email}}>
%%% @copyright {{copyright_year}} {{author_name}}
%%% @doc Nitrogen element: {{description}}
%%% @end
-module({{app_name}}_{{name}}_element).
-author('{{author_name}} <{{author_email}}>').
-include_lib("nitrogen_core/include/wf.hrl").
-export(reflect/0, rend... | %%%' HEADER
%%% @author {{author_name}} <{{author_email}}>
%%% @copyright {{copyright_year}} {{author_name}}
%%% @doc Nitrogen element: {{description}}
%%% @end
-module({{app_name}}_{{name}}_element).
-author('{{author_name}} <{{author_email}}>').
-include_lib("nitrogen_core/include/wf.hrl").
-export([reflect/0, ren... | Fix syntax error in Nitrogen element template | Fix syntax error in Nitrogen element template
| Erlang | apache-2.0 | jacktang/rebar-templates,jacktang/rebar-templates |
e454bea98255e2c020f9102c55a80607be09ef24 | src/rabbit_auth_backend_kerberos.erl | src/rabbit_auth_backend_kerberos.erl | -module(rabbit_auth_backend_kerberos).
-include_lib("rabbit_common/include/rabbit.hrl").
-behaviour(rabbit_auth_backend).
-export([description/0, check_user_login/2, check_vhost_access/2, check_resource_access/3]).
description() ->
[{name, <<"Kerberos">>},
{description, <<"Kerberos authentication">>}].
check_... | -module(rabbit_auth_backend_kerberos).
-include_lib("rabbit_common/include/rabbit.hrl").
-behaviour(rabbit_auth_backend).
-export([description/0, check_user_login/2, check_vhost_access/2, check_resource_access/3]).
description() ->
[{name, <<"Kerberos">>},
{description, <<"Kerberos authentication">>}].
check_... | Use the correct user structure. | Use the correct user structure.
| Erlang | bsd-3-clause | simmel/rabbitmq-auth-backend-kerberos |
4389638cbef249255dbe2890529f448c2dd046da | src/erldocs.erl | src/erldocs.erl | -module(erldocs).
-export([main/1]).
%% @doc Called automatically by escript
-spec main(list()) -> ok.
main([]) ->
Conf = [{apps, ["."]}, {dest, "doc/erldocs"}],
run(Conf);
main([Dest]) ->
Conf = [{apps, ["."]}, {dest, Dest}],
run(Conf);
main(Args) ->
main(Args, []).
main([Dest], Apps) ->
Co... | -module(erldocs).
-export([main/1]).
%% @doc Called automatically by escript
-spec main(list()) -> ok.
main([]) ->
{ok, CWD} = file:get_cwd(),
Conf = [{apps, [CWD]}, {dest, "doc/erldocs"}],
run(Conf);
main([Dest]) ->
Conf = [{apps, ["."]}, {dest, Dest}],
run(Conf);
main(Args) ->
main(Args, []... | Fix escript when used with no arguments | Fix escript when used with no arguments
| Erlang | mit | jfacorro/erldocs,erldocs/erldocs |
97c01e722c7bc762920a67188ffc0ea4a7dea08c | src/erldocs.erl | src/erldocs.erl | -module(erldocs).
-export([main/1]).
%% @doc Called automatically by escript
-spec main(list()) -> ok.
main(Args) ->
parse(Args, []).
parse([], []) ->
Dest = filename:absname("docs/erldocs"),
parse([Dest], []);
parse([Dest], []) ->
Apps = [cwd()],
parse([Dest], Apps);
parse([Dest], Apps) ->
... | -module(erldocs).
-export([main/1]).
-record(conf, {dirs = [], destination = cwd() ++ "/docs/erldocs"}).
%% @doc Called automatically by escript
-spec main(list()) -> ok.
main(Args) ->
parse(Args, #conf{}).
parse([], #conf{destination = Destination} = Conf) ->
Dirs = case Conf#conf.dirs of
[] -> [cwd()... | Make command parsing slightly less dumb | Make command parsing slightly less dumb
| Erlang | mit | jfacorro/erldocs,erldocs/erldocs |
a9971633b7a9abf411be066cc962134aa78dcab0 | common_apps/mzbench_utils/src/mzb_string.erl | common_apps/mzbench_utils/src/mzb_string.erl | -module(mzb_string).
-export([
format/2,
char_substitute/3,
str_to_bstr/1
]).
-spec format(Format :: string(), Args :: [term()]) -> FlatString :: string().
format(Format, Args) ->
lists:flatten(io_lib:format(Format, Args)).
-spec char_substitute(string(), char(), char()) -> string().
char_substitute(... | -module(mzb_string).
-export([
format/2,
char_substitute/3,
str_to_bstr/1
]).
-spec format(Format :: string(), Args :: [term()]) -> FlatString :: string().
format(Format, Args) ->
lists:flatten(io_lib:format(Format, Args)).
-spec char_substitute(string(), char(), char()) -> string().
char_substitute(... | Add empty array condition to str_to_bstr | Add empty array condition to str_to_bstr
| Erlang | bsd-3-clause | MrAlone/mzbench,timofey-barmin/mzbench,timofey-barmin/mzbench,timofey-barmin/mzbench,MrAlone/mzbench,machinezone/mzbench,MrAlone/mzbench,machinezone/mzbench,timofey-barmin/mzbench,timofey-barmin/mzbench,machinezone/mzbench,MrAlone/mzbench,machinezone/mzbench,MrAlone/mzbench,machinezone/mzbench |
c919a0aea34b1acb6b6fdac8fab7c1824fdfcabf | include/autocluster.hrl | include/autocluster.hrl | %%==============================================================================
%% @author Gavin M. Roy <gavinr@aweber.com>
%% @copyright 2015 AWeber Communications
%% @end
%%==============================================================================
-record(config, {key, os, default, type}).
-define(CONFIG_MAP,
... | %%==============================================================================
%% @author Gavin M. Roy <gavinr@aweber.com>
%% @copyright 2015 AWeber Communications
%% @end
%%==============================================================================
-record(config, {key, os, default, type}).
-define(CONFIG_MAP,
... | Update the default values for cluster and acl | Update the default values for cluster and acl
| Erlang | bsd-3-clause | rabbitmq/rabbitmq-autocluster,dumbbell/rabbitmq-autocluster,aweber/rabbitmq-autocluster,alanprot/rabbitmq-autocluster,BAM-X/rabbitmq-autocluster,romanek-adam/rabbitmq-autocluster |
46a9466d2ff959874eb5dfd537da9158ccff5a77 | src/a_long.erl | src/a_long.erl | -module(a_long).
-compile([export_all]).
-include("a_include.hrl").
http_show(Response, Content)->
Response:write_chunk(io_lib:format("~s~n", [lists:flatten(Content, "")])).
pull(Req)->
Response = Req:ok({"text/plain", chunked}),
message(Response),
ok.
message(Response)->
http... | -module(a_long).
-compile([export_all]).
-include("a_include.hrl").
http_show(Response, Content)->
Response:write_chunk(io_lib:format("~s~n", [lists:flatten(Content, "")])).
pull(Req)->
Response = Req:ok({"text/plain", chunked}),
message(Response),
ok.
message(Response)->
http... | Add keepalive output to json string | Add keepalive output to json string
| Erlang | apache-2.0 | qiuqi/flashserver,qiuqi/flashserver |
6d214df6e90ff01175b6d6c8a33323e7aa3501ff | rel/overlay/common/site/src/nitrogen_sup.erl | rel/overlay/common/site/src/nitrogen_sup.erl | %% -*- mode: nitrogen -*-
%% vim: ts=4 sw=4 et
-module(nitrogen_sup).
-behaviour(supervisor).
-export([
start_link/0,
init/1
]).
%% Helper macro for declaring children of supervisor
-define(CHILD(I, Type), {I, {I, start_link, []}, permanent, 5000, Type, [I]}).
%% ==============================================... | %% -*- mode: nitrogen -*-
%% vim: ts=4 sw=4 et
-module(nitrogen_sup).
-behaviour(supervisor).
-export([
start_link/0,
init/1
]).
%% Helper macro for declaring children of supervisor
-define(CHILD(I, Type), {I, {I, start_link, []}, permanent, 5000, Type, [I]}).
%% ==============================================... | Make sure nitrogen_core is loading during startup | Make sure nitrogen_core is loading during startup
| Erlang | mit | choptastic/nitrogen,nitrogen/nitrogen,choptastic/nitrogen,nitrogen/nitrogen,nitrogen/nitrogen,choptastic/nitrogen |
ed316a08fb29b2d562143655b848a6a74683fd97 | modules/mod_survey/filters/filter_survey_is_submit.erl | modules/mod_survey/filters/filter_survey_is_submit.erl | %% @author Marc Worrell <marc@worrell.nl>
%% @copyright 2012 Marc Worrell
%% @doc Check if the questions end with a question type that is a submit button.
%% Copyright 2012 Marc Worrell
%%
%% Licensed under the Apache License, Version 2.0 (the "License");
%% you may not use this file except in compliance with the Lice... | %% @author Marc Worrell <marc@worrell.nl>
%% @copyright 2012 Marc Worrell
%% @doc Check if the questions end with a question type that is a submit button.
%% Copyright 2012 Marc Worrell
%%
%% Licensed under the Apache License, Version 2.0 (the "License");
%% you may not use this file except in compliance with the Lice... | Fix edge case where 'continue' button was not shown for empty pages. | Fix edge case where 'continue' button was not shown for empty pages.
| Erlang | apache-2.0 | erlanger-ru/erlanger-ru.meta,erlanger-ru/erlanger-ru.meta,erlanger-ru/erlanger-ru.meta,erlanger-ru/erlanger-ru.meta,erlanger-ru/erlanger-ru.meta |
aaef81dfb1fc7b62e65c261dc2d8a3dd74aa4508 | modules/mod_ginger_rdf/support/sparql_client.erl | modules/mod_ginger_rdf/support/sparql_client.erl | %% @doc A basic SPARQL client.
-module(sparql_client).
-export([
describe/2,
query/2
]).
-include_lib("zotonic.hrl").
describe(Endpoint, <<"https://", _/binary>> = Uri) ->
describe(Endpoint, <<"<", Uri/binary, ">">>);
describe(Endpoint, <<"http://", _/binary>> = Uri) ->
describe(Endpoint, <<"<", Uri/... | %% @doc A basic SPARQL client.
-module(sparql_client).
-export([
describe/2,
query/2,
query/3
]).
-include_lib("zotonic.hrl").
describe(Endpoint, <<"https://", _/binary>> = Uri) ->
describe(Endpoint, <<"<", Uri/binary, ">">>);
describe(Endpoint, <<"http://", _/binary>> = Uri) ->
describe(Endpoint... | Add plain JSON support to SPARQL client | [rdf] Add plain JSON support to SPARQL client
This is necessary for http://nl.dbpedia.org/sparql, which doesn't
return SELECT results in JSON-LD but in plain JSON.
| Erlang | apache-2.0 | driebit/ginger,driebit/ginger,driebit/ginger |
81e355983fc6225707292f5fba6e048a0f525257 | Erlang/bkk_crypt.erl | Erlang/bkk_crypt.erl | % BKK secure cipher module %
% Usage, from erl:
%% c(bkk_crypt).
%% bkk_crypt:encrypt("Haxxor protec, but he also attac").
-module(bkk_crypt).
-export([encrypt/1]).
encrypt(Message) ->
Message.
| %%% BKK secure cipher module %
%% Usage, from erl...
%%
%% - compile:
%%
%% > c(bkk_crypt).
%%
%% - run:
%%
%% > bkk_crypt:encrypt("Haxxor protec, but he also attac").
%%
%% - to run tests:
%%
%% > eunit:test(bkk_crypt).
%%
-module(bkk_crypt).
%% API
-export([encrypt/1]).
%% Tests
-include_lib("eunit/inc... | Add Erlang tests (EUNIT), improve comments and usage | Add Erlang tests (EUNIT), improve comments and usage
| Erlang | mit | moszinet/BKKCrypt,moszinet/BKKCrypt,moszinet/BKKCrypt,moszinet/BKKCrypt,moszinet/BKKCrypt,moszinet/BKKCrypt,moszinet/BKKCrypt,moszinet/BKKCrypt,moszinet/BKKCrypt,moszinet/BKKCrypt,moszinet/BKKCrypt,moszinet/BKKCrypt,moszinet/BKKCrypt,moszinet/BKKCrypt,moszinet/BKKCrypt,moszinet/BKKCrypt,moszinet/BKKCrypt,moszinet/BKKCr... |
eade7b1278bc562e14ce4d5de8ad609a8b512514 | src/elements/forms/element_button.erl | src/elements/forms/element_button.erl | % vim: sw=4 ts=4 et ft=erlang
% Nitrogen Web Framework for Erlang
% Copyright (c) 2008-2010 Rusty Klophaus
% See MIT-LICENSE for licensing information.
-module (element_button).
-include_lib ("wf.hrl").
-compile(export_all).
reflect() -> record_info(fields, button).
render_element(Record) ->
ID = Record#button.i... | % vim: sw=4 ts=4 et ft=erlang
% Nitrogen Web Framework for Erlang
% Copyright (c) 2008-2010 Rusty Klophaus
% See MIT-LICENSE for licensing information.
-module (element_button).
-include_lib ("wf.hrl").
-compile(export_all).
reflect() -> record_info(fields, button).
render_element(Record) ->
ID = Record#button.i... | Fix commas being removed from button values | Fix commas being removed from button values
| Erlang | mit | nitrogen/nitrogen_core,choptastic/nitrogen_core,stuart-thackray/nitrogen_core,SovereignPrime/nitrogen_core,stuart-thackray/nitrogen_core,choptastic/nitrogen_core,stuart-thackray/nitrogen_core,SovereignPrime/nitrogen_core,nitrogen/nitrogen_core,nitrogen/nitrogen_core,SovereignPrime/nitrogen_core,nitrogen/nitrogen_core,c... |
3db8e1973475cdcb6fe139a2d05d9c0600c3b87d | src/socket_util.erl | src/socket_util.erl | -module(socket_util).
-export([
acceptor_start/1,
acceptor_loop/1
]).
-export([
receiver_start/1,
receiver_loop/1
]).
-include("socket_rec.hrl").
acceptor_start(Socket) when is_port(Socket) ->
acceptor_start(#s_handler{socket = Socket, owner = self()});
acceptor_start(#s_handler{} = Handler) ->... | -module(socket_util).
-export([
acceptor_start/1,
acceptor_loop/1
]).
-export([
receiver_start/1,
receiver_loop/1
]).
-include("socket_rec.hrl").
acceptor_start(Socket) when is_port(Socket) ->
acceptor_start(#s_handler{socket = Socket, owner = self()});
acceptor_start(#s_handler{} = Handler) ->... | Make socket utility processes tail recursive | Make socket utility processes tail recursive
| Erlang | mit | yellow-sem/tjota |
1ffd0d8bc5e56465a902b7cc48ebb4638ca14f06 | include/rete.hrl | include/rete.hrl | %%=======================================================================
%% Rete data structures
%%=======================================================================
% An alpha node definition
-record(anode,
{id :: integer(),
wme_constraint :: fun( (term()) -> boolean() ),
bnode_ids :... | %%=======================================================================
%% Rete data structures
%%=======================================================================
% An alpha node definition
-record(anode,
{id :: integer(),
wme_constraint :: fun( (term()) -> boolean() ),
... | Add bnodes map containing substitutions. | Add bnodes map containing substitutions. | Erlang | apache-2.0 | vjache/elips |
f2fd1e35acc53e9ded41771ba209fadb75de2182 | src/alog_examples.erl | src/alog_examples.erl | -module(alog_examples).
-include("alog.hrl").
-export([
run_examples/0
]).
run_examples() ->
io:format("*** all priorities~n", []),
alog_parse_trans:load_config([{{mod,[?MODULE]}, {'=<', ?debug},[alog_tty]}]),
TestVar = test_var_value,
?DBG("test debug ~p", [TestVar]),
?INFO... | -module(alog_examples).
-include("alog.hrl").
-export([
run_examples/0
]).
run_examples() ->
io:format("*** all priorities~n", []),
alog_parse_trans:load_config([{{mod,[?MODULE]}, {'=<', ?debug},[alog_tty]}]),
TestVar = test_var_value,
?DBG("test debug ~p~n", [TestVar]),
?IN... | Add ~n to examples log messages | Add ~n to examples log messages
| Erlang | apache-2.0 | siberian-fast-food/alogger |
0c13dc2d6ff28501fa4e78644b1f21724205a2be | src/compiler/reia_classes.erl | src/compiler/reia_classes.erl | %
% reia_classes: Convert OOP features to Reia code
% Copyright (C)2010 Tony Arcieri
%
% Redistribution is permitted under the MIT license. See LICENSE for details.
%
-module(reia_classes).
-export([transform/2]).
-include("reia_nodes.hrl").
transform(Exprs, _Options) ->
reia_syntax:map_subtrees(fun transform/1, ... | %
% reia_classes: Convert OOP features to Reia code
% Copyright (C)2010 Tony Arcieri
%
% Redistribution is permitted under the MIT license. See LICENSE for details.
%
-module(reia_classes).
-export([transform/2]).
-include("reia_nodes.hrl").
transform(Exprs, _Options) ->
reia_syntax:map_subtrees(fun transform/1, ... | Build method table for classes | Build method table for classes
| Erlang | mit | beni55/reia,beni55/reia,tarcieri/reia,tarcieri/reia |
0c224518227a425429dd0f2632a11b3b1a52cc44 | apps/nitrogen/src/validators/validator_max_length.erl | apps/nitrogen/src/validators/validator_max_length.erl | % Nitrogen Web Framework for Erlang
% Copyright (c) 2008-2010 Rusty Klophaus
% Contributions from Torbjorn Tornkvist (tobbe@tornkvist.org)
% See MIT-LICENSE for licensing information.
-module (validator_max_length).
-include_lib ("wf.hrl").
-compile(export_all).
render_validator(TriggerPath, TargetPath, Record) ->
... | % Nitrogen Web Framework for Erlang
% Copyright (c) 2008-2010 Rusty Klophaus
% Contributions from Torbjorn Tornkvist (tobbe@tornkvist.org)
% See MIT-LICENSE for licensing information.
-module (validator_max_length).
-include_lib ("wf.hrl").
-compile(export_all).
render_action(Record) ->
TriggerPath= Record#max_l... | Fix max length validator, probably used older API | Fix max length validator, probably used older API
| Erlang | mit | joaohf/nitrogen,kevinmontuori/nitrogen,nitrogen/nitrogen,kevinmontuori/nitrogen,stuart-thackray/nitrogen,nitrogen/nitrogen,choptastic/nitrogen,stuart-thackray/nitrogen,choptastic/nitrogen,nitrogen/nitrogen,joaohf/nitrogen,joaohf/nitrogen,kevinmontuori/nitrogen,choptastic/nitrogen,stuart-thackray/nitrogen |
f9f75ba662c971208bac2c245def936e9f597d94 | src/inets_bridge_modules/inets_simple_bridge_anchor.erl | src/inets_bridge_modules/inets_simple_bridge_anchor.erl | -module(inets_simple_bridge_anchor).
-export ([do/1]).
do(Req) ->
Bridge = simple_bridge:make(inets, Req),
ReqPath = Bridge:path(),
case simple_bridge_util:is_static_path(inets, ReqPath) of
true ->
Bridge2 = Bridge:set_response_file(ReqPath),
Bridge2:build_response();
false ->
Handler = simple_bridge_... | -module(inets_simple_bridge_anchor).
-export ([do/1]).
do(Req) ->
Bridge = simple_bridge:make(inets, Req),
ReqPath = Bridge:path(),
case simple_bridge_util:is_static_path(inets, ReqPath) of
true ->
Bridge2 = sbw:set_response_file(ReqPath, Bridge),
sbw:build_response(Bridge2);
false ->
Handler = simple... | Remove pmod syntax in inets anchor | Remove pmod syntax in inets anchor
| Erlang | mit | choptastic/simple_bridge,nitrogen/simple_bridge,stuart-thackray/simple_bridge |
449c76e330972fc80695995ecb5e63506ffe5a20 | test/driver_tests.erl | test/driver_tests.erl | -module(driver_tests).
-include_lib("eunit/include/eunit.hrl").
load_test_() ->
[{setup, fun test_util:port_setup/0,
fun test_util:port_teardown/1,
[fun() ->
P = test_util:get_thing(),
?assert(is_port(P)),
erlang:unlink(P) end]}].
big_heap_test_() ->
[{setup, fun() -> test_ut... | -module(driver_tests).
-include_lib("eunit/include/eunit.hrl").
load_test_() ->
[{setup, fun test_util:port_setup/0,
fun test_util:port_teardown/1,
[fun() ->
P = test_util:get_thing(),
?assert(is_port(P)),
erlang:unlink(P) end]}].
big_heap_test_() ->
[{setup, fun() -> test_ut... | Fix warning (treated as error) about unused variable | Fix warning (treated as error) about unused variable
Signed-off-by: Peter Lemenkov <2f981fc861bda8c748898150c942841af4296212@gmail.com>
| Erlang | apache-2.0 | basho/erlang_js,zero778/erlang_js,systra/erlang_js,basho/erlang_js,basho/erlang_js,sameroom/erlang_js,sameroom/erlang_js,sameroom/erlang_js,cristianberneanu/erlang_js,zero778/erlang_js,systra/erlang_js,cristianberneanu/erlang_js,zero778/erlang_js |
15d803c4bb1a686e3cfd461e67d0497a6389cfb1 | modules/mod_survey/questions/survey_q_upload.erl | modules/mod_survey/questions/survey_q_upload.erl | %% @author Marc Worrell <marc@worrell.nl>
%% @copyright 2012 Marc Worrell
%% Copyright 2012 Marc Worrell
%%
%% 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/... | %% @author Marc Worrell <marc@worrell.nl>
%% @copyright 2012 Marc Worrell
%% Copyright 2012 Marc Worrell
%%
%% 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/... | Fix crash when viewing results with an upload question. | mod_survey: Fix crash when viewing results with an upload question.
| Erlang | apache-2.0 | erlanger-ru/erlanger-ru.meta,erlanger-ru/erlanger-ru.meta,erlanger-ru/erlanger-ru.meta,erlanger-ru/erlanger-ru.meta,erlanger-ru/erlanger-ru.meta |
0a70d531f6857c118d03e8344cbacf356b335dcb | problems/euler/0003-largest-prime-factor/ichi/factors.erl | problems/euler/0003-largest-prime-factor/ichi/factors.erl | -module(factors).
-export([lpf/1]).
lpf(Product) ->
factorise(Product, [], sqrt_primes(Product)).
factorise(1, [HF | _Factors], _Primes) ->
HF;
factorise(Product, _Factors, []) ->
Product;
factorise(Product, Factors, [HP | Primes]) when (Product rem HP) =:= 0 ->
%io:puts("%s %s %s %s", Product, Facto... | %% @author PurityControl
%% @copyright 2015 PurityControl
%% @doc Library to find the largest prime factor of a number.
-module(factors).
-export([lpf/1]).
%% @doc Returns the largest prime factor of a number. If the number is
%% prime then it returns itself
-spec(lpf(integer()) -> integer()).
lpf(Product) ->
fac... | Add edoc markup and specs for functions. | Add edoc markup and specs for functions.
| Erlang | mit | PurityControl/uchi-komi-erlang |
d8c6fffb422037326e98e4c4743138a7fe8ab317 | jukeboxsession.erl | jukeboxsession.erl | -module(jukeboxsession).
-export([initial_state/1, handler/3]).
-record(session, {username, ip}).
default_name() ->
"Anonymous Coward".
initial_state(IP) ->
#session{username = default_name(),
ip = IP}.
user_id(Session) ->
{Session#session.username, Session#session.ip}.
r_user_id(Session) ->
... | -module(jukeboxsession).
-export([initial_state/1, handler/3]).
-record(session, {username, ip}).
default_name(Session) ->
lists:flatten(io_lib:format("Anonymous Coward", [])).
initial_state(IP) ->
#session{username = default_name(#session{ip = IP}),
ip = IP}.
user_id(Session) ->
{Session#session.... | Allow anonymous name to be based on session data. | Allow anonymous name to be based on session data.
| Erlang | mit | tonyg/erlang-jukebox,tonyg/erlang-jukebox,tonyg/erlang-jukebox |
15489f1d3a44937a8fc9fd4163c4d3476618b57e | apps/cvmfs_services/src/cvmfs_fe.erl | apps/cvmfs_services/src/cvmfs_fe.erl | %%%-------------------------------------------------------------------
%%% This file is part of the CernVM File System.
%%%
%%% @doc cvmfs_fe - CVMFS repo services HTTP front-end
%%%
%%% @end
%%%-------------------------------------------------------------------
-module(cvmfs_fe).
-export([start_link/1, api_version/0... | %%%-------------------------------------------------------------------
%%% This file is part of the CernVM File System.
%%%
%%% @doc cvmfs_fe - CVMFS repo services HTTP front-end
%%%
%%% @end
%%%-------------------------------------------------------------------
-module(cvmfs_fe).
-export([start_link/1, api_version/0... | Fix compilation for Cowboy 2.0.0-rc.1 | Fix compilation for Cowboy 2.0.0-rc.1
| Erlang | bsd-3-clause | cvmfs/cvmfs_services,cvmfs/cvmfs_services |
b4a2246cb46ee959e578d7681d6117aeffa1002e | test/test_util.erl | test/test_util.erl | -module(test_util).
-export([port_setup/0, port_setup/1, port_teardown/1, null_teardown/1, get_thing/0]).
port_setup() ->
port_setup(8).
port_setup(Size) ->
{ok, P} = js_driver:new(8, Size),
start_thing_holder(P),
P.
port_teardown(P) ->
thing_holder ! stop,
erlang:port_connect(P, self()),
js_driver:... | -module(test_util).
-export([port_setup/0, port_setup/1, port_teardown/1, null_teardown/1, get_thing/0]).
port_setup() ->
port_setup(8).
port_setup(Size) ->
{ok, P} = js_driver:new(8, Size),
start_thing_holder(P),
P.
port_teardown(P) ->
thing_holder ! stop,
% it might take a while until the stop messa... | Fix race condition in tests | Fix race condition in tests
On a fast system, the tests might fail because the thing_holder process
could be still running after the stop message is sent. This hacks adds a
sleep after stop, to give enough time to the process to exit.
| Erlang | apache-2.0 | cristianberneanu/erlang_js,systra/erlang_js,cristianberneanu/erlang_js,systra/erlang_js |
570c270df44fe524e9e3883e02d239d4f0e4d628 | src/rinamo_app.erl | src/rinamo_app.erl | -module(rinamo_app).
-behaviour(application).
%% Application callbacks
-export([start/2, stop/1]).
%% ===================================================================
%% Application callbacks
%% ===================================================================
start(_StartType, _StartArgs) ->
case rinamo_con... | -module(rinamo_app).
-behaviour(application).
%% Application callbacks
-export([start/2, stop/1]).
%% ===================================================================
%% Application callbacks
%% ===================================================================
start(_StartType, _StartArgs) ->
case rinamo_c... | Set rinamo supervisor link to only be created if we can startup the application. Started the work or removing Webmachine dependency and migrating to cowboy as a standalone HTTP server to act as the rinamo API interface. | Set rinamo supervisor link to only be created if we can startup the application. Started the work or removing Webmachine dependency and migrating to cowboy as a standalone HTTP server to act as the rinamo API interface.
| Erlang | apache-2.0 | basho-labs/rinamo,basho-labs/rinamo,basho-labs/rinamo |
2d607eb43b324757f3a935f0f4363f9b39bdf590 | src/shotgun_sup.erl | src/shotgun_sup.erl | %% @hidden
-module(shotgun_sup).
-author(pyotrgalois).
-behaviour(supervisor).
-export([
start_link/0,
init/1
]).
-spec start_link() -> {ok, pid()}.
start_link() ->
supervisor:start_link({local, ?MODULE}, ?MODULE, []).
-spec init(term()) ->
{ok, {supervisor:sup_flags(), [supervisor... | %% @hidden
-module(shotgun_sup).
-author(pyotrgalois).
-behaviour(supervisor).
-export([
start_link/0,
init/1
]).
-spec start_link() -> {ok, pid()}.
start_link() ->
supervisor:start_link({local, ?MODULE}, ?MODULE, []).
-spec init(term()) ->
{ok, {{supervisor:strategy(), non_n... | Fix dialyzer warning message for R17 version | Fix dialyzer warning message for R17 version
| Erlang | apache-2.0 | inaka/shotgun |
15f59ce6bc4e5ff677502a8bce0943d733d2c341 | src/riak_core_cli_registry.erl | src/riak_core_cli_registry.erl | %% -------------------------------------------------------------------
%%
%% Copyright (c) 2014 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 obtain
... | %% -------------------------------------------------------------------
%%
%% Copyright (c) 2014 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 obtain
... | Add cluster_cli to cli registry | Add cluster_cli to cli registry
| Erlang | apache-2.0 | Kyorai/riak_core |
b11666e376d594fea54f314289c82a2f5edaeaf0 | src/firstapp_app.erl | src/firstapp_app.erl | %%%-------------------------------------------------------------------
%% @doc firstapp public API
%% @end
%%%-------------------------------------------------------------------
-module('firstapp_app').
-behaviour(application).
%% Application callbacks
-export([start/2
,stop/1]).
%%=========================... | %%%-------------------------------------------------------------------
%% @doc firstapp public API
%% @end
%%%-------------------------------------------------------------------
-module('firstapp_app').
-behaviour(application).
%% Application callbacks
-export([start/0
,start/2
,stop/1]).
%%========... | Add start function (needed to run application via erl -s) | Add start function (needed to run application via erl -s)
| Erlang | bsd-3-clause | mpraglowski/first_erlang_app |
e980abf4dc013b90267dbf09d74c0414688314c1 | src/teles_data_manager_sup.erl | src/teles_data_manager_sup.erl | -module(teles_data_manager_sup).
-behaviour(supervisor).
-export([start_link/1, init/1, start_agents/2]).
start_link(NumAgents) ->
supervisor:start_link({local, ?MODULE}, ?MODULE, [NumAgents]).
init([NumAgents]) ->
Manager = {data_manager, {teles_data_manager, start_link, [NumAgents]},
permanent, ... | -module(teles_data_manager_sup).
-behaviour(supervisor).
-export([start_link/1, init/1, start_agents/2]).
start_link(NumAgents) ->
supervisor:start_link({local, ?MODULE}, ?MODULE, [NumAgents]).
init([NumAgents]) ->
Manager = {data_manager, {teles_data_manager, start_link, [NumAgents]},
permanent, ... | Return if the process is new or exists | Return if the process is new or exists
| Erlang | bsd-3-clause | armon/teles,armon/teles |
a17e1d8f9ce1ea886a39af03b8b2e14e8110fce9 | src/actions/action_event.erl | src/actions/action_event.erl | -module(action_event).
-author('Maxim Sokhatsky').
-include_lib("n2o/include/wf.hrl").
-compile(export_all).
render_action(#event{source=undefined}) -> [];
render_action(#event{postback=Postback,actions=Actions,source=Source,target=Control,type=Type,delegate=Delegate}) ->
Data = "[" ++ string:join([begin
... | -module(action_event).
-author('Maxim Sokhatsky').
-include_lib("n2o/include/wf.hrl").
-compile(export_all).
render_action(#event{source=undefined}) -> [];
render_action(#event{postback=Postback,actions=Actions,source=Source,target=Control,type=Type,delegate=Delegate}) ->
Data = "[" ++ string:join([begin
... | Read checked property of checkboxes | Read checked property of checkboxes
| Erlang | mit | beni55/n2o,kongx73/n2o,cystbear/n2o,aseidlitz/n2o,kongx73/n2o,beni55/n2o,fxmy/n2o,pap/n2o,dreyk/n2o,aseidlitz/n2o,fxmy/n2o,leikind/n2o,alttagil/n2o,pap/n2o,alttagil/n2o,leikind/n2o,fxmy/n2o,aseidlitz/n2o,alttagil/n2o,beni55/n2o,cystbear/n2o,pap/n2o |
dcc7c908880b7881a1b3476cc486b3d311f3a871 | src/elli_test.erl | src/elli_test.erl | %%% @author Andreas Hasselberg <andreas.hasselberg@gmail.com>
%%% @doc
%%%
%%% @end
-module(elli_test).
-include("../include/elli.hrl").
-export([call/5]).
call(Method, RawPath, RequestHeaders, RequestBody, Opts) ->
Callback = proplists:get_value(callback, Opts),
CallbackArgs = proplists:get_value(callback_... | %%% @author Andreas Hasselberg <andreas.hasselberg@gmail.com>
%%% @doc
%%%
%%% @end
-module(elli_test).
-include("../include/elli.hrl").
-export([call/5]).
call(Method, RawPath, RequestHeaders, RequestBody, Opts) ->
Callback = proplists:get_value(callback, Opts),
CallbackArgs = proplists:get_value(callback_... | Call with export to make the example easier to copy. | Call with export to make the example easier to copy.
| Erlang | mit | K2InformaticsGmbH/elli,elli-lib/elli,knutin/elli,K2InformaticsGmbH/elli,elli-lib/elli,odo/elli,tsloughter/elli,tsloughter/elli,odo/elli,knutin/elli |
6bab3c86d2850c04fc31050c5d75acfc43545c0f | priv/templates/simpleapp_sup.erl | priv/templates/simpleapp_sup.erl |
-module({{appid}}_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({{appid}}_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]}).
%% =========================================================... | Remove leading empty line from a template | Remove leading empty line from a template
| Erlang | apache-2.0 | bsmr-erlang/rebar,macintux/rebar,zugolosian/rebar3,lrascao/rebar3,K2InformaticsGmbH/rebar,processone/rebar3,rebar/rebar,kellymclaughlin/rebar3,K2InformaticsGmbH/rebar,fabiankrol/rebar3,wcy123/rebar,K2InformaticsGmbH/rebar,matwey/rebar,shkumagai/rebar,paulo-ferraz-oliveira/rebar,norton/rebar3,norton/rebar,choptastic/reb... |
06298c8b16dd679146dc8dae06d2b1e02d180b50 | src/builtins/Tuple.erl | src/builtins/Tuple.erl | -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). | -module('Tuple').
-export([call/4]).
call(Tuple, '[]', {Index}, _Block) ->
if
Index < 0 -> element(tuple_size(Tuple) + Index + 1, Tuple);
true -> element(Index + 1, Tuple)
end;
call(Tuple, to_s, _Args, _Block) ->
List = tuple_to_list(Tuple),
lists:flatten(["(", string:join([convert(Elem) || Elem ... | Support for negative tuple indices | Support for negative tuple indices
| Erlang | mit | beni55/reia,beni55/reia,tarcieri/reia,tarcieri/reia |
ed3454670cf960d217e2f38443ed3870bd452c93 | src/couch_log.erl | src/couch_log.erl | % Licensed under the Apache License, Version 2.0 (the "License"); you may not
% use this file except in compliance with the License. You may obtain a copy of
% the License at
%
% http://www.apache.org/licenses/LICENSE-2.0
%
% Unless required by applicable law or agreed to in writing, software
% distributed under the ... | % Licensed under the Apache License, Version 2.0 (the "License"); you may not
% use this file except in compliance with the License. You may obtain a copy of
% the License at
%
% http://www.apache.org/licenses/LICENSE-2.0
%
% Unless required by applicable law or agreed to in writing, software
% distributed under the ... | Change API to function per level | Change API to function per level
| Erlang | apache-2.0 | fkaempfer/couchdb,fkaempfer/couchdb,fkaempfer/couchdb,fkaempfer/couchdb,fkaempfer/couchdb,fkaempfer/couchdb |
0cb5e2a5d208428e7819f0ff29c69f36c427fc6f | services/service_goldenage_login.erl | services/service_goldenage_login.erl | -module(service_goldenage_login).
-export([process_post/2]).
-include_lib("zotonic.hrl").
process_post(_, Context) ->
Email = z_context:get_q("email", Context),
Name = z_context:get_q("name", Context),
SudoContext = z_acl:sudo(Context),
UID = case m_identity:lookup_by_type_and_key(email_only, Email... | -module(service_goldenage_login).
-export([process_post/2]).
-include_lib("zotonic.hrl").
process_post(_, Context) ->
Email = z_context:get_q("email", Context),
Name = z_context:get_q("name", Context),
SudoContext = z_acl:sudo(Context),
UID = case m_identity:lookup_by_type_and_key(email_only, Email... | Add avatar upload to user login call | Add avatar upload to user login call
| Erlang | mit | arjan/goldenage-backend |
f39fba1c87cf2d1d2293417656c0fa7b67eee532 | syntax_checkers/erlang/erlang_check_file.erl | syntax_checkers/erlang/erlang_check_file.erl | #!/usr/bin/env escript
-export([main/1]).
main([FileName| LibDirs=[_|_]]) ->
code:add_pathsa(LibDirs),
main([FileName]);
main([FileName]) ->
compile:file(FileName, [warn_obsolete_guard,
warn_unused_import,
warn_shadow_vars,
... | #!/usr/bin/env escript
-export([main/1]).
main([FileName]) ->
LibDirs = filelib:wildcard("{lib,deps}/*/ebin"),
compile(FileName, LibDirs);
main([FileName | LibDirs]) ->
compile(FileName, LibDirs).
compile(FileName, LibDirs) ->
Root = get_root(filename:dirname(FileName)),
ok = code:add_pathsa(LibDi... | Add support for nested dirs inside src/ | Add support for nested dirs inside src/
When having nested directories (for instance `src/protocol/tm_protocol.erl`)
autocompilation would fail. This fix adds the abspath of all depdencies to
the codepath and sets compile option {i, _} to support both `deps/` and `lib/`.
| Erlang | apache-2.0 | wezhang/vim-setup,wezhang/vim-setup,wezhang/vim-setup,wezhang/vim-setup,wezhang/vim-setup,wezhang/vim-setup,nikmartin/dotfiles |
22ed3549ac5d481e0490afcc97b440b2f3d70888 | include/clojerl.hrl | include/clojerl.hrl | %% nil
-define(NIL, undefined).
%% Type
-define(TYPE, '7ype').
-define(M, ?MODULE).
-define(CONSTRUCTOR, '__new__').
-define(UNBOUND, '__unbound__').
-define(IS_TYPE(X), (is_map(X) andalso maps:is_key(?TYPE, X))).
-define(MATCH_TYPE, #{?TYPE := _}).
-define(MATCH_TYPE(X), #{?TYPE := X}).
| %% nil
-define(NIL, undefined).
%% Type
-define(TYPE, '__type__').
-define(M, ?MODULE).
-define(CONSTRUCTOR, '__new__').
-define(UNBOUND, '__unbound__').
-define(IS_TYPE(X), (is_map(X) andalso maps:is_key(?TYPE, X))).
-define(MATCH_TYPE, #{?TYPE := _}).
-define(MATCH_TYPE(X), #{?TYPE := X}).
| Change the atom used as a type tag | Change the atom used as a type tag
| Erlang | epl-1.0 | jfacorro/clojerl |
a0f536434cce94e32eb893bf4b4bf994dc24054f | test/erlang/erlang_call_test.erl | test/erlang/erlang_call_test.erl | -module(erlang_call_test).
-export([match/0]).
-include_lib("eunit/include/eunit.hrl").
match() -> abs.
erlang_atoms_test() ->
{abs, []} = elixir:eval("Erlang.abs").
erlang_call_test() ->
{1, []} = elixir:eval("Erlang.erlang.abs(-1)"),
{_, []} = elixir:eval("Erlang.dict.new"),
{_, []} = elixir:eval("... | -module(erlang_call_test).
-export([match/0]).
-include_lib("eunit/include/eunit.hrl").
match() -> abs.
erlang_atoms_test() ->
{abs, []} = elixir:eval("Erlang.abs").
erlang_tuple_test() ->
{[erlang,1,2], []} = elixir:eval("{ :erlang, 1, 2 }.tuple_to_list").
erlang_local_test() ->
{1, []} = elixir:eval(":abs.(... | Add more dynamic calls tests. | Add more dynamic calls tests.
| Erlang | apache-2.0 | elixir-lang/elixir,beedub/elixir,antipax/elixir,pedrosnk/elixir,kelvinst/elixir,gfvcastro/elixir,lexmag/elixir,joshprice/elixir,ggcampinho/elixir,gfvcastro/elixir,antipax/elixir,kelvinst/elixir,kimshrier/elixir,ggcampinho/elixir,lexmag/elixir,pedrosnk/elixir,beedub/elixir,michalmuskala/elixir,kimshrier/elixir |
6bcbbf7526a9ac426e627826f5304ed1c3051f2a | priv/templates/sup.erl | priv/templates/sup.erl | %%%-------------------------------------------------------------------
%% @doc {{name}} top level supervisor.
%% @end
%%%-------------------------------------------------------------------
-module({{name}}_sup).
-behaviour(supervisor).
%% API
-export([start_link/0]).
%% Supervisor callbacks
-export([init/1]).
-def... | %%%-------------------------------------------------------------------
%% @doc {{name}} top level supervisor.
%% @end
%%%-------------------------------------------------------------------
-module({{name}}_sup).
-behaviour(supervisor).
%% API
-export([start_link/0]).
%% Supervisor callbacks
-export([init/1]).
-def... | Use maps for child spec example | Use maps for child spec example | Erlang | apache-2.0 | djnym/rebar3,lrascao/rebar3,saleyn/rebar3,rebar/rebar3,ferd/rebar3,rebar/rebar3,vladdu/rebar3,erlang/rebar3,tsloughter/rebar3 |
c8615528eebabee53382ced8fd7821085ce1a8b3 | td/challenge295/pacman.erl | td/challenge295/pacman.erl | -module(pacman).
-export([getMaxPacgums/0]).
getNumberOfMoves({ok, [N]}) ->
N;
getNumberOfMoves(_) ->
invalid_number_of_moves.
getMaxPacgums() ->
getNumberOfMoves(io:fread("", "~d")).
| -module(pacman).
-export([getMaxPacgums/0]).
getNumberOfMoves({ok, [N]}) ->
N;
getNumberOfMoves(_) ->
invalid_number_of_moves.
getFields() ->
io:fread("", "~s").
handleNumberOfMoves(invalid_number_of_moves) ->
void;
handleNumberOfMoves(_) ->
getFields().
getMaxPacgums() ->
N = getNumberOfMoves(io:fread("", ... | Add validate input number to not continue | Add validate input number to not continue
| Erlang | mit | NadzwyczajnaGrupaRobocza/papuc_exercises,NadzwyczajnaGrupaRobocza/papuc_exercises |
d91e2c3505fdabc2a0f304aee346334125b17721 | src/oc_chef_wm_app.erl | src/oc_chef_wm_app.erl | %% -*- erlang-indent-level: 4;indent-tabs-mode: nil; fill-column: 92 -*-
%% ex: ts=4 sw=4 et
%% @author Kevin Smith <kevin@opscode.com>
%% @copyright 2011-2012 Opscode Inc.
-module(oc_chef_wm_app).
-behaviour(application).
%% Application callbacks
-export([start/2, stop/1]).
%% =====================================... | %% -*- erlang-indent-level: 4;indent-tabs-mode: nil; fill-column: 92 -*-
%% ex: ts=4 sw=4 et
%% @author Kevin Smith <kevin@opscode.com>
%% @copyright 2011-2012 Opscode Inc.
-module(oc_chef_wm_app).
-behaviour(application).
%% Application callbacks
-export([start/2, stop/1]).
%% =====================================... | Use the right name for the supervisor module | Use the right name for the supervisor module
| Erlang | apache-2.0 | juliandunn/chef-server-1,charlesjohnson/chef-server,juliandunn/chef-server-1,rmoorman/chef-server,juliandunn/chef-server-1,marcparadise/chef-server,stephenbm/chef-server,Minerapp/chef-server,chef/chef-server,juliandunn/chef-server-1,Minerapp/chef-server,rmoorman/chef-server,vladuemilian/chef-server,charlesjohnson/chef-... |
8336252ae8140486b051e1c7f5dc202e0b850cb3 | src/spread_topic_propagator.erl | src/spread_topic_propagator.erl | -module(spread_topic_propagator).
-export([propagate/1]).
-spec propagate(spread_event:event()) -> [any()].
propagate(Event) ->
Locals = propagate_locally(Event),
Outsides = propagate_outside(Event),
Locals ++ Outsides.
propagate_outside(Event) ->
%% Push to targets
{ok, Targets} = application:ge... | -module(spread_topic_propagator).
-export([propagate/1]).
-spec propagate(spread_event:event()) -> [any()].
propagate(Event) ->
Locals = propagate_locally(Event),
Outsides = propagate_outside(Event),
Locals ++ Outsides.
propagate_outside(Event) ->
%% Push to targets
case application:get_env(sprea... | Support no propagation server case | Support no propagation server case
| Erlang | bsd-3-clause | Littlelies/spread |
4857fc7321934e64fdf64014869e798910f0894d | src/logplex_syslog_utils.erl | src/logplex_syslog_utils.erl | %% @copyright Geoff Cant
%% @author Geoff Cant <nem@erlang.geek.nz>
%% @version {@vsn}, {@date} {@time}
%% @doc Syslog message formatting utilities.
%% @end
-module(logplex_syslog_utils).
-export([to_msg/1
,frame/1]).
-type syslog_msg() :: {0..128, 0..7,
Time::iolist(), Source::iolist(... | %% @copyright Geoff Cant
%% @author Geoff Cant <nem@erlang.geek.nz>
%% @version {@vsn}, {@date} {@time}
%% @doc Syslog message formatting utilities.
%% @end
-module(logplex_syslog_utils).
-export([to_msg/1
,frame/1]).
-type syslog_msg() :: {0..128, 0..7,
Time::iolist(), Source::iolist(... | Fix a bug in syslog message encoding. | Fix a bug in syslog message encoding. | Erlang | mit | mkrysiak/logplex,srid/logplex,voidlock/logplex |
baa36e3b13a2011a4581bf92d20cca305e3dbe63 | Erlang/bkk_crypt.erl | Erlang/bkk_crypt.erl | % BKK secure chiper module %
% Usage, from erl:
%% c(bkk_crypt).
%% bkk_crypt:encrypt("Haxxor protec, but he also attac").
-module(bkk_crypt).
-export([encrypt/1]).
encrypt(Message) ->
Message.
| % BKK secure cipher module %
% Usage, from erl:
%% c(bkk_crypt).
%% bkk_crypt:encrypt("Haxxor protec, but he also attac").
-module(bkk_crypt).
-export([encrypt/1]).
encrypt(Message) ->
Message.
| Fix typo in Erlang module | Fix typo in Erlang module
| Erlang | mit | moszinet/BKKCrypt,moszinet/BKKCrypt,moszinet/BKKCrypt,moszinet/BKKCrypt,moszinet/BKKCrypt,moszinet/BKKCrypt,moszinet/BKKCrypt,moszinet/BKKCrypt,moszinet/BKKCrypt,moszinet/BKKCrypt,moszinet/BKKCrypt,moszinet/BKKCrypt,moszinet/BKKCrypt,moszinet/BKKCrypt,moszinet/BKKCrypt,moszinet/BKKCrypt,moszinet/BKKCrypt,moszinet/BKKCr... |
1f8f0d4fdda67921222ee1669ad0865095cd2752 | _test/check-exercises.escript | _test/check-exercises.escript | #! /usr/bin/env escript
main( [] ) ->
Examples = filelib:wildcard( "*/example.erl" ),
Modules = [{X, compile(X)} || X <- Examples],
[compile_tests(X) || X <- Modules],
Results = [run_tests(X) || X <- Modules],
erlang:halt( erlang:length([X || X <- Results, X =:= ok]) );
main( _ ) -> usage().
compile( File ) -... | #! /usr/bin/env escript
main( [] ) ->
Examples = filelib:wildcard( "*/example.erl" ),
Modules = [{X, compile(X)} || X <- Examples],
[compile_tests(X) || X <- Modules],
Results = [run_tests(X) || X <- Modules],
erlang:halt( erlang:length([X || X <- Results, X =/= ok]) );
main( _ ) -> usage().
compile( File ) ->
... | Check for failures and return them. | Check for failures and return them.
The happy path is no failures and the script returns 0 ie success.
| Erlang | mit | lfex/xlfe,barberj/xerlang,exercism/xerlang,NobbZ/xerlang,exercism/xlfe,tmcgilchrist/xerlang,macintux/xerlang |
91ebc3e71a1d833c22713c06cae4bc1bf4494893 | apps/metric_vnode/src/metric_io_worker.erl | apps/metric_vnode/src/metric_io_worker.erl | -module(metric_io_worker).
-behaviour(riak_core_vnode_worker).
-include("metric_io.hrl").
-export([init_worker/3,
handle_work/3]).
-record(state, {index, node}).
%% ===================================================================
%% Public API
%% =========================================================... | -module(metric_io_worker).
-behaviour(riak_core_vnode_worker).
-include("metric_io.hrl").
-export([init_worker/3,
handle_work/3]).
-record(state, {index, node}).
%% ===================================================================
%% Public API
%% =========================================================... | Use one_off option for paralell reads | Use one_off option for paralell reads
| Erlang | mit | dalmatinerdb/dalmatinerdb |
68c1f827f77517938fafa1f60acb423c7772244a | src/wilcog_util.erl | src/wilcog_util.erl | -module(wilcog_util).
-exports([is_proplist/1]).
is_proplist([]) -> true;
is_proplist([{K,_}|R]) when is_atom(K) -> is_proplist(R);
is_proplist(_) -> false.
| -module(wilcog_util).
-exports([is_proplist/1]).
%% Code was borrowed from
%% https://code.google.com/p/zotonic/source/browse/src/support/z_utils.erl?r=d9da1b9de75c2567aca49a22548e05c89808d94a
is_proplist([]) -> true;
is_proplist([{K,_}|R]) when is_atom(K) -> is_proplist(R);
is_proplist(_) -> false.
| Add note about borrowed code | Add note about borrowed code
| Erlang | mit | HashNuke/rotor |
ffd4f32c5d9549329800abf0354eb2992b633cbb | src/oauth1_http_header_authorization_parser.yrl | src/oauth1_http_header_authorization_parser.yrl | Nonterminals
oauth_params pairs pair.
Terminals
oauth comma text equals quote.
Rootsymbol
oauth_params.
oauth_params -> oauth pairs : '$2'.
pairs -> pair : ['$1'].
pairs -> pair comma pairs : ['$1' | '$3'].
pair -> text equals quote text quote :
{_Name, _Line, Key} = '$1',
{_Name, _Line, Val... | Nonterminals
oauth_params pairs pair.
Terminals
oauth comma text equals quote.
Rootsymbol
oauth_params.
oauth_params -> oauth : [].
oauth_params -> oauth pairs : '$2'.
pairs -> pair : ['$1'].
pairs -> pair comma pairs : ['$1' | '$3'].
pair -> text equals quote text quote :
{_Name, _Line, K... | Handle a case of empty parameters in Authorization header. | Handle a case of empty parameters in Authorization header.
| Erlang | mit | ibnfirnas/oauth1_core |
7057a7acd1e8613530d9d4c4a5b84a38d38adcac | src/erlang/lib/dnsresolvs.erl | src/erlang/lib/dnsresolvs.erl | %
% src/erlang/lib/dnsresolvs.erl
% =============================================================================
% DNS Resolver Daemon (dnsresolvd). Version 0.1
% =============================================================================
% A daemon that performs DNS lookups for the given hostname
% passed in an HTT... | %
% src/erlang/lib/dnsresolvs.erl
% =============================================================================
% DNS Resolver Daemon (dnsresolvd). Version 0.1
% =============================================================================
% A daemon that performs DNS lookups for the given hostname
% passed in an HTT... | Use canonical "behaviour" module tag, though both spellings "-iour" and "-ior" are accepted. | cowboy/erlang: Use canonical "behaviour" module tag, though both spellings "-iour" and "-ior" are accepted.
| Erlang | mit | rgolubtsov/dnsresolvd-multilang,rgolubtsov/dnsresolvd-multilang,rgolubtsov/dnsresolvd-multilang,rgolubtsov/dnsresolvd-multilang,rgolubtsov/dnsresolvd-multilang,rgolubtsov/dnsresolvd-multilang,rgolubtsov/dnsresolvd-multilang |
4722ba7af7f4860ab7d8523d0c4658099177c2fd | erlang/printer.erl | erlang/printer.erl | -module(printer).
-export([print_server/0]).
print_server() ->
receive
shutdown ->
io:format("sgsdgsdgsd~n"),
ok;
N ->
io:format("~p ", [N]),
print_server()
end.
| -module(printer).
-export([print_server/0]).
print_server() ->
receive
shutdown ->
ok;
N ->
io:format("~p ", [N]),
print_server()
end.
| Remove a line that did not belong | Remove a line that did not belong
| Erlang | mit | rtoal/ple,rtoal/ple,rtoal/polyglot,rtoal/polyglot,rtoal/ple,rtoal/ple,rtoal/polyglot,rtoal/ple,rtoal/polyglot,rtoal/polyglot,rtoal/polyglot,rtoal/ple,rtoal/ple,rtoal/ple,rtoal/polyglot,rtoal/ple,rtoal/polyglot,rtoal/ple,rtoal/polyglot,rtoal/ple,rtoal/polyglot,rtoal/ple,rtoal/ple,rtoal/ple,rtoal/ple,rtoal/polyglot,rtoal... |
ab9bbcdfd79197a0d19f8a3356e5749b7ccb70d3 | src/riak_moss_passthru_auth.erl | src/riak_moss_passthru_auth.erl | %% -------------------------------------------------------------------
%%
%% Copyright (c) 2007-2011 Basho Technologies, Inc. All Rights Reserved.
%%
%% -------------------------------------------------------------------
-module(riak_moss_passthru_auth).
-behavior(riak_moss_auth).
-include("riak_moss.hrl").
-expor... | %% -------------------------------------------------------------------
%%
%% Copyright (c) 2007-2011 Basho Technologies, Inc. All Rights Reserved.
%%
%% -------------------------------------------------------------------
-module(riak_moss_passthru_auth).
-behavior(riak_moss_auth).
-include("riak_moss.hrl").
-expor... | Change func parameter to be wrapped in list | Change func parameter to be wrapped in list
AZ871
| Erlang | apache-2.0 | laurenrother/riak_cs,dragonfax/riak_cs,basho/riak_cs,basho/riak_cs,GabrielNicolasAvellaneda/riak_cs,laurenrother/riak_cs,basho/riak_cs_lfs,dragonfax/riak_cs,yangchengjian/riak_cs,dragonfax/riak_cs,basho/riak_cs_report,GabrielNicolasAvellaneda/riak_cs,laurenrother/riak_cs,basho/riak_cs,dragonfax/riak_cs,GabrielNicolasAv... |
bf49faaa8e880f0e370948bfcb8341821f4a1015 | src/riaknostic.erl | src/riaknostic.erl | -module(riaknostic).
-export([main/1]).
main(Config) ->
application:load(riaknostic),
io:format("Fetching riak data...~n"),
Ping = net_adm:ping('riaksearch@127.0.0.1'),
case Ping of
pang ->
io:format("Couldn't reach the local Riak node.~n");
pong ->
[Node|_] = nodes(),
Ria... | -module(riaknostic).
-export([main/1]).
main(Config) ->
application:load(riaknostic),
io:format("Fetching riak data...~n"),
Ping = net_adm:ping('riaksearch@127.0.0.1'),
case Ping of
pang ->
io:format("Couldn't reach the local Riak node.~n");
pong ->
[Node|_] = nodes(),
Ria... | Remove io:format that's broken anyway. | Remove io:format that's broken anyway.
| Erlang | apache-2.0 | basho/riaknostic,mk1s/riaknostic |
8c04b4eb0f19f14a3d07915d0ef98d1cc3454b6b | src/elements/forms/element_radiogroup.erl | src/elements/forms/element_radiogroup.erl | % vim: sw=4 ts=4 et ft=erlang
% Nitrogen Web Framework for Erlang
% Copyright (c) 2008-2010 Rusty Klophaus
% See MIT-LICENSE for licensing information.
-module (element_radiogroup).
-include("wf.hrl").
-export([
reflect/0,
render_element/1
]).
-spec reflect() -> [atom()].
reflect() -> record_info(fields, radi... | % vim: sw=4 ts=4 et ft=erlang
% Nitrogen Web Framework for Erlang
% Copyright (c) 2008-2010 Rusty Klophaus
% See MIT-LICENSE for licensing information.
-module (element_radiogroup).
-include("wf.hrl").
-export([
reflect/0,
render_element/1
]).
-spec reflect() -> [atom()].
reflect() -> record_info(fields, radi... | Remove unnecessary rendering timer in radiogroup | Remove unnecessary rendering timer in radiogroup
| Erlang | mit | nitrogen/nitrogen_core,choptastic/nitrogen_core,choptastic/nitrogen_core,nitrogen/nitrogen_core,nitrogen/nitrogen_core,nitrogen/nitrogen_core,choptastic/nitrogen_core |
e49f9b2f0d93ca1ea7ebe0e631b7c624a555bf7d | lib/bookshelf_wi/src/bksw_req.erl | lib/bookshelf_wi/src/bksw_req.erl | %% -*- erlang-indent-level: 4;indent-tabs-mode: nil; fill-column: 92 -*-
%% ex: ts=4 sw=4 et
%% @author Tim Dysinger <dysinger@opscode.com>
%% @copyright Copyright 2012 Opscode, Inc.
-module(bksw_req).
-export([with_amz_request_id/1, with_etag/2]).
-include_lib("cowboy/include/http.hrl").
%%=========================... | %% -*- erlang-indent-level: 4;indent-tabs-mode: nil; fill-column: 92 -*-
%% ex: ts=4 sw=4 et
%% @author Tim Dysinger <dysinger@opscode.com>
%% @copyright Copyright 2012 Opscode, Inc.
-module(bksw_req).
-export([with_amz_request_id/1, with_etag/2]).
-include_lib("cowboy/include/http.hrl").
%%=========================... | Add docs to with_amz_request_id to clarify uniqueness | Add docs to with_amz_request_id to clarify uniqueness
| Erlang | apache-2.0 | rmoorman/chef-server,charlesjohnson/chef-server,juliandunn/chef-server-1,rmoorman/chef-server,marcparadise/chef-server,Minerapp/chef-server,stephenbm/chef-server,Minerapp/chef-server,juliandunn/chef-server-1,poliva83/chef-server,marcparadise/chef-server,poliva83/chef-server,stephenbm/chef-server,poliva83/chef-server,ju... |
07dd824c34c8404eaad3c5a553d411cc7e9a9979 | apps/pre_data/src/pre_data_sup.erl | apps/pre_data/src/pre_data_sup.erl |
-module(pre_data_sup).
-behaviour(supervisor).
%% API
-export([start_link/0, stop/0]).
%% Supervisor callbacks
-export([init/1]).
%% Helper macro for declaring children of supervisor
-define(CHILD(I, Args, Type), {I, {I, start_link, Args}, permanent, 5000, Type, [I]}).
%% =========================================... |
-module(pre_data_sup).
-behaviour(supervisor).
%% API
-export([start_link/0, stop/0]).
%% Supervisor callbacks
-export([init/1]).
%% Helper macro for declaring children of supervisor
-define(CHILD(I, Args, Type), {I, {I, start_link, Args}, permanent, 5000, Type, [I]}).
%% =========================================... | Set up databae on start | Set up databae on start
| Erlang | mit | SkewedAspect/precursors-server,SkewedAspect/precursors-server,SkewedAspect/precursors-server,SkewedAspect/precursors-server |
d4c9ed0c40fc827a7e4d55053aca96753a370185 | src/erlcfg_parser.yrl | src/erlcfg_parser.yrl | Nonterminals
assignments assignment key value data elements element.
Terminals
integer float atom quoted_atom string bool variable '=' ';' '{' '}' '(' ')' ','.
Rootsymbol assignments.
assignments -> assignment ';' assignments : ['$1', '$3'].
assignments -> assignment : ['$1'].
assignments -> '$empty' : [].
assignm... | Nonterminals
config items item assignment block key value data list elements element.
Terminals
integer float atom quoted_atom string bool variable '=' ';' '{' '}' '(' ')' ','.
Rootsymbol config.
config -> '$empty' : [].
config -> items : '$1'.
items -> item : ['$1'].
items -> item items: ['$1', '$2'].
item -> bl... | Remove the need for '=' and ';' in the block syntax. | Remove the need for '=' and ';' in the block syntax.
Also, make the grammer more readable and rewrite the earlier
parts of the grammer to remove shift/reduce errors
| Erlang | bsd-3-clause | saleyn/erlcfg |
55972b0ba995a191a5f9ad61b1bc8b6a90e7b578 | src/rinamo_app.erl | src/rinamo_app.erl | -module(rinamo_app).
-behaviour(application).
%% Application callbacks
-export([start/2, stop/1]).
%% ===================================================================
%% Application callbacks
%% ===================================================================
start(_StartType, _StartArgs) ->
case rinamo_c... | -module(rinamo_app).
-behaviour(application).
%% Application callbacks
-export([start/2, stop/1]).
%% ===================================================================
%% Application callbacks
%% ===================================================================
start(_StartType, _StartArgs) ->
case rinamo_c... | Fix start_http(s) arity and convert string IP to tuple IP. | Fix start_http(s) arity and convert string IP to tuple IP.
| Erlang | apache-2.0 | basho-labs/rinamo,basho-labs/rinamo,basho-labs/rinamo |
b8e752353c78f4f19c569675b3ba776f0f5ce680 | include/erlcfg.hrl | include/erlcfg.hrl | -record(node, {
name,
child,
next=nil}).
-record(set, {
key,
value,
next=nil}).
-record(get, {
address}).
-record(cons, {
head,
tail=nil}).
| Define record types for the different AST node types | Define record types for the different AST node types
| Erlang | bsd-3-clause | saleyn/erlcfg | |
01fc924abcc79864f73779660d7aeb1acd25db87 | src/erl_reader.hrl | src/erl_reader.hrl | -record(er_feed,
{id,
feed,
uri,
lastUpdated,
nextCheck,
entries=gb_sets:new(),
users=[]}).
-record(er_entry,
{title,
date,
link,
content
}).
| -record(er_feed,
{id,
feed,
uri,
lastUpdated,
nextCheck,
entries=[],
users=[]}).
-record(er_entry,
{title,
date,
link,
content
}).
| Use list, rather than gb_set | Use list, rather than gb_set
| Erlang | unlicense | grahamrhay/erl_reader |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.