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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8543299cb9b9de7cd71a0e13058af122cad89196 | 1,772 | ex | Elixir | lib/groupher_server/cms/models/abuse_report.ex | coderplanets/coderplanets_server | 3663e56340d6d050e974c91f7e499d8424fc25e9 | [
"Apache-2.0"
] | 240 | 2018-11-06T09:36:54.000Z | 2022-02-20T07:12:36.000Z | lib/groupher_server/cms/models/abuse_report.ex | coderplanets/coderplanets_server | 3663e56340d6d050e974c91f7e499d8424fc25e9 | [
"Apache-2.0"
] | 363 | 2018-07-11T03:38:14.000Z | 2021-12-14T01:42:40.000Z | lib/groupher_server/cms/models/abuse_report.ex | mydearxym/mastani_server | f24034a4a5449200165cf4a547964a0961793eab | [
"Apache-2.0"
] | 22 | 2019-01-27T11:47:56.000Z | 2021-02-28T13:17:52.000Z | defmodule GroupherServer.CMS.Model.AbuseReport do
@moduledoc false
alias __MODULE__
use Ecto.Schema
use Accessible
import Ecto.Changeset
import Helper.Utils, only: [get_config: 2]
import GroupherServer.CMS.Helper.Macros
import GroupherServer.CMS.Helper.Utils, only: [articles_foreign_key_constraint: 1]... | 31.087719 | 91 | 0.748871 |
85434073f8b9b35fd7755a25c10eaefa53ab6835 | 547 | ex | Elixir | elixir/samples/json-api/lib/json_api/endpoint.ex | afronski/playground-erlang | 6ac4b58b2fd717260c22a33284547d44a9b5038e | [
"MIT"
] | 2 | 2015-12-09T02:16:51.000Z | 2021-07-26T22:53:43.000Z | elixir/samples/json-api/lib/json_api/endpoint.ex | afronski/playground-erlang | 6ac4b58b2fd717260c22a33284547d44a9b5038e | [
"MIT"
] | null | null | null | elixir/samples/json-api/lib/json_api/endpoint.ex | afronski/playground-erlang | 6ac4b58b2fd717260c22a33284547d44a9b5038e | [
"MIT"
] | 1 | 2016-05-08T18:40:31.000Z | 2016-05-08T18:40:31.000Z | defmodule JsonApi.Endpoint do
use Phoenix.Endpoint, otp_app: :json_api
plug Plug.Static,
at: "/", from: :json_api,
only: ~w(css images js favicon.ico robots.txt)
plug Plug.Logger
plug Phoenix.CodeReloader
plug Plug.Parsers,
parsers: [:urlencoded, :multipart, :json],
pass: ["*/*"],
json_... | 20.259259 | 50 | 0.678245 |
85436fcfedfbd1de273be1382c7933500d0cd0df | 3,079 | exs | Elixir | test/lib/canvas_api/services/team_service_test.exs | usecanvas/api-v2 | 59214db3a2cf12eb939f22fed320fd10cb47cdfe | [
"Apache-2.0"
] | 123 | 2017-04-04T18:15:48.000Z | 2021-04-26T08:04:22.000Z | test/lib/canvas_api/services/team_service_test.exs | usecanvas/api-v2 | 59214db3a2cf12eb939f22fed320fd10cb47cdfe | [
"Apache-2.0"
] | null | null | null | test/lib/canvas_api/services/team_service_test.exs | usecanvas/api-v2 | 59214db3a2cf12eb939f22fed320fd10cb47cdfe | [
"Apache-2.0"
] | 17 | 2017-04-04T18:58:29.000Z | 2021-05-10T21:39:16.000Z | defmodule CanvasAPI.TeamServiceTest do
use CanvasAPI.ModelCase
alias CanvasAPI.TeamService, as: Service
import CanvasAPI.Factory
describe ".list" do
setup do
insert(:team)
user = insert(:user)
user2 = insert(:user, account: user.account)
{:ok, user: user, user2: user2}
end
... | 29.32381 | 80 | 0.612537 |
8543d3d5e8a047d429a4bbd5f5c8cb55b2792125 | 699 | exs | Elixir | plugins/one_webrtc/priv/repo/migrations/05620170710040514_create_client_devices.exs | smpallen99/ucx_ucc | 47225f205a6ac4aacdb9bb4f7512dcf4092576ad | [
"MIT"
] | 11 | 2017-05-15T18:35:05.000Z | 2018-02-05T18:27:40.000Z | plugins/one_webrtc/priv/repo/migrations/05620170710040514_create_client_devices.exs | anndream/infinity_one | 47225f205a6ac4aacdb9bb4f7512dcf4092576ad | [
"MIT"
] | 15 | 2017-11-27T10:38:05.000Z | 2018-02-09T20:42:08.000Z | plugins/one_webrtc/priv/repo/migrations/05620170710040514_create_client_devices.exs | anndream/infinity_one | 47225f205a6ac4aacdb9bb4f7512dcf4092576ad | [
"MIT"
] | 4 | 2017-09-13T11:34:16.000Z | 2018-02-26T13:37:06.000Z | defmodule OneWebrtc.Repo.Migrations.CreateClientDevices do
use Ecto.Migration
def change do
# create table(:client_devices, primary_key: false) do
create table(:client_devices) do
# add :id, :binary_id, primary_key: true
add :ip_addr, :bigint
add :handsfree_input_id, :string
add :ha... | 31.772727 | 91 | 0.708155 |
8543dc8d420c5e76c941902de57f1a9a1dd54a1e | 4,513 | exs | Elixir | .credo.exs | myskoach/timber-elixir | ea111ce65271fdd1d2a2b7661ad1034e497d05b7 | [
"0BSD"
] | 244 | 2016-10-10T15:30:32.000Z | 2021-08-11T08:45:53.000Z | .credo.exs | myskoach/timber-elixir | ea111ce65271fdd1d2a2b7661ad1034e497d05b7 | [
"0BSD"
] | 242 | 2016-10-10T19:34:44.000Z | 2020-11-20T18:56:43.000Z | .credo.exs | myskoach/timber-elixir | ea111ce65271fdd1d2a2b7661ad1034e497d05b7 | [
"0BSD"
] | 35 | 2016-12-04T07:33:04.000Z | 2020-06-17T20:22:11.000Z | # This file contains the configuration for Credo and you are probably reading
# this after creating it with `mix credo.gen.config`.
#
# If you find anything wrong or unclear in this file, please report an
# issue on GitHub: https://github.com/rrrene/credo/issues
#
%{
#
# You can have as many configs as you like in ... | 41.027273 | 101 | 0.658764 |
8543e73aaf7ceeb2989764e67da9da54414c82d3 | 1,917 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/backend_service_group_health.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/compute/lib/google_api/compute/v1/model/backend_service_group_health.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/backend_service_group_health.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 ... | 38.34 | 246 | 0.748565 |
85443f0c91a44f99d9c3e928d868f70766fc0ccc | 310 | ex | Elixir | learning/redfour/physics/lib/physics/database.ex | Mdlkxzmcp/various_elixir | c87527b7118a0c74a042073c04d2228025888ddf | [
"MIT"
] | 2 | 2020-01-20T20:15:20.000Z | 2020-02-27T11:08:42.000Z | learning/redfour/physics/lib/physics/database.ex | Mdlkxzmcp/various_elixir | c87527b7118a0c74a042073c04d2228025888ddf | [
"MIT"
] | null | null | null | learning/redfour/physics/lib/physics/database.ex | Mdlkxzmcp/various_elixir | c87527b7118a0c74a042073c04d2228025888ddf | [
"MIT"
] | null | null | null | use Amnesia
defdatabase Physics.Database do
deftable Planet, [{:id, autoincrement}, :name, :mass, :radius, :type, :ev], type: :ordered_set do
# helper methods, lookups, special queries etc can go in here
# for instance:
# def add_moon(self, moon) do
# add to moons table
# end
end
end
| 25.833333 | 99 | 0.670968 |
85444b9c416ae208851c138c221309780a6f7e29 | 1,067 | ex | Elixir | lib/oli/delivery/gating/condition_types/condition_type.ex | malav2110/oli-torus | 8af64e762a7c8a2058bd27a7ab8e96539ffc055f | [
"MIT"
] | 1 | 2022-03-17T20:35:47.000Z | 2022-03-17T20:35:47.000Z | lib/oli/delivery/gating/condition_types/condition_type.ex | malav2110/oli-torus | 8af64e762a7c8a2058bd27a7ab8e96539ffc055f | [
"MIT"
] | 9 | 2021-11-02T16:52:09.000Z | 2022-03-25T15:14:01.000Z | lib/oli/delivery/gating/condition_types/condition_type.ex | malav2110/oli-torus | 8af64e762a7c8a2058bd27a7ab8e96539ffc055f | [
"MIT"
] | null | null | null | defmodule Oli.Delivery.Gating.ConditionTypes.ConditionType do
@moduledoc """
Behavior a gating condition type must implement
"""
alias Oli.Delivery.Gating.GatingCondition
alias Oli.Delivery.Gating.ConditionTypes.ConditionContext
@doc """
Returns the condition type identifier
"""
@callback type() :: A... | 38.107143 | 102 | 0.738519 |
85446a972febd8b6f3ebccfae752826774a204bf | 3,330 | ex | Elixir | lib/mix/lib/mix/generator.ex | mk/elixir | 2b2c66ecf7b1cc2167cae9cc3e88f950994223f1 | [
"Apache-2.0"
] | 4 | 2015-12-22T02:46:39.000Z | 2016-04-26T06:11:09.000Z | lib/mix/lib/mix/generator.ex | mk/elixir | 2b2c66ecf7b1cc2167cae9cc3e88f950994223f1 | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/generator.ex | mk/elixir | 2b2c66ecf7b1cc2167cae9cc3e88f950994223f1 | [
"Apache-2.0"
] | null | null | null | defmodule Mix.Generator do
@moduledoc """
Conveniences for working with paths and generating content.
All of these functions are verbose, in the sense they log
the action to be performed via `Mix.shell/0`.
"""
@doc """
Creates a file with the given contents.
If the file already exists, asks for user c... | 26.854839 | 102 | 0.641441 |
85449108b3aaa84760a43fbbd818589f1fcee7d4 | 1,723 | ex | Elixir | clients/sheets/lib/google_api/sheets/v4/model/data_source_refresh_daily_schedule.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-10-01T09:20:41.000Z | 2021-10-01T09:20:41.000Z | clients/sheets/lib/google_api/sheets/v4/model/data_source_refresh_daily_schedule.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/sheets/lib/google_api/sheets/v4/model/data_source_refresh_daily_schedule.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... | 36.659574 | 255 | 0.752757 |
854497eb2a82c40fcdb437125f67e5906a2a44c2 | 255 | ex | Elixir | apps/web_api/lib/web_api.ex | vapordao/staxx | 5110167573e67a91c0865c3265896642ebe4012e | [
"Apache-2.0"
] | 1 | 2020-10-23T19:25:27.000Z | 2020-10-23T19:25:27.000Z | apps/web_api/lib/web_api.ex | vapordao/staxx | 5110167573e67a91c0865c3265896642ebe4012e | [
"Apache-2.0"
] | 5 | 2019-01-11T11:48:08.000Z | 2019-01-16T17:29:23.000Z | apps/web_api/lib/web_api.ex | vapordao/staxx | 5110167573e67a91c0865c3265896642ebe4012e | [
"Apache-2.0"
] | 7 | 2019-10-09T05:49:52.000Z | 2022-03-23T16:48:45.000Z | defmodule Staxx.WebApi do
@moduledoc """
WebApi 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
| 25.5 | 66 | 0.752941 |
854499ad0047759dfa6a5ae04fba17fe25d11629 | 1,739 | ex | Elixir | lib/pixie/protocol/unsubscribe.ex | rdalin82/pixie | add50e2bd7fbd807c7b82cd10a2123828be4c58f | [
"MIT"
] | null | null | null | lib/pixie/protocol/unsubscribe.ex | rdalin82/pixie | add50e2bd7fbd807c7b82cd10a2123828be4c58f | [
"MIT"
] | null | null | null | lib/pixie/protocol/unsubscribe.ex | rdalin82/pixie | add50e2bd7fbd807c7b82cd10a2123828be4c58f | [
"MIT"
] | null | null | null | # Request Response
# MUST include: * channel MUST include: * channel
# * clientId * successful
# * subscription * clientId
# * subscription
# MAY i... | 35.489796 | 112 | 0.541691 |
854499ccdf4209880922d42a2d50935eb2bff7c1 | 807 | ex | Elixir | lib/edgedb/protocol/type_descriptors/array_type_descriptor.ex | f0lio/edgedb-elixir | b285bd8037b0b951aabfa1d1733889880f8bfd66 | [
"MIT"
] | null | null | null | lib/edgedb/protocol/type_descriptors/array_type_descriptor.ex | f0lio/edgedb-elixir | b285bd8037b0b951aabfa1d1733889880f8bfd66 | [
"MIT"
] | null | null | null | lib/edgedb/protocol/type_descriptors/array_type_descriptor.ex | f0lio/edgedb-elixir | b285bd8037b0b951aabfa1d1733889880f8bfd66 | [
"MIT"
] | null | null | null | defmodule EdgeDB.Protocol.TypeDescriptors.ArrayTypeDescriptor do
@moduledoc false
use EdgeDB.Protocol.TypeDescriptor
alias EdgeDB.Protocol.{
Codecs,
Datatypes
}
deftypedescriptor(type: 6)
@impl EdgeDB.Protocol.TypeDescriptor
def parse_description(codecs, id, <<type_pos::uint16, dimension_count... | 26.9 | 99 | 0.72119 |
8544a10fb41ae563fb45755556bf30300e7419b7 | 1,765 | ex | Elixir | clients/firestore/lib/google_api/firestore/v1beta1/model/existence_filter.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-10-01T09:20:41.000Z | 2021-10-01T09:20:41.000Z | clients/firestore/lib/google_api/firestore/v1beta1/model/existence_filter.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/firestore/lib/google_api/firestore/v1beta1/model/existence_filter.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... | 35.3 | 252 | 0.731445 |
8544bcd4f4843ff9f209a9972b5f189a5ac00cbb | 712 | ex | Elixir | apps/utils/lib/helpers/intersect.ex | AndonMitev/EWallet | 898cde38933d6f134734528b3e594eedf5fa50f3 | [
"Apache-2.0"
] | 322 | 2018-02-28T07:38:44.000Z | 2020-05-27T23:09:55.000Z | apps/utils/lib/helpers/intersect.ex | AndonMitev/EWallet | 898cde38933d6f134734528b3e594eedf5fa50f3 | [
"Apache-2.0"
] | 643 | 2018-02-28T12:05:20.000Z | 2020-05-22T08:34:38.000Z | apps/utils/lib/helpers/intersect.ex | AndonMitev/EWallet | 898cde38933d6f134734528b3e594eedf5fa50f3 | [
"Apache-2.0"
] | 63 | 2018-02-28T10:57:06.000Z | 2020-05-27T23:10:38.000Z | # Copyright 2018-2019 OmiseGO Pte Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 32.363636 | 74 | 0.738764 |
8544e089f909c5ec512f8a4c24c3074b6cbab68e | 349 | exs | Elixir | source/backend/api_app/priv/repo/seeds.exs | edwinvautier/aio-group3-proj01 | 2ca3d834f358a38692e8ae4d6266bbea130a6cb5 | [
"MIT"
] | 3 | 2020-04-05T15:26:55.000Z | 2020-06-17T15:01:33.000Z | source/backend/api_app/priv/repo/seeds.exs | edwinvautier/aio-group3-proj01 | 2ca3d834f358a38692e8ae4d6266bbea130a6cb5 | [
"MIT"
] | 48 | 2020-04-01T16:00:47.000Z | 2020-04-28T16:22:12.000Z | source/backend/api_app/priv/repo/seeds.exs | edwinvautier/aio-group3-proj01 | 2ca3d834f358a38692e8ae4d6266bbea130a6cb5 | [
"MIT"
] | 4 | 2020-03-30T15:36:55.000Z | 2020-06-17T15:01:36.000Z | # Script for populating the database. You can run it as:
#
# mix run priv/repo/seeds.exs
#
# Inside the script, you can read and write to any of your
# repositories directly:
#
# ApiApp.Repo.insert!(%ApiApp.SomeSchema{})
#
# We recommend using the bang functions (`insert!`, `update!`
# and so on) as they will f... | 29.083333 | 61 | 0.704871 |
8544ef4b946d07b572852e1ad3e2a48c6b147801 | 348 | exs | Elixir | elixir/priv/repo/migrations/20210607054018_create_companies.exs | sirryanscott/web-homework | f705ea05a76f68b759a486595351313289ac6e85 | [
"MIT"
] | null | null | null | elixir/priv/repo/migrations/20210607054018_create_companies.exs | sirryanscott/web-homework | f705ea05a76f68b759a486595351313289ac6e85 | [
"MIT"
] | null | null | null | elixir/priv/repo/migrations/20210607054018_create_companies.exs | sirryanscott/web-homework | f705ea05a76f68b759a486595351313289ac6e85 | [
"MIT"
] | null | null | null | defmodule Homework.Repo.Migrations.CreateCompanies do
use Ecto.Migration
def change do
create table(:companies, primary_key: false) do
add(:id, :uuid, primary_key: true)
add(:name, :string)
add(:credit_line, :integer, null: false)
add(:available_credit, :integer, null: false)
tim... | 23.2 | 53 | 0.672414 |
8545351b17ee8fa3a58faed76ed88d9034ae3ea4 | 732 | ex | Elixir | lib/asciinema_web/controllers/page_controller.ex | lyknode/asciinema-server | b468a9c990a43d78fbd63ce32eedc37535ca45a8 | [
"Apache-2.0"
] | null | null | null | lib/asciinema_web/controllers/page_controller.ex | lyknode/asciinema-server | b468a9c990a43d78fbd63ce32eedc37535ca45a8 | [
"Apache-2.0"
] | null | null | null | lib/asciinema_web/controllers/page_controller.ex | lyknode/asciinema-server | b468a9c990a43d78fbd63ce32eedc37535ca45a8 | [
"Apache-2.0"
] | null | null | null | defmodule AsciinemaWeb.PageController do
use AsciinemaWeb, :controller
plug :put_layout, :app2
def about(conn, _params) do
conn
|> assign(:page_title, "About")
|> render("about.html")
end
def privacy(conn, _params) do
conn
|> assign(:page_title, "Privacy Policy")
|> render("privacy.... | 19.783784 | 46 | 0.639344 |
85454f8b1ed3d5e3cd1e98102d3711af3f9ba53d | 126 | ex | Elixir | lib/google_fit/activity_type/badminton.ex | tsubery/google_fit | 7578b832c560b3b4a78059ac86af6e111812712e | [
"Apache-2.0"
] | 2 | 2017-02-01T13:51:26.000Z | 2019-04-12T11:37:25.000Z | lib/google_fit/activity_type/badminton.ex | tsubery/google_fit | 7578b832c560b3b4a78059ac86af6e111812712e | [
"Apache-2.0"
] | null | null | null | lib/google_fit/activity_type/badminton.ex | tsubery/google_fit | 7578b832c560b3b4a78059ac86af6e111812712e | [
"Apache-2.0"
] | null | null | null | defmodule GoogleFit.ActivityType.Badminton do
@moduledoc false
def code, do: GoogleFit.ActivityType.code(__MODULE__)
end
| 21 | 55 | 0.809524 |
8545bd6dfa78b382537bb472a4c3d2c7e75889d7 | 5,312 | exs | Elixir | lib/elixir/test/elixir/protocol/consolidation_test.exs | andrewtimberlake/elixir | a1c4ffc897f9407fe7e739e20e697805fbbff810 | [
"Apache-2.0"
] | 1 | 2018-02-24T19:48:35.000Z | 2018-02-24T19:48:35.000Z | lib/elixir/test/elixir/protocol/consolidation_test.exs | andrewtimberlake/elixir | a1c4ffc897f9407fe7e739e20e697805fbbff810 | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/protocol/consolidation_test.exs | andrewtimberlake/elixir | a1c4ffc897f9407fe7e739e20e697805fbbff810 | [
"Apache-2.0"
] | null | null | null | Code.require_file("../test_helper.exs", __DIR__)
path = Path.expand("../../ebin", __DIR__)
File.mkdir_p!(path)
compile = fn {:module, module, binary, _} ->
File.write!("#{path}/#{module}.beam", binary)
end
defmodule Protocol.ConsolidationTest do
use ExUnit.Case, async: true
compile.(
defprotocol Sample do... | 29.027322 | 103 | 0.672816 |
8545d94e720118f390b54c8a2fd1982398852026 | 9,038 | ex | Elixir | lib/phx_firewallplug_web/plugs/firewall.ex | sonajen/phx_firewallplug | a9bfc388a1a2cbc0f7366986d699bde46bbf33df | [
"MIT"
] | null | null | null | lib/phx_firewallplug_web/plugs/firewall.ex | sonajen/phx_firewallplug | a9bfc388a1a2cbc0f7366986d699bde46bbf33df | [
"MIT"
] | null | null | null | lib/phx_firewallplug_web/plugs/firewall.ex | sonajen/phx_firewallplug | a9bfc388a1a2cbc0f7366986d699bde46bbf33df | [
"MIT"
] | null | null | null | ####################################################################################################
# #
# firewall.ex #
# ----------- ... | 56.4875 | 107 | 0.207789 |
854602aa44b07407834d749ccbe0f845342fd447 | 60,053 | ex | Elixir | lib/ash/filter/filter.ex | savish/ash | 7faf73097a6c6f801851e9d89569b6f5e6e87f81 | [
"MIT"
] | null | null | null | lib/ash/filter/filter.ex | savish/ash | 7faf73097a6c6f801851e9d89569b6f5e6e87f81 | [
"MIT"
] | null | null | null | lib/ash/filter/filter.ex | savish/ash | 7faf73097a6c6f801851e9d89569b6f5e6e87f81 | [
"MIT"
] | null | null | null | defmodule Ash.Filter do
@dialyzer {:nowarn_function, do_map: 2, map: 2}
alias Ash.Actions.SideLoad
alias Ash.Engine.Request
alias Ash.Error.Query.{
AggregatesNotSupported,
InvalidFilterValue,
NoSuchAttributeOrRelationship,
NoSuchFilterPredicate,
NoSuchFunction,
NoSuchOperator,
ReadA... | 30.530249 | 134 | 0.617554 |
8546067ea177e4818c1938a9129732735c46cb32 | 1,828 | ex | Elixir | clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p2beta1_position.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p2beta1_position.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p2beta1_position.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 33.851852 | 197 | 0.727024 |
85460c10360cd309c4403705b505ba28fec8122e | 5,546 | ex | Elixir | lib/swoosh/adapters/mailgun.ex | rparcus/swoosh | 87d4347c46b1e8e502436e0887429be127334cc2 | [
"MIT"
] | null | null | null | lib/swoosh/adapters/mailgun.ex | rparcus/swoosh | 87d4347c46b1e8e502436e0887429be127334cc2 | [
"MIT"
] | null | null | null | lib/swoosh/adapters/mailgun.ex | rparcus/swoosh | 87d4347c46b1e8e502436e0887429be127334cc2 | [
"MIT"
] | null | null | null | defmodule Swoosh.Adapters.Mailgun do
@moduledoc ~S"""
An adapter that sends email using the Mailgun API.
For reference: [Mailgun API docs](https://documentation.mailgun.com/api-sending.html#sending)
## Dependency
Mailgun adapter requires `Plug` to work properly.
## Example
# config/config.exs
... | 32.244186 | 98 | 0.646412 |
8546193a6866cc8e281d670f4c8d699d6571aba3 | 1,805 | ex | Elixir | apps/ewallet/lib/ewallet/policies/policy_helper.ex | amadeobrands/ewallet | 505b7822721940a7b892a9b35c225e80cc8ac0b4 | [
"Apache-2.0"
] | 1 | 2018-12-07T06:21:21.000Z | 2018-12-07T06:21:21.000Z | apps/ewallet/lib/ewallet/policies/policy_helper.ex | amadeobrands/ewallet | 505b7822721940a7b892a9b35c225e80cc8ac0b4 | [
"Apache-2.0"
] | null | null | null | apps/ewallet/lib/ewallet/policies/policy_helper.ex | amadeobrands/ewallet | 505b7822721940a7b892a9b35c225e80cc8ac0b4 | [
"Apache-2.0"
] | null | null | null | defmodule EWallet.PolicyHelper do
@moduledoc """
A policy helper containing the actual authorization.
"""
alias EWalletConfig.Intersecter
alias EWalletDB.{Account, Membership, Role}
def admin_authorize(user, account_id_or_uuids) do
# admin is required to create
role = Role.get_by(name: "admin")
... | 34.056604 | 89 | 0.693629 |
854621c1e727729254876edae1e3c96468e91800 | 642 | ex | Elixir | lib/blog_api/blog/favorite.ex | vbrazo/blog_api | 8a3e15c666beef8f33b6d323627f92379267ecd9 | [
"MIT"
] | null | null | null | lib/blog_api/blog/favorite.ex | vbrazo/blog_api | 8a3e15c666beef8f33b6d323627f92379267ecd9 | [
"MIT"
] | null | null | null | lib/blog_api/blog/favorite.ex | vbrazo/blog_api | 8a3e15c666beef8f33b6d323627f92379267ecd9 | [
"MIT"
] | null | null | null | defmodule BlogApi.Blog.Favorite do
@moduledoc """
The Favorite Model
"""
use Ecto.Schema
import Ecto.Changeset
alias BlogApi.Accounts.User
alias BlogApi.Blog.{Article, Favorite}
@required_fields ~w(user_id article_id)a
schema "favorites" do
belongs_to(:user, User, foreign_key: :user_id)
bel... | 22.928571 | 77 | 0.719626 |
854666890ee0fec5ece9eb69e1895a78a31bd279 | 4,898 | exs | Elixir | test/stats_test.exs | michaelst/excoveralls | cf806aa18c116ef344a6a39bcec8a8f5e111644a | [
"MIT"
] | null | null | null | test/stats_test.exs | michaelst/excoveralls | cf806aa18c116ef344a6a39bcec8a8f5e111644a | [
"MIT"
] | null | null | null | test/stats_test.exs | michaelst/excoveralls | cf806aa18c116ef344a6a39bcec8a8f5e111644a | [
"MIT"
] | null | null | null | defmodule ExCoveralls.StatsTest do
use ExUnit.Case
import Mock
alias ExCoveralls.Stats
alias ExCoveralls.Cover
alias ExCoveralls.Settings
@stats [{{Stats, 1}, 0}, {{Stats, 2}, 1}]
@source "test/fixtures/test.ex"
@content "defmodule Test do\n def test do\n end\nend\n"
@tri... | 34.985714 | 121 | 0.639036 |
85466e7fb2c98eae49cf3924f549c4361de759de | 7,204 | ex | Elixir | lib/farmbot/system/system.ex | pdgonzalez872/farmbot_os | a444248f05ee8f4fe57f6a4865b942131960f76c | [
"MIT"
] | null | null | null | lib/farmbot/system/system.ex | pdgonzalez872/farmbot_os | a444248f05ee8f4fe57f6a4865b942131960f76c | [
"MIT"
] | null | null | null | lib/farmbot/system/system.ex | pdgonzalez872/farmbot_os | a444248f05ee8f4fe57f6a4865b942131960f76c | [
"MIT"
] | null | null | null | defmodule Farmbot.System do
@moduledoc """
Common functionality that should be implemented by a system
"""
alias Farmbot.System.Init.Ecto
error_msg = """
Please configure `:system_tasks` and `:data_path`!
"""
@system_tasks Application.get_env(:farmbot, :behaviour)[:system_tasks]
@system_tasks || Mi... | 25.45583 | 117 | 0.663798 |
854695a7879a7d6e517edbccf4f2291ce031f49f | 948 | exs | Elixir | installer/templates/phx_single/config/prod.secret.exs | jesseshieh/phoenix | 1776e9df0a71de67374ed488b3f00ccb434045b3 | [
"MIT"
] | null | null | null | installer/templates/phx_single/config/prod.secret.exs | jesseshieh/phoenix | 1776e9df0a71de67374ed488b3f00ccb434045b3 | [
"MIT"
] | 1 | 2020-05-26T19:38:18.000Z | 2020-05-26T19:38:18.000Z | installer/templates/phx_single/config/prod.secret.exs | jesseshieh/phoenix | 1776e9df0a71de67374ed488b3f00ccb434045b3 | [
"MIT"
] | null | null | null | # In this file, we load production configuration and secrets
# from environment variables. You can also hardcode secrets,
# although such is generally not recommended and you have to
# remember to add this file to your .gitignore.
use Mix.Config
secret_key_base =
System.get_env("SECRET_KEY_BASE") ||
raise """
... | 31.6 | 71 | 0.712025 |
8546960b3431dda16bf093de12d8255a0a74ed55 | 4,594 | ex | Elixir | lib/hexpm/repository/resolver.ex | hubertpompecki/hexpm | 5cd4208b07a70bf2e1490930bf5d577978793b50 | [
"Apache-2.0"
] | null | null | null | lib/hexpm/repository/resolver.ex | hubertpompecki/hexpm | 5cd4208b07a70bf2e1490930bf5d577978793b50 | [
"Apache-2.0"
] | null | null | null | lib/hexpm/repository/resolver.ex | hubertpompecki/hexpm | 5cd4208b07a70bf2e1490930bf5d577978793b50 | [
"Apache-2.0"
] | null | null | null | defmodule Hexpm.Repository.Resolver do
import Ecto.Query, only: [from: 2, or_where: 3]
@behaviour Hex.Registry
def run(requirements, build_tools) do
config = guess_config(build_tools)
resolve(requirements, config)
end
defp resolve(requirements, config) do
{:ok, _name} = open()
deps = resol... | 27.508982 | 98 | 0.594689 |
8546c2eb4fab4e13c6920c4a85e9adab8e2642b1 | 1,788 | exs | Elixir | test/linkir_web/controllers/user_registration_controller_test.exs | byhbt/linkir | 8ac72cd0da2696b628f6981595e75164adfc5945 | [
"MIT"
] | null | null | null | test/linkir_web/controllers/user_registration_controller_test.exs | byhbt/linkir | 8ac72cd0da2696b628f6981595e75164adfc5945 | [
"MIT"
] | null | null | null | test/linkir_web/controllers/user_registration_controller_test.exs | byhbt/linkir | 8ac72cd0da2696b628f6981595e75164adfc5945 | [
"MIT"
] | null | null | null | defmodule LinkirWeb.UserRegistrationControllerTest do
use LinkirWeb.ConnCase, async: true
import Linkir.AccountsFixtures
describe "GET /users/register" do
test "renders registration page", %{conn: conn} do
conn = get(conn, Routes.user_registration_path(conn, :new))
response = html_response(conn,... | 32.509091 | 98 | 0.626398 |
8546cd5a6fb139ca8abcd1cfc2e4a6bcc2751f81 | 692 | exs | Elixir | test/cadet/auth/provider_test.exs | source-academy/backend | 0074e1ab846a091ba3bbfbfb76660498b3e4b4be | [
"Apache-2.0"
] | 3 | 2021-08-15T23:57:32.000Z | 2022-02-02T06:50:55.000Z | test/cadet/auth/provider_test.exs | source-academy/backend | 0074e1ab846a091ba3bbfbfb76660498b3e4b4be | [
"Apache-2.0"
] | 76 | 2021-07-05T07:13:52.000Z | 2022-03-28T07:23:11.000Z | test/cadet/auth/provider_test.exs | source-academy/backend | 0074e1ab846a091ba3bbfbfb76660498b3e4b4be | [
"Apache-2.0"
] | 1 | 2022-03-26T14:27:51.000Z | 2022-03-26T14:27:51.000Z | defmodule Cadet.Auth.ProviderTest do
@moduledoc """
Some of the test values in this file are specified in config/test.exs.
"""
use ExUnit.Case, async: true
alias Cadet.Auth.Provider
test "with valid provider" do
assert {:ok, _} = Provider.authorise("test", "student_code", nil, nil)
assert {:ok, _... | 30.086957 | 74 | 0.674855 |
85474203047a6b0fcc81358a0793288d7a9f1c36 | 4,900 | exs | Elixir | mix.exs | sasa1977/ecto_sql | b7d0c916388bd8b6bccfd74457654b455a012c30 | [
"Apache-2.0"
] | null | null | null | mix.exs | sasa1977/ecto_sql | b7d0c916388bd8b6bccfd74457654b455a012c30 | [
"Apache-2.0"
] | null | null | null | mix.exs | sasa1977/ecto_sql | b7d0c916388bd8b6bccfd74457654b455a012c30 | [
"Apache-2.0"
] | null | null | null | defmodule EctoSQL.MixProject do
use Mix.Project
@version "3.5.0-dev"
@adapters ~w(pg myxql tds)
def project do
[
app: :ecto_sql,
version: @version,
elixir: "~> 1.7",
deps: deps(),
test_paths: test_paths(System.get_env("ECTO_ADAPTER")),
xref: [
exclude: [
... | 24.257426 | 90 | 0.559592 |
8547bf58a5834e919f57fdcb7ef44c0c620add5c | 56 | ex | Elixir | web/views/session_view.ex | eqdw/warg | c60669a492bfecb829381357864a61ddb0438174 | [
"MIT"
] | null | null | null | web/views/session_view.ex | eqdw/warg | c60669a492bfecb829381357864a61ddb0438174 | [
"MIT"
] | null | null | null | web/views/session_view.ex | eqdw/warg | c60669a492bfecb829381357864a61ddb0438174 | [
"MIT"
] | null | null | null | defmodule Warg.SessionView do
use Warg.Web, :view
end
| 14 | 29 | 0.767857 |
8547c659e540508a3b374964865d54a55687f49e | 1,231 | exs | Elixir | mix.exs | paulanthonywilson/mcam | df9c5aaae00b568749dff22613636f5cb92f905a | [
"MIT"
] | null | null | null | mix.exs | paulanthonywilson/mcam | df9c5aaae00b568749dff22613636f5cb92f905a | [
"MIT"
] | 8 | 2020-11-16T09:59:12.000Z | 2020-11-16T10:13:07.000Z | mix.exs | paulanthonywilson/mcam | df9c5aaae00b568749dff22613636f5cb92f905a | [
"MIT"
] | null | null | null | defmodule Mcam.MixProject do
use Mix.Project
def project do
[
apps_path: "apps",
version: version(),
start_permanent: Mix.env() == :prod,
deps: deps(),
aliases: aliases(),
releases: releases()
]
end
# Dependencies listed here are available only for this
# project ... | 22.796296 | 71 | 0.586515 |
8547c8a4120a58719e1dfae2796cfec4a61852a1 | 41,335 | ex | Elixir | lib/ecto/migration.ex | jjl/ecto_sql | ed4f1607f13cf10d4db65ae4e6f85f7c19ae671a | [
"Apache-2.0"
] | null | null | null | lib/ecto/migration.ex | jjl/ecto_sql | ed4f1607f13cf10d4db65ae4e6f85f7c19ae671a | [
"Apache-2.0"
] | null | null | null | lib/ecto/migration.ex | jjl/ecto_sql | ed4f1607f13cf10d4db65ae4e6f85f7c19ae671a | [
"Apache-2.0"
] | null | null | null | defmodule Ecto.Migration do
@moduledoc """
Migrations are used to modify your database schema over time.
This module provides many helpers for migrating the database,
allowing developers to use Elixir to alter their storage in
a way that is database independent.
Migrations typically provide two operations... | 33.174157 | 123 | 0.677537 |
8547dadc7d98c7a56b05be36b09e7e7014dce89f | 531 | exs | Elixir | code/project/5/issues/config/config.exs | alvarocamillont/introdu-o_elixir | 1d72d4f4b01d9312c4b066ce3c0fe8d9bfaaade1 | [
"MIT"
] | null | null | null | code/project/5/issues/config/config.exs | alvarocamillont/introdu-o_elixir | 1d72d4f4b01d9312c4b066ce3c0fe8d9bfaaade1 | [
"MIT"
] | 1 | 2021-03-09T16:27:25.000Z | 2021-03-09T16:27:25.000Z | programming-elixir-book/code/project/5/issues/config/config.exs | jordanhubbard/elixir-projects | dee341d672e83a45a17a4a85abd54a480f95c506 | [
"BSD-2-Clause"
] | null | null | null | #---
# Excerpted from "Programming Elixir ≥ 1.6",
# published by The Pragmatic Bookshelf.
# Copyrights apply to this code. It may not be used to create training material,
# courses, books, articles, and the like. Contact us if you are in doubt.
# We make no guarantees that this code is fit for any purpose.
# Visit http... | 33.1875 | 85 | 0.734463 |
85483d58fc8c8321551f9a10cadc354017875923 | 1,779 | exs | Elixir | elixir_cloud_tags/mix.exs | arthur-timoteo/next-level-week-heat_impulse | ccd1980cb1e836967fee79fcb3a668ebd4317027 | [
"MIT"
] | null | null | null | elixir_cloud_tags/mix.exs | arthur-timoteo/next-level-week-heat_impulse | ccd1980cb1e836967fee79fcb3a668ebd4317027 | [
"MIT"
] | null | null | null | elixir_cloud_tags/mix.exs | arthur-timoteo/next-level-week-heat_impulse | ccd1980cb1e836967fee79fcb3a668ebd4317027 | [
"MIT"
] | null | null | null | defmodule ElixirCloudTags.MixProject do
use Mix.Project
def project do
[
app: :elixir_cloud_tags,
version: "0.1.0",
elixir: "~> 1.12",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:gettext] ++ Mix.compilers(),
start_permanent: Mix.env() == :prod,
aliases: alias... | 26.954545 | 84 | 0.578415 |
8548466512b6cba2661fd951bc0b78b32856fe1d | 2,204 | ex | Elixir | lib/vault/http/tesla.ex | kianmeng/libvault | 73f19da41227bb80770cefdc1716446fae492efa | [
"MIT"
] | 40 | 2019-01-27T03:42:03.000Z | 2021-12-15T17:31:27.000Z | lib/vault/http/tesla.ex | kianmeng/libvault | 73f19da41227bb80770cefdc1716446fae492efa | [
"MIT"
] | 17 | 2018-12-04T20:13:26.000Z | 2021-02-12T03:27:14.000Z | lib/vault/http/tesla.ex | kianmeng/libvault | 73f19da41227bb80770cefdc1716446fae492efa | [
"MIT"
] | 7 | 2019-02-13T22:54:00.000Z | 2021-06-10T10:32:36.000Z | if Code.ensure_loaded?(Tesla) do
defmodule Vault.HTTP.Tesla do
@moduledoc """
`Tesla` HTTP Adapter for Vault.Http calls.
It uses the following middleware:
- `Tesla.Middleware.FollowRedirects`
## Setup
Add `tesla` and your http client of choice to your dependacies.
defp deps() do
... | 27.898734 | 99 | 0.59755 |
8548492b2099952340cb270a278e6e6d96a94caf | 3,333 | exs | Elixir | config/runtime.exs | levijcl/mao | aae70589605ada84ca571a51f5ee4377091e0eb3 | [
"MIT"
] | null | null | null | config/runtime.exs | levijcl/mao | aae70589605ada84ca571a51f5ee4377091e0eb3 | [
"MIT"
] | null | null | null | config/runtime.exs | levijcl/mao | aae70589605ada84ca571a51f5ee4377091e0eb3 | [
"MIT"
] | null | null | null | import Config
# config/runtime.exs is executed for all environments, including
# during releases. It is executed after compilation and before the
# system starts, so it is typically used to load production configuration
# and secrets from environment variables or elsewhere. Do not define
# any compile-time configurati... | 38.310345 | 82 | 0.691869 |
8548698f2bea93e55231f395751aaf4930bf0734 | 148 | exs | Elixir | elixir/99.exs | merxer/kata | 5dbbca8b4173029f9311398148de9437a329cf9a | [
"MIT"
] | null | null | null | elixir/99.exs | merxer/kata | 5dbbca8b4173029f9311398148de9437a329cf9a | [
"MIT"
] | null | null | null | elixir/99.exs | merxer/kata | 5dbbca8b4173029f9311398148de9437a329cf9a | [
"MIT"
] | null | null | null | defmodule Example do
@attr "one"
def first, do: @attr
@attr "two"
def second, do: @attr
end
IO.puts "#{Example.first} #{Example.second}"
| 14.8 | 45 | 0.641892 |
854889b29b859ca3bf54e5768423abb383fd3758 | 2,047 | ex | Elixir | lib/faker/internet.ex | forksss/faker | 380ca7d5f5be6a43fdbbe471ee96a60cd7c706fe | [
"MIT"
] | 2 | 2016-04-23T15:09:51.000Z | 2017-03-02T12:04:42.000Z | lib/faker/internet.ex | batate/faker | b352ea8254ddf3185ce2839f91c862605e8a0498 | [
"MIT"
] | null | null | null | lib/faker/internet.ex | batate/faker | b352ea8254ddf3185ce2839f91c862605e8a0498 | [
"MIT"
] | null | null | null | defmodule Faker.Internet do
data_path = Path.expand(Path.join(__DIR__, "../../priv/internet.json"))
json = File.read!(data_path) |> Poison.Parser.parse!
Enum.each json, fn(el) ->
{lang, data} = el
Enum.each data, fn
{"values", values} ->
Enum.each values, fn({fun, list}) ->
def unq... | 35.293103 | 143 | 0.579873 |
854905e73b80bd98311476c4f69bd9d3e08c9a26 | 1,181 | ex | Elixir | lib/wobserver/system/statistics.ex | szlend/wobserver | 6c3ea1ef772ddb4a0b35956d155f33fc46f71a8c | [
"MIT"
] | 984 | 2017-02-06T17:13:48.000Z | 2022-03-18T22:46:55.000Z | lib/wobserver/system/statistics.ex | szlend/wobserver | 6c3ea1ef772ddb4a0b35956d155f33fc46f71a8c | [
"MIT"
] | 52 | 2017-02-13T16:12:10.000Z | 2021-04-08T22:31:28.000Z | lib/wobserver/system/statistics.ex | szlend/wobserver | 6c3ea1ef772ddb4a0b35956d155f33fc46f71a8c | [
"MIT"
] | 74 | 2017-02-13T15:23:49.000Z | 2021-07-30T07:43:27.000Z | defmodule Wobserver.System.Statistics do
@moduledoc ~S"""
Handles system statistics.
"""
@typedoc ~S"""
System statistics.
"""
@type t :: %__MODULE__{
uptime: integer,
process_running: integer,
process_total: integer,
process_max: integer,
input: integer,
output: integer,
}
d... | 17.367647 | 49 | 0.598645 |
85494e6fbcf58ea8d641891a763154d42455d13c | 5,414 | ex | Elixir | clients/sheets/lib/google_api/sheets/v4/model/cell_data.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/sheets/lib/google_api/sheets/v4/model/cell_data.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/sheets/lib/google_api/sheets/v4/model/cell_data.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... | 51.561905 | 177 | 0.71075 |
8549d351b7f420f8c898a0ba3e3526546bf7f692 | 2,936 | exs | Elixir | elixir/robot-simulator/robot_simulator_test.exs | jjdonov/Exercism | 3585420c5b0e74ea51a6fbd60e8263620061a1d9 | [
"MIT"
] | null | null | null | elixir/robot-simulator/robot_simulator_test.exs | jjdonov/Exercism | 3585420c5b0e74ea51a6fbd60e8263620061a1d9 | [
"MIT"
] | null | null | null | elixir/robot-simulator/robot_simulator_test.exs | jjdonov/Exercism | 3585420c5b0e74ea51a6fbd60e8263620061a1d9 | [
"MIT"
] | null | null | null | if !System.get_env("EXERCISM_TEST_EXAMPLES") do
Code.load_file("robot_simulator.exs", __DIR__)
end
ExUnit.start()
ExUnit.configure(exclude: :pending, trace: true)
defmodule RobotSimulatorTest do
use ExUnit.Case
test "create has sensible defaults" do
robot = RobotSimulator.create()
assert RobotSimulator... | 37.641026 | 93 | 0.713215 |
8549e7acc0f0632cc053f2eab5b1d4d13ccfc470 | 1,990 | exs | Elixir | priv/repo/migrations/20190405120845_fix_primary_keys.exs | hammoc-app/hammoc-elixir | 00cd24e2170cc3dee65c7848868ea3d1096ac25c | [
"MIT"
] | 5 | 2019-07-13T22:20:50.000Z | 2020-07-13T05:05:43.000Z | priv/repo/migrations/20190405120845_fix_primary_keys.exs | hammoc-app/hammoc-elixir | 00cd24e2170cc3dee65c7848868ea3d1096ac25c | [
"MIT"
] | 33 | 2019-08-01T03:48:23.000Z | 2021-07-28T03:29:40.000Z | priv/repo/migrations/20190405120845_fix_primary_keys.exs | hammoc-app/hammoc-elixir | 00cd24e2170cc3dee65c7848868ea3d1096ac25c | [
"MIT"
] | 2 | 2019-09-03T22:45:11.000Z | 2020-01-01T23:56:58.000Z | defmodule Hammoc.Repo.Migrations.FixPrimaryKeys do
use Ecto.Migration
def up do
# re-create users
drop table(:users)
create table(:users, primary_key: false) do
add :id, :binary_id, primary_key: true
add :email, :binary
add :email_hash, :binary
add :newsletter, :boolean
a... | 24.268293 | 72 | 0.635176 |
8549f24e674dc826741cb5ff8f7415b8d2eb3054 | 4,135 | ex | Elixir | clients/jobs/lib/google_api/jobs/v2/model/compensation_info.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/jobs/lib/google_api/jobs/v2/model/compensation_info.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/jobs/lib/google_api/jobs/v2/model/compensation_info.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 ... | 42.193878 | 178 | 0.723821 |
854a53e13c381c1fc1f1a89f33f25a9198d92477 | 1,740 | exs | Elixir | priv/repo/migrations/20220306004420_trans_gen_translate_function.exs | kianmeng/cldr_trans | da3f01eb16cd25e8936d30805bfff5e3ab589409 | [
"Apache-2.0"
] | 1 | 2022-03-10T06:54:28.000Z | 2022-03-10T06:54:28.000Z | priv/repo/migrations/20220306004420_trans_gen_translate_function.exs | kianmeng/cldr_trans | da3f01eb16cd25e8936d30805bfff5e3ab589409 | [
"Apache-2.0"
] | 1 | 2022-03-14T01:10:20.000Z | 2022-03-20T14:35:05.000Z | priv/repo/migrations/20220306004420_trans_gen_translate_function.exs | kianmeng/cldr_trans | da3f01eb16cd25e8936d30805bfff5e3ab589409 | [
"Apache-2.0"
] | 1 | 2022-03-13T15:38:40.000Z | 2022-03-13T15:38:40.000Z | defmodule Cldr.Trans.Repo.Migrations.TransGenTranslateFunction do
use Ecto.Migration
def up do
execute("""
CREATE OR REPLACE FUNCTION public.translate_field(record record, container varchar, field varchar, default_locale varchar, locales varchar[])
RETURNS varchar
STRICT
STABLE
LANGUAGE plp... | 24.857143 | 145 | 0.593678 |
854a831d474556599c7116e1c7a98010e1e63ae9 | 2,387 | ex | Elixir | lib/exponent_server_sdk/parser.ex | vinagrito/exponent-server-sdk-elixir | d339cceb8ea0a75c3e52cf3d11fd38b63558b98c | [
"MIT"
] | 11 | 2018-08-29T18:55:32.000Z | 2021-07-07T17:04:42.000Z | lib/exponent_server_sdk/parser.ex | vinagrito/exponent-server-sdk-elixir | d339cceb8ea0a75c3e52cf3d11fd38b63558b98c | [
"MIT"
] | 3 | 2019-09-26T16:22:40.000Z | 2021-06-07T00:49:14.000Z | lib/exponent_server_sdk/parser.ex | vinagrito/exponent-server-sdk-elixir | d339cceb8ea0a75c3e52cf3d11fd38b63558b98c | [
"MIT"
] | 8 | 2019-08-21T12:23:44.000Z | 2022-01-06T08:14:20.000Z | defmodule ExponentServerSdk.Parser do
@moduledoc """
A JSON parser tuned specifically for Expo Push Notification API responses. Based on Poison's
excellent JSON decoder.
"""
@type http_status_code :: number
@type success :: {:ok, map}
@type success_list :: {:ok, [map]}
@type error :: {:error, String.t(... | 34.1 | 227 | 0.622958 |
854ac2da9a3228c00fce2872af3be4966083df43 | 2,492 | ex | Elixir | clients/custom_search/lib/google_api/custom_search/v1/model/promotion.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/custom_search/lib/google_api/custom_search/v1/model/promotion.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/custom_search/lib/google_api/custom_search/v1/model/promotion.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... | 39.555556 | 184 | 0.701445 |
854af18d5536a286515068e4728655e3f793b375 | 9,249 | ex | Elixir | installer/lib/phx_new/generator.ex | G3z/phoenix | f13fe2c7f7ec25e6a59204266cb8cbbe7ffbbded | [
"MIT"
] | 2 | 2016-11-01T15:01:48.000Z | 2016-11-01T15:07:20.000Z | installer/lib/phx_new/generator.ex | G3z/phoenix | f13fe2c7f7ec25e6a59204266cb8cbbe7ffbbded | [
"MIT"
] | null | null | null | installer/lib/phx_new/generator.ex | G3z/phoenix | f13fe2c7f7ec25e6a59204266cb8cbbe7ffbbded | [
"MIT"
] | null | null | null | defmodule Phx.New.Generator do
@moduledoc false
import Mix.Generator
alias Phx.New.{Project}
@phoenix Path.expand("../..", __DIR__)
@phoenix_version Version.parse!("1.4.0")
@callback prepare_project(Project.t) :: Project.t
@callback generate(Project.t) :: Project.t
defmacro __using__(_env) do
qu... | 34.901887 | 117 | 0.668937 |
854b073f8d8adfab6935d07b800de17bbc59eb6e | 944 | ex | Elixir | lib/system/plug/logined_current_user_plug.ex | farhangj2020/mishka-auth | 33d461f248d5cdcc935c0d64a93faf95830fe500 | [
"MIT"
] | 8 | 2020-09-07T14:47:42.000Z | 2021-11-03T21:53:37.000Z | lib/system/plug/logined_current_user_plug.ex | farhangj2020/mishka-auth | 33d461f248d5cdcc935c0d64a93faf95830fe500 | [
"MIT"
] | 1 | 2022-03-11T09:51:34.000Z | 2022-03-11T09:51:34.000Z | lib/system/plug/logined_current_user_plug.ex | farhangj2020/mishka-auth | 33d461f248d5cdcc935c0d64a93faf95830fe500 | [
"MIT"
] | 3 | 2020-08-02T14:05:21.000Z | 2020-09-12T12:58:59.000Z | defmodule MishkaAuth.Plug.LoginedCurrentUserPlug do
import Plug.Conn
alias MishkaAuth.Helper.PhoenixConverter
def init(default), do: default
@spec call(Plug.Conn.t(), any) :: Plug.Conn.t()
def call(conn, default) do
PhoenixConverter.get_session_with_key(conn, :current_user)
|> check_session(conn, d... | 30.451613 | 113 | 0.676907 |
854b1fd78dc0ca08840757cff4d8b909b1a56d0c | 495 | ex | Elixir | lib/companion_web/views/error_view.ex | praekeltfoundation/nurseconnect-companion | 9afaabaf3ae3e0123abcbd12e0a2073b681e9052 | [
"BSD-3-Clause"
] | 1 | 2018-10-10T18:20:22.000Z | 2018-10-10T18:20:22.000Z | lib/companion_web/views/error_view.ex | praekeltfoundation/nurseconnect-companion | 9afaabaf3ae3e0123abcbd12e0a2073b681e9052 | [
"BSD-3-Clause"
] | 23 | 2018-06-07T15:13:15.000Z | 2019-07-30T09:06:03.000Z | lib/companion_web/views/error_view.ex | praekeltfoundation/nurseconnect-companion | 9afaabaf3ae3e0123abcbd12e0a2073b681e9052 | [
"BSD-3-Clause"
] | null | null | null | defmodule CompanionWeb.ErrorView do
use CompanionWeb, :view
# If you want to customize a particular status code
# for a certain format, you may uncomment below.
# def render("500.html", _assigns) do
# "Internal Server Error"
# end
# By default, Phoenix returns the status message from
# the template ... | 29.117647 | 61 | 0.737374 |
854b22d8b9ab2d1ee3b59a7e360ad45a5a711c25 | 5,729 | ex | Elixir | lib/vintage_net_wizard/backend/default.ex | jmerriweather/vintage_net_wizard | dc67e75d11911dec536571344e00d0e5ed250b7f | [
"Apache-2.0"
] | null | null | null | lib/vintage_net_wizard/backend/default.ex | jmerriweather/vintage_net_wizard | dc67e75d11911dec536571344e00d0e5ed250b7f | [
"Apache-2.0"
] | 1 | 2020-03-05T12:21:10.000Z | 2020-03-05T12:21:10.000Z | lib/vintage_net_wizard/backend/default.ex | magaloop/vintage_net_wizard | 43edd17fd82cde16846a3ca2870bfae57f5577ad | [
"Apache-2.0"
] | null | null | null | defmodule VintageNetWizard.Backend.Default do
@behaviour VintageNetWizard.Backend
alias VintageNetWizard.{APMode, WiFiConfiguration}
@impl VintageNetWizard.Backend
def init() do
:ok = VintageNet.subscribe(["interface", "wlan0", "connection"])
:ok = VintageNet.subscribe(["interface", "wlan0", "wifi", "... | 28.645 | 91 | 0.658928 |
854b3b51657ddf3bcd1457288752c0d303a1e332 | 482 | exs | Elixir | priv/repo/migrations/20200909124316_add_ready_revision_id.exs | paulswartz/arrow | c1ba1ce52107c0ed94ce9bca2fef2bfeb606b8f9 | [
"MIT"
] | null | null | null | priv/repo/migrations/20200909124316_add_ready_revision_id.exs | paulswartz/arrow | c1ba1ce52107c0ed94ce9bca2fef2bfeb606b8f9 | [
"MIT"
] | 775 | 2019-11-18T16:23:57.000Z | 2022-03-28T18:20:04.000Z | priv/repo/migrations/20200909124316_add_ready_revision_id.exs | paulswartz/arrow | c1ba1ce52107c0ed94ce9bca2fef2bfeb606b8f9 | [
"MIT"
] | 1 | 2019-12-23T13:52:25.000Z | 2019-12-23T13:52:25.000Z | defmodule Arrow.Repo.Migrations.AddReadyRevisionId do
use Ecto.Migration
def change do
alter table(:disruptions) do
add :ready_revision_id, references(:disruption_revisions)
end
execute(&execute_up/0, &execute_down/0)
end
defp execute_up do
repo().query!("UPDATE disruptions SET ready_re... | 24.1 | 85 | 0.751037 |
854b4c375b0679c13683dfd636bc2e6864b456a7 | 3,054 | ex | Elixir | lib/output/tag_indices.ex | crertel/zamrazac | 75b9018da8ae134624a00dd9bfb85e4002c651d2 | [
"MIT"
] | 5 | 2019-05-23T19:57:43.000Z | 2019-10-12T03:21:03.000Z | lib/output/tag_indices.ex | crertel/zamrazac | 75b9018da8ae134624a00dd9bfb85e4002c651d2 | [
"MIT"
] | 7 | 2019-07-01T19:40:10.000Z | 2021-12-14T11:00:14.000Z | lib/output/tag_indices.ex | crertel/zamrazac | 75b9018da8ae134624a00dd9bfb85e4002c651d2 | [
"MIT"
] | null | null | null | defmodule Zamrazac.Output.TagIndices do
alias Zamrazac.Util
use Phoenix.HTML
@doc """
Function that creates an index file given a pile of post metadata objects.
"""
def generate_tag_indices() do
tag_table = :ets.whereis(:zamrazac_aggregate_tags)
tag_slug_table = :ets.whereis(:zamrazac_aggregate_pos... | 28.811321 | 106 | 0.510151 |
854b6128f3f7e80e4c927db70fff03ff314f8021 | 219 | ex | Elixir | priv/templates/eex/phx.gen.html/view.ex | mitchellhenke/torch | 2d0ab68f4e2d7f3bc37fbf7edbd1298b29b36e71 | [
"MIT"
] | 528 | 2019-09-13T15:10:36.000Z | 2022-03-31T10:28:27.000Z | priv/templates/eex/phx.gen.html/view.ex | mitchellhenke/torch | 2d0ab68f4e2d7f3bc37fbf7edbd1298b29b36e71 | [
"MIT"
] | 133 | 2019-09-13T17:46:59.000Z | 2022-03-01T13:37:10.000Z | priv/templates/eex/phx.gen.html/view.ex | mitchellhenke/torch | 2d0ab68f4e2d7f3bc37fbf7edbd1298b29b36e71 | [
"MIT"
] | 38 | 2019-10-29T20:37:13.000Z | 2022-03-03T05:19:33.000Z | defmodule <%= inspect context.web_module %>.<%= inspect Module.concat(schema.web_namespace, schema.alias) %>View do
use <%= inspect context.web_module %>, :view
import Torch.TableView
import Torch.FilterView
end
| 31.285714 | 115 | 0.744292 |
854b6447d504de81ebae13d6378b4460002083ac | 1,552 | exs | Elixir | test/views/user_view_test.exs | nihonjinrxs/national-voter-file-api | 690c40bd46e196cebb6325341f1197a862c38632 | [
"MIT"
] | 12 | 2017-03-24T02:58:38.000Z | 2020-11-18T15:29:33.000Z | test/views/user_view_test.exs | nihonjinrxs/national-voter-file-api | 690c40bd46e196cebb6325341f1197a862c38632 | [
"MIT"
] | 22 | 2016-12-31T17:14:33.000Z | 2021-06-09T17:02:59.000Z | test/views/user_view_test.exs | nihonjinrxs/national-voter-file-api | 690c40bd46e196cebb6325341f1197a862c38632 | [
"MIT"
] | 7 | 2017-02-27T15:42:55.000Z | 2017-10-13T15:26:02.000Z | defmodule NationalVoterFile.UserViewTest do
use NationalVoterFile.ViewCase
alias Phoenix.ConnTest
alias Plug.Conn
test "renders properly" do
user = insert(:user)
rendered_json = render(NationalVoterFile.UserView, "show.json-api", data: user)
expected_json = %{
"data" => %{
"id" => ... | 25.866667 | 96 | 0.609536 |
854b70484adbd486404133a795edd62cac3b8784 | 90 | exs | Elixir | test/ex_oneroster/web/views/page_view_test.exs | jrissler/ex_oneroster | cec492117bffc14aec91e2448643682ceeb449e9 | [
"Apache-2.0"
] | 3 | 2018-09-06T11:15:07.000Z | 2021-12-27T15:36:51.000Z | test/ex_oneroster/web/views/page_view_test.exs | jrissler/ex_oneroster | cec492117bffc14aec91e2448643682ceeb449e9 | [
"Apache-2.0"
] | null | null | null | test/ex_oneroster/web/views/page_view_test.exs | jrissler/ex_oneroster | cec492117bffc14aec91e2448643682ceeb449e9 | [
"Apache-2.0"
] | null | null | null | defmodule ExOneroster.Web.PageViewTest do
use ExOneroster.Web.ConnCase, async: true
end
| 22.5 | 43 | 0.822222 |
854b93aba9e7a27dfc20fe53b9e56fe346946689 | 1,669 | ex | Elixir | clients/sql_admin/lib/google_api/sql_admin/v1/model/failover_context.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/sql_admin/lib/google_api/sql_admin/v1/model/failover_context.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/sql_admin/lib/google_api/sql_admin/v1/model/failover_context.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... | 33.38 | 196 | 0.726783 |
854b9f106713f6a8958c99a5bf0483455f148b87 | 1,945 | ex | Elixir | lib/text_based_fps/game_map/respawn_position.ex | guisehn/elixir-text-based-fps | 59a815da337309297f8b42ef3481277dd4d9b371 | [
"MIT"
] | 1 | 2022-03-02T12:18:07.000Z | 2022-03-02T12:18:07.000Z | lib/text_based_fps/game_map/respawn_position.ex | guisehn/elixir-text-based-fps | 59a815da337309297f8b42ef3481277dd4d9b371 | [
"MIT"
] | 12 | 2021-05-31T21:41:09.000Z | 2021-07-30T03:18:09.000Z | lib/text_based_fps/game_map/respawn_position.ex | guisehn/elixir-text-based-fps | 59a815da337309297f8b42ef3481277dd4d9b371 | [
"MIT"
] | null | null | null | defmodule TextBasedFPS.GameMap.RespawnPosition do
alias TextBasedFPS.{Direction, Room}
alias TextBasedFPS.GameMap.{Coordinates, Matrix, RespawnPosition}
@type t :: %RespawnPosition{
coordinates: Coordinates.t(),
direction: Direction.t()
}
defstruct [:coordinates, :direction]
@sp... | 28.602941 | 94 | 0.644216 |
854baa09db6e5705aa49305d4d99e17292edd2f3 | 1,987 | ex | Elixir | clients/mirror/lib/google_api/mirror/v1/model/timeline_list_response.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/mirror/lib/google_api/mirror/v1/model/timeline_list_response.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/mirror/lib/google_api/mirror/v1/model/timeline_list_response.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... | 36.796296 | 164 | 0.735783 |
854bcf85f2f23f623dfe111e1698e450f9471003 | 2,150 | ex | Elixir | clients/fitness/lib/google_api/fitness/v1/deserializer.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/fitness/lib/google_api/fitness/v1/deserializer.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/fitness/lib/google_api/fitness/v1/deserializer.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.833333 | 139 | 0.687907 |
854beb1c59fddd862580a84625fc74795b0a898a | 1,872 | exs | Elixir | test/sparkpost_test.exs | begedin/elixir-sparkpost | e8b94b9f8d33f165a1fe030ef52e0642bdd59c9d | [
"Apache-2.0"
] | 1 | 2021-01-08T18:16:23.000Z | 2021-01-08T18:16:23.000Z | test/sparkpost_test.exs | begedin/elixir-sparkpost | e8b94b9f8d33f165a1fe030ef52e0642bdd59c9d | [
"Apache-2.0"
] | null | null | null | test/sparkpost_test.exs | begedin/elixir-sparkpost | e8b94b9f8d33f165a1fe030ef52e0642bdd59c9d | [
"Apache-2.0"
] | null | null | null | defmodule SparkPostTest do
@moduledoc false
use ExUnit.Case
alias SparkPost.{Address, Content, MockServer, Recipient}
import Mock
test "send succeeds with a Transmission.Response" do
with_mock HTTPoison, request: MockServer.mk_resp() do
resp =
SparkPost.send(
to: "you@there.com"... | 26.742857 | 95 | 0.584936 |
854bef0b4378980b85debc8c6a84af6a401ae411 | 3,535 | ex | Elixir | lib/mix/lib/mix/tasks/local.rebar.ex | chulkilee/elixir | 699231dcad52916a76f38856cbd7cf7c7bdadc51 | [
"Apache-2.0"
] | 1 | 2021-04-28T21:35:01.000Z | 2021-04-28T21:35:01.000Z | lib/mix/lib/mix/tasks/local.rebar.ex | chulkilee/elixir | 699231dcad52916a76f38856cbd7cf7c7bdadc51 | [
"Apache-2.0"
] | 1 | 2018-09-10T23:36:45.000Z | 2018-09-10T23:36:45.000Z | lib/mix/lib/mix/tasks/local.rebar.ex | chulkilee/elixir | 699231dcad52916a76f38856cbd7cf7c7bdadc51 | [
"Apache-2.0"
] | 8 | 2018-02-20T18:30:53.000Z | 2019-06-18T14:23:31.000Z | defmodule Mix.Tasks.Local.Rebar do
use Mix.Task
@rebar2_list_url "/installs/rebar-1.x.csv"
@rebar2_escript_url "/installs/[ELIXIR_VERSION]/rebar-[REBAR_VERSION]"
@rebar3_list_url "/installs/rebar3-1.x.csv"
@rebar3_escript_url "/installs/[ELIXIR_VERSION]/rebar3-[REBAR_VERSION]"
@shortdoc "Installs Rebar lo... | 30.213675 | 88 | 0.646393 |
854c4070371cf6cfa03478a0de5eb0c2d89d3d6d | 1,087 | ex | Elixir | lib/hl7/2.3/segments/ft1.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | lib/hl7/2.3/segments/ft1.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | lib/hl7/2.3/segments/ft1.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | defmodule HL7.V2_3.Segments.FT1 do
@moduledoc false
require Logger
alias HL7.V2_3.{DataTypes}
use HL7.Segment,
fields: [
segment: nil,
set_id_financial_transaction: nil,
transaction_id: nil,
transaction_batch_id: nil,
transaction_date: DataTypes.Ts,
transaction_posting_... | 29.378378 | 48 | 0.705612 |
854c58df0aa87d301a02ffb6c164b6b6c1c99ea0 | 279 | exs | Elixir | priv/repo/migrations/20210701073042_create_account.exs | leeduckgo/Tai-Shang | 33831f54b0ef8eb7772b0b559d8fe8897a06b57c | [
"MIT"
] | 17 | 2021-06-10T07:39:18.000Z | 2021-12-16T03:26:53.000Z | priv/repo/migrations/20210701073042_create_account.exs | leeduckgo/Tai-Shang | 33831f54b0ef8eb7772b0b559d8fe8897a06b57c | [
"MIT"
] | 4 | 2021-05-19T02:09:53.000Z | 2021-07-03T09:34:09.000Z | priv/repo/migrations/20210701073042_create_account.exs | leeduckgo/Tai-Shang | 33831f54b0ef8eb7772b0b559d8fe8897a06b57c | [
"MIT"
] | 4 | 2021-07-06T02:50:29.000Z | 2021-12-21T09:33:20.000Z | defmodule TaiShang.Repo.Migrations.CreateAccounts do
use Ecto.Migration
def change do
create table :account do
add :nft_balance, :map
add :addr, :string
add :chain_id, :integer
add :encrypted_privkey, :binary
timestamps()
end
end
end
| 19.928571 | 52 | 0.670251 |
854c9ced382fb325cc9b393633d354ac5904295e | 2,166 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/target_https_proxy_list_warning.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/target_https_proxy_list_warning.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/target_https_proxy_list_warning.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... | 40.867925 | 247 | 0.7253 |
854ca093ca1817536e356ee478b3050d80a6a8ea | 808 | exs | Elixir | config/test.exs | manojsamanta/stripe-single-product | d0af1cede55ce6ac71100b9f4b5473919c16c884 | [
"MIT"
] | null | null | null | config/test.exs | manojsamanta/stripe-single-product | d0af1cede55ce6ac71100b9f4b5473919c16c884 | [
"MIT"
] | null | null | null | config/test.exs | manojsamanta/stripe-single-product | d0af1cede55ce6ac71100b9f4b5473919c16c884 | [
"MIT"
] | null | null | null | use Mix.Config
# Only in tests, remove the complexity from the password hashing algorithm
config :bcrypt_elixir, :log_rounds, 1
# 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.
c... | 31.076923 | 74 | 0.766089 |
854ca1eb330cb55229cfe03f58e7692900aee3ac | 21,133 | ex | Elixir | lib/encode.ex | alaadahmed/jason | 00a7e92026ef1ae838b38c5d7feac088173f52f3 | [
"Apache-2.0"
] | 2 | 2020-05-06T14:51:56.000Z | 2020-05-06T14:52:21.000Z | lib/encode.ex | alaadahmed/jason | 00a7e92026ef1ae838b38c5d7feac088173f52f3 | [
"Apache-2.0"
] | null | null | null | lib/encode.ex | alaadahmed/jason | 00a7e92026ef1ae838b38c5d7feac088173f52f3 | [
"Apache-2.0"
] | 1 | 2020-05-16T22:44:14.000Z | 2020-05-16T22:44:14.000Z | defmodule Jason.EncodeError do
defexception [:message]
@type t :: %__MODULE__{message: String.t}
def new({:duplicate_key, key}) do
%__MODULE__{message: "duplicate key: #{key}"}
end
def new({:invalid_byte, byte, original}) do
%__MODULE__{message: "invalid byte #{inspect byte, base: :hex} in #{inspect... | 32.815217 | 98 | 0.635641 |
854cc2f594a59eacab0faaf6c3eddc709380d94b | 4,794 | ex | Elixir | clients/double_click_bid_manager/lib/google_api/double_click_bid_manager/v1/model/filter_pair.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/double_click_bid_manager/lib/google_api/double_click_bid_manager/v1/model/filter_pair.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/double_click_bid_manager/lib/google_api/double_click_bid_manager/v1/model/filter_pair.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... | 92.192308 | 3,223 | 0.856696 |
854d0b54738fa62132896db0c2b159fa60503cc6 | 2,128 | exs | Elixir | mix.exs | deanchouinard/custom_rpi3 | be1875b16d17a2353e4d26fb07713f55d47695e7 | [
"Apache-2.0"
] | null | null | null | mix.exs | deanchouinard/custom_rpi3 | be1875b16d17a2353e4d26fb07713f55d47695e7 | [
"Apache-2.0"
] | null | null | null | mix.exs | deanchouinard/custom_rpi3 | be1875b16d17a2353e4d26fb07713f55d47695e7 | [
"Apache-2.0"
] | null | null | null | defmodule CustomRpi3.MixProject do
use Mix.Project
@app :custom_rpi3
@version Path.join(__DIR__, "VERSION")
|> File.read!()
|> String.trim()
def project do
[
app: @app,
version: @version,
elixir: "~> 1.6",
compilers: Mix.compilers() ++ [:nerves_package],
... | 22.166667 | 79 | 0.569079 |
854d0e7005fc007103e7e1ffa86ed5e272befc20 | 1,766 | exs | Elixir | test/2021/day16_test.exs | Bentheburrito/adventofcode | 6fca0933c2a0e541567fe9f8bc34df4a048b5d8a | [
"MIT"
] | null | null | null | test/2021/day16_test.exs | Bentheburrito/adventofcode | 6fca0933c2a0e541567fe9f8bc34df4a048b5d8a | [
"MIT"
] | null | null | null | test/2021/day16_test.exs | Bentheburrito/adventofcode | 6fca0933c2a0e541567fe9f8bc34df4a048b5d8a | [
"MIT"
] | null | null | null | defmodule AOCTest.Y2021.Day16Test do
use ExUnit.Case
alias AOC.Y2021.Day16
alias Day16.Packet
setup do
inputs = ["D2FE28", "38006F45291200", "EE00D40C823060"]
|> Enum.map(&Day16.parse_input(&1))
%{inputs: inputs}
end
test "packet parsing", %{inputs: [input1, input2, input3]} do
assert %Pa... | 29.932203 | 100 | 0.63137 |
854d0f4a9deed1a25506c84a9a4664a29f53e93f | 568 | exs | Elixir | aoc-2020/day11/mix.exs | danurna/elixir-playground | 6acb40e513d8ab324368b3ec5151b0a4fd88f849 | [
"MIT"
] | 2 | 2020-12-19T00:40:21.000Z | 2021-02-16T04:17:05.000Z | aoc-2020/day11/mix.exs | danurna/elixir-playground | 6acb40e513d8ab324368b3ec5151b0a4fd88f849 | [
"MIT"
] | null | null | null | aoc-2020/day11/mix.exs | danurna/elixir-playground | 6acb40e513d8ab324368b3ec5151b0a4fd88f849 | [
"MIT"
] | 1 | 2020-12-14T22:37:13.000Z | 2020-12-14T22:37:13.000Z | defmodule Day11.MixProject do
use Mix.Project
def project do
[
app: :day11,
version: "0.1.0",
elixir: "~> 1.11",
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applic... | 19.586207 | 87 | 0.573944 |
854d1eba4ed30236b909f855fbd8ed245febd0c0 | 744 | exs | Elixir | test/cards_test.exs | kaiocesar/playground-elixir | fbc43a077ae7638e82e9c7caa484a9707f922fa2 | [
"Apache-2.0"
] | null | null | null | test/cards_test.exs | kaiocesar/playground-elixir | fbc43a077ae7638e82e9c7caa484a9707f922fa2 | [
"Apache-2.0"
] | null | null | null | test/cards_test.exs | kaiocesar/playground-elixir | fbc43a077ae7638e82e9c7caa484a9707f922fa2 | [
"Apache-2.0"
] | null | null | null | defmodule CardsTest do
use ExUnit.Case
doctest Cards
test "my deck" do
deck = ["Ace of Spades", "Two of Spades", "Three of Spades", "Four of Spades",
"Five of Spades", "Ace of Clubs", "Two of Clubs", "Three of Clubs",
"Four of Clubs", "Five of Clubs", "Ace of Hearts", "Two of Hearts",
"Three of H... | 29.76 | 83 | 0.63172 |
854d32befc865fe5854d1d8149bbf318da61d503 | 904 | ex | Elixir | bidding_poc/lib/bidding_poc_web/controllers/me_controller.ex | KeenMate/phoenix-websocket-auction | 412148ad5621b511c0690b9395f4b6c9ce3a3352 | [
"MIT"
] | null | null | null | bidding_poc/lib/bidding_poc_web/controllers/me_controller.ex | KeenMate/phoenix-websocket-auction | 412148ad5621b511c0690b9395f4b6c9ce3a3352 | [
"MIT"
] | null | null | null | bidding_poc/lib/bidding_poc_web/controllers/me_controller.ex | KeenMate/phoenix-websocket-auction | 412148ad5621b511c0690b9395f4b6c9ce3a3352 | [
"MIT"
] | null | null | null | defmodule BiddingPocWeb.MeController do
use BiddingPocWeb, :controller
require Logger
alias BiddingPoc.Database.User
def index(%Plug.Conn{assigns: %{user_id: user_id}} = conn, _) do
user_id
|> User.get_by_id()
|> case do
{:ok, user} ->
conn
|> put_status(:ok)
|> json... | 23.789474 | 96 | 0.64823 |
854d59a7f548e1c77d3c6cf0e111b1a7beff0f80 | 1,403 | ex | Elixir | lib/credo/check/readability/impl_true.ex | hrzndhrn/credo | 71a7b24a5ca8e7a48416e0cdfb42cf8a0fef9593 | [
"MIT"
] | 4,590 | 2015-09-28T06:01:43.000Z | 2022-03-29T08:48:57.000Z | lib/credo/check/readability/impl_true.ex | hrzndhrn/credo | 71a7b24a5ca8e7a48416e0cdfb42cf8a0fef9593 | [
"MIT"
] | 890 | 2015-11-16T21:07:07.000Z | 2022-03-29T08:52:07.000Z | lib/credo/check/readability/impl_true.ex | hrzndhrn/credo | 71a7b24a5ca8e7a48416e0cdfb42cf8a0fef9593 | [
"MIT"
] | 479 | 2015-11-17T19:42:40.000Z | 2022-03-29T00:09:21.000Z | defmodule Credo.Check.Readability.ImplTrue do
use Credo.Check,
base_priority: :normal,
explanations: [
check: """
When implementing behaviour callbacks, `@impl true` indicates that a function implements a callback, but
a better way is to note the actual behaviour being implemented, for examp... | 25.053571 | 113 | 0.635068 |
854d6b1866e6ec899907fe47df818fb466a8163c | 207 | exs | Elixir | graphical/priv/repo/migrations/20180615023304_create_users.exs | joshmcarthur/learning-elixir | 5ccfdd61dcfaba82c05559fb9c0e6f99cf4319e7 | [
"MIT"
] | null | null | null | graphical/priv/repo/migrations/20180615023304_create_users.exs | joshmcarthur/learning-elixir | 5ccfdd61dcfaba82c05559fb9c0e6f99cf4319e7 | [
"MIT"
] | null | null | null | graphical/priv/repo/migrations/20180615023304_create_users.exs | joshmcarthur/learning-elixir | 5ccfdd61dcfaba82c05559fb9c0e6f99cf4319e7 | [
"MIT"
] | null | null | null | defmodule Graphical.Repo.Migrations.CreateUsers do
use Ecto.Migration
def change do
create table(:users) do
add :name, :string
add :email, :string
timestamps()
end
end
end
| 14.785714 | 50 | 0.657005 |
854d8a41255355ce620d373d9227b92e0ee3f878 | 508 | ex | Elixir | elixir/sum-of-multiples/lib/sum_of_multiples.ex | paulfioravanti/exercism | b3bf15814b89b0ef50b9bf062b3c800e80e37e75 | [
"MIT"
] | 6 | 2019-06-19T15:43:20.000Z | 2020-07-17T19:46:09.000Z | elixir/sum-of-multiples/lib/sum_of_multiples.ex | paulfioravanti/exercism | b3bf15814b89b0ef50b9bf062b3c800e80e37e75 | [
"MIT"
] | 10 | 2021-05-10T21:02:55.000Z | 2021-05-11T20:29:41.000Z | elixir/sum-of-multiples/lib/sum_of_multiples.ex | paulfioravanti/exercism | b3bf15814b89b0ef50b9bf062b3c800e80e37e75 | [
"MIT"
] | 1 | 2019-06-25T10:42:14.000Z | 2019-06-25T10:42:14.000Z | defmodule SumOfMultiples do
@doc """
Adds up all numbers from 1 to a given end number that are multiples of the factors provided.
"""
@spec to(non_neg_integer, [non_neg_integer]) :: non_neg_integer
def to(limit, factors) do
1..(limit - 1)
|> Stream.filter(&multiples?(factors, &1))
|> Enum.sum()
... | 28.222222 | 94 | 0.683071 |
854d8f84a18103cd35ba627a53139d085bd47099 | 13,080 | exs | Elixir | test/slot_test.exs | edgarmiadzieles/surface | 24d1162cc25004df9d40a11dd65fca98d7b65c64 | [
"MIT"
] | null | null | null | test/slot_test.exs | edgarmiadzieles/surface | 24d1162cc25004df9d40a11dd65fca98d7b65c64 | [
"MIT"
] | null | null | null | test/slot_test.exs | edgarmiadzieles/surface | 24d1162cc25004df9d40a11dd65fca98d7b65c64 | [
"MIT"
] | null | null | null | defmodule Surface.SlotTest do
use ExUnit.Case, async: true
import ComponentTestHelper
defmodule StatefulComponent do
use Surface.LiveComponent
def render(assigns) do
~H"""
<div>Stateful</div>
"""
end
def handle_event(_, _, socket) do
{:noreply, socket}
end
end
... | 21.584158 | 92 | 0.549312 |
854dae2c166bbaa568c68101fcf158bebc53f130 | 1,885 | ex | Elixir | day7/lib/day7.ex | carlism/aoc_2020 | 5ffdba5d41d243562fa448a92ff02900354956bb | [
"MIT"
] | null | null | null | day7/lib/day7.ex | carlism/aoc_2020 | 5ffdba5d41d243562fa448a92ff02900354956bb | [
"MIT"
] | null | null | null | day7/lib/day7.ex | carlism/aoc_2020 | 5ffdba5d41d243562fa448a92ff02900354956bb | [
"MIT"
] | null | null | null | defmodule Day7 do
@moduledoc """
Documentation for Day7.
"""
def part1 do
File.stream!("input.txt")
|> Day7.parse_input()
|> Day7.invert_map()
|> Day7.walk_map("shiny gold")
|> Enum.count()
|> IO.puts()
end
def part2 do
File.stream!("input.txt")
|> Day7.parse_input()
|>... | 21.666667 | 72 | 0.542706 |
854dbb16a693ef3262442b60ed01661705538f7d | 12,890 | ex | Elixir | lib/mapper/iso8859_11.ex | nikneroz/exconv | 31a9f424462f88024af3afb32d2cb80160f07ebf | [
"MIT"
] | null | null | null | lib/mapper/iso8859_11.ex | nikneroz/exconv | 31a9f424462f88024af3afb32d2cb80160f07ebf | [
"MIT"
] | 1 | 2020-07-16T09:38:33.000Z | 2020-07-16T09:38:33.000Z | lib/mapper/iso8859_11.ex | nikneroz/exconv | 31a9f424462f88024af3afb32d2cb80160f07ebf | [
"MIT"
] | null | null | null | defmodule Exconv.Mapper.Iso8859_11 do
def to_unicode(251), do: 3675 # <<224, 185, 155>> | "๛"
def to_unicode(250), do: 3674 # <<224, 185, 154>> | "๚"
def to_unicode(249), do: 3673 # <<224, 185, 153>> | "๙"
def to_unicode(248), do: 3672 # <<224, 185, 152>> | "๘"
def to_unicode(247), do: 3671 # <<224, 185, 151>... | 51.56 | 60 | 0.525369 |
854df912ea232e91b605ad40c5d61d5561d54038 | 1,163 | ex | Elixir | lib/core/entity/graph.ex | enter-haken/rasmus | aa4d474ef6c0c018409de82dad62435b74b7aac1 | [
"Apache-2.0"
] | 8 | 2018-03-01T11:58:50.000Z | 2018-11-30T02:50:57.000Z | lib/core/entity/graph.ex | enter-haken/rasmus | aa4d474ef6c0c018409de82dad62435b74b7aac1 | [
"Apache-2.0"
] | null | null | null | lib/core/entity/graph.ex | enter-haken/rasmus | aa4d474ef6c0c018409de82dad62435b74b7aac1 | [
"Apache-2.0"
] | null | null | null | defmodule Core.Entity.Graph do
@moduledoc """
gets the result for a graph from transfer
"""
use GenServer
require Logger
# genserver functions
@doc false
def start_link(args) do
GenServer.start_link(__MODULE__, args, name: :graph)
end
@doc """
start database connection
"""
def init(p... | 23.734694 | 135 | 0.663801 |
854df9d75eba4b5b72fa8eca12ed25550ca496d3 | 2,094 | exs | Elixir | mix.exs | Cowa/scenic_driver_nerves_rpi | fb5c6f75687ee7c854e7b4303f129682caba189b | [
"Apache-2.0"
] | 18 | 2018-09-29T12:54:07.000Z | 2021-11-15T11:40:05.000Z | mix.exs | Cowa/scenic_driver_nerves_rpi | fb5c6f75687ee7c854e7b4303f129682caba189b | [
"Apache-2.0"
] | 9 | 2018-11-28T03:15:21.000Z | 2021-08-22T22:30:20.000Z | mix.exs | Cowa/scenic_driver_nerves_rpi | fb5c6f75687ee7c854e7b4303f129682caba189b | [
"Apache-2.0"
] | 13 | 2018-09-16T03:36:33.000Z | 2020-12-22T23:47:22.000Z | defmodule Scenic.Driver.Nerves.Rpi.MixProject do
use Mix.Project
# note to self: to publish set PUBLISH=1 on command line
@app_name :scenic_driver_nerves_rpi
@version "0.10.1"
@github "https://github.com/boydm/scenic_driver_nerves_rpi"
def project do
[
app: @app_name,
version: @version,
... | 21.8125 | 101 | 0.557307 |
854e06512258d666ce3bf3d49f4270c47b7722c2 | 6,401 | exs | Elixir | test/mixin/search_geo_test.exs | Yarnus/ex_aliyun_ots | 1d2ed426cb18fca68811e7a6297da9583cbd0a77 | [
"MIT"
] | 19 | 2018-05-10T09:33:25.000Z | 2022-01-25T11:57:33.000Z | test/mixin/search_geo_test.exs | Yarnus/ex_aliyun_ots | 1d2ed426cb18fca68811e7a6297da9583cbd0a77 | [
"MIT"
] | 23 | 2019-11-28T07:51:52.000Z | 2022-03-09T08:33:42.000Z | test/mixin/search_geo_test.exs | Yarnus/ex_aliyun_ots | 1d2ed426cb18fca68811e7a6297da9583cbd0a77 | [
"MIT"
] | 9 | 2019-01-30T03:17:12.000Z | 2021-12-14T02:23:32.000Z | defmodule ExAliyunOts.MixinTest.SearchGeo do
use ExUnit.Case
@instance_key EDCEXTestInstance
use ExAliyunOts,
instance: @instance_key
alias ExAliyunOtsTest.Support.SearchGeo, as: TestSupportSearchGeo
@table "test_search_geo"
@index "test_search_index_geo"
setup_all do
Application.ensure_all_s... | 25.003906 | 95 | 0.49008 |
854e1b8ca87f58dba3eeb318d3af72b090345ab2 | 711 | exs | Elixir | test/web/controllers/registration_controller_test.exs | sb8244/grapevine | effaaa01294d30114090c20f9cc40b8665d834f2 | [
"MIT"
] | 107 | 2018-10-05T18:20:32.000Z | 2022-02-28T04:02:50.000Z | test/web/controllers/registration_controller_test.exs | sb8244/grapevine | effaaa01294d30114090c20f9cc40b8665d834f2 | [
"MIT"
] | 33 | 2018-10-05T14:11:18.000Z | 2022-02-10T22:19:18.000Z | test/web/controllers/registration_controller_test.exs | sb8244/grapevine | effaaa01294d30114090c20f9cc40b8665d834f2 | [
"MIT"
] | 18 | 2019-02-03T03:08:20.000Z | 2021-12-28T04:29:36.000Z | defmodule Web.RegistrationControllerTest do
use Web.ConnCase
describe "registering a new game" do
test "successful", %{conn: conn} do
params = %{
username: "adminuser",
email: "admin@example.com",
password: "password",
password_confirmation: "password"
}
conn ... | 24.517241 | 78 | 0.630098 |
854e3d18e273bd9959f7d3218da166a0c7febea1 | 453 | ex | Elixir | lib/ash/type/uuid.ex | WolfDan/ash | 7cc60f41a003e2d06b5e19107e22424efafed1be | [
"MIT"
] | null | null | null | lib/ash/type/uuid.ex | WolfDan/ash | 7cc60f41a003e2d06b5e19107e22424efafed1be | [
"MIT"
] | null | null | null | lib/ash/type/uuid.ex | WolfDan/ash | 7cc60f41a003e2d06b5e19107e22424efafed1be | [
"MIT"
] | null | null | null | defmodule Ash.Type.UUID do
@moduledoc """
Represents a UUID.
A builtin type that can be referenced via `:uuid`
"""
use Ash.Type
@impl true
def storage_type, do: :binary_id
@impl true
def cast_input(value) do
Ecto.Type.cast(:binary_id, value)
end
@impl true
def cast_stored(value) do
... | 16.178571 | 51 | 0.677704 |
854e53b4a3b0255703b39c0ed01e00330f5f4d2b | 24,099 | ex | Elixir | lib/utils/transaction.ex | aeternity/aepp-sdk-elixir | a001b0eb264665623c9b05de25a71d1f13990679 | [
"0BSD"
] | 19 | 2019-04-16T07:27:53.000Z | 2022-01-22T21:35:02.000Z | lib/utils/transaction.ex | aeternity/aepp-sdk-elixir | a001b0eb264665623c9b05de25a71d1f13990679 | [
"0BSD"
] | 131 | 2019-04-05T13:01:37.000Z | 2020-07-09T14:53:34.000Z | lib/utils/transaction.ex | aeternity/aepp-sdk-elixir | a001b0eb264665623c9b05de25a71d1f13990679 | [
"0BSD"
] | 5 | 2019-04-11T19:21:42.000Z | 2022-03-06T09:08:34.000Z | defmodule AeppSDK.Utils.Transaction do
@moduledoc """
Transaction AeppSDK.Utils.
In order for its functions to be used, a client must be defined first.
Client example can be found at: `AeppSDK.Client.new/4`.
"""
alias AeppSDK.Account, as: AccountApi
alias AeppSDK.{Chain, Client, Contract, GeneralizedAcco... | 31.584535 | 105 | 0.57853 |
854e5f0f5e285ce0dde24a48199ec2ae54e5cc8a | 1,667 | ex | Elixir | ex_cubic_ods_ingestion/lib/ex_cubic_ods_ingestion/application.ex | paulswartz/data_platform | 0d8a7d6a75026a68d0fa49777892e9edcbdaa71f | [
"MIT"
] | null | null | null | ex_cubic_ods_ingestion/lib/ex_cubic_ods_ingestion/application.ex | paulswartz/data_platform | 0d8a7d6a75026a68d0fa49777892e9edcbdaa71f | [
"MIT"
] | 2 | 2022-03-10T22:29:35.000Z | 2022-03-18T19:52:27.000Z | ex_cubic_ods_ingestion/lib/ex_cubic_ods_ingestion/application.ex | paulswartz/data_platform | 0d8a7d6a75026a68d0fa49777892e9edcbdaa71f | [
"MIT"
] | null | null | null | defmodule ExCubicOdsIngestion.Application do
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
@moduledoc false
use Application
@impl Application
def start(_type, _args) do
sys_children = [
{ExCubicOdsIngestion.Repo, []},
{ExCubicOdsIngestion.Repo.... | 29.245614 | 90 | 0.654469 |
854e639a9cb8040c31b128673fd5f86fc8c8aa12 | 74 | exs | Elixir | apps/phx_web/test/views/layout_view_test.exs | harmon25/roygbiv_cntrl | 77b056e26c3b3a1d2e49babb94ea6edefc5587f5 | [
"MIT"
] | null | null | null | apps/phx_web/test/views/layout_view_test.exs | harmon25/roygbiv_cntrl | 77b056e26c3b3a1d2e49babb94ea6edefc5587f5 | [
"MIT"
] | null | null | null | apps/phx_web/test/views/layout_view_test.exs | harmon25/roygbiv_cntrl | 77b056e26c3b3a1d2e49babb94ea6edefc5587f5 | [
"MIT"
] | null | null | null | defmodule PhxWeb.LayoutViewTest do
use PhxWeb.ConnCase, async: true
end
| 18.5 | 34 | 0.810811 |
854ea5e12106092d27d74973c49213d04ec2400c | 2,904 | ex | Elixir | clients/plus/lib/google_api/plus/v1/model/activity_actor.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2021-10-01T09:20:41.000Z | 2021-10-01T09:20:41.000Z | clients/plus/lib/google_api/plus/v1/model/activity_actor.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/plus/lib/google_api/plus/v1/model/activity_actor.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 41.485714 | 169 | 0.710744 |
854eb0ae7275063b23e4b153e114c891822ec65a | 7,851 | ex | Elixir | lib/sanbase_web/graphql/schema/queries/insight_queries.ex | sitedata/sanbase2 | 8da5e44a343288fbc41b68668c6c80ae8547d557 | [
"MIT"
] | null | null | null | lib/sanbase_web/graphql/schema/queries/insight_queries.ex | sitedata/sanbase2 | 8da5e44a343288fbc41b68668c6c80ae8547d557 | [
"MIT"
] | 1 | 2021-07-24T16:26:03.000Z | 2021-07-24T16:26:03.000Z | lib/sanbase_web/graphql/schema/queries/insight_queries.ex | sitedata/sanbase2 | 8da5e44a343288fbc41b68668c6c80ae8547d557 | [
"MIT"
] | null | null | null | defmodule SanbaseWeb.Graphql.Schema.InsightQueries do
@moduledoc ~s"""
Queries and mutations for working with Insights
"""
use Absinthe.Schema.Notation
import SanbaseWeb.Graphql.Cache, only: [cache_resolve: 1]
alias SanbaseWeb.Graphql.Resolvers.{
InsightResolver,
FileResolver
}
alias SanbaseW... | 29.851711 | 115 | 0.658387 |
854ebb00149f998fe154468e7318314d3aa5c96e | 31,511 | ex | Elixir | lib/mint/http1.ex | vrcca/mint | ba347326a7e507bdadb8a00ec1f3bd24f2817ade | [
"Apache-2.0"
] | null | null | null | lib/mint/http1.ex | vrcca/mint | ba347326a7e507bdadb8a00ec1f3bd24f2817ade | [
"Apache-2.0"
] | null | null | null | lib/mint/http1.ex | vrcca/mint | ba347326a7e507bdadb8a00ec1f3bd24f2817ade | [
"Apache-2.0"
] | null | null | null | defmodule Mint.HTTP1 do
@moduledoc """
Processless HTTP client with support for HTTP/1 and HTTP/1.1.
This module provides a data structure that represents an HTTP/1 or HTTP/1.1 connection to
a given server. The connection is represented as an opaque struct `%Mint.HTTP1{}`.
The connection is a data structure ... | 30.682571 | 101 | 0.637587 |
854ebee12c679dc26b16d2573c09709f46adfd9a | 110 | exs | Elixir | config/dev.exs | nanaki82/hauer | 7d717a913933c7f71391d0eadb724c41bdd3ed77 | [
"MIT"
] | null | null | null | config/dev.exs | nanaki82/hauer | 7d717a913933c7f71391d0eadb724c41bdd3ed77 | [
"MIT"
] | null | null | null | config/dev.exs | nanaki82/hauer | 7d717a913933c7f71391d0eadb724c41bdd3ed77 | [
"MIT"
] | null | null | null | use Mix.Config
config :hauer,
conf_file: "./conf_dev.json"
config :remix,
escript: true,
silent: true
| 12.222222 | 30 | 0.690909 |
854ec6fbe2486b55a8935791a319896dba2e36e2 | 2,592 | exs | Elixir | apps/game_of_life_core/test/acceptance/evolution_test.exs | PaoloLaurenti/game-of-life-elixir | 919e9f2c722bbde75f71d627cd410a578f732c00 | [
"MIT"
] | null | null | null | apps/game_of_life_core/test/acceptance/evolution_test.exs | PaoloLaurenti/game-of-life-elixir | 919e9f2c722bbde75f71d627cd410a578f732c00 | [
"MIT"
] | null | null | null | apps/game_of_life_core/test/acceptance/evolution_test.exs | PaoloLaurenti/game-of-life-elixir | 919e9f2c722bbde75f71d627cd410a578f732c00 | [
"MIT"
] | null | null | null | defmodule GameOfLifeCore.Acceptance.EvolutionTest do
use ExUnit.Case
alias GameOfLifeCore.Fixtures.EvolutionFixture
alias GameOfLifeCore.EvolutionServer
alias GameOfLifeCore.UniverseServer
describe "Evolution" do
test "takes steps forward" do
EvolutionFixture.get_all()
|> Enum.each(fn(e) -> a... | 34.56 | 92 | 0.692515 |
854ef15764cef3dc7dc0ce4848f0ddea99664f00 | 366 | ex | Elixir | lib/langue/utils/formatter.ex | isshindev/accent | ae4c13139b0a0dfd64ff536b94c940a4e2862150 | [
"BSD-3-Clause"
] | 806 | 2018-04-07T20:40:33.000Z | 2022-03-30T01:39:57.000Z | lib/langue/utils/formatter.ex | isshindev/accent | ae4c13139b0a0dfd64ff536b94c940a4e2862150 | [
"BSD-3-Clause"
] | 194 | 2018-04-07T13:49:37.000Z | 2022-03-30T19:58:45.000Z | lib/langue/utils/formatter.ex | doc-ai/accent | e337e16f3658cc0728364f952c0d9c13710ebb06 | [
"BSD-3-Clause"
] | 89 | 2018-04-09T13:55:49.000Z | 2022-03-24T07:09:31.000Z | defmodule Langue.Formatter do
alias Langue.Formatter.ParserResult
alias Langue.Formatter.SerializerResult
@callback name() :: String.t()
@callback placeholder_regex() :: Regex.t() | :not_supported
@callback parse(SerializerResult.t()) :: Langue.Formatter.Parser.result()
@callback serialize(ParserResult.t()... | 36.6 | 79 | 0.759563 |
854ef205b77b36baffc5cf8013fd909d9fad4287 | 525 | exs | Elixir | priv/repo/migrations/20170419075232_create_employee_doctor.exs | EDENLABLLC/prm.api | 86743f26874f47ce3d48010ccf5d2cd596a3474b | [
"Apache-2.0"
] | 1 | 2017-07-27T16:03:28.000Z | 2017-07-27T16:03:28.000Z | priv/repo/migrations/20170419075232_create_employee_doctor.exs | EDENLABLLC/prm.api | 86743f26874f47ce3d48010ccf5d2cd596a3474b | [
"Apache-2.0"
] | null | null | null | priv/repo/migrations/20170419075232_create_employee_doctor.exs | EDENLABLLC/prm.api | 86743f26874f47ce3d48010ccf5d2cd596a3474b | [
"Apache-2.0"
] | null | null | null | defmodule PRM.Repo.Migrations.CreatePRM.Employees.EmployeeDoctor do
use Ecto.Migration
def change do
create table(:employee_doctors, primary_key: false) do
add :id, :uuid, primary_key: true
add :educations, :map, null: false
add :qualifications, :map
add :specialities, :map, null: false... | 27.631579 | 80 | 0.689524 |
854efc8e1d58f1ffd9df0e2da8ca2e0c29c9b92b | 742 | ex | Elixir | lib/uni_pg.ex | nallwhy/uni_pg | ad661d1e39a3020b74151293ae063334db4d45fc | [
"MIT"
] | 1 | 2021-08-06T04:56:15.000Z | 2021-08-06T04:56:15.000Z | lib/uni_pg.ex | nallwhy/uni_pg | ad661d1e39a3020b74151293ae063334db4d45fc | [
"MIT"
] | null | null | null | lib/uni_pg.ex | nallwhy/uni_pg | ad661d1e39a3020b74151293ae063334db4d45fc | [
"MIT"
] | 1 | 2021-07-12T14:12:12.000Z | 2021-07-12T14:12:12.000Z | defmodule UniPg do
@type scope :: atom()
@type group :: any()
@callback start_link(scope) :: {:ok, pid()}
@callback join(scope, group, list(pid())) :: :ok
@callback leave(scope, group, list(pid())) :: :ok
@callback get_local_members(scope, group) :: list(pid())
@callback get_members(scope, group) :: list... | 35.333333 | 67 | 0.690027 |
854f4ffb4d4201767c0a6fa9c91b438a5acac26d | 272 | ex | Elixir | lib/ex_keccak.ex | alanwilhelm/ex_keccak | 49e722f4ddc6f7723d9612f51cd2dd6b97771886 | [
"Apache-2.0"
] | null | null | null | lib/ex_keccak.ex | alanwilhelm/ex_keccak | 49e722f4ddc6f7723d9612f51cd2dd6b97771886 | [
"Apache-2.0"
] | null | null | null | lib/ex_keccak.ex | alanwilhelm/ex_keccak | 49e722f4ddc6f7723d9612f51cd2dd6b97771886 | [
"Apache-2.0"
] | null | null | null | defmodule ExKeccak do
defdelegate hash_256(data), to: ExKeccak.Impl
def hash_256!(data) do
case hash_256(data) do
{:ok, hash} ->
hash
{:error, :invalid_type} ->
raise ArgumentError, "#{inspect(data)} is not hashable"
end
end
end
| 20.923077 | 63 | 0.621324 |
854f51ca2bc57d76697bc053416af61dbe6c14f0 | 11,905 | ex | Elixir | clients/content/lib/google_api/content/v2/api/accounttax.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v2/api/accounttax.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v2/api/accounttax.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... | 44.924528 | 236 | 0.635531 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.