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
1c57ab612066bf394ed2e47ad44bc8ceed689a0c
31,521
ex
Elixir
lib/iex/lib/iex/helpers.ex
milmazz/elixir
b62704e9e223ea00da75e2ad277e5468f728c5d3
[ "Apache-2.0" ]
null
null
null
lib/iex/lib/iex/helpers.ex
milmazz/elixir
b62704e9e223ea00da75e2ad277e5468f728c5d3
[ "Apache-2.0" ]
null
null
null
lib/iex/lib/iex/helpers.ex
milmazz/elixir
b62704e9e223ea00da75e2ad277e5468f728c5d3
[ "Apache-2.0" ]
null
null
null
defmodule IEx.Helpers do @moduledoc """ Welcome to Interactive Elixir. You are currently seeing the documentation for the module `IEx.Helpers` which provides many helpers to make Elixir's shell more joyful to work with. This message was triggered by invoking the helper `h()`, usually referred to as `h/0`...
27.314558
97
0.64484
1c57c5c9173da29fb1384eaf7b4a3c62276b6770
1,752
ex
Elixir
apps/astarte_appengine_api/test/support/jwt_test_helper.ex
matt-mazzucato/astarte
34d84941a5019efc42321052f7f34b7d907a38f2
[ "Apache-2.0" ]
191
2018-03-30T13:23:08.000Z
2022-03-02T12:05:32.000Z
apps/astarte_appengine_api/test/support/jwt_test_helper.ex
matt-mazzucato/astarte
34d84941a5019efc42321052f7f34b7d907a38f2
[ "Apache-2.0" ]
402
2018-03-30T13:37:00.000Z
2022-03-31T16:47:10.000Z
apps/astarte_appengine_api/test/support/jwt_test_helper.ex
matt-mazzucato/astarte
34d84941a5019efc42321052f7f34b7d907a38f2
[ "Apache-2.0" ]
24
2018-03-30T13:29:48.000Z
2022-02-28T11:10:26.000Z
# # This file is part of Astarte. # # Copyright 2017 Ispirata Srl # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appl...
26.545455
74
0.694064
1c57d4312c445087cd352635fca68aa1a62e2f20
27,771
ex
Elixir
lib/plug/debugger.ex
bruteforcecat/plug
45165d978e59d18df8b8085e4e158997dcac19a3
[ "Apache-2.0" ]
null
null
null
lib/plug/debugger.ex
bruteforcecat/plug
45165d978e59d18df8b8085e4e158997dcac19a3
[ "Apache-2.0" ]
null
null
null
lib/plug/debugger.ex
bruteforcecat/plug
45165d978e59d18df8b8085e4e158997dcac19a3
[ "Apache-2.0" ]
null
null
null
defmodule Plug.Debugger do @moduledoc """ A module (**not a plug**) for debugging in development. This module is commonly used within a `Plug.Builder` or a `Plug.Router` and it wraps the `call/2` function. Notice `Plug.Debugger` *does not* catch errors, as errors should still propagate so that the Elixir ...
54.992079
12,756
0.787872
1c57f442cca8278c995aa42307d6aa072f4e82bb
13,622
exs
Elixir
test/myxql/client_test.exs
adrianomitre/myxql
96d098d4d6b2ccfc04a77e5da55094ea4e787c5e
[ "Apache-2.0" ]
null
null
null
test/myxql/client_test.exs
adrianomitre/myxql
96d098d4d6b2ccfc04a77e5da55094ea4e787c5e
[ "Apache-2.0" ]
null
null
null
test/myxql/client_test.exs
adrianomitre/myxql
96d098d4d6b2ccfc04a77e5da55094ea4e787c5e
[ "Apache-2.0" ]
null
null
null
defmodule MyXQL.ClientTest do use ExUnit.Case, async: true alias MyXQL.{Client, Protocol} import MyXQL.Protocol.{Flags, Records} @opts TestHelper.opts() describe "connect" do @tag public_key_exchange: true test "default auth plugin (public key exchange)" do opts = [username: "default_auth", pa...
35.941953
98
0.642931
1c5808029948be505ecc47bb147c21caac2e900d
3,747
ex
Elixir
clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/my_sql_replica_configuration.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/my_sql_replica_configuration.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/my_sql_replica_configuration.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...
48.662338
399
0.705898
1c585822492e3991de31fd55a93503d773e78ee7
1,424
ex
Elixir
Microsoft.Azure.Management.Database.PostgreSql/lib/microsoft/azure/management/database/postgre_sql/model/server_properties.ex
chgeuer/ex_microsoft_azure_management
99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603
[ "Apache-2.0" ]
4
2018-09-29T03:43:15.000Z
2021-04-01T18:30:46.000Z
Microsoft.Azure.Management.Database.PostgreSql/lib/microsoft/azure/management/database/postgre_sql/model/server_properties.ex
chgeuer/ex_microsoft_azure_management
99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603
[ "Apache-2.0" ]
null
null
null
Microsoft.Azure.Management.Database.PostgreSql/lib/microsoft/azure/management/database/postgre_sql/model/server_properties.ex
chgeuer/ex_microsoft_azure_management
99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603
[ "Apache-2.0" ]
null
null
null
# NOTE: This class is auto generated by the swagger code generator program. # https://github.com/swagger-api/swagger-codegen.git # Do not edit the class manually. defmodule Microsoft.Azure.Management.Database.PostgreSql.Model.ServerProperties do @moduledoc """ The properties of a server. """ @derive [Poison.E...
33.904762
124
0.732444
1c58595b1d3942996cc581c41aa3f709e3a2ffab
79
exs
Elixir
default_value.exs
ariarijp/elixir-crash-course
f63502a2bb59e3a3e1ce6c62c595fbf75c0462c0
[ "MIT" ]
1
2016-09-22T03:47:46.000Z
2016-09-22T03:47:46.000Z
default_value.exs
ariarijp/elixir-crash-course
f63502a2bb59e3a3e1ce6c62c595fbf75c0462c0
[ "MIT" ]
null
null
null
default_value.exs
ariarijp/elixir-crash-course
f63502a2bb59e3a3e1ce6c62c595fbf75c0462c0
[ "MIT" ]
null
null
null
defmodule DefaultValueModule do def mul_by(x, n \\ 2) do x * n end end
13.166667
31
0.64557
1c585a23629309f5b63058e18f22e853d72dd277
2,822
ex
Elixir
web/modules/sql/adapters/query_makers/influxdb.ex
sahilpaudel/AfterGlow
0859ec14b47c8c5704cc8e5cba86d39aa258fff5
[ "MIT" ]
null
null
null
web/modules/sql/adapters/query_makers/influxdb.ex
sahilpaudel/AfterGlow
0859ec14b47c8c5704cc8e5cba86d39aa258fff5
[ "MIT" ]
null
null
null
web/modules/sql/adapters/query_makers/influxdb.ex
sahilpaudel/AfterGlow
0859ec14b47c8c5704cc8e5cba86d39aa258fff5
[ "MIT" ]
null
null
null
require IEx defmodule AfterGlow.Sql.Adapters.QueryMakers.InfluxDb do use AfterGlow.Sql.Adapters.QueryMakers.Common @time_intervals %{ "seconds" => "s", "minutes" => "m", "hours" => "h", "days" => "d", "weeks" => "w" } def sql(query_record) do options = options(query_record, :influxdb)...
28.795918
96
0.575124
1c587af3d11e58e569c323bdd98e34981c7628b2
1,007
exs
Elixir
apps/service_broadcast/test/broadcast/init_test.exs
rucker/hindsight
876a5d344c5d8eebbea37684ee07e0a91e4430f0
[ "Apache-2.0" ]
null
null
null
apps/service_broadcast/test/broadcast/init_test.exs
rucker/hindsight
876a5d344c5d8eebbea37684ee07e0a91e4430f0
[ "Apache-2.0" ]
null
null
null
apps/service_broadcast/test/broadcast/init_test.exs
rucker/hindsight
876a5d344c5d8eebbea37684ee07e0a91e4430f0
[ "Apache-2.0" ]
null
null
null
defmodule Broadcast.InitTest do use ExUnit.Case use Placebo @instance Broadcast.Application.instance() setup do Process.flag(:trap_exit, true) :ok end test "will start all streams in store" do allow(Broadcast.Stream.Supervisor.start_child(any()), return: {:ok, :pid}) loads = [ Loa...
23.97619
78
0.620655
1c587bcaf13a1dfdfb14ba26f4de29024e1eb4bd
328
ex
Elixir
lib/mastani_server_web/middleware/see_me.ex
DavidAlphaFox/coderplanets_server
3fd47bf3bba6cc04c9a34698201a60ad2f3e8254
[ "Apache-2.0" ]
1
2019-05-07T15:03:54.000Z
2019-05-07T15:03:54.000Z
lib/mastani_server_web/middleware/see_me.ex
DavidAlphaFox/coderplanets_server
3fd47bf3bba6cc04c9a34698201a60ad2f3e8254
[ "Apache-2.0" ]
null
null
null
lib/mastani_server_web/middleware/see_me.ex
DavidAlphaFox/coderplanets_server
3fd47bf3bba6cc04c9a34698201a60ad2f3e8254
[ "Apache-2.0" ]
null
null
null
# --- # Absinthe.Middleware behaviour # see https://hexdocs.pm/absinthe/Absinthe.Middleware.html#content # --- defmodule MastaniServerWeb.Middleware.SeeMe do @behaviour Absinthe.Middleware def call(resolution, _) do # IO.inspect("see me") # IO.inspect resolution.arguments, label: "see me" resolution ...
23.428571
66
0.72561
1c588fc25d13ddd073b88baa9cc31738b9324041
2,628
exs
Elixir
test/mix/tasks/ex_doc_groups_test.exs
randycoulman/boundary
2fdea46e702400c152670262d5ca1f31edbd4fa1
[ "MIT" ]
490
2019-09-07T10:33:15.000Z
2022-03-30T09:50:03.000Z
test/mix/tasks/ex_doc_groups_test.exs
randycoulman/boundary
2fdea46e702400c152670262d5ca1f31edbd4fa1
[ "MIT" ]
35
2019-09-07T10:49:25.000Z
2022-03-18T10:02:34.000Z
test/mix/tasks/ex_doc_groups_test.exs
randycoulman/boundary
2fdea46e702400c152670262d5ca1f31edbd4fa1
[ "MIT" ]
16
2019-09-08T15:09:16.000Z
2022-02-12T21:40:14.000Z
defmodule Mix.Tasks.Boundary.ExDocGroupsTest do use ExUnit.Case, async: false alias Boundary.TestProject @module_setup """ defmodule Boundary1 do use Boundary, deps: [], exports: [] defmodule Foo do defmodule Bar do end end defmodule Bar do end defmodule Baz do end end defmodule...
26.019802
102
0.625571
1c5890a463ccadb05e7f8965c91f1feae6c90ad9
7,613
ex
Elixir
clients/sheets/lib/google_api/sheets/v4/model/response.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
clients/sheets/lib/google_api/sheets/v4/model/response.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
clients/sheets/lib/google_api/sheets/v4/model/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 ...
62.917355
186
0.746486
1c58c34c4dc8d4a57d236401e969bf3a69384248
762
exs
Elixir
apps/tools_1/rel/config.exs
WhiteRookPL/elixir-fire-brigade-workshop
1c6183339fc623842a09f4d10be75bcecf2c37e7
[ "MIT" ]
14
2017-08-09T14:21:47.000Z
2022-03-11T04:10:49.000Z
apps/tools_1/rel/config.exs
nicholasjhenry/elixir-fire-brigade-workshop
1c6183339fc623842a09f4d10be75bcecf2c37e7
[ "MIT" ]
null
null
null
apps/tools_1/rel/config.exs
nicholasjhenry/elixir-fire-brigade-workshop
1c6183339fc623842a09f4d10be75bcecf2c37e7
[ "MIT" ]
15
2017-09-05T15:43:53.000Z
2020-04-13T16:20:18.000Z
use Mix.Releases.Config, default_release: :default, default_environment: Mix.env() cookie_dev = :"DEV_COOKIE" environment :dev do set dev_mode: true set include_erts: false set cookie: cookie_dev set overlay_vars: [ cookie: cookie_dev ] set vm_args: "rel/vm.args" end cookie_prod = :"PROD_COOKIE" environ...
21.771429
43
0.707349
1c58d4a44edb14920ffb9c3245a5714bdcb981b7
1,764
ex
Elixir
web/models/organization.ex
roryqueue/code-corps-api
f23007e13fed2d7264fd2e2e97b1497488fb54ba
[ "MIT" ]
null
null
null
web/models/organization.ex
roryqueue/code-corps-api
f23007e13fed2d7264fd2e2e97b1497488fb54ba
[ "MIT" ]
null
null
null
web/models/organization.ex
roryqueue/code-corps-api
f23007e13fed2d7264fd2e2e97b1497488fb54ba
[ "MIT" ]
null
null
null
defmodule CodeCorps.Organization do @moduledoc """ Represents an organization on Code Corps, e.g. "Code Corps" itself. """ use Arc.Ecto.Schema use CodeCorps.Web, :model import CodeCorps.Base64ImageUploader import CodeCorps.ModelHelpers import CodeCorps.Validators.SlugValidator alias CodeCorps.Slugged...
26.727273
95
0.696712
1c58d9ed79331f1106c97245429eb19cbb6610aa
702
ex
Elixir
lib/browser_launcher.ex
kentaro/browser_launcher
91b96974a24ba5ac100a3e264fff118fa09f7576
[ "MIT" ]
1
2020-12-23T22:25:04.000Z
2020-12-23T22:25:04.000Z
lib/browser_launcher.ex
kentaro/browser_launcher
91b96974a24ba5ac100a3e264fff118fa09f7576
[ "MIT" ]
null
null
null
lib/browser_launcher.ex
kentaro/browser_launcher
91b96974a24ba5ac100a3e264fff118fa09f7576
[ "MIT" ]
null
null
null
defmodule BrowserLauncher do @moduledoc File.read!("./README.md") @doc """ Opens URL with the default browser. URL can be either remote location or local file path. ## Examples iex> BrowserLauncher.open("https://elixir-lang.org/") {"", 0} iex> BrowserLauncher.open("file:///path/to/your.html...
16.714286
91
0.578348
1c590d81ae7dcfdf6e2bb7cf8ec95b2721253f83
1,637
ex
Elixir
lib/game/command/equipment.ex
stevegrossi/ex_venture
e02d5a63fdb882d92cfb4af3e15f7b48ad7054aa
[ "MIT" ]
null
null
null
lib/game/command/equipment.ex
stevegrossi/ex_venture
e02d5a63fdb882d92cfb4af3e15f7b48ad7054aa
[ "MIT" ]
null
null
null
lib/game/command/equipment.ex
stevegrossi/ex_venture
e02d5a63fdb882d92cfb4af3e15f7b48ad7054aa
[ "MIT" ]
null
null
null
defmodule Game.Command.Equipment do @moduledoc """ The "equipment" command """ use Game.Command alias Game.Format.Items, as: FormatItems alias Game.Items commands([{"equipment", ["eq"]}], parse: false) @impl Game.Command def help(:topic), do: "Equipment" def help(:short), do: "View your characte...
22.736111
82
0.619426
1c591011d054ea958e00af4d85d379bb1e46385e
2,717
ex
Elixir
lib/mix/tasks/conform.archive.ex
aforward-oss/conform
794ba6ae9554b59c787632a1f5fa7a66e5c5da6e
[ "MIT" ]
null
null
null
lib/mix/tasks/conform.archive.ex
aforward-oss/conform
794ba6ae9554b59c787632a1f5fa7a66e5c5da6e
[ "MIT" ]
null
null
null
lib/mix/tasks/conform.archive.ex
aforward-oss/conform
794ba6ae9554b59c787632a1f5fa7a66e5c5da6e
[ "MIT" ]
1
2021-07-01T09:02:19.000Z
2021-07-01T09:02:19.000Z
defmodule Mix.Tasks.Conform.Archive do @moduledoc """ Create an archive with the app.schema.ez name near the application's schema. An archive contains dependencies which are noted in the schema. """ def run([schema_path]) do Mix.Tasks.Loadpaths.run([]) curr_path = File.cwd! schema_dir = Path.dir...
41.166667
86
0.548031
1c591c7a2c0e624c4d6f198facf0378bd519f17c
6,531
ex
Elixir
lib/mix/lib/releases/config/providers/elixir.ex
TokiTori/distillery
9158df6d17c8b70a201ade4ca0d3f243245ceebd
[ "MIT" ]
null
null
null
lib/mix/lib/releases/config/providers/elixir.ex
TokiTori/distillery
9158df6d17c8b70a201ade4ca0d3f243245ceebd
[ "MIT" ]
null
null
null
lib/mix/lib/releases/config/providers/elixir.ex
TokiTori/distillery
9158df6d17c8b70a201ade4ca0d3f243245ceebd
[ "MIT" ]
null
null
null
defmodule Mix.Releases.Config.Providers.Elixir do @moduledoc """ Provides loading of Elixir's `config.exs` config file. """ use Mix.Releases.Config.Provider alias Mix.Releases.Logger @impl Mix.Releases.Config.Provider def init([path]) do if File.exists?(path) do path |> Mix.Config.read!...
30.096774
101
0.616751
1c59a154e620151da8bf6d845fb518160b8b5443
12,731
ex
Elixir
installer/lib/phx_new/generator.ex
udanieli/phoenix
40b79c8d227eadb2af90f19b26c297a87f3b69aa
[ "MIT" ]
null
null
null
installer/lib/phx_new/generator.ex
udanieli/phoenix
40b79c8d227eadb2af90f19b26c297a87f3b69aa
[ "MIT" ]
null
null
null
installer/lib/phx_new/generator.ex
udanieli/phoenix
40b79c8d227eadb2af90f19b26c297a87f3b69aa
[ "MIT" ]
null
null
null
defmodule Phx.New.Generator do @moduledoc false import Mix.Generator alias Phx.New.{Project} @phoenix Path.expand("../..", __DIR__) @phoenix_version Version.parse!(Mix.Project.config()[:version]) @callback prepare_project(Project.t()) :: Project.t() @callback generate(Project.t()) :: Project.t() defm...
31.05122
105
0.628544
1c59b12a230616a100f2dffd91983ab90c1865ee
1,086
exs
Elixir
mix.exs
ericmj/logster
49487868ab9230c1649f559d02f9e1db5ce1d0bd
[ "MIT" ]
null
null
null
mix.exs
ericmj/logster
49487868ab9230c1649f559d02f9e1db5ce1d0bd
[ "MIT" ]
null
null
null
mix.exs
ericmj/logster
49487868ab9230c1649f559d02f9e1db5ce1d0bd
[ "MIT" ]
null
null
null
defmodule Logster.Mixfile do use Mix.Project def project do [app: :logster, version: "0.8.0", name: "Logster", description: "Easily parsable single-line plain text and JSON logger for Plug and Phoenix applications", package: package(), source_url: "https://github.com/navinpeiris/logste...
26.487805
109
0.578269
1c59f4a56c862bfd8a73100f9f09fb3d3929d577
2,745
ex
Elixir
lib/consul/event.ex
am-kantox/consul-ex
b1c5e1f44f1afe4fd6bd55010832d17b8284b547
[ "MIT" ]
null
null
null
lib/consul/event.ex
am-kantox/consul-ex
b1c5e1f44f1afe4fd6bd55010832d17b8284b547
[ "MIT" ]
null
null
null
lib/consul/event.ex
am-kantox/consul-ex
b1c5e1f44f1afe4fd6bd55010832d17b8284b547
[ "MIT" ]
null
null
null
# # The MIT License (MIT) # # Copyright (c) 2014-2015 Undead Labs, LLC # defmodule Consul.Event do alias Consul.Endpoint use Consul.Endpoint, handler: Consul.Handler.Base defstruct id: nil, name: nil, payload: nil, node_filter: nil, service_filter: nil, ...
22.68595
72
0.554827
1c59fd8934c3a821eb100b1c2ba68ee8f51cdd53
2,080
ex
Elixir
lib/couch_normalizer/scenario/field_methods.ex
Zatvobor/couch_normalizer
1bbde7b7235220c7e2aed9924e3781f423175afd
[ "Apache-2.0" ]
1
2015-02-23T14:25:10.000Z
2015-02-23T14:25:10.000Z
lib/couch_normalizer/scenario/field_methods.ex
Zatvobor/couch_normalizer
1bbde7b7235220c7e2aed9924e3781f423175afd
[ "Apache-2.0" ]
2
2015-03-05T17:02:38.000Z
2015-03-30T10:33:29.000Z
lib/couch_normalizer/scenario/field_methods.ex
Zatvobor/couch_normalizer
1bbde7b7235220c7e2aed9924e3781f423175afd
[ "Apache-2.0" ]
null
null
null
defmodule CouchNormalizer.Scenario.FieldMethods do @moduledoc """ This module provides convenience for getting/creating/removing/updating fields from current or second dbs. """ @doc false defmacro field(name) do quote do: field(var!(body), unquote(name)) end @doc false defmacro field(body, name)...
24.470588
86
0.636538
1c5a80f4312c1e492c3b8b9da7ea3b53fb4dd468
1,272
ex
Elixir
apps/ui/lib/ui/channels/user_socket.ex
solomonhawk/gifs-to-gifs-reborn
fbe829a73bba45dc015eb091e9016d48a422bd9d
[ "MIT" ]
3
2020-05-01T17:14:23.000Z
2021-05-15T16:22:43.000Z
apps/ui/lib/ui/channels/user_socket.ex
solomonhawk/gifs-to-gifs-reborn
fbe829a73bba45dc015eb091e9016d48a422bd9d
[ "MIT" ]
13
2019-08-14T15:44:24.000Z
2021-09-01T20:17:55.000Z
apps/ui/lib/ui/channels/user_socket.ex
solomonhawk/gifs-to-gifs-reborn
fbe829a73bba45dc015eb091e9016d48a422bd9d
[ "MIT" ]
null
null
null
defmodule Ui.UserSocket do use Phoenix.Socket ## Channels channel "games:*", Ui.GameChannel # Socket params are passed from the client and can # be used to verify and authenticate a user. After # verification, you can put default assigns into # the socket that will be set for all channels, ie # # ...
30.285714
83
0.669025
1c5aaf71d69be8aa0547deb207390933c2e77784
3,181
exs
Elixir
test/combinators_test.exs
qubbit/vortex
2c73bd5ab1c5173db1e9e784e9d41ca787ee4613
[ "MIT" ]
null
null
null
test/combinators_test.exs
qubbit/vortex
2c73bd5ab1c5173db1e9e784e9d41ca787ee4613
[ "MIT" ]
null
null
null
test/combinators_test.exs
qubbit/vortex
2c73bd5ab1c5173db1e9e784e9d41ca787ee4613
[ "MIT" ]
null
null
null
defmodule CombinatorTest do use ExUnit.Case import Combinators doctest Combinators describe "str" do test "recognizes simple strings" do input = State.new("hello world") hello = str("hello") world = str("world") assert hello.(input) assert nil == world.(input) end t...
26.508333
84
0.593524
1c5ab49d8110a3049dcb2788ec1de5f4accf4412
578
exs
Elixir
exercises/practice/word-count/mix.exs
devtayls/elixir
67824de8209ff1b6ed2f736deedfb5bd815130ca
[ "MIT" ]
343
2017-06-22T16:28:28.000Z
2022-03-25T21:33:32.000Z
exercises/practice/word-count/mix.exs
devtayls/elixir
67824de8209ff1b6ed2f736deedfb5bd815130ca
[ "MIT" ]
583
2017-06-19T10:48:40.000Z
2022-03-28T21:43:12.000Z
exercises/practice/word-count/mix.exs
devtayls/elixir
67824de8209ff1b6ed2f736deedfb5bd815130ca
[ "MIT" ]
228
2017-07-05T07:09:32.000Z
2022-03-27T08:59:08.000Z
defmodule WordCount.MixProject do use Mix.Project def project do [ app: :word_count, version: "0.1.0", # elixir: "~> 1.8", start_permanent: Mix.env() == :prod, deps: deps() ] end # Run "mix help compile.app" to learn about applications. def application do [ ex...
19.931034
87
0.577855
1c5ad5274f8ab585f2fecd1c42b2212ac724a228
1,649
exs
Elixir
apps/ecto_gen_error_reproduce_web/mix.exs
TheMaikXX/ecto_gen_error_reproduce_umbrella
14af47d24b17a9478c4a67715995fa45fc9cc02a
[ "MIT" ]
null
null
null
apps/ecto_gen_error_reproduce_web/mix.exs
TheMaikXX/ecto_gen_error_reproduce_umbrella
14af47d24b17a9478c4a67715995fa45fc9cc02a
[ "MIT" ]
null
null
null
apps/ecto_gen_error_reproduce_web/mix.exs
TheMaikXX/ecto_gen_error_reproduce_umbrella
14af47d24b17a9478c4a67715995fa45fc9cc02a
[ "MIT" ]
null
null
null
defmodule EctoGenErrorReproduceWeb.MixProject do use Mix.Project def project do [ app: :ecto_gen_error_reproduce_web, version: "0.1.0", build_path: "../../_build", config_path: "../../config/config.exs", deps_path: "../../deps", lockfile: "../../mix.lock", elixir: "~> ...
26.596774
67
0.59248
1c5b55c3e531b03484ae33fdc96e83fe56ca1c51
2,450
ex
Elixir
lib/mix/tasks/g.ex
dominikknafelj/arc
f8850cafae821d0c00b6f6803c5196e7bbc1e332
[ "Apache-2.0" ]
null
null
null
lib/mix/tasks/g.ex
dominikknafelj/arc
f8850cafae821d0c00b6f6803c5196e7bbc1e332
[ "Apache-2.0" ]
null
null
null
lib/mix/tasks/g.ex
dominikknafelj/arc
f8850cafae821d0c00b6f6803c5196e7bbc1e332
[ "Apache-2.0" ]
null
null
null
defmodule Mix.Tasks.Arc do defmodule G do use Mix.Task import Mix.Generator import Mix.Utils, only: [camelize: 1, underscore: 1] @shortdoc "For Arc definition generation code" @moduledoc """ A task for generating arc uploader modules. """ def run([model_name]) do app_name = ...
30.246914
100
0.644898
1c5bb10a100956cb7d41b6ae3b68052c44ec0a44
92
exs
Elixir
test/coophub/cache_warmer_test.exs
peth-yursick/coophub
27ef7ffcdace4eb377535f8f1caa47490b45ef22
[ "MIT" ]
49
2019-12-11T16:40:52.000Z
2022-01-14T12:44:14.000Z
test/coophub/cache_warmer_test.exs
peth-yursick/coophub
27ef7ffcdace4eb377535f8f1caa47490b45ef22
[ "MIT" ]
47
2019-12-12T20:03:10.000Z
2021-10-14T14:25:00.000Z
test/coophub/cache_warmer_test.exs
peth-yursick/coophub
27ef7ffcdace4eb377535f8f1caa47490b45ef22
[ "MIT" ]
28
2019-12-11T17:15:03.000Z
2021-09-17T09:19:44.000Z
defmodule Coophub.CacheWarmerTest do use Coophub.DataCase describe "WIP!" do end end
13.142857
36
0.76087
1c5beacbbfdae20baf0aa22102216d4ca012786f
529
ex
Elixir
lib/remote_retro_web/channels/presence_utils.ex
birkand/remote_retro
f7fef13aa8779cd4a8a9fd73d2fbbd5ae537634c
[ "MIT" ]
null
null
null
lib/remote_retro_web/channels/presence_utils.ex
birkand/remote_retro
f7fef13aa8779cd4a8a9fd73d2fbbd5ae537634c
[ "MIT" ]
null
null
null
lib/remote_retro_web/channels/presence_utils.ex
birkand/remote_retro
f7fef13aa8779cd4a8a9fd73d2fbbd5ae537634c
[ "MIT" ]
null
null
null
defmodule RemoteRetroWeb.PresenceUtils do @moduledoc """ Helpers for retro user presence. """ alias RemoteRetroWeb.Presence alias RemoteRetro.User alias Phoenix.Token def track_timestamped(%{assigns: assigns} = socket) do case Token.verify(socket, "user", assigns.user_token, max_age: 86_400) do ...
27.842105
77
0.674858
1c5bf15f04023e42bd9ea58e578f0bd4d418d4fa
1,529
exs
Elixir
apps/commuter_rail_boarding/test/trip_cache_test.exs
mbta/commuter_rail_boarding
213eb4ac72e5c678b06f3298e98c36b9a9dbd1ff
[ "MIT" ]
1
2022-01-30T20:53:07.000Z
2022-01-30T20:53:07.000Z
apps/commuter_rail_boarding/test/trip_cache_test.exs
mbta/commuter_rail_boarding
213eb4ac72e5c678b06f3298e98c36b9a9dbd1ff
[ "MIT" ]
47
2021-05-05T10:31:05.000Z
2022-03-30T22:18:14.000Z
apps/commuter_rail_boarding/test/trip_cache_test.exs
mbta/commuter_rail_boarding
213eb4ac72e5c678b06f3298e98c36b9a9dbd1ff
[ "MIT" ]
1
2021-05-14T00:35:08.000Z
2021-05-14T00:35:08.000Z
defmodule TripCacheTest do @moduledoc false use ExUnit.Case import TripCache @route_id "CR-Worcester" @direction_id 1 # need a roughly-current date in order to look it up in the API @datetime DateTime.utc_now() describe "route_direction_id/1" do test "returns :error for an invalid trip" do ...
31.204082
81
0.690647
1c5c2239cfa40de7bdd132fcf67a95858635f3fb
705
ex
Elixir
lib/eltix_web/gettext.ex
evanbattaglia/eltix
0e594b91d877c027d8f473abb3dcb2b617129976
[ "MIT" ]
null
null
null
lib/eltix_web/gettext.ex
evanbattaglia/eltix
0e594b91d877c027d8f473abb3dcb2b617129976
[ "MIT" ]
null
null
null
lib/eltix_web/gettext.ex
evanbattaglia/eltix
0e594b91d877c027d8f473abb3dcb2b617129976
[ "MIT" ]
null
null
null
defmodule EltixWeb.Gettext do @moduledoc """ A module providing Internationalization with a gettext-based API. By using [Gettext](https://hexdocs.pm/gettext), your module gains a set of macros for translations, for example: import EltixWeb.Gettext # Simple translation gettext("Here is the s...
28.2
72
0.675177
1c5c3c93622c45d422c303d411eef611368022ef
27
exs
Elixir
.dialyzer_ignore.exs
XiaoTeTech/instream
be469d2d8f94c9537a64b052b2dfd583c784d086
[ "Apache-2.0" ]
204
2015-06-04T06:38:57.000Z
2022-01-30T08:56:33.000Z
.dialyzer_ignore.exs
XiaoTeTech/instream
be469d2d8f94c9537a64b052b2dfd583c784d086
[ "Apache-2.0" ]
71
2015-05-24T02:08:28.000Z
2022-01-10T17:13:27.000Z
.dialyzer_ignore.exs
XiaoTeTech/instream
be469d2d8f94c9537a64b052b2dfd583c784d086
[ "Apache-2.0" ]
41
2015-09-05T21:24:04.000Z
2021-11-10T02:52:48.000Z
[ ~r|.*/nimble_csv/.*| ]
6.75
22
0.407407
1c5c45e308e2e5c77089b6fcc06263f4ddbb331d
506
ex
Elixir
2016/day13/lib/day13/cubicle.ex
matt-thomson/advent-of-code
feff903151284240a9d3f0c84cdfe52d8d11ef06
[ "MIT" ]
null
null
null
2016/day13/lib/day13/cubicle.ex
matt-thomson/advent-of-code
feff903151284240a9d3f0c84cdfe52d8d11ef06
[ "MIT" ]
null
null
null
2016/day13/lib/day13/cubicle.ex
matt-thomson/advent-of-code
feff903151284240a9d3f0c84cdfe52d8d11ef06
[ "MIT" ]
null
null
null
defmodule Day13.Cubicle do @moduledoc """ Functions for working with cubicles. """ def neighbours({x, y}) do [{x - 1, y}, {x + 1, y}, {x, y - 1}, {x, y + 1}] |> Enum.filter(&inside_building?/1) end def wall?({x, y}, input) do value = x * x + 3 * x + 2 * x * y + y + y * y + input value = ...
21.083333
57
0.494071
1c5c71afe10597a2742096456e7775aa9022fd73
1,752
ex
Elixir
lib/cloudflare_stream/tus/client/head.ex
reetou/cloudflare_stream_ex
eb8715d788a77e0def5d47a9ee336fd1374fe209
[ "MIT" ]
null
null
null
lib/cloudflare_stream/tus/client/head.ex
reetou/cloudflare_stream_ex
eb8715d788a77e0def5d47a9ee336fd1374fe209
[ "MIT" ]
null
null
null
lib/cloudflare_stream/tus/client/head.ex
reetou/cloudflare_stream_ex
eb8715d788a77e0def5d47a9ee336fd1374fe209
[ "MIT" ]
null
null
null
defmodule CloudflareStream.TusClient.Head do @moduledoc false alias CloudflareStream.TusClient.Utils require Logger def request(url, headers \\ [], opts \\ []) do url |> HTTPoison.head(headers, Utils.httpoison_opts([], opts)) |> parse() end defp parse({:ok, %{status_code: status} = resp}) whe...
25.028571
79
0.612443
1c5cabbf4d66b6d17cdd89220e280ea2e65c7787
754
ex
Elixir
lib/beacon_web/live_helpers.ex
treble37/beacon
12cab02ec8bb072582ffaab60d9f21a65588e392
[ "MIT" ]
98
2021-12-22T04:37:58.000Z
2022-02-27T22:53:25.000Z
lib/beacon_web/live_helpers.ex
treble37/beacon
12cab02ec8bb072582ffaab60d9f21a65588e392
[ "MIT" ]
5
2021-12-24T01:10:11.000Z
2022-03-25T17:35:37.000Z
lib/beacon_web/live_helpers.ex
treble37/beacon
12cab02ec8bb072582ffaab60d9f21a65588e392
[ "MIT" ]
7
2021-12-24T01:09:36.000Z
2022-03-01T14:46:41.000Z
defmodule BeaconWeb.LiveHelpers do import Phoenix.LiveView.Helpers @doc """ Renders a component inside the `BeaconWeb.PageManagement.ModalComponent` component. The rendered modal receives a `:return_to` option to properly update the URL when the modal is closed. ## Examples <%= live_modal BeaconWe...
31.416667
85
0.709549
1c5cb1e482eb064834c76f907abf44df2ea0c7a0
804
ex
Elixir
util/util.ex
mason-bially/aoc-2021
866ffc7e85f690c2ad9195da2304bfb515819023
[ "MIT" ]
null
null
null
util/util.ex
mason-bially/aoc-2021
866ffc7e85f690c2ad9195da2304bfb515819023
[ "MIT" ]
null
null
null
util/util.ex
mason-bially/aoc-2021
866ffc7e85f690c2ad9195da2304bfb515819023
[ "MIT" ]
null
null
null
defmodule Util do def parse_comma_while(c, acc) do cond do c == "," -> {:cont, acc, ""} true -> {:cont, acc <> c} end end def parse_after_emit(acc) do cond do acc != "" -> {:cont, acc, ""} true -> {:cont, ""} end end def stream_comma_seperated(enum) do Stream.chun...
19.142857
75
0.559701
1c5cbbf2e7d543ac84f24e078cd4c16fb87654f7
2,904
ex
Elixir
clients/storage_transfer/lib/google_api/storage_transfer/v1/model/schedule.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
1
2018-12-03T23:43:10.000Z
2018-12-03T23:43:10.000Z
clients/storage_transfer/lib/google_api/storage_transfer/v1/model/schedule.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
clients/storage_transfer/lib/google_api/storage_transfer/v1/model/schedule.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 ...
46.095238
176
0.742424
1c5ce463b5d79c198db47d3634f76c12a293b868
1,069
exs
Elixir
config/dev.exs
hgaard/RethinkLogs-Elixir
45fd72938bf7c953c76e867687fca0e9a8e05115
[ "MIT" ]
null
null
null
config/dev.exs
hgaard/RethinkLogs-Elixir
45fd72938bf7c953c76e867687fca0e9a8e05115
[ "MIT" ]
null
null
null
config/dev.exs
hgaard/RethinkLogs-Elixir
45fd72938bf7c953c76e867687fca0e9a8e05115
[ "MIT" ]
null
null
null
use Mix.Config # For development, we disable any cache and enable # debugging and code reloading. # # The watchers configuration can be used to run external # watchers to your application. For example, we use it # with brunch.io to recompile .js and .css sources. config :rethink_logs, RethinkLogs.Endpoint, http: [po...
31.441176
74
0.710945
1c5d39b377a2b91fe5ebfbf4f6616d21a4dcffd2
1,119
exs
Elixir
config/config.exs
styx/whenever.ex
c3d57d6323f3681b790599291a3009e2000782d9
[ "MIT" ]
null
null
null
config/config.exs
styx/whenever.ex
c3d57d6323f3681b790599291a3009e2000782d9
[ "MIT" ]
null
null
null
config/config.exs
styx/whenever.ex
c3d57d6323f3681b790599291a3009e2000782d9
[ "MIT" ]
null
null
null
# This file is responsible for configuring your application # and its dependencies with the aid of the Mix.Config module. use Mix.Config # This configuration is loaded before any dependency and is restricted # to this project. If another project depends on this project, this # file won't be loaded nor affect the paren...
36.096774
73
0.751564
1c5d5b1f2bbec61e1003a2274b47d33ef6bed88d
1,023
ex
Elixir
apps/ewallet/lib/ewallet/policies/mint_policy.ex
AndonMitev/EWallet
898cde38933d6f134734528b3e594eedf5fa50f3
[ "Apache-2.0" ]
322
2018-02-28T07:38:44.000Z
2020-05-27T23:09:55.000Z
apps/ewallet/lib/ewallet/policies/mint_policy.ex
AndonMitev/EWallet
898cde38933d6f134734528b3e594eedf5fa50f3
[ "Apache-2.0" ]
643
2018-02-28T12:05:20.000Z
2020-05-22T08:34:38.000Z
apps/ewallet/lib/ewallet/policies/mint_policy.ex
AndonMitev/EWallet
898cde38933d6f134734528b3e594eedf5fa50f3
[ "Apache-2.0" ]
63
2018-02-28T10:57:06.000Z
2020-05-27T23:10:38.000Z
# Copyright 2018-2019 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 ...
33
75
0.751711
1c5d64117e6bb5953161dd58fc3f96fa4031f0d9
71
exs
Elixir
postgis-ecto/gis_demo/test/test_helper.exs
wisq/slides
e0a1b9dd8187b82c8772b4e6ab20f8b069e1feb1
[ "MIT" ]
null
null
null
postgis-ecto/gis_demo/test/test_helper.exs
wisq/slides
e0a1b9dd8187b82c8772b4e6ab20f8b069e1feb1
[ "MIT" ]
null
null
null
postgis-ecto/gis_demo/test/test_helper.exs
wisq/slides
e0a1b9dd8187b82c8772b4e6ab20f8b069e1feb1
[ "MIT" ]
null
null
null
ExUnit.start() Ecto.Adapters.SQL.Sandbox.mode(GisDemo.Repo, :manual)
14.2
53
0.760563
1c5d77a1d1cbfae51ef45b6369712f13284c49c5
156
ex
Elixir
testData/org/elixir_lang/parser_definition/bracket_operation_parsing_test_case/AtomKeyword.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/bracket_operation_parsing_test_case/AtomKeyword.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/bracket_operation_parsing_test_case/AtomKeyword.ex
keyno63/intellij-elixir
4033e319992c53ddd42a683ee7123a97b5e34f02
[ "Apache-2.0" ]
145
2015-01-15T11:37:16.000Z
2021-12-22T05:51:02.000Z
nil[key: value] nil [key: value] true[()] true [()] false[matched_expression] false [matched_expression] nil[matched_expression,] nil [matched_expression,]
17.333333
26
0.75641
1c5d7a4dba70a2cc0bbf9f28ff0c89f81afec926
451
ex
Elixir
lib/documents_design_web/controllers/plugs/needs_first_user.ex
documents-org/documents.design-el
6976254e175232afe5e913c29b04c13a86d2e9a2
[ "MIT" ]
null
null
null
lib/documents_design_web/controllers/plugs/needs_first_user.ex
documents-org/documents.design-el
6976254e175232afe5e913c29b04c13a86d2e9a2
[ "MIT" ]
null
null
null
lib/documents_design_web/controllers/plugs/needs_first_user.ex
documents-org/documents.design-el
6976254e175232afe5e913c29b04c13a86d2e9a2
[ "MIT" ]
null
null
null
defmodule DocumentsDesignWeb.Plugs.NeedsFirstUser do import Plug.Conn import Phoenix.Controller @moduledoc """ Guards access to the app, to force the registration of a first user. """ def init(_params) do end def call(conn, _params) do if !DocumentsDesign.Accounts.has_user() do conn |...
20.5
83
0.685144
1c5da49f22c5b8c2d89f71be66faba0c2ff6333a
1,654
ex
Elixir
clients/big_query/lib/google_api/big_query/v2/model/arima_order.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/arima_order.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/arima_order.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...
31.207547
84
0.692261
1c5dbad34af1f0c3382729a8f84ae50af69092a3
283
exs
Elixir
priv/repo/migrations/20210429142928_create_users_table.exs
vbrazo/chat_elixir_api
f2595d123934014b3a7c1b3b63b987fa3df5b3ad
[ "MIT" ]
2
2021-04-30T08:30:26.000Z
2021-04-30T16:20:39.000Z
priv/repo/migrations/20210429142928_create_users_table.exs
vbrazo/chat_elixir_api
f2595d123934014b3a7c1b3b63b987fa3df5b3ad
[ "MIT" ]
null
null
null
priv/repo/migrations/20210429142928_create_users_table.exs
vbrazo/chat_elixir_api
f2595d123934014b3a7c1b3b63b987fa3df5b3ad
[ "MIT" ]
null
null
null
defmodule ChatApi.Repo.Migrations.CreateUsersTable do use Ecto.Migration def change do create table(:users) do add(:email, :string) add(:password, :string) timestamps(inserted_at: :created_at) end create(unique_index(:users, [:email])) end end
18.866667
53
0.678445
1c5dc15836d184dbd1b3c151ed7a9fd7c966b270
12,660
exs
Elixir
test/mastani_server_web/query/cms/video_comment_test.exs
DavidAlphaFox/coderplanets_server
3fd47bf3bba6cc04c9a34698201a60ad2f3e8254
[ "Apache-2.0" ]
1
2019-05-07T15:03:54.000Z
2019-05-07T15:03:54.000Z
test/mastani_server_web/query/cms/video_comment_test.exs
DavidAlphaFox/coderplanets_server
3fd47bf3bba6cc04c9a34698201a60ad2f3e8254
[ "Apache-2.0" ]
null
null
null
test/mastani_server_web/query/cms/video_comment_test.exs
DavidAlphaFox/coderplanets_server
3fd47bf3bba6cc04c9a34698201a60ad2f3e8254
[ "Apache-2.0" ]
null
null
null
defmodule MastaniServer.Test.Query.VideoComment do use MastaniServer.TestTools alias MastaniServer.CMS setup do {:ok, video} = db_insert(:video) {:ok, user} = db_insert(:user) {:ok, community} = db_insert(:community) guest_conn = simu_conn(:guest) user_conn = simu_conn(:user) {:ok, ~m(...
33.315789
98
0.594708
1c5ddbe7cde4dcc5ac047905014edb397fe4be46
2,323
ex
Elixir
lib/mailjex/contact.ex
dwarner/mailjex
d611f2e2d70b4e6567b22dd3ef19b792dcbf2d79
[ "MIT" ]
8
2017-10-10T15:51:33.000Z
2021-08-18T01:06:49.000Z
lib/mailjex/contact.ex
dwarner/mailjex
d611f2e2d70b4e6567b22dd3ef19b792dcbf2d79
[ "MIT" ]
5
2018-05-23T15:03:15.000Z
2019-11-17T16:30:18.000Z
lib/mailjex/contact.ex
dwarner/mailjex
d611f2e2d70b4e6567b22dd3ef19b792dcbf2d79
[ "MIT" ]
4
2018-11-16T15:45:22.000Z
2019-11-16T16:19:48.000Z
defmodule Mailjex.Contact do @moduledoc """ Exposes functions for managing contacts on MailJet. """ use GenServer alias Mailjex.Api.Contact @behaviour Mailjex.Behaviour.Contact @doc false def start_link do initial_state = %{} GenServer.start_link(__MODULE__, initial_state, [name: __MODULE__]) ...
21.509259
76
0.600517
1c5e1d15c1e62cf8c561188d30f8c53d20cbb968
709
ex
Elixir
lib/code_corps/model/preview.ex
fikape/code-corps-api
c21674b0b2a19fa26945c94268db8894420ca181
[ "MIT" ]
275
2015-06-23T00:20:51.000Z
2021-08-19T16:17:37.000Z
lib/code_corps/model/preview.ex
fikape/code-corps-api
c21674b0b2a19fa26945c94268db8894420ca181
[ "MIT" ]
1,304
2015-06-26T02:11:54.000Z
2019-12-12T21:08:00.000Z
lib/code_corps/model/preview.ex
fikape/code-corps-api
c21674b0b2a19fa26945c94268db8894420ca181
[ "MIT" ]
140
2016-01-01T18:19:47.000Z
2020-11-22T06:24:47.000Z
defmodule CodeCorps.Preview do @moduledoc """ Represents an category on Code Corps, e.g. "Society" and "Technology". """ use CodeCorps.Model alias CodeCorps.Services.MarkdownRendererService @type t :: %__MODULE__{} schema "previews" do field :body, :string field :markdown, :string belongs_...
22.870968
72
0.67701
1c5e2e6ccaf3faef05581b83c7e8474eb3d8cef3
1,441
ex
Elixir
lib/live_view_examples/tabs/system.ex
zorbash/observer_live
f78af309a85783ac61d97ba9bb5ffd7a64ec9823
[ "MIT" ]
219
2019-04-02T02:51:59.000Z
2021-11-10T22:14:17.000Z
lib/live_view_examples/tabs/system.ex
zorbash/observer_live
f78af309a85783ac61d97ba9bb5ffd7a64ec9823
[ "MIT" ]
1
2021-05-08T11:51:29.000Z
2021-05-08T11:51:29.000Z
lib/live_view_examples/tabs/system.ex
zorbash/observer_live
f78af309a85783ac61d97ba9bb5ffd7a64ec9823
[ "MIT" ]
14
2019-04-02T07:19:38.000Z
2021-03-27T19:19:45.000Z
defmodule LiveViewExamples.Tabs.System do import LiveViewExamples.Format alias LiveViewExamples.Tabs.Home @allocators [ :binary_alloc, :driver_alloc, :eheap_alloc, :ets_alloc, :fix_alloc, :ll_alloc, :sl_alloc, :std_alloc, :temp_alloc ] def collect(%{stats: stats, setting...
26.2
89
0.639139
1c5e34c6ec90eb369a1d869a70de51707e7fff06
321
ex
Elixir
apps/api/web/controllers/sensors_controller.ex
elicopter/core
7731dc7558dea39bd1c473ab9e512c9db9e1b2c9
[ "MIT" ]
39
2016-11-01T07:21:51.000Z
2021-02-05T20:19:02.000Z
apps/api/web/controllers/sensors_controller.ex
elicopter/core
7731dc7558dea39bd1c473ab9e512c9db9e1b2c9
[ "MIT" ]
null
null
null
apps/api/web/controllers/sensors_controller.ex
elicopter/core
7731dc7558dea39bd1c473ab9e512c9db9e1b2c9
[ "MIT" ]
null
null
null
defmodule Api.SensorsController do use Api.Web, :controller def index(conn, _params) do sensors = Brain.Sensors.Supervisor.registered_sensors() |> Enum.map(fn sensor -> {:ok, snapshot} = GenServer.call(sensor, :snapshot) snapshot end) render conn, "index.json", %{sensors: sensors} end end...
26.75
84
0.685358
1c5e3db27f1801adbd0a6106bbc3fa7112b358dd
1,772
ex
Elixir
clients/translate/lib/google_api/translate/v2/model/detections_resource_inner.ex
leandrocp/elixir-google-api
a86e46907f396d40aeff8668c3bd81662f44c71e
[ "Apache-2.0" ]
null
null
null
clients/translate/lib/google_api/translate/v2/model/detections_resource_inner.ex
leandrocp/elixir-google-api
a86e46907f396d40aeff8668c3bd81662f44c71e
[ "Apache-2.0" ]
null
null
null
clients/translate/lib/google_api/translate/v2/model/detections_resource_inner.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...
32.814815
113
0.733634
1c5e8a88b4daecf59e0159e5bbfcc88f59065df9
2,691
exs
Elixir
priv/repo/migrations/20151211222543_add_delete_constrains.exs
Benjamin-Philip/hexpm
6f38244f81bbabd234c660f46ea973849ba77a7f
[ "Apache-2.0" ]
691
2017-03-08T09:15:45.000Z
2022-03-23T22:04:47.000Z
priv/repo/migrations/20151211222543_add_delete_constrains.exs
Benjamin-Philip/hexpm
6f38244f81bbabd234c660f46ea973849ba77a7f
[ "Apache-2.0" ]
491
2017-03-07T12:58:42.000Z
2022-03-29T23:32:54.000Z
priv/repo/migrations/20151211222543_add_delete_constrains.exs
Benjamin-Philip/hexpm
6f38244f81bbabd234c660f46ea973849ba77a7f
[ "Apache-2.0" ]
200
2017-03-12T23:03:39.000Z
2022-03-05T17:55:52.000Z
defmodule Hexpm.Repo.Migrations.AddDeleteConstraints do use Ecto.Migration def up() do execute("ALTER TABLE keys DROP CONSTRAINT IF EXISTS keys_user_id_fkey") execute("ALTER TABLE package_owners DROP CONSTRAINT IF EXISTS package_owners_package_id_fkey") execute("ALTER TABLE package_owners DRO...
33.6375
98
0.705314
1c5ea203436805d706402e1542e95f5d211d9f5b
1,239
ex
Elixir
lib/placex/image_generator.ex
jnbt/placex
8b031f04df092ed94ba660acbc8f3fcd18d2beb8
[ "MIT" ]
3
2016-01-18T16:20:57.000Z
2017-08-02T18:04:19.000Z
lib/placex/image_generator.ex
jnbt/placex
8b031f04df092ed94ba660acbc8f3fcd18d2beb8
[ "MIT" ]
null
null
null
lib/placex/image_generator.ex
jnbt/placex
8b031f04df092ed94ba660acbc8f3fcd18d2beb8
[ "MIT" ]
null
null
null
defmodule Placex.ImageGenerator do @background_color "E0E0E0" @text_color "6D6D6D" @font Path.join([__DIR__, "..", "..", "priv", "Lato-Regular.ttf"]) @resolution 72 @sampling_factor 1 def render(description) do case call_convert(description) do {data, 0} -> data _ -> nil end e...
36.441176
95
0.489911
1c5ec16d20e48acde008b37c8ad807627845458a
408
ex
Elixir
lib/instagram_clone/notifications/notification.ex
elixirprogrammer/InstagramClonePETAL
5710f89de32a95b0416a960a46d081e7ad4833ab
[ "MIT" ]
69
2021-04-11T21:57:26.000Z
2022-03-30T01:09:40.000Z
lib/instagram_clone/notifications/notification.ex
hminy572/InstagramClonePETAL
577cdad0e17399e47ef9d3f8e789bd07e33012b9
[ "MIT" ]
1
2021-04-16T17:38:11.000Z
2021-04-16T17:38:11.000Z
lib/instagram_clone/notifications/notification.ex
hminy572/InstagramClonePETAL
577cdad0e17399e47ef9d3f8e789bd07e33012b9
[ "MIT" ]
4
2021-04-16T10:45:18.000Z
2021-07-23T15:08:08.000Z
defmodule InstagramClone.Notifications.Notification do use Ecto.Schema schema "notifications" do field :action, :string field :read, :boolean, default: false belongs_to :user, InstagramClone.Accounts.User belongs_to :actor, InstagramClone.Accounts.User belongs_to :comment, InstagramClone.Commen...
25.5
56
0.757353
1c5ee3e3419177ac81906d0e762844681a7f9059
2,864
exs
Elixir
apps/omg_watcher_rpc/test/omg_watcher_rpc/web/views/transaction_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_rpc/test/omg_watcher_rpc/web/views/transaction_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_rpc/test/omg_watcher_rpc/web/views/transaction_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...
34.926829
96
0.709846
1c5f13391f06fc7d4d57ab582e427650e5327ce7
466
ex
Elixir
lib/bitpal_web/live/home_live.ex
bitpal/bitpal
0e10eeaacf7a65b23945cfb95e4dbda8bffd4590
[ "BSD-3-Clause-Clear" ]
5
2021-05-04T21:28:00.000Z
2021-12-01T11:19:48.000Z
lib/bitpal_web/live/home_live.ex
bitpal/bitpal
0e10eeaacf7a65b23945cfb95e4dbda8bffd4590
[ "BSD-3-Clause-Clear" ]
71
2021-04-21T05:48:49.000Z
2022-03-23T06:30:37.000Z
lib/bitpal_web/live/home_live.ex
bitpal/bitpal
0e10eeaacf7a65b23945cfb95e4dbda8bffd4590
[ "BSD-3-Clause-Clear" ]
1
2021-04-25T10:35:41.000Z
2021-04-25T10:35:41.000Z
defmodule BitPalWeb.HomeLive do use BitPalWeb, :live_view alias BitPal.Stores on_mount(BitPalWeb.UserLiveAuth) @impl true def mount(_params, _session, socket) do if socket.assigns[:stores] do {:ok, socket} else stores = Stores.user_stores(socket.assigns.current_user) {:ok, assign(...
20.26087
62
0.695279
1c5f3925fe737b777fe7accccf281cf1e6497c3e
2,352
exs
Elixir
config/prod.exs
ashkan18/mestatus
c0d1cf156729fc2f7a8c822f1757efd663515ba5
[ "MIT" ]
null
null
null
config/prod.exs
ashkan18/mestatus
c0d1cf156729fc2f7a8c822f1757efd663515ba5
[ "MIT" ]
null
null
null
config/prod.exs
ashkan18/mestatus
c0d1cf156729fc2f7a8c822f1757efd663515ba5
[ "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...
32.666667
67
0.718537
1c5f54281e3eb5e6a3cb9930056ee8eae21f3d33
1,811
exs
Elixir
mix.exs
erikmueller/ex_admin
af8f3e23a03148d8365cc3b71286f855fb919f8c
[ "MIT" ]
null
null
null
mix.exs
erikmueller/ex_admin
af8f3e23a03148d8365cc3b71286f855fb919f8c
[ "MIT" ]
null
null
null
mix.exs
erikmueller/ex_admin
af8f3e23a03148d8365cc3b71286f855fb919f8c
[ "MIT" ]
null
null
null
defmodule ExAdmin.Mixfile do use Mix.Project @version "0.8.2-dev" def project do [ app: :ex_admin, version: @version, elixir: "~> 1.2", elixirc_paths: elixirc_paths(Mix.env), compilers: [:phoenix, :gettext] ++ Mix.compilers, build_embedded: Mix.env == :prod, start_permane...
27.029851
103
0.54169
1c5f5face79121c788aa55f7557d0f9b5d57333d
57
ex
Elixir
broadway_test/message_failed.ex
kujua/blog-kujuahub-articles-code
1a65b1a481cbf5269a3f8846a5ac353937d45a2d
[ "Apache-2.0" ]
2
2019-05-25T13:25:33.000Z
2019-05-29T15:36:17.000Z
broadway_test/message_failed.ex
kujua/blog-kujuahub-articles-code
1a65b1a481cbf5269a3f8846a5ac353937d45a2d
[ "Apache-2.0" ]
null
null
null
broadway_test/message_failed.ex
kujua/blog-kujuahub-articles-code
1a65b1a481cbf5269a3f8846a5ac353937d45a2d
[ "Apache-2.0" ]
null
null
null
Message.failed(updatedmessage, "image processing failed")
57
57
0.842105
1c5f5fad02cebb43e8eec83c76b1d08d45f42bf0
581
exs
Elixir
lib/mix/tasks/templates/new.exs
h1u2i3/ex_wechat
0d5dc88f3f694cac9e46dd6529a1df203d60cdf1
[ "MIT" ]
23
2016-12-25T13:38:38.000Z
2020-11-02T15:06:10.000Z
lib/mix/tasks/templates/new.exs
h1u2i3/ex_wechat
0d5dc88f3f694cac9e46dd6529a1df203d60cdf1
[ "MIT" ]
15
2016-11-05T17:00:18.000Z
2019-08-28T10:00:41.000Z
lib/mix/tasks/templates/new.exs
h1u2i3/ex_wechat
0d5dc88f3f694cac9e46dd6529a1df203d60cdf1
[ "MIT" ]
8
2017-07-04T03:44:25.000Z
2020-11-11T08:32:39.000Z
use Mix.Config config :data, fromusername: "from", tousername: "to", msgtype: "news", articlecount: "2", articles: [ item: [ [ title: "title", description: "description", pic_url: "http://pic_url", url: "http://baidu.com" ], [ title: "title", ...
19.366667
35
0.483649
1c5f62038425a96304d5a836e7e7a0d38ef16b41
305
ex
Elixir
lib/memcache/application.ex
thecodeboss/memcachex
d6de70a8b93524a71dc54f736fcb79b5377718fd
[ "MIT" ]
null
null
null
lib/memcache/application.ex
thecodeboss/memcachex
d6de70a8b93524a71dc54f736fcb79b5377718fd
[ "MIT" ]
null
null
null
lib/memcache/application.ex
thecodeboss/memcachex
d6de70a8b93524a71dc54f736fcb79b5377718fd
[ "MIT" ]
2
2019-03-12T13:47:13.000Z
2019-05-29T23:10:57.000Z
defmodule Memcache.Application do @moduledoc false use Application def start(_type, _args) do import Supervisor.Spec children = [ worker(Memcache.Registry, []) ] opts = [strategy: :one_for_one, name: Memcache.Supervisor] Supervisor.start_link(children, opts) end end
17.941176
62
0.691803
1c5f9f82f5e7ec32e90aa5b4dcb1296f972d1579
2,491
ex
Elixir
clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/authentication.ex
jechol/elixir-google-api
0290b683dfc6491ca2ef755a80bc329378738d03
[ "Apache-2.0" ]
null
null
null
clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/authentication.ex
jechol/elixir-google-api
0290b683dfc6491ca2ef755a80bc329378738d03
[ "Apache-2.0" ]
null
null
null
clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/authentication.ex
jechol/elixir-google-api
0290b683dfc6491ca2ef755a80bc329378738d03
[ "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...
48.843137
364
0.763549
1c5fc421cd2db9aed4b775b905f7df552bc510a4
332
ex
Elixir
web/controllers/summoner_controller.ex
ktornwall/elixir_conf_2016_demo
5a0adf832773714ba7743c049964623262ee7a13
[ "MIT" ]
27
2016-09-02T19:26:16.000Z
2017-11-30T02:27:16.000Z
web/controllers/summoner_controller.ex
katzenbar/elixir_conf_2016_demo
5a0adf832773714ba7743c049964623262ee7a13
[ "MIT" ]
1
2016-10-23T18:24:59.000Z
2016-10-23T18:24:59.000Z
web/controllers/summoner_controller.ex
ktornwall/elixir_conf_2016_demo
5a0adf832773714ba7743c049964623262ee7a13
[ "MIT" ]
4
2016-10-08T02:51:41.000Z
2017-12-05T02:02:40.000Z
defmodule ExConf.SummonerController do use ExConf.Web, :controller def index(conn, %{"summoner" => %{"name" => name}}) do summoner = ExConf.SummonerService.get_summoner(name) if summoner do render(conn, "index.html", summoner: summoner) else render(conn, ExConf.ErrorView, "404.html") en...
25.538462
56
0.674699
1c603a35a725bb17875fbcfdf0cd5dcb24a66d7e
453
ex
Elixir
lib/metrix.ex
samullen/metrix
8c5335c63db811166c46da273485df7f19e27e51
[ "Apache-2.0" ]
1
2020-07-26T14:38:10.000Z
2020-07-26T14:38:10.000Z
lib/metrix.ex
samullen/metrix
8c5335c63db811166c46da273485df7f19e27e51
[ "Apache-2.0" ]
null
null
null
lib/metrix.ex
samullen/metrix
8c5335c63db811166c46da273485df7f19e27e51
[ "Apache-2.0" ]
null
null
null
defmodule Metrix do defmacro __using__(_opts) do quote do import Metrix end end defmacro measure(event, metadata \\ Macro.escape(%{}), do: block) do quote do case :timer.tc(fn -> unquote(block) end) do {time, response} -> metadata = Map.put(unquote(metadata), :response, ...
21.571429
73
0.609272
1c605c2ea6e32f44eab007133baebf86099d8c56
1,439
ex
Elixir
apps/omg_watcher_rpc/lib/web/views/deposit.ex
boolafish/elixir-omg
46b568404972f6e4b4da3195d42d4fb622edb934
[ "Apache-2.0" ]
null
null
null
apps/omg_watcher_rpc/lib/web/views/deposit.ex
boolafish/elixir-omg
46b568404972f6e4b4da3195d42d4fb622edb934
[ "Apache-2.0" ]
null
null
null
apps/omg_watcher_rpc/lib/web/views/deposit.ex
boolafish/elixir-omg
46b568404972f6e4b4da3195d42d4fb622edb934
[ "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 ...
28.215686
100
0.714385
1c6061cb413fc218d59e848454e8c048ff62950c
2,825
ex
Elixir
lib/1000/p1000.ex
penqen/yukicoder-elixir
4f3e9e4694a14434cc3700280e9205226434733b
[ "MIT" ]
null
null
null
lib/1000/p1000.ex
penqen/yukicoder-elixir
4f3e9e4694a14434cc3700280e9205226434733b
[ "MIT" ]
null
null
null
lib/1000/p1000.ex
penqen/yukicoder-elixir
4f3e9e4694a14434cc3700280e9205226434733b
[ "MIT" ]
null
null
null
defmodule P1000 do @moduledoc """ :timer.tc(&Main.main/0) Query A(x, y) : A_x + y B(x, y) : B_i + A_i (x <= i <= y) # Examples iex> an = [9, 8, 1, 9, 6, 10, 8] ...> |> Enum.with_index() |> Enum.reduce(%{}, &(Map.put(&2, elem(&1, 1), elem(&1, 0)))) ...> P1000.solve(7, 3, an, [["B", 2,...
36.217949
163
0.431504
1c608e6c68454f0bb86116b2d9b023460b18cb9a
661
exs
Elixir
test/ethereumex/counter_test.exs
InoMurko/ethereumex
f8e18f8aa2d2f1719a67c69f11486621416ac324
[ "MIT" ]
null
null
null
test/ethereumex/counter_test.exs
InoMurko/ethereumex
f8e18f8aa2d2f1719a67c69f11486621416ac324
[ "MIT" ]
null
null
null
test/ethereumex/counter_test.exs
InoMurko/ethereumex
f8e18f8aa2d2f1719a67c69f11486621416ac324
[ "MIT" ]
null
null
null
defmodule Ethereumex.CounterTest do use ExUnit.Case alias Ethereumex.Counter test "incrementing twice returns correct number" do 1 = Counter.increment(:test_1) 2 = Counter.increment(:test_1) end test "incrementing twice and updating with a count returns correct number" do 1 = Counter.increment(:...
28.73913
99
0.720121
1c60a5757fcf04a83c9e711525e8e897c1064f44
4,845
ex
Elixir
lib/esi/request.ex
johnschultz/esi
6bc69c39e21baa8655523e71755a65516b68e60c
[ "MIT" ]
null
null
null
lib/esi/request.ex
johnschultz/esi
6bc69c39e21baa8655523e71755a65516b68e60c
[ "MIT" ]
null
null
null
lib/esi/request.ex
johnschultz/esi
6bc69c39e21baa8655523e71755a65516b68e60c
[ "MIT" ]
null
null
null
defmodule ESI.Request do @enforce_keys [ :verb, :path ] defstruct [ :verb, :path, opts_schema: %{}, opts: %{} ] @type t :: %__MODULE__{ verb: :get | :post | :put | :delete, path: String.t(), opts_schema: %{atom => {:body | :query, :required | :optional}}...
23.634146
94
0.518473
1c60b46c7f9ff2dabcef20dbccc8ddb116c9f898
3,306
exs
Elixir
test/rdb_parser_test.exs
joshuawscott/rdb_parser
388f0c0b05a29dfb1fbdfad8916cecb71d9897f6
[ "MIT" ]
null
null
null
test/rdb_parser_test.exs
joshuawscott/rdb_parser
388f0c0b05a29dfb1fbdfad8916cecb71d9897f6
[ "MIT" ]
null
null
null
test/rdb_parser_test.exs
joshuawscott/rdb_parser
388f0c0b05a29dfb1fbdfad8916cecb71d9897f6
[ "MIT" ]
null
null
null
defmodule RdbParserTest do use ExUnit.Case, async: false import RdbParserTest.Support setup do {:ok, redis} = Redix.start_link() Redix.command(redis, ["flushall"]) save(redis) %{ redis: redis } end test "parsing a simple string", %{redis: redis} do Redix.command(redis, ["SET"...
22.8
75
0.565033
1c60d6ebbbe298cff5acfdd0ac01a4664338ba9c
1,292
ex
Elixir
apps/tai/lib/tai/commander/venues.ex
ccamateur/tai
41c4b3e09dafc77987fa3f6b300c15461d981e16
[ "MIT" ]
276
2018-01-16T06:36:06.000Z
2021-03-20T21:48:01.000Z
apps/tai/lib/tai/commander/venues.ex
ccamateur/tai
41c4b3e09dafc77987fa3f6b300c15461d981e16
[ "MIT" ]
78
2020-10-12T06:21:43.000Z
2022-03-28T09:02:00.000Z
apps/tai/lib/tai/commander/venues.ex
yurikoval/tai
94254b45d22fa0307b01577ff7c629c7280c0295
[ "MIT" ]
43
2018-06-09T09:54:51.000Z
2021-03-07T07:35:17.000Z
defmodule Tai.Commander.Venues do @type venue :: Tai.Venue.t() @type store_id :: Tai.Venues.VenueStore.store_id() @type store_id_opt :: {:store_id, store_id} @type where_opt :: {:where, [{atom, term}]} @type order_opt :: {:order, [atom]} @type opt :: store_id_opt | where_opt | order_opt @default_filters ...
30.046512
65
0.678019
1c60dbe5bbb9c8091ddddcb5939a8f244d9d42eb
5,523
ex
Elixir
lib/tus_storage_s3.ex
gullitmiranda/tus-storage-s3
3c5f1a92ce3f0954673cab5acc566e948d13629b
[ "BSD-3-Clause" ]
null
null
null
lib/tus_storage_s3.ex
gullitmiranda/tus-storage-s3
3c5f1a92ce3f0954673cab5acc566e948d13629b
[ "BSD-3-Clause" ]
null
null
null
lib/tus_storage_s3.ex
gullitmiranda/tus-storage-s3
3c5f1a92ce3f0954673cab5acc566e948d13629b
[ "BSD-3-Clause" ]
null
null
null
defmodule Tus.Storage.S3 do @moduledoc """ S3 (or compatible) storage backend for the [Tus server](https://hex.pm/packages/tus) ## Installation The package can be installed by adding `tus_storage_s3` to your list of dependencies in `mix.exs`: ```elixir def deps do [ {:tus, "~> 0.1.1"}, {:...
26.81068
122
0.659967
1c612a6be9e7e8e04f666654a88ff2a6c875e06b
1,128
exs
Elixir
test/liblink/data/cluster/policies_test.exs
Xerpa/liblink
7b983431c5b391bb8cf182edd9ca4937601eea35
[ "Apache-2.0" ]
3
2018-10-26T12:55:15.000Z
2019-05-03T22:41:34.000Z
test/liblink/data/cluster/policies_test.exs
Xerpa/liblink
7b983431c5b391bb8cf182edd9ca4937601eea35
[ "Apache-2.0" ]
4
2018-08-26T14:43:57.000Z
2020-09-23T21:14:56.000Z
test/liblink/data/cluster/policies_test.exs
Xerpa/liblink
7b983431c5b391bb8cf182edd9ca4937601eea35
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 (c) Xerpa # # 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, so...
33.176471
91
0.712766
1c615c6e00839dcf226e737918d8dfb1f1237c37
145
exs
Elixir
test/fixtures/multiple_tables_single_rows_single_columns.exs
bcardarella/elixir-fixtures
2c49e0af3713bd912dc7bb639324da423d155299
[ "MIT" ]
139
2016-02-07T12:28:18.000Z
2022-02-15T11:39:58.000Z
test/fixtures/multiple_tables_single_rows_single_columns.exs
bcardarella/elixir-fixtures
2c49e0af3713bd912dc7bb639324da423d155299
[ "MIT" ]
17
2016-05-16T18:59:26.000Z
2020-09-11T16:53:53.000Z
test/fixtures/multiple_tables_single_rows_single_columns.exs
bcardarella/elixir-fixtures
2c49e0af3713bd912dc7bb639324da423d155299
[ "MIT" ]
10
2016-02-23T09:25:09.000Z
2020-02-29T14:21:21.000Z
owners model: Owner, repo: Base do brian do name "Brian" end end pets model: Pet, repo: Base do boomer do name "Boomer" end end
12.083333
34
0.648276
1c615f02e28728c12d92eae2744ba44308dc8702
71
exs
Elixir
test/test_helper.exs
IE-bourgeois-union/ie_chat_bot
c0f155288170f558ff26bfc5cbd37f777c79a05b
[ "MIT" ]
null
null
null
test/test_helper.exs
IE-bourgeois-union/ie_chat_bot
c0f155288170f558ff26bfc5cbd37f777c79a05b
[ "MIT" ]
null
null
null
test/test_helper.exs
IE-bourgeois-union/ie_chat_bot
c0f155288170f558ff26bfc5cbd37f777c79a05b
[ "MIT" ]
null
null
null
ExUnit.start() Ecto.Adapters.SQL.Sandbox.mode(IeChatBot.Repo, :manual)
23.666667
55
0.788732
1c61d586d8bcf81dec94fa4bdbf880833211ce07
184
exs
Elixir
test/controllers/page_controller_test.exs
smoynes/get_a_job_ex
13b17562f48561803ee4635342c345d28cffe27d
[ "MIT" ]
1
2020-06-10T11:19:17.000Z
2020-06-10T11:19:17.000Z
test/controllers/page_controller_test.exs
smoynes/get_a_job_ex
13b17562f48561803ee4635342c345d28cffe27d
[ "MIT" ]
null
null
null
test/controllers/page_controller_test.exs
smoynes/get_a_job_ex
13b17562f48561803ee4635342c345d28cffe27d
[ "MIT" ]
null
null
null
defmodule GetAJobEx.PageControllerTest do use GetAJobEx.ConnCase test "GET /" do conn = get conn(), "/" assert html_response(conn, 200) =~ "Welcome to Phoenix!" end end
20.444444
60
0.684783
1c61e7cb1e5fd520abfa0069149028f97372282a
1,319
exs
Elixir
test/serialization/json_serializer_test.exs
edwardzhou/commanded
f104cbf5ff3a37a6e9b637bc07ccde1d79c0725d
[ "MIT" ]
1,220
2017-10-31T10:56:40.000Z
2022-03-31T17:40:19.000Z
test/serialization/json_serializer_test.exs
edwardzhou/commanded
f104cbf5ff3a37a6e9b637bc07ccde1d79c0725d
[ "MIT" ]
294
2017-11-03T10:33:41.000Z
2022-03-24T08:36:42.000Z
test/serialization/json_serializer_test.exs
edwardzhou/commanded
f104cbf5ff3a37a6e9b637bc07ccde1d79c0725d
[ "MIT" ]
208
2017-11-03T10:56:47.000Z
2022-03-14T05:49:38.000Z
defmodule Commanded.Serialization.JsonSerializerTest do use ExUnit.Case alias Commanded.Serialization.JsonSerializer alias Commanded.ExampleDomain.BankAccount.Events.BankAccountOpened @serialized_event_json "{\"account_number\":\"ACC123\",\"initial_balance\":1000}" test "should serialize event to JSON" do ...
31.404762
91
0.703563
1c61f189c8a9b6e031258d1df89be71bb2b181f1
603
ex
Elixir
Microsoft.Azure.Management.Subscription/lib/microsoft/azure/management/subscription/model/tenant_id_description.ex
chgeuer/ex_microsoft_azure_management
99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603
[ "Apache-2.0" ]
4
2018-09-29T03:43:15.000Z
2021-04-01T18:30:46.000Z
Microsoft.Azure.Management.Subscription/lib/microsoft/azure/management/subscription/model/tenant_id_description.ex
chgeuer/ex_microsoft_azure_management
99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603
[ "Apache-2.0" ]
null
null
null
Microsoft.Azure.Management.Subscription/lib/microsoft/azure/management/subscription/model/tenant_id_description.ex
chgeuer/ex_microsoft_azure_management
99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603
[ "Apache-2.0" ]
null
null
null
# NOTE: This class is auto generated by the swagger code generator program. # https://github.com/swagger-api/swagger-codegen.git # Do not edit the class manually. defmodule Microsoft.Azure.Management.Subscription.Model.TenantIdDescription do @moduledoc """ Tenant Id information. """ @derive [Poison.Encoder] ...
21.535714
97
0.704809
1c621a5dff4f8125d43aedfd98c3c2f67be11dd3
16,915
ex
Elixir
lib/livebook/runtime/erl_dist/runtime_server.ex
naritomo08/livebook
baccc964dbffe86974cc06a1ebc7ce2a7ca381df
[ "Apache-2.0" ]
null
null
null
lib/livebook/runtime/erl_dist/runtime_server.ex
naritomo08/livebook
baccc964dbffe86974cc06a1ebc7ce2a7ca381df
[ "Apache-2.0" ]
null
null
null
lib/livebook/runtime/erl_dist/runtime_server.ex
naritomo08/livebook
baccc964dbffe86974cc06a1ebc7ce2a7ca381df
[ "Apache-2.0" ]
null
null
null
defmodule Livebook.Runtime.ErlDist.RuntimeServer do @moduledoc false # A server process backing a specific runtime. # # This process handles `Livebook.Runtime` operations, # like evaluation and completion. It spawns/terminates # individual evaluators corresponding to evaluation # containers as necessary....
29.315425
101
0.667041
1c624b6cf9c3cd3bb6fff60458780785e605497c
2,510
exs
Elixir
test/integration/player_can_exit_at_any_time_test.exs
lottetreg/minesweeper
72f85eb86b792346263ab4997a83c88873e0a04b
[ "MIT" ]
null
null
null
test/integration/player_can_exit_at_any_time_test.exs
lottetreg/minesweeper
72f85eb86b792346263ab4997a83c88873e0a04b
[ "MIT" ]
8
2019-05-20T20:53:46.000Z
2019-06-27T13:50:24.000Z
test/integration/player_can_exit_at_any_time_test.exs
lottetreg/minesweeper
72f85eb86b792346263ab4997a83c88873e0a04b
[ "MIT" ]
null
null
null
defmodule PlayerCanExitAtAnyTimeTest do use ExUnit.Case import IntegrationTestHelper test "the player can exit by entering 'exit' when asked for the number of bombs" do new_game_state(number_of_bombs: "exit") |> Game.start() assert_received { :write, "Enter the number of mines to place ...
25.1
85
0.310757
1c624f8363b8bd4d418e6ce2b5f2e8bee2350396
459
ex
Elixir
lib/tilex/notifications/notifiers_supervisor.ex
plicjo/tilex
f3d9cba7f2ca99c75622cd1a9992508614dd455f
[ "MIT" ]
1
2018-11-20T15:23:59.000Z
2018-11-20T15:23:59.000Z
lib/tilex/notifications/notifiers_supervisor.ex
plicjo/tilex
f3d9cba7f2ca99c75622cd1a9992508614dd455f
[ "MIT" ]
14
2018-10-29T09:43:13.000Z
2019-01-18T11:06:08.000Z
lib/tilex/notifications/notifiers_supervisor.ex
plicjo/tilex
f3d9cba7f2ca99c75622cd1a9992508614dd455f
[ "MIT" ]
1
2020-02-24T18:21:26.000Z
2020-02-24T18:21:26.000Z
defmodule Tilex.Notifications.NotifiersSupervisor do @slack_notifier Application.get_env(:tilex, :slack_notifier) @twitter_notifier Application.get_env(:tilex, :twitter_notifier) use Supervisor def start_link() do Supervisor.start_link(__MODULE__, :ok, name: __MODULE__) end def init(_) do Supervi...
20.863636
66
0.727669
1c6288636a45b73057c5d32e265961597425862d
10,005
ex
Elixir
deps/phoenix_pubsub/lib/phoenix/pubsub.ex
matin360/TaksoWebApp
4dd8fef625ecc2364fe1d6e18e73c96c59d15349
[ "MIT" ]
2
2020-05-06T14:51:56.000Z
2020-05-06T14:52:21.000Z
deps/phoenix_pubsub/lib/phoenix/pubsub.ex
rwtrecs/rocketseat-nlw5-inmana
8ce8bc32e0bdd005c423394bb163945747b557e2
[ "MIT" ]
4
2021-03-04T13:00:52.000Z
2021-03-12T12:42:09.000Z
deps/phoenix_pubsub/lib/phoenix/pubsub.ex
adrianomota/blog
ef3b2d2ed54f038368ead8234d76c18983caa75b
[ "MIT" ]
1
2020-05-16T22:44:14.000Z
2020-05-16T22:44:14.000Z
defmodule Phoenix.PubSub do @moduledoc """ Realtime Publisher/Subscriber service. ## Getting started You start Phoenix.PubSub directly in your supervision tree: {Phoenix.PubSub, name: :my_pubsub} You can now use the functions in this module to subscribe and broadcast messages: iex> alias ...
34.5
93
0.692454
1c628ccfea668d880c72d1a617b0df4726f492fd
1,691
exs
Elixir
apps/omg_db/test/omg_db/release_tasks/set_key_value_db_test.exs
boolafish/elixir-omg
46b568404972f6e4b4da3195d42d4fb622edb934
[ "Apache-2.0" ]
null
null
null
apps/omg_db/test/omg_db/release_tasks/set_key_value_db_test.exs
boolafish/elixir-omg
46b568404972f6e4b4da3195d42d4fb622edb934
[ "Apache-2.0" ]
null
null
null
apps/omg_db/test/omg_db/release_tasks/set_key_value_db_test.exs
boolafish/elixir-omg
46b568404972f6e4b4da3195d42d4fb622edb934
[ "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 ...
30.745455
88
0.694855
1c629165eb6ba73d06d987079a71ec338b0f211c
2,769
exs
Elixir
test/ex_machina_test.exs
cnsa/ex_machina
8a55155df735b2d0c143676f451a7a1ee191dc85
[ "MIT" ]
null
null
null
test/ex_machina_test.exs
cnsa/ex_machina
8a55155df735b2d0c143676f451a7a1ee191dc85
[ "MIT" ]
null
null
null
test/ex_machina_test.exs
cnsa/ex_machina
8a55155df735b2d0c143676f451a7a1ee191dc85
[ "MIT" ]
null
null
null
defmodule ExMachinaTest do use ExUnit.Case defmodule Factory do use ExMachina def user_factory do %{ id: 3, name: "John Doe", admin: false } end def email_factory do %{ email: sequence(:email, &"me-#{&1}@foo.com") } end def article_...
23.075
73
0.620441
1c62e2d4f3e7e4d4fa707ecb3942a43c177e8a61
6,711
exs
Elixir
lib/elixir/test/elixir/uri_test.exs
Nicd/elixir
e62ef92a4be1b562033d35b2d822cc9d6c661077
[ "Apache-2.0" ]
null
null
null
lib/elixir/test/elixir/uri_test.exs
Nicd/elixir
e62ef92a4be1b562033d35b2d822cc9d6c661077
[ "Apache-2.0" ]
null
null
null
lib/elixir/test/elixir/uri_test.exs
Nicd/elixir
e62ef92a4be1b562033d35b2d822cc9d6c661077
[ "Apache-2.0" ]
null
null
null
Code.require_file "test_helper.exs", __DIR__ defmodule URITest do use ExUnit.Case, async: true test :encode_with_binary do raw = <<13,10,38,60,62,34,32,227,130,134,227,130,147,227,130,134,227,130,147>> expected = "%0D%0A%26%3C%3E%22+%E3%82%86%E3%82%93%E3%82%86%E3%82%93" assert URI.encode(raw) == expec...
46.93007
124
0.605722
1c62ff2c5b7ce5835304f40484eac46f81325ed4
13,391
ex
Elixir
lib/plug/crypto/message_encryptor.ex
wojtekmach/plug
e9afab6c10f173d55b13bd78c64526fb21495b39
[ "Apache-2.0" ]
null
null
null
lib/plug/crypto/message_encryptor.ex
wojtekmach/plug
e9afab6c10f173d55b13bd78c64526fb21495b39
[ "Apache-2.0" ]
null
null
null
lib/plug/crypto/message_encryptor.ex
wojtekmach/plug
e9afab6c10f173d55b13bd78c64526fb21495b39
[ "Apache-2.0" ]
null
null
null
defmodule Plug.Crypto.MessageEncryptor do @moduledoc ~S""" `MessageEncryptor` is a simple way to encrypt values which get stored somewhere you don't trust. The encrypted key, initialization vector, cipher text, and cipher tag are base64url encoded and returned to you. This can be used in situations simila...
38.702312
128
0.666418
1c631481a4ccbd9e6d8960cc3530ad2a2a83b99c
3,176
ex
Elixir
apps/core/lib/core/cabinet/declaration_requests/declaration_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/cabinet/declaration_requests/declaration_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/cabinet/declaration_requests/declaration_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.Cabinet.DeclarationRequests do @moduledoc false import Core.API.Helpers.Connection, only: [get_consumer_id: 1] import Ecto.Query alias Core.Cabinet.DeclarationRequestsSearch alias Core.DeclarationRequests.DeclarationRequest alias Core.Persons alias Scrivener.Page @mithril_api Applicati...
33.083333
95
0.690806
1c63a0524cacac12ef6ac5db528b37378e3fb551
42,407
ex
Elixir
lib/phoenix/endpoint.ex
Douvi/phoenix
7832e45e056a48f9dd4bd8178d6c6b0569f19194
[ "MIT" ]
null
null
null
lib/phoenix/endpoint.ex
Douvi/phoenix
7832e45e056a48f9dd4bd8178d6c6b0569f19194
[ "MIT" ]
null
null
null
lib/phoenix/endpoint.ex
Douvi/phoenix
7832e45e056a48f9dd4bd8178d6c6b0569f19194
[ "MIT" ]
null
null
null
defmodule Phoenix.Endpoint do @moduledoc ~S""" Defines a Phoenix endpoint. The endpoint is the boundary where all requests to your web application start. It is also the interface your application provides to the underlying web servers. Overall, an endpoint has three responsibilities: * to provide a w...
45.452304
10,138
0.733888
1c6424553d7465ca2814d818e4aa9fcbcbddde02
4,314
exs
Elixir
test/oban/migrations_test.exs
polvalente/oban
7267f8f37f8257b735d498d81cc1e43147cefc49
[ "Apache-2.0" ]
null
null
null
test/oban/migrations_test.exs
polvalente/oban
7267f8f37f8257b735d498d81cc1e43147cefc49
[ "Apache-2.0" ]
null
null
null
test/oban/migrations_test.exs
polvalente/oban
7267f8f37f8257b735d498d81cc1e43147cefc49
[ "Apache-2.0" ]
null
null
null
defmodule Oban.MigrationsTest do use Oban.Case, async: true import Oban.Migrations, only: [initial_version: 0, current_version: 0, migrated_version: 2] @arbitrary_checks 20 defmodule StepMigration do use Ecto.Migration def up do Oban.Migrations.up(version: up_version(), prefix: "migrating") ...
26.145455
93
0.688688
1c6427821024f0e5ffafbeab03629c426cbc5454
3,925
ex
Elixir
clients/dataproc/lib/google_api/dataproc/v1/model/instance_group_config.ex
mocknen/elixir-google-api
dac4877b5da2694eca6a0b07b3bd0e179e5f3b70
[ "Apache-2.0" ]
null
null
null
clients/dataproc/lib/google_api/dataproc/v1/model/instance_group_config.ex
mocknen/elixir-google-api
dac4877b5da2694eca6a0b07b3bd0e179e5f3b70
[ "Apache-2.0" ]
null
null
null
clients/dataproc/lib/google_api/dataproc/v1/model/instance_group_config.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...
56.884058
535
0.752866
1c6437a4c651027ab6e5b5a992667bacc8a7a601
355
exs
Elixir
priv/repo/seeds.exs
Api2sem2021/5-ADS2020-2-equipe6-api
11484e0232c1edd7fc928aa68d5014f2e3a20d07
[ "MIT" ]
null
null
null
priv/repo/seeds.exs
Api2sem2021/5-ADS2020-2-equipe6-api
11484e0232c1edd7fc928aa68d5014f2e3a20d07
[ "MIT" ]
3
2020-09-20T22:59:35.000Z
2020-09-20T23:00:47.000Z
priv/repo/seeds.exs
SEGURANCA-DA-INFORMACAO-LGPD/sakavault_api
11484e0232c1edd7fc928aa68d5014f2e3a20d07
[ "MIT" ]
null
null
null
# 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: # # SakaVault.Repo.insert!(%SakaVault.SomeSchema{}) # # We recommend using the bang functions (`insert!`, `update!` # and so on) as they ...
29.583333
61
0.709859
1c644086219bc9c54d368430354108da8b840691
317
ex
Elixir
lib/rmq.ex
nmbrone/rmq
1478c80f886116638bb0a7831fcd55f6570de18c
[ "MIT" ]
null
null
null
lib/rmq.ex
nmbrone/rmq
1478c80f886116638bb0a7831fcd55f6570de18c
[ "MIT" ]
null
null
null
lib/rmq.ex
nmbrone/rmq
1478c80f886116638bb0a7831fcd55f6570de18c
[ "MIT" ]
null
null
null
defmodule RMQ do @moduledoc """ A set of tools for convenient work with RabbitMQ. Based on `AMQP` library. It includes: * `RMQ.Connection` - for holding a robust connection to the server. * `RMQ.Consumer` - for implementing consumers. * `RMQ.RPC` - for implementing RPC via RabbitMQ. """ end
22.642857
71
0.678233
1c647d703d1730efe69074e3244fd4401c73656f
1,189
exs
Elixir
exercism/elixir/nucleotide-count/nucleotide_count_test.exs
kfr2/elixir-experiments
b9aace74d5e352c505440f3a6e493dd714113fac
[ "MIT" ]
null
null
null
exercism/elixir/nucleotide-count/nucleotide_count_test.exs
kfr2/elixir-experiments
b9aace74d5e352c505440f3a6e493dd714113fac
[ "MIT" ]
null
null
null
exercism/elixir/nucleotide-count/nucleotide_count_test.exs
kfr2/elixir-experiments
b9aace74d5e352c505440f3a6e493dd714113fac
[ "MIT" ]
null
null
null
if !System.get_env("EXERCISM_TEST_EXAMPLES") do Code.load_file("nucleotide_count.exs", __DIR__) end ExUnit.start ExUnit.configure exclude: :pending, trace: true defmodule NucleotideCountTest do use ExUnit.Case # @tag :pending test "empty dna string has no adenine" do assert NucleotideCount.count('', ?A) ...
26.422222
80
0.666106
1c647fb793da7376e922af4b2fcbd0aacdcd52e3
1,774
exs
Elixir
test/fixture/apps/example_app/rel/config.exs
tyrchen/overseer
e46dbd965e14d92361f223db1a6d6f44b20272b3
[ "MIT" ]
18
2018-03-01T05:59:27.000Z
2021-06-15T13:12:50.000Z
test/fixture/apps/example_app/rel/config.exs
tyrchen/overseer
e46dbd965e14d92361f223db1a6d6f44b20272b3
[ "MIT" ]
2
2019-01-04T09:37:34.000Z
2019-05-20T10:45:15.000Z
test/fixture/apps/example_app/rel/config.exs
tyrchen/overseer
e46dbd965e14d92361f223db1a6d6f44b20272b3
[ "MIT" ]
4
2019-01-04T14:21:50.000Z
2020-12-19T05:05:22.000Z
# Import all plugins from `rel/plugins` # They can then be used by adding `plugin MyPlugin` to # either an environment, or release definition, where # `MyPlugin` is the name of the plugin module. Path.join(["rel", "plugins", "*.exs"]) |> Path.wildcard() |> Enum.map(&Code.eval_file(&1)) use Mix.Releases.Config, # T...
33.471698
81
0.732244
1c64a695724023998f6bbf93c3a0a889b4c01a77
267
exs
Elixir
config/test.exs
skunkwerks/wax_demo
e0c562ea168654d2475f70cba1ef29e74fc0dd24
[ "Apache-2.0" ]
5
2019-02-14T18:39:20.000Z
2022-01-31T05:49:23.000Z
config/test.exs
skunkwerks/wax_demo
e0c562ea168654d2475f70cba1ef29e74fc0dd24
[ "Apache-2.0" ]
18
2019-03-17T14:21:37.000Z
2022-03-25T20:55:56.000Z
config/test.exs
skunkwerks/wax_demo
e0c562ea168654d2475f70cba1ef29e74fc0dd24
[ "Apache-2.0" ]
4
2019-03-17T13:13:24.000Z
2022-02-01T19:50:22.000Z
use Mix.Config # We don't run a server during test. If one is required, # you can enable the server option below. config :wax_demo, WaxDemoWeb.Endpoint, http: [port: 4002], server: false # Print only warnings and errors during test config :logger, level: :warn
24.272727
56
0.737828
1c64b98d0e23fa1992bd419477a215080540e155
822
exs
Elixir
apps/ewallet_db/priv/repo/migrations/20180209132236_add_deleted_at_to_api_key_table.exs
AndonMitev/EWallet
898cde38933d6f134734528b3e594eedf5fa50f3
[ "Apache-2.0" ]
322
2018-02-28T07:38:44.000Z
2020-05-27T23:09:55.000Z
apps/ewallet_db/priv/repo/migrations/20180209132236_add_deleted_at_to_api_key_table.exs
AndonMitev/EWallet
898cde38933d6f134734528b3e594eedf5fa50f3
[ "Apache-2.0" ]
643
2018-02-28T12:05:20.000Z
2020-05-22T08:34:38.000Z
apps/ewallet_db/priv/repo/migrations/20180209132236_add_deleted_at_to_api_key_table.exs
AndonMitev/EWallet
898cde38933d6f134734528b3e594eedf5fa50f3
[ "Apache-2.0" ]
63
2018-02-28T10:57:06.000Z
2020-05-27T23:10:38.000Z
# Copyright 2018-2019 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 ...
31.615385
74
0.754258
1c64be8369ddadfdf659ae028183127dbb6afba4
304
ex
Elixir
web/oauth/dropbox/utils.ex
taorg/rumbl
7b212283f8dc2da56eddcba4281a6fff2cf4f378
[ "Apache-2.0" ]
null
null
null
web/oauth/dropbox/utils.ex
taorg/rumbl
7b212283f8dc2da56eddcba4281a6fff2cf4f378
[ "Apache-2.0" ]
null
null
null
web/oauth/dropbox/utils.ex
taorg/rumbl
7b212283f8dc2da56eddcba4281a6fff2cf4f378
[ "Apache-2.0" ]
2
2017-08-08T19:41:57.000Z
2020-05-25T19:14:21.000Z
defmodule ElixirDropbox.Utils do def to_struct(kind, attrs) do struct = struct(kind) Enum.reduce Map.to_list(struct), struct, fn {k, _}, acc -> case Map.fetch(attrs, Atom.to_string(k)) do {:ok, v} -> %{acc | k => v} :error -> acc end end end end
25.333333
64
0.552632
1c64cf62e31b11be47a2a6d837d058e9ef032e00
1,475
ex
Elixir
apps/artemis_api/lib/artemis_api/user_access.ex
chrislaskey/atlas_platform
969aea95814f62d3471f93000ee5ad77edb9d1bf
[ "MIT" ]
10
2019-07-05T19:59:20.000Z
2021-05-23T07:36:11.000Z
apps/artemis_api/lib/artemis_api/user_access.ex
chrislaskey/atlas_platform
969aea95814f62d3471f93000ee5ad77edb9d1bf
[ "MIT" ]
7
2019-07-12T21:41:01.000Z
2020-08-17T21:29:22.000Z
apps/artemis_api/lib/artemis_api/user_access.ex
chrislaskey/atlas_platform
969aea95814f62d3471f93000ee5ad77edb9d1bf
[ "MIT" ]
4
2019-07-05T20:04:08.000Z
2021-05-13T16:28:33.000Z
defmodule ArtemisApi.UserAccess do @moduledoc """ A thin wrapper around `Artemis.UserAccess`. Adds functions to validate request user. Sources Supported: - `context` from Abinsthe GraphQL - `socket` from Phoenix Socket """ import Artemis.UserAccess alias Artemis.Helpers.Feature def authorize(re...
24.583333
61
0.629831
1c64d00ac261e5d24f6205f97b3b65abeca2efed
443
ex
Elixir
lib/blog/api/api.ex
nlundkvist/blog
8353b0619e7d88285bb233990dcf8ec4959d6ed8
[ "MIT" ]
null
null
null
lib/blog/api/api.ex
nlundkvist/blog
8353b0619e7d88285bb233990dcf8ec4959d6ed8
[ "MIT" ]
null
null
null
lib/blog/api/api.ex
nlundkvist/blog
8353b0619e7d88285bb233990dcf8ec4959d6ed8
[ "MIT" ]
null
null
null
defmodule Blog.Api do def github_repo_commits(user, repo) when is_binary(user) or is_atom(user) and is_binary(repo) or is_atom(repo) do case Tentacat.Commits.list(user, repo) do result when is_list(result) and length(result) > 0 -> {:ok, result} {number, %{"message" => message}} when is_number(num...
29.533333
62
0.663657
1c64fe194ba09b1effb757e044b6dea019df67b0
123
ex
Elixir
lib/google_fit/activity_type/tennis.ex
tsubery/google_fit
7578b832c560b3b4a78059ac86af6e111812712e
[ "Apache-2.0" ]
2
2017-02-01T13:51:26.000Z
2019-04-12T11:37:25.000Z
lib/google_fit/activity_type/tennis.ex
tsubery/google_fit
7578b832c560b3b4a78059ac86af6e111812712e
[ "Apache-2.0" ]
null
null
null
lib/google_fit/activity_type/tennis.ex
tsubery/google_fit
7578b832c560b3b4a78059ac86af6e111812712e
[ "Apache-2.0" ]
null
null
null
defmodule GoogleFit.ActivityType.Tennis do @moduledoc false def code, do: GoogleFit.ActivityType.code(__MODULE__) end
20.5
55
0.804878
1c657f790ba010e9064dd1fa5029a0df1f00aef3
4,025
ex
Elixir
lib/ex_dadata/address/geolocate_address/suggestion/data.ex
Elonsoft/ex_dadata
71edca65f9d35fd2c9aa6553e87992b377500a1c
[ "MIT" ]
1
2021-08-23T08:24:50.000Z
2021-08-23T08:24:50.000Z
lib/ex_dadata/address/geolocate_address/suggestion/data.ex
Elonsoft/ex_dadata
71edca65f9d35fd2c9aa6553e87992b377500a1c
[ "MIT" ]
null
null
null
lib/ex_dadata/address/geolocate_address/suggestion/data.ex
Elonsoft/ex_dadata
71edca65f9d35fd2c9aa6553e87992b377500a1c
[ "MIT" ]
null
null
null
defmodule ExDadata.Address.GeolocateAddress.Suggestion.Data do @moduledoc false use Ecto.Schema alias Ecto.Changeset @primary_key false embedded_schema do field :postal_code, :string field :country, :string field :country_iso_code, :string field :federal_district, :string field :regio...
35
1,036
0.755031