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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1a381d8597198d79216010b5c01442aa60114dc3 | 8,551 | ex | Elixir | clients/cloud_build/lib/google_api/cloud_build/v1/model/build_trigger.ex | corp-momenti/elixir-google-api | fe1580e305789ab2ca0741791b8ffe924bd3240c | [
"Apache-2.0"
] | 1 | 2021-10-01T09:20:41.000Z | 2021-10-01T09:20:41.000Z | clients/cloud_build/lib/google_api/cloud_build/v1/model/build_trigger.ex | corp-momenti/elixir-google-api | fe1580e305789ab2ca0741791b8ffe924bd3240c | [
"Apache-2.0"
] | null | null | null | clients/cloud_build/lib/google_api/cloud_build/v1/model/build_trigger.ex | corp-momenti/elixir-google-api | fe1580e305789ab2ca0741791b8ffe924bd3240c | [
"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... | 77.736364 | 528 | 0.717694 |
1a38219a4eaf09f4c43c4e6e38546a461ba439e9 | 1,148 | exs | Elixir | apps/artemis/test/artemis/contexts/permission/get_permission_test.exs | artemis-platform/artemis_dashboard | 5ab3f5ac4c5255478bbebf76f0e43b44992e3cab | [
"MIT"
] | 9 | 2019-08-19T19:56:34.000Z | 2022-03-22T17:56:38.000Z | apps/artemis/test/artemis/contexts/permission/get_permission_test.exs | chrislaskey/artemis_teams | 9930c3d9528e37b76f0525390e32b66eed7eadde | [
"MIT"
] | 7 | 2019-07-12T21:41:01.000Z | 2020-08-17T21:29:22.000Z | apps/artemis/test/artemis/contexts/permission/get_permission_test.exs | chrislaskey/artemis_teams | 9930c3d9528e37b76f0525390e32b66eed7eadde | [
"MIT"
] | 2 | 2019-04-10T13:34:15.000Z | 2019-05-17T02:42:24.000Z | defmodule Artemis.GetPermissionTest do
use Artemis.DataCase
import Artemis.Factories
alias Artemis.GetPermission
setup do
permission = insert(:permission)
{:ok, permission: permission}
end
describe "call" do
test "returns nil permission not found" do
invalid_id = 50_000_000
ass... | 26.090909 | 113 | 0.696864 |
1a384a882a72a2d33a857db8cffa669ae5ae72cc | 7,033 | ex | Elixir | 01-elixir-in-action/deps/dialyxir/lib/dialyxir/formatter.ex | rgfaber/robex | 1c3ea12795a51b5517c8a5e6da225c68cc3d66cc | [
"MIT"
] | null | null | null | 01-elixir-in-action/deps/dialyxir/lib/dialyxir/formatter.ex | rgfaber/robex | 1c3ea12795a51b5517c8a5e6da225c68cc3d66cc | [
"MIT"
] | null | null | null | 01-elixir-in-action/deps/dialyxir/lib/dialyxir/formatter.ex | rgfaber/robex | 1c3ea12795a51b5517c8a5e6da225c68cc3d66cc | [
"MIT"
] | null | null | null | defmodule Dialyxir.Formatter do
@moduledoc """
Elixir-friendly dialyzer formatter.
Wrapper around normal Dialyzer warning messages that provides
example output for error messages.
"""
import Dialyxir.Output, only: [info: 1]
alias Dialyxir.FilterMap
def formatted_time(duration_us) do
minutes = div... | 27.580392 | 96 | 0.641689 |
1a38524d3a7ed730b60de6dd73be497a1f1c2e68 | 17,884 | exs | Elixir | test/credo/code/heredocs_test.exs | linduxed/credo | b4235a771eebcf0d1b047fc6b88d43905236e1d5 | [
"MIT"
] | null | null | null | test/credo/code/heredocs_test.exs | linduxed/credo | b4235a771eebcf0d1b047fc6b88d43905236e1d5 | [
"MIT"
] | null | null | null | test/credo/code/heredocs_test.exs | linduxed/credo | b4235a771eebcf0d1b047fc6b88d43905236e1d5 | [
"MIT"
] | null | null | null | defmodule Credo.Code.HeredocsTest do
use Credo.TestHelper
alias Credo.Code.Heredocs
test "it should return the source without string literals 2" do
source = """
@moduledoc \"\"\"
this is an example # TODO: and this is no actual comment
\"\"\"
x = ~s{also: # TODO: no comment here}
?" # T... | 25.585122 | 110 | 0.533885 |
1a3870f62a28491f43abc9894ce621f1d29fdc0b | 3,146 | exs | Elixir | test/gdex/request_test.exs | fracek/gdex | 20c56076991d3eb660bf1e424d6560cc5d96e97f | [
"Apache-2.0"
] | 7 | 2017-12-12T19:08:40.000Z | 2021-11-11T04:58:55.000Z | test/gdex/request_test.exs | fracek/gdex | 20c56076991d3eb660bf1e424d6560cc5d96e97f | [
"Apache-2.0"
] | null | null | null | test/gdex/request_test.exs | fracek/gdex | 20c56076991d3eb660bf1e424d6560cc5d96e97f | [
"Apache-2.0"
] | 2 | 2018-11-21T17:05:56.000Z | 2019-04-07T19:33:12.000Z | defmodule Gdex.RequestTest do
use ExUnit.Case, async: false
import TestHelper
test "new should return the module struct" do
expected = %Gdex.Request{
method: "GET",
path: "/abc/def",
body: "",
params: [],
headers: [],
paginated: false,
}
assert expected == Gdex.Re... | 33.468085 | 109 | 0.643357 |
1a3891901dc715bf46c64d0cf106ec01a9efd1b4 | 1,769 | ex | Elixir | clients/artifact_registry/lib/google_api/artifact_registry/v1/model/list_tags_response.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/artifact_registry/lib/google_api/artifact_registry/v1/model/list_tags_response.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/artifact_registry/lib/google_api/artifact_registry/v1/model/list_tags_response.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"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.38 | 153 | 0.732052 |
1a38a9c35539d717de235b3815e907b7dd85d297 | 5,272 | ex | Elixir | apps/snitch_core/lib/core/data/schema/tax/tax_zone.ex | Acrecio/avia | 54d264fc179b5b5f17d174854bdca063e1d935e9 | [
"MIT"
] | 456 | 2018-09-20T02:40:59.000Z | 2022-03-07T08:53:48.000Z | apps/snitch_core/lib/core/data/schema/tax/tax_zone.ex | Acrecio/avia | 54d264fc179b5b5f17d174854bdca063e1d935e9 | [
"MIT"
] | 273 | 2018-09-19T06:43:43.000Z | 2021-08-07T12:58:26.000Z | apps/snitch_core/lib/core/data/schema/tax/tax_zone.ex | Acrecio/avia | 54d264fc179b5b5f17d174854bdca063e1d935e9 | [
"MIT"
] | 122 | 2018-09-26T16:32:46.000Z | 2022-03-13T11:44:19.000Z | defmodule Snitch.Data.Schema.TaxZone do
@moduledoc """
Models a Tax Zone.
Tax tax_zone plays an important role in tax calculation.
The `address` for which tax needs to be calculated is evaluated against the
tax zone which best encompasses the address.
A tax zone can be of the type country or state dependin... | 30.651163 | 90 | 0.689681 |
1a38b41d691e99ac9f29fb24110dc7a2bae3924f | 1,977 | exs | Elixir | test/onsor/partners/partners_test.exs | ashkan18/onsor | 73b75b24f638f1a425de8ebf4454df971040e9f2 | [
"MIT"
] | null | null | null | test/onsor/partners/partners_test.exs | ashkan18/onsor | 73b75b24f638f1a425de8ebf4454df971040e9f2 | [
"MIT"
] | 4 | 2021-03-09T00:47:04.000Z | 2022-02-10T15:15:28.000Z | test/onsor/partners/partners_test.exs | ashkan18/onsor | 73b75b24f638f1a425de8ebf4454df971040e9f2 | [
"MIT"
] | null | null | null | defmodule Onsor.PartnersTest do
use Onsor.DataCase
alias Onsor.Partners
describe "vendors" do
alias Onsor.Partners.Vendor
@valid_attrs %{name: "some name"}
@update_attrs %{name: "some updated name"}
@invalid_attrs %{name: nil}
def vendor_fixture(attrs \\ %{}) do
{:ok, vendor} =
... | 30.415385 | 89 | 0.669702 |
1a38bec2840101d062140ba657005fc679914891 | 136 | exs | Elixir | apps/games/test/games_test.exs | aef-/scatonslack | 7f5b01464a48482981f6b74a1013bf82d739b3e1 | [
"MIT"
] | null | null | null | apps/games/test/games_test.exs | aef-/scatonslack | 7f5b01464a48482981f6b74a1013bf82d739b3e1 | [
"MIT"
] | null | null | null | apps/games/test/games_test.exs | aef-/scatonslack | 7f5b01464a48482981f6b74a1013bf82d739b3e1 | [
"MIT"
] | null | null | null | defmodule ScatOnSlack.GamesTest do
use ExUnit.Case
doctest ScatOnSlack.Games
test "the truth" do
assert 1 + 1 == 2
end
end
| 15.111111 | 34 | 0.705882 |
1a38bf162f4cd9013b453557527cb316748dcc09 | 356 | ex | Elixir | lib/exnn/trainer.ex | zampino/exnn | 2be888df107644daab1aca7614fecb4940fe3c84 | [
"MIT"
] | 104 | 2015-06-18T18:54:25.000Z | 2021-11-04T15:07:02.000Z | lib/exnn/trainer.ex | nelyj/exnn | 2be888df107644daab1aca7614fecb4940fe3c84 | [
"MIT"
] | 3 | 2016-10-09T11:19:42.000Z | 2018-09-17T16:36:32.000Z | lib/exnn/trainer.ex | nelyj/exnn | 2be888df107644daab1aca7614fecb4940fe3c84 | [
"MIT"
] | 17 | 2016-03-08T19:02:51.000Z | 2019-04-27T16:40:52.000Z | defmodule EXNN.Trainer do
@moduledoc ~S(
training API
)
@doc """
```elixir
EXNN.Trainer.start tolerance: 0.01, stability_count: 10
```
Starts the trainer and hit sensors for sync round.
"""
def start(options \\ []) do
# here the trainer FSM enters training mode
EXNN.Trainer.Sy... | 18.736842 | 61 | 0.643258 |
1a38c30fe122fa610c8eccdb3466bcd0fcc6e4ee | 375 | ex | Elixir | web/views/api/user_view.ex | ClubNix/academy | 962be0defc1d8eedc5d19ac0a65e931c794c6538 | [
"MIT"
] | 3 | 2016-06-18T17:46:14.000Z | 2020-01-21T03:19:41.000Z | web/views/api/user_view.ex | ClubNix/academy | 962be0defc1d8eedc5d19ac0a65e931c794c6538 | [
"MIT"
] | 18 | 2016-06-18T18:05:43.000Z | 2018-03-06T08:19:41.000Z | web/views/api/user_view.ex | ClubNix/academy | 962be0defc1d8eedc5d19ac0a65e931c794c6538 | [
"MIT"
] | 3 | 2016-10-26T19:51:06.000Z | 2018-09-18T09:06:14.000Z | defmodule Academy.API.UserView do
use Academy.Web, :view
def render("index.json", %{users: users}) do
render_many(users, Academy.API.UserView, "show.json")
end
def render("show.json", %{user: user}) do
%{
id: user.id,
name: user.name,
skill_levels: render_many(user.skill_levels, Aca... | 20.833333 | 91 | 0.653333 |
1a38e977adeacc4f7f703d699e090bb9dc31ed35 | 11,107 | ex | Elixir | lib/kafka_ex/server_0_p_8_p_2.ex | Zarathustra2/kafka_ex | 436a84c7a32bee40f1dbffc17a3c1a0f2fc98c30 | [
"MIT"
] | 536 | 2015-08-10T03:14:39.000Z | 2022-03-24T15:07:33.000Z | lib/kafka_ex/server_0_p_8_p_2.ex | Zarathustra2/kafka_ex | 436a84c7a32bee40f1dbffc17a3c1a0f2fc98c30 | [
"MIT"
] | 349 | 2015-09-16T21:27:42.000Z | 2022-03-28T08:51:56.000Z | lib/kafka_ex/server_0_p_8_p_2.ex | Zarathustra2/kafka_ex | 436a84c7a32bee40f1dbffc17a3c1a0f2fc98c30 | [
"MIT"
] | 180 | 2015-09-01T22:58:26.000Z | 2022-03-25T16:47:49.000Z | defmodule KafkaEx.Server0P8P2 do
@moduledoc """
Implements KafkaEx.Server behaviors for kafka >= 0.8.2 < 0.9.0 API.
"""
# these functions aren't implemented for 0.8.2
@dialyzer [
{:nowarn_function, kafka_server_heartbeat: 3},
{:nowarn_function, kafka_server_sync_group: 3},
{:nowarn_function, kafk... | 29 | 109 | 0.671919 |
1a390eeeabbe4c5994c3c42861444d436d1d440b | 1,923 | ex | Elixir | clients/cloud_resource_manager/lib/google_api/cloud_resource_manager/v2/model/list_folders_response.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/cloud_resource_manager/lib/google_api/cloud_resource_manager/v2/model/list_folders_response.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/cloud_resource_manager/lib/google_api/cloud_resource_manager/v2/model/list_folders_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... | 38.46 | 201 | 0.75143 |
1a3957e5f51da2de6d76778402946ae5a040e90e | 5,451 | exs | Elixir | test/membrane/sync_test.exs | eboskma/membrane_core | e216994fe1ba99c5d228a4b0959faa5fabb13b1c | [
"Apache-2.0"
] | null | null | null | test/membrane/sync_test.exs | eboskma/membrane_core | e216994fe1ba99c5d228a4b0959faa5fabb13b1c | [
"Apache-2.0"
] | null | null | null | test/membrane/sync_test.exs | eboskma/membrane_core | e216994fe1ba99c5d228a4b0959faa5fabb13b1c | [
"Apache-2.0"
] | null | null | null | defmodule Membrane.SyncTest do
use Bunch
use ExUnit.Case
@module Membrane.Sync
@task_number 10
@sync_delay 1
@error 5
@long_time 50
describe "should sync processes" do
defp requester_task(sync, time_multiplier) do
spawn_paused_task(fn ->
Process.sleep(10 * time_multiplier)
... | 23.294872 | 95 | 0.583379 |
1a397dd3dfd7468408632b0f19dd607598e3559b | 2,861 | ex | Elixir | clients/o_auth2/lib/google_api/o_auth2/v2/model/tokeninfo.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/o_auth2/lib/google_api/o_auth2/v2/model/tokeninfo.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/o_auth2/lib/google_api/o_auth2/v2/model/tokeninfo.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 40.295775 | 184 | 0.675638 |
1a39efe033349989cd280164eba5fb3a08bd2608 | 8,779 | exs | Elixir | ecc/test/parser_2_test.exs | SaladinoBelisario/c201-hadoken | 96a9fd4e10831f45d29cbb4e96043cb76d455085 | [
"BSD-2-Clause"
] | 1 | 2021-04-23T05:03:49.000Z | 2021-04-23T05:03:49.000Z | ecc/test/parser_2_test.exs | SaladinoBelisario/c201-hadoken | 96a9fd4e10831f45d29cbb4e96043cb76d455085 | [
"BSD-2-Clause"
] | null | null | null | ecc/test/parser_2_test.exs | SaladinoBelisario/c201-hadoken | 96a9fd4e10831f45d29cbb4e96043cb76d455085 | [
"BSD-2-Clause"
] | null | null | null | defmodule ParserTest2 do
use ExUnit.Case
# doctest Lexer
# Hay 7 pruebas que serian los
# casos validos de programas segun Nora
######################################################################################
IO.puts("Pruebas del parser 2a parte (operadores unarios) ")
test "1.- Bitwise" do
ass... | 29.069536 | 88 | 0.342066 |
1a39f4fcf90b3aa04eb619fcadccd216ae3b9986 | 1,784 | ex | Elixir | test/support/model_case.ex | b-a-b-e/ProComPrag | 50c6c87933e71cb69b5c95bc77bf591a34661410 | [
"MIT"
] | 1 | 2018-05-19T12:08:10.000Z | 2018-05-19T12:08:10.000Z | test/support/model_case.ex | b-a-b-e/ProComPrag | 50c6c87933e71cb69b5c95bc77bf591a34661410 | [
"MIT"
] | 64 | 2019-07-29T22:06:16.000Z | 2022-03-28T23:46:58.000Z | test/support/model_case.ex | babe-project/BABE | 50c6c87933e71cb69b5c95bc77bf591a34661410 | [
"MIT"
] | 1 | 2021-02-06T10:23:25.000Z | 2021-02-06T10:23:25.000Z | defmodule Magpie.ModelCase do
@moduledoc """
This module defines the test case to be used by
model tests.
You may define functions here to be used as helpers in
your model tests. See `errors_on/2`'s definition as reference.
Finally, if the test case interacts with the database,
it cannot be async. For t... | 27.030303 | 84 | 0.683857 |
1a3a09d6d19512d30e922485d03324b78f59212a | 2,566 | ex | Elixir | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2_original_detect_intent_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2_original_detect_intent_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2_original_detect_intent_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... | 44.241379 | 591 | 0.732268 |
1a3a0e47de84f6444162168e0252e5b1a74967d2 | 4,438 | ex | Elixir | lib/webapp/jobs/jobs.ex | runhyve/webapp | 434b074f98c1ebac657b56062c1c1a54e683dea1 | [
"BSD-2-Clause"
] | 12 | 2019-07-02T14:30:06.000Z | 2022-03-12T08:22:18.000Z | lib/webapp/jobs/jobs.ex | runhyve/webapp | 434b074f98c1ebac657b56062c1c1a54e683dea1 | [
"BSD-2-Clause"
] | 9 | 2020-03-16T20:10:50.000Z | 2021-06-17T17:45:44.000Z | lib/webapp/jobs/jobs.ex | runhyve/webapp | 434b074f98c1ebac657b56062c1c1a54e683dea1 | [
"BSD-2-Clause"
] | null | null | null | defmodule Webapp.Jobs do
@moduledoc """
The Jobs context.
"""
import Ecto.Query, warn: false
import Webapp.Hypervisors, only: [get_hypervisor_module: 1]
alias Webapp.Repo
alias Ecto.{
Multi,
Changeset
}
alias Webapp.{
Jobs.Job
}
@doc """
Returns the list of job.
## Examples
... | 21.033175 | 109 | 0.577512 |
1a3a23f01966e1599bb38693ae92c4005865400c | 15,899 | exs | Elixir | integration_test/cases/assoc.exs | tokafish/ecto | 45d23da6faf660303484d0c993930af674685631 | [
"Apache-2.0"
] | null | null | null | integration_test/cases/assoc.exs | tokafish/ecto | 45d23da6faf660303484d0c993930af674685631 | [
"Apache-2.0"
] | null | null | null | integration_test/cases/assoc.exs | tokafish/ecto | 45d23da6faf660303484d0c993930af674685631 | [
"Apache-2.0"
] | null | null | null | Code.require_file "../support/types.exs", __DIR__
defmodule Ecto.Integration.AssocTest do
use Ecto.Integration.Case, async: true
alias Ecto.Integration.TestRepo
import Ecto.Query
alias Ecto.Integration.Post
alias Ecto.Integration.User
alias Ecto.Integration.PostUser
alias Ecto.Integration.Comment
ali... | 32.054435 | 92 | 0.615762 |
1a3a4d91ca87bf8435b32e8a593a0a0e93cfc312 | 982 | ex | Elixir | priv/catalogue/catalogue.ex | dclausen/surface_bootstrap | f282b7c653160fb4b4ca687cf8fb13e68937884f | [
"MIT"
] | 17 | 2021-02-18T20:10:52.000Z | 2021-12-30T14:41:00.000Z | priv/catalogue/catalogue.ex | dclausen/surface_bootstrap | f282b7c653160fb4b4ca687cf8fb13e68937884f | [
"MIT"
] | 9 | 2021-03-21T20:15:48.000Z | 2021-06-23T07:45:20.000Z | priv/catalogue/catalogue.ex | dclausen/surface_bootstrap | f282b7c653160fb4b4ca687cf8fb13e68937884f | [
"MIT"
] | 10 | 2021-03-21T20:10:37.000Z | 2021-12-28T00:06:06.000Z | defmodule SurfaceBootstrap.Catalogue do
@moduledoc """
Catalogue implementation for SurfaceBootstrap.
Allows calalogue tools to properly run examples and playgrounds provided
by this lib.
"""
use Surface.Catalogue
load_asset("assets/js/app.js", as: :app_js)
load_asset("assets/css/app.css", as: :app_c... | 28.882353 | 216 | 0.647658 |
1a3a54a5ed7b35ccd9c12f6f02f1719752414fa1 | 1,892 | ex | Elixir | server/lib/connect_web.ex | rafbgarcia/conn | e23e09a8be900bc72c083780693d0fe5bd7cbd99 | [
"MIT"
] | null | null | null | server/lib/connect_web.ex | rafbgarcia/conn | e23e09a8be900bc72c083780693d0fe5bd7cbd99 | [
"MIT"
] | 3 | 2021-04-27T14:11:46.000Z | 2021-04-27T16:00:42.000Z | server/lib/connect_web.ex | rafbgarcia/conn | e23e09a8be900bc72c083780693d0fe5bd7cbd99 | [
"MIT"
] | null | null | null | defmodule ConnectWeb 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 ConnectWeb, :controller
use ConnectWeb, :view
The definitions below will be executed for every view,
controller, ... | 23.073171 | 76 | 0.685518 |
1a3a555ca4af5bf0dcd9bdf98d819141edfdfc2a | 1,388 | ex | Elixir | lib/mix/tasks/phoenix.gen.channel.ex | blunckr/fenix | aeccae9658ed3d85d8af8f28ce2584d407b43d6b | [
"MIT"
] | 2 | 2017-06-08T23:28:13.000Z | 2017-06-08T23:28:16.000Z | lib/mix/tasks/phoenix.gen.channel.ex | blunckr/fenix | aeccae9658ed3d85d8af8f28ce2584d407b43d6b | [
"MIT"
] | null | null | null | lib/mix/tasks/phoenix.gen.channel.ex | blunckr/fenix | aeccae9658ed3d85d8af8f28ce2584d407b43d6b | [
"MIT"
] | null | null | null | defmodule Mix.Tasks.Phoenix.Gen.Channel do
@moduledoc """
Generates a Phoenix channel.
mix phoenix.gen.channel Room
Accepts the module name for the channel
The generated model will contain:
* a channel in web/channels
* a channel_test in test/channels
"""
use Mix.Task
def run(args) do
... | 23.133333 | 90 | 0.654179 |
1a3a6aa4508990a8f2b5a311b614ec0581b3025d | 1,223 | exs | Elixir | farmbot_core/test/farmbot_celery_script/integration_test.exs | gdwb/farmbot_os | 0ef2697c580c9fbf37a22daa063a64addfcb778d | [
"MIT"
] | 1 | 2021-08-23T13:36:14.000Z | 2021-08-23T13:36:14.000Z | farmbot_core/test/farmbot_celery_script/integration_test.exs | gdwb/farmbot_os | 0ef2697c580c9fbf37a22daa063a64addfcb778d | [
"MIT"
] | null | null | null | farmbot_core/test/farmbot_celery_script/integration_test.exs | gdwb/farmbot_os | 0ef2697c580c9fbf37a22daa063a64addfcb778d | [
"MIT"
] | null | null | null | # This is a "kitchen sink" of sorts.
defmodule FarmbotCeleryScript.IntegrationTest do
use ExUnit.Case
use Mimic
alias FarmbotCeleryScript.Compiler
alias FarmbotCeleryScript.AST
alias FarmbotCeleryScript.Compiler.Scope
setup :verify_on_exit!
@fixtures [
"test/fixtures/execute.json",
"fixture/inn... | 26.586957 | 69 | 0.70646 |
1a3a71af49ab5f72444061c31ae492ed326dc075 | 2,779 | exs | Elixir | test/tasks/runners/make_test.exs | esl/buildex_common | 90d9736a7c9cc9504f173c19dd2a70f412dfbdb2 | [
"Apache-2.0"
] | 1 | 2021-03-11T23:24:01.000Z | 2021-03-11T23:24:01.000Z | test/tasks/runners/make_test.exs | esl/buildex_common | 90d9736a7c9cc9504f173c19dd2a70f412dfbdb2 | [
"Apache-2.0"
] | null | null | null | test/tasks/runners/make_test.exs | esl/buildex_common | 90d9736a7c9cc9504f173c19dd2a70f412dfbdb2 | [
"Apache-2.0"
] | 2 | 2021-03-11T23:27:39.000Z | 2022-03-06T10:09:40.000Z | defmodule Buildex.Common.Tasks.Runners.MakeTest do
use ExUnit.Case, async: false
import ExUnit.CaptureIO
alias Buildex.Common.Tasks.Task
alias Buildex.Common.Tasks.Runners.Make
@moduletag :integration
setup do
n = :rand.uniform(100)
# create random directory so it can run concurrently
base_d... | 22.055556 | 93 | 0.589421 |
1a3a8e0cc0592cf471c3fddb8195630356ec63b2 | 928 | ex | Elixir | hippo-backend/test/support/channel_case.ex | Tmw/Hippo | 6b100f4eb43c74dffff38dd974a00266f3dc99a2 | [
"MIT"
] | 8 | 2019-05-18T10:14:06.000Z | 2021-07-31T20:58:55.000Z | hippo-backend/test/support/channel_case.ex | Tmw/Hippo | 6b100f4eb43c74dffff38dd974a00266f3dc99a2 | [
"MIT"
] | 7 | 2019-07-20T17:48:03.000Z | 2022-02-26T10:41:56.000Z | hippo-backend/test/support/channel_case.ex | Tmw/Hippo | 6b100f4eb43c74dffff38dd974a00266f3dc99a2 | [
"MIT"
] | 1 | 2019-07-04T02:30:09.000Z | 2019-07-04T02:30:09.000Z | defmodule HippoWeb.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 wit... | 23.794872 | 59 | 0.711207 |
1a3aa746f071b41b2d528b33add43eb3338409f9 | 3,616 | ex | Elixir | lib/surface/catalogue/components/prop_input.ex | LQJacques/surface_catalogue | 8dc7a9c5576a7a6842faa5904594b5bc2ef5525f | [
"MIT"
] | null | null | null | lib/surface/catalogue/components/prop_input.ex | LQJacques/surface_catalogue | 8dc7a9c5576a7a6842faa5904594b5bc2ef5525f | [
"MIT"
] | null | null | null | lib/surface/catalogue/components/prop_input.ex | LQJacques/surface_catalogue | 8dc7a9c5576a7a6842faa5904594b5bc2ef5525f | [
"MIT"
] | null | null | null | defmodule Surface.Catalogue.Components.PropInput do
@moduledoc false
use Surface.Component
alias Surface.Components.Form.{TextInput, Checkbox, Select, NumberInput}
prop prop, :map
prop value, :any
def render(assigns) do
~F"""
<div class="field is-horizontal">
<div class="field-label is-sm... | 25.464789 | 112 | 0.512998 |
1a3afbd0009cc9eee6fad32c6b61da6ea8dc6775 | 207 | exs | Elixir | apps/neoscan_web/test/neoscan_web/controllers/home_controller_test.exs | cc1776/neo-scan | 49fc9256f5c7ed4e0a7cd43513b27ba5d9d4f287 | [
"MIT"
] | 1 | 2021-02-23T02:55:26.000Z | 2021-02-23T02:55:26.000Z | apps/neoscan_web/test/neoscan_web/controllers/home_controller_test.exs | cc1776/neo-scan | 49fc9256f5c7ed4e0a7cd43513b27ba5d9d4f287 | [
"MIT"
] | null | null | null | apps/neoscan_web/test/neoscan_web/controllers/home_controller_test.exs | cc1776/neo-scan | 49fc9256f5c7ed4e0a7cd43513b27ba5d9d4f287 | [
"MIT"
] | 1 | 2019-10-16T21:37:31.000Z | 2019-10-16T21:37:31.000Z | defmodule NeoscanWeb.PageControllerTest do
use NeoscanWeb.ConnCase
# test "GET /", %{conn: conn} do
# conn = get conn, "/"
# assert html_response(conn, 200) =~ "Welcome to Phoenix!"
# end
end
| 23 | 62 | 0.657005 |
1a3b1a8f732f291ad940d6c4207cb5ffeb5e063b | 390 | ex | Elixir | demo_yolo3/lib/demo_yolo3.ex | shoz-f/tfl_projects | 274db6b952e2f6042f7e3ab2ab2505f55a60de90 | [
"Apache-2.0"
] | null | null | null | demo_yolo3/lib/demo_yolo3.ex | shoz-f/tfl_projects | 274db6b952e2f6042f7e3ab2ab2505f55a60de90 | [
"Apache-2.0"
] | null | null | null | demo_yolo3/lib/demo_yolo3.ex | shoz-f/tfl_projects | 274db6b952e2f6042f7e3ab2ab2505f55a60de90 | [
"Apache-2.0"
] | null | null | null | defmodule DemoYolo3 do
@moduledoc """
Documentation for `DemoYolo3`.
"""
@doc """
"""
def test() do
img =
CImg.load("test/dog.jpg")
|> CImg.resize({416,416})
|> CImg.to_flatnorm()
DemoYolo3.Yolo3
|> TflInterp.set_input_tensor(0, img.data)
|> TflInterp.invoke()
|> TflI... | 19.5 | 70 | 0.602564 |
1a3b2474249c415218483a21a62e4d0181cb30eb | 1,663 | ex | Elixir | lib/xdr/ledger_entries/claimant_v0.ex | einerzg/stellar_base | 2d10c5fc3b8159efc5de10b5c7c665e3b57b3d8f | [
"MIT"
] | 3 | 2021-08-17T20:32:45.000Z | 2022-03-13T20:26:02.000Z | lib/xdr/ledger_entries/claimant_v0.ex | einerzg/stellar_base | 2d10c5fc3b8159efc5de10b5c7c665e3b57b3d8f | [
"MIT"
] | 45 | 2021-08-12T20:19:41.000Z | 2022-03-27T21:00:10.000Z | lib/xdr/ledger_entries/claimant_v0.ex | einerzg/stellar_base | 2d10c5fc3b8159efc5de10b5c7c665e3b57b3d8f | [
"MIT"
] | 2 | 2021-09-22T23:11:13.000Z | 2022-01-23T03:19:11.000Z | defmodule StellarBase.XDR.ClaimantV0 do
@moduledoc """
Representation of Stellar `ClaimantV0` type.
"""
alias StellarBase.XDR.{AccountID, ClaimPredicate}
@behaviour XDR.Declaration
@struct_spec XDR.Struct.new(destination: AccountID, predicate: ClaimPredicate)
@type t :: %__MODULE__{destination: Account... | 29.696429 | 97 | 0.696933 |
1a3b3a1de17d0ebd3fcabcd0961595cf27615482 | 1,009 | exs | Elixir | udemy/todo_app/config/config.exs | jdruk/learning-elixir | c5f4b6638ce61b8d649a240100725abb3b686547 | [
"MIT"
] | null | null | null | udemy/todo_app/config/config.exs | jdruk/learning-elixir | c5f4b6638ce61b8d649a240100725abb3b686547 | [
"MIT"
] | 2 | 2021-03-09T16:05:46.000Z | 2021-05-10T10:07:39.000Z | udemy/todo_app/config/config.exs | jdruk/learning-elixir | c5f4b6638ce61b8d649a240100725abb3b686547 | [
"MIT"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
#
# This configuration file is loaded before any dependency and
# is restricted to this project.
# General application configuration
use Mix.Config
config :todo_app,
ecto_repos: [TodoApp.Repo]
... | 32.548387 | 86 | 0.768087 |
1a3b5f68cc383ff0671e7b39a014a99fe60847c7 | 1,456 | ex | Elixir | apps/calgy_api/lib/calgy_api.ex | calgy/calgy | 624790f1299271010f963359a7e94097277a9ee8 | [
"MIT"
] | 1 | 2017-09-18T08:54:46.000Z | 2017-09-18T08:54:46.000Z | apps/calgy_api/lib/calgy_api.ex | calgy/calgy | 624790f1299271010f963359a7e94097277a9ee8 | [
"MIT"
] | null | null | null | apps/calgy_api/lib/calgy_api.ex | calgy/calgy | 624790f1299271010f963359a7e94097277a9ee8 | [
"MIT"
] | null | null | null | defmodule CalgyApi 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 CalgyApi, :controller
use CalgyApi, :view
The definitions below will be executed for every view,
controller, etc, s... | 23.111111 | 69 | 0.686126 |
1a3b9e2ab59618d424f87b8a68c71c527cd413e3 | 625 | ex | Elixir | lib/ex_mon.ex | riguelbf/exmongame | a2a7e0a702928bc0464b118afe05d27435e25dcb | [
"MIT"
] | null | null | null | lib/ex_mon.ex | riguelbf/exmongame | a2a7e0a702928bc0464b118afe05d27435e25dcb | [
"MIT"
] | null | null | null | lib/ex_mon.ex | riguelbf/exmongame | a2a7e0a702928bc0464b118afe05d27435e25dcb | [
"MIT"
] | null | null | null | defmodule ExMon do
alias ExMon.Player, as: PlayerBuilder
alias ExMon.Game, as: Game
alias ExMon.Game.{ Status, Actions }
@computer_player_name "Robotinik"
def create_player(name, move_avg, move_heal, move_rnd) do
PlayerBuilder.build(move_avg, move_heal, move_rnd, name)
end
def start_game(player) d... | 22.321429 | 75 | 0.7008 |
1a3bece77cbcf76f79ed912835fa10f82c1a15b6 | 2,371 | ex | Elixir | apps/shopping_web/lib/shopping_web.ex | paulanthonywilson/shopping | 11870c4d70b04fb139908793102ce3917d189275 | [
"MIT"
] | null | null | null | apps/shopping_web/lib/shopping_web.ex | paulanthonywilson/shopping | 11870c4d70b04fb139908793102ce3917d189275 | [
"MIT"
] | null | null | null | apps/shopping_web/lib/shopping_web.ex | paulanthonywilson/shopping | 11870c4d70b04fb139908793102ce3917d189275 | [
"MIT"
] | null | null | null | defmodule ShoppingWeb 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 ShoppingWeb, :controller
use ShoppingWeb, :view
The definitions below will be executed for every view,
controlle... | 22.798077 | 78 | 0.684943 |
1a3c2023b370dfc59b40bf23dd16dee83bb3f312 | 1,818 | exs | Elixir | apps/ewallet/test/ewallet/permissions/bouncer/targets/mint_target_test.exs | AndonMitev/EWallet | 898cde38933d6f134734528b3e594eedf5fa50f3 | [
"Apache-2.0"
] | 322 | 2018-02-28T07:38:44.000Z | 2020-05-27T23:09:55.000Z | apps/ewallet/test/ewallet/permissions/bouncer/targets/mint_target_test.exs | AndonMitev/EWallet | 898cde38933d6f134734528b3e594eedf5fa50f3 | [
"Apache-2.0"
] | 643 | 2018-02-28T12:05:20.000Z | 2020-05-22T08:34:38.000Z | apps/ewallet/test/ewallet/permissions/bouncer/targets/mint_target_test.exs | AndonMitev/EWallet | 898cde38933d6f134734528b3e594eedf5fa50f3 | [
"Apache-2.0"
] | 63 | 2018-02-28T10:57:06.000Z | 2020-05-27T23:10:38.000Z | # Copyright 2018-2019 OmiseGO Pte Ltd
#
# 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 ... | 32.464286 | 82 | 0.718372 |
1a3c22c9b1fdc82170c9b0d76065cc67f6d5674b | 1,986 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/instance_groups_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/instance_groups_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/instance_groups_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.72 | 213 | 0.751259 |
1a3c42e10a1130d87d470e836061c916574b561d | 129 | ex | Elixir | lib/fullstack_challenge/repo.ex | mlgubolin/fullstack-challenge | ac953fc420337ec9343ef634ab5fdcc0181804a6 | [
"MIT"
] | null | null | null | lib/fullstack_challenge/repo.ex | mlgubolin/fullstack-challenge | ac953fc420337ec9343ef634ab5fdcc0181804a6 | [
"MIT"
] | null | null | null | lib/fullstack_challenge/repo.ex | mlgubolin/fullstack-challenge | ac953fc420337ec9343ef634ab5fdcc0181804a6 | [
"MIT"
] | null | null | null | defmodule FullstackChallenge.Repo do
use Ecto.Repo,
otp_app: :fullstack_challenge,
adapter: Ecto.Adapters.Postgres
end
| 21.5 | 36 | 0.775194 |
1a3c56a7b527f08f9a5892a114736c3e3f7306c1 | 2,512 | exs | Elixir | mix.exs | sbouaked/plausible | d3eb565fa02c5bfbfbbc78880a98d5f0f9d69577 | [
"MIT"
] | null | null | null | mix.exs | sbouaked/plausible | d3eb565fa02c5bfbfbbc78880a98d5f0f9d69577 | [
"MIT"
] | null | null | null | mix.exs | sbouaked/plausible | d3eb565fa02c5bfbfbbc78880a98d5f0f9d69577 | [
"MIT"
] | null | null | null | defmodule Plausible.MixProject do
use Mix.Project
def project do
[
app: :plausible,
version: "0.1.0",
elixir: "~> 1.5",
elixirc_paths: elixirc_paths(Mix.env()), compilers: [:phoenix, :gettext] ++ Mix.compilers(),
start_permanent: Mix.env() == :prod,
aliases: aliases(),
... | 29.904762 | 108 | 0.539013 |
1a3cb8b79c779d0dcac95c5553f80dadba452de3 | 4,082 | exs | Elixir | test/auth/client_test.exs | anfly0/exBankID | 8e62f4250b533543a6b4b423b0c2fb3ec262dc7b | [
"MIT"
] | 15 | 2020-08-05T11:20:03.000Z | 2021-09-22T15:20:41.000Z | test/auth/client_test.exs | anfly0/exBankID | 8e62f4250b533543a6b4b423b0c2fb3ec262dc7b | [
"MIT"
] | 9 | 2020-08-10T14:42:27.000Z | 2021-06-14T14:45:05.000Z | test/auth/client_test.exs | anfly0/exBankID | 8e62f4250b533543a6b4b423b0c2fb3ec262dc7b | [
"MIT"
] | 2 | 2020-08-10T13:42:15.000Z | 2020-10-03T04:10:06.000Z | defmodule Test.Auth.Client do
use ExUnit.Case, async: true
setup do
bypass = Bypass.open()
{:ok, bypass: bypass}
end
test "client handles successful auth request", %{bypass: bypass} do
expected_response =
{:ok,
%ExBankID.Auth.Response{
orderRef: "131daac9-16c6-4618-beb0-36576... | 31.890625 | 98 | 0.649927 |
1a3cc4b26a945f32112eebf5827cca98cbbcd854 | 17,089 | exs | Elixir | test/lifelog/accounts_test.exs | jahio/lifelog | a3660e65acb3abdaac388b494736a645d825df1f | [
"MIT"
] | null | null | null | test/lifelog/accounts_test.exs | jahio/lifelog | a3660e65acb3abdaac388b494736a645d825df1f | [
"MIT"
] | null | null | null | test/lifelog/accounts_test.exs | jahio/lifelog | a3660e65acb3abdaac388b494736a645d825df1f | [
"MIT"
] | null | null | null | defmodule Lifelog.AccountsTest do
use Lifelog.DataCase
alias Lifelog.Accounts
import Lifelog.AccountsFixtures
alias Lifelog.Accounts.{User, UserToken}
describe "get_user_by_email/1" do
test "does not return the user if the email does not exist" do
refute Accounts.get_user_by_email("unknown@exampl... | 33.573674 | 97 | 0.659196 |
1a3ceee7dfab58fbc269d1d3fa71e0a992f402f6 | 942 | ex | Elixir | test/support/channel_case.ex | spawnfest/spawn_api | e99dbc20dfc5ff18747efc0c2dafbecdf577707c | [
"MIT"
] | 2 | 2018-12-19T16:12:41.000Z | 2020-01-20T17:37:15.000Z | test/support/channel_case.ex | spawnfest/spawn_api | e99dbc20dfc5ff18747efc0c2dafbecdf577707c | [
"MIT"
] | null | null | null | test/support/channel_case.ex | spawnfest/spawn_api | e99dbc20dfc5ff18747efc0c2dafbecdf577707c | [
"MIT"
] | null | null | null | defmodule SpawnApiWeb.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 ... | 24.789474 | 70 | 0.716561 |
1a3d2ca9134f81414fcd699b37d85bbed1e9e4eb | 3,049 | ex | Elixir | lib/oli/lti/lti_params.ex | malav2110/oli-torus | 8af64e762a7c8a2058bd27a7ab8e96539ffc055f | [
"MIT"
] | 1 | 2022-03-17T20:35:47.000Z | 2022-03-17T20:35:47.000Z | lib/oli/lti/lti_params.ex | malav2110/oli-torus | 8af64e762a7c8a2058bd27a7ab8e96539ffc055f | [
"MIT"
] | 9 | 2021-11-02T16:52:09.000Z | 2022-03-25T15:14:01.000Z | lib/oli/lti/lti_params.ex | malav2110/oli-torus | 8af64e762a7c8a2058bd27a7ab8e96539ffc055f | [
"MIT"
] | null | null | null | defmodule Oli.Lti.LtiParams do
use Ecto.Schema
import Ecto.Changeset
import Ecto.Query, warn: false
alias Oli.Repo
alias Oli.Lti.LtiParams
schema "lti_1p3_params" do
field(:issuer, :string)
field(:client_id, :string)
field(:deployment_id, :string)
field(:context_id, :string)
field(:sub... | 24.991803 | 113 | 0.591013 |
1a3d35207173c755f268f879c046c56ca4a1fcf3 | 1,525 | ex | Elixir | clients/content/lib/google_api/content/v2/model/products_custom_batch_request.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v2/model/products_custom_batch_request.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v2/model/products_custom_batch_request.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... | 31.770833 | 123 | 0.762623 |
1a3dcda92f858d06a150083f55eeb30d5e0e830e | 2,045 | ex | Elixir | clients/data_labeling/lib/google_api/data_labeling/v1beta1/model/google_cloud_datalabeling_v1p1alpha1_label_video_object_tracking_operation_metadata.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/data_labeling/lib/google_api/data_labeling/v1beta1/model/google_cloud_datalabeling_v1p1alpha1_label_video_object_tracking_operation_metadata.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/data_labeling/lib/google_api/data_labeling/v1beta1/model/google_cloud_datalabeling_v1p1alpha1_label_video_object_tracking_operation_metadata.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"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.258621 | 201 | 0.782885 |
1a3e21f77c81422b0fd25ccf48aeb10eefb981bf | 1,415 | ex | Elixir | apps/aecore/lib/aecore/pow/hashcash.ex | wuminzhe/elixir-node | eb87b47339a8349bac767dd4cf597dfaf0ed75c6 | [
"ISC"
] | null | null | null | apps/aecore/lib/aecore/pow/hashcash.ex | wuminzhe/elixir-node | eb87b47339a8349bac767dd4cf597dfaf0ed75c6 | [
"ISC"
] | null | null | null | apps/aecore/lib/aecore/pow/hashcash.ex | wuminzhe/elixir-node | eb87b47339a8349bac767dd4cf597dfaf0ed75c6 | [
"ISC"
] | null | null | null | defmodule Aecore.Pow.Hashcash do
@moduledoc """
Hashcash proof of work
"""
@doc """
Verify a nonce, returns :true | :false
"""
alias Aeutil.Bits
alias Aecore.Chain.BlockValidation
alias Aecore.Structures.Header
@spec verify(map()) :: boolean()
def verify(%Aecore.Structures.Header{} = block_head... | 27.211538 | 72 | 0.669965 |
1a3e2e8fe642eafcd2f7997feed84bae7d03d4ab | 769 | ex | Elixir | debian/watch.ex | kam1sh/hypai | 95e7392c85d689cba8f9f43418dc94472a9f17f8 | [
"MIT"
] | null | null | null | debian/watch.ex | kam1sh/hypai | 95e7392c85d689cba8f9f43418dc94472a9f17f8 | [
"MIT"
] | null | null | null | debian/watch.ex | kam1sh/hypai | 95e7392c85d689cba8f9f43418dc94472a9f17f8 | [
"MIT"
] | null | null | null | # Example watch control file for uscan
# Rename this file to "watch" and then you can run the "uscan" command
# to check for upstream updates and more.
# See uscan(1) for format
# Compulsory line, this is a version 3 file
version=3
# Uncomment to examine a Webpage
# <Webpage URL> <string match>
#http://www.example.co... | 32.041667 | 70 | 0.716515 |
1a3e32b60e16574d4a4a1f690aa7a2388b92ea33 | 3,510 | exs | Elixir | deps/ecto/integration_test/sql/subquery.exs | rchervin/phoenixportfolio | a5a6a60168d7261647a10a8dbd395b440db8a4f9 | [
"MIT"
] | null | null | null | deps/ecto/integration_test/sql/subquery.exs | rchervin/phoenixportfolio | a5a6a60168d7261647a10a8dbd395b440db8a4f9 | [
"MIT"
] | null | null | null | deps/ecto/integration_test/sql/subquery.exs | rchervin/phoenixportfolio | a5a6a60168d7261647a10a8dbd395b440db8a4f9 | [
"MIT"
] | null | null | null | Code.require_file "../support/types.exs", __DIR__
defmodule Ecto.Integration.SubQueryTest do
use Ecto.Integration.Case, async: true
alias Ecto.Integration.TestRepo
import Ecto.Query
alias Ecto.Integration.Post
alias Ecto.Integration.Comment
test "from: subqueries with select source" do
TestRepo.inser... | 40.344828 | 109 | 0.632479 |
1a3e621e06daf4747e193cdb300b5f92f852f965 | 360 | ex | Elixir | lib/user_service_web/views/pow_assent/registration_view.ex | sb8244/pow_starter_pack | 82e16c3e4139ecc85295078b54024f58f95ab794 | [
"MIT"
] | 13 | 2020-03-31T21:45:40.000Z | 2021-02-13T12:17:22.000Z | lib/user_service_web/views/pow_assent/registration_view.ex | sb8244/pow_starter_pack | 82e16c3e4139ecc85295078b54024f58f95ab794 | [
"MIT"
] | 1 | 2021-03-10T12:57:21.000Z | 2021-03-10T12:57:21.000Z | lib/user_service_web/views/pow_assent/registration_view.ex | sb8244/pow_starter_pack | 82e16c3e4139ecc85295078b54024f58f95ab794 | [
"MIT"
] | 1 | 2020-04-28T15:41:56.000Z | 2020-04-28T15:41:56.000Z | defmodule UserServiceWeb.PowAssent.RegistrationView do
use UserServiceWeb, :view
def provider_message(%{params: %{"provider" => "github"}}), do: "with Github."
def provider_message(_), do: "."
def email_taken?(%{errors: errors}) do
Enum.find(errors, fn
{:email, {_, [{:constraint, :unique}, _]}} -> t... | 25.714286 | 80 | 0.638889 |
1a3e9d1525b7bed1e0972cc0c020be7ad1e2ff6b | 1,154 | ex | Elixir | lib/credo_naming/check/consistency/module_filename/plugins/phoenix.ex | mirego/credo_filename_consistency | 48afc122823ce01cf57a5d2ee24ed6738b20d80b | [
"BSD-3-Clause"
] | 31 | 2019-04-19T13:57:56.000Z | 2019-06-13T07:25:41.000Z | lib/credo_naming/check/consistency/module_filename/plugins/phoenix.ex | mirego/credo_filename_consistency | 48afc122823ce01cf57a5d2ee24ed6738b20d80b | [
"BSD-3-Clause"
] | 3 | 2019-04-26T18:50:59.000Z | 2019-05-16T14:31:03.000Z | lib/credo_naming/check/consistency/module_filename/plugins/phoenix.ex | mirego/credo_filename_consistency | 48afc122823ce01cf57a5d2ee24ed6738b20d80b | [
"BSD-3-Clause"
] | 1 | 2019-04-26T15:19:23.000Z | 2019-04-26T15:19:23.000Z | defmodule CredoNaming.Check.Consistency.ModuleFilename.Plugins.Phoenix do
@moduledoc """
For Phoenix-specific filename consistency, the validator specifies
two naming exceptions for the "controller" and "view" folders.
This is needed because the folder structure is defined by something like
"/lib/app/control... | 36.0625 | 155 | 0.753899 |
1a3ec6ad43d4b0332e5444c6e159914663999315 | 63 | ex | Elixir | lib/csv_to_es/parsers/semicolon_csv.ex | edwardsmit/csv_to_es | 3af32f538cf2fbd618d7caf4130f90b8aa7e601f | [
"MIT"
] | null | null | null | lib/csv_to_es/parsers/semicolon_csv.ex | edwardsmit/csv_to_es | 3af32f538cf2fbd618d7caf4130f90b8aa7e601f | [
"MIT"
] | null | null | null | lib/csv_to_es/parsers/semicolon_csv.ex | edwardsmit/csv_to_es | 3af32f538cf2fbd618d7caf4130f90b8aa7e601f | [
"MIT"
] | null | null | null | NimbleCSV.define(CsvToEs.Parsers.SemicolonCsv, separator: ";")
| 31.5 | 62 | 0.793651 |
1a3ec6e6832843962475c8561da19a03a9aa9f1d | 1,665 | exs | Elixir | mix.exs | silppuri/daily | a31034dedbcc2eb74bd2e07e703df836c5b3607f | [
"MIT"
] | null | null | null | mix.exs | silppuri/daily | a31034dedbcc2eb74bd2e07e703df836c5b3607f | [
"MIT"
] | null | null | null | mix.exs | silppuri/daily | a31034dedbcc2eb74bd2e07e703df836c5b3607f | [
"MIT"
] | 1 | 2019-09-05T12:37:23.000Z | 2019-09-05T12:37:23.000Z | defmodule Daily.Mixfile do
use Mix.Project
def project do
[app: :daily,
version: "0.0.1",
elixir: "~> 1.4",
elixirc_paths: elixirc_paths(Mix.env),
compilers: [:phoenix, :gettext] ++ Mix.compilers,
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
aliases: a... | 29.732143 | 89 | 0.598198 |
1a3ec854360f7231a54373c3a25f28a2d0ad2a69 | 2,226 | ex | Elixir | clients/dialogflow/lib/google_api/dialogflow/v3/model/google_cloud_dialogflow_v2beta1_message_annotation.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/dialogflow/lib/google_api/dialogflow/v3/model/google_cloud_dialogflow_v2beta1_message_annotation.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/dialogflow/lib/google_api/dialogflow/v3/model/google_cloud_dialogflow_v2beta1_message_annotation.ex | dazuma/elixir-google-api | 6a9897168008efe07a6081d2326735fe332e522c | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 35.333333 | 310 | 0.740791 |
1a3ede899625849c64ba63dd1b8700d1ce455c5b | 7,810 | ex | Elixir | clients/service_management/lib/google_api/service_management/v1/api/operations.ex | chingor13/elixir-google-api | 85e13fa25c4c9f4618bb463ab4c79245fc6d2a7b | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/service_management/lib/google_api/service_management/v1/api/operations.ex | chingor13/elixir-google-api | 85e13fa25c4c9f4618bb463ab4c79245fc6d2a7b | [
"Apache-2.0"
] | null | null | null | clients/service_management/lib/google_api/service_management/v1/api/operations.ex | chingor13/elixir-google-api | 85e13fa25c4c9f4618bb463ab4c79245fc6d2a7b | [
"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 ... | 46.488095 | 196 | 0.635083 |
1a3ee83c2ff3f0ac91644c6c55e81e60607855e9 | 1,593 | ex | Elixir | lib/wallaby/experimental/chrome/chromedriver.ex | alecho/wallaby | 90c34245e6340d49a2976f3f60b810c4435c19f8 | [
"MIT"
] | null | null | null | lib/wallaby/experimental/chrome/chromedriver.ex | alecho/wallaby | 90c34245e6340d49a2976f3f60b810c4435c19f8 | [
"MIT"
] | null | null | null | lib/wallaby/experimental/chrome/chromedriver.ex | alecho/wallaby | 90c34245e6340d49a2976f3f60b810c4435c19f8 | [
"MIT"
] | null | null | null | defmodule Wallaby.Experimental.Chrome.Chromedriver do
@moduledoc false
use GenServer
alias Wallaby.Driver.Utils
alias Wallaby.Experimental.Chrome
def start_link do
GenServer.start_link(__MODULE__, :ok, name: __MODULE__)
end
def stop do
GenServer.stop(__MODULE__)
end
def base_url do
Gen... | 22.757143 | 89 | 0.672316 |
1a3ef80b1d769dba1725e69406479eae51688e8a | 930 | ex | Elixir | test/support/test_utils.ex | jeffersono7/jeffbank | b817b298ed2729fb0f458e19807b1503681ffb1d | [
"BSD-2-Clause"
] | null | null | null | test/support/test_utils.ex | jeffersono7/jeffbank | b817b298ed2729fb0f458e19807b1503681ffb1d | [
"BSD-2-Clause"
] | null | null | null | test/support/test_utils.ex | jeffersono7/jeffbank | b817b298ed2729fb0f458e19807b1503681ffb1d | [
"BSD-2-Clause"
] | null | null | null | defmodule JeffBank.TestUtils do
@moduledoc """
Módulo utilitário para testes
"""
alias JeffBank.Contas.{Create, Login}
import Plug.Conn
@cpf "90518762033"
defmacro __using__(_opts) do
quote do
@cpf unquote(@cpf)
defdelegate criar_conta, to: unquote(__MODULE__)
defdelegate get_tok... | 19.787234 | 111 | 0.664516 |
1a3f171db5bae99479743954f0141526a82670e3 | 618 | ex | Elixir | apps/tai/lib/tai/orders/order_transition_supervisor.ex | ccamateur/tai | 41c4b3e09dafc77987fa3f6b300c15461d981e16 | [
"MIT"
] | 276 | 2018-01-16T06:36:06.000Z | 2021-03-20T21:48:01.000Z | apps/tai/lib/tai/orders/order_transition_supervisor.ex | ccamateur/tai | 41c4b3e09dafc77987fa3f6b300c15461d981e16 | [
"MIT"
] | 73 | 2018-10-05T18:45:06.000Z | 2021-02-08T05:46:33.000Z | apps/tai/lib/tai/orders/order_transition_supervisor.ex | ccamateur/tai | 41c4b3e09dafc77987fa3f6b300c15461d981e16 | [
"MIT"
] | 43 | 2018-06-09T09:54:51.000Z | 2021-03-07T07:35:17.000Z | defmodule Tai.Orders.OrderTransitionSupervisor do
use Supervisor
alias Tai.Orders.OrderTransitionWorker
@spec start_link(pos_integer) :: Supervisor.on_start()
def start_link(worker_count) do
Supervisor.start_link(__MODULE__, worker_count, name: __MODULE__)
end
@impl true
def init(worker_count) do
... | 23.769231 | 69 | 0.669903 |
1a3f2c133aadeab0f3446baffaf0782b76ddbc65 | 346 | ex | Elixir | lib/okr_app_web/serializers/key_result.ex | sb8244/okr_app_pub | 933872107bd13390a0a5ea119d7997d4cb5ea7db | [
"MIT"
] | 12 | 2019-05-10T21:48:06.000Z | 2021-11-07T14:04:30.000Z | lib/okr_app_web/serializers/key_result.ex | sb8244/okr_app_pub | 933872107bd13390a0a5ea119d7997d4cb5ea7db | [
"MIT"
] | 2 | 2019-05-14T19:07:10.000Z | 2019-05-20T21:06:27.000Z | lib/okr_app_web/serializers/key_result.ex | sb8244/okr_app_pub | 933872107bd13390a0a5ea119d7997d4cb5ea7db | [
"MIT"
] | 3 | 2019-05-19T18:24:20.000Z | 2019-10-31T20:29:12.000Z | defmodule OkrAppWeb.Serializer.KeyResult do
use Remodel
attributes([:id, :content, :mid_score, :final_score, :cancelled_at, :inserted_at, :updated_at])
def final_score(record), do: OkrApp.Objectives.round_score(record.final_score, :key_result)
def mid_score(record), do: OkrApp.Objectives.round_score(record.mi... | 38.444444 | 97 | 0.786127 |
1a3f357b0f96eb75b916c6afa7e85b904f008206 | 631 | ex | Elixir | lib/codes/codes_b99.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_b99.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_b99.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | defmodule IcdCode.ICDCode.Codes_B99 do
alias IcdCode.ICDCode
def _B998 do
%ICDCode{full_code: "B998",
category_code: "B99",
short_code: "8",
full_name: "Other infectious disease",
short_name: "Other infectious disease",
category_name: "Other infectious disease"
... | 25.24 | 57 | 0.618067 |
1a3f55b7db0f48ec2d48fe806e36cb2c56ac71db | 35,700 | ex | Elixir | lib/elixir/lib/stream.ex | liveforeverx/elixir | cf3cf0bd5443b59206e5733602244bc3543f0a53 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/stream.ex | liveforeverx/elixir | cf3cf0bd5443b59206e5733602244bc3543f0a53 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/stream.ex | liveforeverx/elixir | cf3cf0bd5443b59206e5733602244bc3543f0a53 | [
"Apache-2.0"
] | null | null | null | defmodule Stream do
@moduledoc """
Module for creating and composing streams.
Streams are composable, lazy enumerables. Any enumerable that generates
items one by one during enumeration is called a stream. For example,
Elixir's `Range` is a stream:
iex> range = 1..5
1..5
iex> Enum.map rang... | 29.310345 | 100 | 0.604314 |
1a3f62031e9416caf511473d0fc939d3c2675972 | 6,102 | ex | Elixir | lib/eex/lib/eex/tokenizer.ex | xtian/elixir | c680eb1a3992309c272e8f808e15990ea5318d6e | [
"Apache-2.0"
] | null | null | null | lib/eex/lib/eex/tokenizer.ex | xtian/elixir | c680eb1a3992309c272e8f808e15990ea5318d6e | [
"Apache-2.0"
] | null | null | null | lib/eex/lib/eex/tokenizer.ex | xtian/elixir | c680eb1a3992309c272e8f808e15990ea5318d6e | [
"Apache-2.0"
] | null | null | null | defmodule EEx.Tokenizer do
@moduledoc false
@type content :: IO.chardata
@type line :: non_neg_integer
@type token :: {:text, content} |
{:expr | :start_expr | :middle_expr | :end_expr, line, '=' | '', content}
@doc """
Tokenizes the given charlist or binary.
It returns {:ok, list} wit... | 27.241071 | 97 | 0.593576 |
1a3f84ced24732d9f328c2a60b46a791c091e534 | 151 | ex | Elixir | web/views/tp_alias_import_job_view.ex | zombalo/cgrates_web_jsonapi | 47845be4311839fe180cc9f2c7c6795649da4430 | [
"MIT"
] | null | null | null | web/views/tp_alias_import_job_view.ex | zombalo/cgrates_web_jsonapi | 47845be4311839fe180cc9f2c7c6795649da4430 | [
"MIT"
] | null | null | null | web/views/tp_alias_import_job_view.ex | zombalo/cgrates_web_jsonapi | 47845be4311839fe180cc9f2c7c6795649da4430 | [
"MIT"
] | null | null | null | defmodule CgratesWebJsonapi.TpAliasImportJobView do
use CgratesWebJsonapi.Web, :view
use JaSerializer.PhoenixView
attributes [:id, :status]
end
| 21.571429 | 51 | 0.807947 |
1a3f8fa5828e415073fa36c53792ad83aa1c5449 | 1,359 | exs | Elixir | config/config.exs | thienlhh/ex_football | 2bfac55b762854b0c85530123eae24a397709820 | [
"MIT"
] | 1 | 2019-02-11T20:50:35.000Z | 2019-02-11T20:50:35.000Z | config/config.exs | thienlhh/ex_football | 2bfac55b762854b0c85530123eae24a397709820 | [
"MIT"
] | null | null | null | config/config.exs | thienlhh/ex_football | 2bfac55b762854b0c85530123eae24a397709820 | [
"MIT"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
# This configuration is loaded before any dependency and is restricted
# to this project. If another project depends on this project, this
# file won't be loaded nor affect the paren... | 33.975 | 73 | 0.758646 |
1a3fe4fcf10977de3e8220bb416c68fc78c09031 | 2,409 | ex | Elixir | clients/content/lib/google_api/content/v21/model/orders_refund_order_request.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v21/model/orders_refund_order_request.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v21/model/orders_refund_order_request.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"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... | 40.830508 | 209 | 0.706932 |
1a403b6dcb2e8bf3f405e26828647d1285dc3192 | 65 | ex | Elixir | lib/karroake_web/views/layout_view.ex | ontanj/karroake | b3346707df9d2378a06ee3bb7d218d0962fe7d86 | [
"MIT"
] | null | null | null | lib/karroake_web/views/layout_view.ex | ontanj/karroake | b3346707df9d2378a06ee3bb7d218d0962fe7d86 | [
"MIT"
] | 1 | 2021-05-10T10:36:59.000Z | 2021-05-10T10:36:59.000Z | lib/karroake_web/views/layout_view.ex | ontanj/karroake | b3346707df9d2378a06ee3bb7d218d0962fe7d86 | [
"MIT"
] | null | null | null | defmodule KarroakeWeb.LayoutView do
use KarroakeWeb, :view
end
| 16.25 | 35 | 0.815385 |
1a405d46f7efcb4c7deaafb0e850422fea33572b | 673 | exs | Elixir | mix.exs | fishcakez/resource | 93cec8bb45f7f89829f65cee8d0a89c78a5c1c0b | [
"Apache-2.0"
] | null | null | null | mix.exs | fishcakez/resource | 93cec8bb45f7f89829f65cee8d0a89c78a5c1c0b | [
"Apache-2.0"
] | null | null | null | mix.exs | fishcakez/resource | 93cec8bb45f7f89829f65cee8d0a89c78a5c1c0b | [
"Apache-2.0"
] | null | null | null | defmodule Resource.Mixfile do
use Mix.Project
def project do
[app: :resource,
version: "0.0.1",
elixir: "~> 1.1-dev",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps]
end
# Configuration for the OTP application
#
# Type `mix help compile.app` fo... | 20.393939 | 77 | 0.610698 |
1a405ea73360dd7f720bec3fc3e347d85b8da588 | 132 | ex | Elixir | lib/Base/Protocolbuffers/LoadedProtobuf.ex | ServusGameServer/Servus_Protobuf | cb870b7dccb6676e71045e231fd31547d63efa74 | [
"Apache-2.0"
] | 2 | 2018-10-19T06:14:08.000Z | 2018-11-23T00:56:09.000Z | lib/Base/Protocolbuffers/LoadedProtobuf.ex | ServusGameServer/Servus_Protobuf | cb870b7dccb6676e71045e231fd31547d63efa74 | [
"Apache-2.0"
] | null | null | null | lib/Base/Protocolbuffers/LoadedProtobuf.ex | ServusGameServer/Servus_Protobuf | cb870b7dccb6676e71045e231fd31547d63efa74 | [
"Apache-2.0"
] | null | null | null | defmodule LoadedProtobuf do
# TBD To ConfigFile
use Protobuf, from: ["./lib/Base/Protocolbuffers/ServusProtobufMain.proto"]
end
| 26.4 | 77 | 0.780303 |
1a4069e960116639429f6493668b5076115ba656 | 580 | exs | Elixir | exercises/practice/word-search/mix.exs | devtayls/elixir | 67824de8209ff1b6ed2f736deedfb5bd815130ca | [
"MIT"
] | 343 | 2017-06-22T16:28:28.000Z | 2022-03-25T21:33:32.000Z | exercises/practice/word-search/mix.exs | devtayls/elixir | 67824de8209ff1b6ed2f736deedfb5bd815130ca | [
"MIT"
] | 583 | 2017-06-19T10:48:40.000Z | 2022-03-28T21:43:12.000Z | exercises/practice/word-search/mix.exs | devtayls/elixir | 67824de8209ff1b6ed2f736deedfb5bd815130ca | [
"MIT"
] | 228 | 2017-07-05T07:09:32.000Z | 2022-03-27T08:59:08.000Z | defmodule WordSearch.MixProject do
use Mix.Project
def project do
[
app: :word_search,
version: "0.1.0",
# elixir: "~> 1.8",
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
... | 20 | 87 | 0.57931 |
1a4076317acb9684fb857410c345acdbf3ed1def | 365 | ex | Elixir | lib/runlet/cmd/stdin.ex | msantos/runlet | d9cb44b113295387c296ab4576a09ca4a7ce0f7b | [
"ISC"
] | 4 | 2020-01-12T19:04:46.000Z | 2021-09-20T14:37:22.000Z | lib/runlet/cmd/stdin.ex | msantos/runlet | d9cb44b113295387c296ab4576a09ca4a7ce0f7b | [
"ISC"
] | null | null | null | lib/runlet/cmd/stdin.ex | msantos/runlet | d9cb44b113295387c296ab4576a09ca4a7ce0f7b | [
"ISC"
] | 1 | 2021-09-20T14:37:25.000Z | 2021-09-20T14:37:25.000Z | defmodule Runlet.Cmd.Stdin do
@moduledoc "Sends output from a pipeline to another process"
@doc """
Sends output from a pipeline to another process.
"""
@spec exec(Enumerable.t(), Runlet.PID.t()) :: Enumerable.t()
def exec(stream, pid) do
Stream.each(stream, fn t ->
Kernel.send(Runlet.PID.to_pid(... | 26.071429 | 62 | 0.668493 |
1a407b9e24e2d7c13904d5491272fe10ebdca504 | 4,314 | exs | Elixir | test/xema/ref_remote_suite_test.exs | kianmeng/xema | a990d64fb4bcd708249514daa55426ee003da25d | [
"MIT"
] | 49 | 2018-06-05T09:42:19.000Z | 2022-02-15T12:50:51.000Z | test/xema/ref_remote_suite_test.exs | kianmeng/xema | a990d64fb4bcd708249514daa55426ee003da25d | [
"MIT"
] | 152 | 2017-06-11T13:43:06.000Z | 2022-01-09T17:13:45.000Z | test/xema/ref_remote_suite_test.exs | kianmeng/xema | a990d64fb4bcd708249514daa55426ee003da25d | [
"MIT"
] | 6 | 2019-05-31T05:41:47.000Z | 2021-12-14T08:09:36.000Z | defmodule Xema.RefRemoteSuiteTest do
use ExUnit.Case, async: true
import Xema, only: [valid?: 2]
alias Test.RemoteLoaderExon
describe "remote ref" do
setup do
%{schema: Xema.new({:ref, "http://localhost:1234/integer.exon"}, loader: RemoteLoaderExon)}
end
test "remote ref valid", %{schema: ... | 23.318919 | 97 | 0.501623 |
1a40f1116445a2e3903b61cbfe7db40bb892ddc7 | 6,746 | ex | Elixir | lib/opencensus/honeycomb/event.ex | amplifiedai/opencensus_honeycomb | b6e53a768b1297f3ae8d6b1116e58b89820d583e | [
"Apache-2.0"
] | 11 | 2019-05-22T07:07:39.000Z | 2022-01-12T21:14:47.000Z | lib/opencensus/honeycomb/event.ex | amplifiedai/opencensus_honeycomb | b6e53a768b1297f3ae8d6b1116e58b89820d583e | [
"Apache-2.0"
] | 11 | 2019-05-22T00:46:44.000Z | 2021-03-08T23:25:37.000Z | lib/opencensus/honeycomb/event.ex | amplifiedai/opencensus_honeycomb | b6e53a768b1297f3ae8d6b1116e58b89820d583e | [
"Apache-2.0"
] | 6 | 2019-11-12T15:43:38.000Z | 2022-01-12T17:13:11.000Z | defmodule Opencensus.Honeycomb.Event do
@moduledoc """
Event structure.
Honeycomb events bind a timestamp to data as described in `t:t/0` below. The `data` corresponds
to Opencensus span attributes, with limitations dictated by the intersection of OpenCensus' and
Honeycomb's data models.
## Supported Valu... | 31.971564 | 138 | 0.669582 |
1a412d6b0328117565d3f5f460e87474fbeb58b7 | 215 | ex | Elixir | lib/wallaby/dsl.ex | schnittchen/wallaby | 30be89cc78087e53e5b47a86043c2bbe8566bbf4 | [
"MIT"
] | null | null | null | lib/wallaby/dsl.ex | schnittchen/wallaby | 30be89cc78087e53e5b47a86043c2bbe8566bbf4 | [
"MIT"
] | null | null | null | lib/wallaby/dsl.ex | schnittchen/wallaby | 30be89cc78087e53e5b47a86043c2bbe8566bbf4 | [
"MIT"
] | null | null | null | defmodule Wallaby.DSL do
@moduledoc false
defmacro __using__([]) do
quote do
alias Wallaby.Query
alias Wallaby.Browser
alias Wallaby.Element
import Wallaby.Browser
end
end
end
| 16.538462 | 28 | 0.674419 |
1a41520d115205f895f21cb0545999c920ba8e2f | 351 | exs | Elixir | priv/repo/seeds.exs | E1337Kat/chatter | e21728af5bfcadf3723b531081e0536a95da043e | [
"MIT"
] | 2 | 2019-08-29T19:35:01.000Z | 2019-08-31T04:08:03.000Z | priv/repo/seeds.exs | E1337Kat/chatter | e21728af5bfcadf3723b531081e0536a95da043e | [
"MIT"
] | 1 | 2020-07-16T23:18:36.000Z | 2020-07-16T23:18:36.000Z | priv/repo/seeds.exs | E1337Kat/chatter | e21728af5bfcadf3723b531081e0536a95da043e | [
"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:
#
# Chatter.Repo.insert!(%Chatter.SomeSchema{})
#
# We recommend using the bang functions (`insert!`, `update!`
# and so on) as they will... | 29.25 | 61 | 0.706553 |
1a415cedab6a5802e5a9d8a78be107a5f44da4fe | 368 | exs | Elixir | .formatter.exs | jeregrine/nimble_parsec | 13b360170a97da099a3e056615c456f3ca98fe85 | [
"Apache-2.0"
] | 227 | 2020-01-20T16:39:39.000Z | 2022-03-31T14:37:19.000Z | .formatter.exs | jeregrine/nimble_parsec | 13b360170a97da099a3e056615c456f3ca98fe85 | [
"Apache-2.0"
] | 34 | 2020-01-31T01:14:06.000Z | 2022-02-28T10:50:31.000Z | .formatter.exs | jeregrine/nimble_parsec | 13b360170a97da099a3e056615c456f3ca98fe85 | [
"Apache-2.0"
] | 25 | 2020-02-23T02:05:20.000Z | 2022-01-25T21:32:55.000Z | # Used by "mix format"
locals_without_parens = [
defparsec: 2,
defparsec: 3,
defparsecp: 2,
defparsecp: 3,
defcombinator: 2,
defcombinator: 3,
defcombinatorp: 2,
defcombinatorp: 3
]
[
inputs: ["mix.exs", "{examples,lib,test}/**/*.{ex,exs}"],
locals_without_parens: locals_without_parens,
export: [... | 20.444444 | 59 | 0.701087 |
1a41b100f11e8e677f5013ab35c93953b12cb5ba | 1,094 | ex | Elixir | currency/lib/currency_web/channels/user_socket.ex | ziminyuri/currency_exchange | 3d65d466a519816f606b16bb2f304db65105ca9a | [
"Apache-2.0"
] | null | null | null | currency/lib/currency_web/channels/user_socket.ex | ziminyuri/currency_exchange | 3d65d466a519816f606b16bb2f304db65105ca9a | [
"Apache-2.0"
] | null | null | null | currency/lib/currency_web/channels/user_socket.ex | ziminyuri/currency_exchange | 3d65d466a519816f606b16bb2f304db65105ca9a | [
"Apache-2.0"
] | null | null | null | defmodule CurrencyWeb.UserSocket do
use Phoenix.Socket
## Channels
# channel "room:*", CurrencyWeb.RoomChannel
# Socket params are passed from the client and can
# be used to verify and authenticate a user. After
# verification, you can put default assigns into
# the socket that will be set for all chan... | 30.388889 | 83 | 0.695612 |
1a41b56de371771f6c0576f7ddc10040ce282814 | 385 | exs | Elixir | priv/repo/migrations/20200608114525_create_wows_ship_iterations.exs | Rukenshia/sthub-web | 2749e0a08ca71683ca1d44ceecc89310dea70e07 | [
"MIT"
] | null | null | null | priv/repo/migrations/20200608114525_create_wows_ship_iterations.exs | Rukenshia/sthub-web | 2749e0a08ca71683ca1d44ceecc89310dea70e07 | [
"MIT"
] | 14 | 2020-07-17T06:00:03.000Z | 2020-10-29T20:28:32.000Z | priv/repo/migrations/20200608114525_create_wows_ship_iterations.exs | Rukenshia/sthub-web | 2749e0a08ca71683ca1d44ceecc89310dea70e07 | [
"MIT"
] | null | null | null | defmodule StHub.Repo.Migrations.CreateWowsShipIterations do
use Ecto.Migration
def change do
create table(:wows_ship_iterations) do
add :iteration, :integer
add :active, :boolean, default: false, null: false
add :ship_id, references(:wows_ships, on_delete: :nothing)
timestamps()
en... | 24.0625 | 64 | 0.709091 |
1a41b62d489219a87058907fdfa7f873937c9aa1 | 898 | ex | Elixir | clients/cloud_support/lib/google_api/cloud_support/v2beta/metadata.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/cloud_support/lib/google_api/cloud_support/v2beta/metadata.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/cloud_support/lib/google_api/cloud_support/v2beta/metadata.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"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... | 33.259259 | 74 | 0.762806 |
1a42013d5e657a4087b28e73cf0fe830d6927c40 | 11,557 | exs | Elixir | test/ex_united_test.exs | archan937/ex_united | 686ef613cbbb54663c580e056a05f76213af32b8 | [
"Unlicense",
"MIT"
] | 42 | 2020-04-09T08:46:51.000Z | 2021-12-24T00:05:02.000Z | test/ex_united_test.exs | archan937/ex_united | 686ef613cbbb54663c580e056a05f76213af32b8 | [
"Unlicense",
"MIT"
] | null | null | null | test/ex_united_test.exs | archan937/ex_united | 686ef613cbbb54663c580e056a05f76213af32b8 | [
"Unlicense",
"MIT"
] | 4 | 2020-07-01T09:57:20.000Z | 2021-11-17T16:22:20.000Z | defmodule ExUnitedTest do
use ExUnit.Case
import TestHelper
describe "zero-config" do
setup do
{:ok, spawned} = ExUnited.spawn([:ryan, :george, :bobby])
on_exit(fn ->
ExUnited.teardown()
end)
spawned
end
test "generates config and mix files", spawned do
asser... | 31.490463 | 125 | 0.447088 |
1a425f2f985d353949d7d1a166ffa46f9fe90ea5 | 2,183 | ex | Elixir | clients/jobs/lib/google_api/jobs/v2/model/compensation_filter.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/jobs/lib/google_api/jobs/v2/model/compensation_filter.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/jobs/lib/google_api/jobs/v2/model/compensation_filter.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 37 | 168 | 0.721942 |
1a4268b18d1ad07db7d3dc583b7e09c221953195 | 412 | ex | Elixir | lib/hl7/2.5.1/datatypes/sps.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | lib/hl7/2.5.1/datatypes/sps.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | lib/hl7/2.5.1/datatypes/sps.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | defmodule HL7.V2_5_1.DataTypes.Sps do
@moduledoc false
alias HL7.V2_5_1.{DataTypes}
use HL7.DataType,
fields: [
specimen_source_name_or_code: DataTypes.Cwe,
additives: DataTypes.Cwe,
specimen_collection_method: nil,
body_site: DataTypes.Cwe,
site_modifier: DataTypes.Cwe,
c... | 25.75 | 53 | 0.718447 |
1a42796cc04f0d99b604b35aa31297b9ebf30a45 | 44 | exs | Elixir | test/fixture/apps/example_complex_app/apps/app2/test/app2_test.exs | tyrchen/overseer | e46dbd965e14d92361f223db1a6d6f44b20272b3 | [
"MIT"
] | 18 | 2018-03-01T05:59:27.000Z | 2021-06-15T13:12:50.000Z | test/fixture/apps/example_complex_app/apps/app2/test/app2_test.exs | tyrchen/overseer | e46dbd965e14d92361f223db1a6d6f44b20272b3 | [
"MIT"
] | null | null | null | test/fixture/apps/example_complex_app/apps/app2/test/app2_test.exs | tyrchen/overseer | e46dbd965e14d92361f223db1a6d6f44b20272b3 | [
"MIT"
] | null | null | null | defmodule App2Test do
use ExUnit.Case
end
| 11 | 21 | 0.795455 |
1a42d4c9337ba7ce5de3e93406fd1174de2068e2 | 553 | exs | Elixir | test/omise/forex_test.exs | zentetsukenz/omise-elixir | 5ba59f53d3a66702b44f1d16c74e712d4f5d2815 | [
"MIT"
] | 12 | 2016-09-10T16:17:32.000Z | 2020-06-04T01:35:54.000Z | test/omise/forex_test.exs | zentetsukenz/omise-elixir | 5ba59f53d3a66702b44f1d16c74e712d4f5d2815 | [
"MIT"
] | 8 | 2016-09-19T05:36:27.000Z | 2020-09-14T08:46:06.000Z | test/omise/forex_test.exs | zentetsukenz/omise-elixir | 5ba59f53d3a66702b44f1d16c74e712d4f5d2815 | [
"MIT"
] | 10 | 2016-07-19T05:03:01.000Z | 2021-02-08T03:20:54.000Z | defmodule Omise.ForexTest do
use Omise.TestCase, async: true
alias Omise.Forex
setup do: set_fixture_dir("forex")
describe "retrieve/2" do
test "retrieves forex" do
use_cassette "retrieve_forex" do
assert Forex.retrieve("usd") ==
{:ok,
%Omise.Forex{
... | 23.041667 | 45 | 0.479204 |
1a42d8e70e5b3e5e7fd7c018d46eeb185efc45ea | 1,489 | ex | Elixir | clients/vault/lib/google_api/vault/v1/model/reopen_matter_response.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/vault/lib/google_api/vault/v1/model/reopen_matter_response.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/vault/lib/google_api/vault/v1/model/reopen_matter_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.680851 | 117 | 0.740766 |
1a42f8be4fc739d04ae3cc4ea813fbbd6b31191e | 889 | ex | Elixir | web/models/user.ex | RFmind/scrumapi | 3bc2caf48e4e9b5b5448fe0724815609fc4bcee2 | [
"MIT"
] | null | null | null | web/models/user.ex | RFmind/scrumapi | 3bc2caf48e4e9b5b5448fe0724815609fc4bcee2 | [
"MIT"
] | null | null | null | web/models/user.ex | RFmind/scrumapi | 3bc2caf48e4e9b5b5448fe0724815609fc4bcee2 | [
"MIT"
] | null | null | null | defmodule Scrumapi.User do
use Scrumapi.Web, :model
schema "users" do
field :email, :string
field :password_hash, :string
field :password, :string, virtual: true
timestamps()
end
def changeset(model, params \\ :empty) do
model
|> cast(params, [:email, :password])
|> validate_requi... | 23.394737 | 79 | 0.644544 |
1a430839583c7e26b5b10597b961214b543ee3f7 | 2,866 | exs | Elixir | config/runtime.exs | e-fu/exzeitable | 195da90e7fbab867c4964acab717e1ccb68ab226 | [
"MIT"
] | 138 | 2019-10-04T19:55:35.000Z | 2022-03-31T10:24:32.000Z | config/runtime.exs | e-fu/exzeitable | 195da90e7fbab867c4964acab717e1ccb68ab226 | [
"MIT"
] | 127 | 2019-10-03T21:51:27.000Z | 2022-03-31T02:57:00.000Z | config/runtime.exs | e-fu/exzeitable | 195da90e7fbab867c4964acab717e1ccb68ab226 | [
"MIT"
] | 14 | 2019-10-04T19:55:41.000Z | 2022-03-27T04:47:30.000Z | import Config
# config/runtime.exs is executed for all environments, including
# during releases. It is executed after compilation and before the
# system starts, so it is typically used to load production configuration
# and secrets from environment variables or elsewhere. Do not define
# any compile-time configurati... | 38.72973 | 82 | 0.698186 |
1a430f50b55f7350cb19587c27711de07e5a7a38 | 406 | ex | Elixir | web/controllers/plugs/set_user.ex | JumboLove/phoenix-starter | 53a3b38ac3a128c9ace3b01fffceae7d3e4a93b4 | [
"MIT"
] | null | null | null | web/controllers/plugs/set_user.ex | JumboLove/phoenix-starter | 53a3b38ac3a128c9ace3b01fffceae7d3e4a93b4 | [
"MIT"
] | null | null | null | web/controllers/plugs/set_user.ex | JumboLove/phoenix-starter | 53a3b38ac3a128c9ace3b01fffceae7d3e4a93b4 | [
"MIT"
] | null | null | null | defmodule Discuss.Plugs.SetUser do
import Plug.Conn
import Phoenix.Controller
alias Discuss.Repo
alias Discuss.User
def init(_params) do
#do nothing, required for module plug
end
def call(conn, _params) do
user_id = get_session(conn, :user_id)
cond do
user = user_id && Repo.get(User, user_id) ->
... | 18.454545 | 48 | 0.689655 |
1a432102e28d07f6a42f3d04a9c902f776d75945 | 21,827 | ex | Elixir | lib/elixir/lib/io.ex | kipcole9/elixir | 3c8519bda2234179ee8db43534d5bcac040f544c | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/io.ex | kipcole9/elixir | 3c8519bda2234179ee8db43534d5bcac040f544c | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/io.ex | kipcole9/elixir | 3c8519bda2234179ee8db43534d5bcac040f544c | [
"Apache-2.0"
] | null | null | null | defmodule IO do
@moduledoc ~S"""
Functions handling input/output (IO).
Many functions in this module expect an IO device as an argument.
An IO device must be a PID or an atom representing a process.
For convenience, Elixir provides `:stdio` and `:stderr` as
shortcuts to Erlang's `:standard_io` and `:standa... | 30.064738 | 104 | 0.667476 |
1a4331f7917fcfdd8b17f54ce9a11e9c596be4f4 | 2,107 | exs | Elixir | test/controllers/tag_controller_test.exs | slurmulon/hone | 9cc817fef06fbec564b18a11faa472ecf902aa62 | [
"MIT"
] | null | null | null | test/controllers/tag_controller_test.exs | slurmulon/hone | 9cc817fef06fbec564b18a11faa472ecf902aa62 | [
"MIT"
] | null | null | null | test/controllers/tag_controller_test.exs | slurmulon/hone | 9cc817fef06fbec564b18a11faa472ecf902aa62 | [
"MIT"
] | null | null | null | defmodule Hone.TagControllerTest do
use Hone.ConnCase, async: true
alias Hone.Tag
@valid_attrs %{color: "some content", label: "some content"}
@invalid_attrs %{}
setup %{conn: conn} do
{:ok, conn: put_req_header(conn, "accept", "application/json")}
end
test "lists all entries on index", %{conn: con... | 33.444444 | 98 | 0.653061 |
1a433bf243d3c76035329d1f93490d7d0a52f03e | 727 | ex | Elixir | lib/rgb_matrix/animation/random_solid.ex | nerves-keyboard/rgb_matrix | 7e53c58936afd27a95b0995db1aebe99061b1a9d | [
"MIT"
] | 2 | 2020-10-16T05:15:19.000Z | 2020-10-17T04:34:32.000Z | lib/rgb_matrix/animation/random_solid.ex | nerves-keyboard/rgb_matrix | 7e53c58936afd27a95b0995db1aebe99061b1a9d | [
"MIT"
] | 44 | 2020-10-17T04:55:27.000Z | 2022-03-23T14:33:52.000Z | lib/rgb_matrix/animation/random_solid.ex | nerves-keyboard/rgb_matrix | 7e53c58936afd27a95b0995db1aebe99061b1a9d | [
"MIT"
] | null | null | null | defmodule RGBMatrix.Animation.RandomSolid do
@moduledoc """
A random solid color fills the entire matrix and changes every key-press.
"""
use RGBMatrix.Animation
alias Chameleon.HSV
defmodule State do
@moduledoc false
defstruct [:led_ids]
end
@impl true
def new(leds, _config) do
%State... | 18.175 | 75 | 0.650619 |
1a43465a810eff066716145238b057e6c1c11afc | 1,115 | exs | Elixir | config/config.exs | gabiz/tracer | 4659bf3cc9e0cc86e653794b800e9eb5bbe9f0a2 | [
"MIT"
] | 125 | 2017-09-08T06:33:28.000Z | 2022-03-09T10:48:04.000Z | config/config.exs | Gazler/tracer | 4659bf3cc9e0cc86e653794b800e9eb5bbe9f0a2 | [
"MIT"
] | 3 | 2017-09-21T01:56:24.000Z | 2020-10-29T13:27:44.000Z | config/config.exs | Gazler/tracer | 4659bf3cc9e0cc86e653794b800e9eb5bbe9f0a2 | [
"MIT"
] | 6 | 2017-09-08T21:41:32.000Z | 2019-11-16T10:39:16.000Z | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
# This configuration is loaded before any dependency and is restricted
# to this project. If another project depends on this project, this
# file won't be loaded nor affect the paren... | 35.967742 | 73 | 0.750673 |
1a434f579602a76c465e1e3e3113373eb5efa925 | 965 | exs | Elixir | test/unit/hologram/compiler/js_encoders/list_concatenation_operator_test.exs | gregjohnsonsaltaire/hologram | aa8e9ea0d599def864c263cc37cc8ee31f02ac4a | [
"MIT"
] | 40 | 2022-01-19T20:27:36.000Z | 2022-03-31T18:17:41.000Z | test/unit/hologram/compiler/js_encoders/list_concatenation_operator_test.exs | gregjohnsonsaltaire/hologram | aa8e9ea0d599def864c263cc37cc8ee31f02ac4a | [
"MIT"
] | 42 | 2022-02-03T22:52:43.000Z | 2022-03-26T20:57:32.000Z | test/unit/hologram/compiler/js_encoders/list_concatenation_operator_test.exs | gregjohnsonsaltaire/hologram | aa8e9ea0d599def864c263cc37cc8ee31f02ac4a | [
"MIT"
] | 3 | 2022-02-10T04:00:37.000Z | 2022-03-08T22:07:45.000Z | defmodule Hologram.Compiler.JSEncoder.ListConcatenationOperatorTest do
use Hologram.Test.UnitCase, async: true
alias Hologram.Compiler.{Context, JSEncoder, Opts}
alias Hologram.Compiler.IR.{IntegerType, ListConcatenationOperator, ListType}
test "encode/3" do
ir = %ListConcatenationOperator{
left: %L... | 26.805556 | 96 | 0.590674 |
1a4371f3fa66165f576eea3569c92f677e13bd9b | 1,463 | ex | Elixir | lib/tradie/task.ex | madlep/tradie | 8bba1f877a3c9c4763a15f3b53c6f54d1a05faf5 | [
"MIT"
] | 6 | 2015-11-18T16:30:15.000Z | 2020-10-27T14:09:36.000Z | lib/tradie/task.ex | madlep/tradie | 8bba1f877a3c9c4763a15f3b53c6f54d1a05faf5 | [
"MIT"
] | null | null | null | lib/tradie/task.ex | madlep/tradie | 8bba1f877a3c9c4763a15f3b53c6f54d1a05faf5 | [
"MIT"
] | null | null | null | defmodule Tradie.Task do
defstruct [:task_ref, :caller, :fun]
defmodule Result do
defstruct [:work_ref, :task_ref, :result]
end
alias Tradie.Task, as: TTask
def create_task(work_ref, supervisor, fun) do
task = %TTask{
task_ref: make_ref,
caller: self,
fun: fun
}
{:ok, _pi... | 29.26 | 125 | 0.652085 |
1a437886f5e852f1467fd763993a42aceec5562e | 454 | ex | Elixir | test/support/case.ex | Sitata/memento | 137ff84c40b4a1c2e3496f160cecdb0428dd397a | [
"MIT"
] | 679 | 2018-08-17T23:10:00.000Z | 2022-03-27T07:23:27.000Z | test/support/case.ex | Sitata/memento | 137ff84c40b4a1c2e3496f160cecdb0428dd397a | [
"MIT"
] | 26 | 2018-09-06T01:27:31.000Z | 2022-03-09T07:16:05.000Z | test/support/case.ex | Sitata/memento | 137ff84c40b4a1c2e3496f160cecdb0428dd397a | [
"MIT"
] | 23 | 2018-09-06T01:06:14.000Z | 2022-03-09T00:55:06.000Z | defmodule Memento.Support.Case do
use ExUnit.CaseTemplate
@moduledoc """
Default Test Case with important aliases/imports
"""
using do
quote do
alias Memento.Support
alias Memento.Support.Definitions.Tables
import Support.Mnesia, only: [
transaction: 1,
transaction!:... | 14.645161 | 50 | 0.632159 |
1a43cb14dcf17c1089708ff5fbf741117f315605 | 38,557 | ex | Elixir | lib/level/mutations.ex | mindriot101/level | 0a2cbae151869c2d9b79b3bfb388f5d00739ae12 | [
"Apache-2.0"
] | 928 | 2018-04-03T16:18:11.000Z | 2019-09-09T17:59:55.000Z | lib/level/mutations.ex | mindriot101/level | 0a2cbae151869c2d9b79b3bfb388f5d00739ae12 | [
"Apache-2.0"
] | 74 | 2018-04-03T00:46:50.000Z | 2019-03-10T18:57:27.000Z | lib/level/mutations.ex | mindriot101/level | 0a2cbae151869c2d9b79b3bfb388f5d00739ae12 | [
"Apache-2.0"
] | 89 | 2018-04-03T17:33:20.000Z | 2019-08-19T03:40:20.000Z | defmodule Level.Mutations do
@moduledoc """
Functions for performing GraphQL mutations.
"""
import Level.Gettext
alias Level.Groups
alias Level.Notifications
alias Level.Nudges
alias Level.Posts
alias Level.Schemas.Nudge
alias Level.Schemas.PostReaction
alias Level.Schemas.ReplyReaction
alias ... | 33.881371 | 101 | 0.597583 |
1a43ce306d7ef6527e2e4b1fd71facf6a3ec554e | 2,065 | ex | Elixir | 2020/day08/ex/day8.ex | ABuffSeagull/advent-of-code-2019 | fdf8df254e0f5193021e28e8f8a726664a312552 | [
"MIT"
] | null | null | null | 2020/day08/ex/day8.ex | ABuffSeagull/advent-of-code-2019 | fdf8df254e0f5193021e28e8f8a726664a312552 | [
"MIT"
] | null | null | null | 2020/day08/ex/day8.ex | ABuffSeagull/advent-of-code-2019 | fdf8df254e0f5193021e28e8f8a726664a312552 | [
"MIT"
] | null | null | null | defmodule Day8 do
@type instruction :: {:acc | :jmp | :nop, integer}
@spec part1(String.t()) :: integer()
def part1(input) when is_binary(input) do
program =
input
|> String.splitter("\n", trim: true)
|> Enum.map(&parse_instruction/1)
{_, accumulator} = run_program(program)
accumul... | 27.905405 | 86 | 0.587409 |
1a43d4a997ed1b643d149591732a673fcc17c01a | 2,375 | exs | Elixir | test/phoenix_bakery/brotli_test.exs | hauleth/phoenix_bakery | 7a749fb6dff711de9dd00ba307dc27967ae6f97b | [
"MIT"
] | 12 | 2021-10-06T12:05:12.000Z | 2022-01-22T06:30:52.000Z | test/phoenix_bakery/brotli_test.exs | hauleth/phoenix_bakery | 7a749fb6dff711de9dd00ba307dc27967ae6f97b | [
"MIT"
] | null | null | null | test/phoenix_bakery/brotli_test.exs | hauleth/phoenix_bakery | 7a749fb6dff711de9dd00ba307dc27967ae6f97b | [
"MIT"
] | null | null | null | defmodule PhoenixBakery.BrotliTest do
use ExUnit.Case, async: true
import ExUnit.CaptureIO
@assets_dir "test/fixtures/"
describe "library" do
@tag :tmp_dir
test "encode files", %{tmp_dir: tmp_dir} do
run([Path.join(@assets_dir, "regular"), "-o", tmp_dir])
files = File.ls!(tmp_dir)
... | 27.941176 | 87 | 0.658105 |
1a43da3369713f40b5fc3c52edc1ef40096bbcf7 | 6,137 | ex | Elixir | clients/cloud_resource_manager/lib/google_api/cloud_resource_manager/v2/model/policy.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | 1 | 2021-10-01T09:20:41.000Z | 2021-10-01T09:20:41.000Z | clients/cloud_resource_manager/lib/google_api/cloud_resource_manager/v2/model/policy.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | clients/cloud_resource_manager/lib/google_api/cloud_resource_manager/v2/model/policy.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 109.589286 | 1,997 | 0.7533 |
1a4425003d35165dcedff2ff1d5a594403281125 | 11,748 | exs | Elixir | apps/admin_api/test/admin_api/v1/controllers/admin_user_controller_test.exs | enyan94/ewallet | e938e686319867d133b21cd0eb5496e213ae7620 | [
"Apache-2.0"
] | null | null | null | apps/admin_api/test/admin_api/v1/controllers/admin_user_controller_test.exs | enyan94/ewallet | e938e686319867d133b21cd0eb5496e213ae7620 | [
"Apache-2.0"
] | null | null | null | apps/admin_api/test/admin_api/v1/controllers/admin_user_controller_test.exs | enyan94/ewallet | e938e686319867d133b21cd0eb5496e213ae7620 | [
"Apache-2.0"
] | null | null | null | # Copyright 2018-2019 OmiseGO Pte Ltd
#
# 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 ... | 34.250729 | 102 | 0.609721 |
1a4436b6f7f3dcc0d01467bdd458cf26a17b18c1 | 1,698 | ex | Elixir | clients/container/lib/google_api/container/v1/model/horizontal_pod_autoscaling.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/container/lib/google_api/container/v1/model/horizontal_pod_autoscaling.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/container/lib/google_api/container/v1/model/horizontal_pod_autoscaling.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... | 36.913043 | 242 | 0.772085 |
1a446af3dd00dd2951399891ef1b4f6b75b29267 | 1,080 | ex | Elixir | phoenix/web/channels/user_socket.ex | ronnyhartenstein/benchmarking-helloworld-http | ecb0b3d800a2d9c426ce4dd0d0b198a109e812d5 | [
"MIT"
] | null | null | null | phoenix/web/channels/user_socket.ex | ronnyhartenstein/benchmarking-helloworld-http | ecb0b3d800a2d9c426ce4dd0d0b198a109e812d5 | [
"MIT"
] | null | null | null | phoenix/web/channels/user_socket.ex | ronnyhartenstein/benchmarking-helloworld-http | ecb0b3d800a2d9c426ce4dd0d0b198a109e812d5 | [
"MIT"
] | null | null | null | defmodule HelloPhoenix.UserSocket do
use Phoenix.Socket
## Channels
# channel "rooms:*", HelloPhoenix.RoomChannel
## Transports
transport :websocket, Phoenix.Transports.WebSocket
# transport :longpoll, Phoenix.Transports.LongPoll
# Socket params are passed from the client and can
# be used to verify ... | 30.857143 | 86 | 0.700926 |
1a44726c84dc5016d4284d6005cda1dcaa8d1d2c | 1,320 | ex | Elixir | web/models/photo.ex | soarpatriot/flour | 52a57c553da84bd3abad5834014e06370f40a20b | [
"MIT"
] | 1 | 2016-08-05T07:03:43.000Z | 2016-08-05T07:03:43.000Z | web/models/photo.ex | soarpatriot/flour | 52a57c553da84bd3abad5834014e06370f40a20b | [
"MIT"
] | null | null | null | web/models/photo.ex | soarpatriot/flour | 52a57c553da84bd3abad5834014e06370f40a20b | [
"MIT"
] | null | null | null | defmodule Flour.Photo do
use Flour.Web, :model
use Arc.Ecto.Schema
alias Flour.Picture
schema "photos" do
field :name, :string
# field :name, Flour.Picture.Type
field :upload, :any, virtual: true
belongs_to :post, Flour.Post
timestamps()
end
# @required_fields ~w(description compl... | 24 | 75 | 0.623485 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.