hexsha
stringlengths
40
40
size
int64
2
991k
ext
stringclasses
2 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
208
max_stars_repo_name
stringlengths
6
106
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
list
max_stars_count
int64
1
33.5k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
208
max_issues_repo_name
stringlengths
6
106
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
list
max_issues_count
int64
1
16.3k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
208
max_forks_repo_name
stringlengths
6
106
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
list
max_forks_count
int64
1
6.91k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
2
991k
avg_line_length
float64
1
36k
max_line_length
int64
1
977k
alphanum_fraction
float64
0
1
215d77e8a0d1ef910456748ed6fefc445b005b30
978
exs
Elixir
strings-and-binaries/tax.exs
sfat/programming-elixir-exercises
19e62e3f3344ec044e1eb1b39b195f4dad3dff1c
[ "Apache-2.0" ]
1
2019-02-17T11:54:17.000Z
2019-02-17T11:54:17.000Z
strings-and-binaries/tax.exs
sfat/programming-elixir-exercises
19e62e3f3344ec044e1eb1b39b195f4dad3dff1c
[ "Apache-2.0" ]
null
null
null
strings-and-binaries/tax.exs
sfat/programming-elixir-exercises
19e62e3f3344ec044e1eb1b39b195f4dad3dff1c
[ "Apache-2.0" ]
null
null
null
defmodule SalesTax do def tax_calculate do tax_rates = [NC: 0.075, TX: 0.08] {:ok, file} = File.open("sales.csv") # reading header _header = IO.read(file, :line) file |> IO.stream(:line) |> Stream.map(&String.trim/1) |> Stream.map(&String.split(&1, ",")) |> Enum.map(fn [id, ship_t...
27.942857
84
0.592025
215d7ee9028f535690dba029a81054c03912280e
3,453
ex
Elixir
lib/tcpbin/bin.ex
dominicletz/tcpbin
4d6b614d46844f40ac03adfeb16352417f64f7d3
[ "MIT" ]
null
null
null
lib/tcpbin/bin.ex
dominicletz/tcpbin
4d6b614d46844f40ac03adfeb16352417f64f7d3
[ "MIT" ]
null
null
null
lib/tcpbin/bin.ex
dominicletz/tcpbin
4d6b614d46844f40ac03adfeb16352417f64f7d3
[ "MIT" ]
null
null
null
defmodule TcpBin.Bin do use GenServer alias TcpBin.Bin require Logger defstruct [:id, :packets, :socket, :udp_socket, :acceptor, :created, :clients] def start() do id = "#{rand(5)}-#{System.os_time(:second)}" {:ok, _} = GenServer.start(__MODULE__, [id]) id end @impl true def init([id]) do ...
25.389706
90
0.613959
215d81dd3714e51a03f446ecf694c45cf7d383c4
6,358
ex
Elixir
lib/sentinel/config.ex
lumenlunae/sentinel
189d9b02aeeea942a41963b42ef8523ef192fd03
[ "MIT" ]
null
null
null
lib/sentinel/config.ex
lumenlunae/sentinel
189d9b02aeeea942a41963b42ef8523ef192fd03
[ "MIT" ]
null
null
null
lib/sentinel/config.ex
lumenlunae/sentinel
189d9b02aeeea942a41963b42ef8523ef192fd03
[ "MIT" ]
null
null
null
defmodule Sentinel.Config do @moduledoc """ Wraps application configuration for Sentinel for easy access """ @doc """ Wrapper for getting the application config of :app_name """ def app_name do Application.get_env(:sentinel, :app_name) end @doc """ Wrapper for getting the application config of...
24.360153
92
0.694715
215d9915232941be1802dabfef02fba97e949480
584
ex
Elixir
apps/ut_monitor_lib/lib/ut_monitor_lib/service_apis/honeybadger.ex
usertesting/nerves_status_monitors
18ccc7a3f3787d847a09328cea6c49b51605338a
[ "MIT" ]
1
2017-02-10T17:41:02.000Z
2017-02-10T17:41:02.000Z
apps/ut_monitor_lib/lib/ut_monitor_lib/service_apis/honeybadger.ex
usertesting/nerves_status_monitors
18ccc7a3f3787d847a09328cea6c49b51605338a
[ "MIT" ]
null
null
null
apps/ut_monitor_lib/lib/ut_monitor_lib/service_apis/honeybadger.ex
usertesting/nerves_status_monitors
18ccc7a3f3787d847a09328cea6c49b51605338a
[ "MIT" ]
null
null
null
defmodule UtMonitorLib.ServiceApis.Honeybadger do def get_error_rates(project_id, buckets, client \\ UtMonitorLib.ServiceApis.HoneybadgerClient) do try do case client.get_error_rates(project_id, buckets) do %Tesla.Env{body: body, status: 200} -> {:ok, parse_error_rates(body)} %Tes...
24.333333
99
0.616438
215dc757330ee2d7f8ebc9a66bdf83531327fd57
1,009
ex
Elixir
lib/frettchen/helpers.ex
konstantinzolotarev/frettchen
4aced1fb3d1571893ae09c18a31b05352c80cd9e
[ "MIT" ]
3
2018-10-27T18:18:14.000Z
2020-11-27T11:47:41.000Z
lib/frettchen/helpers.ex
konstantinzolotarev/frettchen
4aced1fb3d1571893ae09c18a31b05352c80cd9e
[ "MIT" ]
null
null
null
lib/frettchen/helpers.ex
konstantinzolotarev/frettchen
4aced1fb3d1571893ae09c18a31b05352c80cd9e
[ "MIT" ]
3
2019-01-07T12:32:44.000Z
2021-09-05T07:24:09.000Z
defmodule Frettchen.Helpers do @moduledoc """ A collection of helper functions """ @doc """ Returns the current timestamp as an integer ## Example iex> timestamp = Frettchen.Helpers.current_time() ...> is_integer(timestamp) true """ def current_time do :os.system_time(:microsecond) ...
20.591837
68
0.652131
215dd328071e57c3198d6eaa78071868f840534e
189
exs
Elixir
apps/memo_web/config/test.exs
michaeljbishop/memo_app
58a2a547a6e40eb518ea8b193514fea368e80704
[ "MIT" ]
null
null
null
apps/memo_web/config/test.exs
michaeljbishop/memo_app
58a2a547a6e40eb518ea8b193514fea368e80704
[ "MIT" ]
null
null
null
apps/memo_web/config/test.exs
michaeljbishop/memo_app
58a2a547a6e40eb518ea8b193514fea368e80704
[ "MIT" ]
null
null
null
use Mix.Config # We don't run a server during test. If one is required, # you can enable the server option below. config :memo_web, MemoWeb.Endpoint, http: [port: 4001], server: false
23.625
56
0.724868
215dd919eeba3529910e2bc56f1a5ee7a55cc126
707
exs
Elixir
test/finch/http1/integration_test.exs
mrjoelkemp/finch
2a6fd203dc5b3d2b93d92cd4d3c23bd3ba7d3b85
[ "MIT" ]
1
2021-06-02T07:22:29.000Z
2021-06-02T07:22:29.000Z
test/finch/http1/integration_test.exs
mrjoelkemp/finch
2a6fd203dc5b3d2b93d92cd4d3c23bd3ba7d3b85
[ "MIT" ]
1
2020-12-15T20:14:43.000Z
2020-12-15T20:14:43.000Z
test/finch/http1/integration_test.exs
mrjoelkemp/finch
2a6fd203dc5b3d2b93d92cd4d3c23bd3ba7d3b85
[ "MIT" ]
null
null
null
defmodule Finch.HTTP1.IntegrationTest do use ExUnit.Case, async: false import ExUnit.CaptureLog alias Finch.HTTP1Server @moduletag :capture_log setup_all do port = 4001 {:ok, _} = HTTP1Server.start(port) {:ok, url: "https://localhost:#{port}"} end test "fail to negotiate h2 protocol", %{...
19.108108
68
0.591231
215def9e11406d15b7a3d2bf18b16e3ce552d3d0
4,960
exs
Elixir
test/liquid_voting/participants_test.exs
jinjagit/api
c1a176d8c318e05810bc1635706c56395819191e
[ "MIT" ]
null
null
null
test/liquid_voting/participants_test.exs
jinjagit/api
c1a176d8c318e05810bc1635706c56395819191e
[ "MIT" ]
10
2020-09-28T06:37:48.000Z
2021-12-22T15:04:38.000Z
test/liquid_voting/participants_test.exs
jinjagit/api
c1a176d8c318e05810bc1635706c56395819191e
[ "MIT" ]
null
null
null
defmodule LiquidVoting.ParticipantsTest do use LiquidVoting.DataCase import LiquidVoting.Factory alias LiquidVoting.Voting alias LiquidVoting.Voting.Participant describe "participants" do @valid_attrs %{ name: "some name", email: "some@email.com", organization_id: Ecto.UUID.generate() ...
38.153846
102
0.708468
215e3245ed51a0c13c6ec5a550ca598f39caf969
549
ex
Elixir
lib/parques/core/color.ex
johnf9896/parquex
5251e6ef7166bca2e9f021b8cecc912a7b616d71
[ "MIT" ]
null
null
null
lib/parques/core/color.ex
johnf9896/parquex
5251e6ef7166bca2e9f021b8cecc912a7b616d71
[ "MIT" ]
null
null
null
lib/parques/core/color.ex
johnf9896/parquex
5251e6ef7166bca2e9f021b8cecc912a7b616d71
[ "MIT" ]
null
null
null
defmodule Parques.Core.Color do @moduledoc """ Defines the possible colors for players """ @colors [:red, :green, :blue, :yellow] @count length(@colors) @type t :: :red | :green | :blue | :yellow @spec count :: pos_integer() def count, do: @count @spec list :: [t()] def list, do: @colors @spe...
20.333333
54
0.619308
215e41b30a8a88ed47f2f3f33b12556a218a3276
47
exs
Elixir
test/stopsel_test.exs
Awlexus/Stopsel
0d207a65e786a5a057aea76cd7fde72d22ddfd78
[ "MIT" ]
3
2019-06-13T18:17:42.000Z
2019-07-14T19:44:51.000Z
test/stopsel_test.exs
Awlexus/Stopsel
0d207a65e786a5a057aea76cd7fde72d22ddfd78
[ "MIT" ]
null
null
null
test/stopsel_test.exs
Awlexus/Stopsel
0d207a65e786a5a057aea76cd7fde72d22ddfd78
[ "MIT" ]
null
null
null
defmodule StopselTest do use ExUnit.Case end
11.75
24
0.808511
215e58c48cd0ce17774171f6f70a5697c6b249c2
2,929
ex
Elixir
apps/ewallet/lib/ewallet/formatters/transaction_formatter.ex
amadeobrands/ewallet
505b7822721940a7b892a9b35c225e80cc8ac0b4
[ "Apache-2.0" ]
1
2018-12-07T06:21:21.000Z
2018-12-07T06:21:21.000Z
apps/ewallet/lib/ewallet/formatters/transaction_formatter.ex
amadeobrands/ewallet
505b7822721940a7b892a9b35c225e80cc8ac0b4
[ "Apache-2.0" ]
null
null
null
apps/ewallet/lib/ewallet/formatters/transaction_formatter.ex
amadeobrands/ewallet
505b7822721940a7b892a9b35c225e80cc8ac0b4
[ "Apache-2.0" ]
null
null
null
defmodule EWallet.TransactionFormatter do @moduledoc """ Converts an eWallet's transaction into a LocalLedger's transaction and entries. """ alias EWalletDB.Helpers.Preloader alias EWalletDB.Transaction alias LocalLedgerDB.Entry @doc """ Formats a transaction the way LocalLedger expects it. """ @sp...
33.284091
89
0.680437
215e5d442e9cc86d2e799a0442a577fb120b9ec7
456
ex
Elixir
services/fc_identity/lib/fc_identity/events/email_verified.ex
fleadope/freshcom
8d5944befaa6eea8d31e5f5995939be2a1a44262
[ "BSD-3-Clause" ]
46
2018-10-13T23:18:13.000Z
2021-08-07T07:46:51.000Z
services/fc_identity/lib/fc_identity/events/email_verified.ex
fleadope/freshcom
8d5944befaa6eea8d31e5f5995939be2a1a44262
[ "BSD-3-Clause" ]
25
2018-10-14T00:56:07.000Z
2019-12-23T19:41:02.000Z
services/fc_identity/lib/fc_identity/events/email_verified.ex
fleadope/freshcom
8d5944befaa6eea8d31e5f5995939be2a1a44262
[ "BSD-3-Clause" ]
5
2018-12-16T04:39:51.000Z
2020-10-01T12:17:03.000Z
defmodule FCIdentity.EmailVerified do use TypedStruct @derive Jason.Encoder @version 1 typedstruct do field :__version__, integer(), default: @version field :request_id, String.t() field :requester_id, String.t() field :requester_type, String.t() field :requester_role, String.t() fiel...
21.714286
52
0.686404
215e5ea408d9d83889940012cc60df36c08fa6f1
6,387
exs
Elixir
test/server_tests/terraform_test.exs
juljimm/opex62541
c44c157213a8a3fb07283f6e697e6dd018693315
[ "MIT" ]
null
null
null
test/server_tests/terraform_test.exs
juljimm/opex62541
c44c157213a8a3fb07283f6e697e6dd018693315
[ "MIT" ]
null
null
null
test/server_tests/terraform_test.exs
juljimm/opex62541
c44c157213a8a3fb07283f6e697e6dd018693315
[ "MIT" ]
null
null
null
defmodule ServerTerraformTest do use ExUnit.Case alias OpcUA.{Client, NodeId, Server, QualifiedName} @configuration [ config: [ port: 4040, users: [{"alde103", "secret"}] ] ] @address_space [ namespace: "Sensor", object_type_node: OpcUA.ObjectTypeNode.new( [ reques...
37.792899
116
0.680601
215e650fc8801fb8af8392137c5b5f6f90e447d4
312
ex
Elixir
lib/ash_policy_authorizer/check/action_type.ex
kernel-io/ash_policy_authorizer
cf9f44398e156dad3c38eb56d5f3fd25ebaa704a
[ "MIT" ]
3
2020-10-06T06:36:53.000Z
2021-09-22T13:31:53.000Z
lib/ash_policy_authorizer/check/action_type.ex
kernel-io/ash_policy_authorizer
cf9f44398e156dad3c38eb56d5f3fd25ebaa704a
[ "MIT" ]
19
2020-06-09T05:16:13.000Z
2021-04-20T18:27:43.000Z
lib/ash_policy_authorizer/check/action_type.ex
ash-project/ash_policy_access
a954bf12e3a65c9ea0b0eb888162064cae786cbd
[ "MIT" ]
4
2020-08-27T19:12:02.000Z
2021-12-19T22:50:35.000Z
defmodule AshPolicyAuthorizer.Check.ActionType do @moduledoc false use AshPolicyAuthorizer.SimpleCheck @impl true def describe(options) do "action.type == #{inspect(options[:type])}" end @impl true def match?(_actor, %{action: %{type: type}}, options) do type == options[:type] end end
20.8
58
0.695513
215e6b04ecf23a6618328f29f01b9c07062e4100
778
exs
Elixir
bench/group_by_bench.exs
getong/manifold
8fbb5275313e6b8255c32be88561ae9880e15fff
[ "MIT" ]
662
2017-09-20T02:48:42.000Z
2020-03-22T18:34:56.000Z
bench/group_by_bench.exs
getong/manifold
8fbb5275313e6b8255c32be88561ae9880e15fff
[ "MIT" ]
5
2018-02-04T05:20:19.000Z
2019-12-10T03:50:57.000Z
bench/group_by_bench.exs
getong/manifold
8fbb5275313e6b8255c32be88561ae9880e15fff
[ "MIT" ]
30
2017-10-08T20:28:06.000Z
2020-02-11T23:40:04.000Z
defmodule GroupByBench do use Benchfella alias Manifold.Utils setup_all do pids = for _ <- 0..5000, do: spawn_link &loop/0 {:ok, pids} end defp loop() do receive do _ -> loop() end end bench "group by 48" do bench_context |> Utils.group_by(&:erlang.phash2(&1, 48)) end ...
16.208333
51
0.633676
215e7a9f84b3226efc3a74e5476ab49805980466
718
ex
Elixir
phx_chartjs/lib/phx_chartjs_web/gettext.ex
NervesJP/fukuokaex11
8bd3e5bf5f4c0a2f08a2a3e16a94a56468eb1aa3
[ "Apache-2.0" ]
13
2018-06-22T10:41:17.000Z
2018-09-01T02:34:33.000Z
phx_chartjs/lib/phx_chartjs_web/gettext.ex
takasehideki/fukuokaex11
8bd3e5bf5f4c0a2f08a2a3e16a94a56468eb1aa3
[ "Apache-2.0" ]
null
null
null
phx_chartjs/lib/phx_chartjs_web/gettext.ex
takasehideki/fukuokaex11
8bd3e5bf5f4c0a2f08a2a3e16a94a56468eb1aa3
[ "Apache-2.0" ]
1
2022-01-20T13:12:18.000Z
2022-01-20T13:12:18.000Z
defmodule PhxChartjsWeb.Gettext do @moduledoc """ A module providing Internationalization with a gettext-based API. By using [Gettext](https://hexdocs.pm/gettext), your module gains a set of macros for translations, for example: import PhxChartjsWeb.Gettext # Simple translation gettext "Her...
28.72
72
0.685237
215e98e7484e75e6a54d0e732adf3b540c8eaab9
1,060
exs
Elixir
mix.exs
tesseract-libs/tesseract-geometry
17fe9f59019453810071b1cd30834a541eb76beb
[ "MIT" ]
null
null
null
mix.exs
tesseract-libs/tesseract-geometry
17fe9f59019453810071b1cd30834a541eb76beb
[ "MIT" ]
1
2018-06-08T00:32:01.000Z
2018-06-09T23:46:50.000Z
mix.exs
tesseract-libs/tesseract-geometry
17fe9f59019453810071b1cd30834a541eb76beb
[ "MIT" ]
null
null
null
defmodule TesseractGeometry.MixProject do use Mix.Project def project do [ app: :tesseract_geometry, version: "0.2.2", elixir: "~> 1.6", start_permanent: Mix.env() == :prod, deps: deps(), description: description(), package: package(), source_url: "https://github...
22.083333
75
0.581132
215e9ef64753835ce16268351ad458564d5026af
1,456
exs
Elixir
apps/feedex_core/test/feedex_core/ctx/news/post_test.exs
andyl/ragged
2baab0849e2dfc068652ecb2fe88a7c6fe5437d0
[ "MIT" ]
null
null
null
apps/feedex_core/test/feedex_core/ctx/news/post_test.exs
andyl/ragged
2baab0849e2dfc068652ecb2fe88a7c6fe5437d0
[ "MIT" ]
10
2021-02-08T00:01:41.000Z
2021-05-27T12:54:28.000Z
apps/feedex_core/test/feedex_core/ctx/news/post_test.exs
andyl/ragged
2baab0849e2dfc068652ecb2fe88a7c6fe5437d0
[ "MIT" ]
null
null
null
defmodule FeedexCore.Ctx.News.PostTest do use ExUnit.Case, async: true use FeedexCore.DataCase test "greet the world" do assert "hello" == "hello" end describe "changesets" do test "accepts valid input" do attr = %{feed_id: 1, body: "asdf", exid: "qwerq"} cs = Post.changeset(%Post{}, at...
22.75
55
0.595467
215ea3977b01cf4653071dae1673d793c1f3aa2a
1,722
ex
Elixir
clients/sheets/lib/google_api/sheets/v4/model/sort_range_request.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/sheets/lib/google_api/sheets/v4/model/sort_range_request.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/sheets/lib/google_api/sheets/v4/model/sort_range_request.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
1
2018-07-28T20:50:50.000Z
2018-07-28T20:50:50.000Z
# Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the &quot;License&quot;); # 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...
33.764706
162
0.746806
215ec5228df9160f0742aabdf6149435f25adc35
1,580
ex
Elixir
lib/live_counter_web/endpoint.ex
zigster64/zig_elixir
88358519ef97f1221055bbc9f12035fbb1cbc5e4
[ "BSD-3-Clause" ]
null
null
null
lib/live_counter_web/endpoint.ex
zigster64/zig_elixir
88358519ef97f1221055bbc9f12035fbb1cbc5e4
[ "BSD-3-Clause" ]
null
null
null
lib/live_counter_web/endpoint.ex
zigster64/zig_elixir
88358519ef97f1221055bbc9f12035fbb1cbc5e4
[ "BSD-3-Clause" ]
null
null
null
defmodule LiveCounterWeb.Endpoint do use Phoenix.Endpoint, otp_app: :live_counter # The session will be stored in the cookie and signed, # this means its contents can be read but not tampered with. # Set :encryption_salt if you would also like to encrypt it. @session_options [ store: :cookie, key: "_...
29.259259
97
0.721519
215eea3c02e335ea6ec01c8ddb2b99ff51e8f533
1,266
ex
Elixir
lib/mix/tasks/hexpm.check_names.ex
hubertpompecki/hexpm
5cd4208b07a70bf2e1490930bf5d577978793b50
[ "Apache-2.0" ]
null
null
null
lib/mix/tasks/hexpm.check_names.ex
hubertpompecki/hexpm
5cd4208b07a70bf2e1490930bf5d577978793b50
[ "Apache-2.0" ]
null
null
null
lib/mix/tasks/hexpm.check_names.ex
hubertpompecki/hexpm
5cd4208b07a70bf2e1490930bf5d577978793b50
[ "Apache-2.0" ]
null
null
null
defmodule Mix.Tasks.Hexpm.CheckNames do use Mix.Task require Logger @shortdoc "Check package names for typosquatters" def run(_args) do Mix.Task.run("app.start") threshold = Application.get_env(:hexpm, :levenshtein_threshold) threshold |> to_integer() |> find_candidates() |> send_ema...
26.93617
93
0.672196
215efa3e052fb20f59d0d52f3ebcc9e75cf2ee75
1,847
exs
Elixir
clients/gmail/mix.exs
kolorahl/elixir-google-api
46bec1e092eb84c6a79d06c72016cb1a13777fa6
[ "Apache-2.0" ]
null
null
null
clients/gmail/mix.exs
kolorahl/elixir-google-api
46bec1e092eb84c6a79d06c72016cb1a13777fa6
[ "Apache-2.0" ]
null
null
null
clients/gmail/mix.exs
kolorahl/elixir-google-api
46bec1e092eb84c6a79d06c72016cb1a13777fa6
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # 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, s...
27.161765
96
0.650785
215f1dc602f4cb5cb96fa853ccba92e2c2146dbc
846
ex
Elixir
lib/shopify/oauth/client/hackney.ex
kurt-friedrich/shopify-oauth-elixir
bccac1c34ea35445fb737933a5d075d2972ea0be
[ "MIT" ]
3
2020-01-13T22:36:29.000Z
2021-12-12T17:59:03.000Z
lib/shopify/oauth/client/hackney.ex
kurt-friedrich/shopify-oauth-elixir
bccac1c34ea35445fb737933a5d075d2972ea0be
[ "MIT" ]
6
2020-04-23T16:20:26.000Z
2021-08-03T05:47:44.000Z
lib/shopify/oauth/client/hackney.ex
kurt-friedrich/shopify-oauth-elixir
bccac1c34ea35445fb737933a5d075d2972ea0be
[ "MIT" ]
1
2020-04-23T16:29:37.000Z
2020-04-23T16:29:37.000Z
defmodule Shopify.OAuth.Client.Hackney do alias Shopify.OAuth.{ Client } @behaviour Shopify.OAuth.Client @spec request( Shopify.OAuth.http_method_t(), String.t(), Shopify.OAuth.http_headers_t(), String.t(), any ) :: { :ok, Client.response_t() } | { :erro...
24.171429
76
0.547281
215f74ea20349d7cb00afe2f5dc49ccebc13b16b
705
ex
Elixir
lib/taskr_web/gettext.ex
sean-clayton/taskr
e56ac59662fb8c246803a36ebe288f55a4a0cbf9
[ "0BSD" ]
null
null
null
lib/taskr_web/gettext.ex
sean-clayton/taskr
e56ac59662fb8c246803a36ebe288f55a4a0cbf9
[ "0BSD" ]
null
null
null
lib/taskr_web/gettext.ex
sean-clayton/taskr
e56ac59662fb8c246803a36ebe288f55a4a0cbf9
[ "0BSD" ]
null
null
null
defmodule TaskrWeb.Gettext do @moduledoc """ A module providing Internationalization with a gettext-based API. By using [Gettext](https://hexdocs.pm/gettext), your module gains a set of macros for translations, for example: import TaskrWeb.Gettext # Simple translation gettext("Here is the s...
28.2
72
0.675177
215f7888aedf512560128886512134dabdf0d74c
680
exs
Elixir
bank_account/mix.exs
enilsen16/elixir
b4d1d45858a25e4beb39e07de8685f3d93d6a520
[ "MIT" ]
null
null
null
bank_account/mix.exs
enilsen16/elixir
b4d1d45858a25e4beb39e07de8685f3d93d6a520
[ "MIT" ]
null
null
null
bank_account/mix.exs
enilsen16/elixir
b4d1d45858a25e4beb39e07de8685f3d93d6a520
[ "MIT" ]
null
null
null
defmodule BankAccount.Mixfile do use Mix.Project def project do [app: :bank_account, version: "0.0.1", elixir: "~> 1.3-dev", build_embedded: Mix.env == :prod, start_permanent: Mix.env == :prod, deps: deps] end # Configuration for the OTP application # # Type "mix help compile....
20.606061
77
0.614706
215f984e50853865ced69f9bfb71be94011c4e8f
916
exs
Elixir
config/config.exs
allen-garvey/photog-phoenix
69cbcffbba905e623fe9c9c236e3be27b678ec75
[ "MIT" ]
null
null
null
config/config.exs
allen-garvey/photog-phoenix
69cbcffbba905e623fe9c9c236e3be27b678ec75
[ "MIT" ]
1
2020-09-05T17:07:35.000Z
2020-09-05T17:07:35.000Z
config/config.exs
allen-garvey/photog-phoenix
69cbcffbba905e623fe9c9c236e3be27b678ec75
[ "MIT" ]
null
null
null
# This file is responsible for configuring your application # and its dependencies with the aid of the Mix.Config module. # # This configuration file is loaded before any dependency and # is restricted to this project. use Mix.Config # General application configuration config :photog, ecto_repos: [Photog.Repo] # Co...
33.925926
86
0.769651
215fbe1ed97fd853029f11d91d8f29235ed40103
623
ex
Elixir
phoenix_backend/lib/phoenix_backend_web/controllers/fallback_controller.ex
raphaklaus/opentelemetry-examples
099fc6cf52bdd337f359530e12007050aa835b35
[ "Apache-2.0" ]
4
2020-03-15T10:51:31.000Z
2020-04-24T07:07:01.000Z
phoenix_backend/lib/phoenix_backend_web/controllers/fallback_controller.ex
raphaklaus/opentelemetry-examples
099fc6cf52bdd337f359530e12007050aa835b35
[ "Apache-2.0" ]
8
2020-06-27T22:05:24.000Z
2022-02-16T09:23:41.000Z
phoenix_backend/lib/phoenix_backend_web/controllers/fallback_controller.ex
raphaklaus/opentelemetry-examples
099fc6cf52bdd337f359530e12007050aa835b35
[ "Apache-2.0" ]
5
2020-10-27T00:59:26.000Z
2021-11-23T17:22:23.000Z
defmodule PhoenixBackendWeb.FallbackController do @moduledoc """ Translates controller action results into valid `Plug.Conn` responses. See `Phoenix.Controller.action_fallback/1` for more details. """ use PhoenixBackendWeb, :controller def call(conn, {:error, %Ecto.Changeset{} = changeset}) do conn ...
27.086957
72
0.707865
215fc9f0c64bdfd2ceab9e462d1d534ffbe9cb2d
2,590
ex
Elixir
clients/storage/lib/google_api/storage/v1/model/notification.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/storage/lib/google_api/storage/v1/model/notification.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/storage/lib/google_api/storage/v1/model/notification.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
1
2018-07-28T20:50:50.000Z
2018-07-28T20:50:50.000Z
# Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the &quot;License&quot;); # 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...
43.166667
214
0.742471
216014847ced6776ae16a3128cd862d3cfc8779d
466
exs
Elixir
test/stripe/api_test.exs
mmmries/stripity_stripe
7bfaa2316f24a86fbbfc3cf140b1caff05f5ef9d
[ "BSD-3-Clause" ]
null
null
null
test/stripe/api_test.exs
mmmries/stripity_stripe
7bfaa2316f24a86fbbfc3cf140b1caff05f5ef9d
[ "BSD-3-Clause" ]
null
null
null
test/stripe/api_test.exs
mmmries/stripity_stripe
7bfaa2316f24a86fbbfc3cf140b1caff05f5ef9d
[ "BSD-3-Clause" ]
1
2021-12-01T21:49:27.000Z
2021-12-01T21:49:27.000Z
defmodule Stripe.APITest do use ExUnit.Case import Mox test "works with 301 responses without issue" do {:error, %Stripe.Error{extra: %{http_status: 301}}} = Stripe.API.request(%{}, :get, "/", %{}, []) end test "oauth_request works" do verify_on_exit!() Stripe.APIMock |> expect(:oaut...
23.3
79
0.643777
21602d14db1d929a77935a6f56b98abb034b1505
33
ex
Elixir
testData/org/elixir_lang/parser_definition/no_parentheses_no_arguments_call_parsing_test_case/StringHeredocDotIdentifier.ex
keyno63/intellij-elixir
4033e319992c53ddd42a683ee7123a97b5e34f02
[ "Apache-2.0" ]
1,668
2015-01-03T05:54:27.000Z
2022-03-25T08:01:20.000Z
testData/org/elixir_lang/parser_definition/no_parentheses_no_arguments_call_parsing_test_case/StringHeredocDotIdentifier.ex
keyno63/intellij-elixir
4033e319992c53ddd42a683ee7123a97b5e34f02
[ "Apache-2.0" ]
2,018
2015-01-01T22:43:39.000Z
2022-03-31T20:13:08.000Z
testData/org/elixir_lang/parser_definition/no_parentheses_no_arguments_call_parsing_test_case/StringHeredocDotIdentifier.ex
keyno63/intellij-elixir
4033e319992c53ddd42a683ee7123a97b5e34f02
[ "Apache-2.0" ]
145
2015-01-15T11:37:16.000Z
2021-12-22T05:51:02.000Z
""" String Heredoc """.identifier
8.25
14
0.69697
216032c5d954903b2041eaf6c716a52bc7527f5e
304
ex
Elixir
web/admin/admin_user.ex
mcousillas6/BioMonitor
312a903fe19751b6896aca9346340ea502397350
[ "MIT" ]
null
null
null
web/admin/admin_user.ex
mcousillas6/BioMonitor
312a903fe19751b6896aca9346340ea502397350
[ "MIT" ]
null
null
null
web/admin/admin_user.ex
mcousillas6/BioMonitor
312a903fe19751b6896aca9346340ea502397350
[ "MIT" ]
null
null
null
defmodule BioMonitor.ExAdmin.AdminUser do use ExAdmin.Register register_resource BioMonitor.AdminUser do create_changeset :changeset form user do inputs do input user, :email input user, :password input user, :password_confirmation end end end end
19
43
0.6875
216039000a7e30b9b91a4223b1bb33b57422f8d0
1,232
ex
Elixir
programming/elixir/simple_pay/web/views/error_helpers.ex
NomikOS/learning
268f94605214f6861ef476ca7573e68c068ccbe5
[ "Unlicense" ]
null
null
null
programming/elixir/simple_pay/web/views/error_helpers.ex
NomikOS/learning
268f94605214f6861ef476ca7573e68c068ccbe5
[ "Unlicense" ]
null
null
null
programming/elixir/simple_pay/web/views/error_helpers.ex
NomikOS/learning
268f94605214f6861ef476ca7573e68c068ccbe5
[ "Unlicense" ]
null
null
null
defmodule SimplePay.ErrorHelpers do @moduledoc """ Conveniences for translating and building error messages. """ use Phoenix.HTML @doc """ Generates tag for inlined form input errors. """ def error_tag(form, field) do if error = form.errors[field] do content_tag :span, translate_error(error)...
30.04878
75
0.668831
21604aa7dfe0248ea26954b609740f3a9ab81392
26,452
ex
Elixir
lib/elixir/lib/regex.ex
doughsay/elixir
7356a47047d0b54517bd6886603f09b1121dde2b
[ "Apache-2.0" ]
19,291
2015-01-01T02:42:49.000Z
2022-03-31T21:01:40.000Z
lib/elixir/lib/regex.ex
doughsay/elixir
7356a47047d0b54517bd6886603f09b1121dde2b
[ "Apache-2.0" ]
8,082
2015-01-01T04:16:23.000Z
2022-03-31T22:08:02.000Z
lib/elixir/lib/regex.ex
doughsay/elixir
7356a47047d0b54517bd6886603f09b1121dde2b
[ "Apache-2.0" ]
3,472
2015-01-03T04:11:56.000Z
2022-03-29T02:07:30.000Z
defmodule Regex do @moduledoc ~S""" Provides regular expressions for Elixir. Regex is based on PCRE (Perl Compatible Regular Expressions) and built on top of Erlang's `:re` module. More information can be found in the [`:re` module documentation](`:re`). Regular expressions in Elixir can be created using ...
30.615741
98
0.626569
216064d1fc78c3ee9d939bdc3be55aff048638a5
1,721
exs
Elixir
01-_start-manual/elixir_year/mix.exs
sgsharma/workshop-advanced-instrumentation
8368b454c428dc95055726e02ad58f68df92ba15
[ "Apache-2.0" ]
null
null
null
01-_start-manual/elixir_year/mix.exs
sgsharma/workshop-advanced-instrumentation
8368b454c428dc95055726e02ad58f68df92ba15
[ "Apache-2.0" ]
1
2022-03-16T09:01:37.000Z
2022-03-16T09:01:37.000Z
01-_start-manual/elixir_year/mix.exs
sgsharma/workshop-advanced-instrumentation
8368b454c428dc95055726e02ad58f68df92ba15
[ "Apache-2.0" ]
null
null
null
defmodule ElixirYear.MixProject do use Mix.Project def project do [ app: :elixir_year, version: "0.1.0", elixir: "~> 1.12", elixirc_paths: elixirc_paths(Mix.env()), compilers: [:gettext] ++ Mix.compilers(), start_permanent: Mix.env() == :prod, aliases: aliases(), ...
26.476923
84
0.576409
21607f687284f86078dfa6b1362dfc2791a84981
2,357
exs
Elixir
test/ja_serializer/builder/relationship_test.exs
Xerpa/ja_serializer
b94a37fd9ed6fdb20dc3776cd5c581fefc57c924
[ "Apache-2.0" ]
1
2017-08-31T04:00:15.000Z
2017-08-31T04:00:15.000Z
test/ja_serializer/builder/relationship_test.exs
Xerpa/ja_serializer
b94a37fd9ed6fdb20dc3776cd5c581fefc57c924
[ "Apache-2.0" ]
null
null
null
test/ja_serializer/builder/relationship_test.exs
Xerpa/ja_serializer
b94a37fd9ed6fdb20dc3776cd5c581fefc57c924
[ "Apache-2.0" ]
null
null
null
defmodule JaSerializer.Builder.RelationshipTest do use ExUnit.Case defmodule ArticleSerializer do use JaSerializer def type, do: "articles" attributes [:title] has_many :comments, serializer: JaSerializer.Builder.RelationshipTest.CommentSerializer, include: true end defmodule Comm...
29.835443
82
0.643615
21609addffc7b9ae3973e155fcb1c010c78c0911
1,634
ex
Elixir
lib/votr_web/endpoint.ex
wjanssens/votr
4fdd2a6e5ac9178a7fa90578f75a248e2bf161b6
[ "MIT" ]
1
2018-04-27T09:43:27.000Z
2018-04-27T09:43:27.000Z
lib/votr_web/endpoint.ex
wjanssens/votr
4fdd2a6e5ac9178a7fa90578f75a248e2bf161b6
[ "MIT" ]
null
null
null
lib/votr_web/endpoint.ex
wjanssens/votr
4fdd2a6e5ac9178a7fa90578f75a248e2bf161b6
[ "MIT" ]
null
null
null
defmodule VotrWeb.Endpoint do use Phoenix.Endpoint, otp_app: :votr socket "/socket", VotrWeb.UserSocket # Serve at "/" the static files from "priv/static" directory. # # You should set gzip to true if you are running phoenix.digest # when deploying your static files in production. plug Plug.Static, ...
28.666667
95
0.704406
2160b13be69e55ec2bfbde4c0c456d66cfb63316
1,992
ex
Elixir
clients/compute/lib/google_api/compute/v1/model/url_map_list_warning_data.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
1
2018-12-03T23:43:10.000Z
2018-12-03T23:43:10.000Z
clients/compute/lib/google_api/compute/v1/model/url_map_list_warning_data.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
clients/compute/lib/google_api/compute/v1/model/url_map_list_warning_data.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the &quot;License&quot;); # 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 ...
39.84
527
0.738454
2160b65f172db618f3c094cdcb45af49bff6aa62
1,925
ex
Elixir
Books/Programming_Elixir-Dave_Thomas/ch_13/issues/lib/issues/cli.ex
cjschneider2/book_example_problems
18192a6d3ddb4371b79f88e4ab3444d25f2e1ce0
[ "Unlicense" ]
null
null
null
Books/Programming_Elixir-Dave_Thomas/ch_13/issues/lib/issues/cli.ex
cjschneider2/book_example_problems
18192a6d3ddb4371b79f88e4ab3444d25f2e1ce0
[ "Unlicense" ]
null
null
null
Books/Programming_Elixir-Dave_Thomas/ch_13/issues/lib/issues/cli.ex
cjschneider2/book_example_problems
18192a6d3ddb4371b79f88e4ab3444d25f2e1ce0
[ "Unlicense" ]
null
null
null
defmodule Issues.CLI do import Issues.TableFormatter, only: [ print_table_for_columns: 2 ] @default_count 4 @moduledoc """ Handle the command line parsing and the dispatch to the various functions that end up generating a table of the last `n` issues in a GitHub Project. """ def main(argv) do ar...
26.013514
84
0.621818
2160ecf7e9928dfaab04fcdf9b573bd3f25d3972
5,826
ex
Elixir
lib/httpoison.ex
zackkitzmiller/httpoison
40580cd02561f8d938a254f2b294811e97e6f824
[ "MIT" ]
null
null
null
lib/httpoison.ex
zackkitzmiller/httpoison
40580cd02561f8d938a254f2b294811e97e6f824
[ "MIT" ]
null
null
null
lib/httpoison.ex
zackkitzmiller/httpoison
40580cd02561f8d938a254f2b294811e97e6f824
[ "MIT" ]
null
null
null
defmodule HTTPoison.Request do @moduledoc """ `Request` properties: * `:method` - HTTP method as an atom (`:get`, `:head`, `:post`, `:put`, `:delete`, etc.) * `:url` - target url as a binary string or char list * `:body` - request body. See more below * `:headers` - HTTP headers as an orddict ...
37.587097
121
0.658599
21610089425aad32a49941fa1db41227355a492d
1,010
ex
Elixir
lib/liveman/application.ex
nimblehq/liveman-demo-api
e184349983f949c8434b8651f9223db597ef1025
[ "MIT" ]
null
null
null
lib/liveman/application.ex
nimblehq/liveman-demo-api
e184349983f949c8434b8651f9223db597ef1025
[ "MIT" ]
19
2021-07-02T08:14:52.000Z
2021-07-30T09:33:12.000Z
lib/liveman/application.ex
nimblehq/liveman
e184349983f949c8434b8651f9223db597ef1025
[ "MIT" ]
null
null
null
defmodule Liveman.Application do # See https://hexdocs.pm/elixir/Application.html # for more information on OTP Applications @moduledoc false use Application def start(_type, _args) do children = [ # Start the Ecto repository Liveman.Repo, # Start the Telemetry supervisor Liveman...
28.857143
65
0.70198
2161070772632ec0423c9c5abe36636514bd8396
594
exs
Elixir
config/dev.exs
shufo/plug_cache
5fd71edf04231ad09291d17fe4caf3c2e0a1177d
[ "MIT" ]
3
2020-01-03T02:20:51.000Z
2021-03-13T02:50:23.000Z
config/dev.exs
shufo/plug_cache
5fd71edf04231ad09291d17fe4caf3c2e0a1177d
[ "MIT" ]
28
2020-03-24T20:39:12.000Z
2021-08-02T20:37:55.000Z
config/dev.exs
shufo/plug_cache
5fd71edf04231ad09291d17fe4caf3c2e0a1177d
[ "MIT" ]
null
null
null
use Mix.Config config :plug_cache, adapter: PlugCache.LocalCache config :plug_cache, PlugCache.LocalCache, adapter: Nebulex.Adapters.Local, gc_interval: 86_400 # L2 config :plug_cache, PlugCache.DistCache, adapter: Nebulex.Adapters.Dist, local: PlugCache.DistCache.Local, node_picker: Nebulex.Adapters.Dist ...
25.826087
53
0.792929
216122c0da2ac9bed06bcd73e0f87f435db29b52
1,480
ex
Elixir
clients/ad_sense/lib/google_api/ad_sense/v14/model/saved_report.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/ad_sense/lib/google_api/ad_sense/v14/model/saved_report.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/ad_sense/lib/google_api/ad_sense/v14/model/saved_report.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
1
2018-07-28T20:50:50.000Z
2018-07-28T20:50:50.000Z
# Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the &quot;License&quot;); # 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...
29.6
99
0.732432
216126d356ef334244f195ae10f9e627c47e0bb3
3,103
exs
Elixir
test/prom_ex/grafana_client_test.exs
dvic/prom_ex
36cd5e0850e3e1ccc369011fbd15d5b442024a1e
[ "MIT" ]
1
2022-02-20T10:42:44.000Z
2022-02-20T10:42:44.000Z
test/prom_ex/grafana_client_test.exs
dvic/prom_ex
36cd5e0850e3e1ccc369011fbd15d5b442024a1e
[ "MIT" ]
null
null
null
test/prom_ex/grafana_client_test.exs
dvic/prom_ex
36cd5e0850e3e1ccc369011fbd15d5b442024a1e
[ "MIT" ]
null
null
null
defmodule PromEx.GrafanaClientTest do use ExUnit.Case, async: false alias PromEx.GrafanaClient defmodule DefaultPromExSetUp do use PromEx, otp_app: :prom_ex @impl true def plugins do [] end @impl true def dashboards do [] end end @moduletag :capture_log setup do...
26.07563
120
0.602643
2161386de0249bb0d1d46f5f931c74b5fdb44407
3,255
ex
Elixir
lib/sanbase/billing/plan/restrictions.ex
sitedata/sanbase2
8da5e44a343288fbc41b68668c6c80ae8547d557
[ "MIT" ]
null
null
null
lib/sanbase/billing/plan/restrictions.ex
sitedata/sanbase2
8da5e44a343288fbc41b68668c6c80ae8547d557
[ "MIT" ]
1
2021-07-24T16:26:03.000Z
2021-07-24T16:26:03.000Z
lib/sanbase/billing/plan/restrictions.ex
sitedata/sanbase2
8da5e44a343288fbc41b68668c6c80ae8547d557
[ "MIT" ]
null
null
null
defmodule Sanbase.Billing.Plan.Restrictions do @moduledoc ~s""" Work with the access restrictions for all queries and metrics. A time restrictions is defined by the query/metric, subscription and plan. """ alias Sanbase.Billing.{Product, Subscription, Plan.AccessChecker} @type restriction :: %{ ...
32.227723
101
0.581567
216170dd4abb2af4282e35e0bfafbb0a144028d4
16,637
ex
Elixir
lib/rihanna/job.ex
dishonesthips/rihanna
b18ae159bcd308fa89505a56a216f7b2265d75ea
[ "MIT" ]
null
null
null
lib/rihanna/job.ex
dishonesthips/rihanna
b18ae159bcd308fa89505a56a216f7b2265d75ea
[ "MIT" ]
null
null
null
lib/rihanna/job.ex
dishonesthips/rihanna
b18ae159bcd308fa89505a56a216f7b2265d75ea
[ "MIT" ]
null
null
null
defmodule Rihanna.Job do require Logger @type result :: any @type reason :: any @type arg :: any @type t :: %__MODULE__{} @callback perform(arg :: any) :: :ok | {:ok, result} | :error | {:error, reason} @callback after_error({:error, reason} | :error | Exception.t(), arg) :: any() @callback retry_at(...
26.158805
113
0.574503
2161d27ad093bceb74b88401ccb957a5add48824
1,784
ex
Elixir
clients/cloud_deploy/lib/google_api/cloud_deploy/v1/model/target_render.ex
renovate-bot/elixir-google-api
1da34cd39b670c99f067011e05ab90af93fef1f6
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/cloud_deploy/lib/google_api/cloud_deploy/v1/model/target_render.ex
swansoffiee/elixir-google-api
9ea6d39f273fb430634788c258b3189d3613dde0
[ "Apache-2.0" ]
null
null
null
clients/cloud_deploy/lib/google_api/cloud_deploy/v1/model/target_render.ex
swansoffiee/elixir-google-api
9ea6d39f273fb430634788c258b3189d3613dde0
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # 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, s...
35.68
249
0.730381
2162021b31d843c034060b76a170a130638ee42e
12,766
ex
Elixir
lib/aws/elastic_transcoder.ex
ahsandar/aws-elixir
25de8b6c3a1401bde737cfc26b0679b14b058f23
[ "Apache-2.0" ]
null
null
null
lib/aws/elastic_transcoder.ex
ahsandar/aws-elixir
25de8b6c3a1401bde737cfc26b0679b14b058f23
[ "Apache-2.0" ]
null
null
null
lib/aws/elastic_transcoder.ex
ahsandar/aws-elixir
25de8b6c3a1401bde737cfc26b0679b14b058f23
[ "Apache-2.0" ]
null
null
null
# WARNING: DO NOT EDIT, AUTO-GENERATED CODE! # See https://github.com/aws-beam/aws-codegen for more details. defmodule AWS.ElasticTranscoder do @moduledoc """ AWS Elastic Transcoder Service The AWS Elastic Transcoder Service. """ @doc """ The CancelJob operation cancels an unfinished job. <note> You c...
34.317204
103
0.675623
216232d19cabf2ad0d11ba0d35e92c4676aedccb
2,845
ex
Elixir
lib/membrane/srtp/encryptor.ex
geometerio/membrane_rtp_plugin
ac6191bf7dcf2b00e880aeb475faa6de688ff5cb
[ "Apache-2.0" ]
15
2020-12-12T01:30:19.000Z
2022-02-28T22:48:08.000Z
lib/membrane/srtp/encryptor.ex
geometerio/membrane_rtp_plugin
ac6191bf7dcf2b00e880aeb475faa6de688ff5cb
[ "Apache-2.0" ]
39
2020-07-31T09:16:41.000Z
2022-03-17T09:40:50.000Z
lib/membrane/srtp/encryptor.ex
geometerio/membrane_rtp_plugin
ac6191bf7dcf2b00e880aeb475faa6de688ff5cb
[ "Apache-2.0" ]
3
2021-05-12T21:27:28.000Z
2021-11-03T19:27:34.000Z
defmodule Membrane.SRTP.Encryptor do @moduledoc """ Converts plain RTP packets to SRTP. Requires adding [srtp](https://github.com/membraneframework/elixir_libsrtp) dependency to work. """ use Membrane.Filter alias Membrane.{Buffer, RTP} require Membrane.Logger def_input_pad :input, caps: :any, deman...
26.100917
97
0.629525
2162681599ec0a9c51b38c5f8c51dfc9119702cc
79
exs
Elixir
config/config.exs
ZipBooks/mouth
50bd0949960d7d6149b7f56cb3c11357ea3ebad2
[ "MIT" ]
27
2017-06-21T13:31:13.000Z
2020-12-30T06:14:28.000Z
config/config.exs
adolfosilva/mouth
95f605cc1044262f71995cb0a5bf951f3721cae1
[ "MIT" ]
12
2017-11-08T14:47:34.000Z
2019-04-02T07:40:28.000Z
config/config.exs
adolfosilva/mouth
95f605cc1044262f71995cb0a5bf951f3721cae1
[ "MIT" ]
6
2017-11-08T14:43:27.000Z
2019-06-07T14:50:32.000Z
use Mix.Config config :logger, level: :debug config :mouth, preview_port: 1423
19.75
33
0.772152
216275d8a67b9849860b8c3fac6eb082e278d26b
1,574
exs
Elixir
integration_test/mix.exs
udanieli/phoenix
40b79c8d227eadb2af90f19b26c297a87f3b69aa
[ "MIT" ]
null
null
null
integration_test/mix.exs
udanieli/phoenix
40b79c8d227eadb2af90f19b26c297a87f3b69aa
[ "MIT" ]
null
null
null
integration_test/mix.exs
udanieli/phoenix
40b79c8d227eadb2af90f19b26c297a87f3b69aa
[ "MIT" ]
null
null
null
for path <- :code.get_path(), Regex.match?(~r/phx_new\-\d+\.\d+\.\d\/ebin$/, List.to_string(path)) do Code.delete_path(path) end defmodule Phoenix.Integration.MixProject do use Mix.Project def project do [ app: :phoenix_integration, version: "0.1.0", elixir: "~> 1.12", elixirc_pa...
26.677966
79
0.52986
216293f397be490c68f4f39eb72d92736cc6692c
476
ex
Elixir
lib/icalendar/serialize.ex
clockkcom/icalendar
a476eff9e17f4a386e81e06353a9109645f03388
[ "MIT" ]
82
2016-05-13T10:13:10.000Z
2022-02-23T04:11:12.000Z
lib/icalendar/serialize.ex
clockkcom/icalendar
a476eff9e17f4a386e81e06353a9109645f03388
[ "MIT" ]
50
2015-12-24T12:30:55.000Z
2022-03-22T18:13:19.000Z
lib/icalendar/serialize.ex
clockkcom/icalendar
a476eff9e17f4a386e81e06353a9109645f03388
[ "MIT" ]
43
2016-05-25T15:11:18.000Z
2022-03-19T16:54:58.000Z
defprotocol ICalendar.Serialize do @doc """ Serialize data to iCalendar format. Supported options for serializing a calendar: * `vendor` a string containing the vendor's name. Will produce `PRODID:-//ICalendar//My Name//EN`. """ def to_ics(data, options \\ []) end alias ICalendar.Serialize defim...
21.636364
66
0.676471
2162a055fccd44c3b08f8a516d5b37c63bf34cd4
2,256
ex
Elixir
lib/advent_of_code/day_14_b.ex
rob-brown/AdventOfCode2017
cb8a56fba4b1999820b3aec4c4f03d7094836484
[ "MIT" ]
3
2017-12-26T20:51:47.000Z
2019-05-14T04:59:38.000Z
lib/advent_of_code/day_14_b.ex
rob-brown/AdventOfCode2017
cb8a56fba4b1999820b3aec4c4f03d7094836484
[ "MIT" ]
null
null
null
lib/advent_of_code/day_14_b.ex
rob-brown/AdventOfCode2017
cb8a56fba4b1999820b3aec4c4f03d7094836484
[ "MIT" ]
null
null
null
defmodule AdventOfCode.Day14B do require Bitwise def free_regions(input) do 0..127 |> Stream.map(&"#{input}-#{&1}") |> Stream.map(&hash/1) |> build_grid |> count_regions end defp count_regions(grid) do (for x <- 0..127, y <- 0..127, do: {x, y}) |> Stream.with_index(2) |> Enum.r...
22.56
82
0.565603
2162cae403d87240c8e9288b21a631f0f10adbbc
1,642
ex
Elixir
clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/operation_errors.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/operation_errors.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/operation_errors.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
1
2018-07-28T20:50:50.000Z
2018-07-28T20:50:50.000Z
# Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the &quot;License&quot;); # 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...
32.84
119
0.757004
2162d661b1727a0ea75c8674aed763616bdc1e67
705
ex
Elixir
backend/lib/caffe_web/gettext.ex
eeng/caffe
d85d0dd56a8204c715052ddaf3d990e47c5df0e9
[ "MIT" ]
7
2020-03-27T08:26:52.000Z
2021-08-29T09:50:31.000Z
backend/lib/caffe_web/gettext.ex
eeng/caffe
d85d0dd56a8204c715052ddaf3d990e47c5df0e9
[ "MIT" ]
null
null
null
backend/lib/caffe_web/gettext.ex
eeng/caffe
d85d0dd56a8204c715052ddaf3d990e47c5df0e9
[ "MIT" ]
null
null
null
defmodule CaffeWeb.Gettext do @moduledoc """ A module providing Internationalization with a gettext-based API. By using [Gettext](https://hexdocs.pm/gettext), your module gains a set of macros for translations, for example: import CaffeWeb.Gettext # Simple translation gettext("Here is the s...
28.2
72
0.675177
2162e4113a0287ff6613fc72cfe1b4a9cc7973f8
126
ex
Elixir
lib/matrix_nif.ex
zeam-vm/elixir-matrix
51b3f82a1e92fc49f271b788921db2b9430aee87
[ "Apache-2.0" ]
2
2018-10-14T13:58:52.000Z
2019-03-02T15:20:31.000Z
lib/matrix_nif.ex
zeam-vm/elixir-matrix
51b3f82a1e92fc49f271b788921db2b9430aee87
[ "Apache-2.0" ]
null
null
null
lib/matrix_nif.ex
zeam-vm/elixir-matrix
51b3f82a1e92fc49f271b788921db2b9430aee87
[ "Apache-2.0" ]
null
null
null
defmodule MatrixNif do use Rustler, otp_app: :matrix, crate: :matrix_nif def transpose(_m), do: exit(:nif_not_loaded) end
25.2
51
0.753968
21632ba9624bbed6724432c826c83427405fdadb
1,131
exs
Elixir
simple_bank/config/config.exs
wkulikowski/homework
4def3bb3c7479953e859b84216b0848dba9c147c
[ "Apache-2.0" ]
69
2018-04-29T20:46:33.000Z
2022-03-11T04:12:40.000Z
simple_bank/config/config.exs
wkulikowski/homework
4def3bb3c7479953e859b84216b0848dba9c147c
[ "Apache-2.0" ]
5
2018-04-30T05:35:58.000Z
2020-08-24T19:13:36.000Z
simple_bank/config/config.exs
wkulikowski/homework
4def3bb3c7479953e859b84216b0848dba9c147c
[ "Apache-2.0" ]
18
2018-05-03T02:46:16.000Z
2021-05-01T17:46:55.000Z
# This file is responsible for configuring your application # and its dependencies with the aid of the Mix.Config module. use Mix.Config # This configuration is loaded before any dependency and is restricted # to this project. If another project depends on this project, this # file won't be loaded nor affect the paren...
36.483871
73
0.753316
21635162b1b87ceb4764ee81e01901ae1df4fdb1
1,950
ex
Elixir
clients/content/lib/google_api/content/v2/model/lia_settings.ex
leandrocp/elixir-google-api
a86e46907f396d40aeff8668c3bd81662f44c71e
[ "Apache-2.0" ]
null
null
null
clients/content/lib/google_api/content/v2/model/lia_settings.ex
leandrocp/elixir-google-api
a86e46907f396d40aeff8668c3bd81662f44c71e
[ "Apache-2.0" ]
null
null
null
clients/content/lib/google_api/content/v2/model/lia_settings.ex
leandrocp/elixir-google-api
a86e46907f396d40aeff8668c3bd81662f44c71e
[ "Apache-2.0" ]
1
2020-11-10T16:58:27.000Z
2020-11-10T16:58:27.000Z
# Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the &quot;License&quot;); # 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...
36.111111
166
0.734872
21635d412fb82ab75cec8bf727f4ce271d06630f
3,653
exs
Elixir
test/colly_web/live/item_live_test.exs
nidhindamodaran/colly
aaf5076afa24ea69ec084f19c5617f6808b40ade
[ "MIT" ]
null
null
null
test/colly_web/live/item_live_test.exs
nidhindamodaran/colly
aaf5076afa24ea69ec084f19c5617f6808b40ade
[ "MIT" ]
4
2020-05-30T13:25:44.000Z
2021-05-11T13:32:44.000Z
test/colly_web/live/item_live_test.exs
nidhinnambiar/colly
aaf5076afa24ea69ec084f19c5617f6808b40ade
[ "MIT" ]
null
null
null
defmodule CollyWeb.ItemLiveTest do use CollyWeb.ConnCase import Phoenix.LiveViewTest alias Colly.Collab @create_attrs %{content: "some content", dislikes_count: 42, likes_count: 42, name: "some name"} @update_attrs %{content: "some updated content", dislikes_count: 43, likes_count: 43, name: "some updated ...
31.222222
114
0.617027
216380e6fbd52c0fb41b0dc57986b597ba62ed38
1,930
ex
Elixir
clients/content/lib/google_api/content/v2/model/liasettings_list_pos_data_providers_response.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
1
2018-12-03T23:43:10.000Z
2018-12-03T23:43:10.000Z
clients/content/lib/google_api/content/v2/model/liasettings_list_pos_data_providers_response.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
clients/content/lib/google_api/content/v2/model/liasettings_list_pos_data_providers_response.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the &quot;License&quot;); # 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 ...
38.6
214
0.756995
21638adf23eec27e6739c95740bd4fd038833f19
114
exs
Elixir
test/georgi_text.exs
daph/georgi
45af711bd2e67aea24214bb59ad9e55269c3c9a6
[ "BSD-3-Clause" ]
null
null
null
test/georgi_text.exs
daph/georgi
45af711bd2e67aea24214bb59ad9e55269c3c9a6
[ "BSD-3-Clause" ]
2
2015-11-04T07:47:42.000Z
2015-11-05T00:55:53.000Z
test/georgi_text.exs
daph/georgi
45af711bd2e67aea24214bb59ad9e55269c3c9a6
[ "BSD-3-Clause" ]
null
null
null
defmodule GeorgiTest do use ExUnit.Case doctest Georgi test "the truth" do assert 1 + 1 == 2 end end
12.666667
23
0.666667
21638b50328e1d0bc1270e25b973f365f3da1f8b
1,745
ex
Elixir
lib/smart_note/notes.ex
smartlogic/smartnote
2a87df6dfe0a9810f646fcaf9472d831028af6c5
[ "MIT" ]
1
2021-07-12T14:27:11.000Z
2021-07-12T14:27:11.000Z
lib/smart_note/notes.ex
smartlogic/smartnote
2a87df6dfe0a9810f646fcaf9472d831028af6c5
[ "MIT" ]
20
2020-07-01T14:54:13.000Z
2021-08-02T15:35:31.000Z
lib/smart_note/notes.ex
smartlogic/smartnote
2a87df6dfe0a9810f646fcaf9472d831028af6c5
[ "MIT" ]
2
2020-06-20T00:48:34.000Z
2021-01-22T02:04:38.000Z
defmodule SmartNote.Notes do @moduledoc """ Context for notes Private notepad that can be shared similar to gists. """ import Ecto.Query alias SmartNote.Notes.Note alias SmartNote.Repo @doc """ Preload creating user onto the note data object for easy querying """ def preload(note) do Repo....
18.368421
70
0.579943
2163e896e9327561beb63bb743cac5b6ff2e2004
3,791
exs
Elixir
test/etl/partition_test.exs
bbalser/etl
24791047ca0ce8066ec73c4196e54e954b1a1471
[ "Apache-2.0" ]
1
2020-06-15T22:41:37.000Z
2020-06-15T22:41:37.000Z
test/etl/partition_test.exs
inhindsight/etl
24791047ca0ce8066ec73c4196e54e954b1a1471
[ "Apache-2.0" ]
1
2020-09-11T12:24:12.000Z
2020-09-12T11:14:27.000Z
test/etl/partition_test.exs
bbalser/etl
24791047ca0ce8066ec73c4196e54e954b1a1471
[ "Apache-2.0" ]
null
null
null
defmodule Etl.PartitionTest do use ExUnit.Case @supervisor Test.DynSupervisor setup do start_supervised!({DynamicSupervisor, strategy: :one_for_one, name: @supervisor}) :ok end test "etl can support simple number of partitions" do test = self() hash = fn event -> case event.data do ...
36.104762
90
0.623055
2163eb96dbec9a711a0813934497d5f61b08240a
504
exs
Elixir
config/test.exs
erplsf/mindstuff
4f5c4635947225869674f5714a9ae7da216654b4
[ "MIT" ]
null
null
null
config/test.exs
erplsf/mindstuff
4f5c4635947225869674f5714a9ae7da216654b4
[ "MIT" ]
null
null
null
config/test.exs
erplsf/mindstuff
4f5c4635947225869674f5714a9ae7da216654b4
[ "MIT" ]
null
null
null
use Mix.Config # We don't run a server during test. If one is required, # you can enable the server option below. config :mindstuff, MindstuffWeb.Endpoint, http: [port: 4001], server: false # Print only warnings and errors during test config :logger, level: :warn # Configure your database config :mindstuff, Mind...
25.2
56
0.740079
2163f514faab8ffe2991e0e3b493b0563729c513
1,546
ex
Elixir
channel-sender/lib/channel_sender_ex/core/security/channel_authenticator.ex
santitigaga/async-dataflow
66132c7353ae0b3b9d5a3704699b5ba130b4da9d
[ "MIT" ]
2
2022-01-11T21:03:44.000Z
2022-03-15T15:13:11.000Z
channel-sender/lib/channel_sender_ex/core/security/channel_authenticator.ex
santitigaga/async-dataflow
66132c7353ae0b3b9d5a3704699b5ba130b4da9d
[ "MIT" ]
3
2021-12-21T21:04:20.000Z
2022-03-15T16:16:45.000Z
channel-sender/lib/channel_sender_ex/core/security/channel_authenticator.ex
santitigaga/async-dataflow
66132c7353ae0b3b9d5a3704699b5ba130b4da9d
[ "MIT" ]
2
2022-02-08T22:33:36.000Z
2022-03-25T19:55:18.000Z
defmodule ChannelSenderEx.Core.Security.ChannelAuthenticator do @moduledoc """ Channel Authentication logic """ alias ChannelSenderEx.Core.ChannelIDGenerator alias ChannelSenderEx.Core.ChannelSupervisor @type application() :: String.t() @type user_ref() :: String.t() @type channel_ref() :: String.t() ...
37.707317
97
0.728978
216404f79dfe08930c638dac369b70554c0832b2
1,600
ex
Elixir
lib/xdr/ledger_entries/data.ex
einerzg/stellar_base
2d10c5fc3b8159efc5de10b5c7c665e3b57b3d8f
[ "MIT" ]
null
null
null
lib/xdr/ledger_entries/data.ex
einerzg/stellar_base
2d10c5fc3b8159efc5de10b5c7c665e3b57b3d8f
[ "MIT" ]
null
null
null
lib/xdr/ledger_entries/data.ex
einerzg/stellar_base
2d10c5fc3b8159efc5de10b5c7c665e3b57b3d8f
[ "MIT" ]
null
null
null
defmodule StellarBase.XDR.Data do @moduledoc """ Representation of Stellar `Data` type. """ alias StellarBase.XDR.{AccountID, String64} @behaviour XDR.Declaration @struct_spec XDR.Struct.new(account_id: AccountID, data_name: String64) @type t :: %__MODULE__{account_id: AccountID.t(), data_name: String6...
28.571429
95
0.685
216422fd2c7cb53b73d4d5282db9b8f62f8273a1
3,899
ex
Elixir
lib/ebnf_parser/interpreter_terms/array_interpreter.ex
Rahien/mu-authorization
4535afd74ae3190d168bbebdf33cb40b919742f5
[ "MIT" ]
null
null
null
lib/ebnf_parser/interpreter_terms/array_interpreter.ex
Rahien/mu-authorization
4535afd74ae3190d168bbebdf33cb40b919742f5
[ "MIT" ]
null
null
null
lib/ebnf_parser/interpreter_terms/array_interpreter.ex
Rahien/mu-authorization
4535afd74ae3190d168bbebdf33cb40b919742f5
[ "MIT" ]
null
null
null
alias Generator.State, as: State alias Generator.Result, as: Result alias InterpreterTerms.Array.Interpreter, as: ArrayEmitter # import EbnfParser.Generator, only: [emit: 1] # import EbnfParser.GeneratorConstructor, only: [dispatch_generation: 2] defmodule ArrayEmitter do defstruct [ elements: [], state: %State{}, c...
35.126126
122
0.627084
21645814119dfb0ea019c196882ee51c22ed87b0
2,127
exs
Elixir
mix.exs
kommitters/stellar_base
cf36723d5add4fead1029526230299def68048fe
[ "MIT" ]
3
2021-08-17T20:32:45.000Z
2022-03-13T20:26:02.000Z
mix.exs
kommitters/stellar_base
cf36723d5add4fead1029526230299def68048fe
[ "MIT" ]
45
2021-08-12T20:19:41.000Z
2022-03-27T21:00:10.000Z
mix.exs
kommitters/stellar_base
cf36723d5add4fead1029526230299def68048fe
[ "MIT" ]
2
2021-09-22T23:11:13.000Z
2022-01-23T03:19:11.000Z
defmodule StellarBase.MixProject do use Mix.Project @github_url "https://github.com/kommitters/stellar_base" @version "0.3.0" def project do [ app: :stellar_base, version: @version, elixir: "~> 1.10", start_permanent: Mix.env() == :prod, deps: deps(), name: "Elixir Stel...
24.732558
103
0.569346
21648771efe5498c01a04492a5d423cd2faf256c
102
ex
Elixir
web/views/batch_relationship_view.ex
simwms/apiv4
c3da7407eaf3580b759f49726028439b4b8ea9d0
[ "MIT" ]
2
2016-02-25T20:12:35.000Z
2018-01-03T00:03:12.000Z
web/views/batch_relationship_view.ex
simwms/apiv4
c3da7407eaf3580b759f49726028439b4b8ea9d0
[ "MIT" ]
1
2016-01-11T04:50:39.000Z
2016-01-12T05:00:08.000Z
web/views/batch_relationship_view.ex
simwms/apiv4
c3da7407eaf3580b759f49726028439b4b8ea9d0
[ "MIT" ]
null
null
null
defmodule Apiv4.BatchRelationshipView do use Apiv4.Web, :view use Autox.RelationshipView end
17
40
0.77451
21649d551f66a0afac02ffefbc3c538fd7f38500
2,168
ex
Elixir
clients/android_enterprise/lib/google_api/android_enterprise/v1/model/configuration_variables.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/android_enterprise/lib/google_api/android_enterprise/v1/model/configuration_variables.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/android_enterprise/lib/google_api/android_enterprise/v1/model/configuration_variables.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # 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, s...
40.90566
268
0.74262
2164aa9ca18809590d9b30b1f5e56b9f588a765a
308
exs
Elixir
priv/repo/migrations/20210929162945_add_sponsorship_histroies_hidden.exs
WOCyo/policr-mini
23e5e9f927d083cba5993f39e9f122e3a0ad1be2
[ "MIT" ]
487
2020-06-08T03:04:21.000Z
2022-03-31T14:51:36.000Z
priv/repo/migrations/20210929162945_add_sponsorship_histroies_hidden.exs
WOCyo/policr-mini
23e5e9f927d083cba5993f39e9f122e3a0ad1be2
[ "MIT" ]
141
2020-06-11T01:03:29.000Z
2022-03-30T20:23:32.000Z
priv/repo/migrations/20210929162945_add_sponsorship_histroies_hidden.exs
WOCyo/policr-mini
23e5e9f927d083cba5993f39e9f122e3a0ad1be2
[ "MIT" ]
61
2020-06-10T05:25:03.000Z
2022-03-23T15:54:26.000Z
defmodule PolicrMini.Repo.Migrations.AddSponsorshipHistroiesHidden do use PolicrMini.Migration def up do alter table(:sponsorship_histories) do add :hidden, :boolean, comment: "被隐藏" end end def down do alter table(:sponsorship_histories) do remove :hidden end end end
19.25
69
0.717532
2164b4a6cba54adf4f011fa3c3f3cd713648ffeb
1,719
ex
Elixir
test/support/mock_server.ex
morgz/mailchimp
77d073e4f7fcb1831257c6636dba8e19a3339cce
[ "MIT" ]
1
2020-07-17T02:52:34.000Z
2020-07-17T02:52:34.000Z
test/support/mock_server.ex
morgz/mailchimp
77d073e4f7fcb1831257c6636dba8e19a3339cce
[ "MIT" ]
1
2020-01-09T18:59:39.000Z
2020-01-09T18:59:39.000Z
test/support/mock_server.ex
morgz/mailchimp
77d073e4f7fcb1831257c6636dba8e19a3339cce
[ "MIT" ]
1
2019-09-10T10:19:10.000Z
2019-09-10T10:19:10.000Z
defmodule Mailchimp.MockServer do @dump_dir Path.join([ File.cwd!, "priv", "test", "dump", ]) @mock_dir Path.join([ File.cwd!, "priv", "test", "mock", ]) def dump(body) do id = body_id(body) IO.puts "# Mail Mock Response" if mock_exists(id) do IO.puts "Moc...
19.988372
64
0.581152
2164bbe45f381a9d180a15b8433f463a2e7e757f
168
exs
Elixir
app/priv/repo/migrations/20200329164909_add_temporary_stream.exs
nathanjohnson320/noodl
2e449aab15b54fc5a1dc45ebf4b79e7b64b7c967
[ "MIT" ]
1
2021-01-20T20:00:50.000Z
2021-01-20T20:00:50.000Z
app/priv/repo/migrations/20200329164909_add_temporary_stream.exs
nathanjohnson320/noodl
2e449aab15b54fc5a1dc45ebf4b79e7b64b7c967
[ "MIT" ]
null
null
null
app/priv/repo/migrations/20200329164909_add_temporary_stream.exs
nathanjohnson320/noodl
2e449aab15b54fc5a1dc45ebf4b79e7b64b7c967
[ "MIT" ]
null
null
null
defmodule Noodl.Repo.Migrations.AddTemporaryStream do use Ecto.Migration def change do alter table(:events) do add :stream_id, :string end end end
16.8
53
0.714286
2164f0560326dfa329072f46003ccb59c2180e40
3,511
ex
Elixir
clients/cloud_search/lib/google_api/cloud_search/v1/model/enum_property_options.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/cloud_search/lib/google_api/cloud_search/v1/model/enum_property_options.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/cloud_search/lib/google_api/cloud_search/v1/model/enum_property_options.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-10-04T10:12:44.000Z
2020-10-04T10:12:44.000Z
# Copyright 2019 Google LLC # # 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, s...
66.245283
713
0.77129
2165685ef733dd7ea9bded88fcc6af7237313bcc
2,571
ex
Elixir
writer_monad_from_first_principle/lib/writer_monad_from_first_principle.ex
Shakadak/elixir_playground
3a9c0319d5c8a0e296e19d9ae98fea01f8266f44
[ "MIT" ]
null
null
null
writer_monad_from_first_principle/lib/writer_monad_from_first_principle.ex
Shakadak/elixir_playground
3a9c0319d5c8a0e296e19d9ae98fea01f8266f44
[ "MIT" ]
null
null
null
writer_monad_from_first_principle/lib/writer_monad_from_first_principle.ex
Shakadak/elixir_playground
3a9c0319d5c8a0e296e19d9ae98fea01f8266f44
[ "MIT" ]
null
null
null
require Monad.Writer Monad.Writer.functor(module: Monad.Writer.List, mappend: Kernel.++, mempty: [], debug: :functor) Monad.Writer.functor(module: Monad.Writer.String, mappend: Kernel.<>, mempty: "", debug: :functor) defmodule WriterMonadFromFirstPrinciple do @moduledoc """ Documentation for `WriterMonadFromFirstP...
19.186567
98
0.595877
21656b41a837c387879fdfc18379d5819c2fde3c
3,873
exs
Elixir
test/name_of_the_day_web/controllers/user_reset_password_controller_test.exs
joaothallis/name-of-the-day
839411b6eb28cefd1b74e2f4e6eafcbb7b7bfd82
[ "MIT" ]
null
null
null
test/name_of_the_day_web/controllers/user_reset_password_controller_test.exs
joaothallis/name-of-the-day
839411b6eb28cefd1b74e2f4e6eafcbb7b7bfd82
[ "MIT" ]
6
2021-09-07T15:10:50.000Z
2021-10-31T02:56:08.000Z
test/name_of_the_day_web/controllers/user_reset_password_controller_test.exs
joaothallis/name-of-the-day
839411b6eb28cefd1b74e2f4e6eafcbb7b7bfd82
[ "MIT" ]
null
null
null
defmodule NameOfTheDayWeb.UserResetPasswordControllerTest do use NameOfTheDayWeb.ConnCase, async: true alias NameOfTheDay.Accounts alias NameOfTheDay.Repo import NameOfTheDay.AccountsFixtures setup do %{user: user_fixture()} end describe "GET /users/reset_password" do test "renders the reset pa...
33.973684
91
0.636458
2165b4773b63610087e012434ad865488aaaf168
22,970
ex
Elixir
lib/mix/lib/mix/project.ex
BasileNouvellet/elixir
4212920a40f509cb45f828b282b9cbc4497f1a7a
[ "Apache-2.0" ]
null
null
null
lib/mix/lib/mix/project.ex
BasileNouvellet/elixir
4212920a40f509cb45f828b282b9cbc4497f1a7a
[ "Apache-2.0" ]
null
null
null
lib/mix/lib/mix/project.ex
BasileNouvellet/elixir
4212920a40f509cb45f828b282b9cbc4497f1a7a
[ "Apache-2.0" ]
null
null
null
defmodule Mix.Project do @moduledoc """ Defines and manipulates Mix projects. A Mix project is defined by calling `use Mix.Project` in a module, usually placed in `mix.exs`: defmodule MyApp.MixProject do use Mix.Project def project do [ app: :my_app, ve...
29.223919
105
0.655202
2165b7e7c4fd86571bd475cdc2274769c76acc6f
4,238
exs
Elixir
test/json_schema_test_suite/draft6/const_test.exs
romul/xema
8273e10645cf54e8765a197b1ff0c097994275d9
[ "MIT" ]
null
null
null
test/json_schema_test_suite/draft6/const_test.exs
romul/xema
8273e10645cf54e8765a197b1ff0c097994275d9
[ "MIT" ]
null
null
null
test/json_schema_test_suite/draft6/const_test.exs
romul/xema
8273e10645cf54e8765a197b1ff0c097994275d9
[ "MIT" ]
null
null
null
defmodule JsonSchemaTestSuite.Draft6.ConstTest do use ExUnit.Case import Xema, only: [valid?: 2] describe "const validation" do setup do %{ schema: Xema.from_json_schema( %{"const" => 2}, draft: "draft6" ) } end test "same value is val...
21.40404
83
0.528079
2165d1875d253638ac98094280a24d1e6691d6cf
3,021
ex
Elixir
clients/pub_sub/lib/google_api/pub_sub/v1/model/binding.ex
linjunpop/elixir-google-api
444cb2b2fb02726894535461a474beddd8b86db4
[ "Apache-2.0" ]
null
null
null
clients/pub_sub/lib/google_api/pub_sub/v1/model/binding.ex
linjunpop/elixir-google-api
444cb2b2fb02726894535461a474beddd8b86db4
[ "Apache-2.0" ]
null
null
null
clients/pub_sub/lib/google_api/pub_sub/v1/model/binding.ex
linjunpop/elixir-google-api
444cb2b2fb02726894535461a474beddd8b86db4
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the &quot;License&quot;); # 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...
55.944444
1,058
0.724926
2165d9039bbcda5bf9024a74e472f7908f36f83f
902
ex
Elixir
clients/admin/lib/google_api/admin/datatransfer_v1/metadata.ex
jamesvl/elixir-google-api
6c87fb31d996f08fb42ce6066317e9d652a87acc
[ "Apache-2.0" ]
null
null
null
clients/admin/lib/google_api/admin/datatransfer_v1/metadata.ex
jamesvl/elixir-google-api
6c87fb31d996f08fb42ce6066317e9d652a87acc
[ "Apache-2.0" ]
null
null
null
clients/admin/lib/google_api/admin/datatransfer_v1/metadata.ex
jamesvl/elixir-google-api
6c87fb31d996f08fb42ce6066317e9d652a87acc
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Google LLC # # 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, s...
33.407407
74
0.763858
2165ddf13d5fbda6d9f70a6062dd378257442967
1,610
ex
Elixir
clients/people/lib/google_api/people/v1/model/age_range_type.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/people/lib/google_api/people/v1/model/age_range_type.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/people/lib/google_api/people/v1/model/age_range_type.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # 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, s...
32.2
120
0.720497
2165df89cb0abd96d8707ae1c833257fab84444d
216
exs
Elixir
memory_backend/priv/repo/migrations/20201226190858_create_decks.exs
AdrianPaulCarrieres/lpiot2020-memory-adrianpaulcarrieres
0a2d66c6ecf501188a949807c8ea2d99c26c531b
[ "MIT" ]
null
null
null
memory_backend/priv/repo/migrations/20201226190858_create_decks.exs
AdrianPaulCarrieres/lpiot2020-memory-adrianpaulcarrieres
0a2d66c6ecf501188a949807c8ea2d99c26c531b
[ "MIT" ]
15
2020-12-23T16:09:28.000Z
2020-12-26T22:32:47.000Z
memory_backend/priv/repo/migrations/20201226190858_create_decks.exs
AdrianPaulCarrieres/lpiot2020-memory-adrianpaulcarrieres
0a2d66c6ecf501188a949807c8ea2d99c26c531b
[ "MIT" ]
null
null
null
defmodule MemoryBackend.Repo.Migrations.CreateDecks do use Ecto.Migration def change do create table(:decks) do add :theme, :string add :card_back, :binary timestamps() end end end
15.428571
54
0.671296
2165eb1b0a0e1157598e426734e78f39ae10794e
2,783
ex
Elixir
web/modules/sql/db_connection.ex
sahilpaudel/AfterGlow
0859ec14b47c8c5704cc8e5cba86d39aa258fff5
[ "MIT" ]
null
null
null
web/modules/sql/db_connection.ex
sahilpaudel/AfterGlow
0859ec14b47c8c5704cc8e5cba86d39aa258fff5
[ "MIT" ]
null
null
null
web/modules/sql/db_connection.ex
sahilpaudel/AfterGlow
0859ec14b47c8c5704cc8e5cba86d39aa258fff5
[ "MIT" ]
null
null
null
require IEx defmodule AfterGlow.Sql.DbConnection do use GenServer @adapter_modules %{ postgres: AfterGlow.Sql.Adapters.Postgres, mysql: AfterGlow.Sql.Adapters.Mysql, influxdb: AfterGlow.Sql.Adapters.InfluxDb, redshift: AfterGlow.Sql.Adapters.Redshift } # client methods def start_link do ...
24.848214
88
0.644628
21661ddf45ecc572fd3006c7db1269e8fa7b77b9
3,355
ex
Elixir
clients/document_ai/lib/google_api/document_ai/v1beta2/model/google_cloud_documentai_v1beta3_batch_process_metadata_individual_process_status.ex
jamesvl/elixir-google-api
6c87fb31d996f08fb42ce6066317e9d652a87acc
[ "Apache-2.0" ]
null
null
null
clients/document_ai/lib/google_api/document_ai/v1beta2/model/google_cloud_documentai_v1beta3_batch_process_metadata_individual_process_status.ex
jamesvl/elixir-google-api
6c87fb31d996f08fb42ce6066317e9d652a87acc
[ "Apache-2.0" ]
null
null
null
clients/document_ai/lib/google_api/document_ai/v1beta2/model/google_cloud_documentai_v1beta3_batch_process_metadata_individual_process_status.ex
jamesvl/elixir-google-api
6c87fb31d996f08fb42ce6066317e9d652a87acc
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # 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, s...
47.253521
314
0.759463
21661e909647e8e26cde2f0655ab7195310301a1
405
ex
Elixir
year_2015/lib/input_file.ex
bschmeck/advent_of_code
cbec98019c6c00444e0f4c7e15e01b1ed9ae6145
[ "MIT" ]
null
null
null
year_2015/lib/input_file.ex
bschmeck/advent_of_code
cbec98019c6c00444e0f4c7e15e01b1ed9ae6145
[ "MIT" ]
null
null
null
year_2015/lib/input_file.ex
bschmeck/advent_of_code
cbec98019c6c00444e0f4c7e15e01b1ed9ae6145
[ "MIT" ]
null
null
null
defmodule InputFile do def filename_for(n) do day = n |> Integer.to_string() |> String.pad_leading(2, "0") Path.join(:code.priv_dir(:year_2015), "day_#{day}.txt") end def contents_of(n, mode \\ :read) def contents_of(n, :stream) do filename_for(n) |> File.stream!([], :line) end def conten...
21.315789
64
0.619753
216622f83d3569a59152f802fc20b5e2090c3d3d
62,158
ex
Elixir
clients/secret_manager/lib/google_api/secret_manager/v1/api/projects.ex
corp-momenti/elixir-google-api
fe1580e305789ab2ca0741791b8ffe924bd3240c
[ "Apache-2.0" ]
1
2021-10-01T09:20:41.000Z
2021-10-01T09:20:41.000Z
clients/secret_manager/lib/google_api/secret_manager/v1/api/projects.ex
corp-momenti/elixir-google-api
fe1580e305789ab2ca0741791b8ffe924bd3240c
[ "Apache-2.0" ]
null
null
null
clients/secret_manager/lib/google_api/secret_manager/v1/api/projects.ex
corp-momenti/elixir-google-api
fe1580e305789ab2ca0741791b8ffe924bd3240c
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # 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, s...
46.008882
538
0.614322
21664db34f921800bfeab7f83dbf31cae7aaa1a1
1,782
ex
Elixir
clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_cx_v3beta1_run_test_case_response.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_cx_v3beta1_run_test_case_response.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_cx_v3beta1_run_test_case_response.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # 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, s...
33.622642
135
0.76431
2166783fef86a50e691bd54027e7c9f62f1acd8b
773
ex
Elixir
lib/changelog/icecast.ex
type1fool/changelog.com
fbec3528cc3f5adfdc75b008bb92b17efc4f248f
[ "MIT" ]
1
2020-05-20T16:58:17.000Z
2020-05-20T16:58:17.000Z
lib/changelog/icecast.ex
type1fool/changelog.com
fbec3528cc3f5adfdc75b008bb92b17efc4f248f
[ "MIT" ]
null
null
null
lib/changelog/icecast.ex
type1fool/changelog.com
fbec3528cc3f5adfdc75b008bb92b17efc4f248f
[ "MIT" ]
null
null
null
defmodule Changelog.Icecast do defmodule Stats do @derive Jason.Encoder defstruct type: :icecast, streaming: false, listeners: 0 end def host, do: "https://live.changelog.com" def live_url, do: "#{host()}/stream" def is_streaming do stats = get_stats() stats.streaming end def stats_url...
22.085714
88
0.620957
2166821888df9686c62e1ddc2d0950bd27448dfc
6,536
ex
Elixir
astreu/deps/prometheus_ex/lib/prometheus/metric/gauge.ex
wesleimp/Astreu
4d430733e7ecc8b3eba8e27811a152aa2c6d79c1
[ "Apache-2.0" ]
null
null
null
astreu/deps/prometheus_ex/lib/prometheus/metric/gauge.ex
wesleimp/Astreu
4d430733e7ecc8b3eba8e27811a152aa2c6d79c1
[ "Apache-2.0" ]
null
null
null
astreu/deps/prometheus_ex/lib/prometheus/metric/gauge.ex
wesleimp/Astreu
4d430733e7ecc8b3eba8e27811a152aa2c6d79c1
[ "Apache-2.0" ]
null
null
null
defmodule Prometheus.Metric.Gauge do @moduledoc """ Gauge metric, to report instantaneous values. Gauge is a metric that represents a single numerical value that can arbitrarily go up and down. A Gauge is typically used for measured values like temperatures or current memory usage, but also "counts" that ...
30.542056
86
0.705171
2166ac063c6b4c1bd1fe99d1ff2eb0fe1dbad9dd
1,938
exs
Elixir
apps/jsonrpc2/mix.exs
unozerocode/mana
d4b16f16020fd512255004ad537ec604513c2589
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
apps/jsonrpc2/mix.exs
unozerocode/mana
d4b16f16020fd512255004ad537ec604513c2589
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
apps/jsonrpc2/mix.exs
unozerocode/mana
d4b16f16020fd512255004ad537ec604513c2589
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
defmodule JSONRPC2.Mixfile do use Mix.Project @version "0.0.1" def project do [ app: :jsonrpc2, version: @version, build_path: "../../_build", config_path: "../../config/config.exs", deps_path: "../../deps", lockfile: "../../mix.lock", build_embedded: Mix.env() == :...
28.925373
98
0.555728
2166ba7355efc9b87b9bf28aa515dbb0b709102e
508
exs
Elixir
apps/site/test/site_web/plugs/clear_cookies_test.exs
noisecapella/dotcom
d5ef869412102d2230fac3dcc216f01a29726227
[ "MIT" ]
42
2019-05-29T16:05:30.000Z
2021-08-09T16:03:37.000Z
apps/site/test/site_web/plugs/clear_cookies_test.exs
noisecapella/dotcom
d5ef869412102d2230fac3dcc216f01a29726227
[ "MIT" ]
872
2019-05-29T17:55:50.000Z
2022-03-30T09:28:43.000Z
apps/site/test/site_web/plugs/clear_cookies_test.exs
noisecapella/dotcom
d5ef869412102d2230fac3dcc216f01a29726227
[ "MIT" ]
12
2019-07-01T18:33:21.000Z
2022-03-10T02:13:57.000Z
defmodule SiteWeb.Plugs.ClearCookiesTest do @moduledoc false use SiteWeb.ConnCase, async: true import SiteWeb.Plugs.ClearCookies describe "call/2" do test "clears asp session cookies", %{conn: conn} do conn = %{conn | cookies: %{"ASPSESSION-TEST" => "session", "cookie" => "test"}} conn = call(...
29.882353
85
0.627953
2166da6dffc7d4dd7173737c83be66ac804b40f3
515
exs
Elixir
priv/repo/migrations/20191029203239_create_clients.exs
patatoid/kommissar
c6c06ba29257ba7641daf03e8e4a94fa967ecfd6
[ "MIT" ]
null
null
null
priv/repo/migrations/20191029203239_create_clients.exs
patatoid/kommissar
c6c06ba29257ba7641daf03e8e4a94fa967ecfd6
[ "MIT" ]
null
null
null
priv/repo/migrations/20191029203239_create_clients.exs
patatoid/kommissar
c6c06ba29257ba7641daf03e8e4a94fa967ecfd6
[ "MIT" ]
null
null
null
defmodule Kommissar.Repo.Migrations.CreateClients do use Ecto.Migration def change do create table(:clients, primary_key: false) do add :id, :binary_id, primary_key: true add :name, :string add :email, :string add :social_media, :map add :credit, :decimal add :tags, {:array,...
24.52381
60
0.642718
2166e4ba04ba097dfdf45c0a8ddf2013820f5f01
2,005
ex
Elixir
lib/tellurium/api/direct_async_gateway.ex
dbuos/tellurium
20de4468130f99f5a9003231e2c4752c227c9302
[ "Apache-2.0" ]
null
null
null
lib/tellurium/api/direct_async_gateway.ex
dbuos/tellurium
20de4468130f99f5a9003231e2c4752c227c9302
[ "Apache-2.0" ]
null
null
null
lib/tellurium/api/direct_async_gateway.ex
dbuos/tellurium
20de4468130f99f5a9003231e2c4752c227c9302
[ "Apache-2.0" ]
null
null
null
defmodule DirectAsyncGateway do @direct_exchange "directMessages" def request_reply(%AsyncQuery{}, nil), do: raise("nil target") def request_reply(query = %AsyncQuery{}, target_name) do correlation_id = NameGenerator.generate() msg = OutMessage.new( headers: headers(query, correlation_id), e...
27.847222
96
0.685287
21673f88f8ebd06c6551a730a7a9c7b005ad46c4
1,226
ex
Elixir
lib/telegraph/model/input_message_content.ex
etroynov/telegraph
e355362d2edbb1aa47669de6525c621be6d03e58
[ "MIT" ]
1
2022-03-14T18:00:31.000Z
2022-03-14T18:00:31.000Z
lib/telegraph/model/input_message_content.ex
etroynov/telegraph
e355362d2edbb1aa47669de6525c621be6d03e58
[ "MIT" ]
2
2022-03-16T20:49:13.000Z
2022-03-23T22:08:48.000Z
lib/telegraph/model/input_message_content.ex
etroynov/telegraph
e355362d2edbb1aa47669de6525c621be6d03e58
[ "MIT" ]
null
null
null
defmodule Telegraph.Model.InputMessageContent do @type t :: Telegraph.Model.InputMessageContent.Text.t() | Telegraph.Model.InputMessageContent.Location.t() | Telegraph.Model.InputMessageContent.Venue.t() | Telegraph.Model.InputMessageContent.Contact.t() defmodule Text do ...
31.435897
94
0.676183
216783099de171975b01123012ae40a3d1193517
652
ex
Elixir
lib/jungle_inflexor/underscore.ex
themgt/jungle_inflexor
d3aa1e86b96f04c99bd2df4f5302528fe644b5ca
[ "MIT" ]
6
2018-04-16T11:38:57.000Z
2020-05-09T00:52:30.000Z
lib/jungle_inflexor/underscore.ex
themgt/jungle_inflexor
d3aa1e86b96f04c99bd2df4f5302528fe644b5ca
[ "MIT" ]
null
null
null
lib/jungle_inflexor/underscore.ex
themgt/jungle_inflexor
d3aa1e86b96f04c99bd2df4f5302528fe644b5ca
[ "MIT" ]
1
2021-01-29T13:05:08.000Z
2021-01-29T13:05:08.000Z
defmodule Jungle.Inflexor.Underscore do @doc """ Makes an underscored, lowercase form from the expression in the string or atom. ## Examples iex> Jungle.Inflexor.underscore("UpperCamelCase") "upper_camel_case" """ def underscore(atom) when is_atom(atom) do case Atom.to_string(atom) do ...
25.076923
81
0.618098
2167d1a022560311b63dbd0fd84a01819a49c6b9
524
ex
Elixir
lib/extensions/reset_password/ecto/schema.ex
randaalex/pow
2a8c8db4652f7cb2c58d3a897e02b1d47e76f27b
[ "MIT" ]
null
null
null
lib/extensions/reset_password/ecto/schema.ex
randaalex/pow
2a8c8db4652f7cb2c58d3a897e02b1d47e76f27b
[ "MIT" ]
null
null
null
lib/extensions/reset_password/ecto/schema.ex
randaalex/pow
2a8c8db4652f7cb2c58d3a897e02b1d47e76f27b
[ "MIT" ]
1
2020-07-13T01:11:17.000Z
2020-07-13T01:11:17.000Z
defmodule PowResetPassword.Ecto.Schema do @moduledoc false use Pow.Extension.Ecto.Schema.Base alias Ecto.Changeset alias Pow.Extension.Ecto.Schema @impl true def validate!(_config, module) do Schema.require_schema_field!(module, :email, PowEmailConfirmation) end @spec reset_password_changeset(map...
26.2
70
0.744275
2167dcd90d0e96fdb98a921e95a787bc3b07d1e3
9,101
ex
Elixir
lib/exirc/commands.ex
ryanwinchester/irc
acb16b470144dcd664fb2026afa0b9a1727f2900
[ "MIT" ]
null
null
null
lib/exirc/commands.ex
ryanwinchester/irc
acb16b470144dcd664fb2026afa0b9a1727f2900
[ "MIT" ]
null
null
null
lib/exirc/commands.ex
ryanwinchester/irc
acb16b470144dcd664fb2026afa0b9a1727f2900
[ "MIT" ]
null
null
null
defmodule ExIRC.Commands do @moduledoc """ Defines IRC command constants, and methods for generating valid commands to send to an IRC server. """ defmacro __using__(_) do quote do import ExIRC.Commands #################### # IRC Numeric Codes #################### @rpl_welcom...
28.263975
111
0.571915
216820ea1950bbdb2d1b8e4d884faf72d8d952fe
195
exs
Elixir
config/config.exs
matthewp/phoenix
af86b95db365faada58d326e98de65c811690bc7
[ "MIT" ]
7
2021-01-31T04:51:08.000Z
2022-01-09T06:59:28.000Z
config/config.exs
matthewp/phoenix
af86b95db365faada58d326e98de65c811690bc7
[ "MIT" ]
2
2022-02-19T07:30:25.000Z
2022-02-27T14:12:26.000Z
config/config.exs
matthewp/phoenix
af86b95db365faada58d326e98de65c811690bc7
[ "MIT" ]
2
2021-02-06T08:40:23.000Z
2021-03-20T16:35:47.000Z
import Config config :logger, :console, colors: [enabled: false] config :phoenix, :stacktrace_depth, 20 config :phoenix, :json_library, Jason config :phoenix, :trim_on_html_eex_engine, false
19.5
50
0.774359
216827c32952e62d582dc6b956ebc69107404ef3
4,405
exs
Elixir
test/lib/absinthe/resolution/middleware_test.exs
bruce/absinthe
19b63d3aaa9fb75aad01ffd5e91d89e0b30d7f91
[ "MIT" ]
3
2017-06-22T16:33:58.000Z
2021-07-07T15:21:09.000Z
test/lib/absinthe/resolution/middleware_test.exs
bruce/absinthe
19b63d3aaa9fb75aad01ffd5e91d89e0b30d7f91
[ "MIT" ]
null
null
null
test/lib/absinthe/resolution/middleware_test.exs
bruce/absinthe
19b63d3aaa9fb75aad01ffd5e91d89e0b30d7f91
[ "MIT" ]
null
null
null
defmodule Absinthe.MiddlewareTest do use Absinthe.Case, async: true defmodule Auth do def call(res, _) do case res.context do %{current_user: _} -> res _ -> res |> Absinthe.Resolution.put_result({:error, "unauthorized"}) end end end defmodule S...
27.704403
146
0.565494
21685903702dbd04de2bd4e0bb25646176d199d1
208
exs
Elixir
test/exsemantica_web/controllers/page_controller_test.exs
ExSemantica/exsemantica
c2d72513195f44b6b5f73c8cc07394de0a1fd273
[ "Apache-2.0" ]
null
null
null
test/exsemantica_web/controllers/page_controller_test.exs
ExSemantica/exsemantica
c2d72513195f44b6b5f73c8cc07394de0a1fd273
[ "Apache-2.0" ]
2
2020-07-21T20:53:13.000Z
2020-07-21T20:54:15.000Z
test/exsemantica_web/controllers/page_controller_test.exs
Chlorophytus/eactivitypub
469346b4d5cd7ad2b575c245ac50fd71b00c4864
[ "Apache-2.0" ]
null
null
null
defmodule ExsemanticaWeb.PageControllerTest do use ExsemanticaWeb.ConnCase test "GET /", %{conn: conn} do conn = get(conn, "/") assert html_response(conn, 200) =~ "Welcome to Phoenix!" end end
23.111111
60
0.692308
21687548b5d35b9228b09ab96d7ebe33280a65a2
4,816
ex
Elixir
lib/arc/storage/s3.ex
juddey/arc
8f4479f6c7d011e2eef220b290767e9ee57b2afd
[ "Apache-2.0" ]
null
null
null
lib/arc/storage/s3.ex
juddey/arc
8f4479f6c7d011e2eef220b290767e9ee57b2afd
[ "Apache-2.0" ]
null
null
null
lib/arc/storage/s3.ex
juddey/arc
8f4479f6c7d011e2eef220b290767e9ee57b2afd
[ "Apache-2.0" ]
null
null
null
defmodule Arc.Storage.S3 do require Logger @default_expiry_time 60*5 def put(definition, version, {file, scope}) do destination_dir = definition.storage_dir(version, {file, scope}) s3_bucket = s3_bucket(definition) s3_key = Path.join(destination_dir, file.file_name) acl = definition.acl(version, ...
34.4
126
0.675872