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
03ad30def2a88183197f09f337c269dcfd06b95f
626
exs
Elixir
functions/fizzbuzz.exs
hckrtst/elixir-kata
6bee22e46443207aee77418e62ceec2569fffdba
[ "MIT" ]
1
2016-09-22T03:48:10.000Z
2016-09-22T03:48:10.000Z
functions/fizzbuzz.exs
hckrtst/elixir-kata
6bee22e46443207aee77418e62ceec2569fffdba
[ "MIT" ]
null
null
null
functions/fizzbuzz.exs
hckrtst/elixir-kata
6bee22e46443207aee77418e62ceec2569fffdba
[ "MIT" ]
null
null
null
# Write a function that takes three arguments. If the first two are zero, return “FizzBuzz.” If the first is zero, return “Fizz.” # If the second is zero, return “Buzz.” Otherwise return the third argument. fizzy = fn #explicitly defining for context a=0,b=0,c=_ -> "FizzBuzz" # this is way cleaner 0,_,_ -...
31.3
130
0.616613
03adfebec5c2f0aa983ebe35b8982a81f43cd9e8
132
exs
Elixir
test/mapsi_test.exs
hergetto/mapsi
115440f770afc5f5d19ad9c9a68dac6e2f5abf8d
[ "MIT" ]
1
2022-02-03T12:23:29.000Z
2022-02-03T12:23:29.000Z
test/mapsi_test.exs
hergetto/mapsi
115440f770afc5f5d19ad9c9a68dac6e2f5abf8d
[ "MIT" ]
null
null
null
test/mapsi_test.exs
hergetto/mapsi
115440f770afc5f5d19ad9c9a68dac6e2f5abf8d
[ "MIT" ]
null
null
null
defmodule MapsiTest do use ExUnit.Case doctest Mapsi test "greets the world" do assert Mapsi.hello() == :world end end
14.666667
34
0.69697
03ae16cb88623847ecb91d9e43d7ea2fb7f0af33
502
ex
Elixir
apps/admin_app/lib/admin_app/calculator/calculator_context.ex
Acrecio/avia
54d264fc179b5b5f17d174854bdca063e1d935e9
[ "MIT" ]
456
2018-09-20T02:40:59.000Z
2022-03-07T08:53:48.000Z
apps/admin_app/lib/admin_app/calculator/calculator_context.ex
Acrecio/avia
54d264fc179b5b5f17d174854bdca063e1d935e9
[ "MIT" ]
273
2018-09-19T06:43:43.000Z
2021-08-07T12:58:26.000Z
apps/admin_app/lib/admin_app/calculator/calculator_context.ex
Acrecio/avia
54d264fc179b5b5f17d174854bdca063e1d935e9
[ "MIT" ]
122
2018-09-26T16:32:46.000Z
2022-03-13T11:44:19.000Z
defmodule AdminApp.Promotion.CalculatorContext do @moduledoc false def preferences(calculator, params) do changeset = calculator.changeset(struct!(calculator), %{}) data = changeset.types |> Stream.filter(fn {_data, type} -> type != :binary_id end) |> Enum.map(fn {data, type} -> ...
23.904762
79
0.64741
03ae578f8ca092434d358d7a89f1c9038421a5ae
1,636
ex
Elixir
clients/manufacturers/lib/google_api/manufacturers/v1/model/count.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/manufacturers/lib/google_api/manufacturers/v1/model/count.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/manufacturers/lib/google_api/manufacturers/v1/model/count.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...
32.72
134
0.720049
03ae719366e03d40a99e677aa13fc2003241934b
561
ex
Elixir
lib/nidavellir/supervisor.ex
GabrielMalakias/nidavellir
9e786f6813aa3e014f44bdedbf88a7c8259fe1f9
[ "MIT" ]
1
2021-01-20T04:15:01.000Z
2021-01-20T04:15:01.000Z
lib/nidavellir/supervisor.ex
GabrielMalakias/nidavellir
9e786f6813aa3e014f44bdedbf88a7c8259fe1f9
[ "MIT" ]
null
null
null
lib/nidavellir/supervisor.ex
GabrielMalakias/nidavellir
9e786f6813aa3e014f44bdedbf88a7c8259fe1f9
[ "MIT" ]
null
null
null
defmodule Nidavellir.Supervisor do @moduledoc """ It just creates the supervisor tree for this project """ use Supervisor def start_link(opts) do Supervisor.start_link(__MODULE__, :ok, opts) end def init(:ok) do children = [ worker(Nidavellir.Mqtt.Connection, [%{}, [name: :mqtt]]), ...
22.44
107
0.659537
03aec8ffb07ff93a6e0f4a0be530de6b2261a6cf
25,058
ex
Elixir
lib/cldr/backend/cldr.ex
kianmeng/cldr
d0510a55b5406e4604d8823a98ff6b6aea2bb397
[ "Apache-2.0" ]
null
null
null
lib/cldr/backend/cldr.ex
kianmeng/cldr
d0510a55b5406e4604d8823a98ff6b6aea2bb397
[ "Apache-2.0" ]
null
null
null
lib/cldr/backend/cldr.ex
kianmeng/cldr
d0510a55b5406e4604d8823a98ff6b6aea2bb397
[ "Apache-2.0" ]
null
null
null
defmodule Cldr.Backend do @moduledoc false def define_backend_functions(config) do backend = config.backend quote location: :keep, bind_quoted: [config: Macro.escape(config), backend: backend] do @doc """ Returns a list of the known locale names. Known locales are those locales which ...
30.974042
122
0.598611
03aeef12e2fd4f7ad0e4990c2db0bfd7a9cc34e0
2,370
ex
Elixir
onboarding/service/web/models/merchant.ex
FoxComm/highlander
1aaf8f9e5353b94c34d574c2a92206a1c363b5be
[ "MIT" ]
10
2018-04-12T22:29:52.000Z
2021-10-18T17:07:45.000Z
onboarding/service/web/models/merchant.ex
FoxComm/highlander
1aaf8f9e5353b94c34d574c2a92206a1c363b5be
[ "MIT" ]
null
null
null
onboarding/service/web/models/merchant.ex
FoxComm/highlander
1aaf8f9e5353b94c34d574c2a92206a1c363b5be
[ "MIT" ]
1
2018-07-06T18:42:05.000Z
2018-07-06T18:42:05.000Z
defmodule OnboardingService.Merchant do use OnboardingService.Web, :model schema "merchants" do field :name, :string field :business_name, :string field :phone_number, :string field :email_address, :string field :description, :string field :site_url, :string field :state, :string, defau...
41.578947
87
0.76962
03af0809d5fe314d17972a95443b94a1a51941c0
1,316
ex
Elixir
template/$PROJECT_NAME$/apps/$PROJECT_NAME$/lib/$PROJECT_NAME$/notifications/email.ex
fadeojo/mithril
d84ff2d42f895c27c46c0feb09b70ccbac5827ac
[ "MIT" ]
54
2018-01-24T00:22:57.000Z
2019-01-15T20:03:52.000Z
template/$PROJECT_NAME$/apps/$PROJECT_NAME$/lib/$PROJECT_NAME$/notifications/email.ex
infinitered/mithril
0bbad29f86c63d9a827dcaaf6fed78a176ab90d7
[ "MIT" ]
3
2018-02-05T18:00:39.000Z
2018-05-04T00:05:20.000Z
template/$PROJECT_NAME$/apps/$PROJECT_NAME$/lib/$PROJECT_NAME$/notifications/email.ex
fadeojo/mithril
d84ff2d42f895c27c46c0feb09b70ccbac5827ac
[ "MIT" ]
3
2019-07-12T11:16:42.000Z
2020-06-08T15:03:36.000Z
defmodule <%= @project_name_camel_case %>.Notifications.Email do @moduledoc false import Swoosh.Email alias <%= @project_name_camel_case %>.Notifications.Email.Template <%= if assigns[:accounts] do %> @doc """ Builds a forgot password email. """ @spec forgot_password(String.t, <%= @project_name_camel...
35.567568
105
0.650456
03af3265f86bfd39f9a00d282f37888dd9084486
4,169
ex
Elixir
lib/changelog/buffer/content.ex
theafricanengineer/changelog.com
4954d0df516c0a325667ec6c1fbbf02d68c9b953
[ "MIT" ]
null
null
null
lib/changelog/buffer/content.ex
theafricanengineer/changelog.com
4954d0df516c0a325667ec6c1fbbf02d68c9b953
[ "MIT" ]
null
null
null
lib/changelog/buffer/content.ex
theafricanengineer/changelog.com
4954d0df516c0a325667ec6c1fbbf02d68c9b953
[ "MIT" ]
null
null
null
defmodule Changelog.Buffer.Content do alias Changelog.{Episode, ListKit, NewsItem} alias ChangelogWeb.{Endpoint, NewsItemView, Router} def episode_link(nil), do: nil def episode_link(item), do: item.url def episode_text(nil), do: "" def episode_text(item) do item = item |> NewsItem.preload...
29.992806
117
0.64308
03af3a2ed58bbf0afd0b984c6168ee1235fbf5e2
95
ex
Elixir
lib/he_broker/pry/message_relayed.ex
HackerExperience/HEBroker
2a653a43b512c6392f55508dfc1be8463a845b31
[ "BSD-3-Clause" ]
5
2017-02-15T18:25:35.000Z
2018-03-29T16:36:31.000Z
lib/he_broker/pry/message_relayed.ex
HackerExperience/HeBroker
2a653a43b512c6392f55508dfc1be8463a845b31
[ "BSD-3-Clause" ]
null
null
null
lib/he_broker/pry/message_relayed.ex
HackerExperience/HeBroker
2a653a43b512c6392f55508dfc1be8463a845b31
[ "BSD-3-Clause" ]
null
null
null
defmodule HeBroker.Pry.MessageRelayed do defstruct [:topic, :message, :request, :moment] end
23.75
49
0.768421
03af72c697b5cf07c5e7471ce53189be8fb74f75
1,775
exs
Elixir
discuss/mix.exs
hiroshisiq/elixir-sandbox
3f014d2f15ae1eeda1c22db30ef111cbc22e9afc
[ "MIT" ]
null
null
null
discuss/mix.exs
hiroshisiq/elixir-sandbox
3f014d2f15ae1eeda1c22db30ef111cbc22e9afc
[ "MIT" ]
null
null
null
discuss/mix.exs
hiroshisiq/elixir-sandbox
3f014d2f15ae1eeda1c22db30ef111cbc22e9afc
[ "MIT" ]
null
null
null
defmodule Discuss.MixProject do use Mix.Project def project do [ app: :discuss, version: "0.1.0", elixir: "~> 1.5", elixirc_paths: elixirc_paths(Mix.env()), compilers: [:phoenix, :gettext] ++ Mix.compilers(), start_permanent: Mix.env() == :prod, aliases: aliases(), ...
26.893939
82
0.571268
03af83afdf7a97f200d8887861f8a6730d9e82af
1,917
exs
Elixir
clients/cloud_resource_manager/mix.exs
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/cloud_resource_manager/mix.exs
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/cloud_resource_manager/mix.exs
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...
28.61194
130
0.66771
03afa26cc9009fe65a2baba2d511bbd4c5a080d6
1,419
ex
Elixir
lib/fusion_auth/plugs/refresh_jwt.ex
Cogility/fusion_auth
bb765849d6e1d6bc105c2316ea5fe5dd792bd49e
[ "MIT" ]
10
2020-11-13T08:33:22.000Z
2021-08-09T17:37:09.000Z
lib/fusion_auth/plugs/refresh_jwt.ex
Cogility/fusion_auth
bb765849d6e1d6bc105c2316ea5fe5dd792bd49e
[ "MIT" ]
11
2021-01-06T21:30:14.000Z
2021-09-08T09:04:51.000Z
lib/fusion_auth/plugs/refresh_jwt.ex
Cogility/fusion_auth
bb765849d6e1d6bc105c2316ea5fe5dd792bd49e
[ "MIT" ]
null
null
null
defmodule FusionAuth.Plugs.RefreshJWT do @moduledoc """ The `FusionAuth.Plugs.RefreshJWT` module provides functionality to return a new refresh token and JWT back to the client after the request is processed. ## Examples ``` config/{env}.exs config :fusion_auth, token_header_key: "authorizati...
24.894737
103
0.610994
03afa7a1273068d2287188f748132c29f32ec319
438
ex
Elixir
lib/some_weather/noaa.ex
anthonyoconnor/some_weather
edd3c07115b4f76c0531dd9f4586bd8a13fb369f
[ "MIT" ]
1
2016-05-25T04:03:34.000Z
2016-05-25T04:03:34.000Z
lib/some_weather/noaa.ex
anthonyoconnor/some_weather
edd3c07115b4f76c0531dd9f4586bd8a13fb369f
[ "MIT" ]
null
null
null
lib/some_weather/noaa.ex
anthonyoconnor/some_weather
edd3c07115b4f76c0531dd9f4586bd8a13fb369f
[ "MIT" ]
null
null
null
defmodule SomeWeather.NOAA do @user_agent [{"User-agent", "Elixir test program"}] def fetch(id) do url(id) |> HTTPoison.get(@user_agent) |> handle_reponse end def url(id) do "http://w1.weather.gov/xml/current_obs/#{id}.xml" end def handle_reponse({:ok, %{status_code: 200, body: body}}) d...
18.25
63
0.623288
03afb2297c501e302bcf72d0371ae6045bf338b6
1,475
ex
Elixir
lib/xdr/void.ex
kommitters/xdr
41f8bcbb62c70a37a8ae7e861a473053f712fb67
[ "MIT" ]
7
2020-06-30T22:52:23.000Z
2022-02-18T22:13:43.000Z
lib/xdr/void.ex
kommitters/xdr
41f8bcbb62c70a37a8ae7e861a473053f712fb67
[ "MIT" ]
22
2020-05-22T15:24:52.000Z
2021-09-01T16:56:53.000Z
lib/xdr/void.ex
kommitters/xdr
41f8bcbb62c70a37a8ae7e861a473053f712fb67
[ "MIT" ]
1
2021-08-17T12:34:15.000Z
2021-08-17T12:34:15.000Z
defmodule XDR.Void do @moduledoc """ This module manages the `Void` type based on the RFC4506 XDR Standard. """ @behaviour XDR.Declaration alias XDR.VoidError defstruct [:void] @typedoc """ `XDR.Void` struct type specification. """ @type t :: %XDR.Void{void: nil} @doc """ Create a new `XDR....
23.790323
72
0.621695
03afb3b8554ea070f0fe9770dc0be515516641fb
3,502
exs
Elixir
test/phoenix_ecto/sql/sandbox_test.exs
Sightsource/phoenix_ecto
4753a803059aa4108e76fe570674d1b419a61458
[ "MIT" ]
null
null
null
test/phoenix_ecto/sql/sandbox_test.exs
Sightsource/phoenix_ecto
4753a803059aa4108e76fe570674d1b419a61458
[ "MIT" ]
null
null
null
test/phoenix_ecto/sql/sandbox_test.exs
Sightsource/phoenix_ecto
4753a803059aa4108e76fe570674d1b419a61458
[ "MIT" ]
null
null
null
defmodule PhoenixEcto.SQL.SandboxTest do use ExUnit.Case, async: true use Plug.Test alias Phoenix.Ecto.SQL.Sandbox defmodule MockSandbox do def checkout(repo, opts) do send opts[:client], {:checkout, repo} :ok end def checkin(repo, opts) do send opts[:client], {:checkin, repo} ...
25.940741
78
0.650771
03afe2db8d3a74afabde9b4df2680912814aade9
4,634
ex
Elixir
lib/serve_elm_web/worker.ex
robotarmy/serve_elm
931787a55acbe076eac0c0b199c5cfc63425197e
[ "MIT" ]
null
null
null
lib/serve_elm_web/worker.ex
robotarmy/serve_elm
931787a55acbe076eac0c0b199c5cfc63425197e
[ "MIT" ]
null
null
null
lib/serve_elm_web/worker.ex
robotarmy/serve_elm
931787a55acbe076eac0c0b199c5cfc63425197e
[ "MIT" ]
null
null
null
defmodule ServeElmWeb.Worker do use GenServer # Public Impl def get_or_render(key) do case GenServer.call(__MODULE__, {:get, key}) do {:missing, nil} -> case ServeElmWeb.Worker.render(key) do {:ok, result } -> {:ok, result } {:error, e } -> {:error,...
23.40404
93
0.552438
03b03fe37a051c9d98ba8df605eb042813b86830
1,094
ex
Elixir
lib/circular_web/channels/user_socket.ex
cblock/circular
fb784d638bde2b1f125a03c403783f93533f5892
[ "Apache-2.0" ]
null
null
null
lib/circular_web/channels/user_socket.ex
cblock/circular
fb784d638bde2b1f125a03c403783f93533f5892
[ "Apache-2.0" ]
3
2020-09-04T09:32:55.000Z
2022-03-06T02:17:06.000Z
lib/circular_web/channels/user_socket.ex
cblock/circular
fb784d638bde2b1f125a03c403783f93533f5892
[ "Apache-2.0" ]
null
null
null
defmodule CircularWeb.UserSocket do use Phoenix.Socket ## Channels # channel "room:*", CircularWeb.RoomChannel # Socket params are passed from the client and can # be used to verify and authenticate a user. After # verification, you can put default assigns into # the socket that will be set for all chan...
30.388889
83
0.695612
03b07a018f074ae0b06cde58861aa39e41d75395
4,615
ex
Elixir
lib/mix/lib/mix/tasks/archive.install.ex
fmterrorf/elixir
eafb7b87756179adac5dc2bc11edcb04c1f187cc
[ "Apache-2.0" ]
1
2022-03-28T12:04:08.000Z
2022-03-28T12:04:08.000Z
lib/mix/lib/mix/tasks/archive.install.ex
fmterrorf/elixir
eafb7b87756179adac5dc2bc11edcb04c1f187cc
[ "Apache-2.0" ]
null
null
null
lib/mix/lib/mix/tasks/archive.install.ex
fmterrorf/elixir
eafb7b87756179adac5dc2bc11edcb04c1f187cc
[ "Apache-2.0" ]
null
null
null
defmodule Mix.Tasks.Archive.Install do use Mix.Task @shortdoc "Installs an archive locally" @moduledoc """ Installs an archive locally. If no argument is supplied but there is an archive in the project's root directory (created with `mix archive.build`), then the archive will be installed locally. For ...
28.140244
85
0.681473
03b07dea78b6991409d93f1202d8b07501480d59
11,208
ex
Elixir
lib/ex_doc/retriever.ex
bdanklin/ex_doc
21b32dd2e501723bec1a7ab004e813f9745cff0d
[ "Apache-2.0", "CC-BY-4.0" ]
null
null
null
lib/ex_doc/retriever.ex
bdanklin/ex_doc
21b32dd2e501723bec1a7ab004e813f9745cff0d
[ "Apache-2.0", "CC-BY-4.0" ]
null
null
null
lib/ex_doc/retriever.ex
bdanklin/ex_doc
21b32dd2e501723bec1a7ab004e813f9745cff0d
[ "Apache-2.0", "CC-BY-4.0" ]
null
null
null
defmodule ExDoc.Retriever do # Functions to extract documentation information from modules. @moduledoc false defmodule Error do @moduledoc false defexception [:message] end alias ExDoc.{DocAST, GroupMatcher, Refs} alias ExDoc.Retriever.Error @doc """ Extract documentation from all modules in ...
31.750708
99
0.661224
03b0841ec7e79661d2fc4e04b9cd51fa5d380bc8
455
ex
Elixir
backend/lib/backend/users/category.ex
ericgroom/gatorgoods
c78af60f463c6c8c6762101a2d8e7102d43bd804
[ "MIT" ]
null
null
null
backend/lib/backend/users/category.ex
ericgroom/gatorgoods
c78af60f463c6c8c6762101a2d8e7102d43bd804
[ "MIT" ]
9
2020-02-12T00:40:03.000Z
2021-12-09T01:11:33.000Z
backend/lib/backend/users/category.ex
ericgroom/gatorgoods
c78af60f463c6c8c6762101a2d8e7102d43bd804
[ "MIT" ]
null
null
null
defmodule Backend.Users.Category do @moduledoc """ Backend Category """ use Ecto.Schema import Ecto.Changeset use BackendWeb, :model schema "categories" do field :name, :string, default: "NONE SELECTED" has_many :items, Backend.Users.Item end @required_fields ~w(name) @optional_fields ~w() ...
20.681818
50
0.685714
03b08c2728232b6443b551256ee4fefd4bb53c72
1,664
ex
Elixir
clients/drive/lib/google_api/drive/v3/model/file_content_hints_thumbnail.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/drive/lib/google_api/drive/v3/model/file_content_hints_thumbnail.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/drive/lib/google_api/drive/v3/model/file_content_hints_thumbnail.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "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...
33.28
124
0.727163
03b09dc8d8e0b47ed48e48cb171c1fa8d030cace
1,234
exs
Elixir
mix.exs
derek-zhou/ueberauth_wordpress
299d56c6728aeecc3a21c4b171a4bb0e61b843cd
[ "MIT" ]
null
null
null
mix.exs
derek-zhou/ueberauth_wordpress
299d56c6728aeecc3a21c4b171a4bb0e61b843cd
[ "MIT" ]
null
null
null
mix.exs
derek-zhou/ueberauth_wordpress
299d56c6728aeecc3a21c4b171a4bb0e61b843cd
[ "MIT" ]
1
2022-02-25T23:47:11.000Z
2022-02-25T23:47:11.000Z
defmodule UeberauthWordpress.MixProject do use Mix.Project def project do [ app: :ueberauth_wordpress, version: "0.1.0", name: "Ueberauth Wordpress Strategy", package: package(), elixir: "~> 1.10", build_embedded: Mix.env() == :prod, start_permanent: Mix.env() == :prod...
22.851852
79
0.56483
03b0b6e732c279e87e47eb19912bebdfcb10c7fa
15,708
ex
Elixir
lib/bamboo/adapters/smtp_adapter.ex
wingyplus/bamboo_smtp
ab73a194d6d8a130d499058a4ca52da150e3f206
[ "MIT" ]
null
null
null
lib/bamboo/adapters/smtp_adapter.ex
wingyplus/bamboo_smtp
ab73a194d6d8a130d499058a4ca52da150e3f206
[ "MIT" ]
null
null
null
lib/bamboo/adapters/smtp_adapter.ex
wingyplus/bamboo_smtp
ab73a194d6d8a130d499058a4ca52da150e3f206
[ "MIT" ]
null
null
null
defmodule Bamboo.SMTPAdapter do @moduledoc """ Sends email using SMTP. Use this adapter to send emails through SMTP. This adapter requires that some settings are set in the config. See the example section below. *Sensitive credentials should not be committed to source control and are best kept in environmen...
29.142857
111
0.692068
03b0c74f40d494ccae50fdb5e937869273ba6442
4,309
ex
Elixir
clients/policy_troubleshooter/lib/google_api/policy_troubleshooter/v1/model/google_iam_v1_binding.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/policy_troubleshooter/lib/google_api/policy_troubleshooter/v1/model/google_iam_v1_binding.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/policy_troubleshooter/lib/google_api/policy_troubleshooter/v1/model/google_iam_v1_binding.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...
43.09
158
0.710374
03b0e714e6e7e0499fd29f01f35c4c4ea9337513
163
exs
Elixir
priv/repo/migrations/20211026050428_add_hls_path_to_media.exs
froseph/ambry
86c1a8528b9f3cc7e4a7debd8005df4116a7d1b1
[ "MIT" ]
12
2021-09-30T20:51:49.000Z
2022-01-27T04:09:32.000Z
priv/repo/migrations/20211026050428_add_hls_path_to_media.exs
froseph/ambry
86c1a8528b9f3cc7e4a7debd8005df4116a7d1b1
[ "MIT" ]
76
2021-10-01T05:45:11.000Z
2022-03-28T04:12:39.000Z
priv/repo/migrations/20211026050428_add_hls_path_to_media.exs
froseph/ambry
86c1a8528b9f3cc7e4a7debd8005df4116a7d1b1
[ "MIT" ]
2
2021-10-04T19:27:28.000Z
2022-01-13T22:36:38.000Z
defmodule Ambry.Repo.Migrations.AddHlsPathToMedia do use Ecto.Migration def change do alter table(:media) do add :hls_path, :text end end end
16.3
52
0.705521
03b0f0ca02d202f354e8eaaf2282e02de84a97d9
3,698
ex
Elixir
clients/service_user/lib/google_api/service_user/v1/api/services.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/service_user/lib/google_api/service_user/v1/api/services.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/service_user/lib/google_api/service_user/v1/api/services.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.505882
225
0.693618
03b103d2282a4b41343594617a3a2bc085a780ec
485
exs
Elixir
priv/repo/migrations/20181028010610_create_topic_for_contents.exs
DavidAlphaFox/coderplanets_server
3fd47bf3bba6cc04c9a34698201a60ad2f3e8254
[ "Apache-2.0" ]
1
2019-05-07T15:03:54.000Z
2019-05-07T15:03:54.000Z
priv/repo/migrations/20181028010610_create_topic_for_contents.exs
DavidAlphaFox/coderplanets_server
3fd47bf3bba6cc04c9a34698201a60ad2f3e8254
[ "Apache-2.0" ]
null
null
null
priv/repo/migrations/20181028010610_create_topic_for_contents.exs
DavidAlphaFox/coderplanets_server
3fd47bf3bba6cc04c9a34698201a60ad2f3e8254
[ "Apache-2.0" ]
null
null
null
defmodule MastaniServer.Repo.Migrations.CreateTopicForContents do use Ecto.Migration def change do create table(:topics) do # add(:community_id, references(:communities, on_delete: :delete_all), null: false) # add(:user_id, references(:users)) add(:thread, :string) add(:title, :string, ...
26.944444
89
0.661856
03b10df9c53640660fa806db37a1471b92b9d5cf
1,872
ex
Elixir
clients/android_publisher/lib/google_api/android_publisher/v2/model/bundle.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/android_publisher/lib/google_api/android_publisher/v2/model/bundle.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/android_publisher/lib/google_api/android_publisher/v2/model/bundle.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...
35.320755
177
0.715278
03b11244ca6fa8ef5293a4541429cb9b662d9d42
4,932
ex
Elixir
islands_engine/lib/islands_engine/game.ex
ipmsteven/rethink_webapp
ea906747e32baf0a6544cc33184cb55963cb25d1
[ "MIT" ]
null
null
null
islands_engine/lib/islands_engine/game.ex
ipmsteven/rethink_webapp
ea906747e32baf0a6544cc33184cb55963cb25d1
[ "MIT" ]
null
null
null
islands_engine/lib/islands_engine/game.ex
ipmsteven/rethink_webapp
ea906747e32baf0a6544cc33184cb55963cb25d1
[ "MIT" ]
null
null
null
defmodule IslandsEngine.Game do use GenServer, start: {__MODULE__, :start_link, []}, restart: :transient @timeout 15000 @players [:player1, :player2] alias IslandsEngine.{Board, Guesses, Rules, Island, Coordinate} def start_link(name) when is_binary(name) do GenServer.start_link(__MODULE__, name, name:...
31.819355
129
0.671127
03b11a7b92efdbd328ec38622a43e4226dfcfa10
1,394
exs
Elixir
channel-sender/mix.exs
gabheadz/async-dataflow
7ca1f3087872b96c6f7f3b2c0f9aa102c74fdb38
[ "MIT" ]
null
null
null
channel-sender/mix.exs
gabheadz/async-dataflow
7ca1f3087872b96c6f7f3b2c0f9aa102c74fdb38
[ "MIT" ]
null
null
null
channel-sender/mix.exs
gabheadz/async-dataflow
7ca1f3087872b96c6f7f3b2c0f9aa102c74fdb38
[ "MIT" ]
1
2022-03-11T15:51:38.000Z
2022-03-11T15:51:38.000Z
defmodule ChannelSenderEx.MixProject do use Mix.Project def project do [ app: :channel_sender_ex, version: "0.1.0", elixir: "~> 1.10", start_permanent: Mix.env() == :prod, deps: deps(), aliases: aliases(), releases: [ channel_sender_ex: [ include_exec...
25.345455
87
0.515782
03b135c651a23d00925373020f6830114c61b8a4
1,112
ex
Elixir
test/support/channel_case.ex
vinolivae/daily_meals
8f375cbb7eaf54abfa6b683705bb8075067f9078
[ "MIT" ]
null
null
null
test/support/channel_case.ex
vinolivae/daily_meals
8f375cbb7eaf54abfa6b683705bb8075067f9078
[ "MIT" ]
null
null
null
test/support/channel_case.ex
vinolivae/daily_meals
8f375cbb7eaf54abfa6b683705bb8075067f9078
[ "MIT" ]
null
null
null
defmodule DailyMealsWeb.ChannelCase do @moduledoc """ This module defines the test case to be used by channel tests. Such tests rely on `Phoenix.ChannelTest` and also import other functionality to make it easier to build common data structures and query the data layer. Finally, if the test case interact...
29.263158
73
0.739209
03b185dfbcf57ed908f547161db68a05696508f2
1,029
ex
Elixir
elixir/lib/junks/application.ex
crappygraphix/junks
a56b5b86e1a5cbcf0a71fc44d6292d6bcd525b76
[ "Apache-2.0" ]
1
2019-04-29T17:46:44.000Z
2019-04-29T17:46:44.000Z
elixir/lib/junks/application.ex
crappygraphix/junks
a56b5b86e1a5cbcf0a71fc44d6292d6bcd525b76
[ "Apache-2.0" ]
null
null
null
elixir/lib/junks/application.ex
crappygraphix/junks
a56b5b86e1a5cbcf0a71fc44d6292d6bcd525b76
[ "Apache-2.0" ]
null
null
null
defmodule Junks.Application do @moduledoc false use Application # See https://hexdocs.pm/elixir/Application.html # for more information on OTP Applications def start(_type, _args) do import Supervisor.Spec # Define workers and child supervisors to be supervised children = [ # Start the Ec...
30.264706
83
0.709427
03b18f2dc690de351ebefd2b063cd8e171b4c459
495
ex
Elixir
combo/phxexibee/lib/phxexibee_web/views/error_view.ex
exineris/shp_challenge2021
2a5447af681259d0ea699b670cf079bd31315cd8
[ "Apache-2.0" ]
null
null
null
combo/phxexibee/lib/phxexibee_web/views/error_view.ex
exineris/shp_challenge2021
2a5447af681259d0ea699b670cf079bd31315cd8
[ "Apache-2.0" ]
null
null
null
combo/phxexibee/lib/phxexibee_web/views/error_view.ex
exineris/shp_challenge2021
2a5447af681259d0ea699b670cf079bd31315cd8
[ "Apache-2.0" ]
null
null
null
defmodule PhxexibeeWeb.ErrorView do use PhxexibeeWeb, :view # If you want to customize a particular status code # for a certain format, you may uncomment below. # def render("500.html", _assigns) do # "Internal Server Error" # end # By default, Phoenix returns the status message from # the template ...
29.117647
61
0.737374
03b1ad7927f7af7ab6eca4cf26fe950e87746c95
43,070
ex
Elixir
clients/compute/lib/google_api/compute/v1/api/instance_group_managers.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/compute/lib/google_api/compute/v1/api/instance_group_managers.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/compute/lib/google_api/compute/v1/api/instance_group_managers.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...
72.386555
1,327
0.731577
03b1c0c72f786b86216038e8bffbe784016331c7
6,040
ex
Elixir
apps/ex_wire/lib/ex_wire/packet/capability/par/snapshot_data/state_chunk.ex
wolflee/mana
db66dac85addfaad98d40da5bd4082b3a0198bb1
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
152
2018-10-27T04:52:03.000Z
2022-03-26T10:34:00.000Z
apps/ex_wire/lib/ex_wire/packet/capability/par/snapshot_data/state_chunk.ex
wolflee/mana
db66dac85addfaad98d40da5bd4082b3a0198bb1
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
270
2018-04-14T07:34:57.000Z
2018-10-25T18:10:45.000Z
apps/ex_wire/lib/ex_wire/packet/capability/par/snapshot_data/state_chunk.ex
wolflee/mana
db66dac85addfaad98d40da5bd4082b3a0198bb1
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
25
2018-10-27T12:15:13.000Z
2022-01-25T20:31:14.000Z
defmodule ExWire.Packet.Capability.Par.SnapshotData.StateChunk do @moduledoc """ State chunks store the entire state of a given block. A "rich" account structure is used to save space. Each state chunk consists of a list of lists, each with two items: an address' sha3 hash and a rich account structure correla...
30.351759
83
0.548013
03b1c13bee58d0e2789e3cbc01b5f3725e28b620
311
ex
Elixir
lib/imager_web/views/error.ex
appunite/imager
b41f76be975faf4d255ad0a5d8e972df1924356b
[ "MIT" ]
55
2018-10-02T14:56:04.000Z
2021-12-10T21:08:07.000Z
lib/imager_web/views/error.ex
appunite/imager
b41f76be975faf4d255ad0a5d8e972df1924356b
[ "MIT" ]
27
2018-10-02T14:57:09.000Z
2019-04-11T07:51:11.000Z
lib/imager_web/views/error.ex
appunite/imager
b41f76be975faf4d255ad0a5d8e972df1924356b
[ "MIT" ]
3
2018-10-12T18:31:41.000Z
2020-04-22T15:26:25.000Z
defmodule ImagerWeb.Views.Error do use Phoenix.View, root: "lib/imager_web/templates" @moduledoc false def render("500.json", _), do: %{error: "Internal server error"} def render("404.json", _), do: %{error: "Non existent page"} def render("422.json", _), do: %{error: "Cannot parse arguments"} end
31.1
67
0.684887
03b1e0d15f98ffe9fafe79f16e6e2be98d587de7
444
ex
Elixir
samples/client/petstore/elixir/lib/swagger_petstore/model/return.ex
bruceadams/swagger-codegen-1
2e5289c4d74eafd48e3a324ccdd9e39323b5fb06
[ "Apache-2.0" ]
null
null
null
samples/client/petstore/elixir/lib/swagger_petstore/model/return.ex
bruceadams/swagger-codegen-1
2e5289c4d74eafd48e3a324ccdd9e39323b5fb06
[ "Apache-2.0" ]
null
null
null
samples/client/petstore/elixir/lib/swagger_petstore/model/return.ex
bruceadams/swagger-codegen-1
2e5289c4d74eafd48e3a324ccdd9e39323b5fb06
[ "Apache-2.0" ]
null
null
null
# NOTE: This class is auto generated by the swagger code generator program. # https://github.com/swagger-api/swagger-codegen.git # Do not edit the class manually. defmodule SwaggerPetstore.Model.Return do @moduledoc """ Model for testing reserved words """ @derive [Poison.Encoder] defstruct [ :"return" ...
20.181818
75
0.727477
03b23c2f9121498d39abb25e2d53dd42c1bd54dd
2,640
ex
Elixir
lib/glimesh/subcategories/rawg_source.ex
Megami-Studios/glimesh.tv
57dde3a328fabdcc3305be48ae1b82df27b83c9b
[ "MIT" ]
328
2020-07-23T22:13:49.000Z
2022-03-31T21:22:28.000Z
lib/glimesh/subcategories/rawg_source.ex
Megami-Studios/glimesh.tv
57dde3a328fabdcc3305be48ae1b82df27b83c9b
[ "MIT" ]
362
2020-07-23T22:38:38.000Z
2022-03-24T02:11:16.000Z
lib/glimesh/subcategories/rawg_source.ex
Megami-Studios/glimesh.tv
57dde3a328fabdcc3305be48ae1b82df27b83c9b
[ "MIT" ]
72
2020-07-23T22:50:46.000Z
2022-02-02T11:59:32.000Z
defmodule Glimesh.Subcategories.RawgSource do @moduledoc """ Pull a list of games from Rawg to pre-fill our subcategory list for gaming. """ @source_name "rawg" def update_game_list do {:ok, games} = list_games() IO.puts("Loaded #{length(games)} games into the database") end defp create_subcat...
27.216495
85
0.596591
03b23e587f963c8594de809a56232603d26b9b08
253
ex
Elixir
lib/chatsnek.ex
xtagon/chatsnek
a2bc762da02467631d17ddc8b47217f4a49b740b
[ "MIT" ]
3
2020-12-13T15:24:40.000Z
2021-09-22T17:45:40.000Z
lib/chatsnek.ex
xtagon/chatsnek
a2bc762da02467631d17ddc8b47217f4a49b740b
[ "MIT" ]
8
2020-12-14T01:25:44.000Z
2021-10-03T16:12:23.000Z
lib/chatsnek.ex
xtagon/chatsnek
a2bc762da02467631d17ddc8b47217f4a49b740b
[ "MIT" ]
null
null
null
defmodule ChatSnek do @moduledoc """ ChatSnek keeps the contexts that define your domain and business logic. Contexts are also responsible for managing your data, regardless if it comes from the database, an external API or others. """ end
25.3
66
0.754941
03b25687bea4861766f9af28ffaa46c588f89795
2,129
ex
Elixir
lib/dlex/utils.ex
m0dnar/dlex
1a3d0216d0aabb8c1ab5c92c5e6847c140769201
[ "Apache-2.0" ]
1
2021-11-26T03:41:39.000Z
2021-11-26T03:41:39.000Z
lib/dlex/utils.ex
m0dnar/dlex
1a3d0216d0aabb8c1ab5c92c5e6847c140769201
[ "Apache-2.0" ]
null
null
null
lib/dlex/utils.ex
m0dnar/dlex
1a3d0216d0aabb8c1ab5c92c5e6847c140769201
[ "Apache-2.0" ]
null
null
null
defmodule Dlex.Utils do @doc """ Encode variables """ def encode_vars(vars) do for {key, value} <- vars, into: %{}, do: {key, to_string(value)} end @doc """ Add temporary blank ids to json object """ def add_blank_ids(statement, uid_key \\ "uid"), do: statement |> add_blank_ids(0, uid_key) |>...
29.985915
98
0.621419
03b25c2ab00bb9e88595209335558b149741dbeb
15,748
exs
Elixir
test/phoenix/digester_test.exs
arjun810/phoenix
b50ca688e7b79423f3124af8778711bb1588947f
[ "MIT" ]
null
null
null
test/phoenix/digester_test.exs
arjun810/phoenix
b50ca688e7b79423f3124af8778711bb1588947f
[ "MIT" ]
null
null
null
test/phoenix/digester_test.exs
arjun810/phoenix
b50ca688e7b79423f3124af8778711bb1588947f
[ "MIT" ]
null
null
null
defmodule Phoenix.DigesterTest do use ExUnit.Case, async: true @output_path Path.join("tmp", "phoenix_digest") @fake_now 32_132_173 @hash_regex ~S"[a-fA-F\d]{32}" setup do File.rm_rf!(@output_path) :ok end describe "compile" do test "fails when the given paths are invalid" do assert {...
37.495238
105
0.643574
03b26693da25e364003cb3331445e816fe9d1fde
920
ex
Elixir
lib/glimesh/oauth/token_resolver.ex
Darkhax-Forked/glimesh.tv
9566f0ec6909ecc5151f0e092f3e08b63d911fa8
[ "MIT" ]
1
2020-08-02T00:12:28.000Z
2020-08-02T00:12:28.000Z
lib/glimesh/oauth/token_resolver.ex
Darkhax-Forked/glimesh.tv
9566f0ec6909ecc5151f0e092f3e08b63d911fa8
[ "MIT" ]
null
null
null
lib/glimesh/oauth/token_resolver.ex
Darkhax-Forked/glimesh.tv
9566f0ec6909ecc5151f0e092f3e08b63d911fa8
[ "MIT" ]
null
null
null
defmodule Glimesh.Oauth.TokenResolver do @moduledoc """ Resolve a token into a user. """ alias Glimesh.Accounts.User alias Glimesh.Repo def resolve_user(nil) do {:error, "No token specified"} end def resolve_user(token) do config = [otp_app: :glimesh] ExOauth2Provider.authenticate_token(...
23
94
0.673913
03b274d8b6cdf1fa20f4c2465e49d29cd8e7fa27
1,108
ex
Elixir
web/elm-stuff/packages/simonh1000/elm-jwt/5.2.2/examples/phoenix/web/auth/auth.ex
Woody88/AnkiProject
91ce73e058e6d98678073d53a7b84c0b6571aacc
[ "BSD-3-Clause" ]
1
2018-02-21T20:01:51.000Z
2018-02-21T20:01:51.000Z
web/elm-stuff/packages/simonh1000/elm-jwt/5.2.2/examples/phoenix/web/auth/auth.ex
Woody88/AnkiProject
91ce73e058e6d98678073d53a7b84c0b6571aacc
[ "BSD-3-Clause" ]
1
2021-04-21T07:08:26.000Z
2021-04-21T07:08:26.000Z
examples/phoenix/web/auth/auth.ex
JonRowe/elm-jwt
54a65b33b362cb8daa2fcc4dd574aeec2d3c02b6
[ "MIT" ]
null
null
null
defmodule JwtExample.Auth do import Plug.Conn import Comeonin.Bcrypt, only: [ checkpw: 2, dummy_checkpw: 0 ] def init(opts) do Keyword.fetch!(opts, :repo) end def call(conn, repo) do user_id = get_session(conn, :user_id) user = user_id && repo.get(JwtExample.User, user_id) ...
26.380952
68
0.559567
03b2756449cc363e193832fce16dde995d61c123
396
exs
Elixir
test/cog/chat/slack/templates/embedded/help_command_documentation_test.exs
matusf/cog
71708301c7dc570fb0d3498a50f47a70ef957788
[ "Apache-2.0" ]
1,003
2016-02-23T17:21:12.000Z
2022-02-20T14:39:35.000Z
test/cog/chat/slack/templates/embedded/help_command_documentation_test.exs
matusf/cog
71708301c7dc570fb0d3498a50f47a70ef957788
[ "Apache-2.0" ]
906
2016-02-22T22:54:19.000Z
2022-03-11T15:19:43.000Z
test/cog/chat/slack/templates/embedded/help_command_documentation_test.exs
matusf/cog
71708301c7dc570fb0d3498a50f47a70ef957788
[ "Apache-2.0" ]
95
2016-02-23T13:42:31.000Z
2021-11-30T14:39:55.000Z
defmodule Cog.Chat.Slack.Templates.Embedded.HelpCommandDocumentationTest do use Cog.TemplateCase test "help-command-documentation template" do data = %{"results" => [%{"documentation" => "big ol' doc string"}]} expected = """ ```big ol' doc string``` """ |> String.strip assert_rendered_template...
33
93
0.691919
03b2ba24a27573af250c9c0f7f8535666491363a
1,448
ex
Elixir
priv/templates/coh.install/models/coherence/trackable.ex
thefuture2092/coherence
377d91ff01622773b5a9ec39fadf1f8c27328879
[ "MIT" ]
8
2019-01-15T08:57:07.000Z
2020-08-26T13:43:01.000Z
priv/templates/coh.install/models/coherence/trackable.ex
thefuture2092/coherence
377d91ff01622773b5a9ec39fadf1f8c27328879
[ "MIT" ]
2
2019-05-29T17:49:10.000Z
2019-06-18T21:39:22.000Z
priv/templates/coh.install/models/coherence/trackable.ex
thefuture2092/coherence
377d91ff01622773b5a9ec39fadf1f8c27328879
[ "MIT" ]
22
2018-12-10T02:15:18.000Z
2020-10-06T08:42:22.000Z
defmodule <%= base %>.Coherence.Trackable do @moduledoc """ Schema responsible for saving user tracking data for the --trackable-table option. """ use Ecto.Schema import Ecto.Changeset alias Coherence.Config @fields ~w(action sign_in_count current_sign_in_ip current_sign_in_at last_sign_in_ip last_sign_...
29.55102
113
0.685083
03b2c067fb12e62f086d29b4d6aa961c72377c17
1,046
ex
Elixir
web/models/item.ex
robot-overlord/todo-example
2877bf3dc94e857a576fdc922c040c6af2f68ec0
[ "MIT" ]
1
2017-07-20T17:41:13.000Z
2017-07-20T17:41:13.000Z
web/models/item.ex
robot-overlord/todo-example
2877bf3dc94e857a576fdc922c040c6af2f68ec0
[ "MIT" ]
null
null
null
web/models/item.ex
robot-overlord/todo-example
2877bf3dc94e857a576fdc922c040c6af2f68ec0
[ "MIT" ]
null
null
null
defmodule Todo.Item do @moduledoc """ Models a list item Backed by Ecto Completer --- Item >--- List (User) """ use Todo.Web, :model @type t :: %Todo.Item{ id: non_neg_integer(), name: String.t(), image_url: String.t(), completer: Todo.User.t() | nil, list: Todo.List...
18.350877
57
0.575526
03b2c0a28bdbf648dfacb800408efc23576de6ce
109,241
ex
Elixir
lib/elixir/lib/enum.ex
bruteforcecat/elixir
2013b4dc34cd65953615f71e721e2e9c3949ec85
[ "Apache-2.0" ]
null
null
null
lib/elixir/lib/enum.ex
bruteforcecat/elixir
2013b4dc34cd65953615f71e721e2e9c3949ec85
[ "Apache-2.0" ]
null
null
null
lib/elixir/lib/enum.ex
bruteforcecat/elixir
2013b4dc34cd65953615f71e721e2e9c3949ec85
[ "Apache-2.0" ]
null
null
null
defprotocol Enumerable do @moduledoc """ Enumerable protocol used by `Enum` and `Stream` modules. When you invoke a function in the `Enum` module, the first argument is usually a collection that must implement this protocol. For example, the expression: Enum.map([1, 2, 3], &(&1 * 2)) invokes `Enume...
28.604609
105
0.616563
03b2e2ce5fe64f1f22d9bb9f8c821e2cb6c71dbf
2,847
ex
Elixir
lib/workers/send_site_setup_emails.ex
wvffle/analytics
2c0fd55bc67f74af1fe1e2641678d44e9fee61d5
[ "MIT" ]
2
2020-05-16T13:48:44.000Z
2020-05-22T09:52:36.000Z
lib/workers/send_site_setup_emails.ex
wvffle/analytics
2c0fd55bc67f74af1fe1e2641678d44e9fee61d5
[ "MIT" ]
2
2020-07-09T21:44:35.000Z
2020-07-14T07:06:10.000Z
lib/workers/send_site_setup_emails.ex
wvffle/analytics
2c0fd55bc67f74af1fe1e2641678d44e9fee61d5
[ "MIT" ]
null
null
null
defmodule Plausible.Workers.SendSiteSetupEmails do use Plausible.Repo use Oban.Worker, queue: :site_setup_emails require Logger alias Plausible.Stats.Clickhouse, as: Stats @impl Oban.Worker def perform(_args, _job) do send_create_site_emails() send_setup_help_emails() send_setup_success_emails(...
25.419643
93
0.623463
03b2eeb84f81f099006ee88883fc4990a0c18dbd
564
ex
Elixir
lib/bank_stone_web/views/changeset_view.ex
theguuholi/bank_stone
150a7c7ac9eb2d9bb977d1d784518b39df5c5ab5
[ "MIT" ]
3
2020-04-25T11:35:06.000Z
2021-10-06T19:59:47.000Z
lib/bank_stone_web/views/changeset_view.ex
theguuholi/bank_stone
150a7c7ac9eb2d9bb977d1d784518b39df5c5ab5
[ "MIT" ]
12
2019-11-04T11:06:37.000Z
2019-11-21T11:03:57.000Z
lib/bank_stone_web/views/changeset_view.ex
theguuholi/bank_stone
150a7c7ac9eb2d9bb977d1d784518b39df5c5ab5
[ "MIT" ]
1
2020-12-11T07:05:04.000Z
2020-12-11T07:05:04.000Z
defmodule BankStoneWeb.ChangesetView do use BankStoneWeb, :view @doc """ Traverses and translates changeset errors. See `Ecto.Changeset.traverse_errors/2` and `BankStoneWeb.ErrorHelpers.translate_error/1` for more details. """ def translate_errors(changeset) do Ecto.Changeset.traverse_errors(changes...
28.2
65
0.741135
03b337aca5c39b8dc8df1d3afac177dc35372627
228
exs
Elixir
apps/data/priv/repo/migrations/20190118162555_add_last_seen_at_to_games.exs
sb8244/grapevine
effaaa01294d30114090c20f9cc40b8665d834f2
[ "MIT" ]
107
2018-10-05T18:20:32.000Z
2022-02-28T04:02:50.000Z
apps/data/priv/repo/migrations/20190118162555_add_last_seen_at_to_games.exs
sb8244/grapevine
effaaa01294d30114090c20f9cc40b8665d834f2
[ "MIT" ]
33
2018-10-05T14:11:18.000Z
2022-02-10T22:19:18.000Z
apps/data/priv/repo/migrations/20190118162555_add_last_seen_at_to_games.exs
sb8244/grapevine
effaaa01294d30114090c20f9cc40b8665d834f2
[ "MIT" ]
18
2019-02-03T03:08:20.000Z
2021-12-28T04:29:36.000Z
defmodule GrapevineData.Repo.Migrations.AddLastSeenAtToGames do use Ecto.Migration def change do alter table(:games) do add(:last_seen_at, :utc_datetime) end create index(:games, :last_seen_at) end end
19
63
0.72807
03b339f0c6ad66e354315c5bc1676d8ad078e7d1
2,351
exs
Elixir
test/mix/tasks/ecto.gen.migration_test.exs
michael-borisov/ecto_sql
86bcf507f026427211907b3c730dcc576721a421
[ "Apache-2.0" ]
null
null
null
test/mix/tasks/ecto.gen.migration_test.exs
michael-borisov/ecto_sql
86bcf507f026427211907b3c730dcc576721a421
[ "Apache-2.0" ]
null
null
null
test/mix/tasks/ecto.gen.migration_test.exs
michael-borisov/ecto_sql
86bcf507f026427211907b3c730dcc576721a421
[ "Apache-2.0" ]
null
null
null
defmodule Mix.Tasks.Ecto.Gen.MigrationTest do use ExUnit.Case, async: true import Support.FileHelpers import Mix.Tasks.Ecto.Gen.Migration, only: [run: 1] tmp_path = Path.join(tmp_path(), inspect(Ecto.Gen.Migration)) @migrations_path Path.join(tmp_path, "migrations") defmodule Repo do def __adapter__ ...
32.652778
102
0.680987
03b39e1595e351d2aeca2522692f329cd0f878b2
1,330
ex
Elixir
lib/ex_sieve/node.ex
ppraisethesun/ex_sieve
17b9802281e13cc348621f519103f5e42fc0df87
[ "MIT" ]
null
null
null
lib/ex_sieve/node.ex
ppraisethesun/ex_sieve
17b9802281e13cc348621f519103f5e42fc0df87
[ "MIT" ]
null
null
null
lib/ex_sieve/node.ex
ppraisethesun/ex_sieve
17b9802281e13cc348621f519103f5e42fc0df87
[ "MIT" ]
null
null
null
defmodule ExSieve.Node do @moduledoc false alias ExSieve.Node.{Grouping, Sort} alias ExSieve.{Config, Utils} @typep error :: {:error, :attribute_not_found | :predicat_not_found | :direction_not_found} @spec call(%{(atom | binary) => term}, atom, Config.t) :: {:ok, Grouping.t, list(Sort.t)} | error def ca...
33.25
99
0.682707
03b3a6cc1a71e28f81a2f52a839296723c7da9f2
2,651
ex
Elixir
clients/games/lib/google_api/games/v1/model/participant_result.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
1
2018-12-03T23:43:10.000Z
2018-12-03T23:43:10.000Z
clients/games/lib/google_api/games/v1/model/participant_result.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
clients/games/lib/google_api/games/v1/model/participant_result.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 ...
42.079365
258
0.712939
03b3b1a187e63aaa413d614cec901d177bd1a197
537
ex
Elixir
lib/rps_web/channels/user_socket.ex
cabol/rps
813028c4b7bb18f8c7cbcf4422249a81ccb9f059
[ "MIT" ]
3
2018-05-28T15:10:11.000Z
2020-08-02T21:14:25.000Z
lib/rps_web/channels/user_socket.ex
cabol/rps
813028c4b7bb18f8c7cbcf4422249a81ccb9f059
[ "MIT" ]
null
null
null
lib/rps_web/channels/user_socket.ex
cabol/rps
813028c4b7bb18f8c7cbcf4422249a81ccb9f059
[ "MIT" ]
null
null
null
defmodule RpsWeb.UserSocket do use Phoenix.Socket alias Rps.Accounts ## Channels channel "room:*", RpsWeb.RoomChannel ## Transports transport :websocket, Phoenix.Transports.WebSocket def connect(params, socket) do do_authorize(params, socket) end def id(_socket), do: nil defp do_authorize(...
19.888889
57
0.67784
03b3c93147cf3f1457b56ce24976af09093120b8
1,188
exs
Elixir
clients/cloud_iot/mix.exs
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
clients/cloud_iot/mix.exs
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
clients/cloud_iot/mix.exs
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
defmodule GoogleApi.CloudIot.V1.Mixfile do use Mix.Project @version "0.12.0" def project do [app: :google_api_cloud_iot, version: @version, elixir: "~> 1.4", build_embedded: Mix.env == :prod, start_permanent: Mix.env == :prod, description: description(), package: package(), ...
24.244898
109
0.596801
03b3eebfa5562c887e374b55e7dcb4daeabcb3c1
1,589
exs
Elixir
test/define/tabular_test.exs
marick/flow_assertions
50936d03c7e0d482f13f94c96438627d344592c0
[ "Unlicense" ]
8
2020-09-04T19:38:41.000Z
2021-06-05T18:59:49.000Z
test/define/tabular_test.exs
marick/flow_assertions
50936d03c7e0d482f13f94c96438627d344592c0
[ "Unlicense" ]
null
null
null
test/define/tabular_test.exs
marick/flow_assertions
50936d03c7e0d482f13f94c96438627d344592c0
[ "Unlicense" ]
null
null
null
defmodule FlowAssertions.Define.TabularTests do use FlowAssertions.Case import FlowAssertions.Define.{Tabular,BodyParts} describe "fail" do test "variant argument lists" do a = assertion_runners_for(&assert_equal/2) msg = "Assertion with === failed" ["a", "b"] |> a.fail.(msg) ...
29.981132
72
0.568282
03b3ffe73eb9502c9e058f15faa55eed2a3552e1
1,129
exs
Elixir
config/dev.exs
vertico/vertico-test
af68000ff99450cf5686d7c5b803931f267c8e19
[ "MIT" ]
3
2021-11-23T23:07:34.000Z
2021-11-24T01:40:01.000Z
config/dev.exs
vertico/vertico-test
af68000ff99450cf5686d7c5b803931f267c8e19
[ "MIT" ]
null
null
null
config/dev.exs
vertico/vertico-test
af68000ff99450cf5686d7c5b803931f267c8e19
[ "MIT" ]
1
2021-07-19T11:48:30.000Z
2021-07-19T11:48:30.000Z
import Mix.Config require Logger config :shikoba, Shikoba.Repo, database: "shikoba_dev", hostname: "localhost", show_sensitive_data_on_connection_error: true, pool_size: 10 config :shikoba, ShikobaWeb.Endpoint, http: [port: 4000], debug_errors: true, code_reloader: true, check_origin: false config :...
26.880952
82
0.765279
03b425c7e8e17f7660491cc245b31be36b83a8ff
2,525
exs
Elixir
config/config.exs
optikfluffel/radiator
b1a1b966296fa6bf123e3a2455009ff52099ace6
[ "MIT" ]
1
2021-03-02T16:59:40.000Z
2021-03-02T16:59:40.000Z
config/config.exs
optikfluffel/radiator
b1a1b966296fa6bf123e3a2455009ff52099ace6
[ "MIT" ]
null
null
null
config/config.exs
optikfluffel/radiator
b1a1b966296fa6bf123e3a2455009ff52099ace6
[ "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. # General application configuration use Mix.Config config :radiator, ecto_repos: [Radiator.Repo] ...
30.059524
91
0.736634
03b42a8df3157dcfb696922c0bbd2843b42c4f1d
512
ex
Elixir
lib/utils.ex
alwayswimmin/Sue
33dfd860e7d5b6dce11e2dc202924efad6a9474c
[ "MIT" ]
1
2020-06-21T01:50:12.000Z
2020-06-21T01:50:12.000Z
lib/utils.ex
alwayswimmin/Sue
33dfd860e7d5b6dce11e2dc202924efad6a9474c
[ "MIT" ]
null
null
null
lib/utils.ex
alwayswimmin/Sue
33dfd860e7d5b6dce11e2dc202924efad6a9474c
[ "MIT" ]
null
null
null
defmodule Sue.Utils do @spec tokenize(String.t()) :: [String.t()] def tokenize(args) do cond do String.contains?(args, "\n") -> String.split(args, "\n") String.contains?(args, ",") -> String.split(args, ",", trim: true) true -> String.split(args, " ") end end @spec contains?(Enumerabl...
24.380952
72
0.591797
03b43c405c9ef3d4c6629c892ba370fc07da0045
894
ex
Elixir
debian/prerm.ex
sharkwouter/vaporos-flatpak-manager
da1dce2a806fdb51aa9366408ace50c28fbc3ff6
[ "MIT" ]
null
null
null
debian/prerm.ex
sharkwouter/vaporos-flatpak-manager
da1dce2a806fdb51aa9366408ace50c28fbc3ff6
[ "MIT" ]
21
2019-09-15T08:42:58.000Z
2021-08-28T16:48:54.000Z
debian/prerm.ex
sharkwouter/vaporos-flatpak-manager
da1dce2a806fdb51aa9366408ace50c28fbc3ff6
[ "MIT" ]
null
null
null
#!/bin/sh # prerm script for vaporos-flatpak-manager # # see: dh_installdeb(1) set -e # summary of how this script can be called: # * <prerm> `remove' # * <old-prerm> `upgrade' <new-version> # * <new-prerm> `failed-upgrade' <old-version> # * <conflictor's-prerm> `remove' `in-favour' <packa...
22.923077
76
0.630872
03b44d8e10a835af9bb7f7c804dfd4896e6d0ce0
4,400
exs
Elixir
test/mysimplelist/lists_test.exs
ScorpionResponse/mysimplelist
3c792373cc372ab5e196fe109b9dae68b97b7220
[ "Apache-2.0" ]
null
null
null
test/mysimplelist/lists_test.exs
ScorpionResponse/mysimplelist
3c792373cc372ab5e196fe109b9dae68b97b7220
[ "Apache-2.0" ]
null
null
null
test/mysimplelist/lists_test.exs
ScorpionResponse/mysimplelist
3c792373cc372ab5e196fe109b9dae68b97b7220
[ "Apache-2.0" ]
null
null
null
defmodule Mysimplelist.ListsTest do use Mysimplelist.DataCase alias Mysimplelist.Lists import Mysimplelist.Tests.Fixtures describe "lists" do alias Mysimplelist.Lists.List @valid_attrs %{name: "some name"} @update_attrs %{name: "some updated name"} @invalid_attrs %{name: nil, user_id: nil} ...
33.587786
98
0.672727
03b4a273b1a1f4f9b5df274d938fd337adf355c1
5,516
ex
Elixir
lib/grapevine/authorizations.ex
shanesveller/grapevine
fe74ade1adff88dfe4c1ab55fee3902dbb4664fe
[ "MIT" ]
null
null
null
lib/grapevine/authorizations.ex
shanesveller/grapevine
fe74ade1adff88dfe4c1ab55fee3902dbb4664fe
[ "MIT" ]
null
null
null
lib/grapevine/authorizations.ex
shanesveller/grapevine
fe74ade1adff88dfe4c1ab55fee3902dbb4664fe
[ "MIT" ]
null
null
null
defmodule Grapevine.Authorizations do @moduledoc """ Authorize remote logins """ import Ecto.Query alias Grapevine.Authorizations.AccessToken alias Grapevine.Authorizations.Authorization alias Grapevine.Games alias Grapevine.Repo @doc """ Check for a username before allowing oauth to proceed ""...
24.515556
129
0.637237
03b4af517983793f3ce3ec89dc78f8aed620691f
1,001
ex
Elixir
lib/danpay/application.ex
Nilomiranda/Danpay
1b6f05a8a5ce6b636241c369fca85f16b229bc82
[ "MIT" ]
null
null
null
lib/danpay/application.ex
Nilomiranda/Danpay
1b6f05a8a5ce6b636241c369fca85f16b229bc82
[ "MIT" ]
null
null
null
lib/danpay/application.ex
Nilomiranda/Danpay
1b6f05a8a5ce6b636241c369fca85f16b229bc82
[ "MIT" ]
null
null
null
defmodule Danpay.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 Danpay.Repo, # Start the Telemetry supervisor DanpayWeb...
28.6
64
0.699301
03b4b4580687f7a60c916335e4267c9c2b2c70c9
1,100
exs
Elixir
test/chunk_test.exs
macoene/observables
6e43ab9b7ea2afa60160a13ef5c37eb20dc597b7
[ "MIT" ]
4
2018-04-16T20:43:37.000Z
2019-07-18T21:50:49.000Z
test/chunk_test.exs
macoene/observables
6e43ab9b7ea2afa60160a13ef5c37eb20dc597b7
[ "MIT" ]
null
null
null
test/chunk_test.exs
macoene/observables
6e43ab9b7ea2afa60160a13ef5c37eb20dc597b7
[ "MIT" ]
1
2021-03-18T18:37:11.000Z
2021-03-18T18:37:11.000Z
defmodule ChunkTest do use ExUnit.Case alias Observables.{Obs} require Logger @tag :chunk test "chunk" do testproc = self() start = 1 tend = 50 size = 5 # Create a range. Obs.range(start, tend, 100) # We should consume 5 values each time. |> Obs.chunk(size * 100 + 10) |>...
23.404255
93
0.58
03b4bcf5f7a8027334c903027268e96074000bb0
1,123
exs
Elixir
config/config.exs
zcking/ex_hash
5e70788bffd26961be059074bf15413fe0e2ee43
[ "MIT" ]
1
2018-11-04T14:45:36.000Z
2018-11-04T14:45:36.000Z
config/config.exs
zcking/ex_hash
5e70788bffd26961be059074bf15413fe0e2ee43
[ "MIT" ]
null
null
null
config/config.exs
zcking/ex_hash
5e70788bffd26961be059074bf15413fe0e2ee43
[ "MIT" ]
null
null
null
# 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.225806
73
0.751558
03b4c0e7b786ca651f911f31facae41a7cf59d20
892
ex
Elixir
lib/astarte_rpc/protocol/realm_management.ex
Annopaolo/astarte_rpc
cd720004d225631f41d6f4d7f964aecb92b52849
[ "Apache-2.0" ]
3
2018-02-02T14:07:03.000Z
2020-02-10T07:12:39.000Z
lib/astarte_rpc/protocol/realm_management.ex
Annopaolo/astarte_rpc
cd720004d225631f41d6f4d7f964aecb92b52849
[ "Apache-2.0" ]
49
2018-02-02T10:00:30.000Z
2022-03-22T10:39:10.000Z
lib/astarte_rpc/protocol/realm_management.ex
Annopaolo/astarte_rpc
cd720004d225631f41d6f4d7f964aecb92b52849
[ "Apache-2.0" ]
5
2018-02-02T09:58:07.000Z
2021-04-07T08:53:44.000Z
# # This file is part of Astarte. # # Copyright 2017 Ispirata Srl # # 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 appl...
35.68
91
0.769058
03b4eea915604d1ec1ac7d02d75b04deda19ae7e
456
ex
Elixir
platform/target/network/wait_for_time.ex
pdgonzalez872/farmbot_os
a444248f05ee8f4fe57f6a4865b942131960f76c
[ "MIT" ]
null
null
null
platform/target/network/wait_for_time.ex
pdgonzalez872/farmbot_os
a444248f05ee8f4fe57f6a4865b942131960f76c
[ "MIT" ]
null
null
null
platform/target/network/wait_for_time.ex
pdgonzalez872/farmbot_os
a444248f05ee8f4fe57f6a4865b942131960f76c
[ "MIT" ]
1
2020-12-16T16:39:32.000Z
2020-12-16T16:39:32.000Z
defmodule Farmbot.Target.Network.WaitForTime do use Farmbot.Logger def start_link(_, _) do :ok = wait_for_time() Logger.success 3, "Time seems to be set: #{:os.system_time(:seconds)} . Moving on." :ignore end defp wait_for_time do case :os.system_time(:seconds) do t when t > 1_474_929 -> ...
21.714286
87
0.618421
03b4f4bf9b852a716f8ab0f5c66df2ff53db49e8
277
ex
Elixir
lib/mix_test_watch/message_inbox.ex
gasparch/mix-test.watch
6be7f440bedb04ee191c187a6eeed433fd001572
[ "MIT" ]
1
2021-01-04T16:42:18.000Z
2021-01-04T16:42:18.000Z
lib/mix_test_watch/message_inbox.ex
mkaszubowski/mix-test.watch
6be7f440bedb04ee191c187a6eeed433fd001572
[ "MIT" ]
null
null
null
lib/mix_test_watch/message_inbox.ex
mkaszubowski/mix-test.watch
6be7f440bedb04ee191c187a6eeed433fd001572
[ "MIT" ]
null
null
null
defmodule MixTestWatch.MessageInbox do @moduledoc """ Helpers for managing process messages. """ @spec flush :: :ok @doc """ Clear the process inbox of all messages. """ def flush do receive do _ -> flush after 0 -> :ok end end end
16.294118
42
0.599278
03b5350d535404236bc9e8853a57709077f6b290
1,595
exs
Elixir
node_modules/@snyk/snyk-hex-plugin/elixirsrc/deps/json/mix.exs
muhamarief/cobafrappe
9f4c787338873e774d73779a8f1cee168daa2b62
[ "MIT" ]
165
2015-01-21T19:50:39.000Z
2021-11-05T12:31:23.000Z
node_modules/@snyk/snyk-hex-plugin/elixirsrc/deps/json/mix.exs
muhamarief/cobafrappe
9f4c787338873e774d73779a8f1cee168daa2b62
[ "MIT" ]
27
2015-05-08T14:03:17.000Z
2021-09-11T09:27:16.000Z
node_modules/@snyk/snyk-hex-plugin/elixirsrc/deps/json/mix.exs
muhamarief/cobafrappe
9f4c787338873e774d73779a8f1cee168daa2b62
[ "MIT" ]
28
2015-05-08T14:09:34.000Z
2021-06-20T13:48:52.000Z
defmodule ElixirJSON_140_SNAPSHOT.Mixfile do use Mix.Project @version "1.4.1" def project do [ app: :json, version: @version, elixir: "~> 1.7", deps: deps(Mix.env()), description: "The First Native Elixir library for JSON encoding and decoding", package: package(), ...
24.166667
84
0.561129
03b5590e551276ba61c38303efba3c708bf9cb26
482
ex
Elixir
lib/elx_k8s/release.ex
adrianomota/elx-k8s
27c0f5c3099137041043d05e754b2b5eb7e0c0f9
[ "MIT" ]
null
null
null
lib/elx_k8s/release.ex
adrianomota/elx-k8s
27c0f5c3099137041043d05e754b2b5eb7e0c0f9
[ "MIT" ]
null
null
null
lib/elx_k8s/release.ex
adrianomota/elx-k8s
27c0f5c3099137041043d05e754b2b5eb7e0c0f9
[ "MIT" ]
null
null
null
defmodule ElxK8s.Release do @app :elx_k8s def migrate do load_app() for repo <- repos() do {:ok, _, _} = Ecto.Migrator.with_repo(repo, &Ecto.Migrator.run(&1, :up, all: true)) end end def rollback(repo, version) do load_app() {:ok, _, _} = Ecto.Migrator.with_repo(repo, &Ecto.Migrator...
19.28
91
0.634855
03b55c9aafa3702cda2f322cbe443ec7ffffde04
1,071
ex
Elixir
lib/postgrex/extensions/jsonb.ex
enter-haken/postgrex
fb3438d4e6a56db81ddd0d578cdfc0484909c233
[ "Apache-2.0" ]
681
2016-06-16T12:28:22.000Z
2022-03-30T08:48:42.000Z
deps/postgrex/lib/postgrex/extensions/jsonb.ex
rwtrecs/rocketseat-nlw5-inmana
8ce8bc32e0bdd005c423394bb163945747b557e2
[ "MIT" ]
383
2016-06-17T14:49:41.000Z
2022-03-21T18:13:19.000Z
deps/postgrex/lib/postgrex/extensions/jsonb.ex
adrianomota/blog
ef3b2d2ed54f038368ead8234d76c18983caa75b
[ "MIT" ]
234
2016-06-16T16:14:47.000Z
2022-03-03T00:43:59.000Z
defmodule Postgrex.Extensions.JSONB do @moduledoc false import Postgrex.BinaryUtils, warn: false def init(opts) do json = Keyword.get_lazy(opts, :json, fn -> Application.get_env(:postgrex, :json_library, Jason) end) {json, Keyword.get(opts, :decode_binary, :copy)} end def matchi...
21.42
60
0.578898
03b55ee12ab5f710b978199e7d1b91bd4fbeb6fb
247
ex
Elixir
plain-planner/elixir/lib/plain.ex
danielmarreirosdeoliveira/prototypes
047a7d0cae84b31213c06b45304e41a18e0678cb
[ "Apache-2.0" ]
null
null
null
plain-planner/elixir/lib/plain.ex
danielmarreirosdeoliveira/prototypes
047a7d0cae84b31213c06b45304e41a18e0678cb
[ "Apache-2.0" ]
1
2020-05-10T13:37:43.000Z
2020-05-10T13:37:43.000Z
plain-planner/elixir/lib/plain.ex
danielmarreirosdeoliveira/prototypes
047a7d0cae84b31213c06b45304e41a18e0678cb
[ "Apache-2.0" ]
null
null
null
defmodule Plain do @moduledoc """ Plain keeps the contexts that define your domain and business logic. Contexts are also responsible for managing your data, regardless if it comes from the database, an external API or others. """ end
24.7
66
0.748988
03b5698bef012babe8cb021e6a48139de9348ce9
9,474
exs
Elixir
apps/snitch_core/test/domain/splitters/weight_test.exs
Acrecio/avia
54d264fc179b5b5f17d174854bdca063e1d935e9
[ "MIT" ]
456
2018-09-20T02:40:59.000Z
2022-03-07T08:53:48.000Z
apps/snitch_core/test/domain/splitters/weight_test.exs
Acrecio/avia
54d264fc179b5b5f17d174854bdca063e1d935e9
[ "MIT" ]
273
2018-09-19T06:43:43.000Z
2021-08-07T12:58:26.000Z
apps/snitch_core/test/domain/splitters/weight_test.exs
Acrecio/avia
54d264fc179b5b5f17d174854bdca063e1d935e9
[ "MIT" ]
122
2018-09-26T16:32:46.000Z
2022-03-13T11:44:19.000Z
defmodule Snitch.Domain.Splitter.WeightTest do use ExUnit.Case, async: true use Snitch.DataCase # TODO: Build the packages by hand, possibly using `Factory.Shipping.shipment!` # not using `Shipment.default_packages/1` import Mox, only: [expect: 4, verify_on_exit!: 1] import Snitch.Tools.Helper.{Order, Ship...
28.972477
90
0.468123
03b58f657ac898c2d3e2349e98cf81ef209d2ac6
2,964
ex
Elixir
lib/ets_metrics.ex
adobe/bot_army
68369a846d13e4ff973fdbc5decd418cc6e80f43
[ "MIT" ]
9
2020-04-30T20:35:49.000Z
2022-03-05T08:30:57.000Z
lib/ets_metrics.ex
adobe/bot_army
68369a846d13e4ff973fdbc5decd418cc6e80f43
[ "MIT" ]
null
null
null
lib/ets_metrics.ex
adobe/bot_army
68369a846d13e4ff973fdbc5decd418cc6e80f43
[ "MIT" ]
1
2020-09-27T11:44:06.000Z
2020-09-27T11:44:06.000Z
# Copyright 2020 Adobe # All Rights Reserved. # NOTICE: Adobe permits you to use, modify, and distribute this file in # accordance with the terms of the Adobe license agreement accompanying # it. If you have received this file from a source other than Adobe, # then your use, modification, or distribution of it require...
27.962264
93
0.596491
03b5b4c63bdf0a24c0a1581e1d179b9966bebdfd
1,773
exs
Elixir
test/difflist_test.exs
sotojuan/dlist
cefd24f4860d9a55ff7c42d5723ea246ea9b85f3
[ "MIT" ]
1
2017-03-08T13:56:58.000Z
2017-03-08T13:56:58.000Z
test/difflist_test.exs
sotojuan/dlist
cefd24f4860d9a55ff7c42d5723ea246ea9b85f3
[ "MIT" ]
null
null
null
test/difflist_test.exs
sotojuan/dlist
cefd24f4860d9a55ff7c42d5723ea246ea9b85f3
[ "MIT" ]
null
null
null
defmodule DiffListTest do use ExUnit.Case, async: false use ExCheck doctest DiffList property :list_conversion do for_all xs in list(int()) do difflist = DiffList.from_list(xs) DiffList.to_list(difflist) == xs end end property :singleton do for_all x in int() do difflist = D...
23.025974
69
0.63057
03b5c14fe935962e378b9b37151e88db0b54ace4
2,611
ex
Elixir
clients/cloud_build/lib/google_api/cloud_build/v1/model/notification.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/cloud_build/lib/google_api/cloud_build/v1/model/notification.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/cloud_build/lib/google_api/cloud_build/v1/model/notification.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...
44.254237
209
0.729989
03b5d04c84cc2537eeb65565af21bce54cb6cae9
2,788
ex
Elixir
lib/mix/lib/mix/cli.ex
Tica2/elixir
6cf1dcbfe4572fc75619f05e40c10fd0844083ef
[ "Apache-2.0" ]
null
null
null
lib/mix/lib/mix/cli.ex
Tica2/elixir
6cf1dcbfe4572fc75619f05e40c10fd0844083ef
[ "Apache-2.0" ]
null
null
null
lib/mix/lib/mix/cli.ex
Tica2/elixir
6cf1dcbfe4572fc75619f05e40c10fd0844083ef
[ "Apache-2.0" ]
null
null
null
defmodule Mix.CLI do @moduledoc false @doc """ Runs Mix according to the command line arguments. """ def main(args \\ System.argv) do Mix.Local.append_archives Mix.Local.append_paths case check_for_shortcuts(args) do :help -> proceed(["help"]) :version -> display_vers...
24.243478
85
0.615854
03b5ed5122223c5c21d9af7dec8726864768ff61
541
exs
Elixir
test/etl/type/list_test.exs
bbalser/etl
24791047ca0ce8066ec73c4196e54e954b1a1471
[ "Apache-2.0" ]
1
2020-06-15T22:41:37.000Z
2020-06-15T22:41:37.000Z
test/etl/type/list_test.exs
inhindsight/etl
24791047ca0ce8066ec73c4196e54e954b1a1471
[ "Apache-2.0" ]
1
2020-09-11T12:24:12.000Z
2020-09-12T11:14:27.000Z
test/etl/type/list_test.exs
bbalser/etl
24791047ca0ce8066ec73c4196e54e954b1a1471
[ "Apache-2.0" ]
null
null
null
defmodule Etl.Type.ListTest do use ExUnit.Case test "normalizes data in list accord type item_type" do type = %Etl.Type.List{ item_type: %Etl.Type.Integer{} } data = [1, "2", 3] assert {:ok, [1, 2, 3]} == Etl.Type.normalize(type, data) end test "an error normalizing any item causes the...
22.541667
88
0.624769
03b5f364746ad7b4feb53a70417071b690034928
8,575
exs
Elixir
test/lib/bamboo/adapters/mailgun_adapter_test.exs
vitorioS/bamboo
f05cce842c961b84eea89948d9c3125810904253
[ "MIT" ]
null
null
null
test/lib/bamboo/adapters/mailgun_adapter_test.exs
vitorioS/bamboo
f05cce842c961b84eea89948d9c3125810904253
[ "MIT" ]
null
null
null
test/lib/bamboo/adapters/mailgun_adapter_test.exs
vitorioS/bamboo
f05cce842c961b84eea89948d9c3125810904253
[ "MIT" ]
1
2021-04-20T02:45:55.000Z
2021-04-20T02:45:55.000Z
defmodule Bamboo.MailgunAdapterTest do use ExUnit.Case alias Bamboo.Email alias Bamboo.MailgunAdapter @config %{adapter: MailgunAdapter, api_key: "dummyapikey", domain: "test.tt"} @config_with_env_var_key %{ adapter: MailgunAdapter, api_key: {:system, "MAILGUN_API_KEY"}, domain: {:system, "MAILGU...
31.29562
168
0.651429
03b5f4bf95bc36691cba4b803a8aeaf5623a536c
2,127
exs
Elixir
test/integration/telemetry_test.exs
khedaywi/oban
0b79c53a3c41648f438e112dda435ad79c86f811
[ "Apache-2.0" ]
1
2019-07-24T19:06:57.000Z
2019-07-24T19:06:57.000Z
test/integration/telemetry_test.exs
khedaywi/oban
0b79c53a3c41648f438e112dda435ad79c86f811
[ "Apache-2.0" ]
null
null
null
test/integration/telemetry_test.exs
khedaywi/oban
0b79c53a3c41648f438e112dda435ad79c86f811
[ "Apache-2.0" ]
null
null
null
defmodule Oban.Integration.TelemetryTest do use Oban.Case @moduletag :integration @oban_opts repo: Repo, queues: [zeta: 3] defmodule Handler do def handle([:oban, event], %{duration: duration}, meta, pid) do send(pid, {:executed, event, duration, meta}) end end test "telemetry events are e...
27.986842
98
0.551951
03b5fad2b8987baf6710bb3d07c5b3960bef7871
15,154
ex
Elixir
lib/typed_struct.ex
bobkocisko/typed_struct
97bffcf13e8c29a9bc74fc34354e2efa86073a8b
[ "MIT" ]
null
null
null
lib/typed_struct.ex
bobkocisko/typed_struct
97bffcf13e8c29a9bc74fc34354e2efa86073a8b
[ "MIT" ]
null
null
null
lib/typed_struct.ex
bobkocisko/typed_struct
97bffcf13e8c29a9bc74fc34354e2efa86073a8b
[ "MIT" ]
null
null
null
defmodule TypedStruct do @moduledoc """ TypedStruct is a library for defining structs with a type without writing boilerplate code. ## Rationale To define a struct in Elixir, you probably want to define three things: * the struct itself, with default values, * the list of enforced keys, * its a...
26.773852
80
0.613105
03b620df5a011ce1252228dccf23e3a3d9c0a2bd
1,755
ex
Elixir
lib/teiserver/telemetry/tasks/export_events_task.ex
icexuick/teiserver
22f2e255e7e21f977e6b262acf439803626a506c
[ "MIT" ]
6
2021-02-08T10:42:53.000Z
2021-04-25T12:12:03.000Z
lib/teiserver/telemetry/tasks/export_events_task.ex
icexuick/teiserver
22f2e255e7e21f977e6b262acf439803626a506c
[ "MIT" ]
14
2021-08-01T02:36:14.000Z
2022-01-30T21:15:03.000Z
lib/teiserver/telemetry/tasks/export_events_task.ex
icexuick/teiserver
22f2e255e7e21f977e6b262acf439803626a506c
[ "MIT" ]
7
2021-05-13T12:55:28.000Z
2022-01-14T06:39:06.000Z
defmodule Teiserver.Telemetry.ExportEventsTask do alias Teiserver.Telemetry alias Central.Helpers.{TimexHelper, DatePresets} def perform(params) do do_query(params) |> do_output(params) end defp do_query(%{"event_type" => event_type, "timeframe" => timeframe, "auth" => auth}) do {start_date, end...
25.434783
102
0.633048
03b634b7b2ee52c757632c447efccfa4ff7e9c03
6,278
ex
Elixir
lib/changelog_web/views/news/news_item_view.ex
boneskull/changelog.com
2fa2e356bb0e8fcf038c46a4a947fef98822e37d
[ "MIT" ]
null
null
null
lib/changelog_web/views/news/news_item_view.ex
boneskull/changelog.com
2fa2e356bb0e8fcf038c46a4a947fef98822e37d
[ "MIT" ]
null
null
null
lib/changelog_web/views/news/news_item_view.ex
boneskull/changelog.com
2fa2e356bb0e8fcf038c46a4a947fef98822e37d
[ "MIT" ]
null
null
null
defmodule ChangelogWeb.NewsItemView do use ChangelogWeb, :public_view alias Changelog.{Episode, Files, Hashid, NewsAd, NewsItem, Podcast, Regexp, UrlKit} alias ChangelogWeb.{Endpoint, NewsAdView, NewsSourceView, EpisodeView, PersonView, TopicView, PodcastView} def admin_edit_link(conn, user, item) do if u...
35.670455
149
0.657534
03b63c841166ddc375f25184d2138877a67a2de3
7,453
ex
Elixir
braccino/lib/braccino/braccio.ex
darcros/braccino
33f4d945daf8eac36e4e88ef412dd53cb1389376
[ "MIT" ]
null
null
null
braccino/lib/braccino/braccio.ex
darcros/braccino
33f4d945daf8eac36e4e88ef412dd53cb1389376
[ "MIT" ]
null
null
null
braccino/lib/braccino/braccio.ex
darcros/braccino
33f4d945daf8eac36e4e88ef412dd53cb1389376
[ "MIT" ]
null
null
null
defmodule Braccino.Braccio do @moduledoc """ This module represents the braccio controlled by the arduino. """ alias Braccino.Braccio.Angles require Logger use GenServer @type reason :: term @type impl_state :: term @type braccio_status :: :disconnected | :uploading_firmware | :connecting | :connect...
30.174089
97
0.649537
03b63d200d80ac7f2a856db799fc593d6f091af7
2,155
exs
Elixir
mix.exs
membraneframework/membrane_rtp_vp9_plugin
7dac9476a76a3eea1ed3b90b65aad5660663a98b
[ "Apache-2.0" ]
null
null
null
mix.exs
membraneframework/membrane_rtp_vp9_plugin
7dac9476a76a3eea1ed3b90b65aad5660663a98b
[ "Apache-2.0" ]
3
2020-12-14T10:28:19.000Z
2021-01-05T08:35:15.000Z
mix.exs
membraneframework/membrane_rtp_vp9_plugin
7dac9476a76a3eea1ed3b90b65aad5660663a98b
[ "Apache-2.0" ]
null
null
null
defmodule Membrane.RTP.VP9.MixProject do use Mix.Project @version "0.1.0" @github_url "https://github.com/membraneframework/membrane_rtp_vp9_plugin" def project do [ app: :membrane_rtp_vp9_plugin, version: @version, elixir: "~> 1.10", elixirc_paths: elixirc_paths(Mix.env()), ...
27.278481
95
0.595824
03b66451c84ccc2b88a52801a180a5942cac67b3
183
exs
Elixir
test/controllers/page_controller_test.exs
markhu53/visualixir
80ce8b75fe33476fe7d17110ffc0271f71bc1f91
[ "MIT" ]
1,311
2015-11-08T02:21:41.000Z
2022-03-25T17:32:57.000Z
test/controllers/page_controller_test.exs
hoangpq/visualixir
a8efdee3faea00cf59ae74f4bf8bcfa36e7b6d79
[ "MIT" ]
30
2015-11-09T17:07:50.000Z
2022-02-10T17:13:50.000Z
test/controllers/page_controller_test.exs
hoangpq/visualixir
a8efdee3faea00cf59ae74f4bf8bcfa36e7b6d79
[ "MIT" ]
58
2015-11-08T16:50:00.000Z
2022-03-30T13:03:18.000Z
defmodule VisualixirWeb.PageControllerTest do use VisualixirWeb.ConnCase test "GET /" do conn = get conn(), "/" assert html_response(conn, 200) =~ "Visualixir" end end
20.333333
51
0.699454
03b68a316644f9574e23808cfcbae1402e02289a
232
exs
Elixir
priv/repo/migrations/20200513225257_add_banking_details_table.exs
Hermanlangner/events_dashboard
30d5d3666ac8057bfd91dd33131d8132c97cfec9
[ "MIT" ]
null
null
null
priv/repo/migrations/20200513225257_add_banking_details_table.exs
Hermanlangner/events_dashboard
30d5d3666ac8057bfd91dd33131d8132c97cfec9
[ "MIT" ]
null
null
null
priv/repo/migrations/20200513225257_add_banking_details_table.exs
Hermanlangner/events_dashboard
30d5d3666ac8057bfd91dd33131d8132c97cfec9
[ "MIT" ]
null
null
null
defmodule EventsDashboard.Repo.Migrations.AddBankingDetailsTable do use Ecto.Migration def change do create table("banking_details") do add :customer_id, :integer add :account_number, :integer end end end
21.090909
67
0.737069
03b69e34d9c6d8cc4670aad30c8d0cf1a754ef3b
1,257
exs
Elixir
mix.exs
dmitriid/exqlite
d9ce46b7e3c8e6c907b6d24b14823c783ce666e5
[ "MIT" ]
null
null
null
mix.exs
dmitriid/exqlite
d9ce46b7e3c8e6c907b6d24b14823c783ce666e5
[ "MIT" ]
null
null
null
mix.exs
dmitriid/exqlite
d9ce46b7e3c8e6c907b6d24b14823c783ce666e5
[ "MIT" ]
null
null
null
defmodule Exqlite.MixProject do use Mix.Project def project do [ app: :exqlite, version: "0.1.1", elixir: "~> 1.11", compilers: [:elixir_make] ++ Mix.compilers(), make_targets: ["all"], make_clean: ["clean"], start_permanent: Mix.env() == :prod, source_url: "http...
22.854545
61
0.552108
03b6b33b38ad27c99881c608e63905a2cc7a89d5
4,553
ex
Elixir
lib/weddell/client/subscriber/stream.ex
W-Games/weddell
618221495ca3c65f18b463970bd6c40f36ffae71
[ "MIT" ]
1
2018-05-18T15:47:34.000Z
2018-05-18T15:47:34.000Z
lib/weddell/client/subscriber/stream.ex
timuryan/weddell
98d31c183a03d786b804af4b8698e7956c653685
[ "MIT" ]
1
2020-06-24T18:52:41.000Z
2020-06-24T18:52:41.000Z
lib/weddell/client/subscriber/stream.ex
W-Games/weddell
618221495ca3c65f18b463970bd6c40f36ffae71
[ "MIT" ]
1
2018-05-18T15:46:51.000Z
2018-05-18T15:46:51.000Z
defmodule Weddell.Client.Subscriber.Stream do @moduledoc """ A streaming connection to a subscription. """ alias GRPC.Client.Stream, as: GRPCStream alias GRPC.Stub, as: GRPCStub alias Google.Pubsub.V1.{Subscriber.Stub, StreamingPullRequest} alias Weddell.{Message, ...
32.06338
98
0.62069
03b72d84dfdb55392fbe28c1040a3282e53e965e
2,159
ex
Elixir
clients/iam/lib/google_api/iam/v1/model/oidc.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/iam/lib/google_api/iam/v1/model/oidc.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/iam/lib/google_api/iam/v1/model/oidc.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...
43.18
680
0.736452
03b7ed5ad0824d918213f3c9213af4f422a15d86
1,318
exs
Elixir
config/dev.exs
bitriot/phoenix_base
15ec83a9acf46202102f2b006d577972f5564b2f
[ "MIT" ]
null
null
null
config/dev.exs
bitriot/phoenix_base
15ec83a9acf46202102f2b006d577972f5564b2f
[ "MIT" ]
null
null
null
config/dev.exs
bitriot/phoenix_base
15ec83a9acf46202102f2b006d577972f5564b2f
[ "MIT" ]
null
null
null
use Mix.Config # For development, we disable any cache and enable # debugging and code reloading. # # The watchers configuration can be used to run external # watchers to your application. For example, we use it # with brunch.io to recompile .js and .css sources. config :phoenix_base, PhoenixBase.Endpoint, http: [po...
29.288889
68
0.707132
03b813a802007cd5a50a0cee97143a6bfb458dc9
535
ex
Elixir
elixir/guessing-game/lib/guessing_game.ex
maitesin/exercism
17481409b3a120e3a02bc3df24a0333d0d8e05be
[ "BSD-2-Clause" ]
null
null
null
elixir/guessing-game/lib/guessing_game.ex
maitesin/exercism
17481409b3a120e3a02bc3df24a0333d0d8e05be
[ "BSD-2-Clause" ]
null
null
null
elixir/guessing-game/lib/guessing_game.ex
maitesin/exercism
17481409b3a120e3a02bc3df24a0333d0d8e05be
[ "BSD-2-Clause" ]
null
null
null
defmodule GuessingGame do def compare(_, guess \\ :no_guess) def compare(_, guess) when guess == :no_guess do "Make a guess" end def compare(secret_number, guess) when secret_number == guess do "Correct" end def compare(secret_number, guess) when secret_number + 1 == guess or secret_number =...
22.291667
70
0.685981
03b8170a2e9a14b20e1730c910297ceced96aede
497
exs
Elixir
test/budget_app/operations/income/delete_test.exs
djordje/budget_app.backend
3febe64892e700f3174b8eddbc4b96260c444308
[ "MIT" ]
null
null
null
test/budget_app/operations/income/delete_test.exs
djordje/budget_app.backend
3febe64892e700f3174b8eddbc4b96260c444308
[ "MIT" ]
null
null
null
test/budget_app/operations/income/delete_test.exs
djordje/budget_app.backend
3febe64892e700f3174b8eddbc4b96260c444308
[ "MIT" ]
null
null
null
defmodule BudgetApp.Operations.Income.DeleteTest do use BudgetAppWeb.ConnCase, async: true alias BudgetApp.Operations.Income.Delete alias BudgetApp.Income alias BudgetApp.Repo test "removes record from the DB" do expense = insert(:income) assert Repo.aggregate(Income, :count, :id) == 1 Delete.ex...
27.611111
53
0.71831
03b88580c7b56295c5d1a46d609a00257e780740
2,403
ex
Elixir
lib/usir/transport/http/server/websocket.ex
usir/usir_ex
059cc1679dcdc9defcad17a4aac3492a33e529e5
[ "MIT" ]
null
null
null
lib/usir/transport/http/server/websocket.ex
usir/usir_ex
059cc1679dcdc9defcad17a4aac3492a33e529e5
[ "MIT" ]
null
null
null
lib/usir/transport/http/server/websocket.ex
usir/usir_ex
059cc1679dcdc9defcad17a4aac3492a33e529e5
[ "MIT" ]
null
null
null
defmodule Usir.Transport.HTTP.Server.Websocket do alias Usir.Protocol.Stateful, as: Protocol alias :cowboy_req, as: Request require Logger def init(req, {acceptor, protocol_opts}) do accepts = Request.parse_header("sec-websocket-protocol", req) |> format_protocols([]) info = request_info(req) {for...
26.119565
89
0.650853
03b88c28200db6f543ce02a48f9e84dc0e4b8b09
885
ex
Elixir
lib/exwebapp/application.ex
norrland/exwebapp
862cdc8ee54b92ebcf7577c98160f1284776bdb1
[ "MIT" ]
null
null
null
lib/exwebapp/application.ex
norrland/exwebapp
862cdc8ee54b92ebcf7577c98160f1284776bdb1
[ "MIT" ]
null
null
null
lib/exwebapp/application.ex
norrland/exwebapp
862cdc8ee54b92ebcf7577c98160f1284776bdb1
[ "MIT" ]
null
null
null
defmodule Exwebapp.Application do # See https://hexdocs.pm/elixir/Application.html # for more information on OTP Applications @moduledoc false @app :exwebapp use Application require Logger def start(_type, _args) do # fetch which scheme to use ( see config/config.exs ) scheme = Application.get_...
26.818182
69
0.687006
03b8b237937a38617690b74adea15552791efc28
1,924
ex
Elixir
rustler_tests/lib/rustler_test.ex
BurntCaramel/rustler
9ece1e1da22f1a99383c04302549d6a5cd6abe34
[ "Apache-2.0", "MIT" ]
null
null
null
rustler_tests/lib/rustler_test.ex
BurntCaramel/rustler
9ece1e1da22f1a99383c04302549d6a5cd6abe34
[ "Apache-2.0", "MIT" ]
null
null
null
rustler_tests/lib/rustler_test.ex
BurntCaramel/rustler
9ece1e1da22f1a99383c04302549d6a5cd6abe34
[ "Apache-2.0", "MIT" ]
null
null
null
defmodule NifNotLoadedError do defexception message: "nif not loaded" end defmodule RustlerTest do use Rustler, otp_app: :rustler_test, crate: :rustler_test defp err do throw(NifNotLoadedError) end def add_u32(_, _), do: err() def add_i32(_, _), do: err() def echo_u8(_), do: err() def opt...
26
49
0.657484
03b8bb85bd89cef16fa918e15eb118db028df0fb
1,964
ex
Elixir
assets/node_modules/phoenix/lib/mix/phoenix/context.ex
xiongxin/web_chat
4123887993083058a358358595c06970a5ac873f
[ "MIT" ]
null
null
null
assets/node_modules/phoenix/lib/mix/phoenix/context.ex
xiongxin/web_chat
4123887993083058a358358595c06970a5ac873f
[ "MIT" ]
null
null
null
assets/node_modules/phoenix/lib/mix/phoenix/context.ex
xiongxin/web_chat
4123887993083058a358358595c06970a5ac873f
[ "MIT" ]
null
null
null
defmodule Mix.Phoenix.Context do @moduledoc false alias Mix.Phoenix.{Context, Schema} defstruct name: nil, module: nil, schema: nil, alias: nil, base_module: nil, web_module: nil, basename: nil, file: nil, test_file:...
27.661972
76
0.582994
03b8f30580e51cf6b94e4d861c2a21c623fc5bf1
8,358
exs
Elixir
test/uinta/plug_test.exs
epinault/uinta
e1189e2267fd6cd49f87d5ca3be1fe7ced5f5969
[ "MIT" ]
null
null
null
test/uinta/plug_test.exs
epinault/uinta
e1189e2267fd6cd49f87d5ca3be1fe7ced5f5969
[ "MIT" ]
null
null
null
test/uinta/plug_test.exs
epinault/uinta
e1189e2267fd6cd49f87d5ca3be1fe7ced5f5969
[ "MIT" ]
null
null
null
defmodule Uinta.PlugTest do use ExUnit.Case use Plug.Test import ExUnit.CaptureLog require Logger defmodule MyPlug do use Plug.Builder plug(Uinta.Plug) plug(:passthrough) defp passthrough(conn, _) do Plug.Conn.send_resp(conn, 200, "Passthrough") end end defmodule JsonPlug d...
25.796296
118
0.607442
03b90de9148c40cb9f5e912114f51c0c796db11b
1,726
ex
Elixir
lib/bow/download.ex
kianmeng/bow
d0b2ad564b0ccd06eb7d4582b94177877559d4af
[ "MIT" ]
25
2017-10-06T14:22:13.000Z
2022-01-14T20:59:59.000Z
lib/bow/download.ex
kianmeng/bow
d0b2ad564b0ccd06eb7d4582b94177877559d4af
[ "MIT" ]
9
2017-10-30T06:02:22.000Z
2022-01-03T13:57:57.000Z
lib/bow/download.ex
kianmeng/bow
d0b2ad564b0ccd06eb7d4582b94177877559d4af
[ "MIT" ]
4
2018-03-29T12:59:10.000Z
2021-09-19T09:10:01.000Z
defmodule Bow.Download do use Tesla, only: [:get] plug(Tesla.Middleware.FollowRedirects) @doc """ Download file from given URL """ @spec download(client :: Tesla.Client.t(), url :: String.t()) :: {:ok, Bow.t()} | {:error, any} def download(client \\ %Tesla.Client{}, url) do case get!(clien...
26.553846
95
0.546929