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
5a3c0b43633d8e55e5c1875485afa7ddbf6655fe
1,463
ex
Elixir
clients/container/lib/google_api/container/v1/model/autopilot.ex
mcrumm/elixir-google-api
544f22797cec52b3a23dfb6e39117f0018448610
[ "Apache-2.0" ]
null
null
null
clients/container/lib/google_api/container/v1/model/autopilot.ex
mcrumm/elixir-google-api
544f22797cec52b3a23dfb6e39117f0018448610
[ "Apache-2.0" ]
null
null
null
clients/container/lib/google_api/container/v1/model/autopilot.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...
31.12766
142
0.738209
5a3c2dd5b37dfebb6ef6b2d0266311565582a205
166
ex
Elixir
apps/manager/lib/manager/request.ex
pluralsight/compliments
bb0a9f9cc55e41adbdb56d138bf462d0eb12208e
[ "MIT" ]
1
2019-01-16T01:03:14.000Z
2019-01-16T01:03:14.000Z
apps/manager/lib/manager/request.ex
pluralsight/compliments
bb0a9f9cc55e41adbdb56d138bf462d0eb12208e
[ "MIT" ]
1
2020-04-12T09:58:03.000Z
2020-04-12T09:58:03.000Z
apps/manager/lib/manager/request.ex
pluralsight/compliments
bb0a9f9cc55e41adbdb56d138bf462d0eb12208e
[ "MIT" ]
2
2018-10-02T18:09:55.000Z
2021-03-19T04:44:25.000Z
defmodule Manager.Request do @enforce_keys [:response_url, :text, :from] defstruct [:response_url, :text, :from, :to, :compliment] @type t :: %__MODULE__{} end
27.666667
59
0.698795
5a3c8e4b7ac59890e2d66a0cfee39a8e0b93f7b2
776
ex
Elixir
lib/pow/phoenix/templates/registration_template.ex
randaalex/pow
2a8c8db4652f7cb2c58d3a897e02b1d47e76f27b
[ "MIT" ]
1
2021-06-25T10:36:01.000Z
2021-06-25T10:36:01.000Z
lib/pow/phoenix/templates/registration_template.ex
randaalex/pow
2a8c8db4652f7cb2c58d3a897e02b1d47e76f27b
[ "MIT" ]
null
null
null
lib/pow/phoenix/templates/registration_template.ex
randaalex/pow
2a8c8db4652f7cb2c58d3a897e02b1d47e76f27b
[ "MIT" ]
1
2020-07-13T01:11:17.000Z
2020-07-13T01:11:17.000Z
defmodule Pow.Phoenix.RegistrationTemplate do @moduledoc false use Pow.Phoenix.Template template :new, :html, """ <h1>Register</h1> <%= Pow.Phoenix.HTML.FormTemplate.render([ {:text, {:changeset, :pow_user_id_field}}, {:password, :password}, {:password, :confirm_password} ], button_label: ...
24.25
141
0.64433
5a3ca9eec4f6699f14063ccef164a2c8585934ce
26
ex
Elixir
apps/feedback/lib/feedback.ex
noisecapella/dotcom
d5ef869412102d2230fac3dcc216f01a29726227
[ "MIT" ]
42
2019-05-29T16:05:30.000Z
2021-08-09T16:03:37.000Z
apps/feedback/lib/feedback.ex
noisecapella/dotcom
d5ef869412102d2230fac3dcc216f01a29726227
[ "MIT" ]
872
2019-05-29T17:55:50.000Z
2022-03-30T09:28:43.000Z
apps/feedback/lib/feedback.ex
noisecapella/dotcom
d5ef869412102d2230fac3dcc216f01a29726227
[ "MIT" ]
12
2019-07-01T18:33:21.000Z
2022-03-10T02:13:57.000Z
defmodule Feedback do end
8.666667
21
0.846154
5a3cbaf0cced44f3bb4a3a10fb4ccf4affb43f91
685
exs
Elixir
test/models/old_reservation_test.exs
marick/eecrit
50b1ebeadc5cf21ea9f9df6add65e4d7037e2482
[ "MIT" ]
10
2016-07-15T15:57:33.000Z
2018-06-09T00:40:46.000Z
test/models/old_reservation_test.exs
marick/eecrit
50b1ebeadc5cf21ea9f9df6add65e4d7037e2482
[ "MIT" ]
null
null
null
test/models/old_reservation_test.exs
marick/eecrit
50b1ebeadc5cf21ea9f9df6add65e4d7037e2482
[ "MIT" ]
6
2016-07-15T15:57:41.000Z
2018-03-22T16:38:00.000Z
defmodule Eecrit.OldReservationTest do use Eecrit.ModelCase alias Eecrit.OldReservation @valid_attrs %{course: "vcm334", first_date: Ecto.Date.cast!("2001-01-01"), last_date: Ecto.Date.cast!("2012-12-12"), time_bits: "001" } @empty_attrs %{} ...
29.782609
75
0.671533
5a3cd993d9d5e2a054f9d015268b9ea324f5c443
5,773
ex
Elixir
apps/re_web/lib/graphql/types/interest.ex
caspg/backend
34df9dc14ab8ed75de4578fefa2e087580c7e867
[ "MIT" ]
1
2021-01-19T05:01:15.000Z
2021-01-19T05:01:15.000Z
apps/re_web/lib/graphql/types/interest.ex
caspg/backend
34df9dc14ab8ed75de4578fefa2e087580c7e867
[ "MIT" ]
null
null
null
apps/re_web/lib/graphql/types/interest.ex
caspg/backend
34df9dc14ab8ed75de4578fefa2e087580c7e867
[ "MIT" ]
null
null
null
defmodule ReWeb.Types.Interest do @moduledoc """ GraphQL types for interests """ use Absinthe.Schema.Notation import Absinthe.Resolution.Helpers, only: [dataloader: 1] alias ReWeb.Resolvers.Interests, as: InterestsResolver object :interest do field :id, :id field :uuid, :uuid field :name, :...
26.726852
81
0.654079
5a3cddc26343a59fd06f15b767cdcc0081111238
77
exs
Elixir
spotifyware/config/test.secret.exs
jirimakarius/spotify_controller
c09f07cd622aa3a8f454dc4193b42329b36f7d49
[ "MIT" ]
null
null
null
spotifyware/config/test.secret.exs
jirimakarius/spotify_controller
c09f07cd622aa3a8f454dc4193b42329b36f7d49
[ "MIT" ]
null
null
null
spotifyware/config/test.secret.exs
jirimakarius/spotify_controller
c09f07cd622aa3a8f454dc4193b42329b36f7d49
[ "MIT" ]
null
null
null
import Config config :spotify_ex, client_id: "TEST", secret_key: "TEST"
12.833333
20
0.714286
5a3cf6e1b4e65d41a8deab11791f175f852e53eb
1,123
exs
Elixir
test/init_test.exs
tomtaylor/elixir_agent
511f42cb3cf670d17578edbea27c1694e38cd5da
[ "Apache-2.0" ]
null
null
null
test/init_test.exs
tomtaylor/elixir_agent
511f42cb3cf670d17578edbea27c1694e38cd5da
[ "Apache-2.0" ]
null
null
null
test/init_test.exs
tomtaylor/elixir_agent
511f42cb3cf670d17578edbea27c1694e38cd5da
[ "Apache-2.0" ]
null
null
null
defmodule InitTest do use ExUnit.Case test "check for region prefix in license_key" do refute NewRelic.Init.determine_region("08a2ad66c637a29c3982469a3fe9999999999999") assert "eu01" == NewRelic.Init.determine_region("eu01xx66c637a29c3982469a3fe9999999999999") assert "gov01" == NewRelic.Init.determine...
41.592593
98
0.739982
5a3cfe579ef259b062026ef43700f3098da9da4f
19,164
ex
Elixir
lib/aws/generated/code_deploy.ex
smanolloff/aws-elixir
c7cb6577802f5010be7e7b6ccb2c0f3c8c73ea84
[ "Apache-2.0" ]
null
null
null
lib/aws/generated/code_deploy.ex
smanolloff/aws-elixir
c7cb6577802f5010be7e7b6ccb2c0f3c8c73ea84
[ "Apache-2.0" ]
null
null
null
lib/aws/generated/code_deploy.ex
smanolloff/aws-elixir
c7cb6577802f5010be7e7b6ccb2c0f3c8c73ea84
[ "Apache-2.0" ]
null
null
null
# WARNING: DO NOT EDIT, AUTO-GENERATED CODE! # See https://github.com/aws-beam/aws-codegen for more details. defmodule AWS.CodeDeploy do @moduledoc """ AWS CodeDeploy AWS CodeDeploy is a deployment service that automates application deployments to Amazon EC2 instances, on-premises instances running in your ow...
35.42329
180
0.728084
5a3d3fe405e91d1c1f00ded27770bb85eeee2663
102
exs
Elixir
test/bank/utils/date_util_test.exs
oPauloChaves/elixir-checking-account-api
1fb5d241b40ecbaf11bb4fcbdb5ccabafd635acd
[ "MIT" ]
3
2017-10-16T14:35:46.000Z
2017-12-13T22:35:43.000Z
test/bank/utils/date_util_test.exs
oPauloChaves/elixir-checking-account-api
1fb5d241b40ecbaf11bb4fcbdb5ccabafd635acd
[ "MIT" ]
null
null
null
test/bank/utils/date_util_test.exs
oPauloChaves/elixir-checking-account-api
1fb5d241b40ecbaf11bb4fcbdb5ccabafd635acd
[ "MIT" ]
null
null
null
defmodule Bank.Utils.DateUtilTest do use ExUnit.Case, async: true doctest Bank.Utils.DateUtil end
20.4
36
0.794118
5a3d6bc9737d766c54680b1ee9aac6f1e62caa0e
731
ex
Elixir
lib/elixir_tool_box_web/gettext.ex
okothkongo/elixir-tool-box
4f7579012294281bf5a5278f2b03b236d25978bc
[ "MIT" ]
null
null
null
lib/elixir_tool_box_web/gettext.ex
okothkongo/elixir-tool-box
4f7579012294281bf5a5278f2b03b236d25978bc
[ "MIT" ]
2
2020-10-27T08:37:50.000Z
2020-10-29T06:38:20.000Z
lib/elixir_tool_box_web/gettext.ex
okothkongo/elixir-tool-box
4f7579012294281bf5a5278f2b03b236d25978bc
[ "MIT" ]
null
null
null
defmodule ElixirToolBoxWeb.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 ElixirToolBoxWeb.Gettext # Simple translation gettex...
29.24
72
0.686731
5a3d828b941400ec273b83702ec5e86334c7f3d7
54,757
ex
Elixir
lib/phoenix_live_view/test/live_view_test.ex
v0idpwn/phoenix_live_view
87b1b1ea14e6dea5a08066f6cfff86c5fe41aebe
[ "MIT" ]
null
null
null
lib/phoenix_live_view/test/live_view_test.ex
v0idpwn/phoenix_live_view
87b1b1ea14e6dea5a08066f6cfff86c5fe41aebe
[ "MIT" ]
null
null
null
lib/phoenix_live_view/test/live_view_test.ex
v0idpwn/phoenix_live_view
87b1b1ea14e6dea5a08066f6cfff86c5fe41aebe
[ "MIT" ]
null
null
null
defmodule Phoenix.LiveViewTest do @moduledoc ~S''' Conveniences for testing Phoenix LiveViews. In LiveView tests, we interact with views via process communication in substitution of a browser. Like a browser, our test process receives messages about the rendered updates from the view which can be asserted ...
31.37937
98
0.651314
5a3d99737483297559ae3563bb3883939eb6fd60
710
exs
Elixir
mix.exs
qwexvf/remix
cbb4d22ac84bf0d6dd1cf2b7a62793146924c531
[ "Apache-2.0" ]
null
null
null
mix.exs
qwexvf/remix
cbb4d22ac84bf0d6dd1cf2b7a62793146924c531
[ "Apache-2.0" ]
null
null
null
mix.exs
qwexvf/remix
cbb4d22ac84bf0d6dd1cf2b7a62793146924c531
[ "Apache-2.0" ]
null
null
null
defmodule Remix.Mixfile do use Mix.Project def project do [ app: :remix, version: "0.0.4", elixir: "~> 1.6.1", package: package(), description: description(), deps: deps() ] end def application do [ extra_applications: [:logger], mod: {Remix, []} ...
17.75
97
0.546479
5a3d9a11c8dba2b4bbf68a98f1d416a2d9bc6bd6
736
ex
Elixir
lib/sshkit/scp/command.ex
carterbryden/sshkit.ex
871a8d29393e33406f541cf72d94eee9c22b5993
[ "MIT" ]
112
2017-01-26T14:03:49.000Z
2022-02-23T18:36:23.000Z
lib/sshkit/scp/command.ex
carterbryden/sshkit.ex
871a8d29393e33406f541cf72d94eee9c22b5993
[ "MIT" ]
129
2017-01-26T14:04:31.000Z
2021-12-09T13:25:50.000Z
lib/sshkit/scp/command.ex
carterbryden/sshkit.ex
871a8d29393e33406f541cf72d94eee9c22b5993
[ "MIT" ]
15
2017-03-09T17:11:33.000Z
2021-11-25T10:47:03.000Z
defmodule SSHKit.SCP.Command do @moduledoc false import SSHKit.Utils @flags [verbose: "-v", preserve: "-p", recursive: "-r"] def build(direction, path, options \\ []) def build(:upload, path, options) do scp("-t", path, options) end def build(:download, path, options) do scp("-f", path, optio...
21.028571
73
0.597826
5a3daf43dafa7d29ab004977a0afae625c818aaa
1,351
ex
Elixir
lib/grovepi/potentiometer.ex
asummers/grovepi
8092fd704457265929e4d9676bedd8cf2176f48d
[ "Apache-2.0" ]
34
2017-08-28T22:44:59.000Z
2022-02-15T06:37:40.000Z
lib/grovepi/potentiometer.ex
asummers/grovepi
8092fd704457265929e4d9676bedd8cf2176f48d
[ "Apache-2.0" ]
19
2017-08-14T17:27:44.000Z
2019-05-26T02:49:39.000Z
lib/grovepi/potentiometer.ex
asummers/grovepi
8092fd704457265929e4d9676bedd8cf2176f48d
[ "Apache-2.0" ]
5
2017-09-06T02:20:28.000Z
2020-03-29T06:05:16.000Z
defmodule GrovePi.Potentiometer do alias GrovePi.Analog use GrovePi.Poller, default_trigger: GrovePi.Potentiometer.DefaultTrigger, read_type: Analog.adc_level() @moduledoc """ Conveniences for reading from a potentiometer or rotary angle sensor. Listen for events from a GrovePi potentiometer or rot...
30.704545
78
0.723908
5a3dbc43720941b5713e6ff8544b75c0af195793
2,011
ex
Elixir
clients/run/lib/google_api/run/v1/model/security_context.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/run/lib/google_api/run/v1/model/security_context.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/run/lib/google_api/run/v1/model/security_context.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...
31.421875
80
0.73993
5a3dc4bdabc17d616c8f406cba4eb646165aeefa
1,798
ex
Elixir
installer/lib/mix/tasks/phx.new.ecto.ex
zorn/phoenix
ac88958550fbd861e2f1e1af6e3c6b787b1a202e
[ "MIT" ]
2
2016-11-01T15:01:48.000Z
2016-11-01T15:07:20.000Z
installer/lib/mix/tasks/phx.new.ecto.ex
zorn/phoenix
ac88958550fbd861e2f1e1af6e3c6b787b1a202e
[ "MIT" ]
null
null
null
installer/lib/mix/tasks/phx.new.ecto.ex
zorn/phoenix
ac88958550fbd861e2f1e1af6e3c6b787b1a202e
[ "MIT" ]
null
null
null
defmodule Mix.Tasks.Phx.New.Ecto do @moduledoc """ Creates a new Ecto project within an umbrella project. This task is intended to create a bare Ecto project without web integration, which serves as a core application of your domain for web applications and your greater umbrella platform to integrate with....
28.539683
83
0.677419
5a3dcec52680f0649df7dc9b8f428a9a3209f37e
1,534
ex
Elixir
clients/container/lib/google_api/container/v1/model/confidential_nodes.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/container/lib/google_api/container/v1/model/confidential_nodes.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/container/lib/google_api/container/v1/model/confidential_nodes.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...
32.638298
134
0.745763
5a3ddb424ffa6abf0e5b06c2457e867c337ba4c0
17,992
ex
Elixir
clients/document_ai/lib/google_api/document_ai/v1/api/uiv1beta3.ex
yoshi-code-bot/elixir-google-api
cdb6032f01fac5ab704803113c39f2207e9e019d
[ "Apache-2.0" ]
null
null
null
clients/document_ai/lib/google_api/document_ai/v1/api/uiv1beta3.ex
yoshi-code-bot/elixir-google-api
cdb6032f01fac5ab704803113c39f2207e9e019d
[ "Apache-2.0" ]
null
null
null
clients/document_ai/lib/google_api/document_ai/v1/api/uiv1beta3.ex
yoshi-code-bot/elixir-google-api
cdb6032f01fac5ab704803113c39f2207e9e019d
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
45.20603
607
0.625834
5a3deeff7aef42b701ee5cf7c054202c60f8fec3
8,931
exs
Elixir
test/unit/flattening_test.exs
rustra/jsonld-ex
4f903a04d4ba9f0f0df1b871a92eb89bc20f38dc
[ "MIT" ]
12
2020-06-18T18:23:34.000Z
2022-01-05T15:00:09.000Z
test/unit/flattening_test.exs
rustra/jsonld-ex
4f903a04d4ba9f0f0df1b871a92eb89bc20f38dc
[ "MIT" ]
5
2020-06-16T16:18:14.000Z
2021-08-19T20:23:03.000Z
test/unit/flattening_test.exs
rustra/jsonld-ex
4f903a04d4ba9f0f0df1b871a92eb89bc20f38dc
[ "MIT" ]
6
2020-06-17T22:25:51.000Z
2021-08-19T19:55:49.000Z
defmodule JSON.LD.FlatteningTest do use ExUnit.Case, async: false alias RDF.NS.RDFS test "Flattened form of a JSON-LD document (EXAMPLE 60 and 61 of https://www.w3.org/TR/json-ld/#flattened-document-form)" do input = Jason.decode!(""" { "@context": { "name": "http://xmlns.com/f...
30.796552
126
0.382712
5a3e240b23bf63a90c6dcebef8b1ce661e4814ba
2,791
ex
Elixir
clients/managed_identities/lib/google_api/managed_identities/v1/model/operation_metadata.ex
kyleVsteger/elixir-google-api
3a0dd498af066a4361b5b0fd66ffc04a57539488
[ "Apache-2.0" ]
null
null
null
clients/managed_identities/lib/google_api/managed_identities/v1/model/operation_metadata.ex
kyleVsteger/elixir-google-api
3a0dd498af066a4361b5b0fd66ffc04a57539488
[ "Apache-2.0" ]
null
null
null
clients/managed_identities/lib/google_api/managed_identities/v1/model/operation_metadata.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...
42.938462
299
0.698316
5a3e340c0303491283f9e5cba1ccf45987726359
1,558
ex
Elixir
clients/vault/lib/google_api/vault/v1/model/list_held_accounts_response.ex
kyleVsteger/elixir-google-api
3a0dd498af066a4361b5b0fd66ffc04a57539488
[ "Apache-2.0" ]
null
null
null
clients/vault/lib/google_api/vault/v1/model/list_held_accounts_response.ex
kyleVsteger/elixir-google-api
3a0dd498af066a4361b5b0fd66ffc04a57539488
[ "Apache-2.0" ]
null
null
null
clients/vault/lib/google_api/vault/v1/model/list_held_accounts_response.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...
33.148936
122
0.741977
5a3e3c44bd1eeab36286fe6e2f6d5499e096ebe8
1,173
ex
Elixir
lib/pelican_web/channels/user_socket.ex
ngscheurich/pelican
9431b2712f38b74c45262d73e55a70aa3d55a093
[ "MIT" ]
null
null
null
lib/pelican_web/channels/user_socket.ex
ngscheurich/pelican
9431b2712f38b74c45262d73e55a70aa3d55a093
[ "MIT" ]
2
2018-04-04T03:49:29.000Z
2018-04-04T15:57:33.000Z
lib/pelican_web/channels/user_socket.ex
LouisianaGroups/pelican
9431b2712f38b74c45262d73e55a70aa3d55a093
[ "MIT" ]
1
2018-04-04T03:53:08.000Z
2018-04-04T03:53:08.000Z
defmodule PelicanWeb.UserSocket do use Phoenix.Socket ## Channels # channel "room:*", PelicanWeb.RoomChannel ## Transports transport :websocket, Phoenix.Transports.WebSocket # transport :longpoll, Phoenix.Transports.LongPoll # Socket params are passed from the client and can # be used to verify and a...
30.868421
83
0.703325
5a3e600516511f4c70d3175db33ffcda0e96b795
4,416
exs
Elixir
test/incidents_test.exs
DEVCONSec/otto-api-client-elixir
b74da14fbb7c4e33f0fe15e583630b6efa634d47
[ "MIT" ]
null
null
null
test/incidents_test.exs
DEVCONSec/otto-api-client-elixir
b74da14fbb7c4e33f0fe15e583630b6efa634d47
[ "MIT" ]
1
2020-11-11T15:16:51.000Z
2020-11-11T20:53:34.000Z
test/incidents_test.exs
DEVCONSec/otto-api-client-elixir
b74da14fbb7c4e33f0fe15e583630b6efa634d47
[ "MIT" ]
null
null
null
defmodule IncidentsTest do use ExUnit.Case import Mox setup :verify_on_exit! test "get incidents" do stub_json = """ {"data":[{ "id":"123456", "account_id": "123456", "site_id": "123456", "threat_id": "123456", "dom_location": "IMG", "event_name": "Click Event", ...
27.773585
99
0.484375
5a3e94072135b2822b6221fe0536269415491752
868
exs
Elixir
ui/config/prod.secret.exs
sparrell/BlinkyHaHa
fc634d09d2427d39263f08c4c1841ccfcdbd0842
[ "MIT" ]
1
2021-06-05T18:04:05.000Z
2021-06-05T18:04:05.000Z
ui/config/prod.secret.exs
sparrell/BlinkyHaHa
fc634d09d2427d39263f08c4c1841ccfcdbd0842
[ "MIT" ]
3
2020-06-29T19:05:32.000Z
2020-07-01T20:52:23.000Z
ui/config/prod.secret.exs
sparrell/BlinkyHaHa
fc634d09d2427d39263f08c4c1841ccfcdbd0842
[ "MIT" ]
null
null
null
# In this file, we load production configuration and secrets # from environment variables. You can also hardcode secrets, # although such is generally not recommended and you have to # remember to add this file to your .gitignore. import Config secret_key_base = System.get_env("SECRET_KEY_BASE") || raise """ ...
32.148148
76
0.732719
5a3ec158c30e4251184c5e5822b6725c367094af
5,751
ex
Elixir
lib/chat_api/billing.ex
ZmagoD/papercups
dff9a5822b809edc4fd8ecf198566f9b14ab613f
[ "MIT" ]
null
null
null
lib/chat_api/billing.ex
ZmagoD/papercups
dff9a5822b809edc4fd8ecf198566f9b14ab613f
[ "MIT" ]
null
null
null
lib/chat_api/billing.ex
ZmagoD/papercups
dff9a5822b809edc4fd8ecf198566f9b14ab613f
[ "MIT" ]
null
null
null
defmodule ChatApi.Billing do @moduledoc """ The Billing context. """ import Ecto.Query, warn: false alias ChatApi.{Accounts, Messages} alias ChatApi.Accounts.Account require Logger @trial_period_days 14 @type billing_info() :: %{ subscription: nil | Stripe.Subscription.t(), pro...
33.829412
97
0.636933
5a3ec2051b27abcd80b7e2ef4e608320e0f669fd
3,540
ex
Elixir
clients/books/lib/google_api/books/v1/model/download_access_restriction.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
1
2018-12-03T23:43:10.000Z
2018-12-03T23:43:10.000Z
clients/books/lib/google_api/books/v1/model/download_access_restriction.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
clients/books/lib/google_api/books/v1/model/download_access_restriction.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 ...
44.25
223
0.687853
5a3ee5baf6cd4c2cb764e788efa3944dbd78afe5
186
ex
Elixir
lib/shopify/graphql/retry/linear.ex
aalfson/shopify-graphql-elixir
ef197c0463834d4f76ec1a11d57b1af3cfb1890b
[ "MIT" ]
15
2020-01-13T22:36:52.000Z
2022-01-26T10:45:25.000Z
lib/shopify/graphql/retry/linear.ex
aalfson/shopify-graphql-elixir
ef197c0463834d4f76ec1a11d57b1af3cfb1890b
[ "MIT" ]
14
2019-11-26T17:28:38.000Z
2021-10-11T16:06:49.000Z
lib/shopify/graphql/retry/linear.ex
aalfson/shopify-graphql-elixir
ef197c0463834d4f76ec1a11d57b1af3cfb1890b
[ "MIT" ]
4
2020-08-01T02:25:05.000Z
2021-02-24T16:11:38.000Z
defmodule Shopify.GraphQL.Retry.Linear do @behaviour Shopify.GraphQL.Retry @impl true def wait_for(_request, config) do Keyword.get(config.retry_opts, :retry_in, 0) end end
20.666667
48
0.752688
5a3eec4bd07dc1a2faf52f584a09a732f981dc7f
4,932
exs
Elixir
test/guardian/plug/verify_header_test.exs
cgorshing/guardian
b62f961e948dc518e6f767af08c2c5a9f1667702
[ "MIT" ]
null
null
null
test/guardian/plug/verify_header_test.exs
cgorshing/guardian
b62f961e948dc518e6f767af08c2c5a9f1667702
[ "MIT" ]
null
null
null
test/guardian/plug/verify_header_test.exs
cgorshing/guardian
b62f961e948dc518e6f767af08c2c5a9f1667702
[ "MIT" ]
null
null
null
defmodule Guardian.Plug.VerifyHeaderTest do @moduledoc false use Plug.Test alias Guardian.Plug.Pipeline alias Guardian.Plug.VerifyHeader use ExUnit.Case, async: true defmodule Handler do @moduledoc false import Plug.Conn @behaviour Guardian.Plug.ErrorHandler @impl Guardian.Plug.ErrorH...
28.022727
95
0.640714
5a3f36148724ef76b4ebb21bc58645951e4bb0fb
288
exs
Elixir
test/day00_test.exs
p88h/aoc2021
b42a12ce7ca786b2b5061fdcb46bd850ed54b82c
[ "Apache-2.0" ]
15
2021-12-01T16:50:40.000Z
2022-01-04T02:44:00.000Z
test/day00_test.exs
p88h/aoc2021
b42a12ce7ca786b2b5061fdcb46bd850ed54b82c
[ "Apache-2.0" ]
null
null
null
test/day00_test.exs
p88h/aoc2021
b42a12ce7ca786b2b5061fdcb46bd850ed54b82c
[ "Apache-2.0" ]
6
2021-12-08T01:33:56.000Z
2021-12-29T11:45:52.000Z
defmodule Day00Test do use ExUnit.Case doctest Aoc2021.Day00 import Aoc2021.Day00 def input do [ "1", "2", "3", "4", "5", "6", "7", "8", "9", "10" ] end test "part 1" do assert part1(input()) == 10 end test "part 2" do assert part2(input()) == 55 end end
16
57
0.559028
5a3f4ddfa09d08e6097aeb74f96d06366430215f
515
ex
Elixir
apps/ewallet_api/lib/ewallet_api/v1/views/transaction_view.ex
vanmil/ewallet
6c1aca95a83e0a9d93007670a40d8c45764a8122
[ "Apache-2.0" ]
1
2018-12-07T06:21:21.000Z
2018-12-07T06:21:21.000Z
apps/ewallet_api/lib/ewallet_api/v1/views/transaction_view.ex
vanmil/ewallet
6c1aca95a83e0a9d93007670a40d8c45764a8122
[ "Apache-2.0" ]
null
null
null
apps/ewallet_api/lib/ewallet_api/v1/views/transaction_view.ex
vanmil/ewallet
6c1aca95a83e0a9d93007670a40d8c45764a8122
[ "Apache-2.0" ]
null
null
null
defmodule EWalletAPI.V1.TransactionView do use EWalletAPI, :view alias EWallet.Web.V1.{ ResponseSerializer, TransactionSerializer } def render("transaction.json", %{transaction: transaction}) do transaction |> TransactionSerializer.serialize() |> ResponseSerializer.serialize(success: true)...
24.52381
67
0.733981
5a3f5129495b7102380b57f467928c473e40f56f
1,408
exs
Elixir
test/vintage_net_lte/modems/quectel_BG96_test.exs
LostKobrakai/vintage_net_lte
7c280f38112bf9a5c1785d883302bab73b8000ee
[ "Apache-2.0" ]
null
null
null
test/vintage_net_lte/modems/quectel_BG96_test.exs
LostKobrakai/vintage_net_lte
7c280f38112bf9a5c1785d883302bab73b8000ee
[ "Apache-2.0" ]
null
null
null
test/vintage_net_lte/modems/quectel_BG96_test.exs
LostKobrakai/vintage_net_lte
7c280f38112bf9a5c1785d883302bab73b8000ee
[ "Apache-2.0" ]
null
null
null
defmodule VintageNetLTE.Modems.QuectelBG96Test do use ExUnit.Case alias VintageNetLTE.Modems.QuectelBG96 test "returns correct spec" do provider_info = %{apn: "test.apn.com"} assert %{ serial_port: "ttyUSB3", serial_speed: 9600, chatscript: chatscript(), ...
26.074074
183
0.65483
5a3f5d00cfb3b472d2a14aabc4784838297af1fb
5,437
exs
Elixir
apps/deployment_scope/test/deployment_scope_test.exs
vapordao/staxx
5110167573e67a91c0865c3265896642ebe4012e
[ "Apache-2.0" ]
null
null
null
apps/deployment_scope/test/deployment_scope_test.exs
vapordao/staxx
5110167573e67a91c0865c3265896642ebe4012e
[ "Apache-2.0" ]
null
null
null
apps/deployment_scope/test/deployment_scope_test.exs
vapordao/staxx
5110167573e67a91c0865c3265896642ebe4012e
[ "Apache-2.0" ]
null
null
null
defmodule Staxx.DeploymentScopeTest do use ExUnit.Case, async: true doctest Staxx.DeploymentScope import Staxx.DeploymentScope.ChainFactory alias Staxx.DeploymentScope alias Staxx.DeploymentScope.Scope.StackManager describe "start/1 :: " do test "fail to start without existing stack config" do ...
30.038674
97
0.65606
5a3f73c12df9be4256e38da79730940bfa63b362
12,779
ex
Elixir
lib/mapper/cp037.ex
nikneroz/exconv
31a9f424462f88024af3afb32d2cb80160f07ebf
[ "MIT" ]
null
null
null
lib/mapper/cp037.ex
nikneroz/exconv
31a9f424462f88024af3afb32d2cb80160f07ebf
[ "MIT" ]
1
2020-07-16T09:38:33.000Z
2020-07-16T09:38:33.000Z
lib/mapper/cp037.ex
nikneroz/exconv
31a9f424462f88024af3afb32d2cb80160f07ebf
[ "MIT" ]
null
null
null
defmodule Exconv.Mapper.Cp037 do def to_unicode(255), do: nil # <<194, 159>> | <<194, 159>> def to_unicode(254), do: 218 # <<195, 154>> | "Ú" def to_unicode(253), do: 217 # <<195, 153>> | "Ù" def to_unicode(252), do: 220 # <<195, 156>> | "Ü" def to_unicode(251), do: 219 # <<195, 155>> | "Û" def to_unicode(2...
49.531008
60
0.519524
5a3f7e78ddbdda81c6cb9053d2740dace3045e3c
1,223
ex
Elixir
clients/cloud_error_reporting/lib/google_api/cloud_error_reporting/v1beta1/model/timed_count.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/cloud_error_reporting/lib/google_api/cloud_error_reporting/v1beta1/model/timed_count.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/cloud_error_reporting/lib/google_api/cloud_error_reporting/v1beta1/model/timed_count.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
1
2018-07-28T20:50:50.000Z
2018-07-28T20:50:50.000Z
# Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the &quot;License&quot;); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
31.358974
131
0.750613
5a3fb68c48735e40d2daa7f1d8ad8a37be1f8369
2,105
ex
Elixir
clients/network_connectivity/lib/google_api/network_connectivity/v1/model/linked_vpn_tunnels.ex
MMore/elixir-google-api
0574ec1439d9bbfe22d63965be1681b0f45a94c9
[ "Apache-2.0" ]
null
null
null
clients/network_connectivity/lib/google_api/network_connectivity/v1/model/linked_vpn_tunnels.ex
MMore/elixir-google-api
0574ec1439d9bbfe22d63965be1681b0f45a94c9
[ "Apache-2.0" ]
null
null
null
clients/network_connectivity/lib/google_api/network_connectivity/v1/model/linked_vpn_tunnels.ex
MMore/elixir-google-api
0574ec1439d9bbfe22d63965be1681b0f45a94c9
[ "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...
42.1
318
0.752019
5a3fc009b91d809ef379765e5339ea16d89ded84
5,519
exs
Elixir
kousa/test/broth/room/set_role_test.exs
samyadel/dogehouse
c9daffbfe81a7488093b07f3f9a274a062dde801
[ "MIT" ]
2
2021-05-01T16:57:50.000Z
2021-07-07T22:01:14.000Z
kousa/test/broth/room/set_role_test.exs
samyadel/dogehouse
c9daffbfe81a7488093b07f3f9a274a062dde801
[ "MIT" ]
null
null
null
kousa/test/broth/room/set_role_test.exs
samyadel/dogehouse
c9daffbfe81a7488093b07f3f9a274a062dde801
[ "MIT" ]
null
null
null
defmodule BrothTest.Room.SetRoleTest do use ExUnit.Case, async: true use KousaTest.Support.EctoSandbox alias Beef.Schemas.User alias Beef.Users alias BrothTest.WsClient alias BrothTest.WsClientFactory alias KousaTest.Support.Factory require WsClient setup do user = Factory.create(User) clie...
29.672043
98
0.631817
5a3fc312bf6dc186cc397664489e82eac7275fbc
593
exs
Elixir
elixir/priv/repo/migrations/20200826196533_create_transactions.exs
menyx02/web-homework
efe99056a76c374bf9257ed0d16233febcd35524
[ "MIT" ]
null
null
null
elixir/priv/repo/migrations/20200826196533_create_transactions.exs
menyx02/web-homework
efe99056a76c374bf9257ed0d16233febcd35524
[ "MIT" ]
null
null
null
elixir/priv/repo/migrations/20200826196533_create_transactions.exs
menyx02/web-homework
efe99056a76c374bf9257ed0d16233febcd35524
[ "MIT" ]
null
null
null
defmodule Homework.Repo.Migrations.CreateTransactions do use Ecto.Migration def change do create table(:transactions, primary_key: false) do add(:id, :uuid, primary_key: true) add(:amount, :integer) add(:credit, :boolean, default: false, null: false) add(:debit, :boolean, default: false...
31.210526
81
0.664418
5a3fd16ea33a1958fc9ae64703c11466a4750b37
753
ex
Elixir
lib/arkecosystem/crypto/identities/public_key.ex
whitehat/elixir-crypto
6347868ee15c7b79676df58bef54376a8dc6fd02
[ "MIT" ]
null
null
null
lib/arkecosystem/crypto/identities/public_key.ex
whitehat/elixir-crypto
6347868ee15c7b79676df58bef54376a8dc6fd02
[ "MIT" ]
null
null
null
lib/arkecosystem/crypto/identities/public_key.ex
whitehat/elixir-crypto
6347868ee15c7b79676df58bef54376a8dc6fd02
[ "MIT" ]
null
null
null
defmodule ArkEcosystem.Crypto.Identities.PublicKey do alias Exbtc.Core, as: BtcCore def from_passphrase(passphrase) do passphrase |> ArkEcosystem.Crypto.Identities.PrivateKey.from_passphrase() |> from_private_key end def from_private_key(private_key) do private_key |> BtcCore.privkey_to_pu...
26.892857
92
0.719788
5a3ffdc5ac428c72e066f15a9cb17032610c03a7
2,066
exs
Elixir
bench/encoder_bench.exs
vishnevskiy/poison
deb40489115d6ff2130b4a9eeb3aa00aee3de28a
[ "0BSD", "Unlicense" ]
null
null
null
bench/encoder_bench.exs
vishnevskiy/poison
deb40489115d6ff2130b4a9eeb3aa00aee3de28a
[ "0BSD", "Unlicense" ]
null
null
null
bench/encoder_bench.exs
vishnevskiy/poison
deb40489115d6ff2130b4a9eeb3aa00aee3de28a
[ "0BSD", "Unlicense" ]
null
null
null
defmodule EncoderBench do use Benchfella # Lists bench "lists (Poison)", [list: gen_list] do Poison.encode!(list) end bench "lists (jiffy)", [list: gen_list] do :jiffy.encode(list) end bench "lists (JSX)", [list: gen_list] do JSX.encode!(list) end bench "lists (Jazz)", [list: gen_list]...
19.865385
77
0.638916
5a40085144b755bba7422d7c0aa71756e63cb59e
2,014
exs
Elixir
test/gcs_signed_url/crypto_test.exs
code-supply/gcs_signed_url
e3e72b8b11e80c47899713189f03d94e28b2a831
[ "MIT" ]
16
2019-07-25T16:05:20.000Z
2022-02-09T06:24:55.000Z
test/gcs_signed_url/crypto_test.exs
code-supply/gcs_signed_url
e3e72b8b11e80c47899713189f03d94e28b2a831
[ "MIT" ]
53
2020-04-21T16:35:49.000Z
2022-03-28T13:04:07.000Z
test/gcs_signed_url/crypto_test.exs
code-supply/gcs_signed_url
e3e72b8b11e80c47899713189f03d94e28b2a831
[ "MIT" ]
10
2020-04-21T12:19:47.000Z
2021-11-19T12:00:06.000Z
defmodule GcsSignedUrl.CryptoTest do use ExUnit.Case alias GcsSignedUrl.Crypto, as: MUT alias GcsSignedUrl.Fixtures.Crypto, as: Fixtures alias GcsSignedUrl.MockSetup.Crypto, as: MockSetup alias GcsSignedUrl.SignBlob describe "sign/2 with client" do test "returns the signature correctly" do client...
32.483871
83
0.681231
5a4039b3f95ae4b57025b2f428abe53b15413591
572
ex
Elixir
priv/mock/populator/cms_post.ex
DavidAlphaFox/coderplanets_server
3fd47bf3bba6cc04c9a34698201a60ad2f3e8254
[ "Apache-2.0" ]
1
2019-05-07T15:03:54.000Z
2019-05-07T15:03:54.000Z
priv/mock/populator/cms_post.ex
DavidAlphaFox/coderplanets_server
3fd47bf3bba6cc04c9a34698201a60ad2f3e8254
[ "Apache-2.0" ]
null
null
null
priv/mock/populator/cms_post.ex
DavidAlphaFox/coderplanets_server
3fd47bf3bba6cc04c9a34698201a60ad2f3e8254
[ "Apache-2.0" ]
null
null
null
# for mock CMS posts defmodule MastaniServer.Mock.CMS.Post do alias MastaniServer.Repo alias MastaniServer.CMS.Post def random_attrs do %{ title: Faker.Name.first_name() <> " " <> Faker.Name.last_name(), body: Faker.Lorem.paragraph(%Range{first: 1, last: 2}) } end def random(count \\ 1)...
19.066667
70
0.625874
5a4092bb57339992220f6e72c2cdb89407dcb71b
603
exs
Elixir
test/band_manager_web/views/error_view_test.exs
tutsplus/get-started-with-phoenix
c729d25291fedda134ce7a4d307fe4b3cc50db89
[ "BSD-2-Clause" ]
3
2019-04-11T07:29:58.000Z
2021-03-14T00:01:58.000Z
test/band_manager_web/views/error_view_test.exs
tutsplus/get-started-with-phoenix
c729d25291fedda134ce7a4d307fe4b3cc50db89
[ "BSD-2-Clause" ]
null
null
null
test/band_manager_web/views/error_view_test.exs
tutsplus/get-started-with-phoenix
c729d25291fedda134ce7a4d307fe4b3cc50db89
[ "BSD-2-Clause" ]
null
null
null
defmodule BandManagerWeb.ErrorViewTest do use BandManagerWeb.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(BandManagerWeb.ErrorView, "404.html", []) == "Page not found" end test ...
27.409091
72
0.694859
5a4095749902d6c863cb7e4659901cbaa20849e6
98
ex
Elixir
lib/pos/repo.ex
ancarvalho/backend-elixir
e42c22ae0881d80336a60dc6c87d4786db97c7a8
[ "MIT" ]
null
null
null
lib/pos/repo.ex
ancarvalho/backend-elixir
e42c22ae0881d80336a60dc6c87d4786db97c7a8
[ "MIT" ]
null
null
null
lib/pos/repo.ex
ancarvalho/backend-elixir
e42c22ae0881d80336a60dc6c87d4786db97c7a8
[ "MIT" ]
null
null
null
defmodule Pos.Repo do use Ecto.Repo, otp_app: :pos, adapter: Ecto.Adapters.Postgres end
16.333333
35
0.704082
5a40a6974c019eba15ebb81edb2ec7d4cc8b5304
1,129
exs
Elixir
config/config.exs
theRemix/Ex_Band_Namer
cb3163dd668e8618b2f145f1edf0c63349fe4bbc
[ "MIT" ]
null
null
null
config/config.exs
theRemix/Ex_Band_Namer
cb3163dd668e8618b2f145f1edf0c63349fe4bbc
[ "MIT" ]
1
2017-06-21T03:20:30.000Z
2017-06-21T03:20:30.000Z
config/config.exs
theRemix/Ex_Band_Namer
cb3163dd668e8618b2f145f1edf0c63349fe4bbc
[ "MIT" ]
null
null
null
# This file is responsible for configuring your application # and its dependencies with the aid of the Mix.Config module. use Mix.Config # This configuration is loaded before any dependency and is restricted # to this project. If another project depends on this project, this # file won't be loaded nor affect the paren...
36.419355
73
0.753764
5a40cd896a778a44e3c94daa66f61ba714f0bf82
5,000
ex
Elixir
lib/ex_dump.ex
kevinkoltz/ex_dump
8b09fcb5d41f62fcb3a9541b42aa5e3efc80690b
[ "Apache-2.0" ]
1
2021-02-24T03:07:38.000Z
2021-02-24T03:07:38.000Z
lib/ex_dump.ex
kevinkoltz/ex_dump
8b09fcb5d41f62fcb3a9541b42aa5e3efc80690b
[ "Apache-2.0" ]
null
null
null
lib/ex_dump.ex
kevinkoltz/ex_dump
8b09fcb5d41f62fcb3a9541b42aa5e3efc80690b
[ "Apache-2.0" ]
null
null
null
defmodule ExDump do @moduledoc """ Helper utility for dumping variables in EEx templates for easy inspection. """ use Phoenix.HTML @doc """ Dumps a term to html in a easy to read format. """ @spec dump(any(), keyword()) :: {:safe, String.t()} def dump(term, opts \\ []) do theme = Keyword.get(opts...
27.027027
121
0.5628
5a41070ce70d45bad971cd7129d24f87672b5f9e
3,736
ex
Elixir
apps/re/lib/listings/queries/queries.ex
ruby2elixir/emcasa-backend
70d7f4f233555417941ffa6ada84cf8740c21dd2
[ "MIT" ]
4
2019-11-01T16:29:31.000Z
2020-10-10T21:20:12.000Z
apps/re/lib/listings/queries/queries.ex
eduardomartines/emcasa-backend
70d7f4f233555417941ffa6ada84cf8740c21dd2
[ "MIT" ]
null
null
null
apps/re/lib/listings/queries/queries.ex
eduardomartines/emcasa-backend
70d7f4f233555417941ffa6ada84cf8740c21dd2
[ "MIT" ]
5
2019-11-04T21:25:45.000Z
2020-02-13T23:49:36.000Z
defmodule Re.Listings.Queries do @moduledoc """ Module for grouping listing queries """ alias Re.{ Images, Listing } import Ecto.Query @full_preload [ :address, :listings_favorites, :tags, :interests, images: Images.Queries.listing_preload() ] @orderable_fields ~w(id pr...
27.674074
107
0.649625
5a4119838b2a7928a33fb38421457f95444fe435
568
exs
Elixir
test/hhex_web/views/error_view_test.exs
arvidkahl/hhex_elixir_auth0
2ec6a91a8d48afe036a39fe40b685335078dcfd5
[ "MIT" ]
1
2017-10-25T09:56:17.000Z
2017-10-25T09:56:17.000Z
test/hhex_web/views/error_view_test.exs
arvidkahl/hhex_elixir_auth0
2ec6a91a8d48afe036a39fe40b685335078dcfd5
[ "MIT" ]
null
null
null
test/hhex_web/views/error_view_test.exs
arvidkahl/hhex_elixir_auth0
2ec6a91a8d48afe036a39fe40b685335078dcfd5
[ "MIT" ]
null
null
null
defmodule HhexWeb.ErrorViewTest do use HhexWeb.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(HhexWeb.ErrorView, "404.html", []) == "Page not found" end test "render 500.html" do ...
25.818182
66
0.676056
5a415fcb3e28059f13e211f29c26590483af0644
231
exs
Elixir
config/test.exs
adamzaninovich/policy_wonk
e372ce25462b4693de36ba673d17de4e7318fd5f
[ "MIT" ]
null
null
null
config/test.exs
adamzaninovich/policy_wonk
e372ce25462b4693de36ba673d17de4e7318fd5f
[ "MIT" ]
null
null
null
config/test.exs
adamzaninovich/policy_wonk
e372ce25462b4693de36ba673d17de4e7318fd5f
[ "MIT" ]
null
null
null
use Mix.Config config :policy_wonk, PolicyWonk, policies: [PolicyWonk.Test.Policies], # can be just one module too loaders: [PolicyWonk.Test.Loaders], # can be just one module too load_async: false
33
78
0.666667
5a41703ae907903259dc04d823ac71c78fe9faf5
1,705
exs
Elixir
test/validations/presence_test.exs
emjrdev/vex
c4a863ed39d4723ccf45231252d81c0f0df45de1
[ "MIT" ]
null
null
null
test/validations/presence_test.exs
emjrdev/vex
c4a863ed39d4723ccf45231252d81c0f0df45de1
[ "MIT" ]
null
null
null
test/validations/presence_test.exs
emjrdev/vex
c4a863ed39d4723ccf45231252d81c0f0df45de1
[ "MIT" ]
null
null
null
defmodule PresenceTest do use ExUnit.Case test "keyword list, provided presence validation" do assert Vex.valid?([name: "Foo"], name: [presence: true]) assert !Vex.valid?([name: ""], name: [presence: true]) assert Vex.valid?([items: [:a]], items: [presence: true]) assert !Vex.valid?([items: []], it...
37.888889
72
0.57654
5a4184aaf92aeef5c3ce7856eb1f0c089ac66334
1,974
exs
Elixir
test/http2_test.exs
fidr/peppermint
617886c546eea365c68e6c21f040645d5bd8c916
[ "MIT" ]
13
2020-05-26T17:57:44.000Z
2022-01-21T07:27:10.000Z
test/http2_test.exs
fidr/peppermint
617886c546eea365c68e6c21f040645d5bd8c916
[ "MIT" ]
2
2020-07-14T14:11:43.000Z
2020-07-15T14:27:38.000Z
test/http2_test.exs
fidr/peppermint
617886c546eea365c68e6c21f040645d5bd8c916
[ "MIT" ]
2
2020-07-15T03:55:20.000Z
2022-03-22T22:48:06.000Z
defmodule HTTP2Test do use ExUnit.Case import Mint.HTTP2.Frame import HTTP2.TestServer, only: [recv_next_frames: 2] @default_opts transport_opts: [verify: :verify_none] setup do {:ok, port, server_ref} = HTTP2.TestServer.start() [host: "https://localhost:#{port}", server_ref: server_ref] end t...
32.360656
100
0.630193
5a419115000fe53d3336dbd61cfaba041e72522e
509
exs
Elixir
elixir_http_server_starter/mix.exs
andrea-prearo/http_server_starter_collection
229f2221ed941193e5a85486c662ea70b2267151
[ "MIT" ]
null
null
null
elixir_http_server_starter/mix.exs
andrea-prearo/http_server_starter_collection
229f2221ed941193e5a85486c662ea70b2267151
[ "MIT" ]
null
null
null
elixir_http_server_starter/mix.exs
andrea-prearo/http_server_starter_collection
229f2221ed941193e5a85486c662ea70b2267151
[ "MIT" ]
null
null
null
defmodule HttpServerStarter.Mixfile do use Mix.Project def project do [app: :elixir_http_server_starter, version: "0.1.0", elixir: "~> 1.3", build_embedded: Mix.env == :prod, start_permanent: Mix.env == :prod, deps: deps()] end def application do [applications: [:logger,...
18.178571
39
0.544204
5a41a2232a725c4ed7ea64d20b0c120531392e0b
1,326
ex
Elixir
lib/table_rex/cell.ex
elixir-poa/table_rex
af8f5b421215e53921d212185b60be7b03b524b1
[ "MIT" ]
1
2018-04-26T13:41:33.000Z
2018-04-26T13:41:33.000Z
lib/table_rex/cell.ex
geolessel/table_rex
af8f5b421215e53921d212185b60be7b03b524b1
[ "MIT" ]
null
null
null
lib/table_rex/cell.ex
geolessel/table_rex
af8f5b421215e53921d212185b60be7b03b524b1
[ "MIT" ]
null
null
null
defmodule TableRex.Cell do @moduledoc """ Defines a struct that represents a single table cell, and helper functions. The `align` field can be of: * `:left`: left align text in the cell. * `:center`: center text in the cell. * `:right`: right align text in the cell. * `nil`: align text in cell a...
30.136364
77
0.674208
5a41f307d04a906d952a800eca62cc2364e80c66
5,609
ex
Elixir
lib/phoenix/live_dashboard/helpers.ex
adrianomitre/phoenix_live_dashboard
34977c3d61655be708761b975ca885680ac3145f
[ "MIT" ]
null
null
null
lib/phoenix/live_dashboard/helpers.ex
adrianomitre/phoenix_live_dashboard
34977c3d61655be708761b975ca885680ac3145f
[ "MIT" ]
null
null
null
lib/phoenix/live_dashboard/helpers.ex
adrianomitre/phoenix_live_dashboard
34977c3d61655be708761b975ca885680ac3145f
[ "MIT" ]
null
null
null
defmodule Phoenix.LiveDashboard.Helpers do @moduledoc false import Phoenix.LiveView.Helpers @format_limit 100 @doc """ Computes a route path to the live dashboard. """ def live_dashboard_path(socket, page, node, params) do apply( socket.router.__helpers__(), :live_dashboard_path, ...
25.967593
96
0.610982
5a41f32361bd4fa9782a2daed6a957c021e3eefb
1,039
ex
Elixir
lib/disco/utils.ex
andreapavoni/disco
e168e0cba38aa61c10fa7ae156133618aef5c25a
[ "MIT" ]
32
2018-12-10T10:54:03.000Z
2022-01-03T23:55:23.000Z
lib/disco/utils.ex
andreapavoni/disco
e168e0cba38aa61c10fa7ae156133618aef5c25a
[ "MIT" ]
2
2018-12-10T09:15:52.000Z
2019-06-25T10:50:10.000Z
lib/disco/utils.ex
andreapavoni/disco
e168e0cba38aa61c10fa7ae156133618aef5c25a
[ "MIT" ]
2
2019-05-08T16:06:54.000Z
2019-07-12T11:57:59.000Z
defmodule Disco.Utils do @moduledoc false # This module collects some useful shared helpers. @doc """ Removes `nil` values from a map or struct. ## Options * `:except` - a list of keys to not purge. ## Examples iex> Disco.Utils.map_reject_nil_values(%{foo: "bar", baz: nil}) %{foo: "bar"}...
26.641026
87
0.623677
5a42216b00af314c73f2b75307bd1686c484d13c
3,080
exs
Elixir
apps/state/test/state/route_pattern_test.exs
fjlanasa/api
c39bc393aea572bfb81754b2ea1adf9dda9ce24a
[ "MIT" ]
null
null
null
apps/state/test/state/route_pattern_test.exs
fjlanasa/api
c39bc393aea572bfb81754b2ea1adf9dda9ce24a
[ "MIT" ]
null
null
null
apps/state/test/state/route_pattern_test.exs
fjlanasa/api
c39bc393aea572bfb81754b2ea1adf9dda9ce24a
[ "MIT" ]
1
2019-09-09T20:40:13.000Z
2019-09-09T20:40:13.000Z
defmodule State.RoutePatternTest do use ExUnit.Case alias Model.RoutePattern import State.RoutePattern describe "filter_by/1" do test "filters by ids" do route_pattern = %RoutePattern{id: "pattern", route_id: "route"} other_pattern = %RoutePattern{id: "other", route_id: "route"} State.R...
37.108434
97
0.639935
5a42561227a221a985a473d451a4bcb5d2988b2a
9,944
ex
Elixir
lib/vintage_net_wizard/backend.ex
jmerriweather/vintage_net_wizard
dc67e75d11911dec536571344e00d0e5ed250b7f
[ "Apache-2.0" ]
null
null
null
lib/vintage_net_wizard/backend.ex
jmerriweather/vintage_net_wizard
dc67e75d11911dec536571344e00d0e5ed250b7f
[ "Apache-2.0" ]
1
2020-03-05T12:21:10.000Z
2020-03-05T12:21:10.000Z
lib/vintage_net_wizard/backend.ex
magaloop/vintage_net_wizard
43edd17fd82cde16846a3ca2870bfae57f5577ad
[ "Apache-2.0" ]
null
null
null
defmodule VintageNetWizard.Backend do @moduledoc """ Backends define the boundaries of getting access points, handling incoming messages, and scanning the network """ use GenServer alias VintageNetWizard.WiFiConfiguration alias VintageNetWiFi.AccessPoint @type configuration_status :: :not_configured |...
26.588235
99
0.644006
5a4258d9d8d456936832a93fb40970479e4e4285
1,115
exs
Elixir
test/tirexs/logger_test.exs
williamtran29/tirex_aws
8affc13d32978db47e083bec7ae11c5546f89395
[ "Apache-2.0" ]
null
null
null
test/tirexs/logger_test.exs
williamtran29/tirex_aws
8affc13d32978db47e083bec7ae11c5546f89395
[ "Apache-2.0" ]
null
null
null
test/tirexs/logger_test.exs
williamtran29/tirex_aws
8affc13d32978db47e083bec7ae11c5546f89395
[ "Apache-2.0" ]
null
null
null
Code.require_file "../../test_helper.exs", __ENV__.file defmodule Tirexs.LoggerTest do use ExUnit.Case import ExUnit.CaptureLog import ExUnit.CaptureIO @url "http://127.0.0.1/foo" @headers Tirexs.HTTP.Shared.headers setup do Application.put_env(:tirexs, :log, true) on_exit fn -> Applicati...
25.930233
118
0.641256
5a4262ee4f4fb6c08e48cf4e425b897fa03dfdc5
1,368
ex
Elixir
clients/content/lib/google_api/content/v2/model/account_user.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/content/lib/google_api/content/v2/model/account_user.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/content/lib/google_api/content/v2/model/account_user.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
1
2018-07-28T20:50:50.000Z
2018-07-28T20:50:50.000Z
# Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the &quot;License&quot;); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
28.5
77
0.739035
5a42b413a54023b7fd01e53f8c8b41199b6f4314
209
ex
Elixir
lib/bike_brigade/geocoder/random_geocoder.ex
bikebrigade/dispatch
eb622fe4f6dab7c917d678d3d7a322a01f97da44
[ "Apache-2.0" ]
28
2021-10-11T01:53:53.000Z
2022-03-24T17:45:55.000Z
lib/bike_brigade/geocoder/random_geocoder.ex
bikebrigade/dispatch
eb622fe4f6dab7c917d678d3d7a322a01f97da44
[ "Apache-2.0" ]
20
2021-10-21T08:12:31.000Z
2022-03-31T13:35:53.000Z
lib/bike_brigade/geocoder/random_geocoder.ex
bikebrigade/dispatch
eb622fe4f6dab7c917d678d3d7a322a01f97da44
[ "Apache-2.0" ]
null
null
null
defmodule BikeBrigade.Geocoder.RandomGeocoder do alias BikeBrigade.Repo.Seeds.Toronto def lookup(_module \\ __MODULE__, _address) do location = Toronto.random_location() {:ok, location} end end
23.222222
48
0.755981
5a42b4fa58def98be40feacb0c6d7544a6bc3489
1,206
exs
Elixir
config/test.exs
dmytrokhromov/pigeon
5c681e2de58d26966565fd22e16b82d480c7620e
[ "MIT" ]
null
null
null
config/test.exs
dmytrokhromov/pigeon
5c681e2de58d26966565fd22e16b82d480c7620e
[ "MIT" ]
null
null
null
config/test.exs
dmytrokhromov/pigeon
5c681e2de58d26966565fd22e16b82d480c7620e
[ "MIT" ]
null
null
null
use Mix.Config config :pigeon, :test, fcm_key: System.get_env("GCM_KEY"), valid_fcm_reg_id: System.get_env("VALID_GCM_REG_ID"), valid_apns_token: System.get_env("VALID_APNS_TOKEN"), apns_cert: System.get_env("APNS_CERT"), apns_key: System.get_env("APNS_KEY_UNENCRYPTED"), apns_topic: System.get_env("APNS_TO...
30.923077
66
0.76534
5a42bab4abdbb83ad8303b3298d926f4a8ae70a8
1,587
ex
Elixir
clients/cloud_resource_manager/lib/google_api/cloud_resource_manager/v1/model/test_iam_permissions_response.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/cloud_resource_manager/lib/google_api/cloud_resource_manager/v1/model/test_iam_permissions_response.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/cloud_resource_manager/lib/google_api/cloud_resource_manager/v1/model/test_iam_permissions_response.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...
33.0625
134
0.752363
5a42c0dc37eeb92f057744f7e5404d7459893efc
323
exs
Elixir
priv/repo/migrations/2016032505124010_create_gates.exs
simwms/apiv4
c3da7407eaf3580b759f49726028439b4b8ea9d0
[ "MIT" ]
2
2016-02-25T20:12:35.000Z
2018-01-03T00:03:12.000Z
priv/repo/migrations/2016032505124010_create_gates.exs
simwms/apiv4
c3da7407eaf3580b759f49726028439b4b8ea9d0
[ "MIT" ]
1
2016-01-11T04:50:39.000Z
2016-01-12T05:00:08.000Z
priv/repo/migrations/2016032505124010_create_gates.exs
simwms/apiv4
c3da7407eaf3580b759f49726028439b4b8ea9d0
[ "MIT" ]
null
null
null
defmodule Apiv4.Repo.Migrations.CreateGates do use Ecto.Migration def change do create table(:gates) do add :status, :string add :a, :decimal add :x, :decimal add :y, :decimal add :z, :integer add :width, :decimal add :height, :decimal timestamps end end ...
17.944444
46
0.603715
5a42d60ce57e5324252264dd361d3065f94f4782
5,196
ex
Elixir
lib/ueberauth/strategy/google.ex
KosyanMedia/ueberauth_google
98729345d7e5f55a37ed288938578b576c78efd5
[ "MIT" ]
null
null
null
lib/ueberauth/strategy/google.ex
KosyanMedia/ueberauth_google
98729345d7e5f55a37ed288938578b576c78efd5
[ "MIT" ]
null
null
null
lib/ueberauth/strategy/google.ex
KosyanMedia/ueberauth_google
98729345d7e5f55a37ed288938578b576c78efd5
[ "MIT" ]
3
2017-06-13T07:16:12.000Z
2019-09-11T21:48:12.000Z
defmodule Ueberauth.Strategy.Google do @moduledoc """ Google Strategy for Überauth. """ use Ueberauth.Strategy, uid_field: :sub, default_scope: "email", hd: nil alias Ueberauth.Auth.Info alias Ueberauth.Auth.Credentials alias Ueberauth.Auth.Extra @doc """ Handles initial request for Google authenti...
27.347368
102
0.637991
5a430dcf2a30897e9712a627cb853f7b585c1a43
1,051
exs
Elixir
mix.exs
BeastNeedsMoreTorque/visualixir
c3fcef1188c25b214326a547e643d9c6feecb24d
[ "MIT" ]
1
2019-04-21T12:35:01.000Z
2019-04-21T12:35:01.000Z
mix.exs
hoangpq/visualixir
a8efdee3faea00cf59ae74f4bf8bcfa36e7b6d79
[ "MIT" ]
null
null
null
mix.exs
hoangpq/visualixir
a8efdee3faea00cf59ae74f4bf8bcfa36e7b6d79
[ "MIT" ]
null
null
null
defmodule Visualixir.Mixfile do use Mix.Project def project do [ app: :visualixir, version: "0.1.0", elixir: "~> 1.0", elixirc_paths: elixirc_paths(Mix.env()), elixirc_options: [warnings_as_errors: true], compilers: [:phoenix] ++ Mix.compilers(), build_embedded: Mix.en...
25.02381
63
0.603235
5a4316e38155aa2402aa2f823339586f20dbcdb9
500
exs
Elixir
config/travis.exs
djdduty/sunshines_battleacademy
bcc085a3a6a519fc1591d00a39783523644f87a0
[ "Apache-2.0" ]
null
null
null
config/travis.exs
djdduty/sunshines_battleacademy
bcc085a3a6a519fc1591d00a39783523644f87a0
[ "Apache-2.0" ]
null
null
null
config/travis.exs
djdduty/sunshines_battleacademy
bcc085a3a6a519fc1591d00a39783523644f87a0
[ "Apache-2.0" ]
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 :sunshines_battleacademy, SunshinesBattleacademy.Web.Endpoint, http: [port: 4001], server: false # Print only warnings and errors during test config :logger, level: :warn # Configure your data...
27.777778
69
0.78
5a431a267bf25aaf563d92cab90079a1817f09ad
2,213
ex
Elixir
lib/erlef_web/views/view_helpers.ex
paulo-ferraz-oliveira/website
c7a1aa02d4d402d3e0e7f3973619ba0e7b53cbd8
[ "Apache-2.0" ]
1
2021-03-13T01:34:28.000Z
2021-03-13T01:34:28.000Z
lib/erlef_web/views/view_helpers.ex
paulo-ferraz-oliveira/website
c7a1aa02d4d402d3e0e7f3973619ba0e7b53cbd8
[ "Apache-2.0" ]
null
null
null
lib/erlef_web/views/view_helpers.ex
paulo-ferraz-oliveira/website
c7a1aa02d4d402d3e0e7f3973619ba0e7b53cbd8
[ "Apache-2.0" ]
null
null
null
defmodule ErlefWeb.ViewHelpers do @moduledoc "View Helpers" def author_name(["eef"]), do: "ErlEF" def author_name([name]), do: name def author_name(names), do: Enum.join(names, ", ") def blog_tag_name("eef"), do: "announcements" def blog_tag_name(name), do: name def active_sponsors([]), do: [] def...
23.795699
92
0.652508
5a431a5a5e01597c7cc741621164a70770545aeb
660
exs
Elixir
priv/repo/migrations/20170823012140_change_users_login_type_to_citext.exs
gfleury/bors-ng
02ca714283a5c5a2592c8b5ce5409e3db00ac954
[ "Apache-2.0" ]
1,223
2017-01-11T19:25:08.000Z
2022-03-21T12:31:28.000Z
priv/repo/migrations/20170823012140_change_users_login_type_to_citext.exs
gfleury/bors-ng
02ca714283a5c5a2592c8b5ce5409e3db00ac954
[ "Apache-2.0" ]
1,428
2017-01-09T16:36:18.000Z
2022-03-28T14:19:40.000Z
priv/repo/migrations/20170823012140_change_users_login_type_to_citext.exs
gfleury/bors-ng
02ca714283a5c5a2592c8b5ce5409e3db00ac954
[ "Apache-2.0" ]
184
2017-01-10T18:08:06.000Z
2022-03-14T18:53:24.000Z
defmodule BorsNG.Database.Repo.Migrations.ChangeUsersLoginTypeToCitext do use Ecto.Migration @adapter Confex.fetch_env!(:bors, BorsNG.Database.Repo)[:adapter] def up do case @adapter do Ecto.Adapters.Postgres -> execute "CREATE EXTENSION IF NOT EXISTS citext" alter table(:users) do ...
22
73
0.618182
5a439b25538dff316c8bbeeade6873a6cede2295
920
ex
Elixir
lib/buttondown/tag.ex
christopherlai/buttondown
018e42e398fb01415d6ff26bf1d8be330b83fb12
[ "MIT", "Unlicense" ]
1
2020-01-19T03:00:36.000Z
2020-01-19T03:00:36.000Z
lib/buttondown/tag.ex
christopherlai/buttondown
018e42e398fb01415d6ff26bf1d8be330b83fb12
[ "MIT", "Unlicense" ]
null
null
null
lib/buttondown/tag.ex
christopherlai/buttondown
018e42e398fb01415d6ff26bf1d8be330b83fb12
[ "MIT", "Unlicense" ]
null
null
null
defmodule Buttondown.Tag do @moduledoc """ Manage Buttondown Tags/ """ alias Buttondown.Operation @doc """ List Tags. """ @spec list :: Operation.t() def list do Operation.new(:get, "/tags") end @doc """ Create Tag. """ @spec create(name :: binary, params :: map) :: Operation.t() de...
19.166667
67
0.576087
5a43b88b30940ad438d404136948d27e3a5a25bf
3,512
ex
Elixir
lib/koans/12_pattern_matching.ex
rylek90/elixir-koans
6919e8e89b5fe972e49c30f8c19746441dd4232d
[ "MIT" ]
null
null
null
lib/koans/12_pattern_matching.ex
rylek90/elixir-koans
6919e8e89b5fe972e49c30f8c19746441dd4232d
[ "MIT" ]
null
null
null
lib/koans/12_pattern_matching.ex
rylek90/elixir-koans
6919e8e89b5fe972e49c30f8c19746441dd4232d
[ "MIT" ]
null
null
null
defmodule PatternMatching do use Koans @intro "PatternMatching" koan "One matches one" do assert match?(1, 1) end koan "Patterns can be used to pull things apart" do [head | tail] = [1, 2, 3, 4] assert head == 1 assert tail == [2,3,4] end koan "And then put them back together" do ...
23.413333
101
0.589977
5a43cd9935fff80c6cd9cb525a54df4d3487448d
72,630
ex
Elixir
lib/ecto/query.ex
joerichsen/ecto
13e22d1f2a18f5698d5b0db5112f3936cab86ae8
[ "Apache-2.0" ]
1
2021-02-24T13:06:18.000Z
2021-02-24T13:06:18.000Z
lib/ecto/query.ex
joerichsen/ecto
13e22d1f2a18f5698d5b0db5112f3936cab86ae8
[ "Apache-2.0" ]
null
null
null
lib/ecto/query.ex
joerichsen/ecto
13e22d1f2a18f5698d5b0db5112f3936cab86ae8
[ "Apache-2.0" ]
null
null
null
defmodule Ecto.SubQuery do @moduledoc """ A struct representing subqueries. See `Ecto.Query.subquery/2` for more information. """ defstruct [:query, :params, :select, :cache] end defmodule Ecto.Query do @moduledoc ~S""" Provides the Query DSL. Queries are used to retrieve and manipulate data from a r...
34.389205
139
0.674432
5a43d6d723cb6fa89f3d87be93e99f7b2d40e65b
1,105
ex
Elixir
test/support/channel_case.ex
rosswilson/turret-elixir
effbc34a14e95d73db2075c66fe78f8432f83977
[ "MIT" ]
1
2021-02-03T23:34:04.000Z
2021-02-03T23:34:04.000Z
test/support/channel_case.ex
rosswilson/turret-elixir
effbc34a14e95d73db2075c66fe78f8432f83977
[ "MIT" ]
58
2021-02-16T10:16:08.000Z
2022-03-07T10:57:32.000Z
test/support/channel_case.ex
rosswilson/turret-elixir
effbc34a14e95d73db2075c66fe78f8432f83977
[ "MIT" ]
null
null
null
defmodule TurretWeb.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 data structures and query the data layer. Finally, if the test case interacts wi...
26.95122
68
0.725792
5a43dcedfeaf30386f037fd55097837ca820d9b5
209
exs
Elixir
test/eliscore_chat_web/controllers/page_controller_test.exs
CandN/eliscore-chat
a626077bf1c46b329c15f63db9a25521b43bd61b
[ "MIT" ]
null
null
null
test/eliscore_chat_web/controllers/page_controller_test.exs
CandN/eliscore-chat
a626077bf1c46b329c15f63db9a25521b43bd61b
[ "MIT" ]
null
null
null
test/eliscore_chat_web/controllers/page_controller_test.exs
CandN/eliscore-chat
a626077bf1c46b329c15f63db9a25521b43bd61b
[ "MIT" ]
null
null
null
defmodule EliscoreChatWeb.PageControllerTest do use EliscoreChatWeb.ConnCase test "GET /", %{conn: conn} do conn = get conn, "/" assert html_response(conn, 200) =~ "Welcome to Phoenix!" end end
23.222222
60
0.698565
5a43f5873de2359a3aeb232cb93ca8b41dfe9630
6,901
ex
Elixir
clients/you_tube/lib/google_api/you_tube/v3/model/image_settings.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/image_settings.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
clients/you_tube/lib/google_api/you_tube/v3/model/image_settings.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 ...
62.736364
240
0.718881
5a4440d7f96680b90681119117c014f42fe5428f
4,348
ex
Elixir
lib/challenge_gov/emails.ex
jennstein2017/Challenge_gov
e0820df8b124a32ff8b78cb827ae43551492988b
[ "CC0-1.0" ]
null
null
null
lib/challenge_gov/emails.ex
jennstein2017/Challenge_gov
e0820df8b124a32ff8b78cb827ae43551492988b
[ "CC0-1.0" ]
null
null
null
lib/challenge_gov/emails.ex
jennstein2017/Challenge_gov
e0820df8b124a32ff8b78cb827ae43551492988b
[ "CC0-1.0" ]
null
null
null
defmodule ChallengeGov.Emails do @moduledoc """ Container for emails that ChallengeGov sends out """ use Bamboo.Phoenix, view: Web.EmailView alias ChallengeGov.Mailer def pending_challenge_email(challenge) do base_email() |> to("team@challenge.gov") |> subject("Challenge.gov - Challenge Revie...
31.507246
114
0.690432
5a44446baa5246ee30dd0bc88e4f4a89fa847aa4
3,408
ex
Elixir
clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1p3beta1__word_info.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1p3beta1__word_info.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1p3beta1__word_info.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
53.25
437
0.741784
5a446953997f2d85110d1e13d8f502f70058d108
311
exs
Elixir
bench/vector/intersperse.exs
sabiwara/aja
cde91e4263e54a11a1685a777dbffd4912fe3864
[ "MIT" ]
95
2020-10-18T09:27:46.000Z
2022-03-29T20:03:16.000Z
bench/vector/intersperse.exs
sabiwara/aja
cde91e4263e54a11a1685a777dbffd4912fe3864
[ "MIT" ]
1
2021-09-22T20:30:08.000Z
2021-10-13T23:55:34.000Z
bench/vector/intersperse.exs
sabiwara/aja
cde91e4263e54a11a1685a777dbffd4912fe3864
[ "MIT" ]
1
2020-12-15T12:36:16.000Z
2020-12-15T12:36:16.000Z
list = Enum.to_list(1..100) vector = Aja.Vector.new(list) Benchee.run(%{ "Aja.Vector.intersperse/1" => fn -> Aja.Vector.intersperse(vector, ",") end, "Enum.intersperse/2 (list)" => fn -> Enum.intersperse(list, ",") end, "Aja.Enum.intersperse/2 (vector)" => fn -> Aja.Enum.intersperse(vector, ",") end })
34.555556
82
0.646302
5a4480db2270d957fdb3a63a4eb112959cbc583d
609
ex
Elixir
lib/doctor_schedule/accounts/services/create_user.ex
theguuholi/doctor_schedule
a92dfa92d1398c59718be2428d36bb326d6bc361
[ "MIT" ]
2
2022-03-11T12:15:01.000Z
2022-03-11T13:53:21.000Z
lib/doctor_schedule/accounts/services/create_user.ex
theguuholi/doctor_schedule
a92dfa92d1398c59718be2428d36bb326d6bc361
[ "MIT" ]
3
2020-12-12T22:10:17.000Z
2021-04-05T12:53:12.000Z
lib/doctor_schedule/accounts/services/create_user.ex
theguuholi/doctor_schedule
a92dfa92d1398c59718be2428d36bb326d6bc361
[ "MIT" ]
1
2021-02-26T04:24:34.000Z
2021-02-26T04:24:34.000Z
defmodule DoctorSchedule.Accounts.Services.CreateUser do alias DoctorSchedule.Accounts.Repositories.AccountRepository alias DoctorSchedule.Shared.Cache.Ets.Implementations.ProviderCache @key "providers-list" def execute(user) do if user["role"] == "admin" do create_user_cache(user) else Acc...
23.423077
69
0.683087
5a4489296ab9b5d5aad0de9d35fa6449df68e759
528
ex
Elixir
lib/virgo/snowflake.ex
GinShio/AstraeaVirgo
92804cbae01f67e21b8f421009fa37fddc9054e1
[ "BSD-2-Clause" ]
null
null
null
lib/virgo/snowflake.ex
GinShio/AstraeaVirgo
92804cbae01f67e21b8f421009fa37fddc9054e1
[ "BSD-2-Clause" ]
null
null
null
lib/virgo/snowflake.ex
GinShio/AstraeaVirgo
92804cbae01f67e21b8f421009fa37fddc9054e1
[ "BSD-2-Clause" ]
null
null
null
defmodule AstraeaVirgo.Snowflake do @timeout 64 defp create(timeout) do case Snowflake.next_id() do {:ok, snowflake} -> {:ok, snowflake |> Integer.to_string(32)} _ -> if timeout > 2048 do {:error, :backwards_clock} else Process.sleep(timeout) create(ti...
20.307692
87
0.592803
5a4496937ba9c7a0b1d7f178bcd11d5bf9d54e6b
733
ex
Elixir
lib/bokken/gamification/badge_ninja.ex
coderdojobraga/bokken
df28522637315193e09ac1f3f79823361db0f2f9
[ "MIT" ]
7
2020-10-19T14:06:46.000Z
2022-02-19T09:53:02.000Z
lib/bokken/gamification/badge_ninja.ex
coderdojobraga/bokken
df28522637315193e09ac1f3f79823361db0f2f9
[ "MIT" ]
5
2017-08-24T10:38:46.000Z
2021-05-26T16:48:22.000Z
lib/bokken/gamification/badge_ninja.ex
coderdojobraga/bokken
df28522637315193e09ac1f3f79823361db0f2f9
[ "MIT" ]
2
2017-08-25T18:38:11.000Z
2021-07-15T00:57:33.000Z
defmodule Bokken.Gamification.BadgeNinja do @moduledoc """ Badge and Ninja join table """ use Bokken.Schema alias Bokken.Accounts.Ninja alias Bokken.Gamification.Badge @required_fields [:badge_id, :ninja_id] @optional_fields [] @primary_key false schema "badges_ninjas" do belongs_to :badge, B...
23.645161
75
0.712142
5a449be6b3b7c7f99c336ac4bc5a805ebce54dbf
1,585
ex
Elixir
test/support/data_case.ex
cciuenf/fuschia
cc21d38445a8236142191efd66a3e3997b25cf42
[ "BSD-3-Clause" ]
1
2022-02-21T18:25:14.000Z
2022-02-21T18:25:14.000Z
test/support/data_case.ex
cciuenf/fuschia
cc21d38445a8236142191efd66a3e3997b25cf42
[ "BSD-3-Clause" ]
32
2021-07-27T20:48:30.000Z
2022-03-26T10:35:43.000Z
test/support/data_case.ex
cciuenf/fuschia
cc21d38445a8236142191efd66a3e3997b25cf42
[ "BSD-3-Clause" ]
null
null
null
defmodule Fuschia.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 changes done to t...
26.864407
77
0.687066
5a44c890b82bbdb692c0c76cff1cdd858c032850
1,487
ex
Elixir
clients/safe_browsing/lib/google_api/safe_browsing/v4/model/find_threat_matches_response.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/safe_browsing/lib/google_api/safe_browsing/v4/model/find_threat_matches_response.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/safe_browsing/lib/google_api/safe_browsing/v4/model/find_threat_matches_response.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
1
2018-07-28T20:50:50.000Z
2018-07-28T20:50:50.000Z
# Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the &quot;License&quot;); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
30.979167
91
0.759919
5a44f04e46e31cfdeb602800eaa047c08f5f91e3
270
exs
Elixir
apps/interface/config/test.exs
jeremy-miller/life-elixir
5c9396b187279110dc8da38a5070023d1ed02955
[ "MIT" ]
null
null
null
apps/interface/config/test.exs
jeremy-miller/life-elixir
5c9396b187279110dc8da38a5070023d1ed02955
[ "MIT" ]
null
null
null
apps/interface/config/test.exs
jeremy-miller/life-elixir
5c9396b187279110dc8da38a5070023d1ed02955
[ "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 :interface, InterfaceWeb.Endpoint, http: [port: 4001], server: false # Print only warnings and errors during test config :logger, level: :warn
24.545455
56
0.740741
5a450a2f5ea1ca4e5d50b2358f5a6219b4b866be
84
ex
Elixir
lib/portalcs_web/views/coherence/email_view.ex
pedromcorreia/portal-construindo-sabere
116402e21d9c1e7b02be2966460c90dcea7d09cd
[ "MIT" ]
null
null
null
lib/portalcs_web/views/coherence/email_view.ex
pedromcorreia/portal-construindo-sabere
116402e21d9c1e7b02be2966460c90dcea7d09cd
[ "MIT" ]
null
null
null
lib/portalcs_web/views/coherence/email_view.ex
pedromcorreia/portal-construindo-sabere
116402e21d9c1e7b02be2966460c90dcea7d09cd
[ "MIT" ]
null
null
null
defmodule PortalcsWeb.Coherence.EmailView do use PortalcsWeb.Coherence, :view end
21
44
0.833333
5a456b79d469d83cb5db8c9280f846df73155fb0
2,535
exs
Elixir
mix.exs
okothkongo/elixir-tool-box
4f7579012294281bf5a5278f2b03b236d25978bc
[ "MIT" ]
null
null
null
mix.exs
okothkongo/elixir-tool-box
4f7579012294281bf5a5278f2b03b236d25978bc
[ "MIT" ]
2
2020-10-27T08:37:50.000Z
2020-10-29T06:38:20.000Z
mix.exs
okothkongo/elixir-tool-box
4f7579012294281bf5a5278f2b03b236d25978bc
[ "MIT" ]
null
null
null
defmodule ElixirToolBox.MixProject do use Mix.Project def project do [ app: :elixir_tool_box, version: "0.1.0", elixir: "~> 1.7", elixirc_paths: elixirc_paths(Mix.env()), compilers: [:phoenix, :gettext] ++ Mix.compilers(), start_permanent: Mix.env() == :prod, aliases: ...
28.166667
84
0.567258
5a458ca7b73a427b914e09e9d8c57b679e1b85d0
1,512
ex
Elixir
.env.ex
t7haki01/examApplication
1d388b3ea08f6961ec1f84549b31c6a2a0daefbe
[ "PHP-3.0", "PHP-3.01" ]
null
null
null
.env.ex
t7haki01/examApplication
1d388b3ea08f6961ec1f84549b31c6a2a0daefbe
[ "PHP-3.0", "PHP-3.01" ]
2
2022-02-18T15:10:40.000Z
2022-02-26T20:21:05.000Z
.env.ex
t7haki01/examApplication
1d388b3ea08f6961ec1f84549b31c6a2a0daefbe
[ "PHP-3.0", "PHP-3.01" ]
null
null
null
# In all environments, the following files are loaded if they exist, # the latter taking precedence over the former: # # * .env contains default values for the environment variables needed by the app # * .env.local uncommitted file with local overrides # * .env.$APP_ENV committed enviro...
52.137931
139
0.759259
5a459de4b3432ca8fe786fe04e8f1b76c131048d
310
ex
Elixir
lib/elsol/query/group.ex
boonious/elsol
ad983b7dddae74f78411334d850dfe37ac6ffbb2
[ "Apache-2.0" ]
9
2016-06-30T16:49:49.000Z
2021-04-06T12:12:36.000Z
lib/elsol/query/group.ex
boonious/elsol
ad983b7dddae74f78411334d850dfe37ac6ffbb2
[ "Apache-2.0" ]
11
2016-10-11T04:07:01.000Z
2017-05-10T23:38:17.000Z
lib/elsol/query/group.ex
boonious/elsol
ad983b7dddae74f78411334d850dfe37ac6ffbb2
[ "Apache-2.0" ]
4
2016-04-16T02:20:12.000Z
2020-05-09T04:43:10.000Z
defmodule Elsol.Query.Group do defstruct group: true, group_field: nil, group_func: nil, group_query: nil, group_limit: nil, group_offset: nil, group_sort: nil, group_format: nil, group_main: nil, group_ngroups: nil, group_truncate: nil, group_facet: nil, group_cache_percent: nil end
62
112
0.732258
5a45a0d7a303ffb7fb14e54de4feaa8c184ab0b9
1,701
ex
Elixir
lib/intermediate_git/accounts.ex
Baradoy/intermdiategit
3a7b7efc32e361d2347057cbe3c8997f44135522
[ "MIT" ]
null
null
null
lib/intermediate_git/accounts.ex
Baradoy/intermdiategit
3a7b7efc32e361d2347057cbe3c8997f44135522
[ "MIT" ]
null
null
null
lib/intermediate_git/accounts.ex
Baradoy/intermdiategit
3a7b7efc32e361d2347057cbe3c8997f44135522
[ "MIT" ]
null
null
null
defmodule IntermediateGit.Accounts do @moduledoc """ The Accounts context. """ import Ecto.Query, warn: false alias IntermediateGit.Repo alias IntermediateGit.Accounts.User @doc """ Returns the list of users. ## Examples iex> list_users() [%User{}, ...] """ def list_users do ...
16.2
59
0.572016
5a45a3e0ecbf569973235174009fcdcdf0de053f
5,247
ex
Elixir
lib/nerves_hub_user_api/api.ex
nerves-hub/nerves_hub_user_api
5d41b1faede4a38c48367a7e7408bf5539cb9d36
[ "Apache-2.0" ]
2
2019-06-18T19:59:13.000Z
2020-01-13T18:45:50.000Z
lib/nerves_hub_user_api/api.ex
nerves-hub/nerves_hub_user_api
5d41b1faede4a38c48367a7e7408bf5539cb9d36
[ "Apache-2.0" ]
9
2019-03-08T19:06:33.000Z
2022-03-16T21:35:04.000Z
lib/nerves_hub_user_api/api.ex
nerves-hub/nerves_hub_user_api
5d41b1faede4a38c48367a7e7408bf5539cb9d36
[ "Apache-2.0" ]
3
2019-11-25T12:15:30.000Z
2021-01-22T16:17:37.000Z
defmodule NervesHubUserAPI.API do @moduledoc false require Logger @file_chunk 4096 @progress_steps 50 use Tesla adapter(Tesla.Adapter.Hackney, pool: :nerves_hub_user_api) if Mix.env() == :dev, do: plug(Tesla.Middleware.Logger) plug(Tesla.Middleware.FollowRedirects, max_redirects: 5) plug(Tesla.Middl...
27.761905
109
0.639413
5a45b968e10917320b6a5b445f83de856a5a49ab
1,486
exs
Elixir
test/taxjar/rates/rates_test.exs
ChrisYammine/taxjar-elixir
696b04d7f2efcbe1dde9da554364c163c555eeec
[ "Apache-2.0" ]
1
2017-11-22T01:04:56.000Z
2017-11-22T01:04:56.000Z
test/taxjar/rates/rates_test.exs
ChrisYammine/taxjar-elixir
696b04d7f2efcbe1dde9da554364c163c555eeec
[ "Apache-2.0" ]
null
null
null
test/taxjar/rates/rates_test.exs
ChrisYammine/taxjar-elixir
696b04d7f2efcbe1dde9da554364c163c555eeec
[ "Apache-2.0" ]
1
2017-11-22T20:16:27.000Z
2017-11-22T20:16:27.000Z
defmodule Taxjar.RatesTest do use ExUnit.Case setup do bypass = Bypass.open() request_options = [scheme: "http", host: "localhost", port: bypass.port] [bypass: bypass, request_options: request_options] end describe "fetches the rates for a location" do test "successfully fetching rates for a ...
28.576923
76
0.569987
5a45bc9eee5897f9c12575567506c2b4a055fecc
1,883
ex
Elixir
jobsPortalService/lib/portal_management/statistics_endpoint.ex
andraspatka/jobportal-ms
006c8ca212f88566113c4b5c00dfe1d4e421c034
[ "MIT" ]
1
2021-05-25T18:24:27.000Z
2021-05-25T18:24:27.000Z
jobsPortalService/lib/portal_management/statistics_endpoint.ex
andraspatka/jobportal-ms
006c8ca212f88566113c4b5c00dfe1d4e421c034
[ "MIT" ]
1
2021-05-23T09:50:10.000Z
2021-05-23T09:50:10.000Z
jobsPortalService/lib/portal_management/statistics_endpoint.ex
andraspatka/jobportal-ms
006c8ca212f88566113c4b5c00dfe1d4e421c034
[ "MIT" ]
null
null
null
defmodule Endpoints.StatisticsEndpoint do import Plug.Conn use Plug.Router alias Services.Url @endpoint_url Application.get_env(:portal_management, :endpoint_url) @origin Application.get_env(:portal_management, :origin) plug CORSPlug, origin: @origin plug(:match) plug(:dispatch) ...
31.915254
72
0.551248
5a45c9df900dfdedcb173efbafb1f37e2b626e2e
750
ex
Elixir
apps/events/lib/events/server.ex
fjlanasa/api
c39bc393aea572bfb81754b2ea1adf9dda9ce24a
[ "MIT" ]
62
2019-01-17T12:34:39.000Z
2022-03-20T21:49:47.000Z
apps/events/lib/events/server.ex
fjlanasa/api
c39bc393aea572bfb81754b2ea1adf9dda9ce24a
[ "MIT" ]
375
2019-02-13T15:30:50.000Z
2022-03-30T18:50:41.000Z
apps/events/lib/events/server.ex
fjlanasa/api
c39bc393aea572bfb81754b2ea1adf9dda9ce24a
[ "MIT" ]
14
2019-01-16T19:35:57.000Z
2022-02-26T18:55:54.000Z
defmodule Events.Server do @moduledoc """ Redirect `{:event, name, data, argument}` messages sent to a `GenServer` to a `handle_event(name, data, argument, state)` callback. """ @callback handle_event(name :: term, data :: term, argument :: term, state :: term) :: {:noreply, new_state} ...
27.777778
88
0.610667
5a45de0fb3c4e195f9a8af6cf89b1175e425eb5b
1,389
exs
Elixir
implements/perfect-numbers/perfect_numbers.exs
MickeyOoh/Exercises
3b34e7fdab4a09e0269d20c68531b4fb75bb7f16
[ "MIT" ]
null
null
null
implements/perfect-numbers/perfect_numbers.exs
MickeyOoh/Exercises
3b34e7fdab4a09e0269d20c68531b4fb75bb7f16
[ "MIT" ]
1
2018-06-19T18:59:41.000Z
2018-06-19T18:59:41.000Z
implements/perfect-numbers/perfect_numbers.exs
MickeyOoh/Exercises
3b34e7fdab4a09e0269d20c68531b4fb75bb7f16
[ "MIT" ]
null
null
null
defmodule PerfectNumbers do @doc """ Determine the aliquot sum of the given `number`, by summing all the factors of `number`, aside from `number` itself. Based on this sum, classify the number as: :perfect if the aliquot sum is equal to `number` :abundant if the aliquot sum is greater than `number` :def...
30.866667
77
0.632109
5a45eaec1fced9767a399d68bd8182ef9ea77349
1,369
ex
Elixir
lib/trail.ex
Devotu/trail
aff9709440105940f3ff9ef98468ac99139aefba
[ "MIT" ]
null
null
null
lib/trail.ex
Devotu/trail
aff9709440105940f3ff9ef98468ac99139aefba
[ "MIT" ]
4
2021-05-16T09:09:15.000Z
2021-05-16T10:11:00.000Z
lib/trail.ex
Devotu/trail
aff9709440105940f3ff9ef98468ac99139aefba
[ "MIT" ]
null
null
null
defmodule Trail do @moduledoc """ Stores a state together with its building events requries a base directory "data" in current working directory with two sub directories "state" and "event" """ alias Trail.State alias Trail.Log @doc """ Stores with log Currently lacking all types of atomic scope ...
22.442623
66
0.655953
5a45f84d8c023b9982ea619d6271d5f7b3c55623
674
exs
Elixir
test/sse/config_test.exs
mustafaturan/sse
9edc7bc2397fb618861f15edb0a9ffd9ff8bb59e
[ "Unlicense" ]
73
2018-02-20T09:09:33.000Z
2022-02-12T19:56:46.000Z
test/sse/config_test.exs
mustafaturan/sse
9edc7bc2397fb618861f15edb0a9ffd9ff8bb59e
[ "Unlicense" ]
39
2018-11-21T12:04:33.000Z
2021-08-02T13:14:36.000Z
test/sse/config_test.exs
mustafaturan/sse
9edc7bc2397fb618861f15edb0a9ffd9ff8bb59e
[ "Unlicense" ]
6
2018-11-20T13:18:59.000Z
2022-03-22T12:35:21.000Z
defmodule SSE.ConfigTest do use ExUnit.Case, async: false alias SSE.Config doctest SSE test "keep_alive returns default val" do Application.delete_env(:sse, :keep_alive) assert 3000 == Config.keep_alive() end test "keep_alive with app env var" do Application.put_env(:sse, :keep_alive, 100) ...
22.466667
79
0.70178
5a460c7f4a69619fbc0f29d7ce827c1b759499e8
2,001
ex
Elixir
clients/container_analysis/lib/google_api/container_analysis/v1/model/image_note.ex
renovate-bot/elixir-google-api
1da34cd39b670c99f067011e05ab90af93fef1f6
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/container_analysis/lib/google_api/container_analysis/v1/model/image_note.ex
swansoffiee/elixir-google-api
9ea6d39f273fb430634788c258b3189d3613dde0
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/container_analysis/lib/google_api/container_analysis/v1/model/image_note.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...
40.02
215
0.748126
5a461c6bdf6124e3adf9fcd8e3a3637bc37824c2
1,382
exs
Elixir
mix.exs
ssbb/sitemap
b18aef246e995aaec854681b9c90066472acabe5
[ "MIT" ]
null
null
null
mix.exs
ssbb/sitemap
b18aef246e995aaec854681b9c90066472acabe5
[ "MIT" ]
null
null
null
mix.exs
ssbb/sitemap
b18aef246e995aaec854681b9c90066472acabe5
[ "MIT" ]
null
null
null
defmodule Sitemap.Mixfile do use Mix.Project @description """ Generating sitemap.xml """ def project do [ app: :sitemap, name: "Sitemap", version: "1.0.3", elixir: ">= 1.3.0", description: @description, build_embedded: Mix.env == :prod, start_permanent: Mix.env == :prod...
21.936508
77
0.555716
5a4629157cc121c9c0aaea6cb25fc1660aee4fd8
2,409
exs
Elixir
test/web/controllers/docu_controller_test.exs
hoodaly/web
852f4c3da5b1f248d08206b58cd58981e76f6899
[ "WTFPL" ]
null
null
null
test/web/controllers/docu_controller_test.exs
hoodaly/web
852f4c3da5b1f248d08206b58cd58981e76f6899
[ "WTFPL" ]
null
null
null
test/web/controllers/docu_controller_test.exs
hoodaly/web
852f4c3da5b1f248d08206b58cd58981e76f6899
[ "WTFPL" ]
null
null
null
defmodule Entice.Web.DocuControllerTest do use Entice.Web.ConnCase setup context do result = %{email: "root@entice.ps", password: "root" } result = case context.id do 0 -> Map.put(result, :params, %{}) 1 -> Map.put(result, :params, %{"id" => "1"}) 2 -> Map.put(result, :params, %{}) ...
38.854839
111
0.634288
5a46322d9da6dab246b46c5eb6d4b7e3e3c762ad
1,556
exs
Elixir
deps/stash/mix.exs
alex-philippov/jwt-google-tokens
18aa3eccc9a2c1a6016b2fe53b0bc6b1612a04b7
[ "Apache-2.0" ]
null
null
null
deps/stash/mix.exs
alex-philippov/jwt-google-tokens
18aa3eccc9a2c1a6016b2fe53b0bc6b1612a04b7
[ "Apache-2.0" ]
null
null
null
deps/stash/mix.exs
alex-philippov/jwt-google-tokens
18aa3eccc9a2c1a6016b2fe53b0bc6b1612a04b7
[ "Apache-2.0" ]
1
2019-11-23T12:09:14.000Z
2019-11-23T12:09:14.000Z
defmodule Stash.Mixfile do use Mix.Project @url_docs "http://hexdocs.pm/stash" @url_github "https://github.com/zackehh/stash" def project do [ app: :stash, name: "Stash", description: "Simple ETS backed key/value store for Elixir", package: %{ files: [ "lib", ...
23.938462
77
0.518638
5a464bad8695b6c2d996e19e10e93491bae0e4f7
8,189
exs
Elixir
test/ex_sdp/media_test.exs
membraneframework/membrane-protocol-sdp
4cb3028d62a722e364196b58b73732567306a931
[ "Apache-2.0" ]
null
null
null
test/ex_sdp/media_test.exs
membraneframework/membrane-protocol-sdp
4cb3028d62a722e364196b58b73732567306a931
[ "Apache-2.0" ]
1
2020-07-31T10:37:43.000Z
2020-08-10T09:22:13.000Z
test/ex_sdp/media_test.exs
membraneframework/membrane-protocol-sdp
4cb3028d62a722e364196b58b73732567306a931
[ "Apache-2.0" ]
null
null
null
defmodule ExSDP.MediaTest do use ExUnit.Case use Bunch alias ExSDP.{ Attribute, Bandwidth, ConnectionData, Encryption, Media, Origin, Timing } alias ExSDP.Attribute.{Extmap, FMTP, MSID, RTPMapping, SSRC} describe "Media parser" do test "processes valid media description" d...
27.296667
91
0.55428