code
stringlengths
114
1.05M
path
stringlengths
3
312
quality_prob
float64
0.5
0.99
learning_prob
float64
0.2
1
filename
stringlengths
3
168
kind
stringclasses
1 value
%%%------------------------------------------------------------------- %%% @author <NAME> %%% @copyright (C) 2020 ACK CYFRONET AGH %%% This software is released under the MIT license %%% cited in 'LICENSE.txt'. %%% @end %%%------------------------------------------------------------------- %%% @doc %%% This module MUST...
src/time/global_clock.erl
0.566019
0.581362
global_clock.erl
starcoder
-module(socket_example). -export([nano_get_url/0]). %% Why programming with sockets fun? Because it allows applications to interact with other machines on the Internet, which has far more potential than just performing local operations. %% In this chapter, we'll see how to program client and servers using TCP and UDP ...
elementary/sockets/socket_example.erl
0.661048
0.65055
socket_example.erl
starcoder
%% ----------------------------------------------------------------------------- %% %% The MIT License (MIT) %% %% Copyright (c) 2017 <NAME> %% %% Permission is hereby granted, free of charge, to any person obtaining a copy %% of this software and associated documentation files (the "Software"), to deal %% in the Softw...
src/map_digraph.erl
0.675444
0.415907
map_digraph.erl
starcoder
%%% @doc %%% Format date time values according to a Format Specification string %%% Format specifications are modeled after the .NET DateTime formats %%% See: %%% https://docs.microsoft.com/en-us/dotnet/standard/base-types/standard-date-and-time-format-strings %%% https://docs.microsoft.com/en-us/dotnet/stand...
src/time_utils.erl
0.58818
0.425546
time_utils.erl
starcoder
-module(matrix). -author('<EMAIL>'). % Copyright (c) 2011, <NAME> % All rights reserved. % Licensed under BSD license, see LICENSE for details. -export([tests_good_/0]). -export([mul/2, mul_vec/2]). -export([dot/2, blas_0/2, blas_0/3, blas_1/2, blas_1/3, blas_1/5]). tests_good_() -> M1 = [ [1.0,2.0,3.0], [4.0...
matrix.erl
0.517815
0.45647
matrix.erl
starcoder
-module(transducers). -export([compose/2, drop_while/1, filter/1, list/2, map/1, stateful/3]). -type reduction(A) :: {ok, A} | {halt, A}. -type reduction() :: reduction(any()). -type step(A) :: fun ((reduction(), A) -> reduction()). -type stateful_step(A) :: fun ((A, reduction(), any()) -> {A, reduction()}). -type fi...
src/transducers.erl
0.535584
0.570451
transducers.erl
starcoder
%%%---------------------------------------------------------------------------- %%% @author <NAME> <<EMAIL>> %%% @copyright 2012 University of St Andrews (See LICENCE) %%% @headerfile "skel.hrl" %%% %%% @doc This module contains Reduce skeleton initialization logic. %%% %%% A reduce skeleton is an implementation of a ...
src/sk_reduce.erl
0.565899
0.562237
sk_reduce.erl
starcoder
-module('tgen_triangle'). -behaviour(tgen). %% The Erlang track implementation is quite different from what the canonical data suggests, but does not actually run contrary to it. %% While the canonical data suggests three functions `equilateral`, `isosceles`, and `scalene` that return a boolean value, the Erlang %% t...
src/tgen_triangle.erl
0.826607
0.837021
tgen_triangle.erl
starcoder
%% ------------------------------------------------------------------- %% %% Copyright (c) 2014 Basho Technologies, Inc. All Rights Reserved. %% %% This Source Code Form is subject to the terms of the Mozilla Public %% License, v. 2.0. If a copy of the MPL was not distributed with this %% file, You can obtain on...
src/external/cloudi_x_exometer_core/src/exometer_report_tty.erl
0.628635
0.438364
exometer_report_tty.erl
starcoder
%%%----------------------------------------------------------------------------- %% Evaluate probabilistic accuracy of calculating inverse cumulative distritbution %% function. %% %% - Generate a random list: [{Weight: float, Node: binary}, ...] %% %% - Check that the number of times a node gets picked is roughly equal...
eqc/icdf_eqc.erl
0.576423
0.699921
icdf_eqc.erl
starcoder
-module(teal_lists). -export([is_flat/1, assert_is_flat/1, assert_is_flat/2, same_members/2, assert_same_members/2, assert_same_members/3, includes_members/2, assert_includes_members/2, assert_includes_members/3, assert_include/2, include/2, order/2, assert_order/2, assert_order/3 ...
src/teal_lists.erl
0.720762
0.639272
teal_lists.erl
starcoder
% 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 ...
vtree/src/vtree_delete.erl
0.682045
0.548129
vtree_delete.erl
starcoder
-module(parent). %%%------------------------------------------------------------------- %% @doc Functions for implementing a parent process. %% %% A parent process has the following properties: %% %% 1. It traps exits. %% 2. It tracks its children inside the process dictionary. %% 3. Before terminating, it stops its c...
src/parent.erl
0.55917
0.657676
parent.erl
starcoder
%%% %%% Copyright (c) 2021 <NAME> %%% All rights reserved. %%% Distributed under the terms of the MIT License. See the LICENSE file. %%% %%% SIP URI parser auxilary functions %%% -module(ersip_uri_parser_aux). -export([unquote_hex/1, split_scheme/1]). %%======================================================...
src/uri/ersip_uri_parser_aux.erl
0.504883
0.419053
ersip_uri_parser_aux.erl
starcoder
%% Copyright (c) 2016-2021 <NAME> %% %% 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...
src/lfe_types.erl
0.533884
0.509398
lfe_types.erl
starcoder
%% Copyright 2014 <NAME> %% %% 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...
src/binomial_heap.erl
0.602296
0.529446
binomial_heap.erl
starcoder
%% elephant player plays remembering every previous move of the opponent and calibrates probabilities accordingly. %% For example, if an opponent has drawn a rock in the past, probabilities for elephant to draw spock and paper %% increases while probabilities to draw lizard and scissors decrease. -module(rpsls_eleph...
src/players/rpsls_elephant_player.erl
0.559531
0.744378
rpsls_elephant_player.erl
starcoder
%%%--------------------------------------------------- %% @doc %% A time-based poller to periodically dispatch Telemetry events. %% %% A poller is a process start in your supervision tree with a list %% of measurements to perform periodically. On start it expects the %% period in milliseconds and a list of measurements...
astreu/deps/telemetry_poller/src/telemetry_poller.erl
0.713432
0.518485
telemetry_poller.erl
starcoder
%%%------------------------------------------------------------------------ %% Copyright 2021, OpenTelemetry Authors %% 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.o...
apps/opentelemetry_api/src/otel_propagator_baggage.erl
0.636014
0.439206
otel_propagator_baggage.erl
starcoder
%%%---------------------------------------------------------------------------- %%% Copyright Space-Time Insight 2017. All Rights Reserved. %%% %%% Licensed under the Apache License, Version 2.0 (the "License"); %%% you may not use this file except in compliance with the License. %%% You may obtain a copy of the Licens...
src/erleans_partitions.erl
0.59302
0.403802
erleans_partitions.erl
starcoder
-module(pollution). -author("tgargula"). -export([create_monitor/0, add_station/3, add_value/5, remove_value/4, get_one_value/4, get_station_mean/3, get_daily_mean/3, get_maximum_variation_station/2, get_station_variation/3, get_stats/1, get_key/2]). %% A following header includes amongst others a measurement record...
src/pollution.erl
0.542621
0.474753
pollution.erl
starcoder
%% Taken from https://github.com/ninenines/ranch/pull/41/files, %% with permission from fishcakez -module(elli_sendfile). -export([sendfile/5]). -type sendfile_opts() :: [{chunk_size, non_neg_integer()}]. %% @doc Send part of a file on a socket. %% %% Basically, @see file:sendfile/5 but for ssl (i.e. not raw OS soc...
src/elli_sendfile.erl
0.563018
0.447521
elli_sendfile.erl
starcoder
%% %% Copyright (c) 2018 <NAME> %% All rights reserved. %% Distributed under the terms of the MIT License. See the LICENSE file. %% %% CANCEL request related functions %% -module(ersip_request_cancel). -export([generate/1 ]). %%%=================================================================== %%% API %%%=...
src/ersip_request_cancel.erl
0.551211
0.489748
ersip_request_cancel.erl
starcoder
%%%------------------------------------------------------------------- %%% @author <NAME> %%% @copyright (C) 2015 ACK CYFRONET AGH %%% This software is released under the MIT license %%% cited in 'LICENSE.txt'. %%% @end %%%------------------------------------------------------------------- %%% @doc %%% This library con...
src/monitoring/load_balancing.erl
0.511229
0.453988
load_balancing.erl
starcoder
% Copyright 2011 Couchbase, Inc. % % Licensed under the Apache License, Version 2.0 (the "License"); you may not % use this file except in compliance with the License. You may obtain a copy of % the License at % % http://www.apache.org/licenses/LICENSE-2.0 % % Unless required by applicable law or agreed to in writing...
src/erlgeom.erl
0.722135
0.604311
erlgeom.erl
starcoder
%%%------------------------------------------------------------------- %%% @doc %%% This is an Erlang clone of the original `Phoenix.PubSub' module. %%% Copyright (c) 2014 <NAME> %%% @reference See %%% <a href="https://github.com/phoenixframework/phoenix">Phoenix</a> %%% @end %%%----------------------------------------...
src/pubsub/ebus_ps.erl
0.643329
0.602559
ebus_ps.erl
starcoder
%%% @doc Main external API of the Gradualizer %%% %%% The functions `type_check(file|module|dir)' accept the following options: %%% - `{i, Dir}': Include path for `-include' and `-include_lib' when checking %%% Erlang source files. Specify multiple times for multiple include paths. %%% - `stop_on_first_error': if `tr...
src/gradualizer.erl
0.536313
0.417568
gradualizer.erl
starcoder
%% %% %CopyrightBegin% %% %% Copyright Ericsson AB 1996-2021. All Rights Reserved. %% %% Licensed under the Apache License, Version 2.0 (the "License"); %% you may not use this file except in compliance with the License. %% You may obtain a copy of the License at %% %% http://www.apache.org/licenses/LICENSE-2.0 %% ...
lib/mnesia/src/mnesia_log.erl
0.511717
0.510374
mnesia_log.erl
starcoder
-module(erlmachine_supervisor_prototype). %% NOTE: The main puprouse of supervisor prototype is the ability to change monitoring layer without affecting credentials layer of an extension %% NOTE: There are few examples of monitorings implementations: %% 1. erlang:monitor/2 %% 2. supervisor2 %% 3. mirrored_supervisor ...
src/behaviours/erlmachine_supervisor_prototype.erl
0.532425
0.547464
erlmachine_supervisor_prototype.erl
starcoder
%% %% %CopyrightBegin% %% %% Copyright Ericsson AB 2020. All Rights Reserved. %% %% Licensed under the Apache License, Version 2.0 (the "License"); %% you may not use this file except in compliance with the License. %% You may obtain a copy of the License at %% %% http://www.apache.org/licenses/LICENSE-2.0 %% %% Un...
lib/compiler/src/beam_ssa_bc_size.erl
0.564339
0.452052
beam_ssa_bc_size.erl
starcoder
%%% %%% Copyright 2011, Boundary %%% %%% 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 ag...
src/folsom_metrics.erl
0.503174
0.406567
folsom_metrics.erl
starcoder
%%-------------------------------------------------------------------- %% Copyright (c) 2021-2022 EMQ Technologies Co., Ltd. All Rights Reserved. %% %% Licensed under the Apache License, Version 2.0 (the "License"); %% you may not use this file except in compliance with the License. %% You may obtain a copy of the Lice...
apps/emqx/src/emqx_limiter/src/emqx_limiter_server.erl
0.645567
0.405272
emqx_limiter_server.erl
starcoder
%% %% Copyright (c) 2015-2016 <NAME>. 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 %% a copy of the License at %% %% http://www.apache.org/licenses/LICENSE-2.0 %% %...
_build/default/lib/types/src/state_type.erl
0.64646
0.402157
state_type.erl
starcoder
% 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 ...
src/couch/src/couch_base32.erl
0.518302
0.425426
couch_base32.erl
starcoder
%% -*- erlang-indent-level: 4;indent-tabs-mode: nil; fill-column: 92-*- %% ex: ts=4 sw=4 et %% Copyright 2012 Opscode, Inc. All Rights Reserved. %% %% This file is provided to you under the Apache License, %% Version 2.0 (the "License"); you may not use this file %% except in compliance with the License. You may obtai...
src/oc_erchef/apps/chef_objects/src/chef_metrics.erl
0.603698
0.495728
chef_metrics.erl
starcoder
%% --------------------------------------------------------------------- %% %% Copyright (c) 2007-2013 Basho Technologies, Inc. All Rights Reserved, %% 2021 <NAME> All Rights Reserved. %% %% This file is provided to you under the Apache License, %% Version 2.0 (the "License"); you may not use this fil...
apps/riak_cs/src/twop_set.erl
0.609408
0.413359
twop_set.erl
starcoder
%% %% %CopyrightBegin% %% %% Copyright Ericsson AB 2004-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...
dependencies/otp/r15b03-1/lib/hipe/cerl/cerl_cconv.erl
0.540196
0.481576
cerl_cconv.erl
starcoder
%% %% %CopyrightBegin% %% %% Copyright Ericsson AB 2001-2015. All Rights Reserved. %% %% Licensed under the Apache License, Version 2.0 (the "License"); %% you may not use this file except in compliance with the License. %% You may obtain a copy of the License at %% %% http://www.apache.org/licenses/LICENSE-2.0 %...
lib/stdlib/src/gb_trees.erl
0.738103
0.515498
gb_trees.erl
starcoder
%% %% Query Node %% %% @copyright 2015-2019 UP FAMNIT and Yahoo Japan Corporation %% @version 0.3 %% @since September, 2015 %% @author <NAME> <<EMAIL>> %% %% @see b3s %% @see tp_query_node %% @see join_query_node %% @see query_tree %% %% @doc This module provides functions commonly shared by query node %% modules. %%...
src/query_node.erl
0.598195
0.581778
query_node.erl
starcoder
%%%------------------------------------------------------------------------ %% Copyright 2019, OpenTelemetry Authors %% 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.o...
src/ot_tracer.erl
0.625324
0.516595
ot_tracer.erl
starcoder
%%%------------------------------------------------------------------------ %% Copyright 2019, OpenTelemetry Authors %% 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.o...
apps/opentelemetry_api/src/otel_tracer.erl
0.589953
0.436682
otel_tracer.erl
starcoder
-module(ux_uca_extract). -export([extract/3]). -include("ux.hrl"). -include("ux_uca.hrl"). -type uca_array() :: ux_uca:uca_array(). -type uca_weight() :: ux_uca:uca_weight(). -type uca_elem() :: ux_uca:uca_elem(). -type result() :: ux_uca:uca_result(). -type ux_ccc() :: ux_types:ux_ccc(). %% @doc MANUAL: %% S2.1 Fi...
src/uca/ux_uca_extract.erl
0.569853
0.494751
ux_uca_extract.erl
starcoder
%% @author <NAME> <<EMAIL>> %% @author <NAME> <<EMAIL>> %% @copyright 2011 <NAME> %% @doc Stats aggregation process, periodically dumping metrics. -module (estatsd_server). %% See estatsd.hrl for a complete list of introduced types. -include ("estatsd.hrl"). %% This is an OTP gen_server. -behaviour (gen_server). %% ...
apps/estatsd/src/estatsd_server.erl
0.639961
0.400749
estatsd_server.erl
starcoder
%% @copyright 2011 Zuse Institute Berlin % 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 a...
test/histogram_SUITE.erl
0.611614
0.456168
histogram_SUITE.erl
starcoder
%% ------------------------------------------------------------------- %% %% Copyright (c) 2016 <NAME>. 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 %% a copy of the ...
src/lasp_sql_materialized_view.erl
0.585457
0.429728
lasp_sql_materialized_view.erl
starcoder
%% ------------------------------------------------------------------- %% %% xs_regex - XML Schema regex translation %% %% Copyright (c) 2017-2018 <NAME> 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 w...
src/xs_regex_util.erl
0.705785
0.401834
xs_regex_util.erl
starcoder
%%------------------------------------------------------------------- %% %% File: dvvset.erl %% %% @title Dotted Version Vector Set %% @author <NAME> <<EMAIL>> %% @author <NAME> <<EMAIL>> % %% @copyright The MIT License (MIT) %% Copyright (C) 2013 %% %% Permission is hereby granted, free of charge, to any pe...
src/dvvset.erl
0.612773
0.475484
dvvset.erl
starcoder
%% ``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 along with this software. If not, it can be %% retrieved via the world wide web at...
src/wrangler_scan.erl
0.511717
0.466542
wrangler_scan.erl
starcoder
%% Copyright (c) 2015 <NAME>. -module(symmetric_dataset). -export([create/3]). -export([create_onesided/2]). -export([verify/2]). %% Return a new dataset of key/value pairs for nodes A and B. For each %% node the pairs will have the following characteristics: %% %% - N*(1-P) pairs will be shared between A & B. %% %% ...
src/data_layer/symmetric_dataset.erl
0.535584
0.692549
symmetric_dataset.erl
starcoder
%% @author <NAME> <<EMAIL>> %% @copyright 2012 <NAME> %% @doc Geomap tile support functions %% See http://wiki.openstreetmap.org/wiki/Slippy_map_tilenames#lon.2Flat_to_tile_numbers %% Copyright 2012 <NAME> %% %% Licensed under the Apache License, Version 2.0 (the "License"); %% you may not use this file except in comp...
modules/mod_geomap/support/geomap_tiles.erl
0.766643
0.485844
geomap_tiles.erl
starcoder
%% %% Copyright (c) 2015-2016 <NAME>. 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 %% a copy of the License at %% %% http://www.apache.org/licenses/LICENSE-2.0 %% %...
src/dot_map.erl
0.628749
0.520862
dot_map.erl
starcoder
-module(foata_normal_form). -export([create_from_graph/1, get_foata_normal_form/3]). -export_type([foata_normal_form/0]). -type foata_class() :: [trace_theory:production()]. -type foata_normal_form() :: [foata_class()]. -type stack_element() :: dependent | char(). -type stack() :: #{char() => stack_element()}. %----...
src/foata_normal_form.erl
0.549882
0.632474
foata_normal_form.erl
starcoder
%% 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 u...
test/kai_version_SUITE.erl
0.575469
0.588002
kai_version_SUITE.erl
starcoder
%%%============================================================================= %%% @doc Advent of code puzzle solution %%% @end %%%============================================================================= -module(aoc2020_day11). -behavior(aoc_puzzle). -export([ parse/1 , solve1/1 , solve2/1 ...
src/2020/aoc2020_day11.erl
0.517083
0.61607
aoc2020_day11.erl
starcoder
% 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 ...
src/erlfdb_subspace.erl
0.503418
0.459137
erlfdb_subspace.erl
starcoder
-module(object_SUITE). -include_lib("common_test/include/ct.hrl"). -include_lib("eunit/include/eunit.hrl"). -export([all/0, init_per_suite/1, end_per_suite/1, init_per_testcase/2, end_per_testcase/2]). -export([call_test/1, cast_test/1, info_test/1, message_test/1, stop_test/1]). all() -> [ cal...
test/object_SUITE.erl
0.512937
0.417925
object_SUITE.erl
starcoder
% 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 ...
src/couch_views/src/couch_views_server.erl
0.556641
0.410874
couch_views_server.erl
starcoder
%% --------------------------------------------------------------------- %% %% Copyright (c) 2007-2013 Basho Technologies, Inc. All Rights Reserved. %% %% This file is provided to you under the Apache License, %% Version 2.0 (the "License"); you may not use this file %% except in compliance with the License. You may ...
src/riak_cs_access.erl
0.573917
0.407687
riak_cs_access.erl
starcoder
%% ----------------------------------------------------------------------------- %% %% Hamcrest Erlang. %% %% Copyright (c) 2010 <NAME> (<EMAIL>) %% %% Permission is hereby granted, free of charge, to any person obtaining a copy %% of this software and associated documentation files (the "Software"), to deal %% in the ...
test/hamcrest_matchers_SUITE.erl
0.523908
0.464841
hamcrest_matchers_SUITE.erl
starcoder
-module(stream_client_util_spec). -include_lib("espec.hrl"). spec() -> describe("stream client util", fun() -> describe("#generate_headers", fun() -> it("should generate Host and User-Agent headers", fun() -> Result = stream_client_util:generate_heade...
spec/stream_client_util_spec.erl
0.675336
0.459743
stream_client_util_spec.erl
starcoder
%%============================================================================== %% Copyright 2016-2021 <NAME> <<EMAIL>> %% %% 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.a...
src/levenshtein.erl
0.597373
0.409516
levenshtein.erl
starcoder
%% %% %CopyrightBegin% %% %% Copyright Ericsson AB 2022. All Rights Reserved. %% %% Licensed under the Apache License, Version 2.0 (the "License"); %% you may not use this file except in compliance with the License. %% You may obtain a copy of the License at %% %% http://www.apache.org/licenses/LICENSE-2.0 %% %% Un...
lib/compiler/src/beam_bounds.erl
0.637031
0.604282
beam_bounds.erl
starcoder
%%------------------------------------------------------------------- %% %% Copyright (c) 2015, <NAME> <<EMAIL>> %% %% 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 %% a copy of the License at %% ...
deps/sbroker/src/sbroker_meter.erl
0.798305
0.479077
sbroker_meter.erl
starcoder
%%============================================================================== %% Copyright 2021 <NAME> <<EMAIL>> %% %% 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...
src/jstream.erl
0.554229
0.464902
jstream.erl
starcoder
%% Copyright (c) 2014 <NAME> %% %% 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 w...
src/erlog_db_dict.erl
0.61451
0.448487
erlog_db_dict.erl
starcoder
%% Copyright 2018 Erlio GmbH Basel Switzerland (http://erl.io) %% %% 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 b...
apps/vmq_diversity/src/vmq_diversity_script.erl
0.527317
0.498535
vmq_diversity_script.erl
starcoder
%% Copyright (c) 2008-2013 <NAME> %% %% 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...
src/erlog_parse.erl
0.554229
0.526404
erlog_parse.erl
starcoder
-module(prometheus_buckets). -export([default/0, exponential/3, linear/3]). -export_type([bucket_bound/0, buckets/0]). %%==================================================================== %% Types %%==================================================================== -type bucket_b...
src/prometheus_buckets.erl
0.745584
0.500916
prometheus_buckets.erl
starcoder
-module(ai_pq). -export([ empty/0, add/3, move/4, remove/3, prune/2, collect/2 ]). -spec empty() -> {integer(),tuple()}. empty() -> gb_trees:empty(). %% @spec remove(Priority, Value, Tree) -> Tree1 %% @doc Delete a `Value' associated with `Priority' from `...
src/stdlib/ai_pq.erl
0.616243
0.490907
ai_pq.erl
starcoder
%% @doc %% This module implements a RADIUS proxy. %% %% It accepts following configuration: %% %% ``` %% [{default_route, {{127, 0, 0, 1}, 1813, <<"secret">>}, pool_name}, %% {options, [{type, realm}, {strip, true}, {separator, "@"}]}, %% {routes, [{"^test-[0-9].", {{127, 0, 0, 1}, 1815, <<"secret1">>}, ...
src/eradius_proxy.erl
0.512449
0.55935
eradius_proxy.erl
starcoder
%%%------------------------------------------------------------------- %%% Copyright 2014 The RySim Authors. All rights reserved. %%% %%% Licensed under the Apache License, Version 2.0 (the "License"); %%% you may not use this file except in compliance with the License. %%% You may obtain a copy of the License at %%% %...
erlang/rysim_des/src/validators.erl
0.607197
0.534795
validators.erl
starcoder
%% ------------------------------------------------------------------- %% %% Copyright (c) 2007-2012 Basho Technologies, Inc. All Rights Reserved. %% %% This file is provided to you under the Apache License, %% Version 2.0 (the "License"); you may not use this file %% except in compliance with the License. You may ob...
src/riak_core_format.erl
0.677687
0.445891
riak_core_format.erl
starcoder
%% ``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 %% distribute...
lib/edoc/src/edoc_scanner.erl
0.622804
0.482185
edoc_scanner.erl
starcoder
%% @private -module(aws_signature_utils). -export([hmac_sha256/2, hmac_sha256_hexdigest/2, sha256_hexdigest/1, binary_join/2, base16/1, hex/2, parse_path_and_query/1, uri_encode_path/1 ]). %% @doc Creates an HMAC-SHA256 hexdigest for `Key' and `Me...
src/aws_signature_utils.erl
0.664214
0.549278
aws_signature_utils.erl
starcoder
%% ------------------------------------------------------------------- %% %% xs_regex - XML Schema regex translation %% %% Copyright (c) 2017-2018 <NAME> 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 w...
src/xs_regex.erl
0.683525
0.479138
xs_regex.erl
starcoder
% 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 ...
src/smoosh/src/smoosh_priority_queue.erl
0.721547
0.466785
smoosh_priority_queue.erl
starcoder
%% ------------------------------------------------------------------- %% %% Copyright (c) 2013 Basho Technologies, Inc. All Rights Reserved. %% %% This file is provided to you under the Apache License, %% Version 2.0 (the "License"); you may not use this file %% except in compliance with the License. You may obtain ...
deps/riak_ensemble/src/riak_ensemble_storage.erl
0.653901
0.500122
riak_ensemble_storage.erl
starcoder
%%%-------------------------------------------------------------------- %%% @author <NAME> %%% @copyright (C) 2017 ACK CYFRONET AGH %%% This software is released under the MIT license %%% cited in 'LICENSE.txt'. %%% @end %%%-------------------------------------------------------------------- %%% @doc %%% Cumulative his...
src/modules/datastore/utils/file_popularity/cumulative_histogram.erl
0.516595
0.501953
cumulative_histogram.erl
starcoder
%%------------------------------------------------------------------- %% The MIT License (MIT) %% Copyright (c) 2018 AdRoll, Inc. <NAME> and <NAME> %% %% Permission is hereby granted, free of charge, to any person obtaining a copy %% of this software and associated documentation files (the "Software"), to deal %% in th...
test/spillway_SUITE.erl
0.543348
0.439807
spillway_SUITE.erl
starcoder
%% -*- coding: latin-1 -*- %% --------------------------------------------------------------------- %% 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....
src/merl.erl
0.580828
0.617974
merl.erl
starcoder
%%% @doc Minimal vixie-cron expression parser. Based on the information in %%% https://en.wikipedia.org/wiki/Cron %%% %%% @todo Add support for "L", "W", and "?" %%% @todo Check for invalid expressions %%% %%% Copyright 2017 <NAME> &lt;<EMAIL>&gt; %%% %%% Licensed under the Apache License, Version 2.0 (the "License"); ...
src/erl_vcron.erl
0.615666
0.409811
erl_vcron.erl
starcoder
-module(solution). -export([main/0]). % 12s CPU % 1024M RAM % 50kB Code % 1 <= N <= M <= 10^9 % M - N <= 10^6 (max number of gap positions to test) % Pi(10^4.5) = Pi(31623) = 3401 (number of primes), from WolframAlpha query % Every gap, except 4:(3,5) and 6:(5,7)is of the form 30*n, 30*n+12 or 30*n+18 ...
Mathematics/Number Theory/Twins/solution.erl
0.528047
0.462655
solution.erl
starcoder
-module(spigg_analyze). -export([ beam/1 , forms/1 ]). -include("spigg.hrl"). %% Q: How should we deal with the implicit import of the erlang module? %% A: All unqualified calls that do not refer to a local function or an %% imported function, can be regarded as calls to the erlang module. %% %% Q: W...
src/spigg_analyze.erl
0.538741
0.408513
spigg_analyze.erl
starcoder
-module(aec_target). %% API -export([recalculate/2, determine_delta_header_height/1, verify/2]). -include("blocks.hrl"). %% Return height of the header to be used as a start point for target calculations, %% based on the following formula: %% delta_height(Header) = Header.height - aec_governance:ke...
apps/aecore/src/aec_target.erl
0.611382
0.69125
aec_target.erl
starcoder
% 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 ...
src/couch_log_lager.erl
0.511961
0.415492
couch_log_lager.erl
starcoder
%%%------------------------------------------------------------------------ %% Copyright 2018, OpenCensus Authors %% 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/...
src/oc_stat_transform.erl
0.623606
0.570002
oc_stat_transform.erl
starcoder
-module(unicodedata_normalization). -include_lib("ucd/include/ucd.hrl"). -export([ quick_check/2 , normalize/2 , canonical_decomposition/1 , compatibility_decomposition/1 , canonical_composition/1 , canonical_ordering/1 ]). -type normalization_form() :: nfc ...
src/unicodedata_normalization.erl
0.525369
0.531209
unicodedata_normalization.erl
starcoder
-module(attempt). %% API -export([ to/1, map/2, recover/2, ok/1, error/1, flatten/1, flat_map/2, recover_with/2, traverse/2, sequence/1]). %%==================================================================== %% API types %%==================================================================== -typ...
src/attempt.erl
0.52902
0.600188
attempt.erl
starcoder
-module(otter_filter). -export([span/1, pre_span/1]). -include_lib("otter_lib/include/otter.hrl"). %%---------------------------------------------------------------------- %% @doc Invoke the span filter on active span %% @end %%---------------------------------------------------------------------- -spec span(Span :: ...
src/otter_filter.erl
0.57344
0.523481
otter_filter.erl
starcoder
%% Copyright (c) 2013-2014 <NAME> <<EMAIL>> %% %% 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 agr...
test/rationals_SUITE.erl
0.70253
0.609887
rationals_SUITE.erl
starcoder
% 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 ...
vtree/src/vtree_io.erl
0.622115
0.473475
vtree_io.erl
starcoder
%%%------------------------------------------------------------------- %%% @author <NAME> %%% @copyright (C) 2018 ACK CYFRONET AGH %%% This software is released under the MIT license %%% cited in 'LICENSE.txt'. %%% @end %%%------------------------------------------------------------------- %%% @doc %%% This module can ...
rel/files/plugins/custom_entitlement_parser.erl
0.501465
0.423875
custom_entitlement_parser.erl
starcoder
%% Copyright (C) 2011-2013 IMVU Inc. %% %% Permission is hereby granted, free of charge, to any person obtaining a copy of %% this software and associated documentation files (the "Software"), to deal in %% the Software without restriction, including without limitation the rights to %% use, copy, modify, merge, publish...
apps/dtm_redis/src/hash.erl
0.548915
0.422445
hash.erl
starcoder
%% %% Copyright (c) 2015-2016 <NAME>. 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 %% a copy of the License at %% %% http://www.apache.org/licenses/LICENSE-2.0 %% %...
_build/default/lib/types/src/state_bcounter.erl
0.669421
0.42173
state_bcounter.erl
starcoder
%% ------------------------------------------------------------------- %% %% riak_core_coverage_plan: Create a plan to cover a minimal set of VNodes. %% %% Copyright (c) 2007-2011 Basho Technologies, Inc. All Rights Reserved. %% %% This file is provided to you under the Apache License, %% Version 2.0 (the "License"); ...
src/riak_core_coverage_plan.erl
0.640973
0.458349
riak_core_coverage_plan.erl
starcoder
%% @doc `rebar3 hex search' - search for packages on hexpm. %% %% Displays packages matching the given search query. %% %% If you are authenticated it will additionally search all organizations you are member of. %% %% ``` %% $ rebar3 hex search PACKAGE %% ''' %% %% <h2> Command line options </h2> %% %% <ul> %% <li>`...
src/rebar3_hex_search.erl
0.525369
0.496582
rebar3_hex_search.erl
starcoder
% This file is part of ecsv released under the MIT license. % See the LICENSE file for more information. -module(ecsv_parser). -author("<NAME> <<EMAIL>>"). -include("ecsv.hrl"). % % This module is a raw CSV parser. % % This parser is based on the blog post written by <NAME> located % here http://andrewtill.blogspot....
src/ecsv_parser.erl
0.525369
0.423458
ecsv_parser.erl
starcoder
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % giferly - a GIF 89a decoder % - by <NAME> <<EMAIL>> % % A standalone program to decode and display a GIF file. This is my attempt to % learn both the GIF 89a format and Erlang. This project started by my % encountering an article de...
src/giferly.erl
0.551332
0.433382
giferly.erl
starcoder
%% ------------------------------------------------------------------- %% %% Copyright (c) 2016 Basho Technologies, Inc. %% %% 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 %% a copy of the Licen...
src/brt_fudge.erl
0.612426
0.477128
brt_fudge.erl
starcoder
%%-------------------------------------------------------------------- %% Copyright (c) 2019 EMQ Technologies Co., Ltd. All Rights Reserved. %% %% Licensed under the Apache License, Version 2.0 (the "License"); %% you may not use this file except in compliance with the License. %% You may obtain a copy of the License a...
test/esockd_connection_sup_SUITE.erl
0.620392
0.494446
esockd_connection_sup_SUITE.erl
starcoder