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
1d0701ffbc5bd96704924aa5897243adcf38c039
386
ex
Elixir
server/lib/prepply/onboarding/checklist_template.ex
jeepers3327/prepply
64b6be3b832fddf429faa31f5f7c1b93b842f821
[ "MIT" ]
2
2021-03-04T15:21:14.000Z
2021-03-21T13:43:07.000Z
server/lib/prepply/onboarding/checklist_template.ex
jeepers3327/prepply
64b6be3b832fddf429faa31f5f7c1b93b842f821
[ "MIT" ]
null
null
null
server/lib/prepply/onboarding/checklist_template.ex
jeepers3327/prepply
64b6be3b832fddf429faa31f5f7c1b93b842f821
[ "MIT" ]
null
null
null
defmodule Prepply.Onboarding.ChecklistTemplate do use Ecto.Schema import Ecto.Changeset schema "checklist_templates" do field :name, :string has_many :checklists, Prepply.Onboarding.Checklist timestamps() end @doc false def changeset(checklist_template, attrs) do checklist_template |>...
20.315789
54
0.722798
1d072f04ccf3dda530d361bcb43fe3b88415e9e4
593
exs
Elixir
test/views/error_view_test.exs
colindensem/phoenix.summit360
094a33a91c580dd98b7ec2318e8cf4b4df741b9a
[ "MIT" ]
3
2015-06-10T12:09:51.000Z
2015-11-24T06:16:28.000Z
test/views/error_view_test.exs
colindensem/phoenix.summit360
094a33a91c580dd98b7ec2318e8cf4b4df741b9a
[ "MIT" ]
null
null
null
test/views/error_view_test.exs
colindensem/phoenix.summit360
094a33a91c580dd98b7ec2318e8cf4b4df741b9a
[ "MIT" ]
null
null
null
defmodule Summit360Www.ErrorViewTest do use Summit360Www.ConnCase, async: true # Bring render/3 and render_to_string/3 for testing custom views import Phoenix.View test "renders 404.html" do assert render_to_string(Summit360Www.ErrorView, "404.html", []) == "Page not found" end test "rende...
26.954545
70
0.689713
1d073d480d13c17f6b5f4005b79991ffcf1938a1
261
ex
Elixir
lib/banking_graph.ex
oryono/banking
0a49ebae5ebf93a6db0c24476a1c86c60bb72733
[ "MIT" ]
null
null
null
lib/banking_graph.ex
oryono/banking
0a49ebae5ebf93a6db0c24476a1c86c60bb72733
[ "MIT" ]
null
null
null
lib/banking_graph.ex
oryono/banking
0a49ebae5ebf93a6db0c24476a1c86c60bb72733
[ "MIT" ]
null
null
null
defmodule BankingGraph do @moduledoc """ BankingGraph keeps the contexts that define your domain and business logic. Contexts are also responsible for managing your data, regardless if it comes from the database, an external API or others. """ end
26.1
66
0.762452
1d076b2c499000836c3628cc1b0a1e56a6816a49
1,615
ex
Elixir
clients/you_tube_reporting/lib/google_api/you_tube_reporting/v1/model/gdata_diff_download_response.ex
leandrocp/elixir-google-api
a86e46907f396d40aeff8668c3bd81662f44c71e
[ "Apache-2.0" ]
null
null
null
clients/you_tube_reporting/lib/google_api/you_tube_reporting/v1/model/gdata_diff_download_response.ex
leandrocp/elixir-google-api
a86e46907f396d40aeff8668c3bd81662f44c71e
[ "Apache-2.0" ]
null
null
null
clients/you_tube_reporting/lib/google_api/you_tube_reporting/v1/model/gdata_diff_download_response.ex
leandrocp/elixir-google-api
a86e46907f396d40aeff8668c3bd81662f44c71e
[ "Apache-2.0" ]
1
2020-11-10T16:58:27.000Z
2020-11-10T16:58:27.000Z
# Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
33.645833
93
0.767802
1d078296a649f749ba73a439f2fe7b3d2bb7456a
1,541
exs
Elixir
task2/elixir/fail_2.exs
rolandolucio/kajooly-challenge-001
28bd00bb3bc2e610e4eadd7e62921322317bc94e
[ "MIT" ]
1
2021-09-22T05:07:42.000Z
2021-09-22T05:07:42.000Z
task2/elixir/fail_2.exs
rolandolucio/kajooly-challenge-001
28bd00bb3bc2e610e4eadd7e62921322317bc94e
[ "MIT" ]
null
null
null
task2/elixir/fail_2.exs
rolandolucio/kajooly-challenge-001
28bd00bb3bc2e610e4eadd7e62921322317bc94e
[ "MIT" ]
null
null
null
defmodule Solution do @moduledoc """ Implementation Details Aproach: Cahmpion vs Challenger fixing from fail_1 LOCAL fail LEETCODE EXAMPLE TEST CASESES: OK ~363ms LEETCODE SUBMIT: Fail 46 / 131 test cases passed. Status: Wrong Answer Submitted: 12 minutes ago Input: [1,1,-1,-1,3] 3 Out...
20.012987
84
0.559377
1d07b4e284e0cb3da648430fd8e7c5c2ba63c0ef
847
ex
Elixir
lib/pukey.ex
auroche/commerce_cure
82e2d60d1044f86dd2f491f4713a31132d709ccf
[ "MIT" ]
null
null
null
lib/pukey.ex
auroche/commerce_cure
82e2d60d1044f86dd2f491f4713a31132d709ccf
[ "MIT" ]
null
null
null
lib/pukey.ex
auroche/commerce_cure
82e2d60d1044f86dd2f491f4713a31132d709ccf
[ "MIT" ]
null
null
null
defmodule Pukey do @moduledoc """ Weak xml transformations """ @type xml :: String.t @spec encode(map | Keyword.t, Keyword.t) :: xml def encode(any, opts \\ []) def encode(any, _opts) do {:ok, Pukey.Encoder.encode(any)} end def encode!(any, opts \\ []) def encode!(any, opts) do case encod...
21.175
53
0.580874
1d07c280b5392375b1a899f4ee011e9b14db1978
5,598
exs
Elixir
.credo.exs
pay-it-off/wallaby
d957f0dbf807180a25b8663f8e549071714ddc5d
[ "MIT" ]
null
null
null
.credo.exs
pay-it-off/wallaby
d957f0dbf807180a25b8663f8e549071714ddc5d
[ "MIT" ]
3
2021-08-18T20:39:11.000Z
2022-01-11T22:45:06.000Z
.credo.exs
pay-it-off/wallaby
d957f0dbf807180a25b8663f8e549071714ddc5d
[ "MIT" ]
null
null
null
# This file contains the configuration for Credo and you are probably reading # this after creating it with `mix credo.gen.config`. # # If you find anything wrong or unclear in this file, please report an # issue on GitHub: https://github.com/rrrene/credo/issues # %{ # # You can have as many configs as you like in ...
40.273381
81
0.650947
1d081cedfa819403fe3ce5f3cb02d15673e777df
8,248
exs
Elixir
backend/test/honeyland/appliances_test.exs
bejolithic/honeyland
8c4a0d3b56543648d3acb96cc6906df86526743b
[ "Apache-2.0" ]
null
null
null
backend/test/honeyland/appliances_test.exs
bejolithic/honeyland
8c4a0d3b56543648d3acb96cc6906df86526743b
[ "Apache-2.0" ]
null
null
null
backend/test/honeyland/appliances_test.exs
bejolithic/honeyland
8c4a0d3b56543648d3acb96cc6906df86526743b
[ "Apache-2.0" ]
null
null
null
# # This file is part of Honeyland. # # Copyright 2022 Nervive Studio # # 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 ...
37.490909
99
0.719083
1d08a4ad0a231583a4ac10da3e01fb058b3facd8
2,874
exs
Elixir
config/config.exs
bitpal/bitpal
0e10eeaacf7a65b23945cfb95e4dbda8bffd4590
[ "BSD-3-Clause-Clear" ]
5
2021-05-04T21:28:00.000Z
2021-12-01T11:19:48.000Z
config/config.exs
bitpal/bitpal
0e10eeaacf7a65b23945cfb95e4dbda8bffd4590
[ "BSD-3-Clause-Clear" ]
71
2021-04-21T05:48:49.000Z
2022-03-23T06:30:37.000Z
config/config.exs
bitpal/bitpal
0e10eeaacf7a65b23945cfb95e4dbda8bffd4590
[ "BSD-3-Clause-Clear" ]
1
2021-04-25T10:35:41.000Z
2021-04-25T10:35:41.000Z
import Config # These are default values that can be overridden by settings. # These should be overridable via BitPalSettings later config :bitpal, required_confirmations: 0, double_spend_timeout: 2_000 config :bitpal, BitPal.ExchangeRate, # How long should we wait for external services to respond? # 5s req...
30.252632
84
0.692763
1d08bb99eca3a59e4699b185c907456bb3f87e33
304
exs
Elixir
integration_test/pg/all_test.exs
thiagoarrais/ecto
93d7595beb7f407775c4918d19cad370b0bcd498
[ "Apache-2.0" ]
null
null
null
integration_test/pg/all_test.exs
thiagoarrais/ecto
93d7595beb7f407775c4918d19cad370b0bcd498
[ "Apache-2.0" ]
null
null
null
integration_test/pg/all_test.exs
thiagoarrais/ecto
93d7595beb7f407775c4918d19cad370b0bcd498
[ "Apache-2.0" ]
null
null
null
Code.require_file "../cases/lock.exs", __DIR__ Code.require_file "../cases/migration.exs", __DIR__ Code.require_file "../cases/repo.exs", __DIR__ Code.require_file "../cases/preloads.exs", __DIR__ Code.require_file "../cases/sql_escape.exs", __DIR__ Code.require_file "../cases/transaction.exs", __DIR__
43.428571
53
0.763158
1d08bcd222eba3649806fbb2db80dbe400088323
852
ex
Elixir
lib/elixir_keeb/structs/listener_state.ex
amalbuquerque/elixir-keeb
39b0cdc6efc82522c459d15e5f8277d26104ceda
[ "MIT" ]
9
2020-07-07T15:57:55.000Z
2021-08-12T04:59:44.000Z
lib/elixir_keeb/structs/listener_state.ex
amalbuquerque/elixir-keeb
39b0cdc6efc82522c459d15e5f8277d26104ceda
[ "MIT" ]
null
null
null
lib/elixir_keeb/structs/listener_state.ex
amalbuquerque/elixir-keeb
39b0cdc6efc82522c459d15e5f8277d26104ceda
[ "MIT" ]
1
2021-07-16T13:49:00.000Z
2021-07-16T13:49:00.000Z
defmodule ElixirKeeb.Structs.ListenerState do alias ElixirKeeb.{Gpio, Utils} @fields [ :line_ports, :column_ports, :reporter, :listener_wait_ms, :current_matrix, :last_scan_at ] @enforce_keys @fields defstruct @fields def initial_state( line_ports, column_ports, report...
22.421053
68
0.699531
1d08df6c9dc2988afd242a0b6af905724adc0154
1,676
ex
Elixir
eal/alert_mailer.ex
wses-yoshida/antikythera
e108e59d2339edd0b0fad31ad4f41f56df45be55
[ "Apache-2.0" ]
null
null
null
eal/alert_mailer.ex
wses-yoshida/antikythera
e108e59d2339edd0b0fad31ad4f41f56df45be55
[ "Apache-2.0" ]
null
null
null
eal/alert_mailer.ex
wses-yoshida/antikythera
e108e59d2339edd0b0fad31ad4f41f56df45be55
[ "Apache-2.0" ]
null
null
null
# Copyright(c) 2015-2019 ACCESS CO., LTD. All rights reserved. use Croma defmodule AntikytheraEal.AlertMailer do defmodule Mail do use Croma.Struct, recursive_new?: true, fields: [ from: Croma.String, to: Croma.TypeGen.list_of(Croma.String), subject: Croma.String, body: Croma....
24.289855
98
0.629475
1d08e876971f7a4efe84a8a5a02525f9d628e156
2,526
ex
Elixir
lib/yummy_web/emails/coherence/user_email.ex
MatthieuSegret/yummy-phoenix
85b490075e3a0395b4e7cfa9f06936659e9d12b5
[ "MIT" ]
5
2017-08-27T19:45:43.000Z
2019-06-28T08:12:25.000Z
lib/yummy_web/emails/coherence/user_email.ex
MatthieuSegret/yummy-phoenix
85b490075e3a0395b4e7cfa9f06936659e9d12b5
[ "MIT" ]
null
null
null
lib/yummy_web/emails/coherence/user_email.ex
MatthieuSegret/yummy-phoenix
85b490075e3a0395b4e7cfa9f06936659e9d12b5
[ "MIT" ]
null
null
null
Code.ensure_loaded Phoenix.Swoosh defmodule YummyWeb.Coherence.UserEmail do @moduledoc false use Phoenix.Swoosh, view: YummyWeb.Coherence.EmailView, layout: {YummyWeb.Coherence.LayoutView, :email} alias Swoosh.Email require Logger alias Coherence.Config import YummyWeb.Gettext defp site_name, do: Config...
30.433735
122
0.644497
1d08eccefeaa038e89d7bf06633ad8fc497edd9f
633
exs
Elixir
config/prod.secret.exs
tenzil-rpx/powit
0feebbfc11c7bd2a45ef0664632deb9b0537fb5c
[ "MIT" ]
null
null
null
config/prod.secret.exs
tenzil-rpx/powit
0feebbfc11c7bd2a45ef0664632deb9b0537fb5c
[ "MIT" ]
null
null
null
config/prod.secret.exs
tenzil-rpx/powit
0feebbfc11c7bd2a45ef0664632deb9b0537fb5c
[ "MIT" ]
null
null
null
use Mix.Config # In this file, we keep production configuration that # you'll likely want to automate and keep away from # your version control system. # # You should document the content of this # file or create a script for recreating it, since it's # kept out of version control and might be hard to recover # or rec...
31.65
85
0.772512
1d0908c0ccf181542c23c9576421db9213cc3bba
607
ex
Elixir
web/router.ex
iboard/px.iboard.cc
f7df724931b977e47e60ab8cab822f69df7e77f8
[ "MIT" ]
2
2016-07-28T11:42:09.000Z
2016-09-12T13:56:53.000Z
web/router.ex
iboard/px.iboard.cc
f7df724931b977e47e60ab8cab822f69df7e77f8
[ "MIT" ]
null
null
null
web/router.ex
iboard/px.iboard.cc
f7df724931b977e47e60ab8cab822f69df7e77f8
[ "MIT" ]
null
null
null
defmodule Iboard.Router do use Iboard.Web, :router pipeline :browser do plug :accepts, ["html"] plug :fetch_session plug :fetch_flash plug :protect_from_forgery plug :put_secure_browser_headers plug Pjax.Plugs.Pjax end pipeline :api do plug :accepts, ["json"] end scope "/api",...
18.393939
57
0.670511
1d091f35cd72f5af3aa2d1ce30e205686eaf0c79
1,636
ex
Elixir
lib/oli/resources/resource_type.ex
chrislawson/oli-torus
94165b211ab74fac3e7c8a14110a394fa9a6f320
[ "MIT" ]
45
2020-04-17T15:40:27.000Z
2022-03-25T00:13:30.000Z
lib/oli/resources/resource_type.ex
chrislawson/oli-torus
94165b211ab74fac3e7c8a14110a394fa9a6f320
[ "MIT" ]
944
2020-02-13T02:37:01.000Z
2022-03-31T17:50:07.000Z
lib/oli/resources/resource_type.ex
chrislawson/oli-torus
94165b211ab74fac3e7c8a14110a394fa9a6f320
[ "MIT" ]
23
2020-07-28T03:36:13.000Z
2022-03-17T14:29:02.000Z
defmodule Oli.Resources.ResourceType do use Ecto.Schema import Ecto.Changeset # It would be great to encapsulate all of this into a macro. @types [ %{id: 1, type: "page"}, %{id: 2, type: "container"}, %{id: 3, type: "activity"}, %{id: 4, type: "objective"}, %{id: 5, type: "secondary"}, ...
33.387755
86
0.649756
1d09307591a6425d1b723a03b647d4ceed2d3ca3
1,904
exs
Elixir
test/ja_serializer/builder/resource_object_test.exs
tompesman/ja_serializer
2b4aafece514add516784a6a81f7d6c724df8ac2
[ "Apache-2.0" ]
null
null
null
test/ja_serializer/builder/resource_object_test.exs
tompesman/ja_serializer
2b4aafece514add516784a6a81f7d6c724df8ac2
[ "Apache-2.0" ]
null
null
null
test/ja_serializer/builder/resource_object_test.exs
tompesman/ja_serializer
2b4aafece514add516784a6a81f7d6c724df8ac2
[ "Apache-2.0" ]
null
null
null
defmodule JaSerializer.Builder.ResourceObjectTest do use ExUnit.Case defmodule ArticleSerializer do use JaSerializer def type, do: "articles" attributes [:title, :body] end defmodule NoAttributesSerializer do use JaSerializer def type, do: "articles" end test "single resource object ...
30.222222
91
0.679097
1d0939c2241c1d542eab917aa62145b84ff2ba32
32,342
ex
Elixir
lib/elixir/lib/list.ex
DmitryKakurin/elixir
a5df6a5a830d4cff8b7c8da54342b66cab999e0f
[ "Apache-2.0" ]
1
2020-01-14T18:44:56.000Z
2020-01-14T18:44:56.000Z
lib/elixir/lib/list.ex
DmitryKakurin/elixir
a5df6a5a830d4cff8b7c8da54342b66cab999e0f
[ "Apache-2.0" ]
null
null
null
lib/elixir/lib/list.ex
DmitryKakurin/elixir
a5df6a5a830d4cff8b7c8da54342b66cab999e0f
[ "Apache-2.0" ]
1
2018-01-09T20:10:59.000Z
2018-01-09T20:10:59.000Z
defmodule List do @moduledoc """ Linked lists hold zero, one, or more elements in the choosen order. Lists in Elixir are specified between square brackets: iex> [1, "two", 3, :four] [1, "two", 3, :four] Two lists can be concatenated and subtracted using the `Kernel.++/2` and `Kernel.--/2` opera...
25.956661
104
0.608218
1d094c15465f7745a5ec027ca5fd77296f12ecb8
1,291
ex
Elixir
apps/ex_wire/lib/ex_wire/packet/ping.ex
atoulme/mana
cff3fd96c23feaaeb9fe32df3c0d35ee6dc548a5
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
apps/ex_wire/lib/ex_wire/packet/ping.ex
atoulme/mana
cff3fd96c23feaaeb9fe32df3c0d35ee6dc548a5
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
apps/ex_wire/lib/ex_wire/packet/ping.ex
atoulme/mana
cff3fd96c23feaaeb9fe32df3c0d35ee6dc548a5
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
defmodule ExWire.Packet.Ping do @moduledoc """ Ping is used to determine round-trip time of messages to a peer. ``` **Ping** `0x02` [] Requests an immediate reply of Pong from the peer. ``` """ require Logger @behaviour ExWire.Packet @type t :: %__MODULE__{} defstruct [] @doc """ Given ...
19.861538
73
0.626646
1d09711e72014ed6b5aca1f0a618c856efc8ec55
1,279
ex
Elixir
clients/notebooks/lib/google_api/notebooks/v1/model/trigger_schedule_request.ex
renovate-bot/elixir-google-api
1da34cd39b670c99f067011e05ab90af93fef1f6
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/notebooks/lib/google_api/notebooks/v1/model/trigger_schedule_request.ex
swansoffiee/elixir-google-api
9ea6d39f273fb430634788c258b3189d3613dde0
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/notebooks/lib/google_api/notebooks/v1/model/trigger_schedule_request.ex
dazuma/elixir-google-api
6a9897168008efe07a6081d2326735fe332e522c
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
30.452381
83
0.767005
1d097a96924c53dcc921e6f525f8704a78640592
352
ex
Elixir
apps/gapi/lib/gapi/accounts/user.ex
rolandolucio/gapi_umbrella
b1e690804d7d2a79d3ece7ca12edf65197ca7145
[ "MIT" ]
null
null
null
apps/gapi/lib/gapi/accounts/user.ex
rolandolucio/gapi_umbrella
b1e690804d7d2a79d3ece7ca12edf65197ca7145
[ "MIT" ]
null
null
null
apps/gapi/lib/gapi/accounts/user.ex
rolandolucio/gapi_umbrella
b1e690804d7d2a79d3ece7ca12edf65197ca7145
[ "MIT" ]
null
null
null
defmodule Gapi.Accounts.User do use Ecto.Schema import Ecto.Changeset schema "users" do field :email, :string field :name, :string # has_many :posts, Gapi.Posts.post timestamps() end @doc false def changeset(user, attrs) do user |> cast(attrs, [:name, :email]) |> validate_requ...
17.6
41
0.644886
1d097e4094df7e335611f07d3a6a21af7b93d00d
1,952
ex
Elixir
lib/boundary/mix.ex
LostKobrakai/boundary
5249693995b8f2e00a72417b151d8f4acdc5963f
[ "MIT" ]
null
null
null
lib/boundary/mix.ex
LostKobrakai/boundary
5249693995b8f2e00a72417b151d8f4acdc5963f
[ "MIT" ]
null
null
null
lib/boundary/mix.ex
LostKobrakai/boundary
5249693995b8f2e00a72417b151d8f4acdc5963f
[ "MIT" ]
null
null
null
defmodule Boundary.Mix do @moduledoc false use Boundary, deps: [Boundary] @spec app_name :: atom def app_name, do: Keyword.fetch!(Mix.Project.config(), :app) @spec load_app :: :ok def load_app do load_app_recursive(app_name()) load_compile_time_deps() :ok end @spec manifest_path(String.t...
27.492958
108
0.643955
1d09ac34b6ec024579fc49696ed25aa406bdafb2
1,920
ex
Elixir
lib/oauth2/response.ex
clemensm/oauth2
6d35d769f4cf38ae42182ead29c324d89f8cb905
[ "MIT" ]
689
2015-01-05T23:14:22.000Z
2021-12-28T13:24:10.000Z
lib/oauth2/response.ex
clemensm/oauth2
6d35d769f4cf38ae42182ead29c324d89f8cb905
[ "MIT" ]
141
2015-01-14T11:26:25.000Z
2022-01-03T06:20:23.000Z
lib/oauth2/response.ex
clemensm/oauth2
6d35d769f4cf38ae42182ead29c324d89f8cb905
[ "MIT" ]
164
2015-01-14T11:26:42.000Z
2021-12-29T16:44:47.000Z
defmodule OAuth2.Response do @moduledoc """ Defines the `OAuth2.Response` struct which is created from the HTTP responses made by the `OAuth2.Client` module. ## Struct fields * `status_code` - HTTP response status code * `headers` - HTTP response headers * `body` - Parsed HTTP response body (based on "c...
26.666667
79
0.673958
1d0a28e570ed4979af1f05284d4b2bf578dbc8ea
839
exs
Elixir
mix.exs
lowlandresearch/kudzu
f65da5061c436afb114a2e95bc6d115b6ec7be53
[ "MIT" ]
null
null
null
mix.exs
lowlandresearch/kudzu
f65da5061c436afb114a2e95bc6d115b6ec7be53
[ "MIT" ]
4
2020-05-16T16:05:33.000Z
2020-05-16T19:52:12.000Z
mix.exs
lowlandresearch/kudzu
f65da5061c436afb114a2e95bc6d115b6ec7be53
[ "MIT" ]
null
null
null
defmodule Kudzu.MixProject do use Mix.Project def project do [ apps_path: "apps", version: "0.1.0", start_permanent: Mix.env() == :prod, deps: deps() ] end def application do [ extra_applications: [:logger, :csv, :timex], ] end # Dependencies listed here are...
20.463415
66
0.56615
1d0a4f8c86e3542fe0e16ddca16adb69439e3e55
1,850
exs
Elixir
mix.exs
valuechainfactory/phoenix_oauth2_provider
5219115e6ca08af427b05771b1e1e6f9e45dc054
[ "MIT" ]
null
null
null
mix.exs
valuechainfactory/phoenix_oauth2_provider
5219115e6ca08af427b05771b1e1e6f9e45dc054
[ "MIT" ]
null
null
null
mix.exs
valuechainfactory/phoenix_oauth2_provider
5219115e6ca08af427b05771b1e1e6f9e45dc054
[ "MIT" ]
null
null
null
defmodule PhoenixOauth2Provider.Mixfile do use Mix.Project @version "0.5.1" def project do [ app: :phoenix_oauth2_provider, version: @version, elixir: "~> 1.8", elixirc_paths: elixirc_paths(Mix.env()), start_permanent: Mix.env() == :prod, compilers: [:phoenix] ++ Mix.comp...
26.428571
92
0.588108
1d0a637487c7795e8d1956450385d9d24b80a94a
286
exs
Elixir
config/test.exs
LetThereBeDwight/phx_demo_processor
2ff6247e69ccc6cbee9a2e7bb20e72eafef8cc94
[ "MIT" ]
null
null
null
config/test.exs
LetThereBeDwight/phx_demo_processor
2ff6247e69ccc6cbee9a2e7bb20e72eafef8cc94
[ "MIT" ]
null
null
null
config/test.exs
LetThereBeDwight/phx_demo_processor
2ff6247e69ccc6cbee9a2e7bb20e72eafef8cc94
[ "MIT" ]
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 :phx_demo_processor, PhxDemoProcessorWeb.Endpoint, http: [port: 4002], server: false # Print only warnings and errors during test config :logger, level: :warn
26
57
0.755245
1d0b438047ab2fdcabf307f0bdeb58ac51809d0d
1,088
ex
Elixir
2020/liveview/dazzle/lib/dazzle_web/channels/user_socket.ex
herminiotorres/programmer_passport
d1786518a3a5f82471457e0ace41c4c33343739a
[ "MIT" ]
null
null
null
2020/liveview/dazzle/lib/dazzle_web/channels/user_socket.ex
herminiotorres/programmer_passport
d1786518a3a5f82471457e0ace41c4c33343739a
[ "MIT" ]
null
null
null
2020/liveview/dazzle/lib/dazzle_web/channels/user_socket.ex
herminiotorres/programmer_passport
d1786518a3a5f82471457e0ace41c4c33343739a
[ "MIT" ]
null
null
null
defmodule DazzleWeb.UserSocket do use Phoenix.Socket ## Channels # channel "room:*", DazzleWeb.RoomChannel # Socket params are passed from the client and can # be used to verify and authenticate a user. After # verification, you can put default assigns into # the socket that will be set for all channels...
30.222222
83
0.693934
1d0b4424f38d2b86b797ec8c24342182d5c4e3aa
1,137
exs
Elixir
test/time_zone_info/data_persistence_test.exs
hrzndhrn/time_zone_info
18fa4e7aefd68d256202de8e0f96b69b8a9dc618
[ "MIT" ]
5
2020-04-05T16:03:03.000Z
2022-02-07T22:11:04.000Z
test/time_zone_info/data_persistence_test.exs
hrzndhrn/time_zone_info
18fa4e7aefd68d256202de8e0f96b69b8a9dc618
[ "MIT" ]
16
2020-03-28T17:46:13.000Z
2021-08-25T08:35:48.000Z
test/time_zone_info/data_persistence_test.exs
hrzndhrn/time_zone_info
18fa4e7aefd68d256202de8e0f96b69b8a9dc618
[ "MIT" ]
null
null
null
defmodule TimeZoneInfo.DataPersistenceTest do use ExUnit.Case import Mox import TimeZoneInfo.TestUtils alias TimeZoneInfo.{DataPersistence, DataPersistenceMock} setup do put_env(data_persistence: DataPersistenceMock) on_exit(&delete_env/0) end setup :verify_on_exit! test "put/1" do exp...
22.74
75
0.720317
1d0b52fb69b248f6f06be728b4c1893f0824f037
882
ex
Elixir
clients/genomics/lib/google_api/genomics/v1/metadata.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/genomics/lib/google_api/genomics/v1/metadata.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/genomics/lib/google_api/genomics/v1/metadata.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-10-04T10:12:44.000Z
2020-10-04T10:12:44.000Z
# Copyright 2020 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.666667
74
0.758503
1d0ba557e07f85576ec556ad5b40300dd842c037
1,596
ex
Elixir
lib/hello_web/endpoint.ex
coletiv/phoenix-client-vulnerability
141e394c255218a935d0f0f71b97a4c9cffeb223
[ "MIT" ]
null
null
null
lib/hello_web/endpoint.ex
coletiv/phoenix-client-vulnerability
141e394c255218a935d0f0f71b97a4c9cffeb223
[ "MIT" ]
null
null
null
lib/hello_web/endpoint.ex
coletiv/phoenix-client-vulnerability
141e394c255218a935d0f0f71b97a4c9cffeb223
[ "MIT" ]
null
null
null
defmodule HelloWeb.Endpoint do use Phoenix.Endpoint, otp_app: :hello # The session will be stored in the cookie and signed, # this means its contents can be read but not tampered with. # Set :encryption_salt if you would also like to encrypt it. @session_options [ store: :cookie, key: "_hello_key", ...
29.018182
97
0.716165
1d0bb89b1edd7c891ea7ec0641f12549f3af43c1
10,035
ex
Elixir
lib/event_store/streams/stream.ex
jsmestad/eventstore
93660ce316ca174ff4694e211a7ac420253e4dac
[ "MIT" ]
null
null
null
lib/event_store/streams/stream.ex
jsmestad/eventstore
93660ce316ca174ff4694e211a7ac420253e4dac
[ "MIT" ]
null
null
null
lib/event_store/streams/stream.ex
jsmestad/eventstore
93660ce316ca174ff4694e211a7ac420253e4dac
[ "MIT" ]
null
null
null
defmodule EventStore.Streams.Stream do @moduledoc false alias EventStore.{EventData, RecordedEvent, Storage} alias EventStore.Streams.StreamInfo def append_to_stream(conn, stream_uuid, expected_version, events, opts) do {serializer, opts} = Keyword.pop(opts, :serializer) transaction( conn, ...
32.163462
99
0.681814
1d0bc1201804e1ae6ae7bc17d1a41ceaf74beb7e
2,786
exs
Elixir
test/senti_web/controllers/user_controller_test.exs
jeepers3327/senti
2e346759d8a8704f11364a835b6b9cd00a52c640
[ "MIT" ]
null
null
null
test/senti_web/controllers/user_controller_test.exs
jeepers3327/senti
2e346759d8a8704f11364a835b6b9cd00a52c640
[ "MIT" ]
null
null
null
test/senti_web/controllers/user_controller_test.exs
jeepers3327/senti
2e346759d8a8704f11364a835b6b9cd00a52c640
[ "MIT" ]
null
null
null
defmodule SentiWeb.UserControllerTest do use SentiWeb.ConnCase alias Senti.Accounts alias Senti.Accounts.User @create_attrs %{ emai: "some emai", name: "some name", password_hash: "some password_hash" } @update_attrs %{ emai: "some updated emai", name: "some updated name", password...
28.721649
88
0.59799
1d0bde51eecad4c0317d5efc9bd63e4334a7c6a0
7,609
ex
Elixir
lib/blue_jet/app/identity/user/service.ex
freshcom/freshcom-api
4f2083277943cf4e4e8fd4c4d443c7309f285ad7
[ "BSD-3-Clause" ]
44
2018-05-09T01:08:57.000Z
2021-01-19T07:25:26.000Z
lib/blue_jet/app/identity/user/service.ex
freshcom/freshcom-api
4f2083277943cf4e4e8fd4c4d443c7309f285ad7
[ "BSD-3-Clause" ]
36
2018-05-08T23:59:54.000Z
2018-09-28T13:50:30.000Z
lib/blue_jet/app/identity/user/service.ex
freshcom/freshcom-api
4f2083277943cf4e4e8fd4c4d443c7309f285ad7
[ "BSD-3-Clause" ]
9
2018-05-09T14:09:19.000Z
2021-03-21T21:04:04.000Z
defmodule BlueJet.Identity.User.Service do @moduledoc false use BlueJet, :service import BlueJet.Utils, only: [atomize_keys: 2] import BlueJet.Identity.Account.Service, only: [create_account: 2] import BlueJet.Identity.AccountMembership.Service, only: [create_account_membership!: 2] import BlueJet.Identi...
34.744292
144
0.647391
1d0bf40f514c9220bb8420cee5407afe1884eafa
335
exs
Elixir
test/day03_test.exs
Lakret/aoc2018
a09bfe7b9bc5faaada4a411d4d666f0626cd6562
[ "MIT" ]
1
2021-04-21T16:16:59.000Z
2021-04-21T16:16:59.000Z
test/day03_test.exs
Lakret/aoc2018
a09bfe7b9bc5faaada4a411d4d666f0626cd6562
[ "MIT" ]
null
null
null
test/day03_test.exs
Lakret/aoc2018
a09bfe7b9bc5faaada4a411d4d666f0626cd6562
[ "MIT" ]
null
null
null
defmodule Day03Test do use ExUnit.Case @claims [ "#1 @ 1,3: 4x4", "#2 @ 3,1: 4x4", "#3 @ 5,5: 2x2" ] test "intersection algorithm is correct" do assert Day03.part_one(@claims) == 4 end test "algorithm for finding non-intersecting claim id is correct" do assert Day03.part_two(@claims) ...
18.611111
70
0.626866
1d0bfb9e3c03aa1659eaea96aeedeb19de05e1c9
9,853
ex
Elixir
lib/mix/lib/mix/tasks/profile.cprof.ex
lytedev/elixir
dc25bb8e1484e2328eef819402d268dec7bb908a
[ "Apache-2.0" ]
null
null
null
lib/mix/lib/mix/tasks/profile.cprof.ex
lytedev/elixir
dc25bb8e1484e2328eef819402d268dec7bb908a
[ "Apache-2.0" ]
null
null
null
lib/mix/lib/mix/tasks/profile.cprof.ex
lytedev/elixir
dc25bb8e1484e2328eef819402d268dec7bb908a
[ "Apache-2.0" ]
null
null
null
defmodule Mix.Tasks.Profile.Cprof do use Mix.Task @shortdoc "Profiles the given file or expression with cprof" @moduledoc """ Profiles the given file or expression using Erlang's `cprof` tool. `cprof` can be useful when you want to discover the bottlenecks related to function calls. Before running the...
35.829091
98
0.620623
1d0bfcc48ad2ecc7d7bbc3b7cbc92494ffc8f60b
1,493
ex
Elixir
lib/mix/tasks/admin.gen.resource.ex
andriybohdan/ex_admin
e31c725078ac4e7390204a87d96360a21ffe7b90
[ "MIT" ]
null
null
null
lib/mix/tasks/admin.gen.resource.ex
andriybohdan/ex_admin
e31c725078ac4e7390204a87d96360a21ffe7b90
[ "MIT" ]
null
null
null
lib/mix/tasks/admin.gen.resource.ex
andriybohdan/ex_admin
e31c725078ac4e7390204a87d96360a21ffe7b90
[ "MIT" ]
1
2020-06-06T18:08:16.000Z
2020-06-06T18:08:16.000Z
defmodule Mix.Tasks.Admin.Gen.Resource do @moduledoc """ Generate an ExAdmin Resource file Creates a resource file used to define the administration pages for the auto administration feature mix admin.gen.resource Survey Creates a web/admin/survey.ex file. """ @shortdoc "Generate a Resource fil...
24.47541
97
0.680509
1d0bfdf0d3cb02bf456bc4e3f609fd02798998bc
1,688
exs
Elixir
request-header/config/dev.exs
dalamilla/phoenix-projects
52654fb0d3ff7d5b556569dac5c0863e230e3a00
[ "MIT" ]
null
null
null
request-header/config/dev.exs
dalamilla/phoenix-projects
52654fb0d3ff7d5b556569dac5c0863e230e3a00
[ "MIT" ]
null
null
null
request-header/config/dev.exs
dalamilla/phoenix-projects
52654fb0d3ff7d5b556569dac5c0863e230e3a00
[ "MIT" ]
null
null
null
import 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 esbuild to bundle .js and .css sources. config :request_header, RequestHeaderWeb.Endpoint, # Bindin...
32.461538
86
0.729858
1d0c0d0931d7b77c1885435d30e5fb17eddc536b
2,317
ex
Elixir
clients/content/lib/google_api/content/v2/model/orders_custom_batch_request_entry_update_shipment.ex
kaaboaye/elixir-google-api
1896784c4342151fd25becd089a5beb323eff567
[ "Apache-2.0" ]
null
null
null
clients/content/lib/google_api/content/v2/model/orders_custom_batch_request_entry_update_shipment.ex
kaaboaye/elixir-google-api
1896784c4342151fd25becd089a5beb323eff567
[ "Apache-2.0" ]
null
null
null
clients/content/lib/google_api/content/v2/model/orders_custom_batch_request_entry_update_shipment.ex
kaaboaye/elixir-google-api
1896784c4342151fd25becd089a5beb323eff567
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
37.983607
211
0.713854
1d0c1593e7d8dd4173859cb249872f5590154369
2,623
ex
Elixir
lib/brando_admin/components/file_picker.ex
univers-agency/brando
69c3c52498a3f64518da3522cd9f27294a52cc68
[ "Apache-2.0" ]
1
2020-04-26T09:53:02.000Z
2020-04-26T09:53:02.000Z
lib/brando_admin/components/file_picker.ex
univers-agency/brando
69c3c52498a3f64518da3522cd9f27294a52cc68
[ "Apache-2.0" ]
198
2019-08-20T16:16:07.000Z
2020-07-03T15:42:07.000Z
lib/brando_admin/components/file_picker.ex
univers-agency/brando
69c3c52498a3f64518da3522cd9f27294a52cc68
[ "Apache-2.0" ]
null
null
null
defmodule BrandoAdmin.Components.FilePicker do use BrandoAdmin, :live_component alias BrandoAdmin.Components.Content import Brando.Gettext def update( %{ config_target: config_target, event_target: event_target, multi: multi, selected_files: selected_files ...
31.60241
170
0.574152
1d0c2462783022b6fb713aed2fca236d500a6f33
1,325
ex
Elixir
apps/banking_api_challenge_web/test/support/conn_case.ex
jhonndabi/banking-api-challenge
1e13c675b02c8e62a76e82b0a0dd6a44306a211e
[ "Apache-2.0" ]
null
null
null
apps/banking_api_challenge_web/test/support/conn_case.ex
jhonndabi/banking-api-challenge
1e13c675b02c8e62a76e82b0a0dd6a44306a211e
[ "Apache-2.0" ]
null
null
null
apps/banking_api_challenge_web/test/support/conn_case.ex
jhonndabi/banking-api-challenge
1e13c675b02c8e62a76e82b0a0dd6a44306a211e
[ "Apache-2.0" ]
1
2021-04-20T19:05:48.000Z
2021-04-20T19:05:48.000Z
defmodule BankingApiChallengeWeb.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. Fi...
30.113636
81
0.741887
1d0c7c4fc1000a13e23f3ec813deffe480dd0b08
182
exs
Elixir
test/controllers/page_controller_test.exs
erickgnavar/tweet_map
4c8839e35dc96cd8d6ca12fb2895496f2a0c100e
[ "MIT" ]
null
null
null
test/controllers/page_controller_test.exs
erickgnavar/tweet_map
4c8839e35dc96cd8d6ca12fb2895496f2a0c100e
[ "MIT" ]
null
null
null
test/controllers/page_controller_test.exs
erickgnavar/tweet_map
4c8839e35dc96cd8d6ca12fb2895496f2a0c100e
[ "MIT" ]
null
null
null
defmodule TweetMap.PageControllerTest do use TweetMap.ConnCase test "GET /" do conn = get conn(), "/" assert html_response(conn, 200) =~ "Welcome to Phoenix!" end end
20.222222
60
0.681319
1d0c888d153e090d8b6424aedd7863f889f20396
1,387
ex
Elixir
elixir/lib/homework_web/schemas/types.ex
sameertj/web-homework
244ca20455c5e4adcab8d5f395be313abccd87fd
[ "MIT" ]
null
null
null
elixir/lib/homework_web/schemas/types.ex
sameertj/web-homework
244ca20455c5e4adcab8d5f395be313abccd87fd
[ "MIT" ]
null
null
null
elixir/lib/homework_web/schemas/types.ex
sameertj/web-homework
244ca20455c5e4adcab8d5f395be313abccd87fd
[ "MIT" ]
null
null
null
defmodule HomeworkWeb.Schemas.Types do @moduledoc """ Defines the types for the Schema to use. """ use Absinthe.Schema.Notation import_types(Absinthe.Type.Custom) import_types(HomeworkWeb.Schemas.MerchantsSchema) import_types(HomeworkWeb.Schemas.TransactionsSchema) import_types(HomeworkWeb.Schemas.User...
25.685185
83
0.692862
1d0ca2a699f72fe0c492421831e21d898fb24dd7
384
ex
Elixir
web/views/user_view.ex
sgeos/memo_api
d57d0a1190296364a559510de9b4dd9d50b034e8
[ "CC0-1.0" ]
null
null
null
web/views/user_view.ex
sgeos/memo_api
d57d0a1190296364a559510de9b4dd9d50b034e8
[ "CC0-1.0" ]
null
null
null
web/views/user_view.ex
sgeos/memo_api
d57d0a1190296364a559510de9b4dd9d50b034e8
[ "CC0-1.0" ]
null
null
null
defmodule MemoApi.UserView do use MemoApi.Web, :view def render("index.json", %{users: users}) do %{data: render_many(users, MemoApi.UserView, "user.json")} end def render("show.json", %{user: user}) do %{data: render_one(user, MemoApi.UserView, "user.json")} end def render("user.json", %{user: u...
21.333333
62
0.638021
1d0cd4013dd84fb607c82d04d83523d69b0ae8cd
1,945
ex
Elixir
clients/service_networking/lib/google_api/service_networking/v1/model/logging_destination.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/service_networking/lib/google_api/service_networking/v1/model/logging_destination.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/service_networking/lib/google_api/service_networking/v1/model/logging_destination.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-10-04T10:12:44.000Z
2020-10-04T10:12:44.000Z
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
38.9
282
0.741902
1d0d2bc063cd449c5b677e795dc7faf9b020d120
1,572
ex
Elixir
clients/content/lib/google_api/content/v2/model/order_line_item_product_variant_attribute.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/content/lib/google_api/content/v2/model/order_line_item_product_variant_attribute.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/content/lib/google_api/content/v2/model/order_line_item_product_variant_attribute.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
1
2020-10-04T10:12:44.000Z
2020-10-04T10:12:44.000Z
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
31.44
95
0.730916
1d0da2ba263a270c1fafae62b2de83c06805ad1c
938
ex
Elixir
lib/web/controllers/session_controller.ex
stevegrossi/ex_venture
e02d5a63fdb882d92cfb4af3e15f7b48ad7054aa
[ "MIT" ]
2
2019-05-14T11:36:44.000Z
2020-07-01T08:54:04.000Z
lib/web/controllers/session_controller.ex
nickwalton/ex_venture
d8ff1b0181db03f9ddcb7610ae7ab533feecbfbb
[ "MIT" ]
null
null
null
lib/web/controllers/session_controller.ex
nickwalton/ex_venture
d8ff1b0181db03f9ddcb7610ae7ab533feecbfbb
[ "MIT" ]
1
2021-01-29T14:12:40.000Z
2021-01-29T14:12:40.000Z
defmodule Web.SessionController do use Web, :controller alias Web.User def new(conn, _params) do conn |> render("new.html") end def create(conn, %{"user" => %{"name" => name, "password" => password}}) do case User.find_and_validate(name, password) do {:error, :invalid} -> conn ...
22.333333
77
0.597015
1d0dbc70fd8dd4054300cd75713f047b29b06cdb
7,151
ex
Elixir
lib/cforum_web/controllers/mail_controller.ex
jrieger/cforum_ex
61f6ce84708cb55bd0feedf69853dae64146a7a0
[ "MIT" ]
16
2019-04-04T06:33:33.000Z
2021-08-16T19:34:31.000Z
lib/cforum_web/controllers/mail_controller.ex
jrieger/cforum_ex
61f6ce84708cb55bd0feedf69853dae64146a7a0
[ "MIT" ]
294
2019-02-10T11:10:27.000Z
2022-03-30T04:52:53.000Z
lib/cforum_web/controllers/mail_controller.ex
jrieger/cforum_ex
61f6ce84708cb55bd0feedf69853dae64146a7a0
[ "MIT" ]
10
2019-02-10T10:39:24.000Z
2021-07-06T11:46:05.000Z
defmodule CforumWeb.MailController do use CforumWeb, :controller alias Cforum.PrivMessages.PrivMessage alias Cforum.PrivMessages alias Cforum.Messages alias Cforum.Abilities alias Cforum.ConfigManager alias Cforum.Helpers alias CforumWeb.Views.ViewHelpers alias CforumWeb.Sortable alias CforumWeb....
32.953917
106
0.654734
1d0dc34f8152ca20bd17e6d091493ab1f1e0538f
1,338
ex
Elixir
lib/absinthe/phase/document/validation/result.ex
TheRealReal/absinthe
6eae5bc36283e58f42d032b8afd90de3ad64f97b
[ "MIT" ]
4,101
2016-03-02T03:49:20.000Z
2022-03-31T05:46:01.000Z
lib/absinthe/phase/document/validation/result.ex
TheRealReal/absinthe
6eae5bc36283e58f42d032b8afd90de3ad64f97b
[ "MIT" ]
889
2016-03-02T16:06:59.000Z
2022-03-31T20:24:12.000Z
lib/absinthe/phase/document/validation/result.ex
TheRealReal/absinthe
6eae5bc36283e58f42d032b8afd90de3ad64f97b
[ "MIT" ]
564
2016-03-02T07:49:59.000Z
2022-03-06T14:40:59.000Z
defmodule Absinthe.Phase.Document.Validation.Result do @moduledoc false # Collects validation errors into the result. alias Absinthe.{Blueprint, Phase} use Absinthe.Phase @doc """ Run the validation. """ @spec run(Blueprint.t(), Keyword.t()) :: Phase.result_t() def run(input, options \\ []) do ...
26.235294
82
0.633782
1d0e0699b283ecda2314a7891a338e54e18b2427
327
exs
Elixir
apps/firestorm_data/config/config.exs
firestormforum/firestorm_elixir
80caba13daa21ef6087aa85f6cf0dd1f016e9aef
[ "MIT" ]
14
2020-01-03T04:13:48.000Z
2021-12-01T16:16:24.000Z
apps/firestorm_data/config/config.exs
firestormforum/firestorm_elixir
80caba13daa21ef6087aa85f6cf0dd1f016e9aef
[ "MIT" ]
1
2019-10-07T23:31:52.000Z
2019-10-07T23:31:52.000Z
apps/firestorm_data/config/config.exs
firestormforum/firestorm_elixir
80caba13daa21ef6087aa85f6cf0dd1f016e9aef
[ "MIT" ]
4
2020-01-20T16:43:18.000Z
2022-03-03T23:05:37.000Z
# This file is responsible for configuring your application # and its dependencies with the aid of the Mix.Config module. use Mix.Config config :firestorm_data, ecto_repos: [FirestormData.Repo] config :firestorm_data, FirestormData.Repo, migration_timestamps: [type: :naive_datetime_usec] import_config "#{Mix.env()...
29.727273
94
0.792049
1d0e37b3830a0c14d2f4f6c438ed4856fd948d19
263
exs
Elixir
priv/repo/migrations/20180609085936_create_tag.exs
pwgn/elixbwe
ce8baedfb923d36991ff944de368ce7008e72805
[ "MIT" ]
1
2019-03-17T15:04:36.000Z
2019-03-17T15:04:36.000Z
priv/repo/migrations/20180609085936_create_tag.exs
pwgn/elixbwe
ce8baedfb923d36991ff944de368ce7008e72805
[ "MIT" ]
null
null
null
priv/repo/migrations/20180609085936_create_tag.exs
pwgn/elixbwe
ce8baedfb923d36991ff944de368ce7008e72805
[ "MIT" ]
null
null
null
defmodule Elixbwe.Repo.Migrations.CreateTag do use Ecto.Migration def up do create table(:tags, primary_key: false) do add :id, :string, primary_key: true add :description, :string end end def down do drop table(:tags) end end
17.533333
46
0.673004
1d0e55ece11f1d4ef06173ebc45fbe12f9a01bbb
1,441
exs
Elixir
test/vim_compiler/parser/parse_assignment_test.exs
RobertDober/vim_compiler
7bb4f4b26a62d12cb0433279275fadee9abda617
[ "Apache-2.0" ]
null
null
null
test/vim_compiler/parser/parse_assignment_test.exs
RobertDober/vim_compiler
7bb4f4b26a62d12cb0433279275fadee9abda617
[ "Apache-2.0" ]
null
null
null
test/vim_compiler/parser/parse_assignment_test.exs
RobertDober/vim_compiler
7bb4f4b26a62d12cb0433279275fadee9abda617
[ "Apache-2.0" ]
null
null
null
defmodule VimCompiler.Parser.ParseAssignmentTest do use ExUnit.Case alias VimCompiler.Ast import VimCompiler.Parser, only: [parse_assignment: 1] import VimCompiler.Helpers.LeexHelpers, only: [tokenize: 2] describe "any expression is an assignment" do test "literal" do {:ok, %Ast.Number{value: ...
30.020833
84
0.58501
1d0e64399dbf3231b96d317951f826b1764a3178
935
ex
Elixir
test/support/channel_case.ex
awochna/survey
2db589ce0bea8cc9613beb34cb983348c1458f01
[ "MIT" ]
null
null
null
test/support/channel_case.ex
awochna/survey
2db589ce0bea8cc9613beb34cb983348c1458f01
[ "MIT" ]
null
null
null
test/support/channel_case.ex
awochna/survey
2db589ce0bea8cc9613beb34cb983348c1458f01
[ "MIT" ]
null
null
null
defmodule Survey.Web.ChannelCase do @moduledoc """ This module defines the test case to be used by channel tests. Such tests rely on `Phoenix.ChannelTest` and also import other functionality to make it easier to build common datastructures and query the data layer. Finally, if the test case interacts wi...
24.605263
68
0.713369
1d0ed32e4543b8a8594a55d0ca1b912e833641b9
1,089
exs
Elixir
priv/repo/migrations/20181222191215_migrate_to_bid2.exs
DrPandemic/expressive-broker
66a8da94ede2c101db9e1841e17898b5bae5df49
[ "Apache-2.0", "CC-BY-4.0", "MIT" ]
null
null
null
priv/repo/migrations/20181222191215_migrate_to_bid2.exs
DrPandemic/expressive-broker
66a8da94ede2c101db9e1841e17898b5bae5df49
[ "Apache-2.0", "CC-BY-4.0", "MIT" ]
null
null
null
priv/repo/migrations/20181222191215_migrate_to_bid2.exs
DrPandemic/expressive-broker
66a8da94ede2c101db9e1841e17898b5bae5df49
[ "Apache-2.0", "CC-BY-4.0", "MIT" ]
null
null
null
defmodule Wow.Repo.Migrations.MigrateToBid2 do use Ecto.Migration def change do execute(" INSERT INTO auction_bid_2 (id, bid, item_id, buyout, quantity, rand, context, realm_id, character_id, first_dump_timestamp, last_dump_timestamp, last_time_left) SELECT id, MAX(ts.bid), item_id, buyout, quantit...
47.347826
166
0.740129
1d0ed457f72c1ad8ab7ef51d86e0d1a1cc1400f5
1,130
ex
Elixir
clients/compute/lib/google_api/compute/v1/model/alias_ip_range.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/compute/lib/google_api/compute/v1/model/alias_ip_range.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/compute/lib/google_api/compute/v1/model/alias_ip_range.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
1
2018-07-28T20:50:50.000Z
2018-07-28T20:50:50.000Z
# Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
29.736842
77
0.746903
1d0ed8e0c34c7c6a4c26b23c9323c9ab19d4841e
4,468
ex
Elixir
clients/service_usage/lib/google_api/service_usage/v1/model/api.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/service_usage/lib/google_api/service_usage/v1/model/api.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/service_usage/lib/google_api/service_usage/v1/model/api.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...
47.531915
168
0.714637
1d0eed263eb9488e338dc80648c04ae39475f9e7
2,107
exs
Elixir
apps/authenticator/test/authenticator/sessions/manager_test.exs
lcpojr/watcher_ex
bd5a9210b5b41a6c9b5d4255de19fc6967d29fb7
[ "Apache-2.0" ]
9
2020-10-13T14:11:37.000Z
2021-08-12T18:40:08.000Z
apps/authenticator/test/authenticator/sessions/manager_test.exs
lcpojr/watcher_ex
bd5a9210b5b41a6c9b5d4255de19fc6967d29fb7
[ "Apache-2.0" ]
28
2020-10-04T14:43:48.000Z
2021-12-07T16:54:22.000Z
apps/authenticator/test/authenticator/sessions/manager_test.exs
lcpojr/watcher_ex
bd5a9210b5b41a6c9b5d4255de19fc6967d29fb7
[ "Apache-2.0" ]
3
2020-11-25T20:59:47.000Z
2021-08-30T10:36:58.000Z
defmodule Authenticator.Sessions.ManagerTest do @moduledoc false use Authenticator.DataCase, async: true alias Authenticator.Sessions.Manager alias Authenticator.Sessions.Schemas.Session describe "#{Manager}.execute/0" do setup do {:ok, active_session: insert!(:session, status: "active")} end...
31.447761
84
0.596583
1d0ef934f180935dec80fee1e2f31094ab30df10
793
ex
Elixir
playground/elixir-live-doom-fire/lib/live_doom_fire_web/live/doom-fire-live.ex
allmonty/doom-fire-algorithm
dac483b85973020c5f86962d3d9344018711043b
[ "MIT" ]
null
null
null
playground/elixir-live-doom-fire/lib/live_doom_fire_web/live/doom-fire-live.ex
allmonty/doom-fire-algorithm
dac483b85973020c5f86962d3d9344018711043b
[ "MIT" ]
null
null
null
playground/elixir-live-doom-fire/lib/live_doom_fire_web/live/doom-fire-live.ex
allmonty/doom-fire-algorithm
dac483b85973020c5f86962d3d9344018711043b
[ "MIT" ]
null
null
null
defmodule LiveDoomFireWeb.LiveDoomFire do use Phoenix.LiveView alias LiveDoomFireWeb.DoomFire def render(assigns) do LiveDoomFireWeb.LiveDoomFireView.render("index.html", assigns) end def mount(_session, socket) do if connected?(socket), do: :timer.send_interval(72, self(), :tick) {fire_data, ...
28.321429
76
0.727617
1d0f82aaff26eefffc74739de84fb2720dfa51c0
266
ex
Elixir
lib/linkett_adapter/exceptions.ex
UrbanOS-Examples/linkett_adapter
5aff64f5d2c29044e71d26d246032812e4f6a88e
[ "Apache-2.0" ]
null
null
null
lib/linkett_adapter/exceptions.ex
UrbanOS-Examples/linkett_adapter
5aff64f5d2c29044e71d26d246032812e4f6a88e
[ "Apache-2.0" ]
null
null
null
lib/linkett_adapter/exceptions.ex
UrbanOS-Examples/linkett_adapter
5aff64f5d2c29044e71d26d246032812e4f6a88e
[ "Apache-2.0" ]
null
null
null
defmodule LinkettAdapter.BadRequest do defexception message: "bad request" def exception(message) do %LinkettAdapter.BadRequest{message: Map.get(message, "msg")} end end defmodule LinkettAdapter.Unauthorized do defexception message: "unauthorized" end
22.166667
64
0.785714
1d0f91333c28284c5ca0412e9e639ac5ff7aa474
1,645
exs
Elixir
test/test_helper.exs
yalabot/slacker
3cf4f61c9aa9d74837859568937e171b6a5ba4b3
[ "MIT" ]
1
2016-07-30T10:56:24.000Z
2016-07-30T10:56:24.000Z
test/test_helper.exs
yalabot/slacker
3cf4f61c9aa9d74837859568937e171b6a5ba4b3
[ "MIT" ]
null
null
null
test/test_helper.exs
yalabot/slacker
3cf4f61c9aa9d74837859568937e171b6a5ba4b3
[ "MIT" ]
1
2016-11-16T16:35:13.000Z
2016-11-16T16:35:13.000Z
defmodule Slacker.TestServer do use GenServer alias Slacker.TestServer.HTTP defmodule State do defstruct test_pid: nil, http_pid: nil, response: nil end def start_link do GenServer.start_link(__MODULE__, nil) end def init(_) do Process.flag(:trap_exit, true) {:ok, http} = HTTP.start(sel...
20.822785
71
0.655319
1d0f940b7d1b9f9329973c59777922ac1ebd468c
373
exs
Elixir
priv/repo/seeds.exs
elitau/page_change_notifier
55c02ef0a464040d98cf416c131e39e7a09df975
[ "MIT" ]
null
null
null
priv/repo/seeds.exs
elitau/page_change_notifier
55c02ef0a464040d98cf416c131e39e7a09df975
[ "MIT" ]
null
null
null
priv/repo/seeds.exs
elitau/page_change_notifier
55c02ef0a464040d98cf416c131e39e7a09df975
[ "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: # # PageChangeNotifier.Repo.insert!(%PageChangeNotifier.SomeSchema{}) # # We recommend using the bang functions (`insert!`, `update!` # a...
31.083333
71
0.723861
1d0fd32d3de7b0c991b799d60cea396ed1dffb67
3,043
ex
Elixir
examples/product_repository.ex
ssnickolay/ebayka
a03e3aa2d7b0abe3cbb9dbc90efa59ae9c6e6ccd
[ "Apache-2.0" ]
6
2018-02-11T13:10:04.000Z
2021-08-13T14:35:52.000Z
examples/product_repository.ex
ssnickolay/ebayka
a03e3aa2d7b0abe3cbb9dbc90efa59ae9c6e6ccd
[ "Apache-2.0" ]
null
null
null
examples/product_repository.ex
ssnickolay/ebayka
a03e3aa2d7b0abe3cbb9dbc90efa59ae9c6e6ccd
[ "Apache-2.0" ]
3
2018-02-11T13:09:56.000Z
2021-12-09T20:29:10.000Z
defmodule EbayProduct do @moduledoc """ Simple struct for DSL """ defstruct title: nil, description: nil, category_id: nil, price: nil, quantity: nil, sku: nil end defmodule VerifyAddItem do @moduledoc """ VerifyAddItem request """ import XmlBuilder def build(product) do element(:Item, [ e...
32.72043
98
0.637857
1d0fed0d7ca134fbf526a6d7b5e2fe95f4fa19c9
1,924
exs
Elixir
protein-translation/protein_translation.exs
millimoose/my-exercism-elixir
6262dbc64ca4b452606cda823cdc6efe0f4dff91
[ "Unlicense" ]
null
null
null
protein-translation/protein_translation.exs
millimoose/my-exercism-elixir
6262dbc64ca4b452606cda823cdc6efe0f4dff91
[ "Unlicense" ]
null
null
null
protein-translation/protein_translation.exs
millimoose/my-exercism-elixir
6262dbc64ca4b452606cda823cdc6efe0f4dff91
[ "Unlicense" ]
null
null
null
defmodule ProteinTranslation do @doc """ Given an RNA string, return a list of proteins specified by codons, in order. """ @spec of_rna(String.t()) :: {atom, list(String.t())} def of_rna(rna) do codons = for codon_chars <- Enum.chunk_every(String.to_charlist(rna), 3), do: List.to_string(co...
26.356164
93
0.534823
1d10116202f1a108363305003a078847199181a2
247
ex
Elixir
lib/taskr.ex
sean-clayton/taskr
e56ac59662fb8c246803a36ebe288f55a4a0cbf9
[ "0BSD" ]
null
null
null
lib/taskr.ex
sean-clayton/taskr
e56ac59662fb8c246803a36ebe288f55a4a0cbf9
[ "0BSD" ]
null
null
null
lib/taskr.ex
sean-clayton/taskr
e56ac59662fb8c246803a36ebe288f55a4a0cbf9
[ "0BSD" ]
null
null
null
defmodule Taskr do @moduledoc """ Taskr keeps the contexts that define your domain and business logic. Contexts are also responsible for managing your data, regardless if it comes from the database, an external API or others. """ end
24.7
66
0.748988
1d1028ead7743df71ebcd2efc35089ba1bef31a2
2,274
ex
Elixir
lib/dypa01.ex
mnishiguchi/dypa01
e995c9b0284cf4276518fca4b3664d09e0f5d556
[ "MIT" ]
1
2021-08-29T01:51:37.000Z
2021-08-29T01:51:37.000Z
lib/dypa01.ex
mnishiguchi/dypa01
e995c9b0284cf4276518fca4b3664d09e0f5d556
[ "MIT" ]
null
null
null
lib/dypa01.ex
mnishiguchi/dypa01
e995c9b0284cf4276518fca4b3664d09e0f5d556
[ "MIT" ]
null
null
null
defmodule DYPA01 do @moduledoc """ Measure distance with DYP-A01 ultrasonic distance sensor. """ use GenServer require Logger @type options() :: [{:port_name, String.t()}] @doc """ Start a new GenServer for interacting with a DYPA01 sensor. ## Examples {:ok, pid} = DYPA01.start_link(port_na...
28.074074
94
0.66139
1d1071c18dab3609c900114b0b3b571489eb2a4e
1,917
ex
Elixir
lib/reserva_web.ex
AminArria/reserva
13faef72927aeb84d456f080d65249b8ef50180e
[ "MIT" ]
null
null
null
lib/reserva_web.ex
AminArria/reserva
13faef72927aeb84d456f080d65249b8ef50180e
[ "MIT" ]
2
2021-03-09T00:49:12.000Z
2021-05-08T03:13:05.000Z
lib/reserva_web.ex
AminArria/reserva
13faef72927aeb84d456f080d65249b8ef50180e
[ "MIT" ]
null
null
null
defmodule ReservaWeb 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 ReservaWeb, :controller use ReservaWeb, :view The definitions below will be executed for every view, controller, ...
24.896104
83
0.692227
1d10ea7d46226711c346a4e57b7c092fdb90a683
1,632
ex
Elixir
clients/you_tube/lib/google_api/you_tube/v3/model/channel_content_details.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
1
2018-12-03T23:43:10.000Z
2018-12-03T23:43:10.000Z
clients/you_tube/lib/google_api/you_tube/v3/model/channel_content_details.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
clients/you_tube/lib/google_api/you_tube/v3/model/channel_content_details.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 ...
34
124
0.756127
1d11021a0db5a26da119581da89c04c109eb1971
442
exs
Elixir
priv/repo/migrations/20170820142652_create_comments.exs
danielcavanagh/lle-cymraeg
01aebc939254e0dd76427cb460722b830c232e82
[ "MIT" ]
null
null
null
priv/repo/migrations/20170820142652_create_comments.exs
danielcavanagh/lle-cymraeg
01aebc939254e0dd76427cb460722b830c232e82
[ "MIT" ]
null
null
null
priv/repo/migrations/20170820142652_create_comments.exs
danielcavanagh/lle-cymraeg
01aebc939254e0dd76427cb460722b830c232e82
[ "MIT" ]
null
null
null
defmodule LleCymraeg.Repo.Migrations.CreateComments do use Ecto.Migration def change do create table(:comments) do add :text, :text, null: false add :person_id, references(:people, on_delete: :delete_all), null: false add :meetup_id, references(:meetups, on_delete: :delete_all), null: false ...
26
79
0.690045
1d1114200c1c9922ba98c661c2aff407635647a5
60
exs
Elixir
test/test_helper.exs
timstawowski/cain_oa
d3499dea5fe1a3a6901a096c9ff6e454f9980f30
[ "MIT" ]
null
null
null
test/test_helper.exs
timstawowski/cain_oa
d3499dea5fe1a3a6901a096c9ff6e454f9980f30
[ "MIT" ]
null
null
null
test/test_helper.exs
timstawowski/cain_oa
d3499dea5fe1a3a6901a096c9ff6e454f9980f30
[ "MIT" ]
null
null
null
defmodule Endpoint do use CainOpenApi end ExUnit.start()
10
21
0.783333
1d1134f9736ebc3cbfeba23fb822eac993b4e9c1
1,244
ex
Elixir
processors/IA32/bochs/build/debian/postinst.ex
bavison/opensmalltalk-vm
d494240736f7c0309e3e819784feb1d53ed0985a
[ "MIT" ]
445
2016-06-30T08:19:11.000Z
2022-03-28T06:09:49.000Z
processors/IA32/bochs/build/debian/postinst.ex
bavison/opensmalltalk-vm
d494240736f7c0309e3e819784feb1d53ed0985a
[ "MIT" ]
439
2016-06-29T20:14:36.000Z
2022-03-17T19:59:58.000Z
processors/IA32/bochs/build/debian/postinst.ex
bavison/opensmalltalk-vm
d494240736f7c0309e3e819784feb1d53ed0985a
[ "MIT" ]
137
2016-07-02T17:32:07.000Z
2022-03-20T11:17:25.000Z
#! /bin/sh # postinst script for bochs # # see: dh_installdeb(1) set -e # summary of how this script can be called: # * <postinst> `configure' <most-recently-configured-version> # * <old-postinst> `abort-upgrade' <new version> # * <conflictor's-postinst> `abort-remove' `in-favour' <package> # ...
25.916667
75
0.664791
1d114ba2ff538b5e1e8555fdd8b0c78b47f1a88b
1,909
ex
Elixir
apps/bytepack_web/test/support/conn_case.ex
dashbitco/bytepack_archive
79f8e62149d020f2afcc501592ed399f7ce7a60b
[ "Unlicense" ]
313
2020-12-03T17:26:24.000Z
2022-03-18T09:05:14.000Z
apps/bytepack_web/test/support/conn_case.ex
dashbitco/bytepack_archive
79f8e62149d020f2afcc501592ed399f7ce7a60b
[ "Unlicense" ]
null
null
null
apps/bytepack_web/test/support/conn_case.ex
dashbitco/bytepack_archive
79f8e62149d020f2afcc501592ed399f7ce7a60b
[ "Unlicense" ]
57
2020-12-03T17:41:53.000Z
2022-03-17T17:28:16.000Z
defmodule BytepackWeb.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 t...
28.492537
89
0.718701
1d115340f6517fee8ad3587480ee772f52816ad2
5,163
ex
Elixir
web/controllers/user_controller.ex
mark-b-kauffman/phoenixDSK
d68ff8daebc2641efbc2059320c8ab345203aa76
[ "BSD-3-Clause", "MIT" ]
8
2017-07-24T20:54:25.000Z
2021-04-06T19:19:32.000Z
web/controllers/user_controller.ex
mark-b-kauffman/phoenixDSK
d68ff8daebc2641efbc2059320c8ab345203aa76
[ "BSD-3-Clause", "MIT" ]
2
2021-03-08T16:21:37.000Z
2021-05-06T17:53:24.000Z
web/controllers/user_controller.ex
mark-b-kauffman/phoenixDSK
d68ff8daebc2641efbc2059320c8ab345203aa76
[ "BSD-3-Clause", "MIT" ]
2
2019-12-12T17:04:32.000Z
2020-07-22T15:42:32.000Z
defmodule PhoenixDSK.UserController do use PhoenixDSK.Web, :controller require Logger require IEx alias PhoenixDSK.Lms, as: Lms @doc """ Notes: Regarding Availability and Row Status %{"availability" => %{"available" => "No"}, ... } %{"availability" => %{"available" => "Yes"}, ... } %{"availab...
44.508621
128
0.646911
1d11a255e6debdb4b92b34386de7c8c8d257e55b
325
ex
Elixir
lib/my_bot_ex/client/github/comment.ex
KazuCocoa/my_bot_ex
9d3d71b4340109f35cf6e72b84346a3e609f40a5
[ "MIT" ]
null
null
null
lib/my_bot_ex/client/github/comment.ex
KazuCocoa/my_bot_ex
9d3d71b4340109f35cf6e72b84346a3e609f40a5
[ "MIT" ]
null
null
null
lib/my_bot_ex/client/github/comment.ex
KazuCocoa/my_bot_ex
9d3d71b4340109f35cf6e72b84346a3e609f40a5
[ "MIT" ]
null
null
null
defmodule MyBotEx.Client.Github.Comment do alias Tentacat, as: TC def issue(client, owner, repo, issue_number, _options \\ []), do: TC.get "repos/#{owner}/#{repo}/issues/#{issue_number}/comments", client def issues(client, owner, repo, _options \\ []), do: TC.get "/repos/#{owner}/#{repo}/issues/comments", client...
46.428571
139
0.695385
1d11b3cd2f5e0757b6bdefd834a7e016e20b8596
872
ex
Elixir
lib/meteo_stick/event_manager.ex
NationalAssociationOfRealtors/meteo_stick
2892158be4f79b98e6688a9364590bb06d6daf2b
[ "Apache-2.0" ]
1
2016-10-18T19:15:36.000Z
2016-10-18T19:15:36.000Z
lib/meteo_stick/event_manager.ex
NationalAssociationOfRealtors/meteo_stick
2892158be4f79b98e6688a9364590bb06d6daf2b
[ "Apache-2.0" ]
null
null
null
lib/meteo_stick/event_manager.ex
NationalAssociationOfRealtors/meteo_stick
2892158be4f79b98e6688a9364590bb06d6daf2b
[ "Apache-2.0" ]
null
null
null
defmodule MeteoStick.EventManager do use GenServer def start_link() do GenServer.start_link(__MODULE__, :ok, name: __MODULE__) end def init(:ok) do {:ok, events} = GenEvent.start_link([{:name, MeteoStick.Events}]) {:ok, %{:handlers => [], :events => events}} end def ad...
29.066667
80
0.613532
1d131a1a8f703e493e059fa41fdb0b629a4c3128
398
exs
Elixir
2021/elixir/apps/day4/test/day4_test.exs
ColdOrange/advent_of_code
18c4054558fdcaf123c8d8057b6de23894488a73
[ "MIT" ]
null
null
null
2021/elixir/apps/day4/test/day4_test.exs
ColdOrange/advent_of_code
18c4054558fdcaf123c8d8057b6de23894488a73
[ "MIT" ]
null
null
null
2021/elixir/apps/day4/test/day4_test.exs
ColdOrange/advent_of_code
18c4054558fdcaf123c8d8057b6de23894488a73
[ "MIT" ]
null
null
null
defmodule Day4Test do use ExUnit.Case test "part1" do TestData.get("day4", "part1") |> Enum.each(fn %{"input" => input, "output" => output} -> assert Day4Part1.solve(input) == output end) end test "part2" do TestData.get("day4", "part2") |> Enum.each(fn %{"input" => input, "output" =...
22.111111
62
0.590452
1d132998374a4863efbc825facf275664277d7b0
1,004
exs
Elixir
mix.exs
zhangsoledad/alchemic_pinyin
5426c62b1a37e6b134d285c8f5ace9a52b3c36cb
[ "MIT" ]
22
2016-03-29T07:50:15.000Z
2018-08-23T09:49:41.000Z
mix.exs
zhangsoledad/alchemic_pinyin
5426c62b1a37e6b134d285c8f5ace9a52b3c36cb
[ "MIT" ]
2
2016-11-02T08:06:47.000Z
2021-12-23T13:22:38.000Z
mix.exs
zhangsoledad/alchemic_pinyin
5426c62b1a37e6b134d285c8f5ace9a52b3c36cb
[ "MIT" ]
4
2016-03-31T05:24:30.000Z
2021-10-07T02:06:49.000Z
defmodule Pinyin.Mixfile do use Mix.Project def project do [app: :alchemic_pinyin, version: "0.1.2", elixir: "~> 1.2", description: description, build_embedded: Mix.env == :prod, start_permanent: Mix.env == :prod, package: package, deps: deps, docs: [extras: ["README.md"...
21.826087
77
0.568725
1d135223db0c228851a98f2ca024ee43dc36c857
2,313
ex
Elixir
lib/mix/tasks/ecto.migrations.ex
almirsarajcic/ecto_sql
5a2493df28df050612f39c40e9643e1e677a6654
[ "Apache-2.0" ]
null
null
null
lib/mix/tasks/ecto.migrations.ex
almirsarajcic/ecto_sql
5a2493df28df050612f39c40e9643e1e677a6654
[ "Apache-2.0" ]
null
null
null
lib/mix/tasks/ecto.migrations.ex
almirsarajcic/ecto_sql
5a2493df28df050612f39c40e9643e1e677a6654
[ "Apache-2.0" ]
null
null
null
defmodule Mix.Tasks.Ecto.Migrations do use Mix.Task import Mix.Ecto import Mix.EctoSQL @shortdoc "Displays the repository migration status" @aliases [ r: :repo ] @switches [ repo: [:keep, :string], no_compile: :boolean, no_deps_check: :boolean, migrations_path: :string ] @modul...
27.211765
87
0.615651
1d139815d6781d74934194fcee366a812993b0e4
1,238
ex
Elixir
lib/sparql/algebra/expression/filter.ex
marcelotto/sparql-ex
7bf939a2b0eec7e1096f6fdb999b07757995c145
[ "MIT" ]
23
2018-09-25T21:09:35.000Z
2020-05-14T16:28:22.000Z
lib/sparql/algebra/expression/filter.ex
rdf-elixir/sparql-ex
138141797a1993ecfb50ddac6c1d2977601a11ff
[ "MIT" ]
2
2018-06-01T20:47:48.000Z
2019-03-05T23:20:34.000Z
lib/sparql/algebra/expression/filter.ex
marcelotto/sparql-ex
7bf939a2b0eec7e1096f6fdb999b07757995c145
[ "MIT" ]
2
2019-12-13T19:20:54.000Z
2019-12-20T08:23:21.000Z
defmodule SPARQL.Algebra.Filter do defstruct [:filters, :expr] alias SPARQL.Algebra.Expression alias RDF.XSD def result_set(%SPARQL.Query.Result{results: results} = result, filters, data, execution) do %SPARQL.Query.Result{result | results: Enum.filter(results, &(apply?(&1, filters, data, execution)...
28.790698
94
0.687399
1d13cc760d63ebe2c9c047ce97ad276b3e641e8e
429
ex
Elixir
apps/graphql/lib/graphql/resolvers/helpers/error_view.ex
ehealth-ua/ehealth.api
4ffe26a464fe40c95fb841a4aa2e147068f65ca2
[ "Apache-2.0" ]
8
2019-06-14T11:34:49.000Z
2021-08-05T19:14:24.000Z
apps/graphql/lib/graphql/resolvers/helpers/error_view.ex
edenlabllc/ehealth.api.public
4ffe26a464fe40c95fb841a4aa2e147068f65ca2
[ "Apache-2.0" ]
1
2019-07-08T15:20:22.000Z
2019-07-08T15:20:22.000Z
apps/graphql/lib/graphql/resolvers/helpers/error_view.ex
ehealth-ua/ehealth.api
4ffe26a464fe40c95fb841a4aa2e147068f65ca2
[ "Apache-2.0" ]
6
2018-05-11T13:59:32.000Z
2022-01-19T20:15:22.000Z
defmodule GraphQL.Resolvers.Helpers.ErrorView do @moduledoc false require Logger @internal_error_templates ["500.json", "501.json", "503.json", "505.json"] def render(template, %{reason: error}) when template in @internal_error_templates do Logger.error("An exception was raised: #{inspect(error)}") ...
25.235294
86
0.69697
1d1413ab1d639c0ab656c29b925cfc3c502ca57e
1,276
exs
Elixir
test/pers_queue/persistence_test.exs
astorre88/pers_queue
8feea510d8452f182bd532c7da8ef1cc8a2a70ec
[ "MIT" ]
2
2018-07-29T16:09:50.000Z
2022-01-26T15:18:29.000Z
test/pers_queue/persistence_test.exs
astorre88/pers_queue
8feea510d8452f182bd532c7da8ef1cc8a2a70ec
[ "MIT" ]
null
null
null
test/pers_queue/persistence_test.exs
astorre88/pers_queue
8feea510d8452f182bd532c7da8ef1cc8a2a70ec
[ "MIT" ]
null
null
null
defmodule PersQueue.Test.Persistence do use ExUnit.Case alias PersQueue.Persistence setup do Persistence.DB.destroy() Persistence.DB.create() :ok end test "returns empty list when there are no enqueued messages in DB" do assert Persistence.enqueued() == [] end test "returns enqueued me...
25.52
82
0.68652
1d143b31e5bf906f50f192402545d6e79d85772c
1,379
ex
Elixir
lib/desktop/menu/adapter.ex
nesimtunc/desktop
540a9345fdeb18d299b5d749c701a49f3f57a771
[ "MIT" ]
779
2021-05-21T03:15:11.000Z
2022-03-31T10:55:27.000Z
lib/desktop/menu/adapter.ex
nesimtunc/desktop
540a9345fdeb18d299b5d749c701a49f3f57a771
[ "MIT" ]
17
2021-05-30T19:40:13.000Z
2022-03-29T09:42:58.000Z
lib/desktop/menu/adapter.ex
nesimtunc/desktop
540a9345fdeb18d299b5d749c701a49f3f57a771
[ "MIT" ]
22
2021-05-30T13:58:45.000Z
2022-03-27T09:59:06.000Z
defprotocol Desktop.Menu.Adapter do @moduledoc false @fallback_to_any true @spec create(t(), dom :: any()) :: t() def create(adapter, dom) @spec update_dom(t(), dom :: any()) :: t() def update_dom(adapter, dom) @spec popup_menu(t()) :: t() def popup_menu(adapter) @spec recreate_menu(t(), dom :: an...
22.983333
62
0.660624
1d1457478a21d7651e52fcec9cb14da3ce0b47e9
1,320
ex
Elixir
clients/sheets/lib/google_api/sheets/v4/model/link.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/sheets/lib/google_api/sheets/v4/model/link.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/sheets/lib/google_api/sheets/v4/model/link.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...
28.085106
74
0.719697
1d146f38a6d457e16776b700f6c23a543d796fbc
729
exs
Elixir
year_2019/test/day_08/space_image_format_test.exs
bschmeck/advent_of_code
cbec98019c6c00444e0f4c7e15e01b1ed9ae6145
[ "MIT" ]
null
null
null
year_2019/test/day_08/space_image_format_test.exs
bschmeck/advent_of_code
cbec98019c6c00444e0f4c7e15e01b1ed9ae6145
[ "MIT" ]
null
null
null
year_2019/test/day_08/space_image_format_test.exs
bschmeck/advent_of_code
cbec98019c6c00444e0f4c7e15e01b1ed9ae6145
[ "MIT" ]
null
null
null
defmodule Day08.SpaceImageFormatTest do use ExUnit.Case test "it converts an image to layers" do raw = "123456789012" assert Day08.SpaceImageFormat.layers_of(raw, {3,2}) == [[1,2,3,4,5,6], [7,8,9,0,1,2]] end test "it checksums an image" do raw = "121200321004211240216221" assert Day08.SpaceIma...
28.038462
97
0.651578
1d1471ee5ac965de7730a6341b47a56f66b19dba
3,635
exs
Elixir
test/sampler_test.exs
ll1498/elixir_agent
a7b3bf1b49639c61d9eba3d4b91b30e0e856b54a
[ "Apache-2.0" ]
1
2020-08-13T05:08:20.000Z
2020-08-13T05:08:20.000Z
test/sampler_test.exs
ll1498/elixir_agent
a7b3bf1b49639c61d9eba3d4b91b30e0e856b54a
[ "Apache-2.0" ]
null
null
null
test/sampler_test.exs
ll1498/elixir_agent
a7b3bf1b49639c61d9eba3d4b91b30e0e856b54a
[ "Apache-2.0" ]
null
null
null
defmodule SamplerTest do use ExUnit.Case alias NewRelic.Harvest.Collector defmodule TestProcess do use GenServer def start_link, do: GenServer.start_link(__MODULE__, :ok, name: __MODULE__) def init(:ok) do NewRelic.sample_process() {:ok, %{}} end def handle_call(:work, _from, ...
30.291667
97
0.671527
1d147b6baf59f464eb92e836d14a0ef1fdea8212
31,248
ex
Elixir
lib/worker/batcher.ex
vvuk/bors-ng
607f0eac378cea7658b89213897f14cf256222f8
[ "Apache-2.0" ]
null
null
null
lib/worker/batcher.ex
vvuk/bors-ng
607f0eac378cea7658b89213897f14cf256222f8
[ "Apache-2.0" ]
1
2020-03-07T08:28:14.000Z
2020-03-07T08:28:14.000Z
lib/worker/batcher.ex
vvuk/bors-ng
607f0eac378cea7658b89213897f14cf256222f8
[ "Apache-2.0" ]
null
null
null
require Logger defmodule BorsNG.Worker.Batcher do @moduledoc """ A "Batcher" manages the backlog of batches a project has. It implements this set of rules: * When a patch is reviewed ("r+'ed"), it gets added to the project's non-running batch. If no such batch exists, it creates it. * After ...
31.723858
190
0.630952
1d1488ce2f179642b878ed72c7e50abf52a3ab78
2,426
ex
Elixir
clients/service_usage/lib/google_api/service_usage/v1/model/auth_requirement.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/service_usage/lib/google_api/service_usage/v1/model/auth_requirement.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/service_usage/lib/google_api/service_usage/v1/model/auth_requirement.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...
48.52
785
0.75474
1d14cdeb1cf61f86dc7d0ca6051a3eb48caf2cb9
1,119
exs
Elixir
config/config.exs
imkmf/exattack
dc7b0fa047ef586be4f1ac29950a19213f75f90f
[ "Apache-2.0" ]
3
2016-10-02T17:15:47.000Z
2018-04-19T09:28:51.000Z
config/config.exs
imkmf/exattack
dc7b0fa047ef586be4f1ac29950a19213f75f90f
[ "Apache-2.0" ]
1
2016-10-29T23:06:07.000Z
2017-05-10T23:38:13.000Z
config/config.exs
imkmf/exattack
dc7b0fa047ef586be4f1ac29950a19213f75f90f
[ "Apache-2.0" ]
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
1d14ea8799a0fa610e5ae2ff9830e69681c049fc
2,407
ex
Elixir
clients/document_ai/lib/google_api/document_ai/v1beta2/model/google_cloud_documentai_v1beta1_process_document_response.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/document_ai/lib/google_api/document_ai/v1beta2/model/google_cloud_documentai_v1beta1_process_document_response.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/document_ai/lib/google_api/document_ai/v1beta2/model/google_cloud_documentai_v1beta1_process_document_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...
38.822581
257
0.769423
1d14feb01c1b31a68caf032afca9d0475db9f5fa
989
exs
Elixir
config/config.exs
diegoeche/elixir-evie
fc986385b5c5c999be137923b39387411928ac17
[ "MIT" ]
1
2020-09-15T11:36:12.000Z
2020-09-15T11:36:12.000Z
config/config.exs
diegoeche/elixir-evie
fc986385b5c5c999be137923b39387411928ac17
[ "MIT" ]
1
2021-05-10T20:29:53.000Z
2021-05-10T20:29:53.000Z
config/config.exs
diegoeche/elixir-evie
fc986385b5c5c999be137923b39387411928ac17
[ "MIT" ]
null
null
null
# This file is responsible for configuring your application # and its dependencies with the aid of the Mix.Config module. # # This configuration file is loaded before any dependency and # is restricted to this project. # General application configuration use Mix.Config config :evie, ecto_repos: [Evie.Repo] # Confi...
31.903226
86
0.766431
1d1516ee074ab84e6eb4dc547258026292ae62a2
2,384
ex
Elixir
core/sup_tree_core/version_synchronizer.ex
sylph01/antikythera
47a93f3d4c70975f7296725c9bde2ea823867436
[ "Apache-2.0" ]
144
2018-04-27T07:24:49.000Z
2022-03-15T05:19:37.000Z
core/sup_tree_core/version_synchronizer.ex
sylph01/antikythera
47a93f3d4c70975f7296725c9bde2ea823867436
[ "Apache-2.0" ]
123
2018-05-01T02:54:43.000Z
2022-01-28T01:30:52.000Z
core/sup_tree_core/version_synchronizer.ex
sylph01/antikythera
47a93f3d4c70975f7296725c9bde2ea823867436
[ "Apache-2.0" ]
14
2018-05-01T02:30:47.000Z
2022-02-21T04:38:56.000Z
# Copyright(c) 2015-2021 ACCESS CO., LTD. All rights reserved. defmodule AntikytheraCore.VersionSynchronizer do @moduledoc """ A `GenServer` which periodically polls deployable versions of antikythera instance and gears. On startup of antikythera, this `GenServer` waits for completion of `AntikytheraCore.start/...
30.961039
97
0.730705
1d1521191c5fb5dea430162d92f8aced2c50c2e3
1,859
exs
Elixir
plain-planner/elixir/test/plain/accounts_test.exs
danielmarreirosdeoliveira/prototypes
047a7d0cae84b31213c06b45304e41a18e0678cb
[ "Apache-2.0" ]
null
null
null
plain-planner/elixir/test/plain/accounts_test.exs
danielmarreirosdeoliveira/prototypes
047a7d0cae84b31213c06b45304e41a18e0678cb
[ "Apache-2.0" ]
1
2020-05-10T13:37:43.000Z
2020-05-10T13:37:43.000Z
plain-planner/elixir/test/plain/accounts_test.exs
danielmarreirosdeoliveira/prototypes
047a7d0cae84b31213c06b45304e41a18e0678cb
[ "Apache-2.0" ]
null
null
null
defmodule Plain.AccountsTest do use Plain.DataCase alias Plain.Accounts describe "users" do alias Plain.Accounts.User @valid_attrs %{name: "some name"} @update_attrs %{name: "some updated name"} @invalid_attrs %{name: nil} def user_fixture(attrs \\ %{}) do {:ok, user} = attrs...
28.6
85
0.648736
1d153d268505c1e94faa44a5779d66e848d19987
232
ex
Elixir
debian/python.default.ex
certik/python2.6
3b8ab0cdb83bea160b2c5e11c620ffd1bdf04a59
[ "PSF-2.0" ]
4
2015-12-07T13:37:48.000Z
2021-03-24T16:27:52.000Z
debian/python.default.ex
certik/python2.6
3b8ab0cdb83bea160b2c5e11c620ffd1bdf04a59
[ "PSF-2.0" ]
null
null
null
debian/python.default.ex
certik/python2.6
3b8ab0cdb83bea160b2c5e11c620ffd1bdf04a59
[ "PSF-2.0" ]
null
null
null
# Defaults for python initscript # sourced by /etc/init.d/python # installed at /etc/default/python by the maintainer scripts # # This is a POSIX shell fragment # # Additional options that are passed to the Daemon. DAEMON_OPTS=""
21.090909
60
0.758621
1d153f0e73b8a5869a07eb52eed48c8eb8cf8b2c
1,729
ex
Elixir
clients/jobs/lib/google_api/jobs/v3/model/device_info.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/jobs/lib/google_api/jobs/v3/model/device_info.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/jobs/lib/google_api/jobs/v3/model/device_info.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...
34.58
191
0.72701
1d1571b040472944af1662db914014a2ce3c0aad
423
ex
Elixir
lib/rabbit/serializers/json.ex
suitepad-gmbh/rabbit
c6ba3cbca6b49362c3a9dd32d3af001a1de750ad
[ "MIT" ]
36
2019-06-05T02:27:11.000Z
2022-02-27T22:01:27.000Z
lib/rabbit/serializers/json.ex
suitepad-gmbh/rabbit
c6ba3cbca6b49362c3a9dd32d3af001a1de750ad
[ "MIT" ]
41
2019-06-06T07:50:20.000Z
2021-08-02T10:18:08.000Z
lib/rabbit/serializers/json.ex
suitepad-gmbh/rabbit
c6ba3cbca6b49362c3a9dd32d3af001a1de750ad
[ "MIT" ]
2
2021-01-13T16:13:05.000Z
2021-04-09T13:22:19.000Z
if Code.ensure_loaded?(Jason) do defmodule Rabbit.Serializers.JSON do @moduledoc false @behaviour Rabbit.Serializer @doc false @impl Rabbit.Serializer def encode(data) do Jason.encode(data) rescue error -> {:error, error} end @doc false @impl Rabbit.Serializer de...
17.625
38
0.631206
1d1577cb5a4f35f8730d6fa025e09e8eb14572eb
5,277
exs
Elixir
apps/ehealth/test/web/controllers/cabinet/app_controller_test.exs
ehealth-ua/ehealth.api
4ffe26a464fe40c95fb841a4aa2e147068f65ca2
[ "Apache-2.0" ]
8
2019-06-14T11:34:49.000Z
2021-08-05T19:14:24.000Z
apps/ehealth/test/web/controllers/cabinet/app_controller_test.exs
edenlabllc/ehealth.api.public
4ffe26a464fe40c95fb841a4aa2e147068f65ca2
[ "Apache-2.0" ]
1
2019-07-08T15:20:22.000Z
2019-07-08T15:20:22.000Z
apps/ehealth/test/web/controllers/cabinet/app_controller_test.exs
ehealth-ua/ehealth.api
4ffe26a464fe40c95fb841a4aa2e147068f65ca2
[ "Apache-2.0" ]
6
2018-05-11T13:59:32.000Z
2022-01-19T20:15:22.000Z
defmodule Mithril.Web.AppControllerTest do use EHealth.Web.ConnCase import Mox alias Ecto.UUID # For Mox lib. Make sure mocks are verified when the test exits setup :verify_on_exit! defp app do %{ "id" => UUID.generate(), "user_id" => UUID.generate(), "client_name" => "app", "...
27.061538
95
0.563578
1d157b06ac128096b9260381399beb20baebd235
775
ex
Elixir
test/support/util.ex
bforchhammer/spandex
caa094c28bb98ef4a16a96ae451d35576ba7fe91
[ "MIT" ]
237
2018-08-29T17:48:17.000Z
2022-03-29T15:35:35.000Z
test/support/util.ex
bforchhammer/spandex
caa094c28bb98ef4a16a96ae451d35576ba7fe91
[ "MIT" ]
69
2018-08-23T14:28:25.000Z
2022-02-02T13:59:48.000Z
test/support/util.ex
bforchhammer/spandex
caa094c28bb98ef4a16a96ae451d35576ba7fe91
[ "MIT" ]
35
2018-08-27T13:33:34.000Z
2021-12-30T12:53:47.000Z
defmodule Spandex.Test.Util do @moduledoc false def can_fail(func) do func.() rescue _exception -> nil end def find_span(name) when is_bitstring(name) do find_span(fn span -> span.name == name end) end def find_span(fun) when is_function(fun) do Enum.find(sent_spans(), fun) end def...
19.871795
55
0.632258
1d15adb91e4192ae564bd3c66b26e1840e41c5ea
5,122
ex
Elixir
clients/compute/lib/google_api/compute/v1/model/machine_type.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/compute/lib/google_api/compute/v1/model/machine_type.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/compute/lib/google_api/compute/v1/model/machine_type.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...
55.673913
221
0.692308
1d15c751fdc25945396096094cc8055b441a0fb9
1,633
ex
Elixir
lib/tasks/CLI/domains/domains.ex
BUBUcmoi/boreale
5bcd5ed97bc471e16d267a02c39a5cbdcfe18df9
[ "MIT" ]
50
2019-05-04T21:25:57.000Z
2022-02-25T16:40:52.000Z
lib/tasks/CLI/domains/domains.ex
BUBUcmoi/boreale
5bcd5ed97bc471e16d267a02c39a5cbdcfe18df9
[ "MIT" ]
14
2020-02-01T00:02:29.000Z
2022-03-19T19:25:35.000Z
lib/tasks/CLI/domains/domains.ex
BUBUcmoi/boreale
5bcd5ed97bc471e16d267a02c39a5cbdcfe18df9
[ "MIT" ]
6
2019-08-06T02:17:15.000Z
2022-03-11T14:33:49.000Z
defmodule Mix.Tasks.Cli.Domains do def run do {:ok, table} = File.cwd!() |> Path.join("data/domains.dets") |> String.to_atom() |> :dets.open_file(type: :set) domains = :dets.match(table, {:"$1", :"$2"}) |> Stream.map(fn x -> List.to_tuple(x) end) |> Enum.sort(fn {_, ...
27.677966
95
0.557257
1d15d3104309d150a4200954e0edc8a88c0cd6ac
2,156
exs
Elixir
test/time_test.exs
Medigram/elixir-datetime
c2455433c8822591df5a2900ea65de57f123a1f2
[ "MIT" ]
1
2016-08-24T13:27:56.000Z
2016-08-24T13:27:56.000Z
test/time_test.exs
rgrinberg/elixir-datetime
171bb780a7408cbe1204c73aa0aa694544bf4a0a
[ "MIT" ]
null
null
null
test/time_test.exs
rgrinberg/elixir-datetime
171bb780a7408cbe1204c73aa0aa694544bf4a0a
[ "MIT" ]
null
null
null
#Code.require_file "test_helper.exs", __DIR__ defmodule TimeTest do use ExUnit.Case, async: true test :diff do timestamp1 = {1362,568903,363960} timestamp2 = {1362,568958,951099} assert Time.diff(timestamp2, timestamp1) == {0, 55, 587139} assert Time.diff(timestamp2, timestamp1, :usec) == 55587139...
38.5
71
0.656308
1d15d3c9fa0e357c7a2d365ca8da3695953119e8
1,549
exs
Elixir
test/test_helper.exs
mendrugory/barenboim
ceda7785db0bdeaa0cd3a084a6a4d2641c9677ac
[ "MIT" ]
3
2017-06-13T14:20:05.000Z
2018-06-21T01:00:49.000Z
test/test_helper.exs
mendrugory/barenboim
ceda7785db0bdeaa0cd3a084a6a4d2641c9677ac
[ "MIT" ]
null
null
null
test/test_helper.exs
mendrugory/barenboim
ceda7785db0bdeaa0cd3a084a6a4d2641c9677ac
[ "MIT" ]
null
null
null
defmodule DelayEventProducer do use GenServer def start_link(args) do GenServer.start_link(__MODULE__, args, []) end def produce_delayed_event_with_notification(producer, key, value, delay) do Process.send_after(producer, {:event_notification, key, value}, delay) end def produce_delayed_event_wit...
29.226415
87
0.710136
1d15ddf888433d36121fd99c026070720faef224
395
ex
Elixir
apps/harvester/lib/mix/tasks/show/scan.ex
timnew/tv-harvester
1eeb618877fd4c25c137a56ec1a77f6fd4050eed
[ "MIT" ]
null
null
null
apps/harvester/lib/mix/tasks/show/scan.ex
timnew/tv-harvester
1eeb618877fd4c25c137a56ec1a77f6fd4050eed
[ "MIT" ]
null
null
null
apps/harvester/lib/mix/tasks/show/scan.ex
timnew/tv-harvester
1eeb618877fd4c25c137a56ec1a77f6fd4050eed
[ "MIT" ]
null
null
null
defmodule Mix.Tasks.Show.Scan do use Mix.Task import Show require PageData require SiteParser require Episode @shortdoc "Scan Show" def run(_) do Mix.Task.run "run" get_all_shows() |> Stream.map(&PageData.fetch/1) |> Stream.map(&SiteParser.parse/1) |> Stream.flat_map(fn x -> x end) ...
18.809524
38
0.648101