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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1cb75919574df513c1a59e77c28f52b33ba4f73b | 1,036 | exs | Elixir | mix.exs | PillarTechnology/smartcitiesdata | 9420a26820e38267513cd1bfa82c7f5583222bb1 | [
"Apache-2.0"
] | null | null | null | mix.exs | PillarTechnology/smartcitiesdata | 9420a26820e38267513cd1bfa82c7f5583222bb1 | [
"Apache-2.0"
] | null | null | null | mix.exs | PillarTechnology/smartcitiesdata | 9420a26820e38267513cd1bfa82c7f5583222bb1 | [
"Apache-2.0"
] | null | null | null | defmodule Smartcitiesdata.MixProject do
use Mix.Project
def project do
[
apps_path: "apps",
start_permanent: Mix.env() == :prod,
deps: deps(),
aliases: aliases(),
docs: docs(),
description: description()
]
end
defp deps, do: []
defp aliases do
[
test: "... | 23.545455 | 91 | 0.587838 |
1cb781a4d8c1e96ea29dd7bdd9b8dd7dd5feb7c5 | 67 | ex | Elixir | lib/onsor_web/views/admin/material_view.ex | ashkan18/onsor | 73b75b24f638f1a425de8ebf4454df971040e9f2 | [
"MIT"
] | null | null | null | lib/onsor_web/views/admin/material_view.ex | ashkan18/onsor | 73b75b24f638f1a425de8ebf4454df971040e9f2 | [
"MIT"
] | 4 | 2021-03-09T00:47:04.000Z | 2022-02-10T15:15:28.000Z | lib/onsor_web/views/admin/material_view.ex | ashkan18/onsor | 73b75b24f638f1a425de8ebf4454df971040e9f2 | [
"MIT"
] | null | null | null | defmodule OnsorWeb.Admin.MaterialView do
use OnsorWeb, :view
end
| 16.75 | 40 | 0.80597 |
1cb7ac20e8f6c5c34e7a3cba91a86c5cb76c6944 | 3,220 | ex | Elixir | clients/speech/lib/google_api/speech/v1/model/operation.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/speech/lib/google_api/speech/v1/model/operation.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/speech/lib/google_api/speech/v1/model/operation.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 43.513514 | 150 | 0.700311 |
1cb7c4d8da0502fc538ceff34f6a0892936f7117 | 7,111 | exs | Elixir | test/transaction_client_invite_test.exs | BrendanBall/elixir-sippet | 877edcbbc8d8ba5b6b41684c20041510c410aad3 | [
"BSD-3-Clause"
] | 54 | 2017-04-26T03:15:56.000Z | 2022-02-08T00:22:11.000Z | test/transaction_client_invite_test.exs | BrendanBall/elixir-sippet | 877edcbbc8d8ba5b6b41684c20041510c410aad3 | [
"BSD-3-Clause"
] | 21 | 2017-06-19T08:00:33.000Z | 2022-01-19T10:38:11.000Z | test/transaction_client_invite_test.exs | BrendanBall/elixir-sippet | 877edcbbc8d8ba5b6b41684c20041510c410aad3 | [
"BSD-3-Clause"
] | 22 | 2017-06-19T08:15:34.000Z | 2022-03-22T13:56:20.000Z | defmodule Sippet.Transactions.Client.Invite.Test do
use ExUnit.Case, async: false
alias Sippet.Message
alias Sippet.Transactions.Client
alias Sippet.Transactions.Client.State
alias Sippet.Transactions.Client.Invite
import Mock
defmacro action_timeout(actions, delay) do
quote do
unquote(action... | 32.176471 | 95 | 0.634651 |
1cb7e3019e01525af2824868e6a64e6d2e7c3484 | 7,880 | ex | Elixir | apps/site/lib/site_web/views/partial_view.ex | thecristen/dotcom | b8dce8683c1a58e631dff42dd3b012786ddccadb | [
"MIT"
] | null | null | null | apps/site/lib/site_web/views/partial_view.ex | thecristen/dotcom | b8dce8683c1a58e631dff42dd3b012786ddccadb | [
"MIT"
] | 65 | 2021-05-06T18:38:33.000Z | 2022-03-28T20:50:04.000Z | apps/site/lib/site_web/views/partial_view.ex | thecristen/dotcom | b8dce8683c1a58e631dff42dd3b012786ddccadb | [
"MIT"
] | null | null | null | defmodule SiteWeb.PartialView do
@moduledoc """
Handles rendering of partial components and CMS content.
"""
use SiteWeb, :view
alias CMS.{Partial.Teaser, Repo}
alias Plug.Conn
alias Routes.Route
alias SiteWeb.CMS.TeaserView
alias SiteWeb.PartialView.SvgIconWithCircle
import SiteWeb.CMSView, only:... | 30.661479 | 96 | 0.650888 |
1cb843ba07f85b846f0cb580352bb510a9c1423b | 11,401 | exs | Elixir | lib/mix/test/mix/tasks/escript_test.exs | spencerdcarlson/elixir | 23d75ecdf58df80969e12f4420282238e19219a1 | [
"Apache-2.0"
] | 1 | 2021-12-16T20:32:28.000Z | 2021-12-16T20:32:28.000Z | lib/mix/test/mix/tasks/escript_test.exs | spencerdcarlson/elixir | 23d75ecdf58df80969e12f4420282238e19219a1 | [
"Apache-2.0"
] | 1 | 2020-09-14T16:23:33.000Z | 2021-03-25T17:38:59.000Z | lib/mix/test/mix/tasks/escript_test.exs | spencerdcarlson/elixir | 23d75ecdf58df80969e12f4420282238e19219a1 | [
"Apache-2.0"
] | 1 | 2020-11-25T02:22:55.000Z | 2020-11-25T02:22:55.000Z | Code.require_file("../../test_helper.exs", __DIR__)
defmodule Mix.Tasks.EscriptTest do
use MixTest.Case
defmodule Escript do
def project do
[
app: :escript_test,
version: "0.0.1",
escript: [main_module: EscriptTest, name: "escript_test", embed_elixir: true]
]
end
end
... | 29.233333 | 112 | 0.639154 |
1cb850c069eee1c8d36fafd966ba213d8c692622 | 2,494 | exs | Elixir | benchmarks/hs_benchmark.exs | blagh/joken | eafc407603cb28f12b1a95b11a57da89903bb3b6 | [
"Apache-2.0"
] | 421 | 2015-01-06T12:06:00.000Z | 2018-11-17T09:12:27.000Z | benchmarks/hs_benchmark.exs | blagh/joken | eafc407603cb28f12b1a95b11a57da89903bb3b6 | [
"Apache-2.0"
] | 178 | 2015-02-24T15:40:25.000Z | 2018-11-06T16:32:27.000Z | benchmarks/hs_benchmark.exs | blagh/joken | eafc407603cb28f12b1a95b11a57da89903bb3b6 | [
"Apache-2.0"
] | 71 | 2015-02-24T00:52:34.000Z | 2018-10-30T17:34:59.000Z | defmodule HS256Auth do
use Joken.Config, default_key: :hs256
end
defmodule HS384Auth do
use Joken.Config, default_key: :hs384
end
defmodule HS512Auth do
use Joken.Config, default_key: :hs512
end
defmodule HS256AuthVerify do
use Joken.Config, default_key: :hs256
def token_config do
%{}
|> add_claim... | 33.253333 | 211 | 0.706496 |
1cb86d52b1ce90b9a7f5282d6e54805ee34c9947 | 302 | ex | Elixir | lib/dune/shims/atom.ex | functional-rewire/dune | 9a7d3fd182e5b29e0bfb0b2a97daba468231546c | [
"MIT"
] | 58 | 2021-09-19T09:06:36.000Z | 2022-02-03T11:19:38.000Z | lib/dune/shims/atom.ex | functional-rewire/dune | 9a7d3fd182e5b29e0bfb0b2a97daba468231546c | [
"MIT"
] | null | null | null | lib/dune/shims/atom.ex | functional-rewire/dune | 9a7d3fd182e5b29e0bfb0b2a97daba468231546c | [
"MIT"
] | 1 | 2021-09-26T14:56:18.000Z | 2021-09-26T14:56:18.000Z | defmodule Dune.Shims.Atom do
@moduledoc false
alias Dune.AtomMapping
def to_string(env, atom) when is_atom(atom) do
AtomMapping.to_string(env.atom_mapping, atom)
end
def to_charlist(env, atom) when is_atom(atom) do
__MODULE__.to_string(env, atom) |> String.to_charlist()
end
end
| 21.571429 | 59 | 0.738411 |
1cb889f19d50c62b52bf1b55471e831bc82ddfbb | 1,709 | ex | Elixir | lib/livebook/notebook/cell/elixir.ex | byjpr/livebook | 350cd13853eb4c2357203b365d9f6fb59f0601f4 | [
"Apache-2.0"
] | null | null | null | lib/livebook/notebook/cell/elixir.ex | byjpr/livebook | 350cd13853eb4c2357203b365d9f6fb59f0601f4 | [
"Apache-2.0"
] | null | null | null | lib/livebook/notebook/cell/elixir.ex | byjpr/livebook | 350cd13853eb4c2357203b365d9f6fb59f0601f4 | [
"Apache-2.0"
] | null | null | null | defmodule Livebook.Notebook.Cell.Elixir do
@moduledoc false
# A cell with Elixir code.
#
# It consists of text content that the user can edit
# and produces some output once evaluated.
defstruct [:id, :source, :outputs, :disable_formatting, :reevaluate_automatically]
alias Livebook.Utils
alias Livebo... | 28.483333 | 85 | 0.578701 |
1cb88a05e7407c7d68a27599c36967f19d9b1591 | 1,484 | exs | Elixir | day17/task1.exs | joskov/advent2016 | cdade8f0f47bf67b9dd29f8e25f4e8351cada309 | [
"MIT"
] | 2 | 2016-12-26T20:44:04.000Z | 2017-02-10T19:59:55.000Z | day17/task1.exs | joskov/advent2016 | cdade8f0f47bf67b9dd29f8e25f4e8351cada309 | [
"MIT"
] | null | null | null | day17/task1.exs | joskov/advent2016 | cdade8f0f47bf67b9dd29f8e25f4e8351cada309 | [
"MIT"
] | null | null | null | defmodule Task do
@input "qljzarfv"
def calculate do
calculate([{@input, 0, 0}], 0)
end
def calculate([], index) do
IO.puts "Dead end on index #{index}"
end
def calculate(list, index) do
IO.puts "Working on index #{index}"
list = Enum.reduce(list, [], &add_possible/2)
calculate(list, in... | 24.733333 | 87 | 0.576146 |
1cb893db2e23327e3055c552f258844040e7256e | 620 | ex | Elixir | lib/yaws_ex.ex | evbogdanov/yaws_ex | bc3095f5bb38661453dfe9a593b2b9a9c363e4a9 | [
"BSD-3-Clause"
] | 1 | 2019-09-11T00:06:47.000Z | 2019-09-11T00:06:47.000Z | lib/yaws_ex.ex | evbogdanov/yaws_ex | bc3095f5bb38661453dfe9a593b2b9a9c363e4a9 | [
"BSD-3-Clause"
] | null | null | null | lib/yaws_ex.ex | evbogdanov/yaws_ex | bc3095f5bb38661453dfe9a593b2b9a9c363e4a9 | [
"BSD-3-Clause"
] | null | null | null | defmodule YawsEx do
use Application
alias YawsEx.Yaws
def start(_type, _args) do
import Supervisor.Spec, warn: false
# Start supervisor without children
{:ok, sup_pid} = Supervisor.start_link([], strategy: :one_for_one)
# Obtain Yaws configuration
{:ok, server_conf, global_conf, child_spec... | 22.962963 | 73 | 0.698387 |
1cb89649431404ed5d0a150679a413d6d47ac44d | 87 | ex | Elixir | lib/mipha/mailer.ex | ZPVIP/mipha | a7df054f72eec7de88b60d94c501488375bdff6a | [
"MIT"
] | 156 | 2018-06-01T19:52:32.000Z | 2022-02-03T10:58:10.000Z | lib/mipha/mailer.ex | ZPVIP/mipha | a7df054f72eec7de88b60d94c501488375bdff6a | [
"MIT"
] | 139 | 2018-07-10T01:57:23.000Z | 2021-08-02T21:29:24.000Z | lib/mipha/mailer.ex | ZPVIP/mipha | a7df054f72eec7de88b60d94c501488375bdff6a | [
"MIT"
] | 29 | 2018-07-17T08:43:45.000Z | 2021-12-14T13:45:30.000Z | defmodule Mipha.Mailer do
@moduledoc false
use Bamboo.Mailer, otp_app: :mipha
end
| 14.5 | 36 | 0.758621 |
1cb8c660c7f35e8c23062a8beac4baf337c0dc70 | 340 | ex | Elixir | lib/ex_prometheus_io/supervisor.ex | kennyballou/ex_prometheus_io | da2a3bf02ee083ba1caef3673ebef0e708b9b9ee | [
"Apache-2.0"
] | 2 | 2016-03-16T12:47:48.000Z | 2016-03-16T19:16:04.000Z | lib/ex_prometheus_io/supervisor.ex | kennyballou/ex_prometheus_io | da2a3bf02ee083ba1caef3673ebef0e708b9b9ee | [
"Apache-2.0"
] | null | null | null | lib/ex_prometheus_io/supervisor.ex | kennyballou/ex_prometheus_io | da2a3bf02ee083ba1caef3673ebef0e708b9b9ee | [
"Apache-2.0"
] | null | null | null | defmodule ExPrometheusIo.Supervisor do
use Supervisor
def start_link() do
Supervisor.start_link(__MODULE__, [], name: __MODULE__)
end
def init(_) do
children = [
supervisor(Task.Supervisor, [[name: ExPrometheusIo.QuerySupervisor]])
]
opts = [strategy: :one_for_one]
supervise(childre... | 18.888889 | 75 | 0.691176 |
1cb8f1094041aa330707bfe11288e075a9c84856 | 77 | ex | Elixir | raspberry_phoenix/web/views/page_view.ex | raymondboswel/raspberry_phoenix | ec0594c765db4405f2ec1f876ef9f76e685fcea4 | [
"Apache-2.0"
] | null | null | null | raspberry_phoenix/web/views/page_view.ex | raymondboswel/raspberry_phoenix | ec0594c765db4405f2ec1f876ef9f76e685fcea4 | [
"Apache-2.0"
] | null | null | null | raspberry_phoenix/web/views/page_view.ex | raymondboswel/raspberry_phoenix | ec0594c765db4405f2ec1f876ef9f76e685fcea4 | [
"Apache-2.0"
] | null | null | null | defmodule RaspberryPhoenix.PageView do
use RaspberryPhoenix.Web, :view
end
| 19.25 | 38 | 0.831169 |
1cb93c4a07381165ed452713b2e74d8da9303871 | 1,292 | ex | Elixir | apps/snitch_core/lib/core/data/schema/images/image.ex | Acrecio/avia | 54d264fc179b5b5f17d174854bdca063e1d935e9 | [
"MIT"
] | 456 | 2018-09-20T02:40:59.000Z | 2022-03-07T08:53:48.000Z | apps/snitch_core/lib/core/data/schema/images/image.ex | Acrecio/avia | 54d264fc179b5b5f17d174854bdca063e1d935e9 | [
"MIT"
] | 273 | 2018-09-19T06:43:43.000Z | 2021-08-07T12:58:26.000Z | apps/snitch_core/lib/core/data/schema/images/image.ex | Acrecio/avia | 54d264fc179b5b5f17d174854bdca063e1d935e9 | [
"MIT"
] | 122 | 2018-09-26T16:32:46.000Z | 2022-03-13T11:44:19.000Z | defmodule Snitch.Data.Schema.Image do
@moduledoc """
Models an Image.
"""
use Snitch.Data.Schema
alias Ecto.Nanoid
@type t :: %__MODULE__{}
schema "snitch_images" do
field(:name, Nanoid)
field(:image_url, :string)
field(:image, :any, virtual: true)
field(:is_default, :boolean, default: f... | 21.898305 | 56 | 0.611455 |
1cb94254184410606eafe26a2ad88e2aec15203d | 97 | ex | Elixir | lib/bluetooth_websocket_server_web/views/layout_view.ex | highmobility/bluetooth-websocket-server | 512a6fab0db1821ddb99426c1bececa06b0b8dc1 | [
"MIT"
] | 10 | 2016-06-24T16:23:56.000Z | 2021-02-16T07:56:51.000Z | lib/bluetooth_websocket_server_web/views/layout_view.ex | highmobility/bluetooth-websocket-server | 512a6fab0db1821ddb99426c1bececa06b0b8dc1 | [
"MIT"
] | 2 | 2017-10-15T11:28:54.000Z | 2017-10-19T11:58:40.000Z | lib/bluetooth_websocket_server_web/views/layout_view.ex | highmobility/bluetooth-websocket-server | 512a6fab0db1821ddb99426c1bececa06b0b8dc1 | [
"MIT"
] | 2 | 2017-10-07T10:08:16.000Z | 2020-11-01T08:44:18.000Z | defmodule BluetoothWebsocketServerWeb.LayoutView do
use BluetoothWebsocketServerWeb, :view
end
| 24.25 | 51 | 0.876289 |
1cb9607ff5ecca0fb01c4df2d50169061d174a4d | 4,614 | ex | Elixir | apps/snitch_core/lib/core/data/schema/package_item.ex | saurabharch/avia | 74a82a95cf8bfe8143d1fce8136a3bb7ffc9467c | [
"MIT"
] | 1 | 2018-12-01T18:13:55.000Z | 2018-12-01T18:13:55.000Z | apps/snitch_core/lib/core/data/schema/package_item.ex | saurabharch/avia | 74a82a95cf8bfe8143d1fce8136a3bb7ffc9467c | [
"MIT"
] | null | null | null | apps/snitch_core/lib/core/data/schema/package_item.ex | saurabharch/avia | 74a82a95cf8bfe8143d1fce8136a3bb7ffc9467c | [
"MIT"
] | null | null | null | defmodule Snitch.Data.Schema.PackageItem do
@moduledoc """
Models a PackageItem, a `Package` is composed of many `PackageItem`s.
## Fulfillment
There are two kinds of fulfillments:
1. `immediate`, there is enough stock "on hand" at the origin stock location.
- `:backordered` is set to `false`
2. `deff... | 31.60274 | 94 | 0.701344 |
1cb96d0e3ea505b32d1c380010e092762fffba97 | 2,907 | exs | Elixir | test/json_schema_test_suite/draft7/optional/format/uri_test.exs | hrzndhrn/json_xema | 955eab7b0919d144b38364164d90275201c89474 | [
"MIT"
] | 54 | 2019-03-10T19:51:07.000Z | 2021-12-23T07:31:09.000Z | test/json_schema_test_suite/draft7/optional/format/uri_test.exs | hrzndhrn/json_xema | 955eab7b0919d144b38364164d90275201c89474 | [
"MIT"
] | 36 | 2018-05-20T09:13:20.000Z | 2021-03-14T15:22:03.000Z | test/json_schema_test_suite/draft7/optional/format/uri_test.exs | hrzndhrn/json_xema | 955eab7b0919d144b38364164d90275201c89474 | [
"MIT"
] | 3 | 2019-04-12T09:08:51.000Z | 2019-12-04T01:23:56.000Z | defmodule JsonSchemaTestSuite.Draft7.Optional.Format.UriTest do
use ExUnit.Case
import JsonXema, only: [valid?: 2]
describe ~s|validation of URIs| do
setup do
%{schema: JsonXema.new(%{"format" => "uri"})}
end
test ~s|a valid URL with anchor tag|, %{schema: schema} do
assert valid?(schem... | 31.597826 | 82 | 0.628139 |
1cb96fa421164563410f512da37bf237a135bdb0 | 1,331 | exs | Elixir | apps/reaper/test/unit/reaper/persistence_test.exs | smartcitiesdata/smartcitiesdata | c926c25003a8ee2d09b933c521c49f674841c0b6 | [
"Apache-2.0"
] | 26 | 2019-09-20T23:54:45.000Z | 2020-08-20T14:23:32.000Z | apps/reaper/test/unit/reaper/persistence_test.exs | smartcitiesdata/smartcitiesdata | c926c25003a8ee2d09b933c521c49f674841c0b6 | [
"Apache-2.0"
] | 757 | 2019-08-15T18:15:07.000Z | 2020-09-18T20:55:31.000Z | apps/reaper/test/unit/reaper/persistence_test.exs | smartcitiesdata/smartcitiesdata | c926c25003a8ee2d09b933c521c49f674841c0b6 | [
"Apache-2.0"
] | 9 | 2019-11-12T16:43:46.000Z | 2020-03-25T16:23:16.000Z | defmodule Reaper.RecorderTest do
use ExUnit.Case
use Placebo
alias Reaper.Persistence
@ingestion_id "whatever"
@timestamp "does not matter"
@redix Reaper.Application.redis_client()
test "persists to redis using appropriate prefix" do
expect Redix.command(@redix, ["SET", "reaper:derived:#{@ingestion_... | 35.972973 | 107 | 0.736289 |
1cb970045eb1f4b7961364b589302ffad841a5fc | 387 | exs | Elixir | elixir/elixir-sips/samples/boltun_playground/mix.exs | afronski/playground-erlang | 6ac4b58b2fd717260c22a33284547d44a9b5038e | [
"MIT"
] | 2 | 2015-12-09T02:16:51.000Z | 2021-07-26T22:53:43.000Z | elixir/elixir-sips/samples/boltun_playground/mix.exs | afronski/playground-erlang | 6ac4b58b2fd717260c22a33284547d44a9b5038e | [
"MIT"
] | null | null | null | elixir/elixir-sips/samples/boltun_playground/mix.exs | afronski/playground-erlang | 6ac4b58b2fd717260c22a33284547d44a9b5038e | [
"MIT"
] | 1 | 2016-05-08T18:40:31.000Z | 2016-05-08T18:40:31.000Z | defmodule BoltunPlayground.Mixfile do
use Mix.Project
def project do
[app: :boltun_playground,
version: "0.0.1",
elixir: "~> 1.0",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps]
end
def application do
[applications: [:logger, :boltun]]
end
... | 16.826087 | 39 | 0.581395 |
1cb9b7c18be1b22a50a271f01e9743decb6a9383 | 1,715 | ex | Elixir | apps/customer/lib/customer/es/index.ex | JaiMali/job_search-1 | 5fe1afcd80aa5d55b92befed2780cd6721837c88 | [
"MIT"
] | 102 | 2017-05-21T18:24:04.000Z | 2022-03-10T12:53:20.000Z | apps/customer/lib/customer/es/index.ex | JaiMali/job_search-1 | 5fe1afcd80aa5d55b92befed2780cd6721837c88 | [
"MIT"
] | 2 | 2017-05-21T01:53:30.000Z | 2017-12-01T00:27:06.000Z | apps/customer/lib/customer/es/index.ex | JaiMali/job_search-1 | 5fe1afcd80aa5d55b92befed2780cd6721837c88 | [
"MIT"
] | 18 | 2017-05-22T09:51:36.000Z | 2021-09-24T00:57:01.000Z | defmodule Customer.Es.Index do
import Tirexs.Manage.Aliases
alias Tirexs.HTTP
alias Tirexs.Resources
alias Tirexs.Resources.Indices
alias Customer.Blank
alias Customer.Es
def name_type(model) do
model
|> to_string
|> String.downcase
end
def name_index(model) do
"es_#{name_type(model... | 21.708861 | 73 | 0.650729 |
1cb9b863923ad1f0edba593c2fb1f5559b7db1ac | 228 | exs | Elixir | priv/repo/migrations/20160213223945_add_user_to_projects.exs | tuvistavie/projare | e776b2d326fed97e0dbf62530674fe688ff73ab8 | [
"MIT"
] | 3 | 2016-03-06T12:23:01.000Z | 2017-03-21T18:22:07.000Z | priv/repo/migrations/20160213223945_add_user_to_projects.exs | tuvistavie/projare | e776b2d326fed97e0dbf62530674fe688ff73ab8 | [
"MIT"
] | null | null | null | priv/repo/migrations/20160213223945_add_user_to_projects.exs | tuvistavie/projare | e776b2d326fed97e0dbf62530674fe688ff73ab8 | [
"MIT"
] | null | null | null | defmodule Projare.Repo.Migrations.AddUserToProjects do
use Ecto.Migration
def change do
alter table(:projects) do
add :author_id, :integer, null: false
end
create index(:projects, [:author_id])
end
end
| 19 | 54 | 0.70614 |
1cb9cf6cc8769ecfb734df9ef998ef1e6e9afb68 | 950 | exs | Elixir | config/config.exs | enoliglesias/blogix | cd679490f5198c5c8c9e42330a8bf96bffa59e40 | [
"MIT"
] | 1 | 2016-05-18T10:19:14.000Z | 2016-05-18T10:19:14.000Z | config/config.exs | enoliglesias/blogix | cd679490f5198c5c8c9e42330a8bf96bffa59e40 | [
"MIT"
] | null | null | null | config/config.exs | enoliglesias/blogix | cd679490f5198c5c8c9e42330a8bf96bffa59e40 | [
"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.
use Mix.Config
# Configures the endpoint
config :blogix, Blogix.Endpoint,
url: [host: "localhost"]... | 31.666667 | 86 | 0.757895 |
1cba23a5f5d72730fe904a3f9ab69d02957d99cb | 1,835 | exs | Elixir | clients/recommendation_engine/mix.exs | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | clients/recommendation_engine/mix.exs | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | clients/recommendation_engine/mix.exs | 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... | 27.38806 | 112 | 0.659401 |
1cba29242f8f5a2f1a09d53e801de1a599966ac5 | 1,824 | ex | Elixir | clients/cloud_iot/lib/google_api/cloud_iot/v1/model/list_devices_response.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/cloud_iot/lib/google_api/cloud_iot/v1/model/list_devices_response.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/cloud_iot/lib/google_api/cloud_iot/v1/model/list_devices_response.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 35.764706 | 198 | 0.74068 |
1cba29c408ba6b323492597e2d21159094eb7ad4 | 8,086 | ex | Elixir | clients/deployment_manager/lib/google_api/deployment_manager/v2/api/manifests.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | clients/deployment_manager/lib/google_api/deployment_manager/v2/api/manifests.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | clients/deployment_manager/lib/google_api/deployment_manager/v2/api/manifests.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 51.833333 | 1,213 | 0.703067 |
1cba344e24a0228103a40f992a385e8e79520026 | 677 | exs | Elixir | .iex.exs | lee-dohm/staff-notes | 07186e8407f1955876fa2dee2dbbfd0bbac91333 | [
"MIT"
] | 1 | 2020-01-26T18:08:40.000Z | 2020-01-26T18:08:40.000Z | .iex.exs | lee-dohm/staff-notes | 07186e8407f1955876fa2dee2dbbfd0bbac91333 | [
"MIT"
] | 36 | 2017-12-23T20:22:07.000Z | 2018-05-10T09:16:59.000Z | .iex.exs | lee-dohm/staff-notes | 07186e8407f1955876fa2dee2dbbfd0bbac91333 | [
"MIT"
] | null | null | null | import_file_if_available "~/.iex.exs"
use Phoenix.HTML
import Ecto.Query
import Phoenix.HTML.Safe, only: [to_iodata: 1]
alias StaffNotes.Accounts
alias StaffNotes.Accounts.Organization
alias StaffNotes.Accounts.Team
alias StaffNotes.Accounts.User
alias StaffNotes.Ecto.Markdown
alias StaffNotes.Notes.Member
alias Sta... | 25.074074 | 46 | 0.865583 |
1cba4ac88b7c4b5e21e682a9ddcd4e0d9b9c32a9 | 3,092 | ex | Elixir | apps/omg_eth/test/support/dev_geth.ex | Pongch/elixir-omg | 8a33c246898b49cba62b847e0989d9b6c89f5106 | [
"Apache-2.0"
] | null | null | null | apps/omg_eth/test/support/dev_geth.ex | Pongch/elixir-omg | 8a33c246898b49cba62b847e0989d9b6c89f5106 | [
"Apache-2.0"
] | null | null | null | apps/omg_eth/test/support/dev_geth.ex | Pongch/elixir-omg | 8a33c246898b49cba62b847e0989d9b6c89f5106 | [
"Apache-2.0"
] | null | null | null | # Copyright 2018 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... | 28.897196 | 109 | 0.670763 |
1cba84818b6dc1170b083b00da955a4a98861866 | 1,959 | ex | Elixir | lib/absinthe/phase/schema/validation/names_must_be_valid.ex | zoldar/absinthe | 72ff9f91fcc0a261f9965cf8120c7c72ff6e4c7c | [
"MIT"
] | 2 | 2021-04-22T23:45:04.000Z | 2021-05-07T01:01:15.000Z | lib/absinthe/phase/schema/validation/names_must_be_valid.ex | zoldar/absinthe | 72ff9f91fcc0a261f9965cf8120c7c72ff6e4c7c | [
"MIT"
] | 2 | 2019-03-07T00:26:03.000Z | 2019-08-19T17:30:30.000Z | lib/absinthe/phase/schema/validation/names_must_be_valid.ex | zoldar/absinthe | 72ff9f91fcc0a261f9965cf8120c7c72ff6e4c7c | [
"MIT"
] | 1 | 2019-01-18T20:49:03.000Z | 2019-01-18T20:49:03.000Z | defmodule Absinthe.Phase.Schema.Validation.NamesMustBeValid do
@moduledoc false
use Absinthe.Phase
alias Absinthe.Blueprint
alias Absinthe.Blueprint.Schema
@valid_name_regex ~r/[_A-Za-z][_0-9A-Za-z]*/
def run(bp, _) do
bp = Blueprint.prewalk(bp, &validate_names/1)
{:ok, bp}
end
defp validate... | 26.12 | 79 | 0.700357 |
1cba9b16e83a413fe9dd966ef944452c182b137b | 581 | ex | Elixir | lib/ingram_marketplace/model/validation_parameters_result.ex | fbettag/ingram_marketplace.ex | 1c63d391707058fb8cf58fdefd54e2ade97acf4b | [
"MIT"
] | null | null | null | lib/ingram_marketplace/model/validation_parameters_result.ex | fbettag/ingram_marketplace.ex | 1c63d391707058fb8cf58fdefd54e2ade97acf4b | [
"MIT"
] | null | null | null | lib/ingram_marketplace/model/validation_parameters_result.ex | fbettag/ingram_marketplace.ex | 1c63d391707058fb8cf58fdefd54e2ade97acf4b | [
"MIT"
] | null | null | null | defmodule Ingram.Marketplace.Model.ValidationParametersResult do
@moduledoc """
The result of validation of the product-specific activation parameters.
"""
@derive [Poison.Encoder]
defstruct [
:data
]
@type t :: %__MODULE__{
:data => [ValidationParameterItem] | nil
}
end
defimpl P... | 24.208333 | 91 | 0.726334 |
1cbaa54345c185d022567b9f28d5e1952bfeb259 | 517 | ex | Elixir | apps/scraper/lib/scraper/cron.ex | JaiMali/job_search-1 | 5fe1afcd80aa5d55b92befed2780cd6721837c88 | [
"MIT"
] | 102 | 2017-05-21T18:24:04.000Z | 2022-03-10T12:53:20.000Z | apps/scraper/lib/scraper/cron.ex | JaiMali/job_search-1 | 5fe1afcd80aa5d55b92befed2780cd6721837c88 | [
"MIT"
] | 2 | 2017-05-21T01:53:30.000Z | 2017-12-01T00:27:06.000Z | apps/scraper/lib/scraper/cron.ex | JaiMali/job_search-1 | 5fe1afcd80aa5d55b92befed2780cd6721837c88 | [
"MIT"
] | 18 | 2017-05-22T09:51:36.000Z | 2021-09-24T00:57:01.000Z | defmodule Scraper.Cron do
use GenServer
require Logger
# NOTE: everyweek
@period 7 * 24 * 60 * 60 * 1000
def start_link do
GenServer.start_link(__MODULE__, %{})
end
def init(state) do
set_schedule_work()
{:ok, state}
end
def handle_info(:work, state) do
Logger.info("scraper execute... | 17.233333 | 57 | 0.661509 |
1cbaad8a2c9cbfc0b9e7b2cb3d6175210c03db12 | 2,490 | ex | Elixir | clients/domains/lib/google_api/domains/v1alpha2/model/configure_contact_settings_request.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | 1 | 2021-10-01T09:20:41.000Z | 2021-10-01T09:20:41.000Z | clients/domains/lib/google_api/domains/v1alpha2/model/configure_contact_settings_request.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | clients/domains/lib/google_api/domains/v1alpha2/model/configure_contact_settings_request.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... | 44.464286 | 258 | 0.738956 |
1cbae75e259b0654817cbb7b8baccb064a4e9e55 | 1,129 | ex | Elixir | integration_test/temple_demo/test/support/channel_case.ex | rktjmp/temple | 6fe46cbb4998477d76147fa95c9fd9c7841545ef | [
"MIT"
] | 366 | 2019-07-12T22:43:35.000Z | 2022-03-31T07:26:25.000Z | integration_test/temple_demo/test/support/channel_case.ex | rktjmp/temple | 6fe46cbb4998477d76147fa95c9fd9c7841545ef | [
"MIT"
] | 114 | 2019-07-12T19:49:10.000Z | 2022-03-23T10:48:48.000Z | integration_test/temple_demo/test/support/channel_case.ex | rktjmp/temple | 6fe46cbb4998477d76147fa95c9fd9c7841545ef | [
"MIT"
] | 17 | 2019-07-23T15:16:34.000Z | 2021-02-25T02:42:02.000Z | defmodule TempleDemoWeb.ChannelCase do
@moduledoc """
This module defines the test case to be used by
channel tests.
Such tests rely on `Phoenix.ChannelTest` and also
import other functionality to make it easier
to build common data structures and query the data layer.
Finally, if the test case interact... | 27.536585 | 72 | 0.731621 |
1cbae7cf309fb7bb4d99bce8a6bb53c16f73598c | 1,492 | ex | Elixir | clients/content/lib/google_api/content/v2/model/refund_reason.ex | kaaboaye/elixir-google-api | 1896784c4342151fd25becd089a5beb323eff567 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v2/model/refund_reason.ex | kaaboaye/elixir-google-api | 1896784c4342151fd25becd089a5beb323eff567 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v2/model/refund_reason.ex | kaaboaye/elixir-google-api | 1896784c4342151fd25becd089a5beb323eff567 | [
"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.84 | 87 | 0.717158 |
1cbaf281b4424b3d5817711a892846c511b0763a | 827 | exs | Elixir | umbrella2/apps/umbrella2_app1/mix.exs | hirotnk/excoveralls_post_sample | 3a1bffa632964ff99d2fe31d4adf793f5154fbb2 | [
"MIT"
] | null | null | null | umbrella2/apps/umbrella2_app1/mix.exs | hirotnk/excoveralls_post_sample | 3a1bffa632964ff99d2fe31d4adf793f5154fbb2 | [
"MIT"
] | null | null | null | umbrella2/apps/umbrella2_app1/mix.exs | hirotnk/excoveralls_post_sample | 3a1bffa632964ff99d2fe31d4adf793f5154fbb2 | [
"MIT"
] | null | null | null | defmodule Umbrella2App1.MixProject do
use Mix.Project
def project do
[
app: :umbrella2_app1,
version: "0.1.0",
build_path: "../../_build",
config_path: "../../config/config.exs",
deps_path: "../../deps",
lockfile: "../../mix.lock",
elixir: "~> 1.11",
start_perman... | 23.628571 | 88 | 0.579202 |
1cbb0cb37dd39373575199ee24c33b6a7c4933de | 1,412 | exs | Elixir | config/config.exs | MarbilleJuntado/phoenix-discuss-app | 7d10149f7f503385bcb673940bf59f60590f1254 | [
"MIT"
] | 1 | 2018-04-21T16:04:31.000Z | 2018-04-21T16:04:31.000Z | config/config.exs | MarbilleJuntado/phoenix-discuss-app | 7d10149f7f503385bcb673940bf59f60590f1254 | [
"MIT"
] | null | null | null | config/config.exs | MarbilleJuntado/phoenix-discuss-app | 7d10149f7f503385bcb673940bf59f60590f1254 | [
"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.
use Mix.Config
# General application configuration
config :discuss,
ecto_repos: [Discuss.Repo]
# ... | 33.619048 | 86 | 0.759915 |
1cbb32a968de425e4b31818d242533923e780053 | 5,061 | ex | Elixir | lib/ex_doc/refs.ex | kelvinst/ex_doc | 609d9765dd6f098dc298e5d6db6430859ee934ec | [
"Apache-2.0",
"CC-BY-4.0"
] | 1,206 | 2015-01-02T02:05:12.000Z | 2022-03-29T17:18:10.000Z | lib/ex_doc/refs.ex | kelvinst/ex_doc | 609d9765dd6f098dc298e5d6db6430859ee934ec | [
"Apache-2.0",
"CC-BY-4.0"
] | 1,266 | 2015-01-03T03:26:04.000Z | 2022-03-31T09:43:53.000Z | lib/ex_doc/refs.ex | LaudateCorpus1/ex_doc | 0612bac649cbb44ef09c20dedcf7e588a150606c | [
"Apache-2.0",
"CC-BY-4.0"
] | 300 | 2015-01-03T04:07:24.000Z | 2022-03-29T08:10:56.000Z | defmodule ExDoc.Refs do
@moduledoc false
# A read-through cache of documentation references.
#
# A given ref is always associated with a module. If we don't have a ref
# in the cache we fetch the module's docs chunk and fill in the cache.
#
# If the module does not have the docs chunk, we fetch it's func... | 24.931034 | 74 | 0.593163 |
1cbb44303d82769e969991be791dab1dd9bf42c1 | 1,708 | exs | Elixir | test/rondo/test_test.exs | exstruct/rondo | 8ec1a8754d594086065020bc45a801620fdda79d | [
"MIT"
] | 1 | 2016-08-09T21:45:21.000Z | 2016-08-09T21:45:21.000Z | test/rondo/test_test.exs | exstruct/rondo | 8ec1a8754d594086065020bc45a801620fdda79d | [
"MIT"
] | null | null | null | test/rondo/test_test.exs | exstruct/rondo | 8ec1a8754d594086065020bc45a801620fdda79d | [
"MIT"
] | null | null | null | defmodule Test.Rondo.Test do
use Test.Rondo.Case
context :render_shallow do
defmodule First do
use Rondo.Component
def render(_) do
throw :IT_RENDERED
end
end
defmodule Second do
use Rondo.Component
def render(_) do
el(First)
end
end
after
... | 19.191011 | 72 | 0.539813 |
1cbb62b60efe7984b64b1d1fd1360e0e531825d7 | 1,579 | ex | Elixir | clients/cloud_kms/lib/google_api/cloud_kms/v1/model/asymmetric_decrypt_request.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/cloud_kms/lib/google_api/cloud_kms/v1/model/asymmetric_decrypt_request.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/cloud_kms/lib/google_api/cloud_kms/v1/model/asymmetric_decrypt_request.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 32.895833 | 137 | 0.756175 |
1cbb820ae2bdffa4deeef6206f0700676c105d74 | 3,854 | ex | Elixir | lib/oli_web/live/community_live/members_index_view.ex | malav2110/oli-torus | 8af64e762a7c8a2058bd27a7ab8e96539ffc055f | [
"MIT"
] | 1 | 2022-03-17T20:35:47.000Z | 2022-03-17T20:35:47.000Z | lib/oli_web/live/community_live/members_index_view.ex | malav2110/oli-torus | 8af64e762a7c8a2058bd27a7ab8e96539ffc055f | [
"MIT"
] | 9 | 2021-11-02T16:52:09.000Z | 2022-03-25T15:14:01.000Z | lib/oli_web/live/community_live/members_index_view.ex | malav2110/oli-torus | 8af64e762a7c8a2058bd27a7ab8e96539ffc055f | [
"MIT"
] | null | null | null | defmodule OliWeb.CommunityLive.MembersIndexView do
use Surface.LiveView, layout: {OliWeb.LayoutView, "live.html"}
use OliWeb.Common.SortableTable.TableHandlers
alias Oli.Groups
alias OliWeb.Common.{Breadcrumb, Filter, Listing}
alias OliWeb.CommunityLive.{ShowView, MembersTableModel}
alias OliWeb.Router.Hel... | 29.875969 | 86 | 0.631292 |
1cbb89dbe00d208d85a60bb6559e7af54342ce8f | 37,788 | ex | Elixir | lib/codes/codes_t26.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_t26.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_t26.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | defmodule IcdCode.ICDCode.Codes_T26 do
alias IcdCode.ICDCode
def _T2600XA do
%ICDCode{full_code: "T2600XA",
category_code: "T26",
short_code: "00XA",
full_name: "Burn of unspecified eyelid and periocular area, initial encounter",
short_name: "Burn of unspecified eyelid and... | 46.252142 | 120 | 0.667646 |
1cbb9bce09c4a1b1227449d7b380547e20e7b0e1 | 165 | exs | Elixir | priv/repo/migrations/20210811165241_drop_old_tables.exs | ysaito8015/communitex | d469447a62029d59883d95df4df3c9b09e0022e2 | [
"Apache-2.0"
] | 7 | 2021-07-14T15:45:55.000Z | 2022-01-25T11:13:01.000Z | priv/repo/migrations/20210811165241_drop_old_tables.exs | ysaito8015/communitex | d469447a62029d59883d95df4df3c9b09e0022e2 | [
"Apache-2.0"
] | 10 | 2021-08-09T15:54:05.000Z | 2022-02-17T04:18:38.000Z | priv/repo/migrations/20210811165241_drop_old_tables.exs | ysaito8015/communitex | d469447a62029d59883d95df4df3c9b09e0022e2 | [
"Apache-2.0"
] | 5 | 2021-07-23T05:54:35.000Z | 2022-01-28T04:14:51.000Z | defmodule Basic.Repo.Migrations.DropOldTables do
use Ecto.Migration
def change do
drop_if_exists table(:members)
drop_if_exists table(:blogs)
end
end
| 18.333333 | 48 | 0.763636 |
1cbbb431bf10796a28cdd01b27c0be2ad6e27889 | 1,076 | ex | Elixir | lib/geocoder/cache.ex | Chervychnyk/geocoder | 8b566b42dda4d75228e2a52a62fd1b3f2208f135 | [
"MIT"
] | null | null | null | lib/geocoder/cache.ex | Chervychnyk/geocoder | 8b566b42dda4d75228e2a52a62fd1b3f2208f135 | [
"MIT"
] | null | null | null | lib/geocoder/cache.ex | Chervychnyk/geocoder | 8b566b42dda4d75228e2a52a62fd1b3f2208f135 | [
"MIT"
] | null | null | null | defmodule Geocoder.Cache do
use Nebulex.Cache,
otp_app: :geocoder,
adapter: Nebulex.Adapters.Local
@precision Application.get_env(:geocoder, :latlng_precision, 11)
def geocode(opts) when is_list(opts) do
opts |> Keyword.get(:address) |> geocode()
end
def geocode(location) when is_binary(locatio... | 24.454545 | 69 | 0.637546 |
1cbc0293d22020a47aef7ceefcbcde2d08d58bb7 | 6,399 | ex | Elixir | test/fixture_files/language.ex | bitchef/exocco | b0e93b01794d71c0458f52907b2f66b03e3f207e | [
"MIT"
] | null | null | null | test/fixture_files/language.ex | bitchef/exocco | b0e93b01794d71c0458f52907b2f66b03e3f207e | [
"MIT"
] | 1 | 2016-02-09T12:27:42.000Z | 2016-02-09T12:27:42.000Z | test/fixture_files/language.ex | bitchef/exocco | b0e93b01794d71c0458f52907b2f66b03e3f207e | [
"MIT"
] | null | null | null | defmodule Language do
defstruct name: "", symbol: "", literate: false, multistart: nil, multiend: nil,
commentMatcher: nil, dividerText: nil, dividerHtml: nil
@type t :: %Language{ name: String.t, symbol: String.t, literate: boolean,
multistart: String.t, multiend: String.t, commentMatcher: Regex.t,
di... | 57.133929 | 102 | 0.490858 |
1cbc2bf4644621f4012adf031d346926f36f9aa5 | 1,084 | exs | Elixir | apps/commuter_rail_boarding/test/uploader/s3_test.exs | paulswartz/commuter_rail_boarding | 6be34c192d6a1ee980307d9f3d027bf4cdafa53f | [
"MIT"
] | 1 | 2022-01-30T20:53:07.000Z | 2022-01-30T20:53:07.000Z | apps/commuter_rail_boarding/test/uploader/s3_test.exs | paulswartz/commuter_rail_boarding | 6be34c192d6a1ee980307d9f3d027bf4cdafa53f | [
"MIT"
] | 47 | 2021-05-05T10:31:05.000Z | 2022-03-30T22:18:14.000Z | apps/commuter_rail_boarding/test/uploader/s3_test.exs | paulswartz/commuter_rail_boarding | 6be34c192d6a1ee980307d9f3d027bf4cdafa53f | [
"MIT"
] | 1 | 2021-05-14T00:35:08.000Z | 2021-05-14T00:35:08.000Z | defmodule Uploader.S3Test do
@moduledoc false
use ExUnit.Case
@moduletag :capture_log
import Uploader.S3
setup do
old_config = Application.get_env(:commuter_rail_boarding, Uploader.S3)
on_exit(fn ->
Application.put_env(:commuter_rail_boarding, Uploader.S3, old_config)
end)
config =
... | 24.088889 | 75 | 0.656827 |
1cbc340ef0d7e7207663b255e3244bb90c54bfcf | 3,948 | exs | Elixir | test/sap/combinators/server_error_test.exs | slogsdon/sap | 766f06cfac8a04772affd977a88d61210064e598 | [
"MIT"
] | 7 | 2015-10-25T16:38:45.000Z | 2020-01-12T19:06:57.000Z | test/sap/combinators/server_error_test.exs | slogsdon/sap | 766f06cfac8a04772affd977a88d61210064e598 | [
"MIT"
] | null | null | null | test/sap/combinators/server_error_test.exs | slogsdon/sap | 766f06cfac8a04772affd977a88d61210064e598 | [
"MIT"
] | null | null | null | defmodule Sap.Combinators.ServerErrorTest do
use ExUnit.Case, async: true
use Plug.Test
import Sap.Combinators.ServerError
test "internal_server_error without body" do
conn = conn(:get, "/")
resp = internal_server_error().(conn)
assert resp.status == :ok
refute resp.conn == conn
assert res... | 26.675676 | 74 | 0.660588 |
1cbc45980cc90a1d0ad79005b4b18cf66473bef4 | 1,225 | ex | Elixir | lib/bitpal/exchange_rate/kraken.ex | bitpal/bitpal | 0e10eeaacf7a65b23945cfb95e4dbda8bffd4590 | [
"BSD-3-Clause-Clear"
] | 5 | 2021-05-04T21:28:00.000Z | 2021-12-01T11:19:48.000Z | lib/bitpal/exchange_rate/kraken.ex | bitpal/bitpal | 0e10eeaacf7a65b23945cfb95e4dbda8bffd4590 | [
"BSD-3-Clause-Clear"
] | 71 | 2021-04-21T05:48:49.000Z | 2022-03-23T06:30:37.000Z | lib/bitpal/exchange_rate/kraken.ex | bitpal/bitpal | 0e10eeaacf7a65b23945cfb95e4dbda8bffd4590 | [
"BSD-3-Clause-Clear"
] | 1 | 2021-04-25T10:35:41.000Z | 2021-04-25T10:35:41.000Z | defmodule BitPal.ExchangeRate.Kraken do
@behaviour BitPal.ExchangeRate.Backend
alias BitPal.ExchangeRate
alias BitPal.ExchangeRateSupervisor.Result
require Logger
@base "https://api.kraken.com/0/public/Ticker?pair="
@impl true
def name, do: "kraken"
@impl true
def supported, do: %{BCH: [:USD, :EUR... | 20.081967 | 67 | 0.633469 |
1cbc483a4a949eab711b97ecff86fe30af971ae0 | 247 | ex | Elixir | lib/mqttsn/state_sup.ex | knyl/mqtt-sn | fd8a44918180830b8e6f00246503336945368fb6 | [
"MIT"
] | 1 | 2018-07-26T18:55:49.000Z | 2018-07-26T18:55:49.000Z | lib/mqttsn/state_sup.ex | knyl/mqtt-sn | fd8a44918180830b8e6f00246503336945368fb6 | [
"MIT"
] | null | null | null | lib/mqttsn/state_sup.ex | knyl/mqtt-sn | fd8a44918180830b8e6f00246503336945368fb6 | [
"MIT"
] | null | null | null | defmodule Mqttsn.StateSup do
use Supervisor
def start_link() do
Supervisor.start_link(__MODULE__, [])
end
def init(_args) do
children = [
worker(Mqttsn.State, [])]
supervise(children, strategy: :one_for_one)
end
end
| 16.466667 | 47 | 0.676113 |
1cbc52e41af8618235e880e42cdb950f5ae097aa | 505 | ex | Elixir | lib/geonames/endpoints/country_subdivision.ex | vheathen/geonames-elixir | b47ef0e38462c3bdbfb1a5b710f53993d9d3056d | [
"MIT"
] | null | null | null | lib/geonames/endpoints/country_subdivision.ex | vheathen/geonames-elixir | b47ef0e38462c3bdbfb1a5b710f53993d9d3056d | [
"MIT"
] | null | null | null | lib/geonames/endpoints/country_subdivision.ex | vheathen/geonames-elixir | b47ef0e38462c3bdbfb1a5b710f53993d9d3056d | [
"MIT"
] | null | null | null | defmodule Geonames.Endpoints.CountrySubdivision do
@moduledoc false
@behaviour Geonames.Endpoint
@default_arguments %{
lat: nil,
lng: nil,
radius: nil,
level: nil
}
def endpoint, do: "countrySubdivisionJSON"
def available_url_parameters, do: [:lat, :lng, :radius, :level]
def required_url... | 22.954545 | 65 | 0.728713 |
1cbc89b2d9069dd1574818f15b10bfed2c56ac0f | 478 | ex | Elixir | lib/live_doom_fire_web/router.ex | allmonty/elixir-live-doom-fire | 4a3525eb1f66983e501d6a01dc0af10f5c02d896 | [
"MIT"
] | 12 | 2019-03-26T18:34:01.000Z | 2021-04-23T05:17:39.000Z | lib/live_doom_fire_web/router.ex | allmonty/elixir-live-doom-fire | 4a3525eb1f66983e501d6a01dc0af10f5c02d896 | [
"MIT"
] | 5 | 2020-07-16T21:02:50.000Z | 2020-09-19T19:40:24.000Z | lib/live_doom_fire_web/router.ex | allmonty/elixir-live-doom-fire | 4a3525eb1f66983e501d6a01dc0af10f5c02d896 | [
"MIT"
] | 1 | 2019-07-23T12:59:02.000Z | 2019-07-23T12:59:02.000Z | defmodule LiveDoomFireWeb.Router do
use LiveDoomFireWeb, :router
pipeline :browser do
plug(:accepts, ["html"])
plug(:fetch_session)
plug(:fetch_flash)
plug(:fetch_live_flash)
plug(:protect_from_forgery)
plug(:put_secure_browser_headers)
end
pipeline :api do
plug(:accepts, ["json"])... | 19.916667 | 43 | 0.688285 |
1cbcc0386ebd136284e19507f668b628f41247fc | 958 | ex | Elixir | lib/soccer_table/application.ex | thomasbrus/phoenix-live-view-soccer-table | 60bff384a71fb9c08eb22600409e71fe25e54712 | [
"MIT"
] | 1 | 2020-05-09T02:09:21.000Z | 2020-05-09T02:09:21.000Z | lib/soccer_table/application.ex | thomasbrus/phoenix-live-view-soccer-table | 60bff384a71fb9c08eb22600409e71fe25e54712 | [
"MIT"
] | null | null | null | lib/soccer_table/application.ex | thomasbrus/phoenix-live-view-soccer-table | 60bff384a71fb9c08eb22600409e71fe25e54712 | [
"MIT"
] | 1 | 2020-07-07T21:38:33.000Z | 2020-07-07T21:38:33.000Z | defmodule SoccerTable.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 Ecto repository
SoccerTable.Re... | 29.9375 | 70 | 0.722338 |
1cbcf2087ffb2013b2abae1e351a78dccdca67c2 | 3,870 | ex | Elixir | lib/console_web/channels/graphql_channel.ex | helium/console | c6912b521926455ee0d4172dbd8e8183bdbae186 | [
"Apache-2.0"
] | 83 | 2018-05-31T14:49:10.000Z | 2022-03-27T16:49:49.000Z | lib/console_web/channels/graphql_channel.ex | helium/console | c6912b521926455ee0d4172dbd8e8183bdbae186 | [
"Apache-2.0"
] | 267 | 2018-05-22T23:19:02.000Z | 2022-03-31T04:31:06.000Z | lib/console_web/channels/graphql_channel.ex | helium/console | c6912b521926455ee0d4172dbd8e8183bdbae186 | [
"Apache-2.0"
] | 18 | 2018-11-20T05:15:54.000Z | 2022-03-28T08:20:13.000Z | defmodule ConsoleWeb.GraphqlChannel do
use Phoenix.Channel
def join("graphql:topbar_orgs", _message, socket) do
{:ok, socket}
end
def join("graphql:orgs_index_table", _message, socket) do
{:ok, socket}
end
def join("graphql:invitations_table", _message, socket) do
{:ok, socket}
end
def j... | 21.5 | 70 | 0.67907 |
1cbcf560887a23ac1274e144b3a161e3e4ec6f90 | 1,349 | ex | Elixir | lib/Radpath/directory.ex | lowks/Radpath | 512d10a8f27c887b47f378b078e5abc1f3b9ea0e | [
"MIT"
] | 20 | 2015-01-17T14:52:54.000Z | 2022-03-01T19:12:37.000Z | lib/Radpath/directory.ex | lowks/Radpath | 512d10a8f27c887b47f378b078e5abc1f3b9ea0e | [
"MIT"
] | 25 | 2015-01-28T02:02:40.000Z | 2020-02-12T01:43:30.000Z | lib/Radpath/directory.ex | lowks/Radpath | 512d10a8f27c887b47f378b078e5abc1f3b9ea0e | [
"MIT"
] | 7 | 2015-03-05T04:12:39.000Z | 2022-03-01T19:12:43.000Z | defmodule Radpath.Dirs do
defmacro __using__([]) do
quote do
# defp dirs_list(path) when is_list(path) do
# []
# end
@moduledoc """
Directory functions of Radpath library
"""
@doc """
Returns all of the directories in the given path
## Arguments
- `path` path to show list of direc... | 25.45283 | 118 | 0.625649 |
1cbcfa6266b3196615a773fe3e7381d769e1e04d | 1,267 | exs | Elixir | test/ecto/query/builder/order_by_test.exs | yrashk/ecto | 1462d5ad4cbb7bf74c292ec405852bc196808daf | [
"Apache-2.0"
] | 1 | 2016-08-15T21:23:28.000Z | 2016-08-15T21:23:28.000Z | test/ecto/query/builder/order_by_test.exs | yrashk/ecto | 1462d5ad4cbb7bf74c292ec405852bc196808daf | [
"Apache-2.0"
] | null | null | null | test/ecto/query/builder/order_by_test.exs | yrashk/ecto | 1462d5ad4cbb7bf74c292ec405852bc196808daf | [
"Apache-2.0"
] | null | null | null | defmodule Ecto.Query.Builder.OrderByTest do
use ExUnit.Case, async: true
import Ecto.Query.Builder.OrderBy
doctest Ecto.Query.Builder.OrderBy
test "escape" do
assert {Macro.escape(quote do [asc: &0.y] end), %{}} ==
escape(quote do x.y end, [x: 0])
assert {Macro.escape(quote do [asc: &0.x, ... | 32.487179 | 84 | 0.584846 |
1cbd0e3a278d91dd5fa1baaa90f8d8a72d43e047 | 2,647 | ex | Elixir | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2beta1_original_detect_intent_request.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2beta1_original_detect_intent_request.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2beta1_original_detect_intent_request.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... | 36.260274 | 130 | 0.710994 |
1cbd0ea7a25c390a12876dd15f2fc21770fd9980 | 2,261 | ex | Elixir | lib/policr_mini_web/controllers/api/third_party_controller.ex | skyplaying/policr-mini | ac265daa251fd76b770d0ce08c67075a6a57f796 | [
"MIT"
] | null | null | null | lib/policr_mini_web/controllers/api/third_party_controller.ex | skyplaying/policr-mini | ac265daa251fd76b770d0ce08c67075a6a57f796 | [
"MIT"
] | 2 | 2022-02-25T06:15:30.000Z | 2022-02-25T06:15:33.000Z | lib/policr_mini_web/controllers/api/third_party_controller.ex | skyplaying/policr-mini | ac265daa251fd76b770d0ce08c67075a6a57f796 | [
"MIT"
] | null | null | null | defmodule PolicrMiniWeb.API.ThirdPartyController do
@moduledoc """
第三方实例的前台 API 控制器。
"""
use PolicrMiniWeb, :controller
alias PolicrMini.Instances
action_fallback PolicrMiniWeb.API.FallbackController
plug CORSPlug, origin: &__MODULE__.load_origins/0
@project_start_date ~D[2020-06-01]
def offical... | 27.240964 | 92 | 0.605042 |
1cbd3e756a17ddb1582d61bfdf03ee7b98745afd | 200 | exs | Elixir | gearbox_impl/priv/repo/migrations/20211130212220_create_client.exs | enelesmai/gearbox-example | f30e0f9828a87d96c14333cb39928aa1a4c56787 | [
"MIT"
] | null | null | null | gearbox_impl/priv/repo/migrations/20211130212220_create_client.exs | enelesmai/gearbox-example | f30e0f9828a87d96c14333cb39928aa1a4c56787 | [
"MIT"
] | null | null | null | gearbox_impl/priv/repo/migrations/20211130212220_create_client.exs | enelesmai/gearbox-example | f30e0f9828a87d96c14333cb39928aa1a4c56787 | [
"MIT"
] | null | null | null | defmodule Clients.Repo.Migrations.CreateClient do
use Ecto.Migration
def change do
create table(:client) do
add :name, :string, null: false
add :status, :string
end
end
end
| 18.181818 | 49 | 0.68 |
1cbd3ef46523ed0dd46a19219c35147b19d1a774 | 926 | exs | Elixir | config/releases.exs | isabella232/elixir_cluster | 1e81d191e50b8959200770d47fd7c0b609b658e4 | [
"MIT"
] | 18 | 2019-06-06T19:30:48.000Z | 2021-08-24T19:17:37.000Z | config/releases.exs | isabella232/elixir_cluster | 1e81d191e50b8959200770d47fd7c0b609b658e4 | [
"MIT"
] | 2 | 2020-03-29T21:28:56.000Z | 2020-11-19T17:13:56.000Z | config/releases.exs | isabella232/elixir_cluster | 1e81d191e50b8959200770d47fd7c0b609b658e4 | [
"MIT"
] | 7 | 2019-09-11T11:29:37.000Z | 2022-03-26T07:45:37.000Z | # 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.
import Config
secret_key_base =
System.get_env("SECRET_KEY_BASE") ||
raise """
... | 34.296296 | 76 | 0.75594 |
1cbd569875cefad9230ca98f2b113ef62823bcaf | 6,686 | ex | Elixir | lib/pexels.ex | factor18/pexels | c6655f7dd0e58a9a06b6b7a02e74b3f009cd7b01 | [
"MIT"
] | 5 | 2021-05-10T12:10:02.000Z | 2021-05-24T08:15:42.000Z | lib/pexels.ex | factor18/pexels | c6655f7dd0e58a9a06b6b7a02e74b3f009cd7b01 | [
"MIT"
] | null | null | null | lib/pexels.ex | factor18/pexels | c6655f7dd0e58a9a06b6b7a02e74b3f009cd7b01 | [
"MIT"
] | 1 | 2021-05-13T16:49:17.000Z | 2021-05-13T16:49:17.000Z | defmodule Pexels do
@moduledoc ~S"""
Parses the given `line` into a command.
## Examples
iex> client = Pexels.client()
iex> {:ok, %{liked: _liked, photo: photo}} = Pexels.photo(client, %{id: 156934})
iex> photo.url
"https://www.pexels.com/photo/white-and-black-cat-156934/"
"""
alias... | 31.389671 | 152 | 0.638498 |
1cbd6de621ec73b8c049583e77f8ec113c42d32f | 717 | ex | Elixir | lib/fika.ex | v0idpwn/fika | 4453d1c9222f7c2ab09f03d436f2222c7e325344 | [
"Apache-2.0"
] | null | null | null | lib/fika.ex | v0idpwn/fika | 4453d1c9222f7c2ab09f03d436f2222c7e325344 | [
"Apache-2.0"
] | null | null | null | lib/fika.ex | v0idpwn/fika | 4453d1c9222f7c2ab09f03d436f2222c7e325344 | [
"Apache-2.0"
] | null | null | null | defmodule Fika do
def start(path \\ nil) do
if path do
File.cd!(path)
end
if File.exists?("router.fi") do
start_route_store()
start_webserver()
:ok
else
IO.puts("Cannot start webserver: file router.fi not found.")
:error
end
end
def start_route_store do
... | 23.129032 | 98 | 0.616457 |
1cbd6fae8305da0c44e6a46a7bd6e78a582926dc | 7,960 | ex | Elixir | lib/numato_gpio.ex | kmiecikt/numato_gpio | 7d6775317dd52a04aa8b1fa0ecdce02e8c77e90b | [
"Apache-2.0"
] | null | null | null | lib/numato_gpio.ex | kmiecikt/numato_gpio | 7d6775317dd52a04aa8b1fa0ecdce02e8c77e90b | [
"Apache-2.0"
] | null | null | null | lib/numato_gpio.ex | kmiecikt/numato_gpio | 7d6775317dd52a04aa8b1fa0ecdce02e8c77e90b | [
"Apache-2.0"
] | null | null | null | defmodule Numato.Gpio do
use GenStage
defmodule State do
defstruct [
uart_pid: nil,
last_command: nil
]
end
def start_link(uart_pid) do
GenStage.start_link(__MODULE__, uart_pid)
end
def init(uart_pid) when is_pid(uart_pid) do
{:producer, %State{uart_pid: uart_pid}}
end
de... | 29.701493 | 106 | 0.69196 |
1cbd7082a803fa16ccdce3e4d59eff7572a53f61 | 7,834 | exs | Elixir | test/esme/sync_test.exs | dwhelan/smppex | 548b1827828b571434aa390f8abae787df1f8b60 | [
"MIT"
] | null | null | null | test/esme/sync_test.exs | dwhelan/smppex | 548b1827828b571434aa390f8abae787df1f8b60 | [
"MIT"
] | null | null | null | test/esme/sync_test.exs | dwhelan/smppex | 548b1827828b571434aa390f8abae787df1f8b60 | [
"MIT"
] | null | null | null | defmodule SMPPEX.ESME.SyncTest do
use ExUnit.Case
alias :timer, as: Timer
alias SMPPEX.Session
alias SMPPEX.MC
alias SMPPEX.Pdu
alias SMPPEX.ESME.Sync, as: ESMESync
setup do
{:ok, callback_agent} = Agent.start_link(fn -> [] end)
callbacks = fn ->
Agent.get(
callback_agent,
... | 20.615789 | 96 | 0.547358 |
1cbdceb8d4c097dddb160f96c22befe64409db27 | 1,463 | ex | Elixir | lib/atlas/field_converter.ex | lowks/atlas | e01cefa088fe1174d9162f5834156611f1caa594 | [
"MIT"
] | 94 | 2015-01-01T16:17:40.000Z | 2021-12-16T02:53:01.000Z | lib/atlas/field_converter.ex | IdoBn/atlas | e01cefa088fe1174d9162f5834156611f1caa594 | [
"MIT"
] | 2 | 2015-09-22T14:45:26.000Z | 2017-08-29T18:16:04.000Z | lib/atlas/field_converter.ex | IdoBn/atlas | e01cefa088fe1174d9162f5834156611f1caa594 | [
"MIT"
] | 11 | 2015-01-06T02:25:00.000Z | 2021-12-16T03:10:11.000Z | defmodule Atlas.FieldConverter do
@moduledoc """
FieldConverter provides transformations from raw values returned from database or
user input into value Elixir types based on Schema field types
Examples
iex> value_to_field_type("1", :float)
1.0
"""
def value_to_field_type(value, :string) when is... | 35.682927 | 88 | 0.731374 |
1cbdde2f5b0d4f28edd951a4b9e4ba273d042ae6 | 182 | exs | Elixir | priv/repo/migrations/20190402145007_remove_device_type_from_pageviews.exs | wvffle/analytics | 2c0fd55bc67f74af1fe1e2641678d44e9fee61d5 | [
"MIT"
] | 984 | 2019-09-02T11:36:41.000Z | 2020-06-08T06:25:48.000Z | priv/repo/migrations/20190402145007_remove_device_type_from_pageviews.exs | wvffle/analytics | 2c0fd55bc67f74af1fe1e2641678d44e9fee61d5 | [
"MIT"
] | 24 | 2019-09-10T09:53:17.000Z | 2020-06-08T07:35:26.000Z | priv/repo/migrations/20190402145007_remove_device_type_from_pageviews.exs | wvffle/analytics | 2c0fd55bc67f74af1fe1e2641678d44e9fee61d5 | [
"MIT"
] | 51 | 2019-09-03T10:48:10.000Z | 2020-06-07T00:23:34.000Z | defmodule Plausible.Repo.Migrations.RemoveDeviceTypeFromPageviews do
use Ecto.Migration
def change do
alter table(:pageviews) do
remove :device_type
end
end
end
| 18.2 | 68 | 0.752747 |
1cbe0cad05c48323bc208b58b01f521a107c3794 | 6,290 | ex | Elixir | lib/off_broadway_mqtt/producer.ex | tymoor/off_broadway_mqtt | 2066a62a400ea40a86fc8fdd1d588d8406bd95be | [
"Apache-2.0"
] | 11 | 2019-07-03T00:54:04.000Z | 2021-12-13T22:24:09.000Z | lib/off_broadway_mqtt/producer.ex | tymoor/off_broadway_mqtt | 2066a62a400ea40a86fc8fdd1d588d8406bd95be | [
"Apache-2.0"
] | 1 | 2020-10-17T02:25:56.000Z | 2020-11-14T01:51:15.000Z | lib/off_broadway_mqtt/producer.ex | tymoor/off_broadway_mqtt | 2066a62a400ea40a86fc8fdd1d588d8406bd95be | [
"Apache-2.0"
] | 5 | 2019-08-09T03:14:29.000Z | 2022-03-22T21:39:02.000Z | defmodule OffBroadway.MQTT.Producer do
@moduledoc """
Acts as Producer for messages from a MQTT topic subscription.
## Features
* Retrying messages based on fail reason in the message status.
* Telemetry events.
* Gently handles connection outages thanks to `Tortoise`.
* Customizeable behaviour ... | 27.831858 | 79 | 0.633704 |
1cbe129a38cb68e38f6e6cc86f0f37a71880dab6 | 406 | ex | Elixir | lib/elixir_plug_examples.ex | jtrost/elixir_plug_examples | 38d27296b29f29703644149e02e5c614cc815813 | [
"Apache-2.0"
] | 1 | 2015-06-30T02:50:19.000Z | 2015-06-30T02:50:19.000Z | lib/elixir_plug_examples.ex | jtrost/elixir_plug_examples | 38d27296b29f29703644149e02e5c614cc815813 | [
"Apache-2.0"
] | null | null | null | lib/elixir_plug_examples.ex | jtrost/elixir_plug_examples | 38d27296b29f29703644149e02e5c614cc815813 | [
"Apache-2.0"
] | null | null | null | defmodule ElixirPlugExamples do
use Application
def start(_type, _args) do
import Supervisor.Spec, warn: false
children = [
worker(__MODULE__, [], function: :run)
]
opts = [strategy: :one_for_one, name: ElixirPlugExamples.Supervisor]
Supervisor.start_link(children, opts)
end
def ru... | 21.368421 | 72 | 0.689655 |
1cbe3ace48763ded6c9509939789da4368f90b4e | 996 | exs | Elixir | mix.exs | itu-devops2022/logstash-json | f7febcd453126861e56f7b6c231b858d339fa4b0 | [
"MIT"
] | null | null | null | mix.exs | itu-devops2022/logstash-json | f7febcd453126861e56f7b6c231b858d339fa4b0 | [
"MIT"
] | null | null | null | mix.exs | itu-devops2022/logstash-json | f7febcd453126861e56f7b6c231b858d339fa4b0 | [
"MIT"
] | null | null | null | defmodule LogstashJson.Mixfile do
use Mix.Project
def project do
[
app: :logstash_json,
version: "0.7.5",
elixir: "~> 1.4",
description: description(),
package: package(),
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
consolidate_protoc... | 21.191489 | 70 | 0.548193 |
1cbe42bc1eed2e5f1de09ff792dc1c82e5e85304 | 1,035 | ex | Elixir | lib/credo/cli/output/formatter/oneline.ex | isaacsanders/credo | 5623570bb2e3944345f1bf11819ca613533b5e10 | [
"MIT"
] | null | null | null | lib/credo/cli/output/formatter/oneline.ex | isaacsanders/credo | 5623570bb2e3944345f1bf11819ca613533b5e10 | [
"MIT"
] | null | null | null | lib/credo/cli/output/formatter/oneline.ex | isaacsanders/credo | 5623570bb2e3944345f1bf11819ca613533b5e10 | [
"MIT"
] | 1 | 2020-06-30T16:32:44.000Z | 2020-06-30T16:32:44.000Z | defmodule Credo.CLI.Output.Formatter.Oneline do
@moduledoc false
alias Credo.CLI.Filename
alias Credo.CLI.Output
alias Credo.CLI.Output.UI
alias Credo.Issue
def print_issues(issues) do
issues
|> Enum.sort_by(fn issue -> {issue.filename, issue.line_no, issue.column} end)
|> Enum.each(fn issue -... | 21.122449 | 82 | 0.600966 |
1cbe8be389051bf10ff5cfe85633d4337a447c52 | 1,543 | ex | Elixir | lib/lexin_web/views/error_helpers.ex | cr0t/lexin | bff2997db52a00bf770614630b8684821ab72abc | [
"MIT"
] | null | null | null | lib/lexin_web/views/error_helpers.ex | cr0t/lexin | bff2997db52a00bf770614630b8684821ab72abc | [
"MIT"
] | 6 | 2022-01-05T12:51:37.000Z | 2022-01-13T09:52:36.000Z | lib/lexin_web/views/error_helpers.ex | cr0t/lexin | bff2997db52a00bf770614630b8684821ab72abc | [
"MIT"
] | null | null | null | defmodule LexinWeb.ErrorHelpers do
@moduledoc """
Conveniences for translating and building error messages.
"""
use Phoenix.HTML
@doc """
Generates tag for inlined form input errors.
"""
def error_tag(form, field) do
Enum.map(Keyword.get_values(form.errors, field), fn error ->
content_tag(:s... | 32.145833 | 74 | 0.66429 |
1cbea9bd576dab01a86744422a0941f71bccaa07 | 591 | ex | Elixir | lib/splitwise/application.ex | nathanbegbie/ex_splitwise | 6de8b9f59db9834b342b86dfcd5c41354f349e5d | [
"MIT"
] | 3 | 2019-09-29T04:15:29.000Z | 2021-04-02T14:52:04.000Z | lib/splitwise/application.ex | nathanbegbie/ex_splitwise | 6de8b9f59db9834b342b86dfcd5c41354f349e5d | [
"MIT"
] | null | null | null | lib/splitwise/application.ex | nathanbegbie/ex_splitwise | 6de8b9f59db9834b342b86dfcd5c41354f349e5d | [
"MIT"
] | 1 | 2022-02-22T15:32:16.000Z | 2022-02-22T15:32:16.000Z | defmodule ExSplitwise.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 = [
# Starts a worker by calling: Splitwise.Worker.s... | 28.142857 | 68 | 0.715736 |
1cbeae626ff344874e28a36062569ff49da2a3e7 | 63 | ex | Elixir | lib/mappers_web/views/layout_view.ex | evandiewald/mappers | 7359cfb39a4d9d26c42f5917ee04a7e41d3291bc | [
"Apache-2.0"
] | 32 | 2021-04-22T01:55:31.000Z | 2022-02-25T13:17:21.000Z | lib/mappers_web/views/layout_view.ex | evandiewald/mappers | 7359cfb39a4d9d26c42f5917ee04a7e41d3291bc | [
"Apache-2.0"
] | 58 | 2021-06-04T18:42:59.000Z | 2022-03-31T07:17:01.000Z | lib/mappers_web/views/layout_view.ex | evandiewald/mappers | 7359cfb39a4d9d26c42f5917ee04a7e41d3291bc | [
"Apache-2.0"
] | 13 | 2021-04-10T06:09:15.000Z | 2022-03-23T13:07:37.000Z | defmodule MappersWeb.LayoutView do
use MappersWeb, :view
end
| 15.75 | 34 | 0.809524 |
1cbeb87a9fa63599a16b9a91a1503d997ae13156 | 4,795 | ex | Elixir | apps/aecore/lib/aecore/sync/chain.ex | SingularityMatrix/elixir-node | ad126aa97931165185cf35454718ed2eee40ceed | [
"ISC"
] | null | null | null | apps/aecore/lib/aecore/sync/chain.ex | SingularityMatrix/elixir-node | ad126aa97931165185cf35454718ed2eee40ceed | [
"ISC"
] | 2 | 2018-10-01T16:46:26.000Z | 2018-10-01T19:45:42.000Z | apps/aecore/lib/aecore/sync/chain.ex | gspasov/dogs-blockchain | 884c14cfc98de2c3793a204da069630d090bbc90 | [
"0BSD"
] | null | null | null | defmodule Aecore.Sync.Chain do
@moduledoc """
Implements all the functions regarding the Chain structure of the SyncTask
"""
alias __MODULE__
alias Aecore.Chain.Header
alias Aecore.Sync.Task
@type peer_id :: pid()
@type chain_id :: reference()
@type height :: non_neg_integer()
@type header_hash :: ... | 28.885542 | 92 | 0.620855 |
1cbecefb20db25ad7ee31ecbbf8691d29ef9661a | 1,773 | ex | Elixir | clients/content/lib/google_api/content/v2/model/orders_get_by_merchant_order_id_response.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/content/lib/google_api/content/v2/model/orders_get_by_merchant_order_id_response.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v2/model/orders_get_by_merchant_order_id_response.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 35.46 | 204 | 0.743937 |
1cbed0419bcceb7ee30a11a62ffd37382b78fd34 | 552 | ex | Elixir | lib/level/posts.ex | cas27/level | 70f4c7ab696e426c4be5cdc0b71bca1dcc0fe21a | [
"Apache-2.0"
] | null | null | null | lib/level/posts.ex | cas27/level | 70f4c7ab696e426c4be5cdc0b71bca1dcc0fe21a | [
"Apache-2.0"
] | null | null | null | lib/level/posts.ex | cas27/level | 70f4c7ab696e426c4be5cdc0b71bca1dcc0fe21a | [
"Apache-2.0"
] | null | null | null | defmodule Level.Posts do
@moduledoc """
The Posts context.
"""
alias Level.Posts.Post
alias Level.Repo
alias Level.Spaces.SpaceUser
@doc """
Creates a new post.
"""
@spec create_post(SpaceUser.t(), map()) :: {:ok, Post.t()} | {:error, Ecto.Changeset.t()}
def create_post(space_user, params) do
... | 22.08 | 91 | 0.648551 |
1cbed557201f3ea0fb5ec32373474ed328eb2cbe | 2,050 | ex | Elixir | lib/dde_iotserver_liveview_web.ex | aslakjohansen/dde-iotserver-liveview | eaf063c366105da7ca30b55c6a7a7dd4505b0916 | [
"BSD-3-Clause"
] | null | null | null | lib/dde_iotserver_liveview_web.ex | aslakjohansen/dde-iotserver-liveview | eaf063c366105da7ca30b55c6a7a7dd4505b0916 | [
"BSD-3-Clause"
] | null | null | null | lib/dde_iotserver_liveview_web.ex | aslakjohansen/dde-iotserver-liveview | eaf063c366105da7ca30b55c6a7a7dd4505b0916 | [
"BSD-3-Clause"
] | null | null | null | defmodule DdeIotserverLiveviewWeb do
@moduledoc """
The entrypoint for defining your web interface, such
as controllers, views, channels and so on.
This can be used in your application as:
use DdeIotserverLiveviewWeb, :controller
use DdeIotserverLiveviewWeb, :view
The definitions below will be ... | 25 | 76 | 0.709756 |
1cbedfdb8703da071802844a1b8c9df108c9a3bd | 1,895 | exs | Elixir | config/dev.exs | madvoidhq/gaga | 1a539edc327135c7910a51bffd6824bddcba5f7d | [
"MIT"
] | 13 | 2020-11-22T18:43:21.000Z | 2022-02-12T00:57:45.000Z | config/dev.exs | madvoidhq/gaga | 1a539edc327135c7910a51bffd6824bddcba5f7d | [
"MIT"
] | 2 | 2020-11-25T16:58:15.000Z | 2021-06-21T12:02:41.000Z | config/dev.exs | madvoidhq/gaga | 1a539edc327135c7910a51bffd6824bddcba5f7d | [
"MIT"
] | 4 | 2020-11-23T08:14:03.000Z | 2022-01-25T08:18:41.000Z | use Mix.Config
# For development, we disable any cache and enable
# debugging and code reloading.
#
# The watchers configuration can be used to run external
# watchers to your application. For example, we use it
# with webpack to recompile .js and .css sources.
config :gaga, GagaWeb.Endpoint,
http: [port: 4000],
d... | 27.867647 | 68 | 0.680739 |
1cbeecf1d57e0ef65e912c8e7367cd3513e7d325 | 186 | ex | Elixir | lib/ex_alipay.ex | leozhang37/ex_alipay | 64ef0d376df36ff52e0828754c07f23249ab6914 | [
"MIT"
] | null | null | null | lib/ex_alipay.ex | leozhang37/ex_alipay | 64ef0d376df36ff52e0828754c07f23249ab6914 | [
"MIT"
] | null | null | null | lib/ex_alipay.ex | leozhang37/ex_alipay | 64ef0d376df36ff52e0828754c07f23249ab6914 | [
"MIT"
] | null | null | null | defmodule ExAlipay do
@moduledoc """
An Alipay client that extendable.
### Setup
Add :ex_alipay to the deps in `mix.exe`:
```elixir
{:ex_alipay, "~> 0.1"}
```
"""
end
| 13.285714 | 42 | 0.591398 |
1cbef56f4e36d0c6b9eca88e752cd681bbe2f494 | 225 | ex | Elixir | lib/requester_web/router.ex | jbrb/lyrix-api | c532d1a9f42f9d086a35f8aeb59dc363143d4242 | [
"MIT"
] | null | null | null | lib/requester_web/router.ex | jbrb/lyrix-api | c532d1a9f42f9d086a35f8aeb59dc363143d4242 | [
"MIT"
] | null | null | null | lib/requester_web/router.ex | jbrb/lyrix-api | c532d1a9f42f9d086a35f8aeb59dc363143d4242 | [
"MIT"
] | null | null | null | defmodule RequesterWeb.Router do
use RequesterWeb, :router
pipeline :api do
plug :accepts, ["json"]
end
scope "/api", RequesterWeb do
pipe_through :api
post("/send", RequestController, :post)
end
end
| 16.071429 | 43 | 0.68 |
1cbf265aafd1820afd20cfcc538ca3d181704c62 | 283 | exs | Elixir | test/grizzly/zwave/commands/thermostat_fan_state_get_test.exs | jellybob/grizzly | 290bee04cb16acbb9dc996925f5c501697b7ac94 | [
"Apache-2.0"
] | 76 | 2019-09-04T16:56:58.000Z | 2022-03-29T06:54:36.000Z | test/grizzly/zwave/commands/thermostat_fan_state_get_test.exs | jellybob/grizzly | 290bee04cb16acbb9dc996925f5c501697b7ac94 | [
"Apache-2.0"
] | 124 | 2019-09-05T14:01:24.000Z | 2022-02-28T22:58:14.000Z | test/grizzly/zwave/commands/thermostat_fan_state_get_test.exs | jellybob/grizzly | 290bee04cb16acbb9dc996925f5c501697b7ac94 | [
"Apache-2.0"
] | 10 | 2019-10-23T19:25:45.000Z | 2021-11-17T13:21:20.000Z | defmodule Grizzly.ZWave.Commands.ThermostatFanStateGetTest do
use ExUnit.Case, async: true
alias Grizzly.ZWave.Commands.ThermostatFanStateGet
test "creates the command and validates params" do
params = []
{:ok, _command} = ThermostatFanStateGet.new(params)
end
end
| 25.727273 | 61 | 0.766784 |
1cbf303a3c408bb3609c46233a68c4b5ae8e8eab | 1,113 | ex | Elixir | lib/commodity_api/iam/access_control/passphrase/invalidation/invalidation_view.ex | akdilsiz/commodity-cloud | 08c366c9fc95fbb3565131672db4cc52f8b870c9 | [
"Apache-2.0"
] | 7 | 2019-04-11T21:12:49.000Z | 2021-04-14T12:56:42.000Z | lib/commodity_api/iam/access_control/passphrase/invalidation/invalidation_view.ex | akdilsiz/commodity-cloud | 08c366c9fc95fbb3565131672db4cc52f8b870c9 | [
"Apache-2.0"
] | null | null | null | lib/commodity_api/iam/access_control/passphrase/invalidation/invalidation_view.ex | akdilsiz/commodity-cloud | 08c366c9fc95fbb3565131672db4cc52f8b870c9 | [
"Apache-2.0"
] | 2 | 2019-06-06T18:05:33.000Z | 2019-07-16T08:49:45.000Z | ##
# Copyright 2018 Abdulkadir DILSIZ
#
# 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... | 38.37931 | 77 | 0.751123 |
1cbf90dc1f820c93b48d66da8670ec78e95f8932 | 519 | exs | Elixir | config/dev.exs | 0nkery/psychic-computing-machine | d90e8792c49d170e166b4d6029e4686104109b24 | [
"MIT"
] | null | null | null | config/dev.exs | 0nkery/psychic-computing-machine | d90e8792c49d170e166b4d6029e4686104109b24 | [
"MIT"
] | null | null | null | config/dev.exs | 0nkery/psychic-computing-machine | d90e8792c49d170e166b4d6029e4686104109b24 | [
"MIT"
] | null | null | null | import Config
config :logger, level: :debug
config :logger, :console,
format: "\n$time $metadata[$level] $levelpad$message\n",
metadata: [:application, :query_time, :response_status]
config :deribit, Deribit.InfluxDBConnection,
database: "stock",
host: "localhost",
http_opts: [insecure: true],
pool: [max... | 24.714286 | 76 | 0.701349 |
1cc002e82f52de99eddc935af07ad567f7bcb91b | 770 | ex | Elixir | web/controllers/auth_controller.ex | wsmoak/my_app_808732 | f4f92dd5cb2ffa2d6854a6573ba092ef433ab85d | [
"MIT"
] | null | null | null | web/controllers/auth_controller.ex | wsmoak/my_app_808732 | f4f92dd5cb2ffa2d6854a6573ba092ef433ab85d | [
"MIT"
] | null | null | null | web/controllers/auth_controller.ex | wsmoak/my_app_808732 | f4f92dd5cb2ffa2d6854a6573ba092ef433ab85d | [
"MIT"
] | null | null | null | defmodule MyApp_808732.AuthController do
use MyApp_808732.Web, :controller
alias MyApp_808732.User
def index(conn, _params) do
redirect conn, external: Fitbit.authorize_url!(scope: "settings sleep")
end
def callback(conn, %{"code" => code}) do
token = Fitbit.get_token!(code: code)
data = OAuth... | 24.0625 | 75 | 0.651948 |
1cc0105fd1b41dfa77508f9d6388c2d8dbeaca6a | 276 | exs | Elixir | test/nat_vis_test.exs | BradLyman/elixir_native_visualization | e651e16254d752eeefc4e9946759e8d8c0b538b5 | [
"MIT"
] | null | null | null | test/nat_vis_test.exs | BradLyman/elixir_native_visualization | e651e16254d752eeefc4e9946759e8d8c0b538b5 | [
"MIT"
] | 4 | 2017-10-06T06:26:09.000Z | 2017-10-06T06:36:11.000Z | test/nat_vis_test.exs | BradLyman/elixir_native_visualization | e651e16254d752eeefc4e9946759e8d8c0b538b5 | [
"MIT"
] | null | null | null | defmodule ElixirNativeVisualizationTest do
use ExUnit.Case
doctest NatVis
test "open_window and close_window should succeed" do
window = NatVis.open_window
:timer.sleep(1000)
result =
window |> NatVis.close_window
assert result == :ok
end
end
| 18.4 | 55 | 0.717391 |
1cc02358e8e8a35e2acc875aede4f92142ca5371 | 286 | exs | Elixir | test/forum/publishable_test.exs | myskoach/events | 84e270b9f4546a32a033cc2cba3e3961b9a86a75 | [
"MIT"
] | null | null | null | test/forum/publishable_test.exs | myskoach/events | 84e270b9f4546a32a033cc2cba3e3961b9a86a75 | [
"MIT"
] | null | null | null | test/forum/publishable_test.exs | myskoach/events | 84e270b9f4546a32a033cc2cba3e3961b9a86a75 | [
"MIT"
] | null | null | null | defmodule Forum.PublishableTest do
use ExUnit.Case, async: true
alias Forum.Publishable
describe "topic/1" do
test "returns the topic for the event by default" do
assert Publishable.topic(%Forum.TestEventOne{life: 42}) == "test-event-one"
end
end
end
| 23.833333 | 82 | 0.688811 |
1cc08c4e351f4e9c15bb0b3e3d1a0d4624814e59 | 20,029 | ex | Elixir | lib/chunkr/pagination_planner.ex | sjqtentacles/chunkr | eaac18d704c46889f47ead35b67a82ec94c18a6b | [
"MIT"
] | null | null | null | lib/chunkr/pagination_planner.ex | sjqtentacles/chunkr | eaac18d704c46889f47ead35b67a82ec94c18a6b | [
"MIT"
] | null | null | null | lib/chunkr/pagination_planner.ex | sjqtentacles/chunkr | eaac18d704c46889f47ead35b67a82ec94c18a6b | [
"MIT"
] | null | null | null | defmodule Chunkr.PaginationPlanner do
@moduledoc """
Provides a set of macros for generating functions to assist with paginating queries. For example:
defmodule MyApp.PaginationPlanner do
use Chunkr.PaginationPlanner
paginate_by :user_created_at do
sort :desc, as(:user).inserted_at... | 38.815891 | 100 | 0.621049 |
1cc0aa124c7ef16235e447a503ccfcdc64cd2965 | 2,229 | ex | Elixir | lib/hui/query/facet.ex | niccolox/hui | d0eecd0176d1bf3c9ff4075ab1c6048e3d1c25b3 | [
"Apache-2.0"
] | null | null | null | lib/hui/query/facet.ex | niccolox/hui | d0eecd0176d1bf3c9ff4075ab1c6048e3d1c25b3 | [
"Apache-2.0"
] | null | null | null | lib/hui/query/facet.ex | niccolox/hui | d0eecd0176d1bf3c9ff4075ab1c6048e3d1c25b3 | [
"Apache-2.0"
] | null | null | null | defmodule Hui.Query.Facet do
@moduledoc """
Struct related to [faceting](http://lucene.apache.org/solr/guide/faceting.html).
### Example
iex> x = %Hui.Query.Facet{field: ["type", "year"], query: "year:[2000 TO NOW]"}
%Hui.Query.Facet{
contains: nil,
"contains.ignoreCase": nil,
... | 38.431034 | 106 | 0.543742 |
1cc0ea21cf2e605ed1fbeb0611d0b525b524f511 | 1,712 | ex | Elixir | clients/tool_results/lib/google_api/tool_results/v1beta3/model/project_settings.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/tool_results/lib/google_api/tool_results/v1beta3/model/project_settings.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/tool_results/lib/google_api/tool_results/v1beta3/model/project_settings.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... | 35.666667 | 201 | 0.755841 |
1cc0f44154f96a515380f8d2158041cbb38a2309 | 13,989 | ex | Elixir | lib/merkle/sparse_merkle.ex | rkstarnerd/bargad | 82886c4934042622498401302024abeab3f0df85 | [
"Apache-2.0"
] | 50 | 2018-10-09T17:21:08.000Z | 2022-01-31T19:48:44.000Z | lib/merkle/sparse_merkle.ex | rkstarnerd/bargad | 82886c4934042622498401302024abeab3f0df85 | [
"Apache-2.0"
] | 8 | 2018-10-09T16:18:10.000Z | 2020-05-18T00:25:08.000Z | lib/merkle/sparse_merkle.ex | rkstarnerd/bargad | 82886c4934042622498401302024abeab3f0df85 | [
"Apache-2.0"
] | 8 | 2018-10-07T13:38:22.000Z | 2020-05-06T19:59:59.000Z | # Copyright 2018 Faraz Haider. All Rights Reserved.
#
# 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... | 40.314121 | 155 | 0.563586 |
1cc10910c43055b376d59c1024a4837d10ab2ab2 | 1,313 | ex | Elixir | lib/ido_keido/geolocation.ex | isabella232/ido_keido | 871fd5c8b294fdc89e31e8dba173f2a5464de399 | [
"Apache-2.0"
] | 6 | 2019-11-15T20:34:47.000Z | 2021-04-05T03:15:23.000Z | lib/ido_keido/geolocation.ex | FindHotel/ido_keido | 871fd5c8b294fdc89e31e8dba173f2a5464de399 | [
"Apache-2.0"
] | 1 | 2022-03-20T09:34:42.000Z | 2022-03-20T09:34:42.000Z | lib/ido_keido/geolocation.ex | isabella232/ido_keido | 871fd5c8b294fdc89e31e8dba173f2a5464de399 | [
"Apache-2.0"
] | 3 | 2021-06-09T05:58:09.000Z | 2022-03-20T07:05:13.000Z | defmodule IdoKeido.GeolocationContext do
@moduledoc """
Geolocation context behaviour.
"""
@doc """
Find city geolocation data by IP.
"""
@callback city(ip :: String.t()) :: map() | nil
@doc """
Find country geolocation data by IP.
"""
@callback country(ip :: String.t()) :: map() | nil
end
defm... | 23.035088 | 83 | 0.639756 |
1cc10feb7d9d0cd8f0f0153758d8248a7ecf279d | 3,252 | ex | Elixir | clients/container/lib/google_api/container/v1/model/set_labels_request.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/container/lib/google_api/container/v1/model/set_labels_request.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/container/lib/google_api/container/v1/model/set_labels_request.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"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.789474 | 140 | 0.705412 |
1cc11a8ad2d751e2bf09e91a10be7823f56510b2 | 8,975 | ex | Elixir | lib/prom_ex/plugins/ecto.ex | treble37/prom_ex | f5bb45279cf9576b1c4533de0ad555d3b2987f76 | [
"MIT"
] | null | null | null | lib/prom_ex/plugins/ecto.ex | treble37/prom_ex | f5bb45279cf9576b1c4533de0ad555d3b2987f76 | [
"MIT"
] | null | null | null | lib/prom_ex/plugins/ecto.ex | treble37/prom_ex | f5bb45279cf9576b1c4533de0ad555d3b2987f76 | [
"MIT"
] | null | null | null | if Code.ensure_loaded?(Ecto) do
defmodule PromEx.Plugins.Ecto do
@moduledoc """
This plugin captures metrics emitted by Ecto. Be sure that your PromEx module is listed before your Repo module
in your supervision tree so that the Ecto init events are not missed. If you miss those events the dashboard
v... | 34.255725 | 120 | 0.598663 |
1cc162613be57efc41c458234aa3c726fd06b8a2 | 247 | ex | Elixir | lib/rumbl.ex | brunorafa/rumbl | 910e6ecfaae8da8e54da9e67871a02885c2f383f | [
"MIT"
] | 1 | 2021-05-30T20:57:51.000Z | 2021-05-30T20:57:51.000Z | lib/rumbl.ex | brunorafa/rumbl | 910e6ecfaae8da8e54da9e67871a02885c2f383f | [
"MIT"
] | 2 | 2021-03-09T19:04:16.000Z | 2021-05-10T16:20:10.000Z | lib/rumbl.ex | brunorafa/rumbl | 910e6ecfaae8da8e54da9e67871a02885c2f383f | [
"MIT"
] | 1 | 2020-07-17T14:48:52.000Z | 2020-07-17T14:48:52.000Z | defmodule Rumbl do
@moduledoc """
Rumbl keeps the contexts that define your domain
and business logic.
Contexts are also responsible for managing your data, regardless
if it comes from the database, an external API or others.
"""
end
| 24.7 | 66 | 0.748988 |
1cc1658fb6ad0aa11afa450be4be8faea7d80297 | 10,518 | ex | Elixir | lib/game/command/skills.ex | deep-spaced/ex_venture | 45848abe509620d6d2643b2a780dab01c1ac523b | [
"MIT"
] | null | null | null | lib/game/command/skills.ex | deep-spaced/ex_venture | 45848abe509620d6d2643b2a780dab01c1ac523b | [
"MIT"
] | null | null | null | lib/game/command/skills.ex | deep-spaced/ex_venture | 45848abe509620d6d2643b2a780dab01c1ac523b | [
"MIT"
] | null | null | null | defmodule Game.Command.Skills do
@moduledoc """
Parse out class skills
"""
use Game.Command
alias Game.Character
alias Game.Command
alias Game.Command.Target
alias Game.Effect
alias Game.Experience
alias Game.Hint
alias Game.Item
alias Game.Session.GMCP
alias Game.Skill
alias Game.Skills
... | 26.627848 | 121 | 0.599544 |
1cc18e8cce15fcf1b6ad7997297e1f29216f9456 | 311 | ex | Elixir | exercises/concept/lasagna/lib/lasagna.ex | jaimeiniesta/elixir-1 | e8ddafeb313822645e0cd76743955a5c728a84c5 | [
"MIT"
] | 343 | 2017-06-22T16:28:28.000Z | 2022-03-25T21:33:32.000Z | exercises/concept/lasagna/lib/lasagna.ex | jaimeiniesta/elixir-1 | e8ddafeb313822645e0cd76743955a5c728a84c5 | [
"MIT"
] | 583 | 2017-06-19T10:48:40.000Z | 2022-03-28T21:43:12.000Z | exercises/concept/lasagna/lib/lasagna.ex | jaimeiniesta/elixir-1 | e8ddafeb313822645e0cd76743955a5c728a84c5 | [
"MIT"
] | 228 | 2017-07-05T07:09:32.000Z | 2022-03-27T08:59:08.000Z | defmodule Lasagna do
# Please define the 'expected_minutes_in_oven/0' function
# Please define the 'remaining_minutes_in_oven/1' function
# Please define the 'preparation_time_in_minutes/1' function
# Please define the 'total_time_in_minutes/2' function
# Please define the 'alarm/0' function
end
| 25.916667 | 62 | 0.78135 |
1cc19ee35363b04432627aad63ffdba39ad4d061 | 1,814 | ex | Elixir | test/support/model_case.ex | bitriot/phoenix_base | 15ec83a9acf46202102f2b006d577972f5564b2f | [
"MIT"
] | null | null | null | test/support/model_case.ex | bitriot/phoenix_base | 15ec83a9acf46202102f2b006d577972f5564b2f | [
"MIT"
] | null | null | null | test/support/model_case.ex | bitriot/phoenix_base | 15ec83a9acf46202102f2b006d577972f5564b2f | [
"MIT"
] | null | null | null | defmodule PhoenixBase.ModelCase do
@moduledoc """
This module defines the test case to be used by
model tests.
You may define functions here to be used as helpers in
your model tests. See `errors_on/2`'s definition as reference.
Finally, if the test case interacts with the database,
it cannot be async. ... | 27.484848 | 84 | 0.689085 |
1cc1a5eb835dcfdc70c7dc1d5bf95f70cf20144f | 3,119 | ex | Elixir | lib/mix/tasks/nerves/precompile.ex | TORIFUKUKaiou/nerves_bootstrap | 8d4142779fa5f2a3719118490c8cd3401c6eb374 | [
"Apache-2.0"
] | 33 | 2017-10-20T04:04:00.000Z | 2021-04-27T11:15:08.000Z | lib/mix/tasks/nerves/precompile.ex | TORIFUKUKaiou/nerves_bootstrap | 8d4142779fa5f2a3719118490c8cd3401c6eb374 | [
"Apache-2.0"
] | 67 | 2018-01-10T15:41:43.000Z | 2022-02-23T22:11:55.000Z | lib/mix/tasks/nerves/precompile.ex | TORIFUKUKaiou/nerves_bootstrap | 8d4142779fa5f2a3719118490c8cd3401c6eb374 | [
"Apache-2.0"
] | 14 | 2018-02-04T16:31:28.000Z | 2022-01-21T11:12:46.000Z | defmodule Mix.Tasks.Nerves.Precompile do
use Mix.Task
import Mix.Nerves.IO
@moduledoc false
@switches [loadpaths: :boolean]
def run(args) do
debug_info("Precompile Start")
# Note: We have to directly use the environment variable here instead of
# calling Nerves.Env.enabled?/0 because the nerve... | 30.578431 | 84 | 0.624239 |
1cc1b560dcfc796c269de26a028641b558bf9a81 | 541 | ex | Elixir | web/router.ex | tsara27/collab-x-phoenix | 828f8fbdcf853a43e096a42dc2f003cf443eb792 | [
"MIT"
] | null | null | null | web/router.ex | tsara27/collab-x-phoenix | 828f8fbdcf853a43e096a42dc2f003cf443eb792 | [
"MIT"
] | null | null | null | web/router.ex | tsara27/collab-x-phoenix | 828f8fbdcf853a43e096a42dc2f003cf443eb792 | [
"MIT"
] | null | null | null | defmodule CollabXPhoenix.Router do
use CollabXPhoenix.Web, :router
pipeline :browser do
plug :accepts, ["html"]
plug :fetch_session
plug :fetch_flash
plug :protect_from_forgery
plug :put_secure_browser_headers
end
pipeline :api do
plug :accepts, ["json"]
end
scope "/", CollabXPhoe... | 20.037037 | 57 | 0.689464 |
1cc1bee4379b0c1837f3fbd66f6115798c66bf28 | 1,751 | ex | Elixir | lib/absinthe/blueprint/schema/input_object_type_definition.ex | TheRealReal/absinthe | 6eae5bc36283e58f42d032b8afd90de3ad64f97b | [
"MIT"
] | 4,101 | 2016-03-02T03:49:20.000Z | 2022-03-31T05:46:01.000Z | lib/absinthe/blueprint/schema/input_object_type_definition.ex | TheRealReal/absinthe | 6eae5bc36283e58f42d032b8afd90de3ad64f97b | [
"MIT"
] | 889 | 2016-03-02T16:06:59.000Z | 2022-03-31T20:24:12.000Z | lib/absinthe/blueprint/schema/input_object_type_definition.ex | TheRealReal/absinthe | 6eae5bc36283e58f42d032b8afd90de3ad64f97b | [
"MIT"
] | 564 | 2016-03-02T07:49:59.000Z | 2022-03-06T14:40:59.000Z | defmodule Absinthe.Blueprint.Schema.InputObjectTypeDefinition do
@moduledoc false
alias Absinthe.{Blueprint, Type}
@enforce_keys [:name]
defstruct [
:identifier,
:name,
:module,
description: nil,
fields: [],
imports: [],
directives: [],
source_location: nil,
# Added by phas... | 26.134328 | 70 | 0.635637 |
1cc1f74e5f45750e6fa343e924251e1cd8f1b6f0 | 1,782 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v35/model/site_transcode_setting.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/dfa_reporting/lib/google_api/dfa_reporting/v35/model/site_transcode_setting.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/dfa_reporting/lib/google_api/dfa_reporting/v35/model/site_transcode_setting.ex | dazuma/elixir-google-api | 6a9897168008efe07a6081d2326735fe332e522c | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 35.64 | 197 | 0.735129 |
1cc20df550cd85cd55dc0f0d74f5b47cb44a4961 | 529 | exs | Elixir | test/apps/migrator/config/config.exs | mori5321/yacto | 85d6f216fd7ae16825c03e9772cb75a06b495245 | [
"Apache-2.0"
] | null | null | null | test/apps/migrator/config/config.exs | mori5321/yacto | 85d6f216fd7ae16825c03e9772cb75a06b495245 | [
"Apache-2.0"
] | null | null | null | test/apps/migrator/config/config.exs | mori5321/yacto | 85d6f216fd7ae16825c03e9772cb75a06b495245 | [
"Apache-2.0"
] | null | null | null | use Mix.Config
config :migrator, :ecto_repos, [Migrator.Repo0, Migrator.Repo1]
config :migrator, Migrator.Repo0,
database: "migrator_repo0",
username: "root",
password: "",
hostname: "localhost",
port: 3306
config :migrator, Migrator.Repo1,
database: "migrator_repo1",
username: "root",
password: "",
... | 23 | 76 | 0.695652 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.