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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9e701081c52f0536127d0ba6beae3d5092c668c2 | 582 | exs | Elixir | mix.exs | aforward-oss/dynamo_demo | 816d7fab1cd46a7800b6bf5ed2225f22af62b599 | [
"MIT"
] | null | null | null | mix.exs | aforward-oss/dynamo_demo | 816d7fab1cd46a7800b6bf5ed2225f22af62b599 | [
"MIT"
] | null | null | null | mix.exs | aforward-oss/dynamo_demo | 816d7fab1cd46a7800b6bf5ed2225f22af62b599 | [
"MIT"
] | null | null | null | defmodule DynamoDemo.Mixfile do
use Mix.Project
def project do
[ app: :dynamo_demo,
version: "0.0.1",
compilers: [:elixir, :dynamo, :app],
deps: deps ]
end
# Configuration for the OTP application
def application do
[]
end
defp deps do
[ { :mimetypes, git: "https://github.c... | 25.304348 | 79 | 0.611684 |
9e701f75a255bce5d172cdb076af259b1785e875 | 2,257 | ex | Elixir | lib/erlef_web.ex | kianmeng/website | 1948f46eeeb1c1b598408bfb049bbe24189ace2e | [
"Apache-2.0"
] | 1 | 2019-10-31T19:59:41.000Z | 2019-10-31T19:59:41.000Z | lib/erlef_web.ex | kianmeng/website | 1948f46eeeb1c1b598408bfb049bbe24189ace2e | [
"Apache-2.0"
] | null | null | null | lib/erlef_web.ex | kianmeng/website | 1948f46eeeb1c1b598408bfb049bbe24189ace2e | [
"Apache-2.0"
] | null | null | null | defmodule ErlefWeb do
@moduledoc """
The entrypoint for defining your web interface, such
as controllers, views, channels and so on.
This can be used in your application as:
use ErlefWeb, :controller
use ErlefWeb, :view
The definitions below will be executed for every view,
controller, etc, s... | 22.57 | 83 | 0.680106 |
9e702677d1d83e395988000641f7a0a4f04b0995 | 1,593 | ex | Elixir | clients/big_query/lib/google_api/big_query/v2/model/job_cancel_response.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/big_query/lib/google_api/big_query/v2/model/job_cancel_response.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/big_query/lib/google_api/big_query/v2/model/job_cancel_response.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... | 31.86 | 111 | 0.722536 |
9e702e5e88360e3e8359f8f32b8a09bf8e8f2db2 | 547 | ex | Elixir | apps/firestorm_web/lib/firestorm_web/web/channels/users_channel.ex | CircleCI-Public/firestorm | 9ca2c46a2b2377370347ad94d6003eeb77be38d6 | [
"MIT"
] | 10 | 2017-06-28T08:06:52.000Z | 2022-03-19T17:49:21.000Z | apps/firestorm_web/lib/firestorm_web/web/channels/users_channel.ex | CircleCI-Public/firestorm | 9ca2c46a2b2377370347ad94d6003eeb77be38d6 | [
"MIT"
] | null | null | null | apps/firestorm_web/lib/firestorm_web/web/channels/users_channel.ex | CircleCI-Public/firestorm | 9ca2c46a2b2377370347ad94d6003eeb77be38d6 | [
"MIT"
] | 2 | 2017-10-21T12:01:02.000Z | 2021-01-29T10:26:22.000Z | defmodule FirestormWeb.Web.UsersChannel do
use FirestormWeb.Web, :channel
alias FirestormWeb.Web.Api.V1.{
FetchView
}
import Ecto.Query
intercept ["update"]
def join("users:" <> id, payload, socket) do
if authorized?(payload) do
{:ok, socket}
else
{:error, %{reason: "unauthorized"}... | 20.259259 | 62 | 0.66362 |
9e707345bb4fa09a9cae68eec7601687ce2daa3a | 258 | ex | Elixir | testData/org/elixir_lang/parser_definition/matched_qualified_multiple_aliases_parsing_test_case/MatchedUnqualifiedCallOperation.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 1,668 | 2015-01-03T05:54:27.000Z | 2022-03-25T08:01:20.000Z | testData/org/elixir_lang/parser_definition/matched_qualified_multiple_aliases_parsing_test_case/MatchedUnqualifiedCallOperation.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 2,018 | 2015-01-01T22:43:39.000Z | 2022-03-31T20:13:08.000Z | testData/org/elixir_lang/parser_definition/matched_qualified_multiple_aliases_parsing_test_case/MatchedUnqualifiedCallOperation.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 145 | 2015-01-15T11:37:16.000Z | 2021-12-22T05:51:02.000Z | relative_identifier(
One.{}
)(
Two.{Three}
).{Four, Five}
relative_identifier key: One.{}
relative_identifier unqualified One.{Two},
key: Three.{Four, Five}
relative_identifier One.{},
key: Two.{Three}
| 23.454545 | 55 | 0.573643 |
9e707e60d30997e0b5da6ab42699ed4e4326869e | 756 | ex | Elixir | plugins/ucc_ui_flex_tab/lib/ucc_ui_flex_tab_web/views/tab_bar_view.ex | josephkabraham/ucx_ucc | 0dbd9e3eb5940336b4870cff033482ceba5f6ee7 | [
"MIT"
] | null | null | null | plugins/ucc_ui_flex_tab/lib/ucc_ui_flex_tab_web/views/tab_bar_view.ex | josephkabraham/ucx_ucc | 0dbd9e3eb5940336b4870cff033482ceba5f6ee7 | [
"MIT"
] | null | null | null | plugins/ucc_ui_flex_tab/lib/ucc_ui_flex_tab_web/views/tab_bar_view.ex | josephkabraham/ucx_ucc | 0dbd9e3eb5940336b4870cff033482ceba5f6ee7 | [
"MIT"
] | null | null | null | defmodule UccUiFlexTabWeb.TabBarView do
@moduledoc """
View helpers for the TabBar templates.
"""
use UccUiFlexTabWeb, :view
alias UcxUcc.TabBar
@doc """
Test if a group is visible for a given tag.
## Examples
iex> tab = %{groups: [:one, :two]}
iex> UccUiFlexTabWeb.TabBarView.visible? ta... | 21 | 63 | 0.642857 |
9e70969e9a59c9a6f3623632a67ce0750752e239 | 1,411 | exs | Elixir | 11_fuctions_or_not.exs | Meyhem/hackerrank-fp-elixir | b1b3343d5f05152d37ba92f11955003602e4699b | [
"MIT"
] | null | null | null | 11_fuctions_or_not.exs | Meyhem/hackerrank-fp-elixir | b1b3343d5f05152d37ba92f11955003602e4699b | [
"MIT"
] | null | null | null | 11_fuctions_or_not.exs | Meyhem/hackerrank-fp-elixir | b1b3343d5f05152d37ba92f11955003602e4699b | [
"MIT"
] | null | null | null | # echo -e "2\n3\n1 2\n2 3\n3 4\n2\n1 2\n1 3\n" | elixir 11_fuctions_or_not.exs
defmodule Solution do
def read_float() do
case IO.gets "" do
line when is_binary(line) -> { :ok, String.to_float String.trim line }
:eof -> { :error }
{ :error, _} -> { :error }
end
end
def read_int() do
... | 22.046875 | 81 | 0.557052 |
9e70af67c663aa7a967e02bf76b5db4c0b3fd459 | 69 | ex | Elixir | lib/zero_phoenix_web/views/page_view.ex | idkjs/zero-to-graphql-using-phoenix | 5e7f99af40030d57a603d9457e4906324fdfa4ea | [
"MIT"
] | 9 | 2019-03-26T22:16:08.000Z | 2021-09-27T12:42:34.000Z | lib/zero_phoenix_web/views/page_view.ex | idkjs/zero-to-graphql-using-phoenix | 5e7f99af40030d57a603d9457e4906324fdfa4ea | [
"MIT"
] | 3 | 2020-06-08T23:03:49.000Z | 2020-06-09T03:11:12.000Z | lib/zero_phoenix_web/views/page_view.ex | idkjs/zero-to-graphql-using-phoenix | 5e7f99af40030d57a603d9457e4906324fdfa4ea | [
"MIT"
] | 7 | 2019-01-15T17:00:07.000Z | 2021-07-18T23:30:29.000Z | defmodule ZeroPhoenixWeb.PageView do
use ZeroPhoenixWeb, :view
end
| 17.25 | 36 | 0.826087 |
9e70b86c5aa2cde430e7d6c43559e260ff0add80 | 940 | exs | Elixir | test/githubist/argument_parser_test.exs | alpcanaydin/githubist-api | 6481f8177c5b8573da2d5df52ffaff41340b25d0 | [
"MIT"
] | 33 | 2018-10-13T16:40:36.000Z | 2021-05-23T14:13:34.000Z | test/githubist/argument_parser_test.exs | 5l1v3r1/githubist-api | 6481f8177c5b8573da2d5df52ffaff41340b25d0 | [
"MIT"
] | 1 | 2018-12-23T19:59:05.000Z | 2018-12-24T18:08:00.000Z | test/githubist/argument_parser_test.exs | 5l1v3r1/githubist-api | 6481f8177c5b8573da2d5df52ffaff41340b25d0 | [
"MIT"
] | 3 | 2018-10-13T22:18:38.000Z | 2020-03-29T23:41:23.000Z | defmodule Githubist.GraphQLArgumentParserTests do
@moduledoc false
use Githubist.DataCase
alias Githubist.GraphQLArgumentParser
describe "parse_limit/2" do
test "updates limit if it bigger then max" do
params = %{limit: 200}
assert %{limit: 100} = GraphQLArgumentParser.parse_limit(params, ma... | 26.111111 | 86 | 0.68617 |
9e70c01835c84a9772021c25e76564ccc1a9449a | 4,516 | ex | Elixir | lib/level/connections.ex | renesugar/level | 57ffcaddeb30f176706b3b97221886e624466d7d | [
"Apache-2.0"
] | null | null | null | lib/level/connections.ex | renesugar/level | 57ffcaddeb30f176706b3b97221886e624466d7d | [
"Apache-2.0"
] | null | null | null | lib/level/connections.ex | renesugar/level | 57ffcaddeb30f176706b3b97221886e624466d7d | [
"Apache-2.0"
] | null | null | null | defmodule Level.Connections do
@moduledoc """
Functions for loading connections between resources, designed to be used in
GraphQL query resolution.
"""
alias Level.Connections.GroupMemberships
alias Level.Connections.GroupPosts
alias Level.Connections.Groups
alias Level.Connections.SpaceUsers
alias L... | 29.907285 | 96 | 0.641718 |
9e70cd114890fdfa100dabd15db2e53c9ca67393 | 1,732 | ex | Elixir | lib/ash/filter/expression.ex | elbow-jason/ash | eb63bc9d4d24187ad07d9892088b4e55ad6258e4 | [
"MIT"
] | 1 | 2021-12-27T09:43:29.000Z | 2021-12-27T09:43:29.000Z | lib/ash/filter/expression.ex | elbow-jason/ash | eb63bc9d4d24187ad07d9892088b4e55ad6258e4 | [
"MIT"
] | null | null | null | lib/ash/filter/expression.ex | elbow-jason/ash | eb63bc9d4d24187ad07d9892088b4e55ad6258e4 | [
"MIT"
] | null | null | null | defmodule Ash.Filter.Expression do
@moduledoc "Represents a boolean expression"
defstruct [:op, :left, :right]
def new(_, nil, nil), do: nil
def new(:and, false, _), do: false
def new(:and, _, false), do: false
def new(:or, true, _), do: true
def new(:or, _, true), do: true
def new(_, nil, right), do:... | 29.862069 | 99 | 0.658776 |
9e70f1d34885db12dac36f1244b8c82f84b814ab | 224 | exs | Elixir | apps/alert_processor/priv/repo/migrations/20170509151223_add_last_push_notification.exs | mbta/alerts_concierge | d8e643445ef06f80ca273f2914c6959daea146f6 | [
"MIT"
] | null | null | null | apps/alert_processor/priv/repo/migrations/20170509151223_add_last_push_notification.exs | mbta/alerts_concierge | d8e643445ef06f80ca273f2914c6959daea146f6 | [
"MIT"
] | 21 | 2021-03-12T17:05:30.000Z | 2022-02-16T21:48:35.000Z | apps/alert_processor/priv/repo/migrations/20170509151223_add_last_push_notification.exs | mbta/alerts_concierge | d8e643445ef06f80ca273f2914c6959daea146f6 | [
"MIT"
] | 1 | 2021-12-09T15:09:53.000Z | 2021-12-09T15:09:53.000Z | defmodule MbtaServer.Repo.Migrations.AddLastPushNotification do
use Ecto.Migration
def change do
alter table(:notifications, primary_key: false) do
add :last_push_notification, :utc_datetime
end
end
end
| 22.4 | 63 | 0.767857 |
9e70f43dfcfc615dfa2ce49cd0678e4936c87a40 | 61,828 | ex | Elixir | clients/memcache/lib/google_api/memcache/v1beta2/api/projects.ex | EVLedger/elixir-google-api | 61edef19a5e2c7c63848f7030c6d8d651e4593d4 | [
"Apache-2.0"
] | null | null | null | clients/memcache/lib/google_api/memcache/v1beta2/api/projects.ex | EVLedger/elixir-google-api | 61edef19a5e2c7c63848f7030c6d8d651e4593d4 | [
"Apache-2.0"
] | null | null | null | clients/memcache/lib/google_api/memcache/v1beta2/api/projects.ex | EVLedger/elixir-google-api | 61edef19a5e2c7c63848f7030c6d8d651e4593d4 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 44.576784 | 196 | 0.617924 |
9e70f7f49e3f62629360eced8e4f3bb0a2032126 | 10,231 | exs | Elixir | integration_test/sql/migration.exs | photomattmills/ecto | ad3a455aa3d5e4f932a5bb8ae1590b21d95cce54 | [
"Apache-2.0"
] | 1 | 2019-05-07T15:05:52.000Z | 2019-05-07T15:05:52.000Z | integration_test/sql/migration.exs | photomattmills/ecto | ad3a455aa3d5e4f932a5bb8ae1590b21d95cce54 | [
"Apache-2.0"
] | null | null | null | integration_test/sql/migration.exs | photomattmills/ecto | ad3a455aa3d5e4f932a5bb8ae1590b21d95cce54 | [
"Apache-2.0"
] | null | null | null | defmodule Ecto.Integration.MigrationTest do
use ExUnit.Case
alias Ecto.Integration.TestRepo
defmodule CreateMigration do
use Ecto.Migration
@table table(:create_table_migration)
@index index(:create_table_migration, [:value], unique: true)
def up do
create @table do
add :value, :... | 27.137931 | 97 | 0.684097 |
9e711cd422b9a6993994f0dcb446f8dfb0a1c19e | 1,756 | ex | Elixir | clients/content/lib/google_api/content/v2/model/accountstatuses_list_response.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v2/model/accountstatuses_list_response.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v2/model/accountstatuses_list_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 "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... | 33.769231 | 156 | 0.750569 |
9e712aa3f0fdfeb453ae222dc75ba5cac5a3e722 | 1,662 | ex | Elixir | clients/slides/lib/google_api/slides/v1/model/write_control.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/slides/lib/google_api/slides/v1/model/write_control.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/slides/lib/google_api/slides/v1/model/write_control.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.24 | 138 | 0.741276 |
9e715264cd829141e6c1a5221f9ab3bd98bfc4bf | 2,385 | exs | Elixir | test/plugs/event_hook_test.exs | EdBondArcher/okta-elixir | f7831125e40a1b4f8b488528b6a09b87d654db45 | [
"MIT"
] | 7 | 2021-07-19T10:41:43.000Z | 2022-02-23T20:56:51.000Z | test/plugs/event_hook_test.exs | EdBondArcher/okta-elixir | f7831125e40a1b4f8b488528b6a09b87d654db45 | [
"MIT"
] | 10 | 2019-08-18T11:31:43.000Z | 2019-09-24T18:12:24.000Z | test/plugs/event_hook_test.exs | EdBondArcher/okta-elixir | f7831125e40a1b4f8b488528b6a09b87d654db45 | [
"MIT"
] | 2 | 2019-08-08T08:22:10.000Z | 2019-09-06T06:54:43.000Z | defmodule Okta.Plug.EventHookTest do
use ExUnit.Case, async: true
alias Plug.Conn
alias Okta.Plug.EventHook
@request_key "authorization_token"
@opts EventHook.init(
event_handler: EventHookHandlerMock,
secret_key: @request_key
)
defmodule MockMFA do
def secret_key do
... | 22.932692 | 90 | 0.627673 |
9e719f5c5f7a320d2dc44cae37caa666099284b1 | 2,682 | ex | Elixir | clients/cloud_search/lib/google_api/cloud_search/v1/model/integer_property_options.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/cloud_search/lib/google_api/cloud_search/v1/model/integer_property_options.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/cloud_search/lib/google_api/cloud_search/v1/model/integer_property_options.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... | 47.892857 | 344 | 0.747576 |
9e72113e2e4f771609829a768ee60b034226e609 | 8,179 | ex | Elixir | clients/you_tube/lib/google_api/you_tube/v3/api/activities.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | null | null | null | clients/you_tube/lib/google_api/you_tube/v3/api/activities.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | null | null | null | clients/you_tube/lib/google_api/you_tube/v3/api/activities.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "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... | 59.70073 | 545 | 0.722704 |
9e721eb96aa0f2fd45f109013e0d2de76a2e4d73 | 1,076 | ex | Elixir | lib/ashes/endpoint.ex | hamiltop/ashes | 74882221af8d4fd96cd5d88e32fa6a6b3df44c77 | [
"MIT"
] | 1 | 2019-09-04T10:06:04.000Z | 2019-09-04T10:06:04.000Z | lib/ashes/endpoint.ex | hamiltop/ashes | 74882221af8d4fd96cd5d88e32fa6a6b3df44c77 | [
"MIT"
] | null | null | null | lib/ashes/endpoint.ex | hamiltop/ashes | 74882221af8d4fd96cd5d88e32fa6a6b3df44c77 | [
"MIT"
] | null | null | null | defmodule Ashes.Endpoint do
use Phoenix.Endpoint, otp_app: :ashes
socket "/socket", Ashes.UserSocket
# Serve at "/" the static files from "priv/static" directory.
#
# You should set gzip to true if you are running phoenix.digest
# when deploying your static files in production.
plug Plug.Static,
at:... | 26.243902 | 79 | 0.710037 |
9e723d901db5bf3d31f0680c41705b8124475546 | 3,857 | ex | Elixir | lib/sentinel/web/controllers/html/password_controller.ex | suranyami/sentinel | aeb421e2e61a4bc14abe89b4a92cb1943a5965fb | [
"MIT"
] | null | null | null | lib/sentinel/web/controllers/html/password_controller.ex | suranyami/sentinel | aeb421e2e61a4bc14abe89b4a92cb1943a5965fb | [
"MIT"
] | null | null | null | lib/sentinel/web/controllers/html/password_controller.ex | suranyami/sentinel | aeb421e2e61a4bc14abe89b4a92cb1943a5965fb | [
"MIT"
] | null | null | null | defmodule Sentinel.Controllers.Html.PasswordController do
@moduledoc """
Handles the password create and reset actions
"""
use Phoenix.Controller
alias Sentinel.{Changeset.PasswordResetter, Config, Mailer, RedirectHelper, Util}
plug :put_layout, {Config.layout_view, Config.layout}
plug Sentinel.Authenti... | 35.385321 | 129 | 0.688359 |
9e727ed236892a9a9a2f54a9eb522950229d0b7f | 52,425 | ex | Elixir | lib/data_layer.ex | simpers/ash_postgres | 22ba737d0d1e57da3d3150bcf94961a99b145ae9 | [
"MIT"
] | null | null | null | lib/data_layer.ex | simpers/ash_postgres | 22ba737d0d1e57da3d3150bcf94961a99b145ae9 | [
"MIT"
] | null | null | null | lib/data_layer.ex | simpers/ash_postgres | 22ba737d0d1e57da3d3150bcf94961a99b145ae9 | [
"MIT"
] | null | null | null | defmodule AshPostgres.DataLayer do
@manage_tenant %Ash.Dsl.Section{
name: :manage_tenant,
describe: """
Configuration for the behavior of a resource that manages a tenant
""",
examples: [
"""
manage_tenant do
template ["organization_", :id]
create? true
update? ... | 28.383866 | 168 | 0.588269 |
9e727f76492cfcfa98bd70f35cddfe67e4f471aa | 2,991 | exs | Elixir | test/controllers/user_role_controller_test.exs | roryqueue/code-corps-api | f23007e13fed2d7264fd2e2e97b1497488fb54ba | [
"MIT"
] | null | null | null | test/controllers/user_role_controller_test.exs | roryqueue/code-corps-api | f23007e13fed2d7264fd2e2e97b1497488fb54ba | [
"MIT"
] | null | null | null | test/controllers/user_role_controller_test.exs | roryqueue/code-corps-api | f23007e13fed2d7264fd2e2e97b1497488fb54ba | [
"MIT"
] | null | null | null | defmodule CodeCorps.UserRoleControllerTest do
use CodeCorps.ApiCase
alias CodeCorps.UserRole
alias CodeCorps.Repo
defp build_payload, do: %{ "data" => %{"type" => "user-role", "attributes" => %{}}}
defp put_relationships(payload, user, role) do
relationships = build_relationships(user, role)
payload... | 33.988636 | 93 | 0.63992 |
9e72ae8edcb7fe470a7af737f003a9488aa0e64d | 1,728 | ex | Elixir | clients/testing/lib/google_api/testing/v1/model/device_file.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | clients/testing/lib/google_api/testing/v1/model/device_file.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | clients/testing/lib/google_api/testing/v1/model/device_file.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 "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... | 33.882353 | 86 | 0.740162 |
9e72b2d99a3803c8e0e48ce7f7d6b8136df725b9 | 544 | ex | Elixir | lib/sentinel/mailer/welcome.ex | suranyami/sentinel | aeb421e2e61a4bc14abe89b4a92cb1943a5965fb | [
"MIT"
] | 125 | 2016-01-29T11:46:20.000Z | 2021-06-08T09:25:38.000Z | lib/sentinel/mailer/welcome.ex | suranyami/sentinel | aeb421e2e61a4bc14abe89b4a92cb1943a5965fb | [
"MIT"
] | 54 | 2016-02-18T01:11:58.000Z | 2017-10-19T11:25:26.000Z | lib/sentinel/mailer/welcome.ex | suranyami/sentinel | aeb421e2e61a4bc14abe89b4a92cb1943a5965fb | [
"MIT"
] | 29 | 2016-02-20T12:59:16.000Z | 2018-04-11T14:29:41.000Z | defmodule Sentinel.Mailer.Welcome do
@moduledoc """
Responsible for the creation (and easy override) of the default welcome email
"""
import Bamboo.Email
import Bamboo.Phoenix
import Sentinel.Mailer
@doc """
Takes a user, and a confirmation token and returns an email. It does not send
the email
""... | 23.652174 | 79 | 0.689338 |
9e72efb3a02c23fe32f2b277d2aa67e714eecef4 | 266 | exs | Elixir | priv/repo/migrations/20170418164826_create_actions.exs | lcr0815/namely | b7d245511377f6ad0f1e470fe38d6c1ff47d012a | [
"MIT"
] | null | null | null | priv/repo/migrations/20170418164826_create_actions.exs | lcr0815/namely | b7d245511377f6ad0f1e470fe38d6c1ff47d012a | [
"MIT"
] | null | null | null | priv/repo/migrations/20170418164826_create_actions.exs | lcr0815/namely | b7d245511377f6ad0f1e470fe38d6c1ff47d012a | [
"MIT"
] | null | null | null | defmodule Namely.Repo.Migrations.CreateActions do
use Ecto.Migration
def change do
create table(:actions) do
add :name, :string
add :entity_type, :string
add :entity_id, :string
add :data, :jsonb
timestamps()
end
end
end | 19 | 49 | 0.650376 |
9e734460136df46fbf8d71b35222af7dd5e3a260 | 149 | exs | Elixir | scenic_asteroids/play/config/config.exs | jordanhubbard/elixir-projects | dee341d672e83a45a17a4a85abd54a480f95c506 | [
"BSD-2-Clause"
] | 31 | 2018-12-25T19:52:35.000Z | 2022-03-20T01:06:46.000Z | play/config/config.exs | QuantumProductions/scenic_font_test | ff8d0df6ade399039b9d9e816e398cb1ad80a7db | [
"BSD-3-Clause"
] | 4 | 2018-12-23T18:34:20.000Z | 2021-05-10T04:05:45.000Z | play/config/config.exs | QuantumProductions/scenic_font_test | ff8d0df6ade399039b9d9e816e398cb1ad80a7db | [
"BSD-3-Clause"
] | 2 | 2019-04-09T18:35:51.000Z | 2020-12-22T15:19:18.000Z | use Mix.Config
config :play, :viewport, %{
name: :main_viewport,
size: {500, 500},
default_scene: {Play.Scene.Splash, Play.Scene.Asteroids}
}
| 18.625 | 58 | 0.691275 |
9e7345b9846409515b986df826d79956af3a0f03 | 3,008 | ex | Elixir | lib/logger_json/plug/metadata_formatters/google_cloud_logger.ex | taxjar/logger_json | b460d2cc1bc7e8b9f3ba1a36ff50795e731f1d93 | [
"MIT"
] | null | null | null | lib/logger_json/plug/metadata_formatters/google_cloud_logger.ex | taxjar/logger_json | b460d2cc1bc7e8b9f3ba1a36ff50795e731f1d93 | [
"MIT"
] | null | null | null | lib/logger_json/plug/metadata_formatters/google_cloud_logger.ex | taxjar/logger_json | b460d2cc1bc7e8b9f3ba1a36ff50795e731f1d93 | [
"MIT"
] | null | null | null | if Code.ensure_loaded?(Plug) do
defmodule LoggerJSON.Plug.MetadataFormatters.GoogleCloudLogger do
@moduledoc """
This formatter builds a metadata which is natively supported by Google Cloud Logger:
* `httpRequest` - see [LogEntry#HttpRequest](https://cloud.google.com/logging/docs/reference/v2/rest/v2/L... | 34.181818 | 132 | 0.650598 |
9e738ba347f96c0bd18053798ee193af4d50f5cc | 874 | ex | Elixir | clients/chat/lib/google_api/chat/v1/metadata.ex | mopp/elixir-google-api | d496227d17600bccbdf8f6be9ad1b7e7219d7ec6 | [
"Apache-2.0"
] | null | null | null | clients/chat/lib/google_api/chat/v1/metadata.ex | mopp/elixir-google-api | d496227d17600bccbdf8f6be9ad1b7e7219d7ec6 | [
"Apache-2.0"
] | null | null | null | clients/chat/lib/google_api/chat/v1/metadata.ex | mopp/elixir-google-api | d496227d17600bccbdf8f6be9ad1b7e7219d7ec6 | [
"Apache-2.0"
] | null | null | null | # Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 32.37037 | 74 | 0.756293 |
9e738fa2f6d5cfe718fe46322e0430e89850ba8a | 316 | exs | Elixir | test/asset/public_key_test.exs | FarmBot/farmbot_os | 5ebdca3afd672eb6b0af5c71cfca02488b32569a | [
"MIT"
] | 843 | 2016-10-05T23:46:05.000Z | 2022-03-14T04:31:55.000Z | farmbot_core/test/asset/public_key_test.exs | gdwb/farmbot_os | 0ef2697c580c9fbf37a22daa063a64addfcb778d | [
"MIT"
] | 455 | 2016-10-15T08:49:16.000Z | 2022-03-15T12:23:04.000Z | farmbot_core/test/asset/public_key_test.exs | gdwb/farmbot_os | 0ef2697c580c9fbf37a22daa063a64addfcb778d | [
"MIT"
] | 261 | 2016-10-10T04:37:06.000Z | 2022-03-13T21:07:38.000Z | defmodule FarmbotCore.Asset.PublicKeyTest do
use ExUnit.Case
alias FarmbotCore.Asset.PublicKey
@expected_keys [:id, :name, :public_key]
test "render/1" do
result = PublicKey.render(%PublicKey{})
mapper = fn key -> assert Map.has_key?(result, key) end
Enum.map(@expected_keys, mapper)
end
end
| 24.307692 | 59 | 0.71519 |
9e73aadc6fd5c89950214813d0fe308b102ecd4f | 839 | exs | Elixir | mix.exs | 490llc/phoenix_pubsub_rabbitmq | 192c7b2cd60496107e819ac56404bd831cd86746 | [
"MIT"
] | 1 | 2016-07-08T13:25:56.000Z | 2016-07-08T13:25:56.000Z | mix.exs | ebakan/phoenix_pubsub_rabbitmq | 192c7b2cd60496107e819ac56404bd831cd86746 | [
"MIT"
] | null | null | null | mix.exs | ebakan/phoenix_pubsub_rabbitmq | 192c7b2cd60496107e819ac56404bd831cd86746 | [
"MIT"
] | 1 | 2020-08-31T15:28:42.000Z | 2020-08-31T15:28:42.000Z | defmodule Phoenix.PubSub.RabbitMQ.Mixfile do
use Mix.Project
def project do
[app: :phoenix_pubsub_rabbitmq,
version: "0.0.1",
elixir: "~> 1.0",
description: description,
package: package,
source_url: "https://github.com/pma/phoenix_pubsub_rabbitmq",
deps: deps,
docs: [readme:... | 22.675676 | 76 | 0.611442 |
9e73f974d28498da47c994a06b63900c1d627ba4 | 836 | ex | Elixir | lib/readtome_web/schema/location_type.ex | zephraph/readtome | 64a5f773bdc3c19d9c5ac50a04aa14e446e36c55 | [
"MIT"
] | 1 | 2021-09-05T20:54:57.000Z | 2021-09-05T20:54:57.000Z | lib/readtome_web/schema/location_type.ex | zephraph/readtome | 64a5f773bdc3c19d9c5ac50a04aa14e446e36c55 | [
"MIT"
] | 17 | 2019-07-06T17:31:56.000Z | 2021-06-22T15:31:06.000Z | lib/readtome_web/schema/location_type.ex | zephraph/readtome | 64a5f773bdc3c19d9c5ac50a04aa14e446e36c55 | [
"MIT"
] | 1 | 2021-03-15T20:50:27.000Z | 2021-03-15T20:50:27.000Z | defmodule ReadtomeWeb.Schema.LocationType do
@moduledoc """
The Location scalar type allows fields with locations.
"""
use Absinthe.Schema.Notation
scalar :location, name: "Location" do
description("""
Location including lat/lng.
""")
serialize(&encode/1)
parse(&decode/1)
end
@spec ... | 20.9 | 77 | 0.63756 |
9e741d3ea8b0d3878ad4003005b6969a2ed32e01 | 14,520 | ex | Elixir | lib/ex_aws/sns.ex | Frameio/ex_aws | 3b335b6ed7932b5cf991323d26cf5497e1e6c122 | [
"Unlicense",
"MIT"
] | null | null | null | lib/ex_aws/sns.ex | Frameio/ex_aws | 3b335b6ed7932b5cf991323d26cf5497e1e6c122 | [
"Unlicense",
"MIT"
] | null | null | null | lib/ex_aws/sns.ex | Frameio/ex_aws | 3b335b6ed7932b5cf991323d26cf5497e1e6c122 | [
"Unlicense",
"MIT"
] | null | null | null | defmodule ExAws.SNS do
import ExAws.Utils, only: [camelize_key: 1, camelize_keys: 1]
@moduledoc """
Operations on AWS SNS
http://docs.aws.amazon.com/sns/latest/api/API_Operations.html
"""
## Topics
######################
@type topic_name :: binary
@type topic_arn :: binary
@type topic_attri... | 34.164706 | 137 | 0.682713 |
9e742302726216bbe26f4047404d0c22f5126081 | 268 | exs | Elixir | priv/repo/migrations/20170709031442_create_posts_events.exs | Apps-Team/conferencetools | ce2e16a3e4a521dc4682e736a209e6dd380c050d | [
"Apache-2.0"
] | null | null | null | priv/repo/migrations/20170709031442_create_posts_events.exs | Apps-Team/conferencetools | ce2e16a3e4a521dc4682e736a209e6dd380c050d | [
"Apache-2.0"
] | 6 | 2017-10-05T20:16:34.000Z | 2017-10-05T20:36:11.000Z | priv/repo/migrations/20170709031442_create_posts_events.exs | apps-team/events-tools | ce2e16a3e4a521dc4682e736a209e6dd380c050d | [
"Apache-2.0"
] | null | null | null | defmodule EventsTools.Repo.Migrations.CreatePostsEvents do
use Ecto.Migration
def change do
create table(:posts_events, primary_key: true) do
add :post_id, references(:posts)
add :event_id, references(:events)
timestamps()
end
end
end
| 19.142857 | 58 | 0.712687 |
9e744ae9c425e6c5423f602dca293a395f4067c6 | 884 | ex | Elixir | clients/app_engine/lib/google_api/app_engine/v1/metadata.ex | jamesvl/elixir-google-api | 6c87fb31d996f08fb42ce6066317e9d652a87acc | [
"Apache-2.0"
] | null | null | null | clients/app_engine/lib/google_api/app_engine/v1/metadata.ex | jamesvl/elixir-google-api | 6c87fb31d996f08fb42ce6066317e9d652a87acc | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/app_engine/lib/google_api/app_engine/v1/metadata.ex | myskoach/elixir-google-api | 4f8cbc2fc38f70ffc120fd7ec48e27e46807b563 | [
"Apache-2.0"
] | null | null | null | # Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 32.740741 | 74 | 0.75905 |
9e745c2da729d7b5ece15bfe47ce6cbb4cac1842 | 4,961 | ex | Elixir | lib/data/stats.ex | stevegrossi/ex_venture | e02d5a63fdb882d92cfb4af3e15f7b48ad7054aa | [
"MIT"
] | 1 | 2019-02-10T10:22:39.000Z | 2019-02-10T10:22:39.000Z | lib/data/stats.ex | stevegrossi/ex_venture | e02d5a63fdb882d92cfb4af3e15f7b48ad7054aa | [
"MIT"
] | null | null | null | lib/data/stats.ex | stevegrossi/ex_venture | e02d5a63fdb882d92cfb4af3e15f7b48ad7054aa | [
"MIT"
] | null | null | null | defmodule Data.Stats do
@moduledoc """
Item statistics
"""
import Data.Type
@type character :: %{
health_points: integer(),
max_health_points: integer(),
skill_points: integer(),
max_skill_points: integer(),
endurance_points: integer(),
max_enduran... | 21.951327 | 88 | 0.58335 |
9e74701d46e3232c93362282a209ed66cecc83b1 | 21,297 | exs | Elixir | test/producer_test.exs | danielkv7/broadway_kafka | 4388117537ee81738ff4d6a89ed6a2c602d47d8c | [
"Apache-2.0"
] | 112 | 2020-01-20T22:04:30.000Z | 2022-03-25T10:41:47.000Z | test/producer_test.exs | danielkv7/broadway_kafka | 4388117537ee81738ff4d6a89ed6a2c602d47d8c | [
"Apache-2.0"
] | 71 | 2020-01-22T12:43:29.000Z | 2022-03-30T22:30:29.000Z | test/producer_test.exs | danielkv7/broadway_kafka | 4388117537ee81738ff4d6a89ed6a2c602d47d8c | [
"Apache-2.0"
] | 39 | 2020-02-21T15:10:42.000Z | 2022-02-11T17:34:09.000Z | defmodule BroadwayKafka.ProducerTest do
use ExUnit.Case
import ExUnit.CaptureLog
import Record, only: [defrecord: 2, extract: 2]
defrecord :brod_received_assignment,
extract(:brod_received_assignment, from_lib: "brod/include/brod.hrl")
defmodule MessageServer do
def start_link() do
Ag... | 30.68732 | 99 | 0.649575 |
9e7475eed31eddd369f422e3c92fbabeedb1925c | 73 | exs | Elixir | test/river/frame/settings_test.exs | peburrows/river | e8968535d02a86e70a7942a690c8e461fed55913 | [
"MIT"
] | 86 | 2016-08-19T21:59:28.000Z | 2022-01-31T20:14:18.000Z | test/river/frame/settings_test.exs | peburrows/river | e8968535d02a86e70a7942a690c8e461fed55913 | [
"MIT"
] | 7 | 2016-09-27T14:44:16.000Z | 2017-08-08T14:57:45.000Z | test/river/frame/settings_test.exs | peburrows/river | e8968535d02a86e70a7942a690c8e461fed55913 | [
"MIT"
] | 4 | 2016-09-26T10:57:24.000Z | 2018-04-03T14:30:19.000Z | defmodule River.Frame.SettingsTest do
use ExUnit.Case, async: true
end
| 18.25 | 37 | 0.794521 |
9e7479a55c1871dac2373120d3710a5169dbde24 | 2,458 | ex | Elixir | lib/bitcoin/block.ex | coinscript/bitcoinsv-elixir | 2dda03c81edc5662743ed2922abb5b1910d9c09a | [
"Apache-2.0"
] | 2 | 2019-08-12T04:53:57.000Z | 2019-09-03T03:47:33.000Z | lib/bitcoin/block.ex | coinscript/bitcoinsv-elixir | 2dda03c81edc5662743ed2922abb5b1910d9c09a | [
"Apache-2.0"
] | null | null | null | lib/bitcoin/block.ex | coinscript/bitcoinsv-elixir | 2dda03c81edc5662743ed2922abb5b1910d9c09a | [
"Apache-2.0"
] | null | null | null | defmodule Bitcoin.Block do
use Bitcoin.Common
alias Bitcoin.Protocol.Messages
alias Bitcoin.Block.Validation
@type t_hash :: Bitcoin.t_hash()
@doc """
Compute hash of the provided block, which is double sha256 of the serialized block header.
"""
@spec hash(Messages.Block.t()) :: t_hash
def hash(%Me... | 28.917647 | 98 | 0.659479 |
9e74a30c3f294fbde40efb2f870b160bc8398a4f | 1,226 | exs | Elixir | app_ui/config/config.exs | samuelventura/nerves_sample_bbb_emmc | 13b2d376b002c420f71f62cfe48fc3eea4c83a1d | [
"Apache-2.0"
] | null | null | null | app_ui/config/config.exs | samuelventura/nerves_sample_bbb_emmc | 13b2d376b002c420f71f62cfe48fc3eea4c83a1d | [
"Apache-2.0"
] | null | null | null | app_ui/config/config.exs | samuelventura/nerves_sample_bbb_emmc | 13b2d376b002c420f71f62cfe48fc3eea4c83a1d | [
"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 :app_ui, AppUiWeb.En... | 32.263158 | 117 | 0.72186 |
9e74b5106464d6c322eec75914b3d9331b4094bb | 70 | ex | Elixir | lib/elixir_app/repo.ex | mogetutu/didactic-invention | be25678ba30ca5b9efc1b27e9f7c79350f53ab95 | [
"MIT"
] | null | null | null | lib/elixir_app/repo.ex | mogetutu/didactic-invention | be25678ba30ca5b9efc1b27e9f7c79350f53ab95 | [
"MIT"
] | null | null | null | lib/elixir_app/repo.ex | mogetutu/didactic-invention | be25678ba30ca5b9efc1b27e9f7c79350f53ab95 | [
"MIT"
] | null | null | null | defmodule ElixirApp.Repo do
use Ecto.Repo, otp_app: :elixir_app
end
| 17.5 | 37 | 0.785714 |
9e74e24ec7dc17af8017da01c8ec2a4a003f6d59 | 3,637 | exs | Elixir | machine_translation/MorpHIN/Learned/Resources/Set5/TrainingInstances/41.exs | AdityaPrasadMishra/NLP--Project-Group-16 | fb62cc6a1db4a494058171f11c14a2be3933a9a1 | [
"MIT"
] | null | null | null | machine_translation/MorpHIN/Learned/Resources/Set5/TrainingInstances/41.exs | AdityaPrasadMishra/NLP--Project-Group-16 | fb62cc6a1db4a494058171f11c14a2be3933a9a1 | [
"MIT"
] | null | null | null | machine_translation/MorpHIN/Learned/Resources/Set5/TrainingInstances/41.exs | AdityaPrasadMishra/NLP--Project-Group-16 | fb62cc6a1db4a494058171f11c14a2be3933a9a1 | [
"MIT"
] | null | null | null | **EXAMPLE FILE**
verb conj noun noun adjective;
verb_aux SYM noun noun adjective;
noun conj noun pnoun adjective;
pnoun cm noun cm pnoun;
noun cm noun pnoun adjective;
verb_aux SYM noun noun adjective;
pnoun cm noun noun adjective;
pnoun pnoun noun noun adjective;
verb_aux SYM noun noun adjective;
pnoun conj... | 30.057851 | 40 | 0.770965 |
9e74eb499216c9dcffa55e09201feb97f2ff0884 | 1,294 | exs | Elixir | mix.exs | codabrink/topo | f1ca4b7fe337a67285ee4c65a34fb521b119342c | [
"MIT"
] | null | null | null | mix.exs | codabrink/topo | f1ca4b7fe337a67285ee4c65a34fb521b119342c | [
"MIT"
] | null | null | null | mix.exs | codabrink/topo | f1ca4b7fe337a67285ee4c65a34fb521b119342c | [
"MIT"
] | null | null | null | defmodule Topo.Mixfile do
use Mix.Project
def project do
[
app: :topo,
version: "0.4.0",
elixir: "~> 1.6",
description: description(),
package: package(),
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
test_coverage: [tool: ExCoveralls],... | 23.962963 | 77 | 0.514683 |
9e74f57aa1774eedfcc87d0b8fa26314dc715684 | 444 | ex | Elixir | lib/siwapp_web/controllers/iframe_controller.ex | jakon89/siwapp | b5f8fd43458deae72c76e434ed0c63b620cb97a4 | [
"MIT"
] | 4 | 2015-02-12T09:23:47.000Z | 2022-03-09T18:11:06.000Z | lib/siwapp_web/controllers/iframe_controller.ex | jakon89/siwapp | b5f8fd43458deae72c76e434ed0c63b620cb97a4 | [
"MIT"
] | 254 | 2021-12-09T14:40:41.000Z | 2022-03-31T08:09:37.000Z | lib/siwapp_web/controllers/iframe_controller.ex | jakon89/siwapp | b5f8fd43458deae72c76e434ed0c63b620cb97a4 | [
"MIT"
] | 1 | 2022-03-07T10:25:49.000Z | 2022-03-07T10:25:49.000Z | defmodule SiwappWeb.IframeController do
use SiwappWeb, :controller
alias Siwapp.Invoices
alias Siwapp.Templates
plug :put_root_layout, false
plug :put_layout, false
@spec iframe(Plug.Conn.t(), map) :: Plug.Conn.t()
def iframe(conn, %{"id" => id}) do
invoice = Invoices.get!(id, preload: [{:items, :ta... | 26.117647 | 80 | 0.704955 |
9e7510570de6e5669ff1d02f802b17eadcdd48d0 | 460 | exs | Elixir | back/config/test.exs | giovanecosta/zebra-xantis | 92e5937d51c44e75544bb539f5d95f6b0cc61b94 | [
"MIT"
] | null | null | null | back/config/test.exs | giovanecosta/zebra-xantis | 92e5937d51c44e75544bb539f5d95f6b0cc61b94 | [
"MIT"
] | null | null | null | back/config/test.exs | giovanecosta/zebra-xantis | 92e5937d51c44e75544bb539f5d95f6b0cc61b94 | [
"MIT"
] | 1 | 2019-08-29T17:37:51.000Z | 2019-08-29T17:37:51.000Z | use Mix.Config
# Configure your database
config :zx, Zx.Repo,
username: "postgres",
password: "postgres",
database: "zx_test",
hostname: "postgres",
pool: Ecto.Adapters.SQL.Sandbox,
types: Zx.PostgrexTypes
# We don't run a server during test. If one is required,
# you can enable the server option below.
c... | 23 | 56 | 0.717391 |
9e751d1d6b24ee9ba16da2a1db2cd769e416d373 | 164 | ex | Elixir | lib/app.ex | ryanwinchester/irc | acb16b470144dcd664fb2026afa0b9a1727f2900 | [
"MIT"
] | null | null | null | lib/app.ex | ryanwinchester/irc | acb16b470144dcd664fb2026afa0b9a1727f2900 | [
"MIT"
] | null | null | null | lib/app.ex | ryanwinchester/irc | acb16b470144dcd664fb2026afa0b9a1727f2900 | [
"MIT"
] | null | null | null | defmodule ExIRC.App do
@moduledoc """
Entry point for the ExIRC application.
"""
use Application
def start(_type, _args) do
ExIRC.start!()
end
end
| 14.909091 | 40 | 0.670732 |
9e7520a8cd9d36819d5b3a6b5c37e30b4602260a | 1,355 | exs | Elixir | elixir/test/test_year_2015/day_02_test.exs | fdm1/advent_of_code | a1e91d847fd8fd9f6b2f48333203729b9d64fd80 | [
"MIT"
] | null | null | null | elixir/test/test_year_2015/day_02_test.exs | fdm1/advent_of_code | a1e91d847fd8fd9f6b2f48333203729b9d64fd80 | [
"MIT"
] | null | null | null | elixir/test/test_year_2015/day_02_test.exs | fdm1/advent_of_code | a1e91d847fd8fd9f6b2f48333203729b9d64fd80 | [
"MIT"
] | 1 | 2018-12-02T20:30:23.000Z | 2018-12-02T20:30:23.000Z | defmodule ElixirAdvent.Year2015.Day02Test do
use ExUnit.Case
doctest ElixirAdvent.Year2015.Day02
def test_cases do
# [dimension string, paper, ribbon]
[
["2x3x4", 58, 34],
["1x1x10", 43, 14]
]
end
def input_string do
Enum.join(Enum.map(test_cases(), fn(case) -> Enum.at(case, 0) e... | 29.456522 | 99 | 0.653875 |
9e754b9b6e5baa5a59226487f3435e79a1986dde | 2,030 | exs | Elixir | mix.exs | nickdichev/unicode_guards | d411c17690cbe7969174d61623dbc2d1537ad241 | [
"Apache-2.0"
] | null | null | null | mix.exs | nickdichev/unicode_guards | d411c17690cbe7969174d61623dbc2d1537ad241 | [
"Apache-2.0"
] | null | null | null | mix.exs | nickdichev/unicode_guards | d411c17690cbe7969174d61623dbc2d1537ad241 | [
"Apache-2.0"
] | null | null | null | defmodule Unicode.Guards.MixProject do
use Mix.Project
@version "0.3.1"
def project do
[
app: :unicode_guards,
version: @version,
elixir: "~> 1.8",
start_permanent: Mix.env() == :prod,
build_embedded: Mix.env() == :prod,
deps: deps(),
docs: docs(),
name: "Unic... | 23.068182 | 102 | 0.563547 |
9e75570b62fa09b152d34830356dde684e8691c2 | 2,538 | exs | Elixir | apps/api_web/test/api_web/router_test.exs | fjlanasa/api | c39bc393aea572bfb81754b2ea1adf9dda9ce24a | [
"MIT"
] | 62 | 2019-01-17T12:34:39.000Z | 2022-03-20T21:49:47.000Z | apps/api_web/test/api_web/router_test.exs | fjlanasa/api | c39bc393aea572bfb81754b2ea1adf9dda9ce24a | [
"MIT"
] | 375 | 2019-02-13T15:30:50.000Z | 2022-03-30T18:50:41.000Z | apps/api_web/test/api_web/router_test.exs | fjlanasa/api | c39bc393aea572bfb81754b2ea1adf9dda9ce24a | [
"MIT"
] | 14 | 2019-01-16T19:35:57.000Z | 2022-02-26T18:55:54.000Z | defmodule ApiWeb.RouterTest do
@moduledoc false
use ApiWeb.ConnCase
import ApiWeb.Router
import Plug.Conn
describe "authenticated_accepts/2" do
test "denies anonymous users when the type is in authenticated_accepts" do
conn =
build_conn()
|> Map.put(:req_headers, [{"accept", "text/e... | 37.880597 | 92 | 0.612687 |
9e757f944d52abb409aa9d285093a6768c295b6d | 1,615 | ex | Elixir | clients/analytics_admin/lib/google_api/analytics_admin/v1alpha/model/google_analytics_admin_v1alpha_delete_user_link_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/analytics_admin/lib/google_api/analytics_admin/v1alpha/model/google_analytics_admin_v1alpha_delete_user_link_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/analytics_admin/lib/google_api/analytics_admin/v1alpha/model/google_analytics_admin_v1alpha_delete_user_link_request.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... | 31.057692 | 108 | 0.75418 |
9e7584768b0ee878eeda8cb10f8319416d384fee | 2,268 | exs | Elixir | mix.exs | locaweb/elixir-cassette | 36069304427883128ad5f24d273f9300e88608ff | [
"MIT"
] | 15 | 2016-03-03T11:22:00.000Z | 2021-03-16T15:03:56.000Z | mix.exs | locaweb/elixir-cassette | 36069304427883128ad5f24d273f9300e88608ff | [
"MIT"
] | 13 | 2016-06-16T11:43:02.000Z | 2021-09-27T18:40:19.000Z | mix.exs | locaweb/elixir-cassette | 36069304427883128ad5f24d273f9300e88608ff | [
"MIT"
] | 6 | 2016-06-16T19:26:37.000Z | 2021-04-15T19:32:04.000Z | defmodule Cassette.Mixfile do
use Mix.Project
@elixir_version Version.parse!(System.version())
@min_version_for_credo Version.parse!("1.7.0")
def version, do: "1.5.3"
def project do
[
app: :cassette,
version: version(),
elixir: "~> 1.2",
description: "A CAS client and validation... | 28.35 | 96 | 0.563492 |
9e75a00a8b061c9c81559323810a359a95afdbef | 1,474 | ex | Elixir | lib/surgex_web/views/error_helpers.ex | fiqus/surgex | af3ec37459abd3f17c7e9a826ca1abef1dd5fb44 | [
"MIT"
] | 8 | 2019-05-11T19:41:06.000Z | 2020-01-20T07:01:53.000Z | lib/surgex_web/views/error_helpers.ex | fiqus/surgex | af3ec37459abd3f17c7e9a826ca1abef1dd5fb44 | [
"MIT"
] | 12 | 2019-05-10T22:00:40.000Z | 2019-07-05T19:20:56.000Z | lib/surgex_web/views/error_helpers.ex | fiqus/surgex | af3ec37459abd3f17c7e9a826ca1abef1dd5fb44 | [
"MIT"
] | 1 | 2019-07-18T15:58:41.000Z | 2019-07-18T15:58:41.000Z | defmodule SurgexWeb.ErrorHelpers do
@moduledoc """
Conveniences for translating and building error messages.
"""
use Phoenix.HTML
@doc """
Generates tag for inlined form input errors.
"""
def error_tag(form, field) do
Enum.map(Keyword.get_values(form.errors, field), fn error ->
content_tag(:... | 32.755556 | 75 | 0.669607 |
9e7648fe6cc797813ddab01055b1062ef85eb991 | 272 | ex | Elixir | lib/mailman/testing_adapter.ex | uni-halle/mailman | c1a9b6d9d7f0727372f19638fef74b180d6691a6 | [
"MIT"
] | 154 | 2015-02-23T17:36:05.000Z | 2017-09-09T05:50:21.000Z | lib/mailman/testing_adapter.ex | uni-halle/mailman | c1a9b6d9d7f0727372f19638fef74b180d6691a6 | [
"MIT"
] | 67 | 2015-03-04T04:01:22.000Z | 2017-09-14T04:23:04.000Z | lib/mailman/testing_adapter.ex | uni-halle/mailman | c1a9b6d9d7f0727372f19638fef74b180d6691a6 | [
"MIT"
] | 62 | 2015-03-04T03:53:07.000Z | 2017-09-07T23:34:15.000Z | defmodule Mailman.TestingAdapter do
@moduledoc """
Implementation of the testing SMTP adapter.
"""
def deliver(config, _email, message) do
if config.store_deliveries do
Mailman.TestServer.register_delivery(message)
end
{:ok, message}
end
end
| 19.428571 | 51 | 0.713235 |
9e764a551f47791e67b51f2c55f4bf6d85eb42d7 | 29,031 | ex | Elixir | lib/elixir/lib/protocol.ex | spencerdcarlson/elixir | 23d75ecdf58df80969e12f4420282238e19219a1 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/protocol.ex | spencerdcarlson/elixir | 23d75ecdf58df80969e12f4420282238e19219a1 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/protocol.ex | spencerdcarlson/elixir | 23d75ecdf58df80969e12f4420282238e19219a1 | [
"Apache-2.0"
] | 1 | 2020-11-25T02:22:55.000Z | 2020-11-25T02:22:55.000Z | defmodule Protocol do
@moduledoc ~S"""
Reference and functions for working with protocols.
A protocol specifies an API that should be defined by its
implementations. A protocol is defined with `Kernel.defprotocol/2`
and its implementations with `Kernel.defimpl/2`.
## Examples
In Elixir, we have two ver... | 30.623418 | 97 | 0.651752 |
9e764eb50667ec1db4189479df0a2069db1136c3 | 637 | ex | Elixir | lib/randex/generator/base.ex | ananthakumaran/randex | 3e3783e00cba625c5354638248f82ae84e8c2941 | [
"MIT"
] | 10 | 2018-09-23T07:44:26.000Z | 2021-11-04T05:50:21.000Z | lib/randex/generator/base.ex | ananthakumaran/randex | 3e3783e00cba625c5354638248f82ae84e8c2941 | [
"MIT"
] | null | null | null | lib/randex/generator/base.ex | ananthakumaran/randex | 3e3783e00cba625c5354638248f82ae84e8c2941 | [
"MIT"
] | null | null | null | defmodule Randex.Generator.Base do
@moduledoc false
defmacro __using__(_opts) do
quote do
def repeat(amb, n, fun) do
if n == 0 do
amb
else
repeat(fun.(amb), n - 1, fun)
end
end
def string do
member_of(?\s..?~)
|> map(&List.to_string... | 17.216216 | 39 | 0.472527 |
9e766c42eef9584bfdb724f4371badd71cfd000e | 1,595 | exs | Elixir | config/dev.exs | selfup/exdaas | 60b522397e0c1e3ea5b3520573c9aedb99dd76b9 | [
"MIT"
] | 8 | 2018-03-21T17:44:35.000Z | 2020-01-12T03:24:18.000Z | config/dev.exs | selfup/exdaas | 60b522397e0c1e3ea5b3520573c9aedb99dd76b9 | [
"MIT"
] | 5 | 2018-03-22T02:03:10.000Z | 2018-04-03T15:19:03.000Z | config/dev.exs | selfup/exdaas | 60b522397e0c1e3ea5b3520573c9aedb99dd76b9 | [
"MIT"
] | 1 | 2018-03-30T11:09:40.000Z | 2018-03-30T11:09:40.000Z | use Mix.Config
# For development, we disable any cache and enable
# debugging and code reloading.
#
# The watchers configuration can be used to run external
# watchers to your application. For example, we use it
# with brunch.io to recompile .js and .css sources.
config :exdaas, ExDaasWeb.Endpoint,
http: [port: 4000... | 32.55102 | 170 | 0.710345 |
9e767c7ffc246aa709e397b0bf2be890118344e6 | 4,745 | ex | Elixir | deps/phoenix_html/lib/phoenix_html/engine.ex | bruguedes/nlw5-trilha-elixir | 4de5ecdce766c4371da80cd69ea08283838c66cd | [
"MIT"
] | 2 | 2020-05-06T14:51:56.000Z | 2020-05-06T14:52:21.000Z | deps/phoenix_html/lib/phoenix_html/engine.ex | rwtrecs/rocketseat-nlw5-inmana | 8ce8bc32e0bdd005c423394bb163945747b557e2 | [
"MIT"
] | 3 | 2021-06-20T14:51:14.000Z | 2021-06-25T00:56:11.000Z | deps/phoenix_html/lib/phoenix_html/engine.ex | rwtrecs/rocketseat-nlw5-inmana | 8ce8bc32e0bdd005c423394bb163945747b557e2 | [
"MIT"
] | 1 | 2020-05-16T22:44:14.000Z | 2020-05-16T22:44:14.000Z | defmodule Phoenix.HTML.Engine do
@moduledoc """
This is an implementation of EEx.Engine that guarantees
templates are HTML Safe.
The `encode_to_iodata!/1` function converts the rendered
template result into iodata.
"""
@behaviour EEx.Engine
@anno (if :erlang.system_info(:otp_release) >= '19' do
... | 27.427746 | 102 | 0.658799 |
9e76ba688b09c4ce640180a3c37bdcfa9785147e | 291 | ex | Elixir | lib/arrow_web/controllers/health_controller.ex | paulswartz/arrow | c1ba1ce52107c0ed94ce9bca2fef2bfeb606b8f9 | [
"MIT"
] | null | null | null | lib/arrow_web/controllers/health_controller.ex | paulswartz/arrow | c1ba1ce52107c0ed94ce9bca2fef2bfeb606b8f9 | [
"MIT"
] | 775 | 2019-11-18T16:23:57.000Z | 2022-03-28T18:20:04.000Z | lib/arrow_web/controllers/health_controller.ex | paulswartz/arrow | c1ba1ce52107c0ed94ce9bca2fef2bfeb606b8f9 | [
"MIT"
] | 1 | 2019-12-23T13:52:25.000Z | 2019-12-23T13:52:25.000Z | defmodule ArrowWeb.HealthController do
@moduledoc """
Simple controller to return 200 OK when website is running. This
is used by the AWS ALB to determine the health of the target.
"""
use ArrowWeb, :controller
def index(conn, _params) do
send_resp(conn, 200, "")
end
end
| 24.25 | 66 | 0.718213 |
9e76d2a0c06a371780f2d02d05ea45a375084552 | 238 | exs | Elixir | priv/repo/migrations/20210921020101_relationship_post_comments.exs | AkioCode/elxpro-blog | 236984915851b91058e091414deb70c5e8fed72a | [
"MIT"
] | null | null | null | priv/repo/migrations/20210921020101_relationship_post_comments.exs | AkioCode/elxpro-blog | 236984915851b91058e091414deb70c5e8fed72a | [
"MIT"
] | 4 | 2021-08-11T03:19:33.000Z | 2021-09-26T01:29:58.000Z | priv/repo/migrations/20210921020101_relationship_post_comments.exs | AkioCode/elxpro-blog | 236984915851b91058e091414deb70c5e8fed72a | [
"MIT"
] | null | null | null | defmodule ElxproBlog.Repo.Migrations.RelationshipPostComments do
use Ecto.Migration
def change do
alter table(:comments) do
add :post_id, references(:posts, on_delete: :delete_all, on_update: :update_all)
end
end
end
| 23.8 | 86 | 0.747899 |
9e76d57191b1c5321e85075ef69569d3e6f2c809 | 2,052 | exs | Elixir | test/hedwig_flowdock/streaming_connection_test.exs | massive/hedwig_flowdock | 36b0e880ae182b6335cc01ddcf39d0c906b05000 | [
"MIT"
] | null | null | null | test/hedwig_flowdock/streaming_connection_test.exs | massive/hedwig_flowdock | 36b0e880ae182b6335cc01ddcf39d0c906b05000 | [
"MIT"
] | null | null | null | test/hedwig_flowdock/streaming_connection_test.exs | massive/hedwig_flowdock | 36b0e880ae182b6335cc01ddcf39d0c906b05000 | [
"MIT"
] | null | null | null | defmodule Hedwig.Adapters.Flowdock.StreamingConnectionTest do
import Hedwig.Adapters.Flowdock.StreamingConnection
use ExUnit.Case
doctest Hedwig.Adapters.Flowdock.StreamingConnection
@sample_flow_response %{
"access_mode" => "invitation",
"api_token" => ... | 51.3 | 126 | 0.460039 |
9e76d643792de326852ff8ab12fc88134aa2fcd5 | 6,944 | exs | Elixir | test/tesla/multipart_test.exs | zacck/tesla | 3c669cfd28296bbc7b168c174eccc13087d8f9a4 | [
"MIT"
] | 1 | 2020-12-21T03:45:23.000Z | 2020-12-21T03:45:23.000Z | test/tesla/multipart_test.exs | zacck/tesla | 3c669cfd28296bbc7b168c174eccc13087d8f9a4 | [
"MIT"
] | null | null | null | test/tesla/multipart_test.exs | zacck/tesla | 3c669cfd28296bbc7b168c174eccc13087d8f9a4 | [
"MIT"
] | null | null | null | defmodule Tesla.MultipartTest do
use ExUnit.Case
alias Tesla.Multipart
test "headers" do
mp = Multipart.new()
headers = Multipart.headers(mp)
assert headers == [{"content-type", "multipart/form-data; boundary=#{mp.boundary}"}]
end
test "add content-type param" do
mp =
Multipart.new(... | 25.068592 | 93 | 0.532978 |
9e76d7cff822ba78a7733f384095c007d7af5389 | 6,158 | ex | Elixir | lib/bolt_sips/internals/pack_stream/decoder_v1.ex | cheerfulstoic/bolt_sips | e86d6443f69d59f6cc41ecae5d0718ed05ea4904 | [
"Apache-2.0"
] | null | null | null | lib/bolt_sips/internals/pack_stream/decoder_v1.ex | cheerfulstoic/bolt_sips | e86d6443f69d59f6cc41ecae5d0718ed05ea4904 | [
"Apache-2.0"
] | null | null | null | lib/bolt_sips/internals/pack_stream/decoder_v1.ex | cheerfulstoic/bolt_sips | e86d6443f69d59f6cc41ecae5d0718ed05ea4904 | [
"Apache-2.0"
] | null | null | null | defmodule Bolt.Sips.Internals.PackStream.DecoderV1 do
@moduledoc false
_moduledoc = """
Bolt V1 can decode:
- Null
- Boolean
- Integer
- Float
- String
- List
- Map
- Struct
Functions from this module are not meant to be used directly.
Use `Decoder.decode(data, bolt_version)` for all decoding... | 28.509259 | 91 | 0.679766 |
9e76dafd78ad0485b5afec272effda3cc0055b21 | 1,632 | ex | Elixir | apps/local_ledger/lib/local_ledger/entry.ex | vanmil/ewallet | 6c1aca95a83e0a9d93007670a40d8c45764a8122 | [
"Apache-2.0"
] | null | null | null | apps/local_ledger/lib/local_ledger/entry.ex | vanmil/ewallet | 6c1aca95a83e0a9d93007670a40d8c45764a8122 | [
"Apache-2.0"
] | null | null | null | apps/local_ledger/lib/local_ledger/entry.ex | vanmil/ewallet | 6c1aca95a83e0a9d93007670a40d8c45764a8122 | [
"Apache-2.0"
] | null | null | null | defmodule LocalLedger.Entry do
@moduledoc """
This module is responsible for preparing and formatting the entries
before they are passed to a transaction to be inserted in the database.
"""
alias LocalLedgerDB.{Wallet, Token, Entry}
@doc """
Get or insert the given token and all the given addresses befor... | 24.727273 | 73 | 0.63174 |
9e76f530c13e82be12feab349455d09929aa109c | 1,099 | ex | Elixir | test/support/channel_case.ex | itsemilano/erlixir | 39fdcb86a9ccd55058682b3263d40efb9cbad11f | [
"MIT"
] | null | null | null | test/support/channel_case.ex | itsemilano/erlixir | 39fdcb86a9ccd55058682b3263d40efb9cbad11f | [
"MIT"
] | null | null | null | test/support/channel_case.ex | itsemilano/erlixir | 39fdcb86a9ccd55058682b3263d40efb9cbad11f | [
"MIT"
] | null | null | null | defmodule ErlixirWeb.ChannelCase do
@moduledoc """
This module defines the test case to be used by
channel tests.
Such tests rely on `Phoenix.ChannelTest` and also
import other functionality to make it easier
to build common data structures and query the data layer.
Finally, if the test case interacts w... | 29.702703 | 88 | 0.737034 |
9e770d532797f135a0ff03cc19d6715d13812464 | 124 | ex | Elixir | lib/google_fit/activity_type/skating.ex | tsubery/google_fit | 7578b832c560b3b4a78059ac86af6e111812712e | [
"Apache-2.0"
] | 2 | 2017-02-01T13:51:26.000Z | 2019-04-12T11:37:25.000Z | lib/google_fit/activity_type/skating.ex | tsubery/google_fit | 7578b832c560b3b4a78059ac86af6e111812712e | [
"Apache-2.0"
] | null | null | null | lib/google_fit/activity_type/skating.ex | tsubery/google_fit | 7578b832c560b3b4a78059ac86af6e111812712e | [
"Apache-2.0"
] | null | null | null | defmodule GoogleFit.ActivityType.Skating do
@moduledoc false
def code, do: GoogleFit.ActivityType.code(__MODULE__)
end
| 20.666667 | 55 | 0.806452 |
9e7715db385f6e93ce0039bd662420c8f7ff880e | 5,550 | ex | Elixir | lib/plug_best.ex | remiprev/plug_best | f3d5ee080128b88f5c2051c11e9ad6d6683206a4 | [
"MIT"
] | 9 | 2016-05-25T13:44:35.000Z | 2019-05-04T11:12:10.000Z | lib/plug_best.ex | remi/plug_best | f3d5ee080128b88f5c2051c11e9ad6d6683206a4 | [
"MIT"
] | 5 | 2016-05-26T13:32:14.000Z | 2016-06-06T12:15:03.000Z | lib/plug_best.ex | remiprev/plug_best | f3d5ee080128b88f5c2051c11e9ad6d6683206a4 | [
"MIT"
] | null | null | null | defmodule PlugBest do
@moduledoc """
A library that parses HTTP `Accept-*` headers and returns the best match based
on a list of values.
## Examples
```elixir
iex> conn = %Plug.Conn{req_headers: [{"accept-language", "fr-CA,fr;q=0.8,en;q=0.6,en-US;q=0.4"}]}
iex> conn |> PlugBest.best_language(["en", "fr"... | 34.90566 | 130 | 0.68036 |
9e771694f0f03cd528411b222a8fbf13b0b041b1 | 119,394 | ex | Elixir | lib/ecto/changeset.ex | matteing/ecto | beabc36931222ac574bb0047fef90d84cb138459 | [
"Apache-2.0"
] | null | null | null | lib/ecto/changeset.ex | matteing/ecto | beabc36931222ac574bb0047fef90d84cb138459 | [
"Apache-2.0"
] | null | null | null | lib/ecto/changeset.ex | matteing/ecto | beabc36931222ac574bb0047fef90d84cb138459 | [
"Apache-2.0"
] | null | null | null | defmodule Ecto.Changeset do
@moduledoc ~S"""
Changesets allow filtering, casting, validation and
definition of constraints when manipulating structs.
There is an example of working with changesets in the introductory
documentation in the `Ecto` module. The functions `cast/4` and
`change/2` are the usual en... | 38.427422 | 169 | 0.663442 |
9e771e6f7545ef9cd857ab3f44e7b11faa4b3e0a | 701 | ex | Elixir | apps/aehttpserver/lib/aehttpserver/web/controllers/peers_controller.ex | aeternity/epoch-elixir | d35613f5541a9bbebe61f90b8503a9b3416fe8b4 | [
"0BSD"
] | 131 | 2018-03-10T01:35:56.000Z | 2021-12-27T13:44:41.000Z | apps/aehttpserver/lib/aehttpserver/web/controllers/peers_controller.ex | aeternity/elixir-node | d35613f5541a9bbebe61f90b8503a9b3416fe8b4 | [
"0BSD"
] | 445 | 2018-03-12T09:46:17.000Z | 2018-12-12T09:52:07.000Z | apps/aehttpserver/lib/aehttpserver/web/controllers/peers_controller.ex | aeternity/epoch-elixir | d35613f5541a9bbebe61f90b8503a9b3416fe8b4 | [
"0BSD"
] | 23 | 2018-03-12T12:01:28.000Z | 2022-03-06T09:22:17.000Z | defmodule Aehttpserver.Web.PeersController do
use Aehttpserver.Web, :controller
alias Aecore.Peers.Worker, as: Peers
alias Aecore.Account.Account
alias Aecore.Keys
alias Aeutil.Environment
def info(conn, _params) do
sync_port = String.to_integer(Environment.get_env_or_default("SYNC_PORT", "3015"))
... | 23.366667 | 91 | 0.687589 |
9e7724b97eebe69884c6c88812191bae83ee0706 | 695 | exs | Elixir | test/lbcparser_test.exs | adanselm/lbcproxy | 6ed4987e804eaae68491878783fab9706d534a72 | [
"MIT"
] | 3 | 2016-03-06T21:23:44.000Z | 2017-03-13T23:39:25.000Z | test/lbcparser_test.exs | adanselm/lbcproxy | 6ed4987e804eaae68491878783fab9706d534a72 | [
"MIT"
] | null | null | null | test/lbcparser_test.exs | adanselm/lbcproxy | 6ed4987e804eaae68491878783fab9706d534a72 | [
"MIT"
] | null | null | null | defmodule LbcparserTest do
use ExUnit.Case
@laguna_p1 File.read!("fixture/voitures_renault_laguna_3_midi_py.htm")
test "reads classifieds and skips ads" do
expected = %{category: "(pro)", date: "Hier", id: "839541197",
link: "http://www.leboncoin.fr/voitures/839541197.htm?ca=16_s",
placement: ["... | 36.578947 | 102 | 0.683453 |
9e772e3f953828cd6aef031d272ef5e437a2de62 | 2,005 | exs | Elixir | test/xdr/transactions/operations/clawback_claimable_balance_result_test.exs | einerzg/stellar_base | 2d10c5fc3b8159efc5de10b5c7c665e3b57b3d8f | [
"MIT"
] | 3 | 2021-08-17T20:32:45.000Z | 2022-03-13T20:26:02.000Z | test/xdr/transactions/operations/clawback_claimable_balance_result_test.exs | einerzg/stellar_base | 2d10c5fc3b8159efc5de10b5c7c665e3b57b3d8f | [
"MIT"
] | 45 | 2021-08-12T20:19:41.000Z | 2022-03-27T21:00:10.000Z | test/xdr/transactions/operations/clawback_claimable_balance_result_test.exs | einerzg/stellar_base | 2d10c5fc3b8159efc5de10b5c7c665e3b57b3d8f | [
"MIT"
] | 2 | 2021-09-22T23:11:13.000Z | 2022-01-23T03:19:11.000Z | defmodule StellarBase.XDR.Operations.ClawbackClaimableBalanceResultTest do
use ExUnit.Case
alias StellarBase.XDR.Void
alias StellarBase.XDR.Operations.{
ClawbackClaimableBalanceResult,
ClawbackClaimableBalanceResultCode
}
describe "ClawbackClaimableBalanceResult" do
setup do
code = Clawba... | 32.33871 | 88 | 0.689277 |
9e77331e043918c2a14e8ecbdb22d87e97d56bb1 | 734 | ex | Elixir | lib/ynd_phx_bootstrap_web/gettext.ex | ynd-consult-ug/ynd-phx-bootstrap | 784480186fee0375a01a534fcf597d1ef026e7ac | [
"MIT"
] | 33 | 2018-02-01T16:02:05.000Z | 2020-08-20T07:47:33.000Z | lib/ynd_phx_bootstrap_web/gettext.ex | ynd-consult/ynd-phx-bootstrap | 784480186fee0375a01a534fcf597d1ef026e7ac | [
"MIT"
] | null | null | null | lib/ynd_phx_bootstrap_web/gettext.ex | ynd-consult/ynd-phx-bootstrap | 784480186fee0375a01a534fcf597d1ef026e7ac | [
"MIT"
] | 2 | 2020-10-30T10:49:38.000Z | 2021-03-29T15:07:40.000Z | defmodule YndPhxBootstrapWeb.Gettext do
@moduledoc """
A module providing Internationalization with a gettext-based API.
By using [Gettext](https://hexdocs.pm/gettext),
your module gains a set of macros for translations, for example:
import YndPhxBootstrapWeb.Gettext
# Simple translation
ge... | 29.36 | 72 | 0.692098 |
9e7761a5d8fca00ee5b6bc74fc27e49d85b24037 | 648 | exs | Elixir | apps/kitsune_aws_sqs/mix.exs | shirayukikitsune/ex_aws | c56063fa986b173f160155dfb5185d1881989d0a | [
"BSD-2-Clause"
] | 1 | 2021-07-07T12:45:55.000Z | 2021-07-07T12:45:55.000Z | apps/kitsune_aws_sqs/mix.exs | shirayukikitsune/ex_aws | c56063fa986b173f160155dfb5185d1881989d0a | [
"BSD-2-Clause"
] | null | null | null | apps/kitsune_aws_sqs/mix.exs | shirayukikitsune/ex_aws | c56063fa986b173f160155dfb5185d1881989d0a | [
"BSD-2-Clause"
] | null | null | null | defmodule KitsuneAwsSqs.MixProject do
use Mix.Project
def project do
[
app: :kitsune_aws_sqs,
version: "0.1.0",
build_path: "../../_build",
config_path: "../../config/config.exs",
deps_path: "../../deps",
lockfile: "../../mix.lock",
elixir: "~> 1.9",
start_perman... | 20.25 | 59 | 0.575617 |
9e7779966b943186e2ef04211fa05668884bda3a | 500 | exs | Elixir | config/test.exs | benhayehudi/phoenix_sms_nexmo | df75b17745185a9932b85eedd70d36d19db0c366 | [
"MIT"
] | 2 | 2019-02-26T17:33:21.000Z | 2019-04-06T21:04:32.000Z | config/test.exs | benhayehudi/phoenix_sms_nexmo | df75b17745185a9932b85eedd70d36d19db0c366 | [
"MIT"
] | null | null | null | config/test.exs | benhayehudi/phoenix_sms_nexmo | df75b17745185a9932b85eedd70d36d19db0c366 | [
"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 :sms_with_phoenix, SmsWithPhoenixWeb.Endpoint,
http: [port: 4002],
server: false
# Print only warnings and errors during test
config :logger, level: :warn
# Configure your database
config :sms... | 26.315789 | 56 | 0.754 |
9e7782eade3ce7ad1f2284e0dd0996071c66ca8a | 949 | ex | Elixir | lib/dogma/codeclimate_formatter.ex | fazibear/codeclimate-elixir | f4eaa2a35bbbd651f86cb530d80b5424dc94f887 | [
"MIT"
] | 7 | 2015-12-20T19:40:01.000Z | 2018-12-17T11:48:01.000Z | lib/dogma/codeclimate_formatter.ex | fazibear/codeclimate-elixir | f4eaa2a35bbbd651f86cb530d80b5424dc94f887 | [
"MIT"
] | 1 | 2016-07-15T16:40:33.000Z | 2017-06-07T15:37:44.000Z | lib/dogma/codeclimate_formatter.ex | fazibear/codeclimate-elixir | f4eaa2a35bbbd651f86cb530d80b5424dc94f887 | [
"MIT"
] | null | null | null | defmodule Dogma.CodeclimateFormatter do
@moduledoc """
"""
@doc """
Runs at the start of the test suite, printing nothing.
"""
def start(_), do: ""
@doc """
Runs after each script is tested, printing nothing.
"""
def script(_), do: ""
@doc """
Runs at the end of the test suite, printing json.... | 21.568182 | 63 | 0.567966 |
9e77999632d0e05a7d6f5895d5317b80bc407fd9 | 2,686 | ex | Elixir | lib/task_bunny/errors.ex | salemove/task_bunny | f1a69291b47f59cab1c010d48fda7551132ae51c | [
"MIT"
] | null | null | null | lib/task_bunny/errors.ex | salemove/task_bunny | f1a69291b47f59cab1c010d48fda7551132ae51c | [
"MIT"
] | 3 | 2019-08-13T13:05:26.000Z | 2021-11-10T08:12:51.000Z | lib/task_bunny/errors.ex | salemove/task_bunny | f1a69291b47f59cab1c010d48fda7551132ae51c | [
"MIT"
] | null | null | null | defmodule TaskBunny.ConfigError do
@moduledoc """
Raised when an error was found on TaskBunny config
"""
defexception [:message]
def exception(message: message) do
title = "Failed to load TaskBunny config"
message = "#{title}\n#{message}"
%__MODULE__{message: message}
end
end
defmodule TaskBun... | 24.642202 | 76 | 0.630678 |
9e77d4c2c8f946e0c54c13042805aa7de2ed3e6b | 4,328 | ex | Elixir | lib/memoize/cache_strategy/eviction.ex | davorbadrov/memoize | dd34c313de805e57da18c4e6142247cc8eb1ba6a | [
"MIT"
] | null | null | null | lib/memoize/cache_strategy/eviction.ex | davorbadrov/memoize | dd34c313de805e57da18c4e6142247cc8eb1ba6a | [
"MIT"
] | null | null | null | lib/memoize/cache_strategy/eviction.ex | davorbadrov/memoize | dd34c313de805e57da18c4e6142247cc8eb1ba6a | [
"MIT"
] | null | null | null | if Memoize.CacheStrategy.configured?(Memoize.CacheStrategy.Eviction) do
defmodule Memoize.CacheStrategy.Eviction do
@behaviour Memoize.CacheStrategy
@ets_tab __MODULE__
@read_history_tab Module.concat(__MODULE__, "ReadHistory")
@expiration_tab Module.concat(__MODULE__, "Expiration")
@opts Applic... | 29.643836 | 98 | 0.572551 |
9e78062bce1a330c3c910cba6ed467f593f3fb6a | 2,789 | ex | Elixir | clients/sheets/lib/google_api/sheets/v4/model/spreadsheet.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/sheets/lib/google_api/sheets/v4/model/spreadsheet.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/sheets/lib/google_api/sheets/v4/model/spreadsheet.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 43.578125 | 163 | 0.714593 |
9e78163f4e4db063a4804324795bf61da096e590 | 1,949 | exs | Elixir | mix.exs | evnu/sniff | 003bd858dd436752a141bfab3629a0cdfc7df2e0 | [
"Apache-2.0"
] | null | null | null | mix.exs | evnu/sniff | 003bd858dd436752a141bfab3629a0cdfc7df2e0 | [
"Apache-2.0"
] | null | null | null | mix.exs | evnu/sniff | 003bd858dd436752a141bfab3629a0cdfc7df2e0 | [
"Apache-2.0"
] | null | null | null | defmodule Mix.Tasks.Compile.Nif do
def run(_) do
generate_env()
case :os.type() do
{:unix, :darwin} -> 0 = Mix.Shell.IO.cmd("make -f make.darwin")
{:unix, :linux} -> 0 = Mix.Shell.IO.cmd("make -f make.linux")
{:win32, :nt} -> 0 = Mix.Shell.IO.cmd("nmake /f make.winnt")
end
:ok
end
... | 24.061728 | 132 | 0.566444 |
9e781c3a4f0ebcc7ff33279377724cd28ebfd4c1 | 1,914 | ex | Elixir | clients/speech/lib/google_api/speech/v1/model/speech_context.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/speech/lib/google_api/speech/v1/model/speech_context.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/speech/lib/google_api/speech/v1/model/speech_context.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "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... | 39.875 | 465 | 0.750261 |
9e7827f3581a970bb7617e017bae0c147d8f262d | 373 | ex | Elixir | lib/quest/main/questionnaire.ex | ench0/quest | 844043205aa78e6937243f6993cbd560b6a5765b | [
"MIT"
] | null | null | null | lib/quest/main/questionnaire.ex | ench0/quest | 844043205aa78e6937243f6993cbd560b6a5765b | [
"MIT"
] | null | null | null | lib/quest/main/questionnaire.ex | ench0/quest | 844043205aa78e6937243f6993cbd560b6a5765b | [
"MIT"
] | null | null | null | defmodule Quest.Main.Questionnaire do
use Ecto.Schema
schema "main_questionnaires" do
field :info, :string
field :status, :string
field :tags, {:array, :string}
field :title, :string
has_many :main_questions, Main.Question, on_delete: :delete_all
# has_many :main_options, through: [:main_q... | 23.3125 | 71 | 0.705094 |
9e782e6ad954be5ab61fc3095f75dbf2b01ff00a | 9,442 | exs | Elixir | test/watcher_test.exs | infinityoneframework/etop | 8e1fa45d52de752f7fab7df6f509e3c952a091c8 | [
"MIT"
] | 4 | 2020-10-21T16:41:05.000Z | 2022-03-22T11:36:08.000Z | test/watcher_test.exs | infinityoneframework/etop | 8e1fa45d52de752f7fab7df6f509e3c952a091c8 | [
"MIT"
] | 2 | 2021-10-04T10:03:18.000Z | 2022-01-29T08:36:02.000Z | test/watcher_test.exs | infinityoneframework/etop | 8e1fa45d52de752f7fab7df6f509e3c952a091c8 | [
"MIT"
] | 1 | 2021-10-15T06:16:45.000Z | 2021-10-15T06:16:45.000Z | defmodule Etop.WatcherTest do
use ExUnit.Case
import ExUnit.{CaptureIO, CaptureLog}
alias Etop.WatcherTest.WatcherServer, as: Server
setup meta do
Application.put_env(:etop, :etop, Etop)
etop_opts = Keyword.merge([first_interval: 10, interval: 50], meta[:etop_opts] || [])
opts =
meta
... | 28.269461 | 93 | 0.532408 |
9e78682858d1c0c0685bc73a4d2a129fd61ac6c2 | 633 | ex | Elixir | testData/org/elixir_lang/parser_definition/matched_dot_call_operation_parsing_test_case/Sigil.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 1,668 | 2015-01-03T05:54:27.000Z | 2022-03-25T08:01:20.000Z | testData/org/elixir_lang/parser_definition/matched_dot_call_operation_parsing_test_case/Sigil.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 2,018 | 2015-01-01T22:43:39.000Z | 2022-03-31T20:13:08.000Z | testData/org/elixir_lang/parser_definition/matched_dot_call_operation_parsing_test_case/Sigil.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 145 | 2015-01-15T11:37:16.000Z | 2021-12-22T05:51:02.000Z | ~c{one}.()
~c{one}.(function positional, key: value)
~c{one}.(key_one: value_one, key_two: value_two)
~c{one}.(
&one,
one <- two,
one when two,
one | two,
one = two,
one or two,
one || two,
one and two,
one && two,
one != two,
one < two,
one |> two,
one in two,
one ++ two,
one..two,
one ... | 11.105263 | 48 | 0.496051 |
9e78816f84a1f0c4e09fdc539c988f2743449201 | 518 | exs | Elixir | examples/delayed_job.exs | kianmeng/honeydew | 7c0e825c70ef4b72c82d02ca95491e7365d6b2e8 | [
"MIT"
] | 717 | 2015-06-15T19:30:54.000Z | 2022-03-22T06:10:09.000Z | examples/delayed_job.exs | kianmeng/honeydew | 7c0e825c70ef4b72c82d02ca95491e7365d6b2e8 | [
"MIT"
] | 106 | 2015-06-25T05:38:05.000Z | 2021-12-08T23:17:19.000Z | examples/delayed_job.exs | kianmeng/honeydew | 7c0e825c70ef4b72c82d02ca95491e7365d6b2e8 | [
"MIT"
] | 60 | 2015-06-07T00:48:37.000Z | 2022-03-06T08:20:23.000Z | #
# iex --erl "+C multi_time_warp" -S mix run examples/delayed_job.exs
#
defmodule Worker do
@behaviour Honeydew.Worker
def hello(enqueued_at) do
secs_later = DateTime.diff(DateTime.utc_now(), enqueued_at, :millisecond) / 1_000
IO.puts "I was delayed by #{secs_later}s!"
end
end
defmodule App do
def s... | 22.521739 | 85 | 0.710425 |
9e7882681aa7c9ee5135d395b5437254d2ec540c | 5,705 | ex | Elixir | lib/rcon/packet.ex | avitex/elixir-rcon | f27629607811d6441448262f0bebea6c366319ca | [
"MIT"
] | 2 | 2018-09-20T20:42:35.000Z | 2018-11-15T11:40:06.000Z | lib/rcon/packet.ex | avitex/elixir-rcon | f27629607811d6441448262f0bebea6c366319ca | [
"MIT"
] | 11 | 2020-03-12T07:44:56.000Z | 2021-06-25T15:36:30.000Z | lib/rcon/packet.ex | avitex/elixir-rcon | f27629607811d6441448262f0bebea6c366319ca | [
"MIT"
] | 4 | 2018-11-06T18:00:31.000Z | 2020-05-20T09:47:21.000Z | defmodule RCON.Packet do
@moduledoc """
Module for handling RCON packets.
"""
@initial_id 0
@auth_failed_id -1
# Null-term string, and packet terminator
@terminator_part <<0, 0>>
# Packet part lengths
@size_part_len 4
@id_part_len 4
@kind_part_len 4
@max_id 2_147_483_647
@max_body_len 1413... | 26.050228 | 80 | 0.632077 |
9e7886b787d15faeb46d4fed584679443444aac6 | 1,114 | ex | Elixir | lib/ex_doc/markdown.ex | mischov/meeseeks | 74f84010252da3298f8c74e90fdee1ab9ad6d700 | [
"Apache-2.0",
"MIT"
] | 291 | 2017-03-27T15:53:36.000Z | 2022-03-14T23:01:42.000Z | lib/ex_doc/markdown.ex | mischov/meeseeks | 74f84010252da3298f8c74e90fdee1ab9ad6d700 | [
"Apache-2.0",
"MIT"
] | 70 | 2017-03-30T23:32:34.000Z | 2021-06-27T06:26:28.000Z | lib/ex_doc/markdown.ex | mischov/meeseeks | 74f84010252da3298f8c74e90fdee1ab9ad6d700 | [
"Apache-2.0",
"MIT"
] | 23 | 2017-06-18T10:29:04.000Z | 2021-11-04T13:08:12.000Z | # Inspired by the similar solution in Pow (https://github.com/danschultzer/pow)
if Code.ensure_loaded?(ExDoc.Markdown.Earmark) do
# Due to how relative links works in ExDoc, it's necessary for us to use a
# custom markdown parser to ensure that paths will work in generated docs.
#
# Ref: https://github.com/elix... | 27.85 | 79 | 0.649013 |
9e788b1b63d20b51d0a7ac9444fd641ef0cbe611 | 20,082 | ex | Elixir | lib/ecto.ex | jccf091/ecto | 42d47a6da0711f842e1a0e6724a89b318b9b2144 | [
"Apache-2.0"
] | null | null | null | lib/ecto.ex | jccf091/ecto | 42d47a6da0711f842e1a0e6724a89b318b9b2144 | [
"Apache-2.0"
] | null | null | null | lib/ecto.ex | jccf091/ecto | 42d47a6da0711f842e1a0e6724a89b318b9b2144 | [
"Apache-2.0"
] | null | null | null | defmodule Ecto do
@moduledoc ~S"""
Ecto is split into 4 main components:
* `Ecto.Repo` - repositories are wrappers around the data store.
Via the repository, we can create, update, destroy and query existing entries.
A repository needs an adapter and credentials to communicate to the database
... | 33.029605 | 101 | 0.679863 |
9e78b8ff576a5bb720bebdc117e586e6fa2209f6 | 1,058 | ex | Elixir | lib/excoap/server.ex | mbialon/excoap | 929c3c799d6fd664acbc0caf0022a62f0d702df1 | [
"MIT"
] | 3 | 2015-09-26T06:57:56.000Z | 2016-12-14T17:08:44.000Z | lib/excoap/server.ex | mbialon/excoap | 929c3c799d6fd664acbc0caf0022a62f0d702df1 | [
"MIT"
] | 1 | 2018-12-17T19:54:52.000Z | 2018-12-17T19:54:52.000Z | lib/excoap/server.ex | mbialon/excoap | 929c3c799d6fd664acbc0caf0022a62f0d702df1 | [
"MIT"
] | null | null | null | defmodule Excoap.Server do
def start(port \\ 0, handler) do
pid = spawn_link(fn ->
open!(port) |> handle(handler)
end)
{:ok, pid}
end
def start!(port \\ 0, handler) do
{:ok, pid} = start(port, handler)
pid
end
defp open!(port) do
{:ok, socket} = :gen_udp.open(port, [:binary])
... | 23.511111 | 63 | 0.563327 |
9e78c070dea34fe5fe157d60c5b70ee40cd47157 | 861 | ex | Elixir | lib/proxir.ex | troelsim/proxir | fc897bc4ce551a92cba68caedf8f7debe1e90df9 | [
"Apache-2.0"
] | null | null | null | lib/proxir.ex | troelsim/proxir | fc897bc4ce551a92cba68caedf8f7debe1e90df9 | [
"Apache-2.0"
] | null | null | null | lib/proxir.ex | troelsim/proxir | fc897bc4ce551a92cba68caedf8f7debe1e90df9 | [
"Apache-2.0"
] | null | null | null | defmodule Proxir do
@moduledoc """
Documentation for Proxir.
"""
@doc """
Hello world.
## Examples
iex> Proxir.hello
:world
"""
def main(args) do
parse_args(args)
end
def parse_args([port, host, remote_port]) when
is_integer(port) and
is_binary(host) and
is_int... | 19.568182 | 89 | 0.637631 |
9e790859c1eefe4e1df92a944c27aff8058bf8df | 345 | exs | Elixir | priv/repo/seeds.exs | kawakami-o3/epcc | e0a102b5471e133580c92feb91ec9597f1cf7021 | [
"MIT"
] | null | null | null | priv/repo/seeds.exs | kawakami-o3/epcc | e0a102b5471e133580c92feb91ec9597f1cf7021 | [
"MIT"
] | 3 | 2020-07-17T03:56:23.000Z | 2021-05-09T00:04:45.000Z | priv/repo/seeds.exs | kawakami-o3/epcc | e0a102b5471e133580c92feb91ec9597f1cf7021 | [
"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:
#
# Epcc.Repo.insert!(%Epcc.SomeSchema{})
#
# We recommend using the bang functions (`insert!`, `update!`
# and so on) as they will fail ... | 28.75 | 61 | 0.701449 |
9e7917ed6bb7bf4bbc4a7288d8e3f3d9c40d0c5e | 2,966 | ex | Elixir | clients/firestore/lib/google_api/firestore/v1beta1/model/listen_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/firestore/lib/google_api/firestore/v1beta1/model/listen_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/firestore/lib/google_api/firestore/v1beta1/model/listen_response.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... | 50.271186 | 288 | 0.747808 |
9e793330ef5f357887a3eb0d11940d7b7b38efab | 7,043 | exs | Elixir | test/rover_test.exs | nicolafiorillo/mars_rover | 03f74c3fb6f867e78c9e51fad73ddca99d004231 | [
"MIT"
] | null | null | null | test/rover_test.exs | nicolafiorillo/mars_rover | 03f74c3fb6f867e78c9e51fad73ddca99d004231 | [
"MIT"
] | null | null | null | test/rover_test.exs | nicolafiorillo/mars_rover | 03f74c3fb6f867e78c9e51fad73ddca99d004231 | [
"MIT"
] | null | null | null | defmodule RoverTest do
use ExUnit.Case
test "create a rover and send to planet" do
{:ok, mars} = MarsRover.Planet.start_link(10, 10)
{:ok, _rover} = MarsRover.Rover.start_link(mars, 1, 1)
end
test "send a rover to an obstacle" do
{:ok, mars} = MarsRover.Planet.start_link(10, 10)
{:ok, {1, 1}} ... | 38.697802 | 119 | 0.649723 |
9e7940aa2b891957ae8597449b532c265aff21af | 1,738 | ex | Elixir | lib/auto_api/capabilities/vehicle_location_capability.ex | nonninz/auto-api-elixir | 53e11542043285e94bbb5a0a3b8ffff0b1b47167 | [
"MIT"
] | null | null | null | lib/auto_api/capabilities/vehicle_location_capability.ex | nonninz/auto-api-elixir | 53e11542043285e94bbb5a0a3b8ffff0b1b47167 | [
"MIT"
] | null | null | null | lib/auto_api/capabilities/vehicle_location_capability.ex | nonninz/auto-api-elixir | 53e11542043285e94bbb5a0a3b8ffff0b1b47167 | [
"MIT"
] | null | null | null | # AutoAPI
# The MIT License
#
# Copyright (c) 2018- High-Mobility GmbH (https://high-mobility.com)
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without lim... | 38.622222 | 79 | 0.750288 |
9e79452b3106fa30edbbe688e5d26bc5f283e7fb | 192 | exs | Elixir | test/bio/position/generator_test.exs | xire28/bio | c3266b551f8ac855653d6de7f13fd566f2daa549 | [
"MIT"
] | null | null | null | test/bio/position/generator_test.exs | xire28/bio | c3266b551f8ac855653d6de7f13fd566f2daa549 | [
"MIT"
] | null | null | null | test/bio/position/generator_test.exs | xire28/bio | c3266b551f8ac855653d6de7f13fd566f2daa549 | [
"MIT"
] | null | null | null | defmodule Bio.Position.GeneratorTest do
alias Bio.Position
use ExUnit.Case
doctest Position.Generator
test "create" do
assert %Position{} = Position.Generator.create()
end
end
| 17.454545 | 52 | 0.744792 |
9e795a58620ea6e3dfa64d29c6ffde85df1bce07 | 4,450 | ex | Elixir | lib/cp_mgmt/access_layer.ex | willfore/cp_mgmt | 7652c5102e0bf154293f97364609a4266bd70bd2 | [
"Apache-2.0"
] | null | null | null | lib/cp_mgmt/access_layer.ex | willfore/cp_mgmt | 7652c5102e0bf154293f97364609a4266bd70bd2 | [
"Apache-2.0"
] | null | null | null | lib/cp_mgmt/access_layer.ex | willfore/cp_mgmt | 7652c5102e0bf154293f97364609a4266bd70bd2 | [
"Apache-2.0"
] | null | null | null | defmodule CpMgmt.AccessLayer do
@moduledoc """
This module manages simple Access Layer functions with the Web API
"""
defstruct(status: nil, data: %{})
alias CpMgmt.AccessLayer
@doc """
Creates an Access Layer via the API
## Examples
iex> CpMgmt.AccessLayer.add("some-layer-name", ["add-default-r... | 29.865772 | 80 | 0.510112 |
9e795cf5d4454e7f2b3bc5f943cc9879dff001be | 4,120 | exs | Elixir | test/client_test.exs | kanatohodets/zookeeper-elixir | 773f63583af4f3de923ddf6a07a686330ddd3a30 | [
"MIT"
] | 19 | 2015-10-08T07:23:32.000Z | 2021-06-25T09:30:28.000Z | test/client_test.exs | kanatohodets/zookeeper-elixir | 773f63583af4f3de923ddf6a07a686330ddd3a30 | [
"MIT"
] | 1 | 2016-02-18T22:39:01.000Z | 2016-02-18T22:39:01.000Z | test/client_test.exs | kanatohodets/zookeeper-elixir | 773f63583af4f3de923ddf6a07a686330ddd3a30 | [
"MIT"
] | 20 | 2015-08-13T00:04:08.000Z | 2021-05-27T23:08:13.000Z | defmodule Zookeeper.ClientTest do
use ExUnit.Case
alias Zookeeper.Client, as: ZK
alias Zookeeper.ZnodeStat
# TODO: test ACL
setup_all do
{:ok, pid} = ZK.start_link
pid |> cleanup
{:ok, pid: pid}
end
setup %{pid: pid}=context do
on_exit context, fn -> cleanup(pid) end
:ok
end
t... | 31.450382 | 123 | 0.585194 |
9e797af1c5bc019ee5fe8cd27fe7287c6cf61ae7 | 8,837 | ex | Elixir | clients/display_video/lib/google_api/display_video/v1/api/partners.ex | EVLedger/elixir-google-api | 61edef19a5e2c7c63848f7030c6d8d651e4593d4 | [
"Apache-2.0"
] | null | null | null | clients/display_video/lib/google_api/display_video/v1/api/partners.ex | EVLedger/elixir-google-api | 61edef19a5e2c7c63848f7030c6d8d651e4593d4 | [
"Apache-2.0"
] | null | null | null | clients/display_video/lib/google_api/display_video/v1/api/partners.ex | EVLedger/elixir-google-api | 61edef19a5e2c7c63848f7030c6d8d651e4593d4 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 42.690821 | 196 | 0.621252 |
9e79a9a5793bc8a20193be572adb8d27775d4e46 | 2,070 | ex | Elixir | lib/honeydew/dispatcher/lru_node.ex | evadne/honeydew | c3c2f6095a28393cae13c0e686bdb6257d532ca1 | [
"MIT"
] | null | null | null | lib/honeydew/dispatcher/lru_node.ex | evadne/honeydew | c3c2f6095a28393cae13c0e686bdb6257d532ca1 | [
"MIT"
] | null | null | null | lib/honeydew/dispatcher/lru_node.ex | evadne/honeydew | c3c2f6095a28393cae13c0e686bdb6257d532ca1 | [
"MIT"
] | null | null | null | defmodule Honeydew.Dispatcher.LRUNode do
alias Honeydew.Dispatcher.LRU
# TODO: docs
def init do
# {node_queue, workers}
{:ok, {:queue.new, Map.new}}
end
def available?({_node_queue, workers}) do
workers
|> Map.values
|> Enum.any?(&LRU.available?/1)
end
def check_in(worker, {node_qu... | 27.972973 | 94 | 0.612077 |
9e79cb8e8c377a4298294e05983d760efcff1590 | 915 | ex | Elixir | lib/ergo.ex | mmower/ergo | f0cfa8debd6697c56509e7856578dc49666f3ff2 | [
"MIT"
] | 5 | 2021-07-11T13:01:56.000Z | 2021-12-29T17:02:00.000Z | lib/ergo.ex | mmower/ergo | f0cfa8debd6697c56509e7856578dc49666f3ff2 | [
"MIT"
] | null | null | null | lib/ergo.ex | mmower/ergo | f0cfa8debd6697c56509e7856578dc49666f3ff2 | [
"MIT"
] | null | null | null | defmodule Ergo do
@moduledoc "README.md"
|> File.read!()
|> String.split("<!-- MDOC !-->")
|> Enum.fetch!(1)
alias Ergo.{Context, Parser}
use Application
@doc ~S"""
`start/2` should be called before
"""
def start(_type, _args) do
Supervisor.start_link([Ergo.P... | 24.72973 | 138 | 0.610929 |
9e79ee69861d8b1a336a458fa436d206af120413 | 1,671 | exs | Elixir | mix.exs | pivstone/docker_client | 44d3093f97eebf7d2eb9f98e4b5d584cb8f58a0e | [
"MIT"
] | 1 | 2017-11-15T12:31:19.000Z | 2017-11-15T12:31:19.000Z | mix.exs | pivstone/docker_client | 44d3093f97eebf7d2eb9f98e4b5d584cb8f58a0e | [
"MIT"
] | null | null | null | mix.exs | pivstone/docker_client | 44d3093f97eebf7d2eb9f98e4b5d584cb8f58a0e | [
"MIT"
] | 2 | 2018-11-12T04:09:03.000Z | 2019-07-17T13:50:54.000Z | defmodule Docker.Mixfile do
use Mix.Project
def project do
[app: :docker_client,
version: "0.2.0",
elixir: "~> 1.3",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps(),
name: "docker_client",
test_coverage: [tool: ExCoveralls],
preferred_cl... | 27.393443 | 122 | 0.590066 |
9e79f19ebbc37854a64f7c5848b3b628af1db623 | 153 | exs | Elixir | eventLoggingService/test/event_logging_test.exs | andraspatka/jobportal-ms | 006c8ca212f88566113c4b5c00dfe1d4e421c034 | [
"MIT"
] | 1 | 2021-05-25T18:24:27.000Z | 2021-05-25T18:24:27.000Z | eventLoggingService/test/event_logging_test.exs | andraspatka/jobportal-ms | 006c8ca212f88566113c4b5c00dfe1d4e421c034 | [
"MIT"
] | 1 | 2021-05-23T09:50:10.000Z | 2021-05-23T09:50:10.000Z | eventLoggingService/test/event_logging_test.exs | andraspatka/jobportal-ms | 006c8ca212f88566113c4b5c00dfe1d4e421c034 | [
"MIT"
] | null | null | null | defmodule EventLoggingTest do
use ExUnit.Case
doctest EventLogging
test "greets the world" do
assert EventLogging.hello() == :world
end
end
| 17 | 41 | 0.738562 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.