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
18d5d02e6523f260e6de920a51d364e34165fd77
966
ex
Elixir
clients/search_console/lib/google_api/search_console/v1/request_builder.ex
leandrocp/elixir-google-api
a86e46907f396d40aeff8668c3bd81662f44c71e
[ "Apache-2.0" ]
null
null
null
clients/search_console/lib/google_api/search_console/v1/request_builder.ex
leandrocp/elixir-google-api
a86e46907f396d40aeff8668c3bd81662f44c71e
[ "Apache-2.0" ]
null
null
null
clients/search_console/lib/google_api/search_console/v1/request_builder.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 "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...
37.153846
77
0.76501
18d5f163fc0c0e0ddb98d7ce791f321b1500c112
593
exs
Elixir
apps/cat_feeder_web/test/views/error_view_test.exs
wsmoak/cat_feeder
e9157563ff3294fd9fd4c9d13f956cbe1dd718c2
[ "MIT" ]
20
2016-01-16T17:08:00.000Z
2021-01-15T15:46:23.000Z
apps/cat_feeder_web/test/views/error_view_test.exs
wsmoak/cat_feeder
e9157563ff3294fd9fd4c9d13f956cbe1dd718c2
[ "MIT" ]
null
null
null
apps/cat_feeder_web/test/views/error_view_test.exs
wsmoak/cat_feeder
e9157563ff3294fd9fd4c9d13f956cbe1dd718c2
[ "MIT" ]
5
2016-01-09T16:52:44.000Z
2017-02-09T16:03:25.000Z
defmodule CatFeederWeb.ErrorViewTest do use CatFeederWeb.ConnCase, async: true # Bring render/3 and render_to_string/3 for testing custom views import Phoenix.View test "renders 404.html" do assert render_to_string(CatFeederWeb.ErrorView, "404.html", []) == "Page not found" end test "rende...
26.954545
70
0.689713
18d62e1a647296d04ec18b78f29276867ab2fd92
1,378
ex
Elixir
clients/drive_activity/lib/google_api/drive_activity/v2/model/drive_folder.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/drive_activity/lib/google_api/drive_activity/v2/model/drive_folder.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/drive_activity/lib/google_api/drive_activity/v2/model/drive_folder.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...
29.319149
79
0.730769
18d642e6edd9d3344708f794178b21d8044d18b7
2,018
ex
Elixir
clients/remote_build_execution/lib/google_api/remote_build_execution/v2/model/build_bazel_remote_execution_v2_batch_read_blobs_response.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/remote_build_execution/lib/google_api/remote_build_execution/v2/model/build_bazel_remote_execution_v2_batch_read_blobs_response.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/remote_build_execution/lib/google_api/remote_build_execution/v2/model/build_bazel_remote_execution_v2_batch_read_blobs_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.633333
186
0.757681
18d64c7b51aa86c1e01d78728e3b8a66477b3066
623
ex
Elixir
lib/brewing_stand/scheduled.ex
Ovyerus/brewing-stand
a631d5e90485b959525e3a79b941f7aaa86b3fdd
[ "MIT" ]
14
2021-03-28T10:27:50.000Z
2021-04-27T10:14:07.000Z
lib/brewing_stand/scheduled.ex
Ovyerus/brewing-stand
a631d5e90485b959525e3a79b941f7aaa86b3fdd
[ "MIT" ]
null
null
null
lib/brewing_stand/scheduled.ex
Ovyerus/brewing-stand
a631d5e90485b959525e3a79b941f7aaa86b3fdd
[ "MIT" ]
null
null
null
defmodule BrewingStand.Scheduled do @moduledoc """ A behaviour for easily defining a task to be run on an interval. """ defmacro __using__(interval: interval) do quote do use GenServer @behaviour BrewingStand.Scheduled def start_link(_), do: GenServer.start_link(__MODULE__, %{}) d...
20.096774
77
0.611557
18d650de30f73ca59984a8e7b1552982ea4d0fdf
1,861
ex
Elixir
lib/sanbase_web/graphql/schema/queries/timeline_queries.ex
santiment/sanbase2
9ef6e2dd1e377744a6d2bba570ea6bd477a1db31
[ "MIT" ]
81
2017-11-20T01:20:22.000Z
2022-03-05T12:04:25.000Z
lib/sanbase_web/graphql/schema/queries/timeline_queries.ex
rmoorman/sanbase2
226784ab43a24219e7332c49156b198d09a6dd85
[ "MIT" ]
359
2017-10-15T14:40:53.000Z
2022-01-25T13:34:20.000Z
lib/sanbase_web/graphql/schema/queries/timeline_queries.ex
rmoorman/sanbase2
226784ab43a24219e7332c49156b198d09a6dd85
[ "MIT" ]
16
2017-11-19T13:57:40.000Z
2022-02-07T08:13:02.000Z
defmodule SanbaseWeb.Graphql.Schema.TimelineQueries do @moduledoc ~s""" Queries and mutations for working user timelines """ use Absinthe.Schema.Notation alias SanbaseWeb.Graphql.Resolvers.TimelineEventResolver alias SanbaseWeb.Graphql.Middlewares.JWTAuth alias SanbaseWeb.Graphql.Middlewares.PostPaywallF...
24.486842
66
0.690489
18d65548d01ba14c34531fef45e672115c673ddc
744
exs
Elixir
mix.exs
LuizFerK/Exlivery
22c91a2ae71506f694b7d7213bf8343b9201cce1
[ "MIT" ]
null
null
null
mix.exs
LuizFerK/Exlivery
22c91a2ae71506f694b7d7213bf8343b9201cce1
[ "MIT" ]
null
null
null
mix.exs
LuizFerK/Exlivery
22c91a2ae71506f694b7d7213bf8343b9201cce1
[ "MIT" ]
null
null
null
defmodule Exlivery.MixProject do use Mix.Project def project do [ app: :exlivery, version: "0.1.0", elixir: "~> 1.11", elixirc_paths: elixirc_paths(Mix.env()), start_permanent: Mix.env() == :prod, deps: deps() ] end # Run "mix help compile.app" to learn about applic...
21.257143
62
0.561828
18d6cdce5d29fb3a1aab7de3adbe4583fa02e19e
320
ex
Elixir
conf/pillar/staging/secrets.ex
OpenData-NC/open-data-nc
5e1964d5c986f79055e6f018f0f2f9a15a3eaf99
[ "MIT" ]
5
2015-10-31T02:01:24.000Z
2021-03-02T12:34:59.000Z
conf/pillar/staging/secrets.ex
OpenData-NC/open-data-nc
5e1964d5c986f79055e6f018f0f2f9a15a3eaf99
[ "MIT" ]
null
null
null
conf/pillar/staging/secrets.ex
OpenData-NC/open-data-nc
5e1964d5c986f79055e6f018f0f2f9a15a3eaf99
[ "MIT" ]
4
2016-04-05T06:07:15.000Z
2020-10-18T01:17:17.000Z
# This file should be renamed to secrets.sls secrets: DB_PASSWORD: XXXXXX SECRET_KEY: XXXXXX BROKER_PASSWORD: XXXXXX AMAZON_EMAIL_USER: XXXXXX AMAZON_EMAIL_PASSWORD: XXXXXX RECAPTCHA_PRIVATE_KEY = XXXXXX # Uncomment and update username/password to enable HTTP basic auth # http_auth: # username: password
24.615385
66
0.790625
18d6f2281ee8ed0f2078728cea4cff81a634acbf
369
ex
Elixir
test/support/room/mock_supervisor.ex
membraneframework/webrtc-server
10603a3f85e2d197ce7cf10ccb79c5c71d57f346
[ "Apache-2.0" ]
10
2020-03-27T04:58:56.000Z
2022-03-12T21:39:49.000Z
test/support/room/mock_supervisor.ex
KalvadTech/webrtc-server
a9fbf41f83a644702946541342411f19e2806447
[ "Apache-2.0" ]
3
2021-01-25T08:47:45.000Z
2021-02-08T12:58:42.000Z
test/support/room/mock_supervisor.ex
KalvadTech/webrtc-server
a9fbf41f83a644702946541342411f19e2806447
[ "Apache-2.0" ]
1
2021-01-24T17:36:57.000Z
2021-01-24T17:36:57.000Z
defmodule Membrane.WebRTC.Server.Support.MockSupervisor do @moduledoc false use DynamicSupervisor def start_link(init_arg) do DynamicSupervisor.start_link(__MODULE__, init_arg, name: Server.RoomSupervisor) end @impl true def init(init_arg) do DynamicSupervisor.init( strategy: :one_for_one, ...
21.705882
83
0.745257
18d6f8016f0d6ae6d4056f8486cbe826aee18bb0
773
exs
Elixir
test/examples/find_user_by_id_test.exs
QuinnWilton/wormwood
320bec700cb454e81f953bb8a13debadff2a70ad
[ "MIT" ]
null
null
null
test/examples/find_user_by_id_test.exs
QuinnWilton/wormwood
320bec700cb454e81f953bb8a13debadff2a70ad
[ "MIT" ]
null
null
null
test/examples/find_user_by_id_test.exs
QuinnWilton/wormwood
320bec700cb454e81f953bb8a13debadff2a70ad
[ "MIT" ]
null
null
null
defmodule Wormwood.Test.Examples.FindUserByIDTest do use ExUnit.Case use Wormwood.GQLCase load_gql Wormwood.Examples.Schema, "assets/FindUserByID.gql" describe "FindUserByID.gql" do test "Should return the Foilz user, and all 3 of their messages" do result = query_gql( variables: %{"id" => 1...
27.607143
71
0.622251
18d7962a56cb70733ab7a7d1f761b88e6ecc1f6a
712
exs
Elixir
installer/templates/phx_umbrella/apps/app_name/config/config.exs
udanieli/phoenix
40b79c8d227eadb2af90f19b26c297a87f3b69aa
[ "MIT" ]
null
null
null
installer/templates/phx_umbrella/apps/app_name/config/config.exs
udanieli/phoenix
40b79c8d227eadb2af90f19b26c297a87f3b69aa
[ "MIT" ]
null
null
null
installer/templates/phx_umbrella/apps/app_name/config/config.exs
udanieli/phoenix
40b79c8d227eadb2af90f19b26c297a87f3b69aa
[ "MIT" ]
null
null
null
<%= if @namespaced? || @ecto do %># Configure Mix tasks and generators config :<%= @app_name %><%= if @namespaced? do %>, namespace: <%= @app_module %><% end %><%= if @ecto do %>, ecto_repos: [<%= @app_module %>.Repo]<% end %><% end %><%= if @mailer do %> # Configures the mailer. # # By default it uses the "Local"...
41.882353
83
0.66573
18d7ae4f418ee1ce48a7b544e08940a616692bcc
342
ex
Elixir
lib/dailymeal/users/create.ex
LuizFerK/DailyMealRelations
57f9cc60bf263267fb8c5a3da8e25e86a0e0aca4
[ "MIT" ]
null
null
null
lib/dailymeal/users/create.ex
LuizFerK/DailyMealRelations
57f9cc60bf263267fb8c5a3da8e25e86a0e0aca4
[ "MIT" ]
null
null
null
lib/dailymeal/users/create.ex
LuizFerK/DailyMealRelations
57f9cc60bf263267fb8c5a3da8e25e86a0e0aca4
[ "MIT" ]
null
null
null
defmodule Dailymeal.Users.Create do alias Dailymeal.{Error, Repo, User} def call(params) do params |> User.changeset() |> Repo.insert() |> handle_insert() end defp handle_insert({:ok, %User{}} = result), do: result defp handle_insert({:error, result}) do {:error, Error.build(:bad_reques...
20.117647
57
0.652047
18d7bd1492fd6b6b76566b35bc42c6953bf94533
1,165
ex
Elixir
lib/number/conversion.ex
aai/number
bb4598d62179a0870dc5a20dc0eefad0aa717fc3
[ "MIT" ]
199
2015-06-09T22:30:40.000Z
2022-03-24T03:40:16.000Z
lib/number/conversion.ex
aai/number
bb4598d62179a0870dc5a20dc0eefad0aa717fc3
[ "MIT" ]
37
2015-06-10T16:32:05.000Z
2021-12-08T18:14:37.000Z
lib/number/conversion.ex
aai/number
bb4598d62179a0870dc5a20dc0eefad0aa717fc3
[ "MIT" ]
39
2015-06-10T07:07:09.000Z
2021-12-08T20:25:52.000Z
defprotocol Number.Conversion do @moduledoc "Converts values to formats consumable by Number." @fallback_to_any false @doc "Converts a value to a Float." def to_float(value) @doc "Converts a value to a Decimal." def to_decimal(value) end defimpl Number.Conversion, for: BitString do @moduledoc false ...
18.203125
83
0.687554
18d7c65fd3a003baa06ae23cfee8a1258edcd07e
6,908
exs
Elixir
test/unit/logger_json_test.exs
austinsmorris/logger_json
6fc1ca9755dc9ec34c684041f4b5c10e425cc570
[ "MIT" ]
null
null
null
test/unit/logger_json_test.exs
austinsmorris/logger_json
6fc1ca9755dc9ec34c684041f4b5c10e425cc570
[ "MIT" ]
null
null
null
test/unit/logger_json_test.exs
austinsmorris/logger_json
6fc1ca9755dc9ec34c684041f4b5c10e425cc570
[ "MIT" ]
null
null
null
defmodule LoggerJSONTest do use Logger.Case import ExUnit.CaptureIO require Logger setup do on_exit(fn -> :ok = Logger.configure_backend(LoggerJSON, device: :user, level: nil, metadata: [], json_encoder: Jason) end) end describe "configure_log_level!/1" do test "tolerates nil values" do ...
25.12
110
0.589461
18d81e6735a3194efc5d157ddd432e5d7cc2d442
692
exs
Elixir
lib/ex_unit/mix.exs
evalphobia/elixir
a07a2362e5827b09d8b27be2c1ad2980d25b9768
[ "Apache-2.0" ]
null
null
null
lib/ex_unit/mix.exs
evalphobia/elixir
a07a2362e5827b09d8b27be2c1ad2980d25b9768
[ "Apache-2.0" ]
null
null
null
lib/ex_unit/mix.exs
evalphobia/elixir
a07a2362e5827b09d8b27be2c1ad2980d25b9768
[ "Apache-2.0" ]
null
null
null
defmodule ExUnit.Mixfile do use Mix.Project def project do [app: :ex_unit, version: System.version, build_per_environment: false] end def application do [registered: [ExUnit.Server], mod: {ExUnit, []}, env: [ # Calculated on demand # max_cases: System.schedulers_onlin...
21.625
49
0.595376
18d82f18b9c6a1f68454b5f0e62ae666223b5b62
1,421
ex
Elixir
apps/incident_bridge/test/support/data_case.ex
LivewareProblems/incident-comm-hq
c0c35f30c2a0f99a640be2988bae836d3a2abd5a
[ "Apache-2.0" ]
null
null
null
apps/incident_bridge/test/support/data_case.ex
LivewareProblems/incident-comm-hq
c0c35f30c2a0f99a640be2988bae836d3a2abd5a
[ "Apache-2.0" ]
12
2019-05-11T22:47:51.000Z
2019-05-18T17:18:44.000Z
apps/incident_bridge/test/support/data_case.ex
LivewareProblems/incident-comm-hq
c0c35f30c2a0f99a640be2988bae836d3a2abd5a
[ "Apache-2.0" ]
null
null
null
defmodule IncidentBridge.DataCase do @moduledoc """ This module defines the setup for tests requiring access to the application's data layer. You may define functions here to be used as helpers in your tests. Finally, if the test case interacts with the database, it cannot be async. For this reason, eve...
26.314815
77
0.688248
18d838352aef95570b2d5f1eef95155d912f8590
628
ex
Elixir
lib/ex_onixo/parser/product/related_material/work_relation_code.ex
damjack/ex_onixo
5b1f97bc65867dcf1710540264094d147722ee11
[ "MIT" ]
1
2021-12-11T06:44:18.000Z
2021-12-11T06:44:18.000Z
lib/ex_onixo/parser/product/related_material/work_relation_code.ex
damjack/ex_onixo
5b1f97bc65867dcf1710540264094d147722ee11
[ "MIT" ]
null
null
null
lib/ex_onixo/parser/product/related_material/work_relation_code.ex
damjack/ex_onixo
5b1f97bc65867dcf1710540264094d147722ee11
[ "MIT" ]
null
null
null
defmodule ExOnixo.Parser.Product.RelatedMaterial.WorkRelationCode do import SweetXml alias ExOnixo.Helper.ElementYml def parse_recursive(xml) do SweetXml.xpath(xml, ~x"./RelatedWork/WorkRelationCode"l) |> Enum.map(fn work_relation_code -> %{ code: ElementYml.get_tag(work_relation_...
27.304348
82
0.640127
18d888e60ae4a98fde4cac7be8a9c3d672af2457
1,877
exs
Elixir
apps/dockup/test/dockup/backends/compose/deploy_job_test.exs
sleekr/dockup
11d068879253af655ebabbd3e39cb21400c8e283
[ "MIT" ]
1
2019-08-20T07:45:10.000Z
2019-08-20T07:45:10.000Z
apps/dockup/test/dockup/backends/compose/deploy_job_test.exs
sleekr/dockup
11d068879253af655ebabbd3e39cb21400c8e283
[ "MIT" ]
null
null
null
apps/dockup/test/dockup/backends/compose/deploy_job_test.exs
sleekr/dockup
11d068879253af655ebabbd3e39cb21400c8e283
[ "MIT" ]
2
2019-03-08T10:51:34.000Z
2019-08-20T07:45:13.000Z
defmodule Dockup.DeployJobTest do use ExUnit.Case, async: true defmodule FakeProject do def clone_repository("123", "fake_repo", "fake_branch"), do: :ok def wait_till_up(["dummy_url"], "123"), do: ["dummy_url/path"] end defmodule FakeDockerComposeConfig do def rewrite_variables("123") do sen...
34.759259
150
0.695791
18d8a1e82d5375905a2eaf7bfdb486b6419e1ae9
1,029
ex
Elixir
lib/fake_elixir/endpoint.ex
wholroyd/fake-elixir
9d67431d12da9f3500fd62a000d76408c40f3b66
[ "Apache-2.0" ]
null
null
null
lib/fake_elixir/endpoint.ex
wholroyd/fake-elixir
9d67431d12da9f3500fd62a000d76408c40f3b66
[ "Apache-2.0" ]
null
null
null
lib/fake_elixir/endpoint.ex
wholroyd/fake-elixir
9d67431d12da9f3500fd62a000d76408c40f3b66
[ "Apache-2.0" ]
null
null
null
defmodule FakeElixir.Endpoint do use Phoenix.Endpoint, otp_app: :fake_elixir socket "/socket", FakeElixir.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...
25.725
69
0.715258
18d8a9ad177653e05b8755a085b50358057ceb57
132
ex
Elixir
lib/bert_gate/client/app.ex
lastcanal/bert_gate_client
93bcfaeca609434fb112151afd8fc274bc77828d
[ "WTFPL" ]
null
null
null
lib/bert_gate/client/app.ex
lastcanal/bert_gate_client
93bcfaeca609434fb112151afd8fc274bc77828d
[ "WTFPL" ]
null
null
null
lib/bert_gate/client/app.ex
lastcanal/bert_gate_client
93bcfaeca609434fb112151afd8fc274bc77828d
[ "WTFPL" ]
null
null
null
defmodule BertGate.Client.App do use Application def start(:normal, _) do BertGate.Client.Supervisor.start_link end end
16.5
42
0.75
18d8c067b6835a20726a6c38e4e8d8f4bc9a567f
2,715
ex
Elixir
clients/cloud_billing/lib/google_api/cloud_billing/v1/model/binding.ex
leandrocp/elixir-google-api
a86e46907f396d40aeff8668c3bd81662f44c71e
[ "Apache-2.0" ]
null
null
null
clients/cloud_billing/lib/google_api/cloud_billing/v1/model/binding.ex
leandrocp/elixir-google-api
a86e46907f396d40aeff8668c3bd81662f44c71e
[ "Apache-2.0" ]
null
null
null
clients/cloud_billing/lib/google_api/cloud_billing/v1/model/binding.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...
53.235294
1,085
0.723389
18d8dde9dfa81d8863dfa8869b8f1edf2cd9f3f7
1,566
exs
Elixir
config/prod.exs
erickgnavarro/phoenix_demo_chat
71749db3fb4e8012047e8d857b0a096a36dbe375
[ "MIT" ]
2
2015-05-12T04:00:03.000Z
2016-05-02T06:05:25.000Z
config/prod.exs
erickgnavarro/phoenix_demo_chat
71749db3fb4e8012047e8d857b0a096a36dbe375
[ "MIT" ]
null
null
null
config/prod.exs
erickgnavarro/phoenix_demo_chat
71749db3fb4e8012047e8d857b0a096a36dbe375
[ "MIT" ]
null
null
null
use Mix.Config # For production, we configure the host to read the PORT # from the system environment. Therefore, you will need # to set PORT=80 before running your server. # # You should also configure the url host to something # meaningful, we use this information when generating URLs. # # Finally, we also include t...
30.115385
64
0.728608
18d8e5cb9e7c0c8c4b81e870f683c7a84e4a5be1
264
exs
Elixir
programming/elixir/learning_elixir_code_bundle/code/chapter6/workpool/test/workpool_scheduler_test.exs
NomikOS/learning
268f94605214f6861ef476ca7573e68c068ccbe5
[ "Unlicense" ]
1
2020-01-09T03:22:09.000Z
2020-01-09T03:22:09.000Z
elixir/tour/learning_elixir_code_bundle/code/chapter6/workpool/test/workpool_scheduler_test.exs
lijiansong/lang
e255709da2b12e09dea45f86d54f77a19b96f13b
[ "WTFPL" ]
null
null
null
elixir/tour/learning_elixir_code_bundle/code/chapter6/workpool/test/workpool_scheduler_test.exs
lijiansong/lang
e255709da2b12e09dea45f86d54f77a19b96f13b
[ "WTFPL" ]
null
null
null
defmodule WorkpoolSchedulerTest do use ExUnit.case, async: false setup do scheduler = Workpool.Scheduler.start_link on_exit(scheduler, fn -> Application.stop(scheduler) :timer.sleep(100) end) {:ok, scheduler: scheduler} end end
18.857143
45
0.689394
18d93574c56efbcb24dc57f1a9d47330d40502b5
72,945
exs
Elixir
apps/admin_api/test/admin_api/v1/controllers/provider_auth/transaction_consumption_controller_test.exs
saturnial/ewallet
a0a6a7604fca0891d495b3aebaead37fe02aae2c
[ "Apache-2.0" ]
null
null
null
apps/admin_api/test/admin_api/v1/controllers/provider_auth/transaction_consumption_controller_test.exs
saturnial/ewallet
a0a6a7604fca0891d495b3aebaead37fe02aae2c
[ "Apache-2.0" ]
null
null
null
apps/admin_api/test/admin_api/v1/controllers/provider_auth/transaction_consumption_controller_test.exs
saturnial/ewallet
a0a6a7604fca0891d495b3aebaead37fe02aae2c
[ "Apache-2.0" ]
null
null
null
defmodule AdminAPI.V1.ProviderAuth.TransactionConsumptionControllerTest do use AdminAPI.ConnCase, async: true alias EWalletDB.{ Repo, TransactionRequest, TransactionConsumption, User, Transaction, Account, AccountUser } alias EWallet.{TestEndpoint, BalanceFetcher} alias EWallet.W...
36.291045
120
0.605017
18d940ef231eea5873cf4f1c19ad5341220161e2
124
ex
Elixir
lib/cartel/async/async_headers.ex
cartel/cartel
1b1ef3c3ce27edfcd64a59a9d18eb1bccc2e273e
[ "MIT" ]
null
null
null
lib/cartel/async/async_headers.ex
cartel/cartel
1b1ef3c3ce27edfcd64a59a9d18eb1bccc2e273e
[ "MIT" ]
null
null
null
lib/cartel/async/async_headers.ex
cartel/cartel
1b1ef3c3ce27edfcd64a59a9d18eb1bccc2e273e
[ "MIT" ]
null
null
null
defmodule Cartel.AsyncHeaders do defstruct id: nil, headers: [] @type t :: %__MODULE__{id: reference, headers: list} end
31
54
0.725806
18d9486ca79884fa50d380f5a68e714e06d21937
266
ex
Elixir
lib/cgrates_web_jsonapi_web/views/tp_charger_view.ex
drougojrom/cgrates_web_jsonapi
8ceda47106dbc624fb375d556ec4d5a10a72abaa
[ "MIT" ]
null
null
null
lib/cgrates_web_jsonapi_web/views/tp_charger_view.ex
drougojrom/cgrates_web_jsonapi
8ceda47106dbc624fb375d556ec4d5a10a72abaa
[ "MIT" ]
null
null
null
lib/cgrates_web_jsonapi_web/views/tp_charger_view.ex
drougojrom/cgrates_web_jsonapi
8ceda47106dbc624fb375d556ec4d5a10a72abaa
[ "MIT" ]
null
null
null
defmodule CgratesWebJsonapiWeb.TpChargerView do use CgratesWebJsonapiWeb, :view use JaSerializer.PhoenixView attributes([ :tpid, :tenant, :custom_id, :attribute_ids, :filter_ids, :run_id, :activation_interval, :weight ]) end
16.625
47
0.68797
18d95d065e3922a9146b827abb5dec1aefed2560
7,294
ex
Elixir
lib/payjp/subscriptions.ex
shufo/payjp-elixir
01e9d9678a1a9bf9bc0850d7c848534ef22490fa
[ "MIT" ]
4
2017-02-20T00:26:02.000Z
2019-05-22T01:02:25.000Z
lib/payjp/subscriptions.ex
shufo/payjp-elixir
01e9d9678a1a9bf9bc0850d7c848534ef22490fa
[ "MIT" ]
28
2020-03-06T03:28:28.000Z
2021-08-02T20:38:55.000Z
lib/payjp/subscriptions.ex
shufo/payjp-elixir
01e9d9678a1a9bf9bc0850d7c848534ef22490fa
[ "MIT" ]
1
2017-06-16T12:56:47.000Z
2017-06-16T12:56:47.000Z
defmodule Payjp.Subscriptions do @moduledoc """ Main API for working with Subscriptions at Payjp. Through this API you can: - create - change - retrieve - cancel - cancel_all - list all Supports Connect workflow by allowing to pass in any API key explicitely (vs using the one from env/config). (AP...
21.838323
119
0.642446
18d9a6c594d69a085f4563e4baf9c50466c04a32
1,610
ex
Elixir
clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_cx_v3beta1_import_agent_response.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_cx_v3beta1_import_agent_response.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_cx_v3beta1_import_agent_response.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2021-03-04T13:43:47.000Z
2021-03-04T13:43:47.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...
30.961538
134
0.748447
18d9ba94d55dc56421dff66056e5b793d8a43cb7
452
exs
Elixir
priv/repo/migrations/20160214121954_create_star.exs
tuvistavie/projare
e776b2d326fed97e0dbf62530674fe688ff73ab8
[ "MIT" ]
3
2016-03-06T12:23:01.000Z
2017-03-21T18:22:07.000Z
priv/repo/migrations/20160214121954_create_star.exs
tuvistavie/projare
e776b2d326fed97e0dbf62530674fe688ff73ab8
[ "MIT" ]
null
null
null
priv/repo/migrations/20160214121954_create_star.exs
tuvistavie/projare
e776b2d326fed97e0dbf62530674fe688ff73ab8
[ "MIT" ]
null
null
null
defmodule Projare.Repo.Migrations.CreateStar do use Ecto.Migration def change do create table(:stars) do add :user_id, references(:users), null: false add :project_id, references(:projects), null: false timestamps end alter table(:projects) do add :stars_count, :integer, null:...
22.6
57
0.672566
18d9e3ea4268d2034ea5899a96cfdac80fef4c70
3,784
ex
Elixir
lib/espec/context.ex
MeneDev/espec
ec4b3d579c5192999e930224a8a2650bb1fdf0bc
[ "Apache-2.0" ]
null
null
null
lib/espec/context.ex
MeneDev/espec
ec4b3d579c5192999e930224a8a2650bb1fdf0bc
[ "Apache-2.0" ]
null
null
null
lib/espec/context.ex
MeneDev/espec
ec4b3d579c5192999e930224a8a2650bb1fdf0bc
[ "Apache-2.0" ]
null
null
null
defmodule ESpec.Context do @moduledoc """ Defines macros 'context', 'describe', and 'example_group'. Defines macros for 'skip' and 'focus' example groups """ @aliases ~w(describe example_group)a @skipped ~w(xcontext xdescribe xexample_group)a @focused ~w(fcontext fdescribe fexample_group)a @doc """ ...
28.885496
95
0.629228
18d9f3d4edf003e3c96acf0d1321b91c9e1241ef
40,629
exs
Elixir
apps/andi/test/integration/andi_web/live/ingestion_live_view/data_dictionary_form_test.exs
UrbanOS-Public/smartcitiesdata
c4f4d83fcd1bbae5f4d3f47a9b218f3d991a51cd
[ "Apache-2.0" ]
8
2021-10-31T18:45:02.000Z
2022-03-05T18:33:08.000Z
apps/andi/test/integration/andi_web/live/ingestion_live_view/data_dictionary_form_test.exs
UrbanOS-Public/smartcitiesdata
c4f4d83fcd1bbae5f4d3f47a9b218f3d991a51cd
[ "Apache-2.0" ]
7
2022-01-14T21:21:23.000Z
2022-03-16T17:23:10.000Z
apps/andi/test/integration/andi_web/live/ingestion_live_view/data_dictionary_form_test.exs
UrbanOS-Public/smartcitiesdata
c4f4d83fcd1bbae5f4d3f47a9b218f3d991a51cd
[ "Apache-2.0" ]
1
2022-03-08T23:45:02.000Z
2022-03-08T23:45:02.000Z
defmodule AndiWeb.IngestionLiveView.DataDictionaryFormTest do use ExUnit.Case use Andi.DataCase use AndiWeb.Test.AuthConnCase.IntegrationCase import SmartCity.Event, only: [ingestion_update: 0, dataset_update: 0] import SmartCity.TestHelper, only: [eventually: 1, eventually: 3] import Phoenix.LiveViewTest ...
34.81491
146
0.611681
18d9fb60b485427cc3b4a06ef2df022858fe5e02
1,824
exs
Elixir
mix.exs
mzabka/amqp
f0002f8edd314c7d0a7bc201b962e9549e4f752c
[ "MIT" ]
688
2015-01-14T14:40:25.000Z
2022-03-20T11:54:49.000Z
mix.exs
mzabka/amqp
f0002f8edd314c7d0a7bc201b962e9549e4f752c
[ "MIT" ]
180
2015-03-18T18:57:32.000Z
2022-03-14T13:12:30.000Z
mix.exs
mzabka/amqp
f0002f8edd314c7d0a7bc201b962e9549e4f752c
[ "MIT" ]
170
2015-04-18T13:54:35.000Z
2022-03-04T09:59:49.000Z
defmodule AMQP.Mixfile do use Mix.Project @source_url "https://github.com/pma/amqp" @version "3.0.0" def project do [ app: :amqp, version: @version, elixir: "~> 1.10.3 or ~> 1.11", package: package(), deps: deps(), dialyzer: dialyzer(), docs: docs(), preferr...
20.494382
73
0.548246
18da20bb6956cee5ceb899cd6e45503e48f36a80
906
ex
Elixir
lib/nope_app.ex
tomaszj/nope-phoenix-app
46bbc16158115bc7db3971049cc8cf617b8ac6e1
[ "MIT" ]
null
null
null
lib/nope_app.ex
tomaszj/nope-phoenix-app
46bbc16158115bc7db3971049cc8cf617b8ac6e1
[ "MIT" ]
null
null
null
lib/nope_app.ex
tomaszj/nope-phoenix-app
46bbc16158115bc7db3971049cc8cf617b8ac6e1
[ "MIT" ]
null
null
null
defmodule NopeApp do use Application # See http://elixir-lang.org/docs/stable/elixir/Application.html # for more information on OTP Applications def start(_type, _args) do import Supervisor.Spec, warn: false children = [ # Start the endpoint when the application starts supervisor(NopeApp.E...
31.241379
71
0.718543
18da33372e6d1a352b4ebadca9432b398a78f976
1,904
ex
Elixir
clients/classroom/lib/google_api/classroom/v1/model/modify_individual_students_options.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/classroom/lib/google_api/classroom/v1/model/modify_individual_students_options.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/classroom/lib/google_api/classroom/v1/model/modify_individual_students_options.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...
38.08
153
0.743172
18da4e70a218a0c33da63b5bfe96d8c15459785f
6,130
exs
Elixir
test/logstash_json_tcp_test.exs
tres/logstash-json
81d69a1d429b4eb36c5f3cd7943b5bdcce3ab1cf
[ "MIT" ]
36
2016-08-08T22:04:08.000Z
2022-01-26T07:21:05.000Z
test/logstash_json_tcp_test.exs
tres/logstash-json
81d69a1d429b4eb36c5f3cd7943b5bdcce3ab1cf
[ "MIT" ]
28
2016-07-25T12:32:43.000Z
2021-11-19T14:58:28.000Z
test/logstash_json_tcp_test.exs
tres/logstash-json
81d69a1d429b4eb36c5f3cd7943b5bdcce3ab1cf
[ "MIT" ]
28
2016-08-08T22:04:12.000Z
2022-03-31T13:57:25.000Z
defmodule LogstashJsonTcpTest do use ExUnit.Case, async: false require Logger @moduledoc """ Unit tests for TCP logger output. """ test "Happy case" do {listener, logger} = new_backend() log(logger, "Hello world!") msg = recv_and_close(listener) :gen_event.stop(logger) event = Jason...
27.366071
96
0.628059
18da51fa31f4128a361aeb0509e6bff0b79547ca
6,834
ex
Elixir
farmbot_celery_script/lib/farmbot_celery_script/compilers/sequence_compiler.ex
adamswsk/farmbot_os
d177d3b74888c1e7bcbf8f8595818708ee97f73b
[ "MIT" ]
null
null
null
farmbot_celery_script/lib/farmbot_celery_script/compilers/sequence_compiler.ex
adamswsk/farmbot_os
d177d3b74888c1e7bcbf8f8595818708ee97f73b
[ "MIT" ]
null
null
null
farmbot_celery_script/lib/farmbot_celery_script/compilers/sequence_compiler.ex
adamswsk/farmbot_os
d177d3b74888c1e7bcbf8f8595818708ee97f73b
[ "MIT" ]
null
null
null
defmodule FarmbotCeleryScript.Compiler.Sequence do import FarmbotCeleryScript.Compiler.Utils alias FarmbotCeleryScript.Compiler.IdentifierSanitizer @iterables [:point_group, :every_point] def sequence(%{args: %{locals: %{body: params_or_iterables}}} = ast, env) do # if there is an iterable AST here, #...
34.17
82
0.568774
18da5a13931f8106565ef4f451df4040aa40ec9e
1,661
exs
Elixir
test/web/controllers/merge_controller_mock_test.exs
isshindev/accent
ae4c13139b0a0dfd64ff536b94c940a4e2862150
[ "BSD-3-Clause" ]
806
2018-04-07T20:40:33.000Z
2022-03-30T01:39:57.000Z
test/web/controllers/merge_controller_mock_test.exs
isshindev/accent
ae4c13139b0a0dfd64ff536b94c940a4e2862150
[ "BSD-3-Clause" ]
194
2018-04-07T13:49:37.000Z
2022-03-30T19:58:45.000Z
test/web/controllers/merge_controller_mock_test.exs
doc-ai/accent
e337e16f3658cc0728364f952c0d9c13710ebb06
[ "BSD-3-Clause" ]
89
2018-04-09T13:55:49.000Z
2022-03-24T07:09:31.000Z
defmodule AccentTest.MergeControllerMock do use Accent.ConnCase import Mock alias Accent.{ AccessToken, Collaborator, Document, Language, Project, Repo, Revision, User } @user %User{email: "test@test.com"} def file(filename \\ "simple.json") do %Plug.Upload{content_ty...
33.897959
139
0.673691
18da7563a105518d54e71241d0e277d2bf6c3c95
3,112
ex
Elixir
lib/parser/numbers.ex
kipcole9/tempo
817714acd6baf38be3a8a997ef1d205206d79adc
[ "Apache-2.0" ]
16
2021-01-03T12:53:52.000Z
2021-08-25T03:47:14.000Z
lib/parser/numbers.ex
kipcole9/tempo
817714acd6baf38be3a8a997ef1d205206d79adc
[ "Apache-2.0" ]
3
2021-01-10T09:32:22.000Z
2021-07-19T12:16:17.000Z
lib/parser/numbers.ex
kipcole9/tempo
817714acd6baf38be3a8a997ef1d205206d79adc
[ "Apache-2.0" ]
1
2021-01-10T09:01:11.000Z
2021-01-10T09:01:11.000Z
defmodule Tempo.Iso8601.Parser.Numbers do @moduledoc """ Numbers aren't just numbers in ISO8601 when considering the extension formats. In some situations they may: * Have exponents * Have precision * Have unknown digits And how these are formed varies by whether the number is being parsed for an impl...
23.755725
70
0.668702
18da98fa70d5cb3bbdbd5f5d8caefdb52cef44b1
2,033
exs
Elixir
mix.exs
merqlove/redix_pubsub_fastlane
a41854663ec66628ed4622eb4d17d91b0ecb6f22
[ "MIT" ]
null
null
null
mix.exs
merqlove/redix_pubsub_fastlane
a41854663ec66628ed4622eb4d17d91b0ecb6f22
[ "MIT" ]
null
null
null
mix.exs
merqlove/redix_pubsub_fastlane
a41854663ec66628ed4622eb4d17d91b0ecb6f22
[ "MIT" ]
null
null
null
defmodule RedixPubsubFastlane.Mixfile do use Mix.Project @project_url "https://github.com/cnsa/redix_pubsub_fastlane" @version "0.3.4" def project do [app: :redix_pubsub_fastlane, version: @version, elixir: "~> 1.3", elixirc_paths: elixirc_paths(Mix.env), build_embedded: Mix.env == :pr...
27.106667
92
0.586326
18da992b8fe2765bf93a6e4c78616b7c45c92333
1,376
exs
Elixir
apps/admin/mix.exs
glv/revista
00ecb0780c62a5525155a773b959b169e0e0500d
[ "MIT" ]
17
2019-01-31T18:33:09.000Z
2022-01-18T12:38:49.000Z
apps/admin/mix.exs
glv/revista
00ecb0780c62a5525155a773b959b169e0e0500d
[ "MIT" ]
null
null
null
apps/admin/mix.exs
glv/revista
00ecb0780c62a5525155a773b959b169e0e0500d
[ "MIT" ]
4
2018-11-10T01:56:17.000Z
2020-06-09T21:10:41.000Z
defmodule Admin.MixProject do use Mix.Project def project do [ app: :admin, version: "0.1.0", build_path: "../../_build", config_path: "../../config/config.exs", deps_path: "../../deps", lockfile: "../../mix.lock", elixir: "~> 1.5", elixirc_paths: elixirc_paths(M...
25.481481
57
0.563227
18daa43e8d268bf83997a7c844f25f42e0544c10
846
exs
Elixir
config/hauler.schema.exs
hexedpackets/hauler
42381c49c856744c8d13acc1571decf6b701d8a7
[ "Apache-2.0" ]
3
2015-07-24T20:55:57.000Z
2015-10-12T14:48:49.000Z
config/hauler.schema.exs
hexedpackets/hauler
42381c49c856744c8d13acc1571decf6b701d8a7
[ "Apache-2.0" ]
null
null
null
config/hauler.schema.exs
hexedpackets/hauler
42381c49c856744c8d13acc1571decf6b701d8a7
[ "Apache-2.0" ]
null
null
null
[ mappings: [ "logger.console.level": [ doc: "Level to log at.", to: "logger.console.level", datatype: :atom, default: :debug ], "docker.host": [ doc: "How to connect to the docker daemon.", to: "docker.host", datatype: :binary, default: nil ], "haul...
22.864865
66
0.55792
18dab794262261ed41d8f2383ea5c9cb5548fc01
2,412
exs
Elixir
config/prod.exs
cazrin/stranger
887dfe52c8b934cf6fd0d598d64c3735da96d4e1
[ "MIT" ]
50
2016-01-24T11:45:47.000Z
2016-08-26T20:20:20.000Z
config/prod.exs
dnlgrv/stranger
887dfe52c8b934cf6fd0d598d64c3735da96d4e1
[ "MIT" ]
1
2016-01-24T20:21:19.000Z
2016-01-28T11:26:10.000Z
config/prod.exs
dnlgrv/stranger
887dfe52c8b934cf6fd0d598d64c3735da96d4e1
[ "MIT" ]
3
2017-03-17T12:46:09.000Z
2021-01-14T19:41:01.000Z
use Mix.Config ## Google Analytics config :stranger, ga_tracking_code: System.get_env("GA_TRACKING_CODE") # For production, we configure the host to read the PORT # from the system environment. Therefore, you will need # to set PORT=80 before running your server. # # You should also configure the url host to someth...
33.5
74
0.718905
18dad667c052bfb3c496d4cb639584553edd0597
1,464
ex
Elixir
lib/ex_web3_ec_recover/personal_type.ex
dagumak/ex_web3_ec_recover
fd82dedb00454ead67613fb56e94ef30086d5ab5
[ "MIT" ]
5
2021-12-31T11:02:31.000Z
2022-01-31T09:26:40.000Z
lib/ex_web3_ec_recover/personal_type.ex
dagumak/ex_web3_ec_recover
fd82dedb00454ead67613fb56e94ef30086d5ab5
[ "MIT" ]
6
2022-01-05T05:13:42.000Z
2022-03-30T22:19:23.000Z
lib/ex_web3_ec_recover/personal_type.ex
dagumak/ex_web3_ec_recover
fd82dedb00454ead67613fb56e94ef30086d5ab5
[ "MIT" ]
5
2022-01-03T14:19:59.000Z
2022-03-30T21:17:14.000Z
defmodule ExWeb3EcRecover.PersonalType do @moduledoc """ This modules implements behaviour described in [EIP 191](https://eips.ethereum.org/EIPS/eip-191) Check `create_hash_from_personal_message/1` for details. """ @doc """ Creates a has of personal message hash. If `message` is a hex string it will ...
33.272727
82
0.686475
18daebd2d87a47ca46e522dd5d8061e754b628a3
3,179
ex
Elixir
elixir/elixir-mars-water/lib/algos/heap.ex
marcinbiegun/exercises
36ad942e8d40d6471136326a3f6d09285bbd90aa
[ "MIT" ]
1
2018-12-11T14:09:14.000Z
2018-12-11T14:09:14.000Z
elixir/elixir-mars-water/lib/algos/heap.ex
marcinbiegun/exercises
36ad942e8d40d6471136326a3f6d09285bbd90aa
[ "MIT" ]
null
null
null
elixir/elixir-mars-water/lib/algos/heap.ex
marcinbiegun/exercises
36ad942e8d40d6471136326a3f6d09285bbd90aa
[ "MIT" ]
null
null
null
defmodule MarsWater.Algos.Heap do alias MarsWater.Util.MaxHeap @count_solutions_every 100 def run(input) when is_binary(input) do [results_requested, grid_size | measurements] = String.split(input, " ", trim: true) |> Enum.map(& Integer.parse(&1) |> elem(0)) heap = build_heap(measurements, ...
28.9
114
0.554891
18db16b4e32b0eaee85b99e6e8a030d0ed03f9ad
552
ex
Elixir
lib/wabanex/training.ex
brunodantas/wabanex
4d8e4258969203cf0adf5b6561fbd862085afed7
[ "MIT" ]
null
null
null
lib/wabanex/training.ex
brunodantas/wabanex
4d8e4258969203cf0adf5b6561fbd862085afed7
[ "MIT" ]
null
null
null
lib/wabanex/training.ex
brunodantas/wabanex
4d8e4258969203cf0adf5b6561fbd862085afed7
[ "MIT" ]
null
null
null
defmodule Wabanex.Training do use Ecto.Schema import Ecto.Changeset alias Wabanex.{User, Exercise} @primary_key {:id, :binary_id, autogenerate: true} @foreign_key_type :binary_id @fields [:start_date, :end_date, :user_id] schema "trainings" do field :start_date, :date field :end_date, :date ...
19.714286
52
0.686594
18db1e09194e1c38efac9503c4875f917f89d1c4
491
ex
Elixir
lib/rig_inbound_gateway_web/endpoint.ex
prakriti07/reactive-interaction-gateway
c9d33064982b5ae12e9af7a300e90b3e7973d0b3
[ "Apache-2.0" ]
null
null
null
lib/rig_inbound_gateway_web/endpoint.ex
prakriti07/reactive-interaction-gateway
c9d33064982b5ae12e9af7a300e90b3e7973d0b3
[ "Apache-2.0" ]
null
null
null
lib/rig_inbound_gateway_web/endpoint.ex
prakriti07/reactive-interaction-gateway
c9d33064982b5ae12e9af7a300e90b3e7973d0b3
[ "Apache-2.0" ]
1
2020-07-17T05:17:32.000Z
2020-07-17T05:17:32.000Z
defmodule RigInboundGatewayWeb.Endpoint do use Phoenix.Endpoint, otp_app: :rig use Rig.Config, [] alias Rig.Config plug(Plug.RequestId) plug(Plug.Logger) plug(Plug.MethodOverride) plug(Plug.Head) plug(RigInboundGatewayWeb.Router) @spec init(:supervisor, Keyword.t()) :: {:ok, Keyword.t()} def in...
20.458333
61
0.702648
18db47210fb623d81d597015c13975c56649d376
5,292
ex
Elixir
lib/endpoint/bin_inquiry.ex
akdilsiz/iyzico
ec26b55c6c9037c6e76e0927d32653a89a1b5731
[ "MIT" ]
1
2021-07-06T20:41:20.000Z
2021-07-06T20:41:20.000Z
lib/endpoint/bin_inquiry.ex
akdilsiz/iyzico
ec26b55c6c9037c6e76e0927d32653a89a1b5731
[ "MIT" ]
null
null
null
lib/endpoint/bin_inquiry.ex
akdilsiz/iyzico
ec26b55c6c9037c6e76e0927d32653a89a1b5731
[ "MIT" ]
null
null
null
defmodule Iyzico.Inquiry do @moduledoc false @doc false defstruct [ :bin, :conversation_id, :price, :currency ] @type currency :: :try @type t :: %__MODULE__{ bin: binary, conversation_id: binary, price: number, currency: currency } end defimpl Iyzico.IOListConvertible, for: Iyzico.Inqui...
30.413793
118
0.659864
18db72c4a9cc59f681d24ac6b031b384c8854ad2
79
exs
Elixir
test/views/welcome_view_test.exs
av-ast/scrawler
4fe7e59dd35aad977fa0d73b400461bcccfe727e
[ "MIT" ]
null
null
null
test/views/welcome_view_test.exs
av-ast/scrawler
4fe7e59dd35aad977fa0d73b400461bcccfe727e
[ "MIT" ]
null
null
null
test/views/welcome_view_test.exs
av-ast/scrawler
4fe7e59dd35aad977fa0d73b400461bcccfe727e
[ "MIT" ]
null
null
null
defmodule Scrawler.WelcomeViewTest do use Scrawler.ConnCase, async: true end
19.75
37
0.822785
18dba4794cf052ca8233628e3b85dc24d3a63bd8
2,847
ex
Elixir
clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p2beta1_product_search_results.ex
mocknen/elixir-google-api
dac4877b5da2694eca6a0b07b3bd0e179e5f3b70
[ "Apache-2.0" ]
null
null
null
clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p2beta1_product_search_results.ex
mocknen/elixir-google-api
dac4877b5da2694eca6a0b07b3bd0e179e5f3b70
[ "Apache-2.0" ]
null
null
null
clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p2beta1_product_search_results.ex
mocknen/elixir-google-api
dac4877b5da2694eca6a0b07b3bd0e179e5f3b70
[ "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...
37.96
387
0.748156
18dbd9ce18503b1cf5b4405d2c537556b9aacaec
1,078
exs
Elixir
test/pinyin_util_test.exs
dev800/pinyin_util
569f859089ec13d94921f7bc90fad3ffb790620a
[ "MIT" ]
null
null
null
test/pinyin_util_test.exs
dev800/pinyin_util
569f859089ec13d94921f7bc90fad3ffb790620a
[ "MIT" ]
null
null
null
test/pinyin_util_test.exs
dev800/pinyin_util
569f859089ec13d94921f7bc90fad3ffb790620a
[ "MIT" ]
null
null
null
defmodule PinyinUtilTest do use ExUnit.Case, async: true @pure_hanzi "龡龢龣龤龥癩什么鬼东西" @hanzi_eng "a龡dsa龢dsa龣龤das龥癩dasdas什么das鬼东西dad" test "default opts" do assert PinyinUtil.spell(@pure_hanzi) == "chui he jue xie yu la shi yao gui dong xi" assert PinyinUtil.spell(@hanzi_eng) == "a chui dsa he dsa jue x...
39.925926
131
0.685529
18dbf98df8a31cd5294b5805745d7dd8026eb0e0
3,202
ex
Elixir
lib/hound/json_driver/page.ex
zamith/hound
2fcddb59e1e71ac77bbebfcb97bc6d74ae11d116
[ "MIT" ]
null
null
null
lib/hound/json_driver/page.ex
zamith/hound
2fcddb59e1e71ac77bbebfcb97bc6d74ae11d116
[ "MIT" ]
null
null
null
lib/hound/json_driver/page.ex
zamith/hound
2fcddb59e1e71ac77bbebfcb97bc6d74ae11d116
[ "MIT" ]
null
null
null
defmodule Hound.JsonDriver.Page do import Hound.JsonDriver.Utils @spec page_source() :: String.t def page_source() do session_id = Hound.current_session_id make_req(:get, "session/#{session_id}/source") end @spec page_title() :: String.t def page_title() do session_id = Hound.current_session...
30.495238
117
0.673017
18dc02ed805d443d823384381ca6b13968655530
3,030
exs
Elixir
test/plantar_web/controllers/user_confirmation_controller_test.exs
pantanal-labs/plantar
8b119874fbddf50fe23d435462fb3238bb1d6e42
[ "MIT" ]
null
null
null
test/plantar_web/controllers/user_confirmation_controller_test.exs
pantanal-labs/plantar
8b119874fbddf50fe23d435462fb3238bb1d6e42
[ "MIT" ]
23
2020-07-29T21:03:00.000Z
2021-02-01T18:20:35.000Z
test/plantar_web/controllers/user_confirmation_controller_test.exs
pantanal-labs/plantar
8b119874fbddf50fe23d435462fb3238bb1d6e42
[ "MIT" ]
null
null
null
defmodule PlantarWeb.UserConfirmationControllerTest do use PlantarWeb.ConnCase, async: true alias Plantar.Accounts alias Plantar.Repo import Plantar.AccountsFixtures setup do %{user: user_fixture()} end describe "GET /users/confirm" do test "renders the confirmation page", %{conn: conn} do ...
35.647059
97
0.651815
18dc14a5402e2820f460c31124d6f7134845ed1b
4,142
ex
Elixir
lib/elirc/plugin/message/parser.ex
rockerBOO/elirc_twitch
6399f717c012df10df7914c216f5d3f9c425844c
[ "MIT" ]
20
2015-06-18T03:30:58.000Z
2021-01-11T19:55:00.000Z
lib/elirc/plugin/message/parser.ex
rockerBOO/elirc_twitch
6399f717c012df10df7914c216f5d3f9c425844c
[ "MIT" ]
1
2015-06-24T01:03:31.000Z
2015-06-24T12:41:21.000Z
lib/elirc/plugin/message/parser.ex
rockerBOO/elirc_twitch
6399f717c012df10df7914c216f5d3f9c425844c
[ "MIT" ]
7
2015-06-22T14:25:12.000Z
2016-01-21T03:39:02.000Z
defmodule Elirc.Message.Parser do alias Elirc.Message alias Elirc.Command alias Elirc.Sound alias Elirc.Emoticon @doc """ Find emotes in the message ## Example find_emotes("Hello danLol", [[{"danLol", %{...}], ...], %State{}) """ def emotes(message, emotes, channel) do Elirc.Emoticon.find_emot...
22.389189
95
0.62844
18dc170fa81ae903299f85bd1c7245767ee216ee
2,024
ex
Elixir
lib/club/colors/colors.ex
vheathen/club.wallprint.pro
d58d2409d8879d23ed4d60fe3b9c2e1bd82e924d
[ "MIT" ]
null
null
null
lib/club/colors/colors.ex
vheathen/club.wallprint.pro
d58d2409d8879d23ed4d60fe3b9c2e1bd82e924d
[ "MIT" ]
34
2019-11-10T11:31:37.000Z
2019-11-27T21:26:48.000Z
lib/club/colors/colors.ex
vheathen/club.wallprint.pro
d58d2409d8879d23ed4d60fe3b9c2e1bd82e924d
[ "MIT" ]
null
null
null
defmodule Club.Colors do @moduledoc """ Colors domain public API """ alias Club.Commanded alias Club.ReadRepo, as: Repo alias Club.Colors.Commands.{ AddColor, RenameColor, UpdateColorHex, DeleteColor } alias Club.Colors.Queries.NameExists @spec add_color(color :: map(), metadata :...
28.914286
87
0.657609
18dc2cc792c36417a4801b5c27d2a511fff693a7
6,560
exs
Elixir
test/stm_agent_test.exs
stevbov/stm_agent
364308a6d6500895f92783eead36db5cc2ed4e87
[ "Apache-2.0" ]
null
null
null
test/stm_agent_test.exs
stevbov/stm_agent
364308a6d6500895f92783eead36db5cc2ed4e87
[ "Apache-2.0" ]
null
null
null
test/stm_agent_test.exs
stevbov/stm_agent
364308a6d6500895f92783eead36db5cc2ed4e87
[ "Apache-2.0" ]
null
null
null
defmodule StmAgentTest do use ExUnit.Case setup do {:ok, agent} = StmAgent.start(fn -> 1 end) on_exit(fn -> if Process.alive?(agent) do StmAgent.stop(agent) end end) tx = StmAgent.Transaction.Id.new() tx2 = StmAgent.Transaction.Id.new() [agent: agent, tx: tx, tx2: tx2...
32.156863
112
0.622256
18dc395529f6764d7546830cfb107b407f13889a
337
exs
Elixir
priv/repo/migrations/20181122035954_create_events.exs
shanesveller/grapevine
fe74ade1adff88dfe4c1ab55fee3902dbb4664fe
[ "MIT" ]
null
null
null
priv/repo/migrations/20181122035954_create_events.exs
shanesveller/grapevine
fe74ade1adff88dfe4c1ab55fee3902dbb4664fe
[ "MIT" ]
null
null
null
priv/repo/migrations/20181122035954_create_events.exs
shanesveller/grapevine
fe74ade1adff88dfe4c1ab55fee3902dbb4664fe
[ "MIT" ]
null
null
null
defmodule Grapevine.Repo.Migrations.CreateEvents do use Ecto.Migration def change do create table(:events) do add(:game_id, references(:games), null: false) add(:title, :text, null: false) add(:description, :text) add(:start_date, :date) add(:end_date, :date) timestamps() ...
21.0625
52
0.64095
18dcc081dfd9c8920cf60da2fc8d166520407a19
20,610
ex
Elixir
lib/surface/ast.ex
RudolfMan/surface
ee8c1546b77c91fe08e7360e64666c613bc5a900
[ "MIT" ]
null
null
null
lib/surface/ast.ex
RudolfMan/surface
ee8c1546b77c91fe08e7360e64666c613bc5a900
[ "MIT" ]
null
null
null
lib/surface/ast.ex
RudolfMan/surface
ee8c1546b77c91fe08e7360e64666c613bc5a900
[ "MIT" ]
null
null
null
defmodule Surface.AST.Container do @moduledoc """ An AST node representing a container of other nodes. This does not have content itself, just contains children which have content, and directives that operate on the entirety of the children (i.e. for, if, debug) ## Properties * `:children` - children A...
33.295638
131
0.612179
18dcc43fd35fec048fdbefc2ad9943c78659b0e5
1,408
ex
Elixir
clients/vault/lib/google_api/vault/v1/model/sites_url_info.ex
yoshi-code-bot/elixir-google-api
cdb6032f01fac5ab704803113c39f2207e9e019d
[ "Apache-2.0" ]
null
null
null
clients/vault/lib/google_api/vault/v1/model/sites_url_info.ex
yoshi-code-bot/elixir-google-api
cdb6032f01fac5ab704803113c39f2207e9e019d
[ "Apache-2.0" ]
null
null
null
clients/vault/lib/google_api/vault/v1/model/sites_url_info.ex
yoshi-code-bot/elixir-google-api
cdb6032f01fac5ab704803113c39f2207e9e019d
[ "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...
29.957447
90
0.725852
18dcd71a2d4302d0bda56c0e273d0aff4f716412
2,018
ex
Elixir
lib/aoc2019_1_1.ex
hvnsweeting/adventofcode2018
8e5a85ebb7b102361b844b0f92522c18148a672a
[ "BSD-3-Clause" ]
1
2022-01-10T02:34:18.000Z
2022-01-10T02:34:18.000Z
lib/aoc2019_1_1.ex
hvnsweeting/adventofcode2018
8e5a85ebb7b102361b844b0f92522c18148a672a
[ "BSD-3-Clause" ]
null
null
null
lib/aoc2019_1_1.ex
hvnsweeting/adventofcode2018
8e5a85ebb7b102361b844b0f92522c18148a672a
[ "BSD-3-Clause" ]
1
2019-12-02T09:42:17.000Z
2019-12-02T09:42:17.000Z
defmodule Aoc2019Day1 do @moduledoc """ Documentation for Aoc2019. """ @doc """ Fuel required to launch a given module is based on its mass. Specifically, to find the fuel required for a module, take its mass, divide by three, round down, and subtract 2. For example: For a mass of 12, divid...
33.081967
419
0.70218
18dd116b5f6e620c6097ace65e24e954a9e3af88
873
exs
Elixir
farmbot_core/test/farmbot_celery_script/corpus_test.exs
gdwb/farmbot_os
0ef2697c580c9fbf37a22daa063a64addfcb778d
[ "MIT" ]
1
2021-08-23T13:36:14.000Z
2021-08-23T13:36:14.000Z
farmbot_core/test/farmbot_celery_script/corpus_test.exs
gdwb/farmbot_os
0ef2697c580c9fbf37a22daa063a64addfcb778d
[ "MIT" ]
null
null
null
farmbot_core/test/farmbot_celery_script/corpus_test.exs
gdwb/farmbot_os
0ef2697c580c9fbf37a22daa063a64addfcb778d
[ "MIT" ]
null
null
null
defmodule FarmbotCeleryScript.CorpusTest do use ExUnit.Case alias FarmbotCeleryScript.Corpus test "lists all node names" do assert "sequence" in Corpus.all_node_names() assert "move_absolute" in Corpus.all_node_names() end test "gets a node spec by its name" do assert match?(%{name: "sequence", ...
30.103448
80
0.690722
18dd2d8665ad652e56a080a048eeef02e807f94d
1,844
exs
Elixir
test/automated/delugex/event_transformer_test.exs
Fire-Dragon-DoL/esp_ex
0cd95de570ed7963744b298ad403fe4e1947dd2b
[ "MIT" ]
null
null
null
test/automated/delugex/event_transformer_test.exs
Fire-Dragon-DoL/esp_ex
0cd95de570ed7963744b298ad403fe4e1947dd2b
[ "MIT" ]
null
null
null
test/automated/delugex/event_transformer_test.exs
Fire-Dragon-DoL/esp_ex
0cd95de570ed7963744b298ad403fe4e1947dd2b
[ "MIT" ]
null
null
null
defmodule Delugex.EventTransformerTest do use Delugex.Case defmodule Events do use Delugex.EventTransformer defmodule Created do defstruct [:user_id, :email, :name, :birthdate] end defmodule Updated do defstruct [:user_id, :email, :name, :birthdate] end end defmodule Transfor...
23.05
77
0.645336
18dd31e4dbe0b16c29026c179a3414591c128b86
30,393
exs
Elixir
lib/elixir/test/elixir/string_test.exs
kenichi/elixir
8c27da88c70623cbe516d5310c885943395a82a2
[ "Apache-2.0" ]
2
2018-11-15T06:38:14.000Z
2018-11-17T18:03:14.000Z
lib/elixir/test/elixir/string_test.exs
kenichi/elixir
8c27da88c70623cbe516d5310c885943395a82a2
[ "Apache-2.0" ]
null
null
null
lib/elixir/test/elixir/string_test.exs
kenichi/elixir
8c27da88c70623cbe516d5310c885943395a82a2
[ "Apache-2.0" ]
null
null
null
Code.require_file("test_helper.exs", __DIR__) defmodule StringTest do use ExUnit.Case, async: true doctest String test "next_codepoint/1" do assert String.next_codepoint("ésoj") == {"é", "soj"} assert String.next_codepoint(<<255>>) == {<<255>>, ""} assert String.next_codepoint("") == nil end #...
40.309019
97
0.569802
18dd714639153e2c73ae3b5a75d922e8e585c71f
72
exs
Elixir
test/cloudsigma_test.exs
stirlab/elixir-cloudsigma
3f76860993ede717984027453a42fa49f8f34903
[ "MIT" ]
null
null
null
test/cloudsigma_test.exs
stirlab/elixir-cloudsigma
3f76860993ede717984027453a42fa49f8f34903
[ "MIT" ]
null
null
null
test/cloudsigma_test.exs
stirlab/elixir-cloudsigma
3f76860993ede717984027453a42fa49f8f34903
[ "MIT" ]
null
null
null
defmodule CloudSigmaTest do use ExUnit.Case doctest CloudSigma end
12
27
0.805556
18ddabfd642f924e200aee87630cb7facb4a2ed8
2,458
exs
Elixir
test/gossip/socket/games_test.exs
oestrich/gossip-elixir
ad2195968c19f905f713790250a0b462503fc4b4
[ "MIT" ]
19
2018-07-13T04:34:00.000Z
2021-09-18T17:11:00.000Z
test/gossip/socket/games_test.exs
oestrich/gossip-elixir
ad2195968c19f905f713790250a0b462503fc4b4
[ "MIT" ]
5
2018-07-13T02:47:31.000Z
2018-10-11T00:05:54.000Z
test/gossip/socket/games_test.exs
oestrich/gossip-elixir
ad2195968c19f905f713790250a0b462503fc4b4
[ "MIT" ]
2
2018-07-13T03:55:26.000Z
2021-02-12T20:12:47.000Z
defmodule Gossip.Socket.GamesTest do use ExUnit.Case alias Gossip.Socket.Games alias Test.Callbacks.GameCallbacks setup [:with_state] describe "games status" do test "generates the event", %{state: state} do {:reply, message, _state} = Games.status(state) assert message["event"] == "games/...
29.97561
105
0.626932
18ddb2469c270ee90fef969e00b4b12af07f41ea
4,793
ex
Elixir
lib/ex_force/oauth.ex
fast-radius/ex_force
db7792f57be45f576cd90dc08830a99853257a54
[ "MIT" ]
null
null
null
lib/ex_force/oauth.ex
fast-radius/ex_force
db7792f57be45f576cd90dc08830a99853257a54
[ "MIT" ]
1
2021-03-25T03:35:37.000Z
2021-03-25T03:35:37.000Z
lib/ex_force/oauth.ex
fast-radius/ex_force
db7792f57be45f576cd90dc08830a99853257a54
[ "MIT" ]
1
2020-07-14T15:11:27.000Z
2020-07-14T15:11:27.000Z
defmodule ExForce.OAuth do @moduledoc """ Handles OAuth2 ## Grant Types - `authorization_code`: [Understanding the Web Server OAuth Authentication Flow](https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/intro_understanding_web_server_oauth_flow.htm) - `password`: [Understanding the Us...
28.02924
206
0.639892
18ddbf9a1df0105d2828203853f7bbe6b842d275
74
ex
Elixir
lib/price_tracker_web/views/product_view.ex
kevinbenard/price_tracker
0a7248edd4afca21f00e8b0fc05561f97799c0ca
[ "MIT" ]
null
null
null
lib/price_tracker_web/views/product_view.ex
kevinbenard/price_tracker
0a7248edd4afca21f00e8b0fc05561f97799c0ca
[ "MIT" ]
null
null
null
lib/price_tracker_web/views/product_view.ex
kevinbenard/price_tracker
0a7248edd4afca21f00e8b0fc05561f97799c0ca
[ "MIT" ]
null
null
null
defmodule PriceTrackerWeb.ProductView do use PriceTrackerWeb, :view end
18.5
40
0.837838
18ddd0fbf375c82b9562c8cb98012deb6531b42e
17,118
exs
Elixir
token_registry/test/token_registry/accounts_test.exs
canuckasaurus/archeio-solanaszn
55dc8712cf0409d110ae342cbbc620745668a4df
[ "MIT" ]
1
2021-12-18T16:17:19.000Z
2021-12-18T16:17:19.000Z
token_registry/test/token_registry/accounts_test.exs
canuckasaurus/archeio-solanaszn
55dc8712cf0409d110ae342cbbc620745668a4df
[ "MIT" ]
null
null
null
token_registry/test/token_registry/accounts_test.exs
canuckasaurus/archeio-solanaszn
55dc8712cf0409d110ae342cbbc620745668a4df
[ "MIT" ]
null
null
null
defmodule TokenRegistry.AccountsTest do use TokenRegistry.DataCase alias TokenRegistry.Accounts import TokenRegistry.AccountsFixtures alias TokenRegistry.Accounts.{User, UserToken} describe "get_user_by_email/1" do test "does not return the user if the email does not exist" do refute Accounts.get_...
33.69685
97
0.659832
18ddd3a22b717ec833f144e6f18d5f1b256282c5
3,780
ex
Elixir
lib/polyline.ex
paulswartz/polyline_ex
622006ac7e58f4f65f1b37c2b07cb9cd8608c0e5
[ "MIT" ]
null
null
null
lib/polyline.ex
paulswartz/polyline_ex
622006ac7e58f4f65f1b37c2b07cb9cd8608c0e5
[ "MIT" ]
null
null
null
lib/polyline.ex
paulswartz/polyline_ex
622006ac7e58f4f65f1b37c2b07cb9cd8608c0e5
[ "MIT" ]
null
null
null
defmodule Polyline do @moduledoc ~S""" Encode and decode Polylines to and from List of `{lon, lat}` tuples. The encode functions accept a `precision` parameter that defines the number of significant digits to retain when encoding. The same precision must be supplied to the decode or the resulting linestring...
31.5
93
0.592593
18dde02c1be346d867d2dee2350893df38e5effd
127
ex
Elixir
apps/faqcheck/lib/faqcheck/postgrex_types.ex
csboling/faqcheck
bc182c365d466c8dcacc6b1a5fe9186a2c912cd4
[ "CC0-1.0" ]
null
null
null
apps/faqcheck/lib/faqcheck/postgrex_types.ex
csboling/faqcheck
bc182c365d466c8dcacc6b1a5fe9186a2c912cd4
[ "CC0-1.0" ]
20
2021-09-08T04:07:31.000Z
2022-03-10T21:52:24.000Z
apps/faqcheck/lib/faqcheck/postgrex_types.ex
csboling/faqcheck
bc182c365d466c8dcacc6b1a5fe9186a2c912cd4
[ "CC0-1.0" ]
null
null
null
Postgrex.Types.define(Faqcheck.PostgresTypes, [Geo.PostGIS.Extension] ++ Ecto.Adapters.Postgres.extensions(), json: Jason)
31.75
65
0.771654
18ddfacbacea9eb07de41e3879afd49247cc0a4e
194
ex
Elixir
spec/support/models/infinite_date_range.ex
makkrnic/ecto-infinite-times
8570b5cffb3f3c6dff449c8a7a90787f47a62a4a
[ "MIT" ]
1
2021-12-03T06:52:35.000Z
2021-12-03T06:52:35.000Z
spec/support/models/infinite_date_range.ex
makkrnic/ecto-infinite-times
8570b5cffb3f3c6dff449c8a7a90787f47a62a4a
[ "MIT" ]
null
null
null
spec/support/models/infinite_date_range.ex
makkrnic/ecto-infinite-times
8570b5cffb3f3c6dff449c8a7a90787f47a62a4a
[ "MIT" ]
null
null
null
defmodule InfiniteTimes.Model.InfiniteDateRange do @moduledoc false use Ecto.Schema schema "infinite_date_ranges" do field(:the_range, InfiniteTimes.Ecto.InfiniteDateRange) end end
21.555556
59
0.798969
18de151d92f12e2b7c7d3085a59e4e070e0c18e8
2,500
ex
Elixir
clients/you_tube/lib/google_api/you_tube/v3/model/live_stream_content_details.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/you_tube/lib/google_api/you_tube/v3/model/live_stream_content_details.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/you_tube/lib/google_api/you_tube/v3/model/live_stream_content_details.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...
45.454545
290
0.75
18de335311ee07ca6a856e61f55a3af7a6155bf4
2,648
ex
Elixir
lib/2020/aoc2020_day21.ex
hvnsweeting/adventofcode2018
8e5a85ebb7b102361b844b0f92522c18148a672a
[ "BSD-3-Clause" ]
1
2022-01-10T02:34:18.000Z
2022-01-10T02:34:18.000Z
lib/2020/aoc2020_day21.ex
hvnsweeting/adventofcode2018
8e5a85ebb7b102361b844b0f92522c18148a672a
[ "BSD-3-Clause" ]
null
null
null
lib/2020/aoc2020_day21.ex
hvnsweeting/adventofcode2018
8e5a85ebb7b102361b844b0f92522c18148a672a
[ "BSD-3-Clause" ]
1
2019-12-02T09:42:17.000Z
2019-12-02T09:42:17.000Z
defmodule Aoc2020Day21 do import Enum def read_input(input) do input |> String.trim() |> String.replace(",", "") |> String.split("\n", trim: true) |> map(fn s -> [ingredients, allergents] = String.split(s, "(", trim: true) {ingredients |> String.trim() |> String.split(" ", trim: tr...
23.22807
85
0.515483
18de43b00499e4b97cba3dce2012343ec824f22f
2,455
exs
Elixir
test/plug_auth/authentication/composed_test.exs
socialpaymentsbv/plug_auth
670bd3320c58f03ca939edc012ec5e510f53e7c8
[ "0BSD" ]
47
2015-08-19T15:11:21.000Z
2020-08-26T16:50:53.000Z
test/plug_auth/authentication/composed_test.exs
socialpaymentsbv/plug_auth
670bd3320c58f03ca939edc012ec5e510f53e7c8
[ "0BSD" ]
5
2015-11-05T18:45:06.000Z
2016-07-08T07:11:53.000Z
test/plug_auth/authentication/composed_test.exs
briksoftware/plug_auth
d43668acdfb00c31f72a56355a7eae80f549b060
[ "ISC" ]
8
2015-02-17T16:36:30.000Z
2015-07-31T14:03:05.000Z
defmodule PlugAuth.Authentication.Composed.Test do use ExUnit.Case, async: true use Plug.Test alias PlugAuth.Authentication alias PlugAuth.CredentialStore @token_auth_error ~s'{"error":"authentication required"}' defmodule TestPlug do use Plug.Builder import Plug.Conn plug PlugAuth.Authentic...
29.939024
91
0.712016
18de4855e0780ac0efcd7a34e039ad06b929bf78
26,940
ex
Elixir
clients/dfa_reporting/lib/google_api/dfa_reporting/v35/model/creative.ex
renovate-bot/elixir-google-api
1da34cd39b670c99f067011e05ab90af93fef1f6
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/dfa_reporting/lib/google_api/dfa_reporting/v35/model/creative.ex
swansoffiee/elixir-google-api
9ea6d39f273fb430634788c258b3189d3613dde0
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/dfa_reporting/lib/google_api/dfa_reporting/v35/model/creative.ex
dazuma/elixir-google-api
6a9897168008efe07a6081d2326735fe332e522c
[ "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...
105.234375
906
0.738938
18de715023b2eeac6915efaae26deff7c82970c3
7,952
exs
Elixir
apps/itest/test/itest/invalid_standard_exit_test.exs
omgnetwork/specs
4028b2b9a6a4d5f0057b6ac9e3298c66e32a9deb
[ "Apache-2.0" ]
4
2020-10-31T15:16:16.000Z
2021-02-06T22:44:19.000Z
apps/itest/test/itest/invalid_standard_exit_test.exs
omgnetwork/specs
4028b2b9a6a4d5f0057b6ac9e3298c66e32a9deb
[ "Apache-2.0" ]
4
2020-11-02T17:12:09.000Z
2021-02-10T20:35:19.000Z
apps/itest/test/itest/invalid_standard_exit_test.exs
omgnetwork/specs
4028b2b9a6a4d5f0057b6ac9e3298c66e32a9deb
[ "Apache-2.0" ]
null
null
null
# Copyright 2019-2020 OmiseGO Pte Ltd # # 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 ...
38.415459
120
0.708249
18de86aff81ad8304274bccafd9798a33fee5a64
1,662
exs
Elixir
mix.exs
igorsegallafa/que
06b083a97e90aeba1c13b1e1f72583c366675205
[ "MIT" ]
645
2017-01-07T21:34:26.000Z
2022-03-16T06:58:04.000Z
mix.exs
igorsegallafa/que
06b083a97e90aeba1c13b1e1f72583c366675205
[ "MIT" ]
19
2017-05-03T14:48:14.000Z
2021-05-30T19:33:05.000Z
mix.exs
igorsegallafa/que
06b083a97e90aeba1c13b1e1f72583c366675205
[ "MIT" ]
33
2017-05-01T20:04:32.000Z
2021-05-27T09:48:13.000Z
defmodule Que.Mixfile do use Mix.Project @app :que @name "Que" @version "0.10.1" @github "https://github.com/sheharyarn/#{@app}" # NOTE: # To publish package or update docs, use the `docs` # mix environment to not include support modules # that are normally included in the `dev` environment...
20.268293
59
0.521661
18de8eb5b719cb4bc1244ef1d5c3bf4019f7cd66
241
ex
Elixir
lib/person.ex
PavelDotsenko/Cerebro
1fb6fc6e907a9ead9321955d7308f6f9c2c0edd0
[ "Apache-2.0" ]
null
null
null
lib/person.ex
PavelDotsenko/Cerebro
1fb6fc6e907a9ead9321955d7308f6f9c2c0edd0
[ "Apache-2.0" ]
null
null
null
lib/person.ex
PavelDotsenko/Cerebro
1fb6fc6e907a9ead9321955d7308f6f9c2c0edd0
[ "Apache-2.0" ]
null
null
null
defmodule MyProject.Person do use Cerebro schema :person do field(:id, :integer) field(:name, :string) field(:job, :string) end def changeset(params \\ %{}) do cast(__MODULE__, params, [:id, :name, :job]) end end
17.214286
48
0.626556
18debd80f17db55252c6b4bbea48f337e7b60b42
844
ex
Elixir
lib/cidrex.ex
jvantuyl/cidrex
54f6f05fe45c17859abb437fa8b37e50ce7d87a6
[ "MIT" ]
null
null
null
lib/cidrex.ex
jvantuyl/cidrex
54f6f05fe45c17859abb437fa8b37e50ce7d87a6
[ "MIT" ]
null
null
null
lib/cidrex.ex
jvantuyl/cidrex
54f6f05fe45c17859abb437fa8b37e50ce7d87a6
[ "MIT" ]
null
null
null
defmodule Cidrex do @moduledoc false alias CIDR def find_lpm(%Cidrex.DB{} = cidrs, addr) do find_lpm(cidrs.cidr_db, addr, nil, 0) end def find_lpm([], _addr, found_key, _mask) do found_key end def find_lpm( [{current_mask, %CIDR{mask: current_mask} = cidr, key} | cidrs], addr, ...
24.823529
87
0.618483
18df0a99cfa430c5b47de273f6baece7485259b3
1,113
exs
Elixir
bench/encode.exs
lpil/jaserl
c16862d5572660e9cec8e3d227e96a34aacfa890
[ "Apache-2.0" ]
93
2021-12-28T20:13:29.000Z
2022-03-17T22:18:16.000Z
bench/encode.exs
lpil/jaserl
c16862d5572660e9cec8e3d227e96a34aacfa890
[ "Apache-2.0" ]
9
2021-12-27T20:17:11.000Z
2022-03-06T14:56:50.000Z
bench/encode.exs
lpil/jaserl
c16862d5572660e9cec8e3d227e96a34aacfa890
[ "Apache-2.0" ]
6
2021-12-28T21:53:25.000Z
2022-03-05T15:36:01.000Z
encode_jobs = %{ "thoas" => &:thoas.encode_to_iodata/1, "Jason" => &Jason.encode_to_iodata!/1, "Jason strict" => &Jason.encode_to_iodata!(&1, maps: :strict), "Poison" => &Poison.encode_to_iodata!/1, "JSX" => &JSX.encode!/1, "Tiny" => &Tiny.encode!/1, "jsone" => &:jsone.encode/1, # "jiffy" => &:jiffy.enc...
21.403846
80
0.573226
18df1e72c35b51f14e895ac8389581d018099a8a
1,637
ex
Elixir
lib/hexpm_web/telemetry.ex
Benjamin-Philip/hexpm
6f38244f81bbabd234c660f46ea973849ba77a7f
[ "Apache-2.0" ]
691
2017-03-08T09:15:45.000Z
2022-03-23T22:04:47.000Z
lib/hexpm_web/telemetry.ex
Benjamin-Philip/hexpm
6f38244f81bbabd234c660f46ea973849ba77a7f
[ "Apache-2.0" ]
491
2017-03-07T12:58:42.000Z
2022-03-29T23:32:54.000Z
lib/hexpm_web/telemetry.ex
Benjamin-Philip/hexpm
6f38244f81bbabd234c660f46ea973849ba77a7f
[ "Apache-2.0" ]
200
2017-03-12T23:03:39.000Z
2022-03-05T17:55:52.000Z
defmodule HexpmWeb.Telemetry do use Supervisor import Telemetry.Metrics def start_link(arg) do Supervisor.start_link(__MODULE__, arg, name: __MODULE__) end @impl true def init(_arg) do children = [ # Telemetry poller will execute the given period measurements # every 10_000ms. Learn mo...
31.480769
82
0.675015
18df4556370754c4737831785747af725ca48441
141
ex
Elixir
example/amex/lib/amex/location.ex
kianmeng/xema
a990d64fb4bcd708249514daa55426ee003da25d
[ "MIT" ]
49
2018-06-05T09:42:19.000Z
2022-02-15T12:50:51.000Z
example/amex/lib/amex/location.ex
kianmeng/xema
a990d64fb4bcd708249514daa55426ee003da25d
[ "MIT" ]
152
2017-06-11T13:43:06.000Z
2022-01-09T17:13:45.000Z
example/amex/lib/amex/location.ex
kianmeng/xema
a990d64fb4bcd708249514daa55426ee003da25d
[ "MIT" ]
6
2019-05-31T05:41:47.000Z
2021-12-14T08:09:36.000Z
defmodule Amex.Location do use Xema xema do field :city, [:string, nil] field :country, [:string, nil], min_length: 1 end end
15.666667
49
0.652482
18df45f1daa9d7598537f937e9cb8fc5e13a5866
2,768
ex
Elixir
generator/generator.ex
ymtszw/hipchat_elixir
36d8e329f4f24d3cf1f3aacbeff1eaf603287904
[ "MIT" ]
6
2016-12-19T21:11:05.000Z
2018-06-15T03:36:47.000Z
generator/generator.ex
ymtszw/hipchat_elixir
36d8e329f4f24d3cf1f3aacbeff1eaf603287904
[ "MIT" ]
2
2018-06-06T14:51:59.000Z
2018-06-12T04:32:34.000Z
generator/generator.ex
ymtszw/hipchat_elixir
36d8e329f4f24d3cf1f3aacbeff1eaf603287904
[ "MIT" ]
4
2017-01-19T12:23:54.000Z
2018-06-06T15:00:07.000Z
defmodule Hipchat.Generator do @moduledoc false alias Hipchat.Generator.Yaml @root_dir Path.expand(Path.join([__DIR__, ".."])) @lib_dir Path.join([@root_dir, "lib"]) @spec_files Path.wildcard(Path.join([@root_dir, "hipchat_swagger", "*.yaml"])) def generate do Enum.each(@spec_files, fn spec_file...
35.037975
113
0.58526
18df844a15654891f8ac72dec4814bc199c104e0
2,599
exs
Elixir
test/schema_test.exs
harmon25/coherence
5c4f26d3c87f6a16638adf623d041e2723ccf2b8
[ "MIT" ]
1
2022-03-06T16:30:21.000Z
2022-03-06T16:30:21.000Z
test/schema_test.exs
ysbaddaden/coherence
5c4f26d3c87f6a16638adf623d041e2723ccf2b8
[ "MIT" ]
null
null
null
test/schema_test.exs
ysbaddaden/coherence
5c4f26d3c87f6a16638adf623d041e2723ccf2b8
[ "MIT" ]
2
2017-09-22T16:54:36.000Z
2021-11-09T20:55:58.000Z
defmodule CoherenceTest.Schema do use TestCoherence.ModelCase alias TestCoherence.User use Timex setup do :ok end @email "schema@test.com" @valid_params %{name: "test", email: @email, password: "12345", password_confirmation: "12345"} test "invalid email" do cs1 = User.changeset(%User{}, %{na...
33.320513
132
0.670643
18df9e8f437aedd43129a48f53086b3566e63e91
326
ex
Elixir
lib/mix/tasks/execs.setup.ex
mononym/execs
1eb3554821ecc48a410196801bffc8060bd3d665
[ "MIT" ]
null
null
null
lib/mix/tasks/execs.setup.ex
mononym/execs
1eb3554821ecc48a410196801bffc8060bd3d665
[ "MIT" ]
null
null
null
lib/mix/tasks/execs.setup.ex
mononym/execs
1eb3554821ecc48a410196801bffc8060bd3d665
[ "MIT" ]
null
null
null
defmodule Mix.Tasks.Execs.Setup do use Execs.Utils use Mix.Task @shortdoc "Perform all database setup." @doc false def run(_) do IO.puts "Starting setup" Application.ensure_started(:execs) Mix.Task.run "execs.schema.create" Mix.Task.run "execs.tables.create" IO.puts "Finished setup" en...
20.375
41
0.699387
18dfb18da441fc39b447407661c5d4a15cad0cf8
110
exs
Elixir
mysum.exs
laixintao/elixirlabs
40d4b5e0b23279855b35a2911d27718f93a79f7e
[ "BSD-3-Clause" ]
null
null
null
mysum.exs
laixintao/elixirlabs
40d4b5e0b23279855b35a2911d27718f93a79f7e
[ "BSD-3-Clause" ]
null
null
null
mysum.exs
laixintao/elixirlabs
40d4b5e0b23279855b35a2911d27718f93a79f7e
[ "BSD-3-Clause" ]
null
null
null
defmodule MySum do def sum([]), do: 0 def sum([head | tail]) do head + sum(tail) end end
13.75
29
0.527273
18dfd64b3772b9a54a9bd68915844ab49a12fe3c
1,565
exs
Elixir
test/storeHall_web/controllers/auth_controller_test.exs
macypa/storeHall
9fe810f763527cc87fa165138bdfb3cda92fa553
[ "MIT" ]
null
null
null
test/storeHall_web/controllers/auth_controller_test.exs
macypa/storeHall
9fe810f763527cc87fa165138bdfb3cda92fa553
[ "MIT" ]
4
2019-07-16T06:24:42.000Z
2021-05-07T22:26:14.000Z
test/storeHall_web/controllers/auth_controller_test.exs
macypa/storeHall
9fe810f763527cc87fa165138bdfb3cda92fa553
[ "MIT" ]
1
2018-11-23T21:13:31.000Z
2018-11-23T21:13:31.000Z
defmodule StoreHallWeb.AuthControllerTest do use StoreHallWeb.ConnCase use ExUnitProperties import Plug.Test alias StoreHall.Fixture alias StoreHallWeb.AuthController test "redirects user to Google for authentication", %{conn: conn} do conn = get(conn, "/auth/google") assert redirected_to(conn, 3...
26.083333
72
0.640256
18dfdc19d9652b6e21b51a80fd3b8d4e1b09fe07
385
ex
Elixir
lib/central_bank.ex
sammkj/Currencies
ccad83846474eaf60e48c0599723dfc64298a4f4
[ "MIT" ]
null
null
null
lib/central_bank.ex
sammkj/Currencies
ccad83846474eaf60e48c0599723dfc64298a4f4
[ "MIT" ]
null
null
null
lib/central_bank.ex
sammkj/Currencies
ccad83846474eaf60e48c0599723dfc64298a4f4
[ "MIT" ]
null
null
null
defmodule Currencies.CentralBank do @moduledoc """ A struct that keeps information about the central bank governing a given currency. It contains the following fields: * `:name` - the name of the central bank * `:url` - the url of the central bank """ defstruct [:name, :url] @type t :: %__MODULE__{...
22.647059
84
0.631169
18dfe73047ce4352a1ce8861b49e589c59839781
519
exs
Elixir
priv/repo/migrations/20160309072853_create_user.exs
zhangsoledad/Doom
37ddc696e7d71c742bfc90352d76e81f2c78f5b7
[ "MIT" ]
6
2016-03-17T08:45:34.000Z
2016-10-10T01:20:37.000Z
priv/repo/migrations/20160309072853_create_user.exs
zhangsoledad/doom
37ddc696e7d71c742bfc90352d76e81f2c78f5b7
[ "MIT" ]
null
null
null
priv/repo/migrations/20160309072853_create_user.exs
zhangsoledad/doom
37ddc696e7d71c742bfc90352d76e81f2c78f5b7
[ "MIT" ]
2
2016-04-01T06:28:56.000Z
2016-04-28T09:35:07.000Z
defmodule Doom.Repo.Migrations.CreateUser do use Ecto.Migration def change do create table(:users) do add :email, :string add :username, :string add :password_hash, :string add :role, :string add :confirmed_at, :datetime add :confirmation_token, :string add :confirmati...
23.590909
48
0.649326
18dfef1b7f588319a928228693f4e7ba10dcde41
358
exs
Elixir
examples/swagger_demo/priv/repo/seeds.exs
Whatnot-Inc/bureaucrat
d0634c6017dc68f8a23078cbc8c181a4b2d3e6db
[ "Unlicense" ]
326
2015-08-19T10:05:07.000Z
2022-03-28T08:49:33.000Z
examples/swagger_demo/priv/repo/seeds.exs
Whatnot-Inc/bureaucrat
d0634c6017dc68f8a23078cbc8c181a4b2d3e6db
[ "Unlicense" ]
64
2015-08-19T06:44:19.000Z
2022-03-29T06:23:34.000Z
examples/swagger_demo/priv/repo/seeds.exs
Whatnot-Inc/bureaucrat
d0634c6017dc68f8a23078cbc8c181a4b2d3e6db
[ "Unlicense" ]
66
2016-01-08T20:40:40.000Z
2022-03-03T02:15:15.000Z
# Script for populating the database. You can run it as: # # mix run priv/repo/seeds.exs # # Inside the script, you can read and write to any of your # repositories directly: # # SwaggerDemo.Repo.insert!(%SwaggerDemo.SomeModel{}) # # We recommend using the bang functions (`insert!`, `update!` # and so on) as th...
29.833333
61
0.712291
18dffc5e2dafc951b161d4980034dc91f845c593
2,005
exs
Elixir
test/integration/matrix_transformation_test.exs
ayrat555/rock
bd0dfdd3a7bfb028e27cfda32f271879dedac1b9
[ "MIT" ]
10
2017-06-24T10:23:25.000Z
2022-03-28T09:15:00.000Z
test/integration/matrix_transformation_test.exs
ayrat555/rock
bd0dfdd3a7bfb028e27cfda32f271879dedac1b9
[ "MIT" ]
2
2017-10-17T21:06:56.000Z
2020-07-14T13:43:32.000Z
test/integration/matrix_transformation_test.exs
ayrat555/rock
bd0dfdd3a7bfb028e27cfda32f271879dedac1b9
[ "MIT" ]
3
2017-09-01T09:37:13.000Z
2020-07-13T18:16:58.000Z
defmodule Rock.Integration.MatrixTransformationTest do use ExUnit.Case alias Rock.Struct.Point alias Rock.JaccardCoefficient test "creates similarity matrix with jaccard coefficient measure" do points = [ Point.new(["1", "2", "3"]), Point.new(["1", "2", "4"]), Point.new(["1", "2", "5"]), ...
39.313725
77
0.410474
18e00582e6b9e29da9225dbb7845adedbc269fcd
5,214
ex
Elixir
lib/pelemay/generator/native.ex
mobileoverlord/pelemay
294b127e85f5d81be16c173ed8edb36ab191b00b
[ "Apache-2.0" ]
null
null
null
lib/pelemay/generator/native.ex
mobileoverlord/pelemay
294b127e85f5d81be16c173ed8edb36ab191b00b
[ "Apache-2.0" ]
null
null
null
lib/pelemay/generator/native.ex
mobileoverlord/pelemay
294b127e85f5d81be16c173ed8edb36ab191b00b
[ "Apache-2.0" ]
null
null
null
defmodule Pelemay.Generator.Native do alias Pelemay.Db @nif_c "native/lib.c" @nif_module "PelemayNif" @dir "lib/pelemay/generator/native/" def generate do File.mkdir("native") @nif_c |> write end defp write(file) do str = init_nif() |> basic() |> generate_functions() ...
21.907563
114
0.582278
18e00df6f4cdfd611cc2c9cf2539944e86a0f118
1,967
ex
Elixir
lib/embed_chat_web/controllers/news_controller.ex
guofei/embedchat
6562108acd1d488dde457f28cf01d82b4c5a9bf8
[ "MIT" ]
27
2016-10-15T12:13:22.000Z
2021-02-07T20:31:41.000Z
lib/embed_chat_web/controllers/news_controller.ex
guofei/embedchat
6562108acd1d488dde457f28cf01d82b4c5a9bf8
[ "MIT" ]
null
null
null
lib/embed_chat_web/controllers/news_controller.ex
guofei/embedchat
6562108acd1d488dde457f28cf01d82b4c5a9bf8
[ "MIT" ]
4
2016-08-21T15:03:29.000Z
2019-11-22T13:15:29.000Z
defmodule EmbedChatWeb.NewsController do use EmbedChatWeb, :controller alias EmbedChat.News plug Guardian.Plug.EnsureAuthenticated, [key: :admin, handler: EmbedChatWeb.AuthErrorHandler] when action in [:new, :create, :edit, :update, :delete] def index(conn, _params) do query = from q in News, order_by: [...
28.507246
151
0.622267
18e0204a0d989df457757db4320c9b37738d80a1
825
ex
Elixir
back/lib/api_web/controllers/fallback_controller.ex
HugoLefebvre/Epitech_TM_MP03
0ed161c956f7a10aec245fe2e17eb5a9b55f6075
[ "MIT" ]
null
null
null
back/lib/api_web/controllers/fallback_controller.ex
HugoLefebvre/Epitech_TM_MP03
0ed161c956f7a10aec245fe2e17eb5a9b55f6075
[ "MIT" ]
null
null
null
back/lib/api_web/controllers/fallback_controller.ex
HugoLefebvre/Epitech_TM_MP03
0ed161c956f7a10aec245fe2e17eb5a9b55f6075
[ "MIT" ]
null
null
null
defmodule ApiWeb.FallbackController do @moduledoc """ Translates controller action results into valid `Plug.Conn` responses. See `Phoenix.Controller.action_fallback/1` for more details. """ use ApiWeb, :controller def call(conn, {:error, %Ecto.Changeset{} = changeset}) do conn |> put_status(:unpro...
25
72
0.66303
18e03acd3df8bc5c17163da0ad00f87aae5bc2a9
782
exs
Elixir
apps/exred_ui/test/exred_ui_web/channels/cmd_channel_test.exs
exredorg/exred
0ece8e6680747ba8f30b4413ede598a45495aa7c
[ "MIT" ]
null
null
null
apps/exred_ui/test/exred_ui_web/channels/cmd_channel_test.exs
exredorg/exred
0ece8e6680747ba8f30b4413ede598a45495aa7c
[ "MIT" ]
null
null
null
apps/exred_ui/test/exred_ui_web/channels/cmd_channel_test.exs
exredorg/exred
0ece8e6680747ba8f30b4413ede598a45495aa7c
[ "MIT" ]
null
null
null
defmodule ExredUIWeb.CmdChannelTest do use ExredUIWeb.ChannelCase alias ExredUIWeb.CmdChannel setup do {:ok, _, socket} = socket("user_id", %{some: :assign}) |> subscribe_and_join(CmdChannel, "cmd:lobby") {:ok, socket: socket} end test "ping replies with status ok", %{socket: socket} d...
26.965517
66
0.627877
18e046fd2c476821b073bfbb18ebe10dcf987b2d
2,565
ex
Elixir
clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p3beta1_import_product_sets_response.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
1
2018-12-03T23:43:10.000Z
2018-12-03T23:43:10.000Z
clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p3beta1_import_product_sets_response.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p3beta1_import_product_sets_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 ...
36.642857
191
0.750097
18e0519d8eb9c0eafb0c4b01902aa209953b1d7f
2,057
exs
Elixir
test/lexthink_ast_test.exs
taybin/lexthink
0afd178dbf372bedd0933b1d2a0f2a84615b96f9
[ "Apache-2.0" ]
1
2015-12-07T13:07:39.000Z
2015-12-07T13:07:39.000Z
test/lexthink_ast_test.exs
taybin/lexthink
0afd178dbf372bedd0933b1d2a0f2a84615b96f9
[ "Apache-2.0" ]
null
null
null
test/lexthink_ast_test.exs
taybin/lexthink
0afd178dbf372bedd0933b1d2a0f2a84615b96f9
[ "Apache-2.0" ]
null
null
null
Code.require_file "test_helper.exs", __DIR__ defmodule LexthinkTest.AST do import Lexthink.AST use ExUnit.Case test "the truth" do assert(true) end test "db" do assert is_record(db("test"), :term) end test "table" do assert is_record(table("table"), :term) assert is_record(table("table...
34.283333
91
0.612543
18e0640f192e0d9ff48eec63b5e4395c116b7f6e
1,663
exs
Elixir
test/ptr_web/views/layout_view_test.exs
francocatena/ptr
4c8a960cdcb1c8523334fcc0cddba6b7fb3b3e60
[ "MIT" ]
null
null
null
test/ptr_web/views/layout_view_test.exs
francocatena/ptr
4c8a960cdcb1c8523334fcc0cddba6b7fb3b3e60
[ "MIT" ]
2
2021-03-09T01:59:47.000Z
2022-02-10T17:08:54.000Z
test/ptr_web/views/layout_view_test.exs
francocatena/ptr
4c8a960cdcb1c8523334fcc0cddba6b7fb3b3e60
[ "MIT" ]
null
null
null
defmodule PtrWeb.LayoutViewTest do use PtrWeb.ConnCase, async: true import Phoenix.HTML, only: [safe_to_string: 1] alias PtrWeb.LayoutView setup %{conn: conn} do conn = conn |> bypass_through(PtrWeb.Router, :browser) |> get("/") {:ok, %{conn: conn}} end test "locale" do as...
23.757143
79
0.606735
18e070809caf1694f5c2479622bd46bafcad928f
111
ex
Elixir
lib/kvstore.ex
pavlenkoms/elixir_first_steps
40359ebc552cacce1f7e84e3040245fae072900f
[ "MIT" ]
null
null
null
lib/kvstore.ex
pavlenkoms/elixir_first_steps
40359ebc552cacce1f7e84e3040245fae072900f
[ "MIT" ]
null
null
null
lib/kvstore.ex
pavlenkoms/elixir_first_steps
40359ebc552cacce1f7e84e3040245fae072900f
[ "MIT" ]
null
null
null
defmodule KVstore do use Application def start(_type, _args) do MainSupervisor.start_link() end end
13.875
31
0.738739
18e09134115994a667aa64d3cde4247751d808c6
110
ex
Elixir
lib/skycutter/repo.ex
OnorioCatenacci/skycutter
d8b3493b7f18df5818fad21c7de84b045fb32717
[ "MIT" ]
null
null
null
lib/skycutter/repo.ex
OnorioCatenacci/skycutter
d8b3493b7f18df5818fad21c7de84b045fb32717
[ "MIT" ]
null
null
null
lib/skycutter/repo.ex
OnorioCatenacci/skycutter
d8b3493b7f18df5818fad21c7de84b045fb32717
[ "MIT" ]
null
null
null
defmodule Skycutter.Repo do use Ecto.Repo, otp_app: :skycutter, adapter: Ecto.Adapters.Postgres end
18.333333
35
0.736364
18e09b13641a9ce05a0136ff514a4fed22c58254
45
ex
Elixir
advent-of-code-2016/day_11/lib/hashable.ex
Tmw/advent-of-code-2016
575952c0b22e20a73f6f5f5beba0daf93612b29e
[ "MIT" ]
1
2017-01-04T21:28:13.000Z
2017-01-04T21:28:13.000Z
advent-of-code-2016/day_11/lib/hashable.ex
Tmw/advent-of-code-2016
575952c0b22e20a73f6f5f5beba0daf93612b29e
[ "MIT" ]
null
null
null
advent-of-code-2016/day_11/lib/hashable.ex
Tmw/advent-of-code-2016
575952c0b22e20a73f6f5f5beba0daf93612b29e
[ "MIT" ]
null
null
null
defprotocol Hashable do def hash(item) end
11.25
23
0.777778