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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
85023079e6c44e03d5b04be7feab503b640cedc5 | 5,199 | ex | Elixir | lib/worker/batcher/bors_toml.ex | m4ta1l/bors-ng | a4d04fd740e24d03833cd46a76f0f9e5be96f818 | [
"Apache-2.0"
] | 1 | 2020-04-23T20:37:43.000Z | 2020-04-23T20:37:43.000Z | lib/worker/batcher/bors_toml.ex | m4ta1l/bors-ng | a4d04fd740e24d03833cd46a76f0f9e5be96f818 | [
"Apache-2.0"
] | 15 | 2020-12-11T03:57:12.000Z | 2022-03-27T16:46:53.000Z | lib/worker/batcher/bors_toml.ex | m4ta1l/bors-ng | a4d04fd740e24d03833cd46a76f0f9e5be96f818 | [
"Apache-2.0"
] | 1 | 2020-04-01T13:34:19.000Z | 2020-04-01T13:34:19.000Z | defmodule BorsNG.Worker.Batcher.BorsToml do
@moduledoc """
The format for `bors.toml`. It looks like this:
status = [
"continuous-integration/travis-ci/push",
"continuous-integration/appveyor/branch"]
block_labels = [ "S-do-not-merge-yet" ]
pr_status = [ "continuous-integration/... | 30.582353 | 134 | 0.532602 |
850255909a4582d60c8e35139d33d2998607e97e | 2,075 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/resource_policy_group_placement_policy.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-10-01T09:20:41.000Z | 2021-10-01T09:20:41.000Z | clients/compute/lib/google_api/compute/v1/model/resource_policy_group_placement_policy.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/compute/lib/google_api/compute/v1/model/resource_policy_group_placement_policy.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.150943 | 249 | 0.742169 |
85027482dc0e29d7312c61be93133ea91942e1f0 | 1,710 | ex | Elixir | lib/kvasir/agent_server/agents/noop_agent.ex | IanLuites/kvasir_agent_server | c64e1b05b9e19b96f01df7a8d28baa2faadfc709 | [
"MIT"
] | null | null | null | lib/kvasir/agent_server/agents/noop_agent.ex | IanLuites/kvasir_agent_server | c64e1b05b9e19b96f01df7a8d28baa2faadfc709 | [
"MIT"
] | null | null | null | lib/kvasir/agent_server/agents/noop_agent.ex | IanLuites/kvasir_agent_server | c64e1b05b9e19b96f01df7a8d28baa2faadfc709 | [
"MIT"
] | 1 | 2021-07-06T15:50:28.000Z | 2021-07-06T15:50:28.000Z | defmodule Kvasir.AgentServer.NOOPAgent.Source do
@moduledoc false
@doc false
@spec __topics__() :: map
def __topics__(),
do: %{
"noop" => %{
key: Kvasir.Key.Integer,
partitions: 100
}
}
end
defmodule Kvasir.AgentServer.NOOPAgent.Cache do
@moduledoc false
@doc false
@... | 21.64557 | 82 | 0.608772 |
85028145470c082c0e27fca6d96a206f873180d4 | 783 | exs | Elixir | test/changelog/schema/news/news_issue_test.exs | PsOverflow/changelog.com | 53f4ecfc39b021c6b8cfcc0fa11f29aff8038a7f | [
"MIT"
] | 2,599 | 2016-10-25T15:02:53.000Z | 2022-03-26T02:34:42.000Z | test/changelog/schema/news/news_issue_test.exs | type1fool/changelog.com | fbec3528cc3f5adfdc75b008bb92b17efc4f248f | [
"MIT"
] | 253 | 2016-10-25T20:29:24.000Z | 2022-03-29T21:52:36.000Z | test/changelog/schema/news/news_issue_test.exs | type1fool/changelog.com | fbec3528cc3f5adfdc75b008bb92b17efc4f248f | [
"MIT"
] | 298 | 2016-10-25T15:18:31.000Z | 2022-01-18T21:25:52.000Z | defmodule Changelog.NewsIssueTest do
use Changelog.SchemaCase
alias Changelog.NewsIssue
describe "layout/1" do
test "it is v2 when slug is integer > 267" do
issue = %NewsIssue{slug: "268"}
assert NewsIssue.layout(issue) == "v2"
end
test "it is v1 when slug is integer <= 267" do
is... | 23.727273 | 55 | 0.633461 |
85029ae0f683db7e1eb18c2b278966f064eef369 | 482 | ex | Elixir | lib/mix/lib/releases/models/environment.ex | TokiTori/distillery | 9158df6d17c8b70a201ade4ca0d3f243245ceebd | [
"MIT"
] | null | null | null | lib/mix/lib/releases/models/environment.ex | TokiTori/distillery | 9158df6d17c8b70a201ade4ca0d3f243245ceebd | [
"MIT"
] | null | null | null | lib/mix/lib/releases/models/environment.ex | TokiTori/distillery | 9158df6d17c8b70a201ade4ca0d3f243245ceebd | [
"MIT"
] | null | null | null | defmodule Mix.Releases.Environment do
@moduledoc """
Represents a unique configuration for releases built
in this environment.
"""
alias Mix.Releases.Profile
defstruct name: :default,
profile: %Profile{}
@type t :: %__MODULE__{
name: atom(),
profile: Profile.t()
}... | 20.083333 | 54 | 0.620332 |
8502aa1f46ea832a3fe9b156aa683ad999ccb673 | 1,191 | ex | Elixir | lib/parser/js/keyword.ex | desweemerl/origami_parser | 52af0913f26be51162588d94c784aa5971beaf1a | [
"MIT"
] | null | null | null | lib/parser/js/keyword.ex | desweemerl/origami_parser | 52af0913f26be51162588d94c784aa5971beaf1a | [
"MIT"
] | null | null | null | lib/parser/js/keyword.ex | desweemerl/origami_parser | 52af0913f26be51162588d94c784aa5971beaf1a | [
"MIT"
] | null | null | null | defmodule Origami.Parser.Js.Keyword do
@moduledoc false
alias Origami.Parser
alias Origami.Parser.{Buffer, Token}
@start_keywords ~w(NaN Infinity with super debugger continue try throw return var let
const if switch case default for while break function import export delete)
@other_keywords ~w(null this... | 25.340426 | 88 | 0.647355 |
8502b4cf4f7c11fa9ba27066ba40044c2cf90028 | 516 | exs | Elixir | config/test.exs | themaxhero/Machinista | 2e0114dbbc69fc8187b3ed080de694ac4f558ae8 | [
"BSD-2-Clause"
] | 1 | 2019-12-16T10:22:07.000Z | 2019-12-16T10:22:07.000Z | config/test.exs | themaxhero/Machinista | 2e0114dbbc69fc8187b3ed080de694ac4f558ae8 | [
"BSD-2-Clause"
] | 2 | 2021-03-10T06:56:47.000Z | 2021-05-11T02:41:32.000Z | config/test.exs | themaxhero/Macchinista | 2e0114dbbc69fc8187b3ed080de694ac4f558ae8 | [
"BSD-2-Clause"
] | null | null | null | use Mix.Config
# Configure your database
config :macchinista, Macchinista.Repo,
username: "postgres",
password: "postgres",
database: "macchinista_test",
hostname: "localhost",
pool: Ecto.Adapters.SQL.Sandbox
# We don't run a server during test. If one is required,
# you can enable the server option below.
... | 25.8 | 56 | 0.748062 |
8502b505127409119b85cea861430dee7f3ceade | 2,950 | ex | Elixir | elixir/codes-from-books/little-elixir/cap4/metex/deps/json/lib/json/parser/bitstring/number.ex | trxeste/wrk | 3e05e50ff621866f0361cc8494ce8f6bb4d97fae | [
"BSD-3-Clause"
] | 1 | 2021-06-16T14:06:34.000Z | 2021-06-16T14:06:34.000Z | elixir/codes-from-books/little-elixir/cap4/metex/deps/json/lib/json/parser/bitstring/number.ex | trxeste/wrk | 3e05e50ff621866f0361cc8494ce8f6bb4d97fae | [
"BSD-3-Clause"
] | null | null | null | elixir/codes-from-books/little-elixir/cap4/metex/deps/json/lib/json/parser/bitstring/number.ex | trxeste/wrk | 3e05e50ff621866f0361cc8494ce8f6bb4d97fae | [
"BSD-3-Clause"
] | null | null | null | defmodule JSON.Parser.Bitstring.Number do
@doc """
parses a valid JSON numerical value, returns its elixir numerical representation
## Examples
iex> JSON.Parser.Bitstring.Number.parse ""
{:error, :unexpected_end_of_buffer}
iex> JSON.Parser.Bitstring.Number.parse "face0ff"
{:error, {:une... | 30.729167 | 100 | 0.582034 |
85030c124be55129b6588f429a92e0891a9c74e7 | 9,145 | exs | Elixir | config/config.exs | rmoorman/sanbase2 | 226784ab43a24219e7332c49156b198d09a6dd85 | [
"MIT"
] | 1 | 2022-01-30T19:51:39.000Z | 2022-01-30T19:51:39.000Z | config/config.exs | rmoorman/sanbase2 | 226784ab43a24219e7332c49156b198d09a6dd85 | [
"MIT"
] | null | null | null | config/config.exs | rmoorman/sanbase2 | 226784ab43a24219e7332c49156b198d09a6dd85 | [
"MIT"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
#
# This configuration file is loaded before any dependency and
# is restricted to this project.
import Config
# Latest version of timezone data (2019a) distributed by IANA has an error
# Disable t... | 36.289683 | 97 | 0.76304 |
85030ddd680f0dee2390e6bbbd6c90da02996f6d | 1,090 | exs | Elixir | test/tar_test.exs | croqaz/FileSmasher | ae84d140683dcfb4193beada381002c77361fe95 | [
"MIT"
] | null | null | null | test/tar_test.exs | croqaz/FileSmasher | ae84d140683dcfb4193beada381002c77361fe95 | [
"MIT"
] | null | null | null | test/tar_test.exs | croqaz/FileSmasher | ae84d140683dcfb4193beada381002c77361fe95 | [
"MIT"
] | null | null | null | defmodule FileSmasherTarTest do
use ExUnit.Case, async: false
alias FileSmasher.Tar
import FileSmasherHelpers
setup do
temp_path = create_temp_files
on_exit fn ->
# IO.puts "Cleanup: #{temp_path}"
File.rm_rf(temp_path)
end
{:ok, [temp_path: temp_path]}
end
@spec template(atom, ... | 24.222222 | 53 | 0.600917 |
85031da4c5523577ae66b0058c5d531a784d92dd | 120 | exs | Elixir | test/brainfark_test.exs | bbugh/brainfark | 15197d004dc19ffb5da867a8df638614955d7e95 | [
"MIT"
] | null | null | null | test/brainfark_test.exs | bbugh/brainfark | 15197d004dc19ffb5da867a8df638614955d7e95 | [
"MIT"
] | null | null | null | test/brainfark_test.exs | bbugh/brainfark | 15197d004dc19ffb5da867a8df638614955d7e95 | [
"MIT"
] | null | null | null | defmodule BrainfarkTest do
use ExUnit.Case
doctest Brainfark
test "the truth" do
assert 1 + 1 == 2
end
end
| 13.333333 | 26 | 0.683333 |
8503361aa8aa2ba98cc9d4f3712540acf2a1abd0 | 1,913 | ex | Elixir | lib/home_appliances_store_web/telemetry.ex | gratraw/home_appliances_store | 36b5274294ef3e0124740c2f992695860884976d | [
"MIT"
] | null | null | null | lib/home_appliances_store_web/telemetry.ex | gratraw/home_appliances_store | 36b5274294ef3e0124740c2f992695860884976d | [
"MIT"
] | null | null | null | lib/home_appliances_store_web/telemetry.ex | gratraw/home_appliances_store | 36b5274294ef3e0124740c2f992695860884976d | [
"MIT"
] | null | null | null | defmodule HomeAppliancesStoreWeb.Telemetry do
use Supervisor
import Telemetry.Metrics
def start_link(arg) do
Supervisor.start_link(__MODULE__, arg, name: __MODULE__)
end
@impl true
def init(_arg) do
children = [
# Telemetry poller will execute the given period measurements
# every 10_0... | 34.160714 | 93 | 0.687925 |
8503364d5a974654b2756c4fddbbc843f000fde4 | 161 | ex | Elixir | debian/i2p-apt-cacher-ng.cron.d.ex | eyedeekay/i2p-apt-cacher-ng | 6e49d04a661e8c2e590d54c609a196e02b6e9c39 | [
"MIT"
] | 1 | 2019-03-01T21:45:13.000Z | 2019-03-01T21:45:13.000Z | debian/i2p-apt-cacher-ng.cron.d.ex | eyedeekay/i2p-apt-cacher-ng | 6e49d04a661e8c2e590d54c609a196e02b6e9c39 | [
"MIT"
] | null | null | null | debian/i2p-apt-cacher-ng.cron.d.ex | eyedeekay/i2p-apt-cacher-ng | 6e49d04a661e8c2e590d54c609a196e02b6e9c39 | [
"MIT"
] | null | null | null | #
# Regular cron jobs for the i2p-apt-cacher-ng package
#
0 4 * * * root [ -x /usr/bin/i2p-apt-cacher-ng_maintenance ] && /usr/bin/i2p-apt-cacher-ng_maintenance
| 32.2 | 102 | 0.701863 |
850343c74e10677b33d773074a01ec2ce2571cac | 2,275 | ex | Elixir | lib/cafex/protocol/fetch.ex | MishaConway/cafex | 32965b7e099bc45de24c229cc76f7b83b35ff7b4 | [
"Apache-2.0"
] | null | null | null | lib/cafex/protocol/fetch.ex | MishaConway/cafex | 32965b7e099bc45de24c229cc76f7b83b35ff7b4 | [
"Apache-2.0"
] | null | null | null | lib/cafex/protocol/fetch.ex | MishaConway/cafex | 32965b7e099bc45de24c229cc76f7b83b35ff7b4 | [
"Apache-2.0"
] | null | null | null | defmodule Cafex.Protocol.Fetch do
use Cafex.Protocol, api: :fetch
alias Cafex.Protocol.Message
defrequest do
field :replica_id, [default: -1], integer
field :max_wait_time, [default: -1], integer
field :min_bytes, [default: 0], integer
field :topics, [default: []], [topic]
@type topic :: {t... | 34.469697 | 91 | 0.60044 |
85034a26594362cc0df471783500e16fd2b7ead2 | 906 | ex | Elixir | clients/knowledge_graph_search/lib/google_api/knowledge_graph_search/v1/metadata.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-10-01T09:20:41.000Z | 2021-10-01T09:20:41.000Z | clients/knowledge_graph_search/lib/google_api/knowledge_graph_search/v1/metadata.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/knowledge_graph_search/lib/google_api/knowledge_graph_search/v1/metadata.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 33.555556 | 74 | 0.764901 |
8503cd9914055dd7766588c0e33bbe0f5cd21425 | 992 | ex | Elixir | test/elixir/lib/ex_unit.ex | mtenrero/couchdb-vetcontrol | b7ede3ededdf0072c73f08d8f1217cb723b03f7a | [
"Apache-2.0"
] | 1 | 2022-01-14T20:52:55.000Z | 2022-01-14T20:52:55.000Z | test/elixir/lib/ex_unit.ex | mtenrero/couchdb-vetcontrol | b7ede3ededdf0072c73f08d8f1217cb723b03f7a | [
"Apache-2.0"
] | 1 | 2018-02-08T23:08:43.000Z | 2018-02-08T23:08:43.000Z | test/elixir/lib/ex_unit.ex | mtenrero/couchdb-vetcontrol | b7ede3ededdf0072c73f08d8f1217cb723b03f7a | [
"Apache-2.0"
] | null | null | null | defmodule Couch.Test.ExUnit.Case do
@moduledoc """
Template for ExUnit test case. It can be used as follows:
```
defmodule Couch.Test.CRUD do
use Couch.Test.ExUnit.Case
...
def with_db(context, setup) do
setup = setup
|> Step.Start.new(:start, extra_apps: [:chttpd])
|> Setup.ru... | 20.666667 | 72 | 0.590726 |
8503e7325f1bd6d206264b0e8a19dbdf3ca9ba04 | 1,704 | exs | Elixir | config/dev.exs | hbogaeus/kindler | 0745ca9eed91f378cf605f808645b301f78f8676 | [
"MIT"
] | null | null | null | config/dev.exs | hbogaeus/kindler | 0745ca9eed91f378cf605f808645b301f78f8676 | [
"MIT"
] | null | null | null | config/dev.exs | hbogaeus/kindler | 0745ca9eed91f378cf605f808645b301f78f8676 | [
"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 :kindler, KindlerWeb.Endpoint,
http: [port: 40... | 32.150943 | 170 | 0.715376 |
850406ab4d3cd42e35ff70fcbb2367ebe62158e4 | 70 | exs | Elixir | test/views/layout_view_test.exs | deadmp/core | 4c244af3326f362ac6411e8996fb1cff0b5a29e6 | [
"MIT"
] | null | null | null | test/views/layout_view_test.exs | deadmp/core | 4c244af3326f362ac6411e8996fb1cff0b5a29e6 | [
"MIT"
] | null | null | null | test/views/layout_view_test.exs | deadmp/core | 4c244af3326f362ac6411e8996fb1cff0b5a29e6 | [
"MIT"
] | null | null | null | defmodule Core.LayoutViewTest do
use Core.ConnCase, async: true
end
| 17.5 | 32 | 0.8 |
85044235e26d02fee3665c93bd9e6175dc176738 | 1,818 | ex | Elixir | clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_portal_resource_type_collection.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_portal_resource_type_collection.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_portal_resource_type_collection.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... | 30.3 | 126 | 0.733773 |
8504723cf6e220896671a3c45ddf927b61277052 | 228 | exs | Elixir | test/network_test.exs | mendrugory/nodex | 87d878f78b61f134a685c1b034d2f56a40701f8e | [
"MIT"
] | 7 | 2017-11-16T13:32:54.000Z | 2019-05-24T13:45:15.000Z | test/network_test.exs | mendrugory/nodex | 87d878f78b61f134a685c1b034d2f56a40701f8e | [
"MIT"
] | null | null | null | test/network_test.exs | mendrugory/nodex | 87d878f78b61f134a685c1b034d2f56a40701f8e | [
"MIT"
] | 1 | 2020-04-29T08:00:26.000Z | 2020-04-29T08:00:26.000Z | defmodule NetworkTest do
use ExUnit.Case
alias Nodex.Utilities.Network
test "get node atom using IP" do
{:ok, result} = Network.get_node_atom(:my_app, {127,0,0,1})
assert result == :"my_app@127.0.0.1"
end
end
| 19 | 63 | 0.679825 |
8504aa26652f597b4a8e5757023b3bc59f535b6f | 3,836 | ex | Elixir | lib/sanbase/stripe/stripe_api.ex | santiment/sanbase2 | 9ef6e2dd1e377744a6d2bba570ea6bd477a1db31 | [
"MIT"
] | 81 | 2017-11-20T01:20:22.000Z | 2022-03-05T12:04:25.000Z | lib/sanbase/stripe/stripe_api.ex | santiment/sanbase2 | 9ef6e2dd1e377744a6d2bba570ea6bd477a1db31 | [
"MIT"
] | 359 | 2017-10-15T14:40:53.000Z | 2022-01-25T13:34:20.000Z | lib/sanbase/stripe/stripe_api.ex | santiment/sanbase2 | 9ef6e2dd1e377744a6d2bba570ea6bd477a1db31 | [
"MIT"
] | 16 | 2017-11-19T13:57:40.000Z | 2022-02-07T08:13:02.000Z | defmodule Sanbase.StripeApi do
@moduledoc """
Module wrapping communication with Stripe.
"""
alias Sanbase.Billing.{Product, Plan}
alias Sanbase.Accounts.User
@type subscription_item :: %{plan: String.t()}
@type subscription :: %{
optional(:coupon) => String.t(),
customer: String.t()... | 27.4 | 85 | 0.669187 |
8504bcc4bd676819cc318c9e6575f9072a43bb4c | 293 | exs | Elixir | priv/repo/migrations/20171016210718_create_pipeline_jobs.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/20171016210718_create_pipeline_jobs.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/20171016210718_create_pipeline_jobs.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.CreatePipelineJobs do
use Ecto.Migration
def change do
create table(:pipeline_jobs) do
add :name, :string
add :status, :string
add :ref, :string
add :pipeline_source_id, :string
timestamps()
end
end
end
| 18.3125 | 64 | 0.675768 |
8504e6b597aea74feae60ba708c1d731c74d6697 | 1,249 | ex | Elixir | lib/serum/markdown.ex | afontaine/Serum | f2c410d086c235332e047afdc6a3c6e6c6f6fca8 | [
"MIT"
] | 302 | 2016-08-01T05:16:06.000Z | 2022-03-26T07:20:46.000Z | lib/serum/markdown.ex | afontaine/Serum | f2c410d086c235332e047afdc6a3c6e6c6f6fca8 | [
"MIT"
] | 206 | 2016-08-04T15:18:35.000Z | 2022-03-01T03:07:57.000Z | lib/serum/markdown.ex | afontaine/Serum | f2c410d086c235332e047afdc6a3c6e6c6f6fca8 | [
"MIT"
] | 35 | 2016-10-29T13:59:34.000Z | 2022-03-01T01:50:31.000Z | defmodule Serum.Markdown do
@moduledoc false
_moduledocp = """
This module provides functions related to dealing with markdown data.
"""
alias Serum.Project
@re_media ~r/(?<type>href|src)="(?:%|%25)media:(?<url>[^"]*)"/
@re_post ~r/(?<type>href|src)="(?:%|%25)post:(?<url>[^"]*)"/
@re_page ~r/(?<type>... | 29.046512 | 74 | 0.60048 |
8504fb39f131af8aeabbb3d4e1c1ac4aa4fe42fd | 1,645 | ex | Elixir | apps/snitch_core/test/support/shipment_engine_case.ex | Acrecio/avia | 54d264fc179b5b5f17d174854bdca063e1d935e9 | [
"MIT"
] | 456 | 2018-09-20T02:40:59.000Z | 2022-03-07T08:53:48.000Z | apps/snitch_core/test/support/shipment_engine_case.ex | Acrecio/avia | 54d264fc179b5b5f17d174854bdca063e1d935e9 | [
"MIT"
] | 273 | 2018-09-19T06:43:43.000Z | 2021-08-07T12:58:26.000Z | apps/snitch_core/test/support/shipment_engine_case.ex | Acrecio/avia | 54d264fc179b5b5f17d174854bdca063e1d935e9 | [
"MIT"
] | 122 | 2018-09-26T16:32:46.000Z | 2022-03-13T11:44:19.000Z | defmodule Snitch.ShipmentEngineCase do
@moduledoc """
Test helper for creating packages for shipment engine.
Creates packages based on the type of package for given lineitems.
> A package of type [1,0,1,0] means the package will fulfill
first and third lineitem.
"""
alias Snitch.Data.Schema.LineItem
... | 24.552239 | 68 | 0.570821 |
8504ff91469ba9b32ea8dc2c54c7135505e11172 | 983 | ex | Elixir | test/support/channel_case.ex | deadmp/wiki | 29d98ed0517e26d2e3f1c75f70852bc7512d87fc | [
"MIT"
] | null | null | null | test/support/channel_case.ex | deadmp/wiki | 29d98ed0517e26d2e3f1c75f70852bc7512d87fc | [
"MIT"
] | null | null | null | test/support/channel_case.ex | deadmp/wiki | 29d98ed0517e26d2e3f1c75f70852bc7512d87fc | [
"MIT"
] | null | null | null | defmodule Wiki.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 and query models.
Finally, if the test case interacts with the database,
it cannot be asyn... | 22.340909 | 66 | 0.695829 |
85051ac28c4c3d8860a9164cb8338f96da2b45d6 | 808 | exs | Elixir | mix.exs | szTheory/ssdb-elixir | 110adc7f453cc601ee6290d29af1fc1e56f7cc46 | [
"Apache-2.0"
] | 1 | 2016-09-24T10:39:51.000Z | 2016-09-24T10:39:51.000Z | mix.exs | defp/ssdb-elixir | 60981bb7fb88b5227223b35f75aadc7f8f12e89d | [
"Apache-2.0"
] | null | null | null | mix.exs | defp/ssdb-elixir | 60981bb7fb88b5227223b35f75aadc7f8f12e89d | [
"Apache-2.0"
] | 3 | 2015-07-04T02:57:50.000Z | 2020-03-04T16:14:24.000Z | defmodule SSDB.Mixfile do
use Mix.Project
def project do
[
app: :ssdb,
version: "0.3.1",
elixir: ">= 1.0.0",
deps: deps(),
description: description(),
source_url: "https://github.com/lidashuang/ssdb-elixir",
homepage_url: "https://github.com/lidashuang/ssdb-elixir",
... | 20.717949 | 71 | 0.581683 |
850543abcb7fe9ae5a68bdb3b4c9b904e96c1a8d | 1,469 | exs | Elixir | test/ecto/adapters/mnesia/transaction_test.exs | Logflare/ecto3_mnesia | 519f06ef1730b83a7e95242d145b7c1cf70c5ddf | [
"MIT"
] | 2 | 2021-02-26T21:56:29.000Z | 2021-08-25T04:35:55.000Z | test/ecto/adapters/mnesia/transaction_test.exs | Logflare/ecto3_mnesia | 519f06ef1730b83a7e95242d145b7c1cf70c5ddf | [
"MIT"
] | null | null | null | test/ecto/adapters/mnesia/transaction_test.exs | Logflare/ecto3_mnesia | 519f06ef1730b83a7e95242d145b7c1cf70c5ddf | [
"MIT"
] | 1 | 2021-11-11T07:47:27.000Z | 2021-11-11T07:47:27.000Z | defmodule Ecto.Adapters.MnesiaTransactionIntegrationTest do
use ExUnit.Case, async: false
alias EctoMnesia.TestRepo
alias Ecto.Adapters.Mnesia
@table_name __MODULE__.Table
defmodule TestSchema do
use Ecto.Schema
schema "#{Ecto.Adapters.MnesiaTransactionIntegrationTest.Table}" do
field(:field... | 24.898305 | 79 | 0.64806 |
8505576d068afc9e72d9d2d99b27b05ca2969123 | 218 | exs | Elixir | config/prod.exs | utrustdev/commanded-scheduler | 7532f192d39df2d0b7d1d500973ceaa8ec987ed3 | [
"MIT"
] | 31 | 2017-11-25T00:18:12.000Z | 2022-03-03T20:11:17.000Z | config/prod.exs | utrustdev/commanded-scheduler | 7532f192d39df2d0b7d1d500973ceaa8ec987ed3 | [
"MIT"
] | 12 | 2018-01-09T21:18:30.000Z | 2021-09-06T10:35:43.000Z | config/prod.exs | utrustdev/commanded-scheduler | 7532f192d39df2d0b7d1d500973ceaa8ec987ed3 | [
"MIT"
] | 13 | 2018-02-08T15:15:11.000Z | 2020-08-13T12:25:18.000Z | use Mix.Config
config :commanded_scheduler, Commanded.Scheduler.Repo,
adapter: Ecto.Adapters.Postgres,
database: "commanded_scheduler_prod",
username: "postgres",
password: "postgres",
hostname: "localhost"
| 24.222222 | 54 | 0.766055 |
8505769ffaedbae3da34c84bbeefe2509dfd22f8 | 386 | ex | Elixir | lib/employee_reward_app/role.ex | Kapeusz/employee_reward_app | 738d1514ec733b0e8027423e740abdbdc27716d0 | [
"PostgreSQL",
"MIT"
] | null | null | null | lib/employee_reward_app/role.ex | Kapeusz/employee_reward_app | 738d1514ec733b0e8027423e740abdbdc27716d0 | [
"PostgreSQL",
"MIT"
] | null | null | null | lib/employee_reward_app/role.ex | Kapeusz/employee_reward_app | 738d1514ec733b0e8027423e740abdbdc27716d0 | [
"PostgreSQL",
"MIT"
] | null | null | null | defmodule EmployeeRewardApp.Role do
use Ecto.Schema
import Ecto.Changeset
schema "roles" do
field :admin, :boolean, default: false
field :name, :string
has_many :users, EmployeeRewardApp.Accounts.User
timestamps()
end
@doc false
def changeset(role, attrs) do
role
|> cast(attrs, [:n... | 20.315789 | 52 | 0.676166 |
8505b5bf28c76ac169c8d6cabc92f4112d8569ea | 32,253 | ex | Elixir | lib/ecto/repo/schema.ex | joerichsen/ecto | 13e22d1f2a18f5698d5b0db5112f3936cab86ae8 | [
"Apache-2.0"
] | 1 | 2021-02-24T13:06:18.000Z | 2021-02-24T13:06:18.000Z | lib/ecto/repo/schema.ex | joerichsen/ecto | 13e22d1f2a18f5698d5b0db5112f3936cab86ae8 | [
"Apache-2.0"
] | null | null | null | lib/ecto/repo/schema.ex | joerichsen/ecto | 13e22d1f2a18f5698d5b0db5112f3936cab86ae8 | [
"Apache-2.0"
] | null | null | null | defmodule Ecto.Repo.Schema do
# The module invoked by user defined repos
# for schema related functionality.
@moduledoc false
alias Ecto.Changeset
alias Ecto.Changeset.Relation
require Ecto.Query
@doc """
Implementation for `Ecto.Repo.insert_all/3`.
"""
def insert_all(_repo, name, schema, rows, op... | 35.757206 | 120 | 0.637243 |
8505b944b39b81620cd09a3def0ef09e8c6c6c29 | 2,498 | ex | Elixir | clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/clone_context.ex | richiboi1977/elixir-google-api | c495bb3548090eb7a63d12f6fb145ec48aecdc0b | [
"Apache-2.0"
] | 1 | 2021-10-01T09:20:41.000Z | 2021-10-01T09:20:41.000Z | clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/clone_context.ex | richiboi1977/elixir-google-api | c495bb3548090eb7a63d12f6fb145ec48aecdc0b | [
"Apache-2.0"
] | null | null | null | clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/clone_context.ex | richiboi1977/elixir-google-api | c495bb3548090eb7a63d12f6fb145ec48aecdc0b | [
"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.338983 | 307 | 0.721377 |
8505beafd7630ceeb811e82f4594a7bc91ed095d | 222 | exs | Elixir | priv/repo/migrations/20200603211020_add_name_and_active_to_redirects.exs | meltingice/conductor | 630440adc1081a0991d3dba17ced775a9dd05055 | [
"MIT"
] | null | null | null | priv/repo/migrations/20200603211020_add_name_and_active_to_redirects.exs | meltingice/conductor | 630440adc1081a0991d3dba17ced775a9dd05055 | [
"MIT"
] | 2 | 2021-03-10T20:23:26.000Z | 2021-05-11T15:56:49.000Z | priv/repo/migrations/20200603211020_add_name_and_active_to_redirects.exs | meltingice/conductor | 630440adc1081a0991d3dba17ced775a9dd05055 | [
"MIT"
] | 1 | 2020-06-05T02:34:58.000Z | 2020-06-05T02:34:58.000Z | defmodule Conductor.Repo.Migrations.AddNameAndActiveToRedirects do
use Ecto.Migration
def change do
alter table(:redirects) do
add :name, :string
add :active, :boolean, default: true
end
end
end
| 20.181818 | 66 | 0.711712 |
8505e1f89c9462ac622b9b3a56395967ffd12a23 | 387 | ex | Elixir | lib/cain/endpoint/task/identity_links.ex | pfitz/cain | c1038a9d80e51213ee665149c585231b16c11b3f | [
"Apache-2.0"
] | 6 | 2019-12-17T12:40:19.000Z | 2022-01-18T07:25:20.000Z | lib/cain/endpoint/task/identity_links.ex | pfitz/cain | c1038a9d80e51213ee665149c585231b16c11b3f | [
"Apache-2.0"
] | 9 | 2019-12-18T13:01:11.000Z | 2021-02-12T14:24:43.000Z | lib/cain/endpoint/task/identity_links.ex | pfitz/cain | c1038a9d80e51213ee665149c585231b16c11b3f | [
"Apache-2.0"
] | 1 | 2020-09-16T09:19:08.000Z | 2020-09-16T09:19:08.000Z | defmodule Cain.Endpoint.Task.IdentityLinks do
def get_list(id) do
{:get, "task/#{id}/identity-links", %{}, %{}}
end
def add(id, group_id, type) do
{:post, "task/#{id}/identity-links", %{}, %{"groupId" => group_id, "type" => type}}
end
# mit hans klären -> REST-Doku dazu!
def delete(id, body) do
... | 25.8 | 87 | 0.599483 |
8505e329b0448aa5065bb8b92dc2974c5bee5a38 | 2,270 | exs | Elixir | config/dev.exs | andrewgy8/postoffice | eadd84c613e20af9fd4afe4591c3a336733d3f0b | [
"Apache-2.0"
] | 15 | 2020-01-24T10:33:57.000Z | 2020-10-24T07:57:14.000Z | config/dev.exs | andrewgy8/postoffice | eadd84c613e20af9fd4afe4591c3a336733d3f0b | [
"Apache-2.0"
] | 24 | 2020-01-24T09:52:56.000Z | 2021-02-19T09:15:12.000Z | config/dev.exs | andrewgy8/postoffice | eadd84c613e20af9fd4afe4591c3a336733d3f0b | [
"Apache-2.0"
] | 5 | 2020-01-25T18:03:44.000Z | 2021-02-23T10:07:03.000Z | use Mix.Config
# Configure your database
config :postoffice, Postoffice.Repo,
username: System.get_env("DB_USERNAME", "postgres"),
password: System.get_env("DB_PASSWORD", "postgres"),
database: System.get_env("DB_NAME", "postoffice_dev"),
hostname: System.get_env("DB_HOST", "localhost"),
port: System.get_env... | 29.480519 | 68 | 0.696035 |
8505e39c56b173648c8688a71d2bc65140d4d432 | 1,083 | ex | Elixir | graphql-elixir/lib/graphql_sample_web/channels/user_socket.ex | ma2gedev/graphql-samples | f6e8efba22777ed27aee0fa597d23f991987ca6b | [
"MIT"
] | 1 | 2019-04-14T04:19:37.000Z | 2019-04-14T04:19:37.000Z | graphql-elixir/lib/graphql_sample_web/channels/user_socket.ex | ma2gedev/graphql-samples | f6e8efba22777ed27aee0fa597d23f991987ca6b | [
"MIT"
] | null | null | null | graphql-elixir/lib/graphql_sample_web/channels/user_socket.ex | ma2gedev/graphql-samples | f6e8efba22777ed27aee0fa597d23f991987ca6b | [
"MIT"
] | null | null | null | defmodule GraphqlSampleWeb.UserSocket do
use Phoenix.Socket
## Channels
# channel "room:*", GraphqlSampleWeb.RoomChannel
# Socket params are passed from the client and can
# be used to verify and authenticate a user. After
# verification, you can put default assigns into
# the socket that will be set fo... | 31.852941 | 88 | 0.701754 |
8505f910b57c582d1f8f5317d9ac30434310e41b | 5,992 | exs | Elixir | test/expokefight_web/controllers/battles_controller_test.exs | vbertazzo/expokefight | 19b6bd39af43e17c3ee14eab845cb24fb71d6d80 | [
"MIT"
] | null | null | null | test/expokefight_web/controllers/battles_controller_test.exs | vbertazzo/expokefight | 19b6bd39af43e17c3ee14eab845cb24fb71d6d80 | [
"MIT"
] | null | null | null | test/expokefight_web/controllers/battles_controller_test.exs | vbertazzo/expokefight | 19b6bd39af43e17c3ee14eab845cb24fb71d6d80 | [
"MIT"
] | null | null | null | defmodule Expokefight.BattlesControllerTest do
use ExpokefightWeb.ConnCase, async: true
import Mox
import Expokefight.Factory
alias Expokefight.Pokeapi.ClientMock
describe "create/2" do
test "create a battle when all parameters are valid", %{conn: conn} do
params = %{"pokemon1" => "charmander", "po... | 32.215054 | 128 | 0.469793 |
85061347af0c590aefe33d1264b0821bee3f2a46 | 74 | ex | Elixir | lib/mcf_phoenix_web/views/multi_select.ex | majeX/phoenix-liveview-demo | e6c27fdd771eae8d64b3e8950a53e2534be72168 | [
"MIT"
] | null | null | null | lib/mcf_phoenix_web/views/multi_select.ex | majeX/phoenix-liveview-demo | e6c27fdd771eae8d64b3e8950a53e2534be72168 | [
"MIT"
] | null | null | null | lib/mcf_phoenix_web/views/multi_select.ex | majeX/phoenix-liveview-demo | e6c27fdd771eae8d64b3e8950a53e2534be72168 | [
"MIT"
] | null | null | null | defmodule McfPhoenixWeb.MultiSelectView do
use McfPhoenixWeb, :view
end
| 18.5 | 42 | 0.837838 |
85065c60791059f1280cd6e87a60386c76eaf7e2 | 1,111 | exs | Elixir | config/config.exs | sam701/elixir-mail | 5771a8b8808c26f7d6adc3a44859f2c140c994e1 | [
"MIT"
] | 387 | 2016-02-09T23:17:51.000Z | 2022-03-31T13:57:05.000Z | config/config.exs | sam701/elixir-mail | 5771a8b8808c26f7d6adc3a44859f2c140c994e1 | [
"MIT"
] | 84 | 2016-02-09T21:20:11.000Z | 2022-03-10T09:58:43.000Z | config/config.exs | sam701/elixir-mail | 5771a8b8808c26f7d6adc3a44859f2c140c994e1 | [
"MIT"
] | 70 | 2016-02-10T15:21:44.000Z | 2021-12-08T18:20:25.000Z | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
# This configuration is loaded before any dependency and is restricted
# to this project. If another project depends on this project, this
# file won't be loaded nor affect the paren... | 35.83871 | 73 | 0.749775 |
8506b30d2ce3db78a01c9e1d5842ef3b07e1f23d | 292 | exs | Elixir | test/alpha_advantage/client_test.exs | evertonts/alphavantage-elixir | 9136e88a90ec7124eb9acd5bbc9ec90e8d2cd485 | [
"MIT"
] | null | null | null | test/alpha_advantage/client_test.exs | evertonts/alphavantage-elixir | 9136e88a90ec7124eb9acd5bbc9ec90e8d2cd485 | [
"MIT"
] | null | null | null | test/alpha_advantage/client_test.exs | evertonts/alphavantage-elixir | 9136e88a90ec7124eb9acd5bbc9ec90e8d2cd485 | [
"MIT"
] | null | null | null | defmodule AlphaAdvatage.ClientTest do
use ExUnit.Case, async: true
alias AlphaAdvantage.Client
test "test" do
assert %{"Global Quote" => %{"01. symbol" => symbol, "05. price" => price}} =
Client.get!("GLOBAL_QUOTE", "symbol=IBM")
assert "IBM" = symbol
end
end
| 22.461538 | 81 | 0.633562 |
8507193eff485eb18d41898ae551340b872f71f9 | 4,574 | ex | Elixir | lib/glimesh/graphql/schema/account_types.ex | aMytho/glimesh.tv | f2855e83647611f33ecbdb21ab35d716933db024 | [
"MIT"
] | null | null | null | lib/glimesh/graphql/schema/account_types.ex | aMytho/glimesh.tv | f2855e83647611f33ecbdb21ab35d716933db024 | [
"MIT"
] | null | null | null | lib/glimesh/graphql/schema/account_types.ex | aMytho/glimesh.tv | f2855e83647611f33ecbdb21ab35d716933db024 | [
"MIT"
] | null | null | null | defmodule Glimesh.Schema.AccountTypes do
@moduledoc false
use Absinthe.Schema.Notation
import Absinthe.Resolution.Helpers
alias Glimesh.Avatar
alias Glimesh.Repo
alias Glimesh.Resolvers.AccountResolver
object :accounts_queries do
@desc "Get yourself"
field :myself, :user do
resolve(&Accou... | 30.092105 | 95 | 0.655662 |
85072141dc70887dd8b8ad798ebb09dd66efc199 | 691 | ex | Elixir | lib/elixir_email_reply_parser.ex | PongLabs/elixir_email_reply_parser | a4300bacd818f248523cbd66c740acdd444b28fa | [
"MIT"
] | null | null | null | lib/elixir_email_reply_parser.ex | PongLabs/elixir_email_reply_parser | a4300bacd818f248523cbd66c740acdd444b28fa | [
"MIT"
] | null | null | null | lib/elixir_email_reply_parser.ex | PongLabs/elixir_email_reply_parser | a4300bacd818f248523cbd66c740acdd444b28fa | [
"MIT"
] | null | null | null | defmodule ElixirEmailReplyParser do
@moduledoc """
Main ElixirEmailReplyParser module
"""
@doc false
def read(text) do
ElixirEmailReplyParser.Parser.read(text)
end
@doc ~S"""
Extracts reply from provided email body string
## Parameters
- text: Email body content as a string
## Examples
... | 23.033333 | 99 | 0.696093 |
85076cd946d1ecec0a8370b9cf3f37f1f2aad858 | 748 | exs | Elixir | mix.exs | thebugcatcher/heimdall | 5da4d2afcf80a8dabd23bbd22b19e24bcbd507a9 | [
"MIT"
] | 2 | 2021-04-03T14:10:20.000Z | 2021-07-07T21:17:35.000Z | mix.exs | aditya7iyengar/heimdall | 5da4d2afcf80a8dabd23bbd22b19e24bcbd507a9 | [
"MIT"
] | null | null | null | mix.exs | aditya7iyengar/heimdall | 5da4d2afcf80a8dabd23bbd22b19e24bcbd507a9 | [
"MIT"
] | 1 | 2020-11-12T08:38:35.000Z | 2020-11-12T08:38:35.000Z | defmodule Heimdall.MixProject do
use Mix.Project
@version "0.0.2"
def project do
[
aliases: aliases(),
apps_path: "apps",
deps: deps(),
preferred_cli_env: [
coveralls: :test,
"coveralls.detail": :test,
"coveralls.post": :test,
"coveralls.html": :test
... | 19.684211 | 52 | 0.528075 |
8507915e1fdc93b98d25e4bfb696bb54083d9905 | 165 | exs | Elixir | config/config.exs | tank-bohr/phoenix_view | f64e4f6a99e5ae67293a3531276104536879ff00 | [
"MIT"
] | 56 | 2020-11-18T09:41:18.000Z | 2022-03-22T23:04:58.000Z | config/config.exs | tank-bohr/phoenix_view | f64e4f6a99e5ae67293a3531276104536879ff00 | [
"MIT"
] | 6 | 2021-02-14T18:22:52.000Z | 2022-02-02T19:46:44.000Z | config/config.exs | tank-bohr/phoenix_view | f64e4f6a99e5ae67293a3531276104536879ff00 | [
"MIT"
] | 7 | 2021-02-28T22:00:30.000Z | 2022-03-11T03:27:29.000Z | import Config
config :logger, :console, colors: [enabled: false]
config :phoenix_view, :json_library, Jason
config :phoenix_view, :trim_on_html_eex_engine, false
| 20.625 | 53 | 0.787879 |
8507a54919a4a448c86c6a19e7b484778a37e59f | 1,166 | exs | Elixir | test/knigge/behaviour_test.exs | samuel-uniris/knigge | fd7c6e735a1840211a02733c628167a1831d9c92 | [
"MIT"
] | 83 | 2019-07-26T14:51:19.000Z | 2022-03-27T08:05:15.000Z | test/knigge/behaviour_test.exs | samuel-uniris/knigge | fd7c6e735a1840211a02733c628167a1831d9c92 | [
"MIT"
] | 21 | 2019-08-06T08:35:44.000Z | 2021-10-17T19:55:46.000Z | test/knigge/behaviour_test.exs | samuel-uniris/knigge | fd7c6e735a1840211a02733c628167a1831d9c92 | [
"MIT"
] | 10 | 2019-07-31T09:56:26.000Z | 2022-01-03T12:03:33.000Z | defmodule Knigge.BehaviourTest do
use ExUnit.Case, async: true
defmodule NormalBehaviour do
@callback my_function() :: no_return
end
describe ".callbacks/1" do
test "with a normal behaviour" do
assert Knigge.Behaviour.callbacks(NormalBehaviour) == [my_function: 0]
end
test "with a modul... | 33.314286 | 89 | 0.700686 |
8507bd148ce144dad80754d7a168af07e8a3fcf4 | 1,343 | ex | Elixir | lib/koans/16_tasks.ex | krlsdu/elixir_learning | 05e2be664044689f8b4dfb2081a78009294810ec | [
"MIT"
] | null | null | null | lib/koans/16_tasks.ex | krlsdu/elixir_learning | 05e2be664044689f8b4dfb2081a78009294810ec | [
"MIT"
] | null | null | null | lib/koans/16_tasks.ex | krlsdu/elixir_learning | 05e2be664044689f8b4dfb2081a78009294810ec | [
"MIT"
] | null | null | null | defmodule Tasks do
use Koans
@intro "Tasks"
koan "Tasks can be used for asynchronous computations with results" do
task = Task.async(fn -> 3 * 3 end)
do_other_stuff()
assert Task.await(task) + 1 == 10
end
koan "If you don't need a result, use start_link/1" do
{result, _pid} = Task.start_lin... | 22.762712 | 75 | 0.597171 |
8507df95754aac8d104dda09f53e67d5bbcb9987 | 1,275 | exs | Elixir | config/dev.exs | luca-apostoli/ruru-chat | d6c62000b78592f03cf56f63acd23a6404df1924 | [
"MIT"
] | 1 | 2017-04-22T12:36:19.000Z | 2017-04-22T12:36:19.000Z | config/dev.exs | luca-apostoli/ruru-chat | d6c62000b78592f03cf56f63acd23a6404df1924 | [
"MIT"
] | null | null | null | config/dev.exs | luca-apostoli/ruru-chat | d6c62000b78592f03cf56f63acd23a6404df1924 | [
"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 :ruru, Ruru.Endpoint,
http: [port: 4000],
de... | 28.977273 | 73 | 0.687843 |
8507f04300cfba8dc45189f84173420ca92b1abe | 1,034 | ex | Elixir | lib/ex_oauth2_provider/oauth_applications/oauth_application.ex | gozego/ex_oauth2_provider | d3a7658d28233dda2dfdef7ed397b5b440a2f737 | [
"Unlicense",
"MIT"
] | 2 | 2021-04-25T20:59:53.000Z | 2021-07-13T22:49:20.000Z | lib/ex_oauth2_provider/oauth_applications/oauth_application.ex | gozego/ex_oauth2_provider | d3a7658d28233dda2dfdef7ed397b5b440a2f737 | [
"Unlicense",
"MIT"
] | null | null | null | lib/ex_oauth2_provider/oauth_applications/oauth_application.ex | gozego/ex_oauth2_provider | d3a7658d28233dda2dfdef7ed397b5b440a2f737 | [
"Unlicense",
"MIT"
] | null | null | null | defmodule ExOauth2Provider.OauthApplications.OauthApplication do
@moduledoc false
use Ecto.Schema
require Logger
alias ExOauth2Provider.Config
# For Phoenix integrations
if Code.ensure_loaded?(Phoenix.Param) do
@derive {Phoenix.Param, key: :uid}
end
@timestamps_opts [type: :naive_datetime_usec]
... | 30.411765 | 124 | 0.712766 |
8507fef6d43fb401caf96fd86f76ff31b3a4e7bb | 2,598 | ex | Elixir | clients/policy_simulator/lib/google_api/policy_simulator/v1/model/google_cloud_policysimulator_v1_replay_config.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/policy_simulator/lib/google_api/policy_simulator/v1/model/google_cloud_policysimulator_v1_replay_config.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/policy_simulator/lib/google_api/policy_simulator/v1/model/google_cloud_policysimulator_v1_replay_config.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... | 45.578947 | 795 | 0.752887 |
850802de5af0980c34ed7ef63a0ccfe12af5a2e1 | 2,480 | ex | Elixir | lib/sanbase_web/graphql/schema/types/insight_types.ex | santiment/sanbase2 | 9ef6e2dd1e377744a6d2bba570ea6bd477a1db31 | [
"MIT"
] | 81 | 2017-11-20T01:20:22.000Z | 2022-03-05T12:04:25.000Z | lib/sanbase_web/graphql/schema/types/insight_types.ex | santiment/sanbase2 | 9ef6e2dd1e377744a6d2bba570ea6bd477a1db31 | [
"MIT"
] | 359 | 2017-10-15T14:40:53.000Z | 2022-01-25T13:34:20.000Z | lib/sanbase_web/graphql/schema/types/insight_types.ex | santiment/sanbase2 | 9ef6e2dd1e377744a6d2bba570ea6bd477a1db31 | [
"MIT"
] | 16 | 2017-11-19T13:57:40.000Z | 2022-02-07T08:13:02.000Z | defmodule SanbaseWeb.Graphql.InsightTypes do
use Absinthe.Schema.Notation
import Absinthe.Resolution.Helpers
alias SanbaseWeb.Graphql.Resolvers.InsightResolver
alias SanbaseWeb.Graphql.SanbaseRepo
object :vote do
field(:total_votes, non_null(:integer))
field(:total_voters, non_null(:integer))
f... | 28.181818 | 91 | 0.694758 |
85080bdb7be369d368522ce0bf801d21dbd6ad4b | 3,879 | ex | Elixir | apps/potterhat_node/lib/node/active_nodes.ex | omisego/potterhat | 47635e5d061c76900bd0e42a19e5dfc2ae8c0253 | [
"Apache-2.0"
] | 6 | 2019-03-28T14:47:41.000Z | 2019-06-25T02:38:06.000Z | apps/potterhat_node/lib/node/active_nodes.ex | omisego/potterhat | 47635e5d061c76900bd0e42a19e5dfc2ae8c0253 | [
"Apache-2.0"
] | 30 | 2019-05-22T10:08:09.000Z | 2019-08-02T06:37:56.000Z | apps/potterhat_node/lib/node/active_nodes.ex | omisego/potterhat | 47635e5d061c76900bd0e42a19e5dfc2ae8c0253 | [
"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... | 27.316901 | 97 | 0.657128 |
85080c43728fd39e9c87f04683b1150934604bdb | 1,902 | ex | Elixir | clients/you_tube/lib/google_api/you_tube/v3/model/live_chat_super_chat_details.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/you_tube/lib/google_api/you_tube/v3/model/live_chat_super_chat_details.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/you_tube/lib/google_api/you_tube/v3/model/live_chat_super_chat_details.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | 1 | 2018-07-28T20:50:50.000Z | 2018-07-28T20:50:50.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 36.576923 | 133 | 0.743428 |
85081d7c5dea2d3d1cc0eb65a68203e3d2a0cf17 | 1,634 | ex | Elixir | lib/live_sup_web/live/team/components/team_members_header_component.ex | livesup-dev/livesup | eaf9ffc78d3043bd9e3408f0f4df26ed16eb8446 | [
"Apache-2.0",
"MIT"
] | null | null | null | lib/live_sup_web/live/team/components/team_members_header_component.ex | livesup-dev/livesup | eaf9ffc78d3043bd9e3408f0f4df26ed16eb8446 | [
"Apache-2.0",
"MIT"
] | 3 | 2022-02-23T15:51:48.000Z | 2022-03-14T22:52:43.000Z | lib/live_sup_web/live/team/components/team_members_header_component.ex | livesup-dev/livesup | eaf9ffc78d3043bd9e3408f0f4df26ed16eb8446 | [
"Apache-2.0",
"MIT"
] | null | null | null | defmodule LiveSupWeb.Teams.Components.TeamMembersHeaderComponent do
use LiveSupWeb, :component
def render(assigns) do
~H"""
<div class="justify-between flex flex-row space-x-4 border-b dark:border-primary-darker px-4 py-2">
<div class="flex items-center basis-4/5 flex-wrap">
<%= link "Home", ... | 68.083333 | 405 | 0.671971 |
85084bbf8a1cfbf15b551fef9cde5479c67165fe | 2,094 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/image_list_warning.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/image_list_warning.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/image_list_warning.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 38.777778 | 194 | 0.713467 |
85085c6068e1c138dcafbc8e0e1cd936201a6dbd | 97 | ex | Elixir | test/support/cases/utils_case.ex | elixir-garage/ex_tenant | 2336ab92d4cf0e826fdd6bf6ce5fb0206095f007 | [
"Apache-2.0"
] | 1 | 2022-02-09T23:17:09.000Z | 2022-02-09T23:17:09.000Z | test/support/cases/utils_case.ex | elixir-garage/ex_tenant | 2336ab92d4cf0e826fdd6bf6ce5fb0206095f007 | [
"Apache-2.0"
] | null | null | null | test/support/cases/utils_case.ex | elixir-garage/ex_tenant | 2336ab92d4cf0e826fdd6bf6ce5fb0206095f007 | [
"Apache-2.0"
] | null | null | null | defmodule ExTenant.Mysql.Cases.UtilsCase do
@moduledoc """
"""
use ExUnit.CaseTemplate
end
| 16.166667 | 43 | 0.731959 |
85087181358a9af53c6d76ac93347dbfd9087fef | 1,928 | ex | Elixir | apps/glayu/lib/glayu/cli/help.ex | pmartinezalvarez/glayu | 8dc30eea4d04c38f5c7999b593c066828423a3dc | [
"MIT"
] | 51 | 2017-05-21T07:27:34.000Z | 2017-11-30T04:34:17.000Z | apps/glayu/lib/glayu/cli/help.ex | doc22940/glayu | 8dc30eea4d04c38f5c7999b593c066828423a3dc | [
"MIT"
] | 17 | 2017-06-14T18:40:44.000Z | 2017-08-20T16:14:58.000Z | apps/glayu/lib/glayu/cli/help.ex | doc22940/glayu | 8dc30eea4d04c38f5c7999b593c066828423a3dc | [
"MIT"
] | 5 | 2017-06-04T19:55:56.000Z | 2017-07-29T16:18:58.000Z | defmodule Glayu.CLI.Help do
@behaviour Glayu.CLI.Command
alias Glayu.CLI.Utils
def options do
[]
end
def aliases do
[]
end
def help do
IO.ANSI.format(["\n",
"glayu ", :reset, :light_cyan, "help ", :reset, "[", :bright, "command", :reset, "]\n",
"\n",
"Displays help.\n",
... | 30.125 | 159 | 0.514523 |
85089648ab545c980f3b8f267be9e15011469268 | 316 | exs | Elixir | priv/repo/migrations/20181124204918_create_visits.exs | tashavanes/p14_neplaces | dbb4fbc675e40b6d4f8e6bef39946987bfde35c8 | [
"MIT"
] | null | null | null | priv/repo/migrations/20181124204918_create_visits.exs | tashavanes/p14_neplaces | dbb4fbc675e40b6d4f8e6bef39946987bfde35c8 | [
"MIT"
] | 1 | 2018-11-24T22:49:48.000Z | 2018-11-24T22:49:48.000Z | priv/repo/migrations/20181124204918_create_visits.exs | tashavanes/p14_neplaces | dbb4fbc675e40b6d4f8e6bef39946987bfde35c8 | [
"MIT"
] | null | null | null | defmodule P14Neplaces.Repo.Migrations.CreateVisits do
use Ecto.Migration
def change do
create table(:visits) do
add :date, :date
add :time, :time
add :place, :string
add :state, :string
add :description, :text
add :rating, :integer
timestamps()
end
end
end
| 17.555556 | 53 | 0.623418 |
8508a8dd0942d68b040dd0daef3d489cd470e82f | 1,965 | exs | Elixir | clients/binary_authorization/mix.exs | ukrbublik/elixir-google-api | 364cec36bc76f60bec94cbcad34844367a29d174 | [
"Apache-2.0"
] | null | null | null | clients/binary_authorization/mix.exs | ukrbublik/elixir-google-api | 364cec36bc76f60bec94cbcad34844367a29d174 | [
"Apache-2.0"
] | null | null | null | clients/binary_authorization/mix.exs | ukrbublik/elixir-google-api | 364cec36bc76f60bec94cbcad34844367a29d174 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 29.328358 | 181 | 0.672265 |
8508b6ff4e17e833529b62e5cd09a02f46a755ef | 1,323 | ex | Elixir | lesson_06/demo/user_cats_umbrella/apps/user_cats_web/lib/user_cats_web/endpoint.ex | martijnmeeldijk/ip_major | 867f09975aa8db0b308081216ace639c5677446b | [
"BSD-3-Clause"
] | 1 | 2021-09-22T09:56:35.000Z | 2021-09-22T09:56:35.000Z | lesson_06/demo/user_cats_umbrella/apps/user_cats_web/lib/user_cats_web/endpoint.ex | martijnmeeldijk/ip_major | 867f09975aa8db0b308081216ace639c5677446b | [
"BSD-3-Clause"
] | 7 | 2020-03-14T19:30:29.000Z | 2022-02-27T01:20:40.000Z | lesson_06/demo/user_cats_umbrella/apps/user_cats_web/lib/user_cats_web/endpoint.ex | martijnmeeldijk/ip_major | 867f09975aa8db0b308081216ace639c5677446b | [
"BSD-3-Clause"
] | 11 | 2020-02-13T14:52:45.000Z | 2020-08-03T12:18:56.000Z | defmodule UserCatsWeb.Endpoint do
use Phoenix.Endpoint, otp_app: :user_cats_web
socket "/socket", UserCatsWeb.UserSocket,
websocket: true,
longpoll: false
# Serve at "/" the static files from "priv/static" directory.
#
# You should set gzip to true if you are running phx.digest
# when deploying yo... | 28.148936 | 69 | 0.715042 |
8508cb1df0749993bff79fb1c05bd12e69e01033 | 2,693 | ex | Elixir | test/support/exemplars/params/bulk_procedure_vm.ex | brownt23/crit19 | c45c7b3ae580c193168d83144da0eeb9bc91c8a9 | [
"MIT"
] | 6 | 2019-07-16T19:31:23.000Z | 2021-06-05T19:01:05.000Z | test/support/exemplars/params/bulk_procedure_vm.ex | brownt23/crit19 | c45c7b3ae580c193168d83144da0eeb9bc91c8a9 | [
"MIT"
] | null | null | null | test/support/exemplars/params/bulk_procedure_vm.ex | brownt23/crit19 | c45c7b3ae580c193168d83144da0eeb9bc91c8a9 | [
"MIT"
] | 3 | 2020-02-24T23:38:27.000Z | 2020-08-01T23:50:17.000Z | defmodule Crit.Exemplars.Params.BulkProcedures do
@moduledoc """
%{
"0" => %{"frequency_id" => "32", "index" => "0", "name" => ""},
"1" => %{
"frequency_id" => "32",
"index" => "1",
"name" => "",
"species_ids" => ["1"]
},
"2" => %{"frequency_id" => "32", "index" => "2", "nam... | 31.313953 | 84 | 0.538804 |
8508e73c6734afb44fc104173f25d7c6a89eb1c4 | 1,197 | ex | Elixir | project/gamenect/lib/gamenect/endpoint.ex | daemonfire300/learning_phoenix | 0ab0cb1feacda4ec5c0ab0a5324835a150db22ab | [
"MIT"
] | null | null | null | project/gamenect/lib/gamenect/endpoint.ex | daemonfire300/learning_phoenix | 0ab0cb1feacda4ec5c0ab0a5324835a150db22ab | [
"MIT"
] | null | null | null | project/gamenect/lib/gamenect/endpoint.ex | daemonfire300/learning_phoenix | 0ab0cb1feacda4ec5c0ab0a5324835a150db22ab | [
"MIT"
] | null | null | null | defmodule Gamenect.Endpoint do
use Phoenix.Endpoint, otp_app: :gamenect
socket "/socket", Gamenect.UserSocket
# Serve at "/" the static files from "priv/static" directory.
#
# You should set gzip to true if you are running phoenix.digest
# when deploying your static files in production.
plug Plug.Static... | 27.837209 | 69 | 0.715957 |
8508f1c8d71862c7c85fd341111797871cfde4b5 | 819 | ex | Elixir | lib/weirding.ex | kianmeng/weirding | f912d15177db9c2148e36f1382e492c2354a1382 | [
"MIT"
] | null | null | null | lib/weirding.ex | kianmeng/weirding | f912d15177db9c2148e36f1382e492c2354a1382 | [
"MIT"
] | null | null | null | lib/weirding.ex | kianmeng/weirding | f912d15177db9c2148e36f1382e492c2354a1382 | [
"MIT"
] | null | null | null | defmodule Weirding do
@moduledoc """
Weirding offers the best in class solution for generating tons of absurd text for your
elixir project.
```
Weirding.words()
=> "Holograms twisted her eyes. An uncomfortable stirring sounded genuinely happy. Case put aside to the lift of the blasphemy pouring her call it... | 25.59375 | 267 | 0.677656 |
85090935791dda2853d0f37f1e7049699711da17 | 2,447 | exs | Elixir | apps/ewallet/priv/repo/seeder.exs | turbo-play/ewallet | b7fee3eed62ac716f46246132c2ead1045f2e4f3 | [
"Apache-2.0"
] | 2 | 2019-07-13T05:49:03.000Z | 2021-08-19T23:58:23.000Z | apps/ewallet/priv/repo/seeder.exs | turbo-play/ewallet | b7fee3eed62ac716f46246132c2ead1045f2e4f3 | [
"Apache-2.0"
] | null | null | null | apps/ewallet/priv/repo/seeder.exs | turbo-play/ewallet | b7fee3eed62ac716f46246132c2ead1045f2e4f3 | [
"Apache-2.0"
] | 3 | 2018-05-08T17:15:42.000Z | 2021-11-10T04:08:33.000Z | defmodule EWallet.Seeder do
@moduledoc """
Script for populating the database.
# Adding additional seeds
To add more types of seeds, simply create a new seed file,
then append the file name to either `@init_seeds` or `@full_seeds` below.
# Seeding script
Inside each seed file, you can seed the entity ... | 25.489583 | 83 | 0.673069 |
8509399007a9f7458c7c8fadb8867477a8bdb3b8 | 955 | ex | Elixir | lib/perspective/projection/define_broadcaster.ex | backmath/perspective | a0a577d0ffb06805b64e4dcb171a093e051884b0 | [
"MIT"
] | 2 | 2020-04-24T19:43:06.000Z | 2020-04-24T19:52:27.000Z | lib/perspective/projection/define_broadcaster.ex | backmath/perspective | a0a577d0ffb06805b64e4dcb171a093e051884b0 | [
"MIT"
] | null | null | null | lib/perspective/projection/define_broadcaster.ex | backmath/perspective | a0a577d0ffb06805b64e4dcb171a093e051884b0 | [
"MIT"
] | null | null | null | defmodule Perspective.Projection.DefineBroadcaster do
def define(path, reactor, caller) do
module_name = Perspective.ProjectionNames.broadcaster(reactor)
endpoint = Perspective.ProjectionNames.endpoint(caller.module)
definition =
quote do
use Perspective.GenServer
initial_state do
... | 25.810811 | 70 | 0.660733 |
850978fe6cce06d367fb794c21034fa7a1908873 | 3,679 | ex | Elixir | lib/ffmpex/options/advanced.ex | kianmeng/ffmpex | 03273f671d94e7f475714a15913aef3ed8c284ce | [
"MIT"
] | 187 | 2016-08-16T15:34:21.000Z | 2022-02-11T13:04:33.000Z | lib/ffmpex/options/advanced.ex | kianmeng/ffmpex | 03273f671d94e7f475714a15913aef3ed8c284ce | [
"MIT"
] | 28 | 2016-08-17T20:10:42.000Z | 2022-03-14T08:38:59.000Z | lib/ffmpex/options/advanced.ex | kianmeng/ffmpex | 03273f671d94e7f475714a15913aef3ed8c284ce | [
"MIT"
] | 39 | 2016-11-19T03:06:56.000Z | 2022-03-17T02:13:02.000Z | defmodule FFmpex.Options.Advanced do
@moduledoc """
https://ffmpeg.org/ffmpeg-all.html#Advanced-options
"""
alias FFmpex.Option
@known_options %{
map: %Option{name: "-map", require_arg: true, contexts: [:output]},
ignore_unknown: %Option{name: "-ignore_unknown"},
copy_u... | 69.415094 | 121 | 0.59527 |
85099f6492937d844121f05f5707a627b04478ae | 858 | ex | Elixir | apps/admin/lib/admin/application.ex | glv/revista | 00ecb0780c62a5525155a773b959b169e0e0500d | [
"MIT"
] | 17 | 2019-01-31T18:33:09.000Z | 2022-01-18T12:38:49.000Z | apps/admin/lib/admin/application.ex | glv/revista | 00ecb0780c62a5525155a773b959b169e0e0500d | [
"MIT"
] | null | null | null | apps/admin/lib/admin/application.ex | glv/revista | 00ecb0780c62a5525155a773b959b169e0e0500d | [
"MIT"
] | 4 | 2018-11-10T01:56:17.000Z | 2020-06-09T21:10:41.000Z | defmodule Admin.Application do
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
@moduledoc false
use Application
def start(_type, _args) do
# List all child processes to be supervised
children = [
# Start the endpoint when the application starts
... | 28.6 | 64 | 0.714452 |
8509a877839f308e626bcf80e0f60e33e2275e48 | 12,396 | exs | Elixir | mix_common.exs | IvanPereyra-23/PaaS | 0179c7b57645473308b0a295a70b6284ed220fbf | [
"Apache-2.0"
] | 1 | 2020-08-27T18:43:11.000Z | 2020-08-27T18:43:11.000Z | mix_common.exs | IvanPereyra-23/PaaS | 0179c7b57645473308b0a295a70b6284ed220fbf | [
"Apache-2.0"
] | null | null | null | mix_common.exs | IvanPereyra-23/PaaS | 0179c7b57645473308b0a295a70b6284ed220fbf | [
"Apache-2.0"
] | 1 | 2020-08-27T18:43:21.000Z | 2020-08-27T18:43:21.000Z | # Copyright(c) 2015-2020 ACCESS CO., LTD. All rights reserved.
#
# Modules defined in this file provides common project settings
# for antikythera itself, antikythera instances and also gears.
# These modules must be loadable independently of `Antikythera.Mixfile`, i.e.,
# they must be defined in a file separate from ... | 39.603834 | 178 | 0.671265 |
8509c4d61c66abe1f7ba75f28bdd9ec9bb32a927 | 253 | ex | Elixir | lib/bitcoin/protocol/types/string_array.ex | coinscript/bitcoinsv-elixir | 2dda03c81edc5662743ed2922abb5b1910d9c09a | [
"Apache-2.0"
] | 2 | 2019-08-12T04:53:57.000Z | 2019-09-03T03:47:33.000Z | lib/bitcoin/protocol/types/string_array.ex | coinscript/bitcoinsv-elixir | 2dda03c81edc5662743ed2922abb5b1910d9c09a | [
"Apache-2.0"
] | null | null | null | lib/bitcoin/protocol/types/string_array.ex | coinscript/bitcoinsv-elixir | 2dda03c81edc5662743ed2922abb5b1910d9c09a | [
"Apache-2.0"
] | null | null | null | defmodule Bitcoin.Protocol.Types.StringArray do
alias Bitcoin.Protocol.Types.VarString
import Bitcoin.Protocol
@spec parse_stream(binary) :: {list, binary}
def parse_stream(payload), do: payload |> collect_items(&VarString.parse_stream/1)
end
| 28.111111 | 84 | 0.782609 |
8509dce57267e4405ed7bfbca1333a1e002e5903 | 1,293 | ex | Elixir | lib/fast_global/schema/changeset.ex | noizu-labs/KitchenSinkAdvanced | 6d91b5dd4f59cd9838f87a64605a0ef87f4301c8 | [
"MIT"
] | null | null | null | lib/fast_global/schema/changeset.ex | noizu-labs/KitchenSinkAdvanced | 6d91b5dd4f59cd9838f87a64605a0ef87f4301c8 | [
"MIT"
] | null | null | null | lib/fast_global/schema/changeset.ex | noizu-labs/KitchenSinkAdvanced | 6d91b5dd4f59cd9838f87a64605a0ef87f4301c8 | [
"MIT"
] | null | null | null | #-------------------------------------------------------------------------------
# Author: Keith Brings
# Copyright (C) 2018 Noizu Labs, Inc. All rights reserved.
#-------------------------------------------------------------------------------
defmodule Noizu.FastGlobal.V3.ChangeSet do
alias Noizu.MnesiaVersioning.C... | 32.325 | 89 | 0.473318 |
8509f396e2c5cf76bbf8cdc0f3377ccbed892f93 | 672 | exs | Elixir | config/test.exs | henrique-tavares/rocketpay | 0c37071cd3e63dd51cae16d773522eb6a5de84d4 | [
"MIT"
] | null | null | null | config/test.exs | henrique-tavares/rocketpay | 0c37071cd3e63dd51cae16d773522eb6a5de84d4 | [
"MIT"
] | null | null | null | config/test.exs | henrique-tavares/rocketpay | 0c37071cd3e63dd51cae16d773522eb6a5de84d4 | [
"MIT"
] | null | null | null | use Mix.Config
# Configure your database
#
# The MIX_TEST_PARTITION environment variable can be used
# to provide built-in test partitioning in CI environment.
# Run `mix help test` for more information.
config :rocketpay, Rocketpay.Repo,
username: "postgres",
password: "123456789",
database: "rocketpay_test#{Sy... | 29.217391 | 68 | 0.752976 |
850a08bc432cb1deb776fb1715d254345d40e9e6 | 223 | ex | Elixir | lib/ssdp/handler.ex | rosetta-home/ssdp | 80bd4b75868d2605be5d497b5b9f36ac051ae459 | [
"Apache-2.0"
] | 1 | 2020-03-22T23:36:34.000Z | 2020-03-22T23:36:34.000Z | lib/ssdp/handler.ex | rosetta-home/ssdp | 80bd4b75868d2605be5d497b5b9f36ac051ae459 | [
"Apache-2.0"
] | null | null | null | lib/ssdp/handler.ex | rosetta-home/ssdp | 80bd4b75868d2605be5d497b5b9f36ac051ae459 | [
"Apache-2.0"
] | null | null | null | defmodule SSDP.Handler do
use GenEvent
require Logger
def init do
{:ok, []}
end
def handle_event({:device, device} = obj, parent) do
send(parent, obj)
{:ok, parent}
end
end
| 15.928571 | 56 | 0.560538 |
850a5b96a87c5a1b17878bf40ea0901f7ee13122 | 6,341 | exs | Elixir | elixir/test/homework/transactions_test.exs | williamhudson1218/web-homework | 0582a765854b36dd0f54ebff95abbe5f2f54269d | [
"MIT"
] | 1 | 2021-01-24T06:15:39.000Z | 2021-01-24T06:15:39.000Z | elixir/test/homework/transactions_test.exs | williamhudson1218/web-homework | 0582a765854b36dd0f54ebff95abbe5f2f54269d | [
"MIT"
] | null | null | null | elixir/test/homework/transactions_test.exs | williamhudson1218/web-homework | 0582a765854b36dd0f54ebff95abbe5f2f54269d | [
"MIT"
] | null | null | null | defmodule Homework.TransactionsTest do
use Homework.DataCase
alias Homework.Merchants
alias Homework.Transactions
alias Homework.Users
alias Homework.Companies
describe "transactions" do
alias Homework.Transactions.Transaction
setup do
{:ok, merchant1} =
Merchants.create_merchant(%{... | 30.931707 | 108 | 0.63807 |
850a68f158c1f1b7af746f6be90879af8fdb549d | 4,592 | exs | Elixir | test/test_helper.exs | codeclimate-community/credo | b960a25d604b4499a2577321f9d61b39dc4b0437 | [
"MIT"
] | null | null | null | test/test_helper.exs | codeclimate-community/credo | b960a25d604b4499a2577321f9d61b39dc4b0437 | [
"MIT"
] | null | null | null | test/test_helper.exs | codeclimate-community/credo | b960a25d604b4499a2577321f9d61b39dc4b0437 | [
"MIT"
] | null | null | null | Code.require_file("support/test_application.exs", __DIR__)
Credo.Test.Application.start([], [])
ExUnit.start()
check_version =
~w(1.6.5 1.7.0)
|> Enum.reduce([], fn version, acc ->
# allow -dev versions so we can test before the Elixir release.
if System.version() |> Version.match?("< #{version}-dev") do... | 25.943503 | 93 | 0.682056 |
850a72060e3bd7f17d558cd194fc7b316c1c0729 | 1,412 | ex | Elixir | clients/webmaster/lib/google_api/webmaster/v3/model/api_dimension_filter.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/webmaster/lib/google_api/webmaster/v3/model/api_dimension_filter.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/webmaster/lib/google_api/webmaster/v3/model/api_dimension_filter.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... | 28.24 | 79 | 0.736544 |
850a83f94779cd542dbb725d2e37ea1b3b4f0761 | 888 | ex | Elixir | test/support/conn_case.ex | beji/hiit_live | ddd835d27cbe733ea177540dd625b665c8b54f86 | [
"MIT"
] | null | null | null | test/support/conn_case.ex | beji/hiit_live | ddd835d27cbe733ea177540dd625b665c8b54f86 | [
"MIT"
] | null | null | null | test/support/conn_case.ex | beji/hiit_live | ddd835d27cbe733ea177540dd625b665c8b54f86 | [
"MIT"
] | null | null | null | defmodule HiitLiveWeb.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 t... | 26.909091 | 59 | 0.72973 |
850a874bb21343dc2a524a4897ab167e03e09c3c | 624 | ex | Elixir | lib/regen.ex | Rahien/mu-authorization | 4535afd74ae3190d168bbebdf33cb40b919742f5 | [
"MIT"
] | null | null | null | lib/regen.ex | Rahien/mu-authorization | 4535afd74ae3190d168bbebdf33cb40b919742f5 | [
"MIT"
] | null | null | null | lib/regen.ex | Rahien/mu-authorization | 4535afd74ae3190d168bbebdf33cb40b919742f5 | [
"MIT"
] | null | null | null | defmodule Regen do
@doc """
Builds a generator for regenartion from the supplied (parsed) element.
Starts scanning from the EBNF symbol <symbol>, which defaults to things that scan SPARQL queries.
"""
def make_generator( element, symbol\\:Sparql ) do
Regen.Constructor.make( { :symbol, symbol }, %Regen.St... | 31.2 | 116 | 0.677885 |
850aa62cd0bd78c6726afa8d9e62aed9e5d47966 | 782 | ex | Elixir | lib/mailapi.ex | tongdao/mailapi | 529e04cdcd1f2a4449524f48cadaae233588abee | [
"MIT"
] | null | null | null | lib/mailapi.ex | tongdao/mailapi | 529e04cdcd1f2a4449524f48cadaae233588abee | [
"MIT"
] | null | null | null | lib/mailapi.ex | tongdao/mailapi | 529e04cdcd1f2a4449524f48cadaae233588abee | [
"MIT"
] | null | null | null | defmodule Mailapi do
use Application
def start(_type, _args) do
import Supervisor.Spec, warn: false
dispatch = :cowboy_router.compile([
{:_, [
{"/", Mailapi.HomeHandler, []},
{"/mail", Mailapi.MailHandler, []}
]}
])
... | 25.225806 | 62 | 0.493606 |
850ab7667dc202fe095b145f15925885d355dd70 | 196 | ex | Elixir | example/lib/example/pr_lister.ex | paulanthonywilson/libexample | fb58a407fc0095988a29e41176522ea418e74138 | [
"MIT"
] | null | null | null | example/lib/example/pr_lister.ex | paulanthonywilson/libexample | fb58a407fc0095988a29e41176522ea418e74138 | [
"MIT"
] | null | null | null | example/lib/example/pr_lister.ex | paulanthonywilson/libexample | fb58a407fc0095988a29e41176522ea418e74138 | [
"MIT"
] | null | null | null | defmodule Example.PrLister do
use Libexample, otp_app: :example
def count(owner, repo) do
with {:ok, prs} <- list_pull_requests(owner, repo) do
{:ok, length(prs)}
end
end
end
| 19.6 | 57 | 0.663265 |
850ae1bb4c4edaed3615e8a3c8ef244eac9bafe7 | 3,951 | exs | Elixir | test/brady_test.exs | dbernazal/brady | bd8165dc775ca57b9ad38f46a49b215e3d0c4369 | [
"MIT"
] | 34 | 2016-03-24T02:17:13.000Z | 2021-09-28T18:02:34.000Z | test/brady_test.exs | dbernazal/brady | bd8165dc775ca57b9ad38f46a49b215e3d0c4369 | [
"MIT"
] | 18 | 2016-04-15T14:31:37.000Z | 2020-10-15T18:48:55.000Z | test/brady_test.exs | isabella232/brady | 7e5e1a8a3d6cbcff90191410ae00f1f7211308b9 | [
"MIT"
] | 8 | 2016-10-08T20:47:28.000Z | 2021-01-04T15:41:17.000Z | defmodule BradyTest do
use ExUnit.Case
import ExUnit.CaptureLog
alias Plug.Conn
doctest Brady
setup do
Application.put_env(:brady, :otp_app, :brady)
Application.put_env(:brady, :svg_path, "../../../../test/support/svg")
end
test "body_class returns controller and action" do
conn = %Conn{
... | 30.160305 | 190 | 0.646672 |
850af04b35df4e4377fdef57b6e6807ba7fac88b | 74 | exs | Elixir | test/views/page_view_test.exs | rrevanth/cantata | 2d20b010c5b8565ad6d17d62ea544cf6b597f5e2 | [
"MIT"
] | null | null | null | test/views/page_view_test.exs | rrevanth/cantata | 2d20b010c5b8565ad6d17d62ea544cf6b597f5e2 | [
"MIT"
] | null | null | null | test/views/page_view_test.exs | rrevanth/cantata | 2d20b010c5b8565ad6d17d62ea544cf6b597f5e2 | [
"MIT"
] | null | null | null | defmodule Cantata.PageViewTest do
use Cantata.ConnCase, async: true
end
| 18.5 | 35 | 0.810811 |
850b0457b028867dc21e7cf0c4585c4a623af475 | 2,535 | ex | Elixir | clients/cloud_run/lib/google_api/cloud_run/v1alpha1/model/http_get_action.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/cloud_run/lib/google_api/cloud_run/v1alpha1/model/http_get_action.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/cloud_run/lib/google_api/cloud_run/v1alpha1/model/http_get_action.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.966102 | 218 | 0.715187 |
850b1bd9bd300285da0f9ed0a6122fe659c28b1f | 1,662 | ex | Elixir | clients/drive_activity/lib/google_api/drive_activity/v2/model/team_drive_reference.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-10-01T09:20:41.000Z | 2021-10-01T09:20:41.000Z | clients/drive_activity/lib/google_api/drive_activity/v2/model/team_drive_reference.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/drive_activity/lib/google_api/drive_activity/v2/model/team_drive_reference.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... | 33.24 | 123 | 0.725632 |
850b22cc9ed2414ca0e0d3529c38b7c39e03c446 | 647 | ex | Elixir | lib/phantomchain/crypto/helpers/der.ex | PhantomChain/elixir-crypto | d842920d91a9bcbe997736b487f4e74ba0bf2fe3 | [
"MIT"
] | null | null | null | lib/phantomchain/crypto/helpers/der.ex | PhantomChain/elixir-crypto | d842920d91a9bcbe997736b487f4e74ba0bf2fe3 | [
"MIT"
] | null | null | null | lib/phantomchain/crypto/helpers/der.ex | PhantomChain/elixir-crypto | d842920d91a9bcbe997736b487f4e74ba0bf2fe3 | [
"MIT"
] | null | null | null | defmodule PhantomChain.Crypto.Helpers.Der do
def encode_sequence(r, s) do
combined = encode_integer(r) <> encode_integer(s)
<<0x30>> <> <<byte_length(combined)>> <> combined
end
# private
defp encode_integer(integer) do
h = integer |> Integer.to_string(16)
s =
case Integer.mod(String.le... | 20.870968 | 53 | 0.579598 |
850b260e51139ff8bc0a22553e5768d637f55379 | 2,751 | ex | Elixir | lib/layouts/components/radio_group.ex | somersbmatthews/scenic_layout_o_matic | 6327916554d71384699b15c890fdae22127f45f0 | [
"MIT"
] | 43 | 2019-10-03T20:08:37.000Z | 2021-11-15T11:22:59.000Z | lib/layouts/components/radio_group.ex | somersbmatthews/scenic_layout_o_matic | 6327916554d71384699b15c890fdae22127f45f0 | [
"MIT"
] | 13 | 2019-09-03T16:37:37.000Z | 2019-10-03T16:06:47.000Z | lib/layouts/components/radio_group.ex | somersbmatthews/scenic_layout_o_matic | 6327916554d71384699b15c890fdae22127f45f0 | [
"MIT"
] | 2 | 2019-10-19T21:05:13.000Z | 2019-11-06T22:53:12.000Z | defmodule LayoutOMatic.Layouts.Components.RadioGroup do
# Checkbox size based on :button_font_size with 20 being the default; width/height override
@default_font_size 20
@default_font :roboto
def translate(
%{
component: component,
starting_xy: starting_xy,
grid_xy: grid_x... | 30.566667 | 93 | 0.560887 |
850b28cf874f2d514ef0360d1f234a7fa24231d4 | 1,956 | ex | Elixir | lib/rogu_web/controllers/log_controller.ex | aquarhead/rogu | 576c798d35bfb014d215c112bc52b6f0fdbc3797 | [
"MIT"
] | 3 | 2018-05-24T04:38:25.000Z | 2020-01-20T18:21:04.000Z | lib/rogu_web/controllers/log_controller.ex | aquarhead/rogu | 576c798d35bfb014d215c112bc52b6f0fdbc3797 | [
"MIT"
] | 8 | 2018-05-30T23:11:27.000Z | 2020-07-16T04:54:34.000Z | lib/rogu_web/controllers/log_controller.ex | aquarhead/rogu | 576c798d35bfb014d215c112bc52b6f0fdbc3797 | [
"MIT"
] | null | null | null | defmodule RoguWeb.LogController do
use RoguWeb, :controller
alias Rogu.Life
alias Rogu.Life.Log
plug :auth, [] when action in [:new, :edit, :update, :delete]
def index(conn, _params) do
logs = Life.list_logs()
render(conn, "index.html", logs: logs)
end
def new(conn, _params) do
changeset =... | 25.076923 | 65 | 0.587423 |
850b362af60937abf13e0eae9cd50b62b2f9c54a | 327 | ex | Elixir | lib/recaptcha/response.ex | 0x6a68/recaptcha | f93e57144b312764feca6cc669a762bf0f0116cd | [
"MIT"
] | null | null | null | lib/recaptcha/response.ex | 0x6a68/recaptcha | f93e57144b312764feca6cc669a762bf0f0116cd | [
"MIT"
] | 1 | 2021-03-30T07:27:48.000Z | 2021-03-30T07:27:48.000Z | lib/recaptcha/response.ex | steady-media/recaptcha | f93e57144b312764feca6cc669a762bf0f0116cd | [
"MIT"
] | null | null | null | defmodule Recaptcha.Response do
@moduledoc """
A struct representing the successful recaptcha response from the reCAPTCHA API.
"""
defstruct challenge_ts: "", hostname: "", score: ""
@type t :: %__MODULE__{
challenge_ts: String.t(),
hostname: String.t(),
score: float()
... | 25.153846 | 83 | 0.614679 |
850b41ac0fe6ed11c516f2e4c267190e94783666 | 884 | ex | Elixir | lib/vispana_web/live/config_live/index.ex | williamflynt/vispana | 0754514f769e675543d9ffd5b6acf6965e640632 | [
"MIT"
] | 30 | 2022-02-16T13:02:14.000Z | 2022-03-24T12:47:35.000Z | lib/vispana_web/live/config_live/index.ex | williamflynt/vispana | 0754514f769e675543d9ffd5b6acf6965e640632 | [
"MIT"
] | 5 | 2022-02-16T02:21:01.000Z | 2022-03-13T09:29:56.000Z | lib/vispana_web/live/config_live/index.ex | williamflynt/vispana | 0754514f769e675543d9ffd5b6acf6965e640632 | [
"MIT"
] | null | null | null | defmodule VispanaWeb.ConfigLive.Index do
import Logger, warn: false
use VispanaWeb, :live_view
alias VispanaWeb.VispanaCommon
@impl true
def mount(params, session, socket) do
VispanaCommon.mount(params, session, socket)
end
@impl true
def handle_params(params, url, socket) do
VispanaCommon.h... | 22.666667 | 99 | 0.726244 |
850b50712aa4a5bbc8a5a4c5266db5d7d8653a98 | 559 | ex | Elixir | lib/bus_car_dsl/filter.ex | elbow-jason/bus_car_dsl | a83a16b9c5c1c954b7b2284dd6a5636dbb7f4157 | [
"MIT"
] | null | null | null | lib/bus_car_dsl/filter.ex | elbow-jason/bus_car_dsl | a83a16b9c5c1c954b7b2284dd6a5636dbb7f4157 | [
"MIT"
] | 2 | 2017-04-13T22:02:38.000Z | 2017-04-13T22:17:26.000Z | lib/bus_car_dsl/filter.ex | elbow-jason/bus_car_dsl | a83a16b9c5c1c954b7b2284dd6a5636dbb7f4157 | [
"MIT"
] | null | null | null | defmodule BusCarDsl.Filter do
use BusCarDsl.Element
@key :filter
TreeList.rule(@key, :match)
TreeList.rule(@key, :term)
TreeList.rule(@key, :exists)
TreeList.rule(@key, :prefix)
TreeList.rule(@key, :wildcard)
TreeList.rule(@key, :range)
TreeList.rule(@key, :fuzzy)
TreeList.rule(@key, :regexp)
... | 18.633333 | 47 | 0.633274 |
850b5bf3e48476fbdeb5310bdbcc9d88ad184cbd | 1,133 | ex | Elixir | server/lib/blogsley/application.ex | blogsley/blogsley-absinthe | 7266f80a0638f8c30c37b37296ba5d78dcf8fb8b | [
"MIT"
] | 3 | 2020-01-23T06:37:18.000Z | 2020-12-05T08:31:00.000Z | server/lib/blogsley/application.ex | blogsley/blogsley-absinthe | 7266f80a0638f8c30c37b37296ba5d78dcf8fb8b | [
"MIT"
] | 16 | 2020-04-04T05:13:52.000Z | 2022-03-31T11:19:20.000Z | server/lib/blogsley/application.ex | blogsley/blogsley | 7266f80a0638f8c30c37b37296ba5d78dcf8fb8b | [
"MIT"
] | null | null | null | defmodule Blogsley.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 = [
# Start the Ecto repository
Blogsley.Repo,
# Start the Telemetry supervisor
Blogs... | 29.815789 | 77 | 0.70609 |
850b948da0d3f41b9cd09662ae5828b7af49790d | 1,068 | ex | Elixir | lib/blog_post_api/pagination.ex | dannielb/blog-post-api | 214520beb57164375bc6596e85cbc42be67c0fb9 | [
"MIT"
] | null | null | null | lib/blog_post_api/pagination.ex | dannielb/blog-post-api | 214520beb57164375bc6596e85cbc42be67c0fb9 | [
"MIT"
] | null | null | null | lib/blog_post_api/pagination.ex | dannielb/blog-post-api | 214520beb57164375bc6596e85cbc42be67c0fb9 | [
"MIT"
] | null | null | null | defmodule BlogPostApi.Pagination do
@moduledoc """
Module that includes `page/3` for pagination query.
"""
import Ecto.Query
alias BlogPostApi.Repo
@default_per_page 15
def page(query, page, opts \\ [])
def page(query, page, opts) when is_nil(page),
do: page(query, 1, opts)
def page(query, pa... | 23.217391 | 74 | 0.617978 |
850b961f9dc2e96dfef1b85233a12c09dbad05eb | 899 | ex | Elixir | api/lib/microblogger/endpoint.ex | AlexYanai/microblogger | 833320759cddd276bc31dabaec6f0c9e2eabb05a | [
"MIT"
] | null | null | null | api/lib/microblogger/endpoint.ex | AlexYanai/microblogger | 833320759cddd276bc31dabaec6f0c9e2eabb05a | [
"MIT"
] | null | null | null | api/lib/microblogger/endpoint.ex | AlexYanai/microblogger | 833320759cddd276bc31dabaec6f0c9e2eabb05a | [
"MIT"
] | null | null | null | defmodule Microblogger.Endpoint do
use Phoenix.Endpoint, otp_app: :microblogger
socket "/socket", Microblogger.UserSocket
plug Plug.Static,
at: "/", from: :microblogger, gzip: false,
only: ~w(css fonts images js favicon.ico robots.txt)
if code_reloading? do
plug Phoenix.CodeReloader
end
plug... | 22.475 | 59 | 0.694105 |
850bae239820e751957d27a8a60c70ca38a6cb0e | 5,863 | exs | Elixir | test/oban/config_test.exs | hartzell/oban | 2901cd4655d61eda95813cc1880b003f37cd8983 | [
"Apache-2.0"
] | null | null | null | test/oban/config_test.exs | hartzell/oban | 2901cd4655d61eda95813cc1880b003f37cd8983 | [
"Apache-2.0"
] | null | null | null | test/oban/config_test.exs | hartzell/oban | 2901cd4655d61eda95813cc1880b003f37cd8983 | [
"Apache-2.0"
] | null | null | null | defmodule Oban.ConfigTest do
use Oban.Case, async: true
alias Oban.Config
describe "start_link/1" do
test "a config struct is stored for retreival" do
conf = Config.new(repo: Repo)
{:ok, pid} = Config.start_link(conf: conf)
assert %Config{} = Config.get(pid)
end
end
describe "ne... | 29.024752 | 79 | 0.662801 |
850bbb9a9c2c5a183933a1a112b155f0f5059d7b | 2,725 | exs | Elixir | hw2/Part 3/bulls_and_cows_part3_test.exs | alpdenizz/ElixirPlayground | 58b5a16c489058e0067e4811042d96fe6a5f8d59 | [
"MIT"
] | null | null | null | hw2/Part 3/bulls_and_cows_part3_test.exs | alpdenizz/ElixirPlayground | 58b5a16c489058e0067e4811042d96fe6a5f8d59 | [
"MIT"
] | null | null | null | hw2/Part 3/bulls_and_cows_part3_test.exs | alpdenizz/ElixirPlayground | 58b5a16c489058e0067e4811042d96fe6a5f8d59 | [
"MIT"
] | null | null | null | defmodule BullsAndCowsPart3Test do
use ExUnit.Case
use Plug.Test
@opts GameRouter.init([])
test "Reports path / is not served by the application" do
conn = conn(:get, "/")
conn = GameRouter.call(conn, @opts)
assert conn.status == 404
assert conn.resp_body == "Oops"
end
... | 36.824324 | 112 | 0.571376 |
850bcd35604653ec3271d326270ea574e698df63 | 391 | exs | Elixir | priv/repo/migrations/20160730024335_create_friendship.exs | chinitadelrey/zero-to-graphql-using-phoenix | e5fbe4f9158aed2c5dfcd8c751e22b534fb09eb0 | [
"MIT"
] | 9 | 2019-03-26T22:16:08.000Z | 2021-09-27T12:42:34.000Z | priv/repo/migrations/20160730024335_create_friendship.exs | conradwt/zero-to-graphql-using-elixir | 1014681c5708e2ee02db6fb9b6f64cee0f533150 | [
"MIT"
] | 3 | 2020-06-08T23:03:49.000Z | 2020-06-09T03:11:12.000Z | priv/repo/migrations/20160730024335_create_friendship.exs | conradwt/zero-to-graphql-using-elixir | 1014681c5708e2ee02db6fb9b6f64cee0f533150 | [
"MIT"
] | 7 | 2019-01-15T17:00:07.000Z | 2021-07-18T23:30:29.000Z | defmodule ZeroPhoenix.Repo.Migrations.CreateFriendship do
use Ecto.Migration
def change do
create table(:friendships) do
add :person_id, references(:people, on_delete: :delete_all)
add :friend_id, references(:people, on_delete: :delete_all)
timestamps()
end
create index(:friendships... | 24.4375 | 65 | 0.710997 |
850bd361c6d59330518585d7719b579c28b2676d | 1,246 | exs | Elixir | spec/models/room_playlist_spec.exs | Poniverse/LunaTube-API | 433473f32ec04a636f6de60642e445fd2e478f98 | [
"Apache-2.0"
] | null | null | null | spec/models/room_playlist_spec.exs | Poniverse/LunaTube-API | 433473f32ec04a636f6de60642e445fd2e478f98 | [
"Apache-2.0"
] | null | null | null | spec/models/room_playlist_spec.exs | Poniverse/LunaTube-API | 433473f32ec04a636f6de60642e445fd2e478f98 | [
"Apache-2.0"
] | null | null | null | defmodule Lunatube.RoomPlaylistSpec do
use ESpec.Phoenix, model: RoomPlaylist, async: true
alias Lunatube.RoomPlaylist
let :room_playlist do
build :room_playlist
end
it "has a valid factory" do
changeset = room_playlist |> RoomPlaylist.changeset
expect(changeset.valid?).to be_true
end
it "i... | 27.688889 | 96 | 0.684591 |
850bd8078012dea7d58b15e4ebde85ec83f4e6c4 | 351 | exs | Elixir | test/monitor_test.exs | electricshaman/udev | cc304478f770de37acf2a9f040d418ae538f8818 | [
"Apache-2.0"
] | null | null | null | test/monitor_test.exs | electricshaman/udev | cc304478f770de37acf2a9f040d418ae538f8818 | [
"Apache-2.0"
] | null | null | null | test/monitor_test.exs | electricshaman/udev | cc304478f770de37acf2a9f040d418ae538f8818 | [
"Apache-2.0"
] | null | null | null | defmodule Udev.MonitorTest do
use ExUnit.Case
alias Udev.Monitor
test "return error if name other than udev or kernel is passed" do
assert {:error, _} = Monitor.start_link(:stuff)
assert {:ok, pid1} = Monitor.start_link(:udev)
assert {:ok, pid2} = Monitor.start_link(:kernel)
Monitor.stop(pid1)
... | 27 | 68 | 0.698006 |
850be6eec141e85c6b600c4affc44eb295739d68 | 1,660 | ex | Elixir | lib/mix/tasks/gradient.ex | Fl4m3Ph03n1x/gradient | 60d7d3fe2ebdf68747325c1e852959f8b92fdcee | [
"Apache-2.0"
] | null | null | null | lib/mix/tasks/gradient.ex | Fl4m3Ph03n1x/gradient | 60d7d3fe2ebdf68747325c1e852959f8b92fdcee | [
"Apache-2.0"
] | 1 | 2022-03-06T09:43:52.000Z | 2022-03-06T09:43:52.000Z | lib/mix/tasks/gradient.ex | Fl4m3Ph03n1x/gradient | 60d7d3fe2ebdf68747325c1e852959f8b92fdcee | [
"Apache-2.0"
] | null | null | null | defmodule Mix.Tasks.Gradient do
use Mix.Task
@impl Mix.Task
def run(_args) do
# Compile the project before the analysis
Mix.Tasks.Compile.run([])
files = get_beams_paths()
# IO.puts("Found files:\n #{Enum.join(Enum.concat(Map.values(files)), "\n ")}")
Application.ensure_all_started(:gradual... | 22.432432 | 83 | 0.590361 |
850be878d1ebd71890ef50f0df6b8028fae8c163 | 6,701 | exs | Elixir | test/runosaari/schedule_test.exs | codevictory/runosaari.net | 2462409ccf49987fa562b0ae189247c1fe6f1ccc | [
"MIT"
] | 1 | 2021-11-02T07:43:13.000Z | 2021-11-02T07:43:13.000Z | test/runosaari/schedule_test.exs | codevictory/runosaari.net | 2462409ccf49987fa562b0ae189247c1fe6f1ccc | [
"MIT"
] | null | null | null | test/runosaari/schedule_test.exs | codevictory/runosaari.net | 2462409ccf49987fa562b0ae189247c1fe6f1ccc | [
"MIT"
] | 1 | 2021-05-19T18:43:09.000Z | 2021-05-19T18:43:09.000Z | defmodule Runosaari.ScheduleTest do
use Runosaari.DataCase
alias Runosaari.Schedule
describe "performances" do
alias Runosaari.Schedule.Performance
@update_attrs %{
name: "some updated name",
paragraph1: "some updated paragraph1",
paragraph2: "some updated paragraph2",
paragraph... | 35.268421 | 94 | 0.686465 |
850bf92b58bdbcd359813ef1cff5ab7c476d15e3 | 1,222 | ex | Elixir | archive/elavon.ex | auroche/elavon | 8165a1b9abb4e73e214a75b22bc055b09f2a9119 | [
"MIT"
] | null | null | null | archive/elavon.ex | auroche/elavon | 8165a1b9abb4e73e214a75b22bc055b09f2a9119 | [
"MIT"
] | null | null | null | archive/elavon.ex | auroche/elavon | 8165a1b9abb4e73e214a75b22bc055b09f2a9119 | [
"MIT"
] | null | null | null | defmodule Elavon do
alias Elavon.Config
def merchant_credential do
%{
ssl_merchant_id: Config.merchant_id(),
ssl_user_id: Config.username(),
ssl_pin: Config.password()
}
end
def merchant_credential(map) do
Map.merge(map, merchant_credential())
end
def transact(tr... | 25.458333 | 70 | 0.62766 |
850c03eee7d4eb11885edbcc4a96f5f67a63a950 | 63 | ex | Elixir | web/views/page_view.ex | chasm/elmmeetup | 95f9850a075dcc6ea884279485c532ac2f4db803 | [
"MIT"
] | null | null | null | web/views/page_view.ex | chasm/elmmeetup | 95f9850a075dcc6ea884279485c532ac2f4db803 | [
"MIT"
] | 1 | 2018-12-26T09:07:03.000Z | 2018-12-26T09:07:03.000Z | web/views/page_view.ex | chasm/elmmeetup | 95f9850a075dcc6ea884279485c532ac2f4db803 | [
"MIT"
] | null | null | null | defmodule Elmmeetup.PageView do
use Elmmeetup.Web, :view
end
| 15.75 | 31 | 0.793651 |
850c0b9f28e0077dd9cef0ef5e8b629e47f3fa23 | 1,470 | exs | Elixir | test/dgraph_ex/client/adapters/http/query_test.exs | sunny-g/dgraph_ex | fab9f1fd684538758ed211537c3b0869233e7ce4 | [
"MIT"
] | 1 | 2019-05-01T15:18:41.000Z | 2019-05-01T15:18:41.000Z | test/dgraph_ex/client/adapters/http/query_test.exs | sunny-g/dgraph_ex | fab9f1fd684538758ed211537c3b0869233e7ce4 | [
"MIT"
] | null | null | null | test/dgraph_ex/client/adapters/http/query_test.exs | sunny-g/dgraph_ex | fab9f1fd684538758ed211537c3b0869233e7ce4 | [
"MIT"
] | 1 | 2019-05-01T15:18:48.000Z | 2019-05-01T15:18:48.000Z | defmodule DgraphEx.Client.Adapters.HTTP.UnitTest.QueryTest do
use ExUnit.Case, async: true
import Mox
import TestHelpers.RequestMock
alias DgraphEx.Client.Adapters.HTTP
describe "HTTP.query/1 and HTTP.query/2" do
setup :verify_on_exit!
test "should set non-transaction defaults" do
expected_bo... | 28.269231 | 74 | 0.631973 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.