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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7a0294b30910da9c325693ebd5c407056bb1a9f4 | 128 | ex | Elixir | lib/google_fit/activity_type/scuba_diving.ex | tsubery/google_fit | 7578b832c560b3b4a78059ac86af6e111812712e | [
"Apache-2.0"
] | 2 | 2017-02-01T13:51:26.000Z | 2019-04-12T11:37:25.000Z | lib/google_fit/activity_type/scuba_diving.ex | tsubery/google_fit | 7578b832c560b3b4a78059ac86af6e111812712e | [
"Apache-2.0"
] | null | null | null | lib/google_fit/activity_type/scuba_diving.ex | tsubery/google_fit | 7578b832c560b3b4a78059ac86af6e111812712e | [
"Apache-2.0"
] | null | null | null | defmodule GoogleFit.ActivityType.ScubaDiving do
@moduledoc false
def code, do: GoogleFit.ActivityType.code(__MODULE__)
end
| 21.333333 | 55 | 0.8125 |
7a029b546d5f2af7cb977f23d9739e0d101bdcb9 | 3,462 | ex | Elixir | clients/big_query/lib/google_api/big_query/v2/model/table_list_tables.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/big_query/lib/google_api/big_query/v2/model/table_list_tables.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/big_query/lib/google_api/big_query/v2/model/table_list_tables.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... | 44.384615 | 242 | 0.717793 |
7a02bcbbb46d058b5b09c28c0d7d35febea374a9 | 124 | exs | Elixir | v01/ch14/maps4.edit3.exs | oiax/elixir-primer | c8b89a29f108cc335b8e1341b7a1e90ec12adc66 | [
"MIT"
] | null | null | null | v01/ch14/maps4.edit3.exs | oiax/elixir-primer | c8b89a29f108cc335b8e1341b7a1e90ec12adc66 | [
"MIT"
] | null | null | null | v01/ch14/maps4.edit3.exs | oiax/elixir-primer | c8b89a29f108cc335b8e1341b7a1e90ec12adc66 | [
"MIT"
] | null | null | null | ages = %{"Alice" => 23, "Bob" => 15, "Charlie" => 48}
ages = Map.merge(ages, %{"Bob" => 16, "David" => 30})
IO.inspect ages
| 31 | 53 | 0.532258 |
7a02bd52f916838e6c8f69bcb4c38671ac36059e | 2,237 | ex | Elixir | clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_quota.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_quota.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_quota.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... | 42.207547 | 251 | 0.728654 |
7a02f20e3fcb0973cfa4327b79b8bb009bf2f0ae | 428 | ex | Elixir | installer/templates/phx_umbrella/apps/app_name/lib/app_name/application.ex | zorn/phoenix | ac88958550fbd861e2f1e1af6e3c6b787b1a202e | [
"MIT"
] | 2 | 2020-07-24T08:34:36.000Z | 2021-02-08T03:21:49.000Z | installer/templates/phx_umbrella/apps/app_name/lib/app_name/application.ex | zorn/phoenix | ac88958550fbd861e2f1e1af6e3c6b787b1a202e | [
"MIT"
] | null | null | null | installer/templates/phx_umbrella/apps/app_name/lib/app_name/application.ex | zorn/phoenix | ac88958550fbd861e2f1e1af6e3c6b787b1a202e | [
"MIT"
] | null | null | null | defmodule <%= app_module %>.Application do
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
@moduledoc false
use Application
def start(_type, _args) do
children = [
<%= if ecto do %><%= app_module %>.Repo<% else %># <%= app_module %>.Worker<% end %>
]... | 26.75 | 95 | 0.661215 |
7a02f9c8733bb4844088a7a14ec70f0ad1f90e10 | 7,335 | ex | Elixir | clients/real_time_bidding/lib/google_api/real_time_bidding/v1/model/creative.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/real_time_bidding/lib/google_api/real_time_bidding/v1/model/creative.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/real_time_bidding/lib/google_api/real_time_bidding/v1/model/creative.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... | 69.857143 | 524 | 0.715065 |
7a0305a6cfbd77e4d8f0441fa5af62b8f5fa1640 | 3,103 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/backend_service_failover_policy.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/backend_service_failover_policy.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/compute/lib/google_api/compute/v1/model/backend_service_failover_policy.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... | 56.418182 | 553 | 0.763777 |
7a031f812ca2c10bc4868d0fd452cea117c2405a | 1,741 | exs | Elixir | api/mix.exs | civica-digital/api-estados | dd1a338e4409c01994e931c29e5cc2f328e7e3f4 | [
"Apache-2.0"
] | 11 | 2017-01-20T15:54:54.000Z | 2020-03-24T19:12:34.000Z | api/mix.exs | civica-digital/api-estados | dd1a338e4409c01994e931c29e5cc2f328e7e3f4 | [
"Apache-2.0"
] | 13 | 2017-02-07T21:45:36.000Z | 2017-04-13T17:38:08.000Z | api/mix.exs | civica-digital/api-estados | dd1a338e4409c01994e931c29e5cc2f328e7e3f4 | [
"Apache-2.0"
] | 9 | 2017-03-13T19:49:04.000Z | 2021-01-16T00:24:55.000Z | defmodule Api.Mixfile do
use Mix.Project
def project do
[app: :api,
version: "0.1.4",
elixir: "~> 1.2",
elixirc_paths: elixirc_paths(Mix.env),
compilers: [:phoenix, :gettext] ++ Mix.compilers,
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
aliases: alias... | 30.54386 | 80 | 0.596783 |
7a036ee4b49ad6f815bc85a5ce8cc8ce22438cdc | 81,040 | exs | Elixir | priv/endpoints.exs | steele-d/ex_aws | 2ffd0a3311d06512418fdda87ebd9b7f1b8d37a5 | [
"MIT"
] | null | null | null | priv/endpoints.exs | steele-d/ex_aws | 2ffd0a3311d06512418fdda87ebd9b7f1b8d37a5 | [
"MIT"
] | null | null | null | priv/endpoints.exs | steele-d/ex_aws | 2ffd0a3311d06512418fdda87ebd9b7f1b8d37a5 | [
"MIT"
] | null | null | null | %{
"partitions" => [
%{
"defaults" => %{
"hostname" => "{service}.{region}.{dnsSuffix}",
"protocols" => ["https"],
"signatureVersions" => ["v4"]
},
"dnsSuffix" => "amazonaws.com",
"partition" => "aws",
"partitionName" => "AWS Standard",
"regionRegex" => ... | 34.136479 | 98 | 0.31155 |
7a0392c5209e796fd9e1e704975dfd4d96786ba2 | 6,259 | exs | Elixir | test/subscriptions/subscription_locking_test.exs | MichalDolata/eventstore | 2a6725fcb4c398d81a74455b6077901189b75386 | [
"MIT"
] | null | null | null | test/subscriptions/subscription_locking_test.exs | MichalDolata/eventstore | 2a6725fcb4c398d81a74455b6077901189b75386 | [
"MIT"
] | null | null | null | test/subscriptions/subscription_locking_test.exs | MichalDolata/eventstore | 2a6725fcb4c398d81a74455b6077901189b75386 | [
"MIT"
] | null | null | null | defmodule EventStore.Subscriptions.SubscriptionLockingTest do
use EventStore.StorageCase
alias EventStore.{Config, EventFactory, ProcessHelper, Storage}
alias EventStore.Subscriptions.Subscription
@conn TestEventStore.EventStore.Postgrex
setup do
subscription_name = UUID.uuid4()
{:ok, %{subscripti... | 27.817778 | 101 | 0.695479 |
7a03a29ffeff2b5ebf89a8c808150db7ca7b0cc7 | 363 | exs | Elixir | priv/repo/migrations/20180909081947_create_submissions.exs | AltCampus/altstatus_backend | 70bf7a9d337e570f54002c3a7df264e88372adfa | [
"MIT"
] | 1 | 2020-01-20T18:17:59.000Z | 2020-01-20T18:17:59.000Z | priv/repo/migrations/20180909081947_create_submissions.exs | AltCampus/altstatus_backend | 70bf7a9d337e570f54002c3a7df264e88372adfa | [
"MIT"
] | null | null | null | priv/repo/migrations/20180909081947_create_submissions.exs | AltCampus/altstatus_backend | 70bf7a9d337e570f54002c3a7df264e88372adfa | [
"MIT"
] | 2 | 2018-09-09T08:05:24.000Z | 2018-09-09T08:35:18.000Z | defmodule Altstatus.Repo.Migrations.CreateSubmissions do
use Ecto.Migration
def change do
create table(:submissions) do
add :twitter_url, :string
add :reflection, :text
add :medium_url, :string
add :user_id, references(:users, on_delete: :nothing)
timestamps()
end
create... | 21.352941 | 59 | 0.680441 |
7a03df714cc265c2d94844636da8d5dd90eceb55 | 383 | exs | Elixir | packages/templates/src/project/potionx/priv/repo/migrations/{{ timestamp2 }}_create_user_identities.exs | shuv1824/potionx | a5888413b13a520d8ddf79fb26b7483e441737c3 | [
"MIT"
] | 31 | 2021-02-16T20:50:46.000Z | 2022-02-03T10:38:07.000Z | packages/templates/src/project/potionx/priv/repo/migrations/{{ timestamp2 }}_create_user_identities.exs | shuv1824/potionx | a5888413b13a520d8ddf79fb26b7483e441737c3 | [
"MIT"
] | 6 | 2021-04-07T21:50:20.000Z | 2022-02-06T21:54:04.000Z | packages/templates/src/project/potionx/priv/repo/migrations/{{ timestamp2 }}_create_user_identities.exs | shuv1824/potionx | a5888413b13a520d8ddf79fb26b7483e441737c3 | [
"MIT"
] | 4 | 2021-03-25T17:59:44.000Z | 2021-04-25T16:28:22.000Z | defmodule <%= appModule %>.Repo.Migrations.CreateUserIdentities do
use Ecto.Migration
def change do
create table(:user_identities) do
add :provider, :string, null: false
add :uid, :string, null: false
add :user_id, references("users", on_delete: :nothing)
timestamps()
end
crea... | 23.9375 | 66 | 0.678851 |
7a0436f0ed2f9e3daed7fde86123627e00b07b18 | 5,763 | ex | Elixir | lib/sanbase_web/admin/kafka/kafka_label_record.ex | sitedata/sanbase2 | 8da5e44a343288fbc41b68668c6c80ae8547d557 | [
"MIT"
] | null | null | null | lib/sanbase_web/admin/kafka/kafka_label_record.ex | sitedata/sanbase2 | 8da5e44a343288fbc41b68668c6c80ae8547d557 | [
"MIT"
] | 1 | 2021-07-24T16:26:03.000Z | 2021-07-24T16:26:03.000Z | lib/sanbase_web/admin/kafka/kafka_label_record.ex | sitedata/sanbase2 | 8da5e44a343288fbc41b68668c6c80ae8547d557 | [
"MIT"
] | null | null | null | defmodule Sanbase.Model.Kafka.KafkaLabelRecord do
use Ecto.Schema
import Ecto.Changeset
require Logger
schema "kafka_label_records" do
field(:topic, :string)
field(:sign, :integer)
field(:address, :string)
field(:blockchain, :string)
field(:label, :string)
field(:metadata, :string)
... | 29.106061 | 122 | 0.576262 |
7a043c29016ba061642810eb04ff90a0e36b8664 | 4,781 | exs | Elixir | test/protobuf/decode/decode_type_test.exs | gialib/protobuf-elixir | 25598a2ae13eee56550467901d789dc9b21aab17 | [
"MIT"
] | 2 | 2019-06-01T05:52:52.000Z | 2019-06-01T06:03:10.000Z | test/protobuf/decode/decode_type_test.exs | gialib/protobuf-elixir | 25598a2ae13eee56550467901d789dc9b21aab17 | [
"MIT"
] | null | null | null | test/protobuf/decode/decode_type_test.exs | gialib/protobuf-elixir | 25598a2ae13eee56550467901d789dc9b21aab17 | [
"MIT"
] | 1 | 2018-12-03T07:04:27.000Z | 2018-12-03T07:04:27.000Z | defmodule Protobuf.Decoder.DecodeTypeTest do
use ExUnit.Case, async: true
import Bitwise, only: [band: 2]
alias Protobuf.Decoder
test "decode_type/2 varint" do
{t, rest} = Decoder.decode_varint(<<8, 42, 34, 3, 97, 98, 99>>)
t = band(t, 7)
{_, rest2} = Decoder.decode_type(t, rest)
assert rest2 ... | 31.045455 | 92 | 0.597574 |
7a0451f12a16eabd15f9566491c7ed59d0140094 | 935 | ex | Elixir | lib/rtl/videos/coding.ex | topherhunt/reassembling-the-line | c6823b3394ee98d9b0149fa3d09448928ac5c0db | [
"MIT"
] | 1 | 2019-04-27T15:39:20.000Z | 2019-04-27T15:39:20.000Z | lib/rtl/videos/coding.ex | topherhunt/reassembling-the-line | c6823b3394ee98d9b0149fa3d09448928ac5c0db | [
"MIT"
] | 11 | 2020-07-16T11:40:53.000Z | 2021-08-16T07:03:33.000Z | lib/rtl/videos/coding.ex | topherhunt/reassembling-the-line | c6823b3394ee98d9b0149fa3d09448928ac5c0db | [
"MIT"
] | null | null | null | defmodule RTL.Videos.Coding do
use Ecto.Schema
import Ecto.Changeset
import Ecto.Query
schema "codings" do
belongs_to :video, RTL.Videos.Video
belongs_to :coder, RTL.Accounts.User
field :completed_at, :utc_datetime
timestamps()
has_many(:taggings, RTL.Videos.Tagging)
has_many(:tags, th... | 26.714286 | 85 | 0.66631 |
7a0486fffe8619ed0c568a42fef4e591b88a5f0e | 1,150 | ex | Elixir | test/support/conn_case.ex | gedzubo/pagila_phoenix_api | c72063672a1b09c8d9bcc2814b03a4863a09a7b4 | [
"MIT"
] | null | null | null | test/support/conn_case.ex | gedzubo/pagila_phoenix_api | c72063672a1b09c8d9bcc2814b03a4863a09a7b4 | [
"MIT"
] | null | null | null | test/support/conn_case.ex | gedzubo/pagila_phoenix_api | c72063672a1b09c8d9bcc2814b03a4863a09a7b4 | [
"MIT"
] | null | null | null | defmodule PagilaPhoenixApi.ConnCase do
@moduledoc """
This module defines the test case to be used by
tests that require setting up a connection.
Such tests rely on `Phoenix.ConnTest` and also
import other functionality to make it easier
to build and query models.
Finally, if the test case interacts wit... | 25.555556 | 78 | 0.718261 |
7a048935e78c596875f03c315682845da23ef1a5 | 353 | ex | Elixir | lib/math.ex | roamerlv/ex-study | b2f11b85158899d18cad20e5d722695afc8e1657 | [
"MIT"
] | null | null | null | lib/math.ex | roamerlv/ex-study | b2f11b85158899d18cad20e5d722695afc8e1657 | [
"MIT"
] | null | null | null | lib/math.ex | roamerlv/ex-study | b2f11b85158899d18cad20e5d722695afc8e1657 | [
"MIT"
] | null | null | null | defmodule Math do
def add(a,b), do: a + b
def sub(a,b), do: a - b
def sum_list([head | tail], accumulator), do: sum_list([tail], head+accumulator)
def sum_list([], accumulator), do: accumulator
def double_list([h|t]), do: double_list([h*2|double_list(tail)])
def sum_list([head|tail]), do: Enu... | 27.153846 | 84 | 0.628895 |
7a0494c381d0eeb5660997d7640f24a6844f1fdb | 343 | ex | Elixir | lib/exuvia/key_bag/posix.ex | meetwalter/exuvia | 5c87af7186727ffcd3c6267ea2b259c301cb0dd2 | [
"BSD-3-Clause"
] | 1 | 2016-10-20T05:28:36.000Z | 2016-10-20T05:28:36.000Z | lib/exuvia/key_bag/posix.ex | meetwalter/exuvia | 5c87af7186727ffcd3c6267ea2b259c301cb0dd2 | [
"BSD-3-Clause"
] | 4 | 2017-02-03T19:58:38.000Z | 2017-02-03T20:44:44.000Z | lib/exuvia/key_bag/posix.ex | meetwalter/exuvia | 5c87af7186727ffcd3c6267ea2b259c301cb0dd2 | [
"BSD-3-Clause"
] | null | null | null | defmodule Exuvia.KeyBag.POSIX do
@moduledoc ~S"""
A strategy for authenticating SSH keys against the filesystem;
replicates the default behavior of the SSH daemon
"""
def auth_request(req_username, req_material) do
granted = :ssh_file.is_auth_key(req_material, String.to_char_list(req_username), [])
{... | 28.583333 | 88 | 0.749271 |
7a04ab2c0edfc8c56343423af36f69a828fcac21 | 565 | exs | Elixir | mix.exs | cblanc/postcodesioex | 241138bf9608754630b9f0ee839dfaab8e6b5431 | [
"MIT"
] | null | null | null | mix.exs | cblanc/postcodesioex | 241138bf9608754630b9f0ee839dfaab8e6b5431 | [
"MIT"
] | null | null | null | mix.exs | cblanc/postcodesioex | 241138bf9608754630b9f0ee839dfaab8e6b5431 | [
"MIT"
] | null | null | null | defmodule Postcodesio.Mixfile do
use Mix.Project
def project do
[
app: :postcodesio,
version: "0.1.0",
elixir: "~> 1.5",
start_permanent: Mix.env == :prod,
deps: deps()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_... | 18.833333 | 59 | 0.553982 |
7a04e3bef83a5e5f49c2ea73746ed8f2f2174d4b | 533 | ex | Elixir | lib/remote_retro_web/channels/presence_utils.ex | pwjablonski/remote_retro | 1b6acf359b362ae2ec187cfbd1a38dc8266aa546 | [
"MIT"
] | null | null | null | lib/remote_retro_web/channels/presence_utils.ex | pwjablonski/remote_retro | 1b6acf359b362ae2ec187cfbd1a38dc8266aa546 | [
"MIT"
] | null | null | null | lib/remote_retro_web/channels/presence_utils.ex | pwjablonski/remote_retro | 1b6acf359b362ae2ec187cfbd1a38dc8266aa546 | [
"MIT"
] | null | null | null | defmodule RemoteRetroWeb.PresenceUtils do
@moduledoc """
Helpers for retro user presence.
"""
alias RemoteRetroWeb.Presence
alias RemoteRetro.User
alias Phoenix.Token
def track_timestamped(%{assigns: assigns} = socket) do
case Token.verify(socket, "user", assigns.user_token, max_age: 86_400) do
... | 26.65 | 77 | 0.669794 |
7a04e5cddd5d3b53033ba188e63bce15548c0581 | 496 | ex | Elixir | lib/nostalgic_games.ex | rafaelcorazzi/nostalgic_games | 34734aa3a89194730d0cc5e137f3db5f597979d4 | [
"MIT"
] | null | null | null | lib/nostalgic_games.ex | rafaelcorazzi/nostalgic_games | 34734aa3a89194730d0cc5e137f3db5f597979d4 | [
"MIT"
] | null | null | null | lib/nostalgic_games.ex | rafaelcorazzi/nostalgic_games | 34734aa3a89194730d0cc5e137f3db5f597979d4 | [
"MIT"
] | null | null | null | defmodule NostalgicGames do
alias NostalgicGames.{Console, Games}
defdelegate create_console(params), to: Console.Create, as: :call
defdelegate delete_console(params), to: Console.Delete, as: :call
defdelegate read_console(params), to: Console.Read, as: :call
defdelegate read_games_by_console(params), to: Ga... | 45.090909 | 77 | 0.764113 |
7a0500547bb69016c82cd9d9d11c0e92d69d2feb | 8,044 | ex | Elixir | lib/mix/lib/mix/compilers/test.ex | davidsulc/elixir | dd4fd6ab742acd75862e34e26dbdb86e0cf6453f | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/compilers/test.ex | davidsulc/elixir | dd4fd6ab742acd75862e34e26dbdb86e0cf6453f | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/compilers/test.ex | davidsulc/elixir | dd4fd6ab742acd75862e34e26dbdb86e0cf6453f | [
"Apache-2.0"
] | null | null | null | defmodule Mix.Compilers.Test do
@moduledoc false
require Mix.Compilers.Elixir, as: CE
import Record
defrecordp :source, [
source: nil,
compile_references: [],
runtime_references: [],
external: []
]
@stale_manifest ".compile.test_stale"
@manifest_vsn :v1
@doc """
Requires and runs ... | 28.027875 | 122 | 0.635505 |
7a0524c3f05187ff0d2ff50275bcd6517594b7d5 | 1,922 | exs | Elixir | config/dev.exs | awochna/survey | 2db589ce0bea8cc9613beb34cb983348c1458f01 | [
"MIT"
] | null | null | null | config/dev.exs | awochna/survey | 2db589ce0bea8cc9613beb34cb983348c1458f01 | [
"MIT"
] | null | null | null | config/dev.exs | awochna/survey | 2db589ce0bea8cc9613beb34cb983348c1458f01 | [
"MIT"
] | null | null | null | use Mix.Config
# For development, we disable any cache and enable
# debugging and code reloading.
#
# The watchers configuration can be used to run external
# watchers to your application. For example, we use it
# with brunch.io to recompile .js and .css sources.
config :survey, Survey.Web.Endpoint,
http: [port: 400... | 32.576271 | 170 | 0.699792 |
7a052ab11f3bda2837042b6b969b63f499748230 | 776 | ex | Elixir | test/support/integration_case.ex | AnilRedshift/wand-cli | c364cf5397353fd61ba0e5fc33225575eb72ccda | [
"BSD-3-Clause"
] | 3 | 2018-07-01T05:31:02.000Z | 2019-08-03T04:11:32.000Z | test/support/integration_case.ex | AnilRedshift/wand-cli | c364cf5397353fd61ba0e5fc33225575eb72ccda | [
"BSD-3-Clause"
] | 8 | 2018-06-28T07:30:04.000Z | 2018-07-13T07:36:56.000Z | test/support/integration_case.ex | AnilRedshift/wand-cli | c364cf5397353fd61ba0e5fc33225575eb72ccda | [
"BSD-3-Clause"
] | null | null | null | defmodule Wand.Test.IntegrationCase do
use ExUnit.CaseTemplate
using do
quote do
@moduletag :external
alias Wand.Test.IntegrationRunner
import IntegrationRunner, only: [wand: 1, in_dir: 1, execute: 1, execute: 2]
setup_all do
:ok = IntegrationRunner.ensure_binary()
:ok ... | 23.515152 | 82 | 0.671392 |
7a0533b7d2559bd763f442cb62b8813dda7ab9e1 | 254 | ex | Elixir | integration_test/support/pages/page_1.ex | carl-al/wallaby | a4c9811902370b15db17fc62d451035ee7464eea | [
"MIT"
] | 926 | 2016-03-28T17:01:54.000Z | 2019-11-05T11:59:58.000Z | integration_test/support/pages/page_1.ex | carl-al/wallaby | a4c9811902370b15db17fc62d451035ee7464eea | [
"MIT"
] | 377 | 2016-03-17T00:35:56.000Z | 2019-11-03T07:15:24.000Z | integration_test/support/pages/page_1.ex | carl-al/wallaby | a4c9811902370b15db17fc62d451035ee7464eea | [
"MIT"
] | 144 | 2016-03-29T15:28:28.000Z | 2019-10-31T00:48:42.000Z | defmodule Wallaby.Integration.Pages.Page1 do
use Wallaby.DSL
def visit(session) do
session
|> visit("page_1.html")
end
def ensure_page_loaded(session) do
session
|> Browser.find(Query.css(".page-1-page"))
session
end
end
| 15.875 | 46 | 0.677165 |
7a0536a3e518162e55ea23ba21f960dd7fcbb403 | 6,005 | exs | Elixir | apps/rig_inbound_gateway/config/config.exs | vanillebear/reactive-interaction-gateway | 5eb2afa00b8e74bddfd712ba282a3768e8ede239 | [
"Apache-2.0"
] | null | null | null | apps/rig_inbound_gateway/config/config.exs | vanillebear/reactive-interaction-gateway | 5eb2afa00b8e74bddfd712ba282a3768e8ede239 | [
"Apache-2.0"
] | null | null | null | apps/rig_inbound_gateway/config/config.exs | vanillebear/reactive-interaction-gateway | 5eb2afa00b8e74bddfd712ba282a3768e8ede239 | [
"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.
#
# This configuration file is loaded before any dependency and
# is restricted to this project.
use Mix.Config
# --------------------------------------
# Logger
# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^... | 37.53125 | 94 | 0.681266 |
7a059351dd1390a98c1cbb6738a382b1690c6b9f | 163 | ex | Elixir | apps/neoscan/lib/neoscan/blocks/script.ex | vincentgeneste/neo-scan | 4a654575331eeb3eb12d4fd61696a7bd6dbca3ce | [
"MIT"
] | 75 | 2017-07-23T02:45:32.000Z | 2021-12-13T11:04:17.000Z | apps/neoscan/lib/neoscan/blocks/script.ex | vincentgeneste/neo-scan | 4a654575331eeb3eb12d4fd61696a7bd6dbca3ce | [
"MIT"
] | 252 | 2017-07-13T19:36:00.000Z | 2021-07-28T18:40:00.000Z | apps/neoscan/lib/neoscan/blocks/script.ex | vincentgeneste/neo-scan | 4a654575331eeb3eb12d4fd61696a7bd6dbca3ce | [
"MIT"
] | 87 | 2017-07-23T02:45:34.000Z | 2022-03-02T14:54:27.000Z | defmodule Neoscan.Script do
@moduledoc false
use Ecto.Schema
embedded_schema do
field(:invocation, :string)
field(:verification, :string)
end
end
| 16.3 | 33 | 0.723926 |
7a05b8a46ea4b37731295ba777aa94b89f10da89 | 59,319 | ex | Elixir | deps/db_connection/lib/db_connection.ex | adrianomota/blog | ef3b2d2ed54f038368ead8234d76c18983caa75b | [
"MIT"
] | 227 | 2016-06-16T13:56:02.000Z | 2022-03-09T23:03:58.000Z | lib/db_connection.ex | elixir-ecto/db_connection | 46888ada567401d1270f855a3dd04bfca545f94f | [
"Apache-2.0"
] | 198 | 2016-06-20T08:08:15.000Z | 2022-03-06T17:54:37.000Z | deps/db_connection/lib/db_connection.ex | adrianomota/blog | ef3b2d2ed54f038368ead8234d76c18983caa75b | [
"MIT"
] | 110 | 2016-06-20T03:50:39.000Z | 2022-03-03T20:53:01.000Z | defmodule DBConnection.Stream do
defstruct [:conn, :query, :params, :opts]
@type t :: %__MODULE__{conn: DBConnection.conn(), query: any, params: any, opts: Keyword.t()}
end
defimpl Enumerable, for: DBConnection.Stream do
def count(_), do: {:error, __MODULE__}
def member?(_, _), do: {:error, __MODULE__}
de... | 33.437993 | 95 | 0.648393 |
7a05c18d99eaa91dfa5e81e2b28622cf56a2a0cd | 168 | exs | Elixir | priv/repo/migrations/20201018113853_add_password_to_user.exs | sahilpaudel/AfterGlow | 0859ec14b47c8c5704cc8e5cba86d39aa258fff5 | [
"MIT"
] | null | null | null | priv/repo/migrations/20201018113853_add_password_to_user.exs | sahilpaudel/AfterGlow | 0859ec14b47c8c5704cc8e5cba86d39aa258fff5 | [
"MIT"
] | null | null | null | priv/repo/migrations/20201018113853_add_password_to_user.exs | sahilpaudel/AfterGlow | 0859ec14b47c8c5704cc8e5cba86d39aa258fff5 | [
"MIT"
] | null | null | null | defmodule AfterGlow.Repo.Migrations.AddPasswordToUser do
use Ecto.Migration
def change do
alter table(:users) do
add(:password, :text)
end
end
end
| 16.8 | 56 | 0.708333 |
7a05cb3a1661a3914d3eef57c652b3835db48f4a | 2,442 | ex | Elixir | lib/fl_hook/result.ex | tlux/fl_hook_client | 0cd74c1d8873eea8aa654710efe7aab97a1eec5c | [
"MIT"
] | 1 | 2022-01-26T21:06:26.000Z | 2022-01-26T21:06:26.000Z | lib/fl_hook/result.ex | tlux/fl_hook_client | 0cd74c1d8873eea8aa654710efe7aab97a1eec5c | [
"MIT"
] | null | null | null | lib/fl_hook/result.ex | tlux/fl_hook_client | 0cd74c1d8873eea8aa654710efe7aab97a1eec5c | [
"MIT"
] | null | null | null | defmodule FLHook.Result do
@moduledoc """
A struct that contains result data and provides helpers to decode the
contained data.
"""
alias FLHook.ParamError
alias FLHook.Params
alias FLHook.Utils
defstruct lines: []
@type t :: %__MODULE__{lines: [String.t()]}
@doc """
Converts the result to a s... | 26.543478 | 80 | 0.644963 |
7a05cca1eb5c4fcdaa2cdd20c15aebec0d193ae9 | 1,819 | ex | Elixir | lib/talon/plug/load_resource.ex | talonframework/ex_admin | d164c065ac74c156c3abeca8437e184456db903c | [
"MIT"
] | 170 | 2017-05-25T15:09:53.000Z | 2021-07-09T04:04:14.000Z | lib/talon/plug/load_resource.ex | talonframework/ex_admin | d164c065ac74c156c3abeca8437e184456db903c | [
"MIT"
] | 78 | 2017-05-25T09:41:55.000Z | 2019-01-04T20:53:35.000Z | lib/talon/plug/load_resource.ex | talonframework/ex_admin | d164c065ac74c156c3abeca8437e184456db903c | [
"MIT"
] | 8 | 2017-06-24T12:28:06.000Z | 2018-09-17T16:11:56.000Z | defmodule Talon.Plug.LoadResource do
import Plug.Conn
@behaviour Plug
def init(opts) do
Enum.into opts, %{}
end
def call(conn, opts) do
talon = conn.assigns[:talon]
repo = opts[:repo] || talon[:repo]
concern = opts[:talon] || talon[:talon] || raise("talon option required")
schema = con... | 30.316667 | 99 | 0.664651 |
7a05f09fb7d2f23a18b64f7e5837dbc49874a2ae | 575 | ex | Elixir | lib/cog/commands/relay_group.ex | matusf/cog | 71708301c7dc570fb0d3498a50f47a70ef957788 | [
"Apache-2.0"
] | 1,003 | 2016-02-23T17:21:12.000Z | 2022-02-20T14:39:35.000Z | lib/cog/commands/relay_group.ex | matusf/cog | 71708301c7dc570fb0d3498a50f47a70ef957788 | [
"Apache-2.0"
] | 906 | 2016-02-22T22:54:19.000Z | 2022-03-11T15:19:43.000Z | lib/cog/commands/relay_group.ex | matusf/cog | 71708301c7dc570fb0d3498a50f47a70ef957788 | [
"Apache-2.0"
] | 95 | 2016-02-23T13:42:31.000Z | 2021-11-30T14:39:55.000Z | defmodule Cog.Commands.RelayGroup do
alias Cog.Models.RelayGroup
alias Cog.Commands.Relay
@doc """
Returns a map representing a relay group from a relay group model.
"""
@spec json(%RelayGroup{}) :: Map.t
def json(relay_group) do
%{"name" => relay_group.name,
"id" => relay_group.id,
"crea... | 27.380952 | 76 | 0.669565 |
7a0607f551ebd84b4534a818503f26b8597aefa0 | 161 | exs | Elixir | config.exs | mingyar/elixir-youtube-web-scraper | 14e7238847281ab4880cb2b60c3eb39eac647858 | [
"MIT"
] | 1 | 2021-05-24T05:28:33.000Z | 2021-05-24T05:28:33.000Z | config.exs | mingyar/elxr_yt_wb_scrpr | 14e7238847281ab4880cb2b60c3eb39eac647858 | [
"MIT"
] | null | null | null | config.exs | mingyar/elxr_yt_wb_scrpr | 14e7238847281ab4880cb2b60c3eb39eac647858 | [
"MIT"
] | null | null | null | use Mix.Config
def application do
[applications: [:logger, :httpoison, :hound]]
end
config :hound,
port: 4444,
driver: "selenium",
host: "localhost"
| 14.636364 | 49 | 0.677019 |
7a06140532dc34d77e72851f48289b59c46830bd | 2,445 | ex | Elixir | rumbl/lib/rumbl/multimedia.ex | arilsonsouza/programming_phoenix | 71a2a44e8cf84b6b133422899324363a09ccc07c | [
"MIT"
] | null | null | null | rumbl/lib/rumbl/multimedia.ex | arilsonsouza/programming_phoenix | 71a2a44e8cf84b6b133422899324363a09ccc07c | [
"MIT"
] | null | null | null | rumbl/lib/rumbl/multimedia.ex | arilsonsouza/programming_phoenix | 71a2a44e8cf84b6b133422899324363a09ccc07c | [
"MIT"
] | null | null | null | defmodule Rumbl.Multimedia do
@moduledoc """
The Multimedia context.
"""
import Ecto.Query, warn: false
alias Rumbl.Repo
alias Rumbl.Multimedia.Video
alias Rumbl.Accounts
alias Rumbl.Multimedia.Category
@doc """
Returns the list of videos.
## Examples
iex> list_videos()
[%Video{},... | 18.246269 | 63 | 0.60409 |
7a062e9f791cbed91d03cce008a1055d7dc496d4 | 102 | ex | Elixir | lib/mix_audit/report.ex | wolcanism/mix_audit | 5217f4be56519dd67dba0084929d1ed50517bc18 | [
"BSD-3-Clause"
] | 173 | 2020-03-04T14:04:46.000Z | 2022-03-26T21:50:27.000Z | lib/mix_audit/report.ex | wolcanism/mix_audit | 5217f4be56519dd67dba0084929d1ed50517bc18 | [
"BSD-3-Clause"
] | 5 | 2020-03-09T17:04:19.000Z | 2021-12-29T17:38:20.000Z | lib/mix_audit/report.ex | wolcanism/mix_audit | 5217f4be56519dd67dba0084929d1ed50517bc18 | [
"BSD-3-Clause"
] | 6 | 2020-03-11T21:43:48.000Z | 2021-12-21T19:20:48.000Z | defmodule MixAudit.Report do
@derive Jason.Encoder
defstruct vulnerabilities: [], pass: false
end
| 20.4 | 44 | 0.77451 |
7a06389b0c95c9ee33767c9c64e406f8ed7d597b | 2,255 | exs | Elixir | scripts/generate_makefile.exs | KRISHITECH/farmbot_os | 4220baf8f3ef930ce3b861b178ca6a76e2fd7591 | [
"MIT"
] | null | null | null | scripts/generate_makefile.exs | KRISHITECH/farmbot_os | 4220baf8f3ef930ce3b861b178ca6a76e2fd7591 | [
"MIT"
] | null | null | null | scripts/generate_makefile.exs | KRISHITECH/farmbot_os | 4220baf8f3ef930ce3b861b178ca6a76e2fd7591 | [
"MIT"
] | null | null | null | version = Path.join([__DIR__, "..", "VERSION"]) |> File.read! |> String.strip
IO.puts version
{commitish, _} = System.cmd("git", ["log", "--pretty=format:%hQQ%adQQ%f", "-1"])
thing = String.split(commitish, "QQ")
IO.puts "Building default portions"
initial = "# THIS FILE WAS GENERATED BY `build_makefile.exs`
# #{Enum.... | 21.47619 | 80 | 0.681596 |
7a063c13018f8a6b707b09eeef51be0609e25558 | 256 | exs | Elixir | test/fixtures/deps/dep_two_conflicting_licenses/mix.exs | fhunleth/licensir | 3d61fe335dd232cd8af44ecd8dc412273ef7f37b | [
"MIT"
] | 70 | 2017-12-12T17:12:22.000Z | 2022-03-28T12:05:32.000Z | test/fixtures/deps/dep_two_conflicting_licenses/mix.exs | fhunleth/licensir | 3d61fe335dd232cd8af44ecd8dc412273ef7f37b | [
"MIT"
] | 24 | 2017-12-05T12:15:42.000Z | 2021-08-01T15:51:32.000Z | test/fixtures/deps/dep_two_conflicting_licenses/mix.exs | fhunleth/licensir | 3d61fe335dd232cd8af44ecd8dc412273ef7f37b | [
"MIT"
] | 22 | 2018-03-13T20:56:41.000Z | 2021-07-15T21:59:07.000Z | defmodule DepTwoConflictingLicenses.MixProject do
use Mix.Project
def project do
[
app: :dep_one_license,
version: "1.0.0",
package: package()
]
end
defp package do
[
licenses: ["Licensir One"]
]
end
end
| 14.222222 | 49 | 0.601563 |
7a068f580ad94022ed92b240b0604e025e0d6008 | 3,363 | ex | Elixir | clients/docs/lib/google_api/docs/v1/model/table_row.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/docs/lib/google_api/docs/v1/model/table_row.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/docs/lib/google_api/docs/v1/model/table_row.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 43.115385 | 208 | 0.69997 |
7a06995f99508ab683261d20c3260f74d36ca90f | 2,270 | ex | Elixir | lib/hexa_web/views/error_helpers.ex | libreearth/hexa | 81938c3a5abc710eb16055d73c43cbf60dbf487e | [
"MIT"
] | null | null | null | lib/hexa_web/views/error_helpers.ex | libreearth/hexa | 81938c3a5abc710eb16055d73c43cbf60dbf487e | [
"MIT"
] | null | null | null | lib/hexa_web/views/error_helpers.ex | libreearth/hexa | 81938c3a5abc710eb16055d73c43cbf60dbf487e | [
"MIT"
] | null | null | null | defmodule HexaWeb.ErrorHelpers do
@moduledoc """
Conveniences for translating and building error messages.
"""
use Phoenix.HTML
import Phoenix.LiveView
import Phoenix.LiveView.Helpers
@doc """
Generates tag for inlined form input errors.
"""
def error_tag(form, field) do
error(%{errors: form.e... | 31.09589 | 108 | 0.638767 |
7a06a8261bfabd5ce54078799fe11903f8e2ff15 | 16,108 | ex | Elixir | lib/ex_unit/lib/ex_unit/assertions.ex | nurugger07/elixir | c859e49199bb24190656e6d3acb6cf35fe70e8bb | [
"Apache-2.0"
] | 1 | 2019-06-11T20:22:20.000Z | 2019-06-11T20:22:20.000Z | lib/ex_unit/lib/ex_unit/assertions.ex | nurugger07/elixir | c859e49199bb24190656e6d3acb6cf35fe70e8bb | [
"Apache-2.0"
] | null | null | null | lib/ex_unit/lib/ex_unit/assertions.ex | nurugger07/elixir | c859e49199bb24190656e6d3acb6cf35fe70e8bb | [
"Apache-2.0"
] | null | null | null | defmodule ExUnit.AssertionError do
@no_value :ex_unit_no_meaningful_value
defexception left: @no_value,
right: @no_value,
message: @no_value,
expr: @no_value
@doc """
Indicates no meaningful value for a field.
"""
def no_value do
@no_value
end
end... | 25.649682 | 161 | 0.61994 |
7a06c7f8d241c8c8e15d82dd3ab4f929d10d48c9 | 3,231 | ex | Elixir | clients/firestore/lib/google_api/firestore/v1beta1/model/google_longrunning_operation.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/firestore/lib/google_api/firestore/v1beta1/model/google_longrunning_operation.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/firestore/lib/google_api/firestore/v1beta1/model/google_longrunning_operation.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... | 54.762712 | 543 | 0.731043 |
7a06d64816e1505633a5b8d24c902d5c90253e4c | 2,012 | exs | Elixir | reviews/config/prod.exs | DivvyPayHQ/federation_poc | 74839abf7d3eb8e3029468bbe4d335d7b240da97 | [
"MIT"
] | 2 | 2021-09-21T13:36:49.000Z | 2021-09-25T13:17:40.000Z | reviews/config/prod.exs | DivvyPayHQ/federation_poc | 74839abf7d3eb8e3029468bbe4d335d7b240da97 | [
"MIT"
] | null | null | null | reviews/config/prod.exs | DivvyPayHQ/federation_poc | 74839abf7d3eb8e3029468bbe4d335d7b240da97 | [
"MIT"
] | null | null | null | use Mix.Config
# For production, don't forget to configure the url host
# to something meaningful, Phoenix uses this information
# when generating URLs.
#
# Note we also include the path to a cache manifest
# containing the digested version of static files. This
# manifest is generated by the `mix phx.digest` task,
# ... | 35.928571 | 66 | 0.714712 |
7a070087f430715243712cf78007d837cfbaffdf | 158 | ex | Elixir | web/views/tp_destination_import_job_view.ex | zombalo/cgrates_web_jsonapi | 47845be4311839fe180cc9f2c7c6795649da4430 | [
"MIT"
] | null | null | null | web/views/tp_destination_import_job_view.ex | zombalo/cgrates_web_jsonapi | 47845be4311839fe180cc9f2c7c6795649da4430 | [
"MIT"
] | null | null | null | web/views/tp_destination_import_job_view.ex | zombalo/cgrates_web_jsonapi | 47845be4311839fe180cc9f2c7c6795649da4430 | [
"MIT"
] | null | null | null | defmodule CgratesWebJsonapi.TpDestinationImportJobView do
use CgratesWebJsonapi.Web, :view
use JaSerializer.PhoenixView
attributes [:id, :status]
end
| 19.75 | 57 | 0.810127 |
7a071cba177751c5c5e7cb94355a2e8a8d687b04 | 4,629 | ex | Elixir | clients/monitoring/lib/google_api/monitoring/v3/model/distribution.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/monitoring/lib/google_api/monitoring/v3/model/distribution.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/monitoring/lib/google_api/monitoring/v3/model/distribution.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 69.089552 | 775 | 0.740549 |
7a072fbb2d78856cfac5b3f65650ec7094135fa6 | 1,479 | ex | Elixir | lib/joi/type.ex | scottming/joi | 1c7546bb0473fa53325533c7ab4aec402bfba0d1 | [
"MIT"
] | 25 | 2020-12-03T08:14:51.000Z | 2021-09-01T15:34:30.000Z | lib/joi/type.ex | scottming/joi | 1c7546bb0473fa53325533c7ab4aec402bfba0d1 | [
"MIT"
] | 5 | 2021-02-13T12:56:56.000Z | 2021-07-30T01:27:51.000Z | lib/joi/type.ex | scottming/joi | 1c7546bb0473fa53325533c7ab4aec402bfba0d1 | [
"MIT"
] | 2 | 2021-03-15T00:37:13.000Z | 2021-07-26T15:21:55.000Z | defmodule Joi.Type do
@moduledoc false
alias __MODULE__
alias Joi.Validator.Custom
def validate(type, field, data, options) do
custom_function_list = options |> Keyword.take([:f])
options = options |> Keyword.drop([:f])
cond do
type == :atom -> Type.Atom.validate_field(field, data, options)... | 36.073171 | 77 | 0.672752 |
7a075aec237f68feb11f1fc9b05743c9ce6f268e | 1,524 | ex | Elixir | lib/ex_persona/document.ex | parallel-markets/ex_persona | ef65aba6630333d251b4661eac3816144128eab5 | [
"MIT"
] | null | null | null | lib/ex_persona/document.ex | parallel-markets/ex_persona | ef65aba6630333d251b4661eac3816144128eab5 | [
"MIT"
] | null | null | null | lib/ex_persona/document.ex | parallel-markets/ex_persona | ef65aba6630333d251b4661eac3816144128eab5 | [
"MIT"
] | null | null | null | defmodule ExPersona.Document do
@moduledoc """
Module for getting a [document](https://docs.withpersona.com/reference#retrieve-a-document)'s
metadata and downloading its contents.
For instance:
doc = ExPersona.Document.get("an-id") |> ExPersona.request!()
if Document.has_file?(doc, "front_image") ... | 28.222222 | 95 | 0.63189 |
7a07681835d3246b5c08e7e8ac90813c8abbb1c1 | 2,657 | exs | Elixir | mix.exs | aschiavon91/nerves_system_rpi4_zbar | 4f0fd8701101c96d0263ab9d3dd23d86bffa3385 | [
"Apache-2.0"
] | null | null | null | mix.exs | aschiavon91/nerves_system_rpi4_zbar | 4f0fd8701101c96d0263ab9d3dd23d86bffa3385 | [
"Apache-2.0"
] | null | null | null | mix.exs | aschiavon91/nerves_system_rpi4_zbar | 4f0fd8701101c96d0263ab9d3dd23d86bffa3385 | [
"Apache-2.0"
] | null | null | null | defmodule NervesSystemRpi4.MixProject do
use Mix.Project
@github_organization "aschiavon91"
@app :nerves_system_rpi4_zbar
@version Path.join(__DIR__, "VERSION")
|> File.read!()
|> String.trim()
def project do
[
app: @app,
version: @version,
elixir: "~> 1.6",
... | 22.905172 | 82 | 0.583365 |
7a07827045574fe6a8206795e9d6334ff597b3cd | 2,847 | ex | Elixir | lib/farside/instances.ex | austinhuang0131/farside | 87b1e15c77db1df8b3450e2c3f17bc612ee2b05c | [
"MIT"
] | null | null | null | lib/farside/instances.ex | austinhuang0131/farside | 87b1e15c77db1df8b3450e2c3f17bc612ee2b05c | [
"MIT"
] | null | null | null | lib/farside/instances.ex | austinhuang0131/farside | 87b1e15c77db1df8b3450e2c3f17bc612ee2b05c | [
"MIT"
] | null | null | null | defmodule Farside.Instances do
@fallback_suffix Application.fetch_env!(:farside, :fallback_suffix)
@update_file Application.fetch_env!(:farside, :update_file)
@services_json Application.fetch_env!(:farside, :services_json)
@service_prefix Application.fetch_env!(:farside, :service_prefix)
@headers Application.... | 25.881818 | 79 | 0.574289 |
7a0794ad15efd28c1d0fd55125d36e0e751c4b06 | 1,221 | ex | Elixir | lib/battle_city_ui_web/live_dashboard/presence_page.ex | clszzyh/battle_city_ui | 1fe115f3eee3be226b669cda961632a6fd6675b9 | [
"MIT"
] | null | null | null | lib/battle_city_ui_web/live_dashboard/presence_page.ex | clszzyh/battle_city_ui | 1fe115f3eee3be226b669cda961632a6fd6675b9 | [
"MIT"
] | 115 | 2020-12-30T11:40:17.000Z | 2022-03-31T02:05:53.000Z | lib/battle_city_ui_web/live_dashboard/presence_page.ex | clszzyh/battle_city_ui | 1fe115f3eee3be226b669cda961632a6fd6675b9 | [
"MIT"
] | null | null | null | defmodule BattleCityUiWeb.LiveDashboard.PresencePage do
@moduledoc false
use Phoenix.LiveDashboard.PageBuilder
alias BattleCityUi.Utils
@title "Presence"
@impl true
def menu_link(_, _) do
{:ok, @title}
end
@impl true
def render_page(_assigns) do
table(
columns: columns(),
id: :... | 22.2 | 96 | 0.606061 |
7a07a1ebdcaacf016180caba8de1a42d6455f783 | 90 | exs | Elixir | test/test_helper.exs | wojtekmach/protobuf | 3b251d286dc94745fc6a92fcbf9be03f44bb9b46 | [
"MIT"
] | null | null | null | test/test_helper.exs | wojtekmach/protobuf | 3b251d286dc94745fc6a92fcbf9be03f44bb9b46 | [
"MIT"
] | null | null | null | test/test_helper.exs | wojtekmach/protobuf | 3b251d286dc94745fc6a92fcbf9be03f44bb9b46 | [
"MIT"
] | null | null | null | ExUnit.configure(exclude: [integration: true])
ExUnit.start()
Protobuf.load_extensions()
| 18 | 46 | 0.788889 |
7a07a839f84be213d8c9acb33d8b3610075ad9a8 | 1,989 | ex | Elixir | lib/fast_ts/server.ex | processone/fast_ts | ac7e42c17753f1399a12e2c5531570466debfaba | [
"Apache-2.0"
] | 15 | 2016-01-13T09:46:17.000Z | 2020-02-07T20:12:19.000Z | lib/fast_ts/server.ex | processone/fast_ts | ac7e42c17753f1399a12e2c5531570466debfaba | [
"Apache-2.0"
] | null | null | null | lib/fast_ts/server.ex | processone/fast_ts | ac7e42c17753f1399a12e2c5531570466debfaba | [
"Apache-2.0"
] | 6 | 2016-01-13T11:28:56.000Z | 2019-09-22T14:17:39.000Z | defmodule FastTS.Server do
require Logger
@doc """
Starts accepting connections on the give `port`.
"""
@spec accept(port :: integer) :: no_return
def accept(port) do
{:ok, socket} = :gen_tcp.listen(port, [:binary, packet: 4, active: false, reuseaddr: true])
Logger.info "Accepting connections on... | 25.831169 | 114 | 0.647562 |
7a07d1c79694eb1be3dfb4ea73be32aa43274d1d | 2,583 | ex | Elixir | clients/cloud_run/lib/google_api/cloud_run/v1alpha1/model/http_get_action.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/cloud_run/lib/google_api/cloud_run/v1alpha1/model/http_get_action.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/cloud_run/lib/google_api/cloud_run/v1alpha1/model/http_get_action.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 38.552239 | 172 | 0.701897 |
7a07dcafe5768c9b1573c8e47b25930d22f4c27e | 10,218 | ex | Elixir | lib/plug/parsers/multipart.ex | outstand/plug | e75d542b3028b5c1f348ac9d128306c46a6b6e70 | [
"Apache-2.0"
] | 2 | 2020-05-06T14:51:56.000Z | 2020-05-06T14:52:21.000Z | lib/plug/parsers/multipart.ex | outstand/plug | e75d542b3028b5c1f348ac9d128306c46a6b6e70 | [
"Apache-2.0"
] | null | null | null | lib/plug/parsers/multipart.ex | outstand/plug | e75d542b3028b5c1f348ac9d128306c46a6b6e70 | [
"Apache-2.0"
] | 1 | 2020-05-16T22:44:14.000Z | 2020-05-16T22:44:14.000Z | defmodule Plug.Parsers.MULTIPART do
@moduledoc """
Parses multipart request body.
## Options
All options supported by `Plug.Conn.read_body/2` are also supported here.
They are repeated here for convenience:
* `:length` - sets the maximum number of bytes to read from the request,
defaults to 8_000... | 31.057751 | 97 | 0.634762 |
7a080e8ba01069a1539dbe826286d7c441988b3a | 1,180 | ex | Elixir | api/lib/api_web/channels/user_socket.ex | pinda-fun/pinda-fun | 83a8763c37d471342d6b12647cc588997ce21cfc | [
"MIT"
] | 15 | 2019-10-21T08:47:40.000Z | 2021-01-20T16:35:33.000Z | api/lib/api_web/channels/user_socket.ex | pinda-fun/pinda-fun | 83a8763c37d471342d6b12647cc588997ce21cfc | [
"MIT"
] | 850 | 2019-10-13T11:11:47.000Z | 2022-03-30T12:56:23.000Z | api/lib/api_web/channels/user_socket.ex | pinda-fun/pinda-fun | 83a8763c37d471342d6b12647cc588997ce21cfc | [
"MIT"
] | null | null | null | defmodule ApiWeb.UserSocket do
use Phoenix.Socket
## Channels
channel "room:*", ApiWeb.RoomChannel
channel "feedback:*", ApiWeb.FeedbackChannel
# 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 s... | 33.714286 | 83 | 0.698305 |
7a081402bb91675a1b3e4e211a2415b71bfb0b99 | 986 | ex | Elixir | lib/teiserver.ex | icexuick/teiserver | 22f2e255e7e21f977e6b262acf439803626a506c | [
"MIT"
] | 6 | 2021-02-08T10:42:53.000Z | 2021-04-25T12:12:03.000Z | lib/teiserver.ex | icexuick/teiserver | 22f2e255e7e21f977e6b262acf439803626a506c | [
"MIT"
] | null | null | null | lib/teiserver.ex | icexuick/teiserver | 22f2e255e7e21f977e6b262acf439803626a506c | [
"MIT"
] | 2 | 2021-02-23T22:34:00.000Z | 2021-04-08T13:31:36.000Z | defmodule Teiserver do
@moduledoc false
# def icon(), do: "fad fa-robot"
def icon(), do: "fad fa-server"
@spec icon(:friend | :friend_request | :ignore | :relationship) :: String.t()
def icon(:relationship), do: "fas fa-users"
def icon(:friend), do: "fas fa-user-friends"
def icon(:friend_request), do: "f... | 34 | 100 | 0.701826 |
7a08369cda2f85a05c2aeddef1ac0f691f138d7b | 1,042 | exs | Elixir | test/frettchen/reporter/logging_test.exs | konstantinzolotarev/frettchen | 4aced1fb3d1571893ae09c18a31b05352c80cd9e | [
"MIT"
] | 3 | 2018-10-27T18:18:14.000Z | 2020-11-27T11:47:41.000Z | test/frettchen/reporter/logging_test.exs | konstantinzolotarev/frettchen | 4aced1fb3d1571893ae09c18a31b05352c80cd9e | [
"MIT"
] | null | null | null | test/frettchen/reporter/logging_test.exs | konstantinzolotarev/frettchen | 4aced1fb3d1571893ae09c18a31b05352c80cd9e | [
"MIT"
] | 3 | 2019-01-07T12:32:44.000Z | 2021-09-05T07:24:09.000Z | defmodule Frettchen.Reporter.LoggingTest do
use ExUnit.Case, async: true
alias Frettchen.Trace
alias Frettchen.Reporter.Logging
setup do
pid = Process.whereis(Logging)
{:ok, %{pid: pid}}
end
describe "start_link()" do
test "starts a process", %{pid: pid} do
assert is_pid(pid)
end
... | 29.771429 | 101 | 0.653551 |
7a083c23a1ccd9471968426c1676c9d6e6738220 | 21,135 | ex | Elixir | lib/scenic/cache.ex | sbe-arg/scenic | 96e066c05b88fc15974a2e95a8a5613ef8dfee22 | [
"Apache-2.0"
] | null | null | null | lib/scenic/cache.ex | sbe-arg/scenic | 96e066c05b88fc15974a2e95a8a5613ef8dfee22 | [
"Apache-2.0"
] | null | null | null | lib/scenic/cache.ex | sbe-arg/scenic | 96e066c05b88fc15974a2e95a8a5613ef8dfee22 | [
"Apache-2.0"
] | null | null | null | #
# Created by Boyd Multerer on 2017-11-12.
# Copyright © 2017 Kry10 Industries. All rights reserved.
#
defmodule Scenic.Cache do
@moduledoc """
In memory cache for larger assets.
Static assets such as fonts, images and more tend to be relatively large compared to
other data. These assets are often used acro... | 33.178964 | 100 | 0.624509 |
7a084a15c95c7253b00616b7a3974a320ef71fd9 | 721 | ex | Elixir | test/support/test_helper.ex | leandroslc/rocketpay | 92e807998ca48e842a30f10be681481271905691 | [
"MIT"
] | null | null | null | test/support/test_helper.ex | leandroslc/rocketpay | 92e807998ca48e842a30f10be681481271905691 | [
"MIT"
] | null | null | null | test/support/test_helper.ex | leandroslc/rocketpay | 92e807998ca48e842a30f10be681481271905691 | [
"MIT"
] | null | null | null | defmodule RocketpayWeb.TestHelper do
alias Rocketpay.UserManager.Manager, as: UserManager
alias Rocketpay.UserManager.Guardian
def create_user(name, nickname) do
params = %{
name: name,
age: 20,
email: "#{nickname}@example.com",
password: "Pass$123",
nickname: nickname
}
... | 23.258065 | 67 | 0.660194 |
7a085574efbfbd574560692efe5b61479f71a83f | 120 | exs | Elixir | test/my_project_test.exs | mendrugory/elixir_and_otp_apps_presentation_1 | 044de23ccaf90dc69a17cecdb280c52a8b8b0c1e | [
"MIT"
] | 6 | 2017-01-11T07:51:26.000Z | 2018-01-12T09:49:44.000Z | test/my_project_test.exs | mendrugory/elixir_and_otp_apps_presentation_1 | 044de23ccaf90dc69a17cecdb280c52a8b8b0c1e | [
"MIT"
] | null | null | null | test/my_project_test.exs | mendrugory/elixir_and_otp_apps_presentation_1 | 044de23ccaf90dc69a17cecdb280c52a8b8b0c1e | [
"MIT"
] | null | null | null | defmodule MyProjectTest do
use ExUnit.Case
doctest MyProject
test "the truth" do
assert 1 + 1 == 2
end
end
| 13.333333 | 26 | 0.683333 |
7a0859e8b419a909f7b5e077a9ddf4f0f16f4a5a | 1,053 | ex | Elixir | lib/porterage/tester/file_stat.ex | mneudert/porterage | a49857a6e7b39e182c49b8f06275e83685b87b67 | [
"Apache-2.0"
] | 1 | 2020-01-13T23:59:51.000Z | 2020-01-13T23:59:51.000Z | lib/porterage/tester/file_stat.ex | mneudert/porterage | a49857a6e7b39e182c49b8f06275e83685b87b67 | [
"Apache-2.0"
] | null | null | null | lib/porterage/tester/file_stat.ex | mneudert/porterage | a49857a6e7b39e182c49b8f06275e83685b87b67 | [
"Apache-2.0"
] | null | null | null | defmodule Porterage.Tester.FileStat do
@moduledoc """
Tester based on results of `File.stat/1` calls.
## Configuration
{
tester: Porterage.Tester.FileStat,
tester_opts: %{file: _, stat_key: _}
}
See `t:options/0` for a specification of available options.
"""
@type options :: ... | 21.489796 | 86 | 0.590693 |
7a085a6f4731f0b39e4b72af30c495c5ad4fc4d4 | 2,130 | ex | Elixir | lib/mysimplelist_web/router.ex | ScorpionResponse/mysimplelist | 3c792373cc372ab5e196fe109b9dae68b97b7220 | [
"Apache-2.0"
] | null | null | null | lib/mysimplelist_web/router.ex | ScorpionResponse/mysimplelist | 3c792373cc372ab5e196fe109b9dae68b97b7220 | [
"Apache-2.0"
] | null | null | null | lib/mysimplelist_web/router.ex | ScorpionResponse/mysimplelist | 3c792373cc372ab5e196fe109b9dae68b97b7220 | [
"Apache-2.0"
] | null | null | null | defmodule MysimplelistWeb.Router do
use MysimplelistWeb, :router
alias MysimplelistWeb.Plug.SetCurrentUser
pipeline :auth do
# plug(:fetch_session)
plug(SetCurrentUser)
end
pipeline :browser do
plug(:accepts, ["html"])
plug(:fetch_session)
plug(:fetch_live_flash)
plug(:put_root_layou... | 28.4 | 70 | 0.676526 |
7a085d8e61d18964e4c9213bf9aa9bd768c708c1 | 1,539 | ex | Elixir | lib/rethinkdb/model.ex | Gimi/coders | 28e20558ac26709c62b8463dae963e4e41a759b2 | [
"MIT"
] | null | null | null | lib/rethinkdb/model.ex | Gimi/coders | 28e20558ac26709c62b8463dae963e4e41a759b2 | [
"MIT"
] | null | null | null | lib/rethinkdb/model.ex | Gimi/coders | 28e20558ac26709c62b8463dae963e4e41a759b2 | [
"MIT"
] | null | null | null | defmodule RethinkDB.Model do
@moduledoc """
Provides convenience functions for defining and working with models.
## Using
When used, you can define `@required_fields` and `@optional_fields`
attributes in your model, to specify which fields are required, and
which are optional. Which is useful to generat... | 29.037736 | 86 | 0.660819 |
7a08aae36115598cb7d77334da294dc30d89bc12 | 8,076 | ex | Elixir | test/elixir/lib/couch/db_test.ex | aogier/couchdb | 0c7111c49932e742981145b88389f7bdcfda5ee6 | [
"Apache-2.0"
] | 1 | 2019-03-17T03:56:29.000Z | 2019-03-17T03:56:29.000Z | test/elixir/lib/couch/db_test.ex | aogier/couchdb | 0c7111c49932e742981145b88389f7bdcfda5ee6 | [
"Apache-2.0"
] | null | null | null | test/elixir/lib/couch/db_test.ex | aogier/couchdb | 0c7111c49932e742981145b88389f7bdcfda5ee6 | [
"Apache-2.0"
] | null | null | null | defmodule Couch.DBTest do
@moduledoc false
import ExUnit.Callbacks, only: [on_exit: 1]
import ExUnit.Assertions, only: [assert: 1, assert: 2]
def set_db_context(context) do
context =
case context do
%{:with_db_name => true} ->
Map.put(context, :db_name, random_db_name())
%... | 26.565789 | 82 | 0.591506 |
7a08de81d04c2b3332d9d2b81a6420be6269d97b | 110,833 | ex | Elixir | clients/datastream/lib/google_api/datastream/v1/api/projects.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/datastream/lib/google_api/datastream/v1/api/projects.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/datastream/lib/google_api/datastream/v1/api/projects.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"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... | 47.938149 | 790 | 0.622233 |
7a08e4fee0fdea492b531e56f5cc6523b3e43af4 | 1,251 | exs | Elixir | config/prod.secret.exs | emeric-martineau/ambrosia | 74c55d35cf66537d7c8a33ef6057e89d44abd347 | [
"MIT"
] | 2 | 2020-05-25T05:28:31.000Z | 2020-05-25T08:10:43.000Z | config/prod.secret.exs | emeric-martineau/ambrosia | 74c55d35cf66537d7c8a33ef6057e89d44abd347 | [
"MIT"
] | 9 | 2020-05-25T16:39:15.000Z | 2020-11-11T16:51:37.000Z | config/prod.secret.exs | emeric-martineau/ambrosia | 74c55d35cf66537d7c8a33ef6057e89d44abd347 | [
"MIT"
] | null | null | null | # In this file, we load production configuration and secrets
# from environment variables. You can also hardcode secrets,
# although such is generally not recommended and you have to
# remember to add this file to your .gitignore.
use Mix.Config
database_url =
System.get_env("DATABASE_URL") ||
raise """
envi... | 29.785714 | 67 | 0.720224 |
7a0962d1479d15cf45da9a4962de5a0ac6a525ee | 1,333 | ex | Elixir | lib/legends_web/endpoint.ex | DeathstarNovember/legends | 8354f83942f0275f484e66d883413f308c013793 | [
"Unlicense"
] | null | null | null | lib/legends_web/endpoint.ex | DeathstarNovember/legends | 8354f83942f0275f484e66d883413f308c013793 | [
"Unlicense"
] | 6 | 2019-11-20T19:31:23.000Z | 2021-09-02T02:34:05.000Z | lib/legends_web/endpoint.ex | DeathstarNovember/legends | 8354f83942f0275f484e66d883413f308c013793 | [
"Unlicense"
] | null | null | null | defmodule LegendsWeb.Endpoint do
use Phoenix.Endpoint, otp_app: :legends
use Absinthe.Phoenix.Endpoint
socket "/socket", LegendsWeb.AbsintheSocket,
websocket: true,
longpoll: false
# Serve at "/" the static files from "priv/static" directory.
#
# You should set gzip to true if you are running phx.... | 27.770833 | 69 | 0.708177 |
7a096edc9f97c6cfe0333cca0f6114b531fa40bf | 69 | ex | Elixir | lib/example_app_web/views/layout_view.ex | elixirasturias/example-app | d68d3c141446cf81a9181198b22d51a41b26ce71 | [
"MIT"
] | 3 | 2018-05-31T13:06:48.000Z | 2020-01-14T03:29:30.000Z | lib/example_app_web/views/layout_view.ex | elixirasturias/example-app | d68d3c141446cf81a9181198b22d51a41b26ce71 | [
"MIT"
] | null | null | null | lib/example_app_web/views/layout_view.ex | elixirasturias/example-app | d68d3c141446cf81a9181198b22d51a41b26ce71 | [
"MIT"
] | null | null | null | defmodule ExampleAppWeb.LayoutView do
use ExampleAppWeb, :view
end
| 17.25 | 37 | 0.826087 |
7a097a53937ab92471dcfa1b4bd2429d64347af7 | 443 | ex | Elixir | lib/sift/events/types/image.ex | msramos/sift | 28c09763ae0a3509c815df0c2e3c88ce671b1055 | [
"MIT"
] | null | null | null | lib/sift/events/types/image.ex | msramos/sift | 28c09763ae0a3509c815df0c2e3c88ce671b1055 | [
"MIT"
] | null | null | null | lib/sift/events/types/image.ex | msramos/sift | 28c09763ae0a3509c815df0c2e3c88ce671b1055 | [
"MIT"
] | null | null | null | defmodule Sift.Events.Types.Image do
alias Sift.Schema
alias Sift.Schema.{Field, Type}
@behaviour Type
@impl Type
def type_alias, do: :image
@fields %{
md5_hash: %Field{key: "$md5_hash"},
link: %Field{key: "$link"},
description: %Field{key: "$description"}
}
@impl Type
def parse(%{} = ... | 19.26087 | 57 | 0.641084 |
7a098a8683cb9769c423bcc5a358654ba31fe2b5 | 519 | ex | Elixir | web/router.ex | cesarreyesa/timeline | fb7b7bdfc64a28420d690999dd3777ba3838afbb | [
"Apache-2.0"
] | null | null | null | web/router.ex | cesarreyesa/timeline | fb7b7bdfc64a28420d690999dd3777ba3838afbb | [
"Apache-2.0"
] | null | null | null | web/router.ex | cesarreyesa/timeline | fb7b7bdfc64a28420d690999dd3777ba3838afbb | [
"Apache-2.0"
] | null | null | null | defmodule Timeline.Router do
use Timeline.Web, :router
pipeline :browser do
plug :accepts, ["html"]
plug :fetch_session
plug :fetch_flash
plug :protect_from_forgery
end
pipeline :api do
plug :accepts, ["json"]
end
scope "/", Timeline do
pipe_through :browser # Use the default brow... | 19.222222 | 57 | 0.668593 |
7a0994ef78e967f4612fc9c23c0e3f22dc91a8ca | 1,313 | ex | Elixir | apps/api/web/web.ex | evansb/conifer | 926b9a60c15711877e5869459b837c825edbe693 | [
"MIT"
] | null | null | null | apps/api/web/web.ex | evansb/conifer | 926b9a60c15711877e5869459b837c825edbe693 | [
"MIT"
] | null | null | null | apps/api/web/web.ex | evansb/conifer | 926b9a60c15711877e5869459b837c825edbe693 | [
"MIT"
] | null | null | null | defmodule Api.Web do
@moduledoc """
A module that keeps using definitions for controllers,
views and so on.
This can be used in your application as:
use Api.Web, :controller
use Api.Web, :view
The definitions below will be executed for every view,
controller, etc, so keep them short and clean... | 19.597015 | 88 | 0.670982 |
7a09df9d4f68b802eca2028322ad04b5a9cf798c | 6,100 | ex | Elixir | lib/example_files/ui.ex | njonsson/example_files | 0e09ed40378336e0f1223ce002470430535c385f | [
"MIT"
] | 3 | 2016-01-16T20:44:49.000Z | 2017-11-10T06:33:14.000Z | lib/example_files/ui.ex | njonsson/example_files | 0e09ed40378336e0f1223ce002470430535c385f | [
"MIT"
] | 1 | 2017-01-10T04:20:08.000Z | 2017-01-10T04:20:08.000Z | lib/example_files/ui.ex | njonsson/example_files | 0e09ed40378336e0f1223ce002470430535c385f | [
"MIT"
] | null | null | null | defmodule ExampleFiles.UI do
@moduledoc """
Provides functions for stdout/stderr output and ANSI escape-sequence
formatting.
"""
use GenServer
alias IO.ANSI
for {format, unformat} <- [blue: :default_color,
green: :default_color,
red: ... | 35.057471 | 97 | 0.596885 |
7a0a0ca21e7db33a07e7a0ebd5478c4468ac87f4 | 1,168 | exs | Elixir | mix.exs | sampscl/external_state | 4a2b7950d7902d95cf2448932ed5d76a72bd3f90 | [
"MIT"
] | 2 | 2019-04-30T21:07:51.000Z | 2019-05-19T09:46:29.000Z | mix.exs | sampscl/external_state | 4a2b7950d7902d95cf2448932ed5d76a72bd3f90 | [
"MIT"
] | 1 | 2019-09-18T14:53:32.000Z | 2019-09-18T14:53:32.000Z | mix.exs | sampscl/external_state | 4a2b7950d7902d95cf2448932ed5d76a72bd3f90 | [
"MIT"
] | null | null | null | defmodule ExternalState.MixProject do
use Mix.Project
def project do
[
app: :external_state,
version: "1.0.6",
elixir: "~> 1.6",
start_permanent: Mix.env() == :prod,
deps: deps(),
description: description(),
package: package(),
source_url: "https://github.com/sam... | 23.36 | 78 | 0.596747 |
7a0a202895d40d3eba5da88ff10c02be38dd1f5b | 1,986 | exs | Elixir | test/game_rules_test.exs | lottetreg/minesweeper | 72f85eb86b792346263ab4997a83c88873e0a04b | [
"MIT"
] | null | null | null | test/game_rules_test.exs | lottetreg/minesweeper | 72f85eb86b792346263ab4997a83c88873e0a04b | [
"MIT"
] | 8 | 2019-05-20T20:53:46.000Z | 2019-06-27T13:50:24.000Z | test/game_rules_test.exs | lottetreg/minesweeper | 72f85eb86b792346263ab4997a83c88873e0a04b | [
"MIT"
] | null | null | null | defmodule GameRulesTest do
use ExUnit.Case
import Mox
setup :verify_on_exit!
test "the player has lost if a bomb has been revealed" do
first_tile = {0, 0}
board_with_bomb_revealed =
Board.new().board
|> Board.replace_tile(first_tile, Tile.new(:bomb))
|> Board.reveal_tile(first_tile... | 26.48 | 113 | 0.685801 |
7a0a25934b44b01b63f2c89686e3f61d640bee5a | 1,258 | ex | Elixir | lib/crius_chat_web/channels/user_socket.ex | AmadorZcv/crius_chat | 2ed002414f207536a0d2ab6e53e7d99da9fa920d | [
"MIT"
] | null | null | null | lib/crius_chat_web/channels/user_socket.ex | AmadorZcv/crius_chat | 2ed002414f207536a0d2ab6e53e7d99da9fa920d | [
"MIT"
] | 3 | 2021-03-09T17:37:23.000Z | 2021-09-01T22:28:38.000Z | lib/crius_chat_web/channels/user_socket.ex | AmadorZcv/crius_chat | 2ed002414f207536a0d2ab6e53e7d99da9fa920d | [
"MIT"
] | null | null | null | defmodule CriusChatWeb.UserSocket do
use Phoenix.Socket
## Channels
# channel "room:*", CriusChatWeb.RoomChannel
channel "lobby:*", CriusChatWeb.LobbyChannel
channel "user:*", CriusChatWeb.UserChannel
channel "private_chat:*", CriusChatWeb.PrivateChatChannel
# Socket params are passed from the client and... | 34.944444 | 84 | 0.709062 |
7a0a46034daac9cff084c26ffe9dffe0ec6bf863 | 8,995 | ex | Elixir | lib/plug/debugger.ex | geemus/plug | 5b6a47754017c641fe9c7027365baa8d5a336c2d | [
"Apache-2.0"
] | null | null | null | lib/plug/debugger.ex | geemus/plug | 5b6a47754017c641fe9c7027365baa8d5a336c2d | [
"Apache-2.0"
] | null | null | null | lib/plug/debugger.ex | geemus/plug | 5b6a47754017c641fe9c7027365baa8d5a336c2d | [
"Apache-2.0"
] | null | null | null | # The debug is based on Better Errors, under MIT LICENSE.
#
# Copyright (c) 2012 Charlie Somerville
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without ... | 28.286164 | 88 | 0.64269 |
7a0a4a7cab774e56ea3e39959ee8797181eb881c | 1,234 | ex | Elixir | test/support/conn_case.ex | epsilveira/etdpay | 8460bd6bf128ae93d04895494220bff121778f2f | [
"MIT"
] | null | null | null | test/support/conn_case.ex | epsilveira/etdpay | 8460bd6bf128ae93d04895494220bff121778f2f | [
"MIT"
] | null | null | null | test/support/conn_case.ex | epsilveira/etdpay | 8460bd6bf128ae93d04895494220bff121778f2f | [
"MIT"
] | null | null | null | defmodule EtdpayWeb.ConnCase do
@moduledoc """
This module defines the test case to be used by
tests that require setting up a connection.
Such tests rely on `Phoenix.ConnTest` and also
import other functionality to make it easier
to build common data structures and query the data layer.
Finally, if the... | 28.045455 | 68 | 0.722853 |
7a0a52c4691cf5370b75661ed9edda4c9c59aa02 | 9,393 | ex | Elixir | lib/ex_admin/table.ex | IvanIvanoff/ex_admin | 550f748c3b8e18f02ea86b63c67e4e674b2edb41 | [
"MIT"
] | 1 | 2020-08-07T19:51:47.000Z | 2020-08-07T19:51:47.000Z | lib/ex_admin/table.ex | IvanIvanoff/ex_admin | 550f748c3b8e18f02ea86b63c67e4e674b2edb41 | [
"MIT"
] | null | null | null | lib/ex_admin/table.ex | IvanIvanoff/ex_admin | 550f748c3b8e18f02ea86b63c67e4e674b2edb41 | [
"MIT"
] | 1 | 2019-11-24T12:39:38.000Z | 2019-11-24T12:39:38.000Z | Code.ensure_compiled(ExAdmin.Utils)
defmodule ExAdmin.Table do
@moduledoc false
use Xain
import ExAdmin.Helpers
import ExAdmin.Utils
import ExAdmin.Render
import ExAdmin.Theme.Helpers
import Kernel, except: [to_string: 1]
alias ExAdmin.Schema
require Integer
def attributes_table(conn, resource, ... | 26.609065 | 98 | 0.560843 |
7a0a52d61ffede05de63b76c195526b020a072a5 | 2,237 | ex | Elixir | lib/mix/lib/mix/tasks/compile.ex | patrickgombert/elixir | dc4b7c89ea30a9734d9f1cbf3bb1612fada498d4 | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/tasks/compile.ex | patrickgombert/elixir | dc4b7c89ea30a9734d9f1cbf3bb1612fada498d4 | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/tasks/compile.ex | patrickgombert/elixir | dc4b7c89ea30a9734d9f1cbf3bb1612fada498d4 | [
"Apache-2.0"
] | 1 | 2020-12-07T08:04:16.000Z | 2020-12-07T08:04:16.000Z | defmodule Mix.Tasks.Compile do
use Mix.Task
@shortdoc "Compile source files"
@recursive true
@moduledoc """
A meta task that compiles source files.
It simply runs the compilers registered in your project. At
the end of compilation it ensures load paths are set.
## Configuration
* `:compilers` -... | 24.053763 | 80 | 0.599911 |
7a0a570c04b8ac320480a207ff862caeb6b4e83f | 816 | exs | Elixir | test/superwatch/svc/watcher_test.exs | andyl/superwatch | 9a9dfc1fedb743279e2aaa259809e040fa29f00b | [
"MIT"
] | null | null | null | test/superwatch/svc/watcher_test.exs | andyl/superwatch | 9a9dfc1fedb743279e2aaa259809e040fa29f00b | [
"MIT"
] | null | null | null | test/superwatch/svc/watcher_test.exs | andyl/superwatch | 9a9dfc1fedb743279e2aaa259809e040fa29f00b | [
"MIT"
] | null | null | null | defmodule Superwatch.Svc.WatcherTest do
use ExUnit.Case
alias Superwatch.Svc.Watcher
describe "GenServer init" do
test "with start_supervised" do
assert {:ok, _pid} = start_supervised({Watcher, []})
end
test "with start_supervised!" do
assert _pid = start_supervised!({Watcher, []})
... | 23.314286 | 58 | 0.66299 |
7a0a7c187051cbadaf0bde4357bc1039635e334f | 441 | exs | Elixir | test/elixir_console_web/views/error_view_test.exs | wyeworks/elixir_console | f72147224131cb43ebea4a5929030928cdf155d0 | [
"MIT"
] | 60 | 2019-11-23T15:54:24.000Z | 2022-03-24T15:56:32.000Z | test/elixir_console_web/views/error_view_test.exs | wyeworks/elixir_console | f72147224131cb43ebea4a5929030928cdf155d0 | [
"MIT"
] | 62 | 2019-11-11T00:44:38.000Z | 2022-01-10T13:12:48.000Z | test/elixir_console_web/views/error_view_test.exs | wyeworks/elixir_console | f72147224131cb43ebea4a5929030928cdf155d0 | [
"MIT"
] | 5 | 2020-01-15T00:44:30.000Z | 2021-05-25T05:06:27.000Z | defmodule ElixirConsoleWeb.ErrorViewTest do
use ElixirConsoleWeb.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(ElixirConsoleWeb.ErrorView, "404.html", []) == "Not Found"
end
test "renders 5... | 29.4 | 98 | 0.748299 |
7a0a7ca2a09becf0d14cd9735f94e789c2413bb8 | 2,673 | ex | Elixir | apps/site/lib/site_web/plugs/cookies.ex | noisecapella/dotcom | d5ef869412102d2230fac3dcc216f01a29726227 | [
"MIT"
] | 42 | 2019-05-29T16:05:30.000Z | 2021-08-09T16:03:37.000Z | apps/site/lib/site_web/plugs/cookies.ex | noisecapella/dotcom | d5ef869412102d2230fac3dcc216f01a29726227 | [
"MIT"
] | 872 | 2019-05-29T17:55:50.000Z | 2022-03-30T09:28:43.000Z | apps/site/lib/site_web/plugs/cookies.ex | noisecapella/dotcom | d5ef869412102d2230fac3dcc216f01a29726227 | [
"MIT"
] | 12 | 2019-07-01T18:33:21.000Z | 2022-03-10T02:13:57.000Z | defmodule SiteWeb.Plugs.Cookies do
@moduledoc """
A module Plug that creates a cookie with a unique ID if this cookie does not already exist.
"""
alias Plug.Conn
@behaviour Plug
@id_cookie_name "mbta_id"
@route_cookie_name "mbta_visited_routes"
@ie_warning_cookie_name "show_ie_warning"
@id_cookie_o... | 25.216981 | 99 | 0.664796 |
7a0a92d53f335bcc1e2235df59431b767e590e49 | 657 | ex | Elixir | lib/samly/auth_router.ex | mjcloutier/samly | b93561032804f09dfe491483de925104d679d113 | [
"MIT"
] | null | null | null | lib/samly/auth_router.ex | mjcloutier/samly | b93561032804f09dfe491483de925104d679d113 | [
"MIT"
] | null | null | null | lib/samly/auth_router.ex | mjcloutier/samly | b93561032804f09dfe491483de925104d679d113 | [
"MIT"
] | null | null | null | defmodule Samly.AuthRouter do
@moduledoc false
use Plug.Router
import Plug.Conn
import Samly.RouterUtil, only: [check_idp_id: 2]
plug :fetch_session
# plug Plug.CSRFProtection
plug :match
plug :check_idp_id
plug :dispatch
get "/signin/*idp_id_seg" do
conn |> Samly.AuthHandler.initiate_sso_req... | 19.323529 | 50 | 0.704718 |
7a0ad1495b8aa914e5bf896cfb2e2f22bc2c5a9e | 2,824 | exs | Elixir | zipper/test/zipper_test.exs | koladilip/elixir-examples | 49553fe39bbff6e35d1cb2c26fcb6d87fe4e28d3 | [
"MIT"
] | null | null | null | zipper/test/zipper_test.exs | koladilip/elixir-examples | 49553fe39bbff6e35d1cb2c26fcb6d87fe4e28d3 | [
"MIT"
] | null | null | null | zipper/test/zipper_test.exs | koladilip/elixir-examples | 49553fe39bbff6e35d1cb2c26fcb6d87fe4e28d3 | [
"MIT"
] | null | null | null | defmodule ZipperTest do
alias BinTree, as: BT
import Zipper
use ExUnit.Case
defp bt(value, left, right), do: %BT{value: value, left: left, right: right}
defp leaf(value), do: %BT{value: value}
defp t1, do: bt(1, bt(2, nil, leaf(3)), leaf(4))
defp t2, do: bt(1, bt(5, nil, leaf(3)), leaf(4))
defp t3, do... | 30.365591 | 96 | 0.564093 |
7a0b0371b4843251fa00b8f64d152ad7bc59b690 | 3,066 | ex | Elixir | clients/script/lib/google_api/script/v1/connection.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/script/lib/google_api/script/v1/connection.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/script/lib/google_api/script/v1/connection.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... | 36.5 | 103 | 0.704827 |
7a0b073acd66b15a60985bb06b24a7416fd3a171 | 631 | exs | Elixir | mix.exs | giraphme/ex_magick | 0883e835d05987bc5118c4c0f8904a155cbf9ca0 | [
"MIT"
] | null | null | null | mix.exs | giraphme/ex_magick | 0883e835d05987bc5118c4c0f8904a155cbf9ca0 | [
"MIT"
] | 4 | 2018-02-06T09:30:26.000Z | 2018-02-06T09:40:17.000Z | mix.exs | giraphme/ex_magick | 0883e835d05987bc5118c4c0f8904a155cbf9ca0 | [
"MIT"
] | null | null | null | defmodule ExMagick.MixProject do
use Mix.Project
def project do
[
app: :ex_magick,
version: "0.2.3",
elixir: "~> 1.5",
start_permanent: Mix.env() == :prod,
description: "Simply ImageMagick wrapper for Elixir",
package: [
maintainers: ["Tamaki Maeda"],
license... | 18.558824 | 61 | 0.527734 |
7a0b1364ee2a108564f32dd951ccabc2debfbcc5 | 1,473 | exs | Elixir | kousa/test/broth/_casts/follow_test.exs | AhmetEsad/dogehouse | ba8c757bc0419ac07bd9bf062c67a39ab74cdfa6 | [
"MIT"
] | 1 | 2021-04-22T08:37:55.000Z | 2021-04-22T08:37:55.000Z | kousa/test/broth/_casts/follow_test.exs | mateuszklysz/dogehouse | ba8c757bc0419ac07bd9bf062c67a39ab74cdfa6 | [
"MIT"
] | null | null | null | kousa/test/broth/_casts/follow_test.exs | mateuszklysz/dogehouse | ba8c757bc0419ac07bd9bf062c67a39ab74cdfa6 | [
"MIT"
] | null | null | null | defmodule BrothTest.FollowTest do
use ExUnit.Case, async: true
use KousaTest.Support.EctoSandbox
alias Beef.Schemas.User
alias BrothTest.WsClient
alias BrothTest.WsClientFactory
alias KousaTest.Support.Factory
require WsClient
setup do
user = Factory.create(User)
client_ws = WsClientFactory.c... | 24.147541 | 71 | 0.656483 |
7a0b215e2dc7765bcb21a45cab02e03c80fd2929 | 893 | ex | Elixir | lib/firebasecerts.ex | rsolovjov/jwt-google-tokens | ad9d233824db7d21617ba7025a477a57ea8ba420 | [
"Apache-2.0"
] | null | null | null | lib/firebasecerts.ex | rsolovjov/jwt-google-tokens | ad9d233824db7d21617ba7025a477a57ea8ba420 | [
"Apache-2.0"
] | null | null | null | lib/firebasecerts.ex | rsolovjov/jwt-google-tokens | ad9d233824db7d21617ba7025a477a57ea8ba420 | [
"Apache-2.0"
] | null | null | null | defmodule Jwt.FirebaseCerts.PublicKey do
@httpclient Jwt.HttpCacheClient
@certs_url "https://www.googleapis.com/robot/v1/metadata/x509/securetoken@system.gserviceaccount.com"
def getfor(id), do: fetch id
defp fetch(id) do
@httpclient.get!(@certs_url)
|> get_response_body
|> extract_public... | 30.793103 | 105 | 0.708847 |
7a0b36e7610fda9a7c1299ac20f8321b2ee40a46 | 212 | exs | Elixir | test/queuerbackend_web/controllers/page_controller_test.exs | ayushpandey8439/QueuerBackend | 36195b98e02ee8af2b8ba95b9a73547887efb9ce | [
"MIT"
] | null | null | null | test/queuerbackend_web/controllers/page_controller_test.exs | ayushpandey8439/QueuerBackend | 36195b98e02ee8af2b8ba95b9a73547887efb9ce | [
"MIT"
] | null | null | null | test/queuerbackend_web/controllers/page_controller_test.exs | ayushpandey8439/QueuerBackend | 36195b98e02ee8af2b8ba95b9a73547887efb9ce | [
"MIT"
] | null | null | null | defmodule QueuerbackendWeb.PageControllerTest do
use QueuerbackendWeb.ConnCase
test "GET /", %{conn: conn} do
conn = get(conn, "/")
assert html_response(conn, 200) =~ "Welcome to Phoenix!"
end
end
| 23.555556 | 60 | 0.698113 |
7a0b553e5b3c4680139e5ff5c674f8b9fb319cb8 | 2,137 | exs | Elixir | mix.exs | syamilmj/gcs_signed_url | fee763be7167e1810ba5453eeed7cfcf059e9685 | [
"MIT"
] | null | null | null | mix.exs | syamilmj/gcs_signed_url | fee763be7167e1810ba5453eeed7cfcf059e9685 | [
"MIT"
] | null | null | null | mix.exs | syamilmj/gcs_signed_url | fee763be7167e1810ba5453eeed7cfcf059e9685 | [
"MIT"
] | null | null | null | defmodule GcsSignedUrl.MixProject do
use Mix.Project
@source_url "https://github.com/alexandrubagu/gcs_signed_url"
@version "0.4.1"
def project do
[
app: :gcs_signed_url,
version: @version,
elixir: "~> 1.8",
elixirc_paths: elixirc_paths(Mix.env()),
package: package(),
p... | 24.848837 | 75 | 0.565746 |
7a0b882606c698675e9e31d8d6551f00b12acb79 | 1,250 | ex | Elixir | lib/console_web/views/v1/device_view.ex | helium/console | c6912b521926455ee0d4172dbd8e8183bdbae186 | [
"Apache-2.0"
] | 83 | 2018-05-31T14:49:10.000Z | 2022-03-27T16:49:49.000Z | lib/console_web/views/v1/device_view.ex | helium/console | c6912b521926455ee0d4172dbd8e8183bdbae186 | [
"Apache-2.0"
] | 267 | 2018-05-22T23:19:02.000Z | 2022-03-31T04:31:06.000Z | lib/console_web/views/v1/device_view.ex | helium/console | c6912b521926455ee0d4172dbd8e8183bdbae186 | [
"Apache-2.0"
] | 18 | 2018-11-20T05:15:54.000Z | 2022-03-28T08:20:13.000Z | defmodule ConsoleWeb.V1.DeviceView do
use ConsoleWeb, :view
alias ConsoleWeb.V1.DeviceView
alias ConsoleWeb.V1.LabelView
alias ConsoleWeb.V1.EventView
def render("index.json", %{devices: devices}) do
render_many(devices, DeviceView, "device.json")
end
def render("show.json", %{device: device}) do
... | 27.777778 | 60 | 0.6984 |
7a0b9c628e59c04245c4f016ab05f5beac31fd60 | 540 | ex | Elixir | lib/mastani_server/statistics/delegates/geo.ex | DavidAlphaFox/coderplanets_server | 3fd47bf3bba6cc04c9a34698201a60ad2f3e8254 | [
"Apache-2.0"
] | 1 | 2019-05-07T15:03:54.000Z | 2019-05-07T15:03:54.000Z | lib/mastani_server/statistics/delegates/geo.ex | DavidAlphaFox/coderplanets_server | 3fd47bf3bba6cc04c9a34698201a60ad2f3e8254 | [
"Apache-2.0"
] | null | null | null | lib/mastani_server/statistics/delegates/geo.ex | DavidAlphaFox/coderplanets_server | 3fd47bf3bba6cc04c9a34698201a60ad2f3e8254 | [
"Apache-2.0"
] | null | null | null | defmodule MastaniServer.Statistics.Delegate.Geo do
@moduledoc """
geo info settings
"""
import Ecto.Query, warn: false
import Helper.Utils
import ShortMaps
alias Helper.ORM
alias MastaniServer.Statistics.UserGeoInfo
def inc_count(city) do
with {:ok, geo_info} <- UserGeoInfo |> ORM.find_by(~m(cit... | 21.6 | 68 | 0.666667 |
7a0bb31230433e20fbb4fc0ce299636232bafc57 | 1,921 | exs | Elixir | test/chex/parser/pgn_test.exs | sprql/chex | f2c82e6b8db0377ed283597bdd6b7c33d6601099 | [
"MIT"
] | 10 | 2020-01-11T19:53:11.000Z | 2021-06-07T14:41:24.000Z | test/chex/parser/pgn_test.exs | sprql/chex | f2c82e6b8db0377ed283597bdd6b7c33d6601099 | [
"MIT"
] | 45 | 2019-10-23T01:10:32.000Z | 2022-03-23T17:34:22.000Z | test/chex/parser/pgn_test.exs | sprql/chex | f2c82e6b8db0377ed283597bdd6b7c33d6601099 | [
"MIT"
] | 5 | 2019-10-16T23:45:16.000Z | 2022-02-06T16:00:58.000Z | defmodule Chex.Parser.PGNTest do
use ExUnit.Case, async: true
doctest Chex.Parser.PGN
alias Chex.Parser.PGN
setup_all do
{:ok, game} =
"./test/chex/parser/pgn_data/anderssen_kieseritzky_1851.pgn"
|> Path.expand()
|> File.read!()
|> PGN.parse()
[game: game]
end
describe "p... | 24.948052 | 76 | 0.612702 |
7a0bc3cbe8a1256a31ef191506f5e777f3624564 | 423 | ex | Elixir | lib/pummpcomm/history/change_sensor_setup_2.ex | infinity-aps/pummpcomm | 7380585ecd110ab1c19d2aea3880e51e3f433050 | [
"MIT"
] | 15 | 2017-08-31T00:58:47.000Z | 2020-01-12T03:53:13.000Z | lib/pummpcomm/history/change_sensor_setup_2.ex | vladhj38/pummpcomm | 7380585ecd110ab1c19d2aea3880e51e3f433050 | [
"MIT"
] | 1 | 2017-09-15T02:09:31.000Z | 2017-09-15T02:09:31.000Z | lib/pummpcomm/history/change_sensor_setup_2.ex | vladhj38/pummpcomm | 7380585ecd110ab1c19d2aea3880e51e3f433050 | [
"MIT"
] | 3 | 2017-09-10T17:24:59.000Z | 2019-09-10T19:41:49.000Z | defmodule Pummpcomm.History.ChangeSensorSetup2 do
@moduledoc false
@behaviour Pummpcomm.History.Decoder
# Functions
def event_type, do: :change_sensor_setup_2
## Pummpcomm.History.Decoder callbacks
@impl Pummpcomm.History.Decoder
@spec decode(binary, Pummpcomm.PumpModel.pump_options()) :: %{timestamp... | 26.4375 | 93 | 0.782506 |
7a0c37a3854d6bb318e163ccf413ced6c0584e6e | 2,831 | ex | Elixir | lib/codes/codes_n28.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_n28.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_n28.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | defmodule IcdCode.ICDCode.Codes_N28 do
alias IcdCode.ICDCode
def _N280 do
%ICDCode{full_code: "N280",
category_code: "N28",
short_code: "0",
full_name: "Ischemia and infarction of kidney",
short_name: "Ischemia and infarction of kidney",
category_name: "Ischemia ... | 29.185567 | 73 | 0.587425 |
7a0c5b02816c13600f0992797c8f63b9e12efbd6 | 49,759 | ex | Elixir | lib/elixir/lib/exception.ex | SkyllaTech/elixir | 2642226f35e23fd68e4b246e0483057716dac4ca | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/exception.ex | SkyllaTech/elixir | 2642226f35e23fd68e4b246e0483057716dac4ca | [
"Apache-2.0"
] | 1 | 2021-05-22T13:12:51.000Z | 2021-05-22T13:12:51.000Z | lib/elixir/lib/exception.ex | SkyllaTech/elixir | 2642226f35e23fd68e4b246e0483057716dac4ca | [
"Apache-2.0"
] | 1 | 2018-02-18T16:10:57.000Z | 2018-02-18T16:10:57.000Z | defmodule Exception do
@moduledoc """
Functions to format throw/catch/exit and exceptions.
Note that stacktraces in Elixir are only available inside
catch and rescue by using the `__STACKTRACE__/0` variable.
Do not rely on the particular format returned by the `format*`
functions in this module. They may ... | 29.408392 | 153 | 0.647421 |
7a0c979d15925c27f7af510a0a99c0bb727725ac | 171 | exs | Elixir | priv/repo/migrations/20210111223432_add_state_to_join_table.exs | roi-levoso/erflow | e8683fd93720703ea706af8f2317376dba3b401f | [
"MIT"
] | null | null | null | priv/repo/migrations/20210111223432_add_state_to_join_table.exs | roi-levoso/erflow | e8683fd93720703ea706af8f2317376dba3b401f | [
"MIT"
] | null | null | null | priv/repo/migrations/20210111223432_add_state_to_join_table.exs | roi-levoso/erflow | e8683fd93720703ea706af8f2317376dba3b401f | [
"MIT"
] | null | null | null | defmodule Erflow.Repo.Migrations.AddStateToJoinTable do
use Ecto.Migration
def change do
alter table(:jobs_tasks) do
add :status, :string
end
end
end
| 17.1 | 55 | 0.719298 |
7a0c9c81aa9f6f765342268fd9720097d723f192 | 452 | exs | Elixir | test/application_test.exs | draftedus/exdgraph | f6df9057e5893bbd41cf3f33cc602cfe7e2524f0 | [
"Apache-2.0"
] | 108 | 2018-02-23T15:20:09.000Z | 2021-05-26T11:48:17.000Z | test/application_test.exs | draftedus/exdgraph | f6df9057e5893bbd41cf3f33cc602cfe7e2524f0 | [
"Apache-2.0"
] | 28 | 2018-02-25T09:30:38.000Z | 2021-12-22T03:57:39.000Z | test/application_test.exs | draftedus/exdgraph | f6df9057e5893bbd41cf3f33cc602cfe7e2524f0 | [
"Apache-2.0"
] | 14 | 2018-03-01T17:19:56.000Z | 2021-03-02T16:57:58.000Z | defmodule ApplicationTest do
use ExUnit.Case
test "Make sure the application is running" do
res = Application.ensure_started(:ex_dgraph)
assert res == :ok
cnf = ExDgraph.Utils.default_config()
{state, {message, _}} = ExDgraph.Application.start(%{}, cnf)
assert state == :error
assert message... | 25.111111 | 64 | 0.672566 |
7a0ce305d22d8ada71331b2953109b066479dfb2 | 18,721 | ex | Elixir | clients/admin/lib/google_api/admin/directory_v1/api/roles.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/admin/lib/google_api/admin/directory_v1/api/roles.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/admin/lib/google_api/admin/directory_v1/api/roles.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... | 46.454094 | 196 | 0.613482 |
7a0d229e888e5bf482b5d6b983f1b2f1a44f9ac3 | 2,939 | ex | Elixir | clients/you_tube/lib/google_api/you_tube/v3/model/comment_thread_list_response.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/you_tube/lib/google_api/you_tube/v3/model/comment_thread_list_response.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/you_tube/lib/google_api/you_tube/v3/model/comment_thread_list_response.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 43.220588 | 186 | 0.70262 |
7a0d3017e0004237ed17f3dc5e2aa6dba87e6967 | 1,657 | ex | Elixir | lib/ex_double_entry/services/account.ex | CoinbitsInc/ex_double_entry | 31adbcaa0be14fb4f4a725fbb9f3ce6ab8402636 | [
"MIT"
] | null | null | null | lib/ex_double_entry/services/account.ex | CoinbitsInc/ex_double_entry | 31adbcaa0be14fb4f4a725fbb9f3ce6ab8402636 | [
"MIT"
] | null | null | null | lib/ex_double_entry/services/account.ex | CoinbitsInc/ex_double_entry | 31adbcaa0be14fb4f4a725fbb9f3ce6ab8402636 | [
"MIT"
] | null | null | null | defmodule ExDoubleEntry.Account do
@type t() :: %__MODULE__{}
@enforce_keys [:identifier, :currency]
defstruct [:id, :identifier, :scope, :currency, :balance, :positive_only?, :metadata]
alias ExDoubleEntry.{Account, AccountBalance, MoneyProxy}
def present(nil), do: nil
def present(%AccountBalance{} = p... | 25.492308 | 87 | 0.680748 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.