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
d56091100c7bda8b1035216fe37428a7d26bbb42
590
exs
Elixir
test/iso_test.exs
whitepaperclip/ISO
8a77e5a6e24bb0fd3125dc8acf7ede001312e88a
[ "MIT" ]
null
null
null
test/iso_test.exs
whitepaperclip/ISO
8a77e5a6e24bb0fd3125dc8acf7ede001312e88a
[ "MIT" ]
null
null
null
test/iso_test.exs
whitepaperclip/ISO
8a77e5a6e24bb0fd3125dc8acf7ede001312e88a
[ "MIT" ]
1
2021-11-12T16:40:51.000Z
2021-11-12T16:40:51.000Z
defmodule ISOTest do use ExUnit.Case doctest ISO test "subdivision code" do assert ISO.subdivision_code("MX", "Veracruz") == "MX-VER" assert ISO.subdivision_code("MX", "YucatAN") == "MX-YUC" assert ISO.subdivision_code("IE", "Co. Wicklow") == "IE-WW" assert ISO.subdivision_code("IE", "Wicklow") =...
36.875
67
0.664407
d560baceeb20808745e5ff4644c971989a99761d
506
ex
Elixir
lib/bulmalab_web/router.ex
easink/bulmalab
eddd13d4717388fdccaeb97efaa2ac7ce723030a
[ "Apache-2.0" ]
null
null
null
lib/bulmalab_web/router.ex
easink/bulmalab
eddd13d4717388fdccaeb97efaa2ac7ce723030a
[ "Apache-2.0" ]
null
null
null
lib/bulmalab_web/router.ex
easink/bulmalab
eddd13d4717388fdccaeb97efaa2ac7ce723030a
[ "Apache-2.0" ]
null
null
null
defmodule BulmalabWeb.Router do use BulmalabWeb, :router pipeline :browser do plug(:accepts, ["html"]) plug(:fetch_session) plug(:fetch_live_flash) plug(:protect_from_forgery) plug(:put_secure_browser_headers) end pipeline :api do plug(:accepts, ["json"]) end scope "/", BulmalabWe...
18.740741
39
0.667984
d560c55b4d64a3f45859a14cf93b0452811ea15c
320
exs
Elixir
elixir/hello-world/hello_world_test.exs
arschles/exercism
32c8d756048bea2ddce8aecf45d87618d5c89a2a
[ "MIT" ]
null
null
null
elixir/hello-world/hello_world_test.exs
arschles/exercism
32c8d756048bea2ddce8aecf45d87618d5c89a2a
[ "MIT" ]
null
null
null
elixir/hello-world/hello_world_test.exs
arschles/exercism
32c8d756048bea2ddce8aecf45d87618d5c89a2a
[ "MIT" ]
null
null
null
if !System.get_env("EXERCISM_TEST_EXAMPLES") do Code.load_file("hello_world.exs", __DIR__) end ExUnit.start() ExUnit.configure(exclude: :pending, trace: true) defmodule HelloWorldTest do use ExUnit.Case # @tag :pending test "says 'Hello, World!'" do assert HelloWorld.hello() == "Hello, World!" end end
20
48
0.71875
d560d40940a28137f00a2355dbcfb55ac3331fe3
4,597
ex
Elixir
lib/course_planner/settings/settings.ex
digitalnatives/course_planner
27b1c8067edc262685e9c4dcbfcf82633bc8b8dc
[ "MIT" ]
38
2017-04-11T13:37:38.000Z
2021-05-22T19:35:36.000Z
lib/course_planner/settings/settings.ex
digitalnatives/course_planner
27b1c8067edc262685e9c4dcbfcf82633bc8b8dc
[ "MIT" ]
226
2017-04-07T13:14:14.000Z
2018-03-08T16:50:11.000Z
lib/course_planner/settings/settings.ex
digitalnatives/course_planner
27b1c8067edc262685e9c4dcbfcf82633bc8b8dc
[ "MIT" ]
7
2017-08-30T23:58:13.000Z
2021-03-28T11:50:45.000Z
defmodule CoursePlanner.Settings do @moduledoc """ This module provides custom functionality for controller over the model """ use Ecto.Schema import Ecto.Changeset import Ecto.Query alias CoursePlanner.{Repo, Settings.SystemVariable} alias Ecto.Multi # alias Calendar.DateTime, as: CalendarDateTime ...
29.658065
96
0.704372
d560d96af9ffc25e6832c0292b5b678f43fee0b3
56
exs
Elixir
.dialyzer/ignore.exs
am-kantox/cloister
b5e661fab5dc2eeb27b175bf0069bf963b1afce6
[ "MIT" ]
12
2020-05-07T08:57:06.000Z
2020-08-19T01:32:03.000Z
.dialyzer/ignore.exs
am-kantox/cloister
b5e661fab5dc2eeb27b175bf0069bf963b1afce6
[ "MIT" ]
21
2020-07-12T14:17:22.000Z
2021-08-03T04:42:30.000Z
.dialyzer/ignore.exs
am-kantox/cloister
b5e661fab5dc2eeb27b175bf0069bf963b1afce6
[ "MIT" ]
null
null
null
[ {"lib/cloister/monitor.ex", :pattern_match, 226} ]
14
51
0.642857
d560de220752f20e0b7fbaedec2a4932f030d036
1,328
ex
Elixir
lib/telemetry.ex
br/cloudex
cdcc1353c29936b2f32882975bb8788082cabaf0
[ "WTFPL" ]
1
2021-09-05T13:34:38.000Z
2021-09-05T13:34:38.000Z
lib/telemetry.ex
br/cloudex
cdcc1353c29936b2f32882975bb8788082cabaf0
[ "WTFPL" ]
null
null
null
lib/telemetry.ex
br/cloudex
cdcc1353c29936b2f32882975bb8788082cabaf0
[ "WTFPL" ]
1
2021-12-30T00:44:44.000Z
2021-12-30T00:44:44.000Z
defmodule Cloudex.Telemetry do @doc false # emits a `start` telemetry event and returns the the start time def start(event, meta \\ %{}, extra_measurements \\ %{}) do start_time = System.monotonic_time() :telemetry.execute( [:cloudex, event, :start], Map.merge(extra_measurements, %{system_tim...
27.102041
98
0.653614
d5611508624785f6f0637823284ecf91c1b29395
1,297
exs
Elixir
test/ex_doc_test.exs
asaaki/ex_doc
243b160a7d48f758a8eb1c8b62abedd6ec2e096e
[ "Apache-2.0" ]
null
null
null
test/ex_doc_test.exs
asaaki/ex_doc
243b160a7d48f758a8eb1c8b62abedd6ec2e096e
[ "Apache-2.0" ]
null
null
null
test/ex_doc_test.exs
asaaki/ex_doc
243b160a7d48f758a8eb1c8b62abedd6ec2e096e
[ "Apache-2.0" ]
null
null
null
defmodule ExDocTest do use ExUnit.Case # Simple retriever that returns whatever is passed into it defmodule IdentityRetriever do def docs_from_dir(source, config) do {source, config} end end # Simple formatter that returns whatever is passed into it defmodule IdentityFormatter do def run...
28.195652
107
0.639167
d56128e2391f61fe33a0a171f882e84f93098efd
171
exs
Elixir
test/test_helper.exs
VoiceLayer/dispatch
fe9b108c381be472cb5c8237e077ae823a512c9f
[ "MIT" ]
118
2016-08-30T09:58:05.000Z
2021-12-27T10:00:51.000Z
test/test_helper.exs
VoiceLayer/dispatch
fe9b108c381be472cb5c8237e077ae823a512c9f
[ "MIT" ]
2
2017-05-08T18:35:43.000Z
2020-05-10T09:01:09.000Z
test/test_helper.exs
VoiceLayer/dispatch
fe9b108c381be472cb5c8237e077ae823a512c9f
[ "MIT" ]
5
2016-12-03T02:33:02.000Z
2019-07-11T11:37:15.000Z
Code.require_file("support/helper.exs", __DIR__) Dispatch.Helper.setup_pubsub() Task.Supervisor.start_link(name: Dispatch.TaskSupervisor) ExUnit.start(capture_log: true)
28.5
57
0.824561
d561322670a7ddaa16c87451de9b175f8a087df5
187
ex
Elixir
lib/instagram_clone/likes/like.ex
elixirprogrammer/InstagramClonePETAL
5710f89de32a95b0416a960a46d081e7ad4833ab
[ "MIT" ]
69
2021-04-11T21:57:26.000Z
2022-03-30T01:09:40.000Z
lib/instagram_clone/likes/like.ex
hminy572/InstagramClonePETAL
577cdad0e17399e47ef9d3f8e789bd07e33012b9
[ "MIT" ]
1
2021-04-16T17:38:11.000Z
2021-04-16T17:38:11.000Z
lib/instagram_clone/likes/like.ex
hminy572/InstagramClonePETAL
577cdad0e17399e47ef9d3f8e789bd07e33012b9
[ "MIT" ]
4
2021-04-16T10:45:18.000Z
2021-07-23T15:08:08.000Z
defmodule InstagramClone.Likes.Like do use Ecto.Schema schema "likes" do field :liked_id, :integer belongs_to :user, InstagramClone.Accounts.User timestamps() end end
17
50
0.727273
d56162372f5fc0188dedca83f0af56a965901e28
588
ex
Elixir
otp/stack/lib/stack.ex
hectorip/ErlangExercises
4a1aa5de0504da1bfe5a6c31c1d20277524ab363
[ "MIT" ]
4
2016-09-22T03:47:56.000Z
2017-02-02T17:42:57.000Z
otp/stack/lib/stack.ex
hectorip/ErlangExercises
4a1aa5de0504da1bfe5a6c31c1d20277524ab363
[ "MIT" ]
null
null
null
otp/stack/lib/stack.ex
hectorip/ErlangExercises
4a1aa5de0504da1bfe5a6c31c1d20277524ab363
[ "MIT" ]
null
null
null
defmodule Stack do use Application # See http://elixir-lang.org/docs/stable/elixir/Application.html # for more information on OTP Applications def start(_type, _args) do import Supervisor.Spec, warn: false children = [ # Define workers and child supervisors to be supervised worker(Stack.S...
29.4
67
0.702381
d5616c9966e7b5260003f0e3b2432b1ab9507783
126
exs
Elixir
tooling/pbt/test/pbt_test.exs
sfat/programming-elixir-exercises
19e62e3f3344ec044e1eb1b39b195f4dad3dff1c
[ "Apache-2.0" ]
1
2019-02-17T11:54:17.000Z
2019-02-17T11:54:17.000Z
tooling/pbt/test/pbt_test.exs
sfat/programming-elixir-exercises
19e62e3f3344ec044e1eb1b39b195f4dad3dff1c
[ "Apache-2.0" ]
null
null
null
tooling/pbt/test/pbt_test.exs
sfat/programming-elixir-exercises
19e62e3f3344ec044e1eb1b39b195f4dad3dff1c
[ "Apache-2.0" ]
null
null
null
defmodule PbtTest do use ExUnit.Case doctest Pbt test "greets the world" do assert Pbt.hello() == :world end end
14
32
0.68254
d561c4dc3f96ad3f014d4df55348951a9777c326
1,841
ex
Elixir
clients/firestore/lib/google_api/firestore/v1beta1/model/commit_response.ex
nuxlli/elixir-google-api
ecb8679ac7282b7dd314c3e20c250710ec6a7870
[ "Apache-2.0" ]
null
null
null
clients/firestore/lib/google_api/firestore/v1beta1/model/commit_response.ex
nuxlli/elixir-google-api
ecb8679ac7282b7dd314c3e20c250710ec6a7870
[ "Apache-2.0" ]
null
null
null
clients/firestore/lib/google_api/firestore/v1beta1/model/commit_response.ex
nuxlli/elixir-google-api
ecb8679ac7282b7dd314c3e20c250710ec6a7870
[ "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...
36.098039
159
0.746877
d561e9209bc2d6a1f8a195c21c9a79a03715f9fb
1,095
ex
Elixir
lib/models/random_failure/failure_log.ex
mgwidmann/slack_coder
3ff4375777c1bdbc94ba1491fdf4e1c0fa465edf
[ "MIT" ]
15
2015-09-23T16:03:28.000Z
2018-12-04T21:48:04.000Z
lib/models/random_failure/failure_log.ex
mgwidmann/slack_coder
3ff4375777c1bdbc94ba1491fdf4e1c0fa465edf
[ "MIT" ]
27
2016-01-12T16:44:31.000Z
2017-10-13T16:09:36.000Z
lib/models/random_failure/failure_log.ex
mgwidmann/slack_coder
3ff4375777c1bdbc94ba1491fdf4e1c0fa465edf
[ "MIT" ]
4
2016-09-01T12:08:24.000Z
2017-09-21T15:07:57.000Z
defmodule SlackCoder.Models.RandomFailure.FailureLog do use SlackCoder.Web, :model alias SlackCoder.Models.{PR, RandomFailure} schema "failure_logs" do belongs_to :pr, PR field :log, :string field :external_id, :integer field :sha, :string has_one :random_failure, RandomFailure timestam...
25.465116
97
0.688584
d562187025ecac76df2c2240587e6083205915cd
3,233
ex
Elixir
lib/tracking/tracking.ex
neodevelop/ex_audit
425f94166fcdfb103789c5b5cb96a94c54ff6eeb
[ "MIT" ]
null
null
null
lib/tracking/tracking.ex
neodevelop/ex_audit
425f94166fcdfb103789c5b5cb96a94c54ff6eeb
[ "MIT" ]
null
null
null
lib/tracking/tracking.ex
neodevelop/ex_audit
425f94166fcdfb103789c5b5cb96a94c54ff6eeb
[ "MIT" ]
null
null
null
defmodule ExAudit.Tracking do def find_changes(action, struct_or_changeset, resulting_struct) do old = case {action, struct_or_changeset} do {:created, _} -> %{} {_, %Ecto.Changeset{data: struct}} -> struct {_, %{} = struct} -> struct {_, nil} -> %{} end new = ...
25.062016
82
0.605629
d5621d6d86cff1a0105f1b61a3e9516be3c5a12b
382
ex
Elixir
web/views/error_view.ex
Sobieck00/phoenix_diet
b418bf4031e6b39d70290cecf4a8d478006d53b5
[ "MIT" ]
null
null
null
web/views/error_view.ex
Sobieck00/phoenix_diet
b418bf4031e6b39d70290cecf4a8d478006d53b5
[ "MIT" ]
null
null
null
web/views/error_view.ex
Sobieck00/phoenix_diet
b418bf4031e6b39d70290cecf4a8d478006d53b5
[ "MIT" ]
null
null
null
defmodule PhoenixDiet.ErrorView do use PhoenixDiet.Web, :view def render("404.html", _assigns) do "Page not found" end def render("500.html", _assigns) do "Server internal error" end # In case no render clause matches or no # template is found, let's render it as 500 def template_not_found(_t...
21.222222
47
0.704188
d56236d49385bcfe9f5ecba37f247818318bc11b
605
exs
Elixir
priv/repo/seeds.exs
itorisaias/elxpro_blog_phx
872f70a154c15976ed829c5fe6a9767ea28d67a5
[ "MIT" ]
null
null
null
priv/repo/seeds.exs
itorisaias/elxpro_blog_phx
872f70a154c15976ed829c5fe6a9767ea28d67a5
[ "MIT" ]
9
2021-08-13T02:21:40.000Z
2021-08-24T05:02:19.000Z
priv/repo/seeds.exs
itorisaias/elxpro_blog_phx
872f70a154c15976ed829c5fe6a9767ea28d67a5
[ "MIT" ]
null
null
null
# Script for populating the database. You can run it as: # # mix run priv/repo/seeds.exs # # Inside the script, you can read and write to any of your # repositories directly: # # Blog.Repo.insert!(%Blog.SomeSchema{}) # # We recommend using the bang functions (`insert!`, `update!` # and so on) as they will fail ...
23.269231
61
0.679339
d5623978f44841c80f4e927632a8415d9fdfcdd1
90
exs
Elixir
test/timetracker_web/views/layout_view_test.exs
LunarLogic/timetracker
5c2ffffc9023c7b099d7af8de7f21225352483ca
[ "MIT" ]
1
2019-06-26T06:53:01.000Z
2019-06-26T06:53:01.000Z
test/timetracker_web/views/layout_view_test.exs
LunarLogic/timetracker
5c2ffffc9023c7b099d7af8de7f21225352483ca
[ "MIT" ]
null
null
null
test/timetracker_web/views/layout_view_test.exs
LunarLogic/timetracker
5c2ffffc9023c7b099d7af8de7f21225352483ca
[ "MIT" ]
null
null
null
defmodule TimetrackerWeb.LayoutViewTest do use TimetrackerWeb.ConnCase, async: true end
22.5
42
0.844444
d56243af8482dea643710207006b134b942d87b0
666
ex
Elixir
lib/shipstation/customer.ex
christopherlai/shipstation
d784f43830df3d1650d9ccd68aca28cd2d995214
[ "MIT" ]
4
2017-03-28T19:21:48.000Z
2022-02-11T05:12:07.000Z
lib/shipstation/customer.ex
christopherlai/shipstation
d784f43830df3d1650d9ccd68aca28cd2d995214
[ "MIT" ]
1
2018-10-05T14:55:55.000Z
2018-10-05T14:55:55.000Z
lib/shipstation/customer.ex
christopherlai/shipstation
d784f43830df3d1650d9ccd68aca28cd2d995214
[ "MIT" ]
3
2018-10-05T14:04:02.000Z
2021-11-11T10:22:46.000Z
defmodule Shipstation.Customer do @moduledoc ~s""" Manage customers in your account """ @doc ~s""" Get a customer by their ID """ @spec get(id :: integer) :: Shipstation.Client.response_type def get(id) do uri = %{Shipstation.Client.base_uri | path: "/customers/#{id}"} Shipstation.Client.call_a...
26.64
90
0.675676
d5624b544f53c4c8e297d8d6d2214b2554618f22
898
exs
Elixir
apps/discovery_streams/config/config.exs
smartcitiesdata/smartcitiesdata
c926c25003a8ee2d09b933c521c49f674841c0b6
[ "Apache-2.0" ]
26
2019-09-20T23:54:45.000Z
2020-08-20T14:23:32.000Z
apps/discovery_streams/config/config.exs
smartcitiesdata/smartcitiesdata
c926c25003a8ee2d09b933c521c49f674841c0b6
[ "Apache-2.0" ]
757
2019-08-15T18:15:07.000Z
2020-09-18T20:55:31.000Z
apps/discovery_streams/config/config.exs
smartcitiesdata/smartcitiesdata
c926c25003a8ee2d09b933c521c49f674841c0b6
[ "Apache-2.0" ]
9
2019-11-12T16:43:46.000Z
2020-03-25T16:23:16.000Z
use Mix.Config config :discovery_streams, DiscoveryStreamsWeb.Endpoint, http: [port: 4001, stream_handlers: [Web.StreamHandlers.StripServerHeader, :cowboy_stream_h]], secret_key_base: "This is a test key", render_errors: [view: DiscoveryStreamsWeb.ErrorView, accepts: ~w(html json)], pubsub_server: DiscoveryStr...
27.212121
96
0.731626
d5626023a91046839b5fbb4df584b4094e6b5d33
6,355
ex
Elixir
lib/nsq/consumer/backoff.ex
wingyplus/elixir_nsq
a3d6af736efb508c2e3dfbc8d1cab3c624f57c53
[ "MIT" ]
null
null
null
lib/nsq/consumer/backoff.ex
wingyplus/elixir_nsq
a3d6af736efb508c2e3dfbc8d1cab3c624f57c53
[ "MIT" ]
9
2020-04-05T15:39:46.000Z
2020-04-06T17:29:00.000Z
lib/nsq/consumer/backoff.ex
wingyplus/elixir_nsq
a3d6af736efb508c2e3dfbc8d1cab3c624f57c53
[ "MIT" ]
null
null
null
defmodule NSQ.Consumer.Backoff do @moduledoc """ When messages fail unexpectedly hard, we go into "backoff mode". """ require Logger alias NSQ.Consumer, as: C alias NSQ.Consumer.Connections alias NSQ.Consumer.RDY import NSQ.Consumer.Helpers @doc """ Decision point about whether to continue/end/ign...
33.447368
88
0.678049
d5626ea7bc6add2d82655f4ae9446920026e0126
343
ex
Elixir
lib/evie_web/controllers/page_controller.ex
diegoeche/elixir-evie
fc986385b5c5c999be137923b39387411928ac17
[ "MIT" ]
1
2020-09-15T11:36:12.000Z
2020-09-15T11:36:12.000Z
lib/evie_web/controllers/page_controller.ex
diegoeche/elixir-evie
fc986385b5c5c999be137923b39387411928ac17
[ "MIT" ]
1
2021-05-10T20:29:53.000Z
2021-05-10T20:29:53.000Z
lib/evie_web/controllers/page_controller.ex
diegoeche/elixir-evie
fc986385b5c5c999be137923b39387411928ac17
[ "MIT" ]
null
null
null
defmodule EvieWeb.PageController do use EvieWeb, :controller def index(conn, _params) do render(conn, "index.html") end def dashboard(conn, _params) do render(conn, "dashboard.html") end def page(conn, _params) do render(conn, "page.html") end def auth(conn, _params) do render(conn, ...
17.15
35
0.673469
d5627034544d97030415396d46bb019ae7f861d3
361
exs
Elixir
elixir/set1/challenge1/test/challenge1_test.exs
sdball/matasano-crypto-challenges
c539a605b4f709c7c202216ecedd7355e6b4a1b9
[ "MIT" ]
null
null
null
elixir/set1/challenge1/test/challenge1_test.exs
sdball/matasano-crypto-challenges
c539a605b4f709c7c202216ecedd7355e6b4a1b9
[ "MIT" ]
null
null
null
elixir/set1/challenge1/test/challenge1_test.exs
sdball/matasano-crypto-challenges
c539a605b4f709c7c202216ecedd7355e6b4a1b9
[ "MIT" ]
null
null
null
defmodule Challenge1Test do use ExUnit.Case doctest Challenge1 test "convert hex to base64" do hex = "49276d206b696c6c696e6720796f757220627261696e206c696b65206120706f69736f6e6f7573206d757368726f6f6d" base64 = "SSdtIGtpbGxpbmcgeW91ciBicmFpbiBsaWtlIGEgcG9pc29ub3VzIG11c2hyb29t" assert Challenge1.conver...
30.083333
108
0.831025
d5629296e749a7705f90d7b22241995cf421f075
1,811
ex
Elixir
clients/remote_build_execution/lib/google_api/remote_build_execution/v2/model/google_devtools_remoteworkers_v1test2_command_task_inputs_environment_variable.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/remote_build_execution/lib/google_api/remote_build_execution/v2/model/google_devtools_remoteworkers_v1test2_command_task_inputs_environment_variable.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/remote_build_execution/lib/google_api/remote_build_execution/v2/model/google_devtools_remoteworkers_v1test2_command_task_inputs_environment_variable.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...
31.77193
123
0.743788
d562c764b31a7bdca053aa8f42c873033bce85aa
1,129
exs
Elixir
config/config.exs
luisantunesdeveloper/merkle-tea
d30c4133de33fe73ffe9f962f7b079fa47f2b673
[ "MIT" ]
null
null
null
config/config.exs
luisantunesdeveloper/merkle-tea
d30c4133de33fe73ffe9f962f7b079fa47f2b673
[ "MIT" ]
null
null
null
config/config.exs
luisantunesdeveloper/merkle-tea
d30c4133de33fe73ffe9f962f7b079fa47f2b673
[ "MIT" ]
null
null
null
# This file is responsible for configuring your application # and its dependencies with the aid of the Mix.Config module. use Mix.Config # This configuration is loaded before any dependency and is restricted # to this project. If another project depends on this project, this # file won't be loaded nor affect the paren...
36.419355
73
0.752879
d562ca5a865dafad6ddc00a9ef825279604b32b0
986
exs
Elixir
apps/fz_vpn/test/fz_vpn/server_test.exs
athulspeaks/firezone
98f4709c4d2c03f1ade5167494547ef240a09aed
[ "Apache-2.0" ]
null
null
null
apps/fz_vpn/test/fz_vpn/server_test.exs
athulspeaks/firezone
98f4709c4d2c03f1ade5167494547ef240a09aed
[ "Apache-2.0" ]
null
null
null
apps/fz_vpn/test/fz_vpn/server_test.exs
athulspeaks/firezone
98f4709c4d2c03f1ade5167494547ef240a09aed
[ "Apache-2.0" ]
null
null
null
defmodule FzVpn.ServerTest do use ExUnit.Case, async: true import FzVpn.CLI @empty [] @single_peer [ %{public_key: "test-pubkey", allowed_ips: "127.0.0.1/32,::1/128"} ] describe "state" do setup %{stubbed_config: config} do test_pid = :global.whereis_name(:fz_vpn_server) :ok = GenServe...
27.388889
75
0.656187
d5630c6d35cf0d4e49738843ad143c2870696369
1,626
exs
Elixir
config/prod.exs
cscairns/agile_pulse
01675fc60c5ebc88e6e6c3304f2a5aa683528f7c
[ "CC0-1.0" ]
null
null
null
config/prod.exs
cscairns/agile_pulse
01675fc60c5ebc88e6e6c3304f2a5aa683528f7c
[ "CC0-1.0" ]
null
null
null
config/prod.exs
cscairns/agile_pulse
01675fc60c5ebc88e6e6c3304f2a5aa683528f7c
[ "CC0-1.0" ]
null
null
null
use Mix.Config config :agile_pulse, AgilePulseWeb.Endpoint, load_from_system_env: true, http: [port: {:system, "PORT"}], url: [scheme: "https", host: "agilepulse.herokuapp.com", port: 443], force_ssl: [rewrite_on: [:x_forwarded_proto]], cache_static_manifest: "priv/static/cache_manifest.json", secret_key_b...
31.882353
70
0.693112
d56315109ed092aa467d8ad3796cc5a462ce8196
3
ex
Elixir
assets/js/test.ex
iHealth-paycard/ihealth.github.io
8379c089d41b25e974d4971e37ec6961351bf556
[ "MIT" ]
20
2015-01-26T01:39:44.000Z
2020-05-30T19:04:14.000Z
assets/js/test.ex
iHealth-paycard/ihealth.github.io
8379c089d41b25e974d4971e37ec6961351bf556
[ "MIT" ]
6
2015-02-23T06:47:09.000Z
2015-06-04T20:31:30.000Z
assets/js/test.ex
iHealth-paycard/ihealth.github.io
8379c089d41b25e974d4971e37ec6961351bf556
[ "MIT" ]
13
2015-01-26T01:39:45.000Z
2022-03-09T16:45:09.000Z
f
1.5
2
0.333333
d5631f72699ed26e58c3b2c442075239b71d23c2
4,162
ex
Elixir
lib/core/farmware_runtime/pipe_worker.ex
FarmBot/farmbot_os
5ebdca3afd672eb6b0af5c71cfca02488b32569a
[ "MIT" ]
843
2016-10-05T23:46:05.000Z
2022-03-14T04:31:55.000Z
lib/core/farmware_runtime/pipe_worker.ex
FarmBot/farmbot_os
5ebdca3afd672eb6b0af5c71cfca02488b32569a
[ "MIT" ]
455
2016-10-15T08:49:16.000Z
2022-03-15T12:23:04.000Z
lib/core/farmware_runtime/pipe_worker.ex
FarmBot/farmbot_os
5ebdca3afd672eb6b0af5c71cfca02488b32569a
[ "MIT" ]
261
2016-10-10T04:37:06.000Z
2022-03-13T21:07:38.000Z
defmodule FarmbotCore.FarmwareRuntime.PipeWorker do @moduledoc """ Proxy for Pipe IO operations. """ use GenServer require Logger alias __MODULE__, as: State defstruct [ :port, :pipe_name, :pipe, :buffer, :caller, :size, :timeout_timer, :direction ] @read_time 5 de...
27.025974
161
0.613647
d56321510941e2296f68003e5a5cdb7e16b5d594
1,446
exs
Elixir
mix.exs
pkinney/simplify_ex
c4d5d1c65f5bd720c0a54a630bb9bf477afa212e
[ "MIT" ]
16
2016-03-26T14:41:52.000Z
2022-03-31T16:03:47.000Z
mix.exs
pkinney/simplify_ex
c4d5d1c65f5bd720c0a54a630bb9bf477afa212e
[ "MIT" ]
2
2016-05-03T20:37:14.000Z
2019-05-25T16:12:20.000Z
mix.exs
pkinney/simplify_ex
c4d5d1c65f5bd720c0a54a630bb9bf477afa212e
[ "MIT" ]
5
2016-05-03T20:28:33.000Z
2019-05-21T07:14:08.000Z
defmodule Simplify.Mixfile do use Mix.Project def project do [ app: :simplify, version: "2.0.0", elixir: "~> 1.6", description: description(), package: package(), start_permanent: Mix.env() == :prod, dialyzer: [plt_add_apps: [:mix]], test_coverage: [tool: ExCover...
21.909091
118
0.518672
d5634bbb94b9525392400c4a380c0a7d9d2074ef
3,791
ex
Elixir
lib/koans/12_pattern_matching.ex
apokochito/elixirkoans
9bcff0d3d6aa7a44c8ce466f0f73f49d90413bec
[ "MIT" ]
1
2021-03-15T19:22:28.000Z
2021-03-15T19:22:28.000Z
lib/koans/12_pattern_matching.ex
apokochito/elixirkoans
9bcff0d3d6aa7a44c8ce466f0f73f49d90413bec
[ "MIT" ]
null
null
null
lib/koans/12_pattern_matching.ex
apokochito/elixirkoans
9bcff0d3d6aa7a44c8ce466f0f73f49d90413bec
[ "MIT" ]
null
null
null
defmodule PatternMatching do use Koans @intro "PatternMatching" koan "One matches one" do assert match?(1, 1) end koan "Patterns can be used to pull things apart" do [head | tail] = [1, 2, 3, 4] assert head == 1 assert tail == [2, 3, 4] end koan "And then put them back together" do ...
22.700599
101
0.594039
d5635bd0ef879bbc7685b4de0dc8d77b0c6ad88a
4,464
exs
Elixir
day-6/part1.exs
bmatcuk/adventofcode2018
b4ca1474b4cc6bc310a5965fdf09795b410cc94c
[ "MIT" ]
1
2019-05-14T04:42:31.000Z
2019-05-14T04:42:31.000Z
day-6/part1.exs
bmatcuk/adventofcode2018
b4ca1474b4cc6bc310a5965fdf09795b410cc94c
[ "MIT" ]
null
null
null
day-6/part1.exs
bmatcuk/adventofcode2018
b4ca1474b4cc6bc310a5965fdf09795b410cc94c
[ "MIT" ]
null
null
null
defmodule AoC.Day6.Part1 do @moduledoc """ --- Day 6: Chronal Coordinates --- The device on your wrist beeps several times, and once again you feel like you're falling. "Situation critical," the device announces. "Destination indeterminate. Chronal interference detected. Please specify new target coordinat...
30.575342
85
0.593862
d5635ce40d66bae9cd51225e7a0ee969fbae9e5b
1,475
exs
Elixir
config/config.exs
hauptbenutzer/elixir-google-api
7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2
[ "Apache-2.0" ]
null
null
null
config/config.exs
hauptbenutzer/elixir-google-api
7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2
[ "Apache-2.0" ]
null
null
null
config/config.exs
hauptbenutzer/elixir-google-api
7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2
[ "Apache-2.0" ]
null
null
null
# This file is responsible for configuring your application # and its dependencies with the aid of the Mix.Config module. use Mix.Config # This configuration is loaded before any dependency and is restricted # to this project. If another project depends on this project, this # file won't be loaded nor affect the paren...
37.820513
73
0.762034
d563b5f4ddc3920ebdb768010ee76ca0ef5803a0
2,896
ex
Elixir
lib/square_up/resources/v2/catalog_objects.ex
beaver21/SquareUp
c9791d96ed9335926933403a966eba5076fbc15b
[ "MIT" ]
4
2020-10-21T18:34:50.000Z
2022-03-16T06:25:44.000Z
lib/square_up/resources/v2/catalog_objects.ex
beaver21/SquareUp
c9791d96ed9335926933403a966eba5076fbc15b
[ "MIT" ]
5
2020-10-21T23:16:32.000Z
2021-05-13T13:42:44.000Z
lib/square_up/resources/v2/catalog_objects.ex
beaver21/SquareUp
c9791d96ed9335926933403a966eba5076fbc15b
[ "MIT" ]
3
2020-10-21T21:20:36.000Z
2021-03-15T18:00:30.000Z
defmodule SquareUp.V2.CatalogObjects do import Norm import SquareUp.Client, only: [call: 2] @spec batch_delete( SquareUp.Client.t(), %{}, SquareUp.TypeSpecs.batch_delete_catalog_objects_request(), %{} ) :: SquareUp.Client.response(SquareUp.TypeSpecs.batch_delete_ca...
33.287356
101
0.683356
d563eec32f6ad572149fcadb3d53f0963fc4495c
797
ex
Elixir
authentication/lib/authentication_web/controllers/usuario_controller.ex
hbobenicio/phoenix-examples
dd2adc8887a341b50d192bc31c61ee528e896672
[ "MIT" ]
null
null
null
authentication/lib/authentication_web/controllers/usuario_controller.ex
hbobenicio/phoenix-examples
dd2adc8887a341b50d192bc31c61ee528e896672
[ "MIT" ]
null
null
null
authentication/lib/authentication_web/controllers/usuario_controller.ex
hbobenicio/phoenix-examples
dd2adc8887a341b50d192bc31c61ee528e896672
[ "MIT" ]
null
null
null
defmodule AuthenticationWeb.Controllers.UsuarioController do @moduledoc """ Controller para o recurso Usuário (rota: /usuarios) """ use AuthenticationWeb, :controller alias Authentication.Usuario.UsuarioBC def create(conn, %{"nome" => _nome, "email" => _email, "senha" => _senha} = payload) do case Usua...
24.90625
89
0.649937
d5643fdffd3207ea7d630f3e502e2313b123b26d
90
exs
Elixir
test/pummpcomm/pump_model_test.exs
infinity-aps/pummpcomm
7380585ecd110ab1c19d2aea3880e51e3f433050
[ "MIT" ]
15
2017-08-31T00:58:47.000Z
2020-01-12T03:53:13.000Z
test/pummpcomm/pump_model_test.exs
vladhj38/pummpcomm
7380585ecd110ab1c19d2aea3880e51e3f433050
[ "MIT" ]
1
2017-09-15T02:09:31.000Z
2017-09-15T02:09:31.000Z
test/pummpcomm/pump_model_test.exs
vladhj38/pummpcomm
7380585ecd110ab1c19d2aea3880e51e3f433050
[ "MIT" ]
3
2017-09-10T17:24:59.000Z
2019-09-10T19:41:49.000Z
defmodule Pummpcomm.PumpModelTest do use ExUnit.Case doctest Pummpcomm.PumpModel end
15
36
0.822222
d564488ab731e2bbe07ed541d7feaf29e4fc09d6
20,755
ex
Elixir
lib/aws/generated/migration_hub_refactor_spaces.ex
pecigonzalo/aws-elixir
b52181ebfb9e62349dc8e8067b7fbcd4f7a18c68
[ "Apache-2.0" ]
null
null
null
lib/aws/generated/migration_hub_refactor_spaces.ex
pecigonzalo/aws-elixir
b52181ebfb9e62349dc8e8067b7fbcd4f7a18c68
[ "Apache-2.0" ]
null
null
null
lib/aws/generated/migration_hub_refactor_spaces.ex
pecigonzalo/aws-elixir
b52181ebfb9e62349dc8e8067b7fbcd4f7a18c68
[ "Apache-2.0" ]
null
null
null
# WARNING: DO NOT EDIT, AUTO-GENERATED CODE! # See https://github.com/aws-beam/aws-codegen for more details. defmodule AWS.MigrationHubRefactorSpaces do @moduledoc """ Amazon Web Services Migration Hub Refactor Spaces ` This API reference provides descriptions, syntax, and other details about each of the acti...
26.172762
205
0.651024
d5648d64eaaf6bd4534cc5cebc3bed26754a9239
536
exs
Elixir
test/supabase_test.exs
relax2code/supabase-elixir
ac61175d4dbaec905139ee92489ebfccb6361f62
[ "Apache-2.0" ]
16
2021-05-17T02:19:08.000Z
2022-03-08T10:56:09.000Z
test/supabase_test.exs
relax2code/supabase-elixir
ac61175d4dbaec905139ee92489ebfccb6361f62
[ "Apache-2.0" ]
1
2021-07-13T15:47:36.000Z
2021-07-14T05:18:09.000Z
test/supabase_test.exs
relax2code/supabase-elixir
ac61175d4dbaec905139ee92489ebfccb6361f62
[ "Apache-2.0" ]
2
2021-07-13T11:34:34.000Z
2021-09-09T15:31:01.000Z
defmodule SupabaseTest do use ExUnit.Case import Supabase import Postgrestex test "postgrest integration" do Application.put_env(:supabase, :base_url, System.get_env("SUPABASE_TEST_URL")) Application.put_env(:supabase, :api_key, System.get_env("SUPABASE_TEST_KEY")) # Supabase.init(System.get_env("...
26.8
93
0.712687
d564a2a9b4b93fa5f8d0d07542284ff1343bd9f7
2,577
ex
Elixir
lib/guilda_web.ex
guildatech/GuildaEx
4df60d5b85b578c019c71bcb17b907b6cd811037
[ "MIT" ]
10
2020-09-05T20:25:05.000Z
2022-01-28T14:02:36.000Z
lib/guilda_web.ex
guildatech/GuildaEx
4df60d5b85b578c019c71bcb17b907b6cd811037
[ "MIT" ]
11
2020-09-07T01:09:55.000Z
2022-02-06T00:58:48.000Z
lib/guilda_web.ex
guildatech/GuildaEx
4df60d5b85b578c019c71bcb17b907b6cd811037
[ "MIT" ]
3
2020-10-03T01:53:08.000Z
2022-01-28T14:03:09.000Z
defmodule GuildaWeb 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 GuildaWeb, :controller use GuildaWeb, :view The definitions below will be executed for every view, controller, etc...
23.008929
88
0.682189
d564a67fc645e27fee76f3f805f96d82b333b051
860
ex
Elixir
lib/stats.ex
alejandrodnm/nine_digits_server
5f3bf3b25fb6af8dae60be916441f057d6aa7f8a
[ "MIT" ]
null
null
null
lib/stats.ex
alejandrodnm/nine_digits_server
5f3bf3b25fb6af8dae60be916441f057d6aa7f8a
[ "MIT" ]
null
null
null
lib/stats.ex
alejandrodnm/nine_digits_server
5f3bf3b25fb6af8dae60be916441f057d6aa7f8a
[ "MIT" ]
null
null
null
require Logger defmodule Stats do @moduledoc """ Handles the stats and reporting of the application. Every 10 seconds it will timeout and write to `stdio` with the count of the newly recived nine digits number, the count of newly received duplicates and the total uniquer numbers. """ use GenServer @tim...
23.888889
70
0.675581
d564f61f68d3ffa30925ba1b50198c3981934486
628
ex
Elixir
example/test/support/data_case.ex
tokafish/phoenix-jsroutes
2deb3d03210e4a91a0550079fa6c300595c86b0c
[ "MIT" ]
27
2016-06-05T02:07:58.000Z
2021-06-11T20:12:38.000Z
example/test/support/data_case.ex
tokafish/phoenix-jsroutes
2deb3d03210e4a91a0550079fa6c300595c86b0c
[ "MIT" ]
9
2016-06-21T18:09:58.000Z
2021-03-10T14:21:51.000Z
example/test/support/data_case.ex
tiagoengel/phoenix-jsroutes
9dacc6472c9db0f97d7a39e1cc7e1b7dbd74ac50
[ "MIT" ]
6
2016-06-05T21:01:13.000Z
2020-04-22T13:50:37.000Z
defmodule JsRoutesExample.DataCase do @moduledoc """ This module defines the setup for tests requiring access to the application's data layer. You may define functions here to be used as helpers in your tests. Finally, if the test case interacts with the database, it cannot be async. For this reason, ev...
24.153846
56
0.727707
d56505165219cdb9c1635fff2cb56b462b4d127f
988
ex
Elixir
web/views/error_helpers.ex
cjen07/lssn
a3b9f4998dc497935896657473b1c30a570c92e8
[ "MIT" ]
null
null
null
web/views/error_helpers.ex
cjen07/lssn
a3b9f4998dc497935896657473b1c30a570c92e8
[ "MIT" ]
null
null
null
web/views/error_helpers.ex
cjen07/lssn
a3b9f4998dc497935896657473b1c30a570c92e8
[ "MIT" ]
null
null
null
defmodule Lssn.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 if error = form.errors[field] do content_tag :span, translate_error(error), cla...
27.444444
75
0.676113
d5651e23965b7ffe0d7ef490ad8e33923cbc28ad
1,235
exs
Elixir
mix.exs
phpcitizen/rstwitter
2d7d2d139a75cb590dcf67b66fff2341ec15dd4f
[ "MIT" ]
2
2018-08-21T03:52:51.000Z
2020-09-26T23:00:37.000Z
mix.exs
phpcitizen/rstwitter
2d7d2d139a75cb590dcf67b66fff2341ec15dd4f
[ "MIT" ]
1
2019-06-17T09:58:23.000Z
2019-06-17T09:58:23.000Z
mix.exs
phpcitizen/rstwitter
2d7d2d139a75cb590dcf67b66fff2341ec15dd4f
[ "MIT" ]
2
2019-06-15T20:27:35.000Z
2020-08-24T19:48:50.000Z
defmodule RsTwitter.MixProject do use Mix.Project def project do [ app: :rs_twitter, version: "0.1.0", elixir: "~> 1.6", start_permanent: Mix.env() == :prod, deps: deps(), description: "Twitter Client", package: package(), source_url: "https://github.com/radzser...
22.87037
67
0.554656
d5654c1d046142ae03e2ffc7864a3406a1f6589f
174
exs
Elixir
priv/repo/migrations/20171226235329_add_constraint_to_dashboard.exs
crosscloudci/ci_status_repository
335e8b89bbf59e6cf63e49541ce3ea6b60167e52
[ "Apache-2.0" ]
2
2019-03-05T16:29:10.000Z
2020-01-17T14:11:48.000Z
priv/repo/migrations/20171226235329_add_constraint_to_dashboard.exs
crosscloudci/ci_status_repository
335e8b89bbf59e6cf63e49541ce3ea6b60167e52
[ "Apache-2.0" ]
3
2019-03-18T20:26:48.000Z
2020-06-25T14:31:13.000Z
priv/repo/migrations/20171226235329_add_constraint_to_dashboard.exs
crosscloudci/ci_status_repository
335e8b89bbf59e6cf63e49541ce3ea6b60167e52
[ "Apache-2.0" ]
1
2018-06-16T15:32:25.000Z
2018-06-16T15:32:25.000Z
defmodule CncfDashboardApi.Repo.Migrations.AddConstraintToDashboard do use Ecto.Migration def change do create unique_index(:dashboard, [:gitlab_ci_yml]) end end
19.333333
70
0.793103
d565578eae24c2255886fc3f7b931170ba198a77
3,458
ex
Elixir
web/models/dashboard.ex
sahilpaudel/AfterGlow
0859ec14b47c8c5704cc8e5cba86d39aa258fff5
[ "MIT" ]
null
null
null
web/models/dashboard.ex
sahilpaudel/AfterGlow
0859ec14b47c8c5704cc8e5cba86d39aa258fff5
[ "MIT" ]
null
null
null
web/models/dashboard.ex
sahilpaudel/AfterGlow
0859ec14b47c8c5704cc8e5cba86d39aa258fff5
[ "MIT" ]
null
null
null
defmodule AfterGlow.Dashboard do use AfterGlow.Web, :model alias AfterGlow.Question alias AfterGlow.Tag alias AfterGlow.DashboardQuestion alias AfterGlow.CacheWrapper.Repo alias AfterGlow.Variable alias AfterGlow.Notes.Note alias AfterGlow.User schema "dashboards" do field(:title, :string) fi...
24.877698
87
0.653557
d5656be8e9e0e8201c038bbd33b113be218a8f54
7,802
exs
Elixir
test/provider_test.exs
VeryBigThings/provider
b618bd9bfe64bf9633eaba121f140267e559591a
[ "MIT" ]
25
2020-03-06T15:25:56.000Z
2021-04-25T23:23:12.000Z
test/provider_test.exs
VeryBigThings/provider
b618bd9bfe64bf9633eaba121f140267e559591a
[ "MIT" ]
null
null
null
test/provider_test.exs
VeryBigThings/provider
b618bd9bfe64bf9633eaba121f140267e559591a
[ "MIT" ]
4
2020-05-05T17:56:50.000Z
2021-12-25T20:20:09.000Z
defmodule ProviderTest do use ExUnit.Case, async: true alias Provider alias ProviderTest.TestModule describe "fetch_one" do test "returns correct value" do param = param_spec() System.put_env(param.os_env_name, "some value") assert Provider.fetch_one(Provider.SystemEnv, param.name, param....
30.596078
98
0.592156
d565b79c5a0966e6ab07f42928c7a45c35dcde92
106
exs
Elixir
test/test_helper.exs
inaka/Dayron
d6773dacdc681766bfcb41dd792c102ab7217b1c
[ "Apache-2.0" ]
169
2016-05-05T17:21:45.000Z
2022-01-31T20:23:07.000Z
test/test_helper.exs
inaka/Dayron
d6773dacdc681766bfcb41dd792c102ab7217b1c
[ "Apache-2.0" ]
51
2016-04-22T20:46:37.000Z
2022-02-22T00:15:40.000Z
test/test_helper.exs
inaka/RestRepo
d6773dacdc681766bfcb41dd792c102ab7217b1c
[ "Apache-2.0" ]
26
2016-05-21T09:52:26.000Z
2022-02-11T18:07:14.000Z
Code.require_file "support/test_repo.exs", __DIR__ ExUnit.start() Application.ensure_all_started(:bypass)
26.5
50
0.830189
d56619a11ec31a3065f8ee3506401c011703254b
155
ex
Elixir
lib/helpers/benchmark.ex
hallski/adventofcode
03efb385688e8072b0b44d35012297833498f799
[ "MIT" ]
null
null
null
lib/helpers/benchmark.ex
hallski/adventofcode
03efb385688e8072b0b44d35012297833498f799
[ "MIT" ]
null
null
null
lib/helpers/benchmark.ex
hallski/adventofcode
03efb385688e8072b0b44d35012297833498f799
[ "MIT" ]
null
null
null
defmodule AdventOfCode.Helpers.Benchmark do def measure(function) do function |> :timer.tc() |> elem(0) |> Kernel./(1_000_000) end end
17.222222
43
0.645161
d5663b07953b07380b4c1dc9fb0b4449597bd402
138,119
ex
Elixir
lib/elixir/lib/kernel.ex
bryanhunter/elixir
9e232a60a12bd3f9762156fef2ba1454de094205
[ "Apache-2.0" ]
null
null
null
lib/elixir/lib/kernel.ex
bryanhunter/elixir
9e232a60a12bd3f9762156fef2ba1454de094205
[ "Apache-2.0" ]
null
null
null
lib/elixir/lib/kernel.ex
bryanhunter/elixir
9e232a60a12bd3f9762156fef2ba1454de094205
[ "Apache-2.0" ]
null
null
null
# Use elixir_bootstrap module to be able to bootstrap Kernel. # The bootstrap module provides simpler implementations of the # functions removed, simple enough to bootstrap. import Kernel, except: [@: 1, defmodule: 2, def: 1, def: 2, defp: 2, defmacro: 1, defmacro: 2, defmacrop: 2] import :elixir_bootstrap defmodul...
26.814017
104
0.636198
d5664ec97457e6076614bc06d38d41435ee20cf7
1,132
ex
Elixir
clients/ids/lib/google_api/ids/v1/connection.ex
MMore/elixir-google-api
0574ec1439d9bbfe22d63965be1681b0f45a94c9
[ "Apache-2.0" ]
null
null
null
clients/ids/lib/google_api/ids/v1/connection.ex
MMore/elixir-google-api
0574ec1439d9bbfe22d63965be1681b0f45a94c9
[ "Apache-2.0" ]
null
null
null
clients/ids/lib/google_api/ids/v1/connection.ex
MMore/elixir-google-api
0574ec1439d9bbfe22d63965be1681b0f45a94c9
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
34.30303
114
0.733216
d566583f3cb29f52a2a073b62b96813abbb26d54
729
ex
Elixir
lib/elixero/core_api/models/repeating_invoices.ex
philals/elixero
fd75fe4a6f0a93b1d2ff94adbb307d20f014d458
[ "MIT" ]
84
2016-11-09T01:15:17.000Z
2022-01-06T02:55:35.000Z
lib/elixero/core_api/models/repeating_invoices.ex
philals/elixero
fd75fe4a6f0a93b1d2ff94adbb307d20f014d458
[ "MIT" ]
14
2017-03-10T04:16:07.000Z
2021-11-10T16:39:19.000Z
lib/elixero/core_api/models/repeating_invoices.ex
philals/elixero
fd75fe4a6f0a93b1d2ff94adbb307d20f014d458
[ "MIT" ]
18
2017-03-11T21:12:15.000Z
2022-02-22T20:07:10.000Z
defmodule EliXero.CoreApi.Models.RepeatingInvoices do use Ecto.Schema import Ecto.Changeset @derive {Poison.Encoder, except: [:__meta__, :id]} schema "repeatinginvoices" do embeds_many :RepeatingInvoices, EliXero.CoreApi.Models.RepeatingInvoices.RepeatingInvoice end def ...
28.038462
98
0.618656
d56674b2ff04f7287053b66109f09234a8bc2d1e
3,946
ex
Elixir
lib/open890_web/controllers/radio_connection_controller.ex
VE2guy/open890
9206ad51d0ee036020f854725e4e1023088fda4e
[ "MIT" ]
45
2021-01-24T01:54:04.000Z
2022-02-28T03:28:13.000Z
lib/open890_web/controllers/radio_connection_controller.ex
VE2guy/open890
9206ad51d0ee036020f854725e4e1023088fda4e
[ "MIT" ]
57
2021-01-28T19:18:33.000Z
2022-01-23T17:31:50.000Z
lib/open890_web/controllers/radio_connection_controller.ex
VE2guy/open890
9206ad51d0ee036020f854725e4e1023088fda4e
[ "MIT" ]
5
2021-01-27T02:29:42.000Z
2022-01-15T14:03:24.000Z
defmodule Open890Web.RadioConnectionController do use Open890Web, :controller alias Open890.RadioConnection def index(conn, _params) do radio_connections = RadioConnection.all() conn |> assign(:radio_connections, radio_connections) |> render("index.html") end def new(conn, _params) do ...
26.483221
85
0.569944
d5667de6a12a5a69faf977d201cdb928799f2cae
2,125
ex
Elixir
lib/credo/cli/output/categories.ex
rodrigues/credo
b4e08477a2141d5537d8fc9c5cc08ebf93a5ee23
[ "MIT" ]
null
null
null
lib/credo/cli/output/categories.ex
rodrigues/credo
b4e08477a2141d5537d8fc9c5cc08ebf93a5ee23
[ "MIT" ]
null
null
null
lib/credo/cli/output/categories.ex
rodrigues/credo
b4e08477a2141d5537d8fc9c5cc08ebf93a5ee23
[ "MIT" ]
null
null
null
defmodule Credo.CLI.Output.Categories do alias Credo.CLI.Output alias Credo.CLI.Output.UI @order [:design, :readability, :refactor, :warning, :consistency] @category_colors [ design: :olive, readability: :blue, refactor: :yellow, warning: :red, consistency: :cyan, ] @category_titles [ ...
26.898734
79
0.654588
d566a6fde88de10d7130c148076e245c077fa4cf
196
ex
Elixir
lib/ast/assign.ex
guilhermeleobas/elox
39873aaff02c2e8ca54dd82572b4c774dd1ac8c7
[ "MIT" ]
5
2018-12-28T21:55:02.000Z
2022-02-13T17:55:29.000Z
lib/ast/assign.ex
guilhermeleobas/elox
39873aaff02c2e8ca54dd82572b4c774dd1ac8c7
[ "MIT" ]
2
2019-01-16T16:13:13.000Z
2019-02-06T01:45:51.000Z
lib/ast/assign.ex
guilhermeleobas/elox
39873aaff02c2e8ca54dd82572b4c774dd1ac8c7
[ "MIT" ]
null
null
null
defmodule Lox.Ast.Assign do @enforce_keys [:name, :expr] defstruct [:name, :expr] defimpl String.Chars, for: Lox.Ast.Assign do def to_string(assign) do "assign" end end end
17.818182
46
0.663265
d566d5429468c44e012ffde7238e4aff201bbd97
1,321
ex
Elixir
lib/structs/user/flags.ex
SpaceEEC/crux_structs
c10adb64ab6392c8601e4c53447128294daf0ae3
[ "MIT" ]
6
2018-05-22T07:13:47.000Z
2019-10-17T03:40:22.000Z
lib/structs/user/flags.ex
SpaceEEC/crux_structs
c10adb64ab6392c8601e4c53447128294daf0ae3
[ "MIT" ]
2
2018-11-01T17:11:51.000Z
2019-06-15T13:33:31.000Z
lib/structs/user/flags.ex
SpaceEEC/crux_structs
c10adb64ab6392c8601e4c53447128294daf0ae3
[ "MIT" ]
2
2018-10-29T06:53:41.000Z
2019-06-14T19:15:56.000Z
defmodule Crux.Structs.User.Flags do @moduledoc """ Custom non discord API module helping with the usage of [user flags](https://discord.com/developers/docs/resources/user#user-object-user-flags). Discord is only providing a not documented subset of the available flags to bots. """ @moduledoc since: "0.2.3" ...
24.924528
146
0.595004
d566d7fdbce6f787cd7dc07d43c1e14e508b6182
133
ex
Elixir
lib/sanbase_web/admin/auth/user_role.ex
santiment/sanbase2
9ef6e2dd1e377744a6d2bba570ea6bd477a1db31
[ "MIT" ]
81
2017-11-20T01:20:22.000Z
2022-03-05T12:04:25.000Z
lib/sanbase_web/admin/auth/user_role.ex
rmoorman/sanbase2
226784ab43a24219e7332c49156b198d09a6dd85
[ "MIT" ]
359
2017-10-15T14:40:53.000Z
2022-01-25T13:34:20.000Z
lib/sanbase_web/admin/auth/user_role.ex
rmoorman/sanbase2
226784ab43a24219e7332c49156b198d09a6dd85
[ "MIT" ]
16
2017-11-19T13:57:40.000Z
2022-02-07T08:13:02.000Z
defmodule SanbaseWeb.ExAdmin.Accounts.UserRole do use ExAdmin.Register register_resource Sanbase.Accounts.UserRole do end end
19
49
0.827068
d566fcc0b9d5a4b6892652b923c05484abf48be5
1,738
ex
Elixir
clients/service_user/lib/google_api/service_user/v1/model/list_enabled_services_response.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/service_user/lib/google_api/service_user/v1/model/list_enabled_services_response.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/service_user/lib/google_api/service_user/v1/model/list_enabled_services_response.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...
34.76
137
0.761795
d5670627154c7e2bb1d175d67bb7e7124e1f5277
172
ex
Elixir
lib/budget_app/operations/currency/get_paginated.ex
djordje/budget_app.backend
3febe64892e700f3174b8eddbc4b96260c444308
[ "MIT" ]
null
null
null
lib/budget_app/operations/currency/get_paginated.ex
djordje/budget_app.backend
3febe64892e700f3174b8eddbc4b96260c444308
[ "MIT" ]
null
null
null
lib/budget_app/operations/currency/get_paginated.ex
djordje/budget_app.backend
3febe64892e700f3174b8eddbc4b96260c444308
[ "MIT" ]
null
null
null
defmodule BudgetApp.Operations.Currency.GetPaginated do use BudgetApp.Operations.GetPaginated alias BudgetApp.Currency def resource_query(_filters), do: Currency end
28.666667
55
0.837209
d56745d980c117694cdc42de84163f8ec5e06a3c
597
ex
Elixir
web/router.ex
kimquy/phoenix_webpack_vue_boilerplate
0067c7facaeb33c8c53fef7779becc708636c97a
[ "MIT" ]
6
2017-05-19T14:00:24.000Z
2017-07-07T21:19:18.000Z
web/router.ex
kimquy/phoenix_webpack_vue_boilerplate
0067c7facaeb33c8c53fef7779becc708636c97a
[ "MIT" ]
1
2017-05-19T14:04:37.000Z
2017-05-19T14:05:31.000Z
web/router.ex
kimquy/phoenix_webpack_vue_boilerplate
0067c7facaeb33c8c53fef7779becc708636c97a
[ "MIT" ]
null
null
null
defmodule PhoenixWebpackVueBoilerplate.Router do use PhoenixWebpackVueBoilerplate.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"] e...
22.111111
57
0.718593
d567a68e36583ee4dbfa67e8b5366390ef3f1724
920
exs
Elixir
test/credo/check/design/skip_test_without_comment_test.exs
hypno2000/credo
ae4fd51a0041897bb3741458865bdc401b086759
[ "MIT" ]
null
null
null
test/credo/check/design/skip_test_without_comment_test.exs
hypno2000/credo
ae4fd51a0041897bb3741458865bdc401b086759
[ "MIT" ]
null
null
null
test/credo/check/design/skip_test_without_comment_test.exs
hypno2000/credo
ae4fd51a0041897bb3741458865bdc401b086759
[ "MIT" ]
1
2021-07-05T19:04:48.000Z
2021-07-05T19:04:48.000Z
defmodule Credo.Check.Design.SkipTestWithoutCommentTest do use Credo.Test.Case @described_check Credo.Check.Design.SkipTestWithoutComment test "it should NOT report when comment preceeds the tag" do """ defmodule CredoSampleModuleTest do alias ExUnit.Case # Happy case: Some comment @t...
19.574468
62
0.61087
d567b8a8daac55741e3b3ebe67798f4217d05f64
1,101
ex
Elixir
lib/tapebas/application.ex
cristineguadelupe/tapebas
5f8c70d5ac36b2a606fe4630cc659161b2f4d7bf
[ "MIT" ]
3
2022-03-24T16:48:38.000Z
2022-03-24T16:50:04.000Z
lib/tapebas/application.ex
cristineguadelupe/tapebas
5f8c70d5ac36b2a606fe4630cc659161b2f4d7bf
[ "MIT" ]
null
null
null
lib/tapebas/application.ex
cristineguadelupe/tapebas
5f8c70d5ac36b2a606fe4630cc659161b2f4d7bf
[ "MIT" ]
1
2022-03-20T01:11:12.000Z
2022-03-20T01:11:12.000Z
defmodule Tapebas.Application do # See https://hexdocs.pm/elixir/Application.html # for more information on OTP Applications @moduledoc false use Application @impl true def start(_type, _args) do children = [ # Start the Ecto repository Tapebas.Repo, # Start the Telemetry supervisor ...
28.230769
65
0.697548
d567c7195ea777b2caa1f7de941c0aa875cabac9
740
ex
Elixir
lib/phx_demo_processor_web/gettext.ex
LetThereBeDwight/phx_demo_processor
2ff6247e69ccc6cbee9a2e7bb20e72eafef8cc94
[ "MIT" ]
null
null
null
lib/phx_demo_processor_web/gettext.ex
LetThereBeDwight/phx_demo_processor
2ff6247e69ccc6cbee9a2e7bb20e72eafef8cc94
[ "MIT" ]
null
null
null
lib/phx_demo_processor_web/gettext.ex
LetThereBeDwight/phx_demo_processor
2ff6247e69ccc6cbee9a2e7bb20e72eafef8cc94
[ "MIT" ]
null
null
null
defmodule PhxDemoProcessorWeb.Gettext do @moduledoc """ A module providing Internationalization with a gettext-based API. By using [Gettext](https://hexdocs.pm/gettext), your module gains a set of macros for translations, for example: import PhxDemoProcessorWeb.Gettext # Simple translation ...
29.6
72
0.690541
d567dcefa7918c9935aea8927640828ec14f181e
14,115
exs
Elixir
lib/elixir/test/elixir/registry_test.exs
TurtleAI/elixir
2fb41ebef4d06315dd6c05ee00899572b27ee50a
[ "Apache-2.0" ]
null
null
null
lib/elixir/test/elixir/registry_test.exs
TurtleAI/elixir
2fb41ebef4d06315dd6c05ee00899572b27ee50a
[ "Apache-2.0" ]
null
null
null
lib/elixir/test/elixir/registry_test.exs
TurtleAI/elixir
2fb41ebef4d06315dd6c05ee00899572b27ee50a
[ "Apache-2.0" ]
null
null
null
Code.require_file "test_helper.exs", __DIR__ defmodule RegistryTest do use ExUnit.Case, async: true doctest Registry, except: [:moduledoc] setup config do kind = config[:kind] || :unique partitions = config[:partitions] || 1 listeners = List.wrap(config[:listener]) {:ok, _} = Registry.start_link...
37.841823
101
0.587673
d567f5654a1ddc1f247eafdafaf35e5336dd0b4f
1,148
ex
Elixir
lib/app/cities.ex
ilgarsh/travelbot
f6a10bf39e1942e46d571b59b41fb3001436f520
[ "MIT" ]
null
null
null
lib/app/cities.ex
ilgarsh/travelbot
f6a10bf39e1942e46d571b59b41fb3001436f520
[ "MIT" ]
1
2017-12-11T21:11:44.000Z
2017-12-11T21:11:44.000Z
lib/app/cities.ex
ilgarsh/travelbot
f6a10bf39e1942e46d571b59b41fb3001436f520
[ "MIT" ]
null
null
null
defmodule App.Cities do @url "https://iatacodes.org/api/v6/cities?api_key=279b4c81-fdcb-4aa2-8241-e83e2d2adafe" use GenServer ## Client def start_link do GenServer.start_link(__MODULE__, :ok, name: __MODULE__) end def get_city_code(city_name) do {:ok, code} = GenServer.call(__MODULE__, {:getcode, ...
24.956522
100
0.648955
d56843e091609134ce8b82c9d025f34c59767c93
2,326
exs
Elixir
test/json_schema_test_suite/draft6/boolean_schema_test.exs
kianmeng/xema
a990d64fb4bcd708249514daa55426ee003da25d
[ "MIT" ]
49
2018-06-05T09:42:19.000Z
2022-02-15T12:50:51.000Z
test/json_schema_test_suite/draft6/boolean_schema_test.exs
kianmeng/xema
a990d64fb4bcd708249514daa55426ee003da25d
[ "MIT" ]
152
2017-06-11T13:43:06.000Z
2022-01-09T17:13:45.000Z
test/json_schema_test_suite/draft6/boolean_schema_test.exs
kianmeng/xema
a990d64fb4bcd708249514daa55426ee003da25d
[ "MIT" ]
6
2019-05-31T05:41:47.000Z
2021-12-14T08:09:36.000Z
defmodule JsonSchemaTestSuite.Draft6.BooleanSchemaTest do use ExUnit.Case import Xema, only: [valid?: 2] describe ~s|boolean schema 'true'| do setup do %{ schema: Xema.from_json_schema( true, draft: "draft6", atom: :force ) } en...
22.365385
59
0.563629
d5686d043d7f56b5d1c94d936e92efdda9d767dd
1,257
ex
Elixir
lib/hello_phoenix_vuejs/endpoint.ex
mkrogemann/hello_phoenix_vuejs
8330af980e680bb24df0e7003548dfc24324b4bf
[ "Apache-2.0" ]
null
null
null
lib/hello_phoenix_vuejs/endpoint.ex
mkrogemann/hello_phoenix_vuejs
8330af980e680bb24df0e7003548dfc24324b4bf
[ "Apache-2.0" ]
null
null
null
lib/hello_phoenix_vuejs/endpoint.ex
mkrogemann/hello_phoenix_vuejs
8330af980e680bb24df0e7003548dfc24324b4bf
[ "Apache-2.0" ]
null
null
null
defmodule HelloPhoenixVuejs.Endpoint do use Phoenix.Endpoint, otp_app: :hello_phoenix_vuejs socket "/socket", HelloPhoenixVuejs.UserSocket # Serve at "/" the static files from "priv/static" directory. # # You should set gzip to true if you are running phoenix.digest # when deploying your static files in p...
29.232558
69
0.729515
d568a1b6229f2bbbf03b0d71858d8768e7656c3a
9,342
exs
Elixir
test/phoenix_component_test.exs
preciz/phoenix_live_view
d1a98f57d02cb7f7b97915f01574b979e5d10385
[ "MIT" ]
null
null
null
test/phoenix_component_test.exs
preciz/phoenix_live_view
d1a98f57d02cb7f7b97915f01574b979e5d10385
[ "MIT" ]
null
null
null
test/phoenix_component_test.exs
preciz/phoenix_live_view
d1a98f57d02cb7f7b97915f01574b979e5d10385
[ "MIT" ]
null
null
null
defmodule Phoenix.ComponentTest do use ExUnit.Case, async: true use Phoenix.Component defp h2s(template) do template |> Phoenix.HTML.Safe.to_iodata() |> IO.iodata_to_binary() end describe "rendering" do defp hello(assigns) do assigns = assign_new(assigns, :name, fn -> "World" end) ...
36.209302
179
0.494969
d568cb73eaeeb1b161383aa7a3d16e30e5770a5c
2,154
ex
Elixir
clients/you_tube/lib/google_api/you_tube/v3/model/sponsor_snippet.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
1
2018-12-03T23:43:10.000Z
2018-12-03T23:43:10.000Z
clients/you_tube/lib/google_api/you_tube/v3/model/sponsor_snippet.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
clients/you_tube/lib/google_api/you_tube/v3/model/sponsor_snippet.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.464286
181
0.722377
d568dcabcf117c6cddf5fe08cefe67f31c497e88
939
ex
Elixir
test/support/channel_case.ex
josecarlo-macariola/phx_api_test
1cb8de2aa96b1d669c85f9b2a97948f75e257fac
[ "MIT" ]
null
null
null
test/support/channel_case.ex
josecarlo-macariola/phx_api_test
1cb8de2aa96b1d669c85f9b2a97948f75e257fac
[ "MIT" ]
null
null
null
test/support/channel_case.ex
josecarlo-macariola/phx_api_test
1cb8de2aa96b1d669c85f9b2a97948f75e257fac
[ "MIT" ]
null
null
null
defmodule PhxTest.Web.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 datastructures and query the data layer. Finally, if the test case interacts w...
24.710526
69
0.71459
d568f01aeea9d56fb6bb15d949a32b278dfa25d6
2,002
exs
Elixir
test/algorithms/chunk_set_test.exs
vanessaklee/akin
fc97befb871536b6c7ef0b35740fe6efc032c566
[ "Apache-2.0" ]
8
2021-10-31T21:24:37.000Z
2022-02-27T05:30:24.000Z
test/algorithms/chunk_set_test.exs
vanessaklee/akin
fc97befb871536b6c7ef0b35740fe6efc032c566
[ "Apache-2.0" ]
1
2021-10-31T17:57:41.000Z
2021-11-09T22:54:50.000Z
test/algorithms/chunk_set_test.exs
vanessaklee/akin
fc97befb871536b6c7ef0b35740fe6efc032c566
[ "Apache-2.0" ]
null
null
null
defmodule SubstringSetTest do use ExUnit.Case import Akin.SubstringSet, only: [compare: 2, compare: 3] import Akin.Util, only: [compose: 1] test "returns expected float value for comparing string containing multiple, but similar words" do left = "alice in wonderland" right = "carroll's alice in wonderl...
29.441176
106
0.691808
d568f983e7a06d1e597afdf9fce23819985645c4
4,313
ex
Elixir
clients/android_publisher/lib/google_api/android_publisher/v2/model/externally_hosted_apk.ex
mocknen/elixir-google-api
dac4877b5da2694eca6a0b07b3bd0e179e5f3b70
[ "Apache-2.0" ]
null
null
null
clients/android_publisher/lib/google_api/android_publisher/v2/model/externally_hosted_apk.ex
mocknen/elixir-google-api
dac4877b5da2694eca6a0b07b3bd0e179e5f3b70
[ "Apache-2.0" ]
null
null
null
clients/android_publisher/lib/google_api/android_publisher/v2/model/externally_hosted_apk.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...
44.463918
258
0.712497
d56902a44cf39dab788c791b86b7dd63840d7bbd
2,247
ex
Elixir
lib/nostrum/voice/payload.ex
mckethanor/nostrum
13a3927c872c1540266e9f1ba4bcad4182baa9bf
[ "MIT" ]
null
null
null
lib/nostrum/voice/payload.ex
mckethanor/nostrum
13a3927c872c1540266e9f1ba4bcad4182baa9bf
[ "MIT" ]
null
null
null
lib/nostrum/voice/payload.ex
mckethanor/nostrum
13a3927c872c1540266e9f1ba4bcad4182baa9bf
[ "MIT" ]
null
null
null
defmodule Nostrum.Voice.Payload do @moduledoc false alias Nostrum.Cache.Me alias Nostrum.Constants alias Nostrum.Voice.Audio alias Nostrum.Struct.{VoiceState, VoiceWSState} require Logger # All functions in this module that end with a call to `build_payload/1` # with an all-caps string return JSON pa...
22.69697
76
0.636404
d569134100466736b9a39bbf33aed8b82b6dd6f9
481
exs
Elixir
spec/spec_helper.exs
andrei-mihaila/espec
ffab88aa987bd446e9c44fe38d73cfe6b789f80b
[ "Apache-2.0" ]
807
2015-03-25T14:00:19.000Z
2022-03-24T08:08:15.000Z
spec/spec_helper.exs
andrei-mihaila/espec
ffab88aa987bd446e9c44fe38d73cfe6b789f80b
[ "Apache-2.0" ]
254
2015-03-27T10:12:25.000Z
2021-07-12T01:40:15.000Z
spec/spec_helper.exs
andrei-mihaila/espec
ffab88aa987bd446e9c44fe38d73cfe6b789f80b
[ "Apache-2.0" ]
85
2015-04-02T10:25:19.000Z
2021-01-30T21:30:43.000Z
ESpec.configure(fn config -> config.before(fn _tags -> {:ok, %{answer: 42, order_spec_answer: 42}} end) config.finally(fn shared -> shared.answer end) end) path = Path.expand("../tmp/beams", __DIR__) File.rm_rf!(path) File.mkdir_p!(path) Code.prepend_path(path) defmodule ESpec.TestHelpers do def write_be...
22.904762
73
0.679834
d569197eedc4c82f1566041d2ea12411947b3689
177
exs
Elixir
test/test_helper.exs
nhu313/tag_it
567b219253abfdc65d143bb0464d8145bfe0a0f2
[ "Apache-2.0" ]
2
2016-03-15T09:35:48.000Z
2016-03-16T10:27:06.000Z
test/test_helper.exs
nhu313/tag_it
567b219253abfdc65d143bb0464d8145bfe0a0f2
[ "Apache-2.0" ]
7
2016-03-15T08:33:54.000Z
2016-03-15T09:12:39.000Z
test/test_helper.exs
nhu313/tag_it
567b219253abfdc65d143bb0464d8145bfe0a0f2
[ "Apache-2.0" ]
null
null
null
ExUnit.start Mix.Task.run "ecto.create", ~w(-r TagIt.Repo --quiet) Mix.Task.run "ecto.migrate", ~w(-r TagIt.Repo --quiet) Ecto.Adapters.SQL.begin_test_transaction(TagIt.Repo)
25.285714
54
0.734463
d56941e9a5f68b5cc401ac586d1727a8e4bdc6a8
425
exs
Elixir
test/crawlie/utils_test.exs
kianmeng/crawlie
19883f17a208107927ba14d15312f5a908d5e8ea
[ "MIT" ]
91
2016-12-29T12:31:14.000Z
2021-09-25T23:09:34.000Z
test/crawlie/utils_test.exs
kianmeng/crawlie
19883f17a208107927ba14d15312f5a908d5e8ea
[ "MIT" ]
40
2016-12-14T00:55:52.000Z
2022-01-29T08:46:03.000Z
test/crawlie/utils_test.exs
kianmeng/crawlie
19883f17a208107927ba14d15312f5a908d5e8ea
[ "MIT" ]
10
2017-04-06T11:18:10.000Z
2021-10-30T00:04:09.000Z
defmodule Crawlie.UtilsTest do use ExUnit.Case alias Crawlie.Utils doctest Utils describe "utimestamp" do test "is in the correct order of magnitude" do assert Utils.utimestamp > 567293400 * 1_000_000 end end test "usec_to_seconds" do utime = 567293400978203 sec = Utils.usec_to_sec...
19.318182
53
0.703529
d569511f03220b8b42f779b6fd50ab549f5c1afb
2,717
exs
Elixir
test/controllers/admin/article_controller_test.exs
exterm/scripture
eec53d2626f8484c03ad0545feffc73ec276fcab
[ "MIT" ]
null
null
null
test/controllers/admin/article_controller_test.exs
exterm/scripture
eec53d2626f8484c03ad0545feffc73ec276fcab
[ "MIT" ]
30
2016-08-21T18:33:11.000Z
2020-04-12T23:16:18.000Z
test/controllers/admin/article_controller_test.exs
exterm/scripture
eec53d2626f8484c03ad0545feffc73ec276fcab
[ "MIT" ]
null
null
null
defmodule Scripture.Admin.ArticleControllerTest do use Scripture.ConnCase, async: true alias Scripture.Article @valid_attrs %{content: "some content", title: "some content"} @invalid_attrs %{} alias Scripture.{User, Article} setup %{conn: conn} do user = persist_fixture(User, :admin) {:ok, conn: ...
36.716216
98
0.707398
d5696b7ff85f5e4fe1dbbd93a1ba26531cbccb75
4,098
ex
Elixir
lib/mix/tasks/bench.ex
RobertDober/benchfella
da3fff25b10bdbaacb5dfa567139cac53d21e51e
[ "MIT" ]
485
2015-01-07T10:26:26.000Z
2022-03-25T19:05:56.000Z
lib/mix/tasks/bench.ex
RobertDober/benchfella
da3fff25b10bdbaacb5dfa567139cac53d21e51e
[ "MIT" ]
48
2015-01-07T02:41:20.000Z
2021-12-18T20:10:00.000Z
lib/mix/tasks/bench.ex
RobertDober/benchfella
da3fff25b10bdbaacb5dfa567139cac53d21e51e
[ "MIT" ]
31
2015-05-02T14:51:52.000Z
2021-12-10T04:03:27.000Z
defmodule Mix.Tasks.Bench do use Mix.Task @shortdoc "Microbenchmarking tool for Elixir." @moduledoc """ #{@shortdoc} ## Usage mix bench [options] [<path>...] When one or more arguments are supplied, each of them will be treated as a wildcard pattern and only those bench tests that match the pat...
26.960526
100
0.645925
d5699ef97131fd2ae7d185efd6de33a6328ddf24
2,500
exs
Elixir
test/remember_test.exs
elixircnx/sanction
5b270fd6eef980d37c06429271f64ec14e0f622d
[ "BSD-3-Clause" ]
130
2016-06-21T07:58:46.000Z
2022-01-01T21:45:23.000Z
test/remember_test.exs
elixircnx/sanction
5b270fd6eef980d37c06429271f64ec14e0f622d
[ "BSD-3-Clause" ]
50
2016-06-29T16:01:42.000Z
2019-08-07T21:33:49.000Z
test/remember_test.exs
elixircnx/sanction
5b270fd6eef980d37c06429271f64ec14e0f622d
[ "BSD-3-Clause" ]
20
2016-07-02T11:37:33.000Z
2018-10-26T19:12:41.000Z
defmodule Openmaize.RememberTest do use Openmaize.TestCase use Plug.Test alias Openmaize.{Authenticate, Remember, SessionHelper, TestRepo, TestUser, UserHelpers} setup do {:ok, user} = UserHelpers.add_user() {:ok, other} = UserHelpers.add_confirmed() conn = conn(:get, "/") |> SessionHe...
33.333333
101
0.6544
d569c66801f1caa0089d050264d816ddd791986f
1,525
ex
Elixir
lib/robolia/accounts/queries.ex
Robolia/robolia
cbd3ea24db460f213a3411f474d765536ae7871c
[ "MIT" ]
1
2020-01-19T04:27:46.000Z
2020-01-19T04:27:46.000Z
lib/robolia/accounts/queries.ex
Robolia/robolia
cbd3ea24db460f213a3411f474d765536ae7871c
[ "MIT" ]
null
null
null
lib/robolia/accounts/queries.ex
Robolia/robolia
cbd3ea24db460f213a3411f474d765536ae7871c
[ "MIT" ]
1
2018-05-13T14:06:46.000Z
2018-05-13T14:06:46.000Z
defmodule Robolia.Accounts.Queries do import Ecto.Query, only: [from: 2] alias Robolia.Accounts.{Player, User, PlayerRating} alias Robolia.Games.Game def for_game(query, %{game_id: game_id}) do from( q in query, where: q.game_id == ^game_id ) end def for_github(%{id: _} = filter), do: ...
19.551282
67
0.579016
d569d933af2012629bd83f23f0a733c315964e24
892
ex
Elixir
clients/firebase_rules/lib/google_api/firebase_rules/v1/metadata.ex
Contractbook/elixir-google-api
342751041aaf8c2e7f76f9922cf24b9c5895802b
[ "Apache-2.0" ]
null
null
null
clients/firebase_rules/lib/google_api/firebase_rules/v1/metadata.ex
Contractbook/elixir-google-api
342751041aaf8c2e7f76f9922cf24b9c5895802b
[ "Apache-2.0" ]
null
null
null
clients/firebase_rules/lib/google_api/firebase_rules/v1/metadata.ex
Contractbook/elixir-google-api
342751041aaf8c2e7f76f9922cf24b9c5895802b
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
33.037037
74
0.761211
d569f128a3e847b861bcf3e7543d4dcfc8cc40af
4,664
ex
Elixir
debian/manpage.sgml.ex
granalberto/libyuv
5468be0c3bc9109e0d7f02a747387926f1dea6f8
[ "BSD-3-Clause" ]
null
null
null
debian/manpage.sgml.ex
granalberto/libyuv
5468be0c3bc9109e0d7f02a747387926f1dea6f8
[ "BSD-3-Clause" ]
null
null
null
debian/manpage.sgml.ex
granalberto/libyuv
5468be0c3bc9109e0d7f02a747387926f1dea6f8
[ "BSD-3-Clause" ]
null
null
null
<!doctype refentry PUBLIC "-//OASIS//DTD DocBook V4.1//EN" [ <!-- Process this file with docbook-to-man to generate an nroff manual page: `docbook-to-man manpage.sgml > manpage.1'. You may view the manual page with: `docbook-to-man manpage.sgml | nroff -man | less'. A typical entry in a Makefile or Ma...
30.090323
75
0.658448
d569f67ed0d4e6f66ab9f3b1d3d1188079a28ea8
224
ex
Elixir
lib/fizz_buzz.ex
ventuno/elixir-fundamentals
eda1388f9815f8f9238b236edea9ca55447e3d27
[ "BSD-3-Clause" ]
14
2018-04-18T12:58:54.000Z
2020-09-14T16:40:07.000Z
lib/fizz_buzz.ex
ventuno/elixir-fundamentals
eda1388f9815f8f9238b236edea9ca55447e3d27
[ "BSD-3-Clause" ]
6
2018-02-27T18:25:57.000Z
2021-10-19T02:40:08.000Z
lib/fizz_buzz.ex
ventuno/elixir-fundamentals
eda1388f9815f8f9238b236edea9ca55447e3d27
[ "BSD-3-Clause" ]
5
2018-02-28T16:10:53.000Z
2019-04-18T11:18:05.000Z
defmodule FizzBuzz do def play_game(number) when number >= 1 do 1..number |> Enum.map(&player_turn/1) |> Enum.join(", ") end defp player_turn(number) do number # Replace with your real answer end end
20.363636
43
0.65625
d569fd36af33f18b4feb2569956f946b3bad8aca
3,226
ex
Elixir
lib/rdf/serialization/writer.ex
marcelotto/rdf-ex
12adce69eb2dbff027cbc83aaaf912067aea1b02
[ "MIT" ]
53
2017-06-25T22:20:44.000Z
2020-04-27T17:27:51.000Z
lib/rdf/serialization/writer.ex
marcelotto/rdf-ex
12adce69eb2dbff027cbc83aaaf912067aea1b02
[ "MIT" ]
7
2017-06-25T00:29:11.000Z
2020-03-11T00:23:47.000Z
lib/rdf/serialization/writer.ex
marcelotto/rdf-ex
12adce69eb2dbff027cbc83aaaf912067aea1b02
[ "MIT" ]
2
2018-01-19T15:48:27.000Z
2020-03-01T00:29:35.000Z
defmodule RDF.Serialization.Writer do @moduledoc !""" General functions for writing the statements of a RDF data structure to a file, string or stream. These functions are not intended for direct use, but instead via the automatically generated functions with the same name on a...
33.257732
110
0.678549
d56a36afbcbfae93ebd668bd718bf79b6710565a
3,499
ex
Elixir
lib/fryse/indexer.ex
fryse/fryse
56e25ff2dc3dad56593849af7e8786225b918934
[ "MIT" ]
7
2018-02-03T01:04:22.000Z
2020-07-19T16:47:03.000Z
lib/fryse/indexer.ex
fryse/fryse
56e25ff2dc3dad56593849af7e8786225b918934
[ "MIT" ]
3
2020-07-16T09:28:38.000Z
2020-07-22T09:40:45.000Z
lib/fryse/indexer.ex
fryse/fryse
56e25ff2dc3dad56593849af7e8786225b918934
[ "MIT" ]
null
null
null
defmodule Fryse.Indexer do @moduledoc false alias Fryse.Config alias Fryse.FileLoader alias Fryse.ErrorBag alias Fryse.Errors.MissingRequiredFile def index(path) do source_path = Path.expand(path) destination_path = Path.join(source_path, "_site") with :ok <- check_required_files(source_path)...
23.802721
113
0.553015
d56a43d9b59f41a592ae7c25be5a74e2b5e98224
14,658
ex
Elixir
clients/dfa_reporting/lib/google_api/dfa_reporting/v28/api/user_roles.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
1
2018-12-03T23:43:10.000Z
2018-12-03T23:43:10.000Z
clients/dfa_reporting/lib/google_api/dfa_reporting/v28/api/user_roles.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
clients/dfa_reporting/lib/google_api/dfa_reporting/v28/api/user_roles.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the &quot;License&quot;); # 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.364162
559
0.6769
d56a5c1e1bee81ad1456905a94a7726a4fd90768
2,376
ex
Elixir
clients/data_pipelines/lib/google_api/data_pipelines/v1/model/google_rpc_status.ex
renovate-bot/elixir-google-api
1da34cd39b670c99f067011e05ab90af93fef1f6
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/data_pipelines/lib/google_api/data_pipelines/v1/model/google_rpc_status.ex
swansoffiee/elixir-google-api
9ea6d39f273fb430634788c258b3189d3613dde0
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/data_pipelines/lib/google_api/data_pipelines/v1/model/google_rpc_status.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...
44.830189
427
0.725168
d56a6604d133b894306d286897d81f7fc7f2ef15
72
exs
Elixir
test/test_helper.exs
jgchristopher/gitpod-test
82074240ba866983f043962dbe3c7a54ef796527
[ "MIT" ]
null
null
null
test/test_helper.exs
jgchristopher/gitpod-test
82074240ba866983f043962dbe3c7a54ef796527
[ "MIT" ]
null
null
null
test/test_helper.exs
jgchristopher/gitpod-test
82074240ba866983f043962dbe3c7a54ef796527
[ "MIT" ]
null
null
null
ExUnit.start() Ecto.Adapters.SQL.Sandbox.mode(GitpodTest.Repo, :manual)
24
56
0.791667
d56a7dfcceab70c65dc2cdd1c105a9f92e1c92ac
5,572
ex
Elixir
lib/quantum/execution_broadcaster.ex
sickill/quantum-elixir
c9a49f70f2c465980a8e14905ba08feecfc5fa1c
[ "Apache-2.0" ]
null
null
null
lib/quantum/execution_broadcaster.ex
sickill/quantum-elixir
c9a49f70f2c465980a8e14905ba08feecfc5fa1c
[ "Apache-2.0" ]
null
null
null
lib/quantum/execution_broadcaster.ex
sickill/quantum-elixir
c9a49f70f2c465980a8e14905ba08feecfc5fa1c
[ "Apache-2.0" ]
null
null
null
defmodule Quantum.ExecutionBroadcaster do @moduledoc """ Receives Added / Removed Jobs, Broadcasts Executions of Jobs """ use GenStage require Logger alias Quantum.{Job, Util, DateLibrary} alias Crontab.{Scheduler, CronExpression} @doc """ Start Stage ### Arguments * `name` - The name of t...
25.796296
96
0.583812
d56aa12a1cb87b1d29e4ff149be152564a533c53
6,609
exs
Elixir
test/goth/token_test.exs
peburrows/google_auth
e62ca4afddfabdb3d599c3594fee02c49a2350e4
[ "MIT" ]
null
null
null
test/goth/token_test.exs
peburrows/google_auth
e62ca4afddfabdb3d599c3594fee02c49a2350e4
[ "MIT" ]
null
null
null
test/goth/token_test.exs
peburrows/google_auth
e62ca4afddfabdb3d599c3594fee02c49a2350e4
[ "MIT" ]
null
null
null
defmodule Goth.TokenTest do use ExUnit.Case, async: true test "fetch/1 with service account" do bypass = Bypass.open() default_scope = "https://www.googleapis.com/auth/cloud-platform" Bypass.expect(bypass, fn conn -> assert %{ "grant_type" => "urn:ietf:params:oauth:grant-type:jwt-...
30.739535
110
0.607505
d56aa4e993bb74026ec500840e4ad83034dc64b9
1,326
ex
Elixir
farmbot_core/lib/farmbot_core/leds/stub_handler.ex
elbow-jason/farmbot_os
f5dfc8f58a309285ca3d441b1b7272f15315b2a9
[ "MIT" ]
null
null
null
farmbot_core/lib/farmbot_core/leds/stub_handler.ex
elbow-jason/farmbot_os
f5dfc8f58a309285ca3d441b1b7272f15315b2a9
[ "MIT" ]
null
null
null
farmbot_core/lib/farmbot_core/leds/stub_handler.ex
elbow-jason/farmbot_os
f5dfc8f58a309285ca3d441b1b7272f15315b2a9
[ "MIT" ]
null
null
null
defmodule FarmbotCore.Leds.StubHandler do @moduledoc false @behaviour FarmbotCore.Leds.Handler def red(status), do: do_debug(:red, status) def blue(status), do: do_debug(:blue, status) def green(status), do: do_debug(:green, status) def yellow(status), do: do_debug(:yellow, status) def white1(status), do...
31.571429
63
0.657617
d56ad26fd7ecc98f0d56f36bcea58fa8cff31ce8
1,275
ex
Elixir
lib/apothecary_web/views/error_helpers.ex
mbgardner/apothecary
e3392732c1ff7645c36b6aa3b53a012b6d352e14
[ "MIT" ]
null
null
null
lib/apothecary_web/views/error_helpers.ex
mbgardner/apothecary
e3392732c1ff7645c36b6aa3b53a012b6d352e14
[ "MIT" ]
null
null
null
lib/apothecary_web/views/error_helpers.ex
mbgardner/apothecary
e3392732c1ff7645c36b6aa3b53a012b6d352e14
[ "MIT" ]
null
null
null
defmodule ApothecaryWeb.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...
31.097561
79
0.672941
d56b60d9908be28d43625d2f3a5ae9e78324fb53
3,949
ex
Elixir
lib/liquex/indifferent.ex
merchant-ly/liquex
3ba72f82e9c2c57f11ef045a2028a5fc1add0d93
[ "MIT" ]
null
null
null
lib/liquex/indifferent.ex
merchant-ly/liquex
3ba72f82e9c2c57f11ef045a2028a5fc1add0d93
[ "MIT" ]
null
null
null
lib/liquex/indifferent.ex
merchant-ly/liquex
3ba72f82e9c2c57f11ef045a2028a5fc1add0d93
[ "MIT" ]
null
null
null
defmodule Liquex.Indifferent do @moduledoc false @spec get(map, any, any) :: any @doc """ Gets a value from a map using indifferent access ## Examples iex> Liquex.Indifferent.get(%{"a" => "Hello"}, "a") "Hello" iex> Liquex.Indifferent.get(%{a: "Hello"}, "a") "Hello" iex> L...
25.152866
79
0.571284
d56b7f5447db7b5c78906f8806c5dd8181cec4f1
2,931
ex
Elixir
clients/vector_tile/lib/google_api/vector_tile/v1/model/line.ex
mcrumm/elixir-google-api
544f22797cec52b3a23dfb6e39117f0018448610
[ "Apache-2.0" ]
null
null
null
clients/vector_tile/lib/google_api/vector_tile/v1/model/line.ex
mcrumm/elixir-google-api
544f22797cec52b3a23dfb6e39117f0018448610
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/vector_tile/lib/google_api/vector_tile/v1/model/line.ex
mcrumm/elixir-google-api
544f22797cec52b3a23dfb6e39117f0018448610
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
55.301887
622
0.751279
d56bad437b223b38aa92b83b5af5c0b0bb46a9de
6,398
ex
Elixir
deps/ecto/lib/ecto/query/builder/join.ex
hallebadkapp/rumbl-ms
ae2ef9975658115f8c4d5c49c28d8bde00a74b83
[ "MIT" ]
null
null
null
deps/ecto/lib/ecto/query/builder/join.ex
hallebadkapp/rumbl-ms
ae2ef9975658115f8c4d5c49c28d8bde00a74b83
[ "MIT" ]
null
null
null
deps/ecto/lib/ecto/query/builder/join.ex
hallebadkapp/rumbl-ms
ae2ef9975658115f8c4d5c49c28d8bde00a74b83
[ "MIT" ]
null
null
null
defmodule Ecto.Query.Builder.Join do @moduledoc false alias Ecto.Query.Builder alias Ecto.Query.JoinExpr @doc """ Escapes a join expression (not including the `on` expression). It returns a tuple containing the binds, the on expression (if available) and the association expression. ## Examples ...
31.209756
108
0.600188
d56bc2b6f5609bf924a3362bb0a1d3322f5ba76c
8,055
ex
Elixir
lib/beetle.ex
ihorkatkov/beetle
e9d96e16799fea1d07e9600cbb1699ecf2febf6f
[ "MIT" ]
2
2021-06-05T22:13:35.000Z
2021-06-06T11:30:35.000Z
lib/beetle.ex
ihorkatkov/beetle
e9d96e16799fea1d07e9600cbb1699ecf2febf6f
[ "MIT" ]
18
2021-06-09T10:27:16.000Z
2022-03-31T04:15:23.000Z
lib/beetle.ex
ihorkatkov/beetle
e9d96e16799fea1d07e9600cbb1699ecf2febf6f
[ "MIT" ]
null
null
null
defmodule Beetle do @moduledoc """ Documentation for Beetle module. This is the main API for the Beetle rate-limiter. In order to use it, you should create a module which will represent a rate-limiter ```elixir defmodule MyApp.RateLimiter do use Beetle, backend: Beetle.Backend.ETS, opts: [...
31.588235
99
0.577529
d56bcb03af591a717c12e73fc479d969323ca22d
5,443
ex
Elixir
lib/votr/election/ward.ex
wjanssens/votr
4fdd2a6e5ac9178a7fa90578f75a248e2bf161b6
[ "MIT" ]
1
2018-04-27T09:43:27.000Z
2018-04-27T09:43:27.000Z
lib/votr/election/ward.ex
wjanssens/votr
4fdd2a6e5ac9178a7fa90578f75a248e2bf161b6
[ "MIT" ]
null
null
null
lib/votr/election/ward.ex
wjanssens/votr
4fdd2a6e5ac9178a7fa90578f75a248e2bf161b6
[ "MIT" ]
null
null
null
defmodule Votr.Election.Ward do use Ecto.Schema import Ecto.Changeset import Ecto.Query alias Votr.Repo alias Votr.Election.Res alias Votr.Election.Voter alias Votr.Election.Ballot alias Votr.Election.Ward # wards are heirarchical # a federal election may have a national referendum, provincial MPs ...
30.578652
93
0.603527
d56bfbccbd7cb91e295cdab2ca0448fa1ee58911
1,122
exs
Elixir
test/check/doc_whitespace_test.exs
smaximov/credo_contrib
dfbd1cad8e1c58fcb2271fdfdfaad67e7218c2b8
[ "ISC" ]
9
2019-12-29T05:10:48.000Z
2022-03-14T17:12:23.000Z
test/check/doc_whitespace_test.exs
smaximov/credo_contrib
dfbd1cad8e1c58fcb2271fdfdfaad67e7218c2b8
[ "ISC" ]
6
2019-05-09T13:32:26.000Z
2021-03-31T15:36:35.000Z
test/check/doc_whitespace_test.exs
smaximov/credo_contrib
dfbd1cad8e1c58fcb2271fdfdfaad67e7218c2b8
[ "ISC" ]
5
2019-03-16T17:09:42.000Z
2021-03-09T14:23:24.000Z
# credo:disable-for-this-file Credo.Check.Readability.TrailingWhiteSpace # credo:disable-for-this-file Credo.Check.Readability.StringSigils defmodule CredoContrib.Check.DocWhitespaceTest do use CredoContrib.TestCase, async: true @described_check CredoContrib.Check.DocWhitespace test "does not report for expecte...
17.809524
72
0.5918
d56c2dc099658ba2e3ca0446c548af78da827853
156
exs
Elixir
spec/spec_helper.exs
otoyo/zendex
4995571464e11e891d7136a97b135be313d14cb1
[ "CC0-1.0" ]
3
2017-10-13T03:49:18.000Z
2018-09-02T21:57:17.000Z
spec/spec_helper.exs
otoyo/zendex
4995571464e11e891d7136a97b135be313d14cb1
[ "CC0-1.0" ]
29
2020-01-28T07:11:42.000Z
2021-08-03T05:45:19.000Z
spec/spec_helper.exs
otoyo/zendex
4995571464e11e891d7136a97b135be313d14cb1
[ "CC0-1.0" ]
2
2019-02-08T04:15:19.000Z
2019-02-08T04:39:49.000Z
ESpec.configure(fn config -> config.before(fn tags -> {:shared, hello: :world, tags: tags} end) config.finally(fn _shared -> :ok end) end)
15.6
40
0.621795
d56c4a51248d5f49da8f65222e0c10e544772d4a
20,505
exs
Elixir
lib/elixir/test/elixir/module/checker_test.exs
joshnuss/elixir
10ef56fdfa6f1634c0b167a6ddfda44b91bd9bd4
[ "Apache-2.0" ]
1
2020-01-14T18:44:56.000Z
2020-01-14T18:44:56.000Z
lib/elixir/test/elixir/module/checker_test.exs
joshnuss/elixir
10ef56fdfa6f1634c0b167a6ddfda44b91bd9bd4
[ "Apache-2.0" ]
null
null
null
lib/elixir/test/elixir/module/checker_test.exs
joshnuss/elixir
10ef56fdfa6f1634c0b167a6ddfda44b91bd9bd4
[ "Apache-2.0" ]
1
2018-01-09T20:10:59.000Z
2018-01-09T20:10:59.000Z
Code.require_file("../test_helper.exs", __DIR__) defmodule Module.CheckerTest do use ExUnit.Case import ExUnit.CaptureIO setup_all do previous = Application.get_env(:elixir, :ansi_enabled, false) Application.put_env(:elixir, :ansi_enabled, false) on_exit(fn -> Application.put_env(:elixir, :ansi_ena...
21.606955
117
0.500658
d56c57916b00938aca3dfd73caaaeac3c2f09a4b
1,034
ex
Elixir
lib/scenic/primitive/style/font.ex
mikeover/scenic
4b61c4996ed2d06b8cdf94f88c8a0522160e10b5
[ "Apache-2.0" ]
null
null
null
lib/scenic/primitive/style/font.ex
mikeover/scenic
4b61c4996ed2d06b8cdf94f88c8a0522160e10b5
[ "Apache-2.0" ]
null
null
null
lib/scenic/primitive/style/font.ex
mikeover/scenic
4b61c4996ed2d06b8cdf94f88c8a0522160e10b5
[ "Apache-2.0" ]
null
null
null
# # Re-Created by Boyd Multerer on November 30, 2017. # Copyright © 2017 Kry10 Industries. All rights reserved. # defmodule Scenic.Primitive.Style.Font do use Scenic.Primitive.Style # import IEx # ============================================================================ # data verification and serializa...
25.219512
80
0.466151
d56ca1ac0d88a19745dfbb5108eb58e564b1e84e
39,785
ex
Elixir
clients/cloud_resource_manager/lib/google_api/cloud_resource_manager/v2/api/folders.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/cloud_resource_manager/lib/google_api/cloud_resource_manager/v2/api/folders.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/cloud_resource_manager/lib/google_api/cloud_resource_manager/v2/api/folders.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...
52.905585
1,248
0.645771