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
f73a5c79a77896887431df280650e3f9d4347f1b
725
ex
Elixir
lib/bs/test/agent.ex
andersjanmyr/battlesnake-server-2018
091b4d1201d144de232be08fd7fb6df8156c5ee2
[ "MIT" ]
3
2018-07-14T22:55:23.000Z
2019-02-25T06:11:55.000Z
lib/bs/test/agent.ex
andersjanmyr/battlesnake-server-2018
091b4d1201d144de232be08fd7fb6df8156c5ee2
[ "MIT" ]
7
2020-02-12T03:22:59.000Z
2022-02-10T20:23:52.000Z
lib/bs/test/agent.ex
andersjanmyr/battlesnake-server-2018
091b4d1201d144de232be08fd7fb6df8156c5ee2
[ "MIT" ]
12
2018-03-27T05:27:20.000Z
2019-04-02T08:19:04.000Z
defmodule Bs.Test.Agent do alias Bs.Test.Vector alias Bs.Snake use Ecto.Schema embedded_schema do embeds_many(:body, Vector) end defmacro agent(ast) do body = Macro.postwalk(ast, fn {:*, _, [x, y]} -> quote bind_quoted: [x: x, y: y], do: List.duplicate(x, y) [x, y...
18.125
74
0.542069
f73a5cfd6414de9d9df69d2c86bd9da897ffdf01
711
ex
Elixir
elixir/lib/com/spoonacular/client/model/inline_response_200_19.ex
ddsky/spoonacular-api-clients
63f955ceb2c356fefdd48ec634deb3c3e16a6ae7
[ "MIT" ]
21
2019-08-09T18:53:26.000Z
2022-03-14T22:10:10.000Z
elixir/lib/com/spoonacular/client/model/inline_response_200_19.ex
ddsky/spoonacular-api-clients
63f955ceb2c356fefdd48ec634deb3c3e16a6ae7
[ "MIT" ]
null
null
null
elixir/lib/com/spoonacular/client/model/inline_response_200_19.ex
ddsky/spoonacular-api-clients
63f955ceb2c356fefdd48ec634deb3c3e16a6ae7
[ "MIT" ]
55
2019-08-13T17:52:47.000Z
2022-03-27T04:29:34.000Z
# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). # https://openapi-generator.tech # Do not edit the class manually. defmodule com.spoonacular.client.Model.InlineResponse20019 do @moduledoc """ """ @derive [Poison.Encoder] defstruct [ :"sourceAmount", :"sou...
20.911765
91
0.655415
f73a6d2f0ff562aa907227d08526105b1aa762ff
4,609
ex
Elixir
lib/phoenix/endpoint/render_errors.ex
G3z/phoenix
f13fe2c7f7ec25e6a59204266cb8cbbe7ffbbded
[ "MIT" ]
2
2016-11-01T15:01:48.000Z
2016-11-01T15:07:20.000Z
lib/phoenix/endpoint/render_errors.ex
G3z/phoenix
f13fe2c7f7ec25e6a59204266cb8cbbe7ffbbded
[ "MIT" ]
null
null
null
lib/phoenix/endpoint/render_errors.ex
G3z/phoenix
f13fe2c7f7ec25e6a59204266cb8cbbe7ffbbded
[ "MIT" ]
null
null
null
defmodule Phoenix.Endpoint.RenderErrors do # This module is used to catch failures and render them using a view. # # This module is automatically used in `Phoenix.Endpoint` where it # overrides `call/2` to provide rendering. Once the error is # rendered, the error is reraised unless it is a NoRouteError. # ...
32.006944
120
0.661532
f73a724985a4905fd138093f1442a13642b467da
360
ex
Elixir
lib/aws/client.ex
RAM9/aws-elixir
2890ba722c977e03212df6a957a19d466c05cdf6
[ "Apache-2.0" ]
2
2019-11-17T02:31:18.000Z
2019-11-20T22:00:29.000Z
lib/aws/client.ex
RAM9/aws-elixir
2890ba722c977e03212df6a957a19d466c05cdf6
[ "Apache-2.0" ]
null
null
null
lib/aws/client.ex
RAM9/aws-elixir
2890ba722c977e03212df6a957a19d466c05cdf6
[ "Apache-2.0" ]
1
2019-11-16T18:08:18.000Z
2019-11-16T18:08:18.000Z
defmodule AWS.Client do @moduledoc """ Access and connections details needed when making requests to AWS services. """ defstruct access_key_id: nil, secret_access_key: nil, session_token: nil, region: nil, endpoint: nil, service: nil, prot...
24
77
0.566667
f73a7511ae4202d7e0c450c4c9916eb4ba881195
937
exs
Elixir
priv/repo/seeds.exs
ysaito8015/communitex
d469447a62029d59883d95df4df3c9b09e0022e2
[ "Apache-2.0" ]
7
2021-07-14T15:45:55.000Z
2022-01-25T11:13:01.000Z
priv/repo/seeds.exs
ysaito8015/communitex
d469447a62029d59883d95df4df3c9b09e0022e2
[ "Apache-2.0" ]
10
2021-08-09T15:54:05.000Z
2022-02-17T04:18:38.000Z
priv/repo/seeds.exs
ysaito8015/communitex
d469447a62029d59883d95df4df3c9b09e0022e2
[ "Apache-2.0" ]
5
2021-07-23T05:54:35.000Z
2022-01-28T04:14:51.000Z
# 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: # # Basic.Repo.insert!(%Basic.SomeSchema{}) # # We recommend using the bang functions (`insert!`, `update!` # and so on) as they will fai...
40.73913
276
0.774813
f73a75da0d2888c5f60969f54010e44ff0948bc1
4,352
ex
Elixir
clients/service_control/lib/google_api/service_control/v1/model/auth.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/service_control/lib/google_api/service_control/v1/model/auth.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/service_control/lib/google_api/service_control/v1/model/auth.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...
43.089109
135
0.694853
f73a8679873a1ec0acdbf3a887214f0de42463bc
737
ex
Elixir
phoenix_rest_example/web/gettext.ex
ErikMejerHansen/REST-service-examples
88358f74b490f718b7c6882fc1265a2b360b8ef2
[ "Unlicense" ]
1
2019-04-22T13:39:19.000Z
2019-04-22T13:39:19.000Z
phoenix_rest_example/web/gettext.ex
ErikMejerHansen/REST-service-examples
88358f74b490f718b7c6882fc1265a2b360b8ef2
[ "Unlicense" ]
1
2017-10-06T11:54:24.000Z
2017-10-09T09:29:04.000Z
phoenix_rest_example/web/gettext.ex
ErikMejerHansen/REST-service-examples
88358f74b490f718b7c6882fc1265a2b360b8ef2
[ "Unlicense" ]
null
null
null
defmodule PhoenixRestExample.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 PhoenixRestExample.Gettext # Simple translation ge...
29.48
72
0.693351
f73a8e1c1da36ffcde2bc8f79f8093d7cada220c
9,734
ex
Elixir
clients/compute/lib/google_api/compute/v1/model/subnetwork.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
null
null
null
clients/compute/lib/google_api/compute/v1/model/subnetwork.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
null
null
null
clients/compute/lib/google_api/compute/v1/model/subnetwork.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...
85.385965
502
0.724163
f73a9171152fd9c56f760c0ccd8e4d7edf063247
1,469
ex
Elixir
clients/redis/lib/google_api/redis/v1beta1/model/gcs_destination.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/redis/lib/google_api/redis/v1beta1/model/gcs_destination.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/redis/lib/google_api/redis/v1beta1/model/gcs_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...
31.255319
154
0.735194
f73aada935f25800aaa7d5fbc9872ebb98ec559a
2,048
exs
Elixir
apps/astarte_pairing_api/config/dev.exs
matt-mazzucato/astarte
34d84941a5019efc42321052f7f34b7d907a38f2
[ "Apache-2.0" ]
191
2018-03-30T13:23:08.000Z
2022-03-02T12:05:32.000Z
apps/astarte_pairing_api/config/dev.exs
matt-mazzucato/astarte
34d84941a5019efc42321052f7f34b7d907a38f2
[ "Apache-2.0" ]
402
2018-03-30T13:37:00.000Z
2022-03-31T16:47:10.000Z
apps/astarte_pairing_api/config/dev.exs
matt-mazzucato/astarte
34d84941a5019efc42321052f7f34b7d907a38f2
[ "Apache-2.0" ]
24
2018-03-30T13:29:48.000Z
2022-02-28T11:10:26.000Z
# # This file is part of Astarte. # # Copyright 2017 Ispirata Srl # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appl...
30.117647
170
0.725098
f73ab540e3359f53db8cb2bc8dbaa6092cbdc05e
71
ex
Elixir
testData/org/elixir_lang/formatting/no_parentheses_call_do_not_wrap_unless_keywords_multiline_before.ex
keyno63/intellij-elixir
4033e319992c53ddd42a683ee7123a97b5e34f02
[ "Apache-2.0" ]
1,668
2015-01-03T05:54:27.000Z
2022-03-25T08:01:20.000Z
testData/org/elixir_lang/formatting/no_parentheses_call_do_not_wrap_unless_keywords_multiline_before.ex
keyno63/intellij-elixir
4033e319992c53ddd42a683ee7123a97b5e34f02
[ "Apache-2.0" ]
2,018
2015-01-01T22:43:39.000Z
2022-03-31T20:13:08.000Z
testData/org/elixir_lang/formatting/no_parentheses_call_do_not_wrap_unless_keywords_multiline_before.ex
keyno63/intellij-elixir
4033e319992c53ddd42a683ee7123a97b5e34f02
[ "Apache-2.0" ]
145
2015-01-15T11:37:16.000Z
2021-12-22T05:51:02.000Z
one two, three, four: five one two, three, four: five, six: seven
11.833333
26
0.647887
f73ad03ec39fac0d16132afcf9613bff4de631a3
2,453
exs
Elixir
mix.exs
omgnetwork/ex_plasma
27c33206297a4d6832a9419c4e61e04b3c2c9f71
[ "Apache-2.0" ]
6
2020-08-13T08:14:34.000Z
2021-08-19T11:08:17.000Z
mix.exs
omisego/ex_plasma
27c33206297a4d6832a9419c4e61e04b3c2c9f71
[ "Apache-2.0" ]
34
2019-11-20T03:33:22.000Z
2020-05-27T18:40:10.000Z
mix.exs
omisego/ex_plasma
27c33206297a4d6832a9419c4e61e04b3c2c9f71
[ "Apache-2.0" ]
6
2020-06-02T19:00:36.000Z
2021-08-19T11:06:33.000Z
defmodule ExPlasma.MixProject do use Mix.Project def project do [ app: :ex_plasma, version: "0.3.0", elixir: "~> 1.8", start_permanent: Mix.env() == :prod, elixirc_paths: elixirc_paths(Mix.env()), description: description(), deps: deps(), package: package(), ...
25.030612
107
0.554423
f73afcafbf8b7f0a634f38a4c91474c241322425
3,070
ex
Elixir
lib/ramona/events/events.ex
sqdorte/ramona
45ba8b17a8542c4451931b2049ba618be187ecfa
[ "Apache-2.0" ]
1
2019-01-24T19:58:04.000Z
2019-01-24T19:58:04.000Z
lib/ramona/events/events.ex
sqdorte/ramona
45ba8b17a8542c4451931b2049ba618be187ecfa
[ "Apache-2.0" ]
null
null
null
lib/ramona/events/events.ex
sqdorte/ramona
45ba8b17a8542c4451931b2049ba618be187ecfa
[ "Apache-2.0" ]
null
null
null
defmodule Ramona.Events do @moduledoc false use Alchemy.Events alias Ramona.Utils alias Alchemy.{Cache, Client} require Logger require Alchemy.Cogs, as: Cogs @invite_log "430374864906354710" @unleashed_gid "429110044525592578" @moderation_cat "430410176328368150" Events.on_ready(:ready) Events.o...
28.962264
86
0.608795
f73affc4ee7f7ee41811b04f3538754077622436
3,000
ex
Elixir
clients/civic_info/lib/google_api/civic_info/v2/model/representative_info_response.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
1
2018-12-03T23:43:10.000Z
2018-12-03T23:43:10.000Z
clients/civic_info/lib/google_api/civic_info/v2/model/representative_info_response.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
clients/civic_info/lib/google_api/civic_info/v2/model/representative_info_response.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
49.180328
213
0.734
f73b01fd7f8f518b7f41d0c905eec7575c9420c6
4,467
ex
Elixir
lib/mnemonix/features/expiry.ex
christhekeele/mnemonix
41c81b00b89562250ea451035fd34bf775173e50
[ "MIT" ]
36
2016-10-30T21:40:19.000Z
2021-05-03T10:51:50.000Z
lib/mnemonix/features/expiry.ex
christhekeele/mnemonix
41c81b00b89562250ea451035fd34bf775173e50
[ "MIT" ]
52
2016-10-30T20:57:35.000Z
2017-12-28T03:39:57.000Z
lib/mnemonix/features/expiry.ex
christhekeele/mnemonix
41c81b00b89562250ea451035fd34bf775173e50
[ "MIT" ]
5
2017-01-25T22:02:58.000Z
2018-01-30T14:27:55.000Z
defmodule Mnemonix.Features.Expiry do @name Inspect.inspect(__MODULE__, %Inspect.Opts{}) @moduledoc """ Functions to manage the time-to-live of entries within a store. Using this feature will define all of its Mnemonix client API functions on your module. Refer to `Mnemonix.Builder` for documentation on opt...
31.680851
100
0.634878
f73b02aa02bf8924e29397f300700826776f8b48
982
ex
Elixir
test/support/channel_case.ex
Andorbal/phoenix_react
0291d612ca710f80bd5ec87f052649f32c9e5847
[ "MIT" ]
null
null
null
test/support/channel_case.ex
Andorbal/phoenix_react
0291d612ca710f80bd5ec87f052649f32c9e5847
[ "MIT" ]
null
null
null
test/support/channel_case.ex
Andorbal/phoenix_react
0291d612ca710f80bd5ec87f052649f32c9e5847
[ "MIT" ]
null
null
null
defmodule PhoenixReact.ChannelCase do @moduledoc """ This module defines the test case to be used by channel tests. Such tests rely on `Phoenix.ChannelTest` and also imports other functionality to make it easier to build and query models. Finally, if the test case interacts with the database, it canno...
23.380952
71
0.706721
f73b2b2bf222e3d88275bbef1748c269b2d032f9
11,532
ex
Elixir
lib/phoenix/view.ex
DavidAlphaFox/phoenix
560131ab3b48c6b6cf864a3d20b7667e40990237
[ "MIT" ]
1
2019-06-11T20:22:21.000Z
2019-06-11T20:22:21.000Z
lib/phoenix/view.ex
DavidAlphaFox/phoenix
560131ab3b48c6b6cf864a3d20b7667e40990237
[ "MIT" ]
null
null
null
lib/phoenix/view.ex
DavidAlphaFox/phoenix
560131ab3b48c6b6cf864a3d20b7667e40990237
[ "MIT" ]
null
null
null
defmodule Phoenix.View do @moduledoc """ Defines the view layer of a Phoenix application. This module is used to define the application main view, which serves as the base for all other views and templates in the application. The view layer also contains conveniences for rendering templates, including s...
31.422343
101
0.67924
f73b2e81a37324b2ea52d10e6771a29ab5f5dbf2
20,800
ex
Elixir
clients/logging/lib/google_api/logging/v2/api/sinks.ex
kolorahl/elixir-google-api
46bec1e092eb84c6a79d06c72016cb1a13777fa6
[ "Apache-2.0" ]
null
null
null
clients/logging/lib/google_api/logging/v2/api/sinks.ex
kolorahl/elixir-google-api
46bec1e092eb84c6a79d06c72016cb1a13777fa6
[ "Apache-2.0" ]
null
null
null
clients/logging/lib/google_api/logging/v2/api/sinks.ex
kolorahl/elixir-google-api
46bec1e092eb84c6a79d06c72016cb1a13777fa6
[ "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...
52.926209
716
0.639712
f73b366e648b3758800b823f186b882dd01fbb6c
934
ex
Elixir
apps/ello_v2/web/controllers/manage/activity_count_controller.ex
ello/apex
4acb096b3ce172ff4ef9a51e5d068d533007b920
[ "MIT" ]
16
2017-06-21T21:31:20.000Z
2021-05-09T03:23:26.000Z
apps/ello_v2/web/controllers/manage/activity_count_controller.ex
ello/apex
4acb096b3ce172ff4ef9a51e5d068d533007b920
[ "MIT" ]
25
2017-06-07T12:18:28.000Z
2018-06-08T13:27:43.000Z
apps/ello_v2/web/controllers/manage/activity_count_controller.ex
ello/apex
4acb096b3ce172ff4ef9a51e5d068d533007b920
[ "MIT" ]
3
2018-06-14T15:34:07.000Z
2022-02-28T21:06:13.000Z
defmodule Ello.V2.Manage.ActivityCountController do use Ello.V2.Web, :controller alias Ello.Core.Contest plug Ello.Auth.RequireUser plug Manage.OwnedArtistInvite def all(%{assigns: %{artist_invite: inv}} = conn, _) do comments = Task.async(Contest, :artist_invite_comment_count, [%{artist_invite: inv}]) ...
38.916667
91
0.708779
f73b50b8818bdc750cdecfa3c1eea17094fab1a6
1,976
exs
Elixir
poc_elixir/config/prod.exs
fcevado/minha-receita
ebd5cca95115d878934a0f762a8e92d3f8f5b495
[ "MIT" ]
null
null
null
poc_elixir/config/prod.exs
fcevado/minha-receita
ebd5cca95115d878934a0f762a8e92d3f8f5b495
[ "MIT" ]
null
null
null
poc_elixir/config/prod.exs
fcevado/minha-receita
ebd5cca95115d878934a0f762a8e92d3f8f5b495
[ "MIT" ]
null
null
null
use Mix.Config # For production, don't forget to configure the url host # to something meaningful, Phoenix uses this information # when generating URLs. # # Note we also include the path to a cache manifest # containing the digested version of static files. This # manifest is generated by the `mix phx.digest` task, # ...
35.285714
66
0.713563
f73b6fad6cd4fd500410a0bfa0daa9b29a1eba85
3,523
ex
Elixir
lib/phoenix.ex
alexgriff/phoenix
87244793035572d9b119a90b1294db8e34961f8b
[ "MIT" ]
1
2019-04-24T09:28:15.000Z
2019-04-24T09:28:15.000Z
lib/phoenix.ex
alexgriff/phoenix
87244793035572d9b119a90b1294db8e34961f8b
[ "MIT" ]
null
null
null
lib/phoenix.ex
alexgriff/phoenix
87244793035572d9b119a90b1294db8e34961f8b
[ "MIT" ]
null
null
null
defmodule Phoenix do @moduledoc """ This is the documentation for the Phoenix project. By default, Phoenix applications depend on the following packages: * [Ecto](https://hexdocs.pm/ecto) - a language integrated query and database wrapper * [Phoenix](https://hexdocs.pm/phoenix) - the Phoenix web ...
30.634783
85
0.700255
f73b9eee4d07b0080dcb95f1f47fc099bdf367ef
197
exs
Elixir
examples/bloggy/test/bloggy_web/controllers/page_controller_test.exs
wojtekmach/resourceful
8425140aa1e89dfababcb2faa7bc4e2f59722661
[ "Apache-2.0" ]
1
2020-01-06T00:38:43.000Z
2020-01-06T00:38:43.000Z
examples/bloggy/test/bloggy_web/controllers/page_controller_test.exs
wojtekmach/resourceful
8425140aa1e89dfababcb2faa7bc4e2f59722661
[ "Apache-2.0" ]
null
null
null
examples/bloggy/test/bloggy_web/controllers/page_controller_test.exs
wojtekmach/resourceful
8425140aa1e89dfababcb2faa7bc4e2f59722661
[ "Apache-2.0" ]
null
null
null
defmodule BloggyWeb.PageControllerTest do use BloggyWeb.ConnCase test "GET /", %{conn: conn} do conn = get conn, "/" assert html_response(conn, 200) =~ "Welcome to Phoenix!" end end
21.888889
60
0.680203
f73bbbaf765a7837359d7b59dc209a95c1daf52f
9,931
ex
Elixir
lib/chroxy/chrome_server.ex
suddenrushofsushi/chroxy
2c7d3fe9a376557801016243d77be382ae3a0de8
[ "MIT" ]
null
null
null
lib/chroxy/chrome_server.ex
suddenrushofsushi/chroxy
2c7d3fe9a376557801016243d77be382ae3a0de8
[ "MIT" ]
null
null
null
lib/chroxy/chrome_server.ex
suddenrushofsushi/chroxy
2c7d3fe9a376557801016243d77be382ae3a0de8
[ "MIT" ]
null
null
null
defmodule Chroxy.ChromeServer.Supervisor do @moduledoc """ `DynamicSupervisor` for `Chroxy.ChromeServer` """ @sup __MODULE__ @worker Chroxy.ChromeServer def child_spec() do {DynamicSupervisor, name: @sup, strategy: :one_for_one} end def start_child(args) do DynamicSupervisor.start_child(@sup,...
27.740223
100
0.632464
f73bceed6e96329b413b42c022581eff46af7459
1,662
ex
Elixir
crawler_challenge/lib/crawler_challenge_web/controllers/search_controller.ex
tuliostarling/crawler-challenge
1b948769db200d09ac0481b9fd71a175d876d20f
[ "Apache-2.0" ]
null
null
null
crawler_challenge/lib/crawler_challenge_web/controllers/search_controller.ex
tuliostarling/crawler-challenge
1b948769db200d09ac0481b9fd71a175d876d20f
[ "Apache-2.0" ]
3
2021-05-08T08:50:39.000Z
2022-02-10T19:40:38.000Z
crawler_challenge/lib/crawler_challenge_web/controllers/search_controller.ex
tuliostarling/elixir-crawler
1b948769db200d09ac0481b9fd71a175d876d20f
[ "Apache-2.0" ]
null
null
null
defmodule CrawlerChallengeWeb.SearchController do use CrawlerChallengeWeb, :controller alias CrawlerChallenge.{Courts, NebulexCache, Processes, Searches} alias CrawlerChallenge.Courts.Court def index(conn, %{"court" => court, "process_n" => process_n}) do with %Court{} = court <- Courts.get_court_by_name(...
30.218182
83
0.611312
f73be581daa075d24778545810f59775bf5e5ac3
5,695
ex
Elixir
lib/sanbase/timeline/filter.ex
santiment/sanbase2
9ef6e2dd1e377744a6d2bba570ea6bd477a1db31
[ "MIT" ]
81
2017-11-20T01:20:22.000Z
2022-03-05T12:04:25.000Z
lib/sanbase/timeline/filter.ex
rmoorman/sanbase2
226784ab43a24219e7332c49156b198d09a6dd85
[ "MIT" ]
359
2017-10-15T14:40:53.000Z
2022-01-25T13:34:20.000Z
lib/sanbase/timeline/filter.ex
rmoorman/sanbase2
226784ab43a24219e7332c49156b198d09a6dd85
[ "MIT" ]
16
2017-11-19T13:57:40.000Z
2022-02-07T08:13:02.000Z
defmodule Sanbase.Timeline.Filter do import Ecto.Query alias Sanbase.Timeline.Query alias Sanbase.UserList alias Sanbase.Alert.UserTrigger alias Sanbase.Insight.Post alias Sanbase.Repo def filter_by_query(query, filter_by) do query |> filter_by_type_query(filter_by) end def filter_by_query...
33.5
94
0.718349
f73bf57fd55dbd2921949612c2707fe2e443f011
867
exs
Elixir
test/controllers/contact_controller_test.exs
cncgl/phoenix-sample
81b1c807a40e972df93ccc4063395ddf48bf4e2e
[ "MIT" ]
1
2016-01-01T12:55:25.000Z
2016-01-01T12:55:25.000Z
test/controllers/contact_controller_test.exs
cncgl/phoenix-todo
81b1c807a40e972df93ccc4063395ddf48bf4e2e
[ "MIT" ]
1
2015-09-10T13:41:51.000Z
2015-09-10T13:41:51.000Z
test/controllers/contact_controller_test.exs
cncgl/phoenix-todo
81b1c807a40e972df93ccc4063395ddf48bf4e2e
[ "MIT" ]
null
null
null
defmodule HelloPhoenix.ContactControllerTest do # use ExUnit.Case, async: false # use Plug.Test alias HelloPhoenix.Contact alias HelloPhoenix.Repo # alias Ecto.Adapters.SQL use HelloPhoenix.ConnCase # setup do # SQL.begin_test_transaction(Repo) # # on_exit fn -> # SQL.rollback_test_transacti...
22.815789
55
0.679354
f73c3096c9497cee967c98e6cb80009f73b06caa
4,797
ex
Elixir
lib/quantum/executor.ex
kianmeng/quantum-core
24997fb649d778f654c1adad0006f7ad529a1184
[ "Apache-2.0" ]
null
null
null
lib/quantum/executor.ex
kianmeng/quantum-core
24997fb649d778f654c1adad0006f7ad529a1184
[ "Apache-2.0" ]
null
null
null
lib/quantum/executor.ex
kianmeng/quantum-core
24997fb649d778f654c1adad0006f7ad529a1184
[ "Apache-2.0" ]
null
null
null
defmodule Quantum.Executor do @moduledoc false # Task to actually execute a Task use Task require Logger alias Quantum.{ Job, NodeSelectorBroadcaster.Event, TaskRegistry } alias __MODULE__.StartOpts @spec start_link(StartOpts.t(), Event.t()) :: {:ok, pid} def start_link(opts, %Event{...
26.798883
101
0.580988
f73c345ba293f1a714449d7df849c22c45521a69
2,610
exs
Elixir
mix.exs
smartrent/beamware
504fb50805c66a2985ea9587b152978cd41dc552
[ "Apache-2.0" ]
10
2018-04-12T18:16:40.000Z
2018-04-14T06:05:42.000Z
mix.exs
nerves-hub/nerveshub
8421aca4e5a9584c60913279b1dfc9e7c241bb6c
[ "Apache-2.0" ]
13
2018-05-25T19:31:49.000Z
2018-05-31T14:27:43.000Z
mix.exs
smartrent/beamware
504fb50805c66a2985ea9587b152978cd41dc552
[ "Apache-2.0" ]
2
2018-04-12T18:19:47.000Z
2018-04-12T18:57:46.000Z
defmodule NervesHubUmbrella.MixProject do use Mix.Project def project do [ version: "0.1.0", apps_path: "apps", start_permanent: Mix.env() == :prod, deps: deps(), test_coverage: [tool: ExCoveralls], aliases: aliases(), elixirc_paths: elixirc_paths(Mix.env()), dia...
29
75
0.583908
f73c3716f5762170682049dc7a5c42ca5c4ecbf7
743
exs
Elixir
test/acceptance/html/inline_ial_test.exs
manuel-rubio/earmark
d747d73d31e8b8fa39389b01fc67cc53d946b707
[ "Apache-1.1" ]
734
2015-01-05T19:08:00.000Z
2022-03-28T14:04:21.000Z
test/acceptance/html/inline_ial_test.exs
manuel-rubio/earmark
d747d73d31e8b8fa39389b01fc67cc53d946b707
[ "Apache-1.1" ]
343
2015-01-01T04:56:57.000Z
2022-02-15T11:00:57.000Z
test/acceptance/html/inline_ial_test.exs
manuel-rubio/earmark
d747d73d31e8b8fa39389b01fc67cc53d946b707
[ "Apache-1.1" ]
169
2015-02-26T15:18:05.000Z
2022-03-18T08:00:42.000Z
defmodule Acceptance.Html.InlineIalTest do use Support.AcceptanceTestCase describe "IAL no errors" do test "link with simple ial" do markdown = "[link](url){: .classy}" html ="<p>\n<a class=\"classy\" href=\"url\">link</a></p>\n" messages = [] assert as_html(markdown) == {:ok, html, me...
27.518519
85
0.608345
f73c3c82c6c696421cf60fa8a1f218f16b752a52
8,882
ex
Elixir
lib/switchx/connection.ex
kalmik/switchx
14d5197b0ed6ab46c307bdb1b928bbf84607bd56
[ "MIT" ]
8
2020-03-30T11:14:19.000Z
2022-03-24T11:53:30.000Z
lib/switchx/connection.ex
kalmik/switchx
14d5197b0ed6ab46c307bdb1b928bbf84607bd56
[ "MIT" ]
5
2020-03-27T00:00:54.000Z
2020-04-23T00:30:08.000Z
lib/switchx/connection.ex
kalmik/switchx
14d5197b0ed6ab46c307bdb1b928bbf84607bd56
[ "MIT" ]
1
2020-04-22T23:55:52.000Z
2020-04-22T23:55:52.000Z
defmodule SwitchX.Connection do @moduledoc false @behaviour :gen_statem require Logger alias SwitchX.Connection.{ Socket } defstruct [ :host, :port, :password, :owner, :socket, :connection_mode, :api_response_buffer, :session_module, api_calls: :queue.new(), co...
28.467949
99
0.635893
f73c567c120e8aacb6e42a6a75312ae6a7b0d3a8
2,164
ex
Elixir
lib/elixirfm/track.ex
jrichocean/Elixirfm
5595c08c3217500bbc3fe74fe1657fe0e7bfcda8
[ "MIT" ]
9
2016-10-04T10:09:17.000Z
2020-10-20T10:34:47.000Z
lib/elixirfm/track.ex
jrichocean/Elixirfm
5595c08c3217500bbc3fe74fe1657fe0e7bfcda8
[ "MIT" ]
4
2017-06-19T11:11:15.000Z
2021-11-10T04:31:45.000Z
lib/elixirfm/track.ex
jrichocean/Elixirfm
5595c08c3217500bbc3fe74fe1657fe0e7bfcda8
[ "MIT" ]
2
2018-10-12T09:53:36.000Z
2019-09-29T13:19:41.000Z
defmodule Elixirfm.Track do @moduledoc "Functions for Last.fm Track endpoints" @method "track" defp req(uri), do: Elixirfm.get_request(@method <> uri) defp req(uri, args), do: Elixirfm.get_request(@method <> uri, args) # @doc """ # Tag an album using a list of user supplied tags. # *requires auth* ...
35.47541
109
0.657116
f73c59423e4f56f1c88b3c27e63ffc9abb79f8f1
1,489
exs
Elixir
config/runtime.exs
rushsteve1/RateTheDub
89a8ad8ab42d2a55f1c522ba78dc4ac3a7f84081
[ "Apache-2.0" ]
4
2021-04-26T21:50:45.000Z
2021-04-27T18:37:51.000Z
config/runtime.exs
rushsteve1/RateTheDub
89a8ad8ab42d2a55f1c522ba78dc4ac3a7f84081
[ "Apache-2.0" ]
25
2021-04-26T21:39:21.000Z
2021-09-07T13:59:14.000Z
config/runtime.exs
rushsteve1/RateTheDub
89a8ad8ab42d2a55f1c522ba78dc4ac3a7f84081
[ "Apache-2.0" ]
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. # Taken and adapted from # https://fly.io/docs/getting-started/elixir/ import Config i...
29.196078
69
0.693083
f73caf4f1eeae99184ceb3be9a43779c6348091c
14,010
exs
Elixir
test/slax/github_test.exs
HoffsMH/slax
b91ee30b9fd71a4cb7826f50b605ce580b7c1651
[ "MIT" ]
11
2016-07-05T18:56:21.000Z
2021-09-15T22:23:54.000Z
test/slax/github_test.exs
HoffsMH/slax
b91ee30b9fd71a4cb7826f50b605ce580b7c1651
[ "MIT" ]
181
2016-06-23T00:47:13.000Z
2022-03-10T11:23:44.000Z
test/slax/github_test.exs
HoffsMH/slax
b91ee30b9fd71a4cb7826f50b605ce580b7c1651
[ "MIT" ]
7
2019-01-30T21:38:28.000Z
2022-03-01T07:13:39.000Z
defmodule Slax.Github.Test do use Slax.ModelCase, async: true alias Slax.Github import Mox # Make sure mocks are verified when the test exits setup :verify_on_exit! test "authorize_url/1" do assert Github.authorize_url(%{token: "token"}) =~ "token=token" end test "fetch_access_token/1" do exp...
25.612431
97
0.55853
f73cb207c90975f4b4311e8a05e347373c09d5e4
361
exs
Elixir
back/priv/repo/migrations/20190910095238_create_clocks.exs
HugoLefebvre/Epitech_TM_MP03
0ed161c956f7a10aec245fe2e17eb5a9b55f6075
[ "MIT" ]
null
null
null
back/priv/repo/migrations/20190910095238_create_clocks.exs
HugoLefebvre/Epitech_TM_MP03
0ed161c956f7a10aec245fe2e17eb5a9b55f6075
[ "MIT" ]
null
null
null
back/priv/repo/migrations/20190910095238_create_clocks.exs
HugoLefebvre/Epitech_TM_MP03
0ed161c956f7a10aec245fe2e17eb5a9b55f6075
[ "MIT" ]
null
null
null
defmodule Api.Repo.Migrations.CreateClocks do use Ecto.Migration def change do create table(:clocks) do add :time, :utc_datetime, null: false add :status, :boolean, default: true, null: false add :user_a, references(:users, on_delete: :nothing), null: false timestamps() end cr...
22.5625
71
0.66759
f73ccd090ccfb0c08b4b8efe3730b014d270e2b0
1,450
ex
Elixir
clients/vault/lib/google_api/vault/v1/model/held_hangouts_chat_query.ex
kyleVsteger/elixir-google-api
3a0dd498af066a4361b5b0fd66ffc04a57539488
[ "Apache-2.0" ]
null
null
null
clients/vault/lib/google_api/vault/v1/model/held_hangouts_chat_query.ex
kyleVsteger/elixir-google-api
3a0dd498af066a4361b5b0fd66ffc04a57539488
[ "Apache-2.0" ]
null
null
null
clients/vault/lib/google_api/vault/v1/model/held_hangouts_chat_query.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...
30.851064
115
0.73931
f73cd1a03985bf5b448ba0b9ad9a19e7de7f3243
1,675
exs
Elixir
test/drab/commander_test.exs
bdfinlayson/drab
ce11a643ec8fe7e7f622489af5792ef12e69a8c7
[ "MIT" ]
null
null
null
test/drab/commander_test.exs
bdfinlayson/drab
ce11a643ec8fe7e7f622489af5792ef12e69a8c7
[ "MIT" ]
null
null
null
test/drab/commander_test.exs
bdfinlayson/drab
ce11a643ec8fe7e7f622489af5792ef12e69a8c7
[ "MIT" ]
null
null
null
defmodule Drab.CommanderTest do use ExUnit.Case, ascync: true doctest Drab.Commander test "__drab__/0 should return the valid config for test commander" do assert DrabTestApp.TestCommander.__drab__() == %Drab.Commander.Config{ commander: DrabTestApp.TestCommander, controller: DrabTe...
37.222222
86
0.63403
f73cd3ffc29180f27f0084127d5f59532719e320
2,014
ex
Elixir
clients/content/lib/google_api/content/v21/model/account_user.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/content/lib/google_api/content/v21/model/account_user.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/content/lib/google_api/content/v21/model/account_user.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
34.135593
109
0.690665
f73cd9fada28a57e67da781394e2d58e65801eb4
8,846
ex
Elixir
clients/deployment_manager/lib/google_api/deployment_manager/v2/api/resources.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/deployment_manager/lib/google_api/deployment_manager/v2/api/resources.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/deployment_manager/lib/google_api/deployment_manager/v2/api/resources.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...
48.604396
414
0.661655
f73cdc98239d836fa36d58eb27ac93b5e0a4abe2
3,118
exs
Elixir
test/mongo/url_parser_test.exs
Virtual-Repetitions/mongodb
eea06db138ae3b4824c7f208fda621075fbf28a7
[ "Apache-2.0" ]
null
null
null
test/mongo/url_parser_test.exs
Virtual-Repetitions/mongodb
eea06db138ae3b4824c7f208fda621075fbf28a7
[ "Apache-2.0" ]
2
2021-07-10T18:53:51.000Z
2021-08-06T15:36:58.000Z
test/mongo/url_parser_test.exs
Virtual-Repetitions/mongodb
eea06db138ae3b4824c7f208fda621075fbf28a7
[ "Apache-2.0" ]
3
2021-07-10T18:01:00.000Z
2021-08-05T00:39:17.000Z
defmodule Mongo.UrlParserTest do @moduledoc false use ExUnit.Case, async: false alias Mongo.UrlParser describe ".parse_url" do test "basic url" do assert UrlParser.parse_url(url: "mongodb://localhost:27017") == [seeds: ["localhost:27017"]] end test "percent encoded password" do url = ...
30.871287
170
0.513149
f73cfc7068bc3cfc379e88cb8871f83a8b593220
424
ex
Elixir
lib/blog/posts/comment.ex
nlundkvist/blog
8353b0619e7d88285bb233990dcf8ec4959d6ed8
[ "MIT" ]
null
null
null
lib/blog/posts/comment.ex
nlundkvist/blog
8353b0619e7d88285bb233990dcf8ec4959d6ed8
[ "MIT" ]
null
null
null
lib/blog/posts/comment.ex
nlundkvist/blog
8353b0619e7d88285bb233990dcf8ec4959d6ed8
[ "MIT" ]
null
null
null
defmodule Blog.Posts.Comment do use Ecto.Schema import Ecto.Changeset alias Blog.Posts.{Comment, Post} schema "comments" do field :content, :string field :name, :string belongs_to :post, Post timestamps() end @doc false def changeset(%Comment{} = comment, attrs) do comment |> c...
19.272727
53
0.660377
f73d02671be9d8789509dacc98eb251853e341c5
816
ex
Elixir
lib/branch_cutter/schema/pull_request.ex
smaximov/branch_cutter
eb750db1fcc9715ab7bbecadd2ccd3368b41dc81
[ "MIT" ]
null
null
null
lib/branch_cutter/schema/pull_request.ex
smaximov/branch_cutter
eb750db1fcc9715ab7bbecadd2ccd3368b41dc81
[ "MIT" ]
null
null
null
lib/branch_cutter/schema/pull_request.ex
smaximov/branch_cutter
eb750db1fcc9715ab7bbecadd2ccd3368b41dc81
[ "MIT" ]
null
null
null
defmodule BranchCutter.Schema.PullRequest do use Ecto.Schema import Ecto.Changeset @type t() :: %__MODULE__{ repo: String.t() | nil, branch: String.t() | nil, number: integer() | nil, inserted_at: NaiveDateTime.t() | nil, updated_at: NaiveDateTime.t() | nil ...
26.322581
60
0.634804
f73d064dffd3d2c56c6e91434d19fbd6fc942542
973
exs
Elixir
test/ffaker/en/color_test.exs
marocchino/ffaker
5bb4420a8034db9f954a2464cd72039129ef2307
[ "MIT" ]
9
2016-11-09T15:50:05.000Z
2021-02-02T05:45:06.000Z
test/ffaker/en/color_test.exs
marocchino/ffaker
5bb4420a8034db9f954a2464cd72039129ef2307
[ "MIT" ]
3
2016-09-01T09:54:46.000Z
2017-07-25T05:23:56.000Z
test/ffaker/en/color_test.exs
marocchino/ffaker
5bb4420a8034db9f954a2464cd72039129ef2307
[ "MIT" ]
4
2016-11-22T17:51:48.000Z
2021-02-02T05:45:01.000Z
defmodule Ffaker.En.ColorTest do use ExUnit.Case, async: true use Ffaker import Ffaker.En.Color import Ffaker.Matcher, only: [assert_match: 2] test "name/0" do assert name() in ~F(names) end test "hex_code/0" do assert_match ~r/\A[0-9A-F]{6}\z/, hex_code() end test "rgb/0" do assert Enu...
21.152174
61
0.539568
f73d251233b911c2fcf98c694de38efc81f02a0c
396
exs
Elixir
test/server_test.exs
madhuvishy/ex_messenger
a35d14a75adfa64baf2880364d43969363cc3b02
[ "MIT" ]
4
2015-06-22T22:16:03.000Z
2017-09-30T02:45:30.000Z
test/server_test.exs
madhuvishy/ex_messenger
a35d14a75adfa64baf2880364d43969363cc3b02
[ "MIT" ]
null
null
null
test/server_test.exs
madhuvishy/ex_messenger
a35d14a75adfa64baf2880364d43969363cc3b02
[ "MIT" ]
null
null
null
defmodule ServerTest do use ExUnit.Case test "Check if server is created" do pid = Process.whereis(:message_server) assert pid != nil end test "Check if server connect and disconnect works" do pid = Process.whereis(:message_server) assert {:ok, "hello"} == GenServer.call(pid, {:connect, :hel...
26.4
68
0.679293
f73d48849fd6305e3684c6331af3c4c2da084609
60,337
ex
Elixir
clients/data_fusion/lib/google_api/data_fusion/v1beta1/api/projects.ex
jamesvl/elixir-google-api
6c87fb31d996f08fb42ce6066317e9d652a87acc
[ "Apache-2.0" ]
null
null
null
clients/data_fusion/lib/google_api/data_fusion/v1beta1/api/projects.ex
jamesvl/elixir-google-api
6c87fb31d996f08fb42ce6066317e9d652a87acc
[ "Apache-2.0" ]
null
null
null
clients/data_fusion/lib/google_api/data_fusion/v1beta1/api/projects.ex
jamesvl/elixir-google-api
6c87fb31d996f08fb42ce6066317e9d652a87acc
[ "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.988567
607
0.619852
f73d5cae12e9be7a50687f04e1189cf43edd0bbe
13,614
exs
Elixir
test/phoenix/test/conn_test.exs
jshahs/magiclogo
5b18cb4efff04c3547d167bab194d2806ec20d8a
[ "MIT" ]
null
null
null
test/phoenix/test/conn_test.exs
jshahs/magiclogo
5b18cb4efff04c3547d167bab194d2806ec20d8a
[ "MIT" ]
null
null
null
test/phoenix/test/conn_test.exs
jshahs/magiclogo
5b18cb4efff04c3547d167bab194d2806ec20d8a
[ "MIT" ]
null
null
null
defmodule Phoenix.Test.ConnTest.CatchAll do def init(opts), do: opts def call(conn, :stat), do: conn.params["action"].(conn) def call(conn, _opts), do: Plug.Conn.assign(conn, :catch_all, true) end defmodule Phoenix.Test.ConnTest.Router do use Phoenix.Router alias Phoenix.Test.ConnTest.CatchAll pipeline :b...
31.296552
145
0.61591
f73db57d2088c6f75d780ffa7b0430e1303ff921
153
exs
Elixir
server/priv/repo/migrations/20201212135024_add_unique_username_index.exs
jeepers3327/prepply
64b6be3b832fddf429faa31f5f7c1b93b842f821
[ "MIT" ]
2
2021-03-04T15:21:14.000Z
2021-03-21T13:43:07.000Z
server/priv/repo/migrations/20201212135024_add_unique_username_index.exs
jeepers3327/prepply
64b6be3b832fddf429faa31f5f7c1b93b842f821
[ "MIT" ]
null
null
null
server/priv/repo/migrations/20201212135024_add_unique_username_index.exs
jeepers3327/prepply
64b6be3b832fddf429faa31f5f7c1b93b842f821
[ "MIT" ]
null
null
null
defmodule Prepply.Repo.Migrations.AddUniqueUsernameIndex do use Ecto.Migration def change do create unique_index(:users, [:username]) end end
19.125
59
0.771242
f73db71067413631aa16d53ee1a999ba0b5b2ae4
8,979
exs
Elixir
test/oidc/id_token_test.exs
YuriiZdyrko/oidc
5587586a3ce00d43aa9df38052e95e17d8536033
[ "Apache-2.0" ]
null
null
null
test/oidc/id_token_test.exs
YuriiZdyrko/oidc
5587586a3ce00d43aa9df38052e95e17d8536033
[ "Apache-2.0" ]
1
2021-09-22T13:25:07.000Z
2021-09-22T13:25:07.000Z
test/oidc/id_token_test.exs
YuriiZdyrko/oidc
5587586a3ce00d43aa9df38052e95e17d8536033
[ "Apache-2.0" ]
null
null
null
defmodule OIDC.IDTokenTest do use ExUnit.Case alias OIDC.IDToken setup_all do [client: client_conf(), op: op_metadata()] end test "valid signed ID token is verified", %{client: client, op: op} do verification_data = %{ issuer: op["issuer"], client_id: client["client_id"], server_m...
29.93
532
0.64907
f73dcd5837f9e02c6fd5d5acc43d2ff7b952c96d
2,704
ex
Elixir
lib/hui/encode.ex
bluedevelz/hui
e5f24a30ade504db3adbffab1aeec90d490ac6a0
[ "Apache-2.0" ]
13
2018-09-06T12:42:18.000Z
2021-06-15T15:13:13.000Z
lib/hui/encode.ex
bluedevelz/hui
e5f24a30ade504db3adbffab1aeec90d490ac6a0
[ "Apache-2.0" ]
27
2019-08-22T07:02:27.000Z
2022-02-05T05:27:30.000Z
lib/hui/encode.ex
bluedevelz/hui
e5f24a30ade504db3adbffab1aeec90d490ac6a0
[ "Apache-2.0" ]
7
2019-08-22T06:29:05.000Z
2021-10-16T15:39:21.000Z
defmodule Hui.Encode do @moduledoc """ Utilities for encoding Solr query and update data structures. """ @type options :: __MODULE__.Options.t() @url_delimiters {?=, ?&} @json_delimiters {?:, ?,} defmodule Options do @moduledoc false defstruct [:per_field, :prefix, type: :url] @type t :: ...
30.727273
91
0.576553
f73de07f4deefd3640e64ff246bcc6511dc66950
2,742
ex
Elixir
lib/cadet_web/admin_controllers/admin_achievements_controller.ex
chownces/cadet
0d8b264e4fad1c9aaab7ef3f037ac4e07a4c9b22
[ "Apache-2.0" ]
null
null
null
lib/cadet_web/admin_controllers/admin_achievements_controller.ex
chownces/cadet
0d8b264e4fad1c9aaab7ef3f037ac4e07a4c9b22
[ "Apache-2.0" ]
10
2022-02-24T17:57:38.000Z
2022-03-31T07:43:05.000Z
lib/cadet_web/admin_controllers/admin_achievements_controller.ex
chownces/cadet
0d8b264e4fad1c9aaab7ef3f037ac4e07a4c9b22
[ "Apache-2.0" ]
1
2019-07-17T15:51:58.000Z
2019-07-17T15:51:58.000Z
defmodule CadetWeb.AdminAchievementsController do use CadetWeb, :controller use PhoenixSwagger alias Cadet.Incentives.Achievements def bulk_update(conn, %{"achievements" => achievements}) do achievements |> Enum.map(&json_to_achievement(&1)) |> Achievements.upsert_many() |> handle_standard_re...
22.661157
86
0.602115
f73e2f4ecf7d562e4b64a8722107d082f8c7c666
794
exs
Elixir
server/priv/repo/migrations/20210718165643_create_projects_auth_tables.exs
felixwolter/idai-field
146ab8dbdedb23035a4ba19eac95f02a1fa2329f
[ "Apache-2.0" ]
null
null
null
server/priv/repo/migrations/20210718165643_create_projects_auth_tables.exs
felixwolter/idai-field
146ab8dbdedb23035a4ba19eac95f02a1fa2329f
[ "Apache-2.0" ]
null
null
null
server/priv/repo/migrations/20210718165643_create_projects_auth_tables.exs
felixwolter/idai-field
146ab8dbdedb23035a4ba19eac95f02a1fa2329f
[ "Apache-2.0" ]
null
null
null
defmodule IdaiFieldServer.Repo.Migrations.CreateProjectsAuthTables do use Ecto.Migration def change do execute "CREATE EXTENSION IF NOT EXISTS citext", "" create table(:projects) do add :email, :citext, null: false add :hashed_password, :string, null: false add :confirmed_at, :naive_date...
28.357143
81
0.687657
f73e357d00009ad96897ac6196fef2920e59dd5a
1,857
ex
Elixir
clients/identity_toolkit/lib/google_api/identity_toolkit/v3/model/identitytoolkit_relyingparty_email_link_signin_request.ex
nuxlli/elixir-google-api
ecb8679ac7282b7dd314c3e20c250710ec6a7870
[ "Apache-2.0" ]
null
null
null
clients/identity_toolkit/lib/google_api/identity_toolkit/v3/model/identitytoolkit_relyingparty_email_link_signin_request.ex
nuxlli/elixir-google-api
ecb8679ac7282b7dd314c3e20c250710ec6a7870
[ "Apache-2.0" ]
null
null
null
clients/identity_toolkit/lib/google_api/identity_toolkit/v3/model/identitytoolkit_relyingparty_email_link_signin_request.ex
nuxlli/elixir-google-api
ecb8679ac7282b7dd314c3e20c250710ec6a7870
[ "Apache-2.0" ]
1
2020-11-10T16:58:27.000Z
2020-11-10T16:58:27.000Z
# Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the &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.474576
97
0.736134
f73e5e39e736a57f60726528562114a586de1364
1,513
ex
Elixir
clients/classroom/lib/google_api/classroom/v1/model/course_work_changes_info.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
1
2018-12-03T23:43:10.000Z
2018-12-03T23:43:10.000Z
clients/classroom/lib/google_api/classroom/v1/model/course_work_changes_info.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
clients/classroom/lib/google_api/classroom/v1/model/course_work_changes_info.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 ...
32.191489
121
0.741573
f73e784805a317763a861c1f684054f26f8c25cf
502
ex
Elixir
lib/open_submissions/submissions/submission.ex
csfalcione/open-submissions-api
b7af153ebe9c1a9bd487f7fc30a25007bdf2b9c3
[ "MIT" ]
7
2019-02-11T14:31:24.000Z
2021-12-28T08:15:00.000Z
lib/open_submissions/submissions/submission.ex
tblount/open-submissions-api
fb7395175e8079a659bc65ff7c5a7f1f4fc4b422
[ "MIT" ]
null
null
null
lib/open_submissions/submissions/submission.ex
tblount/open-submissions-api
fb7395175e8079a659bc65ff7c5a7f1f4fc4b422
[ "MIT" ]
2
2019-02-11T14:31:37.000Z
2021-12-28T08:15:01.000Z
defmodule OpenSubmissions.Submissions.Submission do use Ecto.Schema import Ecto.Changeset schema "submissions" do field :code, :string field :language, :string field :status, :string field :problem_id, :id timestamps() end @doc false def changeset(submission, attrs) do submission...
21.826087
66
0.689243
f73e8fe6823f47440c2655a0eb2cc2906edb6cfe
596
exs
Elixir
test/void_elements_test.exs
aforward-oss/earmark
b44d4817aa2b4047b07f91d633ae83ed27c695ed
[ "Apache-2.0" ]
null
null
null
test/void_elements_test.exs
aforward-oss/earmark
b44d4817aa2b4047b07f91d633ae83ed27c695ed
[ "Apache-2.0" ]
null
null
null
test/void_elements_test.exs
aforward-oss/earmark
b44d4817aa2b4047b07f91d633ae83ed27c695ed
[ "Apache-2.0" ]
null
null
null
defmodule VoidElementsTest do use ExUnit.Case import ExUnit.CaptureIO [ {~s[<img src="whatevs.png">], nil}, {~s[<area alt="alt" href="http://some.image.com/image">], nil}, {~s[<br>], nil}, {~s[<hr>], ~s[<hr>]}, {~s[<wbr>], nil}, ] |> Enum.each( fn {inp, out} -> test "#{inp} is trans...
25.913043
67
0.540268
f73e9ad0f2e40ab1ca6c6e0d8573cb6d1e81ef73
383
ex
Elixir
lib/list_supervisor.ex
rafaelmws/supervised_list_server
112886580c70f53b21a7cd24065a7bbffa8fa764
[ "MIT" ]
null
null
null
lib/list_supervisor.ex
rafaelmws/supervised_list_server
112886580c70f53b21a7cd24065a7bbffa8fa764
[ "MIT" ]
null
null
null
lib/list_supervisor.ex
rafaelmws/supervised_list_server
112886580c70f53b21a7cd24065a7bbffa8fa764
[ "MIT" ]
null
null
null
defmodule ListSupervisor do use Supervisor def start_link do end def init([]) do end def start_server(supervisor, name) do IO.puts "ListSupervisor.start_server(#{name})" Supervisor.start_child(supervisor, name) end def stop_server(supervisor, pid) do Supervisor.delete_child(supervisor, p...
18.238095
50
0.733681
f73e9e0e7d6ff69cac9cee393543f9a4d7159db2
22,482
exs
Elixir
test/phoenix/router/helpers_test.exs
JWKyle/phoenix-test
87066b7335764f7c3c4d098fdc85bdad2ab2ef54
[ "MIT" ]
null
null
null
test/phoenix/router/helpers_test.exs
JWKyle/phoenix-test
87066b7335764f7c3c4d098fdc85bdad2ab2ef54
[ "MIT" ]
null
null
null
test/phoenix/router/helpers_test.exs
JWKyle/phoenix-test
87066b7335764f7c3c4d098fdc85bdad2ab2ef54
[ "MIT" ]
null
null
null
defmodule Phoenix.Router.HelpersTest do use ExUnit.Case, async: true use RouterHelper alias Phoenix.Router.Helpers ## Unit tests test "defhelper with :identifiers" do route = build(:match, :get, "/foo/:bar", nil, Hello, :world, "hello_world") assert extract_defhelper(route, 0) == String.trim """ ...
43.317919
157
0.65826
f73eccdf587307fd5b68b5a8d26a2fc77efc44ab
178
exs
Elixir
test/fexr_web/controllers/page_controller_test.exs
Schultzer/fexr
f64d67b78bc785ae967f4c1193491a1d9cf33279
[ "MIT", "Unlicense" ]
4
2017-08-13T09:03:24.000Z
2018-06-19T06:32:07.000Z
test/fexr_web/controllers/page_controller_test.exs
Schultzer/fexr
f64d67b78bc785ae967f4c1193491a1d9cf33279
[ "MIT", "Unlicense" ]
null
null
null
test/fexr_web/controllers/page_controller_test.exs
Schultzer/fexr
f64d67b78bc785ae967f4c1193491a1d9cf33279
[ "MIT", "Unlicense" ]
null
null
null
defmodule FexrWeb.PageControllerTest do use FexrWeb.ConnCase test "GET /", %{conn: conn} do conn = get conn, "/" assert html_response(conn, 200) =~ "Fexr" end end
19.777778
45
0.662921
f73edd716f9b09de7cff46c3df38c893a5786205
3,236
ex
Elixir
clients/game_services/lib/google_api/game_services/v1/model/expr.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/game_services/lib/google_api/game_services/v1/model/expr.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/game_services/lib/google_api/game_services/v1/model/expr.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...
57.785714
1,092
0.733931
f73ee1be025405bfb7ca2dcfcb4983a1af073927
341
exs
Elixir
tests/resource/test.exs
pilotier/nimler
bc80503d9e300ba59889f533b79dc51962083ba7
[ "MIT" ]
83
2019-10-20T12:04:33.000Z
2022-03-17T01:04:26.000Z
tests/resource/test.exs
pilotier/nimler
bc80503d9e300ba59889f533b79dc51962083ba7
[ "MIT" ]
18
2019-10-12T17:56:25.000Z
2022-03-21T03:05:02.000Z
tests/resource/test.exs
pilotier/nimler
bc80503d9e300ba59889f533b79dc51962083ba7
[ "MIT" ]
6
2020-02-21T14:00:30.000Z
2021-11-06T04:18:38.000Z
ExUnit.start(trace: false, seed: 0) defmodule NimlerTest do use ExUnit.Case, async: false test "resource" do res = NimlerWrapper.create_resource() assert(is_reference(res)) assert(is_reference(NimlerWrapper.update_resource(res))) assert(is_reference(NimlerWrapper.check_resourc...
24.357143
64
0.70088
f73ee1d2eda1741db293e72a1e1bb7f5d3a6ff4f
708
exs
Elixir
mix.exs
defacedvr/deque
49076ecb0ea6283577edcb008cdf185dfb4a3f54
[ "MIT" ]
61
2017-09-21T05:56:48.000Z
2020-03-10T11:43:19.000Z
mix.exs
defacedvr/deque
49076ecb0ea6283577edcb008cdf185dfb4a3f54
[ "MIT" ]
3
2018-05-26T07:02:33.000Z
2019-06-21T19:48:00.000Z
mix.exs
defacedvr/deque
49076ecb0ea6283577edcb008cdf185dfb4a3f54
[ "MIT" ]
11
2017-09-21T05:56:52.000Z
2019-11-23T13:37:13.000Z
defmodule Deque.Mixfile do use Mix.Project def project do [ app: :deque, version: "1.2.0", elixir: ">= 1.5.0", build_embedded: Mix.env() == :prod, start_permanent: Mix.env() == :prod, deps: deps(), package: package() ] end def application do [] end de...
18.153846
66
0.515537
f73f033058e5fac9ac2badf4fff7dc45a561553f
218
ex
Elixir
lib/filey/application.ex
cjfreeze/filey
84d674f31333875b487b9b2b67883d6286bfe315
[ "MIT" ]
2
2020-10-21T06:36:05.000Z
2021-11-24T22:17:18.000Z
lib/filey/application.ex
cjfreeze/filey
84d674f31333875b487b9b2b67883d6286bfe315
[ "MIT" ]
null
null
null
lib/filey/application.ex
cjfreeze/filey
84d674f31333875b487b9b2b67883d6286bfe315
[ "MIT" ]
null
null
null
defmodule Filey.Application do @moduledoc false use Application @impl true def start(_type, _args) do opts = [strategy: :one_for_one, name: Filey.Supervisor] Supervisor.start_link([], opts) end end
18.166667
59
0.711009
f73f1a627cdf62c2a452310e5a31133b0c0cc85d
6,083
ex
Elixir
lib/dark_matter/naming.ex
dark-elixir/dark_matter
3f70edf4220ad1c066489110ef30880a143522fd
[ "Apache-2.0" ]
2
2020-12-01T21:33:44.000Z
2021-05-29T14:51:18.000Z
lib/dark_matter/naming.ex
dark-elixir/dark_matter
3f70edf4220ad1c066489110ef30880a143522fd
[ "Apache-2.0" ]
null
null
null
lib/dark_matter/naming.ex
dark-elixir/dark_matter
3f70edf4220ad1c066489110ef30880a143522fd
[ "Apache-2.0" ]
2
2020-09-02T14:36:58.000Z
2021-04-22T11:20:43.000Z
defmodule DarkMatter.Naming do @moduledoc """ DarkMatter naming conventions. """ @moduledoc since: "1.0.0" alias DarkMatter.Inflections defstruct [ :module, :base_module, :parent_module, :alias, :alias_plural, :singular, :plural, :camel_plural, :camel_singular, :hum...
26.219828
95
0.620089
f73f3d522c02ded96bdb9793e8507646932817fa
2,469
exs
Elixir
run-length-encoding/rle.exs
lpvm/exercism_elixir
b32981727c4aaec444680838db4014d70c983f5d
[ "MIT" ]
null
null
null
run-length-encoding/rle.exs
lpvm/exercism_elixir
b32981727c4aaec444680838db4014d70c983f5d
[ "MIT" ]
null
null
null
run-length-encoding/rle.exs
lpvm/exercism_elixir
b32981727c4aaec444680838db4014d70c983f5d
[ "MIT" ]
null
null
null
defmodule RunLengthEncoder do @doc """ Generates a string where consecutive elements are represented as a data value and count. "AABBBCCCC" => "2A3B4C" For this example, assume all input are strings, that are all uppercase letters. It should also be able to reconstruct the data into its original form. "2A3B...
26.836957
90
0.563791
f73f840e668a6dab2473b366bc63e091e092cd96
2,377
ex
Elixir
clients/big_query/lib/google_api/big_query/v2/model/destination_table_properties.ex
kyleVsteger/elixir-google-api
3a0dd498af066a4361b5b0fd66ffc04a57539488
[ "Apache-2.0" ]
1
2021-10-01T09:20:41.000Z
2021-10-01T09:20:41.000Z
clients/big_query/lib/google_api/big_query/v2/model/destination_table_properties.ex
kyleVsteger/elixir-google-api
3a0dd498af066a4361b5b0fd66ffc04a57539488
[ "Apache-2.0" ]
null
null
null
clients/big_query/lib/google_api/big_query/v2/model/destination_table_properties.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...
44.849057
331
0.737064
f73f92d884d7b1689c85dc66f29b78fb5a37ae7c
1,644
exs
Elixir
test/suite/draft4/not_test.exs
depressed-pho/xema
56de4a5d3b3f37827c70f6052f895c59feb0bb51
[ "MIT" ]
null
null
null
test/suite/draft4/not_test.exs
depressed-pho/xema
56de4a5d3b3f37827c70f6052f895c59feb0bb51
[ "MIT" ]
null
null
null
test/suite/draft4/not_test.exs
depressed-pho/xema
56de4a5d3b3f37827c70f6052f895c59feb0bb51
[ "MIT" ]
null
null
null
defmodule Draft4.NotTest do use ExUnit.Case, async: true import Xema, only: [valid?: 2] describe "not" do setup do %{schema: Xema.new(not: :integer)} end test "allowed", %{schema: schema} do data = "foo" assert valid?(schema, data) end test "disallowed", %{schema: schema}...
20.55
69
0.568127
f73f976a163b340a41dfea32ff0517f13aa4527a
699
ex
Elixir
lib/eview/changeset/validators/phone_number.ex
Contractbook/eview
01166658910fd7c8c974874b116164873a382ac5
[ "MIT" ]
3
2018-11-11T22:43:04.000Z
2020-03-11T12:17:11.000Z
lib/eview/changeset/validators/phone_number.ex
Contractbook/eview
01166658910fd7c8c974874b116164873a382ac5
[ "MIT" ]
18
2016-10-28T16:10:22.000Z
2018-09-11T11:35:28.000Z
lib/eview/changeset/validators/phone_number.ex
Contractbook/eview
01166658910fd7c8c974874b116164873a382ac5
[ "MIT" ]
8
2017-01-11T16:14:46.000Z
2022-03-21T13:06:10.000Z
if Code.ensure_loaded?(Ecto) do defmodule EView.Changeset.Validators.PhoneNumber do @moduledoc """ This helper validates phone numbers in international format (with `+:country_code`). """ import Ecto.Changeset @phone_regex ~r/^\+[0-9]{9,16}$/ def validate_phone_number(changeset, field, opts ...
30.391304
102
0.636624
f73fbc40f8772496166345c57834f7420b38f445
2,509
ex
Elixir
clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v2beta1/model/callout_status_row.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
1
2018-12-03T23:43:10.000Z
2018-12-03T23:43:10.000Z
clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v2beta1/model/callout_status_row.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v2beta1/model/callout_status_row.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 ...
43.258621
185
0.754882
f73fca8bb6fe26c1357d4f4ac538c665d94e9f14
1,009
exs
Elixir
config/config.exs
code-mancers/resource-pool
83610857b63ec3d0b5e215f6ac63e12ccb99c2f1
[ "MIT" ]
null
null
null
config/config.exs
code-mancers/resource-pool
83610857b63ec3d0b5e215f6ac63e12ccb99c2f1
[ "MIT" ]
null
null
null
config/config.exs
code-mancers/resource-pool
83610857b63ec3d0b5e215f6ac63e12ccb99c2f1
[ "MIT" ]
null
null
null
# This file is responsible for configuring your application # and its dependencies with the aid of the Mix.Config module. # # This configuration file is loaded before any dependency and # is restricted to this project. use Mix.Config # General application configuration config :resource_pool, ecto_repos: [ResourcePoo...
33.633333
86
0.767096
f73fec618e6fc9a802c7d5868732c3e2d2cf7e17
940
ex
Elixir
lib/shopix/admin/product.ex
gsarwate/shopix
21d0e85294ee92cb7573d1b5a5746af6824b9355
[ "MIT" ]
196
2019-05-05T15:59:32.000Z
2022-03-15T02:37:19.000Z
lib/shopix/admin/product.ex
gsarwate/shopix
21d0e85294ee92cb7573d1b5a5746af6824b9355
[ "MIT" ]
105
2019-05-04T19:04:40.000Z
2021-07-28T11:21:45.000Z
lib/shopix/admin/product.ex
gsarwate/shopix
21d0e85294ee92cb7573d1b5a5746af6824b9355
[ "MIT" ]
26
2019-05-05T19:40:52.000Z
2021-11-16T00:32:46.000Z
defmodule Shopix.Admin.Product do import Ecto.{Changeset, Query} use Shopix.TranslationFields, slug: :name, translated_fields: ~w(name description slug) alias Shopix.Repo alias Shopix.Schema.{Product, Group} def changeset(%Product{} = product, attrs) do product |> cast(attrs, [:sku, :price, :images_...
34.814815
91
0.704255
f7403c7ab511436128731cdadf912cc0a1fa10f4
401
ex
Elixir
lib/quadquizaminos_web/controller/auth.ex
sFractal-Podii/quadquizaminos
1693f2d1c6ffee33065dd2ba7d899ac4aa405762
[ "MIT" ]
null
null
null
lib/quadquizaminos_web/controller/auth.ex
sFractal-Podii/quadquizaminos
1693f2d1c6ffee33065dd2ba7d899ac4aa405762
[ "MIT" ]
null
null
null
lib/quadquizaminos_web/controller/auth.ex
sFractal-Podii/quadquizaminos
1693f2d1c6ffee33065dd2ba7d899ac4aa405762
[ "MIT" ]
null
null
null
defmodule QuadquizaminosWeb.Auth do @moduledoc """ Auth plug, checks for the current user and adds them to assigns. """ import Plug.Conn use QuadquizaminosWeb, :controller def init(opts), do: opts def call(conn, _opts) do if conn.assigns[:current_user] do conn else user_id = get_sess...
21.105263
66
0.680798
f7404f6424de9ad53b683f1d80613f6b949c82ae
55
exs
Elixir
config/test.exs
spencerdcarlson/prometheus_sidecar
fa81a6ba25e7dfa67c9e137f8f8c48c6b8d26036
[ "MIT" ]
null
null
null
config/test.exs
spencerdcarlson/prometheus_sidecar
fa81a6ba25e7dfa67c9e137f8f8c48c6b8d26036
[ "MIT" ]
null
null
null
config/test.exs
spencerdcarlson/prometheus_sidecar
fa81a6ba25e7dfa67c9e137f8f8c48c6b8d26036
[ "MIT" ]
null
null
null
use Mix.Config config :prometheus_sidecar, port: 2000
13.75
38
0.8
f74055d724ff9b372b4eeefe295a8b9d7cdc3d50
445
exs
Elixir
test/day5_test.exs
erljef/adventofcode-2020
fdae924b34eb9b324e529b02e2aed45a79078102
[ "WTFPL" ]
null
null
null
test/day5_test.exs
erljef/adventofcode-2020
fdae924b34eb9b324e529b02e2aed45a79078102
[ "WTFPL" ]
null
null
null
test/day5_test.exs
erljef/adventofcode-2020
fdae924b34eb9b324e529b02e2aed45a79078102
[ "WTFPL" ]
null
null
null
defmodule Day5Test do use ExUnit.Case import Day5 test "calculates position" do assert position("FBFBBFFRLR") == {44, 5} assert position("BFFFBBFRRR") == {70, 7} assert position("FFFBBBFRRR") == {14, 7} assert position("BBFFBBFRLL") == {102, 4} end test "calculates seat id" do assert se...
23.421053
45
0.608989
f7407a363153014ac76e3fc6ebb2d12debeb64c7
345
ex
Elixir
lib/sbom_poc/posts/status.ex
TraceyOnim/SbomPoc-sFractal
bac895a7eda61c47c00b8bbe682a6fda4dd7255c
[ "MIT" ]
2
2020-10-04T12:41:58.000Z
2021-03-11T20:51:26.000Z
lib/sbom_poc/posts/status.ex
TraceyOnim/SbomPoc-sFractal
bac895a7eda61c47c00b8bbe682a6fda4dd7255c
[ "MIT" ]
113
2020-07-25T02:29:33.000Z
2022-03-01T01:07:23.000Z
lib/sbom_poc/posts/status.ex
TraceyOnim/SbomPoc-sFractal
bac895a7eda61c47c00b8bbe682a6fda4dd7255c
[ "MIT" ]
5
2020-07-10T09:57:58.000Z
2021-03-11T20:51:29.000Z
defmodule SbomPoc.Post.Status do @moduledoc false @enforce_keys [:id, :author, :body] defstruct [:id, :author, :title, :body, :description, :tags] def build(filename, attrs, body) do [_, id] = filename |> Path.rootname() |> Path.split() |> Enum.take(-2) struct!(__MODULE__, [body: body, id: id] ++ Map.t...
31.363636
74
0.649275
f7408798cb2f5207c9515483c92eb02cecd7fa13
320
exs
Elixir
wabanex/priv/repo/migrations/20210623092157_create_users_table.exs
shonorio/nlwt_elixir
029b731c747e4b4954bc0197881b325fb80b4ab6
[ "MIT" ]
null
null
null
wabanex/priv/repo/migrations/20210623092157_create_users_table.exs
shonorio/nlwt_elixir
029b731c747e4b4954bc0197881b325fb80b4ab6
[ "MIT" ]
null
null
null
wabanex/priv/repo/migrations/20210623092157_create_users_table.exs
shonorio/nlwt_elixir
029b731c747e4b4954bc0197881b325fb80b4ab6
[ "MIT" ]
null
null
null
defmodule Wabanex.Repo.Migrations.CreateUsersTable do use Ecto.Migration def change do create table(:users) do add :email, :string, null: false add :name, :string, null: false add :password, :string, null: false timestamps() end create unique_index(:users, [:email]) end end
20
53
0.659375
f7408a1767ca3f5aef52cb21ff521574ec5c2aa9
18,531
ex
Elixir
clients/compute/lib/google_api/compute/v1/api/zone_operations.ex
yoshi-code-bot/elixir-google-api
cdb6032f01fac5ab704803113c39f2207e9e019d
[ "Apache-2.0" ]
null
null
null
clients/compute/lib/google_api/compute/v1/api/zone_operations.ex
yoshi-code-bot/elixir-google-api
cdb6032f01fac5ab704803113c39f2207e9e019d
[ "Apache-2.0" ]
null
null
null
clients/compute/lib/google_api/compute/v1/api/zone_operations.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...
53.869186
2,276
0.637904
f74093a01af9dc30f39daa59065bc3003a928533
3,312
ex
Elixir
apps/local_ledger/lib/local_ledger/cached_balance.ex
vanmil/ewallet
6c1aca95a83e0a9d93007670a40d8c45764a8122
[ "Apache-2.0" ]
null
null
null
apps/local_ledger/lib/local_ledger/cached_balance.ex
vanmil/ewallet
6c1aca95a83e0a9d93007670a40d8c45764a8122
[ "Apache-2.0" ]
null
null
null
apps/local_ledger/lib/local_ledger/cached_balance.ex
vanmil/ewallet
6c1aca95a83e0a9d93007670a40d8c45764a8122
[ "Apache-2.0" ]
null
null
null
defmodule LocalLedger.CachedBalance do @moduledoc """ This module is an interface to the abstract balances stored in DB. It is responsible for caching wallets and serves as an interface to retrieve the current balances (which will either be loaded from a cached balance or computed - or both). """ alias Loca...
28.307692
100
0.692029
f7409659682ae05999f3a76e4ea21255b728ef20
12,013
ex
Elixir
lib/real_world/datastore.ex
razuf/elixir-phoenix-liveview-realworld
182eb845b2b56f146468d9a095a8d5d72fc44f17
[ "MIT" ]
10
2020-09-21T23:24:53.000Z
2022-03-08T02:12:32.000Z
lib/real_world/datastore.ex
razuf/elixir-phoenix-liveview-realworld
182eb845b2b56f146468d9a095a8d5d72fc44f17
[ "MIT" ]
null
null
null
lib/real_world/datastore.ex
razuf/elixir-phoenix-liveview-realworld
182eb845b2b56f146468d9a095a8d5d72fc44f17
[ "MIT" ]
1
2021-06-26T19:46:09.000Z
2021-06-26T19:46:09.000Z
defmodule RealWorld.Datastore do @moduledoc """ The Datastore. """ import Ecto.Query, warn: false import Ecto.Changeset alias RealWorld.Api alias RealWorld.Repo alias RealWorld.User alias RealWorld.Article alias RealWorld.Comment alias RealWorld.Helpers alias RealWorld.Backend ### Backend ...
22.082721
98
0.582785
f740c74ea86a72b44ff3700032a441bb3e5fa764
203
exs
Elixir
apps/app/test/seed_sets/blog.exs
votiakov/petal
ec03551da6dadc0c3482b25a5f5dcd400c36db43
[ "MIT" ]
null
null
null
apps/app/test/seed_sets/blog.exs
votiakov/petal
ec03551da6dadc0c3482b25a5f5dcd400c36db43
[ "MIT" ]
null
null
null
apps/app/test/seed_sets/blog.exs
votiakov/petal
ec03551da6dadc0c3482b25a5f5dcd400c36db43
[ "MIT" ]
null
null
null
alias Legendary.Content.Post alias Legendary.Content.Repo %Post{ title: "Public post", name: "public-post", status: "publish", type: "post", date: ~N[2020-01-01T00:00:00], } |> Repo.insert!()
16.916667
32
0.660099
f740ec8e5256b08d1051ef510143a685364b945e
1,307
exs
Elixir
anagrams-phx/config/dev.exs
mcdickenson/anagrams
3132a98d5ac8b6175e134109386ce1d6a7270d94
[ "MIT" ]
null
null
null
anagrams-phx/config/dev.exs
mcdickenson/anagrams
3132a98d5ac8b6175e134109386ce1d6a7270d94
[ "MIT" ]
null
null
null
anagrams-phx/config/dev.exs
mcdickenson/anagrams
3132a98d5ac8b6175e134109386ce1d6a7270d94
[ "MIT" ]
null
null
null
use Mix.Config # For development, we disable any cache and enable # debugging and code reloading. # # The watchers configuration can be used to run external # watchers to your application. For example, we use it # with brunch.io to recompile .js and .css sources. config :anagrams, Anagrams.Endpoint, http: [port: 400...
29.704545
73
0.695486
f740ee2d6e3ce5b50fa1b466d25cf09b87e76d3c
381
exs
Elixir
apps/temporario/config/config.exs
achedeuzot/temporar.io
acbec140732614070996924633f254b56e56131f
[ "MIT" ]
2
2019-04-16T18:46:36.000Z
2020-09-18T12:58:57.000Z
apps/temporario/config/config.exs
achedeuzot/temporar.io
acbec140732614070996924633f254b56e56131f
[ "MIT" ]
6
2019-01-06T11:13:39.000Z
2022-02-10T15:15:24.000Z
apps/temporario/config/config.exs
achedeuzot/temporar.io
acbec140732614070996924633f254b56e56131f
[ "MIT" ]
null
null
null
# Since configuration is shared in umbrella projects, this file # should only configure the :temporario application itself # and only for organization purposes. All other config goes to # the umbrella root. use Mix.Config # config :temporario, # ecto_repos: [Temporario.Repo] config :temporario, :pastes, save_path...
27.214286
63
0.761155
f740f13c49c6f1e227f3b85b77dd9794c69f5ce1
1,043
ex
Elixir
test/support/conn_case.ex
Galanda/ectoproj
9dadeb27cc7b54034ab19363bc569d0fc4be671b
[ "MIT" ]
null
null
null
test/support/conn_case.ex
Galanda/ectoproj
9dadeb27cc7b54034ab19363bc569d0fc4be671b
[ "MIT" ]
null
null
null
test/support/conn_case.ex
Galanda/ectoproj
9dadeb27cc7b54034ab19363bc569d0fc4be671b
[ "MIT" ]
null
null
null
defmodule EctoprojWeb.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 datastructures and query the data layer. Finally, if th...
26.74359
70
0.720997
f74112dc9eae17fa27167c13d9c7cb27d24de22a
69
exs
Elixir
test/pbf_parser_test.exs
mpraski/pbf-parser
627cdf6518bec79724392afd4a7ec095a1998cbd
[ "MIT" ]
5
2019-02-11T14:25:57.000Z
2021-10-30T01:26:33.000Z
test/pbf_parser_test.exs
mpraski/pbf-parser
627cdf6518bec79724392afd4a7ec095a1998cbd
[ "MIT" ]
null
null
null
test/pbf_parser_test.exs
mpraski/pbf-parser
627cdf6518bec79724392afd4a7ec095a1998cbd
[ "MIT" ]
1
2019-08-30T14:09:36.000Z
2019-08-30T14:09:36.000Z
defmodule PBFParserTest do use ExUnit.Case doctest PBFParser end
13.8
26
0.811594
f741300a3880c572ca5aaff44b2bd75d28c1774c
11,473
ex
Elixir
lib/chronos.ex
nurugger07/chronos
be8fcbee7330d938dff87532cf108125bf952d05
[ "Apache-2.0" ]
72
2015-01-28T16:30:45.000Z
2021-05-21T03:33:16.000Z
lib/chronos.ex
nurugger07/chronos
be8fcbee7330d938dff87532cf108125bf952d05
[ "Apache-2.0" ]
9
2015-01-20T21:08:43.000Z
2018-04-04T02:57:05.000Z
lib/chronos.ex
nurugger07/chronos
be8fcbee7330d938dff87532cf108125bf952d05
[ "Apache-2.0" ]
15
2015-01-20T04:34:06.000Z
2019-02-10T22:42:12.000Z
defmodule Chronos do import Chronos.Validation @datetime1970 {{1970, 1, 1}, {0, 0, 0}} @doc """ Chronos is an Elixir library for working with dates and times. iex(1)> Chronos.today {2013, 8, 21} """ def today, do: :erlang.date def now, do: :calendar.now_to_datetime(:erlang.timestamp) @do...
27.982927
94
0.626166
f7418bf1e48b82350cf47117cf42b5d573800918
814
exs
Elixir
test/faker/internet/user_agent_test.exs
pharosproduction/faker
91deca51b3dc4bf8de75f81480e9f8880aa93886
[ "MIT" ]
null
null
null
test/faker/internet/user_agent_test.exs
pharosproduction/faker
91deca51b3dc4bf8de75f81480e9f8880aa93886
[ "MIT" ]
null
null
null
test/faker/internet/user_agent_test.exs
pharosproduction/faker
91deca51b3dc4bf8de75f81480e9f8880aa93886
[ "MIT" ]
null
null
null
defmodule InternetUserAgentTest do use ExUnit.Case, async: true alias Faker.Internet.UserAgent test "user_agent/0" do assert is_binary(UserAgent.user_agent) end test "bot_user_agent/0" do assert is_binary(UserAgent.bot_user_agent) end test "desktop_user_agent/0" do assert is_binary(UserAge...
21.421053
55
0.769042
f741aaabbc6ec36ef1b17a6faf4ebe2474b95245
3,424
exs
Elixir
test/plowman/git_cli_test.exs
azukiapp/plowman
38bbab040eb691f8402e3073329bb19a1f0b7b9a
[ "MIT" ]
11
2015-06-04T20:03:48.000Z
2019-12-09T13:19:09.000Z
test/plowman/git_cli_test.exs
azukiapp/plowman
38bbab040eb691f8402e3073329bb19a1f0b7b9a
[ "MIT" ]
null
null
null
test/plowman/git_cli_test.exs
azukiapp/plowman
38bbab040eb691f8402e3073329bb19a1f0b7b9a
[ "MIT" ]
1
2021-03-24T19:29:18.000Z
2021-03-24T19:29:18.000Z
Code.require_file "../../test_helper.exs", __FILE__ defmodule PlowmanGitCliTest do use Plowman.Test, async: false @target Plowman.GitCli @state @target.CliState setup_all do {:ok, [ state: @state.new(cm: 'cm', group: 'gp', channel: 'cl'), connect: Mock.new(Plowman.Connection), cmds: Mo...
32.609524
89
0.618867
f741aed3b03ced3bdb82f332be2e9af9153280ed
868
ex
Elixir
sequence/lib/sequence/server.ex
douchuan/elixir_intro
3c841405740c5842e868e99514ba271dbf6fd95f
[ "MIT" ]
1
2021-09-16T03:32:39.000Z
2021-09-16T03:32:39.000Z
sequence/lib/sequence/server.ex
douchuan/elixir_intro
3c841405740c5842e868e99514ba271dbf6fd95f
[ "MIT" ]
null
null
null
sequence/lib/sequence/server.ex
douchuan/elixir_intro
3c841405740c5842e868e99514ba271dbf6fd95f
[ "MIT" ]
null
null
null
defmodule Sequence.Server do use GenServer ###### # External API def start_link(_) do {:ok, _pid} = GenServer.start_link(__MODULE__, nil, name: __MODULE__) end def next_number do GenServer.call(__MODULE__, :next_number) end def increment_number(delta) do GenServer.cast(__MODULE__, {:incr...
21.170732
73
0.706221
f741c1b270d96e30f73d38bac06240151c040cd2
433
exs
Elixir
mix.exs
aforward-oss/ex_doc
ed9ad6db2945d758c9afb321376df27dd9aa6bd2
[ "Apache-2.0" ]
null
null
null
mix.exs
aforward-oss/ex_doc
ed9ad6db2945d758c9afb321376df27dd9aa6bd2
[ "Apache-2.0" ]
null
null
null
mix.exs
aforward-oss/ex_doc
ed9ad6db2945d758c9afb321376df27dd9aa6bd2
[ "Apache-2.0" ]
null
null
null
defmodule Mix.Tasks.Compile.Sundown do @shortdoc "Compiles sundown that ships with ExDoc" def run(_) do Mix.shell.info System.cmd("make share/markdown.so") end end defmodule ExDoc.Mixfile do use Mix.Project def project do [ app: :ex_doc, version: "0.1.0", elixir: "~> 0.10.3-dev", ...
20.619048
58
0.646651
f74200b5da2e822dda5f0a4e68d43478acbbc549
2,208
ex
Elixir
lib/ex_hl7/segment/default/msh.ex
eyrmedical/ex_hl7
430897ab791eb8f5127f6a0ddc443d01df9b33e1
[ "Apache-2.0" ]
38
2015-06-21T17:44:44.000Z
2021-10-03T08:46:08.000Z
lib/ex_hl7/segment/default/msh.ex
eyrmedical/ex_hl7
430897ab791eb8f5127f6a0ddc443d01df9b33e1
[ "Apache-2.0" ]
2
2019-08-27T17:27:37.000Z
2021-02-05T14:27:28.000Z
lib/ex_hl7/segment/default/msh.ex
eyrmedical/ex_hl7
430897ab791eb8f5127f6a0ddc443d01df9b33e1
[ "Apache-2.0" ]
14
2016-02-04T15:11:55.000Z
2021-11-13T20:28:19.000Z
defmodule HL7.Segment.Default.MSH do @moduledoc "2.16.9 MSH - message header segment" use HL7.Segment.Spec require HL7.Composite.Default.CM_MSH_9, as: CM_MSH_9 require HL7.Composite.Default.HD, as: HD segment "MSH" do field :field_separator, seq: 1, type: :string, len: 1 field ...
66.909091
98
0.550725
f7421195de258813bb977e5a9fae6e654ec2ad42
2,318
ex
Elixir
clients/identity_toolkit/lib/google_api/identity_toolkit/v3/model/identitytoolkit_relyingparty_download_account_request.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/identity_toolkit/lib/google_api/identity_toolkit/v3/model/identitytoolkit_relyingparty_download_account_request.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/identity_toolkit/lib/google_api/identity_toolkit/v3/model/identitytoolkit_relyingparty_download_account_request.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...
38
174
0.734254
f74253dcf3b44fad24bc77574894e7976cafa6e3
415
exs
Elixir
backend/priv/repo/migrations/20211112111450_add_serial_and_part_number_to_devices.exs
bejolithic/honeyland
8c4a0d3b56543648d3acb96cc6906df86526743b
[ "Apache-2.0" ]
null
null
null
backend/priv/repo/migrations/20211112111450_add_serial_and_part_number_to_devices.exs
bejolithic/honeyland
8c4a0d3b56543648d3acb96cc6906df86526743b
[ "Apache-2.0" ]
null
null
null
backend/priv/repo/migrations/20211112111450_add_serial_and_part_number_to_devices.exs
bejolithic/honeyland
8c4a0d3b56543648d3acb96cc6906df86526743b
[ "Apache-2.0" ]
null
null
null
defmodule Honeyland.Repo.Migrations.AddSerialAndPartNumberToDevices do use Ecto.Migration def change do alter table(:devices) do add :serial_number, :string add :part_number, references(:appliance_model_part_numbers, column: :part_number, type: :string, ...
23.055556
70
0.624096
f74258d20c47318da38be3cdf3f4c6edad0b59e4
8,272
exs
Elixir
test/typelixir/functions_extractor_test.exs
damif94/typelixir
73ca7cfdb79f57f8d39823f43cdf4322eba1b3e5
[ "MIT" ]
null
null
null
test/typelixir/functions_extractor_test.exs
damif94/typelixir
73ca7cfdb79f57f8d39823f43cdf4322eba1b3e5
[ "MIT" ]
null
null
null
test/typelixir/functions_extractor_test.exs
damif94/typelixir
73ca7cfdb79f57f8d39823f43cdf4322eba1b3e5
[ "MIT" ]
null
null
null
# defmodule Typelixir.FunctionsExtractorTest do # use ExUnit.Case # alias Typelixir.FunctionsExtractor # describe "extract_functions_file" do # @test_dir "test/tmp" # @env %{ # :functions => %{ # "ModuleA.ModuleB" => %{ # {:test, 2} => {{:tuple, [{:list, :integer}, :string]}, [{:...
42.639175
301
0.468931
f7426c3bd798e681c60ec6b972b26f99aac3da50
2,761
exs
Elixir
kousa/test/broth/_calls/get_current_room_users_test.exs
MrDogeBro/dogehouse
f36024ab161745825054be5d1f7835afc9fc12ec
[ "MIT" ]
1
2021-05-18T15:21:25.000Z
2021-05-18T15:21:25.000Z
kousa/test/broth/_calls/get_current_room_users_test.exs
MrDogeBro/dogehouse
f36024ab161745825054be5d1f7835afc9fc12ec
[ "MIT" ]
null
null
null
kousa/test/broth/_calls/get_current_room_users_test.exs
MrDogeBro/dogehouse
f36024ab161745825054be5d1f7835afc9fc12ec
[ "MIT" ]
null
null
null
defmodule BrothTest.GetCurrentRoomUsersTest 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) ...
27.888889
96
0.605578
f7426cc6687ecfe6492c5ab82acdb35fd82df153
22,627
ex
Elixir
lib/google_api/compute/v1/api/http_health_checks.ex
greg-rychlewski/google_api_compute
08061de03f1e9688d6ab69df08501485ecd3f97e
[ "Apache-2.0" ]
null
null
null
lib/google_api/compute/v1/api/http_health_checks.ex
greg-rychlewski/google_api_compute
08061de03f1e9688d6ab69df08501485ecd3f97e
[ "Apache-2.0" ]
null
null
null
lib/google_api/compute/v1/api/http_health_checks.ex
greg-rychlewski/google_api_compute
08061de03f1e9688d6ab69df08501485ecd3f97e
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
50.282222
434
0.650639
f7426fcf754e744a133201c709c6574c6bef678f
2,536
ex
Elixir
lib/hexpm/store/gcs.ex
Benjamin-Philip/hexpm
6f38244f81bbabd234c660f46ea973849ba77a7f
[ "Apache-2.0" ]
691
2017-03-08T09:15:45.000Z
2022-03-23T22:04:47.000Z
lib/hexpm/store/gcs.ex
Benjamin-Philip/hexpm
6f38244f81bbabd234c660f46ea973849ba77a7f
[ "Apache-2.0" ]
491
2017-03-07T12:58:42.000Z
2022-03-29T23:32:54.000Z
lib/hexpm/store/gcs.ex
Benjamin-Philip/hexpm
6f38244f81bbabd234c660f46ea973849ba77a7f
[ "Apache-2.0" ]
200
2017-03-12T23:03:39.000Z
2022-03-05T17:55:52.000Z
defmodule Hexpm.Store.GCS do import SweetXml, only: [sigil_x: 2] require Logger @behaviour Hexpm.Store @gs_xml_url "https://storage.googleapis.com" def list(bucket, prefix) do list_stream(bucket, prefix) end def get(bucket, key, _opts) do url = url(bucket, key) case Hexpm.HTTP.retry(fn ->...
22.846847
98
0.598975
f74295b2fe96533c5570b75e845a2d5f02b8894c
8,662
ex
Elixir
lib/credo/check/design/duplicated_code.ex
egze/credo
59ee836e9ee07c478421df3078a56230a86c3860
[ "MIT" ]
1
2019-11-11T21:48:20.000Z
2019-11-11T21:48:20.000Z
deps/credo/lib/credo/check/design/duplicated_code.ex
rwtrecs/rocketseat-nlw5-inmana
8ce8bc32e0bdd005c423394bb163945747b557e2
[ "MIT" ]
3
2021-06-20T14:51:14.000Z
2021-06-25T00:56:11.000Z
deps/credo/lib/credo/check/design/duplicated_code.ex
rwtrecs/rocketseat-nlw5-inmana
8ce8bc32e0bdd005c423394bb163945747b557e2
[ "MIT" ]
1
2020-06-28T00:36:07.000Z
2020-06-28T00:36:07.000Z
defmodule Credo.Check.Design.DuplicatedCode do use Credo.Check, run_on_all: true, base_priority: :higher, tags: [:controversial], param_defaults: [ mass_threshold: 40, nodes_threshold: 2, excluded_macros: [] ], explanations: [ check: """ Code should not be copy-pa...
28.123377
97
0.658393
f742c291c342fd91ff525b81d2dfda5f7f7441d2
284
ex
Elixir
lib/sutur/shops.ex
ab-zu/sutur
f314ed29b344fbe0139bd87ac01caf577b1d592e
[ "MIT" ]
1
2021-11-16T02:18:31.000Z
2021-11-16T02:18:31.000Z
lib/sutur/shops.ex
ab-zu/sutur
f314ed29b344fbe0139bd87ac01caf577b1d592e
[ "MIT" ]
null
null
null
lib/sutur/shops.ex
ab-zu/sutur
f314ed29b344fbe0139bd87ac01caf577b1d592e
[ "MIT" ]
null
null
null
defmodule Sutur.Shops do @spec products(Shop.t()) :: [map()] def products(%{url: url, access_token: access_token} = _shop) do {:ok, %Shopify.Response{code: 200, data: products}} = Shopify.session(url, access_token) |> Shopify.Product.all() products end end
25.818182
66
0.651408
f742d32e76f45cf8cfa4b999bf1839d93e9dca4a
1,468
ex
Elixir
lib/exshome_web/endpoint.ex
exshome/exshome
ef6b7a89f11dcd2016856dd49517b74aeebb6513
[ "MIT" ]
2
2021-12-21T16:32:56.000Z
2022-02-22T17:06:39.000Z
lib/exshome_web/endpoint.ex
exshome/exshome
ef6b7a89f11dcd2016856dd49517b74aeebb6513
[ "MIT" ]
null
null
null
lib/exshome_web/endpoint.ex
exshome/exshome
ef6b7a89f11dcd2016856dd49517b74aeebb6513
[ "MIT" ]
null
null
null
defmodule ExshomeWeb.Endpoint do use Phoenix.Endpoint, otp_app: :exshome # 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: "_exshome_k...
29.36
97
0.719346
f742f184a064882b348a2abe413986a9c4c80321
383
ex
Elixir
elixir/elixir-sips/samples/twitter_playground/web/router.ex
afronski/playground-erlang
6ac4b58b2fd717260c22a33284547d44a9b5038e
[ "MIT" ]
2
2015-12-09T02:16:51.000Z
2021-07-26T22:53:43.000Z
elixir/elixir-sips/samples/twitter_playground/web/router.ex
afronski/playground-erlang
6ac4b58b2fd717260c22a33284547d44a9b5038e
[ "MIT" ]
null
null
null
elixir/elixir-sips/samples/twitter_playground/web/router.ex
afronski/playground-erlang
6ac4b58b2fd717260c22a33284547d44a9b5038e
[ "MIT" ]
1
2016-05-08T18:40:31.000Z
2016-05-08T18:40:31.000Z
defmodule TwitterPlayground.Router do use Phoenix.Router pipeline :browser do plug :accepts, ["html"] plug :fetch_session plug :fetch_flash plug :protect_from_forgery end scope "/", TwitterPlayground do pipe_through :browser get "/", PageController, :index end socket "/ws", Twitte...
19.15
45
0.70235
f743145622c523080a48334560980928d259b4cf
364
ex
Elixir
apps/asf_web/lib/asf_web/live/top_menu.ex
LazarRistic/asf
2c557f06839a129b35174142c91f60696be2fa89
[ "MIT" ]
null
null
null
apps/asf_web/lib/asf_web/live/top_menu.ex
LazarRistic/asf
2c557f06839a129b35174142c91f60696be2fa89
[ "MIT" ]
null
null
null
apps/asf_web/lib/asf_web/live/top_menu.ex
LazarRistic/asf
2c557f06839a129b35174142c91f60696be2fa89
[ "MIT" ]
null
null
null
defmodule AsfWeb.Live.TopMenu do use AsfWeb, :live_view def mount(_params, session, socket) do socket = assign(socket, current_user: session["current_user"], is_open?: false ) {:ok, socket} end def handle_event("toggle_menu", _, socket) do {:noreply, assign(socket, is_...
20.222222
66
0.645604
f7431864661f59f2df024f729da47ce359696f77
1,123
ex
Elixir
portfolio/test/support/channel_case.ex
JackMaarek/portfolio
4423e67df870b14228edbc9e4ce3f3cdf1bccc2d
[ "MIT" ]
null
null
null
portfolio/test/support/channel_case.ex
JackMaarek/portfolio
4423e67df870b14228edbc9e4ce3f3cdf1bccc2d
[ "MIT" ]
11
2020-04-29T10:28:20.000Z
2020-04-29T11:03:13.000Z
portfolio/test/support/channel_case.ex
JackMaarek/portfolio
4423e67df870b14228edbc9e4ce3f3cdf1bccc2d
[ "MIT" ]
null
null
null
defmodule PortfolioWeb.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...
27.390244
71
0.730187