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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1a878b34edf0ea5988a0fc3c2ae8f96f91198b97 | 2,244 | ex | Elixir | server/web/controllers/sprint_team_member_snapshot_controller.ex | MikaAK/trello-burndown | b78d97fa03fcdd60c1c9652b65d272936f648c6f | [
"MIT"
] | null | null | null | server/web/controllers/sprint_team_member_snapshot_controller.ex | MikaAK/trello-burndown | b78d97fa03fcdd60c1c9652b65d272936f648c6f | [
"MIT"
] | 3 | 2016-04-18T18:09:21.000Z | 2016-04-25T07:29:59.000Z | server/web/controllers/sprint_team_member_snapshot_controller.ex | MikaAK/trello-burndown | b78d97fa03fcdd60c1c9652b65d272936f648c6f | [
"MIT"
] | null | null | null | defmodule TrelloBurndown.SprintTeamMemberSnapshotController do
use TrelloBurndown.Web, :controller
alias TrelloBurndown.SprintTeamMemberSnapshot
plug :scrub_params, "sprint_team_member_snapshot" when action in [:create, :update]
def index(conn, _params) do
sprint_team_member_snapshots = Repo.all(SprintTe... | 38.689655 | 115 | 0.73975 |
1a87dbf81f49ec65a40816d50382cee8490cfdf0 | 430 | ex | Elixir | test/support/factory/update.ex | mijailr/alertas.ec | f33f0c0236675e4749b327f13612a0f67aaf9a77 | [
"MIT"
] | 8 | 2020-03-15T19:07:58.000Z | 2022-03-10T19:06:55.000Z | test/support/factory/update.ex | mijailr/alertas.ec | f33f0c0236675e4749b327f13612a0f67aaf9a77 | [
"MIT"
] | 223 | 2020-04-14T10:43:50.000Z | 2021-06-21T11:40:34.000Z | test/support/factory/update.ex | mijailr/alertas.ec | f33f0c0236675e4749b327f13612a0f67aaf9a77 | [
"MIT"
] | null | null | null | defmodule AlertasEc.Factory.Update do
@moduledoc """
Update factory for testing
"""
defmacro __using__(_) do
quote do
def update_factory do
%AlertasEc.Models.Update{
title: Faker.Lorem.sentence(),
content: Faker.Lorem.sentence(),
date: Faker.DateTime.backward(1),... | 21.5 | 43 | 0.593023 |
1a87ebd1134c08baa7fd78e604457baf4e0837e8 | 227 | exs | Elixir | test/hexpm_web/controllers/api/index_controller_test.exs | Benjamin-Philip/hexpm | 6f38244f81bbabd234c660f46ea973849ba77a7f | [
"Apache-2.0"
] | 691 | 2017-03-08T09:15:45.000Z | 2022-03-23T22:04:47.000Z | test/hexpm_web/controllers/api/index_controller_test.exs | Benjamin-Philip/hexpm | 6f38244f81bbabd234c660f46ea973849ba77a7f | [
"Apache-2.0"
] | 491 | 2017-03-07T12:58:42.000Z | 2022-03-29T23:32:54.000Z | test/hexpm_web/controllers/api/index_controller_test.exs | Benjamin-Philip/hexpm | 6f38244f81bbabd234c660f46ea973849ba77a7f | [
"Apache-2.0"
] | 200 | 2017-03-12T23:03:39.000Z | 2022-03-05T17:55:52.000Z | defmodule HexpmWeb.API.IndexControllerTest do
use HexpmWeb.ConnCase, async: true
test "index" do
conn = get(build_conn(), "/api")
assert json_response(conn, 200)["package_url"] =~ "/api/packages/{name}"
end
end
| 22.7 | 76 | 0.696035 |
1a87ec49f211fd3efc39b179066b3f0ebc8dc963 | 4,574 | ex | Elixir | lib/falcon_plus_api/api/team.ex | sawater/falcon-plus-api | a41b1cc04cc0d71b72341e803de88d16b4bba77d | [
"Apache-2.0"
] | 2 | 2018-05-03T14:35:37.000Z | 2018-07-30T09:32:38.000Z | lib/falcon_plus_api/api/team.ex | mon-suit/falcon-plus-api | a41b1cc04cc0d71b72341e803de88d16b4bba77d | [
"Apache-2.0"
] | null | null | null | lib/falcon_plus_api/api/team.ex | mon-suit/falcon-plus-api | a41b1cc04cc0d71b72341e803de88d16b4bba77d | [
"Apache-2.0"
] | null | null | null | defmodule FalconPlusApi.Api.Team do
alias Maxwell.Conn
alias FalconPlusApi.{Util, Sig, Api}
@doc """
新增使用者群組
* [Session](#/authentication) Required
* users: 属於该群组的user id list
* resume: team的描述
### Request
```{"team_name": "ateamname","resume": "i'm descript", "users": [1]}```
... | 21.474178 | 76 | 0.462615 |
1a8806e05908e8952ebed94f2fed478ef4dbbd8d | 2,274 | ex | Elixir | lib/hexpm/web/controllers/test_controller.ex | lau/hexpm | beee80f5358a356530debfea35ee65c3a0aa9b25 | [
"Apache-2.0"
] | null | null | null | lib/hexpm/web/controllers/test_controller.ex | lau/hexpm | beee80f5358a356530debfea35ee65c3a0aa9b25 | [
"Apache-2.0"
] | null | null | null | lib/hexpm/web/controllers/test_controller.ex | lau/hexpm | beee80f5358a356530debfea35ee65c3a0aa9b25 | [
"Apache-2.0"
] | null | null | null | defmodule Hexpm.Web.TestController do
use Hexpm.Web, :controller
def registry(conn, _params) do
registry = Hexpm.Store.get(nil, :s3_bucket, "registry.ets.gz", [])
if signature = Hexpm.Store.get(nil, :s3_bucket, "registry.ets.gz.signed", []) do
conn
|> put_resp_header("x-hex-signature", signatu... | 28.074074 | 93 | 0.64292 |
1a881aa60a1c8638c895193881198c0935a79105 | 9,255 | ex | Elixir | lib/livebook/evaluator.ex | benjreinhart/livebook | 0500ad5c6237167ce9769d8cc78fca360834f576 | [
"Apache-2.0"
] | null | null | null | lib/livebook/evaluator.ex | benjreinhart/livebook | 0500ad5c6237167ce9769d8cc78fca360834f576 | [
"Apache-2.0"
] | null | null | null | lib/livebook/evaluator.ex | benjreinhart/livebook | 0500ad5c6237167ce9769d8cc78fca360834f576 | [
"Apache-2.0"
] | 1 | 2021-07-07T06:18:36.000Z | 2021-07-07T06:18:36.000Z | defmodule Livebook.Evaluator do
@moduledoc false
# A process responsible for evaluating notebook code.
#
# The process receives evaluation request and synchronously
# evaluates the given code within itself (rather than spawning a separate process).
# It stores the resulting binding and env as part of the s... | 32.473684 | 139 | 0.672285 |
1a8852c2b69e4cdf2f27b5e411f489f577cae1d5 | 595 | exs | Elixir | test/clipboard_test.exs | jayjun/clipboard | ad5e0eb2485b6cdd26e53060bc9255fd36b55a43 | [
"MIT"
] | 30 | 2017-07-06T08:34:53.000Z | 2022-02-09T12:00:06.000Z | test/clipboard_test.exs | jayjun/clipboard | ad5e0eb2485b6cdd26e53060bc9255fd36b55a43 | [
"MIT"
] | 1 | 2017-10-10T20:40:13.000Z | 2017-10-12T01:49:42.000Z | test/clipboard_test.exs | jayjun/clipboard | ad5e0eb2485b6cdd26e53060bc9255fd36b55a43 | [
"MIT"
] | 1 | 2017-10-03T17:16:36.000Z | 2017-10-03T17:16:36.000Z | defmodule ClipboardTest do
use ExUnit.Case
test "copy returns the same value" do
string = "Hello, World!"
list = ["Hello", "World"]
map = %{hello: "world"}
tuple = {"hello", "world"}
assert string == Clipboard.copy(string)
assert list == Clipboard.copy(list)
assert map == Clipboard.cop... | 22.884615 | 59 | 0.643697 |
1a88537ec9610230589a1524dce6598f3d6e38db | 105 | ex | Elixir | test/support/test_setup/shipping_calculator.ex | harry-gao/ex-cart | 573e7f977bb3b710d11618dd215d4ddd8f819fb3 | [
"Apache-2.0"
] | 356 | 2016-03-16T12:37:28.000Z | 2021-12-18T03:22:39.000Z | test/support/test_setup/shipping_calculator.ex | harry-gao/ex-cart | 573e7f977bb3b710d11618dd215d4ddd8f819fb3 | [
"Apache-2.0"
] | 30 | 2016-03-16T09:19:10.000Z | 2021-01-12T08:10:52.000Z | test/support/test_setup/shipping_calculator.ex | harry-gao/ex-cart | 573e7f977bb3b710d11618dd215d4ddd8f819fb3 | [
"Apache-2.0"
] | 72 | 2016-03-16T13:32:14.000Z | 2021-03-23T11:27:43.000Z | defmodule Nectar.TestSetup.ShippingCalculator do
def setup_calcaultors(calculator_names) do
end
end
| 17.5 | 48 | 0.838095 |
1a8860583f19ff5b959f4981261173a8d2aed447 | 4,853 | ex | Elixir | web/commanders/page_commander.ex | jschoch/unpolydrab | 419fa9ac2e23edcc347dc96102caffaedc0beb36 | [
"MIT"
] | null | null | null | web/commanders/page_commander.ex | jschoch/unpolydrab | 419fa9ac2e23edcc347dc96102caffaedc0beb36 | [
"MIT"
] | null | null | null | web/commanders/page_commander.ex | jschoch/unpolydrab | 419fa9ac2e23edcc347dc96102caffaedc0beb36 | [
"MIT"
] | null | null | null | defmodule DrabTestApp.PageCommander do
@moduledoc false
use Drab.Commander, modules: [Drab.Waiter]
onload :page_loaded
onconnect :page_connected
access_session :test_session_value1
before_handler :before_all
after_handler :after_all
before_handler :cancel_handler, only: [:core3_click]
afte... | 40.441667 | 120 | 0.688234 |
1a8862765e7b59680d18c4a19eb9529af9e6198f | 1,052 | ex | Elixir | test/support/channel_case.ex | V-Sekai/uro | 0b23da65d5c7e459efcd6b2c3d9bdf91c533b737 | [
"MIT"
] | 1 | 2022-01-11T04:05:39.000Z | 2022-01-11T04:05:39.000Z | test/support/channel_case.ex | V-Sekai/uro | 0b23da65d5c7e459efcd6b2c3d9bdf91c533b737 | [
"MIT"
] | 35 | 2021-02-10T08:18:57.000Z | 2021-05-06T17:19:50.000Z | test/support/channel_case.ex | V-Sekai/uro | 0b23da65d5c7e459efcd6b2c3d9bdf91c533b737 | [
"MIT"
] | null | null | null | defmodule UroWeb.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 with ... | 26.3 | 65 | 0.720532 |
1a88ba0d2767dc3c4943cef8b12ffc4c3551c6f8 | 2,222 | ex | Elixir | lib/local_hex/repository_proxy.ex | imsoulfly/local_hex_repo | 18fca51c44b3dd01d27684877b3c7bc13471f548 | [
"Apache-2.0"
] | 5 | 2021-11-13T13:58:06.000Z | 2022-03-26T03:47:57.000Z | lib/local_hex/repository_proxy.ex | imsoulfly/local_hex_repo | 18fca51c44b3dd01d27684877b3c7bc13471f548 | [
"Apache-2.0"
] | 3 | 2021-11-16T18:45:45.000Z | 2021-12-05T13:58:25.000Z | lib/local_hex/repository_proxy.ex | imsoulfly/local_hex_repo | 18fca51c44b3dd01d27684877b3c7bc13471f548 | [
"Apache-2.0"
] | null | null | null | defmodule LocalHex.RepositoryProxy do
@moduledoc """
This module serves the purpose of streamlining all changes to repos through one central process.
We are basically making use of how the process mailbox is handled step by stap and that way it prevents
race conditions when multiple changes happen concurrently ... | 31.295775 | 105 | 0.734473 |
1a88ee4b767db4cb846ceb82e36baa33cc1220db | 2,075 | ex | Elixir | lib/util/auth.ex | Chatatata/iyzico | 99f195e51b732e124bba82ad78c12d8f5ecbdf08 | [
"MIT"
] | 6 | 2017-08-22T15:27:33.000Z | 2019-01-25T10:31:10.000Z | lib/util/auth.ex | i386-64/iyzico | 99f195e51b732e124bba82ad78c12d8f5ecbdf08 | [
"MIT"
] | 12 | 2017-08-23T13:21:26.000Z | 2020-03-31T21:07:23.000Z | lib/util/auth.ex | i386-64/iyzico | 99f195e51b732e124bba82ad78c12d8f5ecbdf08 | [
"MIT"
] | 4 | 2017-09-24T15:40:08.000Z | 2020-01-31T10:21:32.000Z | defmodule Iyzico.Auth do
@moduledoc false
@doc false
import Iyzico.CompileTime
@auth_header "Authorization"
@random_header "x-iyzi-rnd"
@client_version_header "x-iyzi-client-version"
@auth_header_prefix "IYZWS"
@client_title "iyzico Elixir Client"
@client_version Mix.Project.config()[:version]
@ra... | 35.169492 | 116 | 0.743133 |
1a88f05c580e6729f2baa8b537d2502dba889433 | 32,057 | ex | Elixir | lib/aws/generated/global_accelerator.ex | kw7oe/aws-elixir | 4ba60502dde270c83143822c9964018c7770bad7 | [
"Apache-2.0"
] | 341 | 2018-04-04T19:06:19.000Z | 2022-03-25T21:34:23.000Z | lib/aws/generated/global_accelerator.ex | kw7oe/aws-elixir | 4ba60502dde270c83143822c9964018c7770bad7 | [
"Apache-2.0"
] | 82 | 2018-04-04T17:32:33.000Z | 2022-03-24T15:12:04.000Z | lib/aws/generated/global_accelerator.ex | kw7oe/aws-elixir | 4ba60502dde270c83143822c9964018c7770bad7 | [
"Apache-2.0"
] | 76 | 2018-04-10T20:19:44.000Z | 2022-03-15T13:49:19.000Z | # WARNING: DO NOT EDIT, AUTO-GENERATED CODE!
# See https://github.com/aws-beam/aws-codegen for more details.
defmodule AWS.GlobalAccelerator do
@moduledoc """
AWS Global Accelerator
This is the *AWS Global Accelerator API Reference*.
This guide is for developers who need detailed information about AWS Global... | 44.338866 | 192 | 0.754905 |
1a893b35aa1cc4b33599baac56b036a494088c60 | 1,402 | ex | Elixir | lib/ecc/crypto.ex | farao/elixir-ecc | e5a06db96a96da1c806fcfc07963ca1e4cebc68e | [
"MIT"
] | 16 | 2015-05-26T04:51:23.000Z | 2022-02-14T10:09:08.000Z | lib/ecc/crypto.ex | farao/elixir-ecc | e5a06db96a96da1c806fcfc07963ca1e4cebc68e | [
"MIT"
] | 3 | 2015-08-09T13:03:48.000Z | 2020-01-06T23:28:26.000Z | lib/ecc/crypto.ex | farao/elixir-ecc | e5a06db96a96da1c806fcfc07963ca1e4cebc68e | [
"MIT"
] | 4 | 2015-08-09T12:31:03.000Z | 2020-05-19T23:05:50.000Z | defmodule ECC.Crypto do
def parse_public_key(pem) do
try do
pem_keys = :public_key.pem_decode(pem)
ec_params =
find_entry(pem_keys, :EcpkParameters)
|> :public_key.pem_entry_decode()
{:SubjectPublicKeyInfo, pem_public, _} = find_entry(pem_keys, :SubjectPublicKeyInfo)
{:S... | 25.035714 | 90 | 0.622682 |
1a893d16aa27cabf4f6a6dad9953a8f3d9289b55 | 73 | ex | Elixir | lib/hippo_game_live_web/views/page_view.ex | manojsamanta/typing-race | 6bec298b3470145ba9ae6b23ee8c5e2a6be7328b | [
"MIT"
] | null | null | null | lib/hippo_game_live_web/views/page_view.ex | manojsamanta/typing-race | 6bec298b3470145ba9ae6b23ee8c5e2a6be7328b | [
"MIT"
] | 2 | 2021-03-09T16:25:19.000Z | 2021-05-10T11:12:55.000Z | lib/hippo_game_live_web/views/page_view.ex | manojsamanta/typing-race | 6bec298b3470145ba9ae6b23ee8c5e2a6be7328b | [
"MIT"
] | 1 | 2021-07-04T09:01:31.000Z | 2021-07-04T09:01:31.000Z | defmodule HippoGameLiveWeb.PageView do
use HippoGameLiveWeb, :view
end
| 18.25 | 38 | 0.835616 |
1a8949113731c5755673d19f59f51934f74630b3 | 1,222 | exs | Elixir | test/credo/check/readability/pipe_into_anonymous_functions_test.exs | hrzndhrn/credo | 71a7b24a5ca8e7a48416e0cdfb42cf8a0fef9593 | [
"MIT"
] | 4,590 | 2015-09-28T06:01:43.000Z | 2022-03-29T08:48:57.000Z | test/credo/check/readability/pipe_into_anonymous_functions_test.exs | hrzndhrn/credo | 71a7b24a5ca8e7a48416e0cdfb42cf8a0fef9593 | [
"MIT"
] | 890 | 2015-11-16T21:07:07.000Z | 2022-03-29T08:52:07.000Z | test/credo/check/readability/pipe_into_anonymous_functions_test.exs | hrzndhrn/credo | 71a7b24a5ca8e7a48416e0cdfb42cf8a0fef9593 | [
"MIT"
] | 479 | 2015-11-17T19:42:40.000Z | 2022-03-29T00:09:21.000Z | defmodule Credo.Check.Readability.PipeIntoAnonymousFunctionsTest do
use Credo.Test.Case
@described_check Credo.Check.Readability.PipeIntoAnonymousFunctions
#
# cases NOT raising issues
#
test "it should NOT report expected code" do
"""
defmodule CredoSampleModule do
use ExUnit.Case
d... | 18.8 | 69 | 0.595745 |
1a896355c3997c26e255cbcd0084a1ddb135a864 | 1,479 | ex | Elixir | lib/discovery_api/schemas/users.ex | folkengine/discovery_api | 0bb7a0aff4603a4f7532cc65ca8c8dbb37a57217 | [
"Apache-2.0"
] | 1 | 2021-04-05T19:17:18.000Z | 2021-04-05T19:17:18.000Z | lib/discovery_api/schemas/users.ex | folkengine/discovery_api | 0bb7a0aff4603a4f7532cc65ca8c8dbb37a57217 | [
"Apache-2.0"
] | 11 | 2020-01-07T15:43:42.000Z | 2020-12-22T15:23:25.000Z | lib/discovery_api/schemas/users.ex | folkengine/discovery_api | 0bb7a0aff4603a4f7532cc65ca8c8dbb37a57217 | [
"Apache-2.0"
] | null | null | null | defmodule DiscoveryApi.Schemas.Users do
@moduledoc """
Interface for reading and writing the User schema.
"""
alias DiscoveryApi.Repo
alias DiscoveryApi.Schemas.Users.User
alias DiscoveryApi.Schemas.Organizations
def list_users do
Repo.all(User)
end
def create(user_attrs) do
%User{}
|> U... | 26.410714 | 108 | 0.647059 |
1a8966476262a006f6e2b8100dc2324d6dbaf371 | 84 | exs | Elixir | test/views/layout_view_test.exs | jschoch/unpolydrab | 419fa9ac2e23edcc347dc96102caffaedc0beb36 | [
"MIT"
] | null | null | null | test/views/layout_view_test.exs | jschoch/unpolydrab | 419fa9ac2e23edcc347dc96102caffaedc0beb36 | [
"MIT"
] | null | null | null | test/views/layout_view_test.exs | jschoch/unpolydrab | 419fa9ac2e23edcc347dc96102caffaedc0beb36 | [
"MIT"
] | null | null | null | defmodule DrabTestApp.LayoutViewTest do
use DrabTestApp.ConnCase, async: true
end
| 21 | 39 | 0.833333 |
1a89d8eeb97f845cbe33334702fdb178026ade57 | 2,534 | ex | Elixir | lib/jbot/servers/issuer.ex | Waasi/jbot | 71c267e66fef612207462bef6310ee665a142c61 | [
"MIT"
] | 2 | 2017-01-30T01:15:38.000Z | 2020-04-09T08:27:10.000Z | lib/jbot/servers/issuer.ex | Waasi/jbot | 71c267e66fef612207462bef6310ee665a142c61 | [
"MIT"
] | null | null | null | lib/jbot/servers/issuer.ex | Waasi/jbot | 71c267e66fef612207462bef6310ee665a142c61 | [
"MIT"
] | null | null | null | defmodule Jbot.Issuer do
@moduledoc """
Jbot.Issuer is an action server that replies
to all issue related messages received by jbot.
"""
use GenServer
alias Jbot.Repo
alias Slack.Sends
alias Jirex.Issue
#####
# Public API
#####
def start_link do
GenServer.start_link(__MODULE__, [], [name:... | 23.247706 | 127 | 0.59629 |
1a89edfa1c2049953ee72c560da54d0fa585ada8 | 206 | ex | Elixir | lib/oriel_web/plug/absinthe_remote_ip.ex | sgeos/oriel | 145c563e1ef30119881b1c589b57e9ede7de083f | [
"BSD-3-Clause"
] | 1 | 2022-01-27T08:17:53.000Z | 2022-01-27T08:17:53.000Z | lib/oriel_web/plug/absinthe_remote_ip.ex | sgeos/oriel | 145c563e1ef30119881b1c589b57e9ede7de083f | [
"BSD-3-Clause"
] | null | null | null | lib/oriel_web/plug/absinthe_remote_ip.ex | sgeos/oriel | 145c563e1ef30119881b1c589b57e9ede7de083f | [
"BSD-3-Clause"
] | null | null | null | defmodule Oriel.Plug.AbsintheRemoteIp do
def init(options), do: options
def call(conn, _) do
context = %{remote_ip: conn.remote_ip}
Absinthe.Plug.put_options(conn, context: context)
end
end
| 20.6 | 53 | 0.723301 |
1a8a1680ca3411e822b9c85866da1473c18b8479 | 1,748 | ex | Elixir | lib/scidata/wine.ex | goodhamgupta/scidata | 0336e188213b2d8629060930143013a43507ce2f | [
"Apache-2.0"
] | null | null | null | lib/scidata/wine.ex | goodhamgupta/scidata | 0336e188213b2d8629060930143013a43507ce2f | [
"Apache-2.0"
] | null | null | null | lib/scidata/wine.ex | goodhamgupta/scidata | 0336e188213b2d8629060930143013a43507ce2f | [
"Apache-2.0"
] | null | null | null | defmodule Scidata.Wine do
@moduledoc """
Module for downloading the [Wine Data Set](https://archive.ics.uci.edu/ml/datasets/wine).
"""
@base_url "https://archive.ics.uci.edu/ml/machine-learning-databases/wine/"
@dataset_file "wine.data"
alias Scidata.Utils
@doc """
Downloads the Wine dataset or fetch... | 22.126582 | 102 | 0.594966 |
1a8a87a410be5a2b73ebc3c45409f37e25d40737 | 887 | ex | Elixir | lib/hello/endpoint.ex | shiwork/sample-phoenix | 2bfed91c37d8d0ddb723f3597d3a03e9ad84cc8f | [
"MIT"
] | null | null | null | lib/hello/endpoint.ex | shiwork/sample-phoenix | 2bfed91c37d8d0ddb723f3597d3a03e9ad84cc8f | [
"MIT"
] | null | null | null | lib/hello/endpoint.ex | shiwork/sample-phoenix | 2bfed91c37d8d0ddb723f3597d3a03e9ad84cc8f | [
"MIT"
] | null | null | null | defmodule Hello.Endpoint do
use Phoenix.Endpoint, otp_app: :hello
# 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: "/", from: :hello, gzip: false,
o... | 23.972973 | 65 | 0.692221 |
1a8aa6511cb2f7176c5364323ea7ef8aee28fd00 | 2,878 | ex | Elixir | clients/content/lib/google_api/content/v21/model/return_shipment.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/content/lib/google_api/content/v21/model/return_shipment.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/content/lib/google_api/content/v21/model/return_shipment.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 43.606061 | 236 | 0.69041 |
1a8ab6841d19d9dce14fc8e6aa7da5a329b4c9d0 | 6,998 | ex | Elixir | lib/repo/repo.ex | ybdeposit/ex_audit | ecd8c5c801fa7cf607126069f5c8e7b0736e1279 | [
"MIT"
] | null | null | null | lib/repo/repo.ex | ybdeposit/ex_audit | ecd8c5c801fa7cf607126069f5c8e7b0736e1279 | [
"MIT"
] | null | null | null | lib/repo/repo.ex | ybdeposit/ex_audit | ecd8c5c801fa7cf607126069f5c8e7b0736e1279 | [
"MIT"
] | null | null | null | defmodule ExAudit.Repo do
@moduledoc """
Adds ExAudit version tracking to your Ecto.Repo actions. The following functions are
extended to detect if the given struct or changeset is in the list of :tracked_schemas
given in :ex_audit config:
insert: 2,
update: 2,
insert_or_update: 2,
delete: 2,
... | 28.563265 | 125 | 0.588168 |
1a8ad541546a38e528dd6c54e0856f3f76c9885e | 614 | exs | Elixir | test/views/error_view_test.exs | bionikspoon/classroom-dashboard | c324eeab568335591daf83ae0bdd9a60d25f4595 | [
"MIT"
] | null | null | null | test/views/error_view_test.exs | bionikspoon/classroom-dashboard | c324eeab568335591daf83ae0bdd9a60d25f4595 | [
"MIT"
] | null | null | null | test/views/error_view_test.exs | bionikspoon/classroom-dashboard | c324eeab568335591daf83ae0bdd9a60d25f4595 | [
"MIT"
] | null | null | null | defmodule Dashboard.ErrorViewTest do
use Dashboard.ConnCase, async: true
# Bring render/3 and render_to_string/3 for testing custom views
import Phoenix.View
test "renders 404.json" do
assert render(Dashboard.ErrorView, "404.json", []) ==
%{errors: %{detail: "Page not found"}}
end
test "re... | 27.909091 | 66 | 0.651466 |
1a8b00cca198ba6d9b9400947e40bc3a6c51fa46 | 1,356 | ex | Elixir | lib/planga/chat/converse.ex | ResiliaDev/Planga | b21d290dd7c2c7fa30571d0a5124d63bd09c0c9e | [
"MIT"
] | 37 | 2018-07-13T14:08:16.000Z | 2021-04-09T15:00:22.000Z | lib/planga/chat/converse.ex | ResiliaDev/Planga | b21d290dd7c2c7fa30571d0a5124d63bd09c0c9e | [
"MIT"
] | 9 | 2018-07-16T15:24:39.000Z | 2021-09-01T14:21:20.000Z | lib/planga/chat/converse.ex | ResiliaDev/Planga | b21d290dd7c2c7fa30571d0a5124d63bd09c0c9e | [
"MIT"
] | 3 | 2018-10-05T20:19:25.000Z | 2019-12-05T00:30:01.000Z | defmodule Planga.Chat.Converse do
@doc """
Called whenever chatter requires more (i.e. earlier) messages.
"""
def previous_messages(
%{
app_id: app_id,
config: %Planga.Connection.Config{conversation_id: remote_conversation_id}
},
sent_before_datetime \\ nil
) do... | 32.285714 | 106 | 0.712389 |
1a8ba8ab7983ddc4afcce9e0d21b918128bec248 | 2,889 | ex | Elixir | lib/mix/tasks/hex.search.ex | davydog187/hex | c12ebc3b751ecb900d1dc85aad7f5a12f309152a | [
"Apache-2.0"
] | null | null | null | lib/mix/tasks/hex.search.ex | davydog187/hex | c12ebc3b751ecb900d1dc85aad7f5a12f309152a | [
"Apache-2.0"
] | null | null | null | lib/mix/tasks/hex.search.ex | davydog187/hex | c12ebc3b751ecb900d1dc85aad7f5a12f309152a | [
"Apache-2.0"
] | null | null | null | defmodule Mix.Tasks.Hex.Search do
use Mix.Task
@shortdoc "Searches for package names"
@moduledoc """
Displays packages matching the given search query.
If you are authenticated it will additionally search all organizations you are member of.
mix hex.search PACKAGE
## Command line options
* `... | 23.680328 | 96 | 0.615438 |
1a8bc2deba089d34d2e09f50472f4273edd2f609 | 29,908 | ex | Elixir | clients/recommender/lib/google_api/recommender/v1/api/organizations.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/recommender/lib/google_api/recommender/v1/api/organizations.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/recommender/lib/google_api/recommender/v1/api/organizations.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... | 48.083601 | 508 | 0.642136 |
1a8bd4ab7b735da15965e58e15c2cc2d1686c1d9 | 7,136 | exs | Elixir | test/opentelemetry_phoenix_test.exs | qdentity/opentelemetry_phoenix | c5f61c7aef832caa05b0c8fc01e41498af361694 | [
"Apache-2.0"
] | null | null | null | test/opentelemetry_phoenix_test.exs | qdentity/opentelemetry_phoenix | c5f61c7aef832caa05b0c8fc01e41498af361694 | [
"Apache-2.0"
] | null | null | null | test/opentelemetry_phoenix_test.exs | qdentity/opentelemetry_phoenix | c5f61c7aef832caa05b0c8fc01e41498af361694 | [
"Apache-2.0"
] | null | null | null | defmodule OpentelemetryPhoenixTest do
use ExUnit.Case, async: false
doctest OpentelemetryPhoenix
require OpenTelemetry.Tracer
require OpenTelemetry.Span
require Record
alias PhoenixMeta, as: Meta
for {name, spec} <- Record.extract_all(from_lib: "opentelemetry/include/otel_span.hrl") do
Record.defre... | 32.584475 | 117 | 0.518358 |
1a8bdc93f8560b989978684f76cd6d2ef29e9e56 | 2,214 | ex | Elixir | apps/omg_watcher/lib/omg_watcher/recorder.ex | kendricktan/elixir-omg | 834c103fd5c4b9e063c1d32b9b4e5728abb64009 | [
"Apache-2.0"
] | null | null | null | apps/omg_watcher/lib/omg_watcher/recorder.ex | kendricktan/elixir-omg | 834c103fd5c4b9e063c1d32b9b4e5728abb64009 | [
"Apache-2.0"
] | null | null | null | apps/omg_watcher/lib/omg_watcher/recorder.ex | kendricktan/elixir-omg | 834c103fd5c4b9e063c1d32b9b4e5728abb64009 | [
"Apache-2.0"
] | null | null | null | # Copyright 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 writi... | 29.131579 | 114 | 0.62421 |
1a8bded6139861207b6f5983d87162c4a4491b13 | 6,416 | ex | Elixir | apps/ewallet/lib/ewallet/web/filters/match_parser.ex | amadeobrands/ewallet | 505b7822721940a7b892a9b35c225e80cc8ac0b4 | [
"Apache-2.0"
] | 1 | 2018-12-07T06:21:21.000Z | 2018-12-07T06:21:21.000Z | apps/ewallet/lib/ewallet/web/filters/match_parser.ex | amadeobrands/ewallet | 505b7822721940a7b892a9b35c225e80cc8ac0b4 | [
"Apache-2.0"
] | null | null | null | apps/ewallet/lib/ewallet/web/filters/match_parser.ex | amadeobrands/ewallet | 505b7822721940a7b892a9b35c225e80cc8ac0b4 | [
"Apache-2.0"
] | null | null | null | defmodule EWallet.Web.MatchParser do
@moduledoc """
This module allows parsing of arbitrary attributes into a filtering query.
It takes in a request's attributes, parses only the attributes needed for filtering,
then builds those attributes into a filtering query on top of the given `Ecto.Queryable`.
"""
im... | 33.416667 | 97 | 0.623286 |
1a8bed18245c3fa0db6c2864b4013b106e0a4f4a | 5,532 | exs | Elixir | apps/snitch_core/test/data/model/zone/state_zone_test.exs | VeryBigThings/avia | 7ce5d5b244ae0dfddc30c09c17efe27f1718a4c9 | [
"MIT"
] | 1 | 2021-04-08T22:29:19.000Z | 2021-04-08T22:29:19.000Z | apps/snitch_core/test/data/model/zone/state_zone_test.exs | VeryBigThings/avia | 7ce5d5b244ae0dfddc30c09c17efe27f1718a4c9 | [
"MIT"
] | null | null | null | apps/snitch_core/test/data/model/zone/state_zone_test.exs | VeryBigThings/avia | 7ce5d5b244ae0dfddc30c09c17efe27f1718a4c9 | [
"MIT"
] | null | null | null | defmodule Snitch.Data.Model.StateZoneTest do
use ExUnit.Case, async: true
use Snitch.DataCase
import Snitch.Factory
alias Ecto.Query
alias Snitch.Data.Model.StateZone
alias Snitch.Data.Schema.{StateZoneMember, Zone}
setup :states
setup :state_zone
setup :zones
@tag state_count: 3
describe "cre... | 31.793103 | 93 | 0.625452 |
1a8c0295ee9c3f88d492d00b923e4d5c7b6bf462 | 2,615 | ex | Elixir | apps/jsonrpc2/test/support/clients/tcp/protocol.ex | wolflee/mana | db66dac85addfaad98d40da5bd4082b3a0198bb1 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 152 | 2018-10-27T04:52:03.000Z | 2022-03-26T10:34:00.000Z | apps/jsonrpc2/test/support/clients/tcp/protocol.ex | wolflee/mana | db66dac85addfaad98d40da5bd4082b3a0198bb1 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 270 | 2018-04-14T07:34:57.000Z | 2018-10-25T18:10:45.000Z | apps/jsonrpc2/test/support/clients/tcp/protocol.ex | wolflee/mana | db66dac85addfaad98d40da5bd4082b3a0198bb1 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 25 | 2018-10-27T12:15:13.000Z | 2022-01-25T20:31:14.000Z | defmodule JSONRPC2.Clients.TCP.Protocol do
use GenServer
require Logger
alias JSONRPC2.Request
alias JSONRPC2.Response
@moduledoc false
# API
def handle_call({:call, method, params, string_id}, _from, state) do
external_request_id_int = external_request_id(state.request_counter)
external_request_... | 23.141593 | 72 | 0.600382 |
1a8c22c3b04d6a68fc146f6bc29d5de98affdb43 | 83 | exs | Elixir | config/test.exs | nenros/zmq_ex | 483fc3dadb4d59937b7dbf8839bcfcd1ae6f74ab | [
"MIT"
] | null | null | null | config/test.exs | nenros/zmq_ex | 483fc3dadb4d59937b7dbf8839bcfcd1ae6f74ab | [
"MIT"
] | null | null | null | config/test.exs | nenros/zmq_ex | 483fc3dadb4d59937b7dbf8839bcfcd1ae6f74ab | [
"MIT"
] | null | null | null | use Mix.Config
config :junit_formatter,
report_dir: System.get_env("JUNIT_DIR")
| 16.6 | 41 | 0.783133 |
1a8c3246c31c075fb2e28fe76b4dfc6e0da9651b | 891 | ex | Elixir | lib/bike_brigade/geocoder/lib_lat_lon_geocoder.ex | bikebrigade/dispatch | eb622fe4f6dab7c917d678d3d7a322a01f97da44 | [
"Apache-2.0"
] | 28 | 2021-10-11T01:53:53.000Z | 2022-03-24T17:45:55.000Z | lib/bike_brigade/geocoder/lib_lat_lon_geocoder.ex | bikebrigade/dispatch | eb622fe4f6dab7c917d678d3d7a322a01f97da44 | [
"Apache-2.0"
] | 20 | 2021-10-21T08:12:31.000Z | 2022-03-31T13:35:53.000Z | lib/bike_brigade/geocoder/lib_lat_lon_geocoder.ex | bikebrigade/dispatch | eb622fe4f6dab7c917d678d3d7a322a01f97da44 | [
"Apache-2.0"
] | null | null | null | defmodule BikeBrigade.Geocoder.LibLatLonGeocoder do
@behaviour BikeBrigade.Geocoder
alias LibLatLon.Providers.GoogleMaps
def lookup(_, search) do
case GoogleMaps.lookup(search) do
{:ok,
%{
coords: %{lat: lat, lon: lon},
details: %{
street_number: street_number,
... | 23.447368 | 54 | 0.523008 |
1a8c537ecf412b732bcc2e274c1912c0f58ec8f8 | 5,123 | exs | Elixir | test/filter/filter_interaction_test.exs | zimt28/ash | ea4c0e78b58762dfb947af2fa9649b25bfdc78cf | [
"MIT"
] | null | null | null | test/filter/filter_interaction_test.exs | zimt28/ash | ea4c0e78b58762dfb947af2fa9649b25bfdc78cf | [
"MIT"
] | null | null | null | test/filter/filter_interaction_test.exs | zimt28/ash | ea4c0e78b58762dfb947af2fa9649b25bfdc78cf | [
"MIT"
] | null | null | null | defmodule Ash.Test.Filter.FilterInteractionTest do
use ExUnit.Case, async: false
import ExUnit.CaptureLog
alias Ash.DataLayer.Mnesia
require Ash.Query
defmodule Profile do
@moduledoc false
use Ash.Resource, data_layer: Ash.DataLayer.Ets
ets do
private?(true)
end
actions do
... | 20.090196 | 97 | 0.584228 |
1a8c62ca82a379b2dbdfdf7b039b3116dac4cb28 | 2,262 | ex | Elixir | lib/techblog/lib/hackerrank/instring.ex | aforward/anunknown | 67838fe6f60825fd8c057c825f497ce7ef046083 | [
"MIT"
] | null | null | null | lib/techblog/lib/hackerrank/instring.ex | aforward/anunknown | 67838fe6f60825fd8c057c825f497ce7ef046083 | [
"MIT"
] | null | null | null | lib/techblog/lib/hackerrank/instring.ex | aforward/anunknown | 67838fe6f60825fd8c057c825f497ce7ef046083 | [
"MIT"
] | null | null | null | defmodule Techblog.Hackerrank.Instring do
@moduledoc """
A problem from
https://www.hackerrank.com/challenges/hackerrank-in-a-string/problem
We say that a string contains the word `hackerrank` if a subsequence of its
characters spell the word hackerrank.
For example, if string `s = haacckkerrannnkk` it do... | 26.302326 | 77 | 0.6313 |
1a8ca873640d67019c1b043a9ff832dc49fe0571 | 3,563 | ex | Elixir | clients/service_management/lib/google_api/service_management/v1/model/monitored_resource_descriptor.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/service_management/lib/google_api/service_management/v1/model/monitored_resource_descriptor.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/service_management/lib/google_api/service_management/v1/model/monitored_resource_descriptor.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... | 63.625 | 570 | 0.761998 |
1a8cd32937f9b38d4a0e7fcf613161ac33b6674e | 328 | ex | Elixir | apps/nerves_hub_web_core/lib/nerves_hub_web_core/accounts/org_user.ex | Gazler/nerves_hub_web | 9a636a17310382819eaa6cee590e053cb47f0dcc | [
"Apache-2.0"
] | 1 | 2020-08-04T14:13:24.000Z | 2020-08-04T14:13:24.000Z | apps/nerves_hub_web_core/lib/nerves_hub_web_core/accounts/org_user.ex | Eaftos/nerves_hub_web | ac03bd044b97265bf3ba3edd8da249d300fa3668 | [
"Apache-2.0"
] | 1 | 2020-09-08T15:15:50.000Z | 2020-09-08T16:13:28.000Z | apps/nerves_hub_web_core/lib/nerves_hub_web_core/accounts/org_user.ex | Eaftos/nerves_hub_web | ac03bd044b97265bf3ba3edd8da249d300fa3668 | [
"Apache-2.0"
] | null | null | null | defmodule NervesHubWebCore.Accounts.OrgUser do
use Ecto.Schema
import Ecto.Query
alias NervesHubWebCore.Accounts.{User, Org}
schema "org_users" do
belongs_to(:org, Org)
belongs_to(:user, User)
field(:role, User.Role)
timestamps()
end
def with_user(query) do
preload(query, :user)
... | 15.619048 | 46 | 0.695122 |
1a8d0a55e6ea3e59b15c0ea2e97b5f3272b971cb | 69 | exs | Elixir | test/basic_math_test.exs | zacky1972/basic_math | 78f65a731fc57e2a45324fe55005151c29d45f54 | [
"Apache-2.0"
] | null | null | null | test/basic_math_test.exs | zacky1972/basic_math | 78f65a731fc57e2a45324fe55005151c29d45f54 | [
"Apache-2.0"
] | null | null | null | test/basic_math_test.exs | zacky1972/basic_math | 78f65a731fc57e2a45324fe55005151c29d45f54 | [
"Apache-2.0"
] | 1 | 2021-12-07T01:52:18.000Z | 2021-12-07T01:52:18.000Z | defmodule BasicMathTest do
use ExUnit.Case
doctest BasicMath
end
| 13.8 | 26 | 0.811594 |
1a8d10de25b1d9ba3496b82d66eee4f512798e36 | 1,117 | ex | Elixir | test/support/channel_case.ex | Goose-Vic/free_fall | 84d95e33cbd0d6e06dd9170576726929e97b25ac | [
"MIT"
] | 1 | 2021-11-17T21:16:30.000Z | 2021-11-17T21:16:30.000Z | test/support/channel_case.ex | Goose-Vic/free_fall | 84d95e33cbd0d6e06dd9170576726929e97b25ac | [
"MIT"
] | null | null | null | test/support/channel_case.ex | Goose-Vic/free_fall | 84d95e33cbd0d6e06dd9170576726929e97b25ac | [
"MIT"
] | 9 | 2021-07-29T23:36:54.000Z | 2021-09-30T22:47:39.000Z | defmodule FreeFallWeb.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 ... | 27.243902 | 70 | 0.728738 |
1a8d18472015cb795680e0392b2dcc91f384abc5 | 1,458 | ex | Elixir | 2021/elixir/apps/day11/lib/part2.ex | ColdOrange/advent_of_code | 18c4054558fdcaf123c8d8057b6de23894488a73 | [
"MIT"
] | null | null | null | 2021/elixir/apps/day11/lib/part2.ex | ColdOrange/advent_of_code | 18c4054558fdcaf123c8d8057b6de23894488a73 | [
"MIT"
] | null | null | null | 2021/elixir/apps/day11/lib/part2.ex | ColdOrange/advent_of_code | 18c4054558fdcaf123c8d8057b6de23894488a73 | [
"MIT"
] | null | null | null | defmodule Day11Part2 do
@moduledoc """
Day11 - Part2
"""
def solve(input) do
input
|> String.split("\n", trim: true)
|> Enum.map(&String.to_charlist/1)
|> Enum.with_index()
|> Enum.reduce(%{}, fn {list, row}, map ->
list
|> Enum.with_index()
|> Enum.reduce(map, fn {number,... | 23.142857 | 89 | 0.535665 |
1a8d1a5059db4556d0bdacf7766d7351d40042e2 | 546 | ex | Elixir | lib/fryse/cli/serve.ex | fryse/fryse | 56e25ff2dc3dad56593849af7e8786225b918934 | [
"MIT"
] | 7 | 2018-02-03T01:04:22.000Z | 2020-07-19T16:47:03.000Z | lib/fryse/cli/serve.ex | fryse/fryse | 56e25ff2dc3dad56593849af7e8786225b918934 | [
"MIT"
] | 3 | 2020-07-16T09:28:38.000Z | 2020-07-22T09:40:45.000Z | lib/fryse/cli/serve.ex | fryse/fryse | 56e25ff2dc3dad56593849af7e8786225b918934 | [
"MIT"
] | null | null | null | defmodule Fryse.CLI.Serve do
use Fryse.Command
@shortdoc "Serves static files"
@moduledoc false
@doc false
def run(args) do
{switches, _, _} = OptionParser.parse(args, switches: [port: :integer])
port = Keyword.get(switches, :port, 7777)
Application.start(:cowboy)
Application.start(:plug)... | 23.73913 | 78 | 0.663004 |
1a8d1ea7d76db92119da90029911b5ef2676efc0 | 595 | exs | Elixir | priv/repo/migrations/034_create_sms_template.exs | freshcom/freshcom-api | 4f2083277943cf4e4e8fd4c4d443c7309f285ad7 | [
"BSD-3-Clause"
] | 44 | 2018-05-09T01:08:57.000Z | 2021-01-19T07:25:26.000Z | priv/repo/migrations/034_create_sms_template.exs | freshcom/freshcom-api | 4f2083277943cf4e4e8fd4c4d443c7309f285ad7 | [
"BSD-3-Clause"
] | 36 | 2018-05-08T23:59:54.000Z | 2018-09-28T13:50:30.000Z | priv/repo/migrations/034_create_sms_template.exs | freshcom/freshcom-api | 4f2083277943cf4e4e8fd4c4d443c7309f285ad7 | [
"BSD-3-Clause"
] | 9 | 2018-05-09T14:09:19.000Z | 2021-03-21T21:04:04.000Z | defmodule BlueJet.Repo.Migrations.CreateSMSTemplate do
use Ecto.Migration
def change do
create table(:sms_templates, primary_key: false) do
add :id, :binary_id, primary_key: true
add :account_id, references(:accounts, type: :binary_id, on_delete: :delete_all), null: false
add :system_label, :... | 25.869565 | 99 | 0.660504 |
1a8d288ae0ec9c52a33c8491b30bf235e55edc02 | 3,721 | exs | Elixir | test/behaviour/handle_packet_test.exs | ityonemo/ExDhcp | 9a7f47da61a93b4fb9efaa62bbdb362e3b467b2b | [
"MIT"
] | null | null | null | test/behaviour/handle_packet_test.exs | ityonemo/ExDhcp | 9a7f47da61a93b4fb9efaa62bbdb362e3b467b2b | [
"MIT"
] | 16 | 2019-12-16T04:56:50.000Z | 2020-03-11T20:18:56.000Z | test/behaviour/handle_packet_test.exs | ityonemo/ex_dhcp | 9a7f47da61a93b4fb9efaa62bbdb362e3b467b2b | [
"MIT"
] | 1 | 2019-12-13T19:04:50.000Z | 2019-12-13T19:04:50.000Z | defmodule DhcpTest.Behaviour.HandlePacketTest do
@moduledoc false
use ExUnit.Case, async: true
alias ExDhcp.Packet
@moduletag [handle_packet: true, behaviour: true]
defmodule PckSrvNoRespond do
alias DhcpTest.Behaviour.CommonDhcp
require CommonDhcp
CommonDhcp.setup
def handle_packet(pack,... | 30.752066 | 85 | 0.673475 |
1a8d30f9b4811dda90138f8a846f91460a789be7 | 1,811 | exs | Elixir | clients/connectors/mix.exs | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/connectors/mix.exs | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/connectors/mix.exs | 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... | 27.029851 | 101 | 0.653782 |
1a8d425ea14d87a11d9b38d462a610b674f55e77 | 2,130 | ex | Elixir | clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_inspect_result.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_inspect_result.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_inspect_result.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "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... | 41.764706 | 418 | 0.761033 |
1a8d4ffee2b5964c99b98a0d6006a9ac451d75c0 | 1,943 | ex | Elixir | lib/nostrum/struct/component/select_menu.ex | brettkolodny/nostrum | 3e26af6c106558bfe3fd48dcf3064fbc361605b5 | [
"MIT"
] | 637 | 2017-03-07T11:25:35.000Z | 2022-03-31T13:37:51.000Z | lib/nostrum/struct/component/select_menu.ex | brettkolodny/nostrum | 3e26af6c106558bfe3fd48dcf3064fbc361605b5 | [
"MIT"
] | 372 | 2017-03-07T20:42:03.000Z | 2022-03-30T22:46:46.000Z | lib/nostrum/struct/component/select_menu.ex | brettkolodny/nostrum | 3e26af6c106558bfe3fd48dcf3064fbc361605b5 | [
"MIT"
] | 149 | 2017-03-07T12:11:58.000Z | 2022-03-19T22:11:51.000Z | defmodule Nostrum.Struct.Component.SelectMenu do
@moduledoc """
Select Menu
"""
@moduledoc since: "0.5"
@defaults %{
custom_id: nil,
options: [],
placeholder: "",
min_values: 1,
disabled: false,
max_values: 1,
type: 3
}
use Nostrum.Struct.Component
@type t :: %{
ty... | 29 | 109 | 0.62738 |
1a8d525cf2b81191ca8f57dca37ea6064cb307d3 | 2,050 | ex | Elixir | clients/chrome_management/lib/google_api/chrome_management/v1/model/google_chrome_management_v1_chrome_app_permission.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/chrome_management/lib/google_api/chrome_management/v1/model/google_chrome_management_v1_chrome_app_permission.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/chrome_management/lib/google_api/chrome_management/v1/model/google_chrome_management_v1_chrome_app_permission.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.344828 | 162 | 0.730244 |
1a8d6770eac0930176f825fb4761dd605827078b | 1,363 | ex | Elixir | lib/app/poller.ex | baranov-sv/elixir-telegram-bot-boilerplate | 8134f8e88b3875f563b678adf5470a1f0c7ee2b1 | [
"MIT"
] | null | null | null | lib/app/poller.ex | baranov-sv/elixir-telegram-bot-boilerplate | 8134f8e88b3875f563b678adf5470a1f0c7ee2b1 | [
"MIT"
] | null | null | null | lib/app/poller.ex | baranov-sv/elixir-telegram-bot-boilerplate | 8134f8e88b3875f563b678adf5470a1f0c7ee2b1 | [
"MIT"
] | null | null | null | defmodule App.Poller do
use GenServer
require Logger
@polling_timeout 1000
# Server
def start_link do
Logger.log :info, "Started poller"
GenServer.start_link __MODULE__, :ok, name: __MODULE__
end
def init(:ok) do
{:ok, [], @polling_timeout}
end
def handle_cast(:update, _) do
get_u... | 18.173333 | 72 | 0.640499 |
1a8d7fe664dfa0944a32fca089ef593266926254 | 34,207 | exs | Elixir | test/phoenix_live_view/engine_test.exs | matthewlehner/phoenix_live_view | 5f3ffe94c2305c14f4fe72d1c05a917b6f751407 | [
"MIT"
] | 1 | 2022-03-13T23:01:55.000Z | 2022-03-13T23:01:55.000Z | test/phoenix_live_view/engine_test.exs | matthewlehner/phoenix_live_view | 5f3ffe94c2305c14f4fe72d1c05a917b6f751407 | [
"MIT"
] | null | null | null | test/phoenix_live_view/engine_test.exs | matthewlehner/phoenix_live_view | 5f3ffe94c2305c14f4fe72d1c05a917b6f751407 | [
"MIT"
] | 1 | 2021-11-20T01:11:28.000Z | 2021-11-20T01:11:28.000Z | defmodule Phoenix.LiveView.EngineTest do
use ExUnit.Case, async: true
alias Phoenix.LiveView.{Engine, Rendered}
def safe(do: {:safe, _} = safe), do: safe
def unsafe(do: {:safe, content}), do: content
describe "rendering" do
test "escapes HTML" do
template = """
<start> <%= "<escaped>" %>
... | 39.454441 | 115 | 0.512556 |
1a8d95d34196303d923864a5d9af0d18dc1cc062 | 2,775 | exs | Elixir | mix.exs | newaperio/phoenix_starter | 02f2f5550a94b940bb4e9c61042b032f54af8b72 | [
"MIT"
] | 3 | 2021-03-19T10:39:02.000Z | 2021-07-25T19:54:09.000Z | mix.exs | newaperio/phoenix_starter | 02f2f5550a94b940bb4e9c61042b032f54af8b72 | [
"MIT"
] | 204 | 2020-11-27T06:00:31.000Z | 2022-03-25T08:08:16.000Z | mix.exs | newaperio/phoenix_starter | 02f2f5550a94b940bb4e9c61042b032f54af8b72 | [
"MIT"
] | null | null | null | defmodule PhoenixStarter.MixProject do
use Mix.Project
def project do
[
app: :phoenix_starter,
version: "0.1.0",
elixir: "~> 1.11",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:phoenix, :gettext] ++ Mix.compilers(),
start_permanent: Mix.env() == :prod,
aliases... | 27.475248 | 79 | 0.516757 |
1a8db613406f6a591893501f06aeac69675eea59 | 538 | exs | Elixir | apps/tai/test/tai/venue_adapters/bitmex/client_id_test.exs | ihorkatkov/tai | 09f9f15d2c385efe762ae138a8570f1e3fd41f26 | [
"MIT"
] | 276 | 2018-01-16T06:36:06.000Z | 2021-03-20T21:48:01.000Z | apps/tai/test/tai/venue_adapters/bitmex/client_id_test.exs | ihorkatkov/tai | 09f9f15d2c385efe762ae138a8570f1e3fd41f26 | [
"MIT"
] | 78 | 2020-10-12T06:21:43.000Z | 2022-03-28T09:02:00.000Z | apps/tai/test/tai/venue_adapters/bitmex/client_id_test.exs | ihorkatkov/tai | 09f9f15d2c385efe762ae138a8570f1e3fd41f26 | [
"MIT"
] | 43 | 2018-06-09T09:54:51.000Z | 2021-03-07T07:35:17.000Z | defmodule Tai.VenueAdapters.Bitmex.ClientIdTest do
use ExUnit.Case, async: true
alias Tai.VenueAdapters.Bitmex.ClientId
test ".to_venue is a v4 uuid, base64 encoded with padding and a time in force prefix" do
assert ClientId.to_venue("9c60858a-b76f-4184-8d1e-df9d247fb197", :gtc) ==
"gtc-nGCFirdv... | 35.866667 | 90 | 0.719331 |
1a8dbaaa66e67128187656c3789dafe3f6a6feed | 5,752 | ex | Elixir | lib/bamboo/adapters/mailgun_adapter.ex | Fulnir/bamboo | a379dd381adac23beee5baf8cf4471b95c50a688 | [
"MIT"
] | null | null | null | lib/bamboo/adapters/mailgun_adapter.ex | Fulnir/bamboo | a379dd381adac23beee5baf8cf4471b95c50a688 | [
"MIT"
] | null | null | null | lib/bamboo/adapters/mailgun_adapter.ex | Fulnir/bamboo | a379dd381adac23beee5baf8cf4471b95c50a688 | [
"MIT"
] | null | null | null | defmodule Bamboo.MailgunAdapter do
@moduledoc """
Sends email using Mailgun's API.
Use this adapter to send emails through Mailgun's API. Requires that an API
key and a domain are set in the config.
## Example config
# In config/config.exs, or config.prod.exs, etc.
config :my_app, MyApp.Mailer,... | 30.273684 | 108 | 0.655076 |
1a8ddf55568d4ba9145457f9e7ff519cc9a71119 | 1,560 | ex | Elixir | lib/ash/resource/aggregate.ex | kingshalaby1/ash | 1e23199bec1729d66d3fc64de18856525f638549 | [
"MIT"
] | null | null | null | lib/ash/resource/aggregate.ex | kingshalaby1/ash | 1e23199bec1729d66d3fc64de18856525f638549 | [
"MIT"
] | null | null | null | lib/ash/resource/aggregate.ex | kingshalaby1/ash | 1e23199bec1729d66d3fc64de18856525f638549 | [
"MIT"
] | null | null | null | defmodule Ash.Resource.Aggregate do
@moduledoc "Represents a named aggregate on the resource that can be loaded"
defstruct [:name, :relationship_path, :filter, :kind, :description, :private?]
@schema [
name: [
type: :atom,
doc: "The field to place the aggregate in",
required: true
],
... | 26 | 128 | 0.589744 |
1a8e03f910af2c43bb42eaee14a9fa05852fa5b5 | 1,127 | exs | Elixir | test/ex_aequo/grouped_acc_test.exs | RobertDober/ex_aequo | d02fea2115d21e8ca426c6ef082ae2663839fe93 | [
"Apache-2.0"
] | null | null | null | test/ex_aequo/grouped_acc_test.exs | RobertDober/ex_aequo | d02fea2115d21e8ca426c6ef082ae2663839fe93 | [
"Apache-2.0"
] | null | null | null | test/ex_aequo/grouped_acc_test.exs | RobertDober/ex_aequo | d02fea2115d21e8ca426c6ef082ae2663839fe93 | [
"Apache-2.0"
] | null | null | null | defmodule ExAequo.Enum.GroupedAccTest do
use ExUnit.Case
alias ExAequo.Enum, as: E
doctest E
describe "Grouped Reduce" do
test "leaves empty, empty" do
assert E.grouped_reduce([], fn _, _ -> raise Error, "does not happen" end) == []
end
test "even one element does not trigger the computat... | 25.613636 | 95 | 0.602484 |
1a8e0e3fb60042450e88ef754c8dbf13faa4c8c1 | 16,171 | ex | Elixir | lib/pinyin.ex | kianmeng/hanyutils | d6b9ef5579856e540484987c8f0860b363327b67 | [
"MIT"
] | null | null | null | lib/pinyin.ex | kianmeng/hanyutils | d6b9ef5579856e540484987c8f0860b363327b67 | [
"MIT"
] | null | null | null | lib/pinyin.ex | kianmeng/hanyutils | d6b9ef5579856e540484987c8f0860b363327b67 | [
"MIT"
] | null | null | null | defmodule Pinyin do
@moduledoc """
Utilities to deal with pinyin syllables and groups thereof.
The main goal of this module is to provide functions to manipulate strings that contain pinyin
words, which are potentially mixed with other content. Users of this module can use `read/2`,
`read!/2` or `sigil_p/2`... | 35.38512 | 138 | 0.627234 |
1a8e2d44bb119186d1c821d70a588870097f2042 | 1,413 | exs | Elixir | test/annex/dataset_test.exs | arpieb/annex | 6f472a30361bf0a1646e256d6dfe478706427f64 | [
"MIT"
] | 1 | 2020-10-23T13:41:07.000Z | 2020-10-23T13:41:07.000Z | test/annex/dataset_test.exs | arpieb/annex | 6f472a30361bf0a1646e256d6dfe478706427f64 | [
"MIT"
] | null | null | null | test/annex/dataset_test.exs | arpieb/annex | 6f472a30361bf0a1646e256d6dfe478706427f64 | [
"MIT"
] | null | null | null | defmodule Annex.DatasetTest do
use ExUnit.Case
alias Annex.{
Data.List1D,
Dataset
}
describe "zip/2" do
test "give two same-length lists (inputs and labels) returns a zipped list of {inputs_row, labels_row}" do
inputs = [
[1.0, 2.0, 3.0],
[10.0, 11.0, 12.0]
]
lab... | 23.163934 | 110 | 0.571833 |
1a8e47aad95dbd7ca72f830279a5301edfdf9128 | 357 | exs | Elixir | priv/repo/seeds.exs | lee-dohm/ed-explorer | 879a883a8143531bc657fa74e55f72ed36b3547e | [
"MIT"
] | 1 | 2020-01-26T18:07:51.000Z | 2020-01-26T18:07:51.000Z | priv/repo/seeds.exs | lee-dohm/ed-explorer | 879a883a8143531bc657fa74e55f72ed36b3547e | [
"MIT"
] | null | null | null | priv/repo/seeds.exs | lee-dohm/ed-explorer | 879a883a8143531bc657fa74e55f72ed36b3547e | [
"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:
#
# EdExplorer.Repo.insert!(%EdExplorer.SomeSchema{})
#
# We recommend using the bang functions (`insert!`, `update!`
# and so on) as the... | 29.75 | 61 | 0.711485 |
1a8e9c0ed1fec4c92f47689029b71b20e2e39951 | 361 | exs | Elixir | test/polling_test.exs | evanrupert/telebrew | 156ef186b59451715a5f1fbdac72973831c72555 | [
"MIT"
] | 1 | 2021-11-13T17:47:08.000Z | 2021-11-13T17:47:08.000Z | test/polling_test.exs | evanrupert/telebrew | 156ef186b59451715a5f1fbdac72973831c72555 | [
"MIT"
] | null | null | null | test/polling_test.exs | evanrupert/telebrew | 156ef186b59451715a5f1fbdac72973831c72555 | [
"MIT"
] | null | null | null | defmodule PollingTest do
use ExUnit.Case
import Telebrew.Polling
test "get_last_update_id returns proper value" do
assert 111_111_111 == get_last_update_id()
end
test "mock wrapper returns proper update" do
assert {:ok, [update|_]} = Telebrew.Test.MockWrapper.get_updates(111_111_110)
assert up... | 21.235294 | 81 | 0.747922 |
1a8ea5384759088d0dcf963e86995518321024b1 | 1,894 | ex | Elixir | lib/mandrill/rejects.ex | whitepaperclip/mandrill-elixir | 865388876bf856700c65a83a9a2f581c3e195842 | [
"MIT"
] | null | null | null | lib/mandrill/rejects.ex | whitepaperclip/mandrill-elixir | 865388876bf856700c65a83a9a2f581c3e195842 | [
"MIT"
] | null | null | null | lib/mandrill/rejects.ex | whitepaperclip/mandrill-elixir | 865388876bf856700c65a83a9a2f581c3e195842 | [
"MIT"
] | null | null | null | defmodule Mandrill.Rejects do
@moduledoc """
Rejects calls for Mandrill.
"""
@doc """
Adds an email to your email rejection
blacklist. Addresses that you add manually
will never expire and there is no
reputation penalty for removing them from
your blacklist. Attempting to blacklist an
address ... | 25.594595 | 82 | 0.679514 |
1a8ebf514462f11d9ae4bd856666fcaa03cefc58 | 10,725 | exs | Elixir | test/phoenix/integration/long_poll_test.exs | manukall/phoenix | 5ce19ebb63b1b31e37da5fe6465edb6c4850772e | [
"MIT"
] | 1 | 2019-06-11T20:22:21.000Z | 2019-06-11T20:22:21.000Z | test/phoenix/integration/long_poll_test.exs | DavidAlphaFox/phoenix | 560131ab3b48c6b6cf864a3d20b7667e40990237 | [
"MIT"
] | null | null | null | test/phoenix/integration/long_poll_test.exs | DavidAlphaFox/phoenix | 560131ab3b48c6b6cf864a3d20b7667e40990237 | [
"MIT"
] | null | null | null | Code.require_file "../../support/http_client.exs", __DIR__
defmodule Phoenix.Integration.LongPollTest do
use ExUnit.Case
import RouterHelper, only: [capture_log: 1]
alias Phoenix.Integration.HTTPClient
alias Phoenix.Transports.LongPoll
alias Phoenix.Socket.Broadcast
alias Phoenix.PubSub.Local
alias __M... | 28.908356 | 112 | 0.588065 |
1a8ecfe03176d2aeaf78b493767111c105269c59 | 347 | exs | Elixir | priv/repo/seeds.exs | EhsanZ/artsy | de1cd2eb7f53ff33569223cb7d2561e39ea7a372 | [
"MIT"
] | 1 | 2019-10-26T07:17:24.000Z | 2019-10-26T07:17:24.000Z | priv/repo/seeds.exs | EhsanZ/artsy | de1cd2eb7f53ff33569223cb7d2561e39ea7a372 | [
"MIT"
] | 2 | 2021-03-09T21:15:44.000Z | 2021-05-10T17:59:48.000Z | priv/repo/seeds.exs | EhsanZ/artsy | de1cd2eb7f53ff33569223cb7d2561e39ea7a372 | [
"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:
#
# Artsy.Repo.insert!(%Artsy.SomeSchema{})
#
# We recommend using the bang functions (`insert!`, `update!`
# and so on) as they will fai... | 28.916667 | 61 | 0.70317 |
1a8f0ab9fa073142e9790b70c90cb4578029240e | 126 | exs | Elixir | examples/bar/test/bar_test.exs | davydog187/erl_doc_chunks | 4ca01972d4d85658327a12b069686ff1b38fe941 | [
"Apache-2.0"
] | 1 | 2021-07-22T13:17:41.000Z | 2021-07-22T13:17:41.000Z | examples/bar/test/bar_test.exs | davydog187/erl_doc_chunks | 4ca01972d4d85658327a12b069686ff1b38fe941 | [
"Apache-2.0"
] | 1 | 2021-07-22T10:56:12.000Z | 2021-07-22T10:56:12.000Z | examples/bar/test/bar_test.exs | davydog187/erl_doc_chunks | 4ca01972d4d85658327a12b069686ff1b38fe941 | [
"Apache-2.0"
] | 1 | 2021-07-22T10:52:42.000Z | 2021-07-22T10:52:42.000Z | defmodule BarTest do
use ExUnit.Case
doctest Bar
test "greets the world" do
assert Bar.hello() == :world
end
end
| 14 | 32 | 0.68254 |
1a8f23bc0d43c3ea4558f01ac3d8c31098a47141 | 1,080 | ex | Elixir | test/support/parser.ex | maartenvanvliet/sourceror | 02fff81a59d6c9a2d4de3fc1b27e2d40ff77ea2d | [
"Apache-2.0"
] | 118 | 2021-05-26T05:00:32.000Z | 2022-03-13T16:25:36.000Z | test/support/parser.ex | maartenvanvliet/sourceror | 02fff81a59d6c9a2d4de3fc1b27e2d40ff77ea2d | [
"Apache-2.0"
] | 35 | 2021-06-02T20:18:48.000Z | 2022-03-31T20:52:22.000Z | test/support/parser.ex | maartenvanvliet/sourceror | 02fff81a59d6c9a2d4de3fc1b27e2d40ff77ea2d | [
"Apache-2.0"
] | 5 | 2021-06-15T18:01:04.000Z | 2022-02-13T09:14:28.000Z | defmodule SourcerorTest.Support.Parser do
@moduledoc false
defstruct in_docstring?: false,
docstrings: []
@type t :: %__MODULE__{
in_docstring?: boolean,
docstrings: [{String.t(), non_neg_integer}]
}
def resource(file_path) do
__DIR__
|> Path.join("../..")
... | 25.714286 | 88 | 0.558333 |
1a8f530c1286b9122199b68ff964a4da2ca497ef | 1,545 | ex | Elixir | clients/slides/lib/google_api/slides/v1/model/table_column_properties.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/slides/lib/google_api/slides/v1/model/table_column_properties.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/slides/lib/google_api/slides/v1/model/table_column_properties.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "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.1875 | 79 | 0.750162 |
1a8f5a09d4af818f8761639440d7a3270f337f72 | 578 | exs | Elixir | test/dnsapp_web/views/error_view_test.exs | tashavanes/dnsapp | 92d1069e3ef06df6a990047297d87e91a782a75b | [
"MIT"
] | null | null | null | test/dnsapp_web/views/error_view_test.exs | tashavanes/dnsapp | 92d1069e3ef06df6a990047297d87e91a782a75b | [
"MIT"
] | null | null | null | test/dnsapp_web/views/error_view_test.exs | tashavanes/dnsapp | 92d1069e3ef06df6a990047297d87e91a782a75b | [
"MIT"
] | null | null | null | defmodule DnsappWeb.ErrorViewTest do
use DnsappWeb.ConnCase, async: true
# Bring render/3 and render_to_string/3 for testing custom views
import Phoenix.View
test "renders 404.html" do
assert render_to_string(DnsappWeb.ErrorView, "404.html", []) ==
"Page not found"
end
test "render 500.htm... | 26.272727 | 67 | 0.681661 |
1a8fd07704b8d04f66233fa0471d01d0670d1920 | 1,338 | exs | Elixir | config/config.exs | marcsugiyama/restfully | 8352bc5718c1298c836ed72fc9d7b5cd4a9695bb | [
"Apache-2.0"
] | 1 | 2018-03-14T23:48:57.000Z | 2018-03-14T23:48:57.000Z | config/config.exs | marcsugiyama/restfully | 8352bc5718c1298c836ed72fc9d7b5cd4a9695bb | [
"Apache-2.0"
] | null | null | null | config/config.exs | marcsugiyama/restfully | 8352bc5718c1298c836ed72fc9d7b5cd4a9695bb | [
"Apache-2.0"
] | 2 | 2018-06-04T12:37:32.000Z | 2021-06-15T11:45:05.000Z | # 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.
use Mix.Config
# Configures the endpoint
config :restfully, Restfully.Endpoint,
url: [host: "local... | 31.857143 | 86 | 0.762332 |
1a8fe91dae191f2a850e8fc17d5be1ab7d4e21da | 1,722 | ex | Elixir | lib/air_quality.ex | line/clova-cek-sdk-elixir-sample | abf263d9ffc6846a3fd36ca2500beb8a679485ff | [
"Apache-2.0"
] | 1 | 2018-07-24T01:41:04.000Z | 2018-07-24T01:41:04.000Z | lib/air_quality.ex | line/clova-cek-sdk-elixir-sample | abf263d9ffc6846a3fd36ca2500beb8a679485ff | [
"Apache-2.0"
] | null | null | null | lib/air_quality.ex | line/clova-cek-sdk-elixir-sample | abf263d9ffc6846a3fd36ca2500beb8a679485ff | [
"Apache-2.0"
] | 1 | 2018-08-29T05:14:31.000Z | 2018-08-29T05:14:31.000Z | defmodule AirQuality do
@aicqn_api Application.get_env(:air_quality, :aiqcn_api)
use Clova
def handle_launch(_request, response) do
response
|> add_speech("大気汚染を知りたい都市名を言ってください")
|> add_reprompt("都市の名前を言ったら大気汚染情報を調べますよ")
end
def handle_intent("particulateMatter", request, response) do
city =... | 27.333333 | 90 | 0.665505 |
1a900c78738bc0f4b92980905887c6e86cd9713e | 469 | exs | Elixir | .formatter.exs | primait/bridge_ex | 92c9322b105aba21a708588a1e0e02cc4c37c9ca | [
"MIT"
] | null | null | null | .formatter.exs | primait/bridge_ex | 92c9322b105aba21a708588a1e0e02cc4c37c9ca | [
"MIT"
] | 18 | 2022-01-17T09:13:27.000Z | 2022-03-28T13:39:51.000Z | .formatter.exs | primait/bridge_ex | 92c9322b105aba21a708588a1e0e02cc4c37c9ca | [
"MIT"
] | null | null | null | [
locals_without_parens: [
field: :*,
resolve: :*,
plug: :*,
arg: :*,
parse: :*,
serialize: :*,
value: :*,
has_one: :*,
has_many: :*,
belongs_to: :*,
list_of: :*,
action_fallback: 1,
from: :*,
get: :*,
post: :*,
put: :*,
create: :*,
execute: :*,
... | 16.172414 | 64 | 0.420043 |
1a90196475947d6258dc253c23980fb2fd96f467 | 1,789 | ex | Elixir | config/credo/license_header.ex | PinkDiamond1/elixir-omg | 70dfd24a0a1ddf5d1d9d71aab61ea25300f889f7 | [
"Apache-2.0"
] | 1 | 2020-05-01T12:30:09.000Z | 2020-05-01T12:30:09.000Z | config/credo/license_header.ex | PinkDiamond1/elixir-omg | 70dfd24a0a1ddf5d1d9d71aab61ea25300f889f7 | [
"Apache-2.0"
] | null | null | null | config/credo/license_header.ex | PinkDiamond1/elixir-omg | 70dfd24a0a1ddf5d1d9d71aab61ea25300f889f7 | [
"Apache-2.0"
] | 2 | 2020-06-07T11:14:54.000Z | 2020-08-02T07:36:32.000Z | defmodule Credo.Check.Custom.LicenseHeader do
@moduledoc """
Checks whether license header has been included in every file, except those where it shouldn't be
**Doesn't** check the correctness of the header, just that it exists, so it checks first line to say `# Copyright`
"""
@explanation [
check: @mod... | 33.12963 | 116 | 0.660704 |
1a9053f1e9f3a3cba9d515bcaa29ec89110dd308 | 905 | exs | Elixir | test/rockelivery/items/create_test.exs | LuizFerK/Rockelivery | 4742d73027bcaa97c2fc7969c8d032edf73a28fd | [
"MIT"
] | null | null | null | test/rockelivery/items/create_test.exs | LuizFerK/Rockelivery | 4742d73027bcaa97c2fc7969c8d032edf73a28fd | [
"MIT"
] | null | null | null | test/rockelivery/items/create_test.exs | LuizFerK/Rockelivery | 4742d73027bcaa97c2fc7969c8d032edf73a28fd | [
"MIT"
] | null | null | null | defmodule Rockelivery.Items.CreateTest do
use Rockelivery.DataCase, async: true
import Rockelivery.Factory
alias Rockelivery.{Error, Item}
alias Rockelivery.Items.Create
describe "call/1" do
test "when all params are valid, returns an item" do
params = build(:item_params)
response = Create... | 26.617647 | 92 | 0.646409 |
1a90c0e68535cd91cac2dcd119bc66191a6fb88f | 328 | exs | Elixir | test/krasukha/helpers/event_gen_test.exs | Zatvobor/krasukha | ac6d2aa1dbd14039817a606c1347058bf1deab31 | [
"MIT"
] | 6 | 2017-01-28T01:11:58.000Z | 2021-12-19T22:45:49.000Z | test/krasukha/helpers/event_gen_test.exs | Zatvobor/krasukha | ac6d2aa1dbd14039817a606c1347058bf1deab31 | [
"MIT"
] | null | null | null | test/krasukha/helpers/event_gen_test.exs | Zatvobor/krasukha | ac6d2aa1dbd14039817a606c1347058bf1deab31 | [
"MIT"
] | null | null | null | defmodule Krasukha.Helpers.EventGenTest do
use ExUnit.Case, async: true
use Krasukha.Helpers.EventGen
describe "event manager helpers" do
test "calls create_event_manager/1" do
state = create_event_manager(%{})
assert state.event_manager
assert Process.alive?(state.event_manager)
end
... | 25.230769 | 48 | 0.734756 |
1a90eb1f9956e6e66492dd8508603e3e035083c1 | 1,738 | ex | Elixir | installer/lib/mix/tasks/phx.new.ecto.ex | joladev/phoenix | 63819bad0f710b886d57c5808693bf533461f0c3 | [
"MIT"
] | null | null | null | installer/lib/mix/tasks/phx.new.ecto.ex | joladev/phoenix | 63819bad0f710b886d57c5808693bf533461f0c3 | [
"MIT"
] | null | null | null | installer/lib/mix/tasks/phx.new.ecto.ex | joladev/phoenix | 63819bad0f710b886d57c5808693bf533461f0c3 | [
"MIT"
] | null | null | null | defmodule Mix.Tasks.Phx.New.Ecto do
@moduledoc """
Creates a new Ecto project within an umbrella project.
This task is intended to create a bare Ecto project without
web integration, which serves as a core application of your
domain for web applications and your greater umbrella
platform to integrate with.... | 28.032258 | 83 | 0.678941 |
1a90f7afadd6d24fe0fbf6f19663c339a5ee29f7 | 1,561 | exs | Elixir | examples/1-example-scenario.exs | Zatvobor/couch_normalizer | 1bbde7b7235220c7e2aed9924e3781f423175afd | [
"Apache-2.0"
] | 1 | 2015-02-23T14:25:10.000Z | 2015-02-23T14:25:10.000Z | examples/1-example-scenario.exs | Zatvobor/couch_normalizer | 1bbde7b7235220c7e2aed9924e3781f423175afd | [
"Apache-2.0"
] | 2 | 2015-03-05T17:02:38.000Z | 2015-03-30T10:33:29.000Z | examples/1-example-scenario.exs | Zatvobor/couch_normalizer | 1bbde7b7235220c7e2aed9924e3781f423175afd | [
"Apache-2.0"
] | null | null | null | use CouchNormalizer.Scenario
CouchNormalizer.Registry.acquire "1-example-scenario", fn(db, _doc_id, _rev, body) ->
# 0. retrieves field value from the given document body.
# `field/1`, `field/2` just another convenience for getting values from the body.
if body["type"] == "user" do
# 1. updates/improves docu... | 39.025 | 108 | 0.686099 |
1a91148d699fbbef35a7a84cc1627f4d7b8833b7 | 5,300 | ex | Elixir | lib/changelog_web/meta/title.ex | axelson/changelog.com | bad9f461aabbde0faa938f7b2ae643ed47d1df9b | [
"MIT"
] | 1 | 2021-01-06T18:21:45.000Z | 2021-01-06T18:21:45.000Z | lib/changelog_web/meta/title.ex | codexn/changelog.com | 25ce501ee62eef76731c38d590667e8132096ba8 | [
"MIT"
] | null | null | null | lib/changelog_web/meta/title.ex | codexn/changelog.com | 25ce501ee62eef76731c38d590667e8132096ba8 | [
"MIT"
] | null | null | null | defmodule ChangelogWeb.Meta.Title do
alias ChangelogWeb.{
AuthView,
EpisodeView,
EpisodeRequestView,
LiveView,
NewsItemView,
NewsSourceView,
PageView,
PersonView,
PodcastView,
PostView,
TopicView,
Helpers.SharedHelpers,
SearchView
}
@default "News and podcasts ... | 26.767677 | 95 | 0.650377 |
1a911f003fd8cf52495e7f48936b5dc685ab0acf | 5,700 | ex | Elixir | lib/perhap/event.ex | Perhap/perhap | b77cca06b99e3249e22eb118d38976db6bcebe1a | [
"BSD-3-Clause"
] | 118 | 2017-04-21T00:53:44.000Z | 2022-01-26T21:13:55.000Z | lib/perhap/event.ex | Perhap/perhap | b77cca06b99e3249e22eb118d38976db6bcebe1a | [
"BSD-3-Clause"
] | 1 | 2017-09-17T15:08:26.000Z | 2017-09-17T15:14:38.000Z | lib/perhap/event.ex | Perhap/perhap | b77cca06b99e3249e22eb118d38976db6bcebe1a | [
"BSD-3-Clause"
] | 8 | 2017-09-17T14:58:27.000Z | 2019-01-17T12:04:09.000Z | defmodule Perhap.Event.Metadata do
@type t :: %__MODULE__{ event_id: Perhap.Event.UUIDv1.t,
entity_id: Perhap.Event.UUIDv4.t,
scheme: String.t,
host: String.t,
port: integer(),
path: Strin... | 32.758621 | 101 | 0.609649 |
1a9127744654999d181ffef85f5638d23e6fccf3 | 2,168 | ex | Elixir | clients/machine_learning/lib/google_api/machine_learning/v1/model/google_iam_v1__set_iam_policy_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/machine_learning/lib/google_api/machine_learning/v1/model/google_iam_v1__set_iam_policy_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/machine_learning/lib/google_api/machine_learning/v1/model/google_iam_v1__set_iam_policy_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... | 43.36 | 327 | 0.752768 |
1a91292a8eefa7deca3b4697a79666296ddc8b1d | 2,932 | ex | Elixir | clients/cloud_resource_manager/lib/google_api/cloud_resource_manager/v1/model/lien.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/cloud_resource_manager/lib/google_api/cloud_resource_manager/v1/model/lien.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/v1/model/lien.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.290323 | 374 | 0.715894 |
1a9162997427d868212ad15216e4f856779f0519 | 525 | exs | Elixir | kernel/pipe_operator.exs | Common-Crow23/Elixir | ed4a2a026cdad873f288d87577ac41770f65c806 | [
"MIT"
] | null | null | null | kernel/pipe_operator.exs | Common-Crow23/Elixir | ed4a2a026cdad873f288d87577ac41770f65c806 | [
"MIT"
] | null | null | null | kernel/pipe_operator.exs | Common-Crow23/Elixir | ed4a2a026cdad873f288d87577ac41770f65c806 | [
"MIT"
] | null | null | null | ["A", "B", "C"] = "a,b,c"
|> String.split(",") # split takes 2 arguments but here
# the first argument is omitted
# in the parentheses and
# the left side of the |> operator
... | 47.727273 | 79 | 0.411429 |
1a9184108273868ff1685e27a9c2f920593d3153 | 1,226 | exs | Elixir | test/stop_words_test.exs | brauliobz/excoveralls | 8108405bda1c6ef27253edc294415f02d78760f4 | [
"MIT"
] | 716 | 2015-01-04T20:41:01.000Z | 2022-03-29T08:44:09.000Z | test/stop_words_test.exs | brauliobz/excoveralls | 8108405bda1c6ef27253edc294415f02d78760f4 | [
"MIT"
] | 255 | 2015-01-03T23:41:58.000Z | 2022-03-19T23:06:06.000Z | test/stop_words_test.exs | brauliobz/excoveralls | 8108405bda1c6ef27253edc294415f02d78760f4 | [
"MIT"
] | 217 | 2015-03-31T20:17:58.000Z | 2022-02-20T23:46:41.000Z | defmodule ExCoveralls.StopWordsTest do
use ExUnit.Case
alias ExCoveralls.StopWords
@content "defmodule Test do\n def test do\n end\nend\n"
@counts [0, 1, nil, nil, nil]
@source_info [%{name: "test/fixtures/test.ex",
source: @content,
coverage: @counts
... | 34.055556 | 84 | 0.615008 |
1a918775572a97cdee153964b87d989432d9a0a2 | 3,302 | exs | Elixir | apps/engine/test/engine/db/block/block_changeset_test.exs | omgnetwork/omg-childchain-v2 | 31cc9cf9e42718fc3b9bd6668f24a627cac80b4f | [
"Apache-2.0"
] | 4 | 2020-11-30T17:38:57.000Z | 2021-01-23T21:29:41.000Z | apps/engine/test/engine/db/block/block_changeset_test.exs | omgnetwork/omg-childchain-v2 | 31cc9cf9e42718fc3b9bd6668f24a627cac80b4f | [
"Apache-2.0"
] | 24 | 2020-11-30T17:32:48.000Z | 2021-02-22T06:25:22.000Z | apps/engine/test/engine/db/block/block_changeset_test.exs | omgnetwork/omg-childchain-v2 | 31cc9cf9e42718fc3b9bd6668f24a627cac80b4f | [
"Apache-2.0"
] | null | null | null | defmodule Engine.DB.Block.BlockChangesetTest do
use Engine.DB.DataCase, async: true
alias Ecto.Changeset
alias Engine.DB.Block
alias Engine.DB.Block.BlockChangeset
describe "new_block_changeset/2" do
test "returns a proper block changeset" do
hash = "0x0"
tx_hash = "0x0"
formed_at_ethe... | 28.713043 | 116 | 0.612962 |
1a919f505c44d39dfd2f8d122514f2d7f28989a0 | 7,989 | exs | Elixir | elixir/bowling/test/bowling_test.exs | nickbosch/exercism | de81b5ff07bb314160e5a171bedcfca3e7d1e307 | [
"MIT"
] | null | null | null | elixir/bowling/test/bowling_test.exs | nickbosch/exercism | de81b5ff07bb314160e5a171bedcfca3e7d1e307 | [
"MIT"
] | null | null | null | elixir/bowling/test/bowling_test.exs | nickbosch/exercism | de81b5ff07bb314160e5a171bedcfca3e7d1e307 | [
"MIT"
] | null | null | null | defmodule BowlingTest do
use ExUnit.Case
defp roll_reduce(game, rolls) do
Enum.reduce(rolls, game, fn roll, game -> Bowling.roll(game, roll) end)
end
test "should be able to score a game with all zeros" do
game = Bowling.start()
rolls = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
... | 35.665179 | 119 | 0.604081 |
1a91cba37395bfadb9f97d4f5c4f8ff3dec246d1 | 716 | ex | Elixir | lib/cluster.ex | thomasvolk/stressman | 7c1b62d262ea8f2c38854ce053fe2888aaacd5b6 | [
"Apache-2.0"
] | null | null | null | lib/cluster.ex | thomasvolk/stressman | 7c1b62d262ea8f2c38854ce053fe2888aaacd5b6 | [
"Apache-2.0"
] | null | null | null | lib/cluster.ex | thomasvolk/stressman | 7c1b62d262ea8f2c38854ce053fe2888aaacd5b6 | [
"Apache-2.0"
] | null | null | null | defmodule StressMan.Cluster do
def init_node(name, cookie) do
Node.start(:"#{name}")
Node.set_cookie(:"#{cookie}")
end
def connect_to_nodes(node_list), do: node_list |> Enum.each(&Node.connect/1)
def schedule(nodes, task, scheduler) do
schedule(nodes, task, scheduler, [])
end
defp schedule([]... | 27.538462 | 131 | 0.688547 |
1a92072a822f182a5d608ebff02d73d860f90bd2 | 1,900 | ex | Elixir | lib/changelog/schema/schema.ex | wojtekmach/changelog.com | d4a8a7703c5f07a3da63bffd770f4642488cf8fd | [
"MIT"
] | 1 | 2020-05-20T16:58:17.000Z | 2020-05-20T16:58:17.000Z | lib/changelog/schema/schema.ex | type1fool/changelog.com | fbec3528cc3f5adfdc75b008bb92b17efc4f248f | [
"MIT"
] | null | null | null | lib/changelog/schema/schema.ex | type1fool/changelog.com | fbec3528cc3f5adfdc75b008bb92b17efc4f248f | [
"MIT"
] | null | null | null | defmodule Changelog.Schema do
defmacro __using__(opts) do
opts = Keyword.merge([default_sort: :inserted_at], opts)
quote do
use Ecto.Schema
use Arc.Ecto.Schema
import Ecto
import Ecto.Changeset
import Ecto.Query, only: [from: 1, from: 2]
import EctoEnum, only: [defenum: 2... | 38.77551 | 130 | 0.65 |
1a924c743578822fb0db3c17220426653db74a40 | 23 | ex | Elixir | tutorials/genserver/chat/lib/chat.ex | idfumg/ElixirSynopsis | 74c668d84300812dd41eb18772aecfb89bc7628b | [
"MIT"
] | null | null | null | tutorials/genserver/chat/lib/chat.ex | idfumg/ElixirSynopsis | 74c668d84300812dd41eb18772aecfb89bc7628b | [
"MIT"
] | null | null | null | tutorials/genserver/chat/lib/chat.ex | idfumg/ElixirSynopsis | 74c668d84300812dd41eb18772aecfb89bc7628b | [
"MIT"
] | null | null | null | defmodule Chat do
end
| 5.75 | 17 | 0.782609 |
1a925437aa91d256864d7751814f01db08d00b1b | 1,277 | ex | Elixir | lib/kwtool/crawlers.ex | byhbt/kwtool | 8958a160066e3e4c61806202af2563541f2261e3 | [
"MIT"
] | 5 | 2021-12-14T08:18:24.000Z | 2022-03-29T10:02:48.000Z | lib/kwtool/crawlers.ex | byhbt/kwtool | 8958a160066e3e4c61806202af2563541f2261e3 | [
"MIT"
] | 32 | 2021-03-21T16:32:18.000Z | 2022-03-23T08:00:37.000Z | lib/kwtool/crawlers.ex | byhbt/kwtool | 8958a160066e3e4c61806202af2563541f2261e3 | [
"MIT"
] | 1 | 2021-06-03T17:22:16.000Z | 2021-06-03T17:22:16.000Z | defmodule Kwtool.Crawlers do
import Ecto.Query, warn: false
alias Kwtool.Accounts.Schemas.User
alias Kwtool.Crawlers.Schemas.Keyword
alias Kwtool.Crawlers.UploadParser
alias Kwtool.Repo
def save_keywords_list(keyword_file, %User{} = user) do
case UploadParser.parse(keyword_file) do
{:ok, keyword... | 24.557692 | 62 | 0.616288 |
1a927258679b725fc084185c780df1dc575e218b | 1,754 | ex | Elixir | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2_import_documents_response.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2_import_documents_response.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2_import_documents_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... | 33.730769 | 166 | 0.758837 |
1a928b2fae643f3e7e89c2920d4649385c946920 | 132 | ex | Elixir | lib/dbg/app.ex | CharlesOkwuagwu/dbg | 76bbe5069fa7d6b566fe4c60d31b86e4544d03d5 | [
"Apache-2.0"
] | 142 | 2015-01-11T19:27:48.000Z | 2021-10-30T03:56:12.000Z | lib/dbg/app.ex | CharlesOkwuagwu/dbg | 76bbe5069fa7d6b566fe4c60d31b86e4544d03d5 | [
"Apache-2.0"
] | 9 | 2015-05-09T18:41:29.000Z | 2019-03-02T19:09:20.000Z | lib/dbg/app.ex | CharlesOkwuagwu/dbg | 76bbe5069fa7d6b566fe4c60d31b86e4544d03d5 | [
"Apache-2.0"
] | 13 | 2015-05-09T17:08:53.000Z | 2018-01-24T12:07:52.000Z | defmodule Dbg.App do
@moduledoc false
use Application
def start(_type, _args) do
Dbg.Supervisor.start_link()
end
end
| 12 | 31 | 0.712121 |
1a92959e9ec2a4ab9b7f06bd4e4a1442a829b42c | 5,027 | exs | Elixir | integration_test/cases/query_test.exs | drumusician/wallaby | 9f6f6f643f6b6140441a8dd011dadb03f3b4886b | [
"MIT"
] | null | null | null | integration_test/cases/query_test.exs | drumusician/wallaby | 9f6f6f643f6b6140441a8dd011dadb03f3b4886b | [
"MIT"
] | null | null | null | integration_test/cases/query_test.exs | drumusician/wallaby | 9f6f6f643f6b6140441a8dd011dadb03f3b4886b | [
"MIT"
] | null | null | null | defmodule Wallaby.Integration.QueryTest do
use Wallaby.Integration.SessionCase, async: true
test "the driver can execute queries", %{session: session} do
elements =
session
|> Browser.visit("/")
|> Browser.find(Query.css("#child"))
assert elements != "Failure"
end
test "disregards e... | 27.927778 | 100 | 0.623036 |
1a92af579f75ec8461220376417c0637e1a2bb2a | 902 | exs | Elixir | mix.exs | usir/usir_ex | 059cc1679dcdc9defcad17a4aac3492a33e529e5 | [
"MIT"
] | null | null | null | mix.exs | usir/usir_ex | 059cc1679dcdc9defcad17a4aac3492a33e529e5 | [
"MIT"
] | null | null | null | mix.exs | usir/usir_ex | 059cc1679dcdc9defcad17a4aac3492a33e529e5 | [
"MIT"
] | null | null | null | defmodule Usir.Mixfile do
use Mix.Project
def project do
[app: :usir,
version: "0.2.0",
elixir: "~> 1.2",
description: "Elixir implementation of the usir protocol",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
package: package,
deps: deps]
end
def... | 25.771429 | 79 | 0.590909 |
1a92dd0b4c6e25021410e3d90bac1bb56d378f7e | 499 | ex | Elixir | lib/messaging_status_service_web/controllers/api/call_controller.ex | ciroque/messaging_status_service | 0d32873ac6e0a78c92a5cf08da373ba4aaf22da4 | [
"MIT"
] | null | null | null | lib/messaging_status_service_web/controllers/api/call_controller.ex | ciroque/messaging_status_service | 0d32873ac6e0a78c92a5cf08da373ba4aaf22da4 | [
"MIT"
] | null | null | null | lib/messaging_status_service_web/controllers/api/call_controller.ex | ciroque/messaging_status_service | 0d32873ac6e0a78c92a5cf08da373ba4aaf22da4 | [
"MIT"
] | null | null | null | defmodule MessagingStatusServiceWeb.Api.CallController do
use MessagingStatusServiceWeb, :controller
require Logger
@call_completed_handler Application.get_env(:messaging_status_service, :calls)[:call_completed_handler]
def create(conn, params) do
Logger.debug("#{__MODULE__} create #{inspect(params)}")
... | 29.352941 | 105 | 0.751503 |
1a931ed1083f9d73f3fbac6a16421d35f0e9747d | 672 | ex | Elixir | lib/orders/agent.ex | cassiofariasmachado/exlivery | 8d388200019d8ba3bf1a02d1bf85993cfb92f484 | [
"MIT"
] | null | null | null | lib/orders/agent.ex | cassiofariasmachado/exlivery | 8d388200019d8ba3bf1a02d1bf85993cfb92f484 | [
"MIT"
] | null | null | null | lib/orders/agent.ex | cassiofariasmachado/exlivery | 8d388200019d8ba3bf1a02d1bf85993cfb92f484 | [
"MIT"
] | null | null | null | defmodule Exlivery.Orders.Agent do
use Agent
alias Exlivery.Orders.Order
def start_link(_initial_state) do
Agent.start_link(fn -> %{} end, name: __MODULE__)
end
def save(%Order{} = order) do
uuid = UUID.uuid4()
Agent.update(__MODULE__, &update_state(&1, order, uuid))
{:ok, uuid}
end
... | 21.677419 | 83 | 0.641369 |
1a933dae133ee83b047a9850c518b2325bdf8b68 | 368 | exs | Elixir | priv/repo/seeds.exs | yasuhiro-okada-aktsk/sample_elixir_exrm | 755abee8b7ee64dc82679d09c800d301393063ab | [
"MIT"
] | null | null | null | priv/repo/seeds.exs | yasuhiro-okada-aktsk/sample_elixir_exrm | 755abee8b7ee64dc82679d09c800d301393063ab | [
"MIT"
] | null | null | null | priv/repo/seeds.exs | yasuhiro-okada-aktsk/sample_elixir_exrm | 755abee8b7ee64dc82679d09c800d301393063ab | [
"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:
#
# SampleElixirExrm.Repo.insert!(%SampleElixirExrm.SomeModel{})
#
# We recommend using the bang functions (`insert!`, `update!`
# and so... | 30.666667 | 66 | 0.720109 |
1a934903f219af48ae603de38fa85ac5f70624e2 | 2,171 | exs | Elixir | config/config.exs | szTheory/elasticsearch_elixir_bulk_processor | 04fe11a7faff41f42b8119271a8c2ba148b95484 | [
"Apache-2.0"
] | null | null | null | config/config.exs | szTheory/elasticsearch_elixir_bulk_processor | 04fe11a7faff41f42b8119271a8c2ba148b95484 | [
"Apache-2.0"
] | null | null | null | config/config.exs | szTheory/elasticsearch_elixir_bulk_processor | 04fe11a7faff41f42b8119271a8c2ba148b95484 | [
"Apache-2.0"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
# This configuration is loaded before any dependency and is restricted
# to this project. If another project depends on this project, this
# file won't be loaded nor affect the paren... | 39.472727 | 86 | 0.75357 |
1a93654011453d03d76325d60bbe03f90b16aa2f | 1,021 | ex | Elixir | lib/atecc508a/crc.ex | doawoo/atecc508a | 8d760d74cbf6462d3aaa9e17a438007dc1bc8ce0 | [
"Apache-2.0"
] | 6 | 2018-12-13T16:33:09.000Z | 2022-03-02T08:57:20.000Z | lib/atecc508a/crc.ex | doawoo/atecc508a | 8d760d74cbf6462d3aaa9e17a438007dc1bc8ce0 | [
"Apache-2.0"
] | 10 | 2019-01-30T19:33:48.000Z | 2022-03-03T21:07:37.000Z | lib/atecc508a/crc.ex | doawoo/atecc508a | 8d760d74cbf6462d3aaa9e17a438007dc1bc8ce0 | [
"Apache-2.0"
] | 9 | 2019-08-22T06:26:45.000Z | 2022-03-01T18:05:01.000Z | defmodule ATECC508A.CRC do
import Bitwise
@atecc508a_polynomial 0x8005
@doc """
Compute the CRC of a message using the ATECC508A's algorithm.
"""
@spec crc(binary()) :: ATECC508A.crc16()
def crc(message) do
# See Atmel CryptoAuthentication Data Zone CRC Calculation application note
crc = do_crc(... | 25.525 | 90 | 0.609207 |
1a93697aa2f7f5c6e456b9ac2eb7f8a4455eef9a | 5,487 | exs | Elixir | test/unit/discovery_api_web/controllers/visualization_controller_test.exs | JakeTheGingScheuer/discovery_api | b92dd614ced354913d0664e47b316723e192185d | [
"Apache-2.0"
] | null | null | null | test/unit/discovery_api_web/controllers/visualization_controller_test.exs | JakeTheGingScheuer/discovery_api | b92dd614ced354913d0664e47b316723e192185d | [
"Apache-2.0"
] | null | null | null | test/unit/discovery_api_web/controllers/visualization_controller_test.exs | JakeTheGingScheuer/discovery_api | b92dd614ced354913d0664e47b316723e192185d | [
"Apache-2.0"
] | null | null | null | defmodule DiscoveryApiWeb.VisualizationControllerTest do
use DiscoveryApiWeb.ConnCase
use Placebo
alias DiscoveryApi.Test.AuthHelper
alias DiscoveryApi.Schemas.Users
alias DiscoveryApi.Schemas.Visualizations
alias DiscoveryApi.Schemas.Visualizations.Visualization
alias DiscoveryApi.Auth.Auth0.CachedJWKS
... | 35.4 | 132 | 0.618371 |
1a936a60dd99b3f658c8589b608101df6e9c90e2 | 2,304 | ex | Elixir | clients/content/lib/google_api/content/v2/model/datafeeds_custom_batch_request_entry.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/content/lib/google_api/content/v2/model/datafeeds_custom_batch_request_entry.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/content/lib/google_api/content/v2/model/datafeeds_custom_batch_request_entry.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.050847 | 174 | 0.695313 |
1a938d617f2fcbe76b6ef1bb3d8c0012bfe97eb3 | 2,404 | ex | Elixir | clients/cloud_debugger/lib/google_api/cloud_debugger/v2/model/stack_frame.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/cloud_debugger/lib/google_api/cloud_debugger/v2/model/stack_frame.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/cloud_debugger/lib/google_api/cloud_debugger/v2/model/stack_frame.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... | 42.928571 | 208 | 0.729201 |
1a939901eed15b600b0a743f4b9cfb6c245ec6d3 | 315 | exs | Elixir | priv/repo/migrations/20171115185501_create_dashboard_badge_status.exs | crosscloudci/ci_status_repository | 335e8b89bbf59e6cf63e49541ce3ea6b60167e52 | [
"Apache-2.0"
] | 2 | 2019-03-05T16:29:10.000Z | 2020-01-17T14:11:48.000Z | priv/repo/migrations/20171115185501_create_dashboard_badge_status.exs | crosscloudci/ci_status_repository | 335e8b89bbf59e6cf63e49541ce3ea6b60167e52 | [
"Apache-2.0"
] | 3 | 2019-03-18T20:26:48.000Z | 2020-06-25T14:31:13.000Z | priv/repo/migrations/20171115185501_create_dashboard_badge_status.exs | crosscloudci/ci_status_repository | 335e8b89bbf59e6cf63e49541ce3ea6b60167e52 | [
"Apache-2.0"
] | 1 | 2018-06-16T15:32:25.000Z | 2018-06-16T15:32:25.000Z | defmodule CncfDashboardApi.Repo.Migrations.CreateDashboardBadgeStatus do
use Ecto.Migration
def change do
create table(:dashboard_badge_status) do
add :status, :string
add :cloud_id, :integer
add :ref_monitor_id, :integer
add :order, :integer
timestamps()
end
end
end
| 19.6875 | 72 | 0.698413 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.