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
7a753240035050d3bebe6f54a97385f8988e29c1
5,546
exs
Elixir
apps/andi/test/unit/andi_web/input_schemas/ingestion_metadata_form_schema_test.exs
UrbanOS-Public/smartcitiesdata
c4f4d83fcd1bbae5f4d3f47a9b218f3d991a51cd
[ "Apache-2.0" ]
8
2021-10-31T18:45:02.000Z
2022-03-05T18:33:08.000Z
apps/andi/test/unit/andi_web/input_schemas/ingestion_metadata_form_schema_test.exs
UrbanOS-Public/smartcitiesdata
c4f4d83fcd1bbae5f4d3f47a9b218f3d991a51cd
[ "Apache-2.0" ]
7
2022-01-14T21:21:23.000Z
2022-03-16T17:23:10.000Z
apps/andi/test/unit/andi_web/input_schemas/ingestion_metadata_form_schema_test.exs
UrbanOS-Public/smartcitiesdata
c4f4d83fcd1bbae5f4d3f47a9b218f3d991a51cd
[ "Apache-2.0" ]
1
2022-03-08T23:45:02.000Z
2022-03-08T23:45:02.000Z
defmodule AndiWeb.InputSchemas.IngestionMetadataFormSchemaTest do @moduledoc false use ExUnit.Case use Placebo alias AndiWeb.InputSchemas.IngestionMetadataFormSchema describe "changeset_from_form_data()" do test "generates a valid changeset when all data is present" do form_data = %{ sour...
32.057803
127
0.657952
7a754ecf71ce9f3c89264ff30840690c68c29214
4,334
ex
Elixir
pancake/lib/sushi/schemas/boat.ex
firecraftgaming/battleship-royale
463bf5e743f07affdb84ebd752e92ab3c6604f8f
[ "MIT" ]
1
2021-05-28T15:09:50.000Z
2021-05-28T15:09:50.000Z
pancake/lib/sushi/schemas/boat.ex
firecraftgaming/battleship-royale
463bf5e743f07affdb84ebd752e92ab3c6604f8f
[ "MIT" ]
null
null
null
pancake/lib/sushi/schemas/boat.ex
firecraftgaming/battleship-royale
463bf5e743f07affdb84ebd752e92ab3c6604f8f
[ "MIT" ]
null
null
null
defmodule Sushi.Schemas.Boat do import Ecto.Changeset use Ecto.Schema @type t :: %__MODULE__{ x: Integer.t(), y: Integer.t(), length: Integer.t(), rot: String.t(), sunk: boolean() } @primary_key false embedded_schema do field(:x, :integer) field(:y, :integer) field(:length...
24.485876
150
0.508306
7a75688390cc256136dd0708b23e1c3ea4476100
140
exs
Elixir
test/ripper_test.exs
ourway/ripper
f3628631a836fc1caa7f7cfe374e3b599ebc4aff
[ "MIT" ]
null
null
null
test/ripper_test.exs
ourway/ripper
f3628631a836fc1caa7f7cfe374e3b599ebc4aff
[ "MIT" ]
null
null
null
test/ripper_test.exs
ourway/ripper
f3628631a836fc1caa7f7cfe374e3b599ebc4aff
[ "MIT" ]
null
null
null
defmodule RipperTest do use ExUnit.Case doctest Ripper # test "greets the world" do # assert Ripper.hello() == :world #end end
15.555556
36
0.678571
7a758f692f1ad805b2f8962c206e2fafd2b9ab87
727
exs
Elixir
config/test.exs
nunocf/reason-react-exercise
b6e6920a596fe436b02a602282750456a7edbdea
[ "MIT" ]
null
null
null
config/test.exs
nunocf/reason-react-exercise
b6e6920a596fe436b02a602282750456a7edbdea
[ "MIT" ]
null
null
null
config/test.exs
nunocf/reason-react-exercise
b6e6920a596fe436b02a602282750456a7edbdea
[ "MIT" ]
null
null
null
use Mix.Config # Configure your database # # The MIX_TEST_PARTITION environment variable can be used # to provide built-in test partitioning in CI environment. # Run `mix help test` for more information. config :reason_react_exercise, ReasonReactExercise.Repo, username: "postgres", password: "postgres", database...
31.608696
80
0.771664
7a7592c8df22e184439cc1c654adc892aa98ac08
1,522
ex
Elixir
lib/game/command/emote.ex
nomicflux/ex_venture
3e87dc8802c24067256d99856198c814d0bae4d6
[ "MIT" ]
null
null
null
lib/game/command/emote.ex
nomicflux/ex_venture
3e87dc8802c24067256d99856198c814d0bae4d6
[ "MIT" ]
null
null
null
lib/game/command/emote.ex
nomicflux/ex_venture
3e87dc8802c24067256d99856198c814d0bae4d6
[ "MIT" ]
null
null
null
defmodule Game.Command.Emote do @moduledoc """ The "emote" command """ use Game.Command alias Game.Format.Channels, as: FormatChannels commands(["emote"], parse: false) @impl Game.Command def help(:topic), do: "Emote" def help(:short), do: "Perform an emote" def help(:full) do """ Perfo...
22.382353
83
0.632063
7a759a68d5562e21dddcaa8aec983cac0bd0b114
351
exs
Elixir
apps/xee2018/priv/repo/seeds.exs
RyoheiHayashi/xee2018
3b9ff03b13817563a5c7c75db1da360879a8a8d4
[ "MIT" ]
1
2018-09-05T10:31:50.000Z
2018-09-05T10:31:50.000Z
apps/xee2018/priv/repo/seeds.exs
RyoheiHayashi/xee2018
3b9ff03b13817563a5c7c75db1da360879a8a8d4
[ "MIT" ]
null
null
null
apps/xee2018/priv/repo/seeds.exs
RyoheiHayashi/xee2018
3b9ff03b13817563a5c7c75db1da360879a8a8d4
[ "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: # # Xee2018.Repo.insert!(%Xee2018.SomeSchema{}) # # We recommend using the bang functions (`insert!`, `update!` # and so on) as they will...
29.25
61
0.706553
7a75db13717eafc40f945f3eb45213244f2cd865
196
exs
Elixir
test/test_helper.exs
jesseshieh/chess
80e6854d5f0a05420e5eea6deee9e41f03445b5a
[ "MIT" ]
30
2018-06-16T00:41:59.000Z
2021-03-05T08:39:02.000Z
test/test_helper.exs
jesseshieh/chess
80e6854d5f0a05420e5eea6deee9e41f03445b5a
[ "MIT" ]
221
2018-01-15T20:33:13.000Z
2022-02-16T00:53:35.000Z
test/test_helper.exs
jesseshieh/chess
80e6854d5f0a05420e5eea6deee9e41f03445b5a
[ "MIT" ]
5
2018-02-20T17:25:19.000Z
2018-12-29T00:09:30.000Z
{:ok, _} = Application.ensure_all_started(:wallaby) ExUnit.start() Ecto.Adapters.SQL.Sandbox.mode(Chess.Repo, {:shared, self()}) Application.put_env(:wallaby, :base_url, ChessWeb.Endpoint.url)
24.5
63
0.75
7a75f732bd36edefd22405cbc71c1488a9c7ba4c
130
ex
Elixir
templates/default/lib/route.ex
Mendor/weber
3c4fceff2bc6cf6ce38138b7e1c042c3f2536221
[ "MIT" ]
1
2018-02-21T07:56:22.000Z
2018-02-21T07:56:22.000Z
templates/default/lib/route.ex
Mendor/weber
3c4fceff2bc6cf6ce38138b7e1c042c3f2536221
[ "MIT" ]
null
null
null
templates/default/lib/route.ex
Mendor/weber
3c4fceff2bc6cf6ce38138b7e1c042c3f2536221
[ "MIT" ]
null
null
null
defmodule Route do import Weber.Route require Weber.Route route on("GET", "/", :#{projectNamespace}.Main, :action) end
14.444444
58
0.676923
7a7667ad15189ad0489dc25aa603bba4dbb2cec9
12,923
ex
Elixir
lib/scaffolding/v1/behaviours/repo_behaviour/amnesia_provider_default.ex
noizu/elixir_scaffolding
607e1b0fd6eeb244c86876e55a0b03c29dd08395
[ "MIT" ]
1
2018-07-03T10:15:05.000Z
2018-07-03T10:15:05.000Z
lib/scaffolding/v1/behaviours/repo_behaviour/amnesia_provider_default.ex
noizu/elixir_scaffolding
607e1b0fd6eeb244c86876e55a0b03c29dd08395
[ "MIT" ]
1
2018-04-03T17:18:19.000Z
2018-04-03T17:18:19.000Z
lib/scaffolding/v1/behaviours/repo_behaviour/amnesia_provider_default.ex
noizu/elixir_scaffolding
607e1b0fd6eeb244c86876e55a0b03c29dd08395
[ "MIT" ]
2
2018-03-05T11:46:01.000Z
2018-07-03T10:15:07.000Z
#------------------------------------------------------------------------------- # Author: Keith Brings # Copyright (C) 2018 Noizu Labs, Inc. All rights reserved. #------------------------------------------------------------------------------- defmodule Noizu.Scaffolding.RepoBehaviour.AmnesiaProviderDefault do use A...
43.658784
174
0.645438
7a769d72e35bf085e270f5562a2b91ee1e37926f
5,617
ex
Elixir
apps/andi/lib/andi/input_schemas/ingestion.ex
UrbanOS-Public/smartcitiesdata
c4f4d83fcd1bbae5f4d3f47a9b218f3d991a51cd
[ "Apache-2.0" ]
8
2021-10-31T18:45:02.000Z
2022-03-05T18:33:08.000Z
apps/andi/lib/andi/input_schemas/ingestion.ex
UrbanOS-Public/smartcitiesdata
c4f4d83fcd1bbae5f4d3f47a9b218f3d991a51cd
[ "Apache-2.0" ]
7
2022-01-14T21:21:23.000Z
2022-03-16T17:23:10.000Z
apps/andi/lib/andi/input_schemas/ingestion.ex
UrbanOS-Public/smartcitiesdata
c4f4d83fcd1bbae5f4d3f47a9b218f3d991a51cd
[ "Apache-2.0" ]
1
2022-03-08T23:45:02.000Z
2022-03-08T23:45:02.000Z
defmodule Andi.InputSchemas.Ingestion do @moduledoc """ Module for validating Ecto.Changesets on ingestion input """ use Ecto.Schema use Properties, otp_app: :andi import Ecto.Changeset alias Andi.InputSchemas.StructTools alias Andi.InputSchemas.Datasets.Dataset alias Andi.InputSchemas.Datasets.Data...
35.327044
135
0.729037
7a769e733eafca61e76fdb38fed48493e3d45b47
1,685
ex
Elixir
clients/content/lib/google_api/content/v2/model/orders_custom_batch_request_entry_create_test_return_return_item.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/content/lib/google_api/content/v2/model/orders_custom_batch_request_entry_create_test_return_return_item.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/content/lib/google_api/content/v2/model/orders_custom_batch_request_entry_create_test_return_return_item.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...
30.636364
95
0.734718
7a76a2e85e57ed5b0a80c7f8b16d2d0c373f76e6
624
exs
Elixir
apps/gallery/test/web/views/error_view_test.exs
danmarcab/deep_painting
860c7d02bd6b112fffa199f715e61d895cba6623
[ "Apache-2.0" ]
null
null
null
apps/gallery/test/web/views/error_view_test.exs
danmarcab/deep_painting
860c7d02bd6b112fffa199f715e61d895cba6623
[ "Apache-2.0" ]
11
2020-01-28T22:19:10.000Z
2022-03-11T23:18:18.000Z
apps/gallery/test/web/views/error_view_test.exs
danmarcab/deep_painting
860c7d02bd6b112fffa199f715e61d895cba6623
[ "Apache-2.0" ]
null
null
null
defmodule Gallery.Web.ErrorViewTest do use Gallery.Web.ConnCase, async: true # Bring render/3 and render_to_string/3 for testing custom views import Phoenix.View test "renders 404.json" do assert render(Gallery.Web.ErrorView, "404.json", []) == %{errors: %{detail: "Page not found"}} end te...
28.363636
66
0.649038
7a76bd9f19c437752b5c80ecb2adc99ec744264e
346
ex
Elixir
lib/blue_jet/app/identity/refresh_token/query.ex
freshcom/freshcom-api
4f2083277943cf4e4e8fd4c4d443c7309f285ad7
[ "BSD-3-Clause" ]
44
2018-05-09T01:08:57.000Z
2021-01-19T07:25:26.000Z
lib/blue_jet/app/identity/refresh_token/query.ex
freshcom/freshcom-api
4f2083277943cf4e4e8fd4c4d443c7309f285ad7
[ "BSD-3-Clause" ]
36
2018-05-08T23:59:54.000Z
2018-09-28T13:50:30.000Z
lib/blue_jet/app/identity/refresh_token/query.ex
freshcom/freshcom-api
4f2083277943cf4e4e8fd4c4d443c7309f285ad7
[ "BSD-3-Clause" ]
9
2018-05-09T14:09:19.000Z
2021-03-21T21:04:04.000Z
defmodule BlueJet.Identity.RefreshToken.Query do import Ecto.Query alias BlueJet.Identity.RefreshToken def default() do from(rt in RefreshToken) end def for_user(user_id) do from(rt in RefreshToken, where: rt.user_id == ^user_id) end def publishable() do from(rt in RefreshToken, where: is_...
20.352941
59
0.725434
7a76d202fbd51a596b00e4b5f43f7d1965c14786
1,430
ex
Elixir
lib/client/query.ex
firstthumb/apiai-elixir-client
760644f782ad6e0b267e7b6ae493a33db3d8f8d7
[ "MIT" ]
3
2017-08-23T12:50:02.000Z
2020-01-13T22:31:39.000Z
lib/client/query.ex
firstthumb/apiai-elixir-client
760644f782ad6e0b267e7b6ae493a33db3d8f8d7
[ "MIT" ]
null
null
null
lib/client/query.ex
firstthumb/apiai-elixir-client
760644f782ad6e0b267e7b6ae493a33db3d8f8d7
[ "MIT" ]
3
2017-09-29T10:36:46.000Z
2020-10-07T18:35:20.000Z
defmodule ApiAi.Query do @derive Poison.Encoder defstruct [:query, :contexts , :location, :timezone, :lang, :sessionId] def event(client, event_name, event_data \\ %{}, session_id, contexts \\ [], location \\ nil, lang \\ "en", timezone \\ "America/New_York") do payload = %{ event: %{ name: ev...
27.5
144
0.593007
7a76d7187a7b83a8b25f200a59087e3c10e8c06a
4,278
exs
Elixir
test/json_driver/element_with_ids_test.exs
manukall/hound
5a96b714b5ae0b64f9cbee3ee4955d209895b92e
[ "MIT" ]
1
2015-07-08T04:32:02.000Z
2015-07-08T04:32:02.000Z
test/json_driver/element_with_ids_test.exs
manukall/hound
5a96b714b5ae0b64f9cbee3ee4955d209895b92e
[ "MIT" ]
null
null
null
test/json_driver/element_with_ids_test.exs
manukall/hound
5a96b714b5ae0b64f9cbee3ee4955d209895b92e
[ "MIT" ]
null
null
null
defmodule ElementTestWithIds do use ExUnit.Case use Hound.Helpers hound_session test "should get visible text of an element" do navigate_to "http://localhost:9090/page1.html" element_id = find_element(:class, "example") assert visible_text(element_id) == "Paragraph" end test "should input va...
29.503448
73
0.707106
7a76f42c3818a6fcd111fd5a95144e83b8f86221
19,781
ex
Elixir
lib/commanded/commands/router.ex
SimpleBet/commanded
dc89737bd22daf4f6c5b3333b5d8d8de47fea5b8
[ "MIT" ]
1
2020-03-09T11:50:38.000Z
2020-03-09T11:50:38.000Z
lib/commanded/commands/router.ex
perzanko/commanded
fd18ee3981cd237cbb874d1ccd8155e98d35d178
[ "MIT" ]
null
null
null
lib/commanded/commands/router.ex
perzanko/commanded
fd18ee3981cd237cbb874d1ccd8155e98d35d178
[ "MIT" ]
null
null
null
defmodule Commanded.Commands.Router do @moduledoc """ Command routing macro to allow configuration of each command to its command handler. ## Example Define a router module which uses `Commanded.Commands.Router` and configures available commands to dispatch: defmodule BankRouter do use Comman...
34.282496
123
0.649259
7a770a44f3768a8f50d233c8e816dc5c5227d8e5
765
ex
Elixir
apps/poker_web/lib/poker_web/channels/table_channel.ex
thetamind/elixir_phoenix_poker
125faa62d52b78101fee51e4d4639c1caa8fa033
[ "MIT" ]
null
null
null
apps/poker_web/lib/poker_web/channels/table_channel.ex
thetamind/elixir_phoenix_poker
125faa62d52b78101fee51e4d4639c1caa8fa033
[ "MIT" ]
null
null
null
apps/poker_web/lib/poker_web/channels/table_channel.ex
thetamind/elixir_phoenix_poker
125faa62d52b78101fee51e4d4639c1caa8fa033
[ "MIT" ]
null
null
null
defmodule Poker.Web.TableChannel do use Poker.Web, :channel def join("table:" <> _table_slug, payload, socket) do if authorized?(payload) do {:ok, socket} else {:error, %{reason: "unauthorized"}} end end # Channels can be used in a request/response fashion # by sending replies to req...
25.5
61
0.681046
7a774508f908e123998feb4d55c55a9c0c9eb171
388
ex
Elixir
lib/fault_tree/gate/or.ex
hexedpackets/fault_tree
340d08e8ea7733999531f79bdc712515053e0e85
[ "Apache-2.0" ]
3
2019-06-05T14:16:24.000Z
2020-08-10T00:33:05.000Z
lib/fault_tree/gate/or.ex
hexedpackets/fault_tree
340d08e8ea7733999531f79bdc712515053e0e85
[ "Apache-2.0" ]
15
2019-05-15T21:38:48.000Z
2019-06-04T17:26:43.000Z
lib/fault_tree/gate/or.ex
hexedpackets/fault_tree
340d08e8ea7733999531f79bdc712515053e0e85
[ "Apache-2.0" ]
null
null
null
defmodule FaultTree.Gate.Or do @moduledoc """ Handling for OR logic gates. P (A or B) = P (A ∪ B) = P(A) + P(B) - P (A ∩ B) """ def probability(nodes) do nodes |> Stream.map(fn node -> node.probability end) |> Enum.reduce(Decimal.new(0), &calc/2) end defp calc(a, b) do t1 = Decimal.add(...
19.4
50
0.572165
7a775021c9757f6fd15e2327a37b3a74f1e093f4
540
exs
Elixir
apps/nerves_hub_web_core/priv/repo/migrations/20210603174111_require_device_uniqueness.exs
chrisdambrosio/nerves_hub_web
91b6b27bb54ef61864a8f77ac91a8a24451b382d
[ "Apache-2.0" ]
111
2018-07-25T01:07:51.000Z
2022-01-25T17:03:01.000Z
apps/nerves_hub_web_core/priv/repo/migrations/20210603174111_require_device_uniqueness.exs
chrisdambrosio/nerves_hub_web
91b6b27bb54ef61864a8f77ac91a8a24451b382d
[ "Apache-2.0" ]
361
2018-07-22T12:53:00.000Z
2022-03-31T18:50:34.000Z
apps/nerves_hub_web_core/priv/repo/migrations/20210603174111_require_device_uniqueness.exs
chrisdambrosio/nerves_hub_web
91b6b27bb54ef61864a8f77ac91a8a24451b382d
[ "Apache-2.0" ]
54
2018-08-26T02:58:04.000Z
2022-03-09T10:12:19.000Z
defmodule NervesHubWebCore.Repo.Migrations.RequireDeviceUniqueness do use Ecto.Migration def change do drop_if_exists(unique_index(:devices, [:org_id, :identifier], name: :devices_org_id_identifier_index, where: "deleted_at IS NULL")) # Deduplicate devices that may exist from previously being deleted ...
41.538462
135
0.783333
7a7752e7c74a0ac7112ab904a96ff8eec785fa33
57
ex
Elixir
web/views/layout_view.ex
nabbisen/journey-planner
82aa6e081504dfe3a9b2b191b40819404b9fd26b
[ "MIT" ]
null
null
null
web/views/layout_view.ex
nabbisen/journey-planner
82aa6e081504dfe3a9b2b191b40819404b9fd26b
[ "MIT" ]
null
null
null
web/views/layout_view.ex
nabbisen/journey-planner
82aa6e081504dfe3a9b2b191b40819404b9fd26b
[ "MIT" ]
null
null
null
defmodule JrnyPlnr.LayoutView do use JrnyPlnr.View end
14.25
32
0.824561
7a7755806501d58754769bee5cb7b1272d341aab
1,471
exs
Elixir
mix.exs
jabaraster/elixir_wiki
e8197a1f48c4ebfdbb209e74b01e76abb6d9fe68
[ "MIT" ]
null
null
null
mix.exs
jabaraster/elixir_wiki
e8197a1f48c4ebfdbb209e74b01e76abb6d9fe68
[ "MIT" ]
null
null
null
mix.exs
jabaraster/elixir_wiki
e8197a1f48c4ebfdbb209e74b01e76abb6d9fe68
[ "MIT" ]
null
null
null
defmodule Wiki.Mixfile do use Mix.Project def project do [app: :wiki, version: "0.0.1", elixir: "~> 1.0", elixirc_paths: elixirc_paths(Mix.env), compilers: [:phoenix] ++ Mix.compilers, build_embedded: Mix.env == :prod, start_permanent: Mix.env == :prod, aliases: aliases, ...
28.288462
78
0.60707
7a777353e4314c76e8952efb22daae5d45682a96
663
ex
Elixir
apps/customer/lib/customer/web/models/company.ex
JaiMali/job_search-1
5fe1afcd80aa5d55b92befed2780cd6721837c88
[ "MIT" ]
102
2017-05-21T18:24:04.000Z
2022-03-10T12:53:20.000Z
apps/customer/lib/customer/web/models/company.ex
JaiMali/job_search-1
5fe1afcd80aa5d55b92befed2780cd6721837c88
[ "MIT" ]
2
2017-05-21T01:53:30.000Z
2017-12-01T00:27:06.000Z
apps/customer/lib/customer/web/models/company.ex
JaiMali/job_search-1
5fe1afcd80aa5d55b92befed2780cd6721837c88
[ "MIT" ]
18
2017-05-22T09:51:36.000Z
2021-09-24T00:57:01.000Z
defmodule Customer.Web.Company do use Customer.Web, :model schema "companies" do field :name, :string field :url, :string timestamps() has_many :jobs, Job, on_delete: :delete_all has_many :job_sources, JobSource, on_delete: :delete_all end @required_fields ~w(name url)a @doc """ Bui...
21.387097
60
0.666667
7a7776fedff2d44faf063528f46a00366c59a8e9
269
exs
Elixir
packages/rlack/api/priv/repo/migrations/20170411180248_create_room.exs
ragmha/projects
673f7bbad8e27868a4cfa81480556bbc3f4d5bea
[ "MIT" ]
1
2017-04-08T20:08:05.000Z
2017-04-08T20:08:05.000Z
packages/rlack/api/priv/repo/migrations/20170411180248_create_room.exs
ragmha/projects
673f7bbad8e27868a4cfa81480556bbc3f4d5bea
[ "MIT" ]
null
null
null
packages/rlack/api/priv/repo/migrations/20170411180248_create_room.exs
ragmha/projects
673f7bbad8e27868a4cfa81480556bbc3f4d5bea
[ "MIT" ]
null
null
null
defmodule Rlack.Repo.Migrations.CreateRoom do use Ecto.Migration def change do create table(:rooms) do add :name, :string, null: false add :topic, :string, default: "" timestamps() end create unique_index(:rooms, [:name]) end end
17.933333
45
0.64684
7a777e4409d109f6889d6b0789f4fcc38b7c1970
4,574
ex
Elixir
lib/terp/ast.ex
tpoulsen/terp
a11b2452bec7b3dd558b5b51a27b44a5b7dda009
[ "BSD-2-Clause" ]
23
2017-09-22T07:13:34.000Z
2021-06-08T14:50:06.000Z
lib/terp/ast.ex
smpoulsen/terp
a11b2452bec7b3dd558b5b51a27b44a5b7dda009
[ "BSD-2-Clause" ]
5
2017-08-26T18:40:54.000Z
2017-09-28T00:24:50.000Z
lib/terp/ast.ex
smpoulsen/terp
a11b2452bec7b3dd558b5b51a27b44a5b7dda009
[ "BSD-2-Clause" ]
4
2017-09-27T23:14:59.000Z
2021-06-08T14:50:12.000Z
defmodule Terp.AST do @moduledoc """ Interface for working with the Terp.AST. """ alias RoseTree.Zipper alias Terp.Parser @doc """ Parse source code and convert it to an ast. """ @spec from_src(String.t) :: [RoseTree.t] def from_src(str) do str |> Parser.parse() |> Enum.flat_map(&to_tre...
27.554217
102
0.510931
7a77883fc6d39469617a55be2a85c4a2b42256db
10,363
exs
Elixir
test/scrivener/paginator/ecto/query_test.exs
heyitsjames/scrivener_ecto
6640c191771c297b2d59e7b065d5971e8a52be87
[ "MIT" ]
null
null
null
test/scrivener/paginator/ecto/query_test.exs
heyitsjames/scrivener_ecto
6640c191771c297b2d59e7b065d5971e8a52be87
[ "MIT" ]
null
null
null
test/scrivener/paginator/ecto/query_test.exs
heyitsjames/scrivener_ecto
6640c191771c297b2d59e7b065d5971e8a52be87
[ "MIT" ]
null
null
null
defmodule Scrivener.Paginater.Ecto.QueryTest do use Scrivener.Ecto.TestCase alias Scrivener.Ecto.{Comment, KeyValue, Post, User} defp create_posts do unpublished_post = insert_new_post!("Title unpublished", "Body unpublished", false) for i <- 1..2, do: insert_new_comment!("Body #{i}", unpublished_post....
24.732697
96
0.582843
7a77e6172dfd8a92ee55564c4cf8b2079cdf7a3b
468
exs
Elixir
test/controllers/page_controller_test.exs
tomfbiz/enhanced_map
86bb5525dc58e8cb17926ce829659b817949266a
[ "MIT" ]
2
2017-08-28T12:20:28.000Z
2017-08-29T18:50:36.000Z
test/controllers/page_controller_test.exs
tomfbiz/enhanced_map
86bb5525dc58e8cb17926ce829659b817949266a
[ "MIT" ]
null
null
null
test/controllers/page_controller_test.exs
tomfbiz/enhanced_map
86bb5525dc58e8cb17926ce829659b817949266a
[ "MIT" ]
null
null
null
defmodule EnhancedMap.PageControllerTest do use EnhancedMap.ConnCase import EnhancedMap.Factory test "link to map if there is one", %{conn: conn} do map = insert(:map) conn = get conn, "/" assert html_response(conn, 200) =~ readonly_map_path(conn, :show, map) end test "redirect if logged in", ...
23.4
74
0.668803
7a77ec0164131ce09e3c2e866ea381aa67efde16
873
ex
Elixir
lib/whatChat_web/channels/utils/presences/chat_presence.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_web/channels/utils/presences/chat_presence.ex
mbuala/WhatChat
44851a8b3afe0a8825b5e53e327c2f777065a60c
[ "MIT" ]
30
2019-07-19T00:56:47.000Z
2022-03-26T01:41:41.000Z
lib/whatChat_web/channels/utils/presences/chat_presence.ex
mbuala/WhatChat
44851a8b3afe0a8825b5e53e327c2f777065a60c
[ "MIT" ]
23
2019-02-02T10:32:09.000Z
2022-01-24T02:00:29.000Z
defmodule WhatChatWeb.ChatPresence do use Phoenix.Presence, otp_app: :whatChat, pubsub_server: WhatChat.PubSub alias WhatChatWeb.{ChatPresence} def track_user_join(socket, user) do ChatPresence.track(socket, user.id, %{ typing: false, conversation_id: 0, last_seen: DateTime.utc_now, ...
23.594595
74
0.601375
7a77f38fb067cbdc41b286f059e3f7e444d87fcc
3,121
exs
Elixir
test/cadet/assessments/question_test.exs
source-academy/cadet
c447552453f78799755de73f66999e4c9d20383c
[ "Apache-2.0" ]
27
2018-01-20T05:56:24.000Z
2021-05-24T03:21:55.000Z
test/cadet/assessments/question_test.exs
source-academy/cadet
c447552453f78799755de73f66999e4c9d20383c
[ "Apache-2.0" ]
731
2018-04-16T13:25:49.000Z
2021-06-22T07:16:12.000Z
test/cadet/assessments/question_test.exs
source-academy/cadet
c447552453f78799755de73f66999e4c9d20383c
[ "Apache-2.0" ]
43
2018-01-20T06:35:46.000Z
2021-05-05T03:22:35.000Z
defmodule Cadet.Assessments.QuestionTest do alias Cadet.Assessments.Question use Cadet.ChangesetCase, entity: Question @required_fields ~w(question type assessment_id)a @required_embeds ~w(library)a setup do assessment = insert(:assessment) valid_programming_params = %{ type: :programming, ...
26.008333
91
0.642102
7a77fe55e5f77e078ebcd954048de0d8116d1296
7,170
ex
Elixir
lib/quantum/job_broadcaster.ex
jbavari/quantum-core
ff800feb459acde0a7ae4f26195fb91581b76b59
[ "Apache-2.0" ]
null
null
null
lib/quantum/job_broadcaster.ex
jbavari/quantum-core
ff800feb459acde0a7ae4f26195fb91581b76b59
[ "Apache-2.0" ]
null
null
null
lib/quantum/job_broadcaster.ex
jbavari/quantum-core
ff800feb459acde0a7ae4f26195fb91581b76b59
[ "Apache-2.0" ]
null
null
null
defmodule Quantum.JobBroadcaster do @moduledoc """ This Module is here to broadcast added / removed tabs into the execution pipeline. """ use GenStage require Logger alias Quantum.{Job, Scheduler} alias Quantum.Storage.Adapter alias __MODULE__.{InitOpts, StartOpts, State} @type event :: {:add, Job...
28.339921
107
0.584519
7a7816e9b209562525f2276ae076224e1c5e8b0b
2,264
ex
Elixir
lib/mgp_web/controllers/user_settings_controller.ex
imprest/mgp
61457315243d0e0c26713601b9930ca34a116a16
[ "MIT" ]
null
null
null
lib/mgp_web/controllers/user_settings_controller.ex
imprest/mgp
61457315243d0e0c26713601b9930ca34a116a16
[ "MIT" ]
2
2020-12-22T12:30:58.000Z
2021-05-19T10:07:26.000Z
lib/mgp_web/controllers/user_settings_controller.ex
imprest/mgp
61457315243d0e0c26713601b9930ca34a116a16
[ "MIT" ]
null
null
null
defmodule MgpWeb.UserSettingsController do use MgpWeb, :controller alias Mgp.Accounts alias MgpWeb.UserAuth plug :assign_email_and_password_changesets def edit(conn, _params) do render(conn, "edit.html") end def update(conn, %{"action" => "update_email"} = params) do %{"current_password" => pa...
30.186667
81
0.651943
7a781d0171b3c0110ea27f15d7846640d555a259
379
exs
Elixir
instrumentation/opentelemetry_ecto/config/test.exs
raphaklaus/opentelemetry-erlang-contrib
b4046eb07395c1751f3a222982720c682a0339fa
[ "Apache-2.0" ]
24
2021-05-07T18:37:11.000Z
2022-03-13T06:21:00.000Z
instrumentation/opentelemetry_ecto/config/test.exs
raphaklaus/opentelemetry-erlang-contrib
b4046eb07395c1751f3a222982720c682a0339fa
[ "Apache-2.0" ]
42
2021-05-10T20:19:22.000Z
2022-03-31T17:48:13.000Z
instrumentation/opentelemetry_ecto/config/test.exs
raphaklaus/opentelemetry-erlang-contrib
b4046eb07395c1751f3a222982720c682a0339fa
[ "Apache-2.0" ]
19
2021-08-30T01:33:54.000Z
2022-03-20T22:01:15.000Z
import Config config :opentelemetry_ecto, ecto_repos: [OpentelemetryEcto.TestRepo] config :opentelemetry_ecto, OpentelemetryEcto.TestRepo, hostname: "localhost", username: "postgres", password: "postgres", database: "opentelemetry_ecto_test", pool: Ecto.Adapters.SQL.Sandbox config :opentelemetry, proce...
25.266667
65
0.775726
7a78400b4dfa8850fd4010982fdf985fe7312de4
1,161
exs
Elixir
Microsoft.Azure.Management.Compute/config/config.exs
chgeuer/ex_microsoft_azure_management
99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603
[ "Apache-2.0" ]
4
2018-09-29T03:43:15.000Z
2021-04-01T18:30:46.000Z
Microsoft.Azure.Management.Compute/config/config.exs
chgeuer/ex_microsoft_azure_management
99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603
[ "Apache-2.0" ]
null
null
null
Microsoft.Azure.Management.Compute/config/config.exs
chgeuer/ex_microsoft_azure_management
99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603
[ "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...
37.451613
73
0.760551
7a7857caa0a4c49f9c7389f18fc0c19e1e4d1d77
145
ex
Elixir
web/views/branches_view.ex
matsubara0507/pastry-chef-test
05c0fc3a3864e5469690da980e7bf3d2dbdb3919
[ "MIT" ]
1
2017-09-20T23:46:35.000Z
2017-09-20T23:46:35.000Z
web/views/branches_view.ex
matsubara0507/pastry-chef-test
05c0fc3a3864e5469690da980e7bf3d2dbdb3919
[ "MIT" ]
null
null
null
web/views/branches_view.ex
matsubara0507/pastry-chef-test
05c0fc3a3864e5469690da980e7bf3d2dbdb3919
[ "MIT" ]
null
null
null
defmodule PastryChefTest.BranchesView do use PastryChefTest.Web, :view def render("branches.json", %{branches: branches}), do: branches end
24.166667
66
0.765517
7a785b6b0fe091015d67b12971dee4d77c83ec2b
908
ex
Elixir
lib/flow/legacy/entities/block.pb.ex
phereford/flow
25dca2058fa74037dc1283b74df6a349d4fedbd5
[ "MIT" ]
1
2021-04-09T06:28:53.000Z
2021-04-09T06:28:53.000Z
lib/flow/legacy/entities/block.pb.ex
phereford/flow
25dca2058fa74037dc1283b74df6a349d4fedbd5
[ "MIT" ]
null
null
null
lib/flow/legacy/entities/block.pb.ex
phereford/flow
25dca2058fa74037dc1283b74df6a349d4fedbd5
[ "MIT" ]
null
null
null
defmodule Entities.Block do @moduledoc false use Protobuf, syntax: :proto3 @type t :: %__MODULE__{ id: binary, parent_id: binary, height: non_neg_integer, timestamp: Google.Protobuf.Timestamp.t() | nil, collection_guarantees: [Entities.CollectionGuarantee.t()], ...
27.515152
85
0.651982
7a785c42d548ae5194668a0e78c64403a607599a
307
ex
Elixir
lib/king_albert_ex/util.ex
matt-harvey/king_albert_ex
8f1fa8bbacfc8df82a76fd22fba90de8470e17c4
[ "MIT" ]
null
null
null
lib/king_albert_ex/util.ex
matt-harvey/king_albert_ex
8f1fa8bbacfc8df82a76fd22fba90de8470e17c4
[ "MIT" ]
null
null
null
lib/king_albert_ex/util.ex
matt-harvey/king_albert_ex
8f1fa8bbacfc8df82a76fd22fba90de8470e17c4
[ "MIT" ]
null
null
null
defmodule KingAlbertEx.Util do @moduledoc """ Contains general utility functions. """ @doc """ Returns a List in which x is repeated n times. """ @spec repeat(any(), non_neg_integer()) :: [any()] def repeat(_x, 0), do: [] def repeat(x, times), do: 1..times |> Enum.map(fn _ -> x end) end
23.615385
63
0.62215
7a789ce7386f11ebb63cfafe25cf0237ff3cf8d4
4,191
ex
Elixir
lib/util/error_handler.ex
Chatatata/iyzico
99f195e51b732e124bba82ad78c12d8f5ecbdf08
[ "MIT" ]
6
2017-08-22T15:27:33.000Z
2019-01-25T10:31:10.000Z
lib/util/error_handler.ex
i386-64/iyzico
99f195e51b732e124bba82ad78c12d8f5ecbdf08
[ "MIT" ]
12
2017-08-23T13:21:26.000Z
2020-03-31T21:07:23.000Z
lib/util/error_handler.ex
i386-64/iyzico
99f195e51b732e124bba82ad78c12d8f5ecbdf08
[ "MIT" ]
4
2017-09-24T15:40:08.000Z
2020-01-31T10:21:32.000Z
defmodule Iyzico.ErrorHandler do def handle_error(%{"errorCode" => "5093"}), do: {:error, :excessive_funds} def handle_error(%{"errorCode" => "5115"}), do: {:error, :unavail} def handle_error(%{"errorCode" => "5184"}), do: {:error, :local_card_on_foreign_cur} def handle_error(%{"errorCode" => "5086"}), do: {:er...
72.258621
99
0.645908
7a78eb2623c7ce68a1a64619d195dfab92bc1bf3
1,333
ex
Elixir
lib/distcount/application.ex
cabol/distcount
b0b42f66dcc130ec6e349ab8b915cfb6f5b77c7b
[ "MIT" ]
null
null
null
lib/distcount/application.ex
cabol/distcount
b0b42f66dcc130ec6e349ab8b915cfb6f5b77c7b
[ "MIT" ]
null
null
null
lib/distcount/application.ex
cabol/distcount
b0b42f66dcc130ec6e349ab8b915cfb6f5b77c7b
[ "MIT" ]
null
null
null
defmodule Distcount.Application do # See https://hexdocs.pm/elixir/Application.html # for more information on OTP Applications @moduledoc false use Application alias DistcountWeb.Endpoint @impl true def start(_type, _args) do children = [ # Start the Ecto repository Distcount.Repo, ...
26.66
73
0.709677
7a790677de8e4cb2924d57e231630689e5ca757b
2,018
ex
Elixir
clients/container_analysis/lib/google_api/container_analysis/v1beta1/model/containeranalysis_google_devtools_cloudbuild_v1_build_options_pool_option.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/container_analysis/lib/google_api/container_analysis/v1beta1/model/containeranalysis_google_devtools_cloudbuild_v1_build_options_pool_option.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/container_analysis/lib/google_api/container_analysis/v1beta1/model/containeranalysis_google_devtools_cloudbuild_v1_build_options_pool_option.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...
37.37037
260
0.766105
7a7961c667924019b8e59a39b129d040230ae9a0
629
exs
Elixir
c_src/membrane_portaudio_plugin/sink.spec.exs
membraneframework/membrane_portaudio_plugin
a7d2e44000b9e4ebdfa21cb3228b6a2638eca02a
[ "Apache-2.0" ]
2
2018-07-27T14:16:02.000Z
2019-10-30T17:54:41.000Z
c_src/membrane_portaudio_plugin/sink.spec.exs
membraneframework/membrane-element-portaudio
b1622040281e790422e0be94092957e1ef8cc4c1
[ "Apache-2.0" ]
3
2018-10-15T07:58:25.000Z
2020-08-07T05:20:30.000Z
c_src/membrane_portaudio_plugin/sink.spec.exs
membraneframework/membrane_portaudio_plugin
a7d2e44000b9e4ebdfa21cb3228b6a2638eca02a
[ "Apache-2.0" ]
1
2019-10-30T17:54:51.000Z
2019-10-30T17:54:51.000Z
alias Membrane.PortAudio.Sink.Native module Native state_type "SinkState" spec create( demand_handler :: pid, clock :: pid, endpoint_id :: int, ringbuffer_size :: int, pa_buffer_size :: int, latency :: atom ) :: {:ok :: label, {latency_ms :: int, state}} | {:error :: la...
27.347826
88
0.626391
7a796da397d008809de02ceb475dc5d260919dcf
178
exs
Elixir
priv/repo/migrations/20160710190512_create_venue.exs
tedstrauss/sonar
65de7a9a78eae9fd4e02f5abdf00f9fdec19b081
[ "MIT" ]
1
2020-07-17T14:02:31.000Z
2020-07-17T14:02:31.000Z
priv/repo/migrations/20160710190512_create_venue.exs
tedstrauss/sonar
65de7a9a78eae9fd4e02f5abdf00f9fdec19b081
[ "MIT" ]
null
null
null
priv/repo/migrations/20160710190512_create_venue.exs
tedstrauss/sonar
65de7a9a78eae9fd4e02f5abdf00f9fdec19b081
[ "MIT" ]
1
2019-12-02T17:51:36.000Z
2019-12-02T17:51:36.000Z
defmodule Sonar.Repo.Migrations.CreateVenue do use Ecto.Migration def change do create table(:venues) do add :name, :string timestamps() end end end
13.692308
46
0.668539
7a797d78a5c65212956785c06b94c5964f76d730
43,923
ex
Elixir
lib/en/irregular_adjectives.ex
xiamx/lemma
2b4d7bc459f57ba9cff0f79a90b3dc9a2379398d
[ "Apache-2.0" ]
46
2017-09-12T16:49:24.000Z
2021-06-09T06:44:15.000Z
lib/en/irregular_adjectives.ex
xiamx/lemma
2b4d7bc459f57ba9cff0f79a90b3dc9a2379398d
[ "Apache-2.0" ]
1
2017-12-08T21:03:08.000Z
2017-12-08T21:03:08.000Z
lib/en/irregular_adjectives.ex
xiamx/lemma
2b4d7bc459f57ba9cff0f79a90b3dc9a2379398d
[ "Apache-2.0" ]
3
2017-12-08T20:57:07.000Z
2019-11-29T01:05:42.000Z
defmodule Lemma.En.IrregularAdjectives do @moduledoc false @rules [ [{"acer", "acer"}], [{"after", "after"}], [{"airier", "airy"}], [{"airiest", "airy"}], [{"all-arounder", "all-arounder"}], [{"angrier", "angry"}], [{"angriest", "angry"}], [{"archer", "archer"}], [{"artier", "art...
29.340681
43
0.456572
7a798798b674592e7edde33e9854d5b48976fe63
234
exs
Elixir
test/poison_test.exs
thedelchop/monetized
6366b62738573516340e5dd5a46c4edec0c2f61b
[ "MIT" ]
42
2015-12-21T00:16:49.000Z
2019-02-25T10:19:26.000Z
test/poison_test.exs
thedelchop/monetized
6366b62738573516340e5dd5a46c4edec0c2f61b
[ "MIT" ]
23
2015-12-31T19:36:14.000Z
2020-08-18T19:25:53.000Z
test/poison_test.exs
tfelippe/monetized
bc742c5be8e435681daa35a2edddf55337a2d12f
[ "MIT" ]
21
2016-01-27T17:44:50.000Z
2020-09-21T16:46:12.000Z
defmodule PoisonTest do use ExUnit.Case, async: true alias Monetized.Money test "Poison serialization" do money = Money.make("$100.50") assert money |> Poison.encode! |> Poison.decode!(as: %Money{}) == money end end
21.272727
75
0.679487
7a79a298452509d41e8dd4e6678de0ef6bb571b2
1,538
ex
Elixir
clients/dataproc/lib/google_api/dataproc/v1/model/empty.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
1
2018-12-03T23:43:10.000Z
2018-12-03T23:43:10.000Z
clients/dataproc/lib/google_api/dataproc/v1/model/empty.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
clients/dataproc/lib/google_api/dataproc/v1/model/empty.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 ...
33.434783
202
0.752926
7a79af4d23fe51f6e7914ffbf61503cf9edad311
1,744
ex
Elixir
clients/tag_manager/lib/google_api/tag_manager/v2/model/revert_template_response.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/tag_manager/lib/google_api/tag_manager/v2/model/revert_template_response.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/tag_manager/lib/google_api/tag_manager/v2/model/revert_template_response.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-10-04T10:12:44.000Z
2020-10-04T10:12:44.000Z
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
37.106383
298
0.760894
7a79c5e0a43354861c8f8a350656714fc27d28b2
297
ex
Elixir
lib/bejo/deploy.ex
fossabot/bejo
7d25d68ef97bd77b7d53fc9a9546261fdc99bfba
[ "Apache-2.0" ]
null
null
null
lib/bejo/deploy.ex
fossabot/bejo
7d25d68ef97bd77b7d53fc9a9546261fdc99bfba
[ "Apache-2.0" ]
null
null
null
lib/bejo/deploy.ex
fossabot/bejo
7d25d68ef97bd77b7d53fc9a9546261fdc99bfba
[ "Apache-2.0" ]
null
null
null
defmodule Bejo.Deploy do def copy_files(args) do path = "_build/#{Mix.env()}/rel/bakeware/bejo" File.cp!(path, "./bejo") IO.puts("Bejo executable available at #{File.cwd!()}/bejo") args end def set_env(args) do System.put_env("BEJO_RUN_CLI", "true") args end end
19.8
63
0.636364
7a7a05b784259219b67d9de75c6ebe1328aa77a2
1,514
ex
Elixir
clients/cloud_search/lib/google_api/cloud_search/v1/model/debug_options.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/cloud_search/lib/google_api/cloud_search/v1/model/debug_options.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/cloud_search/lib/google_api/cloud_search/v1/model/debug_options.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
31.541667
132
0.739762
7a7a4222dd4acc6d263d1879039cfc44ccec7189
492
ex
Elixir
lib/ambry_web/logo.ex
froseph/ambry
86c1a8528b9f3cc7e4a7debd8005df4116a7d1b1
[ "MIT" ]
null
null
null
lib/ambry_web/logo.ex
froseph/ambry
86c1a8528b9f3cc7e4a7debd8005df4116a7d1b1
[ "MIT" ]
null
null
null
lib/ambry_web/logo.ex
froseph/ambry
86c1a8528b9f3cc7e4a7debd8005df4116a7d1b1
[ "MIT" ]
null
null
null
defmodule AmbryWeb.Logo do @moduledoc """ Helpers for inserting the Ambry logo in various ways. """ use Phoenix.Component alias AmbryWeb.Router.Helpers, as: Routes def logo_with_tagline(assigns) do ~H""" <h1 class="text-center"> <img class="mx-auto" style="max-height: 128px;" alt="Ambry" sr...
25.894737
127
0.676829
7a7a53e288d3b9e05620efe8f29b82d37186164f
3,155
exs
Elixir
test/test_helper_test.exs
scottming/absinthe_error_payload
500f7fa2ad1c17eeba644e7922dd0275994f6f94
[ "MIT", "BSD-3-Clause" ]
90
2019-04-30T00:21:58.000Z
2022-02-02T15:28:25.000Z
test/test_helper_test.exs
scottming/absinthe_error_payload
500f7fa2ad1c17eeba644e7922dd0275994f6f94
[ "MIT", "BSD-3-Clause" ]
18
2019-05-01T19:24:16.000Z
2022-01-04T07:22:43.000Z
test/test_helper_test.exs
scottming/absinthe_error_payload
500f7fa2ad1c17eeba644e7922dd0275994f6f94
[ "MIT", "BSD-3-Clause" ]
25
2019-05-24T23:57:24.000Z
2022-02-25T19:16:23.000Z
defmodule AbsintheErrorPayload.TestHelperTest do @moduledoc """ Test graphql result test helpers """ use ExUnit.Case import AbsintheErrorPayload.TestHelper alias AbsintheErrorPayload.ValidationMessage @time DateTime.utc_now() @naive NaiveDateTime.utc_now() def fields do %{ date: :date, ...
22.697842
136
0.552456
7a7a671cb759da4c444e8cdbecfb3eee8e408bb4
2,088
ex
Elixir
clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1beta1_search_catalog_response.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1beta1_search_catalog_response.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1beta1_search_catalog_response.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
33.142857
156
0.743774
7a7a7b0966a8fac93d33d032df1b40e6904f56ce
2,671
ex
Elixir
lib/entity_metadata.ex
qwexvf/McProtocol
a9e243e2d6de7b51e049881c8ea8f12bff94feb1
[ "MIT" ]
21
2016-04-23T03:54:33.000Z
2021-07-08T12:03:44.000Z
lib/entity_metadata.ex
qwexvf/McProtocol
a9e243e2d6de7b51e049881c8ea8f12bff94feb1
[ "MIT" ]
2
2016-04-06T07:01:18.000Z
2017-04-15T11:09:23.000Z
lib/entity_metadata.ex
hansihe/elixir_mc_protocol
4b3011338af573c6f583f541c410fb23574f4c10
[ "MIT" ]
9
2016-04-09T21:05:48.000Z
2021-07-27T12:42:49.000Z
defmodule McProtocol.EntityMeta do alias McProtocol.DataTypes.{Encode, Decode} type_idx = [ byte: 0, varint: 1, float: 2, string: 3, chat: 4, slot: 5, boolean: 6, rotation: 7, position: 8, opt_position: 9, direction: 10, opt_uuid: 11, block_id: 12, ] for {ide...
29.032609
70
0.6462
7a7a837b2b439a1d990e254eab1bb84b6295be5c
246
exs
Elixir
test/defp_test.exs
ityonemo/Exonerate
42b888c156c9179d222b78609d34c07f0b887eaf
[ "MIT" ]
14
2021-01-14T20:14:30.000Z
2022-01-28T00:58:07.000Z
test/defp_test.exs
ityonemo/Exonerate
42b888c156c9179d222b78609d34c07f0b887eaf
[ "MIT" ]
13
2019-09-11T17:48:48.000Z
2021-11-22T23:02:44.000Z
test/defp_test.exs
ityonemo/Exonerate
42b888c156c9179d222b78609d34c07f0b887eaf
[ "MIT" ]
1
2021-09-12T13:08:54.000Z
2021-09-12T13:08:54.000Z
defmodule ExonerateTest.DefpTest do use ExUnit.Case, async: true require Exonerate Exonerate.function_from_string(:defp, :foo, ~s({"type": "string"})) test "foo" do assert :ok = foo("bar") assert {:error, _} = foo(42) end end
20.5
69
0.662602
7a7ac7640d5b8078212b1258a1f2cc6a45bcaa01
2,303
exs
Elixir
priv/test_repo/migrations/20210401061343_migrate_resources5.exs
frankdugan3/ash_postgres
ae173f0229ffe1dea821e8a73c2c6b8c858b39f6
[ "MIT" ]
13
2020-09-04T22:31:23.000Z
2022-02-06T13:24:23.000Z
priv/test_repo/migrations/20210401061343_migrate_resources5.exs
frankdugan3/ash_postgres
ae173f0229ffe1dea821e8a73c2c6b8c858b39f6
[ "MIT" ]
57
2019-12-04T15:23:41.000Z
2022-02-14T22:55:16.000Z
priv/test_repo/migrations/20210401061343_migrate_resources5.exs
frankdugan3/ash_postgres
ae173f0229ffe1dea821e8a73c2c6b8c858b39f6
[ "MIT" ]
15
2020-10-22T13:26:25.000Z
2021-07-26T23:49:42.000Z
defmodule AshPostgres.TestRepo.Migrations.MigrateResources5 do @moduledoc """ Updates resources based on their most recent snapshots. This file was autogenerated with `mix ash_postgres.generate_migrations` """ use Ecto.Migration def up do alter table(:posts) do modify :id, :uuid, default: fragm...
26.170455
98
0.615719
7a7ae5dabfae05085cd613f5cc1dd8e768010a18
19,088
ex
Elixir
clients/container/lib/google_api/container/v1/model/cluster.ex
kaaboaye/elixir-google-api
1896784c4342151fd25becd089a5beb323eff567
[ "Apache-2.0" ]
null
null
null
clients/container/lib/google_api/container/v1/model/cluster.ex
kaaboaye/elixir-google-api
1896784c4342151fd25becd089a5beb323eff567
[ "Apache-2.0" ]
null
null
null
clients/container/lib/google_api/container/v1/model/cluster.ex
kaaboaye/elixir-google-api
1896784c4342151fd25becd089a5beb323eff567
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
62.789474
198
0.705469
7a7af623df381e5bcc37ab29677a17cbc389e427
1,523
ex
Elixir
lib/badges_web/live/test_live/topic_live/part_live/form_component.ex
TomGrozev/SAD-Badges
a94331433ea21a0d719216ac8473e706166d6004
[ "MIT" ]
null
null
null
lib/badges_web/live/test_live/topic_live/part_live/form_component.ex
TomGrozev/SAD-Badges
a94331433ea21a0d719216ac8473e706166d6004
[ "MIT" ]
null
null
null
lib/badges_web/live/test_live/topic_live/part_live/form_component.ex
TomGrozev/SAD-Badges
a94331433ea21a0d719216ac8473e706166d6004
[ "MIT" ]
null
null
null
defmodule BadgesWeb.TestLive.TopicLive.PartLive.FormComponent do use BadgesWeb, :live_component alias Badges.Tests @impl true def update(%{part: part} = assigns, socket) do changeset = Tests.change_part(part) {:ok, socket |> assign(assigns) |> assign(:changeset, changeset)} end @i...
27.196429
67
0.640184
7a7b0851d3cfea834de86bc4030b857298e34ac5
1,068
ex
Elixir
lib/ielixir.ex
Ljzn/IElixir
af10a9e412823e6b0a2bb073667ee9c8cd6d3197
[ "Apache-2.0" ]
363
2015-07-12T07:36:38.000Z
2022-03-23T22:48:41.000Z
lib/ielixir.ex
Ljzn/IElixir
af10a9e412823e6b0a2bb073667ee9c8cd6d3197
[ "Apache-2.0" ]
51
2015-07-30T08:40:46.000Z
2021-12-03T09:18:58.000Z
lib/ielixir.ex
Ljzn/IElixir
af10a9e412823e6b0a2bb073667ee9c8cd6d3197
[ "Apache-2.0" ]
50
2015-07-30T05:31:58.000Z
2021-12-03T09:15:58.000Z
defmodule IElixir do @moduledoc """ This is documentation for IElixir project. """ use Application alias IElixir.Utils @doc false def start(_type, _args) do conn_info = Application.get_env(:ielixir, :connection_file) |> Utils.parse_connection_file() freeze_db_config() {:ok, ctx...
26.04878
94
0.656367
7a7b306104ff314b351cd548ae68b7f690faa674
735
ex
Elixir
lib/nys_etl/commcare/person.ex
RatioPBC/epi-viaduct-nys
99fb637785ea207aee5449fa01fa59dd18ec8bf2
[ "MIT" ]
2
2021-06-22T21:01:49.000Z
2021-11-04T18:36:48.000Z
lib/nys_etl/commcare/person.ex
RatioPBC/epi-viaduct-nys
99fb637785ea207aee5449fa01fa59dd18ec8bf2
[ "MIT" ]
null
null
null
lib/nys_etl/commcare/person.ex
RatioPBC/epi-viaduct-nys
99fb637785ea207aee5449fa01fa59dd18ec8bf2
[ "MIT" ]
null
null
null
defmodule NYSETL.Commcare.Person do use NYSETL, :schema alias NYSETL.Commcare schema "people" do field :patient_keys, {:array, :string} field :data, :map field :name_last, :string field :name_first, :string field :dob, :date has_many :index_cases, Commcare.IndexCase timestamps() ...
21.617647
59
0.658503
7a7b4e98a7d0a27b60900abdcda6c7532c6e1e1e
9,153
exs
Elixir
test/json_schema_test_suite/draft6/const_test.exs
kianmeng/xema
a990d64fb4bcd708249514daa55426ee003da25d
[ "MIT" ]
49
2018-06-05T09:42:19.000Z
2022-02-15T12:50:51.000Z
test/json_schema_test_suite/draft6/const_test.exs
kianmeng/xema
a990d64fb4bcd708249514daa55426ee003da25d
[ "MIT" ]
152
2017-06-11T13:43:06.000Z
2022-01-09T17:13:45.000Z
test/json_schema_test_suite/draft6/const_test.exs
kianmeng/xema
a990d64fb4bcd708249514daa55426ee003da25d
[ "MIT" ]
6
2019-05-31T05:41:47.000Z
2021-12-14T08:09:36.000Z
defmodule JsonSchemaTestSuite.Draft6.ConstTest do use ExUnit.Case import Xema, only: [valid?: 2] describe ~s|const validation| do setup do %{ schema: Xema.from_json_schema( %{"const" => 2}, draft: "draft6", atom: :force ) } end ...
22.825436
85
0.519939
7a7b6ad3f89c68878100ba67cb6307bba8d2224a
802
ex
Elixir
test/support/example_domain/ticketing/timeout_reservation_handler.ex
utrustdev/commanded-scheduler
7532f192d39df2d0b7d1d500973ceaa8ec987ed3
[ "MIT" ]
31
2017-11-25T00:18:12.000Z
2022-03-03T20:11:17.000Z
test/support/example_domain/ticketing/timeout_reservation_handler.ex
utrustdev/commanded-scheduler
7532f192d39df2d0b7d1d500973ceaa8ec987ed3
[ "MIT" ]
12
2018-01-09T21:18:30.000Z
2021-09-06T10:35:43.000Z
test/support/example_domain/ticketing/timeout_reservation_handler.ex
utrustdev/commanded-scheduler
7532f192d39df2d0b7d1d500973ceaa8ec987ed3
[ "MIT" ]
13
2018-02-08T15:15:11.000Z
2020-08-13T12:25:18.000Z
defmodule ExampleDomain.TimeoutReservationHandler do @moduledoc false use Commanded.Event.Handler, name: __MODULE__ alias Commanded.Scheduler.ScheduleOnce alias ExampleDomain.AppRouter alias ExampleDomain.TicketBooking.Commands.TimeoutReservation alias ExampleDomain.TicketBooking.Events.TicketReserved ...
28.642857
77
0.769327
7a7b73accd74221726bfca2cc663f3c28d75ca84
1,373
exs
Elixir
mix.exs
jmks/depot
32dd795e29231ee4333c0e825a504659b4abe04b
[ "Apache-2.0" ]
null
null
null
mix.exs
jmks/depot
32dd795e29231ee4333c0e825a504659b4abe04b
[ "Apache-2.0" ]
null
null
null
mix.exs
jmks/depot
32dd795e29231ee4333c0e825a504659b4abe04b
[ "Apache-2.0" ]
null
null
null
defmodule Depot.MixProject do use Mix.Project def project do [ app: :depot, version: "0.5.1", elixir: "~> 1.10", start_permanent: Mix.env() == :prod, deps: deps(), description: description(), package: package(), name: "Depot", source_url: "https://github.co...
21.123077
81
0.548434
7a7b87184d728acb381b70b588cf4ffb123220dd
3,218
ex
Elixir
lib/optimization.ex
safwank/Statix
ca2abe476c91172d05488f8a7703545fc9563c6f
[ "MIT" ]
null
null
null
lib/optimization.ex
safwank/Statix
ca2abe476c91172d05488f8a7703545fc9563c6f
[ "MIT" ]
null
null
null
lib/optimization.ex
safwank/Statix
ca2abe476c91172d05488f8a7703545fc9563c6f
[ "MIT" ]
null
null
null
defmodule Numerix.Optimization do @moduledoc """ Optimization algorithms to select the best element from a set of possible solutions. """ @default_opts [population_size: 50, mutation_prob: 0.2, elite_fraction: 0.2, iterations: 100] @doc """ Genetic algorithm to find the solution with the lowest cost where...
30.942308
104
0.635488
7a7bbd60579e229e8752c4b69a17d3766f40f2b9
367
ex
Elixir
lib/maester/character.ex
mikowitz/maester
bdb18f3828a9a780824dab1423204221d2b38f43
[ "MIT" ]
5
2016-06-06T08:27:22.000Z
2016-07-09T07:05:12.000Z
lib/maester/character.ex
mikowitz/maester
bdb18f3828a9a780824dab1423204221d2b38f43
[ "MIT" ]
3
2016-10-01T22:33:01.000Z
2017-01-05T15:27:41.000Z
lib/maester/character.ex
mikowitz/maester
bdb18f3828a9a780824dab1423204221d2b38f43
[ "MIT" ]
1
2017-01-08T16:56:27.000Z
2017-01-08T16:56:27.000Z
defmodule Maester.Character do @moduledoc """ Gets character information """ alias Maester.Request, as: Request @doc """ Gets all characters with optional filters """ def all(filters \\ %{}) do Request.make("characters", filters) end @doc """ Gets a character by id """ def by_id(id) do ...
16.681818
43
0.640327
7a7bc00d7e208416686944b35fb5ffa64209b25e
1,927
ex
Elixir
lib/epicenter/csv.ex
geometricservices/epi-viewpoin
ecb5316ea0f3f7299d5ff63e2de588539005ac1c
[ "Apache-2.0" ]
5
2021-02-25T18:43:09.000Z
2021-02-27T06:00:35.000Z
lib/epicenter/csv.ex
geometricservices/epi-viewpoint
ecb5316ea0f3f7299d5ff63e2de588539005ac1c
[ "Apache-2.0" ]
3
2021-12-13T17:52:47.000Z
2021-12-17T01:35:31.000Z
lib/epicenter/csv.ex
geometricservices/epi-viewpoint
ecb5316ea0f3f7299d5ff63e2de588539005ac1c
[ "Apache-2.0" ]
1
2022-01-27T23:26:38.000Z
2022-01-27T23:26:38.000Z
defmodule Epicenter.Csv do NimbleCSV.define(Epicenter.Csv.Parser, separator: ",", escape: "\"", line_separator: "\r\n", trim_bom: true, moduledoc: """ A CSV parser that uses comma as separator and double-quotes as escape according to RFC4180, and trims byte-order marks (BOMs) that may be g...
33.224138
119
0.619097
7a7bc2210a7a2cbcfa5c31dbbb01997c66662d37
2,187
ex
Elixir
clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p1beta1_crop_hint.ex
linjunpop/elixir-google-api
444cb2b2fb02726894535461a474beddd8b86db4
[ "Apache-2.0" ]
null
null
null
clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p1beta1_crop_hint.ex
linjunpop/elixir-google-api
444cb2b2fb02726894535461a474beddd8b86db4
[ "Apache-2.0" ]
null
null
null
clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p1beta1_crop_hint.ex
linjunpop/elixir-google-api
444cb2b2fb02726894535461a474beddd8b86db4
[ "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.5
196
0.758116
7a7bf54b805b6091a30f99313f519d6df9f91262
380
ex
Elixir
web/views/error_view.ex
evliang/photoshare
9ae1cdc4fc7b7ec8ef1361a292e2eb63c69e0327
[ "MIT" ]
null
null
null
web/views/error_view.ex
evliang/photoshare
9ae1cdc4fc7b7ec8ef1361a292e2eb63c69e0327
[ "MIT" ]
null
null
null
web/views/error_view.ex
evliang/photoshare
9ae1cdc4fc7b7ec8ef1361a292e2eb63c69e0327
[ "MIT" ]
null
null
null
defmodule Photoshare.ErrorView do use Photoshare.Web, :view def render("404.html", _assigns) do "Page not found" end def render("500.html", _assigns) do "Internal server error" end # In case no render clause matches or no # template is found, let's render it as 500 def template_not_found(_tem...
21.111111
47
0.702632
7a7c075062e8b50e350a0cdefd6ead83915b73b7
3,080
ex
Elixir
apps/ex_wire/lib/ex_wire/protocol.ex
InoMurko/ethereum
282ca2a23a897c5b9684ddf9abae2bf65691b039
[ "MIT" ]
22
2017-06-22T02:50:34.000Z
2022-01-26T20:43:21.000Z
apps/ex_wire/lib/ex_wire/protocol.ex
InoMurko/ethereum
282ca2a23a897c5b9684ddf9abae2bf65691b039
[ "MIT" ]
9
2018-10-08T22:56:56.000Z
2018-10-18T20:41:55.000Z
apps/ex_wire/lib/ex_wire/protocol.ex
InoMurko/ethereum
282ca2a23a897c5b9684ddf9abae2bf65691b039
[ "MIT" ]
5
2018-10-06T16:30:48.000Z
2022-01-26T20:43:26.000Z
defmodule ExWire.Protocol do @moduledoc """ Functions to handle encoding and decoding messages for over the wire transfer. """ alias ExWire.Crypto alias ExWire.Message alias ExthCrypto.Signature @doc """ Encodes a given message by appending it to a hash of its contents. ## Examples iex> ...
36.235294
135
0.623052
7a7c0aea1cea026ea317b37b88d55bccbce5556c
2,951
ex
Elixir
lib/virgo/cache/submission.ex
GinShio/AstraeaVirgo
92804cbae01f67e21b8f421009fa37fddc9054e1
[ "BSD-2-Clause" ]
null
null
null
lib/virgo/cache/submission.ex
GinShio/AstraeaVirgo
92804cbae01f67e21b8f421009fa37fddc9054e1
[ "BSD-2-Clause" ]
null
null
null
lib/virgo/cache/submission.ex
GinShio/AstraeaVirgo
92804cbae01f67e21b8f421009fa37fddc9054e1
[ "BSD-2-Clause" ]
null
null
null
defmodule AstraeaVirgo.Cache.Submission do @moduledoc """ Implement submission operation for cache ## Submission ID list A list of Submission IDs - key: `Astraea:User:ID:<user_id>:Submissions` - type: list ## Submission Info A key-value mapping the submission information - Key: `Astraea:Submis...
26.348214
134
0.572687
7a7c442141f85b7a15448df5a1ff090f230855b3
5,497
ex
Elixir
lib/elixir/lib/module/types/helpers.ex
lykes/elixir
182f16b76f037ff878d944766d02e5e1bc604527
[ "Apache-2.0" ]
null
null
null
lib/elixir/lib/module/types/helpers.ex
lykes/elixir
182f16b76f037ff878d944766d02e5e1bc604527
[ "Apache-2.0" ]
null
null
null
lib/elixir/lib/module/types/helpers.ex
lykes/elixir
182f16b76f037ff878d944766d02e5e1bc604527
[ "Apache-2.0" ]
null
null
null
defmodule Module.Types.Helpers do @moduledoc false alias Module.Types.Infer @doc """ Guard function to check if an AST node is a variable. """ defmacro is_var(expr) do quote do is_tuple(unquote(expr)) and tuple_size(unquote(expr)) == 3 and is_atom(elem(unquote(expr), 0)) and ...
30.038251
94
0.611242
7a7c4e0f4b2986b1ec76b236d95be893e51e6d08
1,888
exs
Elixir
clients/memcache/mix.exs
ukrbublik/elixir-google-api
364cec36bc76f60bec94cbcad34844367a29d174
[ "Apache-2.0" ]
null
null
null
clients/memcache/mix.exs
ukrbublik/elixir-google-api
364cec36bc76f60bec94cbcad34844367a29d174
[ "Apache-2.0" ]
null
null
null
clients/memcache/mix.exs
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...
28.179104
160
0.660487
7a7ccae7e88f07feba535c01a952b330fb35dae2
28,870
exs
Elixir
test/form_test.exs
ash-project/ash_phoenix
03d6d29cd0911cdc22b91b5a0877dedfbd4d398e
[ "MIT" ]
9
2021-01-06T17:09:45.000Z
2021-11-19T04:55:02.000Z
test/form_test.exs
ash-project/ash_phoenix
03d6d29cd0911cdc22b91b5a0877dedfbd4d398e
[ "MIT" ]
24
2021-03-31T06:58:07.000Z
2021-12-22T02:34:17.000Z
test/form_test.exs
ash-project/ash_phoenix
03d6d29cd0911cdc22b91b5a0877dedfbd4d398e
[ "MIT" ]
3
2021-03-31T06:34:00.000Z
2021-12-21T01:08:05.000Z
defmodule AshPhoenix.FormTest do use ExUnit.Case import Phoenix.HTML.Form, only: [form_for: 2, inputs_for: 2] alias AshPhoenix.Form alias AshPhoenix.Test.{Api, Comment, OtherApi, Post} alias Phoenix.HTML.FormData describe "form_for fields" do test "it should show simple field values" do form = ...
28.956871
111
0.472878
7a7ce5c3ffd581a36f71e6b9cde48eead84e008c
1,960
ex
Elixir
clients/compute/lib/google_api/compute/v1/model/forwarding_rules_scoped_list.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/forwarding_rules_scoped_list.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/forwarding_rules_scoped_list.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...
39.2
199
0.753571
7a7ce9f04cef43c84a21d82ec08f3abee9697c02
69
exs
Elixir
config/config.exs
KazW/money_bin_sql
32c3513e734b4b1f0a9688e9f60bdd50a54b4a4f
[ "MIT" ]
30
2019-12-17T20:09:41.000Z
2021-01-11T13:58:24.000Z
config/config.exs
KazW/money_bin_sql
32c3513e734b4b1f0a9688e9f60bdd50a54b4a4f
[ "MIT" ]
36
2019-12-17T20:32:04.000Z
2020-12-02T17:50:49.000Z
config/config.exs
KazW/money_bin_sql
32c3513e734b4b1f0a9688e9f60bdd50a54b4a4f
[ "MIT" ]
3
2020-02-21T18:13:59.000Z
2020-10-20T07:59:05.000Z
use Mix.Config if Mix.env() == :test, do: import_config("test.exs")
17.25
52
0.666667
7a7d042a7eab62b156ec78d236a2986f4f50ba87
73
exs
Elixir
test/russian_docs_test.exs
pustserg/russian_docs
ba724ef81b599ba02f60d1df6b05d6cdfecd4f0f
[ "MIT" ]
null
null
null
test/russian_docs_test.exs
pustserg/russian_docs
ba724ef81b599ba02f60d1df6b05d6cdfecd4f0f
[ "MIT" ]
null
null
null
test/russian_docs_test.exs
pustserg/russian_docs
ba724ef81b599ba02f60d1df6b05d6cdfecd4f0f
[ "MIT" ]
null
null
null
defmodule RussianDocsTest do use ExUnit.Case doctest RussianDocs end
14.6
28
0.821918
7a7d0de3750c3fa1483898657645ae37b9cefe26
1,531
ex
Elixir
clients/health_care/lib/google_api/health_care/v1beta1/model/create_message_request.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/health_care/lib/google_api/health_care/v1beta1/model/create_message_request.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/health_care/lib/google_api/health_care/v1beta1/model/create_message_request.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
1
2020-10-04T10:12:44.000Z
2020-10-04T10:12:44.000Z
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
32.574468
107
0.751143
7a7d2a4eaaa006ac3155c22f95a33cce1ef95768
675
ex
Elixir
lib/wechat_pay.ex
leozhang37/wechat_pay
3991ceabc23e8e86c1bee45c9c33f3b028f3fb13
[ "MIT" ]
55
2016-10-19T09:01:39.000Z
2019-03-23T12:40:21.000Z
lib/wechat_pay.ex
leozhang37/wechat_pay
3991ceabc23e8e86c1bee45c9c33f3b028f3fb13
[ "MIT" ]
20
2020-07-06T01:59:19.000Z
2022-03-01T01:07:13.000Z
lib/wechat_pay.ex
leozhang37/wechat_pay
3991ceabc23e8e86c1bee45c9c33f3b028f3fb13
[ "MIT" ]
9
2017-01-05T04:17:21.000Z
2019-02-18T03:52:05.000Z
defmodule WechatPay do @moduledoc """ WechatPay provide toolkit for Wechat Payment Platform. ## Core Currently, WechatPay has the following Pay modules: * `WechatPay.App` * `WechatPay.JSAPI` * `WechatPay.Native` ## Plug The following [Plugs](https://github.com/elixir-plug/plug) are also provided ...
21.774194
82
0.703704
7a7d34d0286c1a047c2dc75f17380d6cea571ae5
1,741
exs
Elixir
test/yacto/migration/structure_test.exs
aman-io/yacto
4c26772343a9029923ad7e25245f17f2be22a1a1
[ "Apache-2.0" ]
56
2017-11-30T02:07:07.000Z
2022-02-16T17:38:42.000Z
test/yacto/migration/structure_test.exs
aman-io/yacto
4c26772343a9029923ad7e25245f17f2be22a1a1
[ "Apache-2.0" ]
22
2018-01-04T00:34:51.000Z
2021-08-01T06:52:10.000Z
test/yacto/migration/structure_test.exs
aman-io/yacto
4c26772343a9029923ad7e25245f17f2be22a1a1
[ "Apache-2.0" ]
13
2018-08-08T05:32:42.000Z
2021-07-30T14:57:35.000Z
defmodule Yacto.Migration.StructureTest do use PowerAssert defmodule Schema do use Yacto.Schema, dbname: :default schema @auto_source do end end test "inspect した時にデフォルト値の要素は出力されない" do structure = Yacto.Migration.Structure.from_schema(Schema) assert "%Yacto.Migration.Structure{source: \"y...
32.849057
92
0.584147
7a7d3b658b6b26e1a960dfb3564455159961d838
2,450
ex
Elixir
lib/day5.ex
andfoy/adventofcode2020
6bc57676f33d76592d30b730bfd2f372a29280de
[ "MIT" ]
null
null
null
lib/day5.ex
andfoy/adventofcode2020
6bc57676f33d76592d30b730bfd2f372a29280de
[ "MIT" ]
null
null
null
lib/day5.ex
andfoy/adventofcode2020
6bc57676f33d76592d30b730bfd2f372a29280de
[ "MIT" ]
null
null
null
defmodule AdventOfCode.Day5 do @encoding_regex ~r/^([FB]{7})([LR]{3})$/ @ranges %{ :rows => %{ "F" => :lower, "B" => :upper }, :columns => %{ "L" => :lower, "R" => :upper } } @spec compute_range([binary], :columns | :rows) :: integer def compute_range(input, :rows) do ...
23.333333
92
0.552245
7a7d829d36cd511ed14b33d3fcacf4508fca52df
700
ex
Elixir
examples/ex2/task/events.ex
Fire-Dragon-DoL/esp_ex
0cd95de570ed7963744b298ad403fe4e1947dd2b
[ "MIT" ]
null
null
null
examples/ex2/task/events.ex
Fire-Dragon-DoL/esp_ex
0cd95de570ed7963744b298ad403fe4e1947dd2b
[ "MIT" ]
1
2018-05-11T04:27:54.000Z
2018-05-11T04:27:54.000Z
examples/ex2/task/events.ex
Fire-Dragon-DoL/esp_ex
0cd95de570ed7963744b298ad403fe4e1947dd2b
[ "MIT" ]
1
2018-10-30T06:08:02.000Z
2018-10-30T06:08:02.000Z
defmodule Ex2.Task.Events do defmodule Created do defstruct [:id, :position, :metadata, :campaign_id, :name] end defmodule Started do defstruct [:id, :position, :metadata, :campaign_id, :start_time] end def transform("Created", event) do %Created{ id: event.id, position: event.positi...
20.588235
68
0.647143
7a7d9527e2bb12153c023732bfbd5f6906c62db1
138
ex
Elixir
backend/web/controllers/page_controller.ex
jchamet/PEEP-clean
a87245a77776e2b03b6893539ed2431f95426ab0
[ "MIT" ]
null
null
null
backend/web/controllers/page_controller.ex
jchamet/PEEP-clean
a87245a77776e2b03b6893539ed2431f95426ab0
[ "MIT" ]
null
null
null
backend/web/controllers/page_controller.ex
jchamet/PEEP-clean
a87245a77776e2b03b6893539ed2431f95426ab0
[ "MIT" ]
null
null
null
defmodule Backend.PageController do use Backend.Web, :controller def index(conn, _params) do render conn, "index.html" end end
17.25
35
0.731884
7a7d9fa5ecf199a40c6bee6aabdabb7911c215bd
99
exs
Elixir
.formatter.exs
tcitworld/adapter_mmdb2
965fd00ce2ba3d11d1749047f97fa2ccaeaaf533
[ "Apache-2.0" ]
3
2018-03-03T18:59:55.000Z
2020-12-31T19:36:59.000Z
.formatter.exs
tcitworld/adapter_mmdb2
965fd00ce2ba3d11d1749047f97fa2ccaeaaf533
[ "Apache-2.0" ]
3
2019-07-17T12:55:41.000Z
2020-08-31T18:55:15.000Z
.formatter.exs
tcitworld/adapter_mmdb2
965fd00ce2ba3d11d1749047f97fa2ccaeaaf533
[ "Apache-2.0" ]
4
2019-07-15T10:07:16.000Z
2021-09-22T15:46:04.000Z
[ inputs: [ "{bench,lib,test,verify}/**/*.{ex,exs}", "{.credo,.formatter,mix}.exs" ] ]
14.142857
44
0.494949
7a7dc973c8ebbe046df9fa05666f80547cd1280b
596
exs
Elixir
test/assertions_test.exs
miros/exc_error
c4f7da518025f7fbe74f5a6a896e845aaf11f4cd
[ "Apache-2.0" ]
8
2020-03-25T10:05:40.000Z
2021-11-20T10:56:17.000Z
test/assertions_test.exs
miros/exc_error
c4f7da518025f7fbe74f5a6a896e845aaf11f4cd
[ "Apache-2.0" ]
2
2019-08-23T11:21:47.000Z
2020-12-22T10:46:59.000Z
test/assertions_test.exs
miros/exc_error
c4f7da518025f7fbe74f5a6a896e845aaf11f4cd
[ "Apache-2.0" ]
null
null
null
defmodule ExcError.AssertionsTest do use ExUnit.Case require ExcError import ExcError.Assertions ExcError.define(SomeError) test "it validates proper ExcError structs" do assert_exc_error({:error, %SomeError{}} = {:error, %SomeError{}}) end ExcError.define ErrorWithWrongMessage do @impl true ...
24.833333
95
0.718121
7a7dd5bbf72eb64008831e21bcdc1b7e5902d78a
9,649
ex
Elixir
lib/hexpm/web/views/view_helpers.ex
lau/hexpm
beee80f5358a356530debfea35ee65c3a0aa9b25
[ "Apache-2.0" ]
null
null
null
lib/hexpm/web/views/view_helpers.ex
lau/hexpm
beee80f5358a356530debfea35ee65c3a0aa9b25
[ "Apache-2.0" ]
null
null
null
lib/hexpm/web/views/view_helpers.ex
lau/hexpm
beee80f5358a356530debfea35ee65c3a0aa9b25
[ "Apache-2.0" ]
null
null
null
defmodule Hexpm.Web.ViewHelpers do use Phoenix.HTML alias Hexpm.Repository.{Package, Release} alias Hexpm.Web.Endpoint alias Hexpm.Web.Router.Helpers, as: Routes def logged_in?(assigns) do !!assigns[:current_user] end def package_name(package) do package_name(package.organization.name, package.n...
28.889222
95
0.663592
7a7ded3451489910f02a712f42cbd6bdf07feaa5
1,624
exs
Elixir
test/phoenix/router/console_formatter_test.exs
fishcakez/phoenix
97fbd73a475ae918ef29a87ad580ab2ab6d967d2
[ "MIT" ]
null
null
null
test/phoenix/router/console_formatter_test.exs
fishcakez/phoenix
97fbd73a475ae918ef29a87ad580ab2ab6d967d2
[ "MIT" ]
null
null
null
test/phoenix/router/console_formatter_test.exs
fishcakez/phoenix
97fbd73a475ae918ef29a87ad580ab2ab6d967d2
[ "MIT" ]
null
null
null
defmodule Phoenix.Router.ConsoleFormatterTest do use ExUnit.Case alias Phoenix.Router.ConsoleFormatter defmodule RouterTestSingleRoutes do use Phoenix.Router get "/", Phoenix.PageController, :index, as: :page post "/images", Phoenix.ImageController, :upload, as: :upload_image delete "/images", P...
36.909091
79
0.677956
7a7e0c8b5e2d4408b5b98b8b3b056f42985e0537
6,016
ex
Elixir
lib/mix/tasks/setup.ex
CMcDonald82/phoenix-starter
757e91326f7c82813dfb22a6eaa24147689b6dc8
[ "MIT" ]
1
2018-05-29T11:50:17.000Z
2018-05-29T11:50:17.000Z
lib/mix/tasks/setup.ex
CMcDonald82/phoenix-starter
757e91326f7c82813dfb22a6eaa24147689b6dc8
[ "MIT" ]
null
null
null
lib/mix/tasks/setup.ex
CMcDonald82/phoenix-starter
757e91326f7c82813dfb22a6eaa24147689b6dc8
[ "MIT" ]
null
null
null
defmodule Mix.Tasks.Setup do use Mix.Task @shortdoc "Sets up a new clean-slate project using the phoenix-starter project as a base template" @doc """ The main function that runs all the necessary functions to setup the new app from the phoenix-starter project """ def run([name, otp_name]) do with :ok...
30.231156
118
0.658743
7a7e28e6595fc5145fc06dc7529095896caa8a48
1,512
ex
Elixir
utils/lib/kino/slide.ex
adam-phillips/beta_curriculum
814f60c6e5ef837ae8adcb337966f7d8029f8c13
[ "MIT" ]
15
2022-02-26T08:00:13.000Z
2022-03-28T05:06:19.000Z
utils/lib/kino/slide.ex
adam-phillips/beta_curriculum
814f60c6e5ef837ae8adcb337966f7d8029f8c13
[ "MIT" ]
19
2022-03-06T19:07:41.000Z
2022-03-31T02:08:20.000Z
utils/lib/kino/slide.ex
adam-phillips/beta_curriculum
814f60c6e5ef837ae8adcb337966f7d8029f8c13
[ "MIT" ]
11
2022-03-02T13:00:18.000Z
2022-03-22T22:19:57.000Z
defmodule Kino.Slide do @moduledoc """ A custom slideshow component for Livebook. """ use Kino.JS use Kino.JS.Live @doc """ Create a new slide widget. ## Examples iex> %Kino.JS.Live{} = Kino.Slide.new([1, 2, 3]) """ @spec new(list()) :: Kino.JS.Live.t() def new(slides) do frame = Kino.Fr...
22.909091
94
0.605159
7a7e4997f4c042c9933891cc26622087aaac750b
63
ex
Elixir
web/views/admin/zone_view.ex
harry-gao/ex-cart
573e7f977bb3b710d11618dd215d4ddd8f819fb3
[ "Apache-2.0" ]
356
2016-03-16T12:37:28.000Z
2021-12-18T03:22:39.000Z
web/views/admin/zone_view.ex
harry-gao/ex-cart
573e7f977bb3b710d11618dd215d4ddd8f819fb3
[ "Apache-2.0" ]
30
2016-03-16T09:19:10.000Z
2021-01-12T08:10:52.000Z
web/views/admin/zone_view.ex
harry-gao/ex-cart
573e7f977bb3b710d11618dd215d4ddd8f819fb3
[ "Apache-2.0" ]
72
2016-03-16T13:32:14.000Z
2021-03-23T11:27:43.000Z
defmodule Nectar.Admin.ZoneView do use Nectar.Web, :view end
15.75
34
0.777778
7a7e50e904e604bd92afafd82f51c3ead0d0865b
1,050
ex
Elixir
kousa/lib/onion/stats_cache.ex
LeonardSSH/dogehouse
584055ad407bc37fa35cdf36ebb271622e29d436
[ "MIT" ]
9
2021-03-17T03:56:18.000Z
2021-09-24T22:45:14.000Z
kousa/lib/onion/stats_cache.ex
ActuallyTomas/dogehouse
8c3d2cd1d7e99e173f0658759467a391c4a90c4e
[ "MIT" ]
12
2021-07-06T12:51:13.000Z
2022-03-16T12:38:18.000Z
kousa/lib/onion/stats_cache.ex
ActuallyTomas/dogehouse
8c3d2cd1d7e99e173f0658759467a391c4a90c4e
[ "MIT" ]
4
2021-07-15T20:33:50.000Z
2022-03-27T12:46:47.000Z
defmodule Onion.StatsCache do use GenServer def start_link(_), do: GenServer.start_link(__MODULE__, nil, name: __MODULE__) @spec init(any) :: :ignore | {:ok, nil, :hibernate} def init(_) do :ets.new(__MODULE__, [:set, :public, :named_table]) {:ok, nil, :hibernate} catch _, :badarg -> :igno...
21.875
80
0.64381
7a7e55016c40446230ea0a119572ee77bb3fe980
704
ex
Elixir
lib/grizzly/zwave/commands/powerlevel_test_node_get.ex
smartrent/grizzly
65a397ea7bfedb5518fe63a3f058a0b6af473e39
[ "Apache-2.0" ]
76
2019-09-04T16:56:58.000Z
2022-03-29T06:54:36.000Z
lib/grizzly/zwave/commands/powerlevel_test_node_get.ex
smartrent/grizzly
65a397ea7bfedb5518fe63a3f058a0b6af473e39
[ "Apache-2.0" ]
124
2019-09-05T14:01:24.000Z
2022-02-28T22:58:14.000Z
lib/grizzly/zwave/commands/powerlevel_test_node_get.ex
smartrent/grizzly
65a397ea7bfedb5518fe63a3f058a0b6af473e39
[ "Apache-2.0" ]
10
2019-10-23T19:25:45.000Z
2021-11-17T13:21:20.000Z
defmodule Grizzly.ZWave.Commands.PowerlevelTestNodeGet do @moduledoc """ This command is used to request the result of the latest Powerlevel Test. Params: -none- """ @behaviour Grizzly.ZWave.Command alias Grizzly.ZWave.Command alias Grizzly.ZWave.CommandClasses.Powerlevel @impl true def new(param...
18.526316
75
0.673295
7a7e76947fc8c9eb0fb44f961305c4e39f1ebf20
2,108
ex
Elixir
clients/classroom/lib/google_api/classroom/v1/model/modify_course_work_assignees_request.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/classroom/lib/google_api/classroom/v1/model/modify_course_work_assignees_request.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/classroom/lib/google_api/classroom/v1/model/modify_course_work_assignees_request.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.642857
201
0.756167
7a7e81f6c7096ce6b5ce5372e972bc2144e7947c
1,168
ex
Elixir
lib/discuss_web/router.ex
shahnCM/discuss
a880950e090ecf9309d495e81c31d589d3655881
[ "MIT" ]
null
null
null
lib/discuss_web/router.ex
shahnCM/discuss
a880950e090ecf9309d495e81c31d589d3655881
[ "MIT" ]
null
null
null
lib/discuss_web/router.ex
shahnCM/discuss
a880950e090ecf9309d495e81c31d589d3655881
[ "MIT" ]
null
null
null
defmodule DiscussWeb.Router do use DiscussWeb, :router pipeline :browser do plug :accepts, ["html"] plug :fetch_session plug :fetch_flash plug :protect_from_forgery plug :put_secure_browser_headers end pipeline :api do plug :accepts, ["json"] end scope "/", DiscussWeb do pipe_...
25.391304
70
0.695205
7a7e9bf3dcbe918df146fa334ae802d6bc9e99e5
205
exs
Elixir
test/controllers/page_controller_test.exs
bessey/phoenix-absinthe-graphiql
1e7cec10ac0b7de6b513ef47cea9ee71d84323b9
[ "MIT" ]
1
2017-02-06T23:13:04.000Z
2017-02-06T23:13:04.000Z
test/controllers/page_controller_test.exs
bessey/phoenix-absinthe-graphiql
1e7cec10ac0b7de6b513ef47cea9ee71d84323b9
[ "MIT" ]
null
null
null
test/controllers/page_controller_test.exs
bessey/phoenix-absinthe-graphiql
1e7cec10ac0b7de6b513ef47cea9ee71d84323b9
[ "MIT" ]
null
null
null
defmodule AbsintheReact.PageControllerTest do use AbsintheReact.ConnCase test "GET /", %{conn: conn} do conn = get conn, "/" assert html_response(conn, 200) =~ "Welcome to Phoenix!" end end
22.777778
60
0.692683
7a7eb8f006c3ca00e21d10f002f223ceb18c9560
158
exs
Elixir
test/test_helper.exs
skatsuta/phoenix-json-api
1da16fc10cf1ce7bb5e47034755f5990bd7acb92
[ "MIT" ]
null
null
null
test/test_helper.exs
skatsuta/phoenix-json-api
1da16fc10cf1ce7bb5e47034755f5990bd7acb92
[ "MIT" ]
null
null
null
test/test_helper.exs
skatsuta/phoenix-json-api
1da16fc10cf1ce7bb5e47034755f5990bd7acb92
[ "MIT" ]
null
null
null
ExUnit.start Mix.Task.run "ecto.create", ["--quiet"] Mix.Task.run "ecto.migrate", ["--quiet"] Ecto.Adapters.SQL.begin_test_transaction(PhoenixJsonApi.Repo)
22.571429
61
0.740506
7a7eea4a07f32d33aadf038d52fb88c379ccaf35
76
exs
Elixir
test/jump_web/views/layout_view_test.exs
SXKDZ/MultiJump
97db71c3b207d8113987757a30f2f318c4a2fb58
[ "MIT" ]
null
null
null
test/jump_web/views/layout_view_test.exs
SXKDZ/MultiJump
97db71c3b207d8113987757a30f2f318c4a2fb58
[ "MIT" ]
null
null
null
test/jump_web/views/layout_view_test.exs
SXKDZ/MultiJump
97db71c3b207d8113987757a30f2f318c4a2fb58
[ "MIT" ]
null
null
null
defmodule JumpWeb.LayoutViewTest do use JumpWeb.ConnCase, async: true end
19
35
0.815789
7a7efaf50b7d0f6b75d4ee77da4518557e7513b1
2,883
ex
Elixir
clients/pub_sub/lib/google_api/pub_sub/v1/model/pubsub_message.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/pub_sub/lib/google_api/pub_sub/v1/model/pubsub_message.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/pub_sub/lib/google_api/pub_sub/v1/model/pubsub_message.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...
41.185714
136
0.71488
7a7f025bec44911c55c9a34bbd60a757e8fe1de5
865
ex
Elixir
lib/chat_api_web/views/lambda_view.ex
ZmagoD/papercups
dff9a5822b809edc4fd8ecf198566f9b14ab613f
[ "MIT" ]
4,942
2020-07-20T22:35:28.000Z
2022-03-31T15:38:51.000Z
lib/chat_api_web/views/lambda_view.ex
ZmagoD/papercups
dff9a5822b809edc4fd8ecf198566f9b14ab613f
[ "MIT" ]
552
2020-07-22T01:39:04.000Z
2022-02-01T00:26:35.000Z
lib/chat_api_web/views/lambda_view.ex
ZmagoD/papercups
dff9a5822b809edc4fd8ecf198566f9b14ab613f
[ "MIT" ]
396
2020-07-22T19:27:48.000Z
2022-03-31T05:25:24.000Z
defmodule ChatApiWeb.LambdaView do use ChatApiWeb, :view alias ChatApiWeb.LambdaView def render("index.json", %{lambdas: lambdas}) do %{data: render_many(lambdas, LambdaView, "lambda.json")} end def render("show.json", %{lambda: lambda}) do %{data: render_one(lambda, LambdaView, "lambda.json")} en...
27.03125
60
0.67052
7a7f1eeb95d68e9906364fe08c8673d050b0f3c5
21,046
ex
Elixir
lib/encode.ex
isaac-rstor/jason
d4353ad6161314991d4c11d4423d94e08ace474d
[ "Apache-2.0" ]
null
null
null
lib/encode.ex
isaac-rstor/jason
d4353ad6161314991d4c11d4423d94e08ace474d
[ "Apache-2.0" ]
null
null
null
lib/encode.ex
isaac-rstor/jason
d4353ad6161314991d4c11d4423d94e08ace474d
[ "Apache-2.0" ]
null
null
null
defmodule Jason.EncodeError do defexception [:message] @type t :: %__MODULE__{message: String.t} def new({:duplicate_key, key}) do %__MODULE__{message: "duplicate key: #{key}"} end def new({:invalid_byte, byte, original}) do %__MODULE__{message: "invalid byte #{inspect byte, base: :hex} in #{inspect...
32.478395
98
0.636796
7a7f3d0f1763f921e993af568629365ce84387b8
1,857
ex
Elixir
clients/sheets/lib/google_api/sheets/v4/model/big_query_table_spec.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/sheets/lib/google_api/sheets/v4/model/big_query_table_spec.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/sheets/lib/google_api/sheets/v4/model/big_query_table_spec.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...
35.037736
159
0.714055
7a7fbdb7a09ea7abc6c7f27de4263add94f4061c
6,686
ex
Elixir
clients/compute/lib/google_api/compute/v1/model/policy.ex
renovate-bot/elixir-google-api
1da34cd39b670c99f067011e05ab90af93fef1f6
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/compute/lib/google_api/compute/v1/model/policy.ex
swansoffiee/elixir-google-api
9ea6d39f273fb430634788c258b3189d3613dde0
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/compute/lib/google_api/compute/v1/model/policy.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...
113.322034
2,012
0.746036
7a7fcb641e1b7a3e0552f8cb08cd577ec21cdecf
3,313
ex
Elixir
lib/absinthe/phase/document/result.ex
TheRealReal/absinthe
6eae5bc36283e58f42d032b8afd90de3ad64f97b
[ "MIT" ]
1
2019-10-10T02:57:52.000Z
2019-10-10T02:57:52.000Z
lib/absinthe/phase/document/result.ex
TheRealReal/absinthe
6eae5bc36283e58f42d032b8afd90de3ad64f97b
[ "MIT" ]
1
2019-09-23T21:26:01.000Z
2019-09-23T21:26:01.000Z
lib/absinthe/phase/document/result.ex
TheRealReal/absinthe
6eae5bc36283e58f42d032b8afd90de3ad64f97b
[ "MIT" ]
null
null
null
defmodule Absinthe.Phase.Document.Result do @moduledoc false # Produces data fit for external encoding from annotated value tree alias Absinthe.{Blueprint, Phase, Type} use Absinthe.Phase @spec run(Blueprint.t() | Phase.Error.t(), Keyword.t()) :: {:ok, map} def run(%Blueprint{} = bp, _options \\ []) do ...
27.155738
89
0.632056
7a800cdc397b4589aa2f5bcaadac247e2fad5acd
6,991
ex
Elixir
lib/tesla_api/stream.ex
kuma/teslamate
ea175fddb49cc08070182455e0073c3dcfcb3b4c
[ "MIT" ]
1
2021-11-03T02:08:43.000Z
2021-11-03T02:08:43.000Z
lib/tesla_api/stream.ex
kuma/teslamate
ea175fddb49cc08070182455e0073c3dcfcb3b4c
[ "MIT" ]
170
2020-07-27T05:57:31.000Z
2022-03-01T04:05:16.000Z
lib/tesla_api/stream.ex
kuma/teslamate
ea175fddb49cc08070182455e0073c3dcfcb3b4c
[ "MIT" ]
null
null
null
defmodule TeslaApi.Stream do use WebSockex require Logger alias TeslaApi.Auth alias __MODULE__.Data defmodule State do defstruct auth: nil, vehicle_id: nil, timer: nil, receiver: &IO.inspect/1, last_data: nil, timeouts: 0, ...
28.769547
102
0.575597
7a8023cdd10718538da6f91a2fca6c01ee67d77f
469
exs
Elixir
cards/mix.exs
enelesmai/elixir-bootcamp
0cc3ee791063eba48ed9eedb64a9b2d46a0e7cf9
[ "MIT" ]
null
null
null
cards/mix.exs
enelesmai/elixir-bootcamp
0cc3ee791063eba48ed9eedb64a9b2d46a0e7cf9
[ "MIT" ]
null
null
null
cards/mix.exs
enelesmai/elixir-bootcamp
0cc3ee791063eba48ed9eedb64a9b2d46a0e7cf9
[ "MIT" ]
null
null
null
defmodule Cards.MixProject do use Mix.Project def project do [ app: :cards, version: "0.1.0", elixir: "~> 1.7", start_permanent: Mix.env() == :prod, deps: deps() ] end # Run "mix help compile.app" to learn about applications. def application do [ extra_applica...
16.75
59
0.560768