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
380652e779783aa81dec978391be5652f9a3cca1
196
exs
Elixir
test/controllers/page_controller_test.exs
andy-c-jones/basic-phoenix-app
7ebc473df5dd658ec4b7621e7e9ab0040d905394
[ "MIT" ]
null
null
null
test/controllers/page_controller_test.exs
andy-c-jones/basic-phoenix-app
7ebc473df5dd658ec4b7621e7e9ab0040d905394
[ "MIT" ]
null
null
null
test/controllers/page_controller_test.exs
andy-c-jones/basic-phoenix-app
7ebc473df5dd658ec4b7621e7e9ab0040d905394
[ "MIT" ]
null
null
null
defmodule BasicPhoenixApp.PageControllerTest do use BasicPhoenixApp.ConnCase test "GET /" do conn = get conn(), "/" assert html_response(conn, 200) =~ "Welcome to Phoenix!" end end
21.777778
60
0.704082
3806591d252cee727e461b6b9d45436f514722f5
1,059
ex
Elixir
lib/hubby_web/channels/user_socket.ex
alissonfpmorais/hubby
5e8510f4cd30aca1f36864119240ec54f7069b5b
[ "MIT" ]
null
null
null
lib/hubby_web/channels/user_socket.ex
alissonfpmorais/hubby
5e8510f4cd30aca1f36864119240ec54f7069b5b
[ "MIT" ]
null
null
null
lib/hubby_web/channels/user_socket.ex
alissonfpmorais/hubby
5e8510f4cd30aca1f36864119240ec54f7069b5b
[ "MIT" ]
null
null
null
defmodule HubbyWeb.UserSocket do use Phoenix.Socket ## Channels # channel "room:*", HubbyWeb.RoomChannel # Socket params are passed from the client and can # be used to verify and authenticate a user. After # verification, you can put default assigns into # the socket that will be set for all channels, ...
31.147059
83
0.694995
38066543f181f200f3fe38a54f3433611b1ad3c0
4,892
exs
Elixir
lib/mix/test/mix/tasks/compile.erlang_test.exs
davidsulc/elixir
dd4fd6ab742acd75862e34e26dbdb86e0cf6453f
[ "Apache-2.0" ]
null
null
null
lib/mix/test/mix/tasks/compile.erlang_test.exs
davidsulc/elixir
dd4fd6ab742acd75862e34e26dbdb86e0cf6453f
[ "Apache-2.0" ]
null
null
null
lib/mix/test/mix/tasks/compile.erlang_test.exs
davidsulc/elixir
dd4fd6ab742acd75862e34e26dbdb86e0cf6453f
[ "Apache-2.0" ]
null
null
null
Code.require_file "../../test_helper.exs", __DIR__ defmodule Mix.Tasks.Compile.ErlangTest do use MixTest.Case import ExUnit.CaptureIO setup config do erlc_options = Map.get(config, :erlc_options, []) Mix.ProjectStack.post_config erlc_options: erlc_options Mix.Project.push MixTest.Case.Sample :ok...
30.962025
85
0.601594
38066d630fd230d366e67b7c4d9de4e2e5e019b0
2,255
ex
Elixir
clients/content/lib/google_api/content/v2/model/shipping_settings.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
1
2018-12-03T23:43:10.000Z
2018-12-03T23:43:10.000Z
clients/content/lib/google_api/content/v2/model/shipping_settings.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
clients/content/lib/google_api/content/v2/model/shipping_settings.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "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 ...
42.54717
191
0.738803
3806a008bc7574315ed66730b4f87156a666bb9e
97
exs
Elixir
test/views/layout_view_test.exs
timwis/ueberauth_example
7e4d8b41c08d344a606a59554265d385555000a1
[ "MIT" ]
null
null
null
test/views/layout_view_test.exs
timwis/ueberauth_example
7e4d8b41c08d344a606a59554265d385555000a1
[ "MIT" ]
3
2020-07-17T15:34:04.000Z
2021-05-09T22:10:14.000Z
test/views/layout_view_test.exs
timwis/ueberauth_example
7e4d8b41c08d344a606a59554265d385555000a1
[ "MIT" ]
null
null
null
defmodule UeberauthExample.LayoutViewTest do use UeberauthExampleWeb.ConnCase, async: true end
24.25
47
0.85567
3806aa2fc2d0d7a4edf5f46b997678d639461822
1,804
ex
Elixir
clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p4beta1_position.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p4beta1_position.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p4beta1_position.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...
32.8
92
0.710643
3806cbde71fb1014e14a683c0612e5c53af08749
17,277
ex
Elixir
lib/ex_unit/lib/ex_unit/assertions.ex
hamiltop/elixir
3b601660d4d4eb0c69f824fcebbbe93a3f2ba463
[ "Apache-2.0" ]
null
null
null
lib/ex_unit/lib/ex_unit/assertions.ex
hamiltop/elixir
3b601660d4d4eb0c69f824fcebbbe93a3f2ba463
[ "Apache-2.0" ]
null
null
null
lib/ex_unit/lib/ex_unit/assertions.ex
hamiltop/elixir
3b601660d4d4eb0c69f824fcebbbe93a3f2ba463
[ "Apache-2.0" ]
null
null
null
defmodule ExUnit.AssertionError do @moduledoc """ Raised to signal an assertion error. """ @no_value :ex_unit_no_meaningful_value defexception left: @no_value, right: @no_value, message: @no_value, expr: @no_value @doc """ Indicates no meaningful val...
25.67162
161
0.618221
3806e16989d401f63259f72ae077141ea3a320c9
1,143
ex
Elixir
apps/info_sys/lib/info_sys/wolfram.ex
richeterre/phoenix-example
cd01a3401387c63dc11e64ca89e500e8eabd5fb0
[ "MIT" ]
null
null
null
apps/info_sys/lib/info_sys/wolfram.ex
richeterre/phoenix-example
cd01a3401387c63dc11e64ca89e500e8eabd5fb0
[ "MIT" ]
null
null
null
apps/info_sys/lib/info_sys/wolfram.ex
richeterre/phoenix-example
cd01a3401387c63dc11e64ca89e500e8eabd5fb0
[ "MIT" ]
null
null
null
defmodule InfoSys.Wolfram do import SweetXml alias InfoSys.Result @http Application.get_env(:info_sys, :wolfram)[:http_client] || :httpc def start_link(query, query_ref, owner, limit) do Task.start_link(__MODULE__, :fetch, [query, query_ref, owner, limit]) end def fetch(query_str, query_ref, owner, _...
29.307692
79
0.668416
3806fac135d79e3efa332dae76cff6f1e895edda
848
ex
Elixir
day15/lib/day15.ex
carlism/aoc_2020
5ffdba5d41d243562fa448a92ff02900354956bb
[ "MIT" ]
null
null
null
day15/lib/day15.ex
carlism/aoc_2020
5ffdba5d41d243562fa448a92ff02900354956bb
[ "MIT" ]
null
null
null
day15/lib/day15.ex
carlism/aoc_2020
5ffdba5d41d243562fa448a92ff02900354956bb
[ "MIT" ]
null
null
null
defmodule Day15 do @moduledoc """ Documentation for Day15. """ def record_turn(map, turn_count, value) do Map.put(map, value, Enum.slice([turn_count | Map.get(map, value, [])], 0..1)) end def next_turn(map, last_num) do case Map.get(map, last_num, []) do [_x] -> 0 [x, y] -> x - y e...
24.941176
93
0.600236
380729cb9d95f5e86cd7abcf0094c8db48222931
2,145
exs
Elixir
mix.exs
mimicry-tech/mimicry
08a28fb08a7f02fbbb0a2bc2724a08a0b0b41cd9
[ "MIT" ]
4
2021-06-18T17:47:32.000Z
2022-01-04T22:41:36.000Z
mix.exs
mimicry-tech/mimicry
08a28fb08a7f02fbbb0a2bc2724a08a0b0b41cd9
[ "MIT" ]
56
2021-06-14T19:04:35.000Z
2022-03-24T04:18:58.000Z
mix.exs
mimicry-tech/mimicry
08a28fb08a7f02fbbb0a2bc2724a08a0b0b41cd9
[ "MIT" ]
1
2021-06-13T13:44:35.000Z
2021-06-13T13:44:35.000Z
defmodule Mimicry.MixProject do use Mix.Project def project do [ app: :mimicry, version: "0.0.0", elixir: "~> 1.10", elixirc_paths: elixirc_paths(Mix.env()), description: description(), package: package(), start_permanent: Mix.env() == :prod, deps: deps(), ...
24.375
78
0.541259
38073f0bd91c59a3d4b33a8fd25462b220d46cd0
5,848
exs
Elixir
test/unit/xsd/datatypes/time_test.exs
marcelotto/rdf-ex
12adce69eb2dbff027cbc83aaaf912067aea1b02
[ "MIT" ]
53
2017-06-25T22:20:44.000Z
2020-04-27T17:27:51.000Z
test/unit/xsd/datatypes/time_test.exs
marcelotto/rdf-ex
12adce69eb2dbff027cbc83aaaf912067aea1b02
[ "MIT" ]
7
2017-06-25T00:29:11.000Z
2020-03-11T00:23:47.000Z
test/unit/xsd/datatypes/time_test.exs
rdf-elixir/rdf-ex
7d4280ec9a912ef6ee9fc96ecdfdf26647016d6a
[ "MIT" ]
3
2020-07-03T13:25:36.000Z
2021-04-04T12:33:51.000Z
defmodule RDF.XSD.TimeTest do use RDF.XSD.Datatype.Test.Case, datatype: RDF.XSD.Time, name: "time", primitive: true, applicable_facets: [ RDF.XSD.Facets.ExplicitTimezone, RDF.XSD.Facets.Pattern ], facets: %{ explicit_timezone: nil, pattern: nil }, valid: %{ ...
35.017964
91
0.478454
38074238d0232fcfd6e0e7d2d618c5a146dc685f
456
exs
Elixir
triangle/example.exs
wobh/xelixir
63e5beec40d5c441cf6cf87f30c29848f481bb1b
[ "MIT" ]
1
2021-08-16T20:24:14.000Z
2021-08-16T20:24:14.000Z
exercises/triangle/example.exs
Triangle-Elixir/xelixir
08d23bf47f57799f286567cb26f635291de2fde5
[ "MIT" ]
null
null
null
exercises/triangle/example.exs
Triangle-Elixir/xelixir
08d23bf47f57799f286567cb26f635291de2fde5
[ "MIT" ]
null
null
null
defmodule Triangle do def kind(a, b, c), do: kind Enum.sort [a, b, c] defp kind([a, _, _]) when a <= 0, do: { :error, "all side lengths must be positive" } defp kind([a, b, c]) when a + b <= c, do: { :error, "side lengths violate triangle inequality" } defp kind([x, x, x]), do: { :ok, :equilateral } defp kin...
41.454545
98
0.565789
38074a58d74a6da10093e708c1432d29ee0fb58e
600
ex
Elixir
lib/gateway/shard/starter.ex
SpaceEEC/crux_gateway
cd6e3dd661f39047fd1499bfa3d96f9f1f324d5a
[ "MIT" ]
7
2018-05-22T07:13:45.000Z
2020-08-16T19:24:38.000Z
lib/gateway/shard/starter.ex
SpaceEEC/crux_gateway
cd6e3dd661f39047fd1499bfa3d96f9f1f324d5a
[ "MIT" ]
1
2020-10-08T16:59:47.000Z
2020-10-10T20:18:00.000Z
lib/gateway/shard/starter.ex
SpaceEEC/crux_gateway
cd6e3dd661f39047fd1499bfa3d96f9f1f324d5a
[ "MIT" ]
null
null
null
defmodule Crux.Gateway.Shard.Starter do @moduledoc false # Module to start initially shards in _sync_. # There probably is a better way to go about this, but I don't know it. alias Crux.Gateway.Shard.Supervisor, as: ShardSupervisor def child_spec(opts) do %{ id: __MODULE__, start: {__MODUL...
20
73
0.656667
38078f6a9206282286643970a5817b44b1352e2e
3,473
ex
Elixir
clients/compute/lib/google_api/compute/v1/model/customer_encryption_key.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/compute/lib/google_api/compute/v1/model/customer_encryption_key.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/compute/lib/google_api/compute/v1/model/customer_encryption_key.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...
58.864407
886
0.752375
380798f3afdba1a25c78773385cff2d68e4ed4a9
1,127
exs
Elixir
Life/life_cli/config/config.exs
andfoy/cpd-exercises
f36ac16c74bb980d7edd6aaf5661a6d4d4b09489
[ "MIT" ]
null
null
null
Life/life_cli/config/config.exs
andfoy/cpd-exercises
f36ac16c74bb980d7edd6aaf5661a6d4d4b09489
[ "MIT" ]
null
null
null
Life/life_cli/config/config.exs
andfoy/cpd-exercises
f36ac16c74bb980d7edd6aaf5661a6d4d4b09489
[ "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.354839
73
0.750665
3807a303562ef8e41abae7b2f67eaa35724fca05
988
ex
Elixir
lib/ecto/query/having_builder.ex
MSch/ecto
648f785b2202193921fe00d68bc334399f5edb93
[ "Apache-2.0" ]
1
2015-08-27T13:17:10.000Z
2015-08-27T13:17:10.000Z
lib/ecto/query/having_builder.ex
TanYewWei/ecto
916c6467d5f7368fa10ecd7cfcfd2d4a9924a282
[ "Apache-2.0" ]
null
null
null
lib/ecto/query/having_builder.ex
TanYewWei/ecto
916c6467d5f7368fa10ecd7cfcfd2d4a9924a282
[ "Apache-2.0" ]
null
null
null
defmodule Ecto.Query.HavingBuilder do @moduledoc false alias Ecto.Query.BuilderUtil @doc """ Builds a quoted expression. The quoted expression should evaluate to a query at runtime. If possible, it does all calculations at compile time to avoid runtime work. """ @spec build(Macro.t, [Macro.t], Macr...
31.870968
79
0.684211
3807fb26ac2cece8ba3284482ceaa7e97351bebe
483
ex
Elixir
web/models/tag.ex
slurmulon/hone
9cc817fef06fbec564b18a11faa472ecf902aa62
[ "MIT" ]
null
null
null
web/models/tag.ex
slurmulon/hone
9cc817fef06fbec564b18a11faa472ecf902aa62
[ "MIT" ]
null
null
null
web/models/tag.ex
slurmulon/hone
9cc817fef06fbec564b18a11faa472ecf902aa62
[ "MIT" ]
null
null
null
defmodule Hone.Tag do use Hone.Web, :model schema "tags" do field :label, :string field :color, :string belongs_to :unit, Hone.Unit timestamps end @doc """ Creates a changeset based on the `model` and `params`. If no params are provided, an invalid changeset is returned with no validat...
20.125
61
0.648033
38081929f0adf5b6529fdde85d276cc288ef965f
10,965
ex
Elixir
lib/absinthe/resolution.ex
hauptbenutzer/absinthe
f1d76e5c249ca337187971b0c96b1870f53716ed
[ "MIT" ]
null
null
null
lib/absinthe/resolution.ex
hauptbenutzer/absinthe
f1d76e5c249ca337187971b0c96b1870f53716ed
[ "MIT" ]
2
2018-08-02T13:35:38.000Z
2018-08-02T13:36:42.000Z
lib/absinthe/resolution.ex
hauptbenutzer/absinthe
f1d76e5c249ca337187971b0c96b1870f53716ed
[ "MIT" ]
1
2018-11-16T02:34:40.000Z
2018-11-16T02:34:40.000Z
defmodule Absinthe.Resolution do @moduledoc """ Information about the current resolution. It is created by adding field specific information to the more general `%Absinthe.Blueprint.Execution{}` struct. In many ways like the `%Conn{}` from `Plug`, the `%Absinthe.Resolution{}` is the piece of information that...
25.206897
134
0.627086
3808451d565293fadaf1d162bea2cd15ea7a9aa5
2,838
exs
Elixir
test/credo/check/refactor/filter_filter_test.exs
hrzndhrn/credo
71a7b24a5ca8e7a48416e0cdfb42cf8a0fef9593
[ "MIT" ]
4,590
2015-09-28T06:01:43.000Z
2022-03-29T08:48:57.000Z
test/credo/check/refactor/filter_filter_test.exs
hrzndhrn/credo
71a7b24a5ca8e7a48416e0cdfb42cf8a0fef9593
[ "MIT" ]
890
2015-11-16T21:07:07.000Z
2022-03-29T08:52:07.000Z
test/credo/check/refactor/filter_filter_test.exs
hrzndhrn/credo
71a7b24a5ca8e7a48416e0cdfb42cf8a0fef9593
[ "MIT" ]
479
2015-11-17T19:42:40.000Z
2022-03-29T00:09:21.000Z
defmodule Credo.Check.Refactor.FilterFilterTest do use Credo.Test.Case @described_check Credo.Check.Refactor.FilterFilter # # cases NOT raising issues # test "it should NOT report expected code" do """ defmodule Credo.Sample.Module do def some_function(p1, p2, p3, p4, p5) do Enum.fi...
24.25641
104
0.562368
38085344c5def40ce0a66fff3ac3d32cbac5ca05
596
ex
Elixir
lib/beam_to_ex_ast/match.ex
olafura/beam_to_ex_ast
5451d189105c3a4b52aedbf4fbc4f0beca3b9b80
[ "Apache-2.0" ]
16
2016-02-12T15:15:58.000Z
2021-08-24T21:48:34.000Z
lib/beam_to_ex_ast/match.ex
olafura/beam_to_ex_ast
5451d189105c3a4b52aedbf4fbc4f0beca3b9b80
[ "Apache-2.0" ]
1
2016-02-17T04:58:38.000Z
2016-02-17T04:58:38.000Z
lib/beam_to_ex_ast/match.ex
olafura/beam_to_ex_ast
5451d189105c3a4b52aedbf4fbc4f0beca3b9b80
[ "Apache-2.0" ]
2
2016-02-17T03:21:23.000Z
2016-03-08T09:23:27.000Z
import ProtocolEx alias BeamToExAst.Translate defimplEx BeamToExAst.Match, {:match, _ln, _param1, _param2}, for: Translate do alias BeamToExAst.Translate def to_elixir({:match, _ln, {:var, _, _}, {:atom, _, nil}}, _) do :filter_this_thing_out_of_the_list_please end def to_elixir({:match, _ln, {:var, _, v...
29.8
84
0.676174
3808563d3e7e901e7ac1a39697f6beb7e4b17e7a
2,177
ex
Elixir
lib/absinthe/graphql_ws/util.ex
mathieuprog/absinthe_graphql_ws
d2a6be578459f7bb0dd81e64bb7e33cf6c580a01
[ "MIT" ]
26
2021-06-07T11:00:25.000Z
2022-03-13T00:17:52.000Z
lib/absinthe/graphql_ws/util.ex
mathieuprog/absinthe_graphql_ws
d2a6be578459f7bb0dd81e64bb7e33cf6c580a01
[ "MIT" ]
9
2021-06-07T14:59:41.000Z
2022-03-27T13:08:50.000Z
lib/absinthe/graphql_ws/util.ex
mathieuprog/absinthe_graphql_ws
d2a6be578459f7bb0dd81e64bb7e33cf6c580a01
[ "MIT" ]
7
2021-06-07T11:04:47.000Z
2022-03-19T05:29:20.000Z
defmodule Absinthe.GraphqlWS.Util do @moduledoc """ Helper functions that are imported into a module using `Absinthe.GraphqlWS.Socket`. """ alias Absinthe.GraphqlWS.Socket @doc """ Implementation copied from `Phoenix.Socket`, but changed to match on a `Absinthe.GraphqlWS.Socket` struct. """ @spec assi...
30.661972
113
0.666054
38088d8693082f65e7c0ec71b36629123a084a46
7,716
ex
Elixir
lib/absinthe_trace_reporter/trace_report_provider/engine.ex
maartenvanvliet/absinthe_trace_reporter
237d508286b63f09862aec11accfe183b0792876
[ "MIT" ]
11
2018-12-13T08:40:48.000Z
2020-11-10T00:06:18.000Z
lib/absinthe_trace_reporter/trace_report_provider/engine.ex
maartenvanvliet/absinthe_trace_reporter
237d508286b63f09862aec11accfe183b0792876
[ "MIT" ]
14
2019-02-27T04:25:35.000Z
2021-12-20T04:02:05.000Z
lib/absinthe_trace_reporter/trace_report_provider/engine.ex
maartenvanvliet/absinthe_trace_reporter
237d508286b63f09862aec11accfe183b0792876
[ "MIT" ]
2
2019-03-23T18:44:11.000Z
2020-05-27T14:07:41.000Z
defmodule AbsintheTraceReporter.TraceProvider.Engine do @behaviour AbsintheTraceReporter.TraceReportProvider def build_trace_report(tracing) when is_list(tracing) do %Mdg.Engine.Proto.FullTracesReport{ header: %Mdg.Engine.Proto.ReportHeader{ agent_version: "apollo-engine-reporting@0.0.2", ...
26.979021
98
0.60381
3808ce369dd48582f8832cbd68b8a0081401610d
2,831
exs
Elixir
day01/test/day01_test.exs
bjorng/advent-of-code-2017
bd58a36864a4d82809253770f8a6d0c4e02cb59a
[ "Apache-2.0" ]
null
null
null
day01/test/day01_test.exs
bjorng/advent-of-code-2017
bd58a36864a4d82809253770f8a6d0c4e02cb59a
[ "Apache-2.0" ]
null
null
null
day01/test/day01_test.exs
bjorng/advent-of-code-2017
bd58a36864a4d82809253770f8a6d0c4e02cb59a
[ "Apache-2.0" ]
null
null
null
defmodule Day01Test do use ExUnit.Case doctest Day01 test "test part 1 with examples" do assert Day01.part1("1122") == 3 assert Day01.part1("1111") == 4 assert Day01.part1("1234") == 0 assert Day01.part1("91212129") == 9 end test "test part 1 with my input data" do assert Day01.part1(inp...
85.787879
2,136
0.907806
380907ed60ffc0fd8018146dcdd8fec8f0ab1f24
886
ex
Elixir
test/support/capturing_udhcpd_handler.ex
takasehideki/vintage_net
40678fc9d74df5ff9f9f36c6378b62e981ceaf31
[ "Apache-2.0" ]
null
null
null
test/support/capturing_udhcpd_handler.ex
takasehideki/vintage_net
40678fc9d74df5ff9f9f36c6378b62e981ceaf31
[ "Apache-2.0" ]
null
null
null
test/support/capturing_udhcpd_handler.ex
takasehideki/vintage_net
40678fc9d74df5ff9f9f36c6378b62e981ceaf31
[ "Apache-2.0" ]
null
null
null
defmodule VintageNetTest.CapturingUdhcpdHandler do @moduledoc false @behaviour VintageNet.ToElixir.UdhcpdHandler require Logger @doc """ """ @impl true def lease_update(ifname, lease_file) do record(ifname, :lease_update, lease_file) end @doc """ Return captured calls """ @spec get() :: ...
18.458333
80
0.615124
3809160d2b5a105327ec2278c61577253ed10949
504
exs
Elixir
test/scale/ggity_scale_alpha_manual_test.exs
kianmeng/ggity
75f0097464eae4086f8c70e4bea995d60571eba9
[ "MIT" ]
47
2020-06-21T15:23:54.000Z
2022-03-13T01:24:19.000Z
test/scale/ggity_scale_alpha_manual_test.exs
kianmeng/ggity
75f0097464eae4086f8c70e4bea995d60571eba9
[ "MIT" ]
3
2020-11-28T11:00:59.000Z
2020-11-30T18:20:37.000Z
test/scale/ggity_scale_alpha_manual_test.exs
kianmeng/ggity
75f0097464eae4086f8c70e4bea995d60571eba9
[ "MIT" ]
2
2020-11-28T10:40:10.000Z
2021-05-28T06:44:47.000Z
defmodule GGityScaleAlphaManualTest do use ExUnit.Case alias GGity.Scale.Alpha describe "new/1" do test "set transform function to single value" do assert Alpha.Manual.new(0.5).transform.("meat") == 0.5 end test "raises with an invalid value" do assert_raise FunctionClauseError, fn -> A...
25.2
93
0.668651
38094cd9c8332db63cab6a55839bdbbeab1fbc8a
3,943
exs
Elixir
test/frettchen/trace_test.exs
konstantinzolotarev/frettchen
4aced1fb3d1571893ae09c18a31b05352c80cd9e
[ "MIT" ]
3
2018-10-27T18:18:14.000Z
2020-11-27T11:47:41.000Z
test/frettchen/trace_test.exs
konstantinzolotarev/frettchen
4aced1fb3d1571893ae09c18a31b05352c80cd9e
[ "MIT" ]
null
null
null
test/frettchen/trace_test.exs
konstantinzolotarev/frettchen
4aced1fb3d1571893ae09c18a31b05352c80cd9e
[ "MIT" ]
3
2019-01-07T12:32:44.000Z
2021-09-05T07:24:09.000Z
defmodule Frettchen.TraceTest do use ExUnit.Case, async: true doctest Frettchen.Trace alias Frettchen.Trace describe "start/1" do test "returns a trace struct with the passed name as the service name" do trace = Trace.start("foo") assert trace.service_name == "foo" end test "generates...
30.099237
125
0.601572
3809901da533b76a24b2917a70466154b18126ea
7,269
ex
Elixir
lib/codes/codes_d03.ex
badubizzle/icd_code
4c625733f92b7b1d616e272abc3009bb8b916c0c
[ "Apache-2.0" ]
null
null
null
lib/codes/codes_d03.ex
badubizzle/icd_code
4c625733f92b7b1d616e272abc3009bb8b916c0c
[ "Apache-2.0" ]
null
null
null
lib/codes/codes_d03.ex
badubizzle/icd_code
4c625733f92b7b1d616e272abc3009bb8b916c0c
[ "Apache-2.0" ]
null
null
null
defmodule IcdCode.ICDCode.Codes_D03 do alias IcdCode.ICDCode def _D030 do %ICDCode{full_code: "D030", category_code: "D03", short_code: "0", full_name: "Melanoma in situ of lip", short_name: "Melanoma in situ of lip", category_name: "Melanoma in situ of lip" ...
37.086735
91
0.619755
3809c33e90c1a82c9c06e5e1611bb0f3e3e0035d
1,125
exs
Elixir
config/config.exs
ckampfe/ready
33cb1b5f48da1a7950263160588cdecdfc664c91
[ "MIT" ]
null
null
null
config/config.exs
ckampfe/ready
33cb1b5f48da1a7950263160588cdecdfc664c91
[ "MIT" ]
null
null
null
config/config.exs
ckampfe/ready
33cb1b5f48da1a7950263160588cdecdfc664c91
[ "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.290323
73
0.750222
3809f8e106c9bb4e2676372f49852ac794455477
2,000
ex
Elixir
clients/artifact_registry/lib/google_api/artifact_registry/v1/model/yum_artifact.ex
renovate-bot/elixir-google-api
1da34cd39b670c99f067011e05ab90af93fef1f6
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/artifact_registry/lib/google_api/artifact_registry/v1/model/yum_artifact.ex
swansoffiee/elixir-google-api
9ea6d39f273fb430634788c258b3189d3613dde0
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/artifact_registry/lib/google_api/artifact_registry/v1/model/yum_artifact.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...
35.714286
121
0.7065
380a09883c0f8c6ac42ce42aedc2f6b23750b07f
546
ex
Elixir
elixir_minimal_server/lib/minimal_server/endpoint.ex
agabopinho/elixir-vs-dotnetcore-minimal-servers
e7bdabd2949e078141e45a962a09ad760e103b9e
[ "MIT" ]
null
null
null
elixir_minimal_server/lib/minimal_server/endpoint.ex
agabopinho/elixir-vs-dotnetcore-minimal-servers
e7bdabd2949e078141e45a962a09ad760e103b9e
[ "MIT" ]
null
null
null
elixir_minimal_server/lib/minimal_server/endpoint.ex
agabopinho/elixir-vs-dotnetcore-minimal-servers
e7bdabd2949e078141e45a962a09ad760e103b9e
[ "MIT" ]
null
null
null
defmodule MinimalServer.Endpoint do use Plug.Router plug(:match) plug(Plug.Parsers, parsers: [:json], pass: ["application/json"], json_decoder: Poison) forward("/customer", to: MinimalServer.Customer) match _ do send_resp( conn, 404, Poison.encode!(%{ message: "not found" ...
17.0625
88
0.611722
380a0f15c9e2232e59850f33416f5afb8821c815
1,567
ex
Elixir
lib/storm_web/live/components/collection/visibility.ex
enter-haken/storm
9730508c119763bcf5efe852387603dcc7eeb648
[ "MIT" ]
null
null
null
lib/storm_web/live/components/collection/visibility.ex
enter-haken/storm
9730508c119763bcf5efe852387603dcc7eeb648
[ "MIT" ]
1
2021-03-28T22:57:30.000Z
2021-04-10T23:05:04.000Z
lib/storm_web/live/components/collection/visibility.ex
enter-haken/storm
9730508c119763bcf5efe852387603dcc7eeb648
[ "MIT" ]
null
null
null
defmodule StormWeb.Live.Components.Collection.Visibility do use Phoenix.LiveComponent require Logger def render(assigns) do ~L""" <button class="button" phx-click="toggle_visibility" phx-target="<%= @myself %>"> <span class="icon is-small"> <i class="<%= is_visible_icon_class(@storm_collec...
22.385714
85
0.63178
380a139c268826b4d480d57d57633d576750404b
793
exs
Elixir
test/json_schema_test_suite/draft7/exclusive_maximum_test.exs
kianmeng/xema
a990d64fb4bcd708249514daa55426ee003da25d
[ "MIT" ]
49
2018-06-05T09:42:19.000Z
2022-02-15T12:50:51.000Z
test/json_schema_test_suite/draft7/exclusive_maximum_test.exs
kianmeng/xema
a990d64fb4bcd708249514daa55426ee003da25d
[ "MIT" ]
152
2017-06-11T13:43:06.000Z
2022-01-09T17:13:45.000Z
test/json_schema_test_suite/draft7/exclusive_maximum_test.exs
kianmeng/xema
a990d64fb4bcd708249514daa55426ee003da25d
[ "MIT" ]
6
2019-05-31T05:41:47.000Z
2021-12-14T08:09:36.000Z
defmodule JsonSchemaTestSuite.Draft7.ExclusiveMaximumTest do use ExUnit.Case import Xema, only: [valid?: 2] describe ~s|exclusiveMaximum validation| do setup do %{ schema: Xema.from_json_schema( %{"exclusiveMaximum" => 3.0}, draft: "draft7", atom: ...
22.657143
72
0.595208
380a2f4bb9b96a33ebdab1e2a820097185b35ef6
1,718
ex
Elixir
clients/games/lib/google_api/games/v1/model/games_achievement_set_steps_at_least.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/games/lib/google_api/games/v1/model/games_achievement_set_steps_at_least.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/games/lib/google_api/games/v1/model/games_achievement_set_steps_at_least.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.36
174
0.732829
380a4b5be3329cac66c2c4da8d20fa0b194e8517
1,110
exs
Elixir
clients/reseller/mix.exs
linjunpop/elixir-google-api
444cb2b2fb02726894535461a474beddd8b86db4
[ "Apache-2.0" ]
null
null
null
clients/reseller/mix.exs
linjunpop/elixir-google-api
444cb2b2fb02726894535461a474beddd8b86db4
[ "Apache-2.0" ]
null
null
null
clients/reseller/mix.exs
linjunpop/elixir-google-api
444cb2b2fb02726894535461a474beddd8b86db4
[ "Apache-2.0" ]
null
null
null
defmodule GoogleApi.Reseller.V1.Mixfile do use Mix.Project @version "0.3.0" def project do [app: :google_api_reseller, version: @version, elixir: "~> 1.4", build_embedded: Mix.env == :prod, start_permanent: Mix.env == :prod, description: description(), package: package(), ...
23.125
108
0.600901
380a52a07cea7da0048b343088454fb7030dedcf
224
exs
Elixir
apps/artemis/priv/repo/migrations/20200506121852_add_project_id_to_event_answers.exs
artemis-platform/artemis_teams
9930c3d9528e37b76f0525390e32b66eed7eadde
[ "MIT" ]
2
2020-04-23T02:29:18.000Z
2020-07-07T13:13:17.000Z
apps/artemis/priv/repo/migrations/20200506121852_add_project_id_to_event_answers.exs
chrislaskey/artemis_teams
9930c3d9528e37b76f0525390e32b66eed7eadde
[ "MIT" ]
4
2020-04-26T20:35:36.000Z
2020-11-10T22:13:19.000Z
apps/artemis/priv/repo/migrations/20200506121852_add_project_id_to_event_answers.exs
chrislaskey/artemis_teams
9930c3d9528e37b76f0525390e32b66eed7eadde
[ "MIT" ]
null
null
null
defmodule Artemis.Repo.Migrations.AddProjectIdToEventAnswers do use Ecto.Migration def change do alter table(:event_answers) do add :project_id, references(:projects, on_delete: :delete_all) end end end
22.4
68
0.754464
380a86ffe7feac48987c5b48f5cecfa472a1cda6
90
exs
Elixir
test/test_helper.exs
kimquy/phoenix_webpack_vue_boilerplate
0067c7facaeb33c8c53fef7779becc708636c97a
[ "MIT" ]
6
2017-05-19T14:00:24.000Z
2017-07-07T21:19:18.000Z
test/test_helper.exs
kimquy/phoenix_webpack_vue_boilerplate
0067c7facaeb33c8c53fef7779becc708636c97a
[ "MIT" ]
1
2017-05-19T14:04:37.000Z
2017-05-19T14:05:31.000Z
test/test_helper.exs
kimquy/phoenix_webpack_vue_boilerplate
0067c7facaeb33c8c53fef7779becc708636c97a
[ "MIT" ]
null
null
null
ExUnit.start Ecto.Adapters.SQL.Sandbox.mode(PhoenixWebpackVueBoilerplate.Repo, :manual)
18
74
0.833333
380ab51f9705e7701cea05ab6a3e4e6d503a442d
447
ex
Elixir
lib/rocketpay_web/views/users_view.ex
luigiMinardi/nlw-4
944a90ca2f858d60172ceb2fd52a645d108b4ef5
[ "MIT" ]
null
null
null
lib/rocketpay_web/views/users_view.ex
luigiMinardi/nlw-4
944a90ca2f858d60172ceb2fd52a645d108b4ef5
[ "MIT" ]
null
null
null
lib/rocketpay_web/views/users_view.ex
luigiMinardi/nlw-4
944a90ca2f858d60172ceb2fd52a645d108b4ef5
[ "MIT" ]
null
null
null
defmodule RocketpayWeb.UsersView do alias Rocketpay.{Account, User} def render("create.json", %{ user: %User{account: %Account{id: account_id, balance: balance}, id: id, name: name, nickname: nickname} }) do %{ message: "User created", user: %{ id: id, name: name, ...
21.285714
110
0.543624
380ad73d6d25475d5c178247a3ed7c0d38002bef
1,059
exs
Elixir
test/models/list_test.exs
gridgentoo/ElixirTrelloKanban
11b91d9d864d2e332a94838d43c7a9b1015e17c6
[ "MIT" ]
2,784
2016-01-06T03:16:07.000Z
2022-03-14T03:52:20.000Z
test/models/list_test.exs
gridgentoo/ElixirTrelloKanban
11b91d9d864d2e332a94838d43c7a9b1015e17c6
[ "MIT" ]
49
2016-01-07T11:48:10.000Z
2020-04-27T16:10:12.000Z
test/models/list_test.exs
gridgentoo/ElixirTrelloKanban
11b91d9d864d2e332a94838d43c7a9b1015e17c6
[ "MIT" ]
586
2016-01-11T17:02:13.000Z
2021-12-01T10:54:47.000Z
defmodule PhoenixTrello.ListTest do use PhoenixTrello.ModelCase import PhoenixTrello.Factory alias PhoenixTrello.{Repo, List} @valid_attrs %{name: "some content"} @invalid_attrs %{} setup do {:ok, board: insert(:board)} end test "changeset with valid attributes", %{board: board} do changese...
22.0625
73
0.644948
380b01ef4dfa8821659b879f6135e31ab7858a16
1,119
exs
Elixir
config/config.exs
reteq/push-hub
87f7a4cdb013949f4a68c24a84775699b5df8709
[ "Apache-2.0" ]
1
2016-10-13T05:59:44.000Z
2016-10-13T05:59:44.000Z
config/config.exs
reteq/push-hub
87f7a4cdb013949f4a68c24a84775699b5df8709
[ "Apache-2.0" ]
null
null
null
config/config.exs
reteq/push-hub
87f7a4cdb013949f4a68c24a84775699b5df8709
[ "Apache-2.0" ]
null
null
null
# This file is responsible for configuring your application # and its dependencies with the aid of the Mix.Config module. use Mix.Config # This configuration is loaded before any dependency and is restricted # to this project. If another project depends on this project, this # file won't be loaded nor affect the paren...
36.096774
73
0.751564
380b10e115673b821413aedd2af7ef21bb844020
5,435
ex
Elixir
lib/number.ex
imahiro-t/smallex
5fbc7080fde7f63b3440d8325f45d61f5d1b5bc3
[ "Apache-2.0" ]
7
2020-01-13T21:17:28.000Z
2021-11-15T12:10:55.000Z
lib/number.ex
data-maestro/smallex
5fbc7080fde7f63b3440d8325f45d61f5d1b5bc3
[ "Apache-2.0" ]
26
2021-02-25T09:22:28.000Z
2021-06-11T02:59:11.000Z
lib/number.ex
data-maestro/smallex
5fbc7080fde7f63b3440d8325f45d61f5d1b5bc3
[ "Apache-2.0" ]
2
2018-01-02T17:59:40.000Z
2018-01-12T17:16:02.000Z
defmodule Number do @moduledoc """ Number library. """ @doc """ Round ## Examples iex> Number.round( 123 ) 123 iex> Number.round( 123.456 ) 123.456 iex> Number.round( 123.456, 2 ) 123.46 iex> Number.round( 123.456, 1 ) 123.5 """ def round( value, precision \\ -1 ) # <- default parameter functi...
27.039801
155
0.636063
380b10fdcaac94ffa0bf3cf3a95bb3758a81a68f
3,675
ex
Elixir
lib/kamleague/contents.ex
mzavoloka/kamleague
ba29263ed54cac5c67b537c4b7d1dbc522215341
[ "MIT" ]
null
null
null
lib/kamleague/contents.ex
mzavoloka/kamleague
ba29263ed54cac5c67b537c4b7d1dbc522215341
[ "MIT" ]
2
2021-11-04T21:05:24.000Z
2021-11-04T21:51:48.000Z
lib/kamleague/contents.ex
mzavoloka/kamleague
ba29263ed54cac5c67b537c4b7d1dbc522215341
[ "MIT" ]
1
2021-11-04T18:40:26.000Z
2021-11-04T18:40:26.000Z
defmodule Kamleague.Contents do @moduledoc """ The Contents context. """ import Ecto.Query, warn: false alias Kamleague.Repo alias Kamleague.Contents.Post @doc """ Returns the list of posts. ## Examples iex> list_posts() [%Post{}, ...] """ def list_posts do Post |> Repo.a...
16.857798
89
0.566259
380b45f08fd74cd64392f473a0d842000b1d0692
28,615
exs
Elixir
apps/language_server/test/providers/completion_test.exs
sabiwara/elixir-ls
55d9081f9cbbd2e1ab14386b56dfd0c79b480860
[ "Apache-2.0" ]
null
null
null
apps/language_server/test/providers/completion_test.exs
sabiwara/elixir-ls
55d9081f9cbbd2e1ab14386b56dfd0c79b480860
[ "Apache-2.0" ]
null
null
null
apps/language_server/test/providers/completion_test.exs
sabiwara/elixir-ls
55d9081f9cbbd2e1ab14386b56dfd0c79b480860
[ "Apache-2.0" ]
null
null
null
defmodule ElixirLS.LanguageServer.Providers.CompletionTest do use ExUnit.Case require Logger alias ElixirLS.LanguageServer.Providers.Completion alias ElixirLS.Utils.TestUtils @supports [ snippets_supported: true, deprecated_supported: false, tags_supported: [], signature_help_supported: tru...
28.387897
122
0.566766
380b597eec5f80d4b665d3d635de15b19957a765
2,436
ex
Elixir
lib/picam/camera.ex
alan-andrade/picam
4fa833b991af50a47668bc122104a18a933f2538
[ "BSD-3-Clause" ]
56
2019-03-31T07:03:16.000Z
2022-03-17T16:46:22.000Z
lib/picam/camera.ex
alan-andrade/picam
4fa833b991af50a47668bc122104a18a933f2538
[ "BSD-3-Clause" ]
12
2019-04-09T10:11:25.000Z
2022-03-06T13:30:27.000Z
lib/picam/camera.ex
alan-andrade/picam
4fa833b991af50a47668bc122104a18a933f2538
[ "BSD-3-Clause" ]
16
2019-04-08T05:36:14.000Z
2022-03-05T07:58:41.000Z
defmodule Picam.Camera do @moduledoc """ GenServer which starts and manages the `raspijpgs` application as a port. """ use GenServer require Logger def start_link(opts \\ []) do GenServer.start_link(__MODULE__, opts, name: __MODULE__) end def init(opts) do port = spawn_port() offline_ima...
30.074074
130
0.681856
380ba122138f96b0595d76898fc90c48f902df50
422
exs
Elixir
blog_writer_api/config/prod.exs
xawe/elixir_micro_blog
eee893238a9647708336901f3ead4629067d590f
[ "MIT" ]
null
null
null
blog_writer_api/config/prod.exs
xawe/elixir_micro_blog
eee893238a9647708336901f3ead4629067d590f
[ "MIT" ]
null
null
null
blog_writer_api/config/prod.exs
xawe/elixir_micro_blog
eee893238a9647708336901f3ead4629067d590f
[ "MIT" ]
null
null
null
import Config # Production configuration goes here. config :app, port: 8000, # redis_host: "redis://172.24.0.2:6379", redis_host: "red-cache", redis_port: 6379, exchange: "post_data_ex", queue: "post_data_ok", error_queue: "post_data_error" config :amqp, connections: [ msg_conn: [url: "amqp://gues...
19.181818
57
0.656398
380ba93ff7053d8220129e40c37ddc1c853f6802
369
exs
Elixir
priv/repo/seeds.exs
gedzubo/reviews_framework
5b5961190ceed4d8a5e6c878b3854007084519aa
[ "MIT" ]
null
null
null
priv/repo/seeds.exs
gedzubo/reviews_framework
5b5961190ceed4d8a5e6c878b3854007084519aa
[ "MIT" ]
null
null
null
priv/repo/seeds.exs
gedzubo/reviews_framework
5b5961190ceed4d8a5e6c878b3854007084519aa
[ "MIT" ]
null
null
null
# Script for populating the database. You can run it as: # # mix run priv/repo/seeds.exs # # Inside the script, you can read and write to any of your # repositories directly: # # ReviewsFramework.Repo.insert!(%ReviewsFramework.SomeSchema{}) # # We recommend using the bang functions (`insert!`, `update!` # and s...
30.75
67
0.720867
380bb59e5216c3560f7b496cfd309290fb047fc1
2,854
ex
Elixir
clients/analytics/lib/google_api/analytics/v3/model/entity_ad_words_link.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/analytics/lib/google_api/analytics/v3/model/entity_ad_words_link.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/analytics/lib/google_api/analytics/v3/model/entity_ad_words_link.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
43.907692
251
0.70042
380bbe3d8364b5aebae6d194ba234f39c2509bc1
612
ex
Elixir
lib/elixpath/path_component.ex
mtannaan/elixpath
6dddbff719ba48734d434bfd436c1612550cc069
[ "MIT" ]
7
2019-06-06T18:50:23.000Z
2019-12-30T20:16:36.000Z
lib/elixpath/path_component.ex
mtannaan/elixpath
6dddbff719ba48734d434bfd436c1612550cc069
[ "MIT" ]
7
2019-05-24T11:41:34.000Z
2022-03-29T14:36:20.000Z
lib/elixpath/path_component.ex
mtannaan/elixpath
6dddbff719ba48734d434bfd436c1612550cc069
[ "MIT" ]
null
null
null
defmodule Elixpath.PathComponent do @moduledoc """ Path components to form an Elixpath. Defined as macros for use in guards and pattern matching. """ require Elixpath.Tag, as: Tag @type t :: child | descendant @type child :: {Tag.child(), key} @type descendant :: {Tag.descendant(), key} @type key ::...
25.5
87
0.669935
380bbe8213807dc2193054a4e27719be166fa2b9
2,187
exs
Elixir
test/changelog/kits/agent_kit_test.exs
gustavoarmoa/changelog.com
e898a9979a237ae66962714821ed8633a4966f37
[ "MIT" ]
2,599
2016-10-25T15:02:53.000Z
2022-03-26T02:34:42.000Z
test/changelog/kits/agent_kit_test.exs
sdrees/changelog.com
955cdcf93d74991062f19a03e34c9f083ade1705
[ "MIT" ]
253
2016-10-25T20:29:24.000Z
2022-03-29T21:52:36.000Z
test/changelog/kits/agent_kit_test.exs
sdrees/changelog.com
955cdcf93d74991062f19a03e34c9f083ade1705
[ "MIT" ]
298
2016-10-25T15:18:31.000Z
2022-01-18T21:25:52.000Z
defmodule Changelog.AgentKitTest do use ExUnit.Case alias Changelog.AgentKit describe "get_podcast_client/1" do test "returns 'Apple Watch' for known user agents" do ua = "(null)/(null) watchOS/5.0.1 model/Watch3,2 hwp/t8004 build/16R381 (6; dt:154)" assert AgentKit.get_podcast_client(ua) == "Ap...
39.053571
106
0.690444
380bd64eaf6133ee4031be092a43537986911bd8
1,671
exs
Elixir
01-_start-manual/elixir_year/config/config.exs
sgsharma/workshop-advanced-instrumentation
8368b454c428dc95055726e02ad58f68df92ba15
[ "Apache-2.0" ]
null
null
null
01-_start-manual/elixir_year/config/config.exs
sgsharma/workshop-advanced-instrumentation
8368b454c428dc95055726e02ad58f68df92ba15
[ "Apache-2.0" ]
1
2022-03-16T09:01:37.000Z
2022-03-16T09:01:37.000Z
01-_start-manual/elixir_year/config/config.exs
sgsharma/workshop-advanced-instrumentation
8368b454c428dc95055726e02ad58f68df92ba15
[ "Apache-2.0" ]
null
null
null
# This file is responsible for configuring your application # and its dependencies with the aid of the Config module. # # This configuration file is loaded before any dependency and # is restricted to this project. # General application configuration import Config # Configures the endpoint config :elixir_year, Elixir...
33.42
117
0.736086
380bf0699a4cff0204fb46cc5293c9b0d4e057e2
264
exs
Elixir
test/game_test.exs
ktec/gameserver
a2acc6ef6dc6c2a128a148a2c254f992709ef8f9
[ "MIT" ]
1
2017-09-01T02:45:37.000Z
2017-09-01T02:45:37.000Z
test/game_test.exs
ktec/gameserver
a2acc6ef6dc6c2a128a148a2c254f992709ef8f9
[ "MIT" ]
null
null
null
test/game_test.exs
ktec/gameserver
a2acc6ef6dc6c2a128a148a2c254f992709ef8f9
[ "MIT" ]
2
2016-06-09T05:41:57.000Z
2018-10-10T08:30:36.000Z
defmodule Gameserver.GameTest do use ExUnit.Case, async: true alias Gameserver.Game setup do {:ok, game} = Game.start_link {:ok, game: game} end test "can be started", %{game: game} do assert Game.add_player(game, "keith") == :ok end end
18.857143
48
0.655303
380bf2a9d9dc71fa3c87ed7e1200e58f1e74de9c
68
exs
Elixir
apps/ewallet/test/ewallet/exchange/calculation_test.exs
vanmil/ewallet
6c1aca95a83e0a9d93007670a40d8c45764a8122
[ "Apache-2.0" ]
1
2018-12-07T06:21:21.000Z
2018-12-07T06:21:21.000Z
apps/ewallet/test/ewallet/exchange/calculation_test.exs
vanmil/ewallet
6c1aca95a83e0a9d93007670a40d8c45764a8122
[ "Apache-2.0" ]
null
null
null
apps/ewallet/test/ewallet/exchange/calculation_test.exs
vanmil/ewallet
6c1aca95a83e0a9d93007670a40d8c45764a8122
[ "Apache-2.0" ]
null
null
null
defmodule EWallet.Exchange.CalculationTest do use ExUnit.Case end
17
45
0.838235
380bfdeab05718bdfe30a2970314217c23a353df
560
ex
Elixir
lib/pgex/types/float4.ex
karlseguin/pgex
2921f350c9f8c8f72cc75c7ede85728ea5dba1bf
[ "MIT" ]
null
null
null
lib/pgex/types/float4.ex
karlseguin/pgex
2921f350c9f8c8f72cc75c7ede85728ea5dba1bf
[ "MIT" ]
null
null
null
lib/pgex/types/float4.ex
karlseguin/pgex
2921f350c9f8c8f72cc75c7ede85728ea5dba1bf
[ "MIT" ]
null
null
null
defmodule PgEx.Types.Float4 do use PgEx.Types.Bin def encode(_type, value) when is_number(value), do: <<value::float-32>> def encode(_type, value) do case value do :NaN -> <<0::1, 255, 1::1, 0::22>> :inf -> <<0::1, 255, 0::23>> :"-inf" -> <<1::1, 255, 0::23>> _ -> :error end end...
23.333333
73
0.492857
380c4ea2d8c312776a2152045b579ea86057cca7
4,399
exs
Elixir
test/oban/plugins/cron_test.exs
ibarchenkov/oban
7f71975a31dd2479a8e25f0e57e765ce1b8397f3
[ "Apache-2.0" ]
null
null
null
test/oban/plugins/cron_test.exs
ibarchenkov/oban
7f71975a31dd2479a8e25f0e57e765ce1b8397f3
[ "Apache-2.0" ]
null
null
null
test/oban/plugins/cron_test.exs
ibarchenkov/oban
7f71975a31dd2479a8e25f0e57e765ce1b8397f3
[ "Apache-2.0" ]
null
null
null
defmodule Oban.Plugins.CronTest do use Oban.Case alias Oban.Plugins.Cron alias Oban.{Job, PluginTelemetryHandler, Registry} @moduletag :integration describe "validate/1" do test ":crontab is validated as a list of cron job expressions" do refute_valid(crontab: ["* * * * *"]) refute_valid(cr...
28.751634
80
0.597181
380cc95339e4687879b1d8870e502124879c8f2b
3,446
ex
Elixir
lib/elixir/lib/record/extractor.ex
doughsay/elixir
7356a47047d0b54517bd6886603f09b1121dde2b
[ "Apache-2.0" ]
19,291
2015-01-01T02:42:49.000Z
2022-03-31T21:01:40.000Z
lib/elixir/lib/record/extractor.ex
doughsay/elixir
7356a47047d0b54517bd6886603f09b1121dde2b
[ "Apache-2.0" ]
8,082
2015-01-01T04:16:23.000Z
2022-03-31T22:08:02.000Z
lib/elixir/lib/record/extractor.ex
doughsay/elixir
7356a47047d0b54517bd6886603f09b1121dde2b
[ "Apache-2.0" ]
3,472
2015-01-03T04:11:56.000Z
2022-03-29T02:07:30.000Z
defmodule Record.Extractor do @moduledoc false def extract(name, opts) do extract_record(name, from_or_from_lib_file(opts)) end def extract_all(opts) do extract_all_records(from_or_from_lib_file(opts)) end defp from_or_from_lib_file(opts) do cond do file = opts[:from] -> {from_f...
29.20339
89
0.647707
380cd262eb198bf7614820dd9f69830c728a1bd3
2,185
exs
Elixir
svg_parser/test/svg_parser_test.exs
cdegroot/uderzo_poncho
af2f416cfae4dbcd41e3e88a86dfeb0fd423ed75
[ "Apache-2.0" ]
46
2018-05-08T12:06:18.000Z
2022-03-23T18:30:13.000Z
svg_parser/test/svg_parser_test.exs
cdegroot/uderzo_poncho
af2f416cfae4dbcd41e3e88a86dfeb0fd423ed75
[ "Apache-2.0" ]
13
2018-05-08T11:42:00.000Z
2018-09-17T22:41:55.000Z
svg_parser/test/svg_parser_test.exs
cdegroot/uderzo_poncho
af2f416cfae4dbcd41e3e88a86dfeb0fd423ed75
[ "Apache-2.0" ]
4
2018-06-06T05:04:00.000Z
2018-07-13T01:23:31.000Z
defmodule SvgParserTest do use ExUnit.Case doctest SvgParser use SvgParser.Elems @circle """ <?xml version="1.0" encoding="UTF-8" ?> <svg height="100" width="100"> <circle cx="50" cy="50" r="40" stroke="black" stroke-width="3" fill="red" /> </svg> """ test "parses basic SVG" do assert SvgPa...
34.68254
89
0.487872
380cdb900b548a4d78085f564949c216193e7114
2,041
ex
Elixir
lib/grpc/server/stream.ex
clearjs/grpc-elixir
3dfa4648711ec0a59bb3bba2766de9ce770a0789
[ "Apache-2.0" ]
null
null
null
lib/grpc/server/stream.ex
clearjs/grpc-elixir
3dfa4648711ec0a59bb3bba2766de9ce770a0789
[ "Apache-2.0" ]
null
null
null
lib/grpc/server/stream.ex
clearjs/grpc-elixir
3dfa4648711ec0a59bb3bba2766de9ce770a0789
[ "Apache-2.0" ]
1
2020-02-13T16:04:11.000Z
2020-02-13T16:04:11.000Z
defmodule GRPC.Server.Stream do @moduledoc """ A struct as an argument that servers get in rpc function definitions and use to handle headers, send streaming replies. Notice that you MUST use new stream returned by `GRPC.Server` as an argument to invoke next functions defined by `GRPC.Server`. ## Fields ...
33.459016
101
0.577658
380cfa80662395376bff6eb55cdbd623e4f9296f
964
ex
Elixir
lib/webbkoll_web/router.ex
bfg1981/webbkoll
ec7c6167e46fe1e27f01f5d98f3daa068af40f63
[ "MIT" ]
1
2019-11-28T09:43:24.000Z
2019-11-28T09:43:24.000Z
lib/webbkoll_web/router.ex
bfg1981/webbkoll
ec7c6167e46fe1e27f01f5d98f3daa068af40f63
[ "MIT" ]
null
null
null
lib/webbkoll_web/router.ex
bfg1981/webbkoll
ec7c6167e46fe1e27f01f5d98f3daa068af40f63
[ "MIT" ]
null
null
null
defmodule WebbkollWeb.Router do use WebbkollWeb, :router @default_locale Application.get_env(:webbkoll, :default_locale) pipeline :browser do plug(:accepts, ["html"]) plug(:fetch_session) plug(:fetch_flash) plug(:protect_from_forgery) plug(:put_secure_browser_headers) plug(WebbkollWeb.Plu...
24.1
65
0.679461
380df2f23295386f2d46fc731ff7d4035d67f466
235
exs
Elixir
book-material/intro/functions.exs
AdnanCodes/Elixir-Learning
6fbab6092384566aff92bccf64b1af90c68ecb6c
[ "MIT" ]
null
null
null
book-material/intro/functions.exs
AdnanCodes/Elixir-Learning
6fbab6092384566aff92bccf64b1af90c68ecb6c
[ "MIT" ]
null
null
null
book-material/intro/functions.exs
AdnanCodes/Elixir-Learning
6fbab6092384566aff92bccf64b1af90c68ecb6c
[ "MIT" ]
null
null
null
defmodule Greeter do def for(name, greeting) do fn ^name -> "#{greeting} #{name}" _ -> "I don't know you" end end end mr_valim = Greeter.for("Jose", "Oi") IO.puts(mr_valim.("Jose")) IO.puts(mr_valim.("Dave"))
16.785714
36
0.587234
380e25e1573f6a62b4316be905a768ba063d5c53
23,030
ex
Elixir
clients/compute/lib/google_api/compute/v1/api/region_autoscalers.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/compute/lib/google_api/compute/v1/api/region_autoscalers.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/compute/lib/google_api/compute/v1/api/region_autoscalers.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...
48.792373
434
0.643161
380e2c959cf6418e15a247802684cc2348f0b907
306
ex
Elixir
lib/surface_bootstrap/form/input_group_text.ex
dclausen/surface_bootstrap
f282b7c653160fb4b4ca687cf8fb13e68937884f
[ "MIT" ]
17
2021-02-18T20:10:52.000Z
2021-12-30T14:41:00.000Z
lib/surface_bootstrap/form/input_group_text.ex
dclausen/surface_bootstrap
f282b7c653160fb4b4ca687cf8fb13e68937884f
[ "MIT" ]
9
2021-03-21T20:15:48.000Z
2021-06-23T07:45:20.000Z
lib/surface_bootstrap/form/input_group_text.ex
dclausen/surface_bootstrap
f282b7c653160fb4b4ca687cf8fb13e68937884f
[ "MIT" ]
10
2021-03-21T20:10:37.000Z
2021-12-28T00:06:06.000Z
defmodule SurfaceBootstrap.Form.InputGroupText do @moduledoc """ Input group text https://getbootstrap.com/docs/5.0/forms/input-group/ """ use Surface.Component slot default def render(assigns) do ~F""" <span class="input-group-text"> <#slot /> </span> """ end end
16.105263
54
0.637255
380e7859ac66f5da4bbdc7e443c0e53f0578c96d
830
ex
Elixir
core/handler/healthcheck.ex
IvanPereyra-23/PaaS
0179c7b57645473308b0a295a70b6284ed220fbf
[ "Apache-2.0" ]
1
2020-08-27T18:43:11.000Z
2020-08-27T18:43:11.000Z
core/handler/healthcheck.ex
IvanPereyra-23/PaaS
0179c7b57645473308b0a295a70b6284ed220fbf
[ "Apache-2.0" ]
null
null
null
core/handler/healthcheck.ex
IvanPereyra-23/PaaS
0179c7b57645473308b0a295a70b6284ed220fbf
[ "Apache-2.0" ]
1
2020-08-27T18:43:21.000Z
2020-08-27T18:43:21.000Z
# Copyright(c) 2015-2020 ACCESS CO., LTD. All rights reserved. defmodule AntikytheraCore.Handler.Healthcheck do require AntikytheraCore.Logger, as: L defmodule Initialized do @behaviour :cowboy_handler @impl true def init(req, nil) do {:ok, :cowboy_req.reply(200, %{}, "healthcheck: OK", req), ni...
33.2
112
0.692771
380e895061e9e465ef1ff7845d4082527f04a3c4
957
ex
Elixir
lib/input_event/report.ex
hez/input_event
e831a1053d7d837ccadfb75d9e70c70b56895eab
[ "Apache-2.0" ]
20
2018-09-23T18:12:14.000Z
2020-04-18T12:37:34.000Z
lib/input_event/report.ex
hez/input_event
e831a1053d7d837ccadfb75d9e70c70b56895eab
[ "Apache-2.0" ]
7
2018-09-17T05:40:23.000Z
2020-06-06T20:17:53.000Z
lib/input_event/report.ex
hez/input_event
e831a1053d7d837ccadfb75d9e70c70b56895eab
[ "Apache-2.0" ]
6
2020-12-04T21:20:39.000Z
2022-03-16T19:26:24.000Z
defmodule InputEvent.Report do @moduledoc false alias InputEvent.Types @doc """ Decode a report from the port This returns a list of event lists. """ @spec decode(binary()) :: [[{atom(), atom(), integer()}]] def decode(report) do decode(report, [], []) |> Enum.reverse() end defp decode(<...
23.925
87
0.61024
380e8a1d3c9e8152e4c4eaaf27e91af4fad9c4f6
568
exs
Elixir
2020/day04/mix.exs
faried/advent
1d3817a3c305963ff22e844630bbafd3af242d3e
[ "MIT" ]
2
2020-12-19T00:40:21.000Z
2021-02-16T04:17:05.000Z
2020/day04/mix.exs
faried/advent
1d3817a3c305963ff22e844630bbafd3af242d3e
[ "MIT" ]
null
null
null
2020/day04/mix.exs
faried/advent
1d3817a3c305963ff22e844630bbafd3af242d3e
[ "MIT" ]
1
2020-12-14T22:37:13.000Z
2020-12-14T22:37:13.000Z
defmodule Day04.MixProject do use Mix.Project def project do [ app: :day04, version: "0.1.0", elixir: "~> 1.11", start_permanent: Mix.env() == :prod, deps: deps() ] end # Run "mix help compile.app" to learn about applications. def application do [ extra_applic...
19.586207
87
0.573944
380e8c49b2b2642955bbae234e58a03e1a6146c3
1,406
ex
Elixir
lib/robocar/sonar.ex
adampointer/robocar-elixir
42ae904325f6165174275c4650f6ed6a7c7b5410
[ "MIT" ]
null
null
null
lib/robocar/sonar.ex
adampointer/robocar-elixir
42ae904325f6165174275c4650f6ed6a7c7b5410
[ "MIT" ]
null
null
null
lib/robocar/sonar.ex
adampointer/robocar-elixir
42ae904325f6165174275c4650f6ed6a7c7b5410
[ "MIT" ]
null
null
null
defmodule RoboCar.Sonar do use GenServer alias RoboCar.Native.NifBridge @pubsub_topic "sonar" @ping_interval_ms 500 @turning_duration_ms 2000 def topic, do: @pubsub_topic def start_link(_) do GenServer.start_link(__MODULE__, %{}, name: Sonar) end @impl true def init(_arg) do case NifBri...
22.31746
78
0.672831
380e98e5b84e3d4bdc7e98562e2b6ae5ea383276
597
ex
Elixir
lib/hierbautberlin_web/controllers/view_pdf_controller.ex
HierBautBerlin/website
91410e7c61c1efad438fe84bf550f87b0056c440
[ "MIT" ]
13
2021-03-06T12:16:34.000Z
2022-03-31T09:46:35.000Z
lib/hierbautberlin_web/controllers/view_pdf_controller.ex
HierBautBerlin/website
91410e7c61c1efad438fe84bf550f87b0056c440
[ "MIT" ]
148
2021-03-05T12:44:55.000Z
2022-03-11T12:09:06.000Z
lib/hierbautberlin_web/controllers/view_pdf_controller.ex
HierBautBerlin/website
91410e7c61c1efad438fe84bf550f87b0056c440
[ "MIT" ]
2
2021-06-02T14:31:21.000Z
2022-02-14T08:36:51.000Z
defmodule HierbautberlinWeb.ViewPDFController do use HierbautberlinWeb, :controller alias Hierbautberlin.FileStorage def show(conn, %{"path" => url_path, "page" => page, "title" => text}) do file = url_path |> Path.join() |> FileStorage.get_file_by_name!() conn |> put_root_layout("full_width.html") ...
29.85
89
0.658291
380ea564219866c6d808d0480659bbe283c8300d
9,596
ex
Elixir
lib/mix/tasks/hex.docs.ex
starbelly/hex
d84d2558812c454fbc9c26eea3b25e7648d345f1
[ "Apache-2.0" ]
1
2019-04-29T12:35:49.000Z
2019-04-29T12:35:49.000Z
lib/mix/tasks/hex.docs.ex
starbelly/hex
d84d2558812c454fbc9c26eea3b25e7648d345f1
[ "Apache-2.0" ]
null
null
null
lib/mix/tasks/hex.docs.ex
starbelly/hex
d84d2558812c454fbc9c26eea3b25e7648d345f1
[ "Apache-2.0" ]
null
null
null
defmodule Mix.Tasks.Hex.Docs do use Mix.Task @shortdoc "Fetches or opens documentation of a package" @moduledoc """ Fetches or opens documentation of a package. If no version is specified, defaults to version used in the current mix project. If called outside of a mix project or the dependency is not use...
27.495702
96
0.657045
380eac13f418fa22160ae8f60591be7c79442662
2,014
ex
Elixir
clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v14/model/creative_contexts_1.ex
ericrwolfe/elixir-google-api
3dc0f17edd5e2d6843580c16ddae3bf84b664ffd
[ "Apache-2.0" ]
null
null
null
clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v14/model/creative_contexts_1.ex
ericrwolfe/elixir-google-api
3dc0f17edd5e2d6843580c16ddae3bf84b664ffd
[ "Apache-2.0" ]
null
null
null
clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v14/model/creative_contexts_1.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...
40.28
281
0.762661
380ebca9d32c954e51da4ea05d36a3a28434d341
3,241
ex
Elixir
lib/farmbot/bootstrap/auth_task.ex
colocolo317/farmbot
570281057c3f2791a2e0f8c6b8b659aa338d7b40
[ "MIT" ]
2
2018-08-01T23:07:52.000Z
2018-10-17T12:49:21.000Z
lib/farmbot/bootstrap/auth_task.ex
colocolo317/farmbot
570281057c3f2791a2e0f8c6b8b659aa338d7b40
[ "MIT" ]
null
null
null
lib/farmbot/bootstrap/auth_task.ex
colocolo317/farmbot
570281057c3f2791a2e0f8c6b8b659aa338d7b40
[ "MIT" ]
1
2017-07-22T21:51:14.000Z
2017-07-22T21:51:14.000Z
defmodule Farmbot.Bootstrap.AuthTask do @moduledoc "Background worker that refreshes a token every 30 minutes." use GenServer use Farmbot.Logger alias Farmbot.System.ConfigStorage import ConfigStorage, only: [update_config_value: 4, get_config_value: 3] # 30 minutes. @refresh_time 1.8e+6 |> round() # @...
31.466019
80
0.680037
380ec1b1617d12f9fa5820a7e0e76e8ce04085de
2,297
ex
Elixir
clients/domains_rdap/lib/google_api/domains_rdap/v1/model/notice.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/domains_rdap/lib/google_api/domains_rdap/v1/model/notice.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/domains_rdap/lib/google_api/domains_rdap/v1/model/notice.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...
37.655738
137
0.697867
380ef9bf4044a5c58a9079fef92fbc44035feacc
2,479
exs
Elixir
test/ex_cors/allow_cors_requests_test.exs
KamilLelonek/ex_cors
600a85513032cd2da02ee16e58ab21238c038043
[ "MIT" ]
4
2018-01-01T18:10:45.000Z
2019-03-02T18:15:45.000Z
test/ex_cors/allow_cors_requests_test.exs
KamilLelonek/ex_cors
600a85513032cd2da02ee16e58ab21238c038043
[ "MIT" ]
null
null
null
test/ex_cors/allow_cors_requests_test.exs
KamilLelonek/ex_cors
600a85513032cd2da02ee16e58ab21238c038043
[ "MIT" ]
null
null
null
defmodule ExCors.AllowCorsRequestsTest do use ExUnit.Case, async: true use Plug.Test alias ExCors.AllowCorsRequests test "should all origins for a regular requests" do assert_headers(call(), "access-control-allow-origin", "*") end test "should overwrite default options" do conn = call("origin", "...
30.9875
108
0.690198
380f31c0887b664c530f3720de28ef2898ab403f
1,897
ex
Elixir
lib/square_up/resources/v2/invoices.ex
beaver21/SquareUp
c9791d96ed9335926933403a966eba5076fbc15b
[ "MIT" ]
4
2020-10-21T18:34:50.000Z
2022-03-16T06:25:44.000Z
lib/square_up/resources/v2/invoices.ex
beaver21/SquareUp
c9791d96ed9335926933403a966eba5076fbc15b
[ "MIT" ]
5
2020-10-21T23:16:32.000Z
2021-05-13T13:42:44.000Z
lib/square_up/resources/v2/invoices.ex
beaver21/SquareUp
c9791d96ed9335926933403a966eba5076fbc15b
[ "MIT" ]
3
2020-10-21T21:20:36.000Z
2021-03-15T18:00:30.000Z
defmodule SquareUp.V2.Invoices do import Norm import SquareUp.Client, only: [call: 2] @spec search(SquareUp.Client.t(), %{}, SquareUp.TypeSpecs.search_invoices_request(), %{}) :: SquareUp.Client.response(SquareUp.TypeSpecs.search_invoices_response()) def search(client, path_params \\ %{}, params \\ %...
32.706897
94
0.652082
380f4fde5c63792d6663bff153de5776cb0f0ba5
193
exs
Elixir
priv/repo/migrations/20190101011730_add_result_date.exs
ChristopherJHart/disclist
3a1ce880856ad87f588e902e72004b887064eeb8
[ "Apache-2.0" ]
1
2021-11-18T03:25:47.000Z
2021-11-18T03:25:47.000Z
priv/repo/migrations/20190101011730_add_result_date.exs
ChristopherJHart/disclist
3a1ce880856ad87f588e902e72004b887064eeb8
[ "Apache-2.0" ]
null
null
null
priv/repo/migrations/20190101011730_add_result_date.exs
ChristopherJHart/disclist
3a1ce880856ad87f588e902e72004b887064eeb8
[ "Apache-2.0" ]
1
2021-11-18T03:25:48.000Z
2021-11-18T03:25:48.000Z
defmodule Disclist.Repo.Migrations.AddResultDate do use Ecto.Migration def change do alter table("craigslist_results") do add :result_datetime, :naive_datetime end end end
19.3
51
0.746114
380f6ec6cb91c9a90dd5f82f75b42a672f3cf6a5
2,695
ex
Elixir
lib/credo/source_file.ex
ayrat555/credo
517699f82fc6ebe266152d997b64878b334e7bd8
[ "MIT" ]
null
null
null
lib/credo/source_file.ex
ayrat555/credo
517699f82fc6ebe266152d997b64878b334e7bd8
[ "MIT" ]
null
null
null
lib/credo/source_file.ex
ayrat555/credo
517699f82fc6ebe266152d997b64878b334e7bd8
[ "MIT" ]
null
null
null
defmodule Credo.SourceFile do defstruct filename: nil, valid?: nil @type t :: module alias Credo.Service.SourceFileAST alias Credo.Service.SourceFileLines alias Credo.Service.SourceFileSource def parse(source, filename) do filename = Path.relative_to_cwd(filename) lines = Credo.Code.t...
22.272727
77
0.61744
380f93af5c6545477ea7b124afdffed6ff5fcadc
1,758
exs
Elixir
test/adam7_test.exs
SenecaSystems/adam7
a3224d332ab531ebda072ec204000c592603486f
[ "MIT" ]
null
null
null
test/adam7_test.exs
SenecaSystems/adam7
a3224d332ab531ebda072ec204000c592603486f
[ "MIT" ]
null
null
null
test/adam7_test.exs
SenecaSystems/adam7
a3224d332ab531ebda072ec204000c592603486f
[ "MIT" ]
null
null
null
defmodule Adam7Test do use ExUnit.Case, async: true @split_pixels [ [[<<1, 1>>]], [[<<2, 1>>]], [[<<3, 1>>, <<3, 2>>]], [[<<4, 1>>, <<4, 2>>], [<<4, 3>>, <<4, 4>>]], [ [<<5, 1>>, <<5, 2>>, <<5, 3>>, <<5, 4>>], [<<5, 5>>, <<5, 6>>, <<5, 7>>, <<5, 8>>] ], [ [<<6, 1>>, <<...
45.076923
95
0.237201
380fae77aaf4c506d2615c6f31d763032b066de8
549
ex
Elixir
lib/dynamo/app.ex
aforward-oss/dynamo
c8d47dab7de3ce730d4ec314d23e171051d5eff7
[ "Apache-2.0" ]
1
2017-09-09T21:00:14.000Z
2017-09-09T21:00:14.000Z
lib/dynamo/app.ex
aforward-oss/dynamo
c8d47dab7de3ce730d4ec314d23e171051d5eff7
[ "Apache-2.0" ]
null
null
null
lib/dynamo/app.ex
aforward-oss/dynamo
c8d47dab7de3ce730d4ec314d23e171051d5eff7
[ "Apache-2.0" ]
null
null
null
defmodule Dynamo.App do @moduledoc false use Application.Behaviour @doc """ Manually start the application when such is required at compilation time. """ def start do :application.start(:crypto) :application.start(:mimetypes) case :application.start(:dynamo) do :ok -> :ok { :err...
20.333333
58
0.663024
380ff99b5a3a6763c17757535898c1e57cf7057b
1,675
ex
Elixir
debian/osvr-rendermanager/debian/manpage.1.ex
fkmclane/OSVR-Packaging
0cacf55e35752d22f21b67610c103e63e75bbca5
[ "MIT" ]
null
null
null
debian/osvr-rendermanager/debian/manpage.1.ex
fkmclane/OSVR-Packaging
0cacf55e35752d22f21b67610c103e63e75bbca5
[ "MIT" ]
null
null
null
debian/osvr-rendermanager/debian/manpage.1.ex
fkmclane/OSVR-Packaging
0cacf55e35752d22f21b67610c103e63e75bbca5
[ "MIT" ]
null
null
null
.\" Hey, EMACS: -*- nroff -*- .\" (C) Copyright 2017 Chris <chris@unknown>, .\" .\" First parameter, NAME, should be all caps .\" Second parameter, SECTION, should be 1-8, maybe w/ subsection .\" other parameters are allowed: see man(7), man(1) .TH Osvr-rendermanager SECTION "April ...
29.385965
70
0.669851
380ffdc182408d666d83c2abe7f6bacb4a80c1fb
4,128
ex
Elixir
clients/cloud_tasks/lib/google_api/cloud_tasks/v2beta2/model/lease_tasks_request.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/cloud_tasks/lib/google_api/cloud_tasks/v2beta2/model/lease_tasks_request.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/cloud_tasks/lib/google_api/cloud_tasks/v2beta2/model/lease_tasks_request.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...
73.714286
1,006
0.750484
381019fe7c7a3024dd85457084627fd5e2ac637e
664
ex
Elixir
lib/squadster/formations/services/delete_squad_member.ex
Squadster/squadster-api
cf04af79317148d7a08c649d5b5d0197722acb7a
[ "MIT" ]
null
null
null
lib/squadster/formations/services/delete_squad_member.ex
Squadster/squadster-api
cf04af79317148d7a08c649d5b5d0197722acb7a
[ "MIT" ]
null
null
null
lib/squadster/formations/services/delete_squad_member.ex
Squadster/squadster-api
cf04af79317148d7a08c649d5b5d0197722acb7a
[ "MIT" ]
null
null
null
defmodule Squadster.Formations.Services.DeleteSquadMember do import Mockery.Macro alias Squadster.Repo alias Squadster.Formations.Tasks.NormalizeQueue def call(squad_member) do %{user: %{squad_request: squad_request}} = squad_member |> Repo.preload(user: :squad_request) unless is_nil(squad_request), d...
28.869565
97
0.75
381077cd113c7560bae86bc566b051b7120f451e
4,705
ex
Elixir
lib/iso_8583/encode/encode.ex
zemuldo/iso_8583_elixir
bc8782a20cd9bc5fa78c9c57338a68f459f9929c
[ "MIT" ]
7
2020-03-02T07:12:49.000Z
2022-03-15T02:03:30.000Z
lib/iso_8583/encode/encode.ex
zemuldo/iso_8583_elixir
bc8782a20cd9bc5fa78c9c57338a68f459f9929c
[ "MIT" ]
1
2020-10-21T05:19:44.000Z
2020-10-24T20:11:47.000Z
lib/iso_8583/encode/encode.ex
zemuldo/iso_8583_elixir
bc8782a20cd9bc5fa78c9c57338a68f459f9929c
[ "MIT" ]
2
2020-03-02T07:14:50.000Z
2022-03-15T17:18:57.000Z
defmodule ISO8583.Encode do @moduledoc false alias ISO8583.Bitmap alias ISO8583.Decode alias ISO8583.Message.StaticMeta alias ISO8583.Utils def encode_0_127(message, opts) do with m <- extend_encode_etxtensions(message, opts), {:ok, _, with_mti} <- encode_mti(message), bitmap_hex <- ...
29.04321
101
0.59745
38108992d4138841b536c133e4990fef31c86642
425
ex
Elixir
lib/radiator/directory/audio_query.ex
bhtabor/radiator
39c137a18d36d6f418f9d1ffb7aa2c99011d66cf
[ "MIT" ]
92
2019-01-03T11:46:23.000Z
2022-02-19T21:28:44.000Z
lib/radiator/directory/audio_query.ex
bhtabor/radiator
39c137a18d36d6f418f9d1ffb7aa2c99011d66cf
[ "MIT" ]
350
2019-04-11T07:55:51.000Z
2021-08-03T11:19:05.000Z
lib/radiator/directory/audio_query.ex
bhtabor/radiator
39c137a18d36d6f418f9d1ffb7aa2c99011d66cf
[ "MIT" ]
10
2019-04-18T12:47:27.000Z
2022-01-25T20:49:15.000Z
defmodule Radiator.Directory.AudioQuery do import Ecto.Query, warn: false def filter_by_published(query, true) do now = DateTime.utc_now() from(e in query, where: e.published_at <= ^now) end def filter_by_published(query, false) do now = DateTime.utc_now() from(e in query, where: e.published_a...
23.611111
76
0.708235
38109ac39e84b2ee327009aa9354876348b4d3d8
502
exs
Elixir
config/test.exs
marcogbarcellos/phoenix_first_app
f610831a05e32fc4b15cf49630008c307024d023
[ "MIT" ]
null
null
null
config/test.exs
marcogbarcellos/phoenix_first_app
f610831a05e32fc4b15cf49630008c307024d023
[ "MIT" ]
null
null
null
config/test.exs
marcogbarcellos/phoenix_first_app
f610831a05e32fc4b15cf49630008c307024d023
[ "MIT" ]
null
null
null
use Mix.Config # We don't run a server during test. If one is required, # you can enable the server option below. config :first_app, FirstAppWeb.Endpoint, http: [port: 4001], server: false # Print only warnings and errors during test config :logger, level: :warn # Configure your database config :first_app, First...
25.1
56
0.739044
3810c3eb00b5673ba86711967960b07a8c7d068c
1,523
ex
Elixir
lib/core/converter.ex
lizhaochao/Argx
d2fb6e346d824a2775603e2eb779bb588870636d
[ "MIT" ]
2
2021-05-07T03:27:19.000Z
2021-05-19T02:04:01.000Z
lib/core/converter.ex
lizhaochao/Argx
d2fb6e346d824a2775603e2eb779bb588870636d
[ "MIT" ]
1
2021-05-10T14:09:36.000Z
2021-05-10T14:10:11.000Z
lib/core/converter.ex
lizhaochao/Argx
d2fb6e346d824a2775603e2eb779bb588870636d
[ "MIT" ]
null
null
null
defmodule Argx.Converter do @moduledoc false alias Argx.Error def convert( {arg_name, _arg_value} = args, {arg_name2, %Argx.Config{}} = configs ) when arg_name == arg_name2 do do_convert(args, configs) end def convert(_other_arg, _other_config) do raise Error, "maybe the...
22.731343
68
0.615233
381112b42ee6cea3ee8fb92e46ce2bc4546f3de7
870
exs
Elixir
test/exw3/abi_test.exs
Metalink-App/ex_w3
dd97ec95fcb6374055010b65083384f1f0f09578
[ "Apache-2.0" ]
3
2021-09-28T21:28:15.000Z
2022-01-30T23:01:45.000Z
test/exw3/abi_test.exs
Metalink-App/ex_w3
dd97ec95fcb6374055010b65083384f1f0f09578
[ "Apache-2.0" ]
null
null
null
test/exw3/abi_test.exs
Metalink-App/ex_w3
dd97ec95fcb6374055010b65083384f1f0f09578
[ "Apache-2.0" ]
1
2022-02-16T16:13:23.000Z
2022-02-16T16:13:23.000Z
defmodule Web3x.AbiTest do use ExUnit.Case test ".load_abi/1 returns a map keyed by function & event name" do assert Web3x.Abi.load_abi("test/examples/build/SimpleStorage.abi") == %{ "get" => %{ "constant" => true, "inputs" => [], "name" => "get", ...
32.222222
76
0.396552
38112630cac1ec0056ab1438f895f59910a9c768
425
ex
Elixir
apps/master_proxy/lib/master_proxy.ex
gusaiani/acme-bank-clone
4ebd638c56a3f5360bccff68aa6d321bb25bf2cd
[ "MIT" ]
null
null
null
apps/master_proxy/lib/master_proxy.ex
gusaiani/acme-bank-clone
4ebd638c56a3f5360bccff68aa6d321bb25bf2cd
[ "MIT" ]
null
null
null
apps/master_proxy/lib/master_proxy.ex
gusaiani/acme-bank-clone
4ebd638c56a3f5360bccff68aa6d321bb25bf2cd
[ "MIT" ]
null
null
null
defmodule MasterProxy do use Application def start(_type, _args) do import Supervisor.Spec, warn: false port = (System.get_env("PORT") || "3333") |> String.to_integer cowboy = Plug.Adapters.Cowboy.child_spec(:http, MasterProxy.Plug, [], [port: port]) children = [ cowboy ] opts = [s...
23.611111
87
0.675294
3811353e253c453c81ade5708c353eaa9c66d622
1,456
exs
Elixir
priv/repo/migrations/20150928155606_permission_check.exs
matusf/cog
71708301c7dc570fb0d3498a50f47a70ef957788
[ "Apache-2.0" ]
1,003
2016-02-23T17:21:12.000Z
2022-02-20T14:39:35.000Z
priv/repo/migrations/20150928155606_permission_check.exs
matusf/cog
71708301c7dc570fb0d3498a50f47a70ef957788
[ "Apache-2.0" ]
906
2016-02-22T22:54:19.000Z
2022-03-11T15:19:43.000Z
priv/repo/migrations/20150928155606_permission_check.exs
matusf/cog
71708301c7dc570fb0d3498a50f47a70ef957788
[ "Apache-2.0" ]
95
2016-02-23T13:42:31.000Z
2021-11-30T14:39:55.000Z
defmodule Cog.Repo.Migrations.PermissionCheck do use Ecto.Migration def up do execute """ CREATE OR REPLACE FUNCTION user_has_permission( p_user users.id%TYPE, p_perm permissions.id%TYPE) RETURNS BOOLEAN LANGUAGE plpgsql STABLE -- <- this function doesn't alter the database; just queries it STRICT -- <-...
26
70
0.651099
381182565c6bdc5750ac18b5ec45616e0604c4cc
3,636
ex
Elixir
lib/linguist/compiler.ex
kianmeng/linguist
e0274db74d374314e9334b4246409eca6e2bff1d
[ "MIT" ]
100
2015-01-02T08:10:32.000Z
2020-02-21T08:14:10.000Z
lib/linguist/compiler.ex
kianmeng/linguist
e0274db74d374314e9334b4246409eca6e2bff1d
[ "MIT" ]
24
2018-04-13T23:50:09.000Z
2021-12-23T12:47:06.000Z
lib/linguist/compiler.ex
kianmeng/linguist
e0274db74d374314e9334b4246409eca6e2bff1d
[ "MIT" ]
19
2015-02-25T17:57:02.000Z
2020-03-22T15:06:10.000Z
defmodule Linguist.Compiler do alias Linguist.Cldr.Number.Cardinal alias Linguist.NoTranslationError @doc ~S""" Compiles keyword list of transactions into function definitions AST Examples iex> Linguist.Compiler.compile(en: [ hello: "Hello %{name}", alert: "Alert!" ]) quote do def t(loca...
25.787234
84
0.577833
381193861d43c48168c899c803e506ead878ea33
820
ex
Elixir
lib/flowr_web/controllers/auth_controller.ex
flowr-app/flowr
1e88bc917da32df2878e13c9bb1998dbbe61cd62
[ "0BSD" ]
2
2021-08-01T04:38:08.000Z
2021-08-01T06:52:29.000Z
lib/flowr_web/controllers/auth_controller.ex
flowr-app/flowr
1e88bc917da32df2878e13c9bb1998dbbe61cd62
[ "0BSD" ]
3
2021-08-01T08:20:13.000Z
2021-08-01T08:22:07.000Z
lib/flowr_web/controllers/auth_controller.ex
flowr-app/flowr
1e88bc917da32df2878e13c9bb1998dbbe61cd62
[ "0BSD" ]
null
null
null
defmodule FlowrWeb.AuthController do use FlowrWeb, :controller alias Flowr.Platform.OAuth def new(conn, _params) do authorize_url = OAuth.authorize_url() conn |> redirect(external: authorize_url) end def callback(conn, params) do with %{"code" => code} <- params, {:ok, token} <- O...
26.451613
85
0.663415
381195ea110c05a55233c77769cfede69a37defd
1,296
exs
Elixir
config/config.exs
jobsonita/rocketseat-yt-cd-108-elixir
1f98172932f763d5cfb61ad0752e12db9ca6651c
[ "MIT" ]
null
null
null
config/config.exs
jobsonita/rocketseat-yt-cd-108-elixir
1f98172932f763d5cfb61ad0752e12db9ca6651c
[ "MIT" ]
null
null
null
config/config.exs
jobsonita/rocketseat-yt-cd-108-elixir
1f98172932f763d5cfb61ad0752e12db9ca6651c
[ "MIT" ]
null
null
null
# This file is responsible for configuring your application # and its dependencies with the aid of the Config module. # # This configuration file is loaded before any dependency and # is restricted to this project. # General application configuration import Config # Configures the endpoint config :muse, MuseWeb.Endpo...
32.4
77
0.759259
3811cf38fb1c04fb47d193c6dc1ff1074e8c4c83
295
exs
Elixir
priv/repo/migrations/20180209121215_remove_project_transparency_from_addresses.exs
sitedata/sanbase2
8da5e44a343288fbc41b68668c6c80ae8547d557
[ "MIT" ]
81
2017-11-20T01:20:22.000Z
2022-03-05T12:04:25.000Z
priv/repo/migrations/20180209121215_remove_project_transparency_from_addresses.exs
rmoorman/sanbase2
226784ab43a24219e7332c49156b198d09a6dd85
[ "MIT" ]
359
2017-10-15T14:40:53.000Z
2022-01-25T13:34:20.000Z
priv/repo/migrations/20180209121215_remove_project_transparency_from_addresses.exs
sitedata/sanbase2
8da5e44a343288fbc41b68668c6c80ae8547d557
[ "MIT" ]
16
2017-11-19T13:57:40.000Z
2022-02-07T08:13:02.000Z
defmodule Sanbase.Repo.Migrations.RemoveProjectTransparencyFromAddresses do use Ecto.Migration def change do alter table(:project_eth_address) do remove(:project_transparency) end alter table(:project_btc_address) do remove(:project_transparency) end end end
21.071429
75
0.755932
3811e6b2fc256bbe994856746c80fa7e24eeffff
347
exs
Elixir
priv/repo/migrations/20170817024332_create_occurrences.exs
krasio/pumpkin.ex
bfa8d1ae1854ba6c5f7c3df877157656a67e99f9
[ "BSD-3-Clause" ]
null
null
null
priv/repo/migrations/20170817024332_create_occurrences.exs
krasio/pumpkin.ex
bfa8d1ae1854ba6c5f7c3df877157656a67e99f9
[ "BSD-3-Clause" ]
null
null
null
priv/repo/migrations/20170817024332_create_occurrences.exs
krasio/pumpkin.ex
bfa8d1ae1854ba6c5f7c3df877157656a67e99f9
[ "BSD-3-Clause" ]
null
null
null
defmodule Pumpkin.Repo.Migrations.CreateOccurrences do use Ecto.Migration def change do create table(:occurrences, primary_key: false) do add :id, :binary_id, primary_key: true add :message, :string, null: false add :occurred_at, :naive_datetime, null: false add :data, :map times...
21.6875
54
0.680115
38123e90c2ca7e14386e701dcc3e8e0dd42698eb
1,231
ex
Elixir
lib/cgnaflightsapi_web/views/error_helpers.ex
andrebrito16/lyov
9f1cf7b85745db3b8acc6dbe14d1633853a2311b
[ "MIT" ]
1
2022-01-03T02:24:58.000Z
2022-01-03T02:24:58.000Z
lib/cgnaflightsapi_web/views/error_helpers.ex
andrebrito16/lyov
9f1cf7b85745db3b8acc6dbe14d1633853a2311b
[ "MIT" ]
1
2022-01-04T12:59:33.000Z
2022-01-04T12:59:33.000Z
lib/cgnaflightsapi_web/views/error_helpers.ex
andrebrito16/lyov
9f1cf7b85745db3b8acc6dbe14d1633853a2311b
[ "MIT" ]
1
2022-01-02T17:29:39.000Z
2022-01-02T17:29:39.000Z
defmodule CgnaflightsapiWeb.ErrorHelpers do @moduledoc """ Conveniences for translating and building error messages. """ @doc """ Translates an error message using gettext. """ def translate_error({msg, opts}) do # When using gettext, we typically pass the strings we want # to translate as a stat...
36.205882
83
0.676686
38125b41dc01dac3854fabf604c1ea1f489fe415
1,326
ex
Elixir
lib/sourceror/utils/typedstruct.ex
maartenvanvliet/sourceror
02fff81a59d6c9a2d4de3fc1b27e2d40ff77ea2d
[ "Apache-2.0" ]
118
2021-05-26T05:00:32.000Z
2022-03-13T16:25:36.000Z
lib/sourceror/utils/typedstruct.ex
maartenvanvliet/sourceror
02fff81a59d6c9a2d4de3fc1b27e2d40ff77ea2d
[ "Apache-2.0" ]
35
2021-06-02T20:18:48.000Z
2022-03-31T20:52:22.000Z
lib/sourceror/utils/typedstruct.ex
maartenvanvliet/sourceror
02fff81a59d6c9a2d4de3fc1b27e2d40ff77ea2d
[ "Apache-2.0" ]
5
2021-06-15T18:01:04.000Z
2022-02-13T09:14:28.000Z
defmodule Sourceror.Utils.TypedStruct do @moduledoc false defmacro typedstruct(do: ast) do fields_ast = case ast do {:__block__, _, fields} -> fields field -> [field] end fields_data = Enum.map(fields_ast, &get_field_data/1) enforced_fields = for field <- fields_data...
22.862069
61
0.57994
38125bff93ffcee404f06d166db1251a9343b92c
48,715
ex
Elixir
clients/fusion_tables/lib/google_api/fusion_tables/v2/api/table.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
1
2018-12-03T23:43:10.000Z
2018-12-03T23:43:10.000Z
clients/fusion_tables/lib/google_api/fusion_tables/v2/api/table.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
clients/fusion_tables/lib/google_api/fusion_tables/v2/api/table.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 ...
47.619746
300
0.630011
38125c81f6c6f03a9066e4055c17a761ce86713f
1,296
ex
Elixir
clients/big_query/lib/google_api/big_query/v2/model/table_cell.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
1
2018-12-03T23:43:10.000Z
2018-12-03T23:43:10.000Z
clients/big_query/lib/google_api/big_query/v2/model/table_cell.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
clients/big_query/lib/google_api/big_query/v2/model/table_cell.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 ...
27.574468
77
0.721451
3812607941cc3a73ab3588f44e0dc49db31da6c8
573
ex
Elixir
lib/mix/noap/gen_code/wsdl_wrap/action.ex
bpardee/noap
4c21c55ef2d88ad26a9fab94805beff954315dbf
[ "MIT" ]
1
2022-03-04T03:55:46.000Z
2022-03-04T03:55:46.000Z
lib/mix/noap/gen_code/wsdl_wrap/action.ex
bpardee/noap
4c21c55ef2d88ad26a9fab94805beff954315dbf
[ "MIT" ]
null
null
null
lib/mix/noap/gen_code/wsdl_wrap/action.ex
bpardee/noap
4c21c55ef2d88ad26a9fab94805beff954315dbf
[ "MIT" ]
null
null
null
defmodule Mix.Noap.GenCode.WSDLWrap.Action do defstruct [ :ns, :name, :tag, :attribute ] def new(name, _action_with_namespace = "", _namespace_map) do %__MODULE__{ ns: "", name: name, tag: name, attribute: %{} } end def new(_name, action_with_namespace, namesp...
18.483871
63
0.577661
38126e43ec3f96dbb88fc51eb681831e43ebe5d0
613
exs
Elixir
test/curations/curations_test.exs
optikfluffel/fyyd_ex
81d271a8132596711ca6f5f24f7fddbd2453a671
[ "Unlicense" ]
1
2018-02-12T23:14:33.000Z
2018-02-12T23:14:33.000Z
test/curations/curations_test.exs
optikfluffel/fyyd_ex
81d271a8132596711ca6f5f24f7fddbd2453a671
[ "Unlicense" ]
16
2017-11-18T15:28:34.000Z
2019-02-09T10:27:10.000Z
test/curations/curations_test.exs
optikfluffel/fyyd_ex
81d271a8132596711ca6f5f24f7fddbd2453a671
[ "Unlicense" ]
null
null
null
defmodule Fyyd.CurationsTest do @moduledoc false use ExUnit.Case, async: true use ExUnitProperties alias Fyyd.Curations alias Fyyd.Curations.Curation alias Fyyd.Factory describe "extract_from_response/1" do test "converts a list of valid maps to a List of %Curations{}" do {:ok, curations} = ...
23.576923
69
0.673736
38127892bec2db2ef2344d57a35f4894e5f2d1e5
1,585
ex
Elixir
clients/service_management/lib/google_api/service_management/v1/model/submit_config_source_response.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/service_management/lib/google_api/service_management/v1/model/submit_config_source_response.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/service_management/lib/google_api/service_management/v1/model/submit_config_source_response.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
1
2018-07-28T20:50:50.000Z
2018-07-28T20:50:50.000Z
# Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the &quot;License&quot;); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
33.020833
100
0.772871
3812863683a9a6b3d23ab87ea4903bd10b130c63
713
exs
Elixir
test/vec3/vec3_equal_test.exs
crertel/graphmath
798e51d21d509e397a86d9ca855ef18a92243583
[ "Unlicense" ]
70
2015-01-07T10:13:38.000Z
2021-09-29T05:06:14.000Z
test/vec3/vec3_equal_test.exs
crertel/graphmath
798e51d21d509e397a86d9ca855ef18a92243583
[ "Unlicense" ]
28
2015-01-22T22:38:24.000Z
2021-06-24T06:15:38.000Z
test/vec3/vec3_equal_test.exs
crertel/graphmath
798e51d21d509e397a86d9ca855ef18a92243583
[ "Unlicense" ]
17
2015-01-22T18:35:41.000Z
2020-12-24T22:42:40.000Z
defmodule GraphmathTest.Vec3.EqualVec3 do use ExUnit.Case alias Graphmath.Vec3 @tag :vec3 @tag :equal test "equal( {1.0, 1.0, 0.0}, {0.0, 0.0, 0.0}) is false" do refute Vec3.equal({1.0, 1.0, 0.0}, {0.0, 0.0, 0.0}) end @tag :vec3 @tag :equal test "equal( {1.0, 1.0, 1.0}, {1.0, 1.0, 1.0}) is true"...
24.586207
66
0.528752
381297637bcc5182b0e1b02b1cd6b8b0004e1cb6
217
exs
Elixir
config/test.exs
brentjanderson/current
8c974e202c980cbf8fd28630d794574ec10f94ed
[ "Unlicense" ]
4
2020-09-17T15:55:21.000Z
2022-02-11T22:11:55.000Z
config/test.exs
brentjanderson/current
8c974e202c980cbf8fd28630d794574ec10f94ed
[ "Unlicense" ]
null
null
null
config/test.exs
brentjanderson/current
8c974e202c980cbf8fd28630d794574ec10f94ed
[ "Unlicense" ]
1
2022-03-07T20:22:23.000Z
2022-03-07T20:22:23.000Z
use Mix.Config config :current, ecto_repos: [Current.Test.Repo] config :current, Current.Test.Repo, database: "current_test", username: "postgres", password: "postgres", hostname: "localhost", port: "5432"
21.7
48
0.714286
3812aeed955e73dd3000a3c74b7ce03be355d28a
21,084
ex
Elixir
lib/elixir/lib/version.ex
oskarkook/elixir
2ddd291c533cdc2b1b1f02153d94c0b248cb9836
[ "Apache-2.0" ]
1
2019-06-27T08:47:13.000Z
2019-06-27T08:47:13.000Z
lib/elixir/lib/version.ex
oskarkook/elixir
2ddd291c533cdc2b1b1f02153d94c0b248cb9836
[ "Apache-2.0" ]
null
null
null
lib/elixir/lib/version.ex
oskarkook/elixir
2ddd291c533cdc2b1b1f02153d94c0b248cb9836
[ "Apache-2.0" ]
null
null
null
defmodule Version do @moduledoc ~S""" Functions for parsing and matching versions against requirements. A version is a string in a specific format or a `Version` generated after parsing via `Version.parse/1`. Although Elixir projects are not required to follow SemVer, they must follow the format outlined ...
30.734694
100
0.608755