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
5a9e7ce3f0acf9ccf7e7276cfa38e352a47edd45
4,007
ex
Elixir
clients/container_analysis/lib/google_api/container_analysis/v1beta1/model/grafeas_v1beta1_vulnerability_details.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/container_analysis/lib/google_api/container_analysis/v1beta1/model/grafeas_v1beta1_vulnerability_details.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/container_analysis/lib/google_api/container_analysis/v1beta1/model/grafeas_v1beta1_vulnerability_details.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...
54.890411
707
0.735713
5a9e9a9279ea57cd25ec0e4f2d69b0b5e35ed97b
1,050
exs
Elixir
config/test.exs
dashbitco/bytepack_archive
79f8e62149d020f2afcc501592ed399f7ce7a60b
[ "Unlicense" ]
313
2020-12-03T17:26:24.000Z
2022-03-18T09:05:14.000Z
config/test.exs
dashbitco/bytepack_archive
79f8e62149d020f2afcc501592ed399f7ce7a60b
[ "Unlicense" ]
null
null
null
config/test.exs
dashbitco/bytepack_archive
79f8e62149d020f2afcc501592ed399f7ce7a60b
[ "Unlicense" ]
57
2020-12-03T17:41:53.000Z
2022-03-17T17:28:16.000Z
import Config # Configure your database # # The MIX_TEST_PARTITION environment variable can be used # to provide built-in test partitioning in CI environment. # Run `mix help test` for more information. config :bytepack, Bytepack.Repo, username: "postgres", password: "postgres", database: "bytepack_test#{System....
30
95
0.768571
5a9f0445741a10558af52189a0098115c4c127ad
2,036
exs
Elixir
test/loki/storage/storage_test.exs
artjimlop/loki
4ac5f7b4313564971f8dd4213a2022698600786a
[ "Apache-2.0" ]
null
null
null
test/loki/storage/storage_test.exs
artjimlop/loki
4ac5f7b4313564971f8dd4213a2022698600786a
[ "Apache-2.0" ]
null
null
null
test/loki/storage/storage_test.exs
artjimlop/loki
4ac5f7b4313564971f8dd4213a2022698600786a
[ "Apache-2.0" ]
null
null
null
defmodule Loki.StorageTest do use Loki.DataCase alias Loki.Storage describe "items" do alias Loki.Storage.Item @valid_attrs %{content: "some content", title: "some title"} @update_attrs %{content: "some updated content", title: "some updated title"} @invalid_attrs %{content: nil, title: nil} ...
29.941176
84
0.649804
5a9f0a3e170f1bdb9b5a5ef671c94e2acab3e142
1,931
exs
Elixir
config/dev.exs
suranyami/sentinel
aeb421e2e61a4bc14abe89b4a92cb1943a5965fb
[ "MIT" ]
null
null
null
config/dev.exs
suranyami/sentinel
aeb421e2e61a4bc14abe89b4a92cb1943a5965fb
[ "MIT" ]
null
null
null
config/dev.exs
suranyami/sentinel
aeb421e2e61a4bc14abe89b4a92cb1943a5965fb
[ "MIT" ]
null
null
null
use Mix.Config config :logger, level: :warn config :sentinel, Sentinel.Mailer, adapter: Bamboo.TestAdapter, html_email_templates: "lib/sentinel/templates/", text_email_templates: "lib/sentinel/templates/" config :sentinel, Sentinel.Guardian, issuer: "Sentinel", secret_key: "Secret key. You can use `mix gua...
31.145161
76
0.715173
5a9f1568b6435bf2d2461b63c378f8cb69c30b18
8,152
ex
Elixir
lib/fastimage/parser.ex
stephenmoloney/fastimage
4cccdffacaa80527de52f7ba47194ec7b89c53d9
[ "MIT" ]
30
2016-08-12T06:28:45.000Z
2021-09-24T11:55:14.000Z
lib/fastimage/parser.ex
stephenmoloney/fastimage
4cccdffacaa80527de52f7ba47194ec7b89c53d9
[ "MIT" ]
31
2016-08-10T21:30:08.000Z
2018-11-22T15:46:04.000Z
lib/fastimage/parser.ex
stephenmoloney/fastimage
4cccdffacaa80527de52f7ba47194ec7b89c53d9
[ "MIT" ]
13
2016-08-10T15:11:42.000Z
2022-01-12T23:06:14.000Z
defmodule Fastimage.Parser do @moduledoc false alias Fastimage.{Dimensions, Error, Parser, Stream, Utils} use Bitwise @doc false def size(:bmp, %Stream.Acc{acc_data: data}) do Parser.parse_bmp(data) end def size(:gif, %Stream.Acc{acc_data: data}) do Parser.parse_gif(data) end def size(:png,...
28.805654
101
0.583783
5a9f1e9c8b95de2f6fbe30de24086462ef1246b9
1,176
ex
Elixir
web/channels/user_socket.ex
rawcodehq/webmonitor
1397c74cb04434d18eb08e447c2c91d23ca97962
[ "MIT" ]
5
2016-07-05T20:31:46.000Z
2021-03-20T20:11:48.000Z
web/channels/user_socket.ex
rawcodehq/webmonitor
1397c74cb04434d18eb08e447c2c91d23ca97962
[ "MIT" ]
null
null
null
web/channels/user_socket.ex
rawcodehq/webmonitor
1397c74cb04434d18eb08e447c2c91d23ca97962
[ "MIT" ]
1
2016-07-18T23:00:46.000Z
2016-07-18T23:00:46.000Z
defmodule Webmonitor.UserSocket do use Phoenix.Socket ## Channels # channel "rooms:*", Webmonitor.RoomChannel ## Transports transport :websocket, Phoenix.Transports.WebSocket # transport :longpoll, Phoenix.Transports.LongPoll # Socket params are passed from the client and can # be used to verify and ...
30.947368
83
0.704082
5a9f2b3acf7c2cea69496e7176251d729a647da2
8,097
ex
Elixir
lib/sanity.ex
balexand/sanity
4fc5be7fe3f09f9795a7ed60a4b2c431926bc96e
[ "MIT" ]
4
2021-12-15T21:10:11.000Z
2022-03-15T11:57:47.000Z
lib/sanity.ex
balexand/sanity
4fc5be7fe3f09f9795a7ed60a4b2c431926bc96e
[ "MIT" ]
26
2021-02-22T12:16:38.000Z
2022-03-12T20:54:57.000Z
lib/sanity.ex
balexand/sanity
4fc5be7fe3f09f9795a7ed60a4b2c431926bc96e
[ "MIT" ]
null
null
null
defmodule Sanity do @moduledoc """ Client library for Sanity CMS. See the [README](readme.html) for examples. """ alias Sanity.{Request, Response} @asset_options_schema [ asset_type: [ default: :image, type: {:in, [:image, :file]}, doc: "Either `:image` or `:file`." ], content_...
28.611307
109
0.617142
5a9f5e7f21c27921ea45ecc79d79a76699b0ae85
10,484
ex
Elixir
lib/ecto/adapters/mysql.ex
ohta-rh/ecto
d5f8bfdfcc6fcfb520c62bbd1dbdd8ee6f09de59
[ "Apache-2.0" ]
null
null
null
lib/ecto/adapters/mysql.ex
ohta-rh/ecto
d5f8bfdfcc6fcfb520c62bbd1dbdd8ee6f09de59
[ "Apache-2.0" ]
null
null
null
lib/ecto/adapters/mysql.ex
ohta-rh/ecto
d5f8bfdfcc6fcfb520c62bbd1dbdd8ee6f09de59
[ "Apache-2.0" ]
null
null
null
defmodule Ecto.Adapters.MySQL do @moduledoc """ Adapter module for MySQL. It handles and pools the connections to the MySQL database using `mariaex` and a connection pool, such as `poolboy`. ## Options MySQL options split in different categories described below. All options should be given via the re...
33.602564
111
0.642598
5a9fd1da7e00e30cd0589853439b655d50454027
2,438
exs
Elixir
config/prod.exs
jordyvanvorselen/chewie-backend
b382ee0726f54d8ae45f2b41f43e38469cecc326
[ "MIT" ]
null
null
null
config/prod.exs
jordyvanvorselen/chewie-backend
b382ee0726f54d8ae45f2b41f43e38469cecc326
[ "MIT" ]
null
null
null
config/prod.exs
jordyvanvorselen/chewie-backend
b382ee0726f54d8ae45f2b41f43e38469cecc326
[ "MIT" ]
null
null
null
use Mix.Config # For production, don't forget to configure the url host # to something meaningful, Phoenix uses this information # when generating URLs. # # Note we also include the path to a cache manifest # containing the digested version of static files. This # manifest is generated by the `mix phx.digest` task, # ...
33.861111
69
0.712059
5a9fd4c2561cbf4b578494931b2546504e984155
709
ex
Elixir
lib/rbt/instrumentation/consumer.ex
cloud8421/rbt
b536d5f9cde56d0be380f065ad6a2ad54f5341c7
[ "MIT" ]
null
null
null
lib/rbt/instrumentation/consumer.ex
cloud8421/rbt
b536d5f9cde56d0be380f065ad6a2ad54f5341c7
[ "MIT" ]
1
2018-09-28T16:16:58.000Z
2019-05-17T14:21:01.000Z
lib/rbt/instrumentation/consumer.ex
cloud8421/rbt
b536d5f9cde56d0be380f065ad6a2ad54f5341c7
[ "MIT" ]
null
null
null
defmodule Rbt.Instrumentation.Consumer do @type exchange_name :: String.t() @type queue_name :: String.t() @type event :: term() @type meta :: term() @type error :: term() @type duration_in_us :: integer() @callback setup(exchange_name, queue_name) :: :ok @callback teardown(exchange_name, queue_name) :...
41.705882
86
0.724965
5aa001b996ab422146a426d855088bb6bef78414
3,141
ex
Elixir
lib/redix/socket_owner.ex
fenollp/redix
0cb98cab41171c22e23abb603988aff57b349c97
[ "MIT" ]
null
null
null
lib/redix/socket_owner.ex
fenollp/redix
0cb98cab41171c22e23abb603988aff57b349c97
[ "MIT" ]
null
null
null
lib/redix/socket_owner.ex
fenollp/redix
0cb98cab41171c22e23abb603988aff57b349c97
[ "MIT" ]
null
null
null
defmodule Redix.SocketOwner do @moduledoc false use GenServer alias Redix.{Protocol, Utils} defstruct [ :conn, :opts, :transport, :socket, :queue_table, :continuation ] def start_link(conn, opts, queue_table) do GenServer.start_link(__MODULE__, {conn, opts, queue_table}, []) ...
25.330645
87
0.643107
5aa0074fd0f75029efb132ab446f187c4309bc6b
2,312
ex
Elixir
lib/auto_api/states/keyfob_position_state.ex
nonninz/auto-api-elixir
53e11542043285e94bbb5a0a3b8ffff0b1b47167
[ "MIT" ]
null
null
null
lib/auto_api/states/keyfob_position_state.ex
nonninz/auto-api-elixir
53e11542043285e94bbb5a0a3b8ffff0b1b47167
[ "MIT" ]
null
null
null
lib/auto_api/states/keyfob_position_state.ex
nonninz/auto-api-elixir
53e11542043285e94bbb5a0a3b8ffff0b1b47167
[ "MIT" ]
null
null
null
# AutoAPI # The MIT License # # Copyright (c) 2018- High-Mobility GmbH (https://high-mobility.com) # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without lim...
34.507463
104
0.717993
5aa00d3254d88efe212e671764d364c46c3e0439
10,769
exs
Elixir
test/eds_remote/spy/guard_test.exs
the-mediocre-dev/elixir-dev-server
1ea20f92e1344f7f9fe3f9ac4fee91fb7371d136
[ "MIT" ]
null
null
null
test/eds_remote/spy/guard_test.exs
the-mediocre-dev/elixir-dev-server
1ea20f92e1344f7f9fe3f9ac4fee91fb7371d136
[ "MIT" ]
null
null
null
test/eds_remote/spy/guard_test.exs
the-mediocre-dev/elixir-dev-server
1ea20f92e1344f7f9fe3f9ac4fee91fb7371d136
[ "MIT" ]
null
null
null
defmodule EDS.Remote.Spy.Interpreter.GuardTests do use EDS.DataCase, async: false alias EDS.Remote.Spy.Server alias EDS.Fixtures.Guards setup_all do start_supervised(Server) Server.load(Guards) :ok end test "addition" do assert Guards.addition(0, 0, 0) assert Guards.addition(0, 1, 1) ...
24.643021
54
0.632185
5aa02a9113184e69d97f8c04c7ff01e02e661570
1,197
exs
Elixir
test/stripe/core_resources/token_test.exs
Rutaba/stripity_stripe
12c525301c781f9c8c7e578cc0d933f5d35183d5
[ "BSD-3-Clause" ]
555
2016-11-29T05:02:27.000Z
2022-03-30T00:47:59.000Z
test/stripe/core_resources/token_test.exs
Rutaba/stripity_stripe
12c525301c781f9c8c7e578cc0d933f5d35183d5
[ "BSD-3-Clause" ]
532
2016-11-28T18:22:25.000Z
2022-03-30T17:04:32.000Z
test/stripe/core_resources/token_test.exs
Rutaba/stripity_stripe
12c525301c781f9c8c7e578cc0d933f5d35183d5
[ "BSD-3-Clause" ]
296
2016-12-05T14:04:09.000Z
2022-03-28T20:39:37.000Z
defmodule Stripe.TokenTest do use Stripe.StripeCase, async: true @card %{ number: "4242424242424242", exp_month: 11, exp_year: 2024, cvc: "123" } @bank_account %{ country: "US", currency: "usd", account_holder_name: "Ella Garcia", account_holder_type: "individual", routing_...
24.9375
89
0.641604
5aa081c4525274518dc422af897cdbdc45463597
2,438
ex
Elixir
lib/vutuv_web/controllers/authorize.ex
vutuv/vutuv
174706cdaf28cef24e1cc06bec0884c25f2412be
[ "MIT" ]
309
2016-05-03T17:16:23.000Z
2022-03-01T09:30:22.000Z
lib/vutuv_web/controllers/authorize.ex
vutuv/vutuv
174706cdaf28cef24e1cc06bec0884c25f2412be
[ "MIT" ]
662
2016-04-27T07:45:18.000Z
2022-01-05T07:29:19.000Z
lib/vutuv_web/controllers/authorize.ex
vutuv/vutuv
174706cdaf28cef24e1cc06bec0884c25f2412be
[ "MIT" ]
40
2016-04-27T07:46:22.000Z
2021-12-31T05:54:34.000Z
defmodule VutuvWeb.Authorize do @moduledoc """ Functions to help with authorization. See the [Authorization wiki page](https://github.com/riverrun/phauxth/wiki/Authorization) for more information and examples about authorization. """ import Plug.Conn import Phoenix.Controller import VutuvWeb.Gettext ...
29.373494
98
0.683757
5aa084f6d122effc5c4935c226f2483a74c647b0
1,477
ex
Elixir
lib/chat_api_web/views/customer_view.ex
sbacarob/papercups
1a04e9d3a2833b379a3aaaabaae960247c081542
[ "MIT" ]
null
null
null
lib/chat_api_web/views/customer_view.ex
sbacarob/papercups
1a04e9d3a2833b379a3aaaabaae960247c081542
[ "MIT" ]
null
null
null
lib/chat_api_web/views/customer_view.ex
sbacarob/papercups
1a04e9d3a2833b379a3aaaabaae960247c081542
[ "MIT" ]
null
null
null
defmodule ChatApiWeb.CustomerView do use ChatApiWeb, :view alias ChatApiWeb.CustomerView def render("index.json", %{customers: customers}) do %{data: render_many(customers, CustomerView, "customer.json")} end def render("show.json", %{customer: customer}) do %{data: render_one(customer, CustomerView...
27.867925
66
0.666215
5aa08e2cefb19d91732a41d0d4cdc15f683ce6df
3,410
ex
Elixir
lib/livebook_web/live/session_live/section_component.ex
edmundobiglia/livebook
d3b4a8a9e6d2f34d2c309e6cc59774dcf12ba0af
[ "Apache-2.0" ]
null
null
null
lib/livebook_web/live/session_live/section_component.ex
edmundobiglia/livebook
d3b4a8a9e6d2f34d2c309e6cc59774dcf12ba0af
[ "Apache-2.0" ]
null
null
null
lib/livebook_web/live/session_live/section_component.ex
edmundobiglia/livebook
d3b4a8a9e6d2f34d2c309e6cc59774dcf12ba0af
[ "Apache-2.0" ]
null
null
null
defmodule LivebookWeb.SessionLive.SectionComponent do use LivebookWeb, :live_component def render(assigns) do ~L""" <div id="<%= @section_view.html_id %>" data-element="section" data-section-id="<%= @section_view.id %>"> <div class="flex space-x-4 items-center" data-element="section...
44.285714
159
0.551026
5aa0b7d9bbae76eefdb8f540943ea2028ebce292
896
ex
Elixir
clients/admin/lib/google_api/admin/directory_v1/metadata.ex
myskoach/elixir-google-api
4f8cbc2fc38f70ffc120fd7ec48e27e46807b563
[ "Apache-2.0" ]
null
null
null
clients/admin/lib/google_api/admin/directory_v1/metadata.ex
myskoach/elixir-google-api
4f8cbc2fc38f70ffc120fd7ec48e27e46807b563
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/admin/lib/google_api/admin/directory_v1/metadata.ex
myskoach/elixir-google-api
4f8cbc2fc38f70ffc120fd7ec48e27e46807b563
[ "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.185185
74
0.762277
5aa0bac3c94fefe57244bc8066090db385a331b4
3,502
exs
Elixir
package.exs
soundrop/hackney
e18bdd2f68840c8fddd77875b06079087290e5cc
[ "Apache-2.0" ]
1
2015-09-11T10:51:14.000Z
2015-09-11T10:51:14.000Z
package.exs
soundrop/hackney
e18bdd2f68840c8fddd77875b06079087290e5cc
[ "Apache-2.0" ]
null
null
null
package.exs
soundrop/hackney
e18bdd2f68840c8fddd77875b06079087290e5cc
[ "Apache-2.0" ]
null
null
null
Expm.Package.new(name: "hackney", description: "Simple HTTP client in Erlang", version: "0.12.1", keywords: ["http","client","binary"], dependencies: ["idna", "hackney_lib"], licenses: [[name: "Apache License, Version 2.0", file: "LICENSE"]], contribut...
52.268657
84
0.286693
5aa0c809d17ba3b11043bf4b05deae4303676fd3
348
ex
Elixir
lib/fake_server/specs/path_spec.ex
JacksonIsaac/fake_server
a646287b252d1ce4da4b61eac50e897a6423b7ed
[ "Apache-2.0" ]
null
null
null
lib/fake_server/specs/path_spec.ex
JacksonIsaac/fake_server
a646287b252d1ce4da4b61eac50e897a6423b7ed
[ "Apache-2.0" ]
null
null
null
lib/fake_server/specs/path_spec.ex
JacksonIsaac/fake_server
a646287b252d1ce4da4b61eac50e897a6423b7ed
[ "Apache-2.0" ]
null
null
null
defmodule FakeServer.Specs.PathSpec do @moduledoc false defstruct [hits: 0, response: nil] alias FakeServer.Specs.PathSpec def new do %PathSpec{} end def response(%PathSpec{} = spec) do spec.response end def configure_response(%PathSpec{} = spec, new_response) do %PathSpec{spec | respon...
17.4
61
0.704023
5aa0cd81e0003c3f90930540700fed5263fc7d80
1,133
exs
Elixir
config/config.exs
meast-ev/identicon
1729a6752ccba4ab1833dce066154c0e68fc7c23
[ "MIT" ]
null
null
null
config/config.exs
meast-ev/identicon
1729a6752ccba4ab1833dce066154c0e68fc7c23
[ "MIT" ]
null
null
null
config/config.exs
meast-ev/identicon
1729a6752ccba4ab1833dce066154c0e68fc7c23
[ "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.548387
73
0.751986
5aa0dd6c2cfd8221a493ca1cf6d21e77b5c67251
1,865
exs
Elixir
test/lib/mediaconvert_test.exs
Geenee/ex_aws_mediaconvert
0860d36f8c1e055b0f96a84a4295fae86228c69c
[ "MIT", "Unlicense" ]
null
null
null
test/lib/mediaconvert_test.exs
Geenee/ex_aws_mediaconvert
0860d36f8c1e055b0f96a84a4295fae86228c69c
[ "MIT", "Unlicense" ]
null
null
null
test/lib/mediaconvert_test.exs
Geenee/ex_aws_mediaconvert
0860d36f8c1e055b0f96a84a4295fae86228c69c
[ "MIT", "Unlicense" ]
null
null
null
defmodule ExAws.MediaConvertTest do use ExUnit.Case, async: true alias ExAws.Operation.JSON alias ExAws.MediaConvert test "Create job" do assert %JSON{ before_request: nil, data: "{\"id1\":\"value1\"}", headers: [{"content-type", "application/x-amz-json-1.1"}], ...
29.603175
76
0.49008
5aa0e4204c3cd0936b363537e5391ee1588a8933
1,462
exs
Elixir
test/airbax/client_test.exs
adjust/airbax
d4e0bef99bdfbe28279db72154b7499ef670001d
[ "ISC" ]
4
2016-07-20T20:30:53.000Z
2016-09-06T06:40:11.000Z
test/airbax/client_test.exs
adjust/airbax
d4e0bef99bdfbe28279db72154b7499ef670001d
[ "ISC" ]
2
2017-09-03T18:29:49.000Z
2018-03-21T14:32:52.000Z
test/airbax/client_test.exs
adjust/airbax
d4e0bef99bdfbe28279db72154b7499ef670001d
[ "ISC" ]
6
2016-09-06T06:40:14.000Z
2021-11-01T09:51:19.000Z
defmodule Airbax.ClientTest do use ExUnit.AirbaxCase alias Airbax.Client setup_all do {:ok, pid} = start_airbax_client("project_key", "project_id", "test") on_exit(fn -> ensure_airbax_client_down(pid) end) end setup do {:ok, _} = RollbarAPI.start(self()) on_exit(&RollbarAPI.stop/0...
26.581818
94
0.588919
5aa0e9cbded8ab5757f137af5ea07640f7c748b8
3,992
ex
Elixir
lib/2021/4.ex
ballpointcarrot/advent-of-code-2021
a1adde8a13069efedfc7c190d6c71b06c2d15173
[ "MIT" ]
null
null
null
lib/2021/4.ex
ballpointcarrot/advent-of-code-2021
a1adde8a13069efedfc7c190d6c71b06c2d15173
[ "MIT" ]
null
null
null
lib/2021/4.ex
ballpointcarrot/advent-of-code-2021
a1adde8a13069efedfc7c190d6c71b06c2d15173
[ "MIT" ]
null
null
null
import AOC aoc 2021, 4 do def construct_board(line, board) do board_line = line |> String.trim() |> String.split(~r/\s+/) |> Enum.map(&{&1, false}) if length(board) == 0 do board_line else board ++ board_line end end def build_boards(board_lines) do Enum....
23.075145
94
0.584669
5aa1082748e6b51f3e61860c9ab84bda0e03788e
586
exs
Elixir
test/models/currency_balance_test.exs
lexa62/hb
c6b2169ad3e5af546da3f7ad0d499f5d5d29d044
[ "MIT" ]
null
null
null
test/models/currency_balance_test.exs
lexa62/hb
c6b2169ad3e5af546da3f7ad0d499f5d5d29d044
[ "MIT" ]
null
null
null
test/models/currency_balance_test.exs
lexa62/hb
c6b2169ad3e5af546da3f7ad0d499f5d5d29d044
[ "MIT" ]
null
null
null
defmodule Hb.CurrencyBalanceTest do use Hb.ModelCase alias Hb.CurrencyBalance @valid_attrs %{current_amount: 42, initial_amount: 42, account_id: 1, currency_id: 1} @invalid_attrs %{current_amount: nil, initial_amount: nil, account_id: nil, currency_id: nil} test "changeset with valid attributes" do cha...
30.842105
95
0.762799
5aa11f95a18fbe074e27fa1c49d84403200de11c
212
exs
Elixir
priv/repo/migrations/20190801180553_create_messages.exs
abhishekkr/sample_phoenix_server
4956d059f329c07fa1492feb1c280711105bc7d9
[ "MIT" ]
null
null
null
priv/repo/migrations/20190801180553_create_messages.exs
abhishekkr/sample_phoenix_server
4956d059f329c07fa1492feb1c280711105bc7d9
[ "MIT" ]
null
null
null
priv/repo/migrations/20190801180553_create_messages.exs
abhishekkr/sample_phoenix_server
4956d059f329c07fa1492feb1c280711105bc7d9
[ "MIT" ]
null
null
null
defmodule HelloPhoenix.Repo.Migrations.CreateMessages do use Ecto.Migration def change do create table(:messages) do add :from, :string add :msg, :text timestamps() end end end
15.142857
56
0.665094
5aa13d23ad8636b6c65a7501e2983f4987f6664c
147
exs
Elixir
Task_1/functional/test/functional_test.exs
andfoy/cpd-exercises
f36ac16c74bb980d7edd6aaf5661a6d4d4b09489
[ "MIT" ]
null
null
null
Task_1/functional/test/functional_test.exs
andfoy/cpd-exercises
f36ac16c74bb980d7edd6aaf5661a6d4d4b09489
[ "MIT" ]
null
null
null
Task_1/functional/test/functional_test.exs
andfoy/cpd-exercises
f36ac16c74bb980d7edd6aaf5661a6d4d4b09489
[ "MIT" ]
null
null
null
defmodule FunctionalTest do use ExUnit.Case doctest Functional test "greets the world" do assert Functional.hello() == :world end end
16.333333
39
0.727891
5aa1bb1f93159e4c56f7b28df4c0c95e9f92ff69
1,199
ex
Elixir
elixir/lib/homework_web/schemas/users_schema.ex
adaugherty42/web-homework
c3a729db5ff554abe9db515ae225c0f2afec6e48
[ "MIT" ]
null
null
null
elixir/lib/homework_web/schemas/users_schema.ex
adaugherty42/web-homework
c3a729db5ff554abe9db515ae225c0f2afec6e48
[ "MIT" ]
null
null
null
elixir/lib/homework_web/schemas/users_schema.ex
adaugherty42/web-homework
c3a729db5ff554abe9db515ae225c0f2afec6e48
[ "MIT" ]
1
2021-12-27T15:33:07.000Z
2021-12-27T15:33:07.000Z
defmodule HomeworkWeb.Schemas.UsersSchema do @moduledoc """ Defines the graphql schema for user. """ use Absinthe.Schema.Notation alias HomeworkWeb.Resolvers.UsersResolver object :user do field(:id, non_null(:id)) field(:dob, :string) field(:first_name, :string) field(:last_name, :string) ...
23.509804
44
0.658882
5aa1c4d414aa1b0de1d2dc78ac5c6826adcdfaa5
17,404
ex
Elixir
clients/compute/lib/google_api/compute/v1/api/routes.ex
renovate-bot/elixir-google-api
1da34cd39b670c99f067011e05ab90af93fef1f6
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/compute/lib/google_api/compute/v1/api/routes.ex
swansoffiee/elixir-google-api
9ea6d39f273fb430634788c258b3189d3613dde0
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/compute/lib/google_api/compute/v1/api/routes.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...
58.797297
1,450
0.649104
5aa1cd7895f4aeb2ebe4890eba3f93d7256ace10
6,432
exs
Elixir
test/elixir/test/view_pagination_test.exs
RGS-IT-Development/couchdb
e25ae03a75eafe5ecb286399da5186f2fac25835
[ "Apache-2.0" ]
1
2020-09-11T19:23:27.000Z
2020-09-11T19:23:27.000Z
test/elixir/test/view_pagination_test.exs
RGS-IT-Development/couchdb
e25ae03a75eafe5ecb286399da5186f2fac25835
[ "Apache-2.0" ]
1
2018-02-08T23:08:43.000Z
2018-02-08T23:08:43.000Z
test/elixir/test/view_pagination_test.exs
RGS-IT-Development/couchdb
e25ae03a75eafe5ecb286399da5186f2fac25835
[ "Apache-2.0" ]
null
null
null
defmodule ViewPaginationTest do use CouchTestCase @moduletag :view_pagination @moduletag kind: :single_node @moduledoc """ Integration tests for pagination. This is a port of the view_pagination.js test suite. """ @tag :with_db test "basic view pagination", context do db_name = context[:db_name...
33.675393
77
0.590174
5aa216b815a288d9c12e56e2c9679abea30a070f
67
ex
Elixir
web/views/page_view.ex
jtwebman/jtwebman_com
fedd924c1c9fb3677ad091124431e322937fb073
[ "MIT" ]
null
null
null
web/views/page_view.ex
jtwebman/jtwebman_com
fedd924c1c9fb3677ad091124431e322937fb073
[ "MIT" ]
null
null
null
web/views/page_view.ex
jtwebman/jtwebman_com
fedd924c1c9fb3677ad091124431e322937fb073
[ "MIT" ]
null
null
null
defmodule JtwebmanCom.PageView do use JtwebmanCom.Web, :view end
16.75
33
0.80597
5aa265455ddd8e007d654376c98db347794715f0
2,317
exs
Elixir
test/level_test.exs
gausby/level
d15c2bec9fc12e064c84a750ec8d0debfd605fa4
[ "MIT", "Unlicense" ]
5
2015-05-09T17:29:58.000Z
2021-03-15T22:19:34.000Z
test/level_test.exs
gausby/level
d15c2bec9fc12e064c84a750ec8d0debfd605fa4
[ "MIT", "Unlicense" ]
2
2015-05-11T10:22:17.000Z
2015-05-11T10:22:53.000Z
test/level_test.exs
gausby/level
d15c2bec9fc12e064c84a750ec8d0debfd605fa4
[ "MIT", "Unlicense" ]
null
null
null
defmodule LevelTest do use ExUnit.Case setup do File.rm_rf "/tmp/level/test" File.mkdir "/tmp/level/" db = Level.create!("/tmp/level/test") {:ok, db: db} end test "create", %{db: db} do assert db == %Level{name: "/tmp/level/test", status: :open, ref: ""} end test "close", %{db: db} do a...
28.604938
97
0.603798
5aa26d97a3a8d1ba145492475ed54b5af6df12a2
925
ex
Elixir
lib/blue_book/application.ex
herman-rogers/blue_book
84c1d173c4e953e68f5a8df1dd1afce0ab57d876
[ "MIT" ]
null
null
null
lib/blue_book/application.ex
herman-rogers/blue_book
84c1d173c4e953e68f5a8df1dd1afce0ab57d876
[ "MIT" ]
null
null
null
lib/blue_book/application.ex
herman-rogers/blue_book
84c1d173c4e953e68f5a8df1dd1afce0ab57d876
[ "MIT" ]
null
null
null
defmodule BlueBook.Application do @moduledoc false use Application @impl true def start(_type, _args) do children = [ # Start the Ecto repository BlueBook.Repo, # Start the Telemetry supervisor BlueBookWeb.Telemetry, # Start the PubSub system {Phoenix.PubSub, name: Blue...
26.428571
62
0.700541
5aa280e6226da88bed072d430b21c7d42b23dccb
845
ex
Elixir
lib/exco/resolver.ex
mikunn/exco
18bfeb1750fd0e78c77718a87b567465a8f01bfc
[ "Apache-2.0" ]
null
null
null
lib/exco/resolver.ex
mikunn/exco
18bfeb1750fd0e78c77718a87b567465a8f01bfc
[ "Apache-2.0" ]
null
null
null
lib/exco/resolver.ex
mikunn/exco
18bfeb1750fd0e78c77718a87b567465a8f01bfc
[ "Apache-2.0" ]
null
null
null
defmodule Exco.Resolver do @moduledoc false def get_result(result, _enumerable, :map, link) do result |> Enum.map(&get_map_value(&1, link)) end def get_result(result, _enumerable, :each, _link) do result |> Enum.each(fn value -> value end) end def get_result(result, enumerable, :filter, _...
22.236842
59
0.624852
5aa29ebde541630801cb4a8545eae91febd6e4ca
3,675
exs
Elixir
test/faktory_worker/error_formatter_test.exs
vukanac/faktory_worker
d3905f4c63988f1374d18e747fdd364a0d1ddbf2
[ "MIT" ]
17
2019-04-14T21:35:33.000Z
2019-10-26T10:36:35.000Z
test/faktory_worker/error_formatter_test.exs
vukanac/faktory_worker
d3905f4c63988f1374d18e747fdd364a0d1ddbf2
[ "MIT" ]
75
2019-03-12T12:09:34.000Z
2020-01-04T14:19:11.000Z
test/faktory_worker/error_formatter_test.exs
vukanac/faktory_worker
d3905f4c63988f1374d18e747fdd364a0d1ddbf2
[ "MIT" ]
4
2020-10-26T17:21:59.000Z
2021-04-17T18:05:10.000Z
defmodule FaktoryWorker.ErrorFormatterTest do use ExUnit.Case alias FaktoryWorker.ErrorFormatter alias FaktoryWorker.ErrorFormatter.FormattedError describe "format_error/2" do @stacktrace [ {TestApp.Worker, :raise_error, 1, [file: 'lib/worker.ex', line: 50]}, {TestApp.Worker, :do_work, 1, [fil...
33.108108
120
0.635918
5aa2bca504a590b4770ad57d0f9fe1f1124c52ea
550
ex
Elixir
lib/hui/query/standard.ex
bluedevelz/hui
e5f24a30ade504db3adbffab1aeec90d490ac6a0
[ "Apache-2.0" ]
13
2018-09-06T12:42:18.000Z
2021-06-15T15:13:13.000Z
lib/hui/query/standard.ex
bluedevelz/hui
e5f24a30ade504db3adbffab1aeec90d490ac6a0
[ "Apache-2.0" ]
27
2019-08-22T07:02:27.000Z
2022-02-05T05:27:30.000Z
lib/hui/query/standard.ex
bluedevelz/hui
e5f24a30ade504db3adbffab1aeec90d490ac6a0
[ "Apache-2.0" ]
7
2019-08-22T06:29:05.000Z
2021-10-16T15:39:21.000Z
defmodule Hui.Query.Standard do @moduledoc """ Struct for the default standard query parser also known as the `lucene` parser. See: [Standard Query parser](http://lucene.apache.org/solr/guide/the-standard-query-parser.html). """ @enforce_keys [:q] defstruct [:q, :"q.op", :df, :sow] @typedoc """ Struc...
25
99
0.641818
5aa2cb8996a20e22904870c217433a5464ac1e5c
5,280
ex
Elixir
lib/mandrill/messages.ex
guilleiguaran/mandrill-elixir
fc5935c4b89b7252e765d1ab690ceccdb4655916
[ "MIT" ]
null
null
null
lib/mandrill/messages.ex
guilleiguaran/mandrill-elixir
fc5935c4b89b7252e765d1ab690ceccdb4655916
[ "MIT" ]
null
null
null
lib/mandrill/messages.ex
guilleiguaran/mandrill-elixir
fc5935c4b89b7252e765d1ab690ceccdb4655916
[ "MIT" ]
null
null
null
defmodule Mandrill.Messages do @moduledoc """ Messages calls for Mandrill. """ @doc """ Send a new transactional message through Mandrill """ def send(params) when is_list(params) do Mandrill.request("messages/send", Enum.concat([key: Mandrill.key], params)) end def send(message, async, ip_poo...
26.532663
123
0.658144
5aa33a7180b75fee843806331ba79f5704a9f0de
234
ex
Elixir
test/support/google_api_mock.ex
wvffle/analytics
2c0fd55bc67f74af1fe1e2641678d44e9fee61d5
[ "MIT" ]
984
2019-09-02T11:36:41.000Z
2020-06-08T06:25:48.000Z
test/support/google_api_mock.ex
wvffle/analytics
2c0fd55bc67f74af1fe1e2641678d44e9fee61d5
[ "MIT" ]
24
2019-09-10T09:53:17.000Z
2020-06-08T07:35:26.000Z
test/support/google_api_mock.ex
wvffle/analytics
2c0fd55bc67f74af1fe1e2641678d44e9fee61d5
[ "MIT" ]
51
2019-09-03T10:48:10.000Z
2020-06-07T00:23:34.000Z
defmodule Plausible.Google.Api.Mock do def fetch_stats(_auth, _query, _limit) do {:ok, [ %{"name" => "simple web analytics", "count" => 6}, %{"name" => "open-source analytics", "count" => 2} ]} end end
23.4
57
0.559829
5aa3823acceb354328eff8afd9b2eab43dd11a7d
133
exs
Elixir
functions/ex-fun5.exs
leogtzr/elixir_code_snippets
5c8c921dc165de8fc29bb14046386efa81ce7542
[ "MIT" ]
null
null
null
functions/ex-fun5.exs
leogtzr/elixir_code_snippets
5c8c921dc165de8fc29bb14046386efa81ce7542
[ "MIT" ]
null
null
null
functions/ex-fun5.exs
leogtzr/elixir_code_snippets
5c8c921dc165de8fc29bb14046386efa81ce7542
[ "MIT" ]
null
null
null
iex(5)> Enum.map 1..4, &(&1 + 2) [3, 4, 5, 6] iex(6)> Enum.each 1..4, &(IO.inspect &1) 1 2 3 4 :ok
13.3
65
0.368421
5aa3a6b4b68660f5e8bacec3303b84dd0cbc8462
8,967
ex
Elixir
clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/settings.ex
kyleVsteger/elixir-google-api
3a0dd498af066a4361b5b0fd66ffc04a57539488
[ "Apache-2.0" ]
null
null
null
clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/settings.ex
kyleVsteger/elixir-google-api
3a0dd498af066a4361b5b0fd66ffc04a57539488
[ "Apache-2.0" ]
null
null
null
clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/settings.ex
kyleVsteger/elixir-google-api
3a0dd498af066a4361b5b0fd66ffc04a57539488
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
72.902439
381
0.725103
5aa3aea8241deb0e3ddd22d45ce76fdec24b00bf
3,060
exs
Elixir
apps/socket/test/grapevine_socket/handler/games_test.exs
oestrich/grapevine
7fb745a3a6e4eb68bd761baa190b2df32fa1f73d
[ "MIT" ]
107
2018-10-05T18:20:32.000Z
2022-02-28T04:02:50.000Z
apps/socket/test/grapevine_socket/handler/games_test.exs
oestrich/grapevine
7fb745a3a6e4eb68bd761baa190b2df32fa1f73d
[ "MIT" ]
33
2018-10-05T14:11:18.000Z
2022-02-10T22:19:18.000Z
apps/socket/test/grapevine_socket/handler/games_test.exs
oestrich/grapevine
7fb745a3a6e4eb68bd761baa190b2df32fa1f73d
[ "MIT" ]
18
2019-02-03T03:08:20.000Z
2021-12-28T04:29:36.000Z
defmodule GrapevineSocket.Handler.GamesTest do use GrapevineSocket.DataCase alias GrapevineSocket.Presence alias GrapevineSocket.Web.Router alias GrapevineSocket.Web.State describe "games" do setup [:basic_setup, :status_updates] test "fetch all updates", %{state: state, game: game} do state ...
30.909091
98
0.587255
5aa3b4817b3e12581f928c04454e77b4b0dd60d6
1,173
ex
Elixir
lib/kiq/script.ex
locaweb/kiq
fa561b9a1a2361e99b4af5eafc4d3c7ece576ea9
[ "MIT" ]
59
2018-07-13T23:17:00.000Z
2021-12-21T07:03:03.000Z
lib/kiq/script.ex
locaweb/kiq
fa561b9a1a2361e99b4af5eafc4d3c7ece576ea9
[ "MIT" ]
5
2019-08-05T13:14:42.000Z
2022-03-09T12:38:46.000Z
lib/kiq/script.ex
locaweb/kiq
fa561b9a1a2361e99b4af5eafc4d3c7ece576ea9
[ "MIT" ]
6
2018-09-24T13:16:21.000Z
2021-05-03T08:26:52.000Z
defmodule Kiq.Script do @moduledoc false defmodule BootTask do @moduledoc false use Task alias Kiq.{Pool, Script} @spec start_link(config: struct()) :: {:ok, pid()} def start_link(config: config) do Task.start_link(__MODULE__, :run, [config]) end @spec start_link(struct()) :: ...
18.328125
64
0.57289
5aa3c916989ab897c76ac9b0e94016e0f99e964c
626
ex
Elixir
core/config/encryption_key.ex
IvanPereyra-23/PaaS
0179c7b57645473308b0a295a70b6284ed220fbf
[ "Apache-2.0" ]
1
2020-08-27T18:43:11.000Z
2020-08-27T18:43:11.000Z
core/config/encryption_key.ex
IvanPereyra-23/PaaS
0179c7b57645473308b0a295a70b6284ed220fbf
[ "Apache-2.0" ]
null
null
null
core/config/encryption_key.ex
IvanPereyra-23/PaaS
0179c7b57645473308b0a295a70b6284ed220fbf
[ "Apache-2.0" ]
1
2020-08-27T18:43:21.000Z
2020-08-27T18:43:21.000Z
# Copyright(c) 2015-2020 ACCESS CO., LTD. All rights reserved. use Croma defmodule AntikytheraCore.Config.EncryptionKey do @moduledoc """ Utility functions to handle secret key which is used to encrypt/decrypt config files. """ alias AntikytheraCore.Path, as: CorePath @type t :: binary @table_name Antik...
24.076923
87
0.710863
5aa4049d144eb44bcd062b7819e3a7192e06ea6f
679
ex
Elixir
lib/journalx.ex
eraserewind/journalx
701598bbdfebcffd2e6715d9447362d6d785b446
[ "MIT" ]
2
2015-10-17T11:26:57.000Z
2018-03-07T01:21:11.000Z
lib/journalx.ex
eraserewind/journalx
701598bbdfebcffd2e6715d9447362d6d785b446
[ "MIT" ]
null
null
null
lib/journalx.ex
eraserewind/journalx
701598bbdfebcffd2e6715d9447362d6d785b446
[ "MIT" ]
null
null
null
defmodule Journalx do use Application @moduledoc """ # journalx ## Events * `{:log, priority :: 0..7, message :: String.t}` """ def start(_type, _args) do import Supervisor.Spec, warn: false children = [ worker(GenEvent, [[name: Journalx.GenEvent]], []), worker(Journalx.Listener,...
19.970588
63
0.655376
5aa443fe07dcf814346b881765ff40705dfcb1c2
2,497
ex
Elixir
backend/test/support/data_case.ex
szakhlypa/edgehog
b1193c26f403132dead6964c1c052e5dcae533af
[ "Apache-2.0" ]
14
2021-12-02T16:31:16.000Z
2022-03-18T17:40:44.000Z
backend/test/support/data_case.ex
szakhlypa/edgehog
b1193c26f403132dead6964c1c052e5dcae533af
[ "Apache-2.0" ]
77
2021-11-03T15:14:41.000Z
2022-03-30T14:13:32.000Z
backend/test/support/data_case.ex
szakhlypa/edgehog
b1193c26f403132dead6964c1c052e5dcae533af
[ "Apache-2.0" ]
7
2021-11-03T10:58:37.000Z
2022-02-28T14:00:03.000Z
# # This file is part of Edgehog. # # Copyright 2021 SECO Mind Srl # # 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 app...
30.45122
97
0.706448
5aa46647cabdeb8906cd87e895daebf550e317b2
279
exs
Elixir
phoenix_example/config/test.exs
Opaala/phoenix_wings
4cd41769f2450b526bb926ddc6a2531c57ad1e1b
[ "MIT" ]
1
2019-08-31T22:26:40.000Z
2019-08-31T22:26:40.000Z
phoenix_example/config/test.exs
Opaala/phoenix_wings
4cd41769f2450b526bb926ddc6a2531c57ad1e1b
[ "MIT" ]
2
2020-07-19T14:16:53.000Z
2021-03-10T07:44:45.000Z
phoenix_example/config/test.exs
Opaala/phoenix_wings
4cd41769f2450b526bb926ddc6a2531c57ad1e1b
[ "MIT" ]
1
2019-06-26T08:01:08.000Z
2019-06-26T08:01:08.000Z
use Mix.Config # We don't run a server during test. If one is required, # you can enable the server option below. config :channel_server, ChannelServerWeb.Endpoint, http: [port: 4001], server: false # Print only warnings and errors during test config :logger, level: :warn
25.363636
56
0.749104
5aa46ffba146aa6ce1053accd96a6679b5d09bf5
1,427
ex
Elixir
lib/blue.ex
vic/blue
77332061ea4214f1736139d666ebf252cd66a94c
[ "Apache-2.0" ]
6
2018-03-01T06:38:40.000Z
2018-12-21T17:53:45.000Z
lib/blue.ex
vic/blue
77332061ea4214f1736139d666ebf252cd66a94c
[ "Apache-2.0" ]
null
null
null
lib/blue.ex
vic/blue
77332061ea4214f1736139d666ebf252cd66a94c
[ "Apache-2.0" ]
null
null
null
defmodule Blue do @moduledoc File.read!(Path.expand("../README.md", __DIR__)) @doc false defmacro __using__(do: code) do quote do import Blue unquote(Macro.prewalk(code, &prewalk/1)) end end defmacro blue(code) when is_list(code), do: Macro.prewalk({:_, [], code}, &prewalk/1) defmacro b...
33.97619
93
0.575333
5aa474eebe2e4f04cbafe8d17bec046371ddbb43
77
exs
Elixir
test/test_helper.exs
sprql/awesome_elixir
ae1a372bf3060142a546aaf6cb28ffda491d9fa0
[ "MIT" ]
1
2017-04-13T05:37:08.000Z
2017-04-13T05:37:08.000Z
test/test_helper.exs
sprql/awesome_elixir
ae1a372bf3060142a546aaf6cb28ffda491d9fa0
[ "MIT" ]
null
null
null
test/test_helper.exs
sprql/awesome_elixir
ae1a372bf3060142a546aaf6cb28ffda491d9fa0
[ "MIT" ]
null
null
null
ExUnit.start() Ecto.Adapters.SQL.Sandbox.mode(AwesomeElixir.Repo, :manual)
15.4
59
0.779221
5aa4864c033d20c142bfee7d32429ae96b2a040e
1,207
ex
Elixir
lib/nys_etl/release.ex
RatioPBC/epi-viaduct-nys
99fb637785ea207aee5449fa01fa59dd18ec8bf2
[ "MIT" ]
2
2021-06-22T21:01:49.000Z
2021-11-04T18:36:48.000Z
lib/nys_etl/release.ex
RatioPBC/epi-viaduct-nys
99fb637785ea207aee5449fa01fa59dd18ec8bf2
[ "MIT" ]
null
null
null
lib/nys_etl/release.ex
RatioPBC/epi-viaduct-nys
99fb637785ea207aee5449fa01fa59dd18ec8bf2
[ "MIT" ]
null
null
null
defmodule NYSETL.Release do @moduledoc """ Functions that can be called in an Elixir release to setup dependencies where Mix is not present. """ require Logger @app :nys_etl def migrate do ensure_started() for repo <- repos() do {:ok, _, _} = Ecto.Migrator.with_repo(repo, &Ecto.Migrator.run...
24.632653
99
0.678542
5aa49e92179af8bdd58882bf7d3f6f3acffb102a
945
exs
Elixir
test/lib/code_corps/policy/github_app_installation_test.exs
fikape/code-corps-api
c21674b0b2a19fa26945c94268db8894420ca181
[ "MIT" ]
275
2015-06-23T00:20:51.000Z
2021-08-19T16:17:37.000Z
test/lib/code_corps/policy/github_app_installation_test.exs
fikape/code-corps-api
c21674b0b2a19fa26945c94268db8894420ca181
[ "MIT" ]
1,304
2015-06-26T02:11:54.000Z
2019-12-12T21:08:00.000Z
test/lib/code_corps/policy/github_app_installation_test.exs
fikape/code-corps-api
c21674b0b2a19fa26945c94268db8894420ca181
[ "MIT" ]
140
2016-01-01T18:19:47.000Z
2020-11-22T06:24:47.000Z
defmodule CodeCorps.Policy.GithubAppInstallationTest do use CodeCorps.PolicyCase import CodeCorps.Policy.GithubAppInstallation, only: [create?: 2] import CodeCorps.GithubAppInstallation, only: [create_changeset: 2] alias CodeCorps.GithubAppInstallation describe "create?/2" do test "returns true when us...
33.75
107
0.715344
5aa4d7f260b731d53fcd4f61ea8d62b06bb1d2ab
963
exs
Elixir
mix.exs
TattdCodeMonkey/mon_handler
d43e1f4351850b38671fa5706a160b0003f7f102
[ "MIT" ]
2
2015-10-02T11:13:00.000Z
2015-12-14T23:16:59.000Z
mix.exs
TattdCodeMonkey/mon_handler
d43e1f4351850b38671fa5706a160b0003f7f102
[ "MIT" ]
null
null
null
mix.exs
TattdCodeMonkey/mon_handler
d43e1f4351850b38671fa5706a160b0003f7f102
[ "MIT" ]
null
null
null
defmodule MonHandler.Mixfile do use Mix.Project def project do [app: :mon_handler, version: "1.0.3", elixir: "~> 1.0", deps: deps(), description: description(), package: package()] end def application do [applications: [:logger]] end defp deps do [ {:mock, "~> 0...
21.4
81
0.600208
5aa50b4a310ff8d51d42bf6b215826c1af709d89
102
exs
Elixir
notebooks/modulo_4/parte_2/ecto_example/.formatter.exs
igorgbr/curso-alquimia-stone
c5e40b0efcb7eef282f0f13a421671580c2762c1
[ "MIT" ]
14
2021-11-19T00:22:09.000Z
2022-01-29T03:58:09.000Z
notebooks/modulo_4/parte_2/ecto_example/.formatter.exs
igorgbr/curso-alquimia-stone
c5e40b0efcb7eef282f0f13a421671580c2762c1
[ "MIT" ]
27
2020-06-11T08:58:48.000Z
2022-02-28T23:31:13.000Z
notebooks/modulo_4/parte_2/ecto_example/.formatter.exs
igorgbr/curso-alquimia-stone
c5e40b0efcb7eef282f0f13a421671580c2762c1
[ "MIT" ]
1
2022-03-01T00:49:50.000Z
2022-03-01T00:49:50.000Z
# Used by "mix format" [ inputs: ["{mix,.formatter}.exs", "{config,lib,test,priv}/**/*.{ex,exs}"] ]
20.4
74
0.568627
5aa518a84b0ee05a2d3044f02a4e7cdc9fcd3da1
939
ex
Elixir
apps/forklift/lib/forklift/data_reader_helper.ex
msomji/smartcitiesdata
fc96abc1ef1306f7af6bd42bbcb4ed041a6d922c
[ "Apache-2.0" ]
1
2021-04-05T19:17:18.000Z
2021-04-05T19:17:18.000Z
apps/forklift/lib/forklift/data_reader_helper.ex
msomji/smartcitiesdata
fc96abc1ef1306f7af6bd42bbcb4ed041a6d922c
[ "Apache-2.0" ]
11
2020-01-07T15:43:42.000Z
2020-12-22T15:23:25.000Z
apps/forklift/lib/forklift/data_reader_helper.ex
jakeprem/smartcitiesdata
da309ac0d2261527278951cbae88604455207589
[ "Apache-2.0" ]
null
null
null
defmodule Forklift.DataReaderHelper do @moduledoc """ Simple wrapper around the reader init and terminate behaviors """ @reader Application.get_env(:forklift, :data_reader) def init(dataset) do dataset |> reader_args() |> @reader.init() end def terminate(dataset) do dataset |> reader...
28.454545
92
0.705005
5aa53d1c1e3df3c824f8bc2cf50ac05ca35d8592
1,825
ex
Elixir
clients/android_management/lib/google_api/android_management/v1/model/list_devices_response.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
1
2018-12-03T23:43:10.000Z
2018-12-03T23:43:10.000Z
clients/android_management/lib/google_api/android_management/v1/model/list_devices_response.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
clients/android_management/lib/google_api/android_management/v1/model/list_devices_response.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the &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 ...
36.5
131
0.740822
5aa5479535654709757a8d43512f41bb668f8a4b
2,529
ex
Elixir
lib/elixir/lib/module/types/helpers.ex
QuentinDanjou/elixir
09d59d4d19cb11b96bdc5786c70f6a0ca48050c8
[ "Apache-2.0" ]
1
2019-10-11T01:36:26.000Z
2019-10-11T01:36:26.000Z
lib/elixir/lib/module/types/helpers.ex
hiro-riveros/elixir
c6da1cfaa83e420726be25617440fc09f118de52
[ "Apache-2.0" ]
null
null
null
lib/elixir/lib/module/types/helpers.ex
hiro-riveros/elixir
c6da1cfaa83e420726be25617440fc09f118de52
[ "Apache-2.0" ]
null
null
null
defmodule Module.Types.Helpers do @moduledoc false @doc """ Push expression to stack. The expression stack is used to give the context where a type variable was refined when show a type conflict error. """ def push_expr_stack(expr, stack) do %{stack | expr_stack: [expr | stack.expr_stack]} end ...
25.806122
85
0.596283
5aa5506ed51074959cd9bb5556c0393feec2be7a
4,216
ex
Elixir
lib/forthvm/words/flow.ex
alexiob/forthvm
4dc75790ef98e248ac48a6f4116ad7673cee6287
[ "MIT" ]
8
2021-11-19T14:02:01.000Z
2022-03-09T06:29:33.000Z
lib/forthvm/words/flow.ex
alexiob/forthvm
4dc75790ef98e248ac48a6f4116ad7673cee6287
[ "MIT" ]
null
null
null
lib/forthvm/words/flow.ex
alexiob/forthvm
4dc75790ef98e248ac48a6f4116ad7673cee6287
[ "MIT" ]
1
2021-11-26T18:51:31.000Z
2021-11-26T18:51:31.000Z
defmodule ForthVM.Words.Flow do @moduledoc """ Flow words """ import ForthVM.Utils alias ForthVM.Process # --------------------------------------------- # Flow control: start end DO do_stack LOOP # --------------------------------------------- @doc """ do: ( end_count count -- ) start loop decla...
25.707317
119
0.565939
5aa5695cd859e33d4df2b051c49c1985adb6bebb
1,022
ex
Elixir
lib/new_relic/util/http.ex
trustvox/elixir_agent
391c83c82336c96fd78a03c8ee316d48de2eea4f
[ "Apache-2.0" ]
null
null
null
lib/new_relic/util/http.ex
trustvox/elixir_agent
391c83c82336c96fd78a03c8ee316d48de2eea4f
[ "Apache-2.0" ]
null
null
null
lib/new_relic/util/http.ex
trustvox/elixir_agent
391c83c82336c96fd78a03c8ee316d48de2eea4f
[ "Apache-2.0" ]
null
null
null
defmodule NewRelic.Util.HTTP do @moduledoc false @gzip {'content-encoding', 'gzip'} def post(url, body, headers) when is_binary(body) do headers = [@gzip | Enum.map(headers, fn {k, v} -> {'#{k}', '#{v}'} end)] request = {'#{url}', headers, 'application/json', :zlib.gzip(body)} %{host: host} = URI.pa...
30.058824
88
0.61546
5aa576d37048b05f75f0a3788494a1d55d7cb1b7
630
ex
Elixir
lib/voomex_web/controllers/sms_controller.ex
caktus/voomex
d9df2ef20498f0eb01e69da834bb41459784357c
[ "BSD-2-Clause" ]
null
null
null
lib/voomex_web/controllers/sms_controller.ex
caktus/voomex
d9df2ef20498f0eb01e69da834bb41459784357c
[ "BSD-2-Clause" ]
18
2019-11-08T19:42:18.000Z
2020-06-09T17:00:16.000Z
lib/voomex_web/controllers/sms_controller.ex
caktus/voomex
d9df2ef20498f0eb01e69da834bb41459784357c
[ "BSD-2-Clause" ]
null
null
null
defmodule VoomexWeb.SMSController do use VoomexWeb, :controller require Logger alias Voomex.SMPP def send(conn, %{ "to_addr" => dest_addr, "content" => content, "mno" => mno, "from_addr" => source_addr }) when is_list(dest_addr) do Logger.info("Message received b...
24.230769
94
0.630159
5aa5a0ac6ec90fc235424b6ad4c97dd500beeca1
1,051
exs
Elixir
test/farmbot_ext/api/eager_loader_test.exs
bahanni/custom_rpi4
ddefa85d30bacaae40151a63a9a0ebbf4ad30ed5
[ "MIT" ]
null
null
null
test/farmbot_ext/api/eager_loader_test.exs
bahanni/custom_rpi4
ddefa85d30bacaae40151a63a9a0ebbf4ad30ed5
[ "MIT" ]
null
null
null
test/farmbot_ext/api/eager_loader_test.exs
bahanni/custom_rpi4
ddefa85d30bacaae40151a63a9a0ebbf4ad30ed5
[ "MIT" ]
null
null
null
defmodule FarmbotOS.EagerLoaderTest do use ExUnit.Case use Mimic setup :verify_on_exit! alias FarmbotOS.EagerLoader alias FarmbotOS.Asset.Sync alias FarmbotOS.API.SyncGroup defmodule Fake do def __schema__(:source), do: "tools" def preload(_, _), do: {:ok, %{id: 123}} end test "child_spec/1...
23.355556
75
0.659372
5aa5b637755918bf6c496575e1d574d389f4a951
801
ex
Elixir
Microsoft.Azure.Management.Network/lib/microsoft/azure/management/network/model/virtual_network_gateway_connection_list_entity.ex
chgeuer/ex_microsoft_azure_management
99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603
[ "Apache-2.0" ]
4
2018-09-29T03:43:15.000Z
2021-04-01T18:30:46.000Z
Microsoft.Azure.Management.Network/lib/microsoft/azure/management/network/model/virtual_network_gateway_connection_list_entity.ex
chgeuer/ex_microsoft_azure_management
99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603
[ "Apache-2.0" ]
null
null
null
Microsoft.Azure.Management.Network/lib/microsoft/azure/management/network/model/virtual_network_gateway_connection_list_entity.ex
chgeuer/ex_microsoft_azure_management
99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603
[ "Apache-2.0" ]
null
null
null
# NOTE: This class is auto generated by the swagger code generator program. # https://github.com/swagger-api/swagger-codegen.git # Do not edit the class manually. defmodule Microsoft.Azure.Management.Network.Model.VirtualNetworkGatewayConnectionListEntity do @moduledoc """ A common class for general resource infor...
23.558824
114
0.675406
5aa5b8601c6e119a86bf44407c655f3e1ab9c1e5
5,282
exs
Elixir
test/joken_test.exs
blagh/joken
eafc407603cb28f12b1a95b11a57da89903bb3b6
[ "Apache-2.0" ]
null
null
null
test/joken_test.exs
blagh/joken
eafc407603cb28f12b1a95b11a57da89903bb3b6
[ "Apache-2.0" ]
null
null
null
test/joken_test.exs
blagh/joken
eafc407603cb28f12b1a95b11a57da89903bb3b6
[ "Apache-2.0" ]
null
null
null
defmodule JokenTest do use ExUnit.Case, async: true import ExUnit.CaptureLog import Joken.Config, only: [add_claim: 4, add_claim: 5, default_claims: 1] alias Joken.CurrentTime.Mock setup do {:ok, _pid} = start_supervised(Mock) :ok end defmodule EmptyToken do use Joken.Config def token_c...
30.888889
118
0.602613
5aa5bc52588bf990aa3e6b87309228ea1ccbaad9
1,839
ex
Elixir
server/potter_sea/lib/potter_sea_web.ex
monarch619/PotterSea
937fc62fcb0b4e2e071718353bc6ba95bc310aa1
[ "Apache-2.0" ]
44
2021-12-12T19:28:26.000Z
2022-03-05T09:48:00.000Z
server/potter_sea/lib/potter_sea_web.ex
RoniAndarsyah/PotterSea
40560be7842aa5e791a7b8f0e98b507f4e84a443
[ "Apache-2.0" ]
1
2021-12-14T12:59:16.000Z
2022-02-18T09:31:59.000Z
server/potter_sea/lib/potter_sea_web.ex
RoniAndarsyah/PotterSea
40560be7842aa5e791a7b8f0e98b507f4e84a443
[ "Apache-2.0" ]
7
2021-12-12T23:09:04.000Z
2022-01-02T08:34:45.000Z
defmodule PotterSeaWeb 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 PotterSeaWeb, :controller use PotterSeaWeb, :view The definitions below will be executed for every view, contro...
23.278481
76
0.692224
5aa5be39736d506f6f12902d5aa38e808ce8b982
1,825
exs
Elixir
apps/service_aggregate/test/aggregate/event/handler_test.exs
jdenen/hindsight
ef69b4c1a74c94729dd838a9a0849a48c9b6e04c
[ "Apache-2.0" ]
12
2020-01-27T19:43:02.000Z
2021-07-28T19:46:29.000Z
apps/service_aggregate/test/aggregate/event/handler_test.exs
jdenen/hindsight
ef69b4c1a74c94729dd838a9a0849a48c9b6e04c
[ "Apache-2.0" ]
81
2020-01-28T18:07:23.000Z
2021-11-22T02:12:13.000Z
apps/service_aggregate/test/aggregate/event/handler_test.exs
jdenen/hindsight
ef69b4c1a74c94729dd838a9a0849a48c9b6e04c
[ "Apache-2.0" ]
10
2020-02-13T21:24:09.000Z
2020-05-21T18:39:35.000Z
defmodule Aggregate.Event.HandlerTest do use ExUnit.Case use Placebo @instance Aggregate.Application.instance() import Events, only: [extract_start: 0, aggregate_update: 0] import Definition, only: [identifier: 1] alias Aggregate.ViewState setup do allow Aggregate.Feed.Supervisor.start_child(any())...
26.838235
75
0.610959
5aa5d3b97517c78918ded64549197e6696199e00
4,538
ex
Elixir
clients/source_repo/lib/google_api/source_repo/v1/model/status.ex
linjunpop/elixir-google-api
444cb2b2fb02726894535461a474beddd8b86db4
[ "Apache-2.0" ]
null
null
null
clients/source_repo/lib/google_api/source_repo/v1/model/status.ex
linjunpop/elixir-google-api
444cb2b2fb02726894535461a474beddd8b86db4
[ "Apache-2.0" ]
null
null
null
clients/source_repo/lib/google_api/source_repo/v1/model/status.ex
linjunpop/elixir-google-api
444cb2b2fb02726894535461a474beddd8b86db4
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the &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...
84.037037
2,549
0.755399
5aa5dcd4814b9af960adfff1a1ea2ce34bac8ed8
1,530
ex
Elixir
clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v2beta1/model/accept_proposal_request.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
1
2018-12-03T23:43:10.000Z
2018-12-03T23:43:10.000Z
clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v2beta1/model/accept_proposal_request.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v2beta1/model/accept_proposal_request.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 &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 ...
32.553191
120
0.753595
5aa633408b681432c94af113bb346780210e2b62
1,387
exs
Elixir
test/ex_integrate_test.exs
samrose/ExIntegrate
5effbfe7e00ee06410218ed01fea2e3b7d4ebe62
[ "Apache-2.0" ]
3
2022-01-14T20:04:07.000Z
2022-01-26T03:47:49.000Z
test/ex_integrate_test.exs
samrose/ExIntegrate
5effbfe7e00ee06410218ed01fea2e3b7d4ebe62
[ "Apache-2.0" ]
30
2021-11-01T23:29:32.000Z
2022-02-28T21:35:03.000Z
test/ex_integrate_test.exs
samrose/ExIntegrate
5effbfe7e00ee06410218ed01fea2e3b7d4ebe62
[ "Apache-2.0" ]
null
null
null
defmodule ExIntegrateTest do use ExUnit.Case, async: true alias ExIntegrate.Core.Run @config_fixture_path "test/fixtures/ei.test.json" @moduletag timeout: 10_000 describe "running the steps from a config file" do test "success: runs pipeline steps in order and returns success tuple" do assert {:o...
23.508475
77
0.5292
5aa639aecd558128f1f3c017c8cf36258dfab30c
2,237
exs
Elixir
test/dark_ecto/types/boolean_int_test.exs
dark-elixir/dark_ecto
006a52e6d1a807e8f3c0f00a29780dc2967e57d9
[ "Apache-2.0" ]
null
null
null
test/dark_ecto/types/boolean_int_test.exs
dark-elixir/dark_ecto
006a52e6d1a807e8f3c0f00a29780dc2967e57d9
[ "Apache-2.0" ]
null
null
null
test/dark_ecto/types/boolean_int_test.exs
dark-elixir/dark_ecto
006a52e6d1a807e8f3c0f00a29780dc2967e57d9
[ "Apache-2.0" ]
null
null
null
defmodule DarkEcto.Types.BooleanIntTest do @moduledoc """ Test for `DarkEcto.Types.BooleanIntTest`. """ use ExUnit.Case, async: true alias DarkEcto.Types.BooleanInt describe ".type/0" do test "it returns the ecto :type" do assert BooleanInt.type() == :integer end end describe ".embed_a...
23.797872
81
0.483684
5aa655ac3027d3b867191183500627a07d7ab951
2,378
exs
Elixir
test/backends/consul_backend_test.exs
postmates/consul_mut_ex
895a3774f749ec65f4a9d72bbb2a48f43e8e2492
[ "BSD-3-Clause" ]
10
2017-03-20T21:52:07.000Z
2019-11-22T14:45:44.000Z
test/backends/consul_backend_test.exs
postmates/consul_mut_ex
895a3774f749ec65f4a9d72bbb2a48f43e8e2492
[ "BSD-3-Clause" ]
3
2017-03-20T21:20:52.000Z
2017-03-20T22:49:17.000Z
test/backends/consul_backend_test.exs
postmates/consul_mut_ex
895a3774f749ec65f4a9d72bbb2a48f43e8e2492
[ "BSD-3-Clause" ]
1
2017-04-24T14:50:45.000Z
2017-04-24T14:50:45.000Z
defmodule ConsulMutEx.Backends.ConsulBackendTest do use ExUnit.Case alias ConsulMutEx.Backends.ConsulBackend defp new_key() do :rand.uniform(9999999) |> to_string() end setup_all do :ok = ConsulBackend.init() end describe "acquire_lock/1" do test "successfully gets lock" do assert {:...
30.101266
75
0.666106
5aa6aafa0ca855ea2afa895f242d71661bfc54ae
160
ex
Elixir
lib/hexa_web/live/components/map_component.ex
libreearth/hexa
81938c3a5abc710eb16055d73c43cbf60dbf487e
[ "MIT" ]
null
null
null
lib/hexa_web/live/components/map_component.ex
libreearth/hexa
81938c3a5abc710eb16055d73c43cbf60dbf487e
[ "MIT" ]
null
null
null
lib/hexa_web/live/components/map_component.ex
libreearth/hexa
81938c3a5abc710eb16055d73c43cbf60dbf487e
[ "MIT" ]
null
null
null
defmodule HexaWeb.MapComponent do use HexaWeb, :live_component def render(assigns) do ~H""" <div id="map" phx-hook="Map"></div> """ end end
17.777778
41
0.625
5aa6c52d0cf4e64ba6d979674daaba36bc8da902
1,468
ex
Elixir
lib/mix/lib/mix/tasks/clean.ex
NJichev/elixir
aef81d1aadfd9522ab4efb6d04103a73584ac9a1
[ "Apache-2.0" ]
2
2018-11-15T06:38:14.000Z
2018-11-17T18:03:14.000Z
lib/mix/lib/mix/tasks/clean.ex
NJichev/elixir
aef81d1aadfd9522ab4efb6d04103a73584ac9a1
[ "Apache-2.0" ]
null
null
null
lib/mix/lib/mix/tasks/clean.ex
NJichev/elixir
aef81d1aadfd9522ab4efb6d04103a73584ac9a1
[ "Apache-2.0" ]
null
null
null
defmodule Mix.Tasks.Clean do use Mix.Task @shortdoc "Deletes generated application files" @recursive true @moduledoc """ Deletes generated application files. This command deletes all build artifacts for the current project. Dependencies' sources and build files are cleaned only if the `--deps` option...
25.310345
83
0.627384
5aa6cfbd52cbce037df3e53524f630e6c7d81b46
5,023
ex
Elixir
clients/policy_troubleshooter/lib/google_api/policy_troubleshooter/v1/model/google_cloud_policytroubleshooter_v1_binding_explanation.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/policy_troubleshooter/lib/google_api/policy_troubleshooter/v1/model/google_cloud_policytroubleshooter_v1_binding_explanation.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/policy_troubleshooter/lib/google_api/policy_troubleshooter/v1/model/google_cloud_policytroubleshooter_v1_binding_explanation.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...
62.012346
1,041
0.748158
5aa6f22b66510207a5a2ce032a72e547367e13f8
2,121
ex
Elixir
clients/access_approval/lib/google_api/access_approval/v1/model/enrolled_service.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/access_approval/lib/google_api/access_approval/v1/model/enrolled_service.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/access_approval/lib/google_api/access_approval/v1/model/enrolled_service.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...
33.666667
136
0.701556
5aa6fea4de982baad1e870ecc573ba4cc6884113
1,826
ex
Elixir
arena/phoenix_elixir/test/support/model_case.ex
Jesterovskiy/api-fight
2f23859eb7d0aa77e93bfe33aa9d05dd3c875854
[ "MIT" ]
null
null
null
arena/phoenix_elixir/test/support/model_case.ex
Jesterovskiy/api-fight
2f23859eb7d0aa77e93bfe33aa9d05dd3c875854
[ "MIT" ]
null
null
null
arena/phoenix_elixir/test/support/model_case.ex
Jesterovskiy/api-fight
2f23859eb7d0aa77e93bfe33aa9d05dd3c875854
[ "MIT" ]
null
null
null
defmodule PhoenixElixir.ModelCase do @moduledoc """ This module defines the test case to be used by model tests. You may define functions here to be used as helpers in your model tests. See `errors_on/2`'s definition as reference. Finally, if the test case interacts with the database, it cannot be async...
27.666667
84
0.691128
5aa731636e5c355ab0360c3e5b8646c9a0ee1461
906
ex
Elixir
clients/remote_build_execution/lib/google_api/remote_build_execution/v2/metadata.ex
mcrumm/elixir-google-api
544f22797cec52b3a23dfb6e39117f0018448610
[ "Apache-2.0" ]
null
null
null
clients/remote_build_execution/lib/google_api/remote_build_execution/v2/metadata.ex
mcrumm/elixir-google-api
544f22797cec52b3a23dfb6e39117f0018448610
[ "Apache-2.0" ]
null
null
null
clients/remote_build_execution/lib/google_api/remote_build_execution/v2/metadata.ex
mcrumm/elixir-google-api
544f22797cec52b3a23dfb6e39117f0018448610
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
33.555556
74
0.764901
5aa73af04fe5ee24e20ab39252b9f554fe53778c
6,244
ex
Elixir
clients/dfa_reporting/lib/google_api/dfa_reporting/v34/api/operating_system_versions.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/dfa_reporting/lib/google_api/dfa_reporting/v34/api/operating_system_versions.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/dfa_reporting/lib/google_api/dfa_reporting/v34/api/operating_system_versions.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
38.782609
187
0.638373
5aa74b4ed1099040768cb7d2d03da5c2006e5c15
6,102
exs
Elixir
lib/elixir/test/elixir/module_test.exs
QuinnWilton/elixir
e42e3e55ca1561fe56b58d6f51c7b0faae6a7a1e
[ "Apache-2.0" ]
null
null
null
lib/elixir/test/elixir/module_test.exs
QuinnWilton/elixir
e42e3e55ca1561fe56b58d6f51c7b0faae6a7a1e
[ "Apache-2.0" ]
null
null
null
lib/elixir/test/elixir/module_test.exs
QuinnWilton/elixir
e42e3e55ca1561fe56b58d6f51c7b0faae6a7a1e
[ "Apache-2.0" ]
null
null
null
Code.require_file "test_helper.exs", __DIR__ defmodule ModuleTest.ToBeUsed do def value, do: 1 defmacro __using__(_) do target = __CALLER__.module Module.put_attribute(target, :has_callback, false) Module.put_attribute(target, :before_compile, __MODULE__) Module.put_attribute(target, :after_compil...
26.301724
106
0.669453
5aa74c136eaa28e193ad9c6eb2edcff2dcd597ad
5,109
exs
Elixir
apps/fz_http/test/fz_http_web/live/setting_live/default_test.exs
Fanget-Nicolas/firezone
988a5d34b6cdbf146a52edd4e3e503a29e8e0b93
[ "Apache-2.0" ]
1
2022-02-02T07:56:41.000Z
2022-02-02T07:56:41.000Z
apps/fz_http/test/fz_http_web/live/setting_live/default_test.exs
alsarmi/firezone
1aa1afd2876393a303c0ee76fbcdd1038f6a7cbf
[ "Apache-2.0" ]
null
null
null
apps/fz_http/test/fz_http_web/live/setting_live/default_test.exs
alsarmi/firezone
1aa1afd2876393a303c0ee76fbcdd1038f6a7cbf
[ "Apache-2.0" ]
null
null
null
defmodule FzHttpWeb.SettingLive.DefaultTest do use FzHttpWeb.ConnCase, async: true alias FzHttp.Settings describe "authenticated/settings default" do @valid_allowed_ips %{ "setting" => %{"value" => "1.1.1.1"} } @valid_dns %{ "setting" => %{"value" => "1.1.1.1"} } @valid_endpoint ...
28.702247
165
0.572911
5aa763e534de15e427432f9ef66d5957231d41fb
12,616
ex
Elixir
lib/elixir/lib/inspect.ex
bruce/elixir
d77ccf941541959079e5f677f8717da24b486fac
[ "Apache-2.0" ]
1
2017-09-09T20:59:04.000Z
2017-09-09T20:59:04.000Z
lib/elixir/lib/inspect.ex
bruce/elixir
d77ccf941541959079e5f677f8717da24b486fac
[ "Apache-2.0" ]
null
null
null
lib/elixir/lib/inspect.ex
bruce/elixir
d77ccf941541959079e5f677f8717da24b486fac
[ "Apache-2.0" ]
null
null
null
import Kernel, except: [inspect: 1] import Inspect.Algebra defrecord Inspect.Opts, raw: false, limit: 50, pretty: false, width: 80 defprotocol Inspect do @moduledoc """ The `Inspect` protocol is responsible for converting any Elixir data structure into an algebra document. This document is then formatted, eit...
26.448637
99
0.614775
5aa77c1752b8ea789bcc0981dc38e71ec0b2f0dc
703
exs
Elixir
test/langue/gettext/formatter_test.exs
samuelnygaard/accent
db753badab1d885397b48a42ac3fb43024345467
[ "BSD-3-Clause" ]
1
2020-07-01T16:08:34.000Z
2020-07-01T16:08:34.000Z
test/langue/gettext/formatter_test.exs
samuelnygaard/accent
db753badab1d885397b48a42ac3fb43024345467
[ "BSD-3-Clause" ]
2
2021-09-28T05:37:00.000Z
2022-02-26T10:10:15.000Z
test/langue/gettext/formatter_test.exs
samuelnygaard/accent
db753badab1d885397b48a42ac3fb43024345467
[ "BSD-3-Clause" ]
null
null
null
defmodule LangueTest.Formatter.Gettext do use ExUnit.Case, async: true Code.require_file("expectation_test.exs", __DIR__) alias Langue.Formatter.Gettext @tests [ Simple, DotKeys, Pluralization, PlaceholderValues ] for test <- @tests, module = Module.concat(LangueTest.Formatter.Gettext.Ex...
28.12
114
0.74111
5aa7834b7f34f4cb956f05baaf6de1b725aa656b
7,309
exs
Elixir
test/json_schema_test_suite/draft6/format_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/format_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/format_test.exs
kianmeng/xema
a990d64fb4bcd708249514daa55426ee003da25d
[ "MIT" ]
6
2019-05-31T05:41:47.000Z
2021-12-14T08:09:36.000Z
defmodule JsonSchemaTestSuite.Draft6.FormatTest do use ExUnit.Case import Xema, only: [valid?: 2] describe ~s|validation of e-mail addresses| do setup do %{ schema: Xema.from_json_schema( %{"format" => "email"}, draft: "draft6", atom: :force ...
21.560472
51
0.546586
5aa7b05d97f2f8374e0db51f49c8736fe4169158
89
ex
Elixir
lib/reddit_wrapper.ex
barons03/reddit_wrapper
a696a6f99ce0f0c6a64dcd86b76fa3d68efee6df
[ "MIT" ]
1
2018-11-26T21:40:40.000Z
2018-11-26T21:40:40.000Z
lib/reddit_wrapper.ex
barons03/reddit_wrapper
a696a6f99ce0f0c6a64dcd86b76fa3d68efee6df
[ "MIT" ]
null
null
null
lib/reddit_wrapper.ex
barons03/reddit_wrapper
a696a6f99ce0f0c6a64dcd86b76fa3d68efee6df
[ "MIT" ]
null
null
null
defmodule RedditWrapper do @moduledoc """ Documentation for RedditWrapper. """ end
14.833333
34
0.730337
5aa7bb85429e948a76cc9a58cd088edf7a064b18
929
ex
Elixir
exercises/06-nodes-distribution/04-automatic-clustering-with-libcluster/da_libcluster_test/lib/da_libcluster_test/my_building.ex
DennisWinnepenninckx/distributed-applications
06743e4e2a09dc52ff52be831e486bb073916173
[ "BSD-3-Clause" ]
1
2021-09-22T09:52:11.000Z
2021-09-22T09:52:11.000Z
exercises/06-nodes-distribution/04-automatic-clustering-with-libcluster/da_libcluster_test/lib/da_libcluster_test/my_building.ex
DennisWinnepenninckx/distributed-applications
06743e4e2a09dc52ff52be831e486bb073916173
[ "BSD-3-Clause" ]
22
2019-06-19T18:58:13.000Z
2020-03-16T14:43:06.000Z
exercises/06-nodes-distribution/04-automatic-clustering-with-libcluster/da_libcluster_test/lib/da_libcluster_test/my_building.ex
DennisWinnepenninckx/distributed-applications
06743e4e2a09dc52ff52be831e486bb073916173
[ "BSD-3-Clause" ]
32
2019-09-19T03:25:11.000Z
2020-10-06T15:01:47.000Z
defmodule DaLibclusterTest.MyBuilding do use GenServer @d210 %{capacity: 50, projector: true} @d220 %{capacity: 50, projector: true} @d224 %{capacity: 6, projector: false} @default_rooms [d210: @d210, d220: @d220, d224: @d224] defstruct rooms: @default_rooms def start_link(name, args \\ []), do: GenSe...
34.407407
90
0.692142
5aa7cd2e39a285d1c179dcd6c56c72b00448d413
1,513
ex
Elixir
lib/robolia/games/tic_tac_toes/match.ex
Robolia/robolia
cbd3ea24db460f213a3411f474d765536ae7871c
[ "MIT" ]
1
2020-01-19T04:27:46.000Z
2020-01-19T04:27:46.000Z
lib/robolia/games/tic_tac_toes/match.ex
Robolia/robolia
cbd3ea24db460f213a3411f474d765536ae7871c
[ "MIT" ]
null
null
null
lib/robolia/games/tic_tac_toes/match.ex
Robolia/robolia
cbd3ea24db460f213a3411f474d765536ae7871c
[ "MIT" ]
1
2018-05-13T14:06:46.000Z
2018-05-13T14:06:46.000Z
defmodule Robolia.Games.TicTacToes.Match do alias Phoenix.PubSub alias TicTacToeBoard alias Robolia.Games.TicTacToes alias Robolia.GameError alias Robolia.Repo alias Robolia.PlayerContainer.TicTacToe, as: BotRunner def play(match) do case TicTacToes.match_finished?(match) do {true, _} -> ...
26.54386
104
0.631196
5aa7ecb8a29f9224595c918fd5e4bc62231b4c00
5,023
ex
Elixir
lib/paddle/product/coupon.ex
MMore/paddlex
f84bb525446a13fe5d8af20975276eb712149744
[ "MIT" ]
7
2021-09-27T10:10:30.000Z
2022-03-31T09:44:35.000Z
lib/paddle/product/coupon.ex
MMore/paddlex
f84bb525446a13fe5d8af20975276eb712149744
[ "MIT" ]
2
2021-09-29T16:57:41.000Z
2022-01-25T12:43:26.000Z
lib/paddle/product/coupon.ex
MMore/paddlex
f84bb525446a13fe5d8af20975276eb712149744
[ "MIT" ]
2
2021-09-27T10:12:40.000Z
2022-01-24T21:28:20.000Z
defmodule Paddle.Coupon do @moduledoc """ Coupon """ import Paddle.Helpers @type t :: %__MODULE__{ coupon: String.t(), description: String.t(), discount_type: String.t(), discount_amount: number(), discount_currency: String.t() | nil, allowed_uses:...
29.547059
90
0.54131
5aa8206048e52bde3ad2fd72723eed98fc42a64e
1,876
ex
Elixir
apps/snitch_core/priv/repo/demo/stock_locations.ex
saurabharch/avia
74a82a95cf8bfe8143d1fce8136a3bb7ffc9467c
[ "MIT" ]
1
2018-12-01T18:13:55.000Z
2018-12-01T18:13:55.000Z
apps/snitch_core/priv/repo/demo/stock_locations.ex
saurabharch/avia
74a82a95cf8bfe8143d1fce8136a3bb7ffc9467c
[ "MIT" ]
null
null
null
apps/snitch_core/priv/repo/demo/stock_locations.ex
saurabharch/avia
74a82a95cf8bfe8143d1fce8136a3bb7ffc9467c
[ "MIT" ]
null
null
null
defmodule Snitch.Demo.StockLocation do alias Snitch.Core.Tools.MultiTenancy.Repo alias NimbleCSV.RFC4180, as: CSV alias Snitch.Data.Schema.{StockLocation, State} @base_path Application.app_dir(:snitch_core, "priv/repo/demo/demo_data") def create_stock_locations do Repo.delete_all(StockLoc...
34.740741
170
0.649254
5aa8330bd8826b8a95e76f0abee1f280bf299b46
55
exs
Elixir
iex.exs
unindented/dotfiles
484c56db91de423029c59907a644ed4862201767
[ "MIT" ]
3
2016-06-07T05:34:04.000Z
2019-06-10T09:34:41.000Z
iex.exs
unindented/dotfiles
484c56db91de423029c59907a644ed4862201767
[ "MIT" ]
null
null
null
iex.exs
unindented/dotfiles
484c56db91de423029c59907a644ed4862201767
[ "MIT" ]
2
2015-10-22T16:28:14.000Z
2019-02-19T23:58:26.000Z
IEx.configure( default_prompt: "\u03BB(%counter)>" )
13.75
37
0.690909
5aa838c00c0882ac009d29a817dca633c9acc9a1
1,498
ex
Elixir
lib/mongooseice/udp/receiver.ex
glassechidna/MongooseICE
c2ea99f47460fd7293b51eaa72fbce122a60affe
[ "Apache-2.0" ]
90
2017-09-26T12:20:06.000Z
2022-01-30T17:58:11.000Z
lib/mongooseice/udp/receiver.ex
glassechidna/MongooseICE
c2ea99f47460fd7293b51eaa72fbce122a60affe
[ "Apache-2.0" ]
39
2017-01-20T08:54:13.000Z
2017-09-13T11:30:14.000Z
lib/mongooseice/udp/receiver.ex
glassechidna/MongooseICE
c2ea99f47460fd7293b51eaa72fbce122a60affe
[ "Apache-2.0" ]
13
2018-03-29T07:03:25.000Z
2022-03-06T10:21:45.000Z
defmodule MongooseICE.UDP.Receiver do @moduledoc false # STUN UDP receiver process use GenServer @type state :: %{dispatcher: atom, worker_sup: atom, socket: MongooseICE.UDP.socket} def start_link(base_name, opts) do name = MongooseICE.UDP.receiver_name(base_name) ...
30.571429
100
0.65287
5aa84455bf6a779b8c61ab2b11ad1b25edd2f6b4
5,624
exs
Elixir
test/credo/code/scope_test.exs
isaacsanders/credo
5623570bb2e3944345f1bf11819ca613533b5e10
[ "MIT" ]
null
null
null
test/credo/code/scope_test.exs
isaacsanders/credo
5623570bb2e3944345f1bf11819ca613533b5e10
[ "MIT" ]
null
null
null
test/credo/code/scope_test.exs
isaacsanders/credo
5623570bb2e3944345f1bf11819ca613533b5e10
[ "MIT" ]
1
2020-06-30T16:32:44.000Z
2020-06-30T16:32:44.000Z
defmodule Credo.Code.ScopeTest do use Credo.TestHelper alias Credo.Code.Scope test "it should report the correct scope" do {:ok, ast} = """ defmodule Credo.Sample do @test_attribute :foo def foobar(parameter1, parameter2) do String.split(parameter1) + parameter2 ...
30.4
93
0.590683
5aa84543dd2c5d228351396a617842eb4b17c0d2
1,492
ex
Elixir
lib/scoop_web/router.ex
scoopteam/backend
c9efa958f5f536870abd722e2c55a1fb907acff2
[ "MIT" ]
null
null
null
lib/scoop_web/router.ex
scoopteam/backend
c9efa958f5f536870abd722e2c55a1fb907acff2
[ "MIT" ]
null
null
null
lib/scoop_web/router.ex
scoopteam/backend
c9efa958f5f536870abd722e2c55a1fb907acff2
[ "MIT" ]
null
null
null
defmodule ScoopWeb.Router do use ScoopWeb, :router import Plug.BasicAuth import Phoenix.LiveDashboard.Router pipeline :public_api do plug :accepts, ["json"] plug ScoopWeb.Plugs.SetCurrentUser end pipeline :private_api do plug :accepts, ["json"] plug ScoopWeb.Plugs.SetCurrentUser, auth_requ...
23.3125
76
0.655496
5aa868660b72798d733bcd612762e1df35a50ed9
93,663
ex
Elixir
lib/elixir/lib/enum.ex
Stratus3D/elixir
cef19c9365a93f96436229c244c32977462fb0c7
[ "Apache-2.0" ]
1
2018-02-24T19:48:35.000Z
2018-02-24T19:48:35.000Z
lib/elixir/lib/enum.ex
Stratus3D/elixir
cef19c9365a93f96436229c244c32977462fb0c7
[ "Apache-2.0" ]
null
null
null
lib/elixir/lib/enum.ex
Stratus3D/elixir
cef19c9365a93f96436229c244c32977462fb0c7
[ "Apache-2.0" ]
null
null
null
defprotocol Enumerable do @moduledoc """ Enumerable protocol used by `Enum` and `Stream` modules. When you invoke a function in the `Enum` module, the first argument is usually a collection that must implement this protocol. For example, the expression: Enum.map([1, 2, 3], &(&1 * 2)) invokes `Enume...
27.719148
105
0.616455
5aa87f510869570537d5371f1501a8bd72491bdd
4,903
exs
Elixir
apps/site/test/site_web/router_test.exs
noisecapella/dotcom
d5ef869412102d2230fac3dcc216f01a29726227
[ "MIT" ]
42
2019-05-29T16:05:30.000Z
2021-08-09T16:03:37.000Z
apps/site/test/site_web/router_test.exs
noisecapella/dotcom
d5ef869412102d2230fac3dcc216f01a29726227
[ "MIT" ]
872
2019-05-29T17:55:50.000Z
2022-03-30T09:28:43.000Z
apps/site/test/site_web/router_test.exs
noisecapella/dotcom
d5ef869412102d2230fac3dcc216f01a29726227
[ "MIT" ]
12
2019-07-01T18:33:21.000Z
2022-03-10T02:13:57.000Z
defmodule Phoenix.Router.RoutingTest do use SiteWeb.ConnCase, async: true @canonical_host "www.mbta.com" describe "routes" do test "Proposed Sales Locations page", %{conn: conn} do conn = get(conn, "/fare-transformation/proposed-sales-locations") assert html_response(conn, 200) end end ...
32.686667
95
0.625739
5aa89b0e2169f67a8c1c4d39e24b422b37492a82
114
exs
Elixir
priv/template/config/test.exs
Havvy/phoenix
37c4053bba75beca5dabf7c1b8cb71cd7e371674
[ "MIT" ]
null
null
null
priv/template/config/test.exs
Havvy/phoenix
37c4053bba75beca5dabf7c1b8cb71cd7e371674
[ "MIT" ]
null
null
null
priv/template/config/test.exs
Havvy/phoenix
37c4053bba75beca5dabf7c1b8cb71cd7e371674
[ "MIT" ]
null
null
null
use Mix.Config config :phoenix, <%= application_module %>.Router, http: [port: System.get_env("PORT") || 4001]
22.8
50
0.684211
5aa8ab31a396d82c1b3f92502bccca4a6ccb6317
990
exs
Elixir
apps/day04/test/day04_test.exs
jochumb/aoc2017
813851fcab9270adea1bc532335f2228f5c015be
[ "MIT" ]
null
null
null
apps/day04/test/day04_test.exs
jochumb/aoc2017
813851fcab9270adea1bc532335f2228f5c015be
[ "MIT" ]
null
null
null
apps/day04/test/day04_test.exs
jochumb/aoc2017
813851fcab9270adea1bc532335f2228f5c015be
[ "MIT" ]
null
null
null
defmodule Day04Test do use ExUnit.Case @moduledoc "Input for day 4" test "Test input part2" do assert Day04.v1?("aa bb cc dd ee") == true assert Day04.v1?("aa bb cc dd aa") == false assert Day04.v1?("aa bb cc dd aaa") == true end test "Solution for part 1" do input_str = Utils....
30
60
0.611111
5aa8b6ee3750b68d211e3a36e34b853b4eaa33fb
745
ex
Elixir
core/cluster/node_id.ex
sylph01/antikythera
47a93f3d4c70975f7296725c9bde2ea823867436
[ "Apache-2.0" ]
144
2018-04-27T07:24:49.000Z
2022-03-15T05:19:37.000Z
core/cluster/node_id.ex
sylph01/antikythera
47a93f3d4c70975f7296725c9bde2ea823867436
[ "Apache-2.0" ]
123
2018-05-01T02:54:43.000Z
2022-01-28T01:30:52.000Z
core/cluster/node_id.ex
sylph01/antikythera
47a93f3d4c70975f7296725c9bde2ea823867436
[ "Apache-2.0" ]
14
2018-05-01T02:30:47.000Z
2022-02-21T04:38:56.000Z
# Copyright(c) 2015-2021 ACCESS CO., LTD. All rights reserved. use Croma defmodule AntikytheraCore.Cluster.NodeId do @moduledoc """ ID of instance that is visible to gear developers. Note that the ID string here uses short hostname (`hostname -s`) instead of fully-qualified one (`hostname -f`) in order to ma...
24.833333
113
0.688591
5aa8c39cdc4e87945dd88d6e2c764af86ab706a7
4,558
exs
Elixir
test/angle_test.exs
TattdCodeMonkey/geopotion
2ccda6ea2d0ad6159c3485f1c521aed43ca5fa37
[ "MIT" ]
null
null
null
test/angle_test.exs
TattdCodeMonkey/geopotion
2ccda6ea2d0ad6159c3485f1c521aed43ca5fa37
[ "MIT" ]
null
null
null
test/angle_test.exs
TattdCodeMonkey/geopotion
2ccda6ea2d0ad6159c3485f1c521aed43ca5fa37
[ "MIT" ]
null
null
null
defmodule AngleTest do use ExUnit.Case, async: true alias GeoPotion.Angle doctest Angle @conv_delta 0.0000001 test "angle - create new - 0", do: assert Angle.new(0) == %Angle{value: 0, units: :degrees} test "angle - create new", do: assert Angle.new(310) == %Angle{value: 310 , units: :degrees} test "ang...
58.435897
158
0.673322
5aa8de92d2f1400ee814c5d2cc65c45c8f0bd040
1,492
ex
Elixir
clients/storage/lib/google_api/storage/v1/model/bucket_versioning.ex
leandrocp/elixir-google-api
a86e46907f396d40aeff8668c3bd81662f44c71e
[ "Apache-2.0" ]
null
null
null
clients/storage/lib/google_api/storage/v1/model/bucket_versioning.ex
leandrocp/elixir-google-api
a86e46907f396d40aeff8668c3bd81662f44c71e
[ "Apache-2.0" ]
null
null
null
clients/storage/lib/google_api/storage/v1/model/bucket_versioning.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 &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...
31.083333
109
0.743298
5aa941b563730a0f70d178722aeadc2b9292b99e
1,295
exs
Elixir
mix.exs
matsubara0507/elchemy
9184d758dc1d5d5d3209302f9742c11fe01aa92c
[ "MIT" ]
null
null
null
mix.exs
matsubara0507/elchemy
9184d758dc1d5d5d3209302f9742c11fe01aa92c
[ "MIT" ]
null
null
null
mix.exs
matsubara0507/elchemy
9184d758dc1d5d5d3209302f9742c11fe01aa92c
[ "MIT" ]
null
null
null
defmodule Elchemy.Mixfile do use Mix.Project def project do [app: :elchemy, name: "Elchemy Compiler", description: "Mix compiler wrapper around Elchemy project", version: "0.6.6", elixir: "~> 1.4", description: "", package: package(), build_embedded: Mix.env == :prod, st...
26.428571
86
0.609266
5aa94390f8db2937c9ad65f175d25dd9e145bc40
2,986
ex
Elixir
clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_k_map_estimation_config.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
1
2018-12-03T23:43:10.000Z
2018-12-03T23:43:10.000Z
clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_k_map_estimation_config.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_k_map_estimation_config.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 &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 ...
43.275362
189
0.748828
5aa94b7c435e07aa4b417ba4376a04ee870161c6
4,432
exs
Elixir
test/arangoex/user_test.exs
alakra/arangoex
6fbea0335bcc1adeaa4b4299ce8028c2e4080980
[ "MIT" ]
24
2016-11-02T14:53:55.000Z
2021-12-25T13:08:09.000Z
test/arangoex/user_test.exs
alakra/arangoex
6fbea0335bcc1adeaa4b4299ce8028c2e4080980
[ "MIT" ]
22
2016-12-06T15:09:50.000Z
2022-03-24T02:16:20.000Z
test/arangoex/user_test.exs
alakra/arangoex
6fbea0335bcc1adeaa4b4299ce8028c2e4080980
[ "MIT" ]
8
2016-12-12T21:27:25.000Z
2019-05-24T04:27:30.000Z
defmodule Arangoex.UserTest do alias Arangoex.User use ExUnit.Case, async: false setup do # make sure "foo" user does not exist for tests User.remove(:arango, "foo") on_exit fn -> # make sure "foo" is removed from any test User.remove(:arango, "foo") end end test "create() creat...
30.777778
78
0.58574
5aa96e1bf14724258a5b0e4339adbdfbc3699d5b
882
ex
Elixir
lib/ex_cell/controller.ex
GlennGeelen/ex_cell
6c3b47bb4a6f883cd9c0ec0672d08464ff7bc515
[ "MIT" ]
30
2017-07-27T12:57:05.000Z
2021-12-21T12:39:40.000Z
lib/ex_cell/controller.ex
DefactoSoftware/ex_cell
15d47ba79f6797ea3d8abefd798b09b06b9adbae
[ "MIT" ]
152
2017-08-01T12:50:54.000Z
2022-03-28T04:28:27.000Z
lib/ex_cell/controller.ex
GlennGeelen/ex_cell
6c3b47bb4a6f883cd9c0ec0672d08464ff7bc515
[ "MIT" ]
5
2017-11-08T16:50:36.000Z
2019-05-02T10:14:15.000Z
defmodule ExCell.Controller do alias ExCell.View @moduledoc """ Cell methods that render a cell directly to a controller """ @controller_adapter ExCell.config(:controller_adapter, Phoenix.Controller) @doc """ Renders a cell directly from a controller without having to use a view. ## Examples de...
21
76
0.64059