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
08d6541507fcc36f18db33e8e141592d689715ae
1,054
ex
Elixir
lib/nerves_hub_ca_store.ex
nerves-hub/nerves_hub_ca_store
bc7beb0f1f50e031d603487123bf995b19cc07f4
[ "Apache-2.0" ]
1
2021-04-16T23:55:08.000Z
2021-04-16T23:55:08.000Z
lib/nerves_hub_ca_store.ex
nerves-hub/nerves_hub_ca_store
bc7beb0f1f50e031d603487123bf995b19cc07f4
[ "Apache-2.0" ]
null
null
null
lib/nerves_hub_ca_store.ex
nerves-hub/nerves_hub_ca_store
bc7beb0f1f50e031d603487123bf995b19cc07f4
[ "Apache-2.0" ]
1
2021-09-16T06:26:18.000Z
2021-09-16T06:26:18.000Z
defmodule NervesHubCAStore do @moduledoc """ Certificate Authority Store for the production NervesHub instance #{File.read!("README.md") |> String.split("## Usage") |> Enum.at(1)} """ @type env :: :prod | :staging @doc """ Returns DER encoded list of CA certificates """ @spec cacerts(env) :: [:publ...
25.095238
87
0.634725
08d65e88842f0418517d5f4f328672ba0c09bbed
164
ex
Elixir
lib/battle_box_web/channels/user_socket.ex
GrantJamesPowell/battle_box
301091955b68cd4672f6513d645eca4e3c4e17d0
[ "Apache-2.0" ]
2
2020-10-17T05:48:49.000Z
2020-11-11T02:34:15.000Z
lib/battle_box_web/channels/user_socket.ex
FlyingDutchmanGames/battle_box
301091955b68cd4672f6513d645eca4e3c4e17d0
[ "Apache-2.0" ]
3
2020-05-18T05:52:21.000Z
2020-06-09T07:24:14.000Z
lib/battle_box_web/channels/user_socket.ex
FlyingDutchmanGames/battle_box
301091955b68cd4672f6513d645eca4e3c4e17d0
[ "Apache-2.0" ]
null
null
null
defmodule BattleBoxWeb.UserSocket do use Phoenix.Socket def connect(_params, socket, _connect_info) do {:ok, socket} end def id(_socket), do: nil end
16.4
48
0.719512
08d65fc3bd55064125b5a017f761e538bc87f88a
9,507
ex
Elixir
lib/strategy/gossip.ex
polyglot-concurrency/libcluster
1a0640f2b39adc430a121add01ab2ae0a4ee35b2
[ "MIT" ]
1
2021-03-04T12:46:17.000Z
2021-03-04T12:46:17.000Z
lib/strategy/gossip.ex
polyglot-concurrency/libcluster
1a0640f2b39adc430a121add01ab2ae0a4ee35b2
[ "MIT" ]
1
2021-05-10T16:06:19.000Z
2021-05-10T16:12:39.000Z
lib/strategy/gossip.ex
polyglot-concurrency/libcluster
1a0640f2b39adc430a121add01ab2ae0a4ee35b2
[ "MIT" ]
null
null
null
defmodule Cluster.Strategy.Gossip do @moduledoc """ This clustering strategy uses multicast UDP to gossip node names to other nodes on the network. These packets are listened for on each node as well, and a connection will be established between the two nodes if they are reachable on the network, and share th...
28.896657
134
0.631219
08d666f0768cf3400eaa774aae8d7785a5f6c486
2,010
ex
Elixir
clients/games_management/lib/google_api/games_management/v1management/model/player_score_reset_all_response.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/games_management/lib/google_api/games_management/v1management/model/player_score_reset_all_response.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/games_management/lib/google_api/games_management/v1management/model/player_score_reset_all_response.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...
33.5
180
0.744279
08d673a1719bf7dffccd1fdac396f6e1623d7e17
287
ex
Elixir
test/support/user/reflection/elixir_target.ex
kianmeng/patch
d7d8d70a0285129ec67a43473db587011524fe0c
[ "MIT" ]
57
2020-04-22T00:19:04.000Z
2022-03-20T11:57:00.000Z
test/support/user/reflection/elixir_target.ex
kianmeng/patch
d7d8d70a0285129ec67a43473db587011524fe0c
[ "MIT" ]
9
2021-10-29T20:54:56.000Z
2022-02-19T03:41:01.000Z
test/support/user/reflection/elixir_target.ex
kianmeng/patch
d7d8d70a0285129ec67a43473db587011524fe0c
[ "MIT" ]
2
2021-07-02T14:41:48.000Z
2022-01-12T11:47:26.000Z
defmodule Patch.Test.Support.User.Reflection.ElixirTarget do def public_function(a) do private_function(a) end def public_function(a, b) do {:ok, a, b} end def other_public_function do :ok end ## Private defp private_function(a) do {:ok, a} end end
14.35
60
0.672474
08d6989fbd80bca848cb5eed6ec059c8abbf8a31
1,705
exs
Elixir
test/xdr/ledger_entries/asset_code_test.exs
einerzg/stellar_base
2d10c5fc3b8159efc5de10b5c7c665e3b57b3d8f
[ "MIT" ]
3
2021-08-17T20:32:45.000Z
2022-03-13T20:26:02.000Z
test/xdr/ledger_entries/asset_code_test.exs
einerzg/stellar_base
2d10c5fc3b8159efc5de10b5c7c665e3b57b3d8f
[ "MIT" ]
45
2021-08-12T20:19:41.000Z
2022-03-27T21:00:10.000Z
test/xdr/ledger_entries/asset_code_test.exs
einerzg/stellar_base
2d10c5fc3b8159efc5de10b5c7c665e3b57b3d8f
[ "MIT" ]
2
2021-09-22T23:11:13.000Z
2022-01-23T03:19:11.000Z
defmodule StellarBase.XDR.AssetCodeTest do use ExUnit.Case alias StellarBase.XDR.{AssetCode, AssetCode4, AssetType} describe "AssetCode" do setup do asset = AssetCode4.new("BTCN") asset_type = AssetType.new(:ASSET_TYPE_CREDIT_ALPHANUM4) %{ asset: asset, asset_type: asset_t...
30.446429
96
0.614663
08d6a174a0393aecfcd948e3c55b458b8ce1f498
132
exs
Elixir
test/my_way_test.exs
JoshRagem/my_way
e3d34906471b99c0a1b3165e655378953ad91dfe
[ "MIT" ]
null
null
null
test/my_way_test.exs
JoshRagem/my_way
e3d34906471b99c0a1b3165e655378953ad91dfe
[ "MIT" ]
null
null
null
test/my_way_test.exs
JoshRagem/my_way
e3d34906471b99c0a1b3165e655378953ad91dfe
[ "MIT" ]
null
null
null
defmodule MyWayTest do use ExUnit.Case doctest MyWay test "greets the world" do assert MyWay.hello() == :world end end
14.666667
34
0.69697
08d6a8b1ae8a60757e62a758a4aec8ac8aee8250
139
exs
Elixir
config/config.exs
zven21/footprint
ebbc4ba6c7b95cdfab28ea406146f2de90e58211
[ "MIT" ]
2
2018-08-23T08:30:01.000Z
2019-06-17T08:09:19.000Z
config/config.exs
zven21/footprint
ebbc4ba6c7b95cdfab28ea406146f2de90e58211
[ "MIT" ]
3
2020-07-17T07:15:56.000Z
2021-05-09T04:18:19.000Z
config/config.exs
zven21/footprint
ebbc4ba6c7b95cdfab28ea406146f2de90e58211
[ "MIT" ]
null
null
null
use Mix.Config config :logger, :console, level: :error config :footprint, ecto_repos: [Footprint.Repo] import_config "#{Mix.env()}.exs"
17.375
47
0.726619
08d6d28d82db582168bccfcb7692aa458de76b58
1,352
ex
Elixir
samples/client/petstore/elixir/lib/openapi_petstore/model/additional_properties_class.ex
therockstorm/openapi-generator
01d0b5d4780ebe2d6025e2b443ec136c6ce16c45
[ "Apache-2.0" ]
3
2021-05-19T03:12:48.000Z
2022-01-28T19:15:42.000Z
samples/client/petstore/elixir/lib/openapi_petstore/model/additional_properties_class.ex
therockstorm/openapi-generator
01d0b5d4780ebe2d6025e2b443ec136c6ce16c45
[ "Apache-2.0" ]
10
2021-03-09T14:12:46.000Z
2022-02-27T11:42:16.000Z
samples/client/petstore/elixir/lib/openapi_petstore/model/additional_properties_class.ex
therockstorm/openapi-generator
01d0b5d4780ebe2d6025e2b443ec136c6ce16c45
[ "Apache-2.0" ]
5
2020-11-26T05:13:41.000Z
2021-04-09T15:58:18.000Z
# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). # https://openapi-generator.tech # Do not edit the class manually. defmodule OpenapiPetstore.Model.AdditionalPropertiesClass do @moduledoc """ """ @derive [Poison.Encoder] defstruct [ :"map_string", :"map_nu...
29.391304
91
0.620562
08d71e45bade1f1c56484a217be60d50efc26c82
753
ex
Elixir
lib/phoenix_api_auth_starter_web/gettext.ex
CMcDonald82/phoenix-api-auth-starter
916db91ceba32399b8d30cc6a6e35804bc0d18b1
[ "MIT" ]
null
null
null
lib/phoenix_api_auth_starter_web/gettext.ex
CMcDonald82/phoenix-api-auth-starter
916db91ceba32399b8d30cc6a6e35804bc0d18b1
[ "MIT" ]
null
null
null
lib/phoenix_api_auth_starter_web/gettext.ex
CMcDonald82/phoenix-api-auth-starter
916db91ceba32399b8d30cc6a6e35804bc0d18b1
[ "MIT" ]
null
null
null
defmodule PhoenixApiAuthStarterWeb.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 PhoenixApiAuthStarterWeb.Gettext # Simple translat...
30.12
72
0.699867
08d77a32a4e5185341dec3adcbd317032bd437b0
952
ex
Elixir
lib/applicative/law.ex
rob-brown/MonadEx
a8b15e3207c0efa53749c4574496da70a6ca8f9d
[ "MIT" ]
325
2015-03-03T01:44:05.000Z
2022-03-25T20:29:58.000Z
lib/applicative/law.ex
rob-brown/MonadEx
a8b15e3207c0efa53749c4574496da70a6ca8f9d
[ "MIT" ]
11
2015-05-29T13:33:20.000Z
2021-05-11T13:48:14.000Z
lib/applicative/law.ex
rob-brown/MonadEx
a8b15e3207c0efa53749c4574496da70a6ca8f9d
[ "MIT" ]
17
2015-04-18T09:46:50.000Z
2019-11-12T21:28:21.000Z
defmodule Applicative.Law do @moduledoc false import Curry use Monad.Operators # http://hackage.haskell.org/package/base-4.7.0.2/docs/Control-Applicative.html # http://staff.city.ac.uk/~ross/papers/Applicative.pdf # pure id <*> v = v def identity?(applicative, pure_fun) do pure_fun.(& &1) <~> appli...
29.75
87
0.60084
08d7c96cf1b19eca91720f3947fe0bd890e6334e
4,134
ex
Elixir
projects/api/lib/margaret_web/resolvers/accounts.ex
strattadb/margaret
dde5d7b42f6d9b4d320069a0117136dae03b13b5
[ "MIT" ]
82
2017-11-06T01:00:55.000Z
2020-12-09T10:35:29.000Z
projects/api/lib/margaret_web/resolvers/accounts.ex
dbstratta/margaret
dde5d7b42f6d9b4d320069a0117136dae03b13b5
[ "MIT" ]
98
2017-11-06T22:57:32.000Z
2020-07-03T04:46:39.000Z
projects/api/lib/margaret_web/resolvers/accounts.ex
strattadb/margaret
dde5d7b42f6d9b4d320069a0117136dae03b13b5
[ "MIT" ]
10
2017-11-16T05:31:58.000Z
2020-10-29T18:02:35.000Z
defmodule MargaretWeb.Resolvers.Accounts do @moduledoc """ The Account GraphQL resolvers. """ import Margaret.Helpers, only: [ok: 1] alias MargaretWeb.Helpers alias Margaret.{ Accounts, Stories, Stars, Bookmarks, Follows, Notifications } alias Accounts.User @doc """ Resol...
23.094972
95
0.646105
08d7e4e3e91887eb550bda5858b36a84ed8f7953
1,262
ex
Elixir
test/support/conn_case.ex
showwin/phx_todo_app
3608f120cb149019219add4ca63e711698a56aab
[ "MIT" ]
null
null
null
test/support/conn_case.ex
showwin/phx_todo_app
3608f120cb149019219add4ca63e711698a56aab
[ "MIT" ]
null
null
null
test/support/conn_case.ex
showwin/phx_todo_app
3608f120cb149019219add4ca63e711698a56aab
[ "MIT" ]
null
null
null
defmodule PhxTodoAppWeb.ConnCase do @moduledoc """ This module defines the test case to be used by tests that require setting up a connection. Such tests rely on `Phoenix.ConnTest` and also import other functionality to make it easier to build common data structures and query the data layer. Finally, if...
28.681818
72
0.729002
08d835844c7a216d2835ccf5dfc73d786bc31451
441
exs
Elixir
priv/repo/migrations/20191211205008_create_repositories.exs
vsyrovat/awesome_elixir
cfac2de5402c13f86f99032477daee883b31c020
[ "MIT" ]
2
2019-12-17T11:40:54.000Z
2019-12-22T17:15:29.000Z
priv/repo/migrations/20191211205008_create_repositories.exs
vsyrovat/funbox_awesome_elixir
cfac2de5402c13f86f99032477daee883b31c020
[ "MIT" ]
5
2020-10-08T20:36:07.000Z
2020-10-08T21:27:28.000Z
priv/repo/migrations/20191211205008_create_repositories.exs
vsyrovat/awesome-elixir
cfac2de5402c13f86f99032477daee883b31c020
[ "MIT" ]
null
null
null
defmodule App.Repo.Migrations.CreateRepositories do use Ecto.Migration def change do create table(:repositories) do add :alias, :string, nullable: false add :url, :string add :name, :string add :description, :string add :stars, :integer add :pushed_at, :naive_datetime ...
22.05
51
0.662132
08d850cb5a6aa685660576872179846743e86998
17,826
exs
Elixir
test/positioner/changeset_test.exs
mentero/Positioner
c1771b064a35805bf495b9974459c67f45764543
[ "MIT" ]
1
2021-07-26T11:47:56.000Z
2021-07-26T11:47:56.000Z
test/positioner/changeset_test.exs
mentero/Positioner
c1771b064a35805bf495b9974459c67f45764543
[ "MIT" ]
null
null
null
test/positioner/changeset_test.exs
mentero/Positioner
c1771b064a35805bf495b9974459c67f45764543
[ "MIT" ]
null
null
null
defmodule Positioner.ChangesetTest do use Positioner.TestCase import Positioner.TestHelpers alias Positioner.Repo describe "Inserting new record" do test "at first position if there are no other records" do tenant = insert_tenant!() assert %{id: dummy_1, position: 1} = %Dummy{...
41.943529
95
0.544261
08d8588e444c33e5d7ef9decc1bd5b9b0b3c22ed
1,884
exs
Elixir
clients/data_catalog/mix.exs
EVLedger/elixir-google-api
61edef19a5e2c7c63848f7030c6d8d651e4593d4
[ "Apache-2.0" ]
null
null
null
clients/data_catalog/mix.exs
EVLedger/elixir-google-api
61edef19a5e2c7c63848f7030c6d8d651e4593d4
[ "Apache-2.0" ]
null
null
null
clients/data_catalog/mix.exs
EVLedger/elixir-google-api
61edef19a5e2c7c63848f7030c6d8d651e4593d4
[ "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.705882
133
0.660297
08d869245a4effe0e30bd72a1565245990af596b
3,236
ex
Elixir
lib/cadet_web/admin_controllers/admin_stories_controller.ex
source-academy/cadet
c447552453f78799755de73f66999e4c9d20383c
[ "Apache-2.0" ]
27
2018-01-20T05:56:24.000Z
2021-05-24T03:21:55.000Z
lib/cadet_web/admin_controllers/admin_stories_controller.ex
source-academy/cadet
c447552453f78799755de73f66999e4c9d20383c
[ "Apache-2.0" ]
731
2018-04-16T13:25:49.000Z
2021-06-22T07:16:12.000Z
lib/cadet_web/admin_controllers/admin_stories_controller.ex
source-academy/cadet
c447552453f78799755de73f66999e4c9d20383c
[ "Apache-2.0" ]
43
2018-01-20T06:35:46.000Z
2021-05-05T03:22:35.000Z
defmodule CadetWeb.AdminStoriesController do use CadetWeb, :controller use PhoenixSwagger alias Cadet.Stories.Stories def create(conn, %{"course_id" => course_id, "story" => story}) do result = story |> to_snake_case_atom_keys() |> Stories.create_story(course_id |> String.to_integer()) ...
27.193277
98
0.610939
08d899a6fb8f1f4d2b3c5b08364c45050a6a7c92
61
ex
Elixir
projects/standup/lib/standup_web/views/user_view.ex
erik/sketches
0a454ada58dee6db576e93cb2216dd750290329e
[ "MIT" ]
1
2020-02-11T06:00:11.000Z
2020-02-11T06:00:11.000Z
projects/standup/lib/standup_web/views/user_view.ex
erik/sketches
0a454ada58dee6db576e93cb2216dd750290329e
[ "MIT" ]
1
2017-09-23T19:41:29.000Z
2017-09-25T05:12:38.000Z
projects/standup/lib/standup_web/views/user_view.ex
erik/sketches
0a454ada58dee6db576e93cb2216dd750290329e
[ "MIT" ]
null
null
null
defmodule StandupWeb.UserView do use StandupWeb, :view end
15.25
32
0.803279
08d8b2e14776cd35117b688a1dca8b4b847003d6
1,061
exs
Elixir
test/elixir_examples/basic_types_test.exs
raniemi/elixir_examples
0eb957ed57bf1de4c2f6f2cc62825c6b315dfaf4
[ "Apache-2.0" ]
1
2015-11-30T19:28:39.000Z
2015-11-30T19:28:39.000Z
test/elixir_examples/basic_types_test.exs
raniemi/elixir_examples
0eb957ed57bf1de4c2f6f2cc62825c6b315dfaf4
[ "Apache-2.0" ]
null
null
null
test/elixir_examples/basic_types_test.exs
raniemi/elixir_examples
0eb957ed57bf1de4c2f6f2cc62825c6b315dfaf4
[ "Apache-2.0" ]
null
null
null
defmodule ElixirExamples.BasicTypesTest do use ExUnit.Case, async: true test "atoms" do my_atom = :symbol assert :symbol == my_atom end test "nil" do assert nil == :nil end test "booleans" do assert :true == true assert false == :false assert not (true and false) assert fals...
18.293103
60
0.604147
08d8b7efeed940750c2b29e1827e13aef29572e1
545
exs
Elixir
test/juvet/endpoint_router_test.exs
juvet/juvet
5590ff7b1e5f411195d0becfe8b5740deb977cc5
[ "MIT" ]
19
2018-07-14T16:54:11.000Z
2022-03-01T09:02:19.000Z
test/juvet/endpoint_router_test.exs
juvet/juvet
5590ff7b1e5f411195d0becfe8b5740deb977cc5
[ "MIT" ]
31
2018-06-29T15:30:40.000Z
2022-02-26T01:07:12.000Z
test/juvet/endpoint_router_test.exs
juvet/juvet
5590ff7b1e5f411195d0becfe8b5740deb977cc5
[ "MIT" ]
null
null
null
defmodule Juvet.EndpointTest do use ExUnit.Case, async: true use Plug.Test describe "POST /slack/events" do test "responds with a 200 status" do conn = request!(:post, "/slack/events") assert conn.status == 200 end end describe "GET /slack/blah" do test "responds with a 404 status" ...
20.961538
63
0.647706
08d8cb88448ff083cd901483977750136fade5ee
919
exs
Elixir
config/config.exs
cxz/pepper
4efd817ed4d8435800210ef109916c4e42df4e80
[ "MIT" ]
null
null
null
config/config.exs
cxz/pepper
4efd817ed4d8435800210ef109916c4e42df4e80
[ "MIT" ]
null
null
null
config/config.exs
cxz/pepper
4efd817ed4d8435800210ef109916c4e42df4e80
[ "MIT" ]
null
null
null
# This file is responsible for configuring your application # and its dependencies with the aid of the Mix.Config module. # # This configuration file is loaded before any dependency and # is restricted to this project. use Mix.Config # General application configuration config :pepper, ecto_repos: [Pepper.Repo] # Co...
32.821429
86
0.760609
08d8d134a0769ff26686a6344172b3c87d397604
273
ex
Elixir
elm_elixir/lib/poison_encoder.ex
leadbrain/tutorial
97ff8fa72829080b79e5ae32541e04897f31326d
[ "MIT" ]
null
null
null
elm_elixir/lib/poison_encoder.ex
leadbrain/tutorial
97ff8fa72829080b79e5ae32541e04897f31326d
[ "MIT" ]
null
null
null
elm_elixir/lib/poison_encoder.ex
leadbrain/tutorial
97ff8fa72829080b79e5ae32541e04897f31326d
[ "MIT" ]
null
null
null
defimpl Poison.Encoder, for: Any do def encode(%{__struct__: _} = struct, options) do struct |> Map.from_struct |> sanitize_map |> Poison.Encoder.Map.encode(options) end defp sanitize_map(map) do Map.drop(map, [:__meta__, :__struct__]) end end
21
51
0.666667
08d912c2d9776e269b5b2284bba0bc25ecc1df86
52
exs
Elixir
config/test.exs
primait/ex_fuzzywuzzy
713661a578b45fecd14cc8af868385bf42443471
[ "MIT" ]
null
null
null
config/test.exs
primait/ex_fuzzywuzzy
713661a578b45fecd14cc8af868385bf42443471
[ "MIT" ]
null
null
null
config/test.exs
primait/ex_fuzzywuzzy
713661a578b45fecd14cc8af868385bf42443471
[ "MIT" ]
1
2021-04-10T15:12:12.000Z
2021-04-10T15:12:12.000Z
import Config config :ex_fuzzywuzzy, :precision, 2
13
36
0.788462
08d92ccfd64c60507e48b1064628466986ac9ef7
571
exs
Elixir
config/test.exs
phoenixframework/plds
820600e8da6e13f376f8341cb78868bc189ddad8
[ "MIT" ]
60
2021-09-13T21:53:34.000Z
2022-03-09T14:31:36.000Z
config/test.exs
phoenixframework/plds
820600e8da6e13f376f8341cb78868bc189ddad8
[ "MIT" ]
2
2021-09-23T17:13:40.000Z
2021-11-16T15:57:05.000Z
config/test.exs
phoenixframework/plds
820600e8da6e13f376f8341cb78868bc189ddad8
[ "MIT" ]
2
2021-11-16T10:37:42.000Z
2022-02-18T19:32:38.000Z
import Config # We don't run a server during test. If one is required, # you can enable the server option below. config :plds, PLDSWeb.Endpoint, http: [ip: {127, 0, 0, 1}, port: 4002], secret_key_base: "4uFwNlOnyppVcDWeVcNUgGPOYQD+y7F4mTkconBPSqAleqXvd2wmmcLCqXJanfon", server: false config :plds, cookie: :"my...
28.55
86
0.756567
08d93582eb99dbc34173662aaaec24f5ef0c5a35
1,646
ex
Elixir
clients/vision/lib/google_api/vision/v1/model/add_product_to_product_set_request.ex
mocknen/elixir-google-api
dac4877b5da2694eca6a0b07b3bd0e179e5f3b70
[ "Apache-2.0" ]
null
null
null
clients/vision/lib/google_api/vision/v1/model/add_product_to_product_set_request.ex
mocknen/elixir-google-api
dac4877b5da2694eca6a0b07b3bd0e179e5f3b70
[ "Apache-2.0" ]
null
null
null
clients/vision/lib/google_api/vision/v1/model/add_product_to_product_set_request.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...
34.291667
191
0.755164
08d940cd558d1443873ccd3548eb6ab7ca71175f
1,616
ex
Elixir
test/support/data_case.ex
egjimenezg/absinthe_subscriptions
49d05d9ce141c9de5d1cfabe21452d2bde8c49d9
[ "Apache-2.0" ]
null
null
null
test/support/data_case.ex
egjimenezg/absinthe_subscriptions
49d05d9ce141c9de5d1cfabe21452d2bde8c49d9
[ "Apache-2.0" ]
null
null
null
test/support/data_case.ex
egjimenezg/absinthe_subscriptions
49d05d9ce141c9de5d1cfabe21452d2bde8c49d9
[ "Apache-2.0" ]
null
null
null
defmodule AbsintheSubscriptions.DataCase do @moduledoc """ This module defines the setup for tests requiring access to the application's data layer. You may define functions here to be used as helpers in your tests. Finally, if the test case interacts with the database, we enable the SQL sandbox, so cha...
28.857143
83
0.704827
08d946e2acb70a32f8e74d1748ca2e2827846bf8
352
exs
Elixir
priv/repo/migrations/20201126202439_tear_down_org_membership_on_user_delete.exs
scoopteam/backend
c9efa958f5f536870abd722e2c55a1fb907acff2
[ "MIT" ]
null
null
null
priv/repo/migrations/20201126202439_tear_down_org_membership_on_user_delete.exs
scoopteam/backend
c9efa958f5f536870abd722e2c55a1fb907acff2
[ "MIT" ]
null
null
null
priv/repo/migrations/20201126202439_tear_down_org_membership_on_user_delete.exs
scoopteam/backend
c9efa958f5f536870abd722e2c55a1fb907acff2
[ "MIT" ]
null
null
null
defmodule Scoop.Repo.Migrations.TearDownOrgMembershipOnUserDelete do use Ecto.Migration def change do drop_if_exists constraint(:organisation_memberships, "organisation_memberships_user_id_fkey") alter table(:organisation_memberships) do modify :user_id, references(:users, type: :integer, on_delete:...
29.333333
97
0.789773
08d96d2a31d81102323ecd64721f07e1f30cfba1
138
ex
Elixir
lib/amqplug.ex
getdreams/amqplug
4acd519c3dc02dc785a25f7e52223cf0bc85c780
[ "Apache-2.0" ]
null
null
null
lib/amqplug.ex
getdreams/amqplug
4acd519c3dc02dc785a25f7e52223cf0bc85c780
[ "Apache-2.0" ]
null
null
null
lib/amqplug.ex
getdreams/amqplug
4acd519c3dc02dc785a25f7e52223cf0bc85c780
[ "Apache-2.0" ]
1
2018-09-28T08:13:54.000Z
2018-09-28T08:13:54.000Z
defmodule Amqplug do use Application def start(_type, _args) do Amqplug.Supervisor.start_link(Amqplug.Config.routes()) end end
17.25
58
0.753623
08d979da812f5689eadbb4d8b26a9f870893d6f9
1,023
exs
Elixir
mix.exs
jesenko/ecto_enum
9639bb23fb56bbac8a0c71d6824d724f243780fd
[ "MIT" ]
null
null
null
mix.exs
jesenko/ecto_enum
9639bb23fb56bbac8a0c71d6824d724f243780fd
[ "MIT" ]
null
null
null
mix.exs
jesenko/ecto_enum
9639bb23fb56bbac8a0c71d6824d724f243780fd
[ "MIT" ]
1
2020-02-06T12:59:54.000Z
2020-02-06T12:59:54.000Z
defmodule EctoEnum.Mixfile do use Mix.Project @version "1.0.1" def project do [ app: :ecto_enum, version: @version, elixir: "~> 1.2", deps: deps(), description: "Ecto extension to support enums in models", test_paths: test_paths(Mix.env()), package: package(), ...
22.733333
92
0.55523
08d98fd563250c1e0b13b156e7be585536ec9729
3,893
ex
Elixir
lib/ex_admin/paginate.ex
8thlight/ex_admin
314d4068270c47799ec54f719073a565222bcfad
[ "MIT" ]
1
2018-08-30T20:20:56.000Z
2018-08-30T20:20:56.000Z
lib/ex_admin/paginate.ex
8thlight/ex_admin
314d4068270c47799ec54f719073a565222bcfad
[ "MIT" ]
null
null
null
lib/ex_admin/paginate.ex
8thlight/ex_admin
314d4068270c47799ec54f719073a565222bcfad
[ "MIT" ]
null
null
null
defmodule ExAdmin.Paginate do @moduledoc false use Xain import ExAdmin.Theme.Helpers import ExAdmin.Gettext def paginate(_, nil, _, _, _, _, _), do: [] def paginate(link, page_number, page_size, total_pages, record_count, name) do markup do theme_module(Paginate).wrap_pagination1 fn -> if...
30.178295
94
0.639353
08d9c8a3077d198184fcabd73750f1e73eccf7fa
1,236
exs
Elixir
config/config.exs
DEvil0000/strichliste_elixir
33efe808ced1dd3e3650212a506e8c3322277b2b
[ "MIT" ]
null
null
null
config/config.exs
DEvil0000/strichliste_elixir
33efe808ced1dd3e3650212a506e8c3322277b2b
[ "MIT" ]
null
null
null
config/config.exs
DEvil0000/strichliste_elixir
33efe808ced1dd3e3650212a506e8c3322277b2b
[ "MIT" ]
1
2019-05-24T18:18:24.000Z
2019-05-24T18:18:24.000Z
# This file is responsible for configuring your application # and its dependencies with the aid of the Mix.Config module. # # This configuration file is loaded before any dependency and # is restricted to this project. # General application configuration use Mix.Config config :strichliste_elixir, ecto_repos: [Stric...
31.692308
86
0.760518
08d9d3331bde02224a93461b3d58fc8f3fd5a2d1
3,638
ex
Elixir
config/authorization/config.ex
bdevloed/app-digitaal-loket-data-warehouse
02ff3ed962980f4983099d699e5ef827090a4158
[ "MIT" ]
null
null
null
config/authorization/config.ex
bdevloed/app-digitaal-loket-data-warehouse
02ff3ed962980f4983099d699e5ef827090a4158
[ "MIT" ]
null
null
null
config/authorization/config.ex
bdevloed/app-digitaal-loket-data-warehouse
02ff3ed962980f4983099d699e5ef827090a4158
[ "MIT" ]
1
2022-01-24T13:45:03.000Z
2022-01-24T13:45:03.000Z
alias Acl.Accessibility.Always, as: AlwaysAccessible alias Acl.GraphSpec.Constraint.Resource, as: ResourceConstraint alias Acl.GraphSpec, as: GraphSpec alias Acl.GroupSpec, as: GroupSpec alias Acl.GroupSpec.GraphCleanup, as: GraphCleanup defmodule Acl.UserGroups.Config do def user_groups do [ # // PUBLIC ...
50.527778
101
0.535734
08d9db1b0d3f65b2405148810083b6d48665ee2e
6,337
ex
Elixir
lib/visualixir/tracer.ex
ryo33/portable-visualixir
130db30c4a4f15ea1d13a29c31261d9f51e491d9
[ "MIT" ]
null
null
null
lib/visualixir/tracer.ex
ryo33/portable-visualixir
130db30c4a4f15ea1d13a29c31261d9f51e491d9
[ "MIT" ]
null
null
null
lib/visualixir/tracer.ex
ryo33/portable-visualixir
130db30c4a4f15ea1d13a29c31261d9f51e491d9
[ "MIT" ]
null
null
null
defmodule Visualixir.Tracer do use GenServer alias Visualixir.TraceChannel require Logger def start(node) do Node.spawn_link(node, :gen_server, :start, [{:local, __MODULE__}, __MODULE__, [Node.self], []]) end def initial_state(node) do :rpc.call(node, __MODULE__, :initial_state, []) end def m...
29.891509
102
0.635159
08d9ed42b15a1de9ce755679ba87c9b38f24cbbd
2,593
ex
Elixir
lib/cforum/jobs/send_inactivity_notification_mail_job.ex
jrieger/cforum_ex
61f6ce84708cb55bd0feedf69853dae64146a7a0
[ "MIT" ]
16
2019-04-04T06:33:33.000Z
2021-08-16T19:34:31.000Z
lib/cforum/jobs/send_inactivity_notification_mail_job.ex
jrieger/cforum_ex
61f6ce84708cb55bd0feedf69853dae64146a7a0
[ "MIT" ]
294
2019-02-10T11:10:27.000Z
2022-03-30T04:52:53.000Z
lib/cforum/jobs/send_inactivity_notification_mail_job.ex
jrieger/cforum_ex
61f6ce84708cb55bd0feedf69853dae64146a7a0
[ "MIT" ]
10
2019-02-10T10:39:24.000Z
2021-07-06T11:46:05.000Z
defmodule Cforum.Jobs.SendInactivityNotificationMailJob do use Oban.Worker, queue: :background, max_attempts: 5 import Ecto.Query, warn: false require Logger alias Cforum.Repo alias Cforum.Users.User alias Cforum.Messages.Message @limits [ {4, 100}, {3, 75}, {2, 50}, {1, 25} ] @imp...
28.811111
112
0.640571
08da0cf8e8ea94f4ac4e1d773386ca8bb419eea0
370
ex
Elixir
test/support/models/user.ex
zillou/ex_machina
545d1c2532a6124c6dadf8566683c47aef4fe4f2
[ "MIT" ]
null
null
null
test/support/models/user.ex
zillou/ex_machina
545d1c2532a6124c6dadf8566683c47aef4fe4f2
[ "MIT" ]
null
null
null
test/support/models/user.ex
zillou/ex_machina
545d1c2532a6124c6dadf8566683c47aef4fe4f2
[ "MIT" ]
null
null
null
defmodule ExMachina.User do use Ecto.Schema schema "users" do field :name, :string field :admin, :boolean field :net_worth, :decimal field :password, :string, virtual: true has_many :articles, ExMachina.Article, foreign_key: :author_id has_many :editors, through: [:articles, :editor] h...
24.666667
66
0.708108
08da0dc7f1f030e000a962151f851a18f7a67fc7
1,947
ex
Elixir
apps/teaching_management_web/lib/teaching_management_web.ex
danielscosta/teaching_management
c703374a27174763d5309b9144ba09488eeb95c4
[ "MIT" ]
2
2020-07-28T14:10:41.000Z
2020-10-20T20:32:27.000Z
apps/teaching_management_web/lib/teaching_management_web.ex
danielscosta/teaching_management
c703374a27174763d5309b9144ba09488eeb95c4
[ "MIT" ]
null
null
null
apps/teaching_management_web/lib/teaching_management_web.ex
danielscosta/teaching_management
c703374a27174763d5309b9144ba09488eeb95c4
[ "MIT" ]
null
null
null
defmodule TeachingManagementWeb do @moduledoc """ The entrypoint for defining your web interface, such as controllers, views, channels and so on. This can be used in your application as: use TeachingManagementWeb, :controller use TeachingManagementWeb, :view The definitions below will be execut...
24.64557
76
0.709296
08da144dc03795acb711ac5fd9ce480bb2071a57
369
exs
Elixir
.formatter.exs
webutil/tod
0abde2ae2295aee88a40933b66adf9b0c6e5992f
[ "MIT" ]
null
null
null
.formatter.exs
webutil/tod
0abde2ae2295aee88a40933b66adf9b0c6e5992f
[ "MIT" ]
null
null
null
.formatter.exs
webutil/tod
0abde2ae2295aee88a40933b66adf9b0c6e5992f
[ "MIT" ]
null
null
null
[ inputs: [ "*.exs", "config/*.exs", "lib/**/*.ex", "priv/**/*.exs", "scripts/*.exs", "test/**/*.{ex,exs}" ], import_deps: [], locals_without_parens: [ delete: 3, forward: 2, get: 3, pipe_through: 1, patch: 3, plug: 1, plug: 2, post: 3, put: 3, soc...
14.192308
26
0.447154
08da4b2c29c8fa0f3842325f8f5d960b17825eee
1,643
ex
Elixir
debian/manpage.1.ex
timmy00274672/demo_dh_make
9a241f67131019911d07d41407c3240ff70c241a
[ "RSA-MD" ]
null
null
null
debian/manpage.1.ex
timmy00274672/demo_dh_make
9a241f67131019911d07d41407c3240ff70c241a
[ "RSA-MD" ]
null
null
null
debian/manpage.1.ex
timmy00274672/demo_dh_make
9a241f67131019911d07d41407c3240ff70c241a
[ "RSA-MD" ]
null
null
null
.\" Hey, EMACS: -*- nroff -*- .\" (C) Copyright 2020 bmc <timchen@ingrasys.com>, .\" .\" First parameter, NAME, should be all caps .\" Second parameter, SECTION, should be 1-8, maybe w/ subsection .\" other parameters are allowed: see man(7), man(1) .TH Helloworld SECTION "February ...
28.824561
70
0.665855
08da4e2202de75649b561682f0180225357eafc2
394
ex
Elixir
web/uploaders/user_image_uploader.ex
kenta-aktsk/media_sample
a0368236bd81c18ac136a54aa7383332a5e3cf36
[ "MIT" ]
99
2016-04-19T11:11:57.000Z
2021-12-12T14:38:02.000Z
web/uploaders/user_image_uploader.ex
ogamw/media_sample
a0368236bd81c18ac136a54aa7383332a5e3cf36
[ "MIT" ]
48
2016-04-06T02:28:46.000Z
2016-05-31T06:56:56.000Z
web/uploaders/user_image_uploader.ex
ogamw/media_sample
a0368236bd81c18ac136a54aa7383332a5e3cf36
[ "MIT" ]
32
2016-04-19T11:12:00.000Z
2021-03-25T18:19:52.000Z
defmodule MediaSample.UserImageUploader do use MediaSample.BaseUploader, model: :user, field: :image @versions [:medium, :small] def transform(:medium, _) do convert "100x100" end def transform(:small, _) do convert "50x50" end defp convert(size) when is_binary(size) do {:convert, "-thumbna...
23.176471
87
0.687817
08da8d235991749225667adbe3be9a1380eb40f4
497
ex
Elixir
examples/phoenix_app/lib/phoenix_app_web/views/error_view.ex
kianmeng/bakeware
3c008a1c149ccf22cb3924126f2b8f0be522191f
[ "Apache-2.0" ]
828
2020-09-12T18:56:48.000Z
2022-03-01T22:34:39.000Z
examples/phoenix_app/lib/phoenix_app_web/views/error_view.ex
kianmeng/bakeware
3c008a1c149ccf22cb3924126f2b8f0be522191f
[ "Apache-2.0" ]
54
2020-10-23T15:01:10.000Z
2022-03-22T23:23:15.000Z
examples/phoenix_app/lib/phoenix_app_web/views/error_view.ex
kianmeng/bakeware
3c008a1c149ccf22cb3924126f2b8f0be522191f
[ "Apache-2.0" ]
25
2020-09-14T12:01:54.000Z
2022-02-23T03:30:08.000Z
defmodule PhoenixAppWeb.ErrorView do use PhoenixAppWeb, :view # If you want to customize a particular status code # for a certain format, you may uncomment below. # def render("500.html", _assigns) do # "Internal Server Error" # end # By default, Phoenix returns the status message from # the templat...
29.235294
61
0.738431
08da8fc62fa0789f2fca33b19e21ac829f28b3e3
1,329
ex
Elixir
lib/bundlex/toolchain.ex
kianmeng/bundlex
c3477977ab1c46bc87c62fbade9b0a7c13c791be
[ "Apache-2.0" ]
40
2018-06-10T20:55:32.000Z
2021-12-12T22:08:25.000Z
lib/bundlex/toolchain.ex
kianmeng/bundlex
c3477977ab1c46bc87c62fbade9b0a7c13c791be
[ "Apache-2.0" ]
40
2018-07-18T16:14:52.000Z
2022-03-27T16:33:09.000Z
lib/bundlex/toolchain.ex
kianmeng/bundlex
c3477977ab1c46bc87c62fbade9b0a7c13c791be
[ "Apache-2.0" ]
10
2018-08-02T06:07:42.000Z
2022-03-25T15:41:14.000Z
defmodule Bundlex.Toolchain do @moduledoc false alias Bundlex.Helper.MixHelper @doc """ Invokes commands that should be called before whole compilation process for given platform. Implementations should call `Output.raise/1` in case of failure which will cause breaking the compilation process. In ca...
25.075472
83
0.697517
08daa529a28de3496932b94f8f32abffc6e88bcd
10,391
exs
Elixir
test/lib/code_corps_web/controllers/user_controller_test.exs
fikape/code-corps-api
c21674b0b2a19fa26945c94268db8894420ca181
[ "MIT" ]
275
2015-06-23T00:20:51.000Z
2021-08-19T16:17:37.000Z
test/lib/code_corps_web/controllers/user_controller_test.exs
fikape/code-corps-api
c21674b0b2a19fa26945c94268db8894420ca181
[ "MIT" ]
1,304
2015-06-26T02:11:54.000Z
2019-12-12T21:08:00.000Z
test/lib/code_corps_web/controllers/user_controller_test.exs
fikape/code-corps-api
c21674b0b2a19fa26945c94268db8894420ca181
[ "MIT" ]
140
2016-01-01T18:19:47.000Z
2020-11-22T06:24:47.000Z
defmodule CodeCorpsWeb.UserControllerTest do @moduledoc false use CodeCorpsWeb.ApiCase, resource_name: :user import CodeCorps.GitHub.TestHelpers alias CodeCorps.{User, Repo} @valid_attrs %{ email: "test@user.com", username: "testuser", first_name: "Test", last_name: "User", website: "h...
29.353107
117
0.589645
08daae6f6fe87df2f95a84eed09650525e7b36d5
553
ex
Elixir
apps/mishka_html/lib/mishka_html_web/live/components/admin/form/editor_component.ex
mojtaba-naserei/mishka-cms
1f31f61347bab1aae6ba0d47c5515a61815db6c9
[ "Apache-2.0" ]
3
2021-06-27T10:26:51.000Z
2022-01-10T13:56:08.000Z
apps/mishka_html/lib/mishka_html_web/live/components/admin/form/editor_component.ex
iArazar/mishka-cms
8b579101d607d91e80834527c1508fe5f4ceefef
[ "Apache-2.0" ]
null
null
null
apps/mishka_html/lib/mishka_html_web/live/components/admin/form/editor_component.ex
iArazar/mishka-cms
8b579101d607d91e80834527c1508fe5f4ceefef
[ "Apache-2.0" ]
null
null
null
defmodule MishkaHtmlWeb.Admin.Form.EditorComponent do use MishkaHtmlWeb, :live_component def render(assigns) do ~H""" <div> <div id="editor-main-dive" class="col-sm-12 editor-diver vazir rtl" phx-update="ignore"> <div id="editor" phx-hook="Editor" class="bw vazir rtl" phx-update="igno...
30.722222
96
0.59132
08dae061b77e0b43543673e84a40bdec0ad61b20
178
ex
Elixir
lib/sutur_web/controllers/auth_controller.ex
ab-zu/sutur
f314ed29b344fbe0139bd87ac01caf577b1d592e
[ "MIT" ]
1
2021-11-16T02:18:31.000Z
2021-11-16T02:18:31.000Z
lib/sutur_web/controllers/auth_controller.ex
ab-zu/sutur
f314ed29b344fbe0139bd87ac01caf577b1d592e
[ "MIT" ]
null
null
null
lib/sutur_web/controllers/auth_controller.ex
ab-zu/sutur
f314ed29b344fbe0139bd87ac01caf577b1d592e
[ "MIT" ]
null
null
null
defmodule SuturWeb.Controllers.AuthController do use SuturWeb, :controller use ShopifexWeb.AuthController def after_install(conn, shop) do super(conn, shop) end end
19.777778
48
0.775281
08db24410a5a22f3f446e6b162c6c30b61c273fc
1,701
ex
Elixir
lib/podcatcher/web/endpoint.ex
danjac/podcatcher
748cf7419aebfff9216e7ff9353a5bdb46d3d7b1
[ "MIT" ]
null
null
null
lib/podcatcher/web/endpoint.ex
danjac/podcatcher
748cf7419aebfff9216e7ff9353a5bdb46d3d7b1
[ "MIT" ]
null
null
null
lib/podcatcher/web/endpoint.ex
danjac/podcatcher
748cf7419aebfff9216e7ff9353a5bdb46d3d7b1
[ "MIT" ]
null
null
null
defmodule Podcatcher.Web.Endpoint do use Phoenix.Endpoint, otp_app: :podcatcher socket "/socket", Podcatcher.Web.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. p...
29.327586
93
0.715461
08db31a52f9c9fe1026c5dddebae3a674d3a3db3
1,147
exs
Elixir
examples/org_uplink/test/org_uplink_test.exs
elixir-uplink/uplink
854c7eba810857ffda1361c8cd449068133f2ce4
[ "MIT" ]
40
2021-01-25T08:21:25.000Z
2021-08-24T21:47:22.000Z
examples/org_uplink/test/org_uplink_test.exs
elixir-uplink/uplink
854c7eba810857ffda1361c8cd449068133f2ce4
[ "MIT" ]
1
2021-02-06T21:38:38.000Z
2021-02-06T21:38:38.000Z
examples/org_uplink/test/org_uplink_test.exs
elixir-uplink/uplink
854c7eba810857ffda1361c8cd449068133f2ce4
[ "MIT" ]
3
2021-01-25T10:24:16.000Z
2021-02-11T20:34:17.000Z
defmodule OrgUplinkTest do use ExUnit.Case doctest OrgUplink alias Uplink.Monitors test "works great good" do _sup_pid = start_supervised!( DynamicSupervisor.child_spec(name: MyTestAppRoot.Supervisor, strategy: :one_for_one) ) spec = { OrgUplink, [ monitors: [ ...
23.895833
92
0.627724
08db58595aaa718e08b9c0a6d6f077530517f1e4
524
ex
Elixir
lib/exfile/ecto/cast_filename.ex
sreecodeslayer/exfile
c88288563d688fb47a6fcae190dbe1b8eb64bf9b
[ "MIT" ]
100
2015-12-25T12:38:41.000Z
2021-12-31T11:41:20.000Z
lib/exfile/ecto/cast_filename.ex
sreecodeslayer/exfile
c88288563d688fb47a6fcae190dbe1b8eb64bf9b
[ "MIT" ]
62
2015-12-26T01:43:54.000Z
2019-09-15T16:16:35.000Z
lib/exfile/ecto/cast_filename.ex
sreecodeslayer/exfile
c88288563d688fb47a6fcae190dbe1b8eb64bf9b
[ "MIT" ]
22
2016-04-19T11:54:38.000Z
2021-09-29T14:48:46.000Z
if Code.ensure_loaded?(Ecto) do defmodule Exfile.Ecto.CastFilename do alias Ecto.Changeset def cast_filename(changeset, field) when is_atom(field) do cast_filename(changeset, field, String.to_atom("#{field}_filename")) end def cast_filename(changeset, field, filename_field) when is_atom(filename_field) do...
24.952381
85
0.719466
08db6e2b55acb54882b975a84b001ef330c30680
1,512
exs
Elixir
mix.exs
kianmeng/ex_check
d4b609f1de554c2998b398adfe796d85a3d6d7c2
[ "MIT" ]
225
2019-07-21T14:44:17.000Z
2022-03-31T11:08:07.000Z
mix.exs
kianmeng/ex_check
d4b609f1de554c2998b398adfe796d85a3d6d7c2
[ "MIT" ]
23
2019-07-30T03:05:42.000Z
2022-03-06T18:11:50.000Z
mix.exs
kianmeng/ex_check
d4b609f1de554c2998b398adfe796d85a3d6d7c2
[ "MIT" ]
9
2019-11-23T23:04:39.000Z
2022-03-29T00:54:34.000Z
defmodule ExCheck.MixProject do use Mix.Project @github_url "https://github.com/karolsluszniak/ex_check" @description "One task to efficiently run all code analysis & testing tools in an Elixir project" def project do [ app: :ex_check, version: "0.14.0", elixir: "~> 1.7", elixirc_p...
22.567164
99
0.546958
08db765beb9152e513b2b47b707f5733e13cdb07
1,430
ex
Elixir
lib/game_of_life/cell.ex
BeyondScheme/elixir-game_of_life
f5a72c79547cd6d7632d90118fb9cb31d80cc66b
[ "MIT" ]
57
2016-04-28T09:02:27.000Z
2021-12-16T20:03:05.000Z
lib/game_of_life/cell.ex
BeyondScheme/elixir-game_of_life
f5a72c79547cd6d7632d90118fb9cb31d80cc66b
[ "MIT" ]
1
2016-05-30T05:51:10.000Z
2016-05-31T21:32:44.000Z
lib/game_of_life/cell.ex
BeyondScheme/elixir-game_of_life
f5a72c79547cd6d7632d90118fb9cb31d80cc66b
[ "MIT" ]
4
2016-05-27T18:38:23.000Z
2019-05-30T11:03:45.000Z
defmodule GameOfLife.Cell do def keep_alive?(alive_cells, {x, y} = _alive_cell) do case count_neighbours(alive_cells, x, y, 0) do 2 -> true 3 -> true _ -> false end end def become_alive?(alive_cells, {x, y} = _dead_cell) do 3 == count_neighbours(alive_cells, x, y, 0) end def de...
29.183673
65
0.520979
08dbb89d5b665f3fc1d544b1ce278a213629215f
556
exs
Elixir
orderapi/test/orderapi_web/controllers/order_controller_test.exs
iandeherdt/phoenixshop
cd6e223c676505b75c1340b96908468a5c09fd7c
[ "Apache-2.0" ]
1
2018-03-06T10:32:22.000Z
2018-03-06T10:32:22.000Z
orderapi/test/orderapi_web/controllers/order_controller_test.exs
iandeherdt/phoenixshop
cd6e223c676505b75c1340b96908468a5c09fd7c
[ "Apache-2.0" ]
null
null
null
orderapi/test/orderapi_web/controllers/order_controller_test.exs
iandeherdt/phoenixshop
cd6e223c676505b75c1340b96908468a5c09fd7c
[ "Apache-2.0" ]
null
null
null
defmodule OrderapiWeb.OrderControllerTest do use OrderapiWeb.ConnCase import OrderapiWeb.Factory test "#index returns a list of orders" do conn = build_conn() order = insert(:order) conn = get conn, order_path(conn, :index) assert json_response(conn, 200) == %{ "orders" => [%{ "nu...
27.8
76
0.654676
08dbb913e20ec0784629f23cc3156e713f9a8448
1,271
ex
Elixir
apps/omg_child_chain_rpc/lib/omg_child_chain_rpc/application.ex
boolafish/elixir-omg
46b568404972f6e4b4da3195d42d4fb622edb934
[ "Apache-2.0" ]
null
null
null
apps/omg_child_chain_rpc/lib/omg_child_chain_rpc/application.ex
boolafish/elixir-omg
46b568404972f6e4b4da3195d42d4fb622edb934
[ "Apache-2.0" ]
null
null
null
apps/omg_child_chain_rpc/lib/omg_child_chain_rpc/application.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 ...
31.775
74
0.749017
08dbe4111a6b1b0011afb54eccf7dd170adbeee8
135
exs
Elixir
test/mirage_test.exs
s0kil/mirage
73722bea1cd3be17a842db25599fe51f95d246f7
[ "Apache-2.0" ]
1
2020-09-15T22:13:19.000Z
2020-09-15T22:13:19.000Z
test/mirage_test.exs
s0kil/mirage
73722bea1cd3be17a842db25599fe51f95d246f7
[ "Apache-2.0" ]
null
null
null
test/mirage_test.exs
s0kil/mirage
73722bea1cd3be17a842db25599fe51f95d246f7
[ "Apache-2.0" ]
null
null
null
defmodule MirageTest do use ExUnit.Case doctest Mirage test "greets the world" do assert Mirage.hello() == :world end end
15
35
0.703704
08dc114ed8a58a8025b55c680aae6202d0e496dd
1,680
ex
Elixir
web/models/user.ex
nsarno/winter
a65a6aa61d2b1af39277338277f8b3f479643939
[ "MIT" ]
3
2015-08-24T11:44:19.000Z
2016-10-01T21:37:05.000Z
web/models/user.ex
nsarno/winter
a65a6aa61d2b1af39277338277f8b3f479643939
[ "MIT" ]
null
null
null
web/models/user.ex
nsarno/winter
a65a6aa61d2b1af39277338277f8b3f479643939
[ "MIT" ]
null
null
null
defmodule Storm.User do use Storm.Web, :model alias Storm.User alias Storm.Repo schema "users" do field :name, :string field :email, :string field :password_digest, :string field :password, :string, virtual: true has_many :projects, Storm.Project, on_delete: :fetch_and_delete has_many :...
26.25
83
0.693452
08dc12412acc42dcc9a2fcc46d5be701f667f97d
497
exs
Elixir
config/test.exs
kemm/cat_show
42f47f93ecec48700a4d5373be27138cf907d6cb
[ "BSD-3-Clause" ]
null
null
null
config/test.exs
kemm/cat_show
42f47f93ecec48700a4d5373be27138cf907d6cb
[ "BSD-3-Clause" ]
1
2021-05-11T15:49:58.000Z
2021-05-11T15:49:58.000Z
config/test.exs
kemm/cat_show
42f47f93ecec48700a4d5373be27138cf907d6cb
[ "BSD-3-Clause" ]
null
null
null
use Mix.Config # We don't run a server during test. If one is required, # you can enable the server option below. config :cat_show, CatShowWeb.Endpoint, http: [port: 4001], server: false # Print only warnings and errors during test config :logger, level: :warn # Configure your database config :cat_show, CatShow....
24.85
56
0.736419
08dc16f1d9985a0f2010bf104fb6fab9a5def272
9,372
ex
Elixir
clients/calendar/lib/google_api/calendar/v3/api/settings.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/calendar/lib/google_api/calendar/v3/api/settings.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/calendar/lib/google_api/calendar/v3/api/settings.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...
47.333333
250
0.646287
08dc3387dca5b7f67a2e5fb2e77503f5ea890c86
545
exs
Elixir
priv/repo/migrations/20200710182224_create_results.exs
jinjagit/api
c1a176d8c318e05810bc1635706c56395819191e
[ "MIT" ]
null
null
null
priv/repo/migrations/20200710182224_create_results.exs
jinjagit/api
c1a176d8c318e05810bc1635706c56395819191e
[ "MIT" ]
10
2020-09-28T06:37:48.000Z
2021-12-22T15:04:38.000Z
priv/repo/migrations/20200710182224_create_results.exs
jinjagit/api
c1a176d8c318e05810bc1635706c56395819191e
[ "MIT" ]
null
null
null
defmodule LiquidVoting.Repo.Migrations.CreateResults do use Ecto.Migration def change do create table(:results) do add :in_favor, :integer, default: 0 add :against, :integer, default: 0 add :proposal_url, :string, default: false, null: false add :organization_id, :uuid, null: false ...
25.952381
68
0.675229
08dc46b6ce4026789d9cfa1460e94aeec57237da
3,264
ex
Elixir
lib/mix/lib/mix/tasks/compile.elixir.ex
zillou/elixir
2cd4f2178299abfc783f399d5b9fdc0c902c3776
[ "Apache-2.0" ]
null
null
null
lib/mix/lib/mix/tasks/compile.elixir.ex
zillou/elixir
2cd4f2178299abfc783f399d5b9fdc0c902c3776
[ "Apache-2.0" ]
1
2019-04-25T12:52:49.000Z
2019-04-25T13:27:31.000Z
lib/mix/lib/mix/tasks/compile.elixir.ex
zillou/elixir
2cd4f2178299abfc783f399d5b9fdc0c902c3776
[ "Apache-2.0" ]
null
null
null
defmodule Mix.Tasks.Compile.Elixir do use Mix.Task.Compiler @recursive true @manifest "compile.elixir" @moduledoc """ Compiles Elixir source files. Elixir is smart enough to recompile only files that have changed and their dependencies. This means if `lib/a.ex` is invoking a function defined over `li...
33.649485
92
0.690564
08dc4d8902f91a7fde82cb9dcee06ab94a6038c8
830
ex
Elixir
apps/harvester/lib/show.ex
timnew/tv-harvester
1eeb618877fd4c25c137a56ec1a77f6fd4050eed
[ "MIT" ]
null
null
null
apps/harvester/lib/show.ex
timnew/tv-harvester
1eeb618877fd4c25c137a56ec1a77f6fd4050eed
[ "MIT" ]
null
null
null
apps/harvester/lib/show.ex
timnew/tv-harvester
1eeb618877fd4c25c137a56ec1a77f6fd4050eed
[ "MIT" ]
null
null
null
defmodule Show do defstruct [:name, :url] @type t :: %Show{name: String.t, url: String.t} @spec get_show(String.t) :: t def get_show(name) when is_binary(name) or is_atom(name) do ConfigManager.get_struct([Show, name], Show) end @spec get_all_shows() :: list(t) def get_all_shows() do ConfigMa...
24.411765
64
0.659036
08dc535dc5ca63289d7b8a8bc4e588bea7b56405
839
ex
Elixir
lib/http_api/plugs/validate_query_params.ex
aitorlb/elixir_http_api
c8222902bafa971efa4aacc4a58a3d596a83e95c
[ "MIT" ]
null
null
null
lib/http_api/plugs/validate_query_params.ex
aitorlb/elixir_http_api
c8222902bafa971efa4aacc4a58a3d596a83e95c
[ "MIT" ]
null
null
null
lib/http_api/plugs/validate_query_params.ex
aitorlb/elixir_http_api
c8222902bafa971efa4aacc4a58a3d596a83e95c
[ "MIT" ]
null
null
null
defmodule HttpApi.Plugs.ValidateQueryParams do @moduledoc """ Plug to validate the query params before the given resource plug tries to query the data. Uses a list of lists as it makes it easier to enforce the number of params to allow (league and season must be queried together), even if it's more verbose wh...
28.931034
88
0.700834
08dc8fa38a77fc4a41f824e18c15c01876e87516
920
ex
Elixir
priv/perf/apps/load_test/lib/runner/smoke.ex
omisego/elixir-omg
2c68973d8f29033d137f63a6e060f12e2a7dcd59
[ "Apache-2.0" ]
177
2018-08-24T03:51:02.000Z
2020-05-30T13:29:25.000Z
priv/perf/apps/load_test/lib/runner/smoke.ex
omisego/elixir-omg
2c68973d8f29033d137f63a6e060f12e2a7dcd59
[ "Apache-2.0" ]
1,042
2018-08-25T00:52:39.000Z
2020-06-01T05:15:17.000Z
priv/perf/apps/load_test/lib/runner/smoke.ex
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...
30.666667
87
0.738043
08dc94ca690521553c8296dd00752f7e3b1128ab
6,181
ex
Elixir
clients/monitoring/lib/google_api/monitoring/v3/model/aggregation.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/monitoring/lib/google_api/monitoring/v3/model/aggregation.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/monitoring/lib/google_api/monitoring/v3/model/aggregation.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
110.375
1,535
0.789031
08dc95802dfe8ac546bca1c9dc0acc117bbe7e1b
1,628
ex
Elixir
clients/display_video/lib/google_api/display_video/v1/model/audio_video_offset.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/display_video/lib/google_api/display_video/v1/model/audio_video_offset.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/display_video/lib/google_api/display_video/v1/model/audio_video_offset.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-10-04T10:12:44.000Z
2020-10-04T10:12:44.000Z
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
32.56
116
0.72543
08dd1e5102dd92ebeaa11e324d518c9d9865f0b2
976
ex
Elixir
lib/google_api/cloud_tasks/v2/deserializer.ex
balena/elixir-google-api-cloud-tasks
4858a6427989af9b2d2b23d77f287393e4123022
[ "Apache-2.0" ]
null
null
null
lib/google_api/cloud_tasks/v2/deserializer.ex
balena/elixir-google-api-cloud-tasks
4858a6427989af9b2d2b23d77f287393e4123022
[ "Apache-2.0" ]
null
null
null
lib/google_api/cloud_tasks/v2/deserializer.ex
balena/elixir-google-api-cloud-tasks
4858a6427989af9b2d2b23d77f287393e4123022
[ "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...
36.148148
77
0.765369
08dd2d450b56bd2fe03c9dc6a59b485e9bb41395
676
ex
Elixir
2017/elixir/day18/lib/multi.ex
zakora/elixir-aoc2017
216e92cef370081cc0792102e0b40dd3a518d8bf
[ "Unlicense" ]
null
null
null
2017/elixir/day18/lib/multi.ex
zakora/elixir-aoc2017
216e92cef370081cc0792102e0b40dd3a518d8bf
[ "Unlicense" ]
null
null
null
2017/elixir/day18/lib/multi.ex
zakora/elixir-aoc2017
216e92cef370081cc0792102e0b40dd3a518d8bf
[ "Unlicense" ]
null
null
null
defmodule Mu do def run do IO.puts "runngin @#{inspect self()}" mediator = spawn fn -> receive do {p0, p1} -> send p0, p1 send p1, p0 end end p0 = spawn fn -> receive do pid -> IO.puts "hello I'm #{inspect self()} and my friend is #{inspe...
17.789474
79
0.504438
08dd43fc95e1e5598e018b67d91eda9aa8a6a37d
1,640
ex
Elixir
lib/raft/config.ex
craiglyons/raft
8a10978292fcc4fe549446afdca9674318b81c46
[ "Apache-2.0" ]
null
null
null
lib/raft/config.ex
craiglyons/raft
8a10978292fcc4fe549446afdca9674318b81c46
[ "Apache-2.0" ]
null
null
null
lib/raft/config.ex
craiglyons/raft
8a10978292fcc4fe549446afdca9674318b81c46
[ "Apache-2.0" ]
null
null
null
defmodule Raft.Config do @moduledoc """ Defines the configuration for peer servers. """ defstruct [ state_machine: Raft.StateMachine.Echo, min_election_timeout: 300, max_election_timeout: 1_000, heartbeat_timeout: 25, data_dir: "", ] @type t :: %__MODULE__{ state_machine: module(),...
23.428571
82
0.631707
08dd73cf7db90b3d109f1de76de4a12fa0f5fc78
556
ex
Elixir
lib/monis_app/guardian.ex
monisapp/api
4096d50da23e0b562a309b9d0ccf6b211f431d25
[ "MIT" ]
1
2020-04-24T19:40:46.000Z
2020-04-24T19:40:46.000Z
lib/monis_app/guardian.ex
monisapp/api
4096d50da23e0b562a309b9d0ccf6b211f431d25
[ "MIT" ]
null
null
null
lib/monis_app/guardian.ex
monisapp/api
4096d50da23e0b562a309b9d0ccf6b211f431d25
[ "MIT" ]
null
null
null
defmodule MonisApp.Guardian do @moduledoc """ Helpers for JWT authentication """ use Guardian, otp_app: :monis_app def subject_for_token(%{id: id}, _claims) do subject = to_string(id) {:ok, subject} end def subject_for_token(_, _) do {:error, :invalid_resource} end def resource_from_cl...
19.857143
48
0.651079
08dddacca980ec87916ad05cf932f39dd6ac14b8
219
ex
Elixir
web/views/api_view.ex
cavneb/elixir_casts
c650a2850825e0305387b95ba6a7eb386e984097
[ "MIT" ]
null
null
null
web/views/api_view.ex
cavneb/elixir_casts
c650a2850825e0305387b95ba6a7eb386e984097
[ "MIT" ]
null
null
null
web/views/api_view.ex
cavneb/elixir_casts
c650a2850825e0305387b95ba6a7eb386e984097
[ "MIT" ]
null
null
null
defmodule ElixirCasts.ApiView do use ElixirCasts.Web, :view def render("index.json", %{conn: conn}) do %{ href: api_url(conn, :index), episodes: %{ href: episode_url(conn, :index) } } end end
19.909091
52
0.621005
08de471cfce6be558e5955f6598351436c972831
1,748
ex
Elixir
lib/store.ex
dengjie-ys/ex_ray
2715b44d8a8d6a17632e8cb9a9dfb98043f471d9
[ "Apache-2.0" ]
null
null
null
lib/store.ex
dengjie-ys/ex_ray
2715b44d8a8d6a17632e8cb9a9dfb98043f471d9
[ "Apache-2.0" ]
null
null
null
lib/store.ex
dengjie-ys/ex_ray
2715b44d8a8d6a17632e8cb9a9dfb98043f471d9
[ "Apache-2.0" ]
null
null
null
defmodule ExRay.Store do @moduledoc """ Store the span chains in an ETS table. The table must be created during the application initialization using the create call. The span chain acts like a call stack by pushing and popping spans as they come in and out of scope. """ @table_name :tracers require Lo...
20.091954
75
0.570938
08de48ea664bc8a508ad0b701cd00db5ebdd1444
3,431
ex
Elixir
clients/content/lib/google_api/content/v2/model/orders_return_refund_line_item_request.ex
mcrumm/elixir-google-api
544f22797cec52b3a23dfb6e39117f0018448610
[ "Apache-2.0" ]
null
null
null
clients/content/lib/google_api/content/v2/model/orders_return_refund_line_item_request.ex
mcrumm/elixir-google-api
544f22797cec52b3a23dfb6e39117f0018448610
[ "Apache-2.0" ]
null
null
null
clients/content/lib/google_api/content/v2/model/orders_return_refund_line_item_request.ex
mcrumm/elixir-google-api
544f22797cec52b3a23dfb6e39117f0018448610
[ "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...
50.455882
456
0.709123
08de4cfc0d9d04c6957ffa2b10440a84d23d28b1
987
exs
Elixir
test/integration/cases_test.exs
mediapress-ltd/solid
025b49ab9d8286d4fc557085331cc7643e0beb20
[ "MIT" ]
null
null
null
test/integration/cases_test.exs
mediapress-ltd/solid
025b49ab9d8286d4fc557085331cc7643e0beb20
[ "MIT" ]
null
null
null
test/integration/cases_test.exs
mediapress-ltd/solid
025b49ab9d8286d4fc557085331cc7643e0beb20
[ "MIT" ]
null
null
null
cases_dir = "test/cases" for test_case <- File.ls!(cases_dir) do module_name = Module.concat([Solid.Integration.Cases, :"#{test_case}Test"]) defmodule module_name do use ExUnit.Case, async: true import Solid.Helpers @moduletag :integration @liquid_input_file "#{cases_dir}/#{test_case}/input.liqui...
26.675676
87
0.676798
08de61ec3570f7741ade2159bcc4787698efe5c3
337
ex
Elixir
web/views/slugged_route_view.ex
superdev999/Phoenix-project
ab13ac9366cdd0aa9581da7faf993b11aaa5344c
[ "MIT" ]
null
null
null
web/views/slugged_route_view.ex
superdev999/Phoenix-project
ab13ac9366cdd0aa9581da7faf993b11aaa5344c
[ "MIT" ]
null
null
null
web/views/slugged_route_view.ex
superdev999/Phoenix-project
ab13ac9366cdd0aa9581da7faf993b11aaa5344c
[ "MIT" ]
null
null
null
defmodule CodeCorps.SluggedRouteView do use CodeCorps.PreloadHelpers, default_preloads: [:organization, :user] use CodeCorps.Web, :view use JaSerializer.PhoenixView attributes [:slug, :inserted_at, :updated_at] has_one :organization, serializer: CodeCorps.OrganizationView has_one :user, serializer: CodeCo...
30.636364
72
0.79822
08de73d2cc4e6f15b1f6f011149c9170f1f16b38
3,177
ex
Elixir
lib/util/hex_parser.ex
NickMcG/SNEEX
901215dea41fa21314a4f4db46b51648158f1544
[ "MIT" ]
1
2019-11-16T00:33:02.000Z
2019-11-16T00:33:02.000Z
lib/util/hex_parser.ex
NickMcG/SNEEX
901215dea41fa21314a4f4db46b51648158f1544
[ "MIT" ]
1
2019-08-11T23:02:15.000Z
2019-08-11T23:02:15.000Z
lib/util/hex_parser.ex
NickMcG/SNEEX
901215dea41fa21314a4f4db46b51648158f1544
[ "MIT" ]
null
null
null
defmodule Util.HexParser do @moduledoc """ This module defines some helper functions for playing around with raw memory from a ROM. """ use Bitwise @block_size 16 def convert_file(input_file, output_file) do output_file |> File.open!([:write], handle_file(input_file)) end def calculate_check...
19.611111
90
0.503935
08de763ebc881cc395f84f41ca2357fad33e4ca5
332
ex
Elixir
frameworks/Elixir/phoenix/web/models/fortune.ex
xitrum-framework/FrameworkBenchmarks
180d44e1064abc6fe8c703b05e065c0564e6ee05
[ "BSD-3-Clause" ]
1
2016-05-26T09:37:14.000Z
2016-05-26T09:37:14.000Z
frameworks/Elixir/phoenix/web/models/fortune.ex
xitrum-framework/FrameworkBenchmarks
180d44e1064abc6fe8c703b05e065c0564e6ee05
[ "BSD-3-Clause" ]
null
null
null
frameworks/Elixir/phoenix/web/models/fortune.ex
xitrum-framework/FrameworkBenchmarks
180d44e1064abc6fe8c703b05e065c0564e6ee05
[ "BSD-3-Clause" ]
2
2015-01-15T08:52:28.000Z
2019-05-18T05:11:58.000Z
defmodule Hello.Fortune do use Hello.Web, :model @derive {Poison.Encoder, only: [:id, :message]} schema "fortune" do field :message, :string end @required_fields ~w(message) @optional_fields ~w() def changeset(model, params \\ nil) do model |> cast(params, @required_fields, @optional_fields...
19.529412
55
0.677711
08de80276d811011cc889564bd53fdea37b4f9fd
718
ex
Elixir
lib/liquid_voting/voting_results/result.ex
jinjagit/api
c1a176d8c318e05810bc1635706c56395819191e
[ "MIT" ]
null
null
null
lib/liquid_voting/voting_results/result.ex
jinjagit/api
c1a176d8c318e05810bc1635706c56395819191e
[ "MIT" ]
10
2020-09-28T06:37:48.000Z
2021-12-22T15:04:38.000Z
lib/liquid_voting/voting_results/result.ex
jinjagit/api
c1a176d8c318e05810bc1635706c56395819191e
[ "MIT" ]
null
null
null
defmodule LiquidVoting.VotingResults.Result do use Ecto.Schema import Ecto.Changeset @primary_key {:id, :binary_id, autogenerate: true} schema "results" do field :in_favor, :integer, default: 0 field :against, :integer, default: 0 field :proposal_url, :string field :organization_id, Ecto.UUID ...
24.758621
59
0.713092
08de914ccf2a5d74f18a02db072adb5f6ceb7d24
1,452
ex
Elixir
apps/extended_api/lib/extended_api_web.ex
iotaledger/chronicle
73566e5613268e4b0c5951265ae4760cedb4051f
[ "Apache-2.0" ]
19
2019-09-17T18:14:36.000Z
2021-12-06T07:29:27.000Z
apps/extended_api/lib/extended_api_web.ex
iotaledger/chronicle
73566e5613268e4b0c5951265ae4760cedb4051f
[ "Apache-2.0" ]
5
2019-09-30T04:57:14.000Z
2020-11-10T15:41:03.000Z
apps/extended_api/lib/extended_api_web.ex
iotaledger/chronicle
73566e5613268e4b0c5951265ae4760cedb4051f
[ "Apache-2.0" ]
2
2019-09-17T19:03:16.000Z
2021-03-01T01:04:31.000Z
defmodule ExtendedApiWeb do @moduledoc """ The entrypoint for defining your web interface, such as controllers, views, channels and so on. This can be used in your application as: use ExtendedApiWeb, :controller use ExtendedApiWeb, :view The definitions below will be executed for every view, ...
23.047619
83
0.695592
08debbd97e2ea471b9ce7a127b53b72d2e959d00
501
exs
Elixir
apps/core/priv/repo/migrations/20160927214005_create_guardian_tokens.exs
iporaitech/phoenix-webpack-react-docker
c454db0b851b9d00db868a64b96e567d4a0cc3d9
[ "MIT" ]
25
2016-08-09T15:04:37.000Z
2021-11-15T12:20:27.000Z
apps/core/priv/repo/migrations/20160927214005_create_guardian_tokens.exs
iporaitech/phoenix-webpack-react-docker
c454db0b851b9d00db868a64b96e567d4a0cc3d9
[ "MIT" ]
62
2016-05-23T20:16:40.000Z
2017-04-18T18:36:29.000Z
apps/core/priv/repo/migrations/20160927214005_create_guardian_tokens.exs
iporaitech/phoenix-webpack-react-docker
c454db0b851b9d00db868a64b96e567d4a0cc3d9
[ "MIT" ]
10
2016-08-17T15:29:21.000Z
2017-02-28T07:58:30.000Z
defmodule Core.Repo.Migrations.CreateGuardianTokens do use Ecto.Migration def up do create table(:guardian_tokens, primary_key: false) do add :jti, :string, primary_key: true add :typ, :string add :aud, :string add :iss, :string add :sub, :string add :exp, :bigint add ...
21.782609
57
0.636727
08dedd5930ffcf12491921f845cad8a55a0fe79a
2,218
ex
Elixir
clients/compute/lib/google_api/compute/v1/model/vm_endpoint_nat_mappings_list_warning.ex
kyleVsteger/elixir-google-api
3a0dd498af066a4361b5b0fd66ffc04a57539488
[ "Apache-2.0" ]
null
null
null
clients/compute/lib/google_api/compute/v1/model/vm_endpoint_nat_mappings_list_warning.ex
kyleVsteger/elixir-google-api
3a0dd498af066a4361b5b0fd66ffc04a57539488
[ "Apache-2.0" ]
null
null
null
clients/compute/lib/google_api/compute/v1/model/vm_endpoint_nat_mappings_list_warning.ex
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...
40.327273
194
0.724076
08df1bcce847ea2723b1b5a29f34acdf83d7eb81
3,724
exs
Elixir
test/response_test.exs
terki/modbux
391a1d77e191afe7b0c5fe72e70e4680b41fb85c
[ "Apache-2.0" ]
14
2019-11-14T22:04:24.000Z
2022-02-07T19:36:57.000Z
test/response_test.exs
terki/modbux
391a1d77e191afe7b0c5fe72e70e4680b41fb85c
[ "Apache-2.0" ]
3
2020-01-11T07:52:53.000Z
2022-01-18T12:08:08.000Z
test/response_test.exs
terki/modbux
391a1d77e191afe7b0c5fe72e70e4680b41fb85c
[ "Apache-2.0" ]
6
2020-02-26T09:27:35.000Z
2022-03-27T09:50:02.000Z
defmodule ResponseTest do use ExUnit.Case alias Modbux.Response test "Response pack and parse test" do pp(<<0x22, 0x01, 0x01, 0x00>>, {:rc, 0x22, 0x2324, 1}, [0]) pp(<<0x22, 0x01, 0x01, 0x01>>, {:rc, 0x22, 0x2324, 1}, [1]) pp(<<0x22, 0x02, 0x01, 0x00>>, {:ri, 0x22, 0x2324, 1}, [0]) pp(<<0x22, 0x0...
24.662252
105
0.47449
08df4d497c9d466835dbfa645221ae5e99e47ac6
2,605
exs
Elixir
test/screens/v2/widget_instance/survey_test.exs
mbta/screens
4b586970f8844b19543bb2ffd4b032a89f6fa40a
[ "MIT" ]
3
2021-07-27T14:11:00.000Z
2022-01-03T14:16:43.000Z
test/screens/v2/widget_instance/survey_test.exs
mbta/screens
4b586970f8844b19543bb2ffd4b032a89f6fa40a
[ "MIT" ]
444
2021-03-10T20:57:17.000Z
2022-03-31T16:00:35.000Z
test/screens/v2/widget_instance/survey_test.exs
mbta/screens
4b586970f8844b19543bb2ffd4b032a89f6fa40a
[ "MIT" ]
null
null
null
defmodule Screens.V2.WidgetInstance.SurveyTest do use ExUnit.Case, async: true alias Screens.V2.WidgetInstance alias Screens.Config.Screen alias Screens.V2.WidgetInstance.Survey setup do %{ widget: %Survey{ screen: %Screen{app_params: nil, vendor: nil, device_id: nil, name: nil, app_id: ni...
27.712766
94
0.677159
08df5475f825a9fa0b9a2a1841e6530aff21ca8a
5,042
ex
Elixir
lib/mix/lib/mix/dep/fetcher.ex
mk/elixir
2b2c66ecf7b1cc2167cae9cc3e88f950994223f1
[ "Apache-2.0" ]
null
null
null
lib/mix/lib/mix/dep/fetcher.ex
mk/elixir
2b2c66ecf7b1cc2167cae9cc3e88f950994223f1
[ "Apache-2.0" ]
null
null
null
lib/mix/lib/mix/dep/fetcher.ex
mk/elixir
2b2c66ecf7b1cc2167cae9cc3e88f950994223f1
[ "Apache-2.0" ]
null
null
null
# Module responsible for fetching (getting/updating) # dependencies from their sources. # # The new_lock and old_lock mechanism exists to signal # externally which dependencies need to be updated and # which ones do not. defmodule Mix.Dep.Fetcher do @moduledoc false import Mix.Dep, only: [format_dep: 1, check_lock...
31.123457
79
0.647759
08df5db0add12a35cc3ac9d956ac8817d037b870
428
ex
Elixir
lib/network_interface/application.ex
nerves-project/nerves_network_interface
ff916fb2c58dbb803dd1b9fdc6898ac2241b965e
[ "Apache-2.0" ]
10
2016-06-17T21:53:05.000Z
2019-02-28T21:23:49.000Z
lib/network_interface/application.ex
nerves-project-attic/nerves_network_interface
ff916fb2c58dbb803dd1b9fdc6898ac2241b965e
[ "Apache-2.0" ]
13
2016-08-01T10:21:55.000Z
2019-02-26T21:54:53.000Z
lib/network_interface/application.ex
nerves-project-attic/nerves_network_interface
ff916fb2c58dbb803dd1b9fdc6898ac2241b965e
[ "Apache-2.0" ]
7
2016-05-31T21:39:58.000Z
2018-08-08T11:16:19.000Z
defmodule Nerves.NetworkInterface.Application do @moduledoc false use Application def start(_type, _args) do import Supervisor.Spec, warn: false children = [ supervisor(Registry, [:duplicate, Nerves.NetworkInterface]), worker(Nerves.NetworkInterface.Worker, []) ] opts = [strategy: ...
23.777778
77
0.721963
08df6ffdaea1cc154451f61bf228cea7119eeecc
1,802
ex
Elixir
lib/danpay_web.ex
Nilomiranda/Danpay
1b6f05a8a5ce6b636241c369fca85f16b229bc82
[ "MIT" ]
null
null
null
lib/danpay_web.ex
Nilomiranda/Danpay
1b6f05a8a5ce6b636241c369fca85f16b229bc82
[ "MIT" ]
null
null
null
lib/danpay_web.ex
Nilomiranda/Danpay
1b6f05a8a5ce6b636241c369fca85f16b229bc82
[ "MIT" ]
null
null
null
defmodule DanpayWeb do @moduledoc """ The entrypoint for defining your web interface, such as controllers, views, channels and so on. This can be used in your application as: use DanpayWeb, :controller use DanpayWeb, :view The definitions below will be executed for every view, controller, etc...
22.810127
76
0.685905
08df863c78900396250833332ccece6e5cb3eeeb
350
exs
Elixir
installer/templates/phx_test/live/page_live_test.exs
joshchernoff/phoenix
cd1541a8bc12cdb2501be6b08403558e82c5b72b
[ "MIT" ]
1
2020-04-14T09:49:46.000Z
2020-04-14T09:49:46.000Z
installer/templates/phx_test/live/page_live_test.exs
joshchernoff/phoenix
cd1541a8bc12cdb2501be6b08403558e82c5b72b
[ "MIT" ]
null
null
null
installer/templates/phx_test/live/page_live_test.exs
joshchernoff/phoenix
cd1541a8bc12cdb2501be6b08403558e82c5b72b
[ "MIT" ]
null
null
null
defmodule <%= web_namespace %>.PageLiveTest do use <%= web_namespace %>.ConnCase import Phoenix.LiveViewTest test "disconnected and connected render", %{conn: conn} do {:ok, page_live, disconneted_html} = live(conn, "/") assert disconneted_html =~ "Welcome to Phoenix!" assert render(page_live) =~ "W...
29.166667
60
0.7
08dfa29f06855cd9504ca6b4db3138f928a9fccf
14,949
ex
Elixir
lib/mongo/bulk_write.ex
MillionIntegrals/elixir-mongodb-driver
96c4cc3f21c4043323b8a9b33ad3a374760864c6
[ "Apache-2.0" ]
null
null
null
lib/mongo/bulk_write.ex
MillionIntegrals/elixir-mongodb-driver
96c4cc3f21c4043323b8a9b33ad3a374760864c6
[ "Apache-2.0" ]
null
null
null
lib/mongo/bulk_write.ex
MillionIntegrals/elixir-mongodb-driver
96c4cc3f21c4043323b8a9b33ad3a374760864c6
[ "Apache-2.0" ]
null
null
null
defmodule Mongo.BulkWrite do @moduledoc """ The driver supports the so-called bulk writes ([Specification](https://github.com/mongodb/specifications/blob/master/source/crud/crud.rst#basic)): The motivation for bulk writes lies in the possibility of optimizing to group the same operations. The driver supports ...
34.130137
177
0.633153
08dfc7bef8c5e7dd0b31b4203c74f26a9d21ceb1
6,994
ex
Elixir
lib/ueberauth/strategy/twitchtv.ex
DMeechan/ueberauth_twitch_tv
8d2fa08e7c191f4f273cd1a41ddf42bc5fed81e8
[ "MIT" ]
null
null
null
lib/ueberauth/strategy/twitchtv.ex
DMeechan/ueberauth_twitch_tv
8d2fa08e7c191f4f273cd1a41ddf42bc5fed81e8
[ "MIT" ]
null
null
null
lib/ueberauth/strategy/twitchtv.ex
DMeechan/ueberauth_twitch_tv
8d2fa08e7c191f4f273cd1a41ddf42bc5fed81e8
[ "MIT" ]
1
2020-05-21T00:32:52.000Z
2020-05-21T00:32:52.000Z
defmodule Ueberauth.Strategy.TwitchTv do @moduledoc """ Provides an Ueberauth strategy for authenticating with Twitch.tv. ### Setup Create an application in Twitch.tv for you to use. Register a new application at: [your Twitch.tv developer page](https://www.twitch.tv/kraken/oauth2/clients/new) and get the ...
29.761702
158
0.66557
08dfcd54138c3a1f99fb8550dd8f26d8225782d7
2,607
ex
Elixir
lib/codes/codes_a83.ex
badubizzle/icd_code
4c625733f92b7b1d616e272abc3009bb8b916c0c
[ "Apache-2.0" ]
null
null
null
lib/codes/codes_a83.ex
badubizzle/icd_code
4c625733f92b7b1d616e272abc3009bb8b916c0c
[ "Apache-2.0" ]
null
null
null
lib/codes/codes_a83.ex
badubizzle/icd_code
4c625733f92b7b1d616e272abc3009bb8b916c0c
[ "Apache-2.0" ]
null
null
null
defmodule IcdCode.ICDCode.Codes_A83 do alias IcdCode.ICDCode def _A830 do %ICDCode{full_code: "A830", category_code: "A83", short_code: "0", full_name: "Japanese encephalitis", short_name: "Japanese encephalitis", category_name: "Japanese encephalitis" ...
29.625
73
0.599156
08dfe8de693c9d21ec316e9996f1019c45c1b1a1
1,577
ex
Elixir
apps/keychain/lib/keychain/wallet.ex
AndonMitev/EWallet
898cde38933d6f134734528b3e594eedf5fa50f3
[ "Apache-2.0" ]
322
2018-02-28T07:38:44.000Z
2020-05-27T23:09:55.000Z
apps/keychain/lib/keychain/wallet.ex
AndonMitev/EWallet
898cde38933d6f134734528b3e594eedf5fa50f3
[ "Apache-2.0" ]
643
2018-02-28T12:05:20.000Z
2020-05-22T08:34:38.000Z
apps/keychain/lib/keychain/wallet.ex
AndonMitev/EWallet
898cde38933d6f134734528b3e594eedf5fa50f3
[ "Apache-2.0" ]
63
2018-02-28T10:57:06.000Z
2020-05-27T23:10:38.000Z
# Copyright 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 writi...
33.553191
77
0.721623
08e04e6e27fcbb69043a31deaa57d05982789b4f
3,032
ex
Elixir
lib/abbrev.ex
CraigCottingham/abbrev
31afedd2a22d51c193209e771b3aa9218da10733
[ "Apache-2.0" ]
null
null
null
lib/abbrev.ex
CraigCottingham/abbrev
31afedd2a22d51c193209e771b3aa9218da10733
[ "Apache-2.0" ]
26
2019-07-10T22:08:36.000Z
2021-08-02T11:17:24.000Z
lib/abbrev.ex
CraigCottingham/abbrev
31afedd2a22d51c193209e771b3aa9218da10733
[ "Apache-2.0" ]
null
null
null
defmodule Abbrev do @moduledoc """ Calculates the set of unambiguous abbreviations for a given set of strings. """ @doc """ Given a set of strings, calculate the set of unambiguous abbreviations for those strings, and return a map where the keys are all the possible abbreviations and the values are the f...
30.938776
120
0.581135
08e07be440e8fab94b213cd10f54977e8886068a
1,550
exs
Elixir
mix.exs
cabol/phoenix_gen_socket_client
bbc8884288bd747e1d7e8ce96a6189d8c24ff01e
[ "MIT" ]
null
null
null
mix.exs
cabol/phoenix_gen_socket_client
bbc8884288bd747e1d7e8ce96a6189d8c24ff01e
[ "MIT" ]
null
null
null
mix.exs
cabol/phoenix_gen_socket_client
bbc8884288bd747e1d7e8ce96a6189d8c24ff01e
[ "MIT" ]
null
null
null
defmodule Phoenix.GenSocketClient.Mixfile do use Mix.Project @version "3.2.1" @github_url "https://github.com/Aircloak/phoenix_gen_socket_client" def project do [ app: :phoenix_gen_socket_client, version: @version, elixir: "~> 1.8", elixirc_paths: elixirc_paths(Mix.env()), bu...
25.833333
69
0.570968
08e0a07e8ae90b2bc8e6a7816d89127f4cc004f4
210
exs
Elixir
priv/repo/migrations/20190415192200_add_address_to_charging_process.exs
kuma/teslamate
ea175fddb49cc08070182455e0073c3dcfcb3b4c
[ "MIT" ]
2,602
2019-07-24T23:19:12.000Z
2022-03-31T15:03:48.000Z
priv/repo/migrations/20190415192200_add_address_to_charging_process.exs
kuma/teslamate
ea175fddb49cc08070182455e0073c3dcfcb3b4c
[ "MIT" ]
1,547
2019-07-26T22:02:09.000Z
2022-03-31T15:39:41.000Z
priv/repo/migrations/20190415192200_add_address_to_charging_process.exs
kuma/teslamate
ea175fddb49cc08070182455e0073c3dcfcb3b4c
[ "MIT" ]
524
2019-07-26T17:31:33.000Z
2022-03-29T15:16:36.000Z
defmodule TeslaMate.Repo.Migrations.AddAddressToChargingProcess do use Ecto.Migration def change do alter table(:charging_processes) do add(:address_id, references(:addresses)) end end end
21
66
0.757143
08e0e1edd3b8beb9d394ab7e65de52d0a0c0abf5
4,780
ex
Elixir
lib/lager_logger.ex
liveforeverx/lager_logger
cfea9ae48a4eb3c2f0f8d8d0301628bf840a2d7f
[ "Apache-2.0" ]
null
null
null
lib/lager_logger.ex
liveforeverx/lager_logger
cfea9ae48a4eb3c2f0f8d8d0301628bf840a2d7f
[ "Apache-2.0" ]
null
null
null
lib/lager_logger.ex
liveforeverx/lager_logger
cfea9ae48a4eb3c2f0f8d8d0301628bf840a2d7f
[ "Apache-2.0" ]
2
2019-06-26T13:40:28.000Z
2019-08-08T06:53:24.000Z
defmodule LagerLogger do @moduledoc ~S""" A lager backend that forwards all log messages to Elixir's Logger. To forward all lager messages to Logger and otherwise disable lager include the following in a config.exs file: use Mix.Config # Stop lager redirecting :error_logger messages config ...
29.506173
99
0.654393
08e1060ecf75d18cb2d638fe6e5cd0eaa05f7560
615
ex
Elixir
lib/morphic_pro_web/live/page_live/privacy.ex
MorphicPro/morphic.pro
9098da267344e025f262a344de6a2fb5cfea50a8
[ "MIT" ]
5
2020-04-23T21:12:17.000Z
2020-09-30T00:16:58.000Z
lib/morphic_pro_web/live/page_live/privacy.ex
joshchernoff/morphic.pro
9098da267344e025f262a344de6a2fb5cfea50a8
[ "MIT" ]
232
2020-04-24T00:52:24.000Z
2021-08-05T17:23:12.000Z
lib/morphic_pro_web/live/page_live/privacy.ex
MorphicPro/morphic.pro
9098da267344e025f262a344de6a2fb5cfea50a8
[ "MIT" ]
1
2020-04-04T02:19:44.000Z
2020-04-04T02:19:44.000Z
defmodule MorphicProWeb.PageLive.Privacy do use MorphicProWeb, :live_view alias MorphicPro.Accounts @impl true def mount(_params, session, socket) do if user = session["user_token"] && Accounts.get_user_by_session_token(session["user_token"]) do {:ok, assign(socket, current_user: user)} else ...
24.6
99
0.705691
08e10c01ab36c25bc27fb95535781d5e5e6a4193
2,354
ex
Elixir
lib/forcex/api/http.ex
fast-radius/forcex
d3eaf79563ba4bd89ca486880a47c2044bf8ca4e
[ "MIT" ]
null
null
null
lib/forcex/api/http.ex
fast-radius/forcex
d3eaf79563ba4bd89ca486880a47c2044bf8ca4e
[ "MIT" ]
null
null
null
lib/forcex/api/http.ex
fast-radius/forcex
d3eaf79563ba4bd89ca486880a47c2044bf8ca4e
[ "MIT" ]
null
null
null
defmodule Forcex.Api.Http do @moduledoc """ HTTP communication with Salesforce API """ @behaviour Forcex.Api require Logger use HTTPoison.Base @user_agent [{"User-agent", "forcex"}] @accept [{"Accept", "application/json"}] @accept_encoding [{"Accept-Encoding", "gzip,deflate"}] @type http_method :...
31.810811
98
0.652506
08e10e36bf983697e75ce1d81df9f91736973af8
523
ex
Elixir
lib/std_json_io/reloader.ex
AirX-Inc/std_json_io
8f189628385240c4386d3086be542e4a89e850fb
[ "MIT" ]
null
null
null
lib/std_json_io/reloader.ex
AirX-Inc/std_json_io
8f189628385240c4386d3086be542e4a89e850fb
[ "MIT" ]
null
null
null
lib/std_json_io/reloader.ex
AirX-Inc/std_json_io
8f189628385240c4386d3086be542e4a89e850fb
[ "MIT" ]
2
2016-08-05T17:22:28.000Z
2020-02-06T13:00:16.000Z
defmodule StdJsonIo.Reloader do use GenServer def start_link(mod, files) do GenServer.start_link(__MODULE__, [mod, files], name: __MODULE__) end def init([mod, files]) do :fs.subscribe() {:ok, %{files: files, mod: mod}} end def handle_info({_, {:fs, :file_event}, {path, _}}, %{files: files, m...
21.791667
91
0.640535
08e12c2fe6cd2bab17d933875e92b54c1b9d0ae8
1,399
ex
Elixir
apps/extract_decode_csv/lib/extract/decode/csv.ex
kennyatpillar/hindsight
e90e2150a14218e5d6fdf5874f57eb055fd2dd07
[ "Apache-2.0" ]
null
null
null
apps/extract_decode_csv/lib/extract/decode/csv.ex
kennyatpillar/hindsight
e90e2150a14218e5d6fdf5874f57eb055fd2dd07
[ "Apache-2.0" ]
null
null
null
apps/extract_decode_csv/lib/extract/decode/csv.ex
kennyatpillar/hindsight
e90e2150a14218e5d6fdf5874f57eb055fd2dd07
[ "Apache-2.0" ]
null
null
null
NimbleCSV.define(Extract.Decode.Csv.Parser, []) defmodule Extract.Decode.Csv do use Definition, schema: Extract.Decode.Csv.V1 @type t :: %__MODULE__{ version: integer, headers: list, skip_first_line: boolean } @derive Jason.Encoder defstruct version: 1, heade...
22.564516
83
0.588277
08e1bc1f45e3de39771b52b5815f666c6f43588b
653
exs
Elixir
test/validation/rules/credit_card/visa_test.exs
elixir-validation/validation
164a62c881e03a307172e4a20413f81260abb2dc
[ "MIT" ]
60
2019-09-13T13:37:01.000Z
2021-01-06T05:20:32.000Z
test/validation/rules/credit_card/visa_test.exs
elixir-validation/validation
164a62c881e03a307172e4a20413f81260abb2dc
[ "MIT" ]
1
2019-12-16T13:57:22.000Z
2019-12-16T13:57:22.000Z
test/validation/rules/credit_card/visa_test.exs
elixir-validation/validation
164a62c881e03a307172e4a20413f81260abb2dc
[ "MIT" ]
5
2019-09-13T19:14:24.000Z
2019-11-26T17:33:08.000Z
defmodule Validation.Rules.CreditCard.VisaTest do use ExUnit.Case alias Validation.Rules.CreditCard.Visa, as: V doctest Validation test "valid credit card - visa" do assert V.validate?("4024 007 193 879") assert V.validate?("4024.0071.5336.1885") end test "invalid credit card - visa" do refute...
32.65
57
0.684533
08e1d0100c11c01d3a2e947c64fcae9fcb31d923
1,978
ex
Elixir
lib/game/create_lobby.ex
idabmat/game_api
c12eefb84ff5c9647ee2e06d7893e3aae1b48b2d
[ "MIT" ]
null
null
null
lib/game/create_lobby.ex
idabmat/game_api
c12eefb84ff5c9647ee2e06d7893e3aae1b48b2d
[ "MIT" ]
null
null
null
lib/game/create_lobby.ex
idabmat/game_api
c12eefb84ff5c9647ee2e06d7893e3aae1b48b2d
[ "MIT" ]
null
null
null
defmodule Game.CreateLobby do @moduledoc """ Creating a named lobby for a given account. """ alias Auth.Account alias Ecto.Changeset alias Game.Lobby alias Game.Player @type args :: %{lobby_name: String.t(), player_name: String.t(), account: Account.t()} @type errors :: [lobby_name: [atom()], player...
29.969697
89
0.62639
08e1d1a7d0863d0b17969c5d26ea538bd2c6c2e6
2,078
ex
Elixir
apps/admin/web/controllers/category_controller.ex
impressarix/Phoenix-Webstore
31376183b853e594b224fb1051897a00cd20b6ec
[ "Apache-2.0" ]
null
null
null
apps/admin/web/controllers/category_controller.ex
impressarix/Phoenix-Webstore
31376183b853e594b224fb1051897a00cd20b6ec
[ "Apache-2.0" ]
null
null
null
apps/admin/web/controllers/category_controller.ex
impressarix/Phoenix-Webstore
31376183b853e594b224fb1051897a00cd20b6ec
[ "Apache-2.0" ]
null
null
null
defmodule EmporiumAdmin.CategoryController do use EmporiumAdmin.Web, :controller alias Emporium.HTTP.API plug :scrub_params, "category" when action in [:create, :update] def index(conn, params) do categories = API.Client.get_categories!(params) render(conn, "index.html", categories: categories) end...
29.685714
76
0.624158
08e1f58ad6a175be00892f54a6c7829451b8f46d
2,139
ex
Elixir
lib/events_tools_web/controllers/venue_controller.ex
Apps-Team/conferencetools
ce2e16a3e4a521dc4682e736a209e6dd380c050d
[ "Apache-2.0" ]
null
null
null
lib/events_tools_web/controllers/venue_controller.ex
Apps-Team/conferencetools
ce2e16a3e4a521dc4682e736a209e6dd380c050d
[ "Apache-2.0" ]
6
2017-10-05T20:16:34.000Z
2017-10-05T20:36:11.000Z
lib/events_tools_web/controllers/venue_controller.ex
apps-team/events-tools
ce2e16a3e4a521dc4682e736a209e6dd380c050d
[ "Apache-2.0" ]
null
null
null
defmodule EventsToolsWeb.VenueController do use EventsToolsWeb, :controller alias EventsTools.Venues def index(conn, _params, current_user, claims) do venues = Venues.list_venues() render(conn, "index.html", venues: venues, current_user: current_user, claims: claims) end def new(conn, _params, curr...
35.65
113
0.669004
08e20c74935b151e8f157ca986509e0d608c5be0
496
ex
Elixir
lib/webchat/chat/chatrooms.ex
Bwuak/webchat
b6668be508481a1ff480303affaebdaf28604f41
[ "MIT" ]
null
null
null
lib/webchat/chat/chatrooms.ex
Bwuak/webchat
b6668be508481a1ff480303affaebdaf28604f41
[ "MIT" ]
1
2020-08-04T19:50:09.000Z
2020-08-04T19:50:09.000Z
lib/webchat/chat/chatrooms.ex
Bwuak/webchat
b6668be508481a1ff480303affaebdaf28604f41
[ "MIT" ]
null
null
null
defmodule Webchat.Chat.Chatrooms do import Ecto.Query, warn: false alias Webchat.Repo alias Webchat.Chat.Models.Chatroom def create(server_id, attrs \\ %{}) do %Chatroom{server_id: server_id} |> Chatroom.changeset(attrs) |> Repo.insert() end def get!(chatroom_id), do: Repo.get!(Chatroom, cha...
22.545455
61
0.695565