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
f771a6e886e8626ab091e3624908a69fb03a46f7
1,732
ex
Elixir
apps/ello_auth/lib/ello_auth/public_token.ex
ello/apex
4acb096b3ce172ff4ef9a51e5d068d533007b920
[ "MIT" ]
16
2017-06-21T21:31:20.000Z
2021-05-09T03:23:26.000Z
apps/ello_auth/lib/ello_auth/public_token.ex
ello/apex
4acb096b3ce172ff4ef9a51e5d068d533007b920
[ "MIT" ]
25
2017-06-07T12:18:28.000Z
2018-06-08T13:27:43.000Z
apps/ello_auth/lib/ello_auth/public_token.ex
ello/apex
4acb096b3ce172ff4ef9a51e5d068d533007b920
[ "MIT" ]
3
2018-06-14T15:34:07.000Z
2022-02-28T21:06:13.000Z
defmodule Ello.Auth.PublicToken do @moduledoc """ Retreives and manages public tokens. """ use GenServer alias __MODULE__.Client @table :public_token_bucket ## Client def start_link do GenServer.start_link(__MODULE__, [], name: __MODULE__) end @doc """ Fetch a token given the client id an...
24.055556
77
0.649538
f771bd7a26158bcaa02a9d902ce16fb07780ee86
12,101
ex
Elixir
clients/content/lib/google_api/content/v2/api/products.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/content/lib/google_api/content/v2/api/products.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/content/lib/google_api/content/v2/api/products.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 "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...
46.363985
240
0.684489
f771c534e6af223b4af95da3d5d4e7f394cf0ef6
20
ex
Elixir
testData/org/elixir_lang/parser_definition/matched_when_operation_parsing_test_case/Sigil.ex
keyno63/intellij-elixir
4033e319992c53ddd42a683ee7123a97b5e34f02
[ "Apache-2.0" ]
1,668
2015-01-03T05:54:27.000Z
2022-03-25T08:01:20.000Z
testData/org/elixir_lang/parser_definition/matched_when_operation_parsing_test_case/Sigil.ex
keyno63/intellij-elixir
4033e319992c53ddd42a683ee7123a97b5e34f02
[ "Apache-2.0" ]
2,018
2015-01-01T22:43:39.000Z
2022-03-31T20:13:08.000Z
testData/org/elixir_lang/parser_definition/matched_when_operation_parsing_test_case/Sigil.ex
keyno63/intellij-elixir
4033e319992c53ddd42a683ee7123a97b5e34f02
[ "Apache-2.0" ]
145
2015-01-15T11:37:16.000Z
2021-12-22T05:51:02.000Z
~c{one} when ~s{two}
20
20
0.6
f771e85d23f03aed0b09a3c8cb15fe42a355db03
1,113
exs
Elixir
day21/config/config.exs
jwarwick/aoc_2016
62a1d975835570f3fa7b60d32aa2e84da706be53
[ "MIT" ]
null
null
null
day21/config/config.exs
jwarwick/aoc_2016
62a1d975835570f3fa7b60d32aa2e84da706be53
[ "MIT" ]
null
null
null
day21/config/config.exs
jwarwick/aoc_2016
62a1d975835570f3fa7b60d32aa2e84da706be53
[ "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...
35.903226
73
0.750225
f771eb987048c1abd3aa85f10574e3331ab683a1
347
ex
Elixir
alcarin_api/apps/alcarin/lib/alcarin/game_events/args/speak_event_args.ex
alcarin-org/alcarin-elixir
a04d4e043790a7773745e0fba7098e1c06362896
[ "MIT" ]
null
null
null
alcarin_api/apps/alcarin/lib/alcarin/game_events/args/speak_event_args.ex
alcarin-org/alcarin-elixir
a04d4e043790a7773745e0fba7098e1c06362896
[ "MIT" ]
3
2018-05-26T10:36:22.000Z
2018-05-26T13:48:36.000Z
alcarin_api/apps/alcarin/lib/alcarin/game_events/args/speak_event_args.ex
alcarin-org/alcarin-elixir
a04d4e043790a7773745e0fba7098e1c06362896
[ "MIT" ]
null
null
null
defmodule Alcarin.GameEvents.Args.SpeakEventArgs do use Ecto.Schema import Ecto.Changeset embedded_schema do field(:content, :string) end @doc false def changeset(game_event_args, attrs) do game_event_args |> cast(attrs, [:content]) |> validate_required([:content]) |> validate_length(:...
20.411765
51
0.706052
f772065e66fbbe64e75a087974bd6b4896988b17
4,425
ex
Elixir
apps/state_mediator/lib/state_mediator/mediator.ex
mbta/automatic-fiesta
de9eb43e4fc7c47aa069f5ded8497ddd39ff74c5
[ "MIT" ]
62
2019-01-17T12:34:39.000Z
2022-03-20T21:49:47.000Z
apps/state_mediator/lib/state_mediator/mediator.ex
mbta/automatic-fiesta
de9eb43e4fc7c47aa069f5ded8497ddd39ff74c5
[ "MIT" ]
375
2019-02-13T15:30:50.000Z
2022-03-30T18:50:41.000Z
apps/state_mediator/lib/state_mediator/mediator.ex
mbta/automatic-fiesta
de9eb43e4fc7c47aa069f5ded8497ddd39ff74c5
[ "MIT" ]
14
2019-01-16T19:35:57.000Z
2022-02-26T18:55:54.000Z
defmodule StateMediator.Mediator do @moduledoc """ Mediator is responsible for periodically fetching a URL and passing it to another module for handling. """ defstruct [ :module, :url, {:fetch_opts, []}, :sync_timeout, :interval, {:retries, 0} ] @opaque t :: %__MODULE__{ ...
26.183432
98
0.617853
f7724e16d7e8f295666001a545340a0ccbfa82dc
2,935
ex
Elixir
lib/sanbase_web/graphql/resolvers/historical_balance_resolver.ex
santiment/sanbase2
9ef6e2dd1e377744a6d2bba570ea6bd477a1db31
[ "MIT" ]
81
2017-11-20T01:20:22.000Z
2022-03-05T12:04:25.000Z
lib/sanbase_web/graphql/resolvers/historical_balance_resolver.ex
rmoorman/sanbase2
226784ab43a24219e7332c49156b198d09a6dd85
[ "MIT" ]
359
2017-10-15T14:40:53.000Z
2022-01-25T13:34:20.000Z
lib/sanbase_web/graphql/resolvers/historical_balance_resolver.ex
rmoorman/sanbase2
226784ab43a24219e7332c49156b198d09a6dd85
[ "MIT" ]
16
2017-11-19T13:57:40.000Z
2022-02-07T08:13:02.000Z
defmodule SanbaseWeb.Graphql.Resolvers.HistoricalBalanceResolver do import Absinthe.Resolution.Helpers import Sanbase.Utils.ErrorHandling, only: [maybe_handle_graphql_error: 2, handle_graphql_error: 4] alias Sanbase.Clickhouse.HistoricalBalance alias SanbaseWeb.Graphql.Resolvers.MetricResolver alias San...
27.175926
82
0.629302
f7727702b1a555d28a0a9a847b024fb6e17142d7
3,669
ex
Elixir
lib/cldr/ddl.ex
kianmeng/cldr_units_sql
7ea5c9673b4986c21baf035eaf07451f9ad37d1c
[ "Apache-2.0" ]
null
null
null
lib/cldr/ddl.ex
kianmeng/cldr_units_sql
7ea5c9673b4986c21baf035eaf07451f9ad37d1c
[ "Apache-2.0" ]
2
2021-07-08T21:14:50.000Z
2022-03-07T20:43:44.000Z
lib/cldr/ddl.ex
kianmeng/cldr_units_sql
7ea5c9673b4986c21baf035eaf07451f9ad37d1c
[ "Apache-2.0" ]
2
2021-07-08T20:24:57.000Z
2022-03-06T13:54:41.000Z
defmodule Cldr.Unit.DDL do @moduledoc """ Functions to return SQL DDL commands that support the creation and deletion of the `cldr_unit` database type and associated aggregate functions. """ # @doc since: "2.7.0" @default_db :postgres @supported_db_types :code.priv_dir(:ex_cldr_units_sql) ...
25.479167
100
0.663941
f77298de31fd7ac2f8c890d3063e6aeafd3f7a99
982
exs
Elixir
machine_translation/MorpHIN/Learned/Resources/Set5/TrainingInstances/59.exs
AdityaPrasadMishra/NLP--Project-Group-16
fb62cc6a1db4a494058171f11c14a2be3933a9a1
[ "MIT" ]
null
null
null
machine_translation/MorpHIN/Learned/Resources/Set5/TrainingInstances/59.exs
AdityaPrasadMishra/NLP--Project-Group-16
fb62cc6a1db4a494058171f11c14a2be3933a9a1
[ "MIT" ]
null
null
null
machine_translation/MorpHIN/Learned/Resources/Set5/TrainingInstances/59.exs
AdityaPrasadMishra/NLP--Project-Group-16
fb62cc6a1db4a494058171f11c14a2be3933a9a1
[ "MIT" ]
null
null
null
**EXAMPLE FILE** noun cardinal cm particle cardinal; adjective cardinal cardinal verb cardinal; noun cm noun noun cardinal; cm cardinal noun cm cardinal; verb conj noun noun cardinal; noun cm noun cm cardinal; cm cardinal cm quantifier noun; cm cardinal particle quantifier cardinal; pnoun cm cm noun noun; ve...
30.6875
43
0.786151
f772c8224c2d20b5fee1bddd6b1fd2524c4b1669
459
ex
Elixir
lib/hangman/player_action.ex
brpandey/elixir-hangman
458502af766b42e492ebb9ca543fc8b855687b09
[ "MIT" ]
1
2016-12-19T00:10:34.000Z
2016-12-19T00:10:34.000Z
lib/hangman/player_action.ex
brpandey/elixir-hangman
458502af766b42e492ebb9ca543fc8b855687b09
[ "MIT" ]
null
null
null
lib/hangman/player_action.ex
brpandey/elixir-hangman
458502af766b42e492ebb9ca543fc8b855687b09
[ "MIT" ]
null
null
null
defprotocol Hangman.Player.Action do @moduledoc """ Typeclass for specific player functionality The Player Action protocol is implemented for the Human and Robot types, with the generic Player handling all overlaps in functionality. Enables custom player implementations Function names are `setup/1`, `g...
24.157895
79
0.740741
f772ccc8a7cef2d594153a3d93ed7960fac20db6
316
ex
Elixir
lib/hangman.ex
slaily/hangman
6964f2641dfa71923735043e4521db02ca9bf269
[ "MIT" ]
null
null
null
lib/hangman.ex
slaily/hangman
6964f2641dfa71923735043e4521db02ca9bf269
[ "MIT" ]
null
null
null
lib/hangman.ex
slaily/hangman
6964f2641dfa71923735043e4521db02ca9bf269
[ "MIT" ]
null
null
null
defmodule Hangman do alias Hangman.Game def new_game() do { :ok, pid } = Supervisor.start_child(Hangman.Supervisor, []) pid end def tally(game_pid) do GenServer.call(game_pid, { :tally }) end def make_move(game_pid, guess) do GenServer.call(game_pid, { :make_move, guess }) end end
17.555556
65
0.667722
f772d0fb333c1ec0c841a151976a1161b1b1d61c
677
exs
Elixir
config/config.exs
astery/instream
91d031d4cdc1091314451279ce43651d8fd7ec89
[ "Apache-2.0" ]
null
null
null
config/config.exs
astery/instream
91d031d4cdc1091314451279ce43651d8fd7ec89
[ "Apache-2.0" ]
null
null
null
config/config.exs
astery/instream
91d031d4cdc1091314451279ce43651d8fd7ec89
[ "Apache-2.0" ]
null
null
null
use Mix.Config if Mix.env() == :test do alias Instream.TestHelpers.Connections.DefaultConnection config :logger, :console, format: "\n$time $metadata[$level] $levelpad$message\n", metadata: [:query_time, :response_status] case System.get_env("INFLUXDB_TOKEN") do nil -> config :instream, Defau...
26.038462
69
0.633678
f772eb43e690fda67a472171e744b86659da3816
3,504
ex
Elixir
lib/unicode/sentence_break.ex
kianmeng/unicode
85702a499c155cfe8aecefde937f9cfc1d67b26c
[ "Apache-2.0" ]
null
null
null
lib/unicode/sentence_break.ex
kianmeng/unicode
85702a499c155cfe8aecefde937f9cfc1d67b26c
[ "Apache-2.0" ]
null
null
null
lib/unicode/sentence_break.ex
kianmeng/unicode
85702a499c155cfe8aecefde937f9cfc1d67b26c
[ "Apache-2.0" ]
null
null
null
defmodule Unicode.SentenceBreak do @moduledoc """ Functions to introspect Unicode sentence breaks for binaries (Strings) and codepoints. """ @behaviour Unicode.Property.Behaviour alias Unicode.Utils @sentence_breaks Utils.sentence_breaks() |> Utils.remove_annotations() @doc """...
23.052632
90
0.683505
f772f261e465ccf4e05a8351ec35731511596b8b
1,598
ex
Elixir
lib/donatebox_web/endpoint.ex
Adnatull/donatebox
47e07e7831c223265a465425520313da5370f149
[ "Apache-2.0" ]
null
null
null
lib/donatebox_web/endpoint.ex
Adnatull/donatebox
47e07e7831c223265a465425520313da5370f149
[ "Apache-2.0" ]
null
null
null
lib/donatebox_web/endpoint.ex
Adnatull/donatebox
47e07e7831c223265a465425520313da5370f149
[ "Apache-2.0" ]
null
null
null
defmodule DonateboxWeb.Endpoint do use Phoenix.Endpoint, otp_app: :donatebox socket "/socket", DonateboxWeb.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 Pl...
28.535714
95
0.709637
f77312de3bd3218083217a3df453d486558c178e
1,663
ex
Elixir
test/support/integration_testing/test_generator.ex
fimassuda/web_driver_client
09d373c9a8a923c5e2860f107f84b16565e338f7
[ "MIT" ]
8
2019-11-24T18:33:12.000Z
2020-12-09T10:20:09.000Z
test/support/integration_testing/test_generator.ex
fimassuda/web_driver_client
09d373c9a8a923c5e2860f107f84b16565e338f7
[ "MIT" ]
67
2019-12-20T16:33:30.000Z
2021-09-14T03:50:10.000Z
test/support/integration_testing/test_generator.ex
fimassuda/web_driver_client
09d373c9a8a923c5e2860f107f84b16565e338f7
[ "MIT" ]
10
2020-06-19T16:15:03.000Z
2021-09-13T17:56:25.000Z
defmodule WebDriverClient.IntegrationTesting.TestGenerator do @moduledoc false alias WebDriverClient.IntegrationTesting.Scenarios alias WebDriverClient.IntegrationTesting.Scenarios.Scenario defmacro generate_describe_per_scenario(opts \\ [], do: block) when is_list(opts) do default_scenarios = Scenarios.a...
32.607843
98
0.703548
f77315129b378f36c3a6d8e627c7a9dcf6f0901e
617
exs
Elixir
test/loki_logger_test.exs
lauriannala/LokiLogger
f203fbf59a780ece826bedf385a5d84ceea17128
[ "Apache-2.0" ]
5
2020-02-26T12:35:32.000Z
2022-03-30T13:47:35.000Z
test/loki_logger_test.exs
lauriannala/LokiLogger
f203fbf59a780ece826bedf385a5d84ceea17128
[ "Apache-2.0" ]
3
2020-10-22T10:14:29.000Z
2022-01-11T10:42:44.000Z
test/loki_logger_test.exs
lauriannala/LokiLogger
f203fbf59a780ece826bedf385a5d84ceea17128
[ "Apache-2.0" ]
5
2020-03-24T10:13:03.000Z
2022-03-31T11:10:09.000Z
defmodule LokiLoggerTest do use ExUnit.Case doctest LokiLogger require Logger test "greets the world" do Logger.info("Sample message") Logger.debug("Sample message") Logger.error("Sample message") Logger.info("Sample message") Logger.debug("Sample message") Logger.error("Sample message"...
21.275862
59
0.636953
f773250410b4fe42bae1887244541cf94a704860
617
exs
Elixir
daniel/pragstudio/servy/mix.exs
jdashton/glowing-succotash
44580c2d4cb300e33156d42e358e8a055948a079
[ "MIT" ]
null
null
null
daniel/pragstudio/servy/mix.exs
jdashton/glowing-succotash
44580c2d4cb300e33156d42e358e8a055948a079
[ "MIT" ]
1
2020-02-26T14:55:23.000Z
2020-02-26T14:55:23.000Z
daniel/pragstudio/servy/mix.exs
jdashton/glowing-succotash
44580c2d4cb300e33156d42e358e8a055948a079
[ "MIT" ]
null
null
null
defmodule Servy.MixProject do use Mix.Project def project do [ app: :servy, description: "A humble HTTP server", version: "0.1.0", elixir: "~> 1.10", start_permanent: Mix.env() == :prod, deps: deps() ] end # Run "mix help compile.app" to learn about applications. ...
18.69697
59
0.534846
f7733cd5c3f9b95059dadb5e340223d79410da10
9,853
ex
Elixir
clients/content/lib/google_api/content/v2/api/productstatuses.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/content/lib/google_api/content/v2/api/productstatuses.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/content/lib/google_api/content/v2/api/productstatuses.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...
46.042056
215
0.646504
f7736b024e4ab6416ecf04902cc689d706a7edb1
4,092
ex
Elixir
core/core.ex
ikeyasu/antikythera
544fdd22e46b1f34177053d87d9e2a9708c74113
[ "Apache-2.0" ]
null
null
null
core/core.ex
ikeyasu/antikythera
544fdd22e46b1f34177053d87d9e2a9708c74113
[ "Apache-2.0" ]
null
null
null
core/core.ex
ikeyasu/antikythera
544fdd22e46b1f34177053d87d9e2a9708c74113
[ "Apache-2.0" ]
null
null
null
# Copyright(c) 2015-2018 ACCESS CO., LTD. All rights reserved. use Croma defmodule AntikytheraCore do use Application @impl true def start(_type, _args) do add_gears_dir_to_erl_libs() AntikytheraCore.FileSetup.setup_files_and_ets_tables() AntikytheraCore.Config.Core.load() if not Antikythera.En...
40.514851
126
0.690127
f773872784e7b1acdb9ee22ddbeca0e52e500d47
29,642
ex
Elixir
lib/jamdb_oracle_query.ex
isaacsanders/jamdb_oracle
895e0d3e8232df5057e467a4c5cdbac6da852cab
[ "MIT" ]
null
null
null
lib/jamdb_oracle_query.ex
isaacsanders/jamdb_oracle
895e0d3e8232df5057e467a4c5cdbac6da852cab
[ "MIT" ]
null
null
null
lib/jamdb_oracle_query.ex
isaacsanders/jamdb_oracle
895e0d3e8232df5057e467a4c5cdbac6da852cab
[ "MIT" ]
null
null
null
defmodule Jamdb.Oracle.Query do @moduledoc """ Adapter module for Oracle. `DBConnection.Query` protocol implementation. See `DBConnection.prepare_execute/4`. """ defstruct [:statement, :name] alias Ecto.Query.{BooleanExpr, JoinExpr, QueryExpr} @doc false def all(query) do sources = create_nam...
34.14977
126
0.624452
f773acedda83108d029e5691de5e82b7760b8778
4,244
ex
Elixir
clients/apps_activity/lib/google_api/apps_activity/v1/api/activities.ex
linjunpop/elixir-google-api
444cb2b2fb02726894535461a474beddd8b86db4
[ "Apache-2.0" ]
null
null
null
clients/apps_activity/lib/google_api/apps_activity/v1/api/activities.ex
linjunpop/elixir-google-api
444cb2b2fb02726894535461a474beddd8b86db4
[ "Apache-2.0" ]
null
null
null
clients/apps_activity/lib/google_api/apps_activity/v1/api/activities.ex
linjunpop/elixir-google-api
444cb2b2fb02726894535461a474beddd8b86db4
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "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...
48.227273
377
0.713242
f773bc32a662fdd82668c897bfbaed7684800786
1,818
ex
Elixir
clients/tpu/lib/google_api/tpu/v1/model/list_nodes_response.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
1
2018-12-03T23:43:10.000Z
2018-12-03T23:43:10.000Z
clients/tpu/lib/google_api/tpu/v1/model/list_nodes_response.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
clients/tpu/lib/google_api/tpu/v1/model/list_nodes_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 "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 ...
34.301887
103
0.709021
f773bdeeb9442c7d14c79a235cdccb3e47a02075
1,330
exs
Elixir
test/game/session/gmcp_test.exs
nomicflux/ex_venture
3e87dc8802c24067256d99856198c814d0bae4d6
[ "MIT" ]
null
null
null
test/game/session/gmcp_test.exs
nomicflux/ex_venture
3e87dc8802c24067256d99856198c814d0bae4d6
[ "MIT" ]
null
null
null
test/game/session/gmcp_test.exs
nomicflux/ex_venture
3e87dc8802c24067256d99856198c814d0bae4d6
[ "MIT" ]
null
null
null
defmodule Game.Session.GMCPTest do use ExVenture.SessionCase alias Game.Session.GMCP alias Game.Session.State setup do state = %State{ socket: :socket, state: "active", mode: "commands", } %{state: state} end test "character enters - player", %{state: state} do GMCP.cha...
29.555556
86
0.610526
f773d8d811f4b3b73e672169eb3ff3c3afbe2277
3,293
ex
Elixir
Getting_Started_Elixir/binaries_strings_charlists.ex
spenserhuang/elixir-learning
c272038f4063038248285fb51f62ec6c0e429f2f
[ "MIT" ]
null
null
null
Getting_Started_Elixir/binaries_strings_charlists.ex
spenserhuang/elixir-learning
c272038f4063038248285fb51f62ec6c0e429f2f
[ "MIT" ]
null
null
null
Getting_Started_Elixir/binaries_strings_charlists.ex
spenserhuang/elixir-learning
c272038f4063038248285fb51f62ec6c0e429f2f
[ "MIT" ]
null
null
null
# This document showcases binaries, strings, and char lists # UTF-8 and UNICODE # Strings are UTF-8 encoded binaries. Strings are a bunch of bytes organized in a way to represent certain code points # The Unicode standard assigns code points to many characters we know # Characters of code points above 255 need more t...
27.672269
280
0.643486
f773f2d9b761cedccf676de8b64ecde919091d05
401
exs
Elixir
hls/test/hls_web/views/error_view_test.exs
Papillon6814/hls_example
f113ecaadabe013a4a5b3a3166d16befb07123c5
[ "MIT" ]
null
null
null
hls/test/hls_web/views/error_view_test.exs
Papillon6814/hls_example
f113ecaadabe013a4a5b3a3166d16befb07123c5
[ "MIT" ]
null
null
null
hls/test/hls_web/views/error_view_test.exs
Papillon6814/hls_example
f113ecaadabe013a4a5b3a3166d16befb07123c5
[ "MIT" ]
null
null
null
defmodule HlsWeb.ErrorViewTest do use HlsWeb.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(HlsWeb.ErrorView, "404.html", []) == "Not Found" end test "renders 500.html" do assert render_...
26.733333
88
0.723192
f7741a47584e195dd38b07b60b774d31ecabad77
671
ex
Elixir
web/models/move.ex
whenther/chopsticks
ec8d9f90cb4e9afc9e80322c734d9c6bfe5e14e1
[ "MIT" ]
2
2016-11-08T18:17:41.000Z
2017-02-23T06:51:56.000Z
web/models/move.ex
will-wow/chopsticks
ec8d9f90cb4e9afc9e80322c734d9c6bfe5e14e1
[ "MIT" ]
null
null
null
web/models/move.ex
will-wow/chopsticks
ec8d9f90cb4e9afc9e80322c734d9c6bfe5e14e1
[ "MIT" ]
null
null
null
defmodule Chopsticks.Move do def decode(move) do type = convert_type_string(move["type"]) data = case type do :touch -> convert_touch_data(move["data"]) _ -> nil end {type, data} end defp convert_type_string("touch"), do: :touch defp convert_type_string("split"), do: :s...
25.807692
68
0.694486
f77421d13a9f3ecd882296a5f2ab8c0a9ce3b734
65,051
ex
Elixir
utils/lib/feedback.ex
auranykh/beta_curriculum
b41af67343f13b2c411956ab4789b2a952a4e682
[ "MIT" ]
null
null
null
utils/lib/feedback.ex
auranykh/beta_curriculum
b41af67343f13b2c411956ab4789b2a952a4e682
[ "MIT" ]
null
null
null
utils/lib/feedback.ex
auranykh/beta_curriculum
b41af67343f13b2c411956ab4789b2a952a4e682
[ "MIT" ]
null
null
null
defmodule Utils.Feedback do @moduledoc """ Utils.Feedback defines tests using the `feedback` macro. Each `feedback` macro creates an associated Utils.feedback function and ensures that each has a corresponding solution in Utils.Solutions. ## Examples ```elixir feedback :example do answer = get_answe...
33.087996
587
0.625832
f7744021473077cc146f53fc8a73d27f1abe41f7
161
exs
Elixir
apps/data/priv/repo/migrations/20170821043909_add_projects_timestamps.exs
elixirschool/extracurricular
eb8b725fa49ca91b1c6b7e610a8522bc81a80de1
[ "MIT" ]
48
2017-08-21T02:08:16.000Z
2022-01-05T14:02:56.000Z
apps/data/priv/repo/migrations/20170821043909_add_projects_timestamps.exs
elixirschool/extracurricular
eb8b725fa49ca91b1c6b7e610a8522bc81a80de1
[ "MIT" ]
68
2017-08-21T02:17:32.000Z
2017-11-09T15:56:27.000Z
apps/data/priv/repo/migrations/20170821043909_add_projects_timestamps.exs
elixirschool/extracurricular
eb8b725fa49ca91b1c6b7e610a8522bc81a80de1
[ "MIT" ]
26
2017-08-21T04:28:22.000Z
2018-12-09T14:20:29.000Z
defmodule Data.Repo.Migrations.AddProjectsTimestamps do use Ecto.Migration def change do alter table(:projects) do timestamps() end end end
16.1
55
0.720497
f77456d1663b8454b581d1dc27d3e910f96e1ccb
171
exs
Elixir
config/runtime.exs
jhg/BorsNgBot
1e56b06fe088e01505ffa4a175ec775920862607
[ "Unlicense" ]
null
null
null
config/runtime.exs
jhg/BorsNgBot
1e56b06fe088e01505ffa4a175ec775920862607
[ "Unlicense" ]
null
null
null
config/runtime.exs
jhg/BorsNgBot
1e56b06fe088e01505ffa4a175ec775920862607
[ "Unlicense" ]
null
null
null
import Config config :bors_ng_bot, telegram_bot_token: System.get_env("TELEGRAM_BOT_TOKEN") config :bors_ng_bot, BorsNgBot.Repo, url: System.get_env("DATABASE_URL")
21.375
58
0.795322
f7746c080dd59dd9b1e8906fdd005588c47fefd2
266
ex
Elixir
lib/slax/projects/project_channel.ex
HoffsMH/slax
b91ee30b9fd71a4cb7826f50b605ce580b7c1651
[ "MIT" ]
null
null
null
lib/slax/projects/project_channel.ex
HoffsMH/slax
b91ee30b9fd71a4cb7826f50b605ce580b7c1651
[ "MIT" ]
null
null
null
lib/slax/projects/project_channel.ex
HoffsMH/slax
b91ee30b9fd71a4cb7826f50b605ce580b7c1651
[ "MIT" ]
null
null
null
defmodule Slax.ProjectChannel do @moduledoc false use Slax.Schema @type t :: %__MODULE__{} schema "project_channels" do belongs_to(:project, Slax.Project) field(:channel_name, :string) field(:webhook_token, :string) timestamps() end end
17.733333
38
0.699248
f774829ff7a97031b06f846c0aaa0964cad2bbe2
3,462
ex
Elixir
lib/rank.ex
pkhodakovsky/elixir-poker-game
4191283f31b236d311e412c37045ad5d4fdc4f9e
[ "MIT" ]
null
null
null
lib/rank.ex
pkhodakovsky/elixir-poker-game
4191283f31b236d311e412c37045ad5d4fdc4f9e
[ "MIT" ]
null
null
null
lib/rank.ex
pkhodakovsky/elixir-poker-game
4191283f31b236d311e412c37045ad5d4fdc4f9e
[ "MIT" ]
null
null
null
# Rank Encoding # # Rank for Hands # 9 - straight flush + highest card # 8 - four of a kind + card value # 7 - full house + 3 card value # 6 - flush + highest cards # 5 - straight (can be ace high) + highest card # 4 - three of a kind + 3 card value # 3 - two pair + highest pairs + remaining card # 2 - pair + 2 card va...
25.835821
101
0.647603
f774a997e8557a2f7d1fd0d1ef0641a5913147d7
1,024
ex
Elixir
config/dispatcher/dispatcher.ex
lblod/app-klachtenformulier
367d5effce932843f1a6a6ce819e731499011b2e
[ "MIT" ]
null
null
null
config/dispatcher/dispatcher.ex
lblod/app-klachtenformulier
367d5effce932843f1a6a6ce819e731499011b2e
[ "MIT" ]
null
null
null
config/dispatcher/dispatcher.ex
lblod/app-klachtenformulier
367d5effce932843f1a6a6ce819e731499011b2e
[ "MIT" ]
null
null
null
defmodule Dispatcher do use Matcher define_accept_types [ any: [ "*/*" ] ] @any %{ accept: %{ any: true } } # Users only create complaint forms. post "/complaint-forms/*path", @any do forward conn, path, "http://resource/complaint-forms/" end # This will be protected by basic-auth, so file c...
25.6
123
0.624023
f774bb1d1229d72e9c1fc660e4d5b8a8d3750291
2,913
ex
Elixir
backend/lib/edgehog/tenants.ex
szakhlypa/edgehog
b1193c26f403132dead6964c1c052e5dcae533af
[ "Apache-2.0" ]
14
2021-12-02T16:31:16.000Z
2022-03-18T17:40:44.000Z
backend/lib/edgehog/tenants.ex
szakhlypa/edgehog
b1193c26f403132dead6964c1c052e5dcae533af
[ "Apache-2.0" ]
77
2021-11-03T15:14:41.000Z
2022-03-30T14:13:32.000Z
backend/lib/edgehog/tenants.ex
szakhlypa/edgehog
b1193c26f403132dead6964c1c052e5dcae533af
[ "Apache-2.0" ]
7
2021-11-03T10:58:37.000Z
2022-02-28T14:00:03.000Z
# # This file is part of Edgehog. # # Copyright 2021 SECO Mind 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 app...
19.952055
74
0.633024
f774d7c96b59fdfabb6395ce9d5b160cd9895a3f
810
ex
Elixir
bliss_01/lib/bliss.ex
kallisto/bliss
fb0db73784ad01fb3bcc495afcbd75110f62599c
[ "MIT" ]
null
null
null
bliss_01/lib/bliss.ex
kallisto/bliss
fb0db73784ad01fb3bcc495afcbd75110f62599c
[ "MIT" ]
null
null
null
bliss_01/lib/bliss.ex
kallisto/bliss
fb0db73784ad01fb3bcc495afcbd75110f62599c
[ "MIT" ]
null
null
null
defmodule Bliss do @moduledoc false import Bliss.Interpreter @kernel_file "priv/kernel.bls" @external_resource @kernel_file @kernel ( File.read!(@kernel_file) |> String.to_charlist |> :lexer.string |> elem(1) |> :parser.parse |> elem(1) |> (&(interpret(new_opts(), &1, %{}, [])))....
20.769231
60
0.566667
f774d7f8fc73109430a30bca585c3a1df95c382c
2,522
ex
Elixir
clients/games/lib/google_api/games/v1/model/instance_ios_details.ex
nuxlli/elixir-google-api
ecb8679ac7282b7dd314c3e20c250710ec6a7870
[ "Apache-2.0" ]
null
null
null
clients/games/lib/google_api/games/v1/model/instance_ios_details.ex
nuxlli/elixir-google-api
ecb8679ac7282b7dd314c3e20c250710ec6a7870
[ "Apache-2.0" ]
null
null
null
clients/games/lib/google_api/games/v1/model/instance_ios_details.ex
nuxlli/elixir-google-api
ecb8679ac7282b7dd314c3e20c250710ec6a7870
[ "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...
38.212121
147
0.723236
f7752189abc24768b218f1e39fb2ad919d3ae086
304
ex
Elixir
elixir/src/example/lib/example.ex
nbari/docker
4fc653fcff08c58d0f4d1837c45beda291795afe
[ "BSD-3-Clause" ]
null
null
null
elixir/src/example/lib/example.ex
nbari/docker
4fc653fcff08c58d0f4d1837c45beda291795afe
[ "BSD-3-Clause" ]
null
null
null
elixir/src/example/lib/example.ex
nbari/docker
4fc653fcff08c58d0f4d1837c45beda291795afe
[ "BSD-3-Clause" ]
1
2021-05-21T14:00:00.000Z
2021-05-21T14:00:00.000Z
defmodule Example do use Application require Logger def start(_type, _args) do children = [ Plug.Adapters.Cowboy.child_spec(:http, Example.HelloWorldPlug, [], port: 8080) ] Logger.info "Started application" Supervisor.start_link(children, strategy: :one_for_one) end end
20.266667
84
0.707237
f7753288911fd5ed90ea09525c41f0dfe4cf7003
41
exs
Elixir
test/test_helper.exs
CaptChrisD/logger_error_counter_backend
f268972244430b8bdfe685446eeb317bbc961ca2
[ "MIT" ]
null
null
null
test/test_helper.exs
CaptChrisD/logger_error_counter_backend
f268972244430b8bdfe685446eeb317bbc961ca2
[ "MIT" ]
null
null
null
test/test_helper.exs
CaptChrisD/logger_error_counter_backend
f268972244430b8bdfe685446eeb317bbc961ca2
[ "MIT" ]
null
null
null
:application.start :logger ExUnit.start()
20.5
26
0.804878
f77534f9135009a17dac90ba12c2d703d9da5b6d
253
ex
Elixir
lib/party_hub.ex
AminArria/party_hub
aef6d17500856789c115e1c68fc95b853b220e1f
[ "MIT" ]
2
2020-05-22T15:45:53.000Z
2020-06-07T21:07:03.000Z
lib/party_hub.ex
AminArria/party_hub
aef6d17500856789c115e1c68fc95b853b220e1f
[ "MIT" ]
1
2021-03-10T16:36:46.000Z
2021-03-10T16:36:46.000Z
lib/party_hub.ex
AminArria/party_hub
aef6d17500856789c115e1c68fc95b853b220e1f
[ "MIT" ]
null
null
null
defmodule PartyHub do @moduledoc """ PartyHub 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
f7755b64e63063067454c9a8fbbe7dd1a6b0981f
3,012
ex
Elixir
clients/file/lib/google_api/file/v1/model/google_cloud_saasaccelerator_management_providers_v1_slo_metadata.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/file/lib/google_api/file/v1/model/google_cloud_saasaccelerator_management_providers_v1_slo_metadata.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/file/lib/google_api/file/v1/model/google_cloud_saasaccelerator_management_providers_v1_slo_metadata.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...
41.833333
404
0.750332
f77567db38a872b6932e257c46c24b0a8a463938
1,266
ex
Elixir
apps/admin_api/lib/admin_api/v1/channels/transaction_request_channel.ex
jimpeebles/ewallet
ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405
[ "Apache-2.0" ]
null
null
null
apps/admin_api/lib/admin_api/v1/channels/transaction_request_channel.ex
jimpeebles/ewallet
ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405
[ "Apache-2.0" ]
null
null
null
apps/admin_api/lib/admin_api/v1/channels/transaction_request_channel.ex
jimpeebles/ewallet
ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 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 writi...
36.171429
97
0.733017
f77598480176b7f639dc472c52edf612411e5eea
11,026
exs
Elixir
test/duration_test.exs
kianmeng/cldr_calendars
af1ffe1b40100792e8e643ce09cc7db7224060b6
[ "Apache-2.0" ]
6
2019-08-29T12:31:03.000Z
2021-08-28T23:15:39.000Z
test/duration_test.exs
kianmeng/cldr_calendars
af1ffe1b40100792e8e643ce09cc7db7224060b6
[ "Apache-2.0" ]
8
2019-11-08T09:13:00.000Z
2021-12-26T05:34:28.000Z
test/duration_test.exs
kianmeng/cldr_calendars
af1ffe1b40100792e8e643ce09cc7db7224060b6
[ "Apache-2.0" ]
2
2020-05-08T12:19:01.000Z
2022-03-03T14:53:06.000Z
defmodule Cldr.Calendar.Duration.Test do use ExUnit.Case, async: true alias Cldr.Calendar.Duration import Cldr.Calendar.Helper test "date durations" do assert Cldr.Calendar.Duration.date_duration(~D[1999-02-03], ~D[2000-12-01]) == %Cldr.Calendar.Duration{ day: 26, ...
26.958435
105
0.478687
f7759c53951579d16b218d359f945c31cdd681af
1,732
ex
Elixir
lib/smwc/accounts/user_notifier.ex
druu/smwcbot
0c9e3530c470028c767b6a77be8a939481756438
[ "MIT" ]
2
2022-03-09T18:04:42.000Z
2022-03-11T22:24:25.000Z
lib/smwc/accounts/user_notifier.ex
druu/smwcbot
0c9e3530c470028c767b6a77be8a939481756438
[ "MIT" ]
null
null
null
lib/smwc/accounts/user_notifier.ex
druu/smwcbot
0c9e3530c470028c767b6a77be8a939481756438
[ "MIT" ]
2
2022-02-27T22:00:17.000Z
2022-02-28T02:20:21.000Z
defmodule SMWC.Accounts.UserNotifier do @moduledoc """ The User Notifier context. """ import Swoosh.Email alias SMWC.Mailer # Delivers the email using the application mailer. defp deliver(recipient, subject, body) do email = new() |> to(recipient) |> from({"MyApp", "contact@example...
20.86747
64
0.569861
f775b70357b2ad32daa6a27c86e77f0fe228f920
743
ex
Elixir
lib/day_01_tyranny_of_the_rocket.ex
scmx/advent-of-code-2019-elixir
f3022efb422e15abead6b882c78855b26b138443
[ "MIT" ]
1
2019-12-02T16:27:06.000Z
2019-12-02T16:27:06.000Z
lib/day_01_tyranny_of_the_rocket.ex
scmx/advent-of-code-2019-elixir
f3022efb422e15abead6b882c78855b26b138443
[ "MIT" ]
null
null
null
lib/day_01_tyranny_of_the_rocket.ex
scmx/advent-of-code-2019-elixir
f3022efb422e15abead6b882c78855b26b138443
[ "MIT" ]
1
2020-12-10T10:47:21.000Z
2020-12-10T10:47:21.000Z
defmodule Adventofcode.Day01TyrannyOfTheRocket do use Adventofcode def fuel_requirements_sum(input) do input |> parse() |> Enum.map(&calculate_fuel/1) |> Enum.sum() end def fuel_requirements_recursive_sum(input) do input |> parse() |> Enum.map(&calculate_fuel/1) |> Enum.map(&br...
19.051282
58
0.647376
f775c7269d59eff78bcc032295d8a78ee738f018
3,087
ex
Elixir
lib/glimesh_web/live/user_live/components/streamer_title.ex
wolfcomp/glimesh.tv
3953e07946aabe85fe90d9d0f36df833b22d262a
[ "MIT" ]
null
null
null
lib/glimesh_web/live/user_live/components/streamer_title.ex
wolfcomp/glimesh.tv
3953e07946aabe85fe90d9d0f36df833b22d262a
[ "MIT" ]
null
null
null
lib/glimesh_web/live/user_live/components/streamer_title.ex
wolfcomp/glimesh.tv
3953e07946aabe85fe90d9d0f36df833b22d262a
[ "MIT" ]
null
null
null
defmodule GlimeshWeb.UserLive.Components.StreamerTitle do use GlimeshWeb, :live_view alias Glimesh.Presence alias Glimesh.Streams alias Glimesh.Streams.StreamMetadata @impl true def render(assigns) do ~L""" <%= if @user && @is_streamer do %> <%= if !@editing do %> <h5 class=""><span ...
31.5
147
0.594428
f7762febea9fc0e4eb8f7296ed4d2ce4ed818f74
488
ex
Elixir
web/models/post.ex
mogetutu/didactic-invention
be25678ba30ca5b9efc1b27e9f7c79350f53ab95
[ "MIT" ]
null
null
null
web/models/post.ex
mogetutu/didactic-invention
be25678ba30ca5b9efc1b27e9f7c79350f53ab95
[ "MIT" ]
null
null
null
web/models/post.ex
mogetutu/didactic-invention
be25678ba30ca5b9efc1b27e9f7c79350f53ab95
[ "MIT" ]
null
null
null
defmodule ElixirApp.Post do use ElixirApp.Web, :model schema "posts" do field :title, :string field :body, :string belongs_to :user, ElixirApp.User timestamps() end @doc """ Builds a changeset based on the `struct` and `params`. """ @required_fields ~w(title)a @optional_fields ~w(body...
20.333333
57
0.665984
f7765a3a3d2f0bf75e11198a81cb38f19c31134d
1,143
exs
Elixir
test/schema/transfer_transaction_test.exs
SimplicityMatters/exnem
05b77fc0ffd98321701eaba974ec2fd1def39fe2
[ "Apache-2.0" ]
1
2018-10-01T23:57:04.000Z
2018-10-01T23:57:04.000Z
test/schema/transfer_transaction_test.exs
SimplicityMatters/exnem
05b77fc0ffd98321701eaba974ec2fd1def39fe2
[ "Apache-2.0" ]
null
null
null
test/schema/transfer_transaction_test.exs
SimplicityMatters/exnem
05b77fc0ffd98321701eaba974ec2fd1def39fe2
[ "Apache-2.0" ]
null
null
null
defmodule Exnem.Schema.TransferTransactionTest do use Exnem.Case import Exnem.Transaction, only: [transfer: 3, mosaic: 2, pack: 1] alias Exnem.Crypto.KeyPair describe "Transfer Transaction" do test "it should create a transfer transaction", %{test_keypair: keypair} do recipient = "SDUP5PLHDXKBX3UU5Q...
31.75
92
0.654418
f776663bec3f67e67b14fbf1be58f0382193155c
1,783
exs
Elixir
clients/pub_sub_lite/mix.exs
kyleVsteger/elixir-google-api
3a0dd498af066a4361b5b0fd66ffc04a57539488
[ "Apache-2.0" ]
1
2021-10-01T09:20:41.000Z
2021-10-01T09:20:41.000Z
clients/pub_sub_lite/mix.exs
kyleVsteger/elixir-google-api
3a0dd498af066a4361b5b0fd66ffc04a57539488
[ "Apache-2.0" ]
null
null
null
clients/pub_sub_lite/mix.exs
kyleVsteger/elixir-google-api
3a0dd498af066a4361b5b0fd66ffc04a57539488
[ "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...
26.61194
103
0.649467
f776718815290179f170c3adf706c8c0b9ab01fa
676
exs
Elixir
config/test.exs
petermm/littlechat
b8672165ab5e6efd0d501f291de682a40b37a7b7
[ "MIT" ]
166
2020-07-15T14:47:19.000Z
2022-03-25T03:57:35.000Z
config/test.exs
Jurshsmith/littlechat
50fac2f907abbfcd574d31b4d4bdad7e51302da7
[ "MIT" ]
12
2020-07-01T23:32:47.000Z
2021-03-18T21:21:28.000Z
config/test.exs
Jurshsmith/littlechat
50fac2f907abbfcd574d31b4d4bdad7e51302da7
[ "MIT" ]
21
2020-07-15T14:59:39.000Z
2022-03-20T21:05:16.000Z
use Mix.Config # Configure your database # # The MIX_TEST_PARTITION environment variable can be used # to provide built-in test partitioning in CI environment. # Run `mix help test` for more information. config :littlechat, Littlechat.Repo, username: "postgres", password: "postgres", database: "littlechat_test#{...
29.391304
69
0.754438
f7768674eedc7f65b6653bd761409190fd7f9bfe
1,037
ex
Elixir
lib/tlc_app/application.ex
coolandcodes/CodeSplintaCollector
fb1339022c23c11c336393b131dc6c1df4afdbd8
[ "MIT" ]
null
null
null
lib/tlc_app/application.ex
coolandcodes/CodeSplintaCollector
fb1339022c23c11c336393b131dc6c1df4afdbd8
[ "MIT" ]
null
null
null
lib/tlc_app/application.ex
coolandcodes/CodeSplintaCollector
fb1339022c23c11c336393b131dc6c1df4afdbd8
[ "MIT" ]
null
null
null
defmodule TlcApp.Application do # See https://hexdocs.pm/elixir/Application.html # for more information on OTP Applications @moduledoc false use Application def start(_type, _args) do # List all child processes to be supervised children = [ # Start the Ecto repository TlcApp.Repo, ...
27.289474
65
0.682739
f776901f126d9339935369288548accd25aa17e5
1,100
ex
Elixir
lib/playwright/console_message.ex
dbrody/playwright-elixir
48611c08dbdb8e36aa4dd8aa2d97a4014b753815
[ "MIT" ]
30
2021-06-01T16:59:35.000Z
2022-03-25T16:56:19.000Z
lib/playwright/console_message.ex
dbrody/playwright-elixir
48611c08dbdb8e36aa4dd8aa2d97a4014b753815
[ "MIT" ]
35
2021-06-10T17:05:31.000Z
2022-02-11T22:30:36.000Z
lib/playwright/console_message.ex
dbrody/playwright-elixir
48611c08dbdb8e36aa4dd8aa2d97a4014b753815
[ "MIT" ]
4
2021-08-13T20:38:18.000Z
2022-01-31T04:32:35.000Z
defmodule Playwright.ConsoleMessage do @moduledoc """ `Playwright.ConsoleMessage` instances are dispatched by page and handled via `Playwright.Page.on/3` for the `:console` event type. """ use Playwright.ChannelOwner alias Playwright.ChannelOwner @property :message_text # ... from: :text @property :m...
25
86
0.572727
f776a5e2454a6efd7f7c3c531abd27bfccc2e06d
1,806
ex
Elixir
clients/cloud_run/lib/google_api/cloud_run/v1alpha1/model/trigger_filter.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/cloud_run/lib/google_api/cloud_run/v1alpha1/model/trigger_filter.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/cloud_run/lib/google_api/cloud_run/v1alpha1/model/trigger_filter.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...
38.425532
509
0.753599
f776abae557fd663cf6ab6da8b13002e819956dd
575
ex
Elixir
lib/copan/commands/appointment/create.ex
GabrielMalakias/Copan
cdf4dec19d9f9cefca59aa9f01fe33060fe7e019
[ "MIT" ]
1
2019-01-19T00:53:07.000Z
2019-01-19T00:53:07.000Z
lib/copan/commands/appointment/create.ex
dkuku/copan
cdf4dec19d9f9cefca59aa9f01fe33060fe7e019
[ "MIT" ]
null
null
null
lib/copan/commands/appointment/create.ex
dkuku/copan
cdf4dec19d9f9cefca59aa9f01fe33060fe7e019
[ "MIT" ]
1
2020-01-29T21:46:16.000Z
2020-01-29T21:46:16.000Z
defmodule Copan.Commands.Appointment.Create do @moduledoc """ Creates articles given a map """ import Ecto.Changeset require IEx def call(params) do id = find_user!(params.user_id) params |> build_changeset |> Copan.Repo.insert!(prefix: id) end def find_user!(user_id) do Copan.Q...
20.535714
67
0.690435
f776b25e9fb2ed30d555afc70f79f242cd5a3087
1,533
exs
Elixir
mix.exs
chasm/elmmeetup
95f9850a075dcc6ea884279485c532ac2f4db803
[ "MIT" ]
null
null
null
mix.exs
chasm/elmmeetup
95f9850a075dcc6ea884279485c532ac2f4db803
[ "MIT" ]
1
2018-12-26T09:07:03.000Z
2018-12-26T09:07:03.000Z
mix.exs
chasm/elmmeetup
95f9850a075dcc6ea884279485c532ac2f4db803
[ "MIT" ]
null
null
null
defmodule Elmmeetup.Mixfile do use Mix.Project def project do [app: :elmmeetup, version: "0.0.1", elixir: "~> 1.0", elixirc_paths: elixirc_paths(Mix.env), compilers: [:phoenix, :gettext] ++ Mix.compilers, build_embedded: Mix.env == :prod, start_permanent: Mix.env == :prod, al...
28.924528
78
0.607306
f776f5b1b51f2a496aad901de235c51af97d6106
1,042
ex
Elixir
lib/dialyxir/warnings/function_application_no_function.ex
Klohto/dialyxir
97270a696a91450fde0e1283b892a92e69e98de9
[ "Apache-2.0" ]
1,455
2015-01-03T02:53:19.000Z
2022-03-12T00:31:25.000Z
lib/dialyxir/warnings/function_application_no_function.ex
Klohto/dialyxir
97270a696a91450fde0e1283b892a92e69e98de9
[ "Apache-2.0" ]
330
2015-05-14T13:53:13.000Z
2022-03-29T17:12:23.000Z
lib/dialyxir/warnings/function_application_no_function.ex
Klohto/dialyxir
97270a696a91450fde0e1283b892a92e69e98de9
[ "Apache-2.0" ]
146
2015-02-03T18:19:43.000Z
2022-03-07T10:05:20.000Z
defmodule Dialyxir.Warnings.FunctionApplicationNoFunction do @moduledoc """ The function being invoked exists, but has an arity mismatch. ## Example defmodule Example do def ok() do fun = fn _ -> :ok end fun.() end end """ @behaviour Dialyxir.Warning @impl...
24.809524
113
0.662188
f77727e7938bfa75423679ea7de637e495262519
1,821
exs
Elixir
clients/sql_admin/mix.exs
Contractbook/elixir-google-api
342751041aaf8c2e7f76f9922cf24b9c5895802b
[ "Apache-2.0" ]
null
null
null
clients/sql_admin/mix.exs
Contractbook/elixir-google-api
342751041aaf8c2e7f76f9922cf24b9c5895802b
[ "Apache-2.0" ]
null
null
null
clients/sql_admin/mix.exs
Contractbook/elixir-google-api
342751041aaf8c2e7f76f9922cf24b9c5895802b
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
27.179104
100
0.653487
f777428839e912f157b72c9d37cb0b3b2776ae0a
7,682
exs
Elixir
test/lib/bamboo/adapters/mailgun_adapter_test.exs
mstratman/bamboo
8ae537e0dee1c52c3195e359b8636156513f89f2
[ "MIT" ]
null
null
null
test/lib/bamboo/adapters/mailgun_adapter_test.exs
mstratman/bamboo
8ae537e0dee1c52c3195e359b8636156513f89f2
[ "MIT" ]
null
null
null
test/lib/bamboo/adapters/mailgun_adapter_test.exs
mstratman/bamboo
8ae537e0dee1c52c3195e359b8636156513f89f2
[ "MIT" ]
null
null
null
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.101215
168
0.65686
f77742927bd444a3af1d116f25867a9da4fd89df
273
ex
Elixir
apps/speedrun_blogengine/lib/speedrun_blogengine/application.ex
jhonndabi/speedrun_blogengine-1
047ce8b913b170f9f329fd86c0bf643953e0a761
[ "Apache-2.0" ]
11
2021-04-12T18:32:30.000Z
2021-04-23T04:29:48.000Z
apps/speedrun_blogengine/lib/speedrun_blogengine/application.ex
jhonndabi/speedrun_blogengine-1
047ce8b913b170f9f329fd86c0bf643953e0a761
[ "Apache-2.0" ]
1
2021-09-18T01:14:50.000Z
2021-09-18T01:14:50.000Z
apps/speedrun_blogengine/lib/speedrun_blogengine/application.ex
jhonndabi/speedrun_blogengine-1
047ce8b913b170f9f329fd86c0bf643953e0a761
[ "Apache-2.0" ]
11
2021-04-13T15:01:36.000Z
2021-04-19T19:04:47.000Z
defmodule SpeedrunBlogengine.Application do @moduledoc false use Application def start(_type, _args) do children = [ SpeedrunBlogengine.Repo ] Supervisor.start_link(children, strategy: :one_for_one, name: SpeedrunBlogengine.Supervisor) end end
19.5
96
0.74359
f777890ed4b39a7c87b99e2e5b3b4a4f0d021bc6
255
exs
Elixir
config/config.exs
drathier/meeseeks_html5ever
50d1d5b3c95345a49f4852a4dd3004c2eb29870c
[ "Apache-2.0", "MIT" ]
12
2017-04-11T15:16:51.000Z
2021-09-12T00:09:03.000Z
config/config.exs
drathier/meeseeks_html5ever
50d1d5b3c95345a49f4852a4dd3004c2eb29870c
[ "Apache-2.0", "MIT" ]
21
2017-05-05T13:24:47.000Z
2021-11-20T18:02:44.000Z
config/config.exs
drathier/meeseeks_html5ever
50d1d5b3c95345a49f4852a4dd3004c2eb29870c
[ "Apache-2.0", "MIT" ]
10
2017-12-14T12:31:27.000Z
2021-10-15T11:55:25.000Z
use Mix.Config config :meeseeks_html5ever, MeeseeksHtml5ever.Native, path: "native/meeseeks_html5ever_nif", cargo: :system, default_features: false, features: [], mode: :release, otp_app: :meeseeks_html5ever, crate: :meeseeks_html5ever_nif
23.181818
53
0.760784
f777a26a3d349dfc90ef4efe88bd0f0f3443999f
185
ex
Elixir
apps/core/lib/auth_web/views/pow_email_confirmation/mailer_view.ex
votiakov/petal
ec03551da6dadc0c3482b25a5f5dcd400c36db43
[ "MIT" ]
null
null
null
apps/core/lib/auth_web/views/pow_email_confirmation/mailer_view.ex
votiakov/petal
ec03551da6dadc0c3482b25a5f5dcd400c36db43
[ "MIT" ]
null
null
null
apps/core/lib/auth_web/views/pow_email_confirmation/mailer_view.ex
votiakov/petal
ec03551da6dadc0c3482b25a5f5dcd400c36db43
[ "MIT" ]
null
null
null
defmodule Legendary.AuthWeb.PowEmailConfirmation.MailerView do use Legendary.AuthWeb, :mailer_view def subject(:email_confirmation, _assigns), do: "Confirm your email address" end
30.833333
78
0.816216
f777aeedb68f9eee8eab3f95d84895b7d13c9f57
270
ex
Elixir
lib/phone/nanp/us/ct.ex
net/phone
18e1356d2f8d32fe3f95638c3c44bceab0164fb2
[ "Apache-2.0" ]
null
null
null
lib/phone/nanp/us/ct.ex
net/phone
18e1356d2f8d32fe3f95638c3c44bceab0164fb2
[ "Apache-2.0" ]
null
null
null
lib/phone/nanp/us/ct.ex
net/phone
18e1356d2f8d32fe3f95638c3c44bceab0164fb2
[ "Apache-2.0" ]
null
null
null
defmodule Phone.NANP.US.CT do @moduledoc false use Helper.Area def regex, do: ~r/^(1)(203|475|860|959)([2-9].{6})$/ def area_name, do: "Connecticut" def area_type, do: "state" def area_abbreviation, do: "CT" matcher ["1203", "1475", "1860", "1959"] end
20.769231
54
0.637037
f777ff9e4cdcc66d94bb9ad39b8082b49bb77326
2,896
ex
Elixir
lib/vintage_net/connectivity/host_list.ex
nerves-networking/vintage_net
8d4251a0ec995babf8f4d7aa7cc1d74b70646c72
[ "Apache-2.0" ]
85
2019-05-09T14:54:38.000Z
2022-02-08T16:52:04.000Z
lib/vintage_net/connectivity/host_list.ex
fhunleth/vintage_net
215495533cb642eeb172daba08208a454f19b36f
[ "Apache-2.0" ]
132
2019-05-09T15:57:59.000Z
2022-02-28T16:31:22.000Z
lib/vintage_net/connectivity/host_list.ex
fhunleth/vintage_net
215495533cb642eeb172daba08208a454f19b36f
[ "Apache-2.0" ]
14
2019-07-08T19:18:23.000Z
2022-02-08T16:52:05.000Z
defmodule VintageNet.Connectivity.HostList do @moduledoc false import Record, only: [defrecord: 2] require Logger @typedoc """ IP address in tuple form or a hostname """ @type ip_or_hostname() :: :inet.ip_address() | String.t() @type name_port() :: {ip_or_hostname(), 1..65535} @type ip_port() :: {...
25.857143
117
0.633978
f77824dc3340ff717b2cd9fa7281f62cfb67888f
2,036
ex
Elixir
clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_cx_v3beta1_page_info_form_info.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_cx_v3beta1_page_info_form_info.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_cx_v3beta1_page_info_form_info.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...
34.508475
306
0.75442
f7782606bf4a40a06d985b7a05aaf28871a52af4
59
ex
Elixir
apps/enchat_web/lib/enchat_web/views/page_view.ex
Allypost/enchat
f9cff2906116550099f4574bf44e8dc1fea6d476
[ "MIT" ]
null
null
null
apps/enchat_web/lib/enchat_web/views/page_view.ex
Allypost/enchat
f9cff2906116550099f4574bf44e8dc1fea6d476
[ "MIT" ]
null
null
null
apps/enchat_web/lib/enchat_web/views/page_view.ex
Allypost/enchat
f9cff2906116550099f4574bf44e8dc1fea6d476
[ "MIT" ]
null
null
null
defmodule EnchatWeb.PageView do use EnchatWeb, :view end
14.75
31
0.79661
f77826e1c30372998e072e13964c5688b6dd79e3
3,714
ex
Elixir
deps/phoenix_html/lib/phoenix_html/form_data.ex
hallebadkapp/rumbl-ms
ae2ef9975658115f8c4d5c49c28d8bde00a74b83
[ "MIT" ]
null
null
null
deps/phoenix_html/lib/phoenix_html/form_data.ex
hallebadkapp/rumbl-ms
ae2ef9975658115f8c4d5c49c28d8bde00a74b83
[ "MIT" ]
null
null
null
deps/phoenix_html/lib/phoenix_html/form_data.ex
hallebadkapp/rumbl-ms
ae2ef9975658115f8c4d5c49c28d8bde00a74b83
[ "MIT" ]
null
null
null
defprotocol Phoenix.HTML.FormData do @moduledoc """ Converts a data structure into a `Phoenix.HTML.Form` struct. """ @doc """ Converts a data structure into a `Phoenix.HTML.Form` struct. The options are the same options given to `form_for/4`. It can be used by implementations to configure their behaviou...
29.951613
84
0.595854
f77827a6fd378bba8aab2c6ef549d60154e7f75d
374
ex
Elixir
lib/radiator/media/chapter_image.ex
bhtabor/radiator
39c137a18d36d6f418f9d1ffb7aa2c99011d66cf
[ "MIT" ]
92
2019-01-03T11:46:23.000Z
2022-02-19T21:28:44.000Z
lib/radiator/media/chapter_image.ex
bhtabor/radiator
39c137a18d36d6f418f9d1ffb7aa2c99011d66cf
[ "MIT" ]
350
2019-04-11T07:55:51.000Z
2021-08-03T11:19:05.000Z
lib/radiator/media/chapter_image.ex
bhtabor/radiator
39c137a18d36d6f418f9d1ffb7aa2c99011d66cf
[ "MIT" ]
10
2019-04-18T12:47:27.000Z
2022-01-25T20:49:15.000Z
defmodule Radiator.Media.ChapterImage do use Arc.Definition use Arc.Ecto.Definition use Radiator.Media.CoverImageBase def filename(version, {file, _chapter}) do basename = Path.basename(file.file_name, Path.extname(file.file_name)) "#{basename}_#{version}" end def storage_dir(_version, {_file, cha...
24.933333
74
0.73262
f77828a7f1063e2b7f321ee11dc83a365d892e8c
1,840
ex
Elixir
clients/content/lib/google_api/content/v21/model/repricing_rule_stats_based_rule.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/content/lib/google_api/content/v21/model/repricing_rule_stats_based_rule.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/content/lib/google_api/content/v21/model/repricing_rule_stats_based_rule.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...
36.8
262
0.740761
f77852adbffe5f7bf9a92730882c14637179cebf
1,545
ex
Elixir
clients/custom_search/lib/google_api/custom_search/v1/model/promotion_image.ex
kaaboaye/elixir-google-api
1896784c4342151fd25becd089a5beb323eff567
[ "Apache-2.0" ]
null
null
null
clients/custom_search/lib/google_api/custom_search/v1/model/promotion_image.ex
kaaboaye/elixir-google-api
1896784c4342151fd25becd089a5beb323eff567
[ "Apache-2.0" ]
null
null
null
clients/custom_search/lib/google_api/custom_search/v1/model/promotion_image.ex
kaaboaye/elixir-google-api
1896784c4342151fd25becd089a5beb323eff567
[ "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.150943
78
0.69644
f7785e21d4d2143f1378de7afe40c5da95214b14
3,691
exs
Elixir
apps/omg_watcher/test/omg_watcher/integration/block_getter_test.exs
omisego/elixir-omg
2c68973d8f29033d137f63a6e060f12e2a7dcd59
[ "Apache-2.0" ]
177
2018-08-24T03:51:02.000Z
2020-05-30T13:29:25.000Z
apps/omg_watcher/test/omg_watcher/integration/block_getter_test.exs
omisego/elixir-omg
2c68973d8f29033d137f63a6e060f12e2a7dcd59
[ "Apache-2.0" ]
1,042
2018-08-25T00:52:39.000Z
2020-06-01T05:15:17.000Z
apps/omg_watcher/test/omg_watcher/integration/block_getter_test.exs
omisego/elixir-omg
2c68973d8f29033d137f63a6e060f12e2a7dcd59
[ "Apache-2.0" ]
47
2018-08-24T12:06:33.000Z
2020-04-28T11:49:25.000Z
# Copyright 2019-2020 OMG Network 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...
36.186275
107
0.720943
f77873467af7e007b1d21abd27cb0070a8d8c01b
16,370
ex
Elixir
apps/nmap/scratch.ex
lowlandresearch/kudzu
f65da5061c436afb114a2e95bc6d115b6ec7be53
[ "MIT" ]
null
null
null
apps/nmap/scratch.ex
lowlandresearch/kudzu
f65da5061c436afb114a2e95bc6d115b6ec7be53
[ "MIT" ]
4
2020-05-16T16:05:33.000Z
2020-05-16T19:52:12.000Z
apps/nmap/scratch.ex
lowlandresearch/kudzu
f65da5061c436afb114a2e95bc6d115b6ec7be53
[ "MIT" ]
null
null
null
defmodule Nmap.Scratch do defstruct [ # Function to be called upon success (i.e. exit status of 0). If # the function returns :ok, then the Nmap.Process GenServer stops, # otherwise, it continues to run. :success, # Function to be called upon failure (i.e. exit status != 0). If # the function ...
31.420345
79
0.526817
f778b39515e8f7e7fb854ecad2094a63351a5868
390
ex
Elixir
web/channels/nope_channel.ex
tomaszj/nope-phoenix-app
46bbc16158115bc7db3971049cc8cf617b8ac6e1
[ "MIT" ]
null
null
null
web/channels/nope_channel.ex
tomaszj/nope-phoenix-app
46bbc16158115bc7db3971049cc8cf617b8ac6e1
[ "MIT" ]
null
null
null
web/channels/nope_channel.ex
tomaszj/nope-phoenix-app
46bbc16158115bc7db3971049cc8cf617b8ac6e1
[ "MIT" ]
null
null
null
defmodule NopeApp.NopeChannel do use Phoenix.Channel def join("nope_channel:", auth_msg, socket) do {:ok, socket} end def join("nope_channel:" <> _private_subtopic, _message, _socket) do {:error, %{reason: "unauthorized"}} end def handle_in("new:message", msg, socket) do broadcast! socket, "ne...
24.375
70
0.674359
f778e2c1a5861be9a267d5c4323352547f7b78ca
84,671
ex
Elixir
clients/gke_hub/lib/google_api/gke_hub/v1/api/projects.ex
yoshi-code-bot/elixir-google-api
cdb6032f01fac5ab704803113c39f2207e9e019d
[ "Apache-2.0" ]
null
null
null
clients/gke_hub/lib/google_api/gke_hub/v1/api/projects.ex
yoshi-code-bot/elixir-google-api
cdb6032f01fac5ab704803113c39f2207e9e019d
[ "Apache-2.0" ]
null
null
null
clients/gke_hub/lib/google_api/gke_hub/v1/api/projects.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...
49.835786
802
0.626484
f778ebd616ac7284c0bdfdc159ebfedfed7dd906
1,965
ex
Elixir
clients/big_query/lib/google_api/big_query/v2/model/streamingbuffer.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/big_query/lib/google_api/big_query/v2/model/streamingbuffer.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/big_query/lib/google_api/big_query/v2/model/streamingbuffer.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...
37.075472
217
0.724173
f77916be4d93051ea0b435a8cae6651cb6fd2ae2
2,129
ex
Elixir
lib/example_web/controllers/todo_controller.ex
preston-aoki/distillery-aws-example
722dcccd5bcad2ebabaa71dd8b03f4534456099a
[ "Apache-2.0" ]
46
2018-08-06T23:18:46.000Z
2020-11-26T12:43:49.000Z
lib/example_web/controllers/todo_controller.ex
preston-aoki/distillery-aws-example
722dcccd5bcad2ebabaa71dd8b03f4534456099a
[ "Apache-2.0" ]
15
2018-08-23T08:29:48.000Z
2020-05-18T14:05:38.000Z
lib/example_web/controllers/todo_controller.ex
preston-aoki/distillery-aws-example
722dcccd5bcad2ebabaa71dd8b03f4534456099a
[ "Apache-2.0" ]
84
2018-08-27T11:56:59.000Z
2022-01-28T00:33:47.000Z
defmodule ExampleWeb.TodoController do use ExampleWeb, :controller def index(conn, _params) do case Example.Todo.all() do {:ok, todos} -> render(conn, "index.html", todos: todos) {:error, reason} -> conn |> put_resp_content_type("text/plain") |> send_resp(500, reason...
22.892473
69
0.57163
f7791bfe7e090889177c731cb96cc6081ceb3163
2,937
ex
Elixir
clients/app_engine/lib/google_api/app_engine/v1/model/operation_metadata_v1.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/app_engine/lib/google_api/app_engine/v1/model/operation_metadata_v1.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/app_engine/lib/google_api/app_engine/v1/model/operation_metadata_v1.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...
43.191176
161
0.705141
f7794bac163277e0c169093170f6e09d82760d18
10,899
ex
Elixir
lib/cache/guild/guild.ex
SpaceEEC/crux_cache
359194162b3c12da16e44fb29dacd02f99eb0148
[ "MIT" ]
2
2018-05-22T07:13:50.000Z
2018-07-05T13:51:42.000Z
lib/cache/guild/guild.ex
SpaceEEC/crux_cache
359194162b3c12da16e44fb29dacd02f99eb0148
[ "MIT" ]
null
null
null
lib/cache/guild/guild.ex
SpaceEEC/crux_cache
359194162b3c12da16e44fb29dacd02f99eb0148
[ "MIT" ]
null
null
null
defmodule Crux.Cache.Guild do @moduledoc """ Default `Crux.Structs.Channel` cache. Unlike other caches this one splits up to different guild processes handling their data individually. """ @behaviour Crux.Cache @provider Crux.Cache.Default use GenServer alias Crux.Cache.Guild.Registry alias C...
26.911111
105
0.595834
f77970aa948582fda14ebb848d9ed7b6c94be624
550
exs
Elixir
test/livebook/runtime/erl_dist/io_forward_gl_test.exs
brettcannon/livebook
d6c9ab1783efa083aea2ead81e078bb920d57ad6
[ "Apache-2.0" ]
1
2021-05-21T22:14:23.000Z
2021-05-21T22:14:23.000Z
test/livebook/runtime/erl_dist/io_forward_gl_test.exs
brettcannon/livebook
d6c9ab1783efa083aea2ead81e078bb920d57ad6
[ "Apache-2.0" ]
1
2021-09-18T01:09:08.000Z
2021-09-18T01:09:08.000Z
test/livebook/runtime/erl_dist/io_forward_gl_test.exs
brettcannon/livebook
d6c9ab1783efa083aea2ead81e078bb920d57ad6
[ "Apache-2.0" ]
null
null
null
defmodule Livebook.Runtime.ErlDist.IOForwardGLTest do use ExUnit.Case, async: true alias Livebook.Runtime.ErlDist.IOForwardGL test "forwards requests to sender's group leader" do {:ok, pid} = IOForwardGL.start_link() group_leader_io = ExUnit.CaptureIO.capture_io(:stdio, fn -> # This sends...
27.5
62
0.676364
f779ba50a3a03bf5a203eab5b8628db82a4e1232
1,196
exs
Elixir
mix.exs
fossabot/bejo
7d25d68ef97bd77b7d53fc9a9546261fdc99bfba
[ "Apache-2.0" ]
null
null
null
mix.exs
fossabot/bejo
7d25d68ef97bd77b7d53fc9a9546261fdc99bfba
[ "Apache-2.0" ]
null
null
null
mix.exs
fossabot/bejo
7d25d68ef97bd77b7d53fc9a9546261fdc99bfba
[ "Apache-2.0" ]
null
null
null
defmodule Bejo.MixProject do use Mix.Project @app :bejo def project do [ app: @app, version: "0.1.0", elixir: "~> 1.10", start_permanent: Mix.env() == :prod, escript: [main_module: Bejo.Cli], deps: deps(), xref: [exclude: [:router]], elixirc_paths: elixirc_pat...
24.408163
98
0.58612
f779e0b7560cbdc208e8354713506e8b943fb394
781
ex
Elixir
lib/web/controllers/registration_controller.ex
shanesveller/grapevine
fe74ade1adff88dfe4c1ab55fee3902dbb4664fe
[ "MIT" ]
null
null
null
lib/web/controllers/registration_controller.ex
shanesveller/grapevine
fe74ade1adff88dfe4c1ab55fee3902dbb4664fe
[ "MIT" ]
null
null
null
lib/web/controllers/registration_controller.ex
shanesveller/grapevine
fe74ade1adff88dfe4c1ab55fee3902dbb4664fe
[ "MIT" ]
null
null
null
defmodule Web.RegistrationController do use Web, :controller alias Grapevine.Accounts alias Web.SessionController def new(conn, _params) do changeset = Accounts.new() conn |> assign(:changeset, changeset) |> render("new.html") end def create(conn, %{"user" => params}) do case Account...
24.40625
82
0.618438
f77a3d3edec5d2c8c3ff62d71e8ed15476c9f618
3,643
ex
Elixir
lib/mix/tasks/ecto.load.ex
nasrulgunawan/ecto_sql
ace2c9daf07190a3f7debfa2060cd3ddd251b6c7
[ "Apache-2.0" ]
384
2018-10-03T17:52:39.000Z
2022-03-24T17:54:21.000Z
lib/mix/tasks/ecto.load.ex
nasrulgunawan/ecto_sql
ace2c9daf07190a3f7debfa2060cd3ddd251b6c7
[ "Apache-2.0" ]
357
2018-10-06T13:47:33.000Z
2022-03-29T08:18:02.000Z
deps/ecto_sql/lib/mix/tasks/ecto.load.ex
adrianomota/blog
ef3b2d2ed54f038368ead8234d76c18983caa75b
[ "MIT" ]
251
2018-10-04T11:06:41.000Z
2022-03-29T07:22:53.000Z
defmodule Mix.Tasks.Ecto.Load do use Mix.Task import Mix.Ecto import Mix.EctoSQL @shortdoc "Loads previously dumped database structure" @default_opts [force: false, quiet: false] @aliases [ d: :dump_path, f: :force, q: :quiet, r: :repo ] @switches [ dump_path: :string, force: ...
29.860656
119
0.637661
f77a51a15b8b32076f4eb957c69d60e0d507e57b
2,593
exs
Elixir
config/staging.exs
taylonr/couchjitsu_track
0a31c450ac734f9d8b69849cb766de0e99f178c4
[ "MIT" ]
null
null
null
config/staging.exs
taylonr/couchjitsu_track
0a31c450ac734f9d8b69849cb766de0e99f178c4
[ "MIT" ]
null
null
null
config/staging.exs
taylonr/couchjitsu_track
0a31c450ac734f9d8b69849cb766de0e99f178c4
[ "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...
35.040541
70
0.726186
f77a75b2a926479df2de3450d01e2d58568be113
540
ex
Elixir
lib/twitter/management/tweet.ex
SkullDarth/upnid-challenge-twitter-api
799f2bfa8864848423eeddc24d3a5993152eb464
[ "MIT" ]
2
2019-12-05T21:37:48.000Z
2020-01-02T02:43:33.000Z
lib/twitter/management/tweet.ex
SkullDarth/upnid-challenge-twitter-api
799f2bfa8864848423eeddc24d3a5993152eb464
[ "MIT" ]
null
null
null
lib/twitter/management/tweet.ex
SkullDarth/upnid-challenge-twitter-api
799f2bfa8864848423eeddc24d3a5993152eb464
[ "MIT" ]
null
null
null
defmodule Twitter.Management.Tweet do use Ecto.Schema import Ecto.Changeset schema "tweets" do field :description, :string field :view_count, :integer field :published, :boolean field :like, :integer # Create foreingKey tweet table to user table belongs_to :user, Twitter.Management.User ...
22.5
77
0.690741
f77a7c3bb236ea20d32e2179499611cf33297faa
1,569
ex
Elixir
apps/faqcheck/lib/faqcheck/repo.ex
csboling/faqcheck
bc182c365d466c8dcacc6b1a5fe9186a2c912cd4
[ "CC0-1.0" ]
null
null
null
apps/faqcheck/lib/faqcheck/repo.ex
csboling/faqcheck
bc182c365d466c8dcacc6b1a5fe9186a2c912cd4
[ "CC0-1.0" ]
20
2021-09-08T04:07:31.000Z
2022-03-10T21:52:24.000Z
apps/faqcheck/lib/faqcheck/repo.ex
csboling/faqcheck
bc182c365d466c8dcacc6b1a5fe9186a2c912cd4
[ "CC0-1.0" ]
null
null
null
defmodule Faqcheck.Repo do use Ecto.Repo, otp_app: :faqcheck, adapter: Ecto.Adapters.Postgres, types: Faqcheck.PostgresTypes use Quarto, limit: 10 import Ecto.Changeset import PaperTrail.Serializer def versions(changeset, options \\ []) do changeset |> prepare_changes(fn cs -> ...
26.59322
79
0.666667
f77a877f8539419d0070d2a6e63bb17c2b12d6a5
417
exs
Elixir
test/chatbot_web/views/error_view_test.exs
mikehelmick/meme-bot
52a84cfb3f5ddcdddadf59b0ba3976f9e3f23800
[ "Apache-2.0" ]
7
2019-04-05T06:12:56.000Z
2021-04-03T11:39:40.000Z
test/chatbot_web/views/error_view_test.exs
mikehelmick/meme-bot
52a84cfb3f5ddcdddadf59b0ba3976f9e3f23800
[ "Apache-2.0" ]
null
null
null
test/chatbot_web/views/error_view_test.exs
mikehelmick/meme-bot
52a84cfb3f5ddcdddadf59b0ba3976f9e3f23800
[ "Apache-2.0" ]
3
2019-04-20T13:05:48.000Z
2019-06-05T16:52:46.000Z
defmodule ChatbotWeb.ErrorViewTest do use ChatbotWeb.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(ChatbotWeb.ErrorView, "404.html", []) == "Not Found" end test "renders 500.html" do as...
27.8
92
0.733813
f77a937785095a7aa075925059f3fd327d5dfecb
4,097
ex
Elixir
lib/elixir/lib/tuple.ex
namjae/elixir
6d1561a5939d68fb61f422b83271fbc824847395
[ "Apache-2.0" ]
1
2021-05-20T13:08:37.000Z
2021-05-20T13:08:37.000Z
lib/elixir/lib/tuple.ex
namjae/elixir
6d1561a5939d68fb61f422b83271fbc824847395
[ "Apache-2.0" ]
null
null
null
lib/elixir/lib/tuple.ex
namjae/elixir
6d1561a5939d68fb61f422b83271fbc824847395
[ "Apache-2.0" ]
null
null
null
defmodule Tuple do @moduledoc """ Functions for working with tuples. Tuples are ordered collections of elements; tuples can contain elements of any type, and a tuple can contain elements of different types. Curly braces can be used to create tuples: iex> {} {} iex> {1, :two, "three"} ...
26.953947
80
0.660971
f77a9a464b496af826cc03b6da9d06d7219ac227
2,708
ex
Elixir
clients/dataflow/lib/google_api/dataflow/v1b3/model/step.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/dataflow/lib/google_api/dataflow/v1b3/model/step.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/dataflow/lib/google_api/dataflow/v1b3/model/step.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...
52.076923
875
0.751108
f77ae850177bc7396b73773d173f8392fb62e98e
430
ex
Elixir
lib/farmbot/asset/tool.ex
defcon201/farmbot_os
acc22702afbb13be461c9d80591604958117ff75
[ "MIT" ]
null
null
null
lib/farmbot/asset/tool.ex
defcon201/farmbot_os
acc22702afbb13be461c9d80591604958117ff75
[ "MIT" ]
null
null
null
lib/farmbot/asset/tool.ex
defcon201/farmbot_os
acc22702afbb13be461c9d80591604958117ff75
[ "MIT" ]
1
2020-12-16T16:39:32.000Z
2020-12-16T16:39:32.000Z
defmodule Farmbot.Asset.Tool do @moduledoc "A Tool is an item that lives in a ToolSlot" use Ecto.Schema import Ecto.Changeset schema "tools" do field(:name, :string) end use Farmbot.Repo.Syncable @required_fields [:id, :name] def changeset(farm_event, params \\ %{}) do farm_event |> cast...
20.47619
57
0.690698
f77b0ea8c19deb6d3a3458ad12d5029ef98ba783
4,007
ex
Elixir
lib/petal_components/tabs.ex
doughsay/petal_components
75e30ab078a205cb642ebea7c5d0ca8357f41464
[ "MIT" ]
null
null
null
lib/petal_components/tabs.ex
doughsay/petal_components
75e30ab078a205cb642ebea7c5d0ca8357f41464
[ "MIT" ]
null
null
null
lib/petal_components/tabs.ex
doughsay/petal_components
75e30ab078a205cb642ebea7c5d0ca8357f41464
[ "MIT" ]
null
null
null
defmodule PetalComponents.Tabs do use Phoenix.Component import PetalComponents.Link # prop class, :string # prop underline, :boolean, default: false # slot default def tabs(assigns) do assigns = assigns |> assign_new(:underline, fn -> false end) |> assign_new(:class, fn -> "" end) ...
28.827338
121
0.608435
f77b675aeb4f4e9cb9b962636728689a62eb9240
3,861
ex
Elixir
lib/json_web_token/jwt.ex
PatrickSachs/json_web_token_ex
0c87b1e8ec2e383cb79b4450191c164c9a1a677c
[ "MIT" ]
null
null
null
lib/json_web_token/jwt.ex
PatrickSachs/json_web_token_ex
0c87b1e8ec2e383cb79b4450191c164c9a1a677c
[ "MIT" ]
null
null
null
lib/json_web_token/jwt.ex
PatrickSachs/json_web_token_ex
0c87b1e8ec2e383cb79b4450191c164c9a1a677c
[ "MIT" ]
null
null
null
defmodule JsonWebToken.Jwt do @moduledoc """ Encode claims for transmission as a JSON object that is used as the payload of a JSON Web Signature (JWS) structure, enabling the claims to be integrity protected with a Message Authentication Code (MAC), to be later verified see http://tools.ietf.org/html/rfc7519...
35.1
186
0.70474
f77b7508ef0534319e01ecb81e34a2c8e3744ef9
282
ex
Elixir
lib/twitter_wall_web/cors_router.ex
IvanRublev/TwitterWall
ca3f900dfaf64c5d59ac903f697da87e9fcc9914
[ "MIT" ]
1
2020-01-27T17:43:01.000Z
2020-01-27T17:43:01.000Z
lib/twitter_wall_web/cors_router.ex
IvanRublev/TwitterWall
ca3f900dfaf64c5d59ac903f697da87e9fcc9914
[ "MIT" ]
6
2021-03-09T22:08:16.000Z
2021-06-30T23:48:20.000Z
lib/twitter_wall_web/cors_router.ex
IvanRublev/TwitterWall
ca3f900dfaf64c5d59ac903f697da87e9fcc9914
[ "MIT" ]
null
null
null
defmodule TwitterWallWeb.CORSRouter do @moduledoc """ Module configuring Corsica plugin to enable /api endpoint to be CORS compatible. """ use Corsica.Router, origins: "*", allow_credentials: true, allow_headers: :all, max_age: 600 resource("/api/*") end
21.692308
82
0.691489
f77b88acbe0e4bafc55ddf4f69ba848fb7ae1f76
452
exs
Elixir
priv/repo/migrations/20181217222526_create_book_locations.exs
allen-garvey/booklist-phoenix
b3c87713d742b64684c222cd3e5869dc9fbd2bd2
[ "MIT" ]
4
2019-10-04T16:11:15.000Z
2021-08-18T21:00:13.000Z
apps/booklist/priv/repo/migrations/20181217222526_create_book_locations.exs
allen-garvey/phoenix-umbrella
1d444bbd62a5e7b5f51d317ce2be71ee994125d5
[ "MIT" ]
5
2020-03-16T23:52:25.000Z
2021-09-03T16:52:17.000Z
priv/repo/migrations/20181217222526_create_book_locations.exs
allen-garvey/booklist-phoenix
b3c87713d742b64684c222cd3e5869dc9fbd2bd2
[ "MIT" ]
null
null
null
defmodule Booklist.Repo.Migrations.CreateBookLocations do use Ecto.Migration def change do create table(:book_locations) do add :call_number, :text add :book_id, references(:books, on_delete: :nothing), null: false add :location_id, references(:locations, on_delete: :nothing), null: false ...
26.588235
80
0.705752
f77b8c26e6e9f6095eee453c9b708536fb890cf1
1,999
exs
Elixir
test/test_helper.exs
lgandersen/jocker_dist
b5e676f8d9e60bbc8bc7a82ccd1e05389f2cd5b5
[ "BSD-2-Clause" ]
null
null
null
test/test_helper.exs
lgandersen/jocker_dist
b5e676f8d9e60bbc8bc7a82ccd1e05389f2cd5b5
[ "BSD-2-Clause" ]
null
null
null
test/test_helper.exs
lgandersen/jocker_dist
b5e676f8d9e60bbc8bc7a82ccd1e05389f2cd5b5
[ "BSD-2-Clause" ]
null
null
null
alias Jocker.Engine.{ZFS, Config, Container, Layer} ExUnit.start() ExUnit.configure( seed: 0, trace: true, max_failures: 1 ) defmodule TestHelper do def now() do :timer.sleep(10) DateTime.to_iso8601(DateTime.utc_now()) end def collect_container_output(id) do output = collect_container_output...
25.303797
93
0.641821
f77b9032028e393ead55433591a873cc081e0bda
219
exs
Elixir
test/controllers/page_controller_test.exs
keichan34/phoenix_exfile_test_app
63de22ab04a61ef7f13a53f2b34d3c752a1def7a
[ "MIT" ]
1
2016-04-19T11:56:32.000Z
2016-04-19T11:56:32.000Z
test/controllers/page_controller_test.exs
keichan34/phoenix_exfile_test_app
63de22ab04a61ef7f13a53f2b34d3c752a1def7a
[ "MIT" ]
1
2016-08-05T07:52:34.000Z
2016-09-02T03:45:03.000Z
test/controllers/page_controller_test.exs
keichan34/phoenix_exfile_test_app
63de22ab04a61ef7f13a53f2b34d3c752a1def7a
[ "MIT" ]
null
null
null
defmodule PhoenixExfileTestApp.PageControllerTest do use PhoenixExfileTestApp.ConnCase test "GET /", %{conn: conn} do conn = get conn, "/" assert html_response(conn, 200) =~ "Welcome to Phoenix!" end end
24.333333
60
0.712329
f77ba16bb1e1f254d0e8417c51c996b17aad6b37
313
ex
Elixir
web/channels/user_channel.ex
drdean/jelly
44ca6d90e0c7ce62ccd458795f54dac4d10e8cfc
[ "MIT" ]
null
null
null
web/channels/user_channel.ex
drdean/jelly
44ca6d90e0c7ce62ccd458795f54dac4d10e8cfc
[ "MIT" ]
null
null
null
web/channels/user_channel.ex
drdean/jelly
44ca6d90e0c7ce62ccd458795f54dac4d10e8cfc
[ "MIT" ]
null
null
null
defmodule JellyBoard.UserChannel do use JellyBoard.Web, :channel def join("users:" <> user_id, _params, socket) do current_user = socket.assigns.current_user if String.to_integer(user_id) == current_user.id do {:ok, socket} else {:error, %{reason: "Invalid user"}} end end end
22.357143
55
0.670927
f77bca2b94c333f21c4fec71c46b7b299fe93ae4
177
ex
Elixir
lib/teiserver_web/views/account/relationships_view.ex
icexuick/teiserver
22f2e255e7e21f977e6b262acf439803626a506c
[ "MIT" ]
6
2021-02-08T10:42:53.000Z
2021-04-25T12:12:03.000Z
lib/teiserver_web/views/account/relationships_view.ex
icexuick/teiserver
22f2e255e7e21f977e6b262acf439803626a506c
[ "MIT" ]
14
2021-08-01T02:36:14.000Z
2022-01-30T21:15:03.000Z
lib/teiserver_web/views/account/relationships_view.ex
icexuick/teiserver
22f2e255e7e21f977e6b262acf439803626a506c
[ "MIT" ]
7
2021-05-13T12:55:28.000Z
2022-01-14T06:39:06.000Z
defmodule TeiserverWeb.Account.RelationshipsView do use TeiserverWeb, :view def colours(), do: StylingHelper.colours(:info) def icon(), do: StylingHelper.icon(:info) end
25.285714
51
0.762712
f77bda0d565f544eecc0ebc76b39ed90835a9282
13,051
exs
Elixir
test/integration/controlling_test.exs
chrismo/oban
f912ccf75a1d89e02229041d578f9263d4de0232
[ "Apache-2.0" ]
null
null
null
test/integration/controlling_test.exs
chrismo/oban
f912ccf75a1d89e02229041d578f9263d4de0232
[ "Apache-2.0" ]
null
null
null
test/integration/controlling_test.exs
chrismo/oban
f912ccf75a1d89e02229041d578f9263d4de0232
[ "Apache-2.0" ]
null
null
null
defmodule Oban.Integration.ControllingTest do use Oban.Case alias Oban.{Connection, Registry} @moduletag :integration describe "start_queue/2" do test "validating options" do name = start_supervised_oban!(queues: []) assert_invalid_opts(name, :start_queue, []) assert_invalid_opts(name,...
34.075718
91
0.655275
f77be324857fc32aaac45d5799f977a9fffcec48
305
ex
Elixir
test/support/dummy_rpc.ex
alisinabh/exw3
672820414b98f24a7d6027cbf292f0cc30b282fe
[ "Apache-2.0" ]
null
null
null
test/support/dummy_rpc.ex
alisinabh/exw3
672820414b98f24a7d6027cbf292f0cc30b282fe
[ "Apache-2.0" ]
null
null
null
test/support/dummy_rpc.ex
alisinabh/exw3
672820414b98f24a7d6027cbf292f0cc30b282fe
[ "Apache-2.0" ]
null
null
null
defmodule ExW3.DummyRPC do @moduledoc "Dummy Json RPC Mock module for testing calls" def eth_call(_data), do: mock() def eth_send(_data), do: mock() def mock_response(resp), do: Application.put_env(:exw3, :dummy_rpc_resp, resp) def mock, do: Application.fetch_env!(:exw3, :dummy_rpc_resp) end
30.5
80
0.737705
f77be8577aee43c7a5289bdfc0bf587f1f57e953
923
ex
Elixir
apps/core/lib/core/contract_requests/capitation/contract_requests.ex
ehealth-ua/ehealth.api
4ffe26a464fe40c95fb841a4aa2e147068f65ca2
[ "Apache-2.0" ]
8
2019-06-14T11:34:49.000Z
2021-08-05T19:14:24.000Z
apps/core/lib/core/contract_requests/capitation/contract_requests.ex
edenlabllc/ehealth.api.public
4ffe26a464fe40c95fb841a4aa2e147068f65ca2
[ "Apache-2.0" ]
1
2019-07-08T15:20:22.000Z
2019-07-08T15:20:22.000Z
apps/core/lib/core/contract_requests/capitation/contract_requests.ex
ehealth-ua/ehealth.api
4ffe26a464fe40c95fb841a4aa2e147068f65ca2
[ "Apache-2.0" ]
6
2018-05-11T13:59:32.000Z
2022-01-19T20:15:22.000Z
defmodule Core.CapitationContractRequests do @moduledoc false alias Core.ContractRequests.CapitationContractRequest use Core.ContractRequests, schema: CapitationContractRequest import Ecto.Query @read_repo Application.get_env(:core, :repos)[:read_repo] def get_contract_requests_to_deactivate(legal_entity...
32.964286
69
0.72156
f77bf1a8ee4e9063a85b26d2fe60d1fc0ca89736
735
exs
Elixir
apps/performance/mix.exs
calebcarroll1/smartcitiesdata
b0f03496f6c592c82ba14aebf6c5996311cf3cd0
[ "Apache-2.0" ]
18
2020-11-13T15:38:24.000Z
2021-05-26T00:40:08.000Z
apps/performance/mix.exs
calebcarroll1/smartcitiesdata
b0f03496f6c592c82ba14aebf6c5996311cf3cd0
[ "Apache-2.0" ]
365
2020-09-21T12:31:40.000Z
2021-09-25T14:54:21.000Z
apps/performance/mix.exs
calebcarroll1/smartcitiesdata
b0f03496f6c592c82ba14aebf6c5996311cf3cd0
[ "Apache-2.0" ]
3
2020-10-06T16:17:49.000Z
2021-09-03T17:11:41.000Z
defmodule Performance.MixProject do use Mix.Project def project do [ app: :performance, version: "0.1.0", build_path: "../../_build", config_path: "../../config/config.exs", deps_path: "../../deps", lockfile: "../../mix.lock", elixir: "~> 1.10", start_permanent: ...
21.617647
64
0.514286
f77c073629f8ddc9d728d28999727468e6fcc51d
11,373
exs
Elixir
test/drunkard/recipes_test.exs
shaddysignal/drunkard
8365c75cd98414dfe38481956e90dda26a177bdd
[ "Unlicense" ]
2
2020-07-05T21:27:33.000Z
2021-12-12T22:56:00.000Z
test/drunkard/recipes_test.exs
shaddysignal/drunkard
8365c75cd98414dfe38481956e90dda26a177bdd
[ "Unlicense" ]
1
2021-05-11T08:14:48.000Z
2021-05-11T08:14:48.000Z
test/drunkard/recipes_test.exs
shaddysignal/drunkard
8365c75cd98414dfe38481956e90dda26a177bdd
[ "Unlicense" ]
1
2020-07-05T21:27:46.000Z
2020-07-05T21:27:46.000Z
defmodule Drunkard.RecipesTest do use Drunkard.DataCase alias Drunkard.Recipes describe "ingredients" do alias Drunkard.Recipes.Ingredient @valid_attrs %{name: "some name"} @update_attrs %{name: "some updated name"} @invalid_attrs %{name: nil} def ingredient_fixture(attrs \\ %{}) do ...
36.104762
141
0.688649
f77c08e4aed6de4dfaa9104a3baff72fc270b541
1,878
ex
Elixir
clients/service_directory/lib/google_api/service_directory/v1beta1/model/namespace.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/service_directory/lib/google_api/service_directory/v1beta1/model/namespace.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/service_directory/lib/google_api/service_directory/v1beta1/model/namespace.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...
37.56
238
0.735889