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
3fd1cd6f495d6eba6bd4a949907b53fc121738e6
194
ex
Elixir
lib/aliyun.ex
imeidada/aliyun-elixir-sdk
2d7315db1a45ff0b66443ae47e1386512cdc26e8
[ "MIT" ]
1
2019-04-29T14:26:12.000Z
2019-04-29T14:26:12.000Z
lib/aliyun.ex
imeidada/aliyun-elixir-sdk
2d7315db1a45ff0b66443ae47e1386512cdc26e8
[ "MIT" ]
null
null
null
lib/aliyun.ex
imeidada/aliyun-elixir-sdk
2d7315db1a45ff0b66443ae47e1386512cdc26e8
[ "MIT" ]
2
2020-12-31T06:01:13.000Z
2021-08-16T10:04:26.000Z
defmodule Aliyun do @moduledoc """ Documentation for Aliyun. """ @doc """ Hello world. ## Examples iex> Aliyun.hello :world """ def hello do :world end end
10.210526
27
0.561856
3fd1f219630b4159669760f838d0211778b5d1b7
340
ex
Elixir
lib/ex_hl7/segment/default/evn.ex
workpathco/ex_hl7
20f2fadb158e903cf1752f69cd0ecdeae377c2c3
[ "Apache-2.0" ]
38
2015-06-21T17:44:44.000Z
2021-10-03T08:46:08.000Z
lib/ex_hl7/segment/default/evn.ex
workpathco/ex_hl7
20f2fadb158e903cf1752f69cd0ecdeae377c2c3
[ "Apache-2.0" ]
2
2019-08-27T17:27:37.000Z
2021-02-05T14:27:28.000Z
lib/ex_hl7/segment/default/evn.ex
workpathco/ex_hl7
20f2fadb158e903cf1752f69cd0ecdeae377c2c3
[ "Apache-2.0" ]
14
2016-02-04T15:11:55.000Z
2021-11-13T20:28:19.000Z
defmodule HL7.Segment.Default.EVN do @moduledoc "3.4.1 EVN - event type segment" use HL7.Segment.Spec segment "EVN" do field :recorded_datetime, seq: 2, type: :datetime, len: 14 field :planned_event_datetime, seq: 3, type: :datetime, len: 14 field :event_reason_code, seq: 4, type: :strin...
30.909091
68
0.670588
3fd2245ee4da809a7147cc160ef99c9f4c9fbfa4
745
ex
Elixir
test/support/region_code_fixture.ex
msharp/ex_phone_number
ae8d4fb8d78b119b64fb926d4047ddf133d9998b
[ "MIT" ]
179
2016-05-18T17:51:14.000Z
2022-03-17T17:01:53.000Z
test/support/region_code_fixture.ex
msharp/ex_phone_number
ae8d4fb8d78b119b64fb926d4047ddf133d9998b
[ "MIT" ]
45
2016-05-18T15:46:39.000Z
2022-03-04T12:48:54.000Z
test/support/region_code_fixture.ex
msharp/ex_phone_number
ae8d4fb8d78b119b64fb926d4047ddf133d9998b
[ "MIT" ]
52
2016-06-06T05:21:00.000Z
2022-01-07T22:38:22.000Z
defmodule ExPhoneNumber.RegionCodeFixture do @moduledoc false def un001(), do: "001" def ad(), do: "AD" def ae(), do: "AE" def ao(), do: "AO" def aq(), do: "AQ" def ar(), do: "AR" def au(), do: "AU" def bb(), do: "BB" def br(), do: "BR" def bs(), do: "BS" def by(), do: "BY" def ca(), do: "CA"...
20.135135
44
0.469799
3fd227c112acb43c320e1580de582f98c09375b8
482
ex
Elixir
word_count/lib/word_count.ex
wkulikowski/homework
4def3bb3c7479953e859b84216b0848dba9c147c
[ "Apache-2.0" ]
69
2018-04-29T20:46:33.000Z
2022-03-11T04:12:40.000Z
word_count/lib/word_count.ex
wkulikowski/homework
4def3bb3c7479953e859b84216b0848dba9c147c
[ "Apache-2.0" ]
5
2018-04-30T05:35:58.000Z
2020-08-24T19:13:36.000Z
word_count/lib/word_count.ex
wkulikowski/homework
4def3bb3c7479953e859b84216b0848dba9c147c
[ "Apache-2.0" ]
18
2018-05-03T02:46:16.000Z
2021-05-01T17:46:55.000Z
defmodule WordCount do @moduledoc """ ## Examples iex> WordCount.run("./priv/be-proud-of-who-you-are.txt") [ {"i", 7}, {"to", 5}, {"my", 3}, {"and", 3}, {"me", 3}, {"when", 3}, {"be", 3}, {"a", 2}, {"am", 2}, {"can", 2} ] iex> WordCount.run("nonexistant.txt") "Fi...
14.176471
58
0.458506
3fd2a3c49d2eb87566d889b80c4042255e7649a5
1,168
ex
Elixir
lib/hap/services/window.ex
petermm/hap
550433a78bccd586ab6a7d8bf85765bfae58b13b
[ "MIT" ]
40
2019-10-26T01:58:42.000Z
2022-03-09T18:18:39.000Z
lib/hap/services/window.ex
petermm/hap
550433a78bccd586ab6a7d8bf85765bfae58b13b
[ "MIT" ]
11
2021-04-02T14:55:02.000Z
2021-11-05T13:49:55.000Z
lib/hap/services/window.ex
petermm/hap
550433a78bccd586ab6a7d8bf85765bfae58b13b
[ "MIT" ]
6
2020-05-18T09:34:14.000Z
2021-11-04T11:14:15.000Z
defmodule HAP.Services.Window do @moduledoc """ Struct representing an instance of the `public.hap.service.window` service """ defstruct current_position: nil, target_position: nil, position_state: nil, name: nil, hold_position: nil, obstruction_detec...
35.393939
90
0.682363
3fd2ba1939950563a587c2e0e5f8c3b2d68d770a
2,797
ex
Elixir
apps/nerves_hub_www/lib/nerves_hub_www_web/controllers/org_controller.ex
acrogenesis/nerves_hub_web
27f651dd64b40a034254b50805884f4efd679957
[ "Apache-2.0" ]
1
2019-10-13T10:56:28.000Z
2019-10-13T10:56:28.000Z
apps/nerves_hub_www/lib/nerves_hub_www_web/controllers/org_controller.ex
Eaftos/nerves_hub_web
ac03bd044b97265bf3ba3edd8da249d300fa3668
[ "Apache-2.0" ]
null
null
null
apps/nerves_hub_www/lib/nerves_hub_www_web/controllers/org_controller.ex
Eaftos/nerves_hub_web
ac03bd044b97265bf3ba3edd8da249d300fa3668
[ "Apache-2.0" ]
null
null
null
defmodule NervesHubWWWWeb.OrgController do use NervesHubWWWWeb, :controller alias Ecto.Changeset alias NervesHubWebCore.Accounts.Email alias NervesHubWebCore.Accounts alias NervesHubWebCore.Accounts.{Invite, OrgKey, OrgUser} alias NervesHubWebCore.Mailer plug(:validate_role, [org: :admin] when action in...
29.442105
94
0.601359
3fd2bab42a41fe674e887dd5f5c027a6aab21db1
240
ex
Elixir
test/support/stubs.ex
philosodad/near_earth
fe8de1a41d4672454d2e709ea9d911c352d18d8e
[ "MIT" ]
1
2016-11-24T08:53:51.000Z
2016-11-24T08:53:51.000Z
test/support/stubs.ex
philosodad/near_earth
fe8de1a41d4672454d2e709ea9d911c352d18d8e
[ "MIT" ]
null
null
null
test/support/stubs.ex
philosodad/near_earth
fe8de1a41d4672454d2e709ea9d911c352d18d8e
[ "MIT" ]
null
null
null
defmodule NearEarthTest.Stubs do def asteroid do {:ok, asteroid} = File.read("test/support/asteroid.json") asteroid end def asteroids do {:ok, asteroids} = File.read("test/support/asteroids.json") asteroids end end
20
63
0.691667
3fd2bbb3f1dba739504885d1a84fa60f62b69879
259
ex
Elixir
lib/hedwig_discord.ex
dysnomian/hedwig_discord
3b01888db7c0a1addb6ad187a5770b4cc9a5aa77
[ "MIT" ]
null
null
null
lib/hedwig_discord.ex
dysnomian/hedwig_discord
3b01888db7c0a1addb6ad187a5770b4cc9a5aa77
[ "MIT" ]
1
2018-05-18T21:49:06.000Z
2018-05-18T21:49:06.000Z
lib/hedwig_discord.ex
dysnomian/hedwig_discord
3b01888db7c0a1addb6ad187a5770b4cc9a5aa77
[ "MIT" ]
1
2018-04-15T19:30:44.000Z
2018-04-15T19:30:44.000Z
defmodule HedwigDiscord do use Application def start(_, _) do import Supervisor.Spec, warn: false children = [ supervisor(HedwigDiscord.ConnectionSupervisor, []) ] Supervisor.start_link(children, strategy: :one_for_one) end end
18.5
59
0.706564
3fd2fec2900ace28cac18ffb295b6cbf4ba8722c
3,052
ex
Elixir
clients/firestore/lib/google_api/firestore/v1beta1/model/write.ex
CertifiedrLi/elixir-google-api
4e0e261dd06ee7753c356cca413783f3facd5f03
[ "Apache-2.0" ]
null
null
null
clients/firestore/lib/google_api/firestore/v1beta1/model/write.ex
CertifiedrLi/elixir-google-api
4e0e261dd06ee7753c356cca413783f3facd5f03
[ "Apache-2.0" ]
null
null
null
clients/firestore/lib/google_api/firestore/v1beta1/model/write.ex
CertifiedrLi/elixir-google-api
4e0e261dd06ee7753c356cca413783f3facd5f03
[ "Apache-2.0" ]
1
2018-07-28T20:50:50.000Z
2018-07-28T20:50:50.000Z
# Copyright 2018 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
44.882353
565
0.739515
3fd3309a9f588d0f818ebdb57d43405855bd883b
675
exs
Elixir
mix.exs
jaroslav-kubicek/elixir-in-action
8add6a9a01d741c554d7395417838a8e2f5b713a
[ "MIT" ]
null
null
null
mix.exs
jaroslav-kubicek/elixir-in-action
8add6a9a01d741c554d7395417838a8e2f5b713a
[ "MIT" ]
null
null
null
mix.exs
jaroslav-kubicek/elixir-in-action
8add6a9a01d741c554d7395417838a8e2f5b713a
[ "MIT" ]
null
null
null
defmodule TodoElixir.Mixfile do use Mix.Project def project do [app: :todoElixir, version: "0.1.0", elixir: "~> 1.3", build_embedded: Mix.env == :prod, start_permanent: Mix.env == :prod, deps: deps()] end # Configuration for the OTP application # # Type "mix help compile.app" ...
20.454545
77
0.61037
3fd38d52b55d1ea3c317fda1d269d0358720e2d7
14,656
exs
Elixir
test/elixir/test/partition_mango_test.exs
qa829/couchdb
9acaa84a2828a2def3777580fffbe080da42bb0d
[ "Apache-2.0" ]
1
2019-03-17T03:56:29.000Z
2019-03-17T03:56:29.000Z
test/elixir/test/partition_mango_test.exs
qa829/couchdb
9acaa84a2828a2def3777580fffbe080da42bb0d
[ "Apache-2.0" ]
null
null
null
test/elixir/test/partition_mango_test.exs
qa829/couchdb
9acaa84a2828a2def3777580fffbe080da42bb0d
[ "Apache-2.0" ]
null
null
null
defmodule PartitionMangoTest do use CouchTestCase import PartitionHelpers, except: [get_partitions: 1] @moduledoc """ Test Partition functionality for mango """ def create_index(db_name, fields \\ ["some"], opts \\ %{}) do default_index = %{ index: %{ fields: fields } } ind...
22.072289
86
0.53664
3fd39b352fff7763cd1a41933d54552f08003a9a
6,480
ex
Elixir
lib/whatChat/discussions/discussions.ex
Perfect-SoftwareEngineer/vue-elegant-chat
4656bea123a6454584a163260899f0b4e59e073a
[ "MIT", "BSD-3-Clause" ]
52
2019-02-01T16:34:34.000Z
2022-03-24T12:02:47.000Z
lib/whatChat/discussions/discussions.ex
mbuala/WhatChat
44851a8b3afe0a8825b5e53e327c2f777065a60c
[ "MIT" ]
30
2019-07-19T00:56:47.000Z
2022-03-26T01:41:41.000Z
lib/whatChat/discussions/discussions.ex
mbuala/WhatChat
44851a8b3afe0a8825b5e53e327c2f777065a60c
[ "MIT" ]
23
2019-02-02T10:32:09.000Z
2022-01-24T02:00:29.000Z
defmodule WhatChat.Discussions do @moduledoc """ The Discussions context. """ import Ecto.Query, warn: false alias WhatChat.Repo alias WhatChat.Discussions.Conversation @doc """ Returns the list of conversations. ## Examples iex> list_conversations() [%Conversation{}, ...] """ de...
20.377358
86
0.651543
3fd3a2c65f46560f53f3cde64ac210597cb8aac9
721
ex
Elixir
apps/cashtrail_web/lib/cashtrail_web/gettext.ex
maxmaccari/cashtrail
74ec7ff1f8a41299a6086dc98719a32cbfbe9ee7
[ "MIT" ]
6
2020-05-02T01:12:24.000Z
2020-06-23T12:31:32.000Z
apps/cashtrail_web/lib/cashtrail_web/gettext.ex
maxmaccari/cashtrail
74ec7ff1f8a41299a6086dc98719a32cbfbe9ee7
[ "MIT" ]
16
2020-05-02T00:07:51.000Z
2021-06-11T01:54:11.000Z
apps/cashtrail_web/lib/cashtrail_web/gettext.ex
maxmaccari/cashtrail
74ec7ff1f8a41299a6086dc98719a32cbfbe9ee7
[ "MIT" ]
null
null
null
defmodule CashtrailWeb.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 CashtrailWeb.Gettext # Simple translation gettext("Here ...
28.84
72
0.682386
3fd3a75650db3727f53aafebb75c096e2712db89
903
ex
Elixir
clients/kratos/elixir/lib/ory/model/submit_self_service_settings_flow_with_lookup_method_body.ex
ory/sdk-generator
958314d130922ad6f20f439b5230141a832231a5
[ "Apache-2.0" ]
null
null
null
clients/kratos/elixir/lib/ory/model/submit_self_service_settings_flow_with_lookup_method_body.ex
ory/sdk-generator
958314d130922ad6f20f439b5230141a832231a5
[ "Apache-2.0" ]
null
null
null
clients/kratos/elixir/lib/ory/model/submit_self_service_settings_flow_with_lookup_method_body.ex
ory/sdk-generator
958314d130922ad6f20f439b5230141a832231a5
[ "Apache-2.0" ]
null
null
null
# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). # https://openapi-generator.tech # Do not edit the class manually. defmodule Ory.Model.SubmitSelfServiceSettingsFlowWithLookupMethodBody do @moduledoc """ """ @derive [Poison.Encoder] defstruct [ :"csrf_token", ...
25.083333
91
0.688815
3fd3bace59841659d826787227840455cdad9472
1,084
exs
Elixir
clients/spectrum/mix.exs
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/spectrum/mix.exs
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/spectrum/mix.exs
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
1
2018-07-28T20:50:50.000Z
2018-07-28T20:50:50.000Z
defmodule GoogleApi.Spectrum.V1explorer.Mixfile do use Mix.Project def project do [app: :google_api_spectrum, version: "0.0.1", elixir: "~> 1.4", build_embedded: Mix.env == :prod, start_permanent: Mix.env == :prod, description: description(), package: package(), deps: deps(),...
23.06383
108
0.585793
3fd3c04b979229e3205c3e59ec964947e6e52aa0
10,324
exs
Elixir
test/remote_ip/headers/generic_test.exs
almirsarajcic/remote_ip
ccaa8b93aadcaae356f149e6253fe9671bc455d9
[ "MIT" ]
null
null
null
test/remote_ip/headers/generic_test.exs
almirsarajcic/remote_ip
ccaa8b93aadcaae356f149e6253fe9671bc455d9
[ "MIT" ]
null
null
null
test/remote_ip/headers/generic_test.exs
almirsarajcic/remote_ip
ccaa8b93aadcaae356f149e6253fe9671bc455d9
[ "MIT" ]
null
null
null
defmodule RemoteIp.Headers.GenericTest do use ExUnit.Case, async: true alias RemoteIp.Headers.Generic doctest Generic describe "parsing" do test "bad IPs" do assert [] == Generic.parse("") assert [] == Generic.parse(" ") assert [] == Generic.parse("not_an_ip") assert [] == Gen...
67.038961
139
0.618559
3fd4001f966c790303c43a6b070248d5f5ca6b1d
1,200
ex
Elixir
lib/media_server_web/controllers/stream_episode_controller.ex
MNDL-27/midarr-server
b749707a1777205cea2d93349cde2ef922e527ec
[ "MIT" ]
null
null
null
lib/media_server_web/controllers/stream_episode_controller.ex
MNDL-27/midarr-server
b749707a1777205cea2d93349cde2ef922e527ec
[ "MIT" ]
null
null
null
lib/media_server_web/controllers/stream_episode_controller.ex
MNDL-27/midarr-server
b749707a1777205cea2d93349cde2ef922e527ec
[ "MIT" ]
null
null
null
defmodule MediaServerWeb.StreamEpisodeController do use MediaServerWeb, :controller alias MediaServerWeb.Repositories.Episodes def show(%{req_headers: headers} = conn, %{"episode" => id}) do send_video(conn, headers, Episodes.get_episode_path(id)) end defp get_offset(headers) do case List.keyfind(h...
26.666667
90
0.615833
3fd4063ac70e3189b6018efeca2415a38f1c95a4
1,054
exs
Elixir
apps/mishka_user/mix.exs
mojtaba-naserei/mishka-cms
1f31f61347bab1aae6ba0d47c5515a61815db6c9
[ "Apache-2.0" ]
35
2021-06-26T09:05:50.000Z
2022-03-30T15:41:22.000Z
apps/mishka_user/mix.exs
iArazar/mishka-cms
8b579101d607d91e80834527c1508fe5f4ceefef
[ "Apache-2.0" ]
101
2021-01-01T09:54:07.000Z
2022-03-28T10:02:24.000Z
apps/mishka_user/mix.exs
iArazar/mishka-cms
8b579101d607d91e80834527c1508fe5f4ceefef
[ "Apache-2.0" ]
8
2021-01-17T17:08:07.000Z
2022-03-11T16:12:06.000Z
defmodule MishkaUser.MixProject do use Mix.Project def project do [ app: :mishka_user, version: "0.1.0", build_path: "../../_build", config_path: "../../config/config.exs", deps_path: "../../deps", lockfile: "../../mix.lock", elixir: "~> 1.12", compilers: [:gette...
25.707317
117
0.564516
3fd43dcccdf30afea9f3beae3ab8e3938bac41b9
583
exs
Elixir
twitter/test/twitter_web/views/error_view_test.exs
SushmitDharurkar/Twitter-Clone
1f0c6126d79877549fc312e263c69a6e44dc3254
[ "MIT" ]
null
null
null
twitter/test/twitter_web/views/error_view_test.exs
SushmitDharurkar/Twitter-Clone
1f0c6126d79877549fc312e263c69a6e44dc3254
[ "MIT" ]
null
null
null
twitter/test/twitter_web/views/error_view_test.exs
SushmitDharurkar/Twitter-Clone
1f0c6126d79877549fc312e263c69a6e44dc3254
[ "MIT" ]
null
null
null
defmodule TwitterWeb.ErrorViewTest do use TwitterWeb.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(TwitterWeb.ErrorView, "404.html", []) == "Page not found" end test "render 500....
26.5
68
0.684391
3fd49463eeb34efe0828c5fcdbba90c017f96595
907
ex
Elixir
lib/docusign/model/template_summary.ex
gaslight/docusign_elixir
d9d88d53dd85d32a39d537bade9db28d779414e6
[ "MIT" ]
4
2020-12-21T12:50:13.000Z
2022-01-12T16:50:43.000Z
lib/docusign/model/template_summary.ex
gaslight/docusign_elixir
d9d88d53dd85d32a39d537bade9db28d779414e6
[ "MIT" ]
12
2018-09-18T15:26:34.000Z
2019-09-28T15:29:39.000Z
lib/docusign/model/template_summary.ex
gaslight/docusign_elixir
d9d88d53dd85d32a39d537bade9db28d779414e6
[ "MIT" ]
15
2020-04-29T21:50:16.000Z
2022-02-11T18:01:51.000Z
# NOTE: This class is auto generated by the swagger code generator program. # https://github.com/swagger-api/swagger-codegen.git # Do not edit the class manually. defmodule DocuSign.Model.TemplateSummary do @moduledoc """ """ @derive [Poison.Encoder] defstruct [ :applied, :documentId, :documentNa...
22.675
82
0.627343
3fd497ca0745e0dd761c2d232d41aecd6bb8f281
434
ex
Elixir
lib/nimble_template/hex/hex_client.ex
nimblehq/elixir-templates
1425c32084b3814d630d2db28a28e39ec8cce59e
[ "MIT" ]
34
2020-10-04T17:44:27.000Z
2022-03-21T07:13:02.000Z
lib/nimble_template/hex/hex_client.ex
nimblehq/elixir-templates
1425c32084b3814d630d2db28a28e39ec8cce59e
[ "MIT" ]
101
2020-06-10T03:35:10.000Z
2022-03-31T03:44:13.000Z
lib/nimble_template/hex/hex_client.ex
nimblehq/elixir-templates
1425c32084b3814d630d2db28a28e39ec8cce59e
[ "MIT" ]
2
2021-03-29T14:35:22.000Z
2021-11-25T21:39:30.000Z
defmodule NimbleTemplate.Hex.HexClient do @moduledoc false alias NimbleTemplate.HttpClient.HttpAdapter @base_url "https://hex.pm/api/" def get(path) do url = @base_url <> URI.encode(path) case HttpAdapter.get(url) do {:ok, %HTTPoison.Response{status_code: 200, body: body}} -> {:ok, Jas...
21.7
65
0.645161
3fd4c338d9bba1f17d65f4b2aec57e1470378222
1,757
ex
Elixir
clients/android_device_provisioning/lib/google_api/android_device_provisioning/v1/model/update_device_metadata_request.ex
leandrocp/elixir-google-api
a86e46907f396d40aeff8668c3bd81662f44c71e
[ "Apache-2.0" ]
null
null
null
clients/android_device_provisioning/lib/google_api/android_device_provisioning/v1/model/update_device_metadata_request.ex
leandrocp/elixir-google-api
a86e46907f396d40aeff8668c3bd81662f44c71e
[ "Apache-2.0" ]
null
null
null
clients/android_device_provisioning/lib/google_api/android_device_provisioning/v1/model/update_device_metadata_request.ex
leandrocp/elixir-google-api
a86e46907f396d40aeff8668c3bd81662f44c71e
[ "Apache-2.0" ]
1
2020-11-10T16:58:27.000Z
2020-11-10T16:58:27.000Z
# Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the &quot;License&quot;); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
33.150943
104
0.76494
3fd4d611e972f776718893763e7da75880e97de0
3,349
exs
Elixir
apps/snitch_core/test/data/schema/package_test.exs
VeryBigThings/avia
7ce5d5b244ae0dfddc30c09c17efe27f1718a4c9
[ "MIT" ]
1
2021-04-08T22:29:19.000Z
2021-04-08T22:29:19.000Z
apps/snitch_core/test/data/schema/package_test.exs
VeryBigThings/avia
7ce5d5b244ae0dfddc30c09c17efe27f1718a4c9
[ "MIT" ]
null
null
null
apps/snitch_core/test/data/schema/package_test.exs
VeryBigThings/avia
7ce5d5b244ae0dfddc30c09c17efe27f1718a4c9
[ "MIT" ]
null
null
null
defmodule Snitch.Data.Schema.PackageTest do use ExUnit.Case, async: true use Snitch.DataCase import Ecto.Changeset, only: [fetch_change: 2, apply_changes: 1] alias Snitch.Data.Schema.{Package, ShippingMethod} @params %{ number: "P01", state: "pending", shipping_methods: [%ShippingMethod{}], ...
26.370079
89
0.607345
3fd4da5a62da15738dc1b87b52f031d9410a9947
1,119
exs
Elixir
config/config.exs
tsg-global/mailmaid
1f76beb4a7fe0f397a239baa189a3dac4d5b5602
[ "MIT" ]
6
2018-08-05T14:57:46.000Z
2021-03-19T12:28:43.000Z
config/config.exs
tsg-global/mailmaid
1f76beb4a7fe0f397a239baa189a3dac4d5b5602
[ "MIT" ]
2
2018-05-14T00:41:08.000Z
2018-08-24T19:52:17.000Z
config/config.exs
tsg-global/mailmaid
1f76beb4a7fe0f397a239baa189a3dac4d5b5602
[ "MIT" ]
2
2019-11-27T21:04:11.000Z
2020-07-11T10:50:48.000Z
# This file is responsible for configuring your application # and its dependencies with the aid of the Mix.Config module. use Mix.Config # This configuration is loaded before any dependency and is restricted # to this project. If another project depends on this project, this # file won't be loaded nor affect the paren...
36.096774
73
0.751564
3fd4edd0973cf37fa212e46ec4c8aba9a3d50233
1,005
ex
Elixir
lesson_08/demo/i18n/test/support/conn_case.ex
martijnmeeldijk/ip_major
867f09975aa8db0b308081216ace639c5677446b
[ "BSD-3-Clause" ]
1
2021-09-22T09:56:35.000Z
2021-09-22T09:56:35.000Z
lesson_08/demo/i18n/test/support/conn_case.ex
martijnmeeldijk/ip_major
867f09975aa8db0b308081216ace639c5677446b
[ "BSD-3-Clause" ]
7
2020-03-14T19:30:29.000Z
2022-02-27T01:20:40.000Z
lesson_08/demo/i18n/test/support/conn_case.ex
martijnmeeldijk/ip_major
867f09975aa8db0b308081216ace639c5677446b
[ "BSD-3-Clause" ]
11
2020-02-13T14:52:45.000Z
2020-08-03T12:18:56.000Z
defmodule I18nWeb.ConnCase do @moduledoc """ This module defines the test case to be used by tests that require setting up a connection. Such tests rely on `Phoenix.ConnTest` and also import other functionality to make it easier to build common data structures and query the data layer. Finally, if the t...
28.714286
60
0.734328
3fd4fd7a5e9a9370eda850f161c746133bce0b2f
476
ex
Elixir
lib/ethereum/application.ex
alanwilhelm/elixir-ethereum
42aba002e485524be2981ae05b6f7134f8439dc4
[ "MIT" ]
null
null
null
lib/ethereum/application.ex
alanwilhelm/elixir-ethereum
42aba002e485524be2981ae05b6f7134f8439dc4
[ "MIT" ]
null
null
null
lib/ethereum/application.ex
alanwilhelm/elixir-ethereum
42aba002e485524be2981ae05b6f7134f8439dc4
[ "MIT" ]
null
null
null
defmodule Ethereum.Application do @moduledoc false use Application def start(_type, _args) do import Supervisor.Spec, warn: false # Define workers and child supervisors to be supervised children = [ # Starts a worker by calling: Ethereum.Worker.start_link(arg1, arg2, arg3) # worker(Eth...
25.052632
80
0.701681
3fd51e798184237cf5a9169460135df11b022210
807
ex
Elixir
lib/tempfile.ex
sleepycat/tempfile
69bb1cddca7d5a35c09e691518907d125ef7b619
[ "MIT" ]
null
null
null
lib/tempfile.ex
sleepycat/tempfile
69bb1cddca7d5a35c09e691518907d125ef7b619
[ "MIT" ]
null
null
null
lib/tempfile.ex
sleepycat/tempfile
69bb1cddca7d5a35c09e691518907d125ef7b619
[ "MIT" ]
null
null
null
require Tempfile.Random defmodule Tempfile do alias Tempfile.Random, as: Random def open do path = Path.join([System.tmp_dir!, generate_filename]) {:ok, file} = File.open(path, [:read, :write]) :ok = File.chmod!(path, 0o600) {:ok, file, path} end def close file do File.close file end ...
20.692308
68
0.677819
3fd541711c32c1e97e8d6dc5e1c251fc4d9acc74
682
ex
Elixir
services/fc_inventory/lib/fc_inventory/command_handlers/location_handler.ex
fleadope/freshcom
8d5944befaa6eea8d31e5f5995939be2a1a44262
[ "BSD-3-Clause" ]
46
2018-10-13T23:18:13.000Z
2021-08-07T07:46:51.000Z
services/fc_inventory/lib/fc_inventory/command_handlers/location_handler.ex
fleadope/freshcom
8d5944befaa6eea8d31e5f5995939be2a1a44262
[ "BSD-3-Clause" ]
25
2018-10-14T00:56:07.000Z
2019-12-23T19:41:02.000Z
services/fc_inventory/lib/fc_inventory/command_handlers/location_handler.ex
fleadope/freshcom
8d5944befaa6eea8d31e5f5995939be2a1a44262
[ "BSD-3-Clause" ]
5
2018-12-16T04:39:51.000Z
2020-10-01T12:17:03.000Z
defmodule FCInventory.LocationHandler do @moduledoc false @behaviour Commanded.Commands.Handler use FCBase, :command_handler import FCInventory.LocationPolicy alias FCInventory.{AddLocation} alias FCInventory.{LocationAdded} alias FCInventory.Location def handle(%Location{id: nil} = state, %AddLoca...
24.357143
82
0.687683
3fd5426def612b4a243c1174b3f3c6b1333d5de3
1,331
exs
Elixir
test/vintage_net_wizard/ap_mode_test.exs
paulanthonywilson/vintage_net_wizard
338877f79b96e9ba1c2482260b95a1a44d7c66d8
[ "Apache-2.0" ]
50
2019-08-02T18:56:53.000Z
2022-02-19T20:00:52.000Z
test/vintage_net_wizard/ap_mode_test.exs
paulanthonywilson/vintage_net_wizard
338877f79b96e9ba1c2482260b95a1a44d7c66d8
[ "Apache-2.0" ]
93
2019-06-21T02:36:09.000Z
2022-03-21T09:47:27.000Z
test/vintage_net_wizard/ap_mode_test.exs
paulanthonywilson/vintage_net_wizard
338877f79b96e9ba1c2482260b95a1a44d7c66d8
[ "Apache-2.0" ]
14
2019-09-16T23:50:11.000Z
2022-03-18T16:36:21.000Z
defmodule VintageNetWizard.APModeTest do use ExUnit.Case, async: true alias VintageNetWizard.APMode test "AP mode configuration has expected content" do config = APMode.ap_mode_configuration("hostname", "our_name") expected = %{ type: VintageNetWiFi, ipv4: %{address: {192, 168, 0, 1}, metho...
28.319149
97
0.602554
3fd577905145122fe64f9326fdff84627932e8d4
59
ex
Elixir
lib/oli_web/views/editor_test_view.ex
malav2110/oli-torus
8af64e762a7c8a2058bd27a7ab8e96539ffc055f
[ "MIT" ]
45
2020-04-17T15:40:27.000Z
2022-03-25T00:13:30.000Z
lib/oli_web/views/editor_test_view.ex
malav2110/oli-torus
8af64e762a7c8a2058bd27a7ab8e96539ffc055f
[ "MIT" ]
944
2020-02-13T02:37:01.000Z
2022-03-31T17:50:07.000Z
lib/oli_web/views/editor_test_view.ex
malav2110/oli-torus
8af64e762a7c8a2058bd27a7ab8e96539ffc055f
[ "MIT" ]
23
2020-07-28T03:36:13.000Z
2022-03-17T14:29:02.000Z
defmodule OliWeb.EditorTestView do use OliWeb, :view end
14.75
34
0.79661
3fd57fe97d3cad0266193f76e40e9942f0cc8f35
7,091
ex
Elixir
lib/mongo/cursor.ex
kamciokodzi/mongodb-old
99e96a4ae6b963914ab733a8ba551ad1fcf75b2c
[ "Apache-2.0" ]
null
null
null
lib/mongo/cursor.ex
kamciokodzi/mongodb-old
99e96a4ae6b963914ab733a8ba551ad1fcf75b2c
[ "Apache-2.0" ]
null
null
null
lib/mongo/cursor.ex
kamciokodzi/mongodb-old
99e96a4ae6b963914ab733a8ba551ad1fcf75b2c
[ "Apache-2.0" ]
null
null
null
import Record, only: [defrecordp: 2] alias Mongo.Connection alias Mongo.ReadResult alias Mongo.Pool defmodule Mongo.Cursor do @moduledoc false defstruct [:pool, :coll, :query, :select, :opts] defimpl Enumerable do defrecordp :state, [:pool, :cursor, :buffer, :limit] def reduce(%{pool: pool, coll: coll...
27.917323
136
0.555775
3fd593af65b39a816ab06e2fef0ab32be328d2eb
1,299
ex
Elixir
lib/conduit/publish_route.ex
peek-travel/conduit
f37b96513769bdf70c89eebd77bb03023d248158
[ "MIT" ]
119
2016-11-21T13:19:22.000Z
2021-11-07T17:29:05.000Z
lib/conduit/publish_route.ex
peek-travel/conduit
f37b96513769bdf70c89eebd77bb03023d248158
[ "MIT" ]
104
2018-02-02T20:42:46.000Z
2021-08-03T05:36:09.000Z
lib/conduit/publish_route.ex
peek-travel/conduit
f37b96513769bdf70c89eebd77bb03023d248158
[ "MIT" ]
21
2018-08-03T02:38:21.000Z
2022-03-16T18:26:58.000Z
defmodule Conduit.PublishRoute do @moduledoc """ Configuration for a publish route """ @type name :: atom @type pipelines :: [atom] @type opts :: Keyword.t() | (() -> Keyword.t()) @type t :: %__MODULE__{ name: atom, opts: Keyword.t(), pipelines: [atom] } defstruct...
28.866667
111
0.6097
3fd5c90dd42a2cb56eca642a8a32c572edd39d78
1,888
ex
Elixir
lib/changex/formatter/terminal.ex
georgelima/changex
cb91da8c3b10c05acafd1fd49dae4ed6365a197b
[ "MIT" ]
null
null
null
lib/changex/formatter/terminal.ex
georgelima/changex
cb91da8c3b10c05acafd1fd49dae4ed6365a197b
[ "MIT" ]
null
null
null
lib/changex/formatter/terminal.ex
georgelima/changex
cb91da8c3b10c05acafd1fd49dae4ed6365a197b
[ "MIT" ]
null
null
null
defmodule Changex.Formatter.Terminal do use Changex.Formatter @moduledoc """ Output the formatted changelog to the terminal. """ @doc """ Take a map of commits in the following format: %{ fix: %{ scope1: [commit1, commit2], scope2: [commit5, commit6] } fe...
23.02439
76
0.586864
3fd5d2e8c3cb01ff3edbe9c077508c6cf3f6bf6d
8,424
ex
Elixir
lib/cog/pipeline/error_sink.ex
matusf/cog
71708301c7dc570fb0d3498a50f47a70ef957788
[ "Apache-2.0" ]
1,003
2016-02-23T17:21:12.000Z
2022-02-20T14:39:35.000Z
lib/cog/pipeline/error_sink.ex
matusf/cog
71708301c7dc570fb0d3498a50f47a70ef957788
[ "Apache-2.0" ]
906
2016-02-22T22:54:19.000Z
2022-03-11T15:19:43.000Z
lib/cog/pipeline/error_sink.ex
matusf/cog
71708301c7dc570fb0d3498a50f47a70ef957788
[ "Apache-2.0" ]
95
2016-02-23T13:42:31.000Z
2021-11-30T14:39:55.000Z
defmodule Cog.Pipeline.ErrorSink do alias Experimental.GenStage alias Cog.Chat.Adapter, as: ChatAdapter alias Cog.Events.PipelineEvent alias Cog.Pipeline alias Cog.Pipeline.{Destination, AbortSignal, DoneSignal, Errors} alias Cog.Template.Evaluator @moduledoc ~s""" Specialized `GenStage` consumer to h...
36.626087
126
0.672365
3fd5f8ca37317a1b1ebc3e58f085f4e4e4a72660
77
ex
Elixir
lib/source_academy_web/views/material_view.ex
trewdys/source-academy2-debug
6146e1fac81472184877f47aa32dee7fdceb4fb6
[ "Unlicense" ]
null
null
null
lib/source_academy_web/views/material_view.ex
trewdys/source-academy2-debug
6146e1fac81472184877f47aa32dee7fdceb4fb6
[ "Unlicense" ]
null
null
null
lib/source_academy_web/views/material_view.ex
trewdys/source-academy2-debug
6146e1fac81472184877f47aa32dee7fdceb4fb6
[ "Unlicense" ]
null
null
null
defmodule SourceAcademyWeb.MaterialView do use SourceAcademyWeb, :view end
19.25
42
0.844156
3fd636185ad174764c73569afbc5a1a1f8a65ef1
2,490
ex
Elixir
lib/docusign/model/full_name.ex
gaslight/docusign_elixir
d9d88d53dd85d32a39d537bade9db28d779414e6
[ "MIT" ]
4
2020-12-21T12:50:13.000Z
2022-01-12T16:50:43.000Z
lib/docusign/model/full_name.ex
gaslight/docusign_elixir
d9d88d53dd85d32a39d537bade9db28d779414e6
[ "MIT" ]
12
2018-09-18T15:26:34.000Z
2019-09-28T15:29:39.000Z
lib/docusign/model/full_name.ex
gaslight/docusign_elixir
d9d88d53dd85d32a39d537bade9db28d779414e6
[ "MIT" ]
15
2020-04-29T21:50:16.000Z
2022-02-11T18:01:51.000Z
# NOTE: This class is auto generated by the swagger code generator program. # https://github.com/swagger-api/swagger-codegen.git # Do not edit the class manually. defmodule DocuSign.Model.FullName do @moduledoc """ A tab that displays the recipient&#39;s full name. """ @derive [Poison.Encoder] defstruct [ ...
27.362637
80
0.580723
3fd63b4da2ae84c77c906b4467a2a6f16e7e31b4
2,536
ex
Elixir
lib/situation_room_web.ex
mojotech/situation-room
d43b0e35376ec6fe1c2d69810b4eee8cb752f286
[ "MIT" ]
9
2015-10-04T11:47:19.000Z
2019-12-09T16:02:23.000Z
lib/situation_room_web.ex
mojotech/situation-room
d43b0e35376ec6fe1c2d69810b4eee8cb752f286
[ "MIT" ]
14
2015-07-28T04:41:57.000Z
2022-03-31T18:12:51.000Z
lib/situation_room_web.ex
mojotech/situation-room
d43b0e35376ec6fe1c2d69810b4eee8cb752f286
[ "MIT" ]
1
2017-07-26T03:17:02.000Z
2017-07-26T03:17:02.000Z
defmodule SituationRoomWeb do @moduledoc """ The entrypoint for defining your web interface, such as controllers, views, channels and so on. This can be used in your application as: use SituationRoomWeb, :controller use SituationRoomWeb, :view The definitions below will be executed for every vi...
22.442478
81
0.686909
3fd65abaf96858b1ade3f939fd29b54bf27fff78
3,788
ex
Elixir
clients/sql_admin/lib/google_api/sql_admin/v1beta4/api/flags.ex
kolorahl/elixir-google-api
46bec1e092eb84c6a79d06c72016cb1a13777fa6
[ "Apache-2.0" ]
null
null
null
clients/sql_admin/lib/google_api/sql_admin/v1beta4/api/flags.ex
kolorahl/elixir-google-api
46bec1e092eb84c6a79d06c72016cb1a13777fa6
[ "Apache-2.0" ]
null
null
null
clients/sql_admin/lib/google_api/sql_admin/v1beta4/api/flags.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...
43.54023
196
0.654435
3fd6610bdee347bf7681c5f03ebf027eef228528
3,706
exs
Elixir
test/integration/prestige_test.exs
dorilla/prestige
796db3dd2cf4d6dfb908c3932d1ae84c685b8c03
[ "Apache-2.0" ]
null
null
null
test/integration/prestige_test.exs
dorilla/prestige
796db3dd2cf4d6dfb908c3932d1ae84c685b8c03
[ "Apache-2.0" ]
null
null
null
test/integration/prestige_test.exs
dorilla/prestige
796db3dd2cf4d6dfb908c3932d1ae84c685b8c03
[ "Apache-2.0" ]
null
null
null
defmodule PrestigeTest do use Prestige.Case use Divo @moduletag capture_log: true session url: "http://localhost:8080", user: "bbalser", catalog: "hive", schema: "default" table "people", %{ "name" => "varchar", "age" => "int" } table "cakes", %{ "id" => "int", "name" => "varchar" } ...
32.508772
122
0.577982
3fd67aa8249d495a99bb4e8568bf9641e45c9c0f
523
exs
Elixir
aoc2019/test/day1_test.exs
myerspliers/aoc
2a2f03fea0271ff36e0fd9dc89f014bd098de09f
[ "MIT" ]
null
null
null
aoc2019/test/day1_test.exs
myerspliers/aoc
2a2f03fea0271ff36e0fd9dc89f014bd098de09f
[ "MIT" ]
null
null
null
aoc2019/test/day1_test.exs
myerspliers/aoc
2a2f03fea0271ff36e0fd9dc89f014bd098de09f
[ "MIT" ]
null
null
null
defmodule Day1Test do use ExUnit.Case doctest Day1 test "Part 1 calc_fuel_required1" do assert Day1.calc_fuel_required1("12") == 2 assert Day1.calc_fuel_required1("14") == 2 assert Day1.calc_fuel_required1("1969") == 654 assert Day1.calc_fuel_required1("100756") == 33583 end test "Part 2 com...
29.055556
57
0.713193
3fd695ff16e8568ef43069b2a37f96e8fe9681b8
2,781
ex
Elixir
elixir_libs/elixir_example/lib/complex_math.ex
tyalt1/elixir_example
043e75039bea992613be88f6a4d26c5032e6b57f
[ "Apache-2.0" ]
1
2018-01-25T11:08:17.000Z
2018-01-25T11:08:17.000Z
elixir_libs/elixir_example/lib/complex_math.ex
tyalt1/elixir_rebar_example
043e75039bea992613be88f6a4d26c5032e6b57f
[ "Apache-2.0" ]
null
null
null
elixir_libs/elixir_example/lib/complex_math.ex
tyalt1/elixir_rebar_example
043e75039bea992613be88f6a4d26c5032e6b57f
[ "Apache-2.0" ]
null
null
null
defmodule Benchmark do alias :timer, as: Timer @doc "Macro for logging benchmarks of function calls." defmacro bench(label \\ "", do: block) do quote do IO.write(unquote(label) <> ": ") {time, val} = Timer.tc(fn -> unquote(block) end) IO.write("Returned value #{val} in #{time/1000} millisec...
24.610619
95
0.567062
3fd69c07ab85468082bc0a900aba57bd92574837
8,999
ex
Elixir
lib/plug/parsers.ex
wojtekmach/plug
e9afab6c10f173d55b13bd78c64526fb21495b39
[ "Apache-2.0" ]
null
null
null
lib/plug/parsers.ex
wojtekmach/plug
e9afab6c10f173d55b13bd78c64526fb21495b39
[ "Apache-2.0" ]
null
null
null
lib/plug/parsers.ex
wojtekmach/plug
e9afab6c10f173d55b13bd78c64526fb21495b39
[ "Apache-2.0" ]
null
null
null
defmodule Plug.Parsers do defmodule RequestTooLargeError do @moduledoc """ Error raised when the request is too large. """ defexception message: "the request is too large. If you are willing to process " <> "larger requests, please give a :length to Plug.Parsers", ...
35.56917
112
0.675075
3fd6f854041c3ef14d1edf12e2613eb9e6469295
641
ex
Elixir
test/cgrates_web_jsonapi/calls_test.ex
max-konin/cgrates_web_jsonapi
e82690e343d790b0f77dea6699483fcb6fd8a162
[ "MIT" ]
2
2018-10-03T07:41:32.000Z
2021-03-21T11:27:27.000Z
test/cgrates_web_jsonapi/calls_test.ex
max-konin/cgrates_web_jsonapi
e82690e343d790b0f77dea6699483fcb6fd8a162
[ "MIT" ]
1
2018-10-31T04:55:59.000Z
2018-10-31T04:55:59.000Z
test/cgrates_web_jsonapi/calls_test.ex
max-konin/cgrates_web_jsonapi
e82690e343d790b0f77dea6699483fcb6fd8a162
[ "MIT" ]
5
2018-09-27T11:30:44.000Z
2021-01-16T08:28:58.000Z
defmodule CgratesWebJsonapi.CallsTest do use CgratesWebJsonapi.ModelCase import CgratesWebJsonapi.Fixtures alias CgratesWebJsonapi.Calls alias CgratesWebJsonapi.Calls.Call test "list_calls/0 retuns a list of calls" do call_fixture("1") call_fixture("2") assert length(Calls.list_calls()) == 2 ...
22.892857
81
0.712949
3fd7093aac965e6327ca8b69471c45e627ca02c5
819
ex
Elixir
lib/phantomchain/crypto/utils/message.ex
PhantomChain/elixir-crypto
d842920d91a9bcbe997736b487f4e74ba0bf2fe3
[ "MIT" ]
null
null
null
lib/phantomchain/crypto/utils/message.ex
PhantomChain/elixir-crypto
d842920d91a9bcbe997736b487f4e74ba0bf2fe3
[ "MIT" ]
null
null
null
lib/phantomchain/crypto/utils/message.ex
PhantomChain/elixir-crypto
d842920d91a9bcbe997736b487f4e74ba0bf2fe3
[ "MIT" ]
null
null
null
defmodule PhantomChain.Crypto.Utils.Message do alias PhantomChain.Crypto.Identities.{PublicKey, PrivateKey} @spec sign(String.t(), String.t()) :: Map.t() def sign(message, passphrase) do %{ :publickey => PublicKey.from_passphrase(passphrase), :signature => PrivateKey.sign(message, passphrase), ...
26.419355
65
0.67033
3fd72e6de0f0fdd2d498d00e87defc5a724680a2
882
ex
Elixir
clients/big_query/lib/google_api/big_query/v2/metadata.ex
kolorahl/elixir-google-api
46bec1e092eb84c6a79d06c72016cb1a13777fa6
[ "Apache-2.0" ]
null
null
null
clients/big_query/lib/google_api/big_query/v2/metadata.ex
kolorahl/elixir-google-api
46bec1e092eb84c6a79d06c72016cb1a13777fa6
[ "Apache-2.0" ]
null
null
null
clients/big_query/lib/google_api/big_query/v2/metadata.ex
kolorahl/elixir-google-api
46bec1e092eb84c6a79d06c72016cb1a13777fa6
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
32.666667
74
0.758503
3fd738be6bf62ea767b01212d9ddc107619b5099
583
ex
Elixir
accumulate/lib/accumulate.ex
Hafizuddin-Darman/exercism-elixir
6407b032ec97515a1f93b766da217357bcb0e7eb
[ "MIT" ]
null
null
null
accumulate/lib/accumulate.ex
Hafizuddin-Darman/exercism-elixir
6407b032ec97515a1f93b766da217357bcb0e7eb
[ "MIT" ]
null
null
null
accumulate/lib/accumulate.ex
Hafizuddin-Darman/exercism-elixir
6407b032ec97515a1f93b766da217357bcb0e7eb
[ "MIT" ]
null
null
null
defmodule Accumulate do @doc """ Given a list and a function, apply the function to each list item and replace it with the function's return value. Returns a list. ## Examples iex> Accumulate.accumulate([], fn(x) -> x * 2 end) [] iex> Accumulate.accumulate([1, 2, 3], fn(x) -> x *...
21.592593
73
0.593482
3fd792e7838f1a517fdf4ed1ed50e84cd7bed29b
33,388
exs
Elixir
test/paper_trail/bang_functions_strict_mode_test.exs
harmon25/paper_trail
a023f7771591b44132335a96409edd7da0df4e60
[ "MIT" ]
null
null
null
test/paper_trail/bang_functions_strict_mode_test.exs
harmon25/paper_trail
a023f7771591b44132335a96409edd7da0df4e60
[ "MIT" ]
null
null
null
test/paper_trail/bang_functions_strict_mode_test.exs
harmon25/paper_trail
a023f7771591b44132335a96409edd7da0df4e60
[ "MIT" ]
3
2021-04-07T14:54:04.000Z
2021-04-07T14:54:16.000Z
defmodule PaperTrailTest.StrictModeBangFunctions do use ExUnit.Case import Ecto.Query alias PaperTrail.Version alias StrictCompany, as: Company alias StrictPerson, as: Person alias PaperTrailTest.MultiTenantHelper, as: MultiTenant @repo PaperTrail.RepoClient.repo() @create_company_params %{name: "Acm...
32.258937
113
0.607404
3fd79a03ceb1fc5bc101b16db552a6404e68d59c
2,168
exs
Elixir
test/hub_ex_test.exs
cellulose/hub
aa8ee92ea15fea9908a9cde01d41f79a6e4278e9
[ "MIT" ]
7
2015-04-23T17:55:37.000Z
2018-05-22T22:27:18.000Z
test/hub_ex_test.exs
cellulose/hub
aa8ee92ea15fea9908a9cde01d41f79a6e4278e9
[ "MIT" ]
6
2015-04-09T22:48:29.000Z
2016-09-07T20:09:27.000Z
test/hub_ex_test.exs
cellulose/hub
aa8ee92ea15fea9908a9cde01d41f79a6e4278e9
[ "MIT" ]
null
null
null
defmodule EchoTest do use ExUnit.Case Hub.start test "hub is running and sorta works" do assert(Hub.dump()) end test "hub handles basic updates and sequence numbers" do {{initial_lock, initial_seq}, _} = Hub.fetch result = Hub.update [ "kg7ga", "rig", "kw" ], [ "afgain": 32 ], [] assert ...
35.540984
77
0.683579
3fd79d8fc2978d25e453cbcbe7d72b66cb06e7cf
1,057
exs
Elixir
config/config.exs
ruhrjs/ruhrjs-karaoke
93c6bee18873ead2854e1bbf835a665cc782f7da
[ "Unlicense" ]
null
null
null
config/config.exs
ruhrjs/ruhrjs-karaoke
93c6bee18873ead2854e1bbf835a665cc782f7da
[ "Unlicense" ]
null
null
null
config/config.exs
ruhrjs/ruhrjs-karaoke
93c6bee18873ead2854e1bbf835a665cc782f7da
[ "Unlicense" ]
null
null
null
# This file is responsible for configuring your application # and its dependencies with the aid of the Mix.Config module. # # This configuration file is loaded before any dependency and # is restricted to this project. # General application configuration use Mix.Config config :platform, ecto_repos: [Platform.Repo] ...
33.03125
86
0.771996
3fd7d8fb8d433b3da67481fdd6bae4e268c31d13
5,688
ex
Elixir
lib/ecto/enum.ex
yordis/ecto
6e7bc3f4d757b7c09ced10135e0c5c4ce1f4ea2f
[ "Apache-2.0" ]
null
null
null
lib/ecto/enum.ex
yordis/ecto
6e7bc3f4d757b7c09ced10135e0c5c4ce1f4ea2f
[ "Apache-2.0" ]
null
null
null
lib/ecto/enum.ex
yordis/ecto
6e7bc3f4d757b7c09ced10135e0c5c4ce1f4ea2f
[ "Apache-2.0" ]
null
null
null
defmodule Ecto.Enum do @moduledoc """ A custom type that maps atoms to strings or integers. `Ecto.Enum` must be used whenever you want to keep atom values in a field. Since atoms cannot be persisted to the database, `Ecto.Enum` converts them to a string or an integer when writing to the database and converts...
28.582915
91
0.625527
3fd803c79c4b14d88998059fa820199a3977a8a8
527
ex
Elixir
lib/openstex/adapter/keystone.ex
stephenmoloney/openstex
e62f548d67e9c71317be670ed80c49e97d9b2dd2
[ "MIT" ]
6
2016-07-08T05:29:23.000Z
2019-09-17T14:17:06.000Z
lib/openstex/adapter/keystone.ex
stephenmoloney/openstex
e62f548d67e9c71317be670ed80c49e97d9b2dd2
[ "MIT" ]
16
2016-05-21T08:21:45.000Z
2018-03-04T22:11:49.000Z
lib/openstex/adapter/keystone.ex
stephenmoloney/openstex
e62f548d67e9c71317be670ed80c49e97d9b2dd2
[ "MIT" ]
2
2017-08-28T22:24:51.000Z
2019-06-16T14:47:38.000Z
defmodule Openstex.Adapter.Keystone do @moduledoc ~s""" A behaviour adapter module to be implemented by clients that using the `Openstex` library for handling Keystone Authentication. """ alias Openstex.Keystone.V2.Helpers.Identity @callback start_link(atom) :: {:ok, pid} | {:error, :already_started} @ca...
40.538462
92
0.719165
3fd832635e27193027552e5f40846b7d76184e43
99
ex
Elixir
lib/canada/can.ex
happycodrz/canada
86e74cd424fef62e25394d51838184900c73b825
[ "MIT" ]
null
null
null
lib/canada/can.ex
happycodrz/canada
86e74cd424fef62e25394d51838184900c73b825
[ "MIT" ]
null
null
null
lib/canada/can.ex
happycodrz/canada
86e74cd424fef62e25394d51838184900c73b825
[ "MIT" ]
null
null
null
defprotocol Canada.Can do @doc "Evaluates permissions" def can?(subject, action, resource) end
19.8
37
0.757576
3fd841577a759a8a956ce59d4d7a12e4d0bb0b82
268
exs
Elixir
apps/jobs/config/config.exs
ehealth-ua/ehealth.api
4ffe26a464fe40c95fb841a4aa2e147068f65ca2
[ "Apache-2.0" ]
8
2019-06-14T11:34:49.000Z
2021-08-05T19:14:24.000Z
apps/jobs/config/config.exs
edenlabllc/ehealth.api.public
4ffe26a464fe40c95fb841a4aa2e147068f65ca2
[ "Apache-2.0" ]
1
2019-07-08T15:20:22.000Z
2019-07-08T15:20:22.000Z
apps/jobs/config/config.exs
ehealth-ua/ehealth.api
4ffe26a464fe40c95fb841a4aa2e147068f65ca2
[ "Apache-2.0" ]
6
2018-05-11T13:59:32.000Z
2022-01-19T20:15:22.000Z
use Mix.Config config :core, Jobs.LegalEntityMergeJob, client_type_id: {:system, "CLIENT_TYPE_MSP_LIMITED_ID"}, media_storage_resource_name: {:system, "MEDIA_STORAGE_MERGED_LEGAL_ENTITIES_RESOURCE_NAME", "merged_legal_entities"} import_config "#{Mix.env()}.exs"
33.5
118
0.80597
3fd87a7a7f6956731aae006f7dd424a855f3ccc4
8,435
ex
Elixir
lib/eden/formatter.ex
mindreframer/Eden
071018819530e07ed6b2e000c20383a98c716f07
[ "Apache-2.0" ]
null
null
null
lib/eden/formatter.ex
mindreframer/Eden
071018819530e07ed6b2e000c20383a98c716f07
[ "Apache-2.0" ]
null
null
null
lib/eden/formatter.ex
mindreframer/Eden
071018819530e07ed6b2e000c20383a98c716f07
[ "Apache-2.0" ]
null
null
null
# Adjusted copy from https://github.com/michalmuskala/jason/blob/master/lib/formatter.ex # TODO: cleanup comments / unused functions, options, etc... defmodule Eden.Formatter do @moduledoc ~S""" Pretty-printing and minimizing functions for EDN-encoded data. Input is required to be in an 8-bit-wide encoding such...
32.567568
94
0.640071
3fd89f95f57ada0623c7afd90edafa32f5045889
1,083
exs
Elixir
prag-programing/Part1/Lists,Dictionaries,Structs/Dictionaries.exs
mpahrens/fun-with-elixir
8e6720c7c2004421f674bb450045df0ab59b9c74
[ "Apache-2.0" ]
1
2017-03-29T04:10:50.000Z
2017-03-29T04:10:50.000Z
prag-programing/Part1/Lists,Dictionaries,Structs/Dictionaries.exs
mpahrens/fun-with-elixir
8e6720c7c2004421f674bb450045df0ab59b9c74
[ "Apache-2.0" ]
null
null
null
prag-programing/Part1/Lists,Dictionaries,Structs/Dictionaries.exs
mpahrens/fun-with-elixir
8e6720c7c2004421f674bb450045df0ab59b9c74
[ "Apache-2.0" ]
null
null
null
""" Maps, HashDicts, Sets, and Structures Matthew Ahrens Chapter 8 """ defmodule Sum do def values(dict) do dict |> Dict.values |> Enum.sum end end #Sum a hashdict hd = [one: 1, two: 2, three:3] |> Enum.into HashDict.new IO.puts Sum.values(hd) #Sum a map map = %{four: 4, five: 5, six: 6} IO....
22.5625
64
0.617729
3fd8adbfef8f1331e40e2bd55a43db5de19b24bc
496
ex
Elixir
lib/types.ex
nimaai/shen-elixir
41db4935d43615503ed46aff36af1bf8359b2d12
[ "MIT" ]
null
null
null
lib/types.ex
nimaai/shen-elixir
41db4935d43615503ed46aff36af1bf8359b2d12
[ "MIT" ]
null
null
null
lib/types.ex
nimaai/shen-elixir
41db4935d43615503ed46aff36af1bf8359b2d12
[ "MIT" ]
null
null
null
defmodule Kl.Types do @type expr :: kl_term | function_application @type kl_term :: atom | String.t | number | boolean | {:vector, pid} | {:stream, pid} | function | maybe_improper_list ...
29.176471
55
0.479839
3fd8b6187d8b4d3c69092db1d6deddd8a0b49872
1,886
ex
Elixir
lib/collision/broadphase.ex
crertel/elixir_rigid_physics
059f121d5504b7b8fed22aa907503d9e9fd8ac1d
[ "Apache-2.0" ]
6
2019-05-23T19:57:26.000Z
2021-06-14T16:52:53.000Z
lib/collision/broadphase.ex
crertel/elixir_rigid_physics
059f121d5504b7b8fed22aa907503d9e9fd8ac1d
[ "Apache-2.0" ]
10
2019-06-21T22:09:39.000Z
2019-07-10T04:16:12.000Z
lib/collision/broadphase.ex
crertel/elixir_rigid_physics
059f121d5504b7b8fed22aa907503d9e9fd8ac1d
[ "Apache-2.0" ]
1
2021-01-09T01:58:55.000Z
2021-01-09T01:58:55.000Z
defmodule ElixirRigidPhysics.Collision.Broadphase do @moduledoc """ Module to handle broadphase collision detection. Broadphase collision detection is when we check all of the bodies to see which ones _likely_ are colliding. This information is then used to reduce the number of expensive checks we do in the na...
36.980392
125
0.7386
3fd91b5750b77e7e17619b7898c2ea6851df4d9c
576
ex
Elixir
lib/your_sanctuary_web/views/changeset_view.ex
InFact-coop/your-sanctuary
066e3b99ae52ee0d3fddac80b6aaf65ffef2bd0f
[ "BSD-3-Clause" ]
2
2018-10-23T13:30:00.000Z
2018-10-24T14:32:52.000Z
lib/your_sanctuary_web/views/changeset_view.ex
InFact-coop/your-sanctuary
066e3b99ae52ee0d3fddac80b6aaf65ffef2bd0f
[ "BSD-3-Clause" ]
60
2018-10-23T13:39:19.000Z
2019-02-11T14:18:01.000Z
lib/your_sanctuary_web/views/changeset_view.ex
InFact-coop/your-sanctuary
066e3b99ae52ee0d3fddac80b6aaf65ffef2bd0f
[ "BSD-3-Clause" ]
null
null
null
defmodule YourSanctuaryWeb.ChangesetView do use YourSanctuaryWeb, :view @doc """ Traverses and translates changeset errors. See `Ecto.Changeset.traverse_errors/2` and `YourSanctuaryWeb.ErrorHelpers.translate_error/1` for more details. """ def translate_errors(changeset) do Ecto.Changeset.traverse_er...
28.8
69
0.746528
3fd92053191fac4e51c93604a8affb0bad42feea
1,722
ex
Elixir
clients/service_management/lib/google_api/service_management/v1/model/label_descriptor.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/service_management/lib/google_api/service_management/v1/model/label_descriptor.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/service_management/lib/google_api/service_management/v1/model/label_descriptor.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...
32.490566
110
0.711382
3fd93399a78a2b3c61802f456893a3002102b20d
1,058
ex
Elixir
lib/elixir_bank_web/schema/types/user.ex
spacexcorp/elixir-bank
b5cf0592598da469e3c2eb43befeb0a45592ad0a
[ "MIT" ]
null
null
null
lib/elixir_bank_web/schema/types/user.ex
spacexcorp/elixir-bank
b5cf0592598da469e3c2eb43befeb0a45592ad0a
[ "MIT" ]
null
null
null
lib/elixir_bank_web/schema/types/user.ex
spacexcorp/elixir-bank
b5cf0592598da469e3c2eb43befeb0a45592ad0a
[ "MIT" ]
null
null
null
defmodule ElixirBankWeb.Schema.Types.User do use Absinthe.Schema.Notation alias ElixirBankWeb.Middlewares.Authentication alias ElixirBankWeb.Resolvers.User @desc "The `User` object represents an entity that is authenticated and can do the actions on the system." object :user do field(:auth_tokens, non_n...
27.842105
108
0.689036
3fd9512887ce3d6bdafdc288d1d0d7324173daf4
5,322
ex
Elixir
lib/graphql/resolvers/translation.ex
isshindev/accent
ae4c13139b0a0dfd64ff536b94c940a4e2862150
[ "BSD-3-Clause" ]
806
2018-04-07T20:40:33.000Z
2022-03-30T01:39:57.000Z
lib/graphql/resolvers/translation.ex
isshindev/accent
ae4c13139b0a0dfd64ff536b94c940a4e2862150
[ "BSD-3-Clause" ]
194
2018-04-07T13:49:37.000Z
2022-03-30T19:58:45.000Z
lib/graphql/resolvers/translation.ex
isshindev/accent
ae4c13139b0a0dfd64ff536b94c940a4e2862150
[ "BSD-3-Clause" ]
89
2018-04-09T13:55:49.000Z
2022-03-24T07:09:31.000Z
defmodule Accent.GraphQL.Resolvers.Translation do require Ecto.Query alias Ecto.Query alias Accent.Scopes.Translation, as: TranslationScope alias Movement.Builders.TranslationCorrectConflict, as: TranslationCorrectConflictBuilder alias Movement.Builders.TranslationUncorrectConflict, as: TranslationUncorrect...
32.851852
106
0.64844
3fd976eae1880b3159a6f9687074f48fde915a11
481
ex
Elixir
lib/client/order_result.ex
jwarwick/trades
694094dde40c0bafeb31be06356ade9682cc45d5
[ "MIT" ]
null
null
null
lib/client/order_result.ex
jwarwick/trades
694094dde40c0bafeb31be06356ade9682cc45d5
[ "MIT" ]
null
null
null
lib/client/order_result.ex
jwarwick/trades
694094dde40c0bafeb31be06356ade9682cc45d5
[ "MIT" ]
null
null
null
defmodule Client.OrderResult do @derive [Poison.Encoder] defstruct [:ok, :symbol, :venue, :direction, :originalQty, :qty, :price, :orderType, :id, :account, :ts, :fills, :totalFilled, :open] @doc """ Decode the `fills` subcomponent of the order result """ def decode_fills(fills) do Enum.map(fills, ...
28.294118
86
0.694387
3fd97d243ce92e21857371b01b4c073bd525378f
11,441
ex
Elixir
lib/aws/generated/iot_events.ex
justinludwig/aws-elixir
c66dfebecec62587dada50602c31c76d307d812c
[ "Apache-2.0" ]
null
null
null
lib/aws/generated/iot_events.ex
justinludwig/aws-elixir
c66dfebecec62587dada50602c31c76d307d812c
[ "Apache-2.0" ]
null
null
null
lib/aws/generated/iot_events.ex
justinludwig/aws-elixir
c66dfebecec62587dada50602c31c76d307d812c
[ "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.IoTEvents do @moduledoc """ AWS IoT Events monitors your equipment or device fleets for failures or changes in operation, and triggers actions when such events occur. You can use AWS IoT ...
20.614414
149
0.582816
3fd990943bd0b66c37be8bcdcd1d8c7fe35d5388
2,258
exs
Elixir
config/prod.exs
kloeckner-i/genstage_importer
a8d8242fa0bc79d83d05212dea667c93990685c7
[ "MIT" ]
4
2019-07-27T13:11:54.000Z
2020-06-19T14:00:21.000Z
config/prod.exs
altmer/genstage_importer
a8d8242fa0bc79d83d05212dea667c93990685c7
[ "MIT" ]
null
null
null
config/prod.exs
altmer/genstage_importer
a8d8242fa0bc79d83d05212dea667c93990685c7
[ "MIT" ]
2
2018-08-02T11:01:15.000Z
2019-11-15T12:35:40.000Z
use Mix.Config # For production, we often load configuration from external # sources, such as your system environment. For this reason, # you won't find the :http configuration below, but set inside # GenstageImporterWeb.Endpoint.init/2 when load_from_system_env is # true. Any dynamic configuration should be done ther...
34.738462
75
0.732064
3fd9afd0bcb5c935580c47f30bfec621017763df
1,663
ex
Elixir
test/support/test_disabled_marked_functions.ex
pyzlnar/ex_propriate
ad9b88f77815cd097f731e6f27cd44b3760c9591
[ "MIT" ]
null
null
null
test/support/test_disabled_marked_functions.ex
pyzlnar/ex_propriate
ad9b88f77815cd097f731e6f27cd44b3760c9591
[ "MIT" ]
1
2022-02-21T03:30:22.000Z
2022-02-21T03:30:22.000Z
test/support/test_disabled_marked_functions.ex
pyzlnar/ex_propriate
ad9b88f77815cd097f731e6f27cd44b3760c9591
[ "MIT" ]
null
null
null
defmodule ExPropriate.Test.DisabledMarkedFunctions do @moduledoc """ This module tests the expropriate_all: true option, with the config disabled. None of the private functions in this module should be public. """ use ExPropriate, override_config_with: false # -- Public Interface -- # def public_fu...
21.050633
79
0.705352
3fd9bcaf666e82cf06c4b6c516531d1bddd653ed
2,338
exs
Elixir
lib/mix/test/mix/tasks/app.start_test.exs
jeregrine/elixir
080201477955bcd2d755fb4162966dc6882b1521
[ "Apache-2.0" ]
null
null
null
lib/mix/test/mix/tasks/app.start_test.exs
jeregrine/elixir
080201477955bcd2d755fb4162966dc6882b1521
[ "Apache-2.0" ]
null
null
null
lib/mix/test/mix/tasks/app.start_test.exs
jeregrine/elixir
080201477955bcd2d755fb4162966dc6882b1521
[ "Apache-2.0" ]
null
null
null
Code.require_file "../../test_helper.exs", __DIR__ defmodule Mix.Tasks.App.StartTest do use MixTest.Case defmodule AppStartSample do def project do [app: :app_start_sample, version: "0.1.0"] end end defmodule WrongElixirProject do def project do [app: :error, version: "0.1.0", elixir:...
29.225
105
0.654405
3fd9d6bffe8d6e68ac3328b5b0b7ac9f96591b01
1,421
ex
Elixir
test/support/active_server.ex
ityonemo/transporter
7dfbc736b383421f29d3f5418fd1b92b5a0a0eff
[ "BSD-3-Clause" ]
1
2021-04-28T15:14:45.000Z
2021-04-28T15:14:45.000Z
test/support/active_server.ex
ityonemo/transport
7dfbc736b383421f29d3f5418fd1b92b5a0a0eff
[ "BSD-3-Clause" ]
null
null
null
test/support/active_server.ex
ityonemo/transport
7dfbc736b383421f29d3f5418fd1b92b5a0a0eff
[ "BSD-3-Clause" ]
null
null
null
# credo:disable-for-this-file Credo.Check.Readability.ModuleDoc defmodule TransportTest.ActiveServer do # implements an active: true server that is generic between TCP and SSL. use GenServer import Kernel, except: [send: 2] def start_link(transport, test_pid, opts \\ []) do state = %{transport: transpor...
30.891304
79
0.674173
3fd9e2c6592f57c6c4dcbccafb17fe785a4198c2
14,835
ex
Elixir
lib/elixir/lib/kernel/cli.ex
Sae497/elixir
666a0bca8daac6a9dffb80db837c883805a6a22e
[ "Apache-2.0" ]
1
2018-02-24T19:48:35.000Z
2018-02-24T19:48:35.000Z
lib/elixir/lib/kernel/cli.ex
Sae497/elixir
666a0bca8daac6a9dffb80db837c883805a6a22e
[ "Apache-2.0" ]
null
null
null
lib/elixir/lib/kernel/cli.ex
Sae497/elixir
666a0bca8daac6a9dffb80db837c883805a6a22e
[ "Apache-2.0" ]
null
null
null
defmodule Kernel.CLI do @moduledoc false @blank_config %{ commands: [], output: ".", compile: [], no_halt: false, compiler_options: [], errors: [], pa: [], pz: [], verbose_compile: false } @doc """ This is the API invoked by Elixir boot process. """ def main(argv) do ...
27.320442
99
0.600741
3fda65a5285463a6fe1c15c92f6fc121942ac8f3
4,388
ex
Elixir
apps/api_web/lib/api_web/controllers/live_facility_controller.ex
mbta/automatic-fiesta
de9eb43e4fc7c47aa069f5ded8497ddd39ff74c5
[ "MIT" ]
null
null
null
apps/api_web/lib/api_web/controllers/live_facility_controller.ex
mbta/automatic-fiesta
de9eb43e4fc7c47aa069f5ded8497ddd39ff74c5
[ "MIT" ]
null
null
null
apps/api_web/lib/api_web/controllers/live_facility_controller.ex
mbta/automatic-fiesta
de9eb43e4fc7c47aa069f5ded8497ddd39ff74c5
[ "MIT" ]
null
null
null
defmodule ApiWeb.LiveFacilityController do use ApiWeb.Web, :api_controller import ApiWeb.Params plug(:ensure_path_matches_version) @filters ~w(id) @pagination_opts ~w(offset limit order_by)a @includes ~w(facility) def state_module, do: State.Facility.Parking swagger_path :index do get(path("live...
28.128205
235
0.618277
3fda7658b22c27370fb4078e0d304773955c8351
1,069
ex
Elixir
test/support/effects_case.ex
agleb/sage
2c3254bdf0ea18f128a8f57687c0ee78e131ed3f
[ "MIT" ]
715
2017-11-01T15:25:38.000Z
2022-03-30T13:43:40.000Z
test/support/effects_case.ex
agleb/sage
2c3254bdf0ea18f128a8f57687c0ee78e131ed3f
[ "MIT" ]
66
2017-11-15T15:28:14.000Z
2022-03-25T17:25:20.000Z
test/support/effects_case.ex
agleb/sage
2c3254bdf0ea18f128a8f57687c0ee78e131ed3f
[ "MIT" ]
34
2017-12-17T20:30:14.000Z
2022-03-13T10:54:47.000Z
defmodule Sage.EffectsCase do @moduledoc false use ExUnit.CaseTemplate alias Sage.EffectsAgent using do quote do import Sage.EffectsCase import Sage.Fixtures import Sage end end def assert_no_effects do effects = EffectsAgent.list_effects() assert effects == [] end d...
21.816327
73
0.690365
3fda92e0a51257cc1cb990ffbef5601f3f49f1c3
2,539
exs
Elixir
test/codewar/competition/schemas/challenge_test.exs
nimblehq/codewar-web
5038bc09d4fc42f6be0737857a4c053ff42463f1
[ "MIT" ]
2
2021-06-29T02:22:28.000Z
2022-02-15T06:32:15.000Z
test/codewar/competition/schemas/challenge_test.exs
nimblehq/codewar-web
5038bc09d4fc42f6be0737857a4c053ff42463f1
[ "MIT" ]
14
2021-05-06T04:27:19.000Z
2021-08-24T11:15:33.000Z
test/codewar/competition/schemas/challenge_test.exs
nimblehq/codewar-web
5038bc09d4fc42f6be0737857a4c053ff42463f1
[ "MIT" ]
1
2021-08-20T07:50:19.000Z
2021-08-20T07:50:19.000Z
defmodule CodeWar.Competition.Schemas.ChallengeTest do use Codewar.DataCase, async: true alias Codewar.Competition.Schemas.Challenge describe "changeset/2" do test "returns invalid changeset if params are missing" do changeset = Challenge.changeset(%Challenge{}, %{}) refute changeset.valid? ...
31.345679
109
0.649862
3fdabab1c5194f5b243dabce3b6963b14778988c
144
exs
Elixir
programming_elixir_1.3_snippets/nested.exs
benjohns1/elixer-app
6e866ec084c5e75442c0b70f66e35f61b5b74d34
[ "MIT" ]
null
null
null
programming_elixir_1.3_snippets/nested.exs
benjohns1/elixer-app
6e866ec084c5e75442c0b70f66e35f61b5b74d34
[ "MIT" ]
null
null
null
programming_elixir_1.3_snippets/nested.exs
benjohns1/elixer-app
6e866ec084c5e75442c0b70f66e35f61b5b74d34
[ "MIT" ]
null
null
null
defmodule Customer do defstruct name: "", company: "" end defmodule BugReport do defstruct owner: %Customer{}, details: "", severity: 1 end
20.571429
56
0.715278
3fdac2b456dfd1b14521c99636e651b778d10779
619
exs
Elixir
config/config.exs
smartrent/task_bunny_sentry
9c4eb0a6605474e08ed2460df8a6d7cd871070db
[ "MIT" ]
null
null
null
config/config.exs
smartrent/task_bunny_sentry
9c4eb0a6605474e08ed2460df8a6d7cd871070db
[ "MIT" ]
1
2022-01-05T14:40:49.000Z
2022-01-05T14:40:49.000Z
config/config.exs
smartrent/task_bunny_sentry
9c4eb0a6605474e08ed2460df8a6d7cd871070db
[ "MIT" ]
null
null
null
import Config # If you want to try this library with your Sentry account # unncomment the below and set your access token. # #config :sentry, # dsn: "YOUR_SENTRY_DSN", # included_environments: ~w(development), # environment_name: "development", # enable_source_code_context: true, # root_source_code_path: File.cw...
22.107143
58
0.670436
3fdafb6785e88d311cb93a9b96d932e49f46e706
765
ex
Elixir
elixir/nucleotide-count/lib/nucleotide_count.ex
pylebecq/exercism
efb1cdaf5435367307dd4f4d5b9e93980a529ea2
[ "Apache-2.0" ]
null
null
null
elixir/nucleotide-count/lib/nucleotide_count.ex
pylebecq/exercism
efb1cdaf5435367307dd4f4d5b9e93980a529ea2
[ "Apache-2.0" ]
null
null
null
elixir/nucleotide-count/lib/nucleotide_count.ex
pylebecq/exercism
efb1cdaf5435367307dd4f4d5b9e93980a529ea2
[ "Apache-2.0" ]
null
null
null
defmodule NucleotideCount do @nucleotides [?A, ?C, ?G, ?T] @doc """ Counts individual nucleotides in a DNA strand. ## Examples iex> NucleotideCount.count('AATAA', ?A) 4 iex> NucleotideCount.count('AATAA', ?T) 1 """ @spec count(charlist(), char()) :: non_neg_integer() def count(strand, nucleoti...
21.857143
86
0.615686
3fdb190775c2870aa189aecc0c52b7da93a8cd79
1,036
ex
Elixir
clients/knowledge_graph_search/lib/google_api/knowledge_graph_search/v1/connection.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
1
2018-12-03T23:43:10.000Z
2018-12-03T23:43:10.000Z
clients/knowledge_graph_search/lib/google_api/knowledge_graph_search/v1/connection.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
clients/knowledge_graph_search/lib/google_api/knowledge_graph_search/v1/connection.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the &quot;License&quot;); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
34.533333
77
0.754826
3fdb27ea2d3fc5609f03a1ab451f67f5240aa428
2,086
exs
Elixir
test/sentry_test.exs
sekiyama58/sentry-elixir
1c1d31178eaffcedb1ccb3d9c48695f29962735a
[ "MIT" ]
502
2016-09-03T14:23:53.000Z
2022-03-23T17:36:37.000Z
test/sentry_test.exs
sekiyama58/sentry-elixir
1c1d31178eaffcedb1ccb3d9c48695f29962735a
[ "MIT" ]
350
2016-08-29T18:53:26.000Z
2022-03-27T15:45:38.000Z
test/sentry_test.exs
sekiyama58/sentry-elixir
1c1d31178eaffcedb1ccb3d9c48695f29962735a
[ "MIT" ]
147
2016-09-22T13:30:57.000Z
2022-03-14T13:24:14.000Z
defmodule SentryTest do use ExUnit.Case import ExUnit.CaptureLog import Sentry.TestEnvironmentHelper test "excludes events properly" do bypass = Bypass.open() Bypass.expect(bypass, fn conn -> {:ok, body, conn} = Plug.Conn.read_body(conn) assert body =~ "RuntimeError" assert conn.requ...
25.439024
94
0.593001
3fdb442304d0dce2307d8448edaddd16c6525f7f
1,726
ex
Elixir
clients/jobs/lib/google_api/jobs/v4/model/batch_delete_jobs_response.ex
renovate-bot/elixir-google-api
1da34cd39b670c99f067011e05ab90af93fef1f6
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/jobs/lib/google_api/jobs/v4/model/batch_delete_jobs_response.ex
swansoffiee/elixir-google-api
9ea6d39f273fb430634788c258b3189d3613dde0
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/jobs/lib/google_api/jobs/v4/model/batch_delete_jobs_response.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...
36.723404
223
0.751448
3fdb71785c7761e65c7deb36c833af204d709c9f
1,882
ex
Elixir
clients/datastore/lib/google_api/datastore/v1/model/google_datastore_admin_v1_list_indexes_response.ex
mocknen/elixir-google-api
dac4877b5da2694eca6a0b07b3bd0e179e5f3b70
[ "Apache-2.0" ]
null
null
null
clients/datastore/lib/google_api/datastore/v1/model/google_datastore_admin_v1_list_indexes_response.ex
mocknen/elixir-google-api
dac4877b5da2694eca6a0b07b3bd0e179e5f3b70
[ "Apache-2.0" ]
null
null
null
clients/datastore/lib/google_api/datastore/v1/model/google_datastore_admin_v1_list_indexes_response.ex
mocknen/elixir-google-api
dac4877b5da2694eca6a0b07b3bd0e179e5f3b70
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the &quot;License&quot;); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
35.509434
97
0.761955
3fdb76cc32a19b8a0058cb724e83cdedee093b10
1,884
ex
Elixir
clients/sheets/lib/google_api/sheets/v4/model/data_execution_status.ex
ukrbublik/elixir-google-api
364cec36bc76f60bec94cbcad34844367a29d174
[ "Apache-2.0" ]
null
null
null
clients/sheets/lib/google_api/sheets/v4/model/data_execution_status.ex
ukrbublik/elixir-google-api
364cec36bc76f60bec94cbcad34844367a29d174
[ "Apache-2.0" ]
null
null
null
clients/sheets/lib/google_api/sheets/v4/model/data_execution_status.ex
ukrbublik/elixir-google-api
364cec36bc76f60bec94cbcad34844367a29d174
[ "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.642857
118
0.70276
3fdbba17f3fe0117876156f42cdda1ddeb37c616
923
exs
Elixir
test/exdns/txt_test.exs
jeanparpaillon/exdns
53b7fc780399eda96d42052e11e03d5eb0dcd789
[ "MIT" ]
16
2016-05-26T10:11:57.000Z
2021-01-08T15:09:19.000Z
test/exdns/txt_test.exs
jeanparpaillon/exdns
53b7fc780399eda96d42052e11e03d5eb0dcd789
[ "MIT" ]
9
2016-08-11T00:48:27.000Z
2020-09-16T22:10:07.000Z
test/exdns/txt_test.exs
jeanparpaillon/exdns
53b7fc780399eda96d42052e11e03d5eb0dcd789
[ "MIT" ]
11
2016-08-10T08:13:36.000Z
2021-04-03T10:20:11.000Z
defmodule Exdns.TxtTest do use ExUnit.Case, async: true test "parse empty string" do assert Exdns.Txt.parse("") == [] end test "parse simple string" do assert Exdns.Txt.parse("test") == ["test"] end test "parse long string" do assert Exdns.Txt.parse(String.duplicate("x", 270)) == [String.dupl...
25.638889
113
0.631636
3fdbbc54439fa77c1ddd5d6388d0bc40db31de28
2,761
exs
Elixir
test/integration_test.exs
jeregrine/nimble_parsec
13b360170a97da099a3e056615c456f3ca98fe85
[ "Apache-2.0" ]
227
2020-01-20T16:39:39.000Z
2022-03-31T14:37:19.000Z
test/integration_test.exs
jeregrine/nimble_parsec
13b360170a97da099a3e056615c456f3ca98fe85
[ "Apache-2.0" ]
34
2020-01-31T01:14:06.000Z
2022-02-28T10:50:31.000Z
test/integration_test.exs
jeregrine/nimble_parsec
13b360170a97da099a3e056615c456f3ca98fe85
[ "Apache-2.0" ]
25
2020-02-23T02:05:20.000Z
2022-01-25T21:32:55.000Z
defmodule NimbleParsec.IntegrationTest do use ExUnit.Case, async: true import NimbleParsec describe "markdown heading" do @doc """ Docs should apply correctly. """ defparsec :markdown_h1, string("#") |> ignore() |> utf8_string([], min: 1) test "retu...
27.068627
89
0.525172
3fdbbdf02f8d600cb5ead33af097ff55715e857a
1,512
exs
Elixir
priv/repo/migrations/20151118002150_fetch_user_permissions.exs
matusf/cog
71708301c7dc570fb0d3498a50f47a70ef957788
[ "Apache-2.0" ]
1,003
2016-02-23T17:21:12.000Z
2022-02-20T14:39:35.000Z
priv/repo/migrations/20151118002150_fetch_user_permissions.exs
matusf/cog
71708301c7dc570fb0d3498a50f47a70ef957788
[ "Apache-2.0" ]
906
2016-02-22T22:54:19.000Z
2022-03-11T15:19:43.000Z
priv/repo/migrations/20151118002150_fetch_user_permissions.exs
matusf/cog
71708301c7dc570fb0d3498a50f47a70ef957788
[ "Apache-2.0" ]
95
2016-02-23T13:42:31.000Z
2021-11-30T14:39:55.000Z
defmodule Cog.Repo.Migrations.FetchUserPermissions do use Ecto.Migration def up do execute """ CREATE OR REPLACE FUNCTION fetch_user_permissions ( p_user users.id%TYPE) RETURNS TABLE(id uuid, name text) LANGUAGE plpgsql STABLE STRICT AS $$ BEGIN RETURN QUERY WITH -- Walk the tree of group memberships and...
24.387097
71
0.728836
3fdbcc3d3ee266f132d23dfbaefd7f7fee3c3fe7
1,456
exs
Elixir
test/lib/dwolla/business_classification_test.exs
pay-it-off/dwolla-elixir
ea71c44ed1b02be5cf416225b872490a4f7e4bf9
[ "MIT" ]
null
null
null
test/lib/dwolla/business_classification_test.exs
pay-it-off/dwolla-elixir
ea71c44ed1b02be5cf416225b872490a4f7e4bf9
[ "MIT" ]
null
null
null
test/lib/dwolla/business_classification_test.exs
pay-it-off/dwolla-elixir
ea71c44ed1b02be5cf416225b872490a4f7e4bf9
[ "MIT" ]
1
2022-02-13T17:14:59.000Z
2022-02-13T17:14:59.000Z
defmodule Dwolla.BusinessClassificationTest do use ExUnit.Case import Dwolla.Factory alias Dwolla.BusinessClassification alias Plug.Conn setup do bypass = Bypass.open() Application.put_env(:dwolla, :root_uri, "http://localhost:#{bypass.port}/") {:ok, bypass: bypass} end describe "business ...
29.12
79
0.67239
3fdc0111b0098a466885b4e2194592aaa7f6c424
254
ex
Elixir
demos/brella_demo_umbrella/apps/brella_demo_web/lib/brella_demo_web/controllers/page_controller.ex
axelson/priv_check
ba4228881edbf16ac61b0e006537de517c7f6f06
[ "MIT" ]
8
2020-03-15T19:22:02.000Z
2021-09-28T11:00:18.000Z
demos/brella_demo_umbrella/apps/brella_demo_web/lib/brella_demo_web/controllers/page_controller.ex
axelson/priv_check
ba4228881edbf16ac61b0e006537de517c7f6f06
[ "MIT" ]
7
2020-03-11T06:21:57.000Z
2020-11-15T19:48:54.000Z
demos/brella_demo_umbrella/apps/brella_demo_web/lib/brella_demo_web/controllers/page_controller.ex
axelson/priv_check
ba4228881edbf16ac61b0e006537de517c7f6f06
[ "MIT" ]
null
null
null
defmodule BrellaDemoWeb.PageController do use BrellaDemoWeb, :controller # IO.inspect(Mix.Project.config(), label: "Mix.Project.config()") def index(conn, _params) do BrellaDemo.NonPublic.a_function() render(conn, "index.html") end end
23.090909
67
0.728346
3fdc14777b572d423b5953e0c0f7b317261021bf
1,138
ex
Elixir
lib/mysimplelist_web/live/list_live/index.ex
ScorpionResponse/mysimplelist
3c792373cc372ab5e196fe109b9dae68b97b7220
[ "Apache-2.0" ]
null
null
null
lib/mysimplelist_web/live/list_live/index.ex
ScorpionResponse/mysimplelist
3c792373cc372ab5e196fe109b9dae68b97b7220
[ "Apache-2.0" ]
null
null
null
lib/mysimplelist_web/live/list_live/index.ex
ScorpionResponse/mysimplelist
3c792373cc372ab5e196fe109b9dae68b97b7220
[ "Apache-2.0" ]
null
null
null
defmodule MysimplelistWeb.ListLive.Index do use MysimplelistWeb, :live_view alias Mysimplelist.Lists alias Mysimplelist.Lists.List @impl true def mount(_params, %{"current_user_token" => current_user_token}, socket) do {:ok, assign(socket, lists: list_lists(), current_user_token: current_user_token)} ...
24.212766
86
0.669596
3fdc20156712876de48973e48b1ef2f1be9e279d
1,133
exs
Elixir
capetown-dojo/kata-3-functional-programming/example_4/config/config.exs
Intellection/code-kata
cacf4fc7b843dd1fd8a2dbc3c80209868738d950
[ "MIT" ]
null
null
null
capetown-dojo/kata-3-functional-programming/example_4/config/config.exs
Intellection/code-kata
cacf4fc7b843dd1fd8a2dbc3c80209868738d950
[ "MIT" ]
7
2020-02-26T00:34:39.000Z
2022-02-11T23:16:54.000Z
capetown-dojo/kata-3-functional-programming/example_4/config/config.exs
Intellection/code-kata
cacf4fc7b843dd1fd8a2dbc3c80209868738d950
[ "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.548387
73
0.751986
3fdc2ba5fc67fcd94a694a7b8620bd182af879ad
3,244
exs
Elixir
test/elixir/test/jsonp_test.exs
mtenrero/couchdb-vetcontrol
b7ede3ededdf0072c73f08d8f1217cb723b03f7a
[ "Apache-2.0" ]
null
null
null
test/elixir/test/jsonp_test.exs
mtenrero/couchdb-vetcontrol
b7ede3ededdf0072c73f08d8f1217cb723b03f7a
[ "Apache-2.0" ]
null
null
null
test/elixir/test/jsonp_test.exs
mtenrero/couchdb-vetcontrol
b7ede3ededdf0072c73f08d8f1217cb723b03f7a
[ "Apache-2.0" ]
null
null
null
defmodule JsonpTest do use CouchTestCase @moduletag :jsonp @tag :with_db test "jsonp not configured callbacks", context do db_name = context[:db_name] {:ok, _} = create_doc(db_name, %{_id: "0", a: 0, b: 0}) resp = Couch.get("/#{db_name}/0?callback=jsonp_no_chunk") assert resp.status_code == 2...
27.726496
87
0.60111
3fdc3ac8b5d11253fbe3b7719b07906db085b18d
415
exs
Elixir
test/mix/tasks/triplex.rollback_test.exs
felipe-kosouski/triplex
daa68037217a17eedf9eef4c9e8ca88da4ad8870
[ "MIT" ]
344
2017-07-03T11:30:26.000Z
2022-03-30T19:11:41.000Z
test/mix/tasks/triplex.rollback_test.exs
felipe-kosouski/triplex
daa68037217a17eedf9eef4c9e8ca88da4ad8870
[ "MIT" ]
56
2017-06-29T01:55:35.000Z
2022-03-15T22:09:47.000Z
test/mix/tasks/triplex.rollback_test.exs
felipe-kosouski/triplex
daa68037217a17eedf9eef4c9e8ca88da4ad8870
[ "MIT" ]
45
2017-08-15T18:59:41.000Z
2022-03-17T17:00:50.000Z
defmodule Mix.Tasks.Triplex.RollbackTest do use ExUnit.Case alias Mix.Tasks.Triplex.Rollback @repos [Triplex.PGTestRepo, Triplex.MSTestRepo] test "runs the migrator function" do for repo <- @repos do Rollback.run(["-r", repo, "--step=1", "--quiet"], fn args, direction -> assert args == ["-r...
24.411765
77
0.621687
3fdc56444e204476b041451984b55d895b57d696
382
ex
Elixir
take-a-number/lib/take_a_number.ex
w0rd-driven/exercism-elixir
77fabf71ef995530704d06f54196a5c48bc1e0f3
[ "MIT" ]
null
null
null
take-a-number/lib/take_a_number.ex
w0rd-driven/exercism-elixir
77fabf71ef995530704d06f54196a5c48bc1e0f3
[ "MIT" ]
null
null
null
take-a-number/lib/take_a_number.ex
w0rd-driven/exercism-elixir
77fabf71ef995530704d06f54196a5c48bc1e0f3
[ "MIT" ]
null
null
null
defmodule TakeANumber do @spec start :: pid def start() do spawn(fn -> run(0) end) end defp run(state) do receive do {:report_state, sender} -> send(sender, state) run(state) {:take_a_number, sender} -> count = state + 1 send(sender, count) run(count)...
18.190476
33
0.531414
3fdc6b3f6ca1c57ef2c98a1f4158ac8b0e8f9a9f
703
ex
Elixir
apps/bank_web/web/gettext.ex
devnacho/acme_bank
cee19a490d2b3c04465273b7a6212d7e6a81f736
[ "MIT" ]
776
2016-07-16T14:24:37.000Z
2022-03-07T17:05:11.000Z
apps/bank_web/web/gettext.ex
fercho1224/devops
81a352d857e190963d9f045d73c91f3c36a12064
[ "MIT" ]
19
2016-09-03T15:06:57.000Z
2021-12-10T10:04:05.000Z
apps/bank_web/web/gettext.ex
fercho1224/devops
81a352d857e190963d9f045d73c91f3c36a12064
[ "MIT" ]
130
2016-09-03T19:44:27.000Z
2022-01-16T12:27:54.000Z
defmodule BankWeb.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 BankWeb.Gettext # Simple translation gettext "Here is the str...
28.12
72
0.678521
3fdced6bd28aff10d265d177b8864d5ad704b809
309
exs
Elixir
programming_elixir/weather2.exs
enilsen16/elixir
b4d1d45858a25e4beb39e07de8685f3d93d6a520
[ "MIT" ]
null
null
null
programming_elixir/weather2.exs
enilsen16/elixir
b4d1d45858a25e4beb39e07de8685f3d93d6a520
[ "MIT" ]
null
null
null
programming_elixir/weather2.exs
enilsen16/elixir
b4d1d45858a25e4beb39e07de8685f3d93d6a520
[ "MIT" ]
null
null
null
defmodule WeatherHistory do def for_location([], _target_loc), do: [] def for_location([ [time, target_loc, temp, rain] | tail ], target_loc) do [ [time, target_loc, temp, rain] | for_location(tail, target_loc)] end def for_location([_ | tail], target_loc), do: for_location(tail, target_loc) end
38.625
78
0.705502
3fdd1f7a805eba46721a2a12951776223db925af
2,369
ex
Elixir
clients/calendar/lib/google_api/calendar/v3/model/calendar.ex
ericrwolfe/elixir-google-api
3dc0f17edd5e2d6843580c16ddae3bf84b664ffd
[ "Apache-2.0" ]
null
null
null
clients/calendar/lib/google_api/calendar/v3/model/calendar.ex
ericrwolfe/elixir-google-api
3dc0f17edd5e2d6843580c16ddae3bf84b664ffd
[ "Apache-2.0" ]
null
null
null
clients/calendar/lib/google_api/calendar/v3/model/calendar.ex
ericrwolfe/elixir-google-api
3dc0f17edd5e2d6843580c16ddae3bf84b664ffd
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the &quot;License&quot;); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
35.893939
168
0.726467
3fdd45422cbe25cf63dbac6622394a624ed6ad38
3,136
ex
Elixir
lib/kvstore/storage.ex
Ellocsys/KVstore
f5ee23a189bdf537e0ffa8ee7489f39880a21971
[ "MIT" ]
null
null
null
lib/kvstore/storage.ex
Ellocsys/KVstore
f5ee23a189bdf537e0ffa8ee7489f39880a21971
[ "MIT" ]
null
null
null
lib/kvstore/storage.ex
Ellocsys/KVstore
f5ee23a189bdf537e0ffa8ee7489f39880a21971
[ "MIT" ]
null
null
null
defmodule KVstore.Storage do use GenServer @moduledoc """ Модуль, который отвечает за хранение и предоставление данных в DETS """ @doc """ Обязательный параметр :file_name - название файла для хранения """ def init(opts) do file_name = Keyword.fetch!(opts, :file_name) ...
26.803419
139
0.557079
3fdd527ebe3aab8a2308db40c5e968431e2b4f7e
2,280
ex
Elixir
apps/astarte_appengine_api/lib/astarte_appengine_api/device/astarte_value.ex
Annopaolo/astarte
f8190e8bf044759a9b84bdeb5786a55b6f793a4f
[ "Apache-2.0" ]
191
2018-03-30T13:23:08.000Z
2022-03-02T12:05:32.000Z
apps/astarte_appengine_api/lib/astarte_appengine_api/device/astarte_value.ex
Annopaolo/astarte
f8190e8bf044759a9b84bdeb5786a55b6f793a4f
[ "Apache-2.0" ]
402
2018-03-30T13:37:00.000Z
2022-03-31T16:47:10.000Z
apps/astarte_appengine_api/lib/astarte_appengine_api/device/astarte_value.ex
Annopaolo/astarte
f8190e8bf044759a9b84bdeb5786a55b6f793a4f
[ "Apache-2.0" ]
24
2018-03-30T13:29:48.000Z
2022-02-28T11:10:26.000Z
# # This file is part of Astarte. # # Copyright 2018 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...
27.46988
95
0.70307
3fdd532424ff87d3a22fd74da8cebee5156de1ad
389
ex
Elixir
hangman/lib/runtime/watchdog.ex
calazans10/e4p2-hangman
96f9cfe9ae0417c606f19b10321b6351ad4e6b5d
[ "MIT" ]
null
null
null
hangman/lib/runtime/watchdog.ex
calazans10/e4p2-hangman
96f9cfe9ae0417c606f19b10321b6351ad4e6b5d
[ "MIT" ]
null
null
null
hangman/lib/runtime/watchdog.ex
calazans10/e4p2-hangman
96f9cfe9ae0417c606f19b10321b6351ad4e6b5d
[ "MIT" ]
null
null
null
defmodule Hangman.Runtime.Watchdog do def start(expiry_time) do spawn_link(fn -> watcher(expiry_time) end) end def im_alive(watcher) do send(watcher, :im_alive) end defp watcher(expiry_time) do receive do :im_alive -> watcher(expiry_time) after expiry_time -> Proc...
19.45
62
0.660668
3fddf1c4f9e66d8fb1becd6f3aaa6f8155e7aa08
736
ex
Elixir
backend/apps/students_crm_v2/lib/students_crm_v2/concerns/pager.ex
KyivKrishnaAcademy/students_crm_v2
e0ad9b3c5e52dfef5ab8f9179f3c593f935786e6
[ "MIT" ]
null
null
null
backend/apps/students_crm_v2/lib/students_crm_v2/concerns/pager.ex
KyivKrishnaAcademy/students_crm_v2
e0ad9b3c5e52dfef5ab8f9179f3c593f935786e6
[ "MIT" ]
50
2018-07-29T09:17:35.000Z
2019-02-26T05:23:34.000Z
backend/apps/students_crm_v2/lib/students_crm_v2/concerns/pager.ex
KyivKrishnaAcademy/students_crm_v2
e0ad9b3c5e52dfef5ab8f9179f3c593f935786e6
[ "MIT" ]
null
null
null
defmodule StudentsCrmV2.Concerns.Pager do @moduledoc false alias Ecto.Query alias StudentsCrmV2.Repo @spec page(Query.t(), params :: map()) :: {[map()] | no_return(), map()} def page(query, params) do import Query, only: [limit: 2, offset: 2] page_number = page_param(params, "number", "1") page...
26.285714
106
0.633152
3fde7382288c7cf67ff6b65e21645c36a401f3fb
1,611
ex
Elixir
clients/dataflow/lib/google_api/dataflow/v1b3/model/split_int64.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/dataflow/lib/google_api/dataflow/v1b3/model/split_int64.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/dataflow/lib/google_api/dataflow/v1b3/model/split_int64.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.22
108
0.713222
3fde828b88334b79c759c36767eb278fe805f25c
2,600
ex
Elixir
apps/tai/lib/tai/venues/adapter.ex
ihorkatkov/tai
09f9f15d2c385efe762ae138a8570f1e3fd41f26
[ "MIT" ]
null
null
null
apps/tai/lib/tai/venues/adapter.ex
ihorkatkov/tai
09f9f15d2c385efe762ae138a8570f1e3fd41f26
[ "MIT" ]
null
null
null
apps/tai/lib/tai/venues/adapter.ex
ihorkatkov/tai
09f9f15d2c385efe762ae138a8570f1e3fd41f26
[ "MIT" ]
null
null
null
defmodule Tai.Venues.Adapter do alias Tai.Trading.OrderResponses @type channel :: atom @type venue_id :: atom @type account_id :: atom @type credentials :: map @type product :: Tai.Venues.Product.t() @type asset_balance :: Tai.Venues.AssetBalance.t() @type position :: Tai.Trading.Position.t() @type o...
35.135135
98
0.647692
3fde85155a45aabc43d1ad4c7a60bfa517ad18b5
107
ex
Elixir
apps/tai/lib/tai/fleets/advisor_config_store.ex
ccamateur/tai
41c4b3e09dafc77987fa3f6b300c15461d981e16
[ "MIT" ]
276
2018-01-16T06:36:06.000Z
2021-03-20T21:48:01.000Z
apps/tai/lib/tai/fleets/advisor_config_store.ex
ccamateur/tai
41c4b3e09dafc77987fa3f6b300c15461d981e16
[ "MIT" ]
73
2018-10-05T18:45:06.000Z
2021-02-08T05:46:33.000Z
apps/tai/lib/tai/fleets/advisor_config_store.ex
ccamateur/tai
41c4b3e09dafc77987fa3f6b300c15461d981e16
[ "MIT" ]
43
2018-06-09T09:54:51.000Z
2021-03-07T07:35:17.000Z
defmodule Tai.Fleets.AdvisorConfigStore do use Stored.Store def default_store_id, do: @default_id end
17.833333
42
0.803738
3fdec4462ebd1c8edb6084b7c604bd44b80a046b
1,375
ex
Elixir
lib/surface/components/form.ex
capitalist/surface
f1c75f92513b607c98ba578030a647e0f5d6d11c
[ "MIT" ]
null
null
null
lib/surface/components/form.ex
capitalist/surface
f1c75f92513b607c98ba578030a647e0f5d6d11c
[ "MIT" ]
null
null
null
lib/surface/components/form.ex
capitalist/surface
f1c75f92513b607c98ba578030a647e0f5d6d11c
[ "MIT" ]
null
null
null
defmodule Surface.Components.Form do @moduledoc """ Defines a **form** that lets the user submit information. Provides a wrapper for `Phoenix.HTML.Form.form_for/3`. Additionally, adds the form instance that is returned by `form_for/3` into the context, making it available to any child input. All options p...
25.943396
75
0.674182